ChangeLog 545 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248
  1. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Renamed addURI as addUri
  3. * src/XmlRpcMethodFactory.cc
  4. * src/XmlRpcMethodImpl.cc
  5. * src/XmlRpcMethodImpl.h
  6. * test/XmlRpcMethodTest.cc
  7. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Renamed addTorrentFile as addTorrent
  9. * src/XmlRpcMethodFactory.cc
  10. * src/XmlRpcMethodImpl.cc
  11. * src/XmlRpcMethodImpl.h
  12. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. The information for files, URIs, peers are removed from the
  14. reponse of TellaActive, TellStatus command because they tend to be
  15. large. Instead they can be retrieved by the dedicated commands:
  16. getFiles, getUris and getPeers respectively.
  17. * src/XmlRpcMethodFactory.cc
  18. * src/XmlRpcMethodImpl.cc
  19. * src/XmlRpcMethodImpl.h
  20. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Removed --max-overall-upload-limit and
  22. --max-overall-download-limit option from listRequestOptions.
  23. * src/download_helper.cc
  24. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Log incoming host in HttpListenCommand.
  26. * src/HttpListenCommand.cc
  27. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  29. --xml-rpc-passwd option.
  30. * src/HttpServer.cc
  31. * src/HttpServer.h
  32. * src/HttpServerCommand.cc
  33. * src/OptionHandlerFactory.cc
  34. * src/prefs.cc
  35. * src/prefs.h
  36. * src/usage_text.h
  37. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  39. processing 0 length request.
  40. * src/HttpServerBodyCommand.cc
  41. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Removed --enable-http-server and --http-server-listen-port
  43. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  44. instead. The original feature for --enable-http-server that
  45. reports download progress in HTML was officially removed. Persist
  46. XML-RPC connection if client supports keep-alive.
  47. * src/DownloadEngineFactory.cc
  48. * src/HttpServerCommand.cc
  49. * src/HttpServerResponseCommand.cc
  50. * src/Makefile.am
  51. * src/Makefile.in
  52. * src/OptionHandlerFactory.cc
  53. * src/RequestGroupMan.cc
  54. * src/main.cc
  55. * src/option_processing.cc
  56. * src/prefs.cc
  57. * src/prefs.h
  58. * src/usage_text.h
  59. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. Added "uris" key to the response of tellStatus command. Added
  61. "connections" key to the response of tellStatus and tellActive
  62. command.
  63. * src/XmlRpcMethodImpl.cc
  64. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  66. Added TellStatusXmlRpcMethod. Remove command can now remove
  67. waiting RequestGroup.
  68. * src/RequestGroupMan.cc
  69. * src/RequestGroupMan.h
  70. * src/XmlRpcMethodFactory.cc
  71. * src/XmlRpcMethodImpl.cc
  72. * src/XmlRpcMethodImpl.h
  73. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Initialized _peerId
  75. * src/Peer.cc
  76. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Return fault structure for error. FailXmlRpcMethod is renamed as
  78. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  79. in non-torrent download. Return single param value.
  80. * src/XmlRpcMethod.cc
  81. * src/XmlRpcMethodFactory.cc
  82. * src/XmlRpcMethodImpl.cc
  83. * src/XmlRpcMethodImpl.h
  84. * test/XmlRpcMethodTest.cc
  85. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  87. command.
  88. * src/RequestGroup.cc
  89. * src/RequestGroup.h
  90. * src/RequestGroupMan.cc
  91. * src/XmlRpcMethodImpl.cc
  92. * test/RequestGroupTest.cc
  93. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Added more options that can be specified in -i list and xml-rpc
  95. add* command.
  96. * src/download_helper.h
  97. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. The available options in -i list should be listed in
  99. listRequestOptions().
  100. * src/download_helper.cc
  101. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  103. command.
  104. * src/XmlRpcMethodImpl.cc
  105. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Now RequestGroup has its own copy of Option object. This will help
  107. to give custom option for each RequestGroup.
  108. addTorrentFile command now takes options.
  109. * src/AbstractCommand.cc
  110. * src/AbstractCommand.h
  111. * src/AbstractProxyRequestCommand.cc
  112. * src/ActivePeerConnectionCommand.cc
  113. * src/ActivePeerConnectionCommand.h
  114. * src/AdaptiveURISelector.cc
  115. * src/BtCheckIntegrityEntry.cc
  116. * src/BtDependency.cc
  117. * src/BtDependency.h
  118. * src/BtFileAllocationEntry.cc
  119. * src/BtPostDownloadHandler.cc
  120. * src/CheckIntegrityEntry.cc
  121. * src/DownloadCommand.cc
  122. * src/FtpDownloadCommand.cc
  123. * src/FtpFinishDownloadCommand.cc
  124. * src/FtpInitiateConnectionCommand.cc
  125. * src/FtpNegotiationCommand.cc
  126. * src/HttpInitiateConnectionCommand.cc
  127. * src/HttpRequestCommand.cc
  128. * src/HttpResponseCommand.cc
  129. * src/HttpSkipResponseCommand.cc
  130. * src/InitiateConnectionCommand.cc
  131. * src/InitiateConnectionCommandFactory.cc
  132. * src/InitiatorMSEHandshakeCommand.cc
  133. * src/InitiatorMSEHandshakeCommand.h
  134. * src/Metalink2RequestGroup.cc
  135. * src/Metalink2RequestGroup.h
  136. * src/MetalinkPostDownloadHandler.cc
  137. * src/MultiUrlRequestInfo.cc
  138. * src/MultiUrlRequestInfo.h
  139. * src/PeerAbstractCommand.cc
  140. * src/PeerInteractionCommand.cc
  141. * src/PeerInteractionCommand.h
  142. * src/PeerReceiveHandshakeCommand.cc
  143. * src/PeerReceiveHandshakeCommand.h
  144. * src/RequestGroup.cc
  145. * src/RequestGroup.h
  146. * src/TrackerWatcherCommand.cc
  147. * src/TrackerWatcherCommand.h
  148. * src/XmlRpcMethod.cc
  149. * src/XmlRpcMethod.h
  150. * src/XmlRpcMethodImpl.cc
  151. * src/download_helper.cc
  152. * src/download_helper.h
  153. * src/main.cc
  154. * test/BtDependencyTest.cc
  155. * test/BtPostDownloadHandlerTest.cc
  156. * test/DefaultBtMessageDispatcherTest.cc
  157. * test/DownloadHandlerFactoryTest.cc
  158. * test/DownloadHelperTest.cc
  159. * test/Metalink2RequestGroupTest.cc
  160. * test/MetalinkPostDownloadHandlerTest.cc
  161. * test/RequestGroupManTest.cc
  162. * test/RequestGroupTest.cc
  163. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Added tellActiveStatus xml-rpc command which reports download
  165. status of active downloads.
  166. * src/XmlRpcMethodFactory.cc
  167. * src/XmlRpcMethodImpl.cc
  168. * src/XmlRpcMethodImpl.h
  169. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Added addTorrentFile xml-rpc command which receives uploaded
  171. torrent file and add download for it.
  172. * src/RequestGroupMan.cc
  173. * src/XmlRpcMethodFactory.cc
  174. * src/XmlRpcMethodImpl.cc
  175. * src/XmlRpcMethodImpl.h
  176. * src/download_helper.cc
  177. * src/download_helper.h
  178. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Added remove xml-rpc command which removes specified download.
  180. There is a known issue: the removed unfinished downloads are
  181. reported ERR when aria2 exits. They should be reported as INPR.
  182. * src/RequestGroupMan.cc
  183. * src/RequestGroupMan.h
  184. * src/XmlRpcMethodFactory.cc
  185. * src/XmlRpcMethodImpl.cc
  186. * src/XmlRpcMethodImpl.h
  187. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. If --enable-http-server is enabled, don't stop aria2 when all
  189. download finished and don't quit when no files to download at
  190. start up.
  191. * src/RequestGroupMan.cc
  192. * src/main.cc
  193. * src/option_processing.cc
  194. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Added missing AM_CONDITIONAL
  196. * configure.ac
  197. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Added xml-rpc functionality. Currently only addURI commad is
  199. supported. To enable xml-rpc, run aria2 with
  200. --enable-http-server. This option name is temporal and will be
  201. changed. The feature that reports download progress in html format
  202. is temporarily disabled.
  203. * src/HttpServer.cc
  204. * src/HttpServer.h
  205. * src/HttpServerBodyCommand.cc
  206. * src/HttpServerBodyCommand.h
  207. * src/HttpServerCommand.cc
  208. * src/HttpServerResponseCommand.cc
  209. * src/Makefile.am
  210. * src/OptionParser.cc
  211. * src/OptionParser.h
  212. * src/RequestGroupMan.cc
  213. * src/RequestGroupMan.h
  214. * src/XmlRpcMethod.cc
  215. * src/XmlRpcMethod.h
  216. * src/XmlRpcMethodFactory.cc
  217. * src/XmlRpcMethodFactory.h
  218. * src/XmlRpcMethodImpl.cc
  219. * src/XmlRpcMethodImpl.h
  220. * src/download_helper.cc
  221. * src/download_helper.h
  222. * test/Makefile.am
  223. * test/XmlRpcMethodTest.cc
  224. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  225. Added xml-rpc request parser. The supported value types are:
  226. i4/int, string, double, struct, array, base64. Currently only
  227. libxml2 version is provided.
  228. * src/Xml2XmlRpcRequestProcessor.cc
  229. * src/Xml2XmlRpcRequestProcessor.h
  230. * src/XmlRpcElements.cc
  231. * src/XmlRpcElements.h
  232. * src/XmlRpcRequest.h
  233. * src/XmlRpcRequestParserController.cc
  234. * src/XmlRpcRequestParserController.h
  235. * src/XmlRpcRequestParserState.h
  236. * src/XmlRpcRequestParserStateImpl.cc
  237. * src/XmlRpcRequestParserStateImpl.h
  238. * src/XmlRpcRequestParserStateMachine.cc
  239. * src/XmlRpcRequestParserStateMachine.h
  240. * src/XmlRpcRequestProcessor.h
  241. * test/XmlRpcRequestParserControllerTest.cc
  242. * test/XmlRpcRequestProcessorTest.cc
  243. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. * Release 1.3.3
  245. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Fixed compile error since r1202.
  247. * src/ExpatMetalinkProcessor.cc
  248. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Updated Ukrainian, Russian and Simplified Chinese
  250. translations. Thanks to all translators.
  251. * po/ru.po
  252. * po/uk.po
  253. * po/zh_CN.po
  254. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Pass reference of Option object instead of pointer.
  256. * src/download_helper.cc
  257. * src/download_helper.h
  258. * src/main.cc
  259. * test/DownloadHelperTest.cc
  260. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  262. from option directly. Instead, get them from RequestGroup.
  263. * src/ActivePeerConnectionCommand.cc
  264. * src/ActivePeerConnectionCommand.h
  265. * src/PeerReceiveHandshakeCommand.cc
  266. * src/RequestGroup.h
  267. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Removed unused uploadLimitCheck and uploadLimit from
  269. PeerAbstractCommand. Removed unused maxDownloadLimit from
  270. PeerInteractionCommand.
  271. * src/PeerAbstractCommand.cc
  272. * src/PeerAbstractCommand.h
  273. * src/PeerInteractionCommand.cc
  274. * src/PeerInteractionCommand.h
  275. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Fixed broken file renaming feature since r1202.
  277. * src/FtpNegotiationCommand.cc
  278. * src/FtpNegotiationCommand.h
  279. * src/HttpResponseCommand.cc
  280. * src/RequestGroup.cc
  281. * src/RequestGroup.h
  282. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Removed unused debug log
  284. * src/SocketCore.cc
  285. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Generated configure and Makefile.in using autoconf 2.63 and
  287. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  288. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  289. * configure.ac
  290. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Moved piece statistics stuff to new PieceStatMan class.
  292. Refactored PieceSelector interface.
  293. * src/DefaultPieceStorage.cc
  294. * src/DefaultPieceStorage.h
  295. * src/LongestSequencePieceSelector.cc
  296. * src/LongestSequencePieceSelector.h
  297. * src/Makefile.am
  298. * src/PieceSelector.h
  299. * src/PieceStatMan.cc
  300. * src/PieceStatMan.h
  301. * src/RarestPieceSelector.cc
  302. * src/RarestPieceSelector.h
  303. * src/RequestGroup.cc
  304. * test/DefaultPieceStorageTest.cc
  305. * test/InOrderPieceSelector.h
  306. * test/Makefile.am
  307. * test/PieceStatManTest.cc
  308. * test/RarestPieceSelectorTest.cc
  309. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Added static member _protocolFamily to SocketCore. By default,
  311. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  312. address. Sometime SocketCore::bind() and
  313. SocketCore::establishConnection() use difference protocl family
  314. and latter cannot connect to former. To avoid this situation, we
  315. limit protocol family to AF_INET for unit tests.
  316. * src/SocketCore.cc
  317. * src/SocketCore.h
  318. * test/AllTest.cc
  319. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. Avoid std::bad_alloc for negative bencode string length.
  321. * src/bencode.cc
  322. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  323. Supported segmented downloading with chunked transfer encoding and
  324. content-length.
  325. * src/DownloadCommand.cc
  326. * src/HttpResponseCommand.cc
  327. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Bump up version number to 1.3.3
  329. * configure.ac
  330. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  332. from 4096 to 65536 (for insanely large ftp login banners)
  333. * src/FtpConnection.h
  334. * test/FtpConnectionTest.cc
  335. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. In DefaultBtContext::getActualBasePath(), return first
  337. FileEntry::getPath() for single file torrent.
  338. * src/DefaultBtContext.cc
  339. * test/DefaultBtContextTest.cc
  340. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Removed directIOAllowed() from BinaryStream, DiskWriter,
  342. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  343. Removed _directIOAllowed member from DiskWriter.
  344. * src/AbstractDiskWriter.cc
  345. * src/AbstractDiskWriter.h
  346. * src/AbstractSingleDiskAdaptor.cc
  347. * src/AbstractSingleDiskAdaptor.h
  348. * src/BinaryStream.h
  349. * src/ByteArrayDiskWriter.h
  350. * src/DefaultPieceStorage.cc
  351. * src/DiskWriter.h
  352. * src/MultiDiskAdaptor.cc
  353. * src/MultiDiskAdaptor.h
  354. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  355. Now the constructor of AbstractDiskWriter takes filename as an
  356. argument and filename argument is removed from openFile(),
  357. initAndOpenFile(), openExistingFile() interface. storeDir member
  358. and its accessor functions are removed from DiskAdaptor because it
  359. is not used anymore. size() member function of DefaultDiskWriter,
  360. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  361. opening file.
  362. * src/AbstractDiskWriter.cc
  363. * src/AbstractDiskWriter.h
  364. * src/AbstractSingleDiskAdaptor.cc
  365. * src/AbstractSingleDiskAdaptor.h
  366. * src/ByteArrayDiskWriter.cc
  367. * src/ByteArrayDiskWriter.h
  368. * src/ByteArrayDiskWriterFactory.cc
  369. * src/ByteArrayDiskWriterFactory.h
  370. * src/DefaultDiskWriter.cc
  371. * src/DefaultDiskWriter.h
  372. * src/DefaultDiskWriterFactory.cc
  373. * src/DefaultDiskWriterFactory.h
  374. * src/DefaultPieceStorage.cc
  375. * src/DirectDiskAdaptor.cc
  376. * src/DirectDiskAdaptor.h
  377. * src/DiskAdaptor.h
  378. * src/DiskWriter.h
  379. * src/DiskWriterFactory.h
  380. * src/MessageDigestHelper.cc
  381. * src/MultiDiskAdaptor.cc
  382. * src/RequestGroup.cc
  383. * src/UnknownLengthPieceStorage.cc
  384. * src/Util.cc
  385. * test/DefaultDiskWriterTest.cc
  386. * test/DirectDiskAdaptorTest.cc
  387. * test/FallocFileAllocationIteratorTest.cc
  388. * test/MessageDigestHelperTest.cc
  389. * test/MetalinkProcessorTest.cc
  390. * test/MultiDiskAdaptorTest.cc
  391. * test/MultiFileAllocationIteratorTest.cc
  392. * test/SingleFileAllocationIteratorTest.cc
  393. * test/UtilTest.cc
  394. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Fixed the bug that aria2 aborts when --select-file is used. This
  396. bug was introduced in r1199.
  397. * src/MultiDiskAdaptor.cc
  398. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Code cleanup
  400. * test/MockPieceStorage.cc
  401. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Fixed the bug that read-only file with wrong file size will cause
  403. error because it cannot be truncated to the correct size. Now if
  404. file size is different than the expected one, re-open file in
  405. writable mode.
  406. * src/AbstractSingleDiskAdaptor.cc
  407. * src/AbstractSingleDiskAdaptor.h
  408. * src/BtCheckIntegrityEntry.cc
  409. * src/DiskAdaptor.h
  410. * src/MultiDiskAdaptor.h
  411. * src/RequestGroup.cc
  412. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Fixed the bug that with --check-integrity option aria2 reports
  414. downloaded file size is 0 even if some parts of file is correctly
  415. downloaded. This bug is reproducible for the download that a file
  416. includes last piece is missing. This bug doesn't reveal for
  417. single-torrent with file allocation on.
  418. * src/IteratableChecksumValidator.cc
  419. * test/IteratableChecksumValidatorTest.cc
  420. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Avoid circular reference between RequestGroup and AdaptiveURISelector
  422. * src/RequestGroupMan.cc
  423. * src/AdaptiveURISelector.cc
  424. * src/AdaptiveURISelector.h
  425. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. * Release 1.3.2
  427. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. Updated README
  429. * README
  430. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Updated Ukrainian translations. Thanks to Alexander10.
  432. * po/uk.po
  433. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Code cleanup
  435. * src/MetalinkParserStateMachine.cc
  436. * src/MetalinkParserStateMachine.h
  437. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  439. and expat simultaneously, MetalinkProcessor is now not base class
  440. and it is directly implemented in XML2SAXMetalinkProcessor and
  441. ExpatMetalinkProcessor.
  442. * src/ExpatMetalinkProcessor.cc
  443. * src/ExpatMetalinkProcessor.h
  444. * src/Makefile.am
  445. * src/MetalinkHelper.cc
  446. * src/MetalinkProcessor.h
  447. * src/MetalinkProcessorFactory.cc: Removed.
  448. * src/MetalinkProcessorFactory.h: Removed
  449. * src/XML2SAXMetalinkProcessor.cc
  450. * src/XML2SAXMetalinkProcessor.h
  451. * test/MetalinkProcessorTest.cc
  452. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  453. Bump up version number to 1.3.2
  454. * configure.ac
  455. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Added missing file.
  457. * test/Makefile.am
  458. * test/url-list-singleFileEndsWithSlash.torrent
  459. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  461. request.
  462. * src/AnnounceList.cc
  463. * src/AnnounceList.h
  464. * src/BDE.cc: Added
  465. * src/BDE.h: Added
  466. * src/DHTAbstractMessage.cc
  467. * src/DHTAbstractMessage.h
  468. * src/DHTAnnouncePeerMessage.cc
  469. * src/DHTAnnouncePeerMessage.h
  470. * src/DHTAnnouncePeerReplyMessage.cc
  471. * src/DHTAnnouncePeerReplyMessage.h
  472. * src/DHTFindNodeMessage.cc
  473. * src/DHTFindNodeMessage.h
  474. * src/DHTFindNodeReplyMessage.cc
  475. * src/DHTFindNodeReplyMessage.h
  476. * src/DHTGetPeersMessage.cc
  477. * src/DHTGetPeersMessage.h
  478. * src/DHTGetPeersReplyMessage.cc
  479. * src/DHTGetPeersReplyMessage.h
  480. * src/DHTMessageFactory.h
  481. * src/DHTMessageFactoryImpl.cc
  482. * src/DHTMessageFactoryImpl.h
  483. * src/DHTMessageReceiver.cc
  484. * src/DHTMessageTracker.cc
  485. * src/DHTMessageTracker.h
  486. * src/DHTPingMessage.cc
  487. * src/DHTPingMessage.h
  488. * src/DHTPingReplyMessage.cc
  489. * src/DHTPingReplyMessage.h
  490. * src/DHTQueryMessage.cc
  491. * src/DHTQueryMessage.h
  492. * src/DHTResponseMessage.cc
  493. * src/DHTResponseMessage.h
  494. * src/DefaultBtAnnounce.cc
  495. * src/DefaultBtContext.cc
  496. * src/DefaultBtContext.h
  497. * src/HandshakeExtensionMessage.cc
  498. * src/Makefile.am
  499. * src/PeerListProcessor.h
  500. * src/UTPexExtensionMessage.cc
  501. * src/bencode.cc
  502. * src/bencode.h
  503. * test/AnnounceListTest.cc
  504. * test/BDETest.cc: Added
  505. * test/BencodeTest.cc
  506. * test/DHTAnnouncePeerMessageTest.cc
  507. * test/DHTAnnouncePeerReplyMessageTest.cc
  508. * test/DHTFindNodeMessageTest.cc
  509. * test/DHTFindNodeReplyMessageTest.cc
  510. * test/DHTGetPeersMessageTest.cc
  511. * test/DHTGetPeersReplyMessageTest.cc
  512. * test/DHTMessageFactoryImplTest.cc
  513. * test/DHTMessageTrackerTest.cc
  514. * test/DHTPingMessageTest.cc
  515. * test/DHTPingReplyMessageTest.cc
  516. * test/Makefile.am
  517. * test/MockDHTMessageFactory.h
  518. * test/PeerListProcessorTest.cc
  519. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Use url-list (web-seeding) only for single-file torrent. This is
  521. basically the same behavior with Metalink file with torrent and
  522. URIs.
  523. * src/RequestGroup.cc
  524. * src/DefaultBtContext.cc
  525. * test/DefaultBtContextTest.cc
  526. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Rewritten expr
  528. * src/array_fun.h
  529. * test/array_funTest.cc
  530. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  532. * src/DefaultBtMessageDispatcher.cc
  533. * src/a2algo.h
  534. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Removed ExtendedMessagingAware. Instead of using inheritance,
  536. added ExtensionMessageRegistry and it is passed to
  537. DefaultExtensionMessageFactory.
  538. * src/DefaultBtInteractive.cc
  539. * src/DefaultBtInteractive.h
  540. * src/DefaultExtensionMessageFactory.cc
  541. * src/DefaultExtensionMessageFactory.h
  542. * src/ExtendedMessagingAware.h: Removed.
  543. * src/ExtensionMessageFactory.h
  544. * src/ExtensionMessageRegistry.h: Added.
  545. * src/Makefile.am
  546. * src/PeerInteractionCommand.cc
  547. * test/DefaultExtensionMessageFactoryTest.cc
  548. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Fixed typo in log messages
  550. * src/MSEHandshake.cc
  551. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  552. Fixed the bug that prevents torrent download from finishing. The
  553. bug doesn't reveal for all torrents. The torrents affected this
  554. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  555. of pieces.
  556. * src/bitfield.h
  557. * test/bitfieldTest.cc
  558. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Code cleanup
  560. * src/PeerListProcessor.h
  561. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  562. Removed RequestGroupAware
  563. * src/AbstractCommand.cc
  564. * src/AbstractCommand.h
  565. * src/ActivePeerConnectionCommand.cc
  566. * src/ActivePeerConnectionCommand.h
  567. * src/DHTGetPeersCommand.cc
  568. * src/DHTGetPeersCommand.h
  569. * src/InitiatorMSEHandshakeCommand.cc
  570. * src/InitiatorMSEHandshakeCommand.h
  571. * src/Makefile.am
  572. * src/PeerInitiateConnectionCommand.cc
  573. * src/PeerInitiateConnectionCommand.h
  574. * src/PeerInteractionCommand.cc
  575. * src/PeerInteractionCommand.h
  576. * src/RealtimeCommand.cc
  577. * src/RealtimeCommand.h
  578. * src/RequestGroupAware.cc: Removed
  579. * src/RequestGroupAware.h: Removed
  580. * src/SeedCheckCommand.cc
  581. * src/SeedCheckCommand.h
  582. * src/SleepCommand.cc
  583. * src/TrackerWatcherCommand.cc
  584. * src/TrackerWatcherCommand.h
  585. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Rewritten PeerListProcessor
  587. * src/PeerListProcessor.h
  588. * src/CompactPeerListProcessor.h: Removed
  589. * src/CompactPeerListProcessor.cc: Removed
  590. * src/DelegatingPeerListProcessor.cc: Removed.
  591. * src/DefaultBtAnnounce.cc
  592. * src/Makefile.am
  593. * src/UTPexExtensionMessage.cc
  594. * src/DefaultPeerListProcessor.h: Removed.
  595. * src/DefaultPeerListProcessor.cc: Removed.
  596. * src/DelegatingPeerListProcessor.h: Removed.
  597. * test/Makefile.am
  598. * test/PeerListProcessorTest.cc
  599. * test/DefaultPeerListProcessorTest.cc: Removed.
  600. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Rewritten RequestGroupMan::calculateStat()
  602. * src/RequestGroupMan.cc
  603. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Removed unnecessary virtual destructor for Request class.
  605. * src/Request.cc
  606. * src/Request.h
  607. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Avoid dynamic_pointer_cast.
  609. * src/DHTGetPeersCommand.cc
  610. * src/DHTGetPeersCommand.h
  611. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  612. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  613. BtEvent.
  614. * src/AbstractBtEventListener.h: Removed.
  615. * src/AbstractBtMessage.cc
  616. * src/AbstractBtMessage.h
  617. * src/BtAbortOutstandingRequestEvent.h
  618. * src/BtCancelSendingPieceEvent.h
  619. * src/BtChokedEvent.h: Removed.
  620. * src/BtChokingEvent.h
  621. * src/BtEvent.h: Removed
  622. * src/BtEventListener.h: Removed.
  623. * src/BtMessage.h
  624. * src/BtPieceMessage.cc
  625. * src/BtPieceMessage.h
  626. * src/BtRequestMessage.cc
  627. * src/BtRequestMessage.h
  628. * src/DefaultBtMessageDispatcher.cc
  629. * src/Makefile.am
  630. * src/a2functional.h
  631. * test/BtPieceMessageTest.cc
  632. * test/BtRequestMessageTest.cc
  633. * test/DefaultBtMessageDispatcherTest.cc
  634. * test/MockBtMessage.h
  635. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Code cleanup
  637. * src/RequestGroupMan.cc
  638. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Code cleanup
  640. * src/DownloadCommand.cc
  641. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Fixed segmentation fault when GZipDecoder::decode() returns 0
  643. byte.
  644. * src/DownloadCommand.cc
  645. * src/bitfield.h
  646. * test/bitfieldTest.cc
  647. Fixed the bug that causes infinite loop if broken web server
  648. returns chunked response without last "0" chunk-size marker and
  649. closes connection.
  650. * src/DownloadCommand.cc
  651. Instantiate properly configured HttpDownloadCommand for
  652. non-resumable downlaods.
  653. * src/HttpResponseCommand.cc
  654. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Rewritten array operation functions.
  656. * src/BitfieldMan.cc
  657. * src/array_fun.h
  658. * test/array_funTest.cc
  659. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Removed unused variable 'query'
  661. * src/Request.cc
  662. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  664. accidentally set to false in r1162.
  665. * configure.ac
  666. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Code cleanup
  668. * src/BNode.cc
  669. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Increase prefixLength for the bucket which doesn't own local node
  671. ID when splitting bucket.
  672. * src/DHTBucket.cc
  673. * test/DHTBucketTest.cc
  674. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. * Release 1.3.1
  676. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Bump up version number to 1.3.1
  678. * configure.ac
  679. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  680. Removed unused variable checkPoint. Also removed include directive
  681. for TimeA2.h.
  682. * src/SeedCheckCommand.h
  683. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Fixed the bug that upload limit exceeds the value specified in
  685. --seed-ratio option depending on the timing of the execution of
  686. SeedCheckCommand.
  687. * src/SeedCheckCommand.cc
  688. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Fixed the bug that removed peer's session upload/download length
  690. are counted twice in _cachedTransferStat before it is
  691. re-calculated. This affected the calculation of shara ratio,
  692. resulting aria2 wrongly determines that specified share ratio is
  693. reached. Also fixed the typo in calculateStatFor function name.
  694. * src/BtSetup.cc
  695. * src/DefaultPeerStorage.cc
  696. * src/ShareRatioSeedCriteria.h
  697. * test/ShareRatioSeedCriteriaTest.cc
  698. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. * Release 1.3.0
  700. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  702. Nynorsk translations. Thanks to all translators.
  703. * po/es.po
  704. * po/ja.po
  705. * po/nn.po
  706. * po/ru.po
  707. * po/uk.po
  708. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Rewritten isInRange()
  710. * src/DHTBucket.cc
  711. * test/DHTBucketTest.cc
  712. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Fixed typo
  714. * doc/aria2c.1.txt
  715. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  717. malloc/realloc is not used.
  718. * src/configure.ac
  719. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. BitfieldMan::getMissingIndexes family functions now takes unsigned
  721. char* bitfield instead of stl container for efficiency.
  722. PieceSelector::select now takes this
  723. bitfield. RarestPieceSelector::select now also performs
  724. efficiently for this change. bitfield namespace is introduced and
  725. it has several helper functions to handle basic bitfield
  726. operations such as test, count set bits, etc.
  727. * src/BitfieldMan.cc
  728. * src/BitfieldMan.h
  729. * src/DefaultBtRequestFactory.cc
  730. * src/DefaultPieceStorage.cc
  731. * src/DefaultPieceStorage.h
  732. * src/LongestSequencePieceSelector.cc
  733. * src/LongestSequencePieceSelector.h
  734. * src/Makefile.am
  735. * src/Piece.cc
  736. * src/Piece.h
  737. * src/PieceSelector.h
  738. * src/RarestPieceSelector.cc
  739. * src/RarestPieceSelector.h
  740. * src/Util.cc
  741. * src/Util.h
  742. * src/bitfield.h
  743. * test/BitfieldManTest.cc
  744. * test/LongestSequencePieceSelectorTest.cc
  745. * test/Makefile.am
  746. * test/RarestPieceSelectorTest.cc
  747. * test/UtilTest.cc
  748. * test/bitfieldTest.cc
  749. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  750. Made accepted socket non-block.
  751. * src/FtpNegotiationCommand.cc
  752. * src/HttpListenCommand.cc
  753. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Guarded #ifdef HAVE_POSIX_FALLOCATE
  755. * src/AbstractSingleDiskAdaptor.cc
  756. * src/DefaultPieceStorage.cc
  757. * src/DiskAdaptor.h
  758. * src/DiskAdaptor.h
  759. * src/MultiFileAllocationIterator.cc
  760. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Run
  762. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  763. in every 1 sec. The timeout of RequestSlot is 60s by default and
  764. it doesn't need to be called every time when
  765. DefaultBtInteractive::doInteractionProcessing() is called.
  766. * src/DefaultBtInteractive.cc
  767. * src/DefaultBtInteractive.h
  768. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Documented 'falloc' in man page.
  770. * doc/aria2c.1.txt
  771. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Updated doc
  773. * src/usage_text.h
  774. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Added 'falloc' parameter for --file-allocation option. 'falloc'
  776. allocation mode uses posix_fallocate() system call to allocate
  777. file on disk. If you are using newer file systems such as ext4
  778. (with extents support), btrfs or xfs, 'falloc' is your best
  779. choice. It allocates large(few GiB) files almost instantly. Don't
  780. use 'falloc' with legacy file systems such as ext3 because it
  781. takes almost same time as 'prealloc' and it blocks aria2 entirely
  782. until allocation finishes. 'falloc' may not be available if your
  783. system doesn't have posix_fallocate() system call.
  784. * configure.ac
  785. * src/AbstractDiskWriter.cc
  786. * src/AbstractDiskWriter.h
  787. * src/AbstractSingleDiskAdaptor.cc
  788. * src/BinaryStream.h
  789. * src/BtCheckIntegrityEntry.cc
  790. * src/ByteArrayDiskWriter.h
  791. * src/CheckIntegrityEntry.cc
  792. * src/CheckIntegrityEntry.h
  793. * src/DefaultPieceStorage.cc
  794. * src/DiskAdaptor.cc
  795. * src/DiskAdaptor.h
  796. * src/DiskWriter.h
  797. * src/FallocFileAllocationIterator.cc
  798. * src/FallocFileAllocationIterator.h
  799. * src/FileAllocationEntry.cc
  800. * src/FileAllocationEntry.h
  801. * src/Makefile.am
  802. * src/MultiFileAllocationIterator.cc
  803. * src/MultiFileAllocationIterator.h
  804. * src/OptionHandlerFactory.cc
  805. * src/RequestGroup.cc
  806. * src/StreamCheckIntegrityEntry.cc
  807. * src/prefs.cc
  808. * src/prefs.h
  809. * src/usage_text.h
  810. * test/FallocFileAllocationIteratorTest.cc
  811. * test/Makefile.am
  812. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Removed duplicate enableDirectIO() call.
  814. * src/MultiFileAllocationIterator.cc
  815. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  817. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  818. cost of std::rotate().
  819. * src/RarestPieceSelector.cc
  820. * src/RarestPieceSelector.h
  821. * test/RarestPieceSelectorTest.cc
  822. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Updated usage doc for --bt-tracker-interval option.
  824. * src/usage_text.h
  825. * doc/aria2c.1.txt
  826. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. Documented --bt-tracker-interval option in man page.
  828. * doc/aria2c.1.txt
  829. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Added an option to specify the interval between tracker requests.
  831. If non-zero value is specified, aria2 uses it and ignores the
  832. interval value in the response of tracker. If zero is specified,
  833. aria2 determines the inteval value based on the tarcker response
  834. and download progress.
  835. * src/DefaultBtAnnounce.cc
  836. * src/DefaultBtAnnounce.h
  837. * src/OptionHandlerFactory.cc
  838. * src/RequestGroup.cc
  839. * src/prefs.cc
  840. * src/prefs.h
  841. * src/usage_text.h
  842. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Added operator+=, operator-=, operator-
  844. * src/TransferStat.cc
  845. * src/TransferStat.h
  846. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Refactored RarestPieceSelector to reduce CPU load, especially for
  848. addPieceStats.
  849. * src/RarestPieceSelector.cc
  850. * src/RarestPieceSelector.h
  851. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  853. getAllMissingBlockIndexes to reduce a call to
  854. array_function_base::operator[].
  855. * src/BitfieldMan.cc
  856. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Cached TransferStat/download speed to avoid to sum them up in each
  858. call.
  859. * src/DefaultPeerStorage.cc
  860. * src/DefaultPeerStorage.h
  861. * src/SegmentMan.cc
  862. * src/SegmentMan.h
  863. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Typedefed cuid_t as int32_t in Command.h
  865. * src/CUIDCounter.h
  866. * src/Command.cc
  867. * src/Command.h
  868. * src/DownloadEngine.cc
  869. * src/DownloadEngine.h
  870. * src/PeerStat.h
  871. * src/SegmentMan.cc
  872. * src/SegmentMan.h
  873. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Reduced the number of calls to PeerStorage::calculateStat() and
  875. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  876. transfer rate.
  877. * src/DefaultBtInteractive.cc
  878. * src/DefaultBtMessageDispatcher.cc
  879. * src/DefaultPeerStorage.cc
  880. * src/DefaultPeerStorage.h
  881. * src/DownloadCommand.cc
  882. * src/DownloadEngine.cc
  883. * src/PeerStorage.h
  884. * src/SegmentMan.cc
  885. * src/SegmentMan.h
  886. * test/MockPeerStorage.h
  887. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  888. Prepended _dir+"/" after joining path elements in torrent file.
  889. * src/DefaultBtContext.cc
  890. * test/DefaultBtContextTest.cc
  891. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Added missing IndexBtMessageValidator.h
  893. * src/Makefile.am
  894. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  896. Chinese translations. Thank you for contributing our project.
  897. * po/id.po
  898. * po/it.po
  899. * po/ru.po
  900. * po/uk.po
  901. * po/zh_CN.po
  902. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  903. Updated README
  904. * README
  905. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Bump up version number to 1.3.0
  907. * configure.ac
  908. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Updated doc
  910. * src/DefaultBtContext.h
  911. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Slice/joinPath for name of single torrent.
  913. * src/DefaultBtContext.cc
  914. * test/DefaultBtContextTest.cc
  915. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  916. Updated man page: Documented --dry-run and --index-out
  917. options. Changed the default value of --uri-selector and
  918. --http-auth-challenge options. Removed --direct-file-mapping
  919. option. Added example for --index-out
  920. * doc/aria2c.1.txt
  921. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  922. Updated TEXT_DRY_RUN
  923. * src/usage_text.h
  924. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Changed the default value of --uri-selector option from 'inorder'
  926. to 'feedback'
  927. * src/OptionHandlerFactory.cc
  928. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Included current URI in exception message.
  930. * src/AbstractCommand.cc
  931. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. Renamed ServerStatURISelector as FeedbackURISelector.
  933. * src/FeedbackURISelector.cc
  934. * src/FeedbackURISelector.h
  935. * src/Makefile.am
  936. * src/RequestGroupMan.cc
  937. * src/ServerStatURISelector.cc
  938. * src/ServerStatURISelector.h
  939. * test/FeedbackURISelectorTest.cc
  940. * test/Makefile.am
  941. * test/ServerStatURISelectorTest.cc
  942. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  944. all URIs are tested and their timeout is not reached.
  945. * src/AdaptiveURISelector.cc
  946. * src/AdaptiveURISelector.h
  947. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Changed the default value of --http-auth-challenge option to false.
  949. * src/OptionHandlerFactory.cc
  950. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Reuse URIs when all unused URIs run out.
  952. * src/OptionHandlerFactory.cc
  953. * src/RequestGroup.cc
  954. * src/prefs.cc
  955. * src/prefs.h
  956. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  957. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  958. and BtRejectMessage are derived from RangeBtMessage class.
  959. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  960. derived from IndexBtMessage class. BtChokeMessage,
  961. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  962. BtNotInterestedMessage and BtUnchokeMessage are derived from
  963. ZeroBtMessage class.
  964. * src/AbstractBtMessage.cc
  965. * src/AbstractBtMessage.h
  966. * src/BtAllowedFastMessage.cc
  967. * src/BtAllowedFastMessage.h
  968. * src/BtAllowedFastMessageValidator.h: Removed
  969. * src/BtBitfieldMessage.cc
  970. * src/BtBitfieldMessage.h
  971. * src/BtCancelMessage.cc
  972. * src/BtCancelMessage.h
  973. * src/BtCancelMessageValidator.h: Removed
  974. * src/BtChokeMessage.cc
  975. * src/BtChokeMessage.h
  976. * src/BtExtendedMessage.cc
  977. * src/BtExtendedMessage.h
  978. * src/BtHandshakeMessage.cc
  979. * src/BtHandshakeMessage.h
  980. * src/BtHaveAllMessage.cc
  981. * src/BtHaveAllMessage.h
  982. * src/BtHaveMessage.cc
  983. * src/BtHaveMessage.h
  984. * src/BtHaveMessageValidator.h: Removed
  985. * src/BtHaveNoneMessage.cc
  986. * src/BtHaveNoneMessage.h
  987. * src/BtInterestedMessage.cc
  988. * src/BtInterestedMessage.h
  989. * src/BtKeepAliveMessage.cc
  990. * src/BtKeepAliveMessage.h
  991. * src/BtNotInterestedMessage.cc
  992. * src/BtNotInterestedMessage.h
  993. * src/BtPieceMessage.cc
  994. * src/BtPieceMessage.h
  995. * src/BtPortMessage.cc
  996. * src/BtPortMessage.h
  997. * src/BtRejectMessage.cc
  998. * src/BtRejectMessage.h
  999. * src/BtRejectMessageValidator.h: Removed
  1000. * src/BtRequestMessage.cc
  1001. * src/BtRequestMessage.h
  1002. * src/BtRequestMessageValidator.h: Removed
  1003. * src/BtSuggestPieceMessage.cc
  1004. * src/BtSuggestPieceMessage.h
  1005. * src/BtSuggestPieceMessageValidator.h: Removed
  1006. * src/BtUnchokeMessage.cc
  1007. * src/BtUnchokeMessage.h
  1008. * src/DefaultBtMessageFactory.cc
  1009. * src/IndexBtMessage.cc
  1010. * src/IndexBtMessage.h
  1011. * src/IndexBtMessageValidator.h
  1012. * src/Makefile.am
  1013. * src/PeerMessageUtil.cc
  1014. * src/PeerMessageUtil.h
  1015. * src/RangeBtMessage.cc
  1016. * src/RangeBtMessage.h
  1017. * src/RangeBtMessageValidator.h
  1018. * src/SimpleBtMessage.cc
  1019. * src/SimpleBtMessage.h
  1020. * src/ZeroBtMessage.cc
  1021. * src/ZeroBtMessage.h
  1022. * test/BtRequestMessageTest.cc
  1023. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1024. Reverted usage_text.h to r1093 to avoid to lose translated
  1025. messages.
  1026. * src/usage_text.h
  1027. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1029. declared as non-const previously is now const and defined in class
  1030. definition.
  1031. * src/AbstractBtMessage.cc
  1032. * src/AbstractBtMessage.h
  1033. * src/BtAllowedFastMessage.cc
  1034. * src/BtAllowedFastMessage.h
  1035. * src/BtBitfieldMessage.h
  1036. * src/BtCancelMessage.cc
  1037. * src/BtCancelMessage.h
  1038. * src/BtChokeMessage.cc
  1039. * src/BtChokeMessage.h
  1040. * src/BtExtendedMessage.cc
  1041. * src/BtExtendedMessage.h
  1042. * src/BtHandshakeMessage.cc
  1043. * src/BtHandshakeMessage.h
  1044. * src/BtHaveAllMessage.cc
  1045. * src/BtHaveAllMessage.h
  1046. * src/BtHaveMessage.cc
  1047. * src/BtHaveMessage.h
  1048. * src/BtHaveNoneMessage.cc
  1049. * src/BtHaveNoneMessage.h
  1050. * src/BtInterestedMessage.cc
  1051. * src/BtInterestedMessage.h
  1052. * src/BtKeepAliveMessage.cc
  1053. * src/BtKeepAliveMessage.h
  1054. * src/BtMessage.h
  1055. * src/BtNotInterestedMessage.cc
  1056. * src/BtNotInterestedMessage.h
  1057. * src/BtPieceMessage.h
  1058. * src/BtPortMessage.cc
  1059. * src/BtPortMessage.h
  1060. * src/BtRejectMessage.cc
  1061. * src/BtRejectMessage.h
  1062. * src/BtRequestMessage.cc
  1063. * src/BtRequestMessage.h
  1064. * src/BtSuggestPieceMessage.cc
  1065. * src/BtSuggestPieceMessage.h
  1066. * src/BtUnchokeMessage.cc
  1067. * src/BtUnchokeMessage.h
  1068. * src/SimpleBtMessage.cc
  1069. * src/SimpleBtMessage.h
  1070. * test/MockBtMessage.h
  1071. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. Use FileEntry::exists()
  1073. * src/MultiDiskAdaptor.cc
  1074. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Added exists()
  1076. * src/FileEntry.cc
  1077. * src/FileEntry.h
  1078. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Added missing prefix dir.
  1080. * src/download_helper.cc
  1081. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1083. * src/CopyDiskAdaptor.cc: Removed
  1084. * src/CopyDiskAdaptor.h: Removed
  1085. * src/DefaultPieceStorage.cc
  1086. * src/Makefile.am
  1087. * src/OptionHandlerFactory.cc
  1088. * src/prefs.cc
  1089. * src/prefs.h
  1090. * src/usage_text.h
  1091. * test/CopyDiskAdaptorTest.cc: Removed
  1092. * test/Makefile.am
  1093. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1094. Rewritten isSameFileBeingDownloaded()
  1095. * src/RequestGroupMan.cc
  1096. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Removed getName() from DownloadContext. getName() is declared in
  1098. BtContext.
  1099. * src/BtContext.h
  1100. * src/DownloadContext.h
  1101. * src/SingleFileDownloadContext.cc
  1102. * src/SingleFileDownloadContext.h
  1103. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1104. in AbstractSingleDiskAdaptor.
  1105. * src/AbstractSingleDiskAdaptor.h
  1106. * src/DiskAdaptor.h
  1107. * src/MultiDiskAdaptor.h
  1108. * src/RequestGroup.cc
  1109. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1110. MultiDiskAdaptor.
  1111. * src/DefaultPieceStorage.cc
  1112. * src/MultiDiskAdaptor.cc
  1113. * src/MultiDiskAdaptor.h
  1114. * test/MultiDiskAdaptorTest.cc
  1115. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. FileEntry::getPath() contains store(top level) directory to
  1117. simplify path handling operation. In the previous implementation,
  1118. store directory is concatenated to FileEntry::getPath() in
  1119. DownloadContext.
  1120. * src/BtDependency.cc
  1121. * src/BtPostDownloadHandler.cc
  1122. * src/CopyDiskAdaptor.cc
  1123. * src/DefaultBtContext.cc
  1124. * src/DirectDiskAdaptor.cc
  1125. * src/FileEntry.cc
  1126. * src/FileEntry.h
  1127. * src/FtpNegotiationCommand.cc
  1128. * src/HttpResponse.cc
  1129. * src/HttpResponseCommand.cc
  1130. * src/Metalink2RequestGroup.cc
  1131. * src/MultiDiskAdaptor.cc
  1132. * src/MultiDiskAdaptor.h
  1133. * src/MultiFileAllocationIterator.cc
  1134. * src/RequestGroup.cc
  1135. * src/SingleFileDownloadContext.cc
  1136. * src/SingleFileDownloadContext.h
  1137. * src/download_helper.cc
  1138. * test/BtDependencyTest.cc
  1139. * test/CopyDiskAdaptorTest.cc
  1140. * test/DefaultBtContextTest.cc
  1141. * test/DefaultBtProgressInfoFileTest.cc
  1142. * test/DirectDiskAdaptorTest.cc
  1143. * test/DownloadHelperTest.cc
  1144. * test/FileEntryTest.cc
  1145. * test/MultiDiskAdaptorTest.cc
  1146. * test/MultiFileAllocationIteratorTest.cc
  1147. * test/RequestGroupTest.cc
  1148. * test/SingleFileDownloadContextTest.cc
  1149. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Fixed compiler warning
  1151. * src/download_helper.cc
  1152. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Throw exception if same infohash torrent is now downloading.
  1154. * src/RequestGroup.cc
  1155. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Added --dry-run option. In this mode, aria2 just checks whether
  1157. the remote file is available and doesn't download data. This
  1158. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1159. are canceled in this mode.
  1160. * src/FtpNegotiationCommand.cc
  1161. * src/HttpResponseCommand.cc
  1162. * src/HttpResponseCommand.h
  1163. * src/OptionHandlerFactory.cc
  1164. * src/RequestGroup.cc
  1165. * src/RequestGroupMan.cc
  1166. * src/prefs.cc
  1167. * src/prefs.h
  1168. * src/usage_text.h
  1169. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Fixed compiler waring
  1171. * test/UriListParserTest.cc
  1172. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Parse options in -i list using OptionParser.
  1174. * src/UriListParser.cc
  1175. * src/UriListParser.h
  1176. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Don't reset URI in retry to avoid additional round trips because
  1178. of redirects.
  1179. * src/AbstractCommand.cc
  1180. * src/OptionHandlerFactory.cc
  1181. * src/prefs.cc
  1182. * src/prefs.h
  1183. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Declared hide() in OptionHandler.
  1185. * src/NameMatchOptionHandler.h
  1186. * src/OptionHandler.h
  1187. * src/OptionHandlerImpl.h
  1188. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1189. Updated doc
  1190. * src/Peer.h
  1191. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Added log message in setStatusInternal()
  1193. * src/ServerStat.cc
  1194. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1196. effectively exclude failed server.
  1197. * src/AbstractCommand.cc
  1198. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Added --index-out option to specify each file path for torrent.
  1200. Here index shown in --show-files option is used to specify which
  1201. file path should be altered. For example, to change the file path
  1202. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1203. option multiple times: --index-out=1=aria2.tar.bz2
  1204. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1205. available. This option can be specified in -i list.
  1206. * src/DefaultBtContext.cc
  1207. * src/DefaultBtContext.h
  1208. * src/MultiDiskAdaptor.cc
  1209. * src/MultiDiskAdaptor.h
  1210. * src/MultiFileAllocationIterator.cc
  1211. * src/OptionHandlerFactory.cc
  1212. * src/OptionHandlerImpl.h
  1213. * src/Util.cc
  1214. * src/Util.h
  1215. * src/download_helper.cc
  1216. * src/prefs.cc
  1217. * src/prefs.h
  1218. * src/usage_text.h
  1219. * test/DefaultBtContextTest.cc
  1220. * test/MultiDiskAdaptorTest.cc
  1221. * test/MultiFileAllocationIteratorTest.cc
  1222. * test/UtilTest.cc
  1223. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Use Util::pathJoin()
  1225. * src/MetalinkParserController.cc
  1226. * test/test.xml
  1227. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Use Util::pathJoin()
  1229. * src/DefaultBtContext.cc
  1230. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Added Util::pathJoin()
  1232. * src/Util.h
  1233. * test/UtilTest.cc
  1234. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1235. Applied basename function to remove directory element in
  1236. content-disposition value.
  1237. Return empty string if content-disposition value is ".." or ".".
  1238. * src/Util.cc
  1239. * test/UtilTest.cc
  1240. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Added --max-overall-download-limit in man page.
  1242. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1243. * doc/aria2c.1.txt
  1244. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Added --max-overall-download-limit option. Now --max-upload-limit
  1246. option is not ignored when --max-overall-upload-limit option has
  1247. non-zero value. aria2 checks download(upload) speed in the order:
  1248. first checks overall speed limit and if it is not exceeded, then
  1249. checks speed limit per download. Thus you can specify both
  1250. value. For example, set --max-overall-download-limit=1M and
  1251. --max-download-limit=500K to prevent from one download from eating
  1252. all overall speed limit.
  1253. * src/DefaultBtInteractive.cc
  1254. * src/DefaultBtInteractive.h
  1255. * src/DefaultBtMessageDispatcher.cc
  1256. * src/DefaultBtMessageDispatcher.h
  1257. * src/DownloadCommand.cc
  1258. * src/DownloadCommand.h
  1259. * src/FtpNegotiationCommand.cc
  1260. * src/HttpResponseCommand.cc
  1261. * src/OptionHandlerFactory.cc
  1262. * src/PeerInteractionCommand.cc
  1263. * src/RequestGroup.cc
  1264. * src/RequestGroup.h
  1265. * src/RequestGroupMan.cc
  1266. * src/RequestGroupMan.h
  1267. * src/prefs.cc
  1268. * src/prefs.h
  1269. * src/usage_text.h
  1270. * test/DefaultBtMessageDispatcherTest.cc
  1271. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Documented select-file option in Input File section.
  1273. Documented --http-auth-challenge option.
  1274. * doc/aria2c.1.txt
  1275. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Now select-file can be specified in the uri list(-i list).
  1277. * src/BtContext.cc
  1278. * src/BtContext.h
  1279. * src/RequestGroup.cc
  1280. * src/Sequence.h
  1281. * src/download_helper.cc
  1282. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Made the upper value of --max-concurrent-downloads options unlimited.
  1284. * src/OptionHandlerFactory.cc
  1285. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Fixed the bug that disk writer is not created even if it shares
  1287. same piece with the preceding file if the length of previous file
  1288. is 0.
  1289. * src/MultiDiskAdaptor.cc
  1290. * test/MultiDiskAdaptorTest.cc
  1291. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1292. In BitTorrent, Open files in read-only mode for hash check. After
  1293. that, re-open file in read/write mode only when the download is
  1294. not finished.
  1295. * src/AbstractDiskWriter.cc
  1296. * src/AbstractDiskWriter.h
  1297. * src/AbstractSingleDiskAdaptor.cc
  1298. * src/AbstractSingleDiskAdaptor.h
  1299. * src/BtCheckIntegrityEntry.cc
  1300. * src/DiskAdaptor.h
  1301. * src/DiskWriter.h
  1302. * src/MultiDiskAdaptor.cc
  1303. * src/MultiDiskAdaptor.h
  1304. * src/RequestGroup.cc
  1305. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Added --http-auth-challenge option. If it is set to true(by
  1307. default), aria2 sends HTTP authorization header only when it is
  1308. requested by the server. If false is set, then authorization
  1309. header is always sent to the server. This is useful for servers
  1310. that don't respond 401 code when authentication is required.
  1311. There is an exception: if username and password are embedded in
  1312. URI, authorization header is always sent to the server regardless
  1313. of this option.
  1314. * src/AuthConfigFactory.cc
  1315. * src/HttpSkipResponseCommand.cc
  1316. * src/OptionHandlerFactory.cc
  1317. * src/prefs.cc
  1318. * src/prefs.h
  1319. * src/usage_text.h
  1320. * test/AuthConfigFactoryTest.cc
  1321. * test/HttpRequestTest.cc
  1322. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1323. * Release 1.2.0
  1324. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1326. Thanks to all translators.
  1327. * po/es.po
  1328. * po/ja.po
  1329. * po/ru.po
  1330. * po/uk.po
  1331. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. Call deleteSocketForReadCheck() before socket is closed.
  1333. * src/HttpListenCommand.cc
  1334. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Defined virtual destructor for BObject.
  1336. * src/bencode.h
  1337. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Rewritten BDE to make it efficient.
  1339. * src/bencode.cc
  1340. * src/bencode.h
  1341. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Removed function throw list.
  1343. * src/bencode.cc
  1344. * src/bencode.h
  1345. * test/BencodeTest.cc
  1346. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Enclosed all URLs in double quotes in command-line examples.
  1348. * doc/aria2c.1.txt
  1349. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Updated reference/see also section.
  1351. * README
  1352. * doc/aria2c.1.txt
  1353. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Reorganized man page based on man man-pages.
  1355. * doc/aria2c.1.txt
  1356. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1358. because same documents are available in man page. Added
  1359. References section.
  1360. * README
  1361. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1363. PERFORMANCE PROFILE section.
  1364. * doc/aria2c.1.txt
  1365. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Rewritten the section for configuration file.
  1367. * README
  1368. * doc/aria2c.1.txt
  1369. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Fixed the segmentation fault during execution of choking algorithm
  1371. in leecher state because of broken compare operator
  1372. implementation.
  1373. * src/BtLeecherStateChoke.cc
  1374. * src/BtLeecherStateChoke.h
  1375. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Open file in binary mode.
  1377. * src/CookieStorage.cc
  1378. * src/DHTSetup.cc
  1379. * src/DHTUtil.cc
  1380. * src/Netrc.cc
  1381. * src/NsCookieParser.cc
  1382. * src/ProtocolDetector.cc
  1383. * src/RequestGroupMan.cc
  1384. * src/Signature.cc
  1385. * src/bencode.cc
  1386. * src/download_helper.cc
  1387. * src/option_processing.cc
  1388. * test/CookieParserTest.cc
  1389. * test/DefaultBtProgressInfoFileTest.cc
  1390. * test/FileTest.cc
  1391. * test/GZipDecoderTest.cc
  1392. * test/RequestGroupManTest.cc
  1393. * test/SignatureTest.cc
  1394. * test/SingleFileAllocationIteratorTest.cc
  1395. * test/UriListParserTest.cc
  1396. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Removed operator[] because it is ambiguous with built-in []
  1398. operator.
  1399. * src/array_fun.h
  1400. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Fixed compile error
  1402. * src/OptionParser.cc
  1403. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Added missing call to arrayWrapperConst
  1405. * test/array_funTest.cc
  1406. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Use array_wrapper instead of array_ptr.
  1408. * src/DHTRoutingTableDeserializer.cc
  1409. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1411. * src/array_fun.h
  1412. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Added array_wrapper template.
  1414. * src/array_fun.h
  1415. * test/array_funTest.cc
  1416. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Use operator T* of array_ptr.
  1418. * src/OptionParser.cc
  1419. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Use localhost instead of 127.0.0.1
  1421. * test/FtpConnectionTest.cc
  1422. * test/MSEHandshakeTest.cc
  1423. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Added operator T*
  1425. * src/array_fun.h
  1426. * test/array_funTest.cc
  1427. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Use dynamically allocated char array to detect memory access
  1429. violation.
  1430. * src/DHTRoutingTableDeserializer.cc
  1431. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1432. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1433. defined.
  1434. * src/PeerMessageUtil.cc
  1435. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1437. * configure.ac
  1438. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Added a check to see struct sockaddr_in has sin_len member.
  1440. * configure.ac
  1441. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1442. Fixed buffer overrun.
  1443. * src/DHTRoutingTableDeserializer.cc
  1444. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1445. Added LL for long long int constant.
  1446. * test/FtpConnectionTest.cc
  1447. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Casted to unsigned int to suppress compiler warning on netbsd.
  1449. * src/BtRuntime.h
  1450. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1451. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1452. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1453. type time_t.
  1454. * src/SimpleLogger.cc
  1455. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Added test for FtpConnection::receiveSizeResponse().
  1457. * test/FtpConnectionTest.cc
  1458. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Fix epoll error on the old kernel 2.6.8 or ealier.
  1460. * src/EpollEventPoll.cc
  1461. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Use Util::parseLLInt instead of sscanf for portability. The
  1463. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1464. * src/FtpConnection.cc
  1465. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1467. block. It should not filter anything.
  1468. * src/BitfieldMan.cc
  1469. * src/ConsoleStatCalc.cc
  1470. * test/BitfieldManTest.cc
  1471. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Fixed the bug that the boolean options that don't take arguments
  1473. don't work.
  1474. * src/OptionHandlerImpl.h
  1475. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Fixed broken selected file BitTorrent download.
  1477. * src/MultiDiskAdaptor.cc
  1478. * test/MultiDiskAdaptorTest.cc
  1479. * test/MultiFileAllocationIteratorTest.cc
  1480. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Fixed #define guard for EpollEventPoll
  1482. * src/EpollEventPoll.h
  1483. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Wait 2 seconds. 1 second is sometimes not enough.
  1485. * test/TimeSeedCriteriaTest.cc
  1486. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. Use localhost instead of 127.0.0.1.
  1488. * test/DHTConnectionImplTest.cc
  1489. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1490. Suppressed compiler warning.
  1491. * src/AdaptiveURISelector.cc
  1492. * src/DefaultPieceStorage.cc
  1493. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Defined virtual destructor.
  1495. * src/MetalinkParserState.h
  1496. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Give NULL for second argument of getaddrinfo instead of "0".
  1498. * src/NameResolver.cc
  1499. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1501. included strptime doesn't parse data for this format.
  1502. * src/FtpConnection.cc
  1503. * test/FtpConnectionTest.cc
  1504. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Removed tests giving -1 for unsigned argument.
  1506. * test/SingleFileDownloadContextTest.cc
  1507. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Don't use sha256 in tests because it might not be supported by the
  1509. SSL library.
  1510. * test/MetalinkProcessorTest.cc
  1511. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Removed tests giving -1 for unsigned argument.
  1513. * test/AlphaNumberDecoratorTest
  1514. * test/BitfieldManTest.cc
  1515. * test/DefaultBtContextTest.cc
  1516. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Fixed compile error without libcares when epoll is available.
  1518. * src/EpollEventPoll.cc
  1519. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Included fstream instead of iostream.
  1521. * test/SignatureTest.cc
  1522. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Removed #include <algorithm>
  1524. * test/RequestGroupTest.cc
  1525. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1527. using RequestGroup::extractURIResult().
  1528. * src/AdaptiveURISelector.cc
  1529. * src/RequestGroup.cc
  1530. * src/RequestGroup.h
  1531. * test/RequestGroupTest.cc
  1532. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Added tests for array_ptr.
  1534. * test/array_funTest.cc
  1535. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Don't send ip parameter to a tracker if ip parameter is empty
  1537. string.
  1538. * src/DefaultBtAnnounce.cc
  1539. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Adjusted line feed.
  1541. * src/version_usage.cc
  1542. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1543. Print tags, possible values when OptionHandlerException is caught.
  1544. * src/option_processing.cc
  1545. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Changed the message for FatalException.
  1547. * src/OptionParser.cc
  1548. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Documented --bt-external-ip option in man page. Updated man pages
  1550. for --proxy-method option.
  1551. * doc/aria2c.1.txt
  1552. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1553. Use GET method for FTP via HTTP proxy.
  1554. * src/FtpInitiateConnectionCommand.cc
  1555. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Changed the default value of --proxy-method option from 'tunnel'
  1557. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1558. option.
  1559. * src/AbstractCommand.cc
  1560. * src/AbstractCommand.h
  1561. * src/FtpInitiateConnectionCommand.cc
  1562. * src/HttpDownloadCommand.cc
  1563. * src/HttpInitiateConnectionCommand.cc
  1564. * src/HttpInitiateConnectionCommand.h
  1565. * src/OptionHandlerFactory.cc
  1566. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1567. Initialized _logger
  1568. * src/SelectEventPoll.cc
  1569. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Defined a copy constructor for the same type.
  1571. * src/SharedHandle.h
  1572. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Added OptionParser::parseArg() which internally uses getopt_long
  1574. to parse command-line options. All command-line options are now
  1575. configured by OptionHandler. No manual editing of struct option*
  1576. is required any more.
  1577. * src/NameMatchOptionHandler.h
  1578. * src/OptionHandler.h
  1579. * src/OptionHandlerFactory.cc
  1580. * src/OptionHandlerImpl.h
  1581. * src/OptionParser.cc
  1582. * src/OptionParser.h
  1583. * src/array_fun.h
  1584. * src/main.cc
  1585. * src/option_processing.cc
  1586. * test/OptionHandlerTest.cc
  1587. * test/OptionParserTest.cc
  1588. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. Fixed configure error with --disable-epoll
  1590. * configure.ac
  1591. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Fixed compile error when HAVE_EPOLL is not defined.
  1593. Fixed linker error on bigendian systems.
  1594. * src/SocketCore.cc
  1595. * src/SocketCore.h
  1596. * test/DefaultBtProgressInfoFileTest.cc
  1597. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Added --bt-external-ip option. You can specify the external IP
  1599. address to report to a BitTorrent tracker. Although this function
  1600. is named 'external', it can accept any kind of IP addresses.
  1601. * src/DefaultBtAnnounce.cc
  1602. * src/OptionHandlerFactory.cc
  1603. * src/option_processing.cc
  1604. * src/prefs.cc
  1605. * src/prefs.h
  1606. * src/usage_text.h
  1607. * test/DefaultBtAnnounceTest.cc
  1608. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Extracted the algorithm to find the longest incremental sequence
  1610. as max_sequence template.
  1611. * src/LongestSequencePieceSelector.cc
  1612. * src/a2algo.h
  1613. * test/Makefile.am
  1614. * test/a2algoTest.cc
  1615. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1617. * src/usage_text.h
  1618. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Updated doc for --uri-selector, --http-server-listen-port and
  1620. --enable-http-server option. Documented --event-poll option.
  1621. * doc/aria2c.1.txt
  1622. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Updated doc for --enable-http-server.
  1624. * src/usage_text.h
  1625. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Documented --http-server-listen-port and --enable-http-server in
  1627. man page.
  1628. * doc/aria2c.1.txt
  1629. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1631. translations. Thanks to all translators.
  1632. * po/es.po
  1633. * po/id.po
  1634. * po/it.po
  1635. * po/ru.po
  1636. * po/uk.po
  1637. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Bump up version number to 1.2.0
  1639. * configure.ac
  1640. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. BtContext::getAnnounceTiers() now returns const reference.
  1642. * src/BtContext.h
  1643. * src/DefaultBtContext.cc
  1644. * src/DefaultBtContext.h
  1645. * test/MockBtContext.h
  1646. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Change the number of retries for tracker request based on the
  1648. number of available tracker in a torrent file.
  1649. * src/TrackerWatcherCommand.cc
  1650. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1651. Added _maxTries property to RequestGroup and assign the option
  1652. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1653. RequestGroup::getMaxTries() instead of
  1654. Option::getAsInt(PREF_MAX_TRIES).
  1655. * src/AbstractCommand.cc
  1656. * src/RequestGroup.cc
  1657. * src/RequestGroup.h
  1658. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1660. Mandriva. I modified the patch: make RequestGroup have the
  1661. timeout value and AdaptiveURISelector directly modifies that
  1662. value.
  1663. * src/AbstractCommand.cc
  1664. * src/AdaptiveURISelector.cc
  1665. * src/AdaptiveURISelector.h
  1666. * src/FtpNegotiationCommand.cc
  1667. * src/RequestGroup.cc
  1668. * src/RequestGroup.h
  1669. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Fixed compiler warning
  1671. * test/IteratableChecksumValidatorTest.cc
  1672. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1674. integrated downloads. This PieceSelector subclass finds the
  1675. longest continuous sequence in the available missing pieces and
  1676. selects the last index of such sequence. This makes HTTP/FTP
  1677. connections less interrupted by the pieces obtained by BitTorrent
  1678. peers.
  1679. * src/DefaultPieceStorage.cc
  1680. * src/DefaultPieceStorage.h
  1681. * src/LongestSequencePieceSelector.cc
  1682. * src/LongestSequencePieceSelector.h
  1683. * src/Makefile.am
  1684. * src/PieceSelector.h
  1685. * src/RarestPieceSelector.h
  1686. * src/RequestGroup.cc
  1687. * test/BtDependencyTest.cc
  1688. * test/DefaultPieceStorageTest.cc
  1689. * test/IteratableChecksumValidatorTest.cc
  1690. * test/LongestSequencePieceSelectorTest.cc
  1691. * test/Makefile.am
  1692. * test/SegmentManTest.cc
  1693. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Fixed the bug that the average speed is wrong in
  1695. http/ftp/BitTorrent integrated download. Only the download bytes
  1696. in BitTorrent were considered.
  1697. * src/RequestGroup.cc
  1698. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Choose port for BitTorrent/DHT randomly from the specified range.
  1700. * src/DHTConnectionImpl.cc
  1701. * src/PeerListenCommand.cc
  1702. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Send HTTP Authorization header only if it is requested by the
  1704. server(response 401). There are some exceptions. The authorization
  1705. header for proxy is always sent if it is available without request
  1706. by the server. If username/password is specified in the URI, it
  1707. is immediately sent to the server without request by the server.
  1708. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1709. SharedHandle<AuthConfig>().
  1710. NetrcAuthResolver::resolveAuthConfig() returns
  1711. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1712. * src/AbstractAuthResolver.cc
  1713. * src/AbstractProxyRequestCommand.cc
  1714. * src/AuthConfigFactory.cc
  1715. * src/AuthConfigFactory.h
  1716. * src/HttpConnection.cc
  1717. * src/HttpRequest.cc
  1718. * src/HttpRequest.h
  1719. * src/HttpResponse.cc
  1720. * src/HttpResponseCommand.cc
  1721. * src/HttpSkipResponseCommand.cc
  1722. * test/AuthConfigFactoryTest.cc
  1723. * test/HttpRequestTest.cc
  1724. * test/HttpResponseTest.cc
  1725. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1726. Remove leading "--" from help keyword and a substring after "="
  1727. from help keyword, so that one can query options by '-h--max-' or
  1728. '-hmax-peers=10'.
  1729. * src/option_processing.cc
  1730. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Rewritten PStringVisitor and its implementation.
  1732. * src/PStringBuildVisitor.cc
  1733. * src/PStringBuildVisitor.h
  1734. * src/PStringDatum.h
  1735. * src/PStringNumLoop.h
  1736. * src/PStringSegment.cc
  1737. * src/PStringSegment.h
  1738. * src/PStringSelect.h
  1739. * src/PStringVisitor.h
  1740. * src/download_helper.cc
  1741. * test/PStringBuildVisitorTest.cc
  1742. * test/ParameterizedStringParserTest.cc
  1743. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Persist connection between the built-in HTTP server and a client
  1745. if a client supports keep-alive. Fixed the bug that aria2 exits
  1746. when the HTTP server receives EOF from a client.
  1747. * src/HttpServer.cc
  1748. * src/HttpServer.h
  1749. * src/HttpServerCommand.cc
  1750. * src/HttpServerCommand.h
  1751. * src/HttpServerResponseCommand.cc
  1752. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Added experimental built-in HTTP server. Currently, when a client
  1754. accesses to the server, it responds with the current download
  1755. progress. By default, it is disabled. To enable the server, give
  1756. --enable-http-server option. To change the default port number
  1757. for the server to listen to, use --http-server-listen-port option.
  1758. The response HTML is very simple and refreshes it self each 1
  1759. second. Because of this refresh, you see flicker in normal web
  1760. browser such as Firefox. I recommend to use console-based browser
  1761. such as elinks, w3m. To connect to the server, run 'elinks
  1762. http://localhost:6800/' while running aria2. Please replace port
  1763. number '6800'(which is default) with your preference.
  1764. * src/DownloadEngineFactory.cc
  1765. * src/HttpHeader.cc
  1766. * src/HttpHeader.h
  1767. * src/HttpHeaderProcessor.cc
  1768. * src/HttpHeaderProcessor.h
  1769. * src/HttpListenCommand.cc
  1770. * src/HttpListenCommand.h
  1771. * src/HttpServer.cc
  1772. * src/HttpServer.h
  1773. * src/HttpServerCommand.cc
  1774. * src/HttpServerCommand.h
  1775. * src/HttpServerResponseCommand.cc
  1776. * src/HttpServerResponseCommand.h
  1777. * src/Makefile.am
  1778. * src/OptionHandlerFactory.cc
  1779. * src/Util.cc
  1780. * src/Util.h
  1781. * src/help_tags.h
  1782. * src/option_processing.cc
  1783. * src/prefs.cc
  1784. * src/prefs.h
  1785. * src/usage_text.h
  1786. * test/HttpHeaderProcessorTest.cc
  1787. * test/UtilTest.cc
  1788. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Removed.
  1790. * src/CheckIntegrityMan.cc
  1791. * src/FileAllocationMan.cc
  1792. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Made (piece) hash check sequential for each RequestGroup because
  1794. simultaneous hash check is slower than sequential execution.
  1795. * src/CheckIntegrityCommand.cc
  1796. * src/CheckIntegrityDispatcherCommand.cc
  1797. * src/CheckIntegrityDispatcherCommand.h
  1798. * src/CheckIntegrityMan.h
  1799. * src/ConsoleStatCalc.cc
  1800. * src/DownloadCommand.cc
  1801. * src/DownloadEngine.cc
  1802. * src/DownloadEngine.h
  1803. * src/DownloadEngineFactory.cc
  1804. * src/Makefile.am
  1805. * src/Makefile.in
  1806. * src/RequestGroup.cc
  1807. * src/StatCalc.h
  1808. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1809. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1810. SequentialDispatcherCommand.
  1811. * src/FileAllocationDispatcherCommand.cc
  1812. * src/SequentialDispatcherCommand.h
  1813. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Rewritten FileAllocationDispatcherCommand using brand new
  1815. SequentialDispatcherCommand.
  1816. * src/DownloadEngineFactory.cc
  1817. * src/FileAllocationCommand.cc
  1818. * src/FileAllocationDispatcherCommand.cc
  1819. * src/FileAllocationDispatcherCommand.h
  1820. * src/Makefile.am
  1821. * src/SequentialDispatcherCommand.h
  1822. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Replaced FileAllocationMan with
  1824. SequentialPicker<FileAllocationEntry>.
  1825. * src/BtCheckIntegrityEntry.cc
  1826. * src/ConsoleStatCalc.cc
  1827. * src/DownloadEngine.cc
  1828. * src/DownloadEngine.h
  1829. * src/DownloadEngineFactory.cc
  1830. * src/FileAllocationCommand.cc
  1831. * src/FileAllocationDispatcherCommand.cc
  1832. * src/FileAllocationMan.h
  1833. * src/Makefile.am
  1834. * src/SequentialPicker.h
  1835. * src/StatCalc.h
  1836. * src/StreamCheckIntegrityEntry.cc
  1837. * test/Makefile.am
  1838. * test/SequentialPickerTest.cc
  1839. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1840. Added doc for adaptive URI selector.
  1841. * doc/aria2c.1.txt
  1842. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. Added doc for adaptive URI selector.
  1844. * src/usage_text.h
  1845. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Added doc for --bt-max-peers option.
  1847. * doc/aria2c.1.txt
  1848. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1849. Added doc for --bt-hash-check-seed option.
  1850. * doc/aria2c.1.txt
  1851. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1852. Documented exit codes.
  1853. * doc/aria2c.1.txt
  1854. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. Added --bt-max-peers option to specify the maximum number of peers
  1856. per torrent. 0 means unlimited number of peers.
  1857. * src/ActivePeerConnectionCommand.cc
  1858. * src/BtRuntime.h
  1859. * src/DefaultPeerStorage.cc
  1860. * src/DefaultPeerStorage.h
  1861. * src/OptionHandlerFactory.cc
  1862. * src/RequestGroup.cc
  1863. * src/option_processing.cc
  1864. * src/prefs.cc
  1865. * src/prefs.h
  1866. * src/usage_text.h
  1867. * test/DefaultPeerStorageTest.cc
  1868. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1869. Added --bt-hash-check-seed option. If true is given to this
  1870. option, after hash check using --check-integrity option and file
  1871. is complete, continue to seed file. If you want to check file and
  1872. download it only when it is damaged or incomplete, set this option
  1873. to false. This option has effect only on BitTorrent download.
  1874. The default value is true(This is the same behavior with the
  1875. previous release).
  1876. * src/BtCheckIntegrityEntry.cc
  1877. * src/OptionHandlerFactory.cc
  1878. * src/option_processing.cc
  1879. * src/prefs.cc
  1880. * src/prefs.h
  1881. * src/usage_text.h
  1882. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Updated copyright year.
  1884. * src/version_usage.cc
  1885. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1886. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1887. * doc/aria2c.1.txt
  1888. * src/usage_text.h
  1889. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Made the max value of split option unlimited.
  1891. * doc/aria2c.1.txt
  1892. * src/OptionHandlerFactory.cc
  1893. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Fixed compile warning/error.
  1895. * src/DownloadResult.h
  1896. * src/HttpDownloadCommand.cc
  1897. * src/ServerStat.cc
  1898. * test/RequestGroupTest.cc
  1899. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1900. Added --event-poll option to select the method for polling events.
  1901. The available methods are "select" and "epoll". "epoll" is
  1902. available on Linux only. The earlier release has the compile
  1903. option to choose from these methods.
  1904. * configure.ac
  1905. * src/RequestGroupMan.cc
  1906. * src/OptionHandlerFactory.cc
  1907. * src/EpollEventPoll.h
  1908. * src/StreamFileAllocationEntry.cc
  1909. * src/a2io.h
  1910. * src/SelectEventPoll.h
  1911. * src/option_processing.cc
  1912. * src/prefs.h
  1913. * src/EpollEventPoll.cc
  1914. * src/EventPoll.h
  1915. * src/SocketCore.h
  1916. * src/Makefile.am
  1917. * src/main.cc
  1918. * src/DownloadEngine.h
  1919. * src/SelectEventPoll.cc
  1920. * src/DownloadEngine.cc
  1921. * src/SocketCore.cc
  1922. * src/DownloadEngineFactory.cc
  1923. * src/Makefile.in
  1924. * src/prefs.cc
  1925. * src/usage_text.h
  1926. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Included RecoverableException.h from main.cc
  1928. * src/main.cc
  1929. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1931. now returns last error encountered in the HTTP/FTP downloads as a
  1932. exit status value. If all downloads finished successfully, aria2
  1933. returns 0. The error code is defined in src/DownloadResult.h.
  1934. The error occurred in the download currently in progress is not
  1935. reported as a last error. If no error has encountered but there
  1936. are in progress or waiting downloads, aria2 returns 7.
  1937. * src/AbstractCommand.cc
  1938. * src/DlAbortEx.h
  1939. * src/DlRetryEx.h
  1940. * src/DownloadCommand.cc
  1941. * src/DownloadFailureException.h
  1942. * src/DownloadResult.h
  1943. * src/FtpNegotiationCommand.cc
  1944. * src/HttpSkipResponseCommand.cc
  1945. * src/Makefile.am
  1946. * src/MultiUrlRequestInfo.cc
  1947. * src/MultiUrlRequestInfo.h
  1948. * src/RecoverableException.h
  1949. * src/RequestGroup.cc
  1950. * src/RequestGroup.h
  1951. * src/RequestGroupMan.cc
  1952. * src/RequestGroupMan.h
  1953. * src/URIResult.cc
  1954. * src/URIResult.h
  1955. * src/main.cc
  1956. * src/option_processing.cc
  1957. * test/RequestGroupTest.cc
  1958. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1960. patch adds AdaptiveURISelector, which selects one of the bests
  1961. mirrors for first and reserved connections. For supplementary
  1962. ones, it returns mirrors which has not been tested yet, and if
  1963. each of them already tested, returns mirrors which has to be
  1964. tested again. Otherwise, it doesn't return anymore mirrors.
  1965. * src/AdaptiveURISelector.cc
  1966. * src/AdaptiveURISelector.h
  1967. * src/FtpNegotiationCommand.cc
  1968. * src/HttpResponseCommand.cc
  1969. * src/Makefile.am
  1970. * src/Makefile.in
  1971. * src/OptionHandlerFactory.cc
  1972. * src/RequestGroup.cc
  1973. * src/RequestGroup.h
  1974. * src/RequestGroupMan.cc
  1975. * src/ServerStat.cc
  1976. * src/ServerStat.h
  1977. * src/ServerStatMan.cc
  1978. * src/SpeedCalc.cc
  1979. * src/URISelector.h
  1980. * src/prefs.cc
  1981. * src/prefs.h
  1982. * test/RequestGroupManTest.cc
  1983. * test/ServerStatManTest.cc
  1984. * test/ServerStatTest.cc
  1985. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Fixed unit test error.
  1987. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1988. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. * Release 1.1.2
  1990. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Updated Russian translation. Thanks to the translators.
  1992. * po/ru.po
  1993. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. Added the description of --use-head option to man page.
  1995. * doc/aria2c.1.txt
  1996. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1997. Bump up version number to 1.1.2
  1998. * configure.ac
  1999. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2000. Added --use-head option to toggle whether HEAD method should be
  2001. used in the first HTTP request. By default aria2 uses HEAD method
  2002. as the first request. When the server doesn't recognize HEAD, then
  2003. give aria2 --use-head=false to force aria2 to use GET method
  2004. instead.
  2005. * src/OptionHandlerFactory.cc
  2006. * src/RequestGroupMan.cc
  2007. * src/option_processing.cc
  2008. * src/prefs.cc
  2009. * src/prefs.h
  2010. * src/usage_text.h
  2011. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2012. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2013. message is received before CHOKE message. The old implementation
  2014. doen't clear the use-bit of the piece when recieved REJECT
  2015. message.
  2016. * src/DefaultBtMessageDispatcher.cc
  2017. * test/DefaultBtMessageDispatcherTest.cc
  2018. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. * Release 1.1.1
  2020. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Bump up version number to 1.1.1.
  2022. * configure.ac
  2023. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2025. is printed repeatedly.
  2026. * src/ConsoleStatCalc.cc
  2027. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. * Release 1.1.0
  2029. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Added ifdef clause for conditional compilation.
  2031. * src/main.cc
  2032. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2034. translations. Thanks to all translators.
  2035. * po/ja.po
  2036. * po/ru.po
  2037. * po/uk.po
  2038. * po/zh_CN.po
  2039. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Added the preceding ">>> " before the message "Printing the
  2041. contents of file..." to make the output more readable.
  2042. * src/main.cc
  2043. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2044. Added try-catch block in the loop in showFiles() to continue the
  2045. operation even if the exception occurred in one file.
  2046. * src/main.cc (showFiles)
  2047. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Made messages in showFiles() translatable.
  2049. * po/aria2.pot
  2050. * src/main.cc
  2051. * src/message.h
  2052. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2053. Print the contents of Torrent/Metalink files are printed without
  2054. -T/-M options.
  2055. * src/main.cc
  2056. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2057. Escaped '--' with '\--'
  2058. * README
  2059. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. Updated "How to build" section in README. Mentioned about
  2061. --with-ca-bundle compile option.
  2062. * README
  2063. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Bump up version number to 1.1.0.
  2065. * configure.ac
  2066. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Added a note for --dht-listen-port option.
  2068. * doc/aria2c.1.txt
  2069. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Update doc for --realtime-chunk-checksum option.
  2071. * doc/aria2c.1.txt
  2072. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Update doc for --realtime-chunk-checksum option.
  2074. * src/usage_text.h
  2075. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2076. Updated French, Japanese, Russian and Ukrainian translations.
  2077. Thanks to all translators.
  2078. * po/fr.po
  2079. * po/ja.po
  2080. * po/ru.po
  2081. * po/uk.po
  2082. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Renamed aria2c.pot to aria2.pot
  2084. * po/aria2.pot
  2085. * po/aria2c.pot: Removed.
  2086. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Removed MetaEntry.h
  2088. * src/Makefile.am
  2089. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2090. Rename file by appending digits if a local file exists and its
  2091. file size is larger than that of remote file with --continue
  2092. option. The old implementation just throws exception in such case.
  2093. * src/RequestGroup.cc
  2094. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Fixed the bug that download progress summary is not printed in the
  2096. interval specified by the option.
  2097. * src/ConsoleStatCalc.cc
  2098. * src/ConsoleStatCalc.h
  2099. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Fixed compiler warning
  2101. * src/Cookie.cc
  2102. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Fixed the cookie implementation based on RFC2965.
  2104. Now if a value in domain field is not started with dot, then
  2105. prepend dot. That means a cookie with domain=sf.net is sent to
  2106. wiki.sf.net.
  2107. * src/Cookie.cc
  2108. * test/CookieParserTest.cc
  2109. * test/CookieStorageTest.cc
  2110. * test/CookieTest.cc
  2111. * test/NsCookieParserTest.cc
  2112. * test/Sqlite3MozCookieParserTest.cc
  2113. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2115. is enabled and the server doesn't support keep-alive.
  2116. * src/AbstractCommand.cc
  2117. * src/DownloadCommand.cc
  2118. * src/HttpDownloadCommand.cc
  2119. * src/HttpDownloadCommand.h
  2120. * src/HttpResponseCommand.cc
  2121. * src/Request.cc
  2122. * src/Request.h
  2123. * test/RequestTest.cc
  2124. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. Removed Dictionary/List/Data and its related classes.
  2126. * src/BencodeVisitor.cc: Removed.
  2127. * src/BencodeVisitor.h: Removed.
  2128. * src/Data.cc: Removed.
  2129. * src/Data.h: Removed.
  2130. * src/Dictionary.cc: Removed.
  2131. * src/Dictionary.h: Removed.
  2132. * src/List.cc: Removed.
  2133. * src/List.h: Removed.
  2134. * src/Makefile.am
  2135. * src/MetaEntry.h: Removed.
  2136. * src/MetaEntryVisitor.h: Removed.
  2137. * src/MetaFileUtil.cc: Removed.
  2138. * src/MetaFileUtil.h: Removed.
  2139. * test/BencodeVisitorTest.cc: Removed.
  2140. * test/DataTest.cc: Removed.
  2141. * test/DictionaryTest.cc: Removed.
  2142. * test/ListTest.cc: Removed.
  2143. * test/Makefile.am
  2144. * test/MetaFileUtilTest.cc: Removed.
  2145. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Removed include of MetaEntry.h
  2147. * test/DHTMessageTrackerEntryTest.cc
  2148. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Use BDE instead of Dictionary/List/Data.
  2150. * src/AnnounceList.cc
  2151. * src/AnnounceList.h
  2152. * test/AnnounceListTest.cc
  2153. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Use BDE instead of Dictionary/List/Data.
  2155. * src/DHTAbstractMessage.cc
  2156. * src/DHTAbstractMessage.h
  2157. * src/DHTAnnouncePeerMessage.cc
  2158. * src/DHTAnnouncePeerMessage.h
  2159. * src/DHTAnnouncePeerReplyMessage.cc
  2160. * src/DHTAnnouncePeerReplyMessage.h
  2161. * src/DHTFindNodeMessage.cc
  2162. * src/DHTFindNodeMessage.h
  2163. * src/DHTFindNodeReplyMessage.cc
  2164. * src/DHTFindNodeReplyMessage.h
  2165. * src/DHTGetPeersMessage.cc
  2166. * src/DHTGetPeersMessage.h
  2167. * src/DHTGetPeersReplyMessage.cc
  2168. * src/DHTGetPeersReplyMessage.h
  2169. * src/DHTMessageFactory.h
  2170. * src/DHTMessageFactoryImpl.cc
  2171. * src/DHTMessageFactoryImpl.h
  2172. * src/DHTMessageReceiver.cc
  2173. * src/DHTMessageTracker.cc
  2174. * src/DHTMessageTracker.h
  2175. * src/DHTPingMessage.cc
  2176. * src/DHTPingMessage.h
  2177. * src/DHTPingReplyMessage.cc
  2178. * src/DHTPingReplyMessage.h
  2179. * src/DHTQueryMessage.cc
  2180. * src/DHTQueryMessage.h
  2181. * src/DHTResponseMessage.cc
  2182. * src/DHTResponseMessage.h
  2183. * test/DHTAnnouncePeerMessageTest.cc
  2184. * test/DHTAnnouncePeerReplyMessageTest.cc
  2185. * test/DHTFindNodeMessageTest.cc
  2186. * test/DHTFindNodeReplyMessageTest.cc
  2187. * test/DHTGetPeersMessageTest.cc
  2188. * test/DHTGetPeersReplyMessageTest.cc
  2189. * test/DHTMessageFactoryImplTest.cc
  2190. * test/DHTMessageTrackerTest.cc
  2191. * test/DHTPingMessageTest.cc
  2192. * test/DHTPingReplyMessageTest.cc
  2193. * test/MockDHTMessageFactory.h
  2194. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Added tests the case where length < 0 is specified.
  2196. * test/BencodeTest.cc
  2197. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2198. Fixed memory leak in decoderawstring()
  2199. * src/bencode.cc
  2200. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2201. Added missing #ifdef guard. Added uc() function for String and
  2202. removeKey() for Dict.
  2203. * src/bencode.cc
  2204. * src/bencode.h
  2205. * test/BencodeTest.cc
  2206. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2207. Use BDE instead of Dictionary/List/Data.
  2208. * src/HandshakeExtensionMessage.cc
  2209. * src/HandshakeExtensionMessage.h
  2210. * test/HandshakeExtensionMessageTest.cc
  2211. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Added --max-overall-upload-limit option. This option limits the
  2213. overall upload speed. Stated in help message that the existing
  2214. --max-upload-limit option limits the upload speed per each
  2215. torrent. Man page is also updated.
  2216. * doc/aria2c.1.txt
  2217. * src/DefaultBtMessageDispatcher.cc
  2218. * src/DefaultBtMessageDispatcher.h
  2219. * src/OptionHandlerFactory.cc
  2220. * src/PeerInteractionCommand.cc
  2221. * src/option_processing.cc
  2222. * src/prefs.cc
  2223. * src/prefs.h
  2224. * src/usage_text.h
  2225. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Use BDE instead of Dictionary/List/Data classes.
  2227. * src/CompactPeerListProcessor.cc
  2228. * src/CompactPeerListProcessor.h
  2229. * src/DefaultBtAnnounce.cc
  2230. * src/DefaultBtContext.cc
  2231. * src/DefaultBtContext.h
  2232. * src/DefaultPeerListProcessor.cc
  2233. * src/DefaultPeerListProcessor.h
  2234. * src/DelegatingPeerListProcessor.cc
  2235. * src/DelegatingPeerListProcessor.h
  2236. * src/PeerListProcessor.h
  2237. * src/UTPexExtensionMessage.cc
  2238. * src/Util.h
  2239. * src/message.h
  2240. * test/DefaultBtContextTest.cc
  2241. * test/DefaultPeerListProcessorTest.cc
  2242. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Added bencode helper functions and BDE class.
  2244. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2245. * src/Makefile.am
  2246. * src/bencode.cc
  2247. * src/bencode.h
  2248. * test/BencodeTest.cc
  2249. * test/Makefile.am
  2250. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2251. Fixed the bug that bad URI is sent to the tracker when the announe
  2252. URI in torrent file includes query.
  2253. * src/DefaultBtAnnounce.cc
  2254. * test/DefaultBtAnnounceTest.cc
  2255. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2256. Added Option::blank().
  2257. Use !Option::blank(name) instead of Option::defined(name) for
  2258. the options that take filename.
  2259. * src/MultiUrlRequestInfo.cc
  2260. * src/Option.cc
  2261. * src/Option.h
  2262. * src/main.cc
  2263. * src/option_processing.cc
  2264. * test/OptionTest.cc
  2265. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Documented the default value of --check-certificate option in man
  2267. page.
  2268. * doc/aria2c.1.txt
  2269. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2270. Enabled --check-certificate by default. Added compile
  2271. time(configure) option --with-ca-bundle to specify CA bundle.
  2272. Warn if --check-certificate=true and --ca-certificate is not
  2273. specified or loading CA certificate is failed.
  2274. * configure.ac
  2275. * src/MultiUrlRequestInfo.cc
  2276. * src/OptionHandlerFactory.cc
  2277. * src/message.h
  2278. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Mentioned https tag in help option.
  2280. * doc/aria2c.1.txt
  2281. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Added `https' tag to help option category. Added https tag to
  2283. --ca-certificate, --certificate, --check-certificate and
  2284. --private-key option.
  2285. * src/OptionHandlerFactory.cc
  2286. * src/help_tags.h
  2287. * src/option_processing.cc
  2288. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Changed the package name from `aria2c' to `aria2' in order to fix
  2290. the packaging issue in Debian and Fedora. The name of the
  2291. executable is not changed.
  2292. * configure.ac
  2293. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Fixed typos
  2295. * src/usage_text.h
  2296. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Fixed typos and updated doc.
  2298. * README
  2299. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Fixed typos
  2301. * doc/aria2c.1.txt
  2302. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2303. Fixed typos
  2304. * src/usage_text.h
  2305. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. Print a message when no files to download.
  2307. * src/download_helper.cc
  2308. * src/main.cc
  2309. * src/message.h
  2310. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. RFC3986 complied Percent-Encoding(urlencode).
  2312. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2313. ones.
  2314. * src/Request.cc
  2315. * src/Util.cc
  2316. * src/Util.h
  2317. * test/BtHandshakeMessageTest.cc
  2318. * test/DefaultBtAnnounceTest.cc
  2319. * test/DefaultBtContextTest.cc
  2320. * test/RequestTest.cc
  2321. * test/UtilTest.cc
  2322. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2323. Fixed the bug that prevents aria2 from downloading 0-length files
  2324. via HTTP/FTP.
  2325. * src/DefaultBtContext.cc
  2326. * src/DefaultBtContext.h
  2327. * src/DownloadContext.h
  2328. * src/FtpNegotiationCommand.cc
  2329. * src/HttpResponseCommand.cc
  2330. * src/HttpResponseCommand.h
  2331. * src/RequestGroup.cc
  2332. * src/SingleFileDownloadContext.cc
  2333. * src/SingleFileDownloadContext.h
  2334. * test/BtPostDownloadHandlerTest.cc
  2335. * test/MetalinkPostDownloadHandlerTest.cc
  2336. * test/MockBtContext.h
  2337. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2338. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2339. * src/option_processing.cc
  2340. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2341. Applied aria2-1.0.1-mingw.patch.
  2342. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2343. mingw.
  2344. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2345. * src/SocketCore.cc
  2346. * src/a2netcompat.h
  2347. * test/SocketCoreTest.cc
  2348. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. * Release 1.0.1
  2350. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Updated Ukrainian and Norwegian Nynorsk translations.
  2352. Thanks to all translators.
  2353. * po/nn.po
  2354. * po/uk.po
  2355. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2356. Don't show download result when -S option is used.
  2357. * src/main.cc
  2358. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Bump up version number to 1.0.1
  2360. * configure.ac
  2361. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2362. Closed files after the test cases in MultiDiskWriterTest::
  2363. testResetDiskWriterEntries(). This will fix the unit test error
  2364. in mingw32 build.
  2365. * test/MultiDiskWriterTest.cc
  2366. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2367. Use HEAD method to get file size from HTTP server for segmented
  2368. downloading.
  2369. The request to the BitTorrent Tracker always uses GET method because
  2370. the response of the tracker is small and it doesn't need segmented
  2371. download.
  2372. * src/FtpNegotiationCommand.cc
  2373. * src/HttpRequest.cc
  2374. * src/HttpResponseCommand.cc
  2375. * src/HttpSkipResponseCommand.cc
  2376. * src/RequestGroup.cc
  2377. * src/RequestGroup.h
  2378. * src/TrackerWatcherCommand.cc
  2379. * test/HttpRequestTest.cc
  2380. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Fixed the bug that causes floating exception when -T option is used and
  2382. no URIs are given.
  2383. * src/download_helper.cc
  2384. * test/DownloadHelperTest.cc
  2385. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2386. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2387. errors in MinGW:
  2388. Closed file after saving server stats (RequestGroupMan.cc)
  2389. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2390. Ignored case & handled 2-digit years (strptime.c)
  2391. Added missing suseconds_t definition (a2time.h)
  2392. Fixed socket CLOSE() define (SocketCore.cc)
  2393. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2394. Changed utime() test values from x000 to x00000 as MinGW failed on
  2395. values less than timezone offset from Unix epoch
  2396. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2397. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2398. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2399. handle negative dates (CookieParserTest.cc)
  2400. * src/a2time.h
  2401. * src/FtpConnection.cc
  2402. * src/RequestGroupMan.cc
  2403. * src/SocketCore.cc
  2404. * src/strptime.c
  2405. * test/CookieParserTest.cc
  2406. * test/CopyDiskAdaptorTest.cc
  2407. * test/FileTest.cc
  2408. * test/FtpConnectionTest.cc
  2409. * test/MultiDiskAdaptorTest.cc
  2410. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2412. * doc/aria2c.1.txt
  2413. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. * Release 1.0.0
  2415. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Added '~' to reserved characters.
  2417. * src/Util.cc
  2418. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Do not urlencode Request::url in setUrl() because we want unmodified
  2420. URL using Request::getUrl()
  2421. * src/Request.cc
  2422. * src/Request.h
  2423. * test/RequestTest.cc
  2424. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2426. Thanks to all translators.
  2427. * po/bg.po
  2428. * po/fr.po
  2429. * po/ja.po
  2430. * po/ru.po
  2431. * po/uk.po
  2432. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Bump up version number to 1.0.0
  2434. * configure.ac
  2435. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Added nosqlite3 build to build_test.sh.
  2437. Renamed noxml as expat.
  2438. * build_test.sh
  2439. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2440. Updated INPUT FILE section.
  2441. * doc/aria2c.1.txt
  2442. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2443. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2444. on big endian systems because test .aria2 files are made for little
  2445. endian systems.
  2446. * test/DefaultBtProgressInfoFileTest.cc
  2447. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Dropped ares support.
  2449. * README
  2450. * configure.ac
  2451. * m4/libares.m4: Removed.
  2452. * src/AsyncNameResolver.cc
  2453. * src/Makefile.am
  2454. * test/Makefile.am
  2455. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2457. Removed const qualifier from DiskWriter::size().
  2458. * src/AbstractDiskWriter.cc
  2459. * src/AbstractDiskWriter.h
  2460. * src/ByteArrayDiskWriter.cc
  2461. * src/ByteArrayDiskWriter.h
  2462. * src/DiskWriter.h
  2463. * test/ByteArrayDiskWriterTest.cc
  2464. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2465. Fixed the bug that causes segmentation fault/bus error during executing
  2466. choking algorithm while seeding. This is caused by improper
  2467. implementation of compare function which returns inconsistent results
  2468. depending on the timing of last unchoke.
  2469. * src/BtSeederStateChoke.cc
  2470. * src/BtSeederStateChoke.h
  2471. * src/DefaultPeerStorage.cc
  2472. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Removed TODO
  2474. * TODO
  2475. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Added a section that explains how to pass argument to options that
  2477. takes optional arguments with its short form.
  2478. * doc/aria2c.1.txt
  2479. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Added -u for the short form of --max-upload-limit option.
  2481. * doc/aria2c.1.txt
  2482. * src/option_processing.cc
  2483. * src/usage_text.h
  2484. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. Added -V for the short form of --check-integrity option.
  2486. Now the argument of --check-integrity option is optional:
  2487. if it is omitted, it is evaluated as true.
  2488. * doc/aria2c.1.txt
  2489. * src/option_processing.cc
  2490. * src/usage_text.h
  2491. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Made the default value of --ftp-pasv option set to true and it can take
  2493. true/false values.
  2494. * src/OptionHandlerFactory.cc
  2495. * src/option_processing.cc
  2496. * src/usage_text.h
  2497. * doc/aria2c.1.txt
  2498. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. Given custom random number generator to std::random_shuffle.
  2500. * src/AnnounceList.cc
  2501. * src/BtLeecherStateChoke.cc
  2502. * src/BtSeederStateChoke.cc
  2503. * src/DefaultBtRequestFactory.cc
  2504. * src/MetalinkEntry.cc
  2505. * src/RarestPieceSelector.cc
  2506. * src/SimpleRandomizer.cc
  2507. * src/SimpleRandomizer.h
  2508. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2509. Now the default value of --enable-direct-io is true.
  2510. * src/OptionHandlerFactory.cc
  2511. * doc/aria2c.1.txt
  2512. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Erase peer before executing onReturningPeer and onErasingPeer
  2514. because choking algorithm called from onReturningPeer doesn't
  2515. like erasing peer in the active peer list.
  2516. * src/DefaultPeerStorage.cc
  2517. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2518. Instead of creating special filename in createDownloadResult() if
  2519. inMemoryDownload() is true, now it is done in getFilePath().
  2520. * src/RequestGroup.cc
  2521. * test/RequestGroupTest.cc
  2522. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2523. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2524. processed in memory. This is the fix for previous comment out.
  2525. * src/MemoryBufferPreDownloadHandler.cc
  2526. * src/RequestGroup.cc
  2527. * src/RequestGroup.h
  2528. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Commented out the code which sets virtual directory path "[MEMORY]"
  2530. propagate directory to store to following RequestGroup.
  2531. * src/MemoryBufferPreDownloadHandler.cc
  2532. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Bump up version number to 1.0.0b
  2534. * configure.ac
  2535. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Added input_uris.txt to EXTRA_DIST
  2537. * test/Makefile.am
  2538. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2539. Removed PeerObject.h from Makefile.am
  2540. * src/Makefile.am
  2541. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Avoid slow seeding
  2543. * src/PeerInteractionCommand.cc
  2544. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Updated usage for -i option.
  2546. * src/usage_text.h (TEXT_INPUT_FILE)
  2547. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. Added INPUT FILE section to man page.
  2549. Escaped fake URLs.
  2550. * doc/aria2c.1.txt
  2551. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2552. Fixed wrong note position for -o option.
  2553. * doc/aria2c.1.txt
  2554. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Fixed compile error without SSL/XML library.
  2556. * src/DefaultBtProgressInfoFile.cc
  2557. * src/DefaultBtProgressInfoFile.h
  2558. * src/FileMetalinkParserState.cc
  2559. * src/RequestGroup.h
  2560. * src/SocketCore.cc
  2561. * src/SocketCore.h
  2562. * src/VerificationMetalinkParserState.cc
  2563. * src/download_helper.h
  2564. * src/main.cc
  2565. * test/DefaultBtProgressInfoFileTest.cc
  2566. * test/DownloadHelperTest.cc
  2567. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Rewritten URI handling functions. They are now provided as a testable
  2569. functions.
  2570. * src/Makefile.am
  2571. * src/RequestGroup.cc
  2572. * src/RequestGroup.h
  2573. * src/download_helper.cc
  2574. * src/download_helper.h
  2575. * src/main.cc
  2576. * test/DownloadHelperTest.cc
  2577. * test/Makefile.am
  2578. * test/input_uris.txt
  2579. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. Quickly terminate commands when ctrl-c is pressed.
  2581. * src/DownloadEngine.cc
  2582. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2583. Quickly terminate idle commands when download finished.
  2584. * src/AbstractCommand.cc
  2585. * src/DownloadCommand.cc
  2586. * src/DownloadEngine.cc
  2587. * src/DownloadEngine.h
  2588. * src/SleepCommand.cc
  2589. * src/SleepCommand.h
  2590. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Added the ability to specify output filename and directory in input
  2592. file.
  2593. Additional parameters are added in the following line of URIs
  2594. with proceeding white space(s), 1 parameter in 1 line.
  2595. The parameter names are the same with the command-line option name
  2596. without proceeding "--". Not all the options are available here:
  2597. at the moment, 'dir' and 'out' options are avialable.
  2598. Please note that out option has no effect against Metalink or BitTorrent
  2599. downloads.
  2600. Example input file:
  2601. http://host/foo-1.1.tar.bz2
  2602. out=foo.tar.bz2
  2603. dir=/tmp/downloads
  2604. http://host/thundermonkey-2.0.tar.bz2
  2605. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2606. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2607. thundermonkey-2.0.tar.bz2 is saved as
  2608. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2609. * src/BtPostDownloadHandler.cc
  2610. * src/Metalink2RequestGroup.cc
  2611. * src/Metalink2RequestGroup.h
  2612. * src/MetalinkPostDownloadHandler.cc
  2613. * src/UriListParser.cc
  2614. * src/UriListParser.h
  2615. * src/main.cc
  2616. * test/Metalink2RequestGroupTest.cc
  2617. * test/UriListParserTest.cc
  2618. * test/filelist1.txt
  2619. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2620. Fixed error when SSL library is not found.
  2621. * configure.ac
  2622. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2623. Cross referenced among -s, -C and -j options.
  2624. Updated usage of -C and -s options.
  2625. * src/usage_text.h
  2626. * doc/aria2c.1.txt
  2627. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Fixed bad cast in 32bit platforms.
  2629. * test/DefaultPieceStorageTest.cc
  2630. (DefaultPieceStorageTest::testGetCompletedLength)
  2631. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Fixed unit test fails on 32bit platforms.
  2633. * test/CookieParserTest.cc
  2634. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Show an average download speed in Download results.
  2636. * src/BtFileAllocationEntry.cc
  2637. * src/DefaultPieceStorage.cc
  2638. * src/DownloadContext.cc
  2639. * src/DownloadContext.h
  2640. * src/DownloadResult.h
  2641. * src/RequestGroup.cc
  2642. * src/RequestGroupMan.cc
  2643. * src/StreamFileAllocationEntry.cc
  2644. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2645. Fixed the bug that metalink file is not processed if Content-Type
  2646. field has a paramter.
  2647. * src/HttpResponse.cc
  2648. * src/HttpResponse.h
  2649. * test/HttpResponseTest.cc
  2650. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Removed unused code.
  2652. * src/DefaultBtAnnounce.cc
  2653. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2655. the value larger than DefaultPieceStorage::getTotalLength() when
  2656. in flight pieces are involved.
  2657. * src/DefaultPieceStorage.cc
  2658. * test/DefaultPieceStorageTest.cc
  2659. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Bump up version number to 1.0.0a.
  2661. * configure.ac
  2662. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. Updated configure.ac
  2664. * configure.ac
  2665. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2666. Added usege for proxy.
  2667. * doc/aria2c.1.txt
  2668. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2669. Added usage for --ca-certificate, --certificate, --private-key and
  2670. --check-certificate options.
  2671. * doc/aria2c.1.txt
  2672. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2673. Updated man page
  2674. * doc/aria2c.1.txt
  2675. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2676. Added --no-proxy option. It receives comman separated hostname or
  2677. domains to which proxy should not be used.
  2678. aria2 honors the environment variable no_proxy to override no-proxy
  2679. value in configuration file. The user can override the environment
  2680. variable no_proxy with --no-proxy command-line option.
  2681. * src/AbstractCommand.cc
  2682. * src/OptionHandlerFactory.cc
  2683. * src/option_processing.cc
  2684. * src/prefs.cc
  2685. * src/prefs.h
  2686. * src/usage_text.h
  2687. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2688. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2689. The CA certificates are specified in --ca-certificate option.
  2690. By default, the verification is disabled. Use --check-certificate
  2691. option to enable it.
  2692. * src/HttpRequestCommand.cc
  2693. * src/LibgnutlsTLSContext.cc
  2694. * src/LibgnutlsTLSContext.h
  2695. * src/LibsslTLSContext.cc
  2696. * src/LibsslTLSContext.h
  2697. * src/MultiUrlRequestInfo.cc
  2698. * src/OptionHandlerFactory.cc
  2699. * src/SocketCore.cc
  2700. * src/SocketCore.h
  2701. * src/a2functional.h
  2702. * src/message.h
  2703. * src/option_processing.cc
  2704. * src/prefs.cc
  2705. * src/prefs.h
  2706. * src/usage_text.h
  2707. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2708. Added client certificate authentication for SSL/TLS.
  2709. Currently a private key must be decrypted for use with aria2.
  2710. If a user accidentally gives encrypted file to aria2 then following
  2711. thing happens:
  2712. If encrypted private key is given to aria2, it behaves differently
  2713. depending on the ssl library it uses. If aria2 built with openssl then
  2714. openssl prompts the user for password. If aria2 build with gnutls then
  2715. aria2 exists with error at start up.
  2716. * src/DownloadEngineFactory.cc
  2717. * src/MultiUrlRequestInfo.cc
  2718. * src/OptionHandlerFactory.cc
  2719. * src/option_processing.cc
  2720. * src/prefs.cc
  2721. * src/prefs.h
  2722. * src/usage_text.h
  2723. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2724. Introduced TLSContext that holds TLS related data that can be shared
  2725. with multiple SSL connections.
  2726. * src/DownloadEngineFactory.cc
  2727. * src/LibgnutlsTLSContext.cc
  2728. * src/LibgnutlsTLSContext.h
  2729. * src/LibsslTLSContext.cc
  2730. * src/LibsslTLSContext.h
  2731. * src/Makefile.am
  2732. * src/SocketCore.cc
  2733. * src/SocketCore.h
  2734. * src/TLSContext.h
  2735. * src/message.h
  2736. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Fixed the bug that the DiskWriter of the first FileEntry whose
  2738. `needsFileAllocation' property is false is not created
  2739. even if it shares a piece with next FileEntry which `requested' property
  2740. is true.
  2741. Fixed the bug that zero-length file is not created if pre file
  2742. allocation is not done.
  2743. * src/MultiDiskAdaptor.cc
  2744. * src/MultiDiskAdaptor.h
  2745. * test/MultiDiskAdaptorTest.cc
  2746. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2747. Added the ability to pool proxy connection.
  2748. The conneciton in FTP with proxy-method=GET is not pooled.
  2749. Proxy-Connection header will not be sent when sending CONNECT method.
  2750. * src/DownloadEngine.cc
  2751. * src/DownloadEngine.h
  2752. * src/FtpFinishDownloadCommand.cc
  2753. * src/FtpInitiateConnectionCommand.cc
  2754. * src/FtpNegotiationCommand.cc
  2755. * src/HttpDownloadCommand.cc
  2756. * src/HttpInitiateConnectionCommand.cc
  2757. * src/HttpRequest.cc
  2758. * src/HttpRequest.h
  2759. * src/HttpResponse.cc
  2760. * src/HttpSkipResponseCommand.cc
  2761. * test/HttpRequestTest.cc
  2762. * test/HttpResponseTest.cc
  2763. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2764. Handle date before epoch.
  2765. To create *bad* Time object, call Time::null().
  2766. * src/CookieParser.cc
  2767. * src/FtpConnection.cc
  2768. * src/FtpConnection.h
  2769. * src/FtpNegotiationCommand.cc
  2770. * src/RequestGroup.cc
  2771. * src/TimeA2.cc
  2772. * src/TimeA2.h
  2773. * test/CookieParserTest.cc
  2774. * test/FtpConnectionTest.cc
  2775. * test/TimeTest.cc
  2776. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2777. Added support for following envrionment variables: http_proxy,
  2778. https_proxy, ftp_proxy and all_proxy.
  2779. Each variable is equivalent to the aria2 option whose name is the
  2780. variable name with '_' replaced with '-'.
  2781. They overrides options specified in aria2.conf file.
  2782. The envrionment variables can be overrode using command-line option.
  2783. * src/option_processing.cc
  2784. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2785. Renamed --http-proxy-method as --proxy-method.
  2786. * src/AbstractCommand.cc
  2787. * src/FtpInitiateConnectionCommand.cc
  2788. * src/HttpInitiateConnectionCommand.cc
  2789. * src/OptionHandlerFactory.cc
  2790. * src/option_processing.cc
  2791. * src/prefs.cc
  2792. * src/prefs.h
  2793. * src/usage_text.h
  2794. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2795. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2796. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2797. Above 3 options and --http-proxy option can handle proxy in URL format
  2798. like: http://user:passwd@host:port.
  2799. If a proxy requires user/password, they must be specified in a URL.
  2800. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2801. instead.
  2802. * src/AbstractCommand.cc
  2803. * src/AbstractCommand.h
  2804. * src/AbstractProxyRequestCommand.cc
  2805. * src/AbstractProxyRequestCommand.h
  2806. * src/AuthConfigFactory.cc
  2807. * src/AuthConfigFactory.h
  2808. * src/FtpFinishDownloadCommand.cc
  2809. * src/FtpInitiateConnectionCommand.cc
  2810. * src/FtpInitiateConnectionCommand.h
  2811. * src/FtpNegotiationCommand.cc
  2812. * src/FtpTunnelRequestCommand.cc
  2813. * src/FtpTunnelRequestCommand.h
  2814. * src/HttpDownloadCommand.cc
  2815. * src/HttpInitiateConnectionCommand.cc
  2816. * src/HttpInitiateConnectionCommand.h
  2817. * src/HttpProxyRequestCommand.cc
  2818. * src/HttpProxyRequestCommand.h
  2819. * src/HttpRequest.cc
  2820. * src/HttpRequest.h
  2821. * src/HttpRequestCommand.cc
  2822. * src/HttpRequestCommand.h
  2823. * src/HttpSkipResponseCommand.cc
  2824. * src/InitiateConnectionCommand.cc
  2825. * src/InitiateConnectionCommand.h
  2826. * src/OptionHandlerFactory.cc
  2827. * src/OptionHandlerImpl.h
  2828. * src/Request.cc
  2829. * src/option_processing.cc
  2830. * src/prefs.cc
  2831. * src/prefs.h
  2832. * src/usage_text.h
  2833. * test/AuthConfigFactoryTest.cc
  2834. * test/HttpRequestTest.cc
  2835. * test/OptionHandlerTest.cc
  2836. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2837. Execute choking algorithm when unchoked and interested peer is
  2838. disconected.
  2839. * src/DefaultPeerStorage.cc
  2840. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2841. Added testcase for BtNotInterestedMessage from unchoked peer.
  2842. * test/BtNotInterestedMessageTest.cc
  2843. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2844. Execute choking algorithm when BtInterestedMessage arrives from
  2845. unchoked peer.
  2846. * src/BtInterestedMessage.cc
  2847. * src/BtInterestedMessage.h
  2848. * src/DefaultBtMessageFactory.cc
  2849. * test/BtInterestedMessageTest.cc
  2850. * test/MockPeerStorage.h
  2851. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2852. AuthConfigFactory is now part of DownloadEngine.
  2853. * src/AbstractProxyRequestCommand.cc
  2854. * src/AuthConfigFactory.h
  2855. * src/DownloadEngine.cc
  2856. * src/DownloadEngine.h
  2857. * src/FtpConnection.cc
  2858. * src/FtpConnection.h
  2859. * src/FtpNegotiationCommand.cc
  2860. * src/HttpConnection.cc
  2861. * src/HttpRequest.cc
  2862. * src/HttpRequest.h
  2863. * src/HttpRequestCommand.cc
  2864. * src/HttpResponse.cc
  2865. * src/HttpResponseCommand.cc
  2866. * src/HttpSkipResponseCommand.cc
  2867. * src/MultiUrlRequestInfo.cc
  2868. * src/main.cc
  2869. * test/FtpConnectionTest.cc
  2870. * test/HttpRequestTest.cc
  2871. * test/HttpResponseTest.cc
  2872. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2873. Corrected catched exception type.
  2874. * src/ServerStatMan.cc
  2875. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2876. DNSCache is now part of DownloadEngine.
  2877. * src/DNSCache.h
  2878. * src/DownloadEngine.cc
  2879. * src/DownloadEngine.h
  2880. * src/InitiateConnectionCommand.cc
  2881. * src/MultiUrlRequestInfo.cc
  2882. * test/Makefile.am
  2883. * test/Makefile.in
  2884. * test/SimpleDNSCacheTest.cc
  2885. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2886. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2887. DownloadEngine.
  2888. * src/ActivePeerConnectionCommand.cc
  2889. * src/BtSetup.cc
  2890. * src/CUIDCounter.h
  2891. * src/DHTSetup.cc
  2892. * src/DownloadCommand.cc
  2893. * src/DownloadEngine.cc
  2894. * src/DownloadEngine.h
  2895. * src/DownloadEngineFactory.cc
  2896. * src/FileAllocationDispatcherCommand.cc
  2897. * src/InitiatorMSEHandshakeCommand.cc
  2898. * src/PeerInitiateConnectionCommand.cc
  2899. * src/PeerInteractionCommand.cc
  2900. * src/PeerListenCommand.cc
  2901. * src/RequestGroup.cc
  2902. * src/StreamFileAllocationEntry.cc
  2903. * src/TrackerWatcherCommand.cc
  2904. * src/main.cc
  2905. * test/RequestGroupManTest.cc
  2906. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2907. Implemented commented code in BtSeederStateChoke
  2908. * src/BtSeederStateChoke.cc
  2909. * src/Peer.cc
  2910. * src/Peer.h
  2911. * src/PeerInteractionCommand.cc
  2912. * src/PeerSessionResource.cc
  2913. * src/PeerSessionResource.h
  2914. * test/MockBtMessageDispatcher.h
  2915. * test/PeerSessionResourceTest.cc
  2916. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2917. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2918. its object.
  2919. * src/AbstractBtMessage.cc
  2920. * src/ActivePeerConnectionCommand.cc
  2921. * src/ActivePeerConnectionCommand.h
  2922. * src/BtContextAwareCommand.cc
  2923. * src/BtContextAwareCommand.h
  2924. * src/BtExtendedMessage.cc
  2925. * src/BtExtendedMessage.h
  2926. * src/BtInterestedMessage.cc
  2927. * src/BtInterestedMessage.h
  2928. * src/BtNotInterestedMessage.cc
  2929. * src/BtNotInterestedMessage.h
  2930. * src/BtRegistry.cc
  2931. * src/BtRegistry.h
  2932. * src/BtSeederStateChoke.cc
  2933. * src/BtSetup.cc
  2934. * src/DHTGetPeersCommand.cc
  2935. * src/DHTGetPeersCommand.h
  2936. * src/DHTPeerAnnounceEntry.cc
  2937. * src/DHTPeerAnnounceEntry.h
  2938. * src/DHTPeerAnnounceStorage.cc
  2939. * src/DHTPeerAnnounceStorage.h
  2940. * src/DHTPeerLookupTask.cc
  2941. * src/DHTPeerLookupTask.h
  2942. * src/DHTSetup.cc
  2943. * src/DHTSetup.h
  2944. * src/DHTTaskFactory.h
  2945. * src/DHTTaskFactoryImpl.cc
  2946. * src/DHTTaskFactoryImpl.h
  2947. * src/DefaultBtAnnounce.cc
  2948. * src/DefaultBtInteractive.cc
  2949. * src/DefaultBtInteractive.h
  2950. * src/DefaultBtMessageDispatcher.cc
  2951. * src/DefaultBtMessageDispatcher.h
  2952. * src/DefaultBtMessageFactory.cc
  2953. * src/DefaultBtMessageFactory.h
  2954. * src/DefaultBtMessageReceiver.cc
  2955. * src/DefaultBtProgressInfoFile.cc
  2956. * src/DefaultBtProgressInfoFile.h
  2957. * src/DefaultBtRequestFactory.cc
  2958. * src/DefaultBtRequestFactory.h
  2959. * src/DefaultExtensionMessageFactory.cc
  2960. * src/DefaultExtensionMessageFactory.h
  2961. * src/DefaultPeerStorage.cc
  2962. * src/DefaultPeerStorage.h
  2963. * src/DownloadEngine.cc
  2964. * src/DownloadEngine.h
  2965. * src/InitiatorMSEHandshakeCommand.cc
  2966. * src/InitiatorMSEHandshakeCommand.h
  2967. * src/MSEHandshake.cc
  2968. * src/MSEHandshake.h
  2969. * src/Makefile.am
  2970. * src/Makefile.in
  2971. * src/PeerChokeCommand.cc
  2972. * src/PeerChokeCommand.h
  2973. * src/PeerInitiateConnectionCommand.cc
  2974. * src/PeerInitiateConnectionCommand.h
  2975. * src/PeerInteractionCommand.cc
  2976. * src/PeerInteractionCommand.h
  2977. * src/PeerObject.h
  2978. * src/PeerReceiveHandshakeCommand.cc
  2979. * src/PeerReceiveHandshakeCommand.h
  2980. * src/ReceiverMSEHandshakeCommand.cc
  2981. * src/RequestGroup.cc
  2982. * src/RequestGroup.h
  2983. * src/RequestGroupMan.cc
  2984. * src/RequestGroupMan.h
  2985. * src/SeedCheckCommand.cc
  2986. * src/SeedCheckCommand.h
  2987. * src/ShareRatioSeedCriteria.h
  2988. * src/SimpleBtMessage.cc
  2989. * src/TrackerWatcherCommand.cc
  2990. * src/TrackerWatcherCommand.h
  2991. * src/UTPexExtensionMessage.cc
  2992. * src/UTPexExtensionMessage.h
  2993. * test/BtCancelMessageTest.cc
  2994. * test/BtChokeMessageTest.cc
  2995. * test/BtExtendedMessageTest.cc
  2996. * test/BtInterestedMessageTest.cc
  2997. * test/BtNotInterestedMessageTest.cc
  2998. * test/BtPieceMessageTest.cc
  2999. * test/BtPortMessageTest.cc
  3000. * test/BtRegistryTest.cc
  3001. * test/BtRejectMessageTest.cc
  3002. * test/BtRequestMessageTest.cc
  3003. * test/DHTPeerAnnounceEntryTest.cc
  3004. * test/DHTPeerAnnounceStorageTest.cc
  3005. * test/DefaultBtMessageDispatcherTest.cc
  3006. * test/DefaultBtMessageFactoryTest.cc
  3007. * test/DefaultBtProgressInfoFileTest.cc
  3008. * test/DefaultBtRequestFactoryTest.cc
  3009. * test/DefaultExtensionMessageFactoryTest.cc
  3010. * test/MSEHandshakeTest.cc
  3011. * test/MockDHTTaskFactory.h
  3012. * test/ShareRatioSeedCriteriaTest.cc
  3013. * test/UTPexExtensionMessageTest.cc
  3014. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3015. Fixed compiler warning.
  3016. * test/UtilTest.cc
  3017. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3018. Treat Cookie object as session cookie if expiry = 0 is given.
  3019. With this change, you can specify session scoped cookies in an external
  3020. file setting expiry value to 0.
  3021. * src/Cookie.cc
  3022. * src/Cookie.h
  3023. * test/CookieParserTest.cc
  3024. * test/CookieStorageTest.cc
  3025. * test/CookieTest.cc
  3026. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Changed signature of DHTMessageFactory::createResponseMessage().
  3028. Removed unused validateIDMatch.
  3029. * src/DHTMessageFactory.h
  3030. * src/DHTMessageFactoryImpl.cc
  3031. * src/DHTMessageFactoryImpl.h
  3032. * src/DHTMessageTracker.cc
  3033. * test/DHTMessageFactoryImplTest.cc
  3034. * test/MockDHTMessageFactory.h
  3035. Dropped DHT message coming from same ID of localhost.
  3036. * src/DHTMessageReceiver.cc
  3037. Rejected adding node whose ID is the same as localhost's.
  3038. * src/DHTRoutingTable.cc
  3039. * test/BtPortMessageTest.cc
  3040. * test/DHTRoutingTableTest.cc
  3041. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3042. Pool connection when redirection occurs with Content-Length = 0.
  3043. * src/HttpSkipResponseCommand.cc
  3044. * src/HttpSkipResponseCommand.h
  3045. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3046. Fixed the bug that causes time out when redirection occurs with
  3047. content-length 0.
  3048. * src/HttpResponseCommand.cc
  3049. * src/HttpSkipResponseCommand.cc
  3050. * src/HttpSkipResponseCommand.h
  3051. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3052. Now each status legends is shown only when it appears in Download
  3053. Result. If Download Result has no item, then status legend will not
  3054. be printed.
  3055. * src/RequestGroupMan.cc
  3056. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3057. Removed duplicate creation of OptionHandlers.
  3058. * src/option_processing.cc
  3059. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3060. Fixed the bug that causes segmentation fault when accessing files which
  3061. don't exist or are not included in --select-file option while
  3062. validating chunk checksum.
  3063. * src/MultiDiskAdaptor.cc
  3064. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Fixed compiler warning.
  3066. * test/UtilTest.cc
  3067. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3068. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3069. * src/IteratableChecksumValidator.cc
  3070. * src/IteratableChunkChecksumValidator.cc
  3071. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3072. * Release 0.16.2
  3073. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3074. Added Serbian translation. Updated Ukrainian translation.
  3075. Thanks to all translators.
  3076. * po/sr.po
  3077. * po/uk.po
  3078. * po/LINGUAS
  3079. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3080. Bump up version number to 0.16.2
  3081. * configure.ac
  3082. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3083. Added length equality test to operator== to drop a piece message
  3084. whose length does not match to the requested one.
  3085. * src/RequestSlot.cc
  3086. * test/DefaultBtMessageDispatcherTest.cc
  3087. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3088. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3089. recieved.
  3090. In this fix, if a request larger than 16KiB length is received, aria2
  3091. disconnects the peer.
  3092. * src/BtConstants.h
  3093. * src/PeerMessageUtil.cc
  3094. * src/PeerMessageUtil.h
  3095. * test/BtRequestMessageTest.cc
  3096. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3097. * Release 0.16.1
  3098. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3099. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3100. * doc/aria2c.1.txt
  3101. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3102. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3103. Updated French, Simplified Chinese and Japanese translations.
  3104. Thanks to all translators.
  3105. en@quot and en@boldquot are also added.
  3106. * po/LINGUAS
  3107. * po/fr.po
  3108. * po/ja.po
  3109. * po/uk.po
  3110. * po/vi.po
  3111. * po/zh_CN.po
  3112. * po/zh_TW.po
  3113. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3114. Bump up version number to 0.16.1.
  3115. * configure.ac
  3116. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3117. Updated README.
  3118. * README
  3119. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3120. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3121. not to replace '--' with em dash character.
  3122. * doc/aria2c.1.txt
  3123. * doc/makeman
  3124. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3125. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3126. every SEC seconds.
  3127. * src/DownloadEngineFactory.cc
  3128. * src/OptionHandlerFactory.cc
  3129. * src/option_processing.cc
  3130. * src/usage_text.h
  3131. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3132. Fixed compile warning on linux-amd64
  3133. * src/FtpConnection.cc
  3134. * src/IteratableChunkChecksumValidator.cc
  3135. * src/MultiDiskAdaptor.cc
  3136. Fixed the bug that unit test fails on linux-amd64
  3137. * test/UtilTest.cc
  3138. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Added --dht-file-path option to change the path to dht.dat, which is a
  3140. serialized DHT routing table.
  3141. * src/OptionHandlerFactory.cc
  3142. * src/option_processing.cc
  3143. * src/usage_text.h
  3144. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3145. Fixed possible underflow.
  3146. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3147. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3148. Fixed the bug that last character in URI is not encoded.
  3149. * src/Request.cc
  3150. * test/RequestTest.cc
  3151. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3152. Fixed the bug that referer header field contains fragment.
  3153. Now Request class removes fragment part of URI and encodes it
  3154. in Request::setUri() and setReferer().
  3155. * src/Request.h
  3156. * src/Request.cc
  3157. * test/RequestTest.cc
  3158. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3159. Added missing m4 macros.
  3160. * m4/cppunit.m4
  3161. * m4/libgcrypt.m4
  3162. * m4/libgnutls-extra.m4
  3163. * m4/libgnutls.m4
  3164. * m4/libxml2.m4
  3165. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3166. Fixed compile error with gcc-4.4(snapshot)
  3167. * src/File.cc
  3168. * src/FtpConnection.cc
  3169. * src/OptionHandlerImpl.h
  3170. * src/Util.cc
  3171. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3172. Removed assert()
  3173. * src/SocketBuffer.cc (SocketBuffer::send)
  3174. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3175. Changed the type of _numNewConnection to unsigned int.
  3176. * src/ActivePeerConnectionCommand.cc
  3177. * src/ActivePeerConnectionCommand.h
  3178. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3179. * Release 0.16.0
  3180. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3181. Updated doc
  3182. * README
  3183. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3184. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3185. translations. Thanks to all translators.
  3186. * po/bg.po
  3187. * po/de.po
  3188. * po/fr.po
  3189. * po/ja.po
  3190. * po/zh_CN.po
  3191. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3192. Bump up version number to 0.16.0.
  3193. * configure.ac
  3194. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3196. int32_t.
  3197. Changed the type of count to int32_t.
  3198. * src/Metalink2RequestGroup.cc
  3199. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3200. Added test for Time::elapsed(time_t).
  3201. * test/TimeTest.cc
  3202. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3203. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3204. Util::difftv() should be used instead.
  3205. * src/TimeA2.cc
  3206. * src/TimeA2.h
  3207. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3208. Made socket for dht connections non-blocking
  3209. * src/DHTAbstractMessage.cc
  3210. * src/DHTAbstractMessage.h
  3211. * src/DHTConnection.h
  3212. * src/DHTConnectionImpl.cc
  3213. * src/DHTConnectionImpl.h
  3214. * src/DHTMessage.h
  3215. * src/DHTMessageDispatcherImpl.cc
  3216. * src/DHTMessageDispatcherImpl.h
  3217. * src/DHTUnknownMessage.cc
  3218. * src/DHTUnknownMessage.h
  3219. * src/SocketCore.cc
  3220. * src/SocketCore.h
  3221. * test/MockDHTMessage.h
  3222. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3223. Changed the type of offset to int.
  3224. * src/ParameterizedStringParser.cc
  3225. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3226. Made getAsInt() return int32_t
  3227. * src/Option.h
  3228. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3229. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3230. build.
  3231. * configure.ac
  3232. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Use sqlite3_open if sqlite3_open_v2 is not available.
  3234. * src/Sqlite3MozCookieParser.cc
  3235. * src/Sqlite3MozCookieParser.h
  3236. * m4/sqlite3.m4
  3237. * test/Sqlite3MozCookieParserTest.cc
  3238. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3239. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3240. * src/BtPieceMessage.cc
  3241. * src/DHTPeerAnnounceStorage.cc
  3242. * src/DefaultPieceStorage.cc
  3243. * src/DownloadCommand.cc
  3244. * src/DownloadEngine.cc
  3245. * src/FtpConnection.cc
  3246. * src/PeerConnection.cc
  3247. * src/PeerMessageUtil.cc
  3248. * src/RequestGroup.cc
  3249. * src/RequestGroupMan.cc
  3250. * src/SimpleBtMessage.cc
  3251. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3252. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3253. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3254. * src/AbstractDiskWriter.cc
  3255. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3256. Don't set Request::supportsPersistentConnection() in HttpConnection
  3257. since this code is also used in AbstractProxyResponseCommand.
  3258. Moved those code to HttpResponse.
  3259. * src/HttpResponse.cc
  3260. * src/HttpResponse.h
  3261. * src/HttpConnection.cc
  3262. * src/HttpConnection.h
  3263. * src/HttpResponseCommand.cc
  3264. * test/HttpResponseTest.cc
  3265. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3266. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3267. The configuration is minimum: no torrent, no metalink, so there may be
  3268. other compile error on their code.
  3269. * src/a2netcompat.h
  3270. * src/File.cc
  3271. * src/File.h
  3272. * src/SocketCore.cc
  3273. * src/SocketCore.h
  3274. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3275. Made a socket of incoming peer non-blocking.
  3276. * src/PeerListenCommand.cc
  3277. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3278. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3279. whole message data is not sent in one send() call.
  3280. * src/BtPieceMessage.cc
  3281. * src/BtPieceMessage.h
  3282. * src/PeerConnection.cc
  3283. * src/PeerConnection.h
  3284. * src/SimpleBtMessage.cc
  3285. * src/SimpleBtMessage.h
  3286. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3287. Fixed the bug that aria2 downloads faster than max-download-limit when
  3288. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3289. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3290. , instead of sum of them.
  3291. * src/ActivePeerConnectionCommand.cc
  3292. * src/DefaultBtInteractive.cc
  3293. * src/DownloadCommand.cc
  3294. * src/PeerInteractionCommand.cc
  3295. * src/PeerReceiveHandshakeCommand.cc
  3296. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3297. Fixed the bug that HTTPS download fails.
  3298. * src/AbstractCommand.cc
  3299. * src/AbstractCommand.h
  3300. * src/DownloadCommand.cc
  3301. * src/FtpConnection.cc
  3302. * src/HttpConnection.cc
  3303. * src/HttpRequestCommand.cc
  3304. * src/HttpResponseCommand.cc
  3305. * src/HttpSkipResponseCommand.cc
  3306. * src/MSEHandshake.cc
  3307. * src/PeerConnection.cc
  3308. * src/SocketCore.cc
  3309. * src/SocketCore.h
  3310. Fixed the bug that aria2 doesn't download whole content body and cannot
  3311. reuse connection if chunked transfer encoding and gzip content encoding
  3312. are set.
  3313. * src/DownloadCommand.cc
  3314. * src/HttpSkipResponseCommand.cc
  3315. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3316. Updated man page.
  3317. * doc/aria2c.1.txt
  3318. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3319. When error occurred while aria2 was parsing an .aria2.conf file, print
  3320. the usage of the option that caused error.
  3321. * src/option_processing.cc
  3322. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3323. Fixed compile error on OptionHandlerException
  3324. * src/Makefile.am
  3325. * src/OptionHandlerException.cc
  3326. * src/OptionHandlerException.h
  3327. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3328. Moved message of the error to OptionHandlerException.h
  3329. * src/NameMatchOptionHandler.h
  3330. * src/OptionHandlerException.h
  3331. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3332. When error occurs while aria2 is parsing an command-line option, print
  3333. the usage of the option.
  3334. * src/Makefile.am
  3335. * src/NameMatchOptionHandler.h
  3336. * src/OptionHandlerException.h
  3337. * src/option_processing.cc
  3338. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3339. Reverted previous change.
  3340. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3341. username is not in URI.
  3342. * src/HttpRequest.cc
  3343. * src/Request.cc
  3344. * test/HttpRequestTest.cc
  3345. * test/RequestTest.cc
  3346. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3347. Now colon is required for username and password in FTP URL, like:
  3348. ftp://username:password@host.
  3349. If colon is not there, aria2 don't parse it as a username. For example,
  3350. aria2 don't retrieve username from ftp://username@host.
  3351. This fix was made in order to login FTP server via non-transparent ftp
  3352. proxy.
  3353. * src/Request.cc
  3354. * test/RequestTest.cc
  3355. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3356. Use netrc for HTTP.
  3357. Now FTP user/password is sent in Authorization header when
  3358. --ftp-via-http-proxy=get is given.
  3359. * src/AuthConfigFactory.cc
  3360. * src/HttpRequest.cc
  3361. * src/HttpRequest.h
  3362. * src/NetrcAuthResolver.cc
  3363. * src/NetrcAuthResolver.h
  3364. * src/OptionHandlerFactory.cc
  3365. * src/option_processing.cc
  3366. * src/prefs.cc
  3367. * src/prefs.h
  3368. * test/AuthConfigFactoryTest.cc
  3369. * test/HttpRequestTest.cc
  3370. * test/NetrcAuthResolverTest.cc
  3371. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3372. Issue PWD command first and get working directory and use it as a prefix
  3373. for CWD command.
  3374. * src/DownloadEngine.cc
  3375. * src/DownloadEngine.h
  3376. * src/FtpConnection.cc
  3377. * src/FtpConnection.h
  3378. * src/FtpFinishDownloadCommand.cc
  3379. * src/FtpInitiateConnectionCommand.cc
  3380. * src/FtpNegotiationCommand.cc
  3381. * src/FtpNegotiationCommand.h
  3382. * test/FtpConnectionTest.cc
  3383. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3384. Removed default user/pass for FTP user/pass, since it should not have
  3385. precedence over netrc configuration by default.
  3386. * src/OptionHandlerFactory.cc
  3387. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. Added debug log for socket event.
  3389. * src/AbstractCommand.cc
  3390. * src/PeerAbstractCommand.cc
  3391. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3392. Log microseconds.
  3393. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3394. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3395. Replaced HelpItem.cc with OptionHandler.cc.
  3396. * po/POTFILES.in
  3397. Updated po files with 'make update-po'
  3398. * po/aria2c.pot
  3399. * po/*.po
  3400. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3401. Removed possible values from the text.
  3402. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3403. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3404. Removed unused preferences:
  3405. PREF_NO_PREALLOCATION
  3406. PREF_STDOUT_LOG
  3407. PREF_TRACKER_MAX_TRIES
  3408. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3409. PREF_MIN_SEGMENT_SIZE
  3410. * src/option_processing.cc
  3411. * src/prefs.cc
  3412. * src/prefs.h
  3413. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3414. Integrated HelpItem into OptionParser to ease the workload for adding
  3415. new options. Removed default value from usage text.
  3416. * src/HelpItem.cc: Removed.
  3417. * src/HelpItem.h: Removed.
  3418. * src/HelpItemFactory.cc: Removed.
  3419. * src/HelpItemFactory.h: Removed.
  3420. * src/Makefile.am
  3421. * src/Makefile.in
  3422. * src/NameMatchOptionHandler.h
  3423. * src/OptionHandler.cc
  3424. * src/OptionHandler.h
  3425. * src/OptionHandlerFactory.cc
  3426. * src/OptionHandlerImpl.h
  3427. * src/OptionParser.cc
  3428. * src/OptionParser.h
  3429. * src/TagContainer.cc: Removed.
  3430. * src/TagContainer.h: Removed.
  3431. * src/TaggedItem.cc: Removed.
  3432. * src/TaggedItem.h: Removed.
  3433. * src/main.cc
  3434. * src/option_processing.cc
  3435. * src/usage_text.h
  3436. * src/version_usage.cc
  3437. * test/HelpItemTest.cc: Removed.
  3438. * test/Makefile.am
  3439. * test/Makefile.in
  3440. * test/OptionHandlerTest.cc
  3441. * test/OptionParserTest.cc
  3442. * test/TagContainerTest.cc: Removed.
  3443. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3444. Moved `TransferStat stat = ...' to inside the `if' clause.
  3445. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3446. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3447. Fixed the bug that a block in a piece is requested when same block is
  3448. already requested to the same peer in end game mode.
  3449. * src/BtRequestFactory.h
  3450. * src/DefaultBtInteractive.cc
  3451. * src/DefaultBtRequestFactory.cc
  3452. * src/DefaultBtRequestFactory.h
  3453. * src/DefaultPieceStorage.cc
  3454. * src/DefaultPieceStorage.h
  3455. * src/PieceStorage.h
  3456. * src/UnknownLengthPieceStorage.cc
  3457. * src/UnknownLengthPieceStorage.h
  3458. * test/DefaultBtRequestFactoryTest.cc
  3459. * test/DefaultPieceStorageTest.cc
  3460. * test/MockBtRequestFactory.h
  3461. * test/MockPieceStorage.h
  3462. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3463. Removed _uploadLength and _downloadLength from PeerSessionResource
  3464. and use PeerStat::_sessionUploadLength and
  3465. PeerStat::_sessionDownloadLength.
  3466. * src/PeerSessionResource.cc
  3467. * src/PeerSessionResource.h
  3468. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3469. Fixed the bug that prefixLength of split bucket which doesn't include
  3470. local node ID is incremented.
  3471. * src/DHTBucket.cc
  3472. * src/DHTBucket.h
  3473. * test/DHTBucketTest.cc
  3474. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3475. Added cookies.sqlite to EXTRA_DIST
  3476. * test/Makefile.am
  3477. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. Added Turkish translation. Updated French, German, Russian and
  3479. Simplified Chinese translations. Thanks to all translators.
  3480. * po/LINGUAS
  3481. * po/de.po
  3482. * po/fr.po
  3483. * po/ru.po
  3484. * po/tr.po
  3485. * po/zh_CN.po
  3486. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Added deliminating text to the beginning of the log so that one can find
  3488. where the log starts easily.
  3489. * src/main.cc
  3490. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3491. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3492. to fix compile error when async DNS is not enabled by configuration.
  3493. * src/AbstractCommand.cc
  3494. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3495. If establishing conneciton to a server is failed, then mark error on
  3496. its ServerStat.
  3497. Added the cause of error to log when error event occurred.
  3498. Moved message string to message.h for translation.
  3499. * src/AbstractCommand.cc
  3500. * src/AbstractCommand.h
  3501. * src/FtpNegotiationCommand.cc
  3502. * src/HttpRequestCommand.cc
  3503. * src/PeerAbstractCommand.cc
  3504. * src/message.h
  3505. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3506. Added the function to get error message from socket.
  3507. * src/SocketCore.cc
  3508. * src/SocketCore.h
  3509. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3510. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3511. * src/RequestGroupMan.cc
  3512. * src/RequestGroupMan.h
  3513. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3514. If error event is received in epoll, then abort download immediately.
  3515. * src/AbstractCommand.cc
  3516. * src/Command.cc
  3517. * src/Command.h
  3518. * src/DownloadEngine.cc
  3519. * src/PeerAbstractCommand.cc
  3520. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3521. Added usage message for --uri-selector, --server-stat-of,
  3522. --server-stat-in, --server-stat-timeout options.
  3523. * src/HelpItemFactory.cc
  3524. * src/usage_text.h
  3525. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3526. Added upper limit of FTP response buffer. The current implementation
  3527. uses 4096bytes as a limit.
  3528. * src/FtpConnection.cc
  3529. * src/FtpConnection.h
  3530. * test/FtpConnectionTest.cc
  3531. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3532. Use non-blocking socket for TCP communication to avoid possible
  3533. blocking due to buffer full.
  3534. * src/AbstractProxyRequestCommand.cc
  3535. * src/FtpConnection.cc
  3536. * src/FtpConnection.h
  3537. * src/FtpNegotiationCommand.cc
  3538. * src/FtpNegotiationCommand.h
  3539. * src/HttpConnection.cc
  3540. * src/HttpConnection.h
  3541. * src/HttpRequestCommand.cc
  3542. * src/InitiatorMSEHandshakeCommand.cc
  3543. * src/InitiatorMSEHandshakeCommand.h
  3544. * src/MSEHandshake.cc
  3545. * src/MSEHandshake.h
  3546. * src/Makefile.am
  3547. * src/PeerConnection.cc
  3548. * src/PeerConnection.h
  3549. * src/PeerInteractionCommand.cc
  3550. * src/PeerListenCommand.cc
  3551. * src/ReceiverMSEHandshakeCommand.cc
  3552. * src/ReceiverMSEHandshakeCommand.h
  3553. * src/SocketBuffer.cc
  3554. * src/SocketBuffer.h
  3555. * src/SocketCore.cc
  3556. * src/SocketCore.h
  3557. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3558. Call setStatusRealtime() in constructor.
  3559. * src/RealtimeCommand.cc
  3560. * src/RealtimeCommand.h
  3561. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3562. Call Download::setNoWait(true) to execute newly created command without
  3563. a pause.
  3564. * src/AbstractCommand.cc
  3565. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3566. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3567. found' error from HTTP/FTP server NUM times without getting single
  3568. bytes of data, then force the download to fail.
  3569. Basically aria2 tris all URIs available. So if long list of URIs are
  3570. specified in Metalink, then aria2 will take a long time to fail
  3571. eventually if all URIs are outdated. This option eases this situation
  3572. to limit the number of servers to try.
  3573. * src/FtpNegotiationCommand.cc
  3574. * src/HelpItemFactory.cc
  3575. * src/HttpResponseCommand.cc
  3576. * src/OptionHandlerFactory.cc
  3577. * src/PeerStat.h
  3578. * src/RequestGroup.cc
  3579. * src/RequestGroup.h
  3580. * src/SegmentMan.cc
  3581. * src/SegmentMan.h
  3582. * src/option_processing.cc
  3583. * src/prefs.cc
  3584. * src/prefs.h
  3585. * src/usage_text.h
  3586. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3587. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3588. response even if more than one response is in it.
  3589. * src/FtpConnection.cc
  3590. * src/FtpConnection.h
  3591. * test/FtpConnectionTest.cc
  3592. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3593. Merged from stable-0.15
  3594. * m4/libcares.m4
  3595. Use pkg-config
  3596. * m4/sqlite3.m4
  3597. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Removed unnecessary if statement.
  3599. * src/DefaultPieceStorage.cc (initPieceStorage)
  3600. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3601. Added --connect-timeout option to specify connect timeout in seconds.
  3602. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3603. connecting to BitTorrent peer is not controlled by this option.
  3604. * src/AbstractProxyRequestCommand.cc
  3605. * src/FtpNegotiationCommand.cc
  3606. * src/HelpItemFactory.cc
  3607. * src/HttpRequestCommand.cc
  3608. * src/OptionHandlerFactory.cc
  3609. * src/option_processing.cc
  3610. * src/prefs.cc
  3611. * src/prefs.h
  3612. * src/usage_text.h
  3613. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3614. Added help message for -R option.
  3615. * src/HelpItemFactory.cc
  3616. * src/usage_text.h
  3617. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3618. Added the message that the time is in local time zone.
  3619. * src/RequestGroup.cc
  3620. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3621. Implemented the ability to get timestamp from remote FTP server using
  3622. MDTM command described in RFC3659.
  3623. * src/FtpConnection.cc
  3624. * src/FtpConnection.h
  3625. * src/FtpNegotiationCommand.cc
  3626. * src/FtpNegotiationCommand.h
  3627. * test/FtpConnectionTest.cc
  3628. * test/Makefile.am
  3629. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3630. Implemented the ability to get timestamp from remote HTTP server and
  3631. apply it to local file. To enable this feature, --remote-time option
  3632. is added. No usage text has been written yet.
  3633. If several servers returns difference timestamp, then aria2 uses latest
  3634. one.
  3635. * src/CopyDiskAdaptor.cc
  3636. * src/CopyDiskAdaptor.h
  3637. * src/DirectDiskAdaptor.cc
  3638. * src/DirectDiskAdaptor.h
  3639. * src/DiskAdaptor.h
  3640. * src/File.cc
  3641. * src/File.h
  3642. * src/HttpHeader.cc
  3643. * src/HttpHeader.h
  3644. * src/HttpResponse.cc
  3645. * src/HttpResponse.h
  3646. * src/HttpResponseCommand.cc
  3647. * src/HttpResponseCommand.h
  3648. * src/MultiDiskAdaptor.cc
  3649. * src/MultiDiskAdaptor.h
  3650. * src/OptionHandlerFactory.cc
  3651. * src/RequestGroup.cc
  3652. * src/RequestGroup.h
  3653. * src/RequestGroupMan.cc
  3654. * src/option_processing.cc
  3655. * src/prefs.cc
  3656. * src/prefs.h
  3657. * test/CopyDiskAdaptorTest.cc
  3658. * test/FileTest.cc
  3659. * test/Makefile.am
  3660. * test/Makefile.in
  3661. * test/MultiDiskAdaptorTest.cc
  3662. * test/TestUtil.cc
  3663. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3664. Fixed the bug that DiskWriterEntry is not created when its
  3665. FileEntry.isRequested() is false and it doesn't share a piece with
  3666. other FileEntries that are requested. This bug causes segmentation fault
  3667. in the end.
  3668. * src/MultiDiskAdaptor.cc
  3669. * src/MultiDiskAdaptor.h
  3670. * src/MultiFileAllocationIterator.cc
  3671. * test/MultiDiskAdaptorTest.cc
  3672. * test/MultiFileAllocationIteratorTest.cc
  3673. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3674. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3675. called if the number of file entries are greater than max open files.
  3676. * src/AbstractSingleDiskAdaptor.cc
  3677. * src/AbstractSingleDiskAdaptor.h
  3678. * src/DiskAdaptor.h
  3679. * src/MultiDiskAdaptor.cc
  3680. * src/MultiDiskAdaptor.h
  3681. * test/MultiDiskAdaptorTest.cc
  3682. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3683. Added a constuctor that receives struct timeval.
  3684. Added operator<.
  3685. * src/TimeA2.cc
  3686. * src/TimeA2.h
  3687. * test/TimeTest.cc
  3688. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3689. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3690. * src/CookieParser.cc
  3691. * test/CookieParserTest.cc
  3692. * test/HttpResponseTest.cc
  3693. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3694. Implmented the functions to parse date.
  3695. * src/TimeA2.cc
  3696. * src/TimeA2.h
  3697. * test/TimeTest.cc
  3698. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3699. Added "Firefox3 Cookie" feature to FeatureConfig
  3700. * src/FeatureConfig.cc
  3701. * src/FeatureConfig.h
  3702. * test/FeatureConfigTest.cc
  3703. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3704. Bump up version number to 0.16.0b
  3705. * configure.ac
  3706. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3707. Use pkg-config if is is available.
  3708. * m4/openssl.m4
  3709. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3710. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3711. * src/BtAnnounce.h
  3712. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3713. If an error occurred with a URI, remove identical URI from remaining
  3714. URI list because it is likely that same error occurred in the end and it
  3715. is waste of time.
  3716. * src/AbstractCommand.cc
  3717. * src/RequestGroup.cc
  3718. * src/RequestGroup.h
  3719. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3720. Removed wrong comment.
  3721. * src/DefaultPeerStorage.cc
  3722. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3723. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3724. Added return value of getpid() to argument of srand() to achieve more
  3725. randomized value.
  3726. * src/SimpleRandomizer.cc
  3727. * src/SimpleRandomizer.h
  3728. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3729. Contact tracker frequently when the number of connections are 0 and
  3730. download is not finished yet.
  3731. * src/ActivePeerConnectionCommand.cc
  3732. * src/BtAnnounce.h
  3733. * src/DefaultBtAnnounce.cc
  3734. * src/DefaultBtAnnounce.h
  3735. * test/MockBtAnnounce.h
  3736. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3737. Moved threshold values to UTPexExtensionMessage.
  3738. * src/DefaultBtInteractive.cc
  3739. * src/Peer.cc
  3740. * src/Peer.h
  3741. * src/UTPexExtensionMessage.cc
  3742. * src/UTPexExtensionMessage.h
  3743. * test/UTPexExtensionMessageTest.cc
  3744. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3745. Added _incoming member to Peer class and made it true if the peer
  3746. initiated connection. Don't add those peer to UTPex message.
  3747. If extended handshake is received, assign _incoming to false.
  3748. * src/DefaultBtInteractive.cc
  3749. * src/HandshakeExtensionMessage.cc
  3750. * src/Peer.cc
  3751. * src/Peer.h
  3752. * src/PeerListenCommand.cc
  3753. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3754. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3755. Encoding Decoder. Removed size threshold for turning off on the fly
  3756. inflation because resulting file may or may not be inflated depending
  3757. on the file size and I think it is not expected by users.
  3758. This change fixes segmentation fault when Metalink file contains gzipped
  3759. file and its filesize is provided.
  3760. * src/HttpResponseCommand.cc
  3761. * src/HttpResponseCommand.h
  3762. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3763. Made Cookie immutable.
  3764. * src/Cookie.cc
  3765. * src/Cookie.h
  3766. * src/CookieParser.cc
  3767. * src/CookieParser.h
  3768. * src/CookieStorage.cc
  3769. * test/CookieParserTest.cc
  3770. * test/CookieStorageTest.cc
  3771. * test/NsCookieParserTest.cc
  3772. * test/Sqlite3MozCookieParserTest.cc
  3773. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3774. Removed CookieBox, CookieBoxFactory.
  3775. * src/CookieBox.cc
  3776. * src/CookieBox.h
  3777. * src/CookieBoxFactory.cc
  3778. * src/CookieBoxFactory.h
  3779. * src/Makefile.am
  3780. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3781. Use CookieStorage class instead of CookieBox class.
  3782. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3783. * src/AbstractProxyRequestCommand.cc
  3784. * src/CookieStorage.cc
  3785. * src/DownloadEngine.cc
  3786. * src/DownloadEngine.h
  3787. * src/HttpConnection.cc
  3788. * src/HttpConnection.h
  3789. * src/HttpRequest.cc
  3790. * src/HttpRequest.h
  3791. * src/HttpRequestCommand.cc
  3792. * src/HttpResponse.cc
  3793. * src/HttpResponseCommand.cc
  3794. * src/HttpSkipResponseCommand.cc
  3795. * src/Makefile.am
  3796. * src/MultiUrlRequestInfo.cc
  3797. * src/Request.cc
  3798. * src/Request.h
  3799. * src/main.cc
  3800. * test/AllTest.cc
  3801. * test/CookieStorageTest.cc
  3802. * test/CookieTest.cc
  3803. * test/HttpRequestTest.cc
  3804. * test/HttpResponseTest.cc
  3805. * test/Makefile.am
  3806. * test/NsCookieParserTest.cc
  3807. * test/Sqlite3MozCookieParserTest.cc
  3808. * test/nscookietest.txt
  3809. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3810. Updated
  3811. * test/Cookies.sqlite
  3812. * test/nscookietest.txt
  3813. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3814. Added tests for CookieStorage::load()
  3815. * test/CookieStorageTest.cc
  3816. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3817. Added CookieStorage class which is based on RFC2109 and manages cookies
  3818. more strictly than CookieBox and CookieBoxFactory class.
  3819. * src/CookieStorage.cc
  3820. * src/CookieStorage.h
  3821. * src/Cookie.cc
  3822. * src/Cookie.h
  3823. * test/CookieStorageTest.cc
  3824. * test/CookieTest.cc
  3825. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3826. Fixed the bug that commands are created more than the number of pieces.
  3827. * src/RequestGroup.cc
  3828. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3829. Fixed infinite loop bug in FTP when SIZE command failed.
  3830. * src/FtpNegotiationCommand.cc
  3831. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3832. Removed DirectDiskAdaptorTest.h
  3833. * test/Makefile.am
  3834. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3835. Fixed chunk checksum validation cannot detect trailing garbage data.
  3836. BUG#2074141
  3837. * src/AbstractSingleDiskAdaptor.cc
  3838. * src/AbstractSingleDiskAdaptor.h
  3839. * src/CheckIntegrityEntry.cc
  3840. * src/CheckIntegrityEntry.h
  3841. * src/DiskAdaptor.h
  3842. * src/MultiDiskAdaptor.cc
  3843. * src/MultiDiskAdaptor.h
  3844. * src/RequestGroup.cc
  3845. * test/DirectDiskAdaptorTest.cc
  3846. * test/MultiDiskAdaptorTest.cc
  3847. * test/TestUtil.cc
  3848. * test/TestUtil.h
  3849. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3850. Bump up version number of dht.dat file to 3. In version 3 format, time
  3851. is stored in 64bit, network byte order.
  3852. New build can load old format(version 2) but it saves the file in new
  3853. format. It means once you used new build, your dht.dat becomes
  3854. incompatible with older build.
  3855. * src/DHTRoutingTableDeserializer.cc
  3856. * src/DHTRoutingTableSerializer.cc
  3857. * test/DHTRoutingTableSerializerTest.cc
  3858. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3859. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3860. * test/Makefile.am
  3861. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Bump up version number of .aria2 control file to 0001.
  3863. New aria2 can still load version 0000 file but it saves the file in
  3864. version 0001 format. It means that new aria2 can resume download
  3865. started by old aria2 but the opposite is not true.
  3866. * src/DefaultBtProgressInfoFile.cc
  3867. * src/DefaultBtProgressInfoFile.h
  3868. * test/DefaultBtProgressInfoFileTest.cc
  3869. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3870. Added ntoh64 and hton64 as inline functions.
  3871. * src/Util.cc
  3872. * test/UtilTest.cc
  3873. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3874. Added sqlite3 depenency and Firefox3 cookie support.
  3875. * README
  3876. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3877. State that firefox3 cookie is supported explicitly in the usage.
  3878. * src/usage_text.h
  3879. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3880. Externalized message.
  3881. * src/RequestGroupMan.cc
  3882. * src/message.h
  3883. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3884. Save temporary file first and rename to the destination on success.
  3885. Added test cases.
  3886. * src/RequestGroupMan.cc
  3887. * test/RequestGroupManTest.cc
  3888. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3889. Fixed the bug that the number of connected peer is exceeding the limit
  3890. (55 by default) in seeding mode.
  3891. Multiplied 0.8 to _maxUploadSpeedLimit.
  3892. * src/ActivePeerConnectionCommand.cc
  3893. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3894. Clear table item.
  3895. * src/Dictionary.cc
  3896. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3897. Fixed error handling of lseek.
  3898. * src/AbstractDiskWriter.cc
  3899. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3900. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3901. style cookie file.
  3902. * src/usage_text.h
  3903. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3904. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3905. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3906. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3907. * src/Util.cc
  3908. * src/Util.h
  3909. * src/CookieParser.cc
  3910. * test/UtilTest.cc
  3911. * test/CookieParserTest.cc
  3912. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3913. Separate the implementation to load old mozilla format of cookie to
  3914. NsCookieParser class.
  3915. * src/CookieBoxFactory.cc
  3916. * src/CookieBoxFactory.h
  3917. * src/NsCookieParser.cc
  3918. * src/NsCookieParser.h
  3919. * test/NsCookieParserTest.cc
  3920. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3921. Made parse() const
  3922. * src/Sqlite3MozCookieParser.cc
  3923. * src/Sqlite3MozCookieParser.h
  3924. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3925. Added firefox3 cookie support based on the patch submitted by
  3926. tizianomueller.
  3927. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3928. this functionality.
  3929. * configure.ac
  3930. * m4/sqlite3.m4
  3931. * src/CookieBoxFactory.cc
  3932. * src/CookieBoxFactory.h
  3933. * src/Makefile.am
  3934. * src/Makefile.in
  3935. * src/Sqlite3MozCookieParser.cc
  3936. * src/Sqlite3MozCookieParser.h
  3937. * src/main.cc
  3938. * test/CookieBoxFactoryTest.cc
  3939. * test/Makefile.am
  3940. * test/Makefile.in
  3941. * test/Sqlite3MozCookieParserTest.cc
  3942. * test/badcookies.sqlite
  3943. * test/cookies.sqlite
  3944. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3945. Added Danish and Greek translations.
  3946. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3947. Great thanks to all translators.
  3948. * po/LINGUAS
  3949. * po/el.po
  3950. * po/da.po
  3951. * po/es.po
  3952. * po/ca.po
  3953. * po/nn.po
  3954. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3955. Fixed man page: --follow-bittorrent should be --follow-torrent
  3956. * doc/aria2c.1.txt
  3957. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3958. Fixed: numCommand is less than the value specified in -C option.
  3959. * src/RequestGroup.cc
  3960. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Fixed occasional assertion failure in PieceSegment.
  3962. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3963. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3964. creation of duplicate segments and one of the segment was finished then
  3965. assertion failure was caused.
  3966. * src/SegmentMan.cc
  3967. * test/SegmentManTest.cc
  3968. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3969. Added options to load/save the server's performance/status to a file
  3970. and the timeout to drop their data.
  3971. --server-stat-of=FILE specifies the file to which performance data
  3972. is saved.
  3973. --server-stat-if=FILE specifies the file to read previously saved
  3974. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3975. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3976. TIMEOUT is specified in seconds and the default value is 24hours.
  3977. * src/MultiUrlRequestInfo.cc
  3978. * src/OptionHandlerFactory.cc
  3979. * src/RequestGroupMan.cc
  3980. * src/RequestGroupMan.h
  3981. * src/ServerStatMan.cc
  3982. * src/ServerStatMan.h
  3983. * src/option_processing.cc
  3984. * src/prefs.cc
  3985. * src/prefs.h
  3986. * test/ServerStatManTest.cc
  3987. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3988. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3989. * src/ServerStatMan.cc
  3990. * src/ServerStatMan.h
  3991. * test/ServerStatManTest.cc
  3992. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3993. Implemented ServerStatMan::load(...) function and its test case.
  3994. * src/ServerStat.cc
  3995. * src/ServerStat.h
  3996. * src/ServerStatMan.cc
  3997. * test/ServerStatManTest.cc
  3998. * test/ServerStatTest.cc
  3999. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4000. Use time_t instead of int32_t. Use int64_t where milli second is
  4001. expected.
  4002. * src/TimeA2.cc
  4003. * src/TimeA2.h
  4004. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4005. Implemented ServerStatMan::save(...) function and its test case.
  4006. * src/ServerStat.cc
  4007. * src/ServerStat.h
  4008. * src/ServerStatMan.cc
  4009. * src/ServerStatMan.h
  4010. * test/ServerStatManTest.cc
  4011. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4012. Now aria2 uses name attribute in Metalink as local filename in
  4013. BitTorrent downloads. BUG#2033999
  4014. * src/BtContext.h
  4015. * src/BtDependency.cc
  4016. * src/DefaultBtContext.cc
  4017. * src/DefaultBtContext.h
  4018. * src/SingleFileDownloadContext.cc
  4019. * src/SingleFileDownloadContext.h
  4020. * test/BtDependencyTest.cc
  4021. * test/DefaultBtContextTest.cc
  4022. * test/MockBtContext.h
  4023. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4024. Added AC_C_BIGENDIAN
  4025. * src/configure.ac
  4026. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4027. Limited numCommand less than or equal to the number of piece.
  4028. * src/RequestGroup.cc
  4029. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4030. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4031. directive.
  4032. * test/DefaultPieceStorageTest.cc
  4033. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4034. Fixed memory leak in test code
  4035. * test/AnnounceListTest.cc
  4036. * test/DefaultPeerListProcessorTest.cc
  4037. * test/DefaultPeerStorageTest.cc
  4038. * test/MetaFileUtilTest.cc
  4039. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4040. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4041. * src/DefaultPieceStorage.cc
  4042. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4043. Initialized _directIOAllowed
  4044. * src/MultiDiskAdaptor.cc
  4045. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4046. Fixed memory leak
  4047. * src/GZipDecoder.cc
  4048. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4049. Fixed memory leak
  4050. * src/MetalinkParserStateMachine.cc
  4051. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4052. Fixed memory leak
  4053. * src/Dictionary.cc
  4054. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4055. Fixed memory leak
  4056. * src/IteratableChunkChecksumValidator.h
  4057. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4058. Fixed unmatched malloc/free.
  4059. * src/IteratableChunkChecksumValidator.cc
  4060. * src/IteratableChecksumValidator.cc
  4061. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Removed max chunk size check. This change fixes BUG#2040169
  4063. * src/ChunkedDecoder.cc
  4064. * src/ChunkedDecoder.h
  4065. * test/ChunkedDecoderTest.cc
  4066. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4067. Implemented download speed based URI selection algorithm.
  4068. Introduced new option --uri-selector.
  4069. If --uri-selector=feedback is given, aria2 uses download speed observed
  4070. in the previous downloads and chooses fastest server in the URI list.
  4071. Currently at most 10 URIs are considered to introduce randomeness for
  4072. finding better servers. The speed is average download speed in the
  4073. downloads.
  4074. On the other hand, if --uri-selector=inorder is given, which is default,
  4075. URI is tried in order in URI list.
  4076. The usage text for the new option has not been written yet.
  4077. * src/AbstractCommand.cc
  4078. * src/DownloadCommand.cc
  4079. * src/DownloadEngine.cc
  4080. * src/DownloadEngineFactory.cc
  4081. * src/InOrderURISelector.cc
  4082. * src/InOrderURISelector.h
  4083. * src/OptionHandlerFactory.cc
  4084. * src/PeerStat.h
  4085. * src/RequestGroup.cc
  4086. * src/RequestGroup.h
  4087. * src/RequestGroupMan.cc
  4088. * src/RequestGroupMan.h
  4089. * src/SegmentMan.cc
  4090. * src/SegmentMan.h
  4091. * src/ServerStat.cc
  4092. * src/ServerStat.h
  4093. * src/ServerStatMan.cc
  4094. * src/ServerStatMan.h
  4095. * src/ServerStatURISelector.cc
  4096. * src/ServerStatURISelector.h
  4097. * src/URISelector.h
  4098. * src/option_processing.cc
  4099. * src/prefs.cc
  4100. * src/prefs.h
  4101. * test/InOrderURISelectorTest.cc
  4102. * test/RequestGroupManTest.cc
  4103. * test/ServerStatManTest.cc
  4104. * test/ServerStatURISelectorTest.cc
  4105. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4106. * Release 0.15.1+2
  4107. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4108. Bump up version number to 0.15.1+2
  4109. * configure.ac
  4110. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4111. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4112. * m4/aria2_arg.m4
  4113. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4114. * Release 0.15.1+1
  4115. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4116. Bump up version number to 0.15.1+1
  4117. * configure.ac
  4118. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4119. Fixed the bug that causes segmentaion fault when resuming download
  4120. using metalink without size tag. Reproducible only using HTTP URI.
  4121. * src/HttpResponseCommand.cc
  4122. * src/FtpNegotiationCommand.cc
  4123. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4124. * Release 0.15.1
  4125. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4126. Updated Bulgarian and French translations, thanks to all translators.
  4127. * po/bg.po
  4128. * po/fr.po
  4129. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4130. Bump up version number to 0.15.1
  4131. * configure.ac
  4132. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4133. Avoid repeated call of gettimeofday() when calculating speed.
  4134. * src/SpeedCalc.cc
  4135. * src/SpeedCalc.h
  4136. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4137. Removed writable check when socket's send buffer is full in BitTorrent
  4138. downloads to lower CPU usage.
  4139. * src/PeerInteractionCommand.cc
  4140. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4141. Fixed broken gzip inflation.
  4142. Turn off segmented downloading if gzip content is smaller than or equal
  4143. to 1MiB and inflate the data on the fly, because HTTP response header
  4144. doesn't contain the length of inflated file we can't determin where
  4145. the chunk of data should be written.
  4146. On the other hand, if gzip content is larger than 1MB, then turn off
  4147. on the fly inflation, because some servers returns "content-type: gzip"
  4148. for *.tgz, *.gz files.
  4149. * src/DownloadCommand.cc
  4150. * src/HttpResponseCommand.cc
  4151. * src/HttpResponseCommand.h
  4152. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4153. Applied tizianomueller's patch to fix compile error.
  4154. * test/BitfieldManTest.cc
  4155. * test/BtRequestMessageTest.cc
  4156. * test/DefaultBtContextTest.cc
  4157. * test/DefaultDiskWriterTest.cc
  4158. * test/DefaultPieceStorageTest.cc
  4159. * test/HttpHeaderProcessorTest.cc
  4160. * test/HttpResponseTest.cc
  4161. * test/Metalink2RequestGroupTest.cc
  4162. * test/MetalinkParserControllerTest.cc
  4163. * test/MetalinkProcessorTest.cc
  4164. * test/PeerSessionResourceTest.cc
  4165. * test/UtilTest.cc
  4166. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4167. * Release 0.15.0
  4168. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4169. Reordered src files in POTFILES.in so that usage text appears first.
  4170. * po/POTFILES.in
  4171. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4172. Bump up version number to 0.15.0
  4173. * configure.ac
  4174. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4175. Added Bulgarian translation.
  4176. Updated Catalan, Spanish, French and Japanese translations.
  4177. Thanks to all translators.
  4178. * po/LINGUAS
  4179. * po/bg.po
  4180. * po/ca.po
  4181. * po/es.po
  4182. * po/fr.po
  4183. * po/ja.po
  4184. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4185. Updated feature list. Added libz for dependency section.
  4186. Added a description about unit testing using CppUnit.
  4187. * README
  4188. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4189. Added a test for libz. Quoted where it is necessary.
  4190. * build_test.sh
  4191. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Added GZip to `Enabled Features' list.
  4193. * src/FeatureConfig.cc
  4194. * src/FeatureConfig.h
  4195. * test/FeatureConfigTest.cc
  4196. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4197. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4198. the transfer has not yet started.
  4199. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4200. * src/SegmentMan.cc
  4201. * src/SegmentMan.h
  4202. * test/SegmentManTest.cc
  4203. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4204. Cache last calculated average download/upload speed.
  4205. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4206. cached value.
  4207. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4208. * src/PeerStat.h
  4209. * src/SpeedCalc.cc
  4210. * src/SpeedCalc.h
  4211. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4212. Call parseUrl directly.
  4213. * src/Request.cc (resetUrl)
  4214. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. Supported absolute/relative path in Location header field.
  4216. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4217. * src/HttpHeader.cc
  4218. * src/HttpHeader.h
  4219. * src/HttpResponse.cc
  4220. * src/HttpSkipResponseCommand.cc
  4221. * src/Request.cc
  4222. * test/HttpHeaderTest.cc
  4223. * test/HttpResponseTest.cc
  4224. * test/RequestTest.cc
  4225. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. Changed help text for --load-cookie option.
  4227. * doc/aria2c.1.txt
  4228. * src/usage_text.h
  4229. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4230. Regenerated test/Makefile.in to remove stale ChangeLog.
  4231. * test/Makefile.in
  4232. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4233. Updated po files.
  4234. * po/aria2c.pot
  4235. * po/*.po
  4236. * po/*.gmo
  4237. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4238. Bump up version number to 0.15.0b
  4239. * configure.ac
  4240. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4241. Externalize messages.
  4242. * src/RequestGroupMan.cc
  4243. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4244. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. Use File::exists() instead of File::isFile() to allow non-regular file
  4246. such as block special files.
  4247. * src/AbstractDiskWriter.cc
  4248. * src/MultiDiskWriter.cc
  4249. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4250. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4251. * src/gai_strerror.h
  4252. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4253. Fixed compile error. Thanks gknauf for the patch.
  4254. * src/asctime_r.c
  4255. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4256. Included asctime_r.h from a2time.h.
  4257. * src/a2time.h
  4258. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4259. Added a message "aria2 doesn't verify signature" to log message when
  4260. signature file is saved.
  4261. * src/RequestGroupMan.cc
  4262. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Added the ability to save signature when download is completed if
  4264. signature is available. The filename of signature file is the path to
  4265. download file followed by ".sig". If it already exists, then signature
  4266. will not be saved.
  4267. * src/RequestGroupMan.cc
  4268. * src/Signature.cc
  4269. * test/SignatureTest.cc
  4270. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4271. Updated the descriptions for --bt-seed-unverified.
  4272. * doc/aria2c.1
  4273. * doc/aria2c.1.html
  4274. * doc/aria2c.1.txt
  4275. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4276. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4277. that this is not going to verify files using piece hashes.
  4278. * src/HelpItemFactory.cc
  4279. * src/OptionHandlerFactory.cc
  4280. * src/RequestGroup.cc
  4281. * src/option_processing.cc
  4282. * src/prefs.cc
  4283. * src/prefs.h
  4284. * src/usage_text.h
  4285. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4286. Added the ability to retrieve signature from Metalink file.
  4287. A retrieved signature is stored in Signature class and it is held by
  4288. DownloadContext class. Note that aria2 doesn't verify signature.
  4289. * src/DownloadContext.cc
  4290. * src/DownloadContext.h
  4291. * src/Makefile.am
  4292. * src/Makefile.in
  4293. * src/Metalink2RequestGroup.cc
  4294. * src/MetalinkEntry.cc
  4295. * src/MetalinkEntry.h
  4296. * src/MetalinkParserController.cc
  4297. * src/MetalinkParserController.h
  4298. * src/MetalinkParserStateMachine.cc
  4299. * src/MetalinkParserStateMachine.h
  4300. * src/Signature.cc
  4301. * src/Signature.h
  4302. * src/SignatureMetalinkParserState.cc
  4303. * src/SignatureMetalinkParserState.h
  4304. * src/VerificationMetalinkParserState.cc
  4305. * src/VerificationMetalinkParserState.h
  4306. * test/Metalink2RequestGroupTest.cc
  4307. * test/MetalinkParserControllerTest.cc
  4308. * test/MetalinkProcessorTest.cc
  4309. * test/test.xml
  4310. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4311. Close DiskAdaptor after renaming file.
  4312. * src/RequestGroup.cc
  4313. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. Corrected indentation
  4315. * src/DefaultBtProgressInfoFile.cc
  4316. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4317. Moved the calls of std::ios::exceptions() inside of try-catch block
  4318. because if an error occurred in constructor of std::fstream, then
  4319. exception is thrown immediately when std::ios::exceptions() is called
  4320. which results unhandled exception and aria2c aborts.
  4321. * src/DefaultBtProgressInfoFile.cc
  4322. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4323. Added the test for the previous change in DefaultBtContext.cc
  4324. * test/DefaultBtContextTest.cc
  4325. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4326. Fixed the bug that causes infinite loop when the number of pieces are
  4327. fewer than allowed fast set size which is 10 by default.
  4328. * src/DefaultBtContext.cc
  4329. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. Updated the descriptions for -j, -s. Added --bt-seed.
  4331. * doc/aria2c.1
  4332. * doc/aria2c.1.html
  4333. * doc/aria2c.1.txt
  4334. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4336. aria2 seeds previously downloaded files without validating piece hashs.
  4337. * src/HelpItemFactory.cc
  4338. * src/OptionHandlerFactory.cc
  4339. * src/RequestGroup.cc
  4340. * src/option_processing.cc
  4341. * src/prefs.cc
  4342. * src/prefs.h
  4343. * src/usage_text.h
  4344. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4345. Updated DESCRIPTION of man page.
  4346. * doc/aria2c.1
  4347. * doc/aria2c.1.html
  4348. * doc/aria2c.1.txt
  4349. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4351. Don't define `struct addrinfo' when __sun is defined.
  4352. * src/getaddrinfo.h
  4353. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4354. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4355. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4356. second argument is of type `struct _stati64'. Otherwise it is defined as
  4357. `struct stat'.
  4358. * src/AbstractDiskWriter.cc
  4359. * src/File.cc
  4360. * src/File.h
  4361. * src/a2io.h
  4362. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4363. Fixed the compile error in hurd-i386
  4364. See the original bug report:
  4365. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4366. * src/a2io.h
  4367. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4368. Code cleanup.
  4369. * src/PeerAbstractCommand.cc
  4370. * src/PeerAbstractCommand.h
  4371. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4372. Removed TransferEncoding.
  4373. * src/DownloadCommand.cc
  4374. * src/DownloadCommand.h
  4375. * src/HttpResponseCommand.cc
  4376. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4377. Updated po files.
  4378. * po/aria2c.pot
  4379. * po/*.po
  4380. * po/*.gmo
  4381. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4382. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4383. * src/A2STR.cc
  4384. * src/A2STR.h
  4385. * src/ChunkedDecoder.cc
  4386. * src/ChunkedDecoder.h
  4387. * src/ChunkedEncoding.cc: Removed
  4388. * src/ChunkedEncoding.h: Removed
  4389. * src/DownloadCommand.cc
  4390. * src/DownloadCommand.h
  4391. * src/HttpDownloadCommand.cc
  4392. * src/HttpResponse.cc
  4393. * src/HttpResponse.h
  4394. * src/HttpResponseCommand.cc
  4395. * src/HttpSkipResponseCommand.cc
  4396. * src/HttpSkipResponseCommand.h
  4397. * src/Makefile.am
  4398. * src/TransferEncoding.h: Removed
  4399. * test/ChunkedDecoderTest.cc
  4400. * test/ChunkedEncodingTest.cc: Removed
  4401. * test/HttpResponseTest.cc
  4402. * test/Makefile.am
  4403. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4404. Use append instead of insert.
  4405. * src/GZipDecoder.cc
  4406. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4407. Updated doc
  4408. * src/Decoder.h
  4409. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. Updated usage text for -s option.
  4411. * src/usage_text.h
  4412. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4413. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4414. * src/Request.cc
  4415. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4416. Cleaned up configure.ac.
  4417. * configure.ac
  4418. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4419. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4420. AC_ARG_ENABLE.
  4421. * configure.ac
  4422. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4423. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4424. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4425. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4426. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4427. fly and writes decoded data to a local disk.
  4428. * README
  4429. * README.html
  4430. * configure.ac
  4431. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4432. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4433. * m4/libz.m4
  4434. * src/Decoder.h
  4435. * src/DownloadCommand.cc
  4436. * src/DownloadCommand.h
  4437. * src/Exception.h
  4438. * src/GZipDecoder.cc
  4439. * src/GZipDecoder.h
  4440. * src/HttpHeader.cc
  4441. * src/HttpHeader.h
  4442. * src/HttpRequest.cc
  4443. * src/HttpRequest.h
  4444. * src/HttpResponse.cc
  4445. * src/HttpResponse.h
  4446. * src/HttpResponseCommand.cc
  4447. * src/Makefile.am
  4448. * test/GZipDecoderTest.cc
  4449. * test/HttpRequestTest.cc
  4450. * test/HttpResponseTest.cc
  4451. * test/Makefile.am
  4452. * test/Makefile.in
  4453. * test/gzip_decode_test.gz
  4454. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Clarified usage of -j option.
  4456. * src/usage_text.h
  4457. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4458. Disabled getting size from the response of RETR.
  4459. If SIZE command failed, then disable resuming and segmented downloading.
  4460. * src/FtpConnection.cc
  4461. * src/FtpConnection.h
  4462. * src/FtpNegotiationCommand.cc
  4463. * src/FtpNegotiationCommand.h
  4464. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4465. Use digits to find first byte of file size, which makes the intention
  4466. of the code clearer.
  4467. * src/FtpConnection.cc
  4468. Don't call validateTotalLength() when size is 0.
  4469. * src/FtpNegotiationCommand.cc
  4470. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4471. Updated po files.
  4472. * po/aria2c.pot
  4473. * po/*.gmo
  4474. * po/*.po
  4475. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4476. Clarified usage text for --split option.
  4477. * src/usage_text.h
  4478. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4479. Bump up version number to 0.15.0dev. "dev" means "development"
  4480. version, which means I started the development of the next release!
  4481. * src/configure.ac
  4482. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4483. If FTP server returns negative response with REST raw command and
  4484. requested range is not 0, throw exception. If requested range is 0,
  4485. continue download a file from 0 byte.
  4486. * src/FtpNegotiationCommand.cc
  4487. * src/FtpNegotiationCommand.h
  4488. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Supported FTP server which don't recognize SIZE raw command.
  4490. If SIZE raw command is failed, aria2 will try to get file size
  4491. from the response of RETR raw command. If both attempts are failed,
  4492. then resuming and segmented downloading are disabled.
  4493. * src/FtpConnection.cc
  4494. * src/FtpConnection.h
  4495. * src/FtpNegotiationCommand.cc
  4496. * src/FtpNegotiationCommand.h
  4497. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4498. * Release 0.14.0+1
  4499. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. Bump up version number to 0.14.0+1
  4501. * src/configure.ac
  4502. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Fixed the code that refers static member variable from non-static
  4504. context.
  4505. * src/DefaultPeerStorage.cc
  4506. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4507. * Release 0.14.0
  4508. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4509. Added build test script
  4510. * build_test.sh
  4511. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4512. Updated ja.po
  4513. * src/ja.po
  4514. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4515. Bump up version number to 0.14.0
  4516. * src/configure.ac
  4517. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4518. Updated ja.po and fr.po. Great thanks for french translators and
  4519. Sebastien WILLEMIJNS.
  4520. * po/fr.po
  4521. * po/ja.po
  4522. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4523. Added configure option to enable/disable epoll support.
  4524. * configure.ac
  4525. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4526. Updated man page.
  4527. * doc/aria2c.1.txt
  4528. * doc/aria2c.1
  4529. * doc/aria2c.1.html
  4530. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4531. Added missing default value '5' to the usage of --split option.
  4532. * src/HelpItemFactory.cc
  4533. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. Filled up pieces based on the number of missing blocks, rather than
  4535. simplay the number of piece * block length.
  4536. * src/BtRequestFactory.h
  4537. * src/DefaultBtInteractive.cc
  4538. * src/DefaultBtInteractive.h
  4539. * src/DefaultBtRequestFactory.cc
  4540. * src/DefaultBtRequestFactory.h
  4541. * src/Piece.cc
  4542. * src/Piece.h
  4543. * test/BitfieldManTest.cc
  4544. * test/DefaultBtRequestFactoryTest.cc
  4545. * test/MockBtRequestFactory.h
  4546. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4547. Made _epEvents a member variable.
  4548. * src/DownloadEngine.cc
  4549. * src/DownloadEngine.h
  4550. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4551. Cancel download if http redirect is bounded more than 20 times.
  4552. * src/AbstractCommand.cc
  4553. * src/HttpSkipResponseCommand.cc
  4554. * src/Request.cc
  4555. * src/Request.h
  4556. * test/RequestTest.cc
  4557. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. Fixed unhandled exception(removed keyword `new').
  4559. * src/SocketCore.cc (initEPOLL)
  4560. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4561. Removed visit(const MetaEntry*)
  4562. * src/MetaEntryVisitor.h:
  4563. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4564. and made them virtual.
  4565. * src/BencodeVisitor.h
  4566. * src/BencodeVisitor.cc
  4567. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4568. Updated po files.
  4569. * po/aria2c.pot
  4570. * po/*.po
  4571. * po/*.gmo
  4572. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4573. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4574. the number of socket to watch out.
  4575. * src/PeerInteractionCommand.cc
  4576. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4577. When there is not enough space in disk when writing a chunk of data,
  4578. aria2 now prints the message to the console to warn user and aborts
  4579. its download. Not all downloads are canceled because some downloads
  4580. may use another disk or partition. BUG#1640332
  4581. * src/AbstractDiskWriter.cc
  4582. * src/PeerAbstractCommand.cc
  4583. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4584. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4585. setHaltRequested(true) to cancel download.
  4586. * src/PeerInteractionCommand.h
  4587. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4588. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4589. socket from int to sock_t as sockets are unsigned in Windows.
  4590. For AsyncNameResolver, DownloadEngine, I did additional modification
  4591. for the portion of the code changed according to epoll support.
  4592. I defined sock_t in a2netcompat.h to use sock_t without including
  4593. SocketCore.h.
  4594. * src/AsyncNameResolver.cc
  4595. * src/AsyncNameResolver.h
  4596. * src/DownloadEngine.cc
  4597. * src/DownloadEngine.h
  4598. * src/SocketCore.cc
  4599. * src/SocketCore.h
  4600. * src/a2netcompat.h
  4601. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4602. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4603. changes in the patch were applied.
  4604. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4605. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4606. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4607. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4608. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4609. a2io.h and common.h were modified.
  4610. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4611. MinGW.
  4612. * src/common.h: Changed off_t to 64 bit in MinGW.
  4613. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4614. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4615. only a2netcompat.h is modified.
  4616. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4617. directives.
  4618. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4620. only gai_strerror.h is modified.
  4621. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4622. winsock errors in MinGW.
  4623. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4624. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4625. follow sources are applied.
  4626. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4627. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4628. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4629. I included locale.h from Platform.cc.
  4630. * src/main.cc: Moved common setup/teardown code to Platform class.
  4631. * test/AllTest.cc: Use Platform class.
  4632. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4633. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4634. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4635. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4636. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4637. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4639. aria2-0.13.2+1-mingw-2.patch.
  4640. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4641. systems which don't have termious.h. I moved the directive inside of
  4642. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4643. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4644. anyway.
  4645. * src/asctime_r.h
  4646. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4647. I added 2nd argument to the prototype declaration.
  4648. * src/StringFormat.cc: Get rid of vasprintf.
  4649. * src/getaddrinfo.h: Fixed constants.
  4650. * configure.ac: Added the check for asctime_r function.
  4651. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4652. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4653. Added writable test for Socket when the sending message is in progress.
  4654. Usually the sending message is piece message. Without wriable check,
  4655. upload latency is dropped to more than 1sec.
  4656. * src/PeerInteractionCommand.cc
  4657. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4658. Create only requested files and files which shares a piece with
  4659. requested file in multi-torrent downloads. Directory structures are
  4660. also created in the same rule.
  4661. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4662. DiskWriterEntry as in the previous implementation.
  4663. * src/MultiDiskWriter.cc
  4664. * src/MultiFileAllocationIterator.cc
  4665. * src/MultiFileAllocationIterator.h
  4666. * test/MultiFileAllocationIteratorTest.cc
  4667. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Commented out -lprofiler
  4669. * src/Makefile.am
  4670. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4671. Bump up version number to 0.14.0b.
  4672. * src/configure.ac
  4673. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4674. Actively establish connection to peers in seeding, when peer cache
  4675. is not full and max upload speed limit is not reached.
  4676. * src/ActivePeerConnectionCommand.cc
  4677. * src/ActivePeerConnectionCommand.h
  4678. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4679. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4680. to make room more fleshy, recently found peers.
  4681. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4682. it.
  4683. * src/DefaultPeerStorage.cc
  4684. * test/DefaultPeerStorageTest.cc
  4685. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4686. Returns cached data only when the previous receiveHandshake() is called
  4687. with peek = true.
  4688. * src/PeerConnection.cc (receiveHandshake)
  4689. * src/PeerConnection.h (receiveHandshake)
  4690. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4691. Changed default value of -s option from 1 to 5.
  4692. Also max value of -s option is changed from 5 to 16.
  4693. * src/HelpItemFactory.cc
  4694. * src/OptionHandlerFactory.cc
  4695. * src/option_processing.cc
  4696. * src/usage_text.h
  4697. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4698. Changed -s options behavior. Now it means the number of connections
  4699. made simultaneously in each http/ftp download.
  4700. If 1 URL is specified, the behavior is the same with old implementation.
  4701. If -s N is given and more than N URLs are specified, first N URLs are
  4702. used and remaining URLs are used for backup. If less than N URLs are
  4703. specified, some of URLs are used more than once so that totally N
  4704. connections are made simultaneously.
  4705. * src/main.cc
  4706. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4707. Included missing iosfwd or ostream header.
  4708. * src/RequestGroupMan.cc
  4709. * src/TaggedItem.cc
  4710. * src/TaggedItem.h
  4711. * src/Util.cc
  4712. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4713. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4714. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4715. * src/HttpConnection.cc: Included missing sstream.
  4716. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4717. Added --bt-max-open-files option.
  4718. * src/DefaultPieceStorage.cc
  4719. * src/HelpItemFactory.cc
  4720. * src/MultiDiskAdaptor.cc
  4721. * src/MultiDiskAdaptor.h
  4722. * src/OptionHandlerFactory.cc
  4723. * src/option_processing.cc
  4724. * src/prefs.cc
  4725. * src/prefs.h
  4726. * src/usage_text.h
  4727. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4728. Fixed the bug that aria2 aborts when a path to a directory is given
  4729. in command-line.
  4730. * src/ProtocolDetector.cc
  4731. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4732. Limited the number files opened in each BitTorrent download. The default
  4733. value is 100. The option to change this value will be added.
  4734. * src/MultiDiskAdaptor.cc
  4735. * src/MultiDiskAdaptor.h
  4736. * src/MultiFileAllocationIterator.cc
  4737. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4738. Fixed the bug that HTTP downloads don't start with old libraries.
  4739. * src/HttpHeaderProcessor.cc
  4740. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4741. Use empty() instead of size() > 0.
  4742. * src/HttpConnection.cc
  4743. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4744. Drop connection if the incoming peer ID is the same with localhost's
  4745. one. The previous implementation drops connection when incoming peer's
  4746. IP address is the same with localhost's one.
  4747. * src/PeerListenCommand.cc
  4748. * src/DefaultBtInteractive.cc
  4749. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4750. Returns cached data without checking whether socket is readable
  4751. if the cache is available.
  4752. * src/PeerConnection.cc (receiveHandshake)
  4753. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4754. Included stdint.h
  4755. * src/common.h
  4756. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. Removed duplicate HAVE_GETTIMEOFDAY
  4758. * src/Makefile.am
  4759. * src/Makefile.in
  4760. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4761. Use interval as a minInterval when minInterval is not supplied.
  4762. * src/DefaultBtAnnounce.cc
  4763. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4764. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4765. attempt is failed, then 2nd attempt get kicked out more quickly.
  4766. And it is now static const member of DefaultBtAnnounce.
  4767. * src/DefaultBtAnnounce.h
  4768. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4769. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4770. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4771. * src/ActivePeerConnectionCommand.cc
  4772. * src/BtConstants.h
  4773. * src/BtRuntime.h
  4774. * src/DHTGetPeersCommand.cc
  4775. * src/DefaultBtAnnounce.cc
  4776. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4777. BtRuntime::MAX_PEERS.
  4778. * src/DefaultPeerStorage.h
  4779. * src/InitiatorMSEHandshakeCommand.cc
  4780. * src/PeerInitiateConnectionCommand.cc
  4781. * src/PeerInteractionCommand.cc
  4782. * src/PeerReceiveHandshakeCommand.cc
  4783. * src/TrackerWatcherCommand.cc
  4784. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4785. Always Connect to _numNewConnection
  4786. * src/ActivePeerConnectionCommand.cc
  4787. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4788. Made `begin' unsigned int.
  4789. * src/GrowSegment.h
  4790. * src/Piece.cc
  4791. * src/Piece.h
  4792. * src/PiecedSegment.cc
  4793. * src/PiecedSegment.h
  4794. * src/Segment.h
  4795. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4796. Calculate piece hash when data is arrived if the data is arrived in
  4797. order. This removes additional read operation for hash calculation.
  4798. If the data is arrived in out of order, the hash is calucated when the
  4799. piece is completed. This is the same behavior as the old implementation.
  4800. * src/BtPieceMessage.cc
  4801. * src/DefaultBtProgressInfoFile.cc
  4802. * src/DefaultPieceStorage.cc
  4803. * src/DownloadCommand.cc
  4804. * src/DownloadCommand.h
  4805. * src/DownloadEngine.cc
  4806. * src/GrowSegment.cc
  4807. * src/GrowSegment.h
  4808. * src/Piece.cc
  4809. * src/Piece.h
  4810. * src/PiecedSegment.cc
  4811. * src/PiecedSegment.h
  4812. * src/Segment.h
  4813. * test/PieceTest.cc
  4814. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4815. Try to keep the ordering of outgoing piece message.
  4816. * src/DefaultBtMessageDispatcher.cc
  4817. (DefaultBtMessageDispatcher::sendMessages)
  4818. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4819. Fixed busy loop when error/hup epoll events occur.
  4820. * src/AbstractCommand.cc
  4821. * src/PeerAbstractCommand.cc
  4822. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4823. Added --bt-request-peer-speed-limit option, which was a constant
  4824. SLOW_SPEED_THRESHOLD.
  4825. * src/ActivePeerConnectionCommand.cc
  4826. * src/ActivePeerConnectionCommand.h
  4827. * src/BtConstants.h
  4828. * src/HelpItemFactory.cc
  4829. * src/OptionHandlerFactory.cc
  4830. * src/PeerReceiveHandshakeCommand.cc
  4831. * src/option_processing.cc
  4832. * src/prefs.cc
  4833. * src/prefs.h
  4834. * src/usage_text.h
  4835. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4836. Removed repeated call of getTopDirPath(). Instead, call it once and
  4837. cache the result.
  4838. * src/MultiDiskAdaptor.cc
  4839. * src/MultiDiskAdaptor.h
  4840. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4841. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4842. Fixed compile error on debian etch.
  4843. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4844. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4845. it is undefined.
  4846. * src/Util.cc (ULLONG_MAX)
  4847. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4848. Added epoll support. Use epoll if it is available. If not, use select.
  4849. When async dns is enabled in compile time, epoll support is enabled
  4850. only when aria2 is built with c-ares. This condition statement is
  4851. defined in a2io.h.
  4852. Currently aria2 supports both c-ares and ares, but ares is maintained
  4853. for quite a while and debian already has c-ares package, ares support
  4854. will be dropped in the future version.
  4855. * configure.ac
  4856. * src/AbstractCommand.cc
  4857. * src/AsyncNameResolver.cc
  4858. * src/AsyncNameResolver.h
  4859. * src/Command.cc
  4860. * src/Command.h
  4861. * src/DownloadEngine.cc
  4862. * src/DownloadEngine.h
  4863. * src/PeerAbstractCommand.cc
  4864. * src/SocketCore.cc
  4865. * src/SocketCore.h
  4866. * src/a2io.h
  4867. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4868. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4869. directive.
  4870. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4871. Do not do write operation to /dev/null file.
  4872. * src/LogFactory.cc
  4873. * src/SimpleLogger.cc
  4874. Replaced vasprintf with vsnprintf
  4875. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4876. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4877. * src/BtRequestMessage.cc
  4878. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4879. for segmentation fault caused by previous commit.
  4880. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. Reduced the usage of gettimeofday().
  4882. * src/DefaultBtMessageDispatcher.cc
  4883. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4884. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4885. * src/RequestSlot.cc
  4886. * src/RequestSlot.h
  4887. (RequestSlot::isTimeout)
  4888. Made RequestSlot have a reference to Piece object to avoid find
  4889. Piece repeatedly.
  4890. * src/DefaultBtMessageDispatcher.cc
  4891. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4892. * src/RequestSlot.cc
  4893. * src/RequestSlot.h
  4894. (RequestSlot::getPiece)
  4895. * test/DefaultBtMessageDispatcherTest.cc
  4896. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4897. * src/TimeA2.cc
  4898. * src/TimeA2.h
  4899. (Time::difference): New function.
  4900. (Time::elapsed): Done optimization.
  4901. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4902. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4903. directive.
  4904. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4905. * src/option_processing.cc: Added missing `defined' keyword to #if
  4906. directive.
  4907. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Bump up version number to 0.13.2+1
  4909. * src/configure.ac
  4910. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. Refactored broken outstanding piece handling.
  4912. * src/DefaultPieceStorage.cc
  4913. * src/DefaultPieceStorage.h
  4914. * src/Piece.cc
  4915. * src/Piece.h
  4916. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4917. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4918. name collision of static variable and predefined macro.
  4919. * src/BtContext.cc
  4920. * src/BtContext.h
  4921. * src/CookieBoxFactory.cc
  4922. * src/CookieBoxFactory.h
  4923. * src/CookieParser.cc
  4924. * src/CookieParser.h
  4925. * src/DefaultBtContext.cc
  4926. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4927. * src/RequestGroup.cc
  4928. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4929. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4930. * Release 0.13.2
  4931. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4933. * po/fr.po
  4934. * po/ja.po
  4935. * po/aria2c.pot
  4936. * po/*.po
  4937. * po/*.gmo
  4938. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4939. Bump up version number to 0.13.2
  4940. * src/configure.ac
  4941. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Refactord.
  4943. * src/RequestGroupMan.cc
  4944. (removeStoppedGroup)
  4945. (fillRequestGroupFromReserver)
  4946. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4947. Fixed compile error on Ubuntu.
  4948. * src/BtPieceMessage.cc
  4949. * src/MessageDigestHelper.cc
  4950. * src/Util.cc
  4951. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4952. Fixed compile error when configured with --disable-bittorrent
  4953. * test/DownloadHandlerFactoryTest.cc
  4954. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4955. Done make update-po
  4956. * po/aria2c.pot
  4957. * po/*.po
  4958. * po/*.gmo
  4959. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Bump up version number to 0.13.2rc.
  4961. * src/configure.ac
  4962. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Made option name bold. Updated SYNOPSIS to make it more readable.
  4964. * doc/aria2c.1.txt
  4965. * doc/aria2c.1
  4966. * doc/aria2c.1.html
  4967. * src/version_usage.cc
  4968. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. Refactored. Use std::string instead of size and char*.
  4970. * Data.cc
  4971. * Data.h
  4972. * test/Data.cc
  4973. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4974. Added trimSelf(). Rewritten trim() to use trimSelf().
  4975. * Util.cc
  4976. * Util.h
  4977. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4978. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4979. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4980. Fixed compile error when configured with --disable-metalink.
  4981. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4982. * test/FeatureConfigTest.cc
  4983. * test/DownloadHandlerFactoryTest.cc
  4984. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4985. Fixed compile error when configured with --without-gnutls
  4986. --without-openssl
  4987. * src/main.cc
  4988. * test/DefaultBtProgressInfoFileTest.cc
  4989. * test/SegmentManTest.cc
  4990. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4991. Fixed compile error with OpenSSL.
  4992. * src/IteratableChunkChecksumValidator.cc
  4993. * src/LibsslDHKeyExchange.h
  4994. * src/MessageDigestHelper.cc
  4995. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. Revert the default value of --max-concurrent-downloads to 5.
  4997. Revert the default value of --metalink-servers to 5.
  4998. Man pages was also updated.
  4999. * src/option_processing.cc
  5000. * doc/aria2c.1.txt
  5001. * doc/aria2c.1.html
  5002. * doc/aria2c.1
  5003. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5004. Returns const reference:
  5005. DownloadContext::getPieceHash, DownloadContext::getName,
  5006. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5007. BtContext::getInfoHashAsString,
  5008. * src/BtContext.h
  5009. * src/DefaultBtContext.cc
  5010. * src/DefaultBtContext.h
  5011. * src/DownloadContext.h
  5012. * src/SingleFileDownloadContext.h
  5013. * test/MockBtContext.h
  5014. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5015. * src/RequestGroup.h (getDir): Removed.
  5016. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5017. Returns const reference. The internal urlencode function was optimized
  5018. a little bit.
  5019. * src/Request.cc
  5020. * src/Request.h
  5021. * src/HttpRequest.cc
  5022. * src/HttpRequest.h
  5023. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5024. Defined option name and possible values as std::string to reduce
  5025. temporary string object creation in runtime.
  5026. * src/HelpItemFactory.cc
  5027. * src/LogFactory.cc
  5028. * src/Option.cc
  5029. * src/OptionHandlerFactory.cc
  5030. * src/option_processing.cc
  5031. * src/prefs.cc
  5032. * src/prefs.h
  5033. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5034. Return const reference.
  5035. * src/DownloadHandlerConstants.cc
  5036. * src/DownloadHandlerConstants.h
  5037. (getMetalinkExtensions)
  5038. (getMetalinkContentTypes)
  5039. (getBtExtensions)
  5040. (getBtContentTypes)
  5041. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5042. * src/HttpHeader.cc (get): Rewritten.
  5043. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5044. Make HttpHeader::getFirst(...) return const reference.
  5045. * src/HttpHeader.cc
  5046. * src/HttpHeader.h
  5047. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5048. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5049. it with V_TRUE.
  5050. * src/DefaultPieceStorage.cc
  5051. * src/DownloadCommand.cc
  5052. * src/FtpNegotiationCommand.cc
  5053. * src/HttpRequest.cc
  5054. * src/InitiateConnectionCommand.cc
  5055. * src/RequestGroup.cc
  5056. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Made Option::get(...) return const reference of std::string.
  5058. * src/Option.cc
  5059. * src/Option.h
  5060. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. Replaced std:copy with insert.
  5062. * src/DefaultBtMessageDispatcher.cc
  5063. * src/DefaultPieceStorage.cc
  5064. * src/DownloadEngineFactory.cc
  5065. * src/RequestGroup.cc
  5066. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5067. Included SocketCore.h to fix compiler warning.
  5068. * src/InitiateConnectionCommand.cc
  5069. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5070. Put piece selection strategy algorithm to RarestPieceSelector class,
  5071. Added a switch to choose whether randomized selection so that unit
  5072. tests emit same results in, possibly, win32.
  5073. * src/DefaultPieceStorage.cc
  5074. * src/DefaultPieceStorage.h
  5075. * src/RarestPieceSelector.cc
  5076. * src/RarestPieceSelector.h
  5077. * test/DefaultPieceStorageTest.cc
  5078. * test/RarestPieceSelectorTest.cc
  5079. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Don't pool connection if HTTP proxy is enabled.
  5081. * src/FtpFinishDownloadCommand.cc
  5082. * src/FtpNegotiationCommand.cc
  5083. * src/HttpSkipResponseCommand.cc
  5084. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5086. * src/AbstractCommand.cc
  5087. * src/AbstractCommand.h
  5088. * src/ActivePeerConnectionCommand.cc
  5089. * src/FtpInitiateConnectionCommand.cc
  5090. * src/HttpInitiateConnectionCommand.cc
  5091. * src/InitiateConnectionCommandFactory.cc
  5092. * src/PeerAbstractCommand.cc
  5093. * src/PeerAbstractCommand.h
  5094. * src/PeerInitiateConnectionCommand.cc
  5095. * src/TrackerWatcherCommand.cc
  5096. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5097. Sort RequestSlot in ascending order and manipulate them using
  5098. lower_bound.
  5099. * src/DefaultBtMessageDispatcher.cc
  5100. * src/DefaultBtMessageDispatcher.h
  5101. (getMessageQueue): Added const qualifier.
  5102. (getRequestSlots): Added const qualifier.
  5103. (sendMessages): Use empty() instead of size().
  5104. (doCancelSendingPieceAction): Use HandleEvent object.
  5105. (doAbortOutstandingRequestAction): Rewritten.
  5106. (doChokedAction): Rewritten.
  5107. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5108. (isOutstandingRequest): Rewritten.
  5109. (getOutstandingRequest): Rewritten.
  5110. (removeOutstandingRequest): Rewritten.
  5111. (addOutstandingRequest): Rewritten.
  5112. * src/RequestSlot.cc
  5113. * src/RequestSlot.h
  5114. (operator=): Rewritten.
  5115. (operator!=): New function.
  5116. (operator<): New function.
  5117. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5118. * src/DefaultBtRequestFactory.cc
  5119. (doChokedAction): Rewritten.
  5120. (removeCompletedPiece): Rewritten.
  5121. (removeTargetPiece): Rewritten.
  5122. (createRequestMessages): Added the debug log.
  5123. (createRequestMessagesOnEndGame: Added the debug log.
  5124. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5125. Added the debug log message.
  5126. * src/BtPieceMessage.cc (doReceivedAction)
  5127. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5129. used lower_bound to process them rather than linear search.
  5130. * src/DHTPeerAnnounceStorage.cc
  5131. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5133. peer has at least one completed piece.
  5134. * src/Peer.cc
  5135. * src/Peer.h
  5136. * src/PeerInteractionCommand.cc
  5137. * src/PeerSessionResource.cc
  5138. * src/PeerSessionResource.h
  5139. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5140. Removed unnecessary sorting
  5141. * src/DefaultPieceStorage (DefaultPieceStorage)
  5142. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5143. Rewritten the portion of the code that mangaes allowed fast indexes.
  5144. * src/PeerSessionResource.cc
  5145. * src/PeerSessionResource.h
  5146. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. Removed the invalid string including '\r' from ru.po and
  5148. did make update-po.
  5149. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5150. Added --log-level and --summary-interval to man page.
  5151. * doc/aria2c.1.txt
  5152. * doc/aria2c.1.html
  5153. * doc/aria2c.1
  5154. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5155. Added --log-level option to specify log level. Log messages under
  5156. the specified level are not output. Default value is `debug'.
  5157. * src/HelpItemFactory.cc
  5158. * src/LogFactory.cc
  5159. * src/LogFactory.h
  5160. * src/Logger.h
  5161. * src/OptionHandlerFactory.cc
  5162. * src/SimpleLogger.cc
  5163. * src/SimpleLogger.h
  5164. * src/main.cc
  5165. * src/option_processing.cc
  5166. * src/prefs.h
  5167. * src/usage_text.h
  5168. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Print download progress summary of all parallel downloads in specified
  5170. interval, default 60 secs. While aria2 could download several files
  5171. in parallel (see -j option), it displayed just first download progress,
  5172. and the other downloads are hidden from the users. This new feature
  5173. prints all downloads currently in-progress to the console so that you
  5174. can check the status of all downloads. The interval can be adjusted
  5175. by --summary-interval option.
  5176. The progress readout is now cut so that all fits in the one line of
  5177. console.
  5178. * src/ConsoleStatCalc.cc
  5179. * src/ConsoleStatCalc.h
  5180. * src/HelpItemFactory.cc
  5181. * src/OptionHandlerFactory.cc
  5182. * src/RequestGroupMan.cc
  5183. * src/RequestGroupMan.h
  5184. * src/main.cc
  5185. * src/option_processing.cc
  5186. * src/prefs.h
  5187. * src/usage_text.h
  5188. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5190. * src/DownloadEngine.cc (DownloadEngine)
  5191. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5193. defined.
  5194. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5195. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5196. Use erase+lower_bound+insert instead of sort.
  5197. * src/DefaultPieceStorage.cc (addPieceStats)
  5198. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5199. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5200. * src/A2STR.cc
  5201. * src/A2STR.h
  5202. * src/OptionParser.cc (parse)
  5203. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5204. Defined fake filename `[tracker.announce]' as static const std::string.
  5205. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5206. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5207. Defined default filename `index.html' as static const std::string
  5208. * src/SingleFileDownloadContext.cc
  5209. * src/SingleFileDownloadContext.h
  5210. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Defined "[MEMORY]" as static const std::string.
  5212. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5213. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. Defined control file's version number as static const std::string.
  5215. * src/DefaultBtProgressInfoFile.cc
  5216. * src/DefaultBtProgressInfoFile.h
  5217. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5218. Use Request::METHOD_GET
  5219. * src/RequestGroup.cc (createNextCommandWithAdj)
  5220. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5221. Defined "OK", "ERR", "INPR" as static const std::string
  5222. * src/RequestGroupMan.cc (showDownloadResults)
  5223. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5224. Defined default client used in extended handshake as static const
  5225. std::string
  5226. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5227. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5228. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5229. * src/HttpConnection.cc (eraseConfidentialInfo)
  5230. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5231. Defined default ftp user and password as static const std::string
  5232. * src/AuthConfigFactory.cc
  5233. * src/AuthConfigFactory.h
  5234. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5235. Defined strings used in netrc as static const std::string
  5236. * src/Netrc.cc
  5237. * src/Netrc.h
  5238. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5239. Defined HTTP status as static const std::string
  5240. * src/AbstractProxyResponseCommand.cc
  5241. * src/HttpHeader.cc
  5242. * src/HttpHeader.h
  5243. * src/HttpResponse.cc
  5244. * src/HttpResponseCommand.cc
  5245. * src/HttpSkipResponseCommand.cc
  5246. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5247. Defined "\r\n", "A", "I" as static const std::string
  5248. * src/A2STR.cc
  5249. * src/A2STR.h
  5250. * src/FtpConnection.cc
  5251. * src/FtpConnection.h
  5252. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5253. Added COLON_C(".") and used it in Request::parseUrl()
  5254. * src/A2STR.cc
  5255. * src/A2STR.h
  5256. * src/Request.cc (parseUrl)
  5257. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5258. Changed the type of padName from `const std::string&' to `const char*'.
  5259. * src/MSEHandshake.cc (verifyPadLength)
  5260. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. Defined "sha1" as static const std::string.
  5262. * src/MetalinkParserController.cc
  5263. * src/MetalinkParserController.h
  5264. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5265. Defined message digest algorithm name as static const std::string
  5266. * src/DHTTokenTracker.cc
  5267. * src/DHTUtil.cc
  5268. * src/DefaultBtContext.cc
  5269. * src/MSEHandshake.cc
  5270. * src/MessageDigestHelper.cc
  5271. * src/Peer.cc
  5272. * src/messageDigest.cc
  5273. * src/messageDigest.h
  5274. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Made string literals used in SAX parser static const std::string.
  5276. * src/FileMetalinkParserState.cc
  5277. * src/FileMetalinkParserState.h
  5278. * src/FilesMetalinkParserState.cc
  5279. * src/FilesMetalinkParserState.h
  5280. * src/InitialMetalinkParserState.cc
  5281. * src/InitialMetalinkParserState.h
  5282. * src/MetalinkMetalinkParserState.cc
  5283. * src/MetalinkMetalinkParserState.h
  5284. * src/PiecesMetalinkParserState.cc
  5285. * src/PiecesMetalinkParserState.h
  5286. * src/ResourcesMetalinkParserState.cc
  5287. * src/ResourcesMetalinkParserState.h
  5288. * src/VerificationMetalinkParserState.cc
  5289. * src/VerificationMetalinkParserState.h
  5290. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5291. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5292. * src/A2STR.cc
  5293. * src/A2STR.h
  5294. * src/File.cc
  5295. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5296. Defined static const std::string IP("ip"), PORT("port") and use them
  5297. instead of string literals.
  5298. * src/DefaultPeerListProcessor.cc
  5299. * src/DefaultPeerListProcessor.h
  5300. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. Made string literals for torrent file processing static const
  5302. std::string.
  5303. * src/BtContext.cc
  5304. * src/BtContext.h
  5305. * src/DefaultBtContext.cc
  5306. * src/DefaultBtContext.h
  5307. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5308. Made string literal for tracker response static const std::string
  5309. * src/BtAnnounce.cc
  5310. * src/BtAnnounce.h
  5311. * src/DefaultBtAnnounce.cc
  5312. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Use DHTMessage::T instead of "t".
  5314. * src/DHTMessageTracker.cc (messageArrived)
  5315. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5316. Made keyName static const. Made trimmed charset static const
  5317. std::string.
  5318. * src/Util.cc (getContentDispositionFilename)
  5319. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5320. Made USER_AGENT const. Made "/" static const std::string.
  5321. * src/A2STR.cc
  5322. * src/A2STR.h
  5323. * src/HttpRequest.cc
  5324. * src/HttpRequest.h
  5325. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Made string listeral to static const std::string:
  5327. "Content-Range", "Content-Length"
  5328. * src/HttpHeader.cc
  5329. * src/HttpHeader.h
  5330. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5331. Made string listeral to static const std::string.
  5332. * src/HttpConnection.cc
  5333. * src/HttpHeader.cc
  5334. * src/HttpHeader.h
  5335. * src/HttpResponse.cc
  5336. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5337. Made string listeral to static const std::string.
  5338. * src/A2STR.cc
  5339. * src/A2STR.h
  5340. * src/SimpleLogger.cc
  5341. * src/SimpleLogger.h
  5342. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5343. Made string literal to static const std::string.
  5344. Rewritten CookieParser::setField.
  5345. * src/A2STR.cc
  5346. * src/A2STR.h
  5347. * src/CookieBoxFactory.cc
  5348. * src/CookieBoxFactory.h
  5349. * src/CookieParser.cc
  5350. * src/CookieParser.h
  5351. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5352. Made string literal to static const std::string
  5353. * src/DHTAbstractMessage.cc
  5354. * src/DHTAnnouncePeerMessage.cc
  5355. * src/DHTAnnouncePeerMessage.h
  5356. * src/DHTAnnouncePeerReplyMessage.cc
  5357. * src/DHTAnnouncePeerReplyMessage.h
  5358. * src/DHTFindNodeMessage.cc
  5359. * src/DHTFindNodeMessage.h
  5360. * src/DHTFindNodeReplyMessage.cc
  5361. * src/DHTFindNodeReplyMessage.h
  5362. * src/DHTGetPeersMessage.cc
  5363. * src/DHTGetPeersMessage.h
  5364. * src/DHTGetPeersReplyMessage.cc
  5365. * src/DHTGetPeersReplyMessage.h
  5366. * src/DHTMessage.cc
  5367. * src/DHTMessage.h
  5368. * src/DHTMessageFactoryImpl.cc
  5369. * src/DHTMessageReceiver.cc
  5370. * src/DHTPingMessage.cc
  5371. * src/DHTPingMessage.h
  5372. * src/DHTPingReplyMessage.cc
  5373. * src/DHTPingReplyMessage.h
  5374. * src/DHTQueryMessage.cc
  5375. * src/DHTQueryMessage.h
  5376. * src/DHTResponseMessage.cc
  5377. * src/DHTResponseMessage.h
  5378. * src/DHTUnknownMessage.cc
  5379. * src/DHTUnknownMessage.h
  5380. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5381. Made string literal to static const std::string
  5382. * src/BtChokeMessage.cc (toString)
  5383. * src/BtHaveAllMessage.cc (toString)
  5384. * src/BtHaveNoneMessage.cc (toString)
  5385. * src/BtInterestedMessage.cc (toString)
  5386. * src/BtNotInterestedMessage.cc (toString)
  5387. * src/BtUnchokeMessage.cc (toString)
  5388. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5389. Replaced "" with static const variable A2STR::NIL.
  5390. Replaced string comparison against "" with std::string::empty().
  5391. Added PROTO_* to Request class and use them as a protocol string
  5392. constant.
  5393. Made "started", "stopped", "completed" static const variable in
  5394. AnnounceList class.
  5395. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5396. Updated translations. Great thanks to translators.
  5397. * po/ca.po
  5398. * po/de.po
  5399. * po/fr.po
  5400. * po/it.po
  5401. * po/ja.po
  5402. * po/ru.po
  5403. * po/zh_CN.po
  5404. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5405. Updated man page; categorized options and fixed typo.
  5406. * doc/aria2c.1.txt
  5407. * doc/aria2c.1.html
  5408. * doc/aria2c.1
  5409. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Removed const ref
  5411. * src/MetalinkEntry.cc (AddProtocolPreference)
  5412. * src/RequestGroup.cc (FindServerHostByHostname)
  5413. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5414. Rewritten Accept-Features handling.
  5415. * src/HttpRequestCommand.cc (createHttpRequest)
  5416. * src/a2functional.h
  5417. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5418. Changed method signature:
  5419. DHTAbstractNodeLookupTask::toEntries
  5420. * src/DHTAbstractNodeLookupTask.cc
  5421. * src/DHTAbstractNodeLookupTask.h
  5422. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5423. Changed method signature:
  5424. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5425. * src/BtContext.h
  5426. * src/DefaultBtContext.cc
  5427. * src/DefaultBtContext.h
  5428. * src/DefaultBtInteractive.cc
  5429. * test/DefaultBtContextTest.cc
  5430. * test/MockBtContext.h
  5431. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Changed method signature:
  5433. MultiFileAllocationIterator::makeDiskWriterEntries
  5434. * src/MultiFileAllocationIterator.cc
  5435. * src/MultiFileAllocationIterator.h
  5436. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5437. Changed method sinature:
  5438. MetalinkEntry::toFileEntry,
  5439. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5440. Metalinker::queryEntry
  5441. * src/Metalink2RequestGroup.cc
  5442. * src/MetalinkEntry.cc
  5443. * src/MetalinkEntry.h
  5444. * src/MetalinkHelper.cc
  5445. * src/MetalinkHelper.h
  5446. * src/Metalinker.cc
  5447. * src/Metalinker.h
  5448. * src/main.cc
  5449. * test/MetalinkHelperTest.cc
  5450. * test/MetalinkerTest.cc
  5451. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5452. Changed method sinature:
  5453. RequestGroup::getURIs
  5454. * src/RequestGroup.cc
  5455. * src/RequestGroup.h
  5456. * test/Metalink2RequestGroupTest.cc
  5457. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. Changed method signature:
  5459. PeerListProcessor::extractPeer
  5460. * src/CompactPeerListProcessor.cc
  5461. * src/CompactPeerListProcessor.h
  5462. * src/DefaultBtAnnounce.cc
  5463. * src/DefaultPeerListProcessor.cc
  5464. * src/DefaultPeerListProcessor.h
  5465. * src/DelegatingPeerListProcessor.cc
  5466. * src/DelegatingPeerListProcessor.h
  5467. * src/PeerListProcessor.h
  5468. * src/UTPexExtensionMessage.cc
  5469. * test/DefaultPeerListProcessorTest.cc
  5470. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5471. Changed method signature:
  5472. BtRequestFactory::createRequestMessages,
  5473. BtRequestFactory::createRequestMessagesOnEndGame
  5474. * src/BtRequestFactory.h
  5475. * src/DefaultBtInteractive.cc
  5476. * src/DefaultBtRequestFactory.cc
  5477. * src/DefaultBtRequestFactory.h
  5478. * test/DefaultBtRequestFactoryTest.cc
  5479. * test/MockBtRequestFactory.h
  5480. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5481. Changed method signature:
  5482. PieceStorage::getInFlightPieces
  5483. * src/DefaultBtProgressInfoFile.cc
  5484. * src/DefaultPieceStorage.cc
  5485. * src/DefaultPieceStorage.h
  5486. * src/PieceStorage.h
  5487. * src/UnknownLengthPieceStorage.cc
  5488. * src/UnknownLengthPieceStorage.h
  5489. * test/DefaultBtProgressInfoFileTest.cc
  5490. * test/MockPieceStorage.h
  5491. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5492. Changed method signature:
  5493. PostDownloadHandler::getNextRequestGroups
  5494. Metalink2RequestGroup::generate
  5495. RequestGroup::postDownloadProcessing
  5496. * src/BtPostDownloadHandler.cc
  5497. * src/BtPostDownloadHandler.h
  5498. * src/Metalink2RequestGroup.cc
  5499. * src/Metalink2RequestGroup.h
  5500. * src/MetalinkPostDownloadHandler.cc
  5501. * src/MetalinkPostDownloadHandler.h
  5502. * src/PostDownloadHandler.h
  5503. * src/RequestGroup.cc
  5504. * src/RequestGroup.h
  5505. * src/RequestGroupMan.cc
  5506. * src/main.cc
  5507. * test/BtPostDownloadHandlerTest.cc
  5508. * test/Metalink2RequestGroupTest.cc
  5509. * test/MetalinkPostDownloadHandlerTest.cc
  5510. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. Rewritten AccRequestGroup
  5512. * src/main.cc
  5513. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5514. Rewritten.
  5515. * src/TaggedItem.cc (toTagString)
  5516. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Rewritten Accept-Features handling.
  5518. * src/HttpRequestCommand.cc (createHttpRequest)
  5519. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5520. Rewritten accept types handling.
  5521. * HttpRequest.cc (createRequest)
  5522. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5523. Rewritten
  5524. * src/FeatureConfig.cc (featureSummary)
  5525. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5526. Changed method signature:
  5527. PeerStorage::getActivePeers
  5528. * src/DHTPeerAnnounceEntry.cc
  5529. * src/DefaultPeerStorage.cc
  5530. * src/DefaultPeerStorage.h
  5531. * src/PeerStorage.h
  5532. * test/DefaultPeerStorageTest.cc
  5533. * test/MockPeerStorage.h
  5534. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. Changed method signature:
  5536. DHTPeerAnnounceStorage::getPeers,
  5537. DHTPeerAnnounceEntry::getPeers
  5538. * src/DHTGetPeersMessage.cc
  5539. * src/DHTPeerAnnounceEntry.cc
  5540. * src/DHTPeerAnnounceEntry.h
  5541. * src/DHTPeerAnnounceStorage.cc
  5542. * src/DHTPeerAnnounceStorage.h
  5543. * test/DHTAnnouncePeerMessageTest.cc
  5544. * test/DHTPeerAnnounceEntryTest.cc
  5545. * test/DHTPeerAnnounceStorageTest.cc
  5546. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Changed method signature:
  5548. NameResolver::resolve
  5549. * src/DHTEntryPointNameResolveCommand.cc
  5550. * src/InitiateConnectionCommand.cc
  5551. * src/NameResolver.cc
  5552. * src/NameResolver.h
  5553. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5554. Changed method signature:
  5555. PieceStorage::getAdvertisedPieceIndexes
  5556. * src/DefaultBtInteractive.cc
  5557. * src/DefaultPieceStorage.cc
  5558. * src/DefaultPieceStorage.h
  5559. * src/PieceStorage.h
  5560. * src/UnknownLengthPieceStorage.h
  5561. * test/MockPieceStorage.h
  5562. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5563. Changed method signature:
  5564. SegmentMan::getInFlightSegment
  5565. * src/AbstractCommand.cc
  5566. * src/SegmentMan.cc
  5567. * src/SegmentMan.h
  5568. * test/SegmentManTest.cc
  5569. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5570. Changed method signature:
  5571. DHTAbstractNodeLookupTask::getNodesFromMessage
  5572. * src/DHTAbstractNodeLookupTask.cc
  5573. * src/DHTAbstractNodeLookupTask.h
  5574. * src/DHTNodeLookupTask.cc
  5575. * src/DHTNodeLookupTask.h
  5576. * src/DHTPeerLookupTask.cc
  5577. * src/DHTPeerLookupTask.h
  5578. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5579. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5580. * src/AbstractCommand.cc
  5581. * src/BtCheckIntegrityEntry.cc
  5582. * src/BtCheckIntegrityEntry.h
  5583. * src/BtFileAllocationEntry.cc
  5584. * src/BtFileAllocationEntry.h
  5585. * src/BtSetup.cc
  5586. * src/BtSetup.h
  5587. * src/CheckIntegrityCommand.cc
  5588. * src/CheckIntegrityEntry.h
  5589. * src/ChecksumCheckIntegrityEntry.cc
  5590. * src/ChecksumCheckIntegrityEntry.h
  5591. * src/DHTSetup.cc
  5592. * src/DHTSetup.h
  5593. * src/DownloadEngine.cc
  5594. * src/FileAllocationCommand.cc
  5595. * src/FileAllocationEntry.h
  5596. * src/RequestGroup.cc
  5597. * src/RequestGroup.h
  5598. * src/RequestGroupMan.cc
  5599. * src/RequestGroupMan.h
  5600. * src/StreamCheckIntegrityEntry.cc
  5601. * src/StreamCheckIntegrityEntry.h
  5602. * src/StreamFileAllocationEntry.cc
  5603. * src/StreamFileAllocationEntry.h
  5604. * src/TrackerWatcherCommand.cc
  5605. * src/a2functional.h
  5606. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. Changed method signature:
  5608. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5609. DHTBucket::getGoodNodes,
  5610. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5611. * src/BNode.cc
  5612. * src/BNode.h
  5613. * src/DHTAbstractNodeLookupTask.cc
  5614. * src/DHTAutoSaveCommand.cc
  5615. * src/DHTBucket.cc
  5616. * src/DHTBucket.h
  5617. * src/DHTBucketRefreshTask.cc
  5618. * src/DHTFindNodeMessage.cc
  5619. * src/DHTGetPeersMessage.cc
  5620. * src/DHTRoutingTable.cc
  5621. * src/DHTRoutingTable.h
  5622. * test/BNodeTest.cc
  5623. * test/DHTBucketTest.cc
  5624. * test/DHTRoutingTableTest.cc
  5625. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5626. In piece selection functions, Pass std::deque<...> by reference rather
  5627. than returning it.
  5628. * src/BitfieldMan.cc
  5629. * src/BitfieldMan.h
  5630. * src/DefaultBtRequestFactory.cc
  5631. * src/DefaultPieceStorage.cc
  5632. * src/Piece.cc
  5633. * src/Piece.h
  5634. * test/BitfieldManTest.cc
  5635. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5636. Implemented rarest piece first piece selection strategy.
  5637. * src/AbstractBtMessage.cc
  5638. * src/AbstractBtMessage.h
  5639. * src/BitfieldMan.cc
  5640. * src/BitfieldMan.h
  5641. * src/BtBitfieldMessage.cc
  5642. * src/BtHaveAllMessage.cc
  5643. * src/BtHaveMessage.cc
  5644. * src/DefaultPieceStorage.cc
  5645. * src/DefaultPieceStorage.h
  5646. * src/PeerInteractionCommand.cc
  5647. * src/PieceStorage.h
  5648. * src/UnknownLengthPieceStorage.h
  5649. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5650. Rewritten readData and writeData.
  5651. * src/MultiDiskAdaptor.cc
  5652. * src/MultiDiskAdaptor.h
  5653. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Move \n out of the message "Usage: ...".
  5655. * src/version_usage.cc
  5656. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5657. Bump up version number to 0.13.2b.
  5658. * configure.ac
  5659. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5660. Added const qualifier to argument Exception& e.
  5661. * src/Logger.h
  5662. * src/SimpleLogger.cc
  5663. * src/SimpleLogger.h
  5664. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5665. Pool connection when CWD, SIZE command fails.
  5666. * src/FtpNegotiationCommand.cc
  5667. * src/FtpNegotiationCommand.h
  5668. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5669. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5670. * src/HttpResponseCommand.cc
  5671. * src/HttpSkipResponseCommand.cc
  5672. * src/HttpSkipResponseCommand.h
  5673. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Pool connection when a server returns 4xx, 5xx responses.
  5675. * src/HttpNullDownloadCommand.cc
  5676. * src/HttpNullDownloadCommand.h
  5677. * src/HttpResponse.cc
  5678. * src/HttpResponse.h
  5679. * src/HttpResponseCommand.cc
  5680. * src/HttpResponseCommand.h
  5681. * test/HttpResponseTest.cc
  5682. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5683. Print usage when no URL is specifed or bad command-line option is
  5684. specified.
  5685. * src/HelpItemFactory.cc
  5686. * src/help_tags.h
  5687. * src/option_processing.cc
  5688. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5689. Removed duplicate log message.
  5690. * src/AbstractCommand.cc (asyncResolveHostname)
  5691. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5692. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5693. Changed -j option's default value from 5 to 1.
  5694. Added new examples using protocol auto detection feature.
  5695. Removed -T, -M usage where it can be omitted.
  5696. * doc/aria2c.1.txt
  5697. * doc/aria2c.1.html
  5698. * doc/aria2c.1.txt
  5699. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Updated command-line usage text, so that it tells users that they
  5701. can specify any number of torrent files and metalink files in
  5702. command-line.
  5703. * src/version_usage.cc
  5704. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. Changed the default value of -j option to 1.
  5706. * src/HelpItemFactory.cc
  5707. * src/option_processing.cc
  5708. * src/usage_text.h
  5709. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5710. Added the ability to reuse connection in FTP and it is enabled by
  5711. default. It can be disabled by --ftp-reuse-connection=false option.
  5712. * src/Command.cc
  5713. * src/DownloadCommand.cc
  5714. * src/FtpDownloadCommand.cc
  5715. * src/FtpDownloadCommand.h
  5716. * src/FtpFinishDownloadCommand.cc
  5717. * src/FtpFinishDownloadCommand.h
  5718. * src/FtpInitiateConnectionCommand.cc
  5719. * src/FtpNegotiationCommand.cc
  5720. * src/FtpNegotiationCommand.h
  5721. * src/HelpItemFactory.cc
  5722. * src/Makefile.am
  5723. * src/Makefile.in
  5724. * src/OptionHandlerFactory.cc
  5725. * src/option_processing.cc
  5726. * src/prefs.h
  5727. * src/usage_text.h
  5728. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5729. Call Command::transitStatus() before calling Command::execute(),
  5730. so that the status change made in execute() is not cleared.
  5731. * src/DownloadEngine.cc
  5732. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5733. Removed forward declaration of SocketCore class.
  5734. * src/HttpDownloadCommand.h
  5735. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5737. in InitiateConnectionCommandFactory. They should be set only when
  5738. the protocol is HTTP or HTTPS.
  5739. * src/InitiateConnectionCommandFactory.cc
  5740. * src/RequestGroup.cc
  5741. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5742. Fixed infinite loop in checksum checking.
  5743. * src/IteratableChecksumValidator.cc
  5744. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. Set _supportsPersistentConnection to true by default.
  5746. * src/Request.cc
  5747. * src/RequestGroup.cc
  5748. * test/HttpRequestTest.cc
  5749. * test/RequestTest.cc
  5750. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5751. Added timeout to socket pool. The default timeout is 15 seconds,
  5752. which is the same value Apache uses.
  5753. * src/DownloadEngine.cc
  5754. * src/DownloadEngine.h
  5755. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5756. Fixed misuse of multimap::find()
  5757. * src/HttpHeader.cc
  5758. * test/HttpHeaderTest.cc
  5759. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5760. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5761. option.
  5762. The asynchronous DNS is not capable of IPv6 yet.
  5763. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5764. least for HTTP download.
  5765. * src/AbstractCommand.cc
  5766. * src/AbstractCommand.h
  5767. * src/AsyncNameResolver.cc
  5768. * src/AsyncNameResolver.h
  5769. * src/DHTEntryPointNameResolveCommand.cc
  5770. * src/DHTEntryPointNameResolveCommand.h
  5771. * src/DownloadEngine.cc
  5772. * src/DownloadEngine.h
  5773. * src/FtpInitiateConnectionCommand.cc
  5774. * src/FtpInitiateConnectionCommand.h
  5775. * src/HelpItemFactory.cc
  5776. * src/HttpInitiateConnectionCommand.cc
  5777. * src/HttpInitiateConnectionCommand.h
  5778. * src/InitiateConnectionCommand.cc
  5779. * src/InitiateConnectionCommand.h
  5780. * src/Makefile.am
  5781. * src/Makefile.in
  5782. * src/NameResolver.cc
  5783. * src/NameResolver.h
  5784. * src/OptionHandlerFactory.cc
  5785. * src/SocketCore.cc
  5786. * src/SocketCore.h
  5787. * src/Util.cc
  5788. * src/Util.h
  5789. * src/option_processing.cc
  5790. * src/prefs.h
  5791. * src/usage_text.h
  5792. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5793. Updated man page: --quiet, --header were added.
  5794. --metalink-servers and --enable-http-keep-alive option were updated.
  5795. * doc/aria2c.1
  5796. * doc/aria2c.1.html
  5797. * doc/aria2c.1.txt
  5798. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Enable HTTP keep-alive by default.
  5800. * src/HelpItemFactory.cc
  5801. * src/option_processing.cc
  5802. * src/usage_text.h
  5803. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5804. Disable http keep-alive if the remote server is not HTTP/1.1.
  5805. * src/HttpConnection.cc
  5806. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Receive content body of 302 response so that the connection can be
  5808. reused later when http keep-alive is enabled.
  5809. * src/HttpNullDownloadCommand.cc
  5810. * src/HttpNullDownloadCommand.h
  5811. * src/HttpResponseCommand.cc
  5812. * src/HttpResponseCommand.h
  5813. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. const SharedHandle<Request> -> const SharedHandle<Request>&
  5815. * src/FtpDowndloadCommand.cc
  5816. * src/FtpDowndloadCommand.h
  5817. * src/HttpDownloadCommand.cc
  5818. * src/HttpDownloadCommand.h
  5819. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Fixed the bug that the control file(.aria2 file) is not renamed
  5821. according to tryAutoFileRenaming().
  5822. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5823. its control file exist, use them and continue download.
  5824. The old implementation didn't take into account of control file's
  5825. existence, so basically you couldn't continue download of renamed file.
  5826. * src/BtProgressInfoFile.h
  5827. * src/DefaultBtProgressInfoFile.cc
  5828. * src/DefaultBtProgressInfoFile.h
  5829. * src/NullProgressInfoFile.h
  5830. * src/RequestGroup.cc
  5831. * test/DefaultBtProgressInfoFileTest.cc
  5832. * test/MockBtProgressInfoFile.h
  5833. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5834. Change the default value of --metalink-servers option from `5' to `1'.
  5835. * src/HelpItemFactory.cc
  5836. * src/option_processing.cc
  5837. * src/usage_text.h
  5838. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5839. Reimplemented transparent metalink using Accept request header.
  5840. * src/HttpRequest.cc
  5841. * src/HttpRequest.h
  5842. * src/HttpRequestCommand.cc
  5843. * src/Metalink2RequestGroup.cc
  5844. * src/RequestGroup.cc
  5845. * src/RequestGroup.h
  5846. * test/HttpRequestTest.cc
  5847. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5848. Bump up version number to 0.13.2a
  5849. * configure.ac
  5850. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Updated configure.ac using the result of autoscan.
  5852. * configure.ac
  5853. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5854. Fixed compilation error without gcrypt/openssl.
  5855. * src/DownloadCommand.cc
  5856. * src/DownloadCommand.h
  5857. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5858. Reorganized version information so that it can be displayed in a
  5859. standard terminal screen without scrolling.
  5860. Removed http, ftp from Configuration section, because they are always
  5861. enabled.
  5862. * src/FeatureConfig.cc
  5863. * src/FeatureConfig.h
  5864. * src/main.cc
  5865. * src/messageDigest.cc
  5866. * src/messageDigest.h
  5867. * src/version_usage.cc
  5868. * test/FeatureConfigTest.cc
  5869. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Masked user ID in log.
  5871. * src/FtpConnection.cc (sendUser)
  5872. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5873. Removed query part from filename in HTTP download. The query part means
  5874. the substring after "?" in URL. Firefox seems do the same thing.
  5875. A query part is sometimes very long and not suitable to filename,
  5876. so I think it is better to remove it from filename.
  5877. * src/HttpRequest.cc
  5878. * src/HttpRequest.h
  5879. * src/Request.cc
  5880. * src/Request.h
  5881. * test/HttpRequestTest.cc
  5882. * test/RequestTest.cc
  5883. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. Rewritten Exception class. Throw exception object, not its pointer and
  5885. catch by reference, so that remove problematic delete operator for
  5886. catched exception.
  5887. * src/Exception.cc
  5888. * src/Exception.h
  5889. * test/ExceptionTest.cc
  5890. * src/*: All files throwing/catching exception.
  5891. * test/*: All files throwing/catching exception.
  5892. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5893. Now auto protocol detection is enabled without -Z option.
  5894. But there is a important difference between with/without -Z optoin.
  5895. For example, if you type:
  5896. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5897. then, aria2 interprets there are 3 request groups:
  5898. (1) http://host/file, http://mirror/file <-- multi-source download
  5899. (2) file1.torrent
  5900. (3) file2.metalink
  5901. On the other hand, if you invoke above command with -Z option, it is
  5902. interpreted as 4 request groups:
  5903. (1) http://host/file
  5904. (2) file1.torrent
  5905. (3) file2.metalink
  5906. (4) http://mirror/file
  5907. I think usually user don't mix multi-source URLs and torrent files, so
  5908. there is no big problem here.
  5909. * src/main.cc
  5910. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. Fixed the bug that causes segmentaion fault when reading XML containing
  5912. unescapsed character like '&'.
  5913. Also a modification was made which avoids adding unnecessary
  5914. characters stack and appending unused string.
  5915. * src/ExpatMetalinkProcessor.cc
  5916. * src/FileMetalinkParserState.h
  5917. * src/FilesMetalinkParserState.h
  5918. * src/FinMetalinkParserState.h
  5919. * src/HashMetalinkParserState.h
  5920. * src/InitialMetalinkParserState.h
  5921. * src/LanguageMetalinkParserState.h
  5922. * src/MetalinkMetalinkParserState.h
  5923. * src/MetalinkParserState.h
  5924. * src/MetalinkParserStateMachine.cc
  5925. * src/MetalinkParserStateMachine.h
  5926. * src/OSMetalinkParserState.h
  5927. * src/PieceHashMetalinkParserState.h
  5928. * src/PiecesMetalinkParserState.h
  5929. * src/ResourcesMetalinkParserState.h
  5930. * src/SizeMetalinkParserState.h
  5931. * src/SkipTagMetalinkParserState.h
  5932. * src/URLMetalinkParserState.h
  5933. * src/VerificationMetalinkParserState.h
  5934. * src/VersionMetalinkParserState.h
  5935. * src/XML2SAXMetalinkProcessor.cc
  5936. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5937. Added StringFormat class, which internally calls vasprintf.
  5938. operator<< is defined for this class, so it can be used with iostream
  5939. classes nicely. SimpleLogger and following functions are rewritten
  5940. using StringFormat class.
  5941. Besides, now Logger class's methods are non-const, many classes
  5942. that has a const Logger* as a member variable are modified to remove
  5943. const qualifier from the variable declaration.
  5944. * src/HelpItemFactory.cc
  5945. * src/Request.cc
  5946. * src/SimpleLogger.cc
  5947. * src/StringFormat.cc
  5948. * src/StringFormat.h
  5949. * src/Util.cc
  5950. * src/option_processing.cc
  5951. * src/version_usage.cc
  5952. * test/StringFormatTest.cc
  5953. * src/*.h: The classes that has const Logger* as a member variable.
  5954. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5956. failed. Also fixed memory link when exception is thrown there.
  5957. * src/main.cc (AccRequestGroup)
  5958. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5959. Added build-in "Accept-Features" support. For now only "metalink" is
  5960. used in this header field.
  5961. This "metalink" value is removed from the list when connecting URLs
  5962. fed by metalink file to avoid loop in "transparent" metlaink.
  5963. * src/HttpRequest.cc
  5964. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5965. header is also held in this variable. Also renamed setUserHeaders as
  5966. addHeader and it was rewritten to add header not just to clear the old
  5967. value.
  5968. * src/HttpRequestCommand.cc
  5969. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5970. from "Accept-Features" list.
  5971. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5972. default.
  5973. * src/RequestGroup.h
  5974. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5975. * src/a2functional.h: Included <string> because Concat class depends on
  5976. it.
  5977. * test/HttpRequestTest.cc
  5978. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5979. Added comment
  5980. * src/RequestGroup.cc (createNextCommand)
  5981. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5982. Capitalized METHOD_GET and METHOD_HEAD
  5983. * src/Request.cc
  5984. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Added getDownloadResults() method
  5986. * src/RequestGroupMan.cc
  5987. * src/RequestGroupMan.h
  5988. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5989. Fixed the bug that aria2 exits when commands is empty() but
  5990. _routineCommands are not.
  5991. * src/DownloadEngine.cc
  5992. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5993. Use the default value pulled from Option object in HelpItemFactory.
  5994. except options whose defualt value is embedded in a usage text.
  5995. * src/HelpItemFactory.cc
  5996. * src/HelpItemFactory.h
  5997. * src/option_processing.cc
  5998. * src/version_usage.cc
  5999. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Added --quiet option to make aria2 quiet (no console output).
  6001. --quiet option is tagged with ADVANCED.
  6002. * src/HelpItemFactory.cc
  6003. * src/LogFactory.cc
  6004. * src/LogFactory.h
  6005. * src/MultiUrlRequestInfo.cc
  6006. * src/MultiUrlRequestInfo.h
  6007. * src/NullStatCalc.h: New class. This class prints nothing.
  6008. * src/OptionHandlerFactory.cc
  6009. * src/main.cc
  6010. * src/option_processing.cc
  6011. * src/prefs.h
  6012. * src/usage_text.h
  6013. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6015. * src/HelpItemFactory.cc (createHelpItems):
  6016. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6017. Fixed compilation error in ExpatMetalinkProcessor.cc
  6018. * src/ExpatMetalinkProcessor.cc
  6019. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6020. Reuse socket if the origin server supports HTTP keep-alive and
  6021. --enable-http-keep-alive or --enable-http-pipelining is given.
  6022. The current implementation doesn't reuse the connections established
  6023. against proxy server.
  6024. * src/AbstractCommand.cc
  6025. * src/DownloadEngine.cc
  6026. * src/DownloadEngine.h
  6027. * src/HttpDownloadCommand.cc
  6028. * src/HttpInitiateConnectionCommand.cc
  6029. * src/HttpResponseCommand.cc
  6030. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6031. Rewritten HTTP keep-alive and pipelining routine.
  6032. * src/AbstractCommand.cc
  6033. * src/HttpConnection.cc
  6034. * src/HttpDownloadCommand.cc
  6035. * src/HttpRequest.cc
  6036. * src/HttpRequestCommand.cc
  6037. * src/HttpResponseCommand.cc
  6038. * src/Request.cc
  6039. * src/Request.h
  6040. * src/RequestGroup.cc
  6041. * test/HttpRequestTest.cc
  6042. * test/HttpResponseTest.cc
  6043. * test/RequestTest.cc
  6044. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6045. Added missing setUserHeaders call
  6046. * src/HttpRequestCommand.cc
  6047. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6048. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6049. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6050. waste of time because it is more likey false.
  6051. * src/FileAllocationDispatcherCommand.cc (execute)
  6052. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6053. Now HTTP status and version are a member variable of HttpHeader.
  6054. HTTP status is processed as a string, not integer.
  6055. * src/AbstractProxyResponseCommand.cc
  6056. * src/HttpConnection.cc
  6057. * src/HttpHeader.cc
  6058. * src/HttpHeader.h
  6059. * src/HttpHeaderProcessor.cc
  6060. * src/HttpHeaderProcessor.h
  6061. * src/HttpResponse.cc
  6062. * src/HttpResponse.h
  6063. * test/HttpHeaderProcessorTest.cc
  6064. * test/HttpResponseTest.cc
  6065. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6066. Added --header option. You can specify any number of additional HTTP headers
  6067. like:
  6068. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6069. Unlike other commad-line option, you can use --header option multiple times.
  6070. * src/HelpItemFactory.cc
  6071. * src/HttpRequest.{cc, h}
  6072. * src/HttpRequestCommand.cc
  6073. * src/OptionHandlerFactory.cc
  6074. * src/OptionHandlerImpl.h
  6075. * src/option_processing.cc
  6076. * src/prefs.h
  6077. * src/usage_text.h
  6078. * test/HttpRequestTest.cc (testUserHeaders)
  6079. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6080. Eliminates the time lag between sequential downloads and commands in
  6081. the same RequestGroup.
  6082. In old implementation, aria2 occasionally waits 1 seconds before
  6083. executing next command or RequestGroup.
  6084. This is really a waste of time, and new implementation eliminates
  6085. this unnecessary time lag.
  6086. * src/AbstractCommand.cc
  6087. * src/AutoSaveCommand.cc
  6088. * src/CheckIntegrityCommand.cc
  6089. * src/Command.{cc, h}
  6090. * src/DownloadEngine.{cc, h}
  6091. * src/DownloadEngineFactory.cc
  6092. * src/FileAllocationCommand.cc
  6093. * src/FileAllocationDispatcherCommand.cc
  6094. * src/FillRequestGroupCommand.cc
  6095. * src/FtpInitiateConnectionCommand.cc
  6096. * src/HaveEraseCommand.cc
  6097. * src/HttpInitiateConnectionCommand.cc
  6098. * src/HttpResponseCommand.cc
  6099. * src/RealtimeCommand.cc
  6100. * src/RequestGroup.cc
  6101. * src/RequestGroupMan.cc
  6102. * src/StreamFileAllocationEntry.cc
  6103. * src/TimeBasedCommand.{cc, h}
  6104. * src/TimedHaltCommand.cc
  6105. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6106. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6107. keyword explicit and SharedHandle's default constructor initializes
  6108. its internal obj to null, old implementation initializes it using
  6109. obj's default constructor.
  6110. To assign null, write SharedHandle<T> x(...); x.reset();
  6111. TODO: test/SharedHandleTest.cc needs more tests.
  6112. * src/SharedHandle.h
  6113. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6114. Fixed type in man page.
  6115. * doc/aria2c.1.txt
  6116. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6118. * src/SimpleLogger.{cc, h}
  6119. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Implemented auto protocol detection.
  6121. Now you can do:
  6122. aria2c -Z http://host/file file1.torrent file2.metalink
  6123. (Note: -Z option is required for auto protcol detection.)
  6124. Then aria2c downloads 3 files simultaneously:
  6125. 1. http://host/file
  6126. 2. file1.torrent <-- read local torrent file
  6127. 3. file2.metalink <-- read local Metalink file.
  6128. Same thing goes with -i option. Assume your uris.txt contans:
  6129. http://host/file
  6130. file1.torrent
  6131. file2.metalink
  6132. Then you can do: aria2c -i uris.txt
  6133. (Note: -Z option is not needed if -i option is given.)
  6134. * src/main.cc
  6135. * src/ProtocolDetector.{cc, h}
  6136. * test/ProtocolDetectorTest.cc
  6137. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6139. installed
  6140. * src/ARC4Encryptor.h
  6141. * src/ARC4Decryptor.h
  6142. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Renamed argument from 'errno' to 'err', since errno is confused with
  6144. errno defined in errno.h.
  6145. * src/LibgcryptARC4Decryptor.h
  6146. * src/LibgcryptARC4Context.h
  6147. * src/LibgcryptDHKeyExchange.h
  6148. * src/LibgcryptARC4Encryptor.h
  6149. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Rewritten choking algorithm.
  6151. * src/PeerChokeCommand.{cc, h}
  6152. * src/BtInterestedMessage.cc
  6153. * src/PeerSessionResource.{cc, h}
  6154. * src/DefaultPeerStorage.{cc, h}
  6155. * src/BtNotInterestedMessage.cc
  6156. * src/DefaultBtMessageDispatcher.{cc, h}
  6157. * src/BtMessageDispatcher.h
  6158. * src/Peer.{cc, h}
  6159. * src/BtLeecherStateChoke.{cc, h}
  6160. * src/BtSetup.cc
  6161. * src/BtSeederStateChoke.{cc, h}
  6162. * src/PeerStorage.h
  6163. * test/MockPeerStorage.h
  6164. * test/MockBtMessageDispatcher.h
  6165. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Fixed compilation error on x84-64 platform.
  6167. * src/AuthConfig.cc: Included ostream.
  6168. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Rewritten getBasename() and getDirname(), without standard library
  6170. basename(), dirname().
  6171. * src/File.cc
  6172. * test/FileTest.cc
  6173. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Added Simplified Chinese translation. Also updated the following
  6175. translations: Polish, Dutch, German. Great thanks to all translators.
  6176. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6177. Suppress content-range error when 'Content-Range' response header
  6178. doesn't contains bytes-unit specifier 'bytes'
  6179. * src/HttpHeader.cc (getRange)
  6180. * test/HttpHeaderTest.cc
  6181. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Fixed compilation error with g++-4.3
  6183. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6184. Added missing include files for MinGW
  6185. * test/HttpHeaderProcessorTest.cc
  6186. * test/DHTRoutingTableSerializerTest.cc
  6187. * test/DHTRoutingTableDeserializerTest.cc
  6188. * test/UriListParserTest.cc
  6189. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6190. Now download line is printed nicely with no garbage at the end of
  6191. line. I use ioctl to get the columns of terminal.
  6192. If stdout is redirected to another device, instead of carriage return,
  6193. end of line '\n' character is used. This is feature request#1909659
  6194. * src/ConsoleStatCalc.cc (calculateStat)
  6195. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Included a2time.h
  6197. * src/DHTMessageDispatcher.h
  6198. * src/DHTMessageEntry.h
  6199. * src/DHTReplaceNodeTask.h
  6200. * src/DHTMessageTracker.h
  6201. * src/Util.h
  6202. * src/CookieBox.h
  6203. * src/SocketCore.h
  6204. * src/DefaultBtMessageDispatcher.h
  6205. * src/SocketCore.cc
  6206. * src/Util.cc
  6207. * src/DHTPingTask.h
  6208. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. Fixed high memory footprint when DHT is enabled.
  6210. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6211. queued than it is processed and the queue is getting longer. As a
  6212. consequence, momory usage is increased.
  6213. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6214. replacement cache in DHTBucket which is described in Kademlia paper.
  6215. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6216. DHTReplaceNodeTask.
  6217. * src/DHTBucket.{h, cc}
  6218. (cacheNode): New function.
  6219. (getCachedNodes): New function.
  6220. (dropNode): Push back cached node to _nodes.
  6221. * test/DHTBucketTest.cc
  6222. (testCacheNode): New test
  6223. (testDropNode): New test
  6224. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6225. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6226. the unused 4KB memory when ssl is not used.
  6227. * src/SocketCore.cc
  6228. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. Added summary log for peer announce storage.
  6230. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6231. Removed cast
  6232. * src/DefaultPeerStorage.cc (addPeer)
  6233. Log exception message
  6234. * src/DHTMessageTracker.cc (handleTimeout)
  6235. Fixed casting
  6236. * test/HttpRequestTest.cc
  6237. * test/MetalinkProcessorTest.cc
  6238. * test/PieceTest.cc
  6239. * test/MetalinkEntryTest.cc
  6240. * test/SequenceTest.cc
  6241. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. * src/ParameterizedStringParser.cc (createLoop):
  6243. Removed unused variable sstep.
  6244. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6245. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6246. * src/Util.{h, cc}
  6247. (parseUInt): New function.
  6248. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6249. The actual range is uint32_t.
  6250. * test/UtilTest.cc
  6251. * src/ParameterizedStringParser.cc:
  6252. Use Util::parseUInt() for loop variables.
  6253. * test/ParameterizedStringParserTest.cc
  6254. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6255. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. Rewritten the functions for binding port.
  6257. * src/DHTConnectionImpl.{h, cc}
  6258. * src/PeerListenCommand.{h, cc}
  6259. * src/DHTSetup.cc
  6260. * src/BtSetup.cc
  6261. * test/DHTConnectionImplTest.cc
  6262. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6263. type cleanup for allmost all remaining files.
  6264. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. Type clarification
  6266. * src/PeerSessionResource.{h, cc}
  6267. * src/DefaultPieceStorage.{h, cc}
  6268. * src/Peer.{h, cc}
  6269. * test/PeerSessionResourceTest.cc
  6270. Use div function
  6271. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6272. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6273. Type clarification
  6274. * src/DefaultPeerStorage.{h, cc}
  6275. * test/DefaultPeerStorageTest.cc
  6276. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6277. Type clarification: size_t for length or size, uint64_t for file
  6278. length, off_t for file offset.
  6279. * src/DefaultBtProgressInfoFile.cc
  6280. * src/DefaultBtContext.{h, cc}
  6281. * src/DefaultBtInteractive.cc
  6282. * src/DownloadCommand.{h, cc}
  6283. * src/IteratableChunkChecksumValidator.{h, cc}
  6284. * src/SegmentMan.{h, cc}
  6285. * src/SingleFileDownloadContext.{h, cc}
  6286. * src/IteratableChecksumValidator.{h, cc}
  6287. * src/BtContext.h
  6288. * src/IteratableValidator.h
  6289. * src/DownloadContext.h
  6290. * test/SingleFileDownloadContextTest.cc
  6291. * test/DefaultBtContextTest.cc
  6292. * test/MockBtContext.h
  6293. * test/Metalink2RequestGroupTest.cc
  6294. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Type clarification: size_t for length or size, uint64_t for file
  6296. length, off_t for file offset.
  6297. * src/PiecedSegment.cc
  6298. * src/GrowSegment.h
  6299. * src/DefaultBtRequestFactory.h
  6300. * src/DefaultBtProgressInfoFile.cc
  6301. * src/UnknownLengthPieceStorage.h
  6302. * src/DefaultPieceStorage.cc
  6303. * src/UnknownLengthPieceStorage.cc
  6304. * src/DefaultBtInteractive.cc
  6305. * src/GrowSegment.cc
  6306. * src/BitfieldMan.h
  6307. * src/DownloadCommand.cc
  6308. * src/BtRequestFactory.h
  6309. * src/PiecedSegment.h
  6310. * src/DefaultPieceStorage.h
  6311. * src/Piece.cc
  6312. * src/DefaultBtRequestFactory.cc
  6313. * src/PieceStorage.h
  6314. * src/Segment.h
  6315. * src/Piece.h
  6316. * src/BitfieldMan.cc
  6317. * src/Util.cc
  6318. * test/DefaultBtProgressInfoFileTest.cc
  6319. * test/DefaultPieceStorageTest.cc
  6320. * test/MockPieceStorage.h
  6321. * test/BtRequestMessageTest.cc
  6322. * test/DefaultBtMessageDispatcherTest.cc
  6323. * test/BitfieldManTest.cc
  6324. * test/GrowSegmentTest.cc
  6325. * test/PieceTest.cc
  6326. * test/SegmentTest.cc
  6327. * test/SegmentManTest.cc
  6328. * test/DefaultBtRequestFactoryTest.cc
  6329. * test/MockBtRequestFactory.h
  6330. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Fixed compilation error with --disable-nls
  6332. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6333. in gettext.h causes the problem.
  6334. * src/common.h
  6335. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Removed subPiece related functions.
  6337. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6338. * src/DefaultPieceStorage.{h, cc}
  6339. * test/PieceTest.cc
  6340. * test/DefaultPieceStorageTest.cc
  6341. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6342. Use unsigned char for data store.
  6343. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Bump up version number to 0.13.0+1
  6345. * configure.ac
  6346. * Release 0.13.0+1
  6347. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6348. Changed inactive connection timeout to 120.
  6349. To accept more mulually interested peers, disconnect peer when there
  6350. is no interest between us after certain time passed.
  6351. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6352. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6354. when compiled with async DNS support.
  6355. * src/DownloadEngine.cc
  6356. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6357. value '10' will be a little bit short when some DNS servers are
  6358. offline and several DNS servers are tried. It should be configured
  6359. by command-line option.
  6360. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6361. Merged Ross's mingw patch.
  6362. * src/DHTRoutingTableDeserializer.cc
  6363. * src/DHTRoutingTableSerializer.cc
  6364. * src/Platform.{h, cc}
  6365. * src/timegm.h
  6366. * src/gettimeofday.h
  6367. * src/getaddrinfo.h
  6368. * src/SocketCore.h
  6369. * src/common.h
  6370. * src/inet_aton.h
  6371. * src/DownloadEngine.h
  6372. * src/gai_strerror.h
  6373. * src/a2netcompat.h
  6374. * configure.ac
  6375. * configure
  6376. * aclocal.m4
  6377. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Included missing iostream.
  6379. * test/AllTest.cc
  6380. * test/BtDependencyTest.cc
  6381. * test/BtExtendedMessageTest.cc
  6382. * test/DHTConnectionImplTest.cc
  6383. * test/DHTMessageFactoryImplTest.cc
  6384. * test/DHTMessageTrackerEntryTest.cc
  6385. * test/DHTNodeTest.cc
  6386. * test/DHTRoutingTableSerializerTest.cc
  6387. * test/DefaultBtAnnounceTest.cc
  6388. * test/DefaultBtContextTest.cc
  6389. * test/DefaultBtMessageFactoryTest.cc
  6390. * test/DefaultExtensionMessageFactoryTest.cc
  6391. * test/HandshakeExtensionMessageTest.cc
  6392. * test/HttpResponseTest.cc
  6393. * test/MetalinkProcessorTest.cc
  6394. * test/MultiFileAllocationIteratorTest.cc
  6395. * test/SocketCoreTest.cc
  6396. * test/UTPexExtensionMessageTest.cc
  6397. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6398. Reorganized includes.
  6399. * src/NameResolver.cc
  6400. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Fixed compilation error without ares/c-ares
  6402. * src/NameResolver.h:
  6403. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6404. Added a test for large file.
  6405. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6406. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Fixed the bug that file size is ignored if size > INT32_MAX
  6408. * src/SizeMetalinkParserState.cc (endElement):
  6409. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6410. Bump up version number to 0.13.0
  6411. * configure.ac
  6412. * Release 0.13.0
  6413. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6414. Updated Makfefile.am to make 'make dist' work.
  6415. Now packaged filename is aria2c-VERSION.tar.bz2.
  6416. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6417. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6418. Large file support is now configured by configure script.
  6419. * configure.ac
  6420. Removed unsused source files
  6421. * src/
  6422. * test/
  6423. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6424. Peer.h and BtContext.h respectively.
  6425. * src/Peer.h
  6426. * src/BtContext.h
  6427. Updated translations.
  6428. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6429. translations. Great thanks to all translators!;)
  6430. * po/*.{po, gmo}
  6431. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6433. statically declared sha1 MessageDigestContext.
  6434. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6435. initialization of short-lived MessageDigestContext.
  6436. * src/MessageDigestHelper.{h, cc}
  6437. * src/main.cc
  6438. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6439. the initialization of MessageDigestContext every time in validating
  6440. chunk checksum.
  6441. * src/DownloadCommand.{h, cc}
  6442. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Add a file descriptor which connected to fast peer(latency<1500) to
  6444. select(). This change reduced CPU load.
  6445. * src/PeerInteractionCommand.cc
  6446. * src/DefaultBtInteractive.{h, cc}
  6447. * src/BtInteractive.h
  6448. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6449. Fixed the previous insufficient fix for possible busy loop.
  6450. * src/MSEHandshake.cc (identifyHandshakeType)
  6451. Removed unused functions.
  6452. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6453. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6454. Fixed possible busy loop if first 20 bytes are not received for a few
  6455. minutes.
  6456. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6457. * src/ReceiverMSEHandshakeCommand.cc
  6458. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. Fixed compilation error
  6460. * src/ExpatMetalinkProcessor.cc
  6461. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6463. * src/DHTBucket.cc
  6464. Removed unnecessary cast.
  6465. * src/HandshakeExtensionMessage.cc
  6466. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6467. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6468. is missing.
  6469. * src/OptionHandlerFactory.cc
  6470. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6471. Fixed the bug that HAVE message is not sent for a piece they are
  6472. downloaded fom http/ftp server before any BitTorrent handshake is done
  6473. with peers.
  6474. * src/DefaultBtInteractive.cc
  6475. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6476. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6477. * src/Makefile.am
  6478. * src/Makefile.in
  6479. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6480. Updated README. Added html version of README and man page.
  6481. * README
  6482. * README.html
  6483. * readme2html: Shell script to generate README.html from README using
  6484. asciidoc.
  6485. * doc/aria2c.1.html
  6486. * doc/makeman: Added the line to generate aria2c.1.html
  6487. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6488. Fixed offset calculation.
  6489. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6490. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6491. Rewritten itos and uitos using template. llitos and ullitos are
  6492. replaced with itos and uitos respectively.
  6493. * src/Util.{h, cc}
  6494. * test/UtilTest.cc
  6495. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6496. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6497. of the number of bytes required for storing public key and shared
  6498. secret.
  6499. * src/LibgcryptDHKeyExchange.h
  6500. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6501. * src/MSEHandshake.cc
  6502. * test/DHKeyExchangeTest.cc
  6503. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6504. Removed since they are not used.
  6505. * src/Xml2MetalinkProcessor.{h, cc}
  6506. * src/Socket.cc
  6507. * src/SegmentSplitter.{h, cc}
  6508. * test/Xml2MetalinkProcessorTest.cc
  6509. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. Fixed the bug that prevents aria2 from stopping other than by pressing
  6511. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6512. option. aria2 doesn't stop even after --seed-time is satisfied and
  6513. continues to output blank lines in the console.
  6514. * src/ReceiverMSEHandshakeCommand.cc
  6515. * src/PeerReceiveHandshakeCommand.cc
  6516. * src/PeerListenCommand.cc
  6517. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Bump up version number to 0.13.0rc
  6519. * configure.ac
  6520. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6521. Updated man page and some usage text.
  6522. * doc/aria2c.1.txt
  6523. * src/usage_text.h
  6524. * po/*.{po, gmo}
  6525. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6526. Updated translations. Added Finnish and Hebrew translations.
  6527. Great thanks to all translators!
  6528. * po/*.{po, gmo}
  6529. * po/LINGUAS
  6530. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6531. Log more detailed information about each message.
  6532. * src/DHTQueryMessage.{h, cc}
  6533. * src/DHTGetPeersMessage.{h, cc}
  6534. * src/DHTFindNodeReplyMessage.{h, cc}
  6535. * src/DHTGetPeersReplyMessage.{h, cc}
  6536. * src/DHTAnnouncePeerMessage.{h, cc}
  6537. * src/DHTResponseMessage.{h, cc}
  6538. * src/DHTFindNodeMessage.{h, cc}
  6539. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6540. Use constants defined in prefs.h
  6541. * src/option_processing.cc
  6542. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6543. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6544. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Make room for future enchancements for IPv6 addresses.
  6546. Bump up version number of dht.dat file format to 2.
  6547. Not compatible with previous version.
  6548. * src/DHTRoutingTableSerializer.cc
  6549. * src/DHTRoutingTableDeserializer.cc
  6550. * test/DHTRoutingTableSerializerTest.cc
  6551. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. Added handling for the return values from
  6553. PeerMessageUtil::createcompact().
  6554. * src/DefaultBtContext.cc (computeFastSet):
  6555. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Fixed abort when peer's ip address is IPv4-mapped address.
  6557. * src/DefaultBtContext.cc (computeFastSet)
  6558. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6559. cannot handle IPv4-mapped addresses.
  6560. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6561. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Proper return value handling for OpenSSL functions.
  6563. * src/LibsslDHKeyExchange.h
  6564. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6565. Random bytes generation using libgcrypt and OpenSSL.
  6566. * src/DHTUtil.{h, cc}
  6567. * test/DHTUtilTest.cc
  6568. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6569. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6570. received.
  6571. * src/DHTMessageReceiver.cc (receiveMessage)
  6572. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6573. Fixed the bug that a return code is always 0. BUG#1897704
  6574. If error occurred during the download or there exist unfinished
  6575. downloads, aria2 returns with code 1.
  6576. * src/RequestGroupMan.{h, cc}
  6577. * src/MultiUrlRequestInfo.{h, cc}
  6578. * src/main.cc
  6579. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6580. IPv6 support for SocketCore class.
  6581. TODO: In SocketCore::establishConnection(), this is insufficient to
  6582. determin the failure of connect() here because the socket is
  6583. non-blocking state. The next addresses should be tried after select().
  6584. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6585. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6586. instead which address family independent.
  6587. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6588. information in a compact peer format which is for IPv4 only.
  6589. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6590. this is a spec of BitTorrent protocol.
  6591. * src/SocketCore.{h, cc}
  6592. * src/PeerMessageUtil.cc
  6593. * test/SocketCoreTest.cc
  6594. * test/PeerMessageUtilTest.cc
  6595. * test/DHTConnectionImplTest.cc
  6596. Handle IPv4-mapped addresses.
  6597. * src/DHTNode.cc: Now identity is determined by node id.
  6598. * src/DHTMessageTrackerEntry.cc
  6599. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6600. should handle it.
  6601. * src/DHTRoutingTableDeserializer.cc
  6602. * src/DHTMessageFactoryImpl.cc
  6603. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Change the unit of --stop option from a minute to a second.
  6605. * src/usage_text.h
  6606. * src/DownloadEngineFactory.cc
  6607. * src/OptionHandlerFactory.cc
  6608. * src/message.h
  6609. * src/TimedHaltCommand.cc
  6610. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Make listening socket non-block mode.
  6612. * src/FtpConnection.cc
  6613. * src/FtpNegotiationCommand.{h, cc}
  6614. * src/PeerListenCommand.cc
  6615. Fixed the bug that cause slow ftp negotiation.
  6616. * src/FtpNegotiationCommand.{h, cc}
  6617. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6618. Added basic tag to --enable-dht, --dht-listen-port option.
  6619. * src/HelpItemFactory.cc (createHelpItems)
  6620. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6621. Updated text.
  6622. * src/usage_text.h
  6623. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6624. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6625. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6626. Determin _threadtholdSpeed in each constructor for
  6627. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6628. * src/ActivePeerConnectionCommand.{h, cc}
  6629. * src/PeerReceiveHandshakeCommand.{h, cc}
  6630. * src/BtSetup.cc
  6631. * src/BtConstants.h
  6632. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Added --bt-min-crypto-level and --bt-require-crypto options.
  6634. * src/OptionHandlerFactory.cc
  6635. * src/MSEHandshake.cc
  6636. * src/HelpItemFactory.cc
  6637. * src/option_processing.cc
  6638. * src/ReceiverMSEHandshakeCommand.cc
  6639. * src/prefs.h
  6640. * src/DefaultBtAnnounce.cc
  6641. * src/InitiatorMSEHandshakeCommand.cc
  6642. * src/usage_text.h
  6643. * test/MSEHandshakeTest.cc
  6644. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6645. Bump version number to 0.13.0b
  6646. * configure.ac
  6647. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6648. Updated doc.
  6649. * src/MessageDigestHelper.h:
  6650. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Use raw message digest as a token instead of its hexadecimal
  6652. representation.
  6653. * src/DHTTokenTracker.cc (generateToken)
  6654. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6655. Added Message Stream Encryption(MSE) support.
  6656. Currently, aria2 accepts incoming connections with Obfuscation Header
  6657. and legacy BitTorrent Header and establishes connections with
  6658. Obfuscation Header first and if failed then retry with legacy
  6659. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6660. choose ARC4. The new option to change the default behavior is planned.
  6661. For tracker extension, "supportcrypto=1" is added statically.
  6662. * src/PeerInitiateConnectionCommand.{h, cc}
  6663. * src/PeerConnection.{h, cc}
  6664. * src/HandleRegistry.h
  6665. * src/SocketCore.h
  6666. * src/PeerReceiveHandshakeCommand.{h, cc}
  6667. * src/BtRegistry.{h, cc}
  6668. * src/PeerListenCommand.cc
  6669. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6670. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6671. * src/MSEHandshake.{h, cc}
  6672. * src/ARC4Encryptor.h
  6673. * src/ARC4Decryptor.h
  6674. * src/LibgcryptARC4Encryptor.h
  6675. * src/LibgcryptARC4Decryptor.h
  6676. * src/LibgcryptARC4Context.h
  6677. * src/LibsslARC4Encryptor.h
  6678. * src/LibsslARC4Decryptor.h
  6679. * src/LibsslARC4Context.h
  6680. * src/DHKeyExchange.h
  6681. * src/LibgcryptDHKeyExchange.h
  6682. * src/LibsslDHKeyExchange.h
  6683. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6684. * test/DefaultBtAnnounceTest.cc
  6685. * test/ARC4Test.cc
  6686. * test/DHKeyExchangeTest.cc
  6687. Removed prepareForRetry() because it is not used.
  6688. * src/PeerAbstractCommand.{h, cc}
  6689. * src/PeerInteractionCommand.{h, cc}
  6690. * src/PeerInitiateConnectionCommand.{h, cc}
  6691. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. Added the ability to load nodes from torrent file. These nodes are
  6693. added to the routing table when downloading that torrent.
  6694. * src/BtContext.h
  6695. * src/DefaultBtContext.{h, cc}
  6696. * src/DHTSetup.cc
  6697. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6698. hostname and port pair, and resolves all of them.
  6699. * src/NameResolver.{h, cc}: Added reset().
  6700. * src/RequestGroup.cc
  6701. * test/DefaultBtContextTest.cc
  6702. * test/MockBtContext.h
  6703. Removed assert() from DefaultBtContext and throw exception instead.
  6704. * src/DefaultBtContext.cc
  6705. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6706. Fixed segmentation fault bug when exiting if dht is disabled.
  6707. * src/RequestGroup.cc
  6708. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Fixed typo in log message and define the message in message.h
  6710. * src/TimedHaltCommand.cc
  6711. * src/message.h
  6712. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Included RecoverableException.h to fix compilation error.
  6714. * test/DHTMessageFactoryImplTest.cc
  6715. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6716. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6717. * test/DHTPingMessageTest.cc
  6718. * test/DHTGetPeersMessageTest.cc
  6719. * test/DHTFindNodeMessageTest.cc
  6720. * test/DHTAnnouncePeerMessageTest.cc
  6721. * test/MockDHTMessage.h
  6722. * test/MockDHTMessageFactory.h
  6723. * test/MockDHTMessageDispatcher.h: New class.
  6724. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6726. virtual.
  6727. * src/DHTMessageDispatcher.h
  6728. * src/DHTMessageDispatcherImpl.{h, cc}
  6729. * src/DHTSetup.cc
  6730. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6731. Adding handling of DHT error message. Just log error message and
  6732. throw exception.
  6733. * src/DHTMessageFactoryImpl.cc
  6734. * test/DHTMessageFactoryImplTest.cc
  6735. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Added handling of dynamic cast failure.
  6737. * src/DHTNodeLookupTask.cc
  6738. * src/DHTPeerLookupTask.cc
  6739. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6740. Added the ability to stop aria2 itself when given time has passed
  6741. from start. Use --stop option to specify time in minutes.
  6742. When 0 is given, this feature is disabled.
  6743. * src/OptionHandlerFactory.cc
  6744. * src/TimeBasedCommand.h: Make _interval protected scope.
  6745. * src/HelpItemFactory.cc
  6746. * src/option_processing.cc
  6747. * src/prefs.h
  6748. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6749. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6750. Without this modification, the result list shows "ERR" when aria2 is
  6751. stopped by --stop option. It should be "INPR".
  6752. * src/DownloadEngine.{h, cc}
  6753. * src/DownloadEngineFactory.cc
  6754. * src/usage_text.h
  6755. * src/TimedHaltCommand.{h, cc}: New class.
  6756. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Bootstrap through node added by port message.
  6758. Currently bootstrap is executed if the number of buckets in routing
  6759. table is 1.
  6760. * src/BtPortMessage.{h, cc}
  6761. * src/DefaultBtMessageFactory.{h, cc}
  6762. * src/PeerInteractionCommand.cc
  6763. * test/BtPortMessageTest.cc
  6764. * test/MockDHTTask.h
  6765. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Extract the Peer class's member variables, which are only needed after
  6767. PeerInteractionCommand, into PeerSessionResource class.
  6768. This class is instantiated in PeerInteractionCommand class's ctor and
  6769. released in its dtor.
  6770. This will make Peer class lightweight and uses less memory for peers
  6771. which are not connected and wait in the queue.
  6772. * src/PeerChokeCommand.cc
  6773. * src/PeerSessionResource.{h, cc}
  6774. * src/PeerInteractionCommand.cc
  6775. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6776. * src/DefaultBtInteractive.cc
  6777. * src/BtPieceMessage.cc
  6778. * src/BtInterestedMessage.cc
  6779. * src/BtUnchokeMessage.cc
  6780. * src/DefaultPeerStorage.{h, cc}
  6781. * src/PeerInitiateConnectionCommand.cc
  6782. * src/ActivePeerConnectionCommand.cc
  6783. * src/BtNotInterestedMessage.cc
  6784. * src/DefaultBtMessageDispatcher.cc
  6785. * src/BtChokeMessage.cc
  6786. * src/BtRequestMessage.cc
  6787. * src/Peer.{h, cc}
  6788. * src/BtRegistry.h
  6789. * src/TrackerWatcherCommand.cc
  6790. * src/PeerReceiveHandshakeCommand.cc
  6791. * test/BtExtendedMessageTest.cc
  6792. * test/BtAllowedFastMessageTest.cc
  6793. * test/BtCancelMessageTest.cc
  6794. * test/DefaultPieceStorageTest.cc
  6795. * test/BtBitfieldMessageTest.cc
  6796. * test/BtHaveMessageTest.cc
  6797. * test/BtNotInterestedMessageTest.cc
  6798. * test/BtRequestMessageTest.cc
  6799. * test/PeerSessionResourceTest.cc
  6800. * test/DefaultBtMessageDispatcherTest.cc
  6801. * test/PeerTest.cc
  6802. * test/BtInterestedMessageTest.cc
  6803. * test/BtRejectMessageTest.cc
  6804. * test/BtChokeMessageTest.cc
  6805. * test/DefaultPeerStorageTest.cc
  6806. * test/BtHaveNoneMessageTest.cc
  6807. * test/BtHaveAllMessageTest.cc
  6808. * test/DefaultExtensionMessageFactoryTest.cc
  6809. * test/BtUnchokeMessageTest.cc
  6810. * test/DefaultBtMessageFactoryTest.cc
  6811. * test/HandshakeExtensionMessageTest.cc
  6812. * test/UTPexExtensionMessageTest.cc
  6813. * test/DefaultBtRequestFactoryTest.cc
  6814. * test/BtPieceMessageTest.cc
  6815. Removed typedef PeerStats.
  6816. * src/PeerStat.h
  6817. * src/SegmentMan.cc
  6818. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6819. Added std namespace to copy, remove_copy, back_inserter,
  6820. front_inserter.
  6821. * src/RequestGroupMan.cc
  6822. * src/DefaultPieceStorage.cc
  6823. * src/StreamFileAllocationEntry.cc
  6824. * src/BtFileAllocationEntry.cc
  6825. * src/RequestGroup.cc
  6826. * src/MetalinkEntry.cc
  6827. * src/DelegatingPeerListProcessor.cc
  6828. * src/DefaultBtRequestFactory.cc
  6829. * src/DefaultBtMessageDispatcher.cc
  6830. * src/version_usage.cc: Included <algorithm>
  6831. * src/main.cc
  6832. * src/MetalinkParserController.cc
  6833. * src/DefaultBtContext.cc
  6834. * src/DownloadEngineFactory.cc
  6835. * src/a2algo.h
  6836. Removed.
  6837. * test/StreamUriListParserTest.cc
  6838. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6839. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6840. ActivePeerConnectionCommand when it is given and
  6841. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6842. * src/ActivePeerConnectionCommand.{h, cc}
  6843. * src/BtSetup.cc
  6844. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Only add socket to DownloadEngine's select routine when peer or
  6846. localhost is unchoked and interested. This lowers CPU usage a
  6847. little bit.
  6848. * src/PeerInteractionCommand.cc
  6849. * src/PeerAbstractCommand.{h, cc}
  6850. * src/BtInteractive.h
  6851. * src/DefaultBtInteractive.{h, cc}
  6852. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. Revert previous change because get_peers message is needed for
  6854. announce_peer anyway.
  6855. * src/DHTGetPeersCommand.cc
  6856. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Request peers thought DHT only when download hasn't finished.
  6858. * src/DHTGetPeersCommand.cc
  6859. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6861. * src/DHTBucketRefreshTask.{h, cc}
  6862. * src/DHTSetup.cc
  6863. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6864. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6865. standard classes.
  6866. Included string.h where mem* function are used.
  6867. Added namespace aria2.
  6868. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6869. Create directory before saving DHT routing table.
  6870. Now ios::failure is now handled properly.
  6871. * src/DHTAutoSaveCommand.cc
  6872. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Removed unnecessary cerr.
  6874. * src/DownloadEngine.cc
  6875. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Catch exception inside DHTMessageReceiver::receiveMessage().
  6877. Log unknown message.
  6878. * src/DHTMessageReceiver.{h, cc}
  6879. * src/DHTMessageFactory.h
  6880. * src/DHTMessageFactoryImpl.{h, cc}
  6881. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6882. * src/DHTInteractionCommand.cc
  6883. * src/DHTUnknownMessage.{h, cc}
  6884. * test/DHTUnknownMessageTest.cc
  6885. * test/MockDHTMessageFactory.h
  6886. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6887. Commented out ip address comparison because a host can have multiple
  6888. ip addresses and it is hard to predict the hostname is resolved into
  6889. which one.
  6890. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6891. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6892. * po/Makefile.in: Removed since this is generated by configure.
  6893. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Fixed compiler warning about redefinition of SIZE_MAX.
  6895. Use common.h instead of config.h directly here.
  6896. * src/Platform.{h, cc}
  6897. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6898. here.
  6899. * common.h
  6900. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6901. Updated gettext related files.
  6902. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6903. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6904. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6905. Added DHT functionality, compatible with mainline.
  6906. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6907. You may need to specify entry point to DHT network using
  6908. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6909. Use --dht-listen-port to specify port number. Make sure that your
  6910. firewall configuration can pass through UDP traffic to the port.
  6911. The routing table is saved in $HOME/.aria2/dht.dat.
  6912. * src/DHT*
  6913. * src/BNode.{h, cc}
  6914. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6915. particular torrent.
  6916. * src/Data.cc: Rewritten ctor.
  6917. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6918. --dht-entry-point.
  6919. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6920. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6921. ends, remove BtContext from DHTPeerAnnounceStorage.
  6922. * src/BtPortMessage.{h, cc}: Rewritten.
  6923. * src/message.h
  6924. * src/OptionHandlerImpl.cc
  6925. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6926. --dht-entry-point.
  6927. * src/Dictionary.{h, cc} (remove): New function.
  6928. * src/prefs.h
  6929. * src/DefaultBtMessageFactory.h
  6930. * src/BtHandshakeMessage.cc
  6931. * src/ActivePeerConnectionCommand.cc
  6932. * src/SocketCore.{h, cc}: Added datagram socket support.
  6933. * src/DefaultBtMessageFactory.cc
  6934. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6935. Create DHT commands.
  6936. * src/BtMessageFactory.h
  6937. * src/PeerMessageUtil.{h, cc}
  6938. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Fixed the bug that log file is not written when configuration file doesn't exist.
  6940. This is caused by using Logger class before LogFactory is not configured.
  6941. BUG #1875079
  6942. * src/option_processing.cc
  6943. Warning message "configuration doesn't exist" is only printed when --conf is
  6944. given.
  6945. * src/option_processing.cc
  6946. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6948. ShaVisitor is now deprecated and slated to be removed.
  6949. * src/DefaultBtContext.cc
  6950. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6951. Externalize message to message.h
  6952. * src/Platform.cc
  6953. * src/message.h
  6954. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6955. Set default domain and default path to cookie.
  6956. * src/HttpResponse.cc
  6957. * src/CookieBox.{h, cc}
  6958. * src/CookieParser.{h, cc}
  6959. * test/CookieParserTest.cc
  6960. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6961. Added --no-conf and --conf-path command-line option.
  6962. --no-conf option disables loading aria2.conf file.
  6963. --conf-path option changes the configuration file path. The default
  6964. file path is $HOME/.aria2/aria2.conf
  6965. Added a warning message when the configuration file is not found.
  6966. * src/HelpItemFactory.cc
  6967. * src/option_processing.cc
  6968. * src/prefs.h
  6969. * src/usage_text.h
  6970. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Added the message to inform users that other help categories are
  6972. available in -h option.
  6973. * src/version_usage.cc
  6974. * src/TagContainer.{h, cc}
  6975. * test/TagContainerTest.cc
  6976. * src/TaggedItem.{h, cc}
  6977. * test/TaggedItemTest.cc
  6978. * src/HelpItem.h
  6979. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6980. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6981. from PiecedSegment's ctor.
  6982. Previously Piece::getAllMissingBlockIndexes() is called from
  6983. PiecedSegment() but it is rather expensive since only first element is
  6984. used.
  6985. * src/PiecedSegment.cc
  6986. * src/Piece.{h, cc}
  6987. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6989. each time these functions are called.
  6990. * src/BitfieldMan.{h, cc}
  6991. * test/BitfieldManTest.cc
  6992. * src/array_fun.h
  6993. * test/array_funTest.cc
  6994. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6995. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6996. filtered. Removed unnecessary cast to int32_t.
  6997. * src/BitfieldMan.{h, cc}
  6998. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6999. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7000. payload length(4bytes) are received. This happens because lenbufLength
  7001. is not updated in this particular case and successive call of
  7002. receiveMessage() overwrites payload length with bytes recieved which
  7003. are payload body.
  7004. * src/PeerConnection.{h, cc}
  7005. * src/message.h
  7006. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7008. peer if there are peers that have same ipaddr and port.
  7009. I've experiened segmentation fault and "pure virtual function was
  7010. called" error.
  7011. * src/Peer.h
  7012. * test/PeerTest.cc
  7013. * src/DefaultPeerStorage.cc
  7014. * test/DefaultPeerStorageTest.cc
  7015. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Removed a call to isPowerOf() because it is no longer necessary here
  7017. and a request block is not always power of 2.
  7018. BUG#1866924
  7019. * src/PeerMessageUtil.cc (checkLength)
  7020. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Fixed the bug that always first found Segment is removed from
  7022. usedSegmentEntries. Removed unused functions.
  7023. * src/SegmentMan.{h, cc}
  7024. * test/SegmentManTest.cc
  7025. Fixed the bug that ServerHost is not removed.
  7026. * src/RequestGroup.cc
  7027. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7028. Fixed the bug that SegmentMan::completeSegment() is not called
  7029. even if Segment is complete when --lowest-speed-limit is enabled.
  7030. BUG#1864525
  7031. * src/DownloadCommand.{h, cc}
  7032. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Fixed: hash algorithm 'sha1' is always used.
  7034. * src/DownloadCommand.cc (validatePieceHash)
  7035. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7036. Added --enable-peer-exchange command-line option.
  7037. * src/OptionHandlerFactory.cc
  7038. * src/HelpItemFactory.cc
  7039. * src/option_processing.cc
  7040. * src/usage_text.h
  7041. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Move extension from BtRuntime to ExtensionMessageFactory, because
  7043. extension can be specified per peer, not per torrent.
  7044. * src/DefaultBtInteractive.cc
  7045. * src/BtRuntime.h
  7046. * src/ExtendedMessagingAware.h
  7047. * src/ExtensionMessageFactory.h
  7048. * src/DefaultExtensionMessageFactory.cc
  7049. * test/DefaultExtensionMessageFactoryTest.cc
  7050. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Added categorized option help. Specify category using --help option.
  7052. Also added the ability to search options in forward match.
  7053. * src/HelpItem.{h, cc}
  7054. * test/HelpItemTest.cc
  7055. * src/HelpItemFactory.{h, cc}
  7056. * src/TagContainer.{h, cc}
  7057. * test/TagContainerTest.cc
  7058. * src/option_processing.cc
  7059. * src/prefs.h
  7060. * src/TaggedItem.{h, cc}
  7061. * test/TaggedItemTest.cc
  7062. * src/version_usage.cc
  7063. * src/help_tags.h
  7064. * src/usage_text.h
  7065. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7066. Fixed segmentation fault when bad torrent metainfo is parsed.
  7067. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7068. and then throw exception or skip it.
  7069. * src/DefaultBtContext.{h, cc}
  7070. * test/DefaultBtContextTest.cc
  7071. * src/AnnounceList.cc
  7072. * src/CompactPeerListProcessor.cc
  7073. * src/message.h
  7074. * src/DefaultBtAnnounce.{h, cc}
  7075. * test/DefaultBtAnnounceTest.cc
  7076. * src/BencodeVisitor.cc
  7077. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Added missing "B"(=Byte). So now the message looks like this:
  7079. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7080. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7081. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Show the seed ratio after torrent downloads.
  7083. For example, after torrent download completed and --seed-time and
  7084. --seed-ratio conditions are fulfilled, following message is printed
  7085. right after "Download complete: .....":
  7086. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7087. * src/RequestGroupMan.cc
  7088. * src/RequestGroup.{h, cc}
  7089. * src/message.h
  7090. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Remove a defunct control file. A defunct control file means that while
  7092. it exists, but the corresponding download file is missing.
  7093. After its removal, a download restarts from the beginning.
  7094. * src/RequestGroup.cc
  7095. * src/message.h
  7096. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. Allocate bitfield in Peer when it is really used. More specifically,
  7098. bitfield in Peer is allocated after the connection is established and
  7099. deallocated when the connection is dropped.
  7100. Since 2 parameters(piece length and total length) was removed from the
  7101. constructor of Peer class, many test classes were modified accordingly.
  7102. See svn log for more detailed information.
  7103. * src/PeerInteractionCommand.cc
  7104. * src/CompactPeerListProcessor.cc
  7105. * src/Peer.cc
  7106. * src/DefaultPeerListProcessor.cc
  7107. * src/PeerListenCommand.cc
  7108. * src/PeerReceiveHandshakeCommand.cc
  7109. Fixed memory leak
  7110. * src/Piece.cc
  7111. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7112. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7113. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7114. command-line options.
  7115. * src/option_processing.cc
  7116. * src/ActivePeerConnectionCommand.cc
  7117. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7118. Send have message to peer if it already has the piece.
  7119. * src/BtHaveMessage.{h, cc}
  7120. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7121. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7122. port.
  7123. * src/DefaultPeerStorage.{h, cc}
  7124. * test/DefaultPeerStorageTest.cc
  7125. * src/HandshakeExtensionMessage.cc
  7126. * test/HandshakeExtensionMessageTest.cc
  7127. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7128. * src/PeerStorage.h
  7129. * test/MockPeerStorage.h
  7130. * src/PeerListenCommand.cc
  7131. * src/PeerReceiveHandshakeCommand.cc
  7132. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Added --metalink-enable-unique-protocol option.
  7134. * src/Metalink2RequestGroup.cc
  7135. * src/option_processing.cc
  7136. * src/prefs.h
  7137. * src/version_usage.cc
  7138. * doc/aria2c.1.txt
  7139. * doc/aria2c.1
  7140. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Allow a peer in incomingPeer to be added peers.
  7142. * src/DefaultPeerStorage.cc
  7143. * test/DefaultPeerStorageTest.cc
  7144. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7146. I could reproduce this bug in following procedure:
  7147. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7148. 2. Restart aria2.
  7149. 3. You see the download stopped around 99%.
  7150. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7151. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7152. If timeout is reached, then _nextCommand is unused and it may contains
  7153. segments and they won't be canceled. Actually, timeout is not needed
  7154. here because if the server dropped connection, then retry is made.
  7155. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Added uTorrent compatible Peer Exchange.
  7157. * src/BencodeVisitor.{h, cc}
  7158. * test/BencodeVisitorTest.cc
  7159. * src/BtConstants.h
  7160. * src/BtContext.h: Added 'private' flag.
  7161. * src/BtExtendedMessage.{h, cc}
  7162. * test/BtExtendedMessageTest.cc
  7163. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7164. reserved field.
  7165. * test/BtHandshakeMessageTest.cc
  7166. * src/BtMessageFactory.h
  7167. * src/BtRegistry.h
  7168. * src/BtRuntime.h: This class holds default extension message IDs for
  7169. aria2. By default, aria2 uses ID 8 for ut_pex.
  7170. * src/DefaultBtContext.cc
  7171. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7172. When it is true, aria2 enables ut_pex. This value is set by
  7173. PeerInteractionCommand.
  7174. * src/DefaultBtMessageFactory.{h, cc}
  7175. * test/DefaultBtMessageFactoryTest.cc
  7176. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7177. handling to DefaultBtInteractive class.
  7178. * src/DefaultExtensionMessageFactory.{h, cc}
  7179. * test/DefaultExtensionMessageFactoryTest.cc
  7180. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7181. the container(peers and incomingPeers. The equality is determined by
  7182. Peer::id).
  7183. * test/DefaultPeerStorageTest.cc
  7184. * src/ExtensionMessage.h
  7185. * test/MockExtensionMessage.h
  7186. * src/ExtensionMessageFactory.h
  7187. * test/MockExtensionMessageFactory.h
  7188. * src/HandshakeExtensionMessage.{h, cc}
  7189. * test/HandshakeExtensionMessageTest.cc
  7190. * src/MetaEntry.h
  7191. * src/Peer.{h, cc}
  7192. * src/PeerInteractionCommand.cc
  7193. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7194. addIncomingPeer.
  7195. * src/PeerMessageUtil.{h, cc}
  7196. * src/PeerObject.h
  7197. * src/UTPexExtensionMessage.{h, cc}
  7198. * test/UTPexExtensionMessageTest.cc
  7199. * src/message.h
  7200. * src/prefs.h
  7201. Fixed the bug that returns incomplete data when it contains null
  7202. character. A convenient constructor was also added.
  7203. * src/Data.{h, cc}
  7204. Rewritten.
  7205. * src/CompactPeerListProcessor.cc
  7206. Fixed typos.
  7207. * src/message.h
  7208. * src/MetaFileUtil.cc
  7209. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. Added "Status Legend" label to the explanation text of 'stat' in
  7211. download result and moved it to the last. BUG#1848214
  7212. * src/RequestGroupMan.cc
  7213. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7215. * src/Makefie.am
  7216. * test/Makefile.am
  7217. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Fixed the bug that prevents aria2 from loading cookie file when expire
  7219. value is greater than 2^31-1. BUG#1851066
  7220. * src/CookieBoxFactory.cc
  7221. * test/CookieBoxFactoryTest.cc
  7222. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Fixed possible memory leak when an exception is thrown.
  7224. * src/XML2SAXMetalinkProcessor.cc
  7225. Added Expat support. If both libxml2 and Expat are installed, then
  7226. libxml2 is used by default.
  7227. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7228. ExpatMetalinkProcessor according to the configuration.
  7229. * src/ExpatMetalinkProcessor.{h, cc}
  7230. * src/main.cc: Removed libxml2 specific header and init/free function.
  7231. * src/MetalinkProcessorFactory.{h, cc}
  7232. * src/MetalinkHelper.cc
  7233. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7234. * src/MetalinkProcessor.h
  7235. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7236. MetalinkProcessorTest is used instead.
  7237. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7238. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7239. MetalinkProcessorFactory::newInstance().
  7240. * m4/libexpat.m4
  7241. * configure.ac: Added configuration options for libexpat.
  7242. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7243. Disabled -s option in metalink download.
  7244. * src/Metalink2RequestGroup.cc
  7245. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. If several protocols are available for a mirror in metalink file,
  7247. aria2 now use one of them. --metalink-preferred-protocol option was
  7248. added to specify the preference of protocol.
  7249. * src/AbstractCommand.cc
  7250. * src/OptionHandlerFactory.cc
  7251. * src/ServerHost.{h, cc}
  7252. * src/Metalink2RequestGroup.cc
  7253. * src/RequestGroup.{h, cc}
  7254. * test/RequestGroupTest.cc
  7255. * src/option_processing.cc
  7256. * src/prefs.h
  7257. * src/HttpResponseCommand.cc
  7258. * src/MetalinkResource.{h, cc}
  7259. * src/FtpNegotiationCommand.cc
  7260. * src/MetalinkEntry.{h, cc}
  7261. * src/MetalinkEntryTest.cc
  7262. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7263. Code cleanup and added debug log.
  7264. * src/PeerConnection.cc
  7265. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Compiler error fix: applied the patch by Tiziano Mueller
  7267. * src/RequestGroup.cc
  7268. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7270. in stopped and completed event.
  7271. * src/AnnounceList.{h, cc}
  7272. * test/AnnounceListTest.cc
  7273. * src/DefaultBtAnnounce.cc
  7274. * test/DefaultBtAnnounceTest.cc
  7275. Sorted URLs.
  7276. * test/Metalink2RequestGroupTest.cc
  7277. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7278. Removed unnecessary string copy. Updated doc and corrected indentation.
  7279. * src/Base64.cc
  7280. Fixed compilation warnings
  7281. * test/DataTest.cc
  7282. * test/HttpRequestTest.cc
  7283. * test/MetaFileUtilTest.cc
  7284. * test/RequestTest.cc
  7285. * Release 0.12.0
  7286. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Updated translations
  7288. * po/{de,fr,ja,nl,ru}.po
  7289. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7290. translations. Many thanks to translators.
  7291. * po/{ca,es,it,pt_BR,sv}.po
  7292. * po/LINGUAS
  7293. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7294. Added a notice about URL
  7295. * src/version_usage.cc
  7296. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7297. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7298. aria2 repeatedly sends stopped request when tracker returns error code.
  7299. * src/AnnounceList.cc
  7300. * test/AnnounceListTest.cc
  7301. * src/AnnounceTier.h
  7302. Added a message when ctrl-c is hit.
  7303. Now second ctrl-c is also handled in signal handler.
  7304. * src/RequestGroupMan.{h, cc}
  7305. * src/RequestGroup.{h, cc}
  7306. * src/MultiUrlRequestInfo.cc
  7307. * src/DownloadEngine.cc
  7308. * src/TrackerWatcherCommand.cc
  7309. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7310. Code cleanup
  7311. * src/Base64.cc (encode)
  7312. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. Changed Direct/IO enable/disable procesure in file allocation routine.
  7314. * src/SingleFileAllocationIterator.cc
  7315. (SingleFileAllocationIterator):
  7316. Disable directIO if offset is not multiple of 512.
  7317. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7318. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7319. Enable created SingleFileAllocationIterator's directIO.
  7320. * src/FileAllocationEntry.cc
  7321. (FileAllocationEntry): Enable directIO here.
  7322. (~FileAllocationEntry): Disable directIO here.
  7323. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7324. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7325. * src/Peer.{h, cc}
  7326. * src/DefaultPieceStorage.cc
  7327. * test/DefaultPieceStorageTest.cc
  7328. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Rewritten direct I/O support routine
  7330. * src/SingleFileAllocationIterator.cc
  7331. * src/MultiDiskAdaptor.{h, cc}
  7332. * src/ByteArrayDiskWriter.h
  7333. * src/AbstractSingleDiskAdaptor.h
  7334. * src/AbstractDiskWriter.cc
  7335. * src/DefaultPieceStorage.cc
  7336. * src/DiskWriter.h
  7337. * src/BinaryStream.h
  7338. * src/IteratableChunkChecksumValidator.cc
  7339. * src/IteratableChecksumValidator.cc
  7340. * src/CheckIntegrityEntry.cc
  7341. * src/FileAllocationEntry.cc
  7342. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7343. Fixed typo
  7344. * src/version_usage.cc
  7345. Updated doc
  7346. * doc/aria2c.1.txt
  7347. * doc/aria2c.1
  7348. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. Fixed compile error without message digest support.
  7350. * src/FileMetalinkParserState.cc
  7351. * src/MetalinkParserController.{h, cc}
  7352. * test/XML2SAXMetalinkProcessorTest.cc
  7353. * test/MetalinkParserControllerTest.cc
  7354. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7355. Enable direct I/O support in checksum checking.
  7356. * src/IteratableChunkChecksumValidator.{h, cc}
  7357. * test/IteratableChunkChecksumValidatorTest.cc
  7358. * src/CheckIntegrityEntry.cc
  7359. * src/PieceHashCheckIntegrityEntry.cc
  7360. * src/IteratableChecksumValidator.{h, cc}
  7361. * src/BtCheckIntegrityEntry.cc: Added doc.
  7362. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Added --allow-piece-length-change option.
  7364. * src/DefaultBtProgressInfoFile.cc
  7365. * test/DefaultBtProgressInfoFileTest.cc
  7366. * src/OptionHandlerFactory.cc
  7367. * src/option_processing.cc
  7368. * src/prefs.h
  7369. * src/version_usage.cc
  7370. * doc/aria2c.1.txt
  7371. * doc/aria2c.1
  7372. Fixed: duplicated result entry appears when exception is thrown in
  7373. RequestGroup::createInitiateConnectionCommand().
  7374. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7375. Add RequestGroup to _requestGroup after RequetGroup::
  7376. createInitiateConnectionCommand() succeeds.
  7377. Externalized message
  7378. * src/XML2SAXMetalinkProcessor.cc
  7379. * src/message.h
  7380. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. Forced download abort when received negative response from http/ftp
  7382. server.
  7383. * src/HttpResponseCommand.cc
  7384. * src/FtpNegotiationCommand.cc
  7385. * src/HttpResponse.cc
  7386. * src/FtpConnection.cc
  7387. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7389. the predecessor, Xml2MetalinkParser class.
  7390. I tested them against 94KB metalink file with 1234 chunk checksums.
  7391. The new one parsed it in 22msec, while it took 6000msec with old one.
  7392. * src/XML2SAXMetalinkProcessor.{h, cc}
  7393. * test/XML2SAXMetalinkProcessorTest.cc
  7394. * src/MetalinkParserController.{h, cc}
  7395. * test/MetalinkParserControllerTest.cc
  7396. * src/MetalinkParserState.h: Also added 16 subclasses.
  7397. * src/main.cc
  7398. * src/Metalink2RequestGroup.cc
  7399. * src/MetalinkHelper.cc
  7400. * src/MetalinkEntry.cc
  7401. * src/ChunkChecksum.h
  7402. Rewritten Base64 class for better performance.
  7403. * src/Base64.{h, cc}
  7404. * test/Base64Test.cc
  7405. * src/HttpRequest.cc
  7406. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. Fixed the bug#1841757: aria2 will connect to server to only get
  7408. file size.
  7409. * src/StreamFileAllocationEntry.cc
  7410. * src/option_processing.cc
  7411. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7412. downloads.
  7413. * src/FtpNegotiationCommand.cc
  7414. Suppressed wrong message when finding PreDownloadHandler
  7415. * src/RequestGroup.cc
  7416. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Updated usage
  7418. * src/version_usage.cc
  7419. Updated man page
  7420. * doc/aria2c.1.txt
  7421. * doc/aria2c.1
  7422. Updated po files
  7423. * po/aria2c.pot
  7424. * po/*.po
  7425. * po/*.gmo
  7426. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7427. Eliminated g++-4.2 warning
  7428. * src/DownloadHandlerConstants.{h, cc}
  7429. * src/Util.cc
  7430. * test/MetaFileUtilTest.cc
  7431. * test/PStringBuildVisitorTest.cc
  7432. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7433. * src/RequestGroup.cc
  7434. * src/BtCheckIntegrityEntry.cc
  7435. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7436. Fixed a2io.h
  7437. * src/a2io.h
  7438. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. Added direct I/O support. The current implementation uses O_DIRECT,
  7440. which is not posix standard and is tested on linux 2.6.21.
  7441. Currently only file allocation uses direct I/O.
  7442. * src/SingleFileAllocationIterator.{h, cc}
  7443. * test/SingleFileAllocationIteratorTest.cc
  7444. * src/MultiFileAllocationIterator.{h, cc}
  7445. * test/MultiFileAllocationIteratorTest.cc
  7446. * src/BinaryStream.h
  7447. * src/DiskWriter.h
  7448. * src/AbstractDiskWriter.{h, cc}
  7449. * src/ByteArrayDiskWriter.h
  7450. * src/DiskAdaptor.h
  7451. * src/AbstractSingleDiskAdaptor.{h, cc}
  7452. * src/MultiDiskAdaptor.{h, cc}
  7453. * src/FileAllocationEntry.cc
  7454. * src/Util.{h, cc}
  7455. * src/OptionHandlerFactory.cc
  7456. * src/prefs.h
  7457. * src/version_usage.cc
  7458. * src/option_processing.cc
  7459. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7460. handleException.
  7461. * src/MultiFileAllocationIterator.cc
  7462. Added EINTR handling
  7463. * src/SocketCore.cc
  7464. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7465. Updated usage
  7466. * src/version_usage.cc
  7467. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7468. Applied Ross's patch for MinGW port.
  7469. * src/DownloadEngine.h
  7470. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7471. Set Content-Type to SingleFileDownloadContext when http response is
  7472. received.
  7473. * src/HttpResponseCommand.cc
  7474. * src/HttpResponse.{h, cc}
  7475. * test/HttpResponseTest.cc
  7476. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7477. Rewritten to add content-type support.
  7478. * src/DownloadHandler.{h, cc}
  7479. * src/BtPostDownloadHandler.{h, cc}
  7480. * test/BtPostDownloadHandlerTest.cc
  7481. * src/MetalinkPostDownloadHandler.{h, cc}
  7482. * test/MetalinkPostDownloadHandlerTest.cc
  7483. * src/PostDownloadHandler.{h, cc}
  7484. * src/DownloadHandlerConstants.{h, cc}
  7485. * src/RequestGroup.cc
  7486. * src/HttpResponseCommand.cc
  7487. * src/FtpNegotiationCommand.cc
  7488. * src/SingleFileDownloadContext.{h, cc}
  7489. * src/RequestGroup.h
  7490. * src/RequestGroupCriteria.h
  7491. * src/ContentTypeRequestGroupCriteria.h
  7492. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7493. If it is give, metalink/torrent file is not written to the disk, but
  7494. just is kept in memory. Parsing is occurred on memory.
  7495. * src/MetalinkHelper.{h, cc}
  7496. * src/MetalinkProcessor.h
  7497. * src/Xml2MetalinkProcessor.{h, cc}
  7498. * test/Xml2MetalinkProcessorTest.cc
  7499. * src/DownloadHandlerFactory.{h, cc}
  7500. * test/DownloadHandlerFactoryTest.cc
  7501. * src/PreDownloadHandler.{h, cc}
  7502. * src/OptionHandlerFactory.cc
  7503. * src/DefaultBtContext.{h, cc}
  7504. * test/DefaultBtContextTest.cc
  7505. * src/version_usage.cc
  7506. * src/Metalink2RequestGroup.{h, cc}
  7507. * src/RequestGroup.{h, cc}
  7508. * src/a2functional.h
  7509. * test/a2functionalTest.cc
  7510. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7511. * src/OptionHandlerImpl.h
  7512. * src/prefs.h
  7513. * src/Util.{h, cc}
  7514. * test/UtilTest.cc
  7515. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7516. memory usage.
  7517. * src/RequestGroupMan.{h, cc}
  7518. * src/DownloadEngine.cc
  7519. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7520. WeakHandle to SharedHandle because WeakHandle could be null.
  7521. * src/RequestGroup.{h, cc}
  7522. * src/DownloadEngineFactory.cc
  7523. * src/DownloadResult.h
  7524. Set totalLength after download finished
  7525. * src/UnknownLengthPieceStorage.{h, cc}
  7526. Keep torrent file specified in metalink in memory.
  7527. * src/Metalink2RequestGroup.cc
  7528. * src/BtDependency.cc
  7529. * src/TrueRequestGroupCriteria.h
  7530. Fixed the bug: seekg is used where seekp should be used.
  7531. * src/ByteArrayDiskWriter.cc
  7532. * test/ByteArraydiskWriterTest.cc
  7533. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7534. Fixed syntax error
  7535. * test/SequenceTest.cc
  7536. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7538. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7539. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7540. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7541. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Added the check to see whether ares_host_callback accepts timeouts
  7543. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7544. * src/NameResolver.{h, cc}
  7545. * m4/libcares.m4
  7546. * configure.ac: Set C++ for language choice.
  7547. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. Fixed: compilation fails without c-ares/ares
  7549. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7550. Generate http/ftp commands only when download is incomplete.
  7551. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7552. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7553. Corrected typo. Examples are removed since they are available in man
  7554. page.
  7555. * src/version_usage.cc
  7556. Updated man page.
  7557. * doc/aria2c.1
  7558. * doc/aria2c.1.txt
  7559. * doc/makeman: Commented out sed command.
  7560. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7561. Throw DlAbortEx when a remote file is not found.
  7562. * src/HttpResponse.cc
  7563. * src/FtpNegotiationCommand.cc
  7564. * src/message.h
  7565. Overwrite an existing file if --allow-overwrite=true is given.
  7566. * src/RequestGroup.cc
  7567. Removed unused functions
  7568. * src/AbstractCommand.h
  7569. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7570. Removed 'extern' from 'extern typedef ...' in src/*.h
  7571. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Updated usage
  7573. * src/version_usage.cc
  7574. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Trim announce URL
  7576. * src/DefaultBtContext.cc
  7577. * test/ShaVisitorTest.cc
  7578. Trim argument s. Give trimed s to exception constructor.
  7579. * src/Util.cc (parseInt)(parseLLInt)
  7580. * test/UtilTest.cc
  7581. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Set precision back to 1.
  7583. * src/ConsoleStatCalc.cc (calculateStat)
  7584. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7585. Replaced strtol with Util::parseInt
  7586. * src/ChunkedEncoding.cc
  7587. * src/HttpConnection.cc
  7588. * src/CookieBoxFactory.cc
  7589. * src/ParameterizedStringParser.cc
  7590. * src/Util.cc
  7591. * test/UtilTest.cc
  7592. * test/OptionHandlerTest.cc
  7593. * src/Request.cc
  7594. Throw exception when empty string is given. The message for exception
  7595. changed.
  7596. * src/Util.cc (parseInt)(parseLLInt)
  7597. * src/message.h
  7598. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7599. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7600. set to 1.
  7601. * src/ConsoleStatCalc.cc (calculateStat)
  7602. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7603. Preallocate non-requested file which is adjacent forward to requested
  7604. file('requested' files means the files given in --select-file option)
  7605. if they share a same piece.
  7606. This fixes long pause in the file system which doesn't support sparse
  7607. files like FAT32 while downloading.
  7608. * src/MultiFileAllocationIterator.{h, cc}
  7609. * test/MultiFileAllocationIteratorTest.cc
  7610. * src/FileEntry.{h, cc}
  7611. Removed unused _option.
  7612. * src/MultiDiskAdaptor.h
  7613. * test/MultiDiskAdaptorTest.cc
  7614. * src/DefaultPieceStorage.cc
  7615. Set the default value of --seed-ratio to 1.0.
  7616. If 0.0 is given, then seeding continues regardless of share ratio.
  7617. * src/version_usage.cc
  7618. * src/option_processing.cc
  7619. * src/BtSetup.cc
  7620. * doc/aria2c.1.txt
  7621. * doc/aria2c.1
  7622. Fixed: Selective download is not working in BitTorrent
  7623. * src/RequestGroup.cc
  7624. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7625. * src/PieceStorage.h
  7626. * test/MockPieceStorage.h
  7627. * src/UnknownLengthPieceStorage.h
  7628. * src/DefaultPieceStorage.{h, cc}
  7629. * src/Metalink2RequestGroup.cc
  7630. * src/RequestGroup.cc
  7631. * src/Sequence.h
  7632. * test/SequenceTest.cc
  7633. * src/IntSequence.h
  7634. * src/message.h
  7635. * src/Util.{h, cc}
  7636. * test/UtilTest.cc
  7637. Added new function 'parse' to catch exception thrown by subclass's
  7638. parseArg
  7639. * src/OptionHandler.h
  7640. * src/OptionParser.cc
  7641. * src/NameMatchOptionHandler.h
  7642. * src/OptionHandlerImpl.h
  7643. * test/OptionHandlerTest.cc
  7644. Added IntegerRangeOptionHandler. Used for --listen-port and
  7645. --select-file. Now --listen-port accepts range of port.
  7646. * src/OptionHandlerFactory.cc
  7647. * src/version_usage.cc
  7648. * src/OptionHandlerImpl.h
  7649. * src/option_processing.cc
  7650. * src/BtSetup.cc
  7651. * src/PeerListenCommand.{h, cc}
  7652. * doc/aria2c.1.txt
  7653. * doc/aria2c.1
  7654. Implemented operator< for Exception class to provide easy way to print
  7655. exception stack trace.
  7656. * src/Exception.{h, cc}
  7657. * src/main.cc
  7658. * src/option_processing.cc
  7659. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. * src/version_usage.cc
  7661. (showVersion): Reworked.
  7662. (showUsage): Added examples.
  7663. Removed Hint for total length and file name.
  7664. * src/Metalink2RequestGroup.cc
  7665. * src/RequestGroup.{h, cc}
  7666. * src/HttpResponseCommand.cc
  7667. * src/FtpNegotiationCommand.cc
  7668. Now --follow-torrent and --follow-metalink option work properly.
  7669. * src/RequestGroup.cc
  7670. Updated man page
  7671. * doc/aria2c.1.txt
  7672. * doc/aria2c.1
  7673. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. Removed.
  7675. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7676. Use Segment::operator==()
  7677. * src/HttpConnection.cc
  7678. * src/Segment.h
  7679. Updated usage
  7680. * src/version_usage.cc
  7681. Added EINTR treatment.
  7682. * src/SocketCore.cc
  7683. * src/AbstractDiskWriter.cc
  7684. Rewritten.
  7685. * src/Util.cc (rangedFileCopy)
  7686. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7687. Fixed typo.
  7688. * src/version_usage.cc
  7689. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7690. Implemented. Now -c option works fine.
  7691. * src/DefaultPieceStorage.cc (markPiecesDone)
  7692. * test/DefaultPieceStorageTest.cc
  7693. Removed.
  7694. * src/SegmentMan.{h, cc}
  7695. (markAllPiecesDone)
  7696. (markPieceDone)
  7697. Synchronized po files with
  7698. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7699. * src/fr.po
  7700. * src/ru.po
  7701. * src/de.po
  7702. * src/ja.po
  7703. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Added ifdef and some modifications to compile without BitTorrent,
  7705. Metalink, MessageDigest
  7706. support.
  7707. * src/PieceHashCheckIntegrityEntry.cc
  7708. * src/MetalinkEntry.h
  7709. * src/version_usage.cc
  7710. * src/main.cc
  7711. * src/DownloadEngine.{h, cc}
  7712. * src/Metalink2RequestGroup.cc
  7713. * src/Peer.cc
  7714. * src/RequestGroup.cc
  7715. * src/MetalinkHelper.cc
  7716. * test/DefaultPieceStorageTest.cc
  7717. * test/MetalinkPostDownloadHandlerTest.cc
  7718. * test/Metalink2RequestGroupTest.cc
  7719. Hide TOTAL SPD when all downloads complete.
  7720. * src/ConsoleStatCalc.cc
  7721. Log target system information.
  7722. * src/main.cc
  7723. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7724. Now --metalink-location accepts a comma-deliminated list of locations.
  7725. * src/MetalinkEntry.{h, cc}
  7726. * test/MetalinkEntryTest.cc
  7727. * src/version_usage.cc
  7728. * src/Metalink2RequestGroup.cc
  7729. * src/Xml2MetalinkProcessor.cc
  7730. * test/Xml2MetalinkProcessorTest.cc
  7731. * doc/aria2c.1.txt
  7732. * doc/aria2c.1
  7733. * src/Util.cc (toUpper)(toLower): Rewritten.
  7734. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Added the ability to detect duplicate download entry which is about to
  7736. download the same file other RequestGroup is downloading.
  7737. * src/RequestGroup.cc
  7738. * src/HttpResponseCommand.cc
  7739. * src/FtpNegotiationCommand.cc
  7740. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Recalculates download progress when loading a control file,
  7742. if the piece length of DownloadContext is different from the one saved
  7743. in the control file. Currently in-flight pieces are ignored.
  7744. * src/DefaultBtProgressInfoFile.cc
  7745. * test/DefaultBtProgressInfoFileTest.cc
  7746. * src/Util.{h, cc}
  7747. * test/UtilTest.cc
  7748. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7749. Do not rotate tiers in announce-list.
  7750. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7751. AnnounceList::allTiersFailed() used instead to detect whether all
  7752. tiers are tried and failed.
  7753. * test/DefaultBtAnnounceTest.cc
  7754. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7755. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7756. * test/AnnounceListTest.cc
  7757. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7758. clause. Catch RecoverableException instead of DlRetryEx instead.
  7759. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Implemented checksum validation feature(1 checksum for each file)
  7761. The validation takes place after the download.
  7762. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7763. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7764. * src/CheckIntegrityCommand.cc: Changed log message.
  7765. * src/Metalink2RequestGroup.cc: Set checksum to
  7766. SingleFileDownloadContext.
  7767. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7768. PieceHashCheckIntegrity class.
  7769. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7770. PieceHashCheckIntegrity class.
  7771. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7772. * src/IteratableValidator.h: New class.
  7773. * src/message.h
  7774. * src/CheckIntegrityEntry.{h, cc}
  7775. * src/IteratableChunkChecksumValidator.{h, cc}
  7776. * src/SingleFileDownloadContext.h
  7777. * src/DownloadCommand.cc
  7778. --allow-overwrite=true is no longer needed to check file integrity
  7779. before download in BitTorrent download.
  7780. * src/RequestGroup.cc (getInitialCommand)
  7781. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7782. throws exception.
  7783. * src/RequestGroupMan.cc (getInitialCommands)
  7784. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7785. urlencode the given url inside Request::parseUrl(...)
  7786. * src/Request.{h, cc}
  7787. * src/Util.{h, cc}
  7788. * test/RequestTest.cc
  7789. Removed #!metalink3! notation support because it is deleted from
  7790. the metalink specification.
  7791. * src/Request.{h, cc}
  7792. * test/RequestTest.cc
  7793. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7794. Don't connect server before checking file integrity at startup, if
  7795. filesize and output file path are known.
  7796. * src/AbstractCommand.cc
  7797. * src/StreamFileAllocationEntry.cc
  7798. * src/Metalink2RequestGroup.cc
  7799. * src/RequestGroup.{h, cc}
  7800. * src/HttpResponseCommand.cc
  7801. * src/FtpNegotiationCommand.cc
  7802. Added DownloadFailureException. If it is thrown, RequestGroup should
  7803. halt.
  7804. * src/AbstractCommand.cc
  7805. * src/DownloadFailureException.h
  7806. * src/RequestGroup.cc
  7807. Catch RecoverableException, instead of DlAbortEx.
  7808. * src/RequestGroupMan.cc
  7809. * src/FillRequestGroupCommand.cc
  7810. * src/MetaFileUtil.cc
  7811. * src/IteratableChunkChecksumValidator.cc
  7812. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7813. getGID())
  7814. * src/CheckIntegrityCommand.cc
  7815. * src/message.h
  7816. Print gid instead of idx.
  7817. * src/RequestGroupMan.cc
  7818. Removed exception throwers declaration.
  7819. * src/DirectDiskAdaptor.{h, cc}
  7820. * src/SocketCore.{h, cc}
  7821. * src/MultiDiskAdaptor.{h, cc}
  7822. * src/HttpConnection.{h, cc}
  7823. * src/HttpResponse.{h, cc}
  7824. * src/DiskAdaptor.{h, cc}
  7825. * src/CopyDiskAdaptor.{h, cc}
  7826. * src/MultiDiskAdaptor.{h, cc}
  7827. * src/HttpHeaderProcessor.{h, cc}
  7828. * src/AbstractSingleDiskAdaptor.{h, cc}
  7829. * src/Util.{h, cc}
  7830. * test/UtilTest.cc
  7831. * src/DefaultDiskWriter.{h, cc}
  7832. * src/FtpConnection.{h, cc}
  7833. * src/AbstractDiskWriter.{h, cc}
  7834. Removed duplicate code.
  7835. * src/StreamCheckIntegrityEntry.cc
  7836. Removed unnecessary include.
  7837. * src/DiskWriter.h
  7838. Included Exception.h
  7839. * src/option_processing.cc
  7840. Included 2 files and added doc
  7841. * src/TrackerWatcherCommand.cc
  7842. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7843. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Changed CheckIntegrityEntry interface so that it can define
  7845. the action when all the chunk checksums are valid.
  7846. * src/CheckIntegrityEntry.h
  7847. * src/StreamCheckIntegrityEntry.{h, cc}
  7848. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7849. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7850. to exit rather than doing seeding. So, it would be good to toggle this
  7851. behavior.
  7852. * src/CheckIntegrityCommand.cc
  7853. * src/AbstractCommand.cc
  7854. * src/RequestGroup.cc
  7855. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Reflect the download length of in-flight pieces.
  7857. It makes the download length readout more precise.
  7858. * src/DefaultPieceStorage.{h, cc}
  7859. * test/DefaultPieceStorageTest.cc
  7860. * src/a2functional.h
  7861. * test/a2functionalTest.cc
  7862. Lower CPU load when --max-download-limit is used.
  7863. There is up and down in speed indicator when enabling
  7864. http-pipelining but a download goes well. I think the problem is that
  7865. because http-pipelining is enabled, DownloadCommand is created for
  7866. each segment and in its constructor, PeerStat::downloadStart() is
  7867. called. In PeerStat::downloadStart(), speed calculation object is
  7868. reseted, which makes download speed zero.
  7869. * src/DownloadCommand.cc
  7870. Rewritten using accumulate.
  7871. * src/RequestGroupMan.cc (calculateStat)
  7872. Code clearnup.
  7873. * src/FtpNegotiationCommand.cc
  7874. * src/HttpResponseCommand.cc
  7875. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Fixed: Can not resume: aria2 reports download already finished.
  7877. * src/AbstractCommand.{h, cc}
  7878. * src/HttpResponseCommand.cc
  7879. * src/FtpNegotiateCommand.cc
  7880. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Now a file is stored in the directory specified in .metalnk file
  7882. (file[@name]).
  7883. * src/Metalink2RequestGroup.cc
  7884. Create the directory structure when opening the file if it doesn't
  7885. exist.
  7886. * src/AbstractDiskWriter.cc
  7887. * src/Util.{h, cc}
  7888. * src/File.h
  7889. * test/UtilTest.cc
  7890. Removed file name comparison
  7891. * src/Metalink2RequestGroup.cc
  7892. * src/HttpResponseCommand.cc
  7893. Rewritten using Util::mkdirs()
  7894. * src/FileEntry.cc (setupDir)
  7895. * test/FileEntryTest.cc
  7896. Updated doc
  7897. * src/SingleFileDownloadContext.h
  7898. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7899. Now SleepCommand dispatches nextCommand when halt is requested.
  7900. It avoids a possible long wait after hitting CTRL-C.
  7901. * src/SleepCommand.{h, cc}
  7902. * src/RequestGroupAware.{h, cc}
  7903. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7905. to open listen port, then remove the port number from the tracker
  7906. request.
  7907. * src/DefaultBtAnnounce.cc
  7908. * test/DefaultBtAnnounceTest.cc
  7909. * test/MockPieceStorage.h
  7910. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7911. them more testable.
  7912. * src/DefaultBtAnnounce.{h, cc}
  7913. * src/DefaultBtContext.{h, cc}
  7914. * src/Util.{h, cc}
  7915. * test/DefaultBtAnnounceTest.cc
  7916. * test/DefaultBtContextTest.cc
  7917. * test/UtilTest.cc
  7918. Added 'B' to upload bytes readout.
  7919. * src/ConsoleStatCalc.cc
  7920. Now the listen port for BitTorrent download is opened when it is
  7921. needed.
  7922. * src/DownloadEngineFactory.cc
  7923. * src/BtSetup.{h, cc}
  7924. * src/PeerListenCommand.{h, cc}
  7925. Now an exception thrown while parsing tracker response is now logged.
  7926. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7927. called, which means no retry is made in this case, assuming a tracker
  7928. has a problem.
  7929. * src/TrackerWatcherCommand.cc
  7930. Fixed: downloading a file whose length is unkown fails.
  7931. * src/DownloadCommand.cc
  7932. Simplified prepareForNextSegment()
  7933. * src/DownloadCommand.cc
  7934. Updated
  7935. * po/POTFILES.in
  7936. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Re-implemented a file listing for Metalink, which was dropped while
  7938. http/ftp/torrent integration was being implemented.
  7939. * src/MetalinkHelper.{h, cc}: New class.
  7940. * test/MetalinkHelperTest.cc
  7941. * src/main.cc
  7942. * src/Metalink2RequestGroup.cc
  7943. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7944. Added the ability to display the detailed torrent file information.
  7945. Now -S option gives not only a file listing, but also total download
  7946. length, info hash, announce URI, piece length, the number of pieces,
  7947. and mode(single or multi-torrent).
  7948. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7949. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7950. KiB)
  7951. * test/UtilTest.cc
  7952. * src/main.cc
  7953. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7954. Added ftp://USER:PASSWD@Servername automatic parsing.
  7955. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7956. _password. Recognize username and password in URI.
  7957. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7958. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7959. * src/RequestFactory.{h, cc}: Removed.
  7960. * src/AuthConfigFactory.{h, cc}: New class.
  7961. * src/FtpConnection.cc: Use AuthConfigFactory.
  7962. * src/HttpRequest.cc: Use AuthConfigFactory.
  7963. * test/HttpRequestTest.cc: Updated.
  7964. * test/RequestTest.cc: Updated.
  7965. * test/AuthConfigFactoryTest.cc: New class.
  7966. * test/RequestFactoryTest.cc: Removed.
  7967. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Use RequestGroup::allDownloadFinished() to decide whether the control
  7969. file should be removed or saved.
  7970. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7971. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7972. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7973. Use File::renameTo()
  7974. * src/DefaultBtProgressInfoFile.cc
  7975. Added --no-file-allocation-limit command-line option.
  7976. * src/version_usage.cc
  7977. * src/option_processing.cc
  7978. * src/OptionHandlerFactory.cc
  7979. * src/RequestGroup.{h, cc}
  7980. * src/BtCheckIntegrityEntry.cc
  7981. * src/StreamCheckIntegrityEntry.cc
  7982. * src/prefs.h
  7983. * doc/aria2c.1.txt
  7984. * doc/aria2c.1
  7985. Now prealloc is the default value for --file-allocation option.
  7986. * src/version_usage.cc
  7987. * src/option_processing.cc
  7988. * doc/aria2c.1.txt
  7989. * doc/aria2c.1
  7990. Don't URL-encode user-agent.
  7991. * src/HttpRequest.cc
  7992. Updated translations
  7993. * po/LINGUAS: Added nl for Dutch translation.
  7994. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7995. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7996. * po/POTFILES.in: Updated.
  7997. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7998. Added the ability to recognize url-list in a torrent file.
  7999. The retrieved URLs are attached to the corresponding FileEntry.
  8000. * src/DefaultBtContext.{h, cc}
  8001. * src/FileEntry.{h, cc}
  8002. * test/DefaultBtContextTest.cc
  8003. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8005. after the download finishes.
  8006. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8008. the data smaller than block length.
  8009. A block length can be specified by constructor's argument.
  8010. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8011. Get a missing piece in the range of given FileEntry. This function is
  8012. not used in the program yet.
  8013. * src/Util.h: Added some macros.
  8014. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Added HTTP/1.1 keep alive and pipelining support.
  8016. See --enable-http-keep-alive and --enable-http-pipelining option.
  8017. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8018. Segment.
  8019. * src/HttpDownloadCommand.{h, cc}
  8020. * src/OptionHandlerFactory.cc
  8021. * src/HttpConnection.{h, cc}
  8022. * src/version_usage.cc
  8023. * src/HttpInitiateConnectionCommand.cc
  8024. * src/FtpInitiateConnectionCommand.cc
  8025. * src/Segment.h
  8026. * src/HttpRequestCommand.{h, cc}
  8027. * src/option_processing.cc
  8028. * src/prefs.h
  8029. * src/HttpResponseCommand.cc
  8030. * src/SegmentMan.{h, cc}
  8031. * src/FtpNegotiateCommand.cc
  8032. * src/HttpProxyResponseCommand.cc
  8033. * src/Request.cc
  8034. * src/HttpRequest.cc
  8035. * src/DownloadCommand.cc
  8036. * test/HttpRequestTest.cc
  8037. * test/RequestTest.cc
  8038. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8040. finished.
  8041. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8042. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8043. catching it inside the method.
  8044. When no file entry is found in a metalink without querying user
  8045. preferences, throw the exception with the error message that suggests
  8046. metalink file is probably broken.
  8047. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8048. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8049. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8050. processed.
  8051. * src/RequestGroupMan.cc (removeStoppedGroup)
  8052. Added debug message.
  8053. * src/BtPostDownloadHandler.cc
  8054. * src/MetalinkPostDownloadHandler.cc
  8055. * src/PostDownloadHandler.{h, cc}
  8056. * src/RequestGroup.cc
  8057. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8058. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8059. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8061. stops and there are any unfinished or in-progress downloads.
  8062. Added the legend of "stat".
  8063. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Throw exception when chunck checksum verification fails.
  8065. * src/DownloadCommand.cc (validatePieceHash): New function.
  8066. * src/PiecedSegment.{h, cc} (clear): New function.
  8067. * src/GrowSegment.{h, cc} (clear): New function.
  8068. * src/Segment.h (clear): New function.
  8069. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8070. * test/SegmentTest.cc
  8071. * test/GrowSegmentTest.cc
  8072. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Do not send referer when redirected.
  8074. * src/Request.cc (redirectUrl)
  8075. * test/RequestTest.cc
  8076. * test/HttpRequestTest.cc
  8077. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8078. Implemented BitTorrent/http/ftp integrated download.
  8079. I've rewritten lots of files and now some headers have forward
  8080. class declarations to reduce compile time.
  8081. The implementation is extremely alpha stage, I recommend to use this
  8082. for testing purpose only.
  8083. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8084. Fixed the compilation error on 64bit platform.
  8085. * test/HttpHeaderProcessorTest.cc
  8086. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8087. Merged Ross's patch that fixes compilation problem in MinGW
  8088. * test/DefaultBtProgressInfoFileTest.cc
  8089. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8090. Updated fr.po by sebone
  8091. * po/fr.po
  8092. Updated man page.
  8093. * doc/aria2c.1.txt
  8094. * Release 0.11.3
  8095. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8096. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8097. failure in Metalink.
  8098. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8099. Automatically save *.aria2 control file of http/ftp download in every
  8100. 60 seconds.
  8101. * src/AutoSaveCommand.{h, cc}: New class.
  8102. * src/TimeBasedCommand.{h, cc}: New class.
  8103. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8104. Disable parameterized URI support by default. Added -P option to
  8105. enable the feature.
  8106. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8107. * src/OptionHandlerFactory.cc
  8108. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8109. Updated Japanese translation.
  8110. * po/ja.po
  8111. Updated man page.
  8112. * doc/aria2c.1.txt
  8113. * Release 0.11.3-rc
  8114. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8116. it is successful, then renamed to *.aria2.
  8117. This prevents *.aria2 file from being truncated or corrupted when
  8118. file system becomes out of space.
  8119. * src/DefaultBtProgressInfoFile.cc (save)
  8120. * src/SegmentMan.cc (save)
  8121. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8122. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Reduced the fragmentation of bitfield in http/ftp download.
  8124. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8125. * test/BitfieldManTest.cc
  8126. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Added the ability to disable segmented download in .metalink.
  8128. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8129. 'url' tag.
  8130. * src/MetalinkEntry.{h, cc}
  8131. * src/RequestResource.{h, cc}
  8132. * src/MetalinkRequestInfo.cc
  8133. * src/Xml2MetalinkProcessor.cc
  8134. * test/Xml2MetalinkProcessorTest.cc
  8135. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8136. Added parameterized URI support.
  8137. * src/main.cc: -Z option added.
  8138. * src/OptionHandlerFactory.cc
  8139. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8140. * src/PStringDatum.h: New class.
  8141. * src/PStringSegment.{h,cc}: New class.
  8142. * src/PStringNumLoop.h: New class.
  8143. * src/PStringSelect.h: New class.
  8144. * src/NumberDecorator.h: New class.
  8145. * src/FixedWidthNumberDecorator.h: New class.
  8146. * src/AlphaNumberDecorator.h: New class.
  8147. * src/PStringVisitor.h: New class.
  8148. * src/PStringBuildVisitor.{h,cc}: New class.
  8149. * src/ParameterizedStringParser.{h,cc}: New class.
  8150. * src/Util.{h,cc}
  8151. (isNumber): New function.
  8152. (isLowercase): New function.
  8153. (isUppercase): New function.
  8154. (alphaToNum): New function.
  8155. * test/ParameterizedStringParserTest.cc: New class.
  8156. * test/AlphaNumberDecoratorTest.cc: New class.
  8157. * test/PStringBuildVisitorTest.cc: New class.
  8158. * test/UtilTest.cc
  8159. (testIsNumber): New function.
  8160. (testIsLowercase): New function.
  8161. (testIsUppercase): New function.
  8162. (testAlphaToNum): New function.
  8163. Added '\n' after the error message
  8164. * src/RequestInfo.h (printDownloadAbortMessage)
  8165. Added auto file renaming feature in http(s)/ftp download.
  8166. * src/main.cc: Added --auto-file-renaming command-line option.
  8167. * src/OptionHandlerFactory.cc
  8168. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8169. * src/RequestGroup.{h, cc}
  8170. (shouldCancelDownloadForSafety): Rewritten
  8171. (tryAutoFileRenaming): New function.
  8172. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8173. * src/HttpResponseCommand.cc
  8174. (executeInternal): Removed the call to RequestGroupMan::
  8175. isSameFileBeingDownloaded()
  8176. * src/FtpNegotiateCommand.cc
  8177. (recvSize): Removed the call to RequestGroupMan::
  8178. isSameFileBeingDownloaded()
  8179. * test/RequestGroupTest.cc: New class.
  8180. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8182. IO.
  8183. * src/DefaultBtProgressInfoFile.cc
  8184. * src/MetaFileUtil.cc
  8185. * src/SimpleLogger.cc
  8186. * src/SegmentMan.cc
  8187. * src/Util.cc
  8188. * src/Platform.cc
  8189. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8191. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8192. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8193. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8194. Fixed the bug that prevents file allocation is not done when
  8195. dowloading multi-torrent file.
  8196. * src/AbstractDiskWriter.cc (openFile)
  8197. Increase the maximum number of -j option from 15 to 45.
  8198. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8199. Added fr.po, thanks to Charles Landemaine.
  8200. * po/fr.po
  8201. * po/LINGUAS
  8202. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8203. gcc 3.4.4 support:
  8204. * src/DefaultBtContext.cc: int32_t -> int
  8205. * src/main.cc: int -> int32_t, int32_t -> int
  8206. * src/messageDigest.h: uint32_t -> unsigned int
  8207. * src/NameResolver.h: int32_t -> int
  8208. * src/PeerConnection.cc: int -> int32_t
  8209. * src/SpeedCalc.cc: int32_t -> int
  8210. * src/TrackerUpdateCommand.h: int -> int32_t
  8211. * src/Util.cc: int32_t -> int
  8212. * src/Util.h: int32_t -> int
  8213. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8214. * test/AnnounceListTest.cc: int -> int32_t
  8215. * test/ChunkedEncodingTest.cc: int -> int32_t
  8216. * test/DataTest.cc: int -> int32_t
  8217. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8218. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8219. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8220. * test/FeatureConfigTest.cc: int -> int32_t
  8221. * test/MetalinkEntryTest.cc: int -> int32_t
  8222. * test/MockBtRequestFactory.h: int -> int32_t
  8223. * test/MockPieceStorage.h: int -> int32_t
  8224. * test/OptionTest.cc: int -> int32_t
  8225. * test/RequestTest.cc: int -> int32_t
  8226. * test/SegmentManTest.cc: int -> int32_t
  8227. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8228. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8229. Move sleep functions to Util class:
  8230. * src/Util.cc
  8231. (sleep): New function.
  8232. (usleep): New function.
  8233. * src/DownloadCommand.cc: sleep -> Util::sleep
  8234. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8235. MinGW build enhancements. The following files are added:
  8236. * src/timegm.{c,h}
  8237. Changes to support the above new files:
  8238. * configure.ac
  8239. * src/Makefile.am
  8240. * src/a2time.h
  8241. * src/Util.cc:
  8242. * src/strptime.c: Added support for %Z option.
  8243. Fixed MinGW non-blocking bug.
  8244. * src/SocketCore.cc
  8245. * src/HttpRequestCommand.cc
  8246. Miscellenous build fixes/enhancements.
  8247. * configure.ac: Added summary report.
  8248. * src/Platform.h: Tweaked #include's.
  8249. * src/a2netcompat.h: Tweaked #include's.
  8250. * src/strptime.h: Tweaked #include's.
  8251. * src/gai_strerror.c: Tweaked #include's.
  8252. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8253. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8254. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8255. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Increased the initial connection size in BitTorrent download to 40.
  8257. * src/BtRuntime.h
  8258. Added the usage message of --peer-id-prefix option.
  8259. * src/main.cc
  8260. * Release 0.11.2
  8261. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. MessageDigestHelper is introduced in order to simplify the use
  8263. of message digest. Removed repeated code.
  8264. The message digest algorithm is now specified by string, like "sha1",
  8265. "md5".
  8266. * src/messageDigest.{h, cc}
  8267. * src/MessageDigestHelper.{h, cc}: New class.
  8268. * src/DefaultPieceStorage.cc
  8269. * src/DefaultBtContext.{h, cc}
  8270. (computeFastSet): New function.
  8271. (setInfoHash): Added for unit testing.
  8272. (setNumPieces): Added for unit testing.
  8273. * src/DefaultBtInteractive.cc
  8274. * src/BtPieceMessage.cc
  8275. * src/Peer.cc
  8276. * src/Checksum.h
  8277. * src/message.h
  8278. * src/IteratableChecksumValidator.h
  8279. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8280. inside it.
  8281. * src/SegmentMan.{h, cc}
  8282. (checkIntegrity): Removed.
  8283. * src/IteratableChunkChecksumValidator.{h, cc}
  8284. * src/Util.h
  8285. (sha1Sum): Removed.
  8286. (simpleMessageDigest): Removed.
  8287. (fileChecksum): Removed.
  8288. (computeFastSet): Removed.
  8289. * src/ShaVisitor.cc
  8290. * src/ChunkChecksum.h
  8291. * src/DownloadCommand.cc
  8292. Removed messageDigest virtual functions.
  8293. * src/MultiDiskAdaptor.{h, cc}
  8294. * src/DiskAdaptor.h
  8295. * src/ByteArrayDiskWriter.h
  8296. * src/DiskWriter.h
  8297. * src/DiskAdaptorWriter.h
  8298. * src/AbstractSingleDiskAdaptor.{h, cc}
  8299. * src/AbstractDiskWriter.{h, cc}
  8300. Fixed comilation error when message digest is disabled.
  8301. * src/MetalinkEntry.{h, cc}
  8302. * src/MetalinkRequestInfo.cc
  8303. Removed srandom and random.
  8304. * src/SimpleRandomizer.h
  8305. Added size() virtual function to DiskAdaptor
  8306. * src/MultiDiskAdaptor.h
  8307. Fixed the bug that causes that files are not opened correctly in
  8308. multi-file torrent.
  8309. * src/TorrentRequestInfo.cc
  8310. * src/MultiDiskAdaptor.cc
  8311. Added SHA256 support
  8312. * src/messageDigest.cc
  8313. * src/Xml2MetalinkProcessor.cc
  8314. Show supported message digest algorithms
  8315. * src/main.cc
  8316. Updated contact info.
  8317. * src/main.cc
  8318. Applied Ross's patch
  8319. * src/a2netcompat.h
  8320. * src/main.cc
  8321. Fixed the bug that prevents a remote metalink from not being processed
  8322. even if '-o foo.metalink' is specified.
  8323. * src/MetalinkRequestInfo.cc
  8324. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. Merged Dan's patch:
  8326. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8327. Use va_copy to avoid core dump on amd64:
  8328. * src/SimpleLogger.cc
  8329. Updated contact info.
  8330. * src/main.cc
  8331. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8332. digest is not available.
  8333. * src/MetalinkEntry.h
  8334. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8335. Make a2netcompat.h include a2io.h to fix compilation error:
  8336. * src/a2netcompat.h
  8337. * src/SocketCore.cc: Removed include of a2io.h
  8338. * src/Util.cc: Removed include of a2io.h
  8339. Gather time related functions to a2time.h:
  8340. * src/a2time.h: New file.
  8341. * src/DefaultPeerStorage.cc
  8342. * src/SimpleLogger.cc
  8343. * src/Util.{h, cc}
  8344. * src/SimpleRandomizer.h
  8345. * src/TimeA2.{h,cc}
  8346. * src/DownloadCommand.cc
  8347. * src/main.cc
  8348. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8349. a2netcompat.h:
  8350. * src/NameResolver.cc
  8351. Fixed compilation error without openssl:
  8352. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8353. Added default block to suppress compiler warnings:
  8354. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8355. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8356. MinGW build enhancements. The following files are added:
  8357. * src/gai_strerror.{c,h}
  8358. * src/gettimeofday.{c,h}
  8359. Changes to support the above new files:
  8360. * configure.ac
  8361. * src/Makefile.am
  8362. * src/a2netcompat.h
  8363. * src/TimeA2.cc
  8364. * src/DefaultPeerStorage.cc
  8365. * src/NameResolver.cc: removed mingw_strerror() function.
  8366. * src/SocketCore.cc: removed mingw_strerror() function.
  8367. Miscellaneous MinGW build fixes.
  8368. * src/a2io.h: Use _lseeki64() instead of lseek()
  8369. * src/common.h
  8370. * src/DefaultFileAllocator.cc
  8371. * src/GlowFileAllocator.cc
  8372. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8373. * src/NameResolver.cc
  8374. (callback): Changed int32_t to int.
  8375. (resolve): Changed int32_t to int.
  8376. * src/Platform.cc
  8377. * src/Platform.h
  8378. * test/MultiDiskWriterTest.cc
  8379. * test/PeerMessageUtilTest.cc
  8380. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8381. Other enhancements and fixes.
  8382. * src/HttpRequestCommand.cc
  8383. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8384. * src/SocketCore.cc:
  8385. (error): New function to abstract errno/WSAGetLastError().
  8386. (errorMsg): New function to abstract errno/WSAGetLastError().
  8387. (initiateSecureConnection): Added more detailed error reporting.
  8388. * src/SocketCore.h: Added private variable blocking, to allow
  8389. proper handling of OpenSSL psuedo-errors.
  8390. * src/message.h
  8391. (EX_SSL_INIT_FAILURE)
  8392. (EX_SSL_IO_ERROR)
  8393. (EX_SSL_PROTOCOL_ERROR)
  8394. (EX_SSL_UNKNOWN_ERROR)
  8395. (EX_SSL_CONNECT_ERROR)
  8396. (EX_SOCKET_BLOCKING)
  8397. (EX_SOCKET_NONBLOCKING)
  8398. (EX_SOCKET_UNKNOWN_ERROR)
  8399. * src/Util.cc
  8400. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8401. reserved name.
  8402. (httpGMT): Fixed typo.
  8403. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Merged Ross's win32 patch(manually)
  8405. In the course of merging, following files are added.
  8406. * src/strptime.{h,c}
  8407. * src/libgen.{h,c}
  8408. * src/inet_aton.{h,c}
  8409. * src/Platform.{h,cc}
  8410. * src/localtime_r.{h,c}
  8411. * src/getaddrinfo.{h,c}
  8412. I've gethered network related things, and put them to following file:
  8413. * src/a2netcompat.h
  8414. Also io related things are put to following file:
  8415. * src/a2io.h
  8416. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8417. * src/message.h
  8418. (MSG_ALLOCATION_COMPLETED)
  8419. (EX_TOO_LARGE_FILE)
  8420. (EX_SIZE_MISMATCH)
  8421. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8422. (EX_INVALID_CHUNK_CHECKSUM)
  8423. (EX_INVALID_RANGE_HEADER)
  8424. * src/FileAllocationCommand.cc
  8425. * src/HttpResponse.cc
  8426. * src/RequestGroup.cc
  8427. * src/MultiDiskAdaptor.cc
  8428. * src/OptionHandlerImpl.h
  8429. * src/HttpResponseCommand.cc
  8430. * src/FtpNegotiateCommand.cc
  8431. * src/IteratableChecksumValidator.cc
  8432. * src/SegmentMan.cc
  8433. * src/ChunkChecksumValidator.cc
  8434. Added Randomizer::getRandomNumber(long int)
  8435. * src/Randomizer.h (getRandomNumber)
  8436. * src/SimpleRandomizer.h (getRandomNumber)
  8437. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8438. * src/Util.cc (randomAlpha): Use this new function.
  8439. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8440. Converted int's to in32_t. long long int's are also converted to
  8441. int64_t
  8442. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8443. Fixed the bug that prevents cookies from being sent to the server
  8444. if the domain of cookie is FQDN and starts with ".".
  8445. * src/Cookie.cc (match)
  8446. To add the ability to change peer id.
  8447. * src/DefaultBtContext.h
  8448. (_peerIdPrefix): New variable
  8449. (setPeerIdPrefix): New function.
  8450. * src/torrentRequestInfo.cc
  8451. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8452. DefaultBtContext.
  8453. * src/main.cc (main): Added peer-id-prefix command-line option.
  8454. The usage message is not added yet.
  8455. * src/DefaultBtContext.cc
  8456. (generatePeerId): Use _peerIdPrefix.
  8457. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8458. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8459. Fixed the bug that prevents filename in content-disposition from
  8460. being retrieved when filename is not quoted.
  8461. * src/Util.cc (getContentDispositionFilename)
  8462. Fixed the bug that causes infinate loop and memory leak when file open
  8463. operation failed.
  8464. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8465. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8466. Fixed the bug that causes segfault when all URIs specified are
  8467. unsupported.
  8468. * src/RequestGroupMan.cc (getInitialCommands)
  8469. Check if RequestGroup::createNextCommand() returns empty list of
  8470. commands.
  8471. * src/RequestGroup.cc (createNextCommand)
  8472. Change log level from info to error so that users can notice that
  8473. an error occurred.
  8474. Fixed the bug that causes segfault when a zero-sized file is
  8475. downloaded.
  8476. * src/BitfieldMan.cc (isAllBitSet)
  8477. Return true if bitfieldLength is 0.
  8478. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. * src/main.cc
  8480. (showUsage): Added 3 usage examples for metalink download.
  8481. Replace MetalinkChunkChecksum with ChunkChecksum.
  8482. * src/MetalinkChunkChecksum.h: Removed.
  8483. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8484. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8485. * src/Xml2MetalinkProcessor.cc
  8486. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8487. * src/MetalinkRequestInfo.cc (execute)
  8488. * Release 0.11.1
  8489. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Reads URIs from stdin when "-i -" is specified.
  8491. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8492. * src/UriListParser.h, src/UriListParser.cc: New class.
  8493. * src/StreamUriListParser.h: New class.
  8494. * src/FileUriListParser.h: New class.
  8495. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8496. instead of UriFileListParser.
  8497. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Made console readout more readable.
  8499. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8500. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. Fix the bug that causes -s option not to work.
  8502. * src/main.cc (main)
  8503. * src/a2algo.h: New file.
  8504. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Create directory structure specified in metalink file.
  8506. * src/RequestGroup.h, src/RequestGroup.cc
  8507. (initAndOpenFile): Create a directory to store files if it does not
  8508. exist.
  8509. (getDir): New function.
  8510. Added ETA and download speed for an individual file to readout.
  8511. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8512. * src/RequestGroup.h
  8513. (calculateDownloadSpeed): New function.
  8514. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Made -S option work with metalink file and provided selective download
  8516. to metalink.
  8517. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8518. (filename): Removed.
  8519. (file): New variable.
  8520. (size): Removed.
  8521. (operator=): Updated.
  8522. (getPath): New function.
  8523. (getLength): New function.
  8524. (toFileEntry): New function.
  8525. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8526. (execute): Use toStream.
  8527. (showFileEntry): Removed.
  8528. * src/MetalinkRequestInfo.h
  8529. (targetFiles): New variable.
  8530. (setTargetFiles): New variable.
  8531. * src/MetalinkRequestInfo.cc
  8532. (execute): Added the ability to print file information included in
  8533. a metalink file.
  8534. Added selective download mode to metalink.
  8535. * src/main.cc
  8536. (showUsage): Updated to denote that -S and --select-file options are
  8537. applicable to metalink.
  8538. * src/FileEntry.h
  8539. (operator=): New function.
  8540. (getBasename): New function.
  8541. (getDirname): New function.
  8542. * src/Util.h, src/Util.cc
  8543. (toStream): New function.
  8544. * src/Xml2MetalinkProcessor.cc: Updated.
  8545. Made aria2 work with metalink with directory structure.
  8546. * src/File.h, src/File.cc
  8547. (getBasename): New function.
  8548. (getDirname): New function.
  8549. * src/RequestGroup.h, src/RequestGroup.cc
  8550. (_topDir): New variable.
  8551. (setTopDir): New function.
  8552. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8553. Rewrote HTTP header parsing with stringstream.
  8554. * src/HttpConnection.h, src/HttpConnection.cc
  8555. (HttpRequestEntry): New class.
  8556. (headerBuf): Removed.
  8557. (headerBufLength): Removed.
  8558. (outstandingHttpRequests): Now its element type is
  8559. HttpRequestEntryHandle.
  8560. (findEndOfHeader): Removed.
  8561. (receiveResponse): Rewritten.
  8562. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8563. Updated doc for -j option to notice that it should be used with -i
  8564. option.
  8565. * src/main.cc (showUsage)
  8566. Removed unused classes.
  8567. * src/RequestInfo.h
  8568. (FileInfo): Removed.
  8569. (checksum): Removed.
  8570. (fileInfo): Removed.
  8571. (setChecksum): Removed.
  8572. (getChecksum): Removed.
  8573. (getFileInfo): Removed.
  8574. Use ISO units.
  8575. * src/ConsoleDownloadEngine.cc
  8576. * src/TorrentConsoleDownloadEngine.cc
  8577. * src/Util.cc (abbrevSize)
  8578. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Added the default listening ports to the help message.
  8580. * src/main.cc (showUsage)
  8581. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8582. Reduce the number of calls to gettimeofday to lower CPU load.
  8583. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8584. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8585. * src/Peer.h (calculateUploadSpeed): New function.
  8586. (calculateDownloadSpeed): New function.
  8587. * src/DefaultPeerStorage.cc
  8588. (CalculateStat): Added _now variable.
  8589. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8590. and Peer::calculateUploadSpeed(const struct timeval&)
  8591. Drop connection if no request or piece message is exchanged in
  8592. a certain interval.
  8593. * src/DefaultBtInteractive.h
  8594. (btRuntime): New variable.
  8595. (inactiveCheckPoint): New variable.
  8596. (checkActiveInteraction): New function.
  8597. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8598. request or piece message is received.
  8599. (checkActiveInteraction): New function.
  8600. (doInteractionProcessing): Call checkActiveInteraction.
  8601. Fixed the bug that causes remote Metalink and Torrent files are not
  8602. processed.
  8603. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8604. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Changed format of log file.
  8606. * src/SimpleLogger.cc
  8607. * Release 0.11.0
  8608. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8609. * src/AbstractCommand.cc
  8610. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8611. MSG_MAX_TRY from error to info.
  8612. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8613. * src/message.h
  8614. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8615. (MSG_DOWNLOAD_ABORTED): Added %s.
  8616. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8617. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8618. * src/PeerAbstractCommand.cc
  8619. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8620. * src/Request.h
  8621. (cookieBox): Made ShardHandle.
  8622. * src/RequestGroup.h, src/RequestGroup.cc
  8623. (createNextCommandWithAdj): New function.
  8624. * src/FileAllocationCommand.cc
  8625. (executeInternal): Use createNextCommandWithAdj().
  8626. * src/CheckIntegrityCommand.cc
  8627. (executeInternal): Use createNextCommandWithAdj().
  8628. Added --load-cookies command-option.
  8629. * src/OptionHandlerFactory.cc
  8630. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8631. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8632. Now aria2 can handle cookie's expiration date.
  8633. * src/Cookie.h (expires): Changed its type to time_t.
  8634. * src/main.cc: Added --load-cookies command-line option.
  8635. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8636. * src/Util.h, src/Util.cc (httpGMT): New function.
  8637. * src/Request.cc (Request): Initialize cookieBox using
  8638. CookieBoxFactory.
  8639. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8640. * src/CookieParser.h, src/CookieParser.cc: New class.
  8641. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8642. * src/HttpResponseCommand.cc
  8643. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8644. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8645. download.
  8646. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Added -j command-line option.
  8648. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8649. * src/main.cc
  8650. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8651. Rewritten using stringstream.
  8652. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8653. Rewritten using stringstream.
  8654. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Make download size shown in MB, KB.
  8656. * src/ConsoleDownloadEngine.h (sendStatistics)
  8657. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8658. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8659. Accept incoming connections if download rate is low.
  8660. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8661. (_lowestSpeedLimit): New variable.
  8662. (setLowestSpeedLimit): New function.
  8663. (execute): Accept incoming connections if download rate is low.
  8664. MAX_PEERS is ignored in this case.
  8665. Disable PREF_OUT in multiple concurrent download:
  8666. * src/RequestGroup.h, src/RequestGroup.cc
  8667. (setUserDefinedFilename): New function.
  8668. * src/DownloadEngineFactory.cc
  8669. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8670. concurrent download.
  8671. * src/DefaultSegmentManFactory.cc
  8672. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8673. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8675. Added its overloaded method.
  8676. * src/RequestGroup.h
  8677. (_numConcurrentCommand): New variable.
  8678. (setNumConcurrentCommand): New function.
  8679. * src/RequestGroup.cc
  8680. Abort download if same file is being downloaded concurrently.
  8681. * src/RequestGroup.h, src/RequestGroupMan.cc
  8682. (isSameFileBeingDownloaded): New function.
  8683. * src/HttpResponseCommand.cc (executeInternal)
  8684. * src/FtpNegotiateCommand.cc (recvSize)
  8685. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8686. * main.cc: Added help message for -i option.
  8687. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8689. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8690. * src/MetalinkEntry.h
  8691. (checksum): Changed to ChecksumHandle
  8692. * src/MetalinkRequestInfo.cc
  8693. (checksum): Changed to ChecksumHandle
  8694. * src/File.cc
  8695. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8696. * src/common.h
  8697. (DIR_OPEN_MODE): New definition
  8698. * src/RequestGroup.cc
  8699. (prepareForNextAction): Added an argument.
  8700. * src/message.h
  8701. (MSG_GOOD_CHECKSUM): New definition
  8702. (MSG_BAD_CHECKSUM): New definition
  8703. * src/HttpResponseCommand.cc
  8704. (handleDefaultEncoding): Continue download sequence in new
  8705. non-segmented download.
  8706. * src/FileAllocationEntry.h
  8707. (_nextDownloadCommand): New variable.
  8708. * src/DownloadCommand.cc
  8709. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8710. available.
  8711. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8712. * src/IteratableChecksumValidator.h,
  8713. src/IteratableChecksumValidator.cc: New class.
  8714. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8715. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8716. Change file mode to 666:
  8717. * src/common.h (OPEN_MODE): New definition.
  8718. * src/File.cc
  8719. * src/Util.cc
  8720. * src/Directry.cc
  8721. * src/AbstractDiskWriter.cc
  8722. Change the level of log message "download aborted" to debug:
  8723. * src/PeerAbstractCommand.cc (execute)
  8724. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8725. * src/TrackerWatcherCommand.cc
  8726. (createCommand): Sleep some seconds after request failed.
  8727. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8728. then abort tracker request.
  8729. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8730. * Added the simultaneous download feature.
  8731. * src/main.cc: Print "Exception caught: " when exception is caught.
  8732. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8733. * src/ActivePeerConnectionCommand.cc
  8734. * src/PeerInteractionCommand.cc
  8735. * src/BtRuntime.h
  8736. (cuidCounter): Removed.
  8737. (getNewCuid): Removed.
  8738. * src/DownloadEngineFactory.cc
  8739. * src/PeerListenCommand.cc
  8740. * src/TrackerUpdateCommand.cc
  8741. * src/PeerInitiateConnectionCommand.cc
  8742. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8743. * src/PeerAbstractCommand.cc
  8744. (onAbort): Call PeerStorage::returnPeer()
  8745. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8746. (incomingPeers): New variable.
  8747. (addIncomingPeer): New function.
  8748. (returnPeer): New function.
  8749. (onErasingPeer): New function.
  8750. (addPeer): push_back -> push_front
  8751. (getActivePeers): Rewritten.
  8752. (calculateStat): Rewritten.
  8753. * src/PeerStorage.h
  8754. (TransferStat::copy): New function.
  8755. (TransferStat::TransferStat): New function.
  8756. (TransferStat::operator=): New function.
  8757. (addIncomingPeer): New function.
  8758. (returnPeer): New function.
  8759. * src/PeerListenCommand.cc
  8760. (execute): Use PeerStorage::addIncomingPeer() instead of
  8761. Peer::addPeer().
  8762. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8763. Connect to a peer actively when download speed is lower than specified
  8764. speed in torrent download:
  8765. * src/ActivePeerConnectionCommand.h: New class.
  8766. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8768. * src/main.cc: Fixed the bug that prevents download if .netrc
  8769. doesn't exist.
  8770. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. To cache resolved hostname:
  8772. * src/AbstractCommand.h, src/AbstractCommand.cc
  8773. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8774. Added dns cache.
  8775. * src/FtpInitiateConnectionCommand.cc
  8776. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8777. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8778. NameResolver working without ares.
  8779. * src/TorrentRequestInfo.cc
  8780. (execute): Don't cache dns in torrent download.
  8781. * src/HttpInitiateConnectionCommand.cc
  8782. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8783. * src/DNSCache.h: New class.
  8784. * src/UrlRequestInfo.cc
  8785. (execute): Use dns cache.
  8786. In http request, suppress port number in http request header if port
  8787. is 80 or 443:
  8788. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8789. request header if port is 80 or 443.
  8790. (createProxyRequest): Allways send port number.
  8791. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. To add the command-line option which disables netrc support:
  8793. * src/OptionHandlerFactory.cc
  8794. (createOptionHandlers): Added PREF_NO_NETRC.
  8795. * src/main.cc: Added -n option.
  8796. * src/prefs.h (PREF_NO_NETRC): New definition.
  8797. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8798. V_TRUE.
  8799. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8800. is V_FALSE. This may get configurable in the future release.
  8801. To clear peer's error status by time basis:
  8802. * src/PeerAbstractCommand.cc
  8803. (onAbort): Call Peer::startBadCondition().
  8804. * src/Peer.h, src/Peer.cc
  8805. (error): Removed.
  8806. (_badConditionStartTime): New variable.
  8807. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8808. (startBadCondition): New function.
  8809. (isGood): New function.
  8810. * src/DefaultPeerStorage.cc
  8811. (addPeer): Use Peer::isGood().
  8812. (FindFinePeer): Use Peer::isGood().
  8813. Always include port number in http request header:
  8814. * src/HttpRequest.cc (getHostText): Always include port number in
  8815. http request header.
  8816. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. To the ability to read options from a config file:
  8818. * src/main.cc: Command-line parameter validation is delegated to
  8819. OptionHandler class.
  8820. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8821. * src/Option.h, src/Option.cc (clear): New function.
  8822. * src/OptionParser.h, src/OptionParser.cc: New class.
  8823. * src/OptionHandler.h: New class.
  8824. * src/NameMatchOptionHandler.h: New class.
  8825. * src/OptionHandlerImpl.h: New classes.
  8826. * src/prefs.h: '_' -> '-'
  8827. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8828. (FTP_PASV): New definition.
  8829. * src/Util.h, src/Util.cc (getRealSize): New function.
  8830. To disable netrc support if .netrc file does not have correct
  8831. permissions:
  8832. * src/File.h, src/File.cc (mode): New function.
  8833. To prevent confidential information to be logged:
  8834. * src/HttpConnection.h, src/HttpConnection.cc
  8835. (eraseConfidentialInfo): New function.
  8836. (sendRequest): Call eraseConfidentialInfo().
  8837. (sendProxyRequest): Call eraseConfidentialInfo().
  8838. * src/main.cc: Validate permissions of .netrc file.
  8839. To add --user-agent command-line option:
  8840. * src/main.cc: Added new command line option: --user-agent
  8841. * src/prefs.h (PREF_USER_AGENT): New definition.
  8842. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8843. parameter to HttpRequest object.
  8844. * src/AbstractProxyRequestCommand.cc
  8845. (executeInternal): Set user-agent option parameter to HttpRequest
  8846. object.
  8847. Marged the patches from Dan Fandrich.
  8848. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8849. Use filename and size from Metalink file instead of sending HEAD
  8850. request:
  8851. * src/UrlRequestInfo.h
  8852. (_filename): New variable.
  8853. (_totalLength): New variable.
  8854. (setTotalLength): New variable.
  8855. (setFilename): New variable.
  8856. * src/MetalinkRequestInfo.cc
  8857. (execute): Set filename and size to UrlRequestInfo
  8858. * src/UrlRequestInfo.cc
  8859. (execute): Use filename and size from Metalink instead of seding
  8860. HEAD request to servers.
  8861. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. To add the ability to resume downloading a partially downloaded file
  8863. which is downloaded from the beginning:
  8864. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8865. takes this role.
  8866. * src/main.cc: Added -c option.
  8867. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8868. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8869. * src/prefs.h (PREF_CONTINUE): New definition.
  8870. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8871. * src/DefaultDiskWriter.cc
  8872. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8873. * src/AbstractDiskWriter.h
  8874. (glowFileAllocator): New variable.
  8875. * src/AbstractDiskWriter.cc
  8876. (openExistingFile): Now preallocate file space from the end of the
  8877. existing file if totalLength argument is specified and grater than 0.
  8878. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8879. to download exists in local, continue the download of the file.
  8880. --allow-overwrite=true is assumed in this context.
  8881. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8882. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8883. Throw exception if --check-integrity=true is specified but chunk
  8884. checksums are not provided:
  8885. * src/UrlRequestInfo.cc
  8886. Do not print URLs to stdout:
  8887. * src/UrlRequestInfo.cc
  8888. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. * src/Request.h: Use AuthResolver to get authentication information.
  8890. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8891. set to RequestFactory object.
  8892. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8893. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8894. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8895. create Request object.
  8896. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8897. To integrate Netrc into exsiting classes:
  8898. * src/Request.h
  8899. (_userDefinedAuthConfig): New variable.
  8900. (findNetrcAuthenticator): New function.
  8901. (segment): Removed.
  8902. (setUserDefinedAuthConfig): New function.
  8903. (resolveHttpAuthConfigItem): New function.
  8904. (resolveFtpAuthConfigItem): New function.
  8905. (resolveHttpProxyAuthConfigItem): New function.
  8906. * src/HttpRequest.h
  8907. (authConfig): Removed.
  8908. (proxyAuthConfig): Removed.
  8909. (setAuthConfig): Removed.
  8910. (setProxyAuthConfig): Removed.
  8911. * src/UrlRequest.h
  8912. (getHeadResult): Added a parameter: authConfigHandle
  8913. * src/common.h
  8914. (SingletonHolder.h): New include.
  8915. * src/main.cc
  8916. (Netrc.h): New include.
  8917. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8918. Added initial value of PREF_NETRC_PATH.
  8919. Added the initialization of netrc.
  8920. * src/AuthConfig.h: New class.
  8921. * src/prefs.h
  8922. (PREF_NETRC_PATH): New definition.
  8923. * src/HttpAuthConfig.h: Removed.
  8924. * src/Netrc.cc
  8925. (getRequiredNextToken): New function.
  8926. (skipMacdef): New function.
  8927. (parse): Rewritten.
  8928. * src/Netrc.h
  8929. (getRequiredNextToken): New function.
  8930. (skipMacdef): New function.
  8931. * src/Util.h, src/Util.cc
  8932. (getHomeDir): New function.
  8933. * src/TrackerWatcherComand.cc
  8934. (createRequestCommand): Use AuthConfig.
  8935. * src/FtpConnection.cc
  8936. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8937. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8938. * src/Request.cc
  8939. (findNetrcAuthenticator): New function.
  8940. (resolveHttpAuthConfigItem): New function.
  8941. (resolveFtpAuthConfigItem): New function.
  8942. (resolveHttpProxyAuthConfigItem): New function.
  8943. * src/UrlRequestInfo.cc: Use AuthConfig.
  8944. * src/HttpRequest.cc
  8945. (createRequest): Use authConfig.
  8946. (getProxyAuthString): Use authConfig.
  8947. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8948. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8949. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8950. To reduce overhead to find commands whose socket is either
  8951. readable or writable in the download engine loop:
  8952. * src/Command.h, src/Command.cc
  8953. (STATUS): New enum.
  8954. (status): New variable.
  8955. (statusMatch): New function.
  8956. (setStatusActive): New function.
  8957. (setStatusInactive): New function.
  8958. * src/DownloadEngine.h, src/DownloadEngine.cc
  8959. (executeCommand): New function.
  8960. (run): Simplified.
  8961. (waitData): Call Command::setStatusActive() when command's socket is
  8962. readable or writable.
  8963. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. To handle Segment as SegmentHandle:
  8965. * src/AbstractCommand.cc (execute): Rewritten.
  8966. * src/SegmentMan.h: Segment -> SegmentHandle
  8967. Introducded HttpResponse class, HttpRequest class to improve code
  8968. extensiveness and make it clear:
  8969. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8970. HttpResponse class.
  8971. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8972. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8973. * src/HttpConnection.cc: Contruction of http request were moved to
  8974. HttpRequest class.
  8975. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8976. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8977. * src/HttpAuthConfig.h: New class.
  8978. * src/Range.h: New class.
  8979. To make FtpTunnel{Request, Response}Command and
  8980. HttpProxy{Request, Response}Command derived from
  8981. AbstractProxy{Request, Response}Command:
  8982. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8983. Derived from AbstractProxyRequestCommand class.
  8984. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8985. Derived from AbstractProxyResponseCommand class.
  8986. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8987. Derived from AbstractProxyRequestCommand class.
  8988. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8989. Derived from AbstractProxyResponseCommand class.
  8990. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8991. : New class.
  8992. * src/AbstractProxyResponseCommand.h,
  8993. src/AbstractProxyResponseCommand.cc: New class.
  8994. To add netrc support:
  8995. * src/Netrc.h, src/Netrc.cc: New class.
  8996. * src/Util.h, src/Util.cc (split): New function.
  8997. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8998. "Content-Range" header instead of "Range" header.
  8999. * src/HttpHeader.h
  9000. (getStatus): Removed.
  9001. (setStatus): Removed.
  9002. * src/Segment.h
  9003. (getPositionToWrite): New function.
  9004. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9005. * src/HttpHeader.h
  9006. (Range.h): New include.
  9007. (status): New variable.
  9008. (HttpHeader): Initialized status with 0.
  9009. (getStatus): New function.
  9010. (setStatus): New function.
  9011. (getRange): New function.
  9012. (HttpHeaderHandle): New function.
  9013. * src/HttpHeader.cc
  9014. (getRange): New function.
  9015. * src/Request.h
  9016. (RequestWeakHandle): New definition.
  9017. * src/HttpConnection.h
  9018. (HttpConnectionHandle): New type definition.
  9019. * src/HttpConnection.cc
  9020. (receiveResponse): Set HTTP status to headers.
  9021. * src/main.cc
  9022. (showUsage): Fixed typo.
  9023. * src/Segment.h
  9024. (SegmentHandle): New type definition.
  9025. * src/BitfieldMan.h
  9026. (getMissingUnusedLength): New function.
  9027. * src/BitfieldMan.cc
  9028. (getMissingUnusedLength): New function.
  9029. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9030. To fix static initialization order problem:
  9031. * src/BitfieldManFactory.h
  9032. (defaultRandomizer): Removed.
  9033. (factory): New variable.
  9034. (getNewFactory): Removed.
  9035. (getFactoryInstance): New function.
  9036. (setDefaultRandomizer): Rewritten.
  9037. (getDefaultRandomizer): Rewritten.
  9038. * src/BitfieldManFactory.cc
  9039. (defaultRandomizer): Removed.
  9040. (factory): Initialized to 0.
  9041. (BitfieldManFactory): Initialized randomizer to 0.
  9042. * src/DefaultPieceStorage.cc
  9043. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9044. * src/Peer.cc
  9045. (Peer): getNewFactory() -> getFactoryInstance()
  9046. * src/SegmentMan.cc
  9047. (initBitfield): getNewFactory() -> getFactoryInstance()
  9048. * src/Piece.cc
  9049. (Piece): getNewFactory() -> getFactoryInstance()
  9050. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. To fix the bug that causes crash on Max OS X:
  9052. * src/SimpleRandomizer.h
  9053. (getInstance): Create new instance if the static variable is null.
  9054. * src/SimpleRandomizer.cc
  9055. (randomizer): Initialized to 0.
  9056. * src/BitfieldManFactory.h
  9057. (getNewFactory): Removed the call to setRandomizer().
  9058. To fix the miscalculation of the range of checksum:
  9059. * src/BitfieldMan.h
  9060. (isBitSetOffsetRange): New function.
  9061. * src/BitfieldMan.cc
  9062. (isBitSetOffsetRange): New function.
  9063. * src/SegmentMan.cc
  9064. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9065. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9066. * Release 0.10.1
  9067. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9068. To lower CPU usage in BitTorrent download when --max-upload-limit
  9069. command-line option specified:
  9070. * src/DefaultBtMessageDispatcher.cc
  9071. (sendMessages): Calculate uploading speed only when current message
  9072. is uploading data and is not sent yet.
  9073. * src/DefaultPeerStorage.h
  9074. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9075. * src/HttpResponseCommand.cc
  9076. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9077. This fixes compile error in Soralis 10.
  9078. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. To fix segfault in Metalink download:
  9080. * src/UrlRequestInfo.h
  9081. (filename): Removed.
  9082. (totalLength): Removed.
  9083. (setTotalLength): Removed.
  9084. (setFilename): Removed.
  9085. * src/MetalinkRequestInfo.cc
  9086. (execute): Do not set filename and totalLength to reqInfo.
  9087. Set chunk checksum to reqInfo if it is not null.
  9088. * src/HttpResponseCommand.cc
  9089. (executeInternal): Fixed filename in log.
  9090. (handleDefaultEncoding): Removed the call to initBitfield() and
  9091. markAllPiecesDone().
  9092. (handleOtherEncoding): Added HEAD method handling.
  9093. * src/FtpNegotiateCommand.cc
  9094. (executeInternal): Added SEQ_HEAD_OK handling.
  9095. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9096. return false.
  9097. * src/FtpNegotiateCommand.h
  9098. (SEQ_HEAD_OK): New definition.
  9099. * src/SegmentMan.cc
  9100. (initBitfield): Delete bitfield.
  9101. (isChunkChecksumValidationReady): Fixed the condition.
  9102. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9103. works fine.
  9104. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9105. * src/Xml2MetalinkProcessor.h
  9106. (xpathExists): New function.
  9107. * src/Xml2MetalinkProcessor.cc
  9108. (xpathExists): New function.
  9109. Not to send HEAD request if filename and size are available in Metalink
  9110. file:
  9111. * src/UrlRequestInfo.h
  9112. (filename): New variable.
  9113. (totalLength): New variable.
  9114. (setTotalLength): New function.
  9115. (setFilename): New function.
  9116. * src/MetalinkRequestInfo.cc
  9117. (execute): Set filename and size to UrlRequestInfo.
  9118. * src/MetalinkEntry.cc
  9119. (MetalinkEntry): Initialize size with 0.
  9120. * src/UrlRequestInfo.cc
  9121. (execute): Set filename and size to SegmentMan.
  9122. Not to download rest of the files after selected files are downloaded
  9123. in BitTorrent:
  9124. * src/PieceStorage.h
  9125. (allDownloadFinished): New function.
  9126. * src/DefaultBtAnnounce.cc
  9127. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9128. downloadFinished.
  9129. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9130. * src/DefaultPieceStorage.cc
  9131. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9132. Commented out the call to finishSelectiveDownloadingMode().
  9133. (downloadFinished): Call isFilteredAllBitSet() instead of
  9134. isAllBitSet().
  9135. (allDownloadFinished): New function.
  9136. * src/DefaultBtInteractive.cc
  9137. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9138. downloadFinished().
  9139. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9140. * src/TorrentDownloadEngine.cc
  9141. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9142. * src/BitfieldMan.h
  9143. (isFilteredAllBitSet): New function.
  9144. * src/ShareRatioSeedCriteria.h
  9145. (PieceStorage.h): New include.
  9146. (pieceStorage): New variable.
  9147. (evaluate):
  9148. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9149. * src/BitfieldMan.cc
  9150. (isFilteredAllBitSet): New function.
  9151. (isAllBitSet): Filter is not took into account.
  9152. Rename --force-truncate as --allow-overwrite:
  9153. * src/TorrentRequestInfo.cc
  9154. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9155. * src/main.cc
  9156. (showUsage): --force-truncate -> --allow-overwrite
  9157. * src/message.h
  9158. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9159. * src/prefs.h
  9160. (PREF_FORCE_TRUNCATE): Removed.
  9161. (PREF_ALLOW_OVERWRITE): New definition.
  9162. * src/SegmentMan.cc
  9163. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9164. * src/MetalinkRequestInfo.cc
  9165. (execute): Queueing message are now logged in info level.
  9166. * src/common.h
  9167. (LONG_LONG_MAX): Removed.
  9168. (LONG_LONG_MIN): Removed.
  9169. * src/HttpResponseCommand.cc
  9170. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9171. * src/FtpNegotiateCommand.cc
  9172. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9173. * src/main.cc
  9174. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9175. command-line option.
  9176. (main): Added --check-integriy and --realtime-chunk-checksum
  9177. command-line option.
  9178. --force-truncate -> --allow-overwrite
  9179. Set initial value of --check-integrity option to false.
  9180. Don't show usage when error occurs while persing command-line options.
  9181. Removed deprecated --upload-limit option.
  9182. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9183. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9184. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9185. * src/BtAllowedFastMessage.cc:
  9186. * src/BtBitfieldMessage.cc
  9187. * src/BtCancelMessage.cc
  9188. * src/BtChokeMessage.cc
  9189. * src/BtHaveAllMessage.cc
  9190. * src/BtHaveMessage.cc
  9191. * src/BtHaveNoneMessage.cc
  9192. * src/BtInterestedMessage.cc
  9193. * src/BtNotInterestedMessage.cc
  9194. * src/BtPieceMessage.cc
  9195. * src/BtPortMessage.cc
  9196. * src/BtRejectMessage.cc
  9197. * src/BtRequestMessage.cc
  9198. * src/BtSuggestPieceMessage.cc
  9199. * src/BtUnchokeMessage.cc
  9200. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9201. files are affected.
  9202. * src/ChunkChecksumValidator.cc
  9203. * src/SegmentMan.cc
  9204. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. To add chunk checksum validation:
  9206. * src/MetalinkEntry.h
  9207. (MetalinkChunkChecksum.h): New include.
  9208. (chunkChecksum): New variable.
  9209. * src/Request.h
  9210. (method): New variable.
  9211. (setMethod): New function.
  9212. (getMethod): New function.
  9213. (METHOD_GET): New static constant.
  9214. (METHOD_HEAD): New static constant.
  9215. * src/Xml2MetalinkProcessor.h
  9216. (getPieceHash): New function.
  9217. * src/PieceStorage.h
  9218. (markAllPiecesDone): New function.
  9219. (checkIntegrity): New function.
  9220. * src/FileAllocator.h
  9221. (NullFileAllocationMonitor.h): New include.
  9222. (FileAllocator): Initialize fileAllocationMonitor with new
  9223. NullFileAllocationMonitor().
  9224. * src/MultiDiskAdaptor.h
  9225. (messageDigest.h): Remove include.
  9226. (ctx): Removed.
  9227. (hashUpdate): Added ctx.
  9228. (MultiDiskAdaptor): Removed ctx.
  9229. (sha1Sum): Renamed as messageDigest.
  9230. (messageDigest): New function.
  9231. * src/UrlRequestInfo.h
  9232. (HeadResult): New class.
  9233. (digestAlgo): New variable.
  9234. (chunkChecksumLength): New variable.
  9235. (chunkChecksums): New variable.
  9236. (getHeadResult): New function.
  9237. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9238. (setDigestAlgo): New function.
  9239. (setChunkChecksumLength): New function.
  9240. (setChunkChecksums): New function.
  9241. * src/DefaultPieceStorage.cc
  9242. (DiskAdaptorWriter.h): New include.
  9243. (ChunkChecksumValidator.h): New include.
  9244. (markAllPiecesDone): New function.
  9245. (checkIntegrity): New function.
  9246. * src/DefaultBtContext.h
  9247. (getPieceHashes): New function.
  9248. * src/TorrentRequestInfo.cc
  9249. (execute): Try to validate chunk checksum if file already exists and
  9250. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9251. * src/messageDigest.h
  9252. (~MessageDigestContext): Added digestFree().
  9253. * src/MetalinkRequestInfo.cc
  9254. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9255. * src/DiskAdaptor.h
  9256. (messageDigest.h): New include.
  9257. (sha1Sum): Renamed as messageDigest.
  9258. (messageDigest): New function.
  9259. * src/DownloadCommand.h
  9260. (PeerStat.h): New include.
  9261. (maxDownloadSpeedLimit): New variable.
  9262. (startupIdleTime): New variable.
  9263. (lowestDownloadSpeedLimit): New variable.
  9264. (peerStat): New variable.
  9265. (setMaxDownloadSpeedLimit): New function.
  9266. (setStartupIdleTime): New function.
  9267. (setLowestDownloadSPeedLimit): New function.
  9268. * src/BtContext.h
  9269. (getPieceHashes): New function.
  9270. * src/main.cc
  9271. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9272. option to true for testing purpose.
  9273. * src/BtPieceMessage.cc
  9274. (checkPieceHash): Use messageDigest
  9275. * src/DownloadEngine.cc
  9276. (SetDescriptor): Removed.
  9277. (AccumulateActiveCommand): Removed.
  9278. (waitData): Rewritten.
  9279. (updateFdSet): Rewritten.
  9280. * src/MultiDiskAdaptor.cc
  9281. (hashUpdate): Added ctx.
  9282. (sha1Sum): Renamed as messageDigest.
  9283. (messageDigest): New function.
  9284. * src/BitfieldMan.h
  9285. (isBitRangeSet): New function.
  9286. (unsetBitRange): New function.
  9287. * src/ByteArrayDiskWriter.h
  9288. (sha1Sum): Renamed as messageDigest.
  9289. (messageDigest): New function.
  9290. * src/ConsoleDownloadEngine.cc
  9291. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9292. * src/DiskWriter.h
  9293. (messageDigest.h): New include.
  9294. (sha1Sum): Renamed as messageDigest.
  9295. (messageDigest): New function.
  9296. * src/ChunkChecksumValidator.h: New class.
  9297. * src/DiskAdaptorWriter.h: New class.
  9298. * src/prefs.h
  9299. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9300. (PREF_CHECK_INTEGRITY): New definition.
  9301. * src/HttpResponseCommand.cc
  9302. (handleDefaultEncoding): Added method "HEAD" handling.
  9303. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9304. (handleOtherEncoding):
  9305. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9306. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9307. startupIdleTime, lowestDownloadSpeedLimit to command.
  9308. * src/SegmentMan.h
  9309. (getSegmentEntryByIndex): New function.
  9310. (getSegmentEntryByCuid): New function.
  9311. (getSegmentEntryIteratorByCuid): New function.
  9312. (diskWriter): DiskWriter -> DiskWriterHandle
  9313. (pieceHashes): New variable.
  9314. (chunkHashLength): New variable.
  9315. (digestAlgo): New variable.
  9316. (FindPeerStat): Removed.
  9317. (getPeerStat): Rewritten.
  9318. (markAllPiecesDone): New function.
  9319. (checkIntegrity): New function.
  9320. (tryChunkChecksumValidation): New function.
  9321. (isChunkChecksumValidationReady): New function.
  9322. * src/BitfieldMan.cc
  9323. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9324. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9325. blocks to 0.
  9326. (isBitRangeSet): New function.
  9327. (unsetBitRange): New function.
  9328. * src/FtpNegotiateCommand.cc
  9329. (executeInternal): Set maxDownloadSpeedLimit,
  9330. startupIdleTime, lowestDownloadSpeedLimit to command.
  9331. (recvSize): Added method "HEAD" handling.
  9332. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9333. * src/AbstractSingleDiskAdaptor.cc
  9334. (sha1Sum): Renamed as messageDigest.
  9335. (messageDigest): New function.
  9336. * src/AbstractSingleDiskAdaptor.h
  9337. (sha1Sum): Renamed as messageDigest.
  9338. (messageDigest): New function.
  9339. * src/Util.h
  9340. (indexRange): New function.
  9341. * src/MetalinkEntry.cc
  9342. (MetalinkEntry): Initialized chunkChecksum to 0.
  9343. * src/ShaVisitor.cc
  9344. (~ShaVisitor): Removed the call to ctx.digestFree().
  9345. * src/SegmentMan.cc
  9346. (ChunkChecksumValidator.h): New include.
  9347. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9348. to DIGEST_ALGO_SHA1.
  9349. (~SegmentMan): Removed diskWriter.
  9350. (FindSegmentEntryByIndex): Removed.
  9351. (FindSegmentEntryByCuid): Removed.
  9352. (checkoutSegment): Rewritten.
  9353. (findSlowerSegmentEntry): Rewritten.
  9354. (getSegment): Rewritten.
  9355. (updateSegment): Rewritten.
  9356. (completeSegment): Rewritten.
  9357. (markAllPiecesDone): New function.
  9358. (checkIntegrity): New function.
  9359. (isChunkChecksumValidationReady): New function.
  9360. (tryChunkChecksumValidation): New function.
  9361. * src/Xml2MetalinkProcessor.cc
  9362. (getEntry): Get size and set it to entry.
  9363. Get chunk checksum and set it to entry.
  9364. (getPieceHash): New function.
  9365. * src/Util.cc
  9366. (sha1Sum): Removed ctx.digestFree()
  9367. (fileChecksum): Removed ctx.digestFree()
  9368. (indexRange): New function.
  9369. * src/Request.cc
  9370. (METHOD_GET): New variable.
  9371. (METHOD_HEAD): New variable.
  9372. (Request): Added method.
  9373. * src/UrlRequestInfo.cc
  9374. (FatalException.h): New include.
  9375. (message.h): New include.
  9376. (operator<<): Added operator<< for class HeadResult.
  9377. (getHeadResult): New function.
  9378. (execute): Get filename and size in separate download engine.
  9379. * src/ChunkChecksumValidator.cc: New class.
  9380. * src/DownloadCommand.cc:
  9381. (DownloadCommand): Added peerStat.
  9382. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9383. the value from Option.
  9384. The buffer size is now 16KB.
  9385. Use peerStat member instead of getting it from SegmentMan.
  9386. Use startupIdleTime member instead of gettingit from Option.
  9387. Added chunk checksum validation.
  9388. * src/AbstractDiskWriter.cc
  9389. (AbstractDiskWriter): Removed ctx.
  9390. (~AbstractDiskWriter): Removed ctx.digestFree()
  9391. (writeDataInternal): Returns the return value of write.
  9392. (readDataInternal): Returns the return value of read.
  9393. (sha1Sum): Renamed as messageDigest
  9394. (messageDigest): New function.
  9395. * src/AbstractDiwkWriter.h
  9396. (messageDigest.h): Removed include.
  9397. (ctx): Removed.
  9398. (sha1Sum): Renamed as messageDigest
  9399. (messageDigest): New function.
  9400. * src/DefaultPieceStorage.h
  9401. (markAllPiecesDone): New function.
  9402. (checkIntegrity): New function.
  9403. * src/NullFileAllocationMonitor.h: New class.
  9404. * src/MetalinkChunkChecksum.h: New class.
  9405. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9406. To decrease CPU usage in bittorrent download, calculation results in
  9407. BitfieldMan were cached and realtime fetching PeerObject was removed
  9408. with WeakHandle introduced. Option values are set to the objects
  9409. by setter before download begins.
  9410. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9411. * src/DefaultBtRequestFactory.h
  9412. (dispatcher): BtMessageDispatcherHandle ->
  9413. BtMessageDispatcherWeakHandle.
  9414. (messageFactory): New variable.
  9415. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9416. BtMessageDispatcherWeakHandle.
  9417. (setBtMessageFactory): New function.
  9418. * src/DefaultBtMessageDispatcher.cc:
  9419. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9420. from Option.
  9421. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9422. feating the value from Option.
  9423. Use messageFactory member.
  9424. * src/PeerInteractionCommand.cc
  9425. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9426. Add reverse dependencies to factory object.
  9427. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9428. dispatcher.
  9429. Set messageFactory to receiver.
  9430. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9431. btInteractive.
  9432. Set receiver to peerObject.
  9433. Set maxDownloadSpeedLimit to this.
  9434. (executeInternal): Use maxDownloadSpeedLimit member.
  9435. * src/BtChokeMessage.cc
  9436. (doReceivedAction): Use dispatcher, requestFactory member.
  9437. (onSendComplete): Use dispatcher member.
  9438. * src/PeerInteractionCommand.h
  9439. (maxDownloadSpeedLimit): New variable.
  9440. * src/DefaultBtMessageReceiver.h
  9441. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9442. (dispatcher):
  9443. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9444. (messageFactory): New variable.
  9445. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9446. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9447. (setDispatcher):
  9448. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9449. (setBtMessageFactory): New function.
  9450. * src/DefaultBtInteractive.cc
  9451. (initiateHandshake): Use messageFactory member.
  9452. (addBitfieldMessageToQueue): Use messageFactory member.
  9453. (addAllowedFastMessageToQueue): Use messageFactory member.
  9454. (decideChoking): Use messageFactory member.
  9455. (checkHave): Use messageFactory member.
  9456. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9457. (receiveMessages): Use maxDownloadSpeedLimit member.
  9458. (decideInterest): Use messageFactory member.
  9459. * src/BtRequestMessage.cc
  9460. (doReceivedAction): Use messageFactory, dispatcher member.
  9461. (onQueued): Use dispatcher member.
  9462. * src/BtPieceMessage.cc
  9463. (doReceivedAction): Use dispatcher member.
  9464. (send): Use peerConnection member.
  9465. (onWrongPiece): Use requestFactory member.
  9466. (handleChokingEvent): Use messageFactory, dispatcher member.
  9467. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9468. * src/BtMessageDispatcher.h
  9469. (BtMessageDispatcherWeakHandle): New type definition.
  9470. * src/SimpleBtMessage.cc
  9471. (send): Use peerConnection member.
  9472. * src/BtRejectMessage.cc
  9473. (doReceivedAction): Use dispatcher member.
  9474. * src/DefaultBtMessageDispatcher.h
  9475. (Option.h): Removed include.
  9476. (messageFactory): New variable.
  9477. (option): Removed.
  9478. (maxUploadSpeedLimit): New variable.
  9479. (requestTimeout): New variable.
  9480. (DefaultBtMessageDispatcher): Removed option.
  9481. Added maxUploadSpeedLimit, requestTimeout.
  9482. (setOption): Removed.
  9483. (getOption): Removed.
  9484. (setMaxUploadSpeedLimit): New function.
  9485. (setRequestTimeout): New function.
  9486. (setBtMessageFactory): New function.
  9487. * src/DefaultBtInteractive.h
  9488. (btMessageReceiver):
  9489. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9490. (dispatcher):
  9491. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9492. (btRequestFactory):
  9493. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9494. (peerConnection):
  9495. PeerConnectionHandle -> PeerConnectionWeakHandle
  9496. (messageFactory): New variable.
  9497. (option): Removed.
  9498. (keepAliveInterval): New variable.
  9499. (maxDownloadSpeedLimit): New variable.
  9500. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9501. (setBtMessageReceiver):
  9502. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9503. (setDispatcher):
  9504. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9505. (setBtRequestFactory):
  9506. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9507. (setPeerConnection):
  9508. PeerConnectionHandle -> PeerConnectionWeakHandle
  9509. (setOption): Removed.
  9510. (setKeepAliveInterval): New function.
  9511. (setMaxDownloadSpeedLimit): New function.
  9512. (setBtMessageFactory): New function.
  9513. * src/BitfieldMan.h
  9514. (cachedNumMissingBlock): New variable.
  9515. (cachedNumFilteredBlock): New variable.
  9516. (cachedCompletedLength): New variable.
  9517. (cachedFilteredComletedLength): New variable.
  9518. (cachedFilteredTotalLength): New variable.
  9519. (countMissingBlockNow): New function.
  9520. (countFilteredBlockNow): New function.
  9521. (getFilteredTotalLengthNow): New function.
  9522. (getCompletedLengthNow): New function.
  9523. (getFilteredCompletedLengthNow): New function.
  9524. (updateCache): New function.
  9525. * src/AbstractBtMessage.h
  9526. (BtMessageDispatcher.h): New include.
  9527. (PeerConnection.h): New include.
  9528. (BtRequestFactory.h): New include
  9529. (BtMessageFactory.h): New include.
  9530. (dispatcher): New variable.
  9531. (messageFactory): New variable.
  9532. (peerConnection: New variable.
  9533. (setBtMessageDispatcher): New function.
  9534. (setPeerConnection): New function.
  9535. (setBtMessageFactory): New function.
  9536. (setBtRequestFactory): New function.
  9537. * src/DefaultBtMessageFactory.cc
  9538. (setCommonProperty): Set dispatcher, requestFactory, this,
  9539. peerConnection to msg.
  9540. * src/BtRegistry.h
  9541. (BT_MESSAGE_RECEIVER): New macro.
  9542. * src/PeerConnection.h
  9543. (PeerConnectionWeakHandle): New type definition.
  9544. * src/BtMessageFactory.h
  9545. (BtMessageFactoryWeakHandle): New type definition.
  9546. * src/BitfieldMan.cc
  9547. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9548. cachedCompletedLength, cachedFilteredComletedLength,
  9549. cachedFilteredTotalLength.
  9550. Call updateCache().
  9551. (countMissingBlock): Return cachedNumMissingBlock.
  9552. (countMissingBlockNow): New function.
  9553. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9554. (countFilteredBlockNow): New function.
  9555. (setBit): Call updateCache().
  9556. (unsetBit): Call updateCache().
  9557. (setBitfield): Call updateCache().
  9558. (clearAllBit): Call updateCache().
  9559. (setAllBit): Use setBitInternal instead of setBit.
  9560. Call updateCache().
  9561. (addFilter): Call updateCache().
  9562. (enableFilter): Call updateCache().
  9563. (disableFilter): Call updateCache().
  9564. (clearFilter): Call updateCache().
  9565. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9566. (getFilteredTotalLengthNow): New function.
  9567. (getCompletedLength): Return cachedCompletedLength.
  9568. (getCompletedLengthNow): New function.
  9569. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9570. (getFilteredCompletedLengthNow): New function.
  9571. (updateCache): New function.
  9572. * src/BtMessageReceiver.h
  9573. (BtMessageReceiverWeakHandle): New type definition.
  9574. * src/DefaultBtMessageReceiver.cc
  9575. (receiveHandshake): Use messageFactory member.
  9576. (sendHandshake): Use messageFactory member.
  9577. (receiveMessage): Use messageFactory member.
  9578. * src/DefaultBtMessageFactory.h
  9579. (dispatcher): New variable.
  9580. (requestFactory): New variable.
  9581. (peerConnection): New variablle.
  9582. (setBtMessageDispatcher): New function.
  9583. (setBtRequestFactory): New function.
  9584. (setPeerConnection): New function.
  9585. * src/SharedHandle.h
  9586. (RefCount): New class.
  9587. (WeakHandle): New class.
  9588. * src/PeerObject.h
  9589. (BtMessageReceiver.h): New include.
  9590. (PeerObject): Added btMessageReceiver.
  9591. (btMessageReceiver): New variable.
  9592. * src/Util.cc
  9593. (countBit): Simplified.
  9594. * src/BtCancelMessage.cc
  9595. (doReceivedAction): Use dispatcher member.
  9596. * src/BtRequestFactory.h
  9597. (BtRequestFactoryWeakHandle): New type definition.
  9598. * src/PeerStorage.h
  9599. (downloadSpeed): int -> uint32_t
  9600. (uploadSpeed): int -> uint32_t
  9601. (sessionDownloadLength): long long int -> uint64_t
  9602. (sessionUploadLength): long long int -> uint64_t
  9603. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9604. To add RecoverableException, FatalException:
  9605. * src/AbstractCommand.cc
  9606. (onAbort): Exception -> RecoverableException
  9607. * src/PeerAbstractCommand.h
  9608. (RecoverableException.h): New include.
  9609. (onAbort): Exception -> RecoverableException.
  9610. * src/PeerInteractionCommand.cc
  9611. (onAbort): Exception -> RecoverableException.
  9612. * src/PeerAbstractCommand.cc
  9613. (execute): Exception -> RecoverableException.
  9614. (onAbort): Exception -> RecoverableException.
  9615. * src/TorrentRequestInfo.cc
  9616. (execute): Exception -> RecoverableException.
  9617. * src/MetalinkRequestInfo.cc
  9618. (execute): Exception -> RecoverableException.
  9619. * src/MetaFileUtil.cc: RecoverableException.
  9620. * src/AbstractCommand.h
  9621. (onAbort): Exception -> RecoverableException.
  9622. * src/DlRetryEx.h: Exception -> RecoverableException.
  9623. * src/DlAbortEx.h: Exception -> RecoverableException.
  9624. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9625. * src/Util.cc: Exception -> RecoverableException.
  9626. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9627. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9628. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9629. To make ID static const int
  9630. * src/BtInterestedMessage.h
  9631. (ID_t): Removed.
  9632. (ID): New variable.
  9633. (getId): Made non-const.
  9634. * src/BtPieceMessage.h
  9635. (ID_t): Removed.
  9636. (ID): New variable.
  9637. (getId): Made non-const.
  9638. * src/BtChokeMessage.h
  9639. (ID_t): Removed.
  9640. (ID): New variable.
  9641. (getId): Made non-const.
  9642. * src/BtHaveAllMessage.h
  9643. (ID_t): Removed.
  9644. (ID): New variable.
  9645. (getId): Made non-const.
  9646. * src/BtKeepAliveMessage.h
  9647. (ID_t): Removed.
  9648. (ID): New variable.
  9649. (getId): Made non-const.
  9650. * src/BtHandshakeMessage.h
  9651. (ID): New variable.
  9652. (getId): Made non-const.
  9653. * src/BtSuggestPieceMessage.h
  9654. (ID_t): Removed.
  9655. (ID): New variable.
  9656. (getId): Made non-const.
  9657. * src/BtPortMessage.h
  9658. (ID_t): Removed.
  9659. (ID): New variable.
  9660. (getId): Made non-const.
  9661. * src/AbstractBtMessage.h
  9662. (id): Removed.
  9663. (AbstractBtMessage): Removed id.
  9664. (getId): Removed.
  9665. * src/BtHaveMessage.h
  9666. (ID_t): Removed.
  9667. (ID): New variable.
  9668. (getId): Made non-const.
  9669. * src/BtAllowedFastMessage.h
  9670. (ID_t): Removed.
  9671. (ID): New variable.
  9672. (getId): Made non-const.
  9673. * src/BtCancelMessage.h
  9674. (ID_t): Removed.
  9675. (ID): New variable.
  9676. (getId): Made non-const.
  9677. * src/BtNotInterestedMessage.h
  9678. (ID_t): Removed.
  9679. (ID): New variable.
  9680. (getId): Made non-const.
  9681. * src/BtChokeMessage.h
  9682. (ID_t): Removed.
  9683. (ID): New variable.
  9684. (getId): Made non-const.
  9685. * src/BtRejectMessage.h
  9686. (ID_t): Removed.
  9687. (ID): New variable.
  9688. (getId): Made non-const.
  9689. * src/BtBitfieldMessage.h
  9690. (ID_t): Removed.
  9691. (ID): New variable.
  9692. (getId): Made non-const.
  9693. * src/BtUnchokeMessage.h
  9694. (ID_t): Removed.
  9695. (ID): New variable.
  9696. (getId): Made non-const.
  9697. * src/BtRequestMessage.h
  9698. (ID_t): Removed.
  9699. (ID): New variable.
  9700. (getId): Made non-const.
  9701. * src/BtHaveMessage.h
  9702. (ID_t): Removed.
  9703. (ID): New variable.
  9704. (getId): Made non-const.
  9705. To add --force-truncate command-line option and a check whether
  9706. the file already exists:
  9707. * src/DirectDiskAdaptor.h
  9708. (getFilePath): Made virtual public.
  9709. * src/MultiDiskAdaptor.h
  9710. (File.h): New include.
  9711. (DiskWriterEntry::fileEntry): Made private.
  9712. (DiskWriterEntry::fileExists): New function.
  9713. (DiskWriterEntry::getFileEntry): New function.
  9714. (fileExists): New function.
  9715. (getFilePath): New function.
  9716. * src/TorrentRequestInfo.cc
  9717. (FatalException.h): New include.
  9718. (message.h): New include.
  9719. (RecoverableException.h): New include.
  9720. (execute): Added a check whether file is already exists or not.
  9721. * src/DiskAdaptor.h
  9722. (fileExists): New function.
  9723. (getFilePath): New function.
  9724. * src/main.cc
  9725. (showUsage): Added an explanation of --force-truncate command-line
  9726. option.
  9727. (main): Added --force-truncate command-line option.
  9728. * src/Exception.h
  9729. (setMsg): buf[256] -> buf[1024]
  9730. * src/CopyDiskWriter.h
  9731. (getFilePath): Made public virtual.
  9732. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9733. (fileExists): New function.
  9734. * src/DownloadEngineFactory.cc
  9735. (newTorrentConsoleEngine): Don't open file here.
  9736. * src/message.h
  9737. (EX_FILE_ALREADY_EXISTS): New definition.
  9738. * src/prefs.h
  9739. (PREF_FOECE_TRUNCATE): New definition.
  9740. * src/HttpResponseCommand.cc
  9741. (handleDefaultEncoding): Added a check whether the file already exists.
  9742. * src/SegmentMan.h
  9743. (fileExists): New function.
  9744. (shouldCancelDownloadForSafety): New function.
  9745. * src/FtpNegotiateCommand.cc
  9746. (recvSize): Added a check whether the file already exists.
  9747. * src/AbstractSingleDiskAdaptor.cc
  9748. (File.h): New include.
  9749. (fileExists): New function.
  9750. * src/AbstractSingleDiskAdaptor.h
  9751. (getFilePath): Removed.
  9752. (fileExists): New function.
  9753. * src/SegmentMan.cc
  9754. (fileExists): New function.
  9755. (shouldCancelDownloadForSafety): New function.
  9756. To fix regression bug in torrent downloading:
  9757. * src/DefaultBtRequestFactory.cc
  9758. (doChokedAction): New function.
  9759. * src/DefaultBtRequestFactory.h
  9760. (doChokedAction): New function.
  9761. * src/DefaultBtMessageDispatcher.cc
  9762. (doChokedAction): Do not delete request if its target is in allowed
  9763. fast set.
  9764. * src/DefaultBtInteractive.cc
  9765. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9766. (sendKeepAlive): Send keep alive message even if the outgoing message
  9767. queue is not empty.
  9768. (decideInterest): Simplified the code.
  9769. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9770. it is already called when BtChokeMessage is received from a peer.
  9771. * src/BtRequestFactory.h
  9772. (doChokedAction): New function.
  9773. To clean up code:
  9774. * src/PeerInteractionCommand.h
  9775. (executeInternal): Added virtual keyword explicitly.
  9776. (prepareForRetry): Added virtual keyword explicitly.
  9777. (prepareForNextPeer): Added virtual keyword explicitly.
  9778. (onAbort): Added virtual keyword explicitly.
  9779. * src/RequestSlot.cc
  9780. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9781. * src/BtPieceMessage.cc
  9782. (doReceivedAction): Added a debug log of piece's bitfield.
  9783. * src/Piece.h
  9784. (getBitfieldLength): New function.
  9785. * src/ByteArrayDiskWriter.cc
  9786. (clear): Added buf = 0 to avoid double free corruption.
  9787. * src/FileAllocator.cc
  9788. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9789. Added cp.reset().
  9790. * src/BitfieldMan.h
  9791. (operator=): Rewritten.
  9792. * src/BitfieldMan.cc
  9793. (BitfieldMan): Initialized bitfield, useBitfield.
  9794. * src/PeerConnection.cc
  9795. (receiveMessage): Added a call to socket->readable() after getting
  9796. message length to avoid possible EOF.
  9797. * src/Util.cc
  9798. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9799. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. To add an ability to pre-allocate file space:
  9801. * src/DirectDiskAdaptor.h: Rewritten.
  9802. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9803. * src/MultiDiskAdaptor.h: Rewritten.
  9804. * src/DefaultPieceStorage.cc
  9805. (MultiDiskWriter.h): Removed include.
  9806. (PreAllocationDiskWriter.h): Removed include.
  9807. (FileAllocationMonitor.h): New include.
  9808. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9809. (initStorage): Rewritten.
  9810. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9811. * src/FileAllocator.h: New class.
  9812. * src/FileAllocator.cc: New class.
  9813. * src/FileAllocationMonitor.h: New class.
  9814. * src/FileAllocationMonitor.cc: New class.
  9815. * src/ConsoleFileAllocationMonitor.h: New class.
  9816. * src/ConsoleFileAllocationMonitor.cc: New class.
  9817. * src/AbstractSingleDiskAdaptor.h: New class.
  9818. * src/AbstractSingleDiskAdaptor.cc: New class.
  9819. * src/DiskAdaptor.h
  9820. (Directory.h): Removed include.
  9821. (DiskWriter.h): Removed include.
  9822. (FileEntry.h): Removed include.
  9823. (diskWriter): Removed.
  9824. (DiskAdaptor): Removed diskWriter.
  9825. (openFile): Made pure virtual.
  9826. (closeFile): Made pure virtual.
  9827. (openExistingFile): Made pure virtual.
  9828. (initAndOpenFile): Made pure virtual.
  9829. (writeData): Made pure virtual.
  9830. (readData): Made pure virtual.
  9831. (sha1Sum): Made pure virtual.
  9832. (getStoreDir): Returns const reference of storeDir.
  9833. (DiskAdaptorHandle): New type definition.
  9834. * src/main.cc
  9835. (ConsoleFileAllocationMonitor.h): New include.
  9836. (showUsage): Added default value description of -s option.
  9837. Added the description of --file-allocation option.
  9838. (main): Set default value of --file-allocation option to 'none'.
  9839. Added --file-allocation command-line option.
  9840. Setup FileAllocationMonitorFactory.
  9841. * src/FtpInitiateConnectionCommand.cc
  9842. (executeInternal): Removed diskWriter related processing, which was
  9843. moved to FtpNegotiationCommand.cc.
  9844. * src/DirectDiskAdaptor.cc
  9845. (getFilePath): Made non-const.
  9846. * src/CopyDiskAdaptor.h
  9847. (DiskAdaptor.h): Removed include.
  9848. (DiskWriter.h): Removed include.
  9849. (AbstractSingleDiskAdaptor.h): New include.
  9850. (getFilePath): Made non-const. Added virtual keyword.
  9851. (CopyDiskAdaptor): Removed diskWriter.
  9852. (getTempFile): Returns const reference.
  9853. (CopyDiskAdaptorHandle): New type definition.
  9854. * src/ByteArrayDiskWriter.cc
  9855. (clear): Simplified.
  9856. (initAndOpenFile): Rewritten.
  9857. (openFile): Call initAndOpenFile()
  9858. * src/MultiDiskAdaptor.cc: Rewritten.
  9859. * src/DownloadEngineFactory.cc
  9860. (FileAllocator.h): New include.
  9861. (FileAllocationMonitor.h): New include.
  9862. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9863. create DefaultDiskWriter with file allocator.
  9864. * src/DiskWriter.h
  9865. (initAndOpenFile): Added totalLength argument.
  9866. (openFile): Added totalLength argument.
  9867. * src/prefs.h
  9868. (PREF_FILE_ALLOCATION): New definition.
  9869. (V_PREALLOC): New definition.
  9870. (V_NONE): New definition.
  9871. * src/HttpResponseCommand.cc
  9872. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9873. size.
  9874. * src/FtpNegotiateCommand.cc
  9875. (Util.h): New include.
  9876. (recvSize): Open file here.
  9877. * src/Util.h
  9878. (ullitos): New function.
  9879. * src/CopyDiskWriter.h
  9880. (getFilePath): Made non-const.
  9881. * src/DefaultDiskWriter.h
  9882. (Option.h): New include.
  9883. (totalLength): Removed.
  9884. (DefaultDiskWriter): Removed totalLength.
  9885. (initAndOpenFile): Added totalLength argument.
  9886. (DefaultDiskWriterHandle): New type definition.
  9887. (createNewDiskWriter): New function.
  9888. * src/Util.cc
  9889. (ullitos): New function.
  9890. * src/DefaultDiskWriter.cc
  9891. (message.h): New include.
  9892. (FileAllocator.h): New include.
  9893. (prefs.h): New include.
  9894. (Util.h): New include.
  9895. (DefaultDiskWriter): Removed totalLength.
  9896. (initAndOpenFile): Added file allocation.
  9897. (createNewDiskWriter): New function. Just for temporary solution.
  9898. It will be rewritten later.
  9899. * src/DiskAdaptor.cc
  9900. (DiskAdaptor): Removed diskWriter.
  9901. * src/AbstractDiskWriter.cc
  9902. (LogFactory.h): New include.
  9903. (AbstractDiskWriter): Added fileAllocator, logger.
  9904. (openFile): Added totalLength argument.
  9905. * src/AbstractDiskWriter.h
  9906. (FileAllocator.h): New include.
  9907. (Logger.h): New include.
  9908. (fileAllocator): New variable.
  9909. (logger): New variable.
  9910. (openFile): Added totalLength argument. Added virtual keyword
  9911. explicitly.
  9912. (openExistingFile): Added totalLength argument. Added virtual keyword
  9913. explicitly.
  9914. (closeFile): Added virtual keyword explicitly.
  9915. (sha1Sum): Added virtual keyword explicitly.
  9916. (writeData): Added virtual keyword explicitly.
  9917. (readData): Added virtual keyword explicitly.
  9918. (setFileAllocator): New function.
  9919. * src/DefaultPieceStorage.h
  9920. (FileAllocator.h): New include.
  9921. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9922. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9923. * src/FileProgressMonitor.h: New class.
  9924. To compile aria2 on PC-BSD:
  9925. * src/DefaultBtContext.cc
  9926. (libgen.h): New include.
  9927. To fix memory leak:
  9928. * src/Exception.h
  9929. (~Exception): Delete cause. Fixed memory leak.
  9930. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Rewritten a portion of bittorrent implementation:
  9932. * src/BtMessageValidator.h: New class.
  9933. * src/BtBitfieldMessageValidator.h: New class.
  9934. * src/BtHandshakeMessageValidator.h: New class.
  9935. * src/BtRequestMessageValidator.h: New class.
  9936. * src/BtSuggestPieceMessageValidator.h: New class.
  9937. * src/BtAllowedFastMessageValidator.h: New class.
  9938. * src/BtRejectMessageValidator.h: New class.
  9939. * src/BtCancelMessageValidator.h: New class.
  9940. * src/BtPieceMessageValidator.h: New class.
  9941. * src/BtHaveMessageValidator.h: New class.
  9942. * src/BtEventListener.h: New class.
  9943. * src/AbstractBtEventListener.h: New class.
  9944. * src/BtEvent.h: New class.
  9945. * src/BtChokingEvent.h: New class.
  9946. * src/BtChokedEvent.h: New class.
  9947. * src/BtCancelSendingPieceEvent.h: New class.
  9948. * src/BtAbortOutstandingRequestEvent.h: New class.
  9949. * src/Randomizer.h: New class.
  9950. * src/SimpleRandomizer.h: New class.
  9951. * src/BtMessage.h: New class.
  9952. * src/AbstractBtMessage.h: New class.
  9953. * src/SimpleBtMessage.h: New class.
  9954. * src/BtHaveMessage.h: New class.
  9955. * src/BtInterestedMessage.h: New class.
  9956. * src/BtAllowedFastMessage.h: New class.
  9957. * src/BtUnchokeMessage.h: New class.
  9958. * src/BtCancelMessage.h: New class.
  9959. * src/BtNotInterestedMessage.h: New class.
  9960. * src/BtChokeMessage.h: New class.
  9961. * src/BtHaveNoneMessage.h: New class.
  9962. * src/BtHandshakeMessage.h: New class.
  9963. * src/BtSuggestPieceMessage.h: New class.
  9964. * src/BtHaveMessage.h: New class.
  9965. * src/BtPieceMessage.h: New class.
  9966. * src/BtHaveAllMessage.h: New class.
  9967. * src/BtKeepAliveMessage.h: New class.
  9968. * src/BtPortMessage.h: New class.
  9969. * src/BtRejectMessage.h: New class.
  9970. * src/BtBitfieldMessage.h: New class.
  9971. * src/BtRequestMessage.h: New class.
  9972. * src/DefaultBtRequestFactory.h: New class.
  9973. * src/DefaultBtMessageReceiver.h: New class.
  9974. * src/BtInteractive.h: New class.
  9975. * src/BtMessageDispatcher.h: New class.
  9976. * src/DefaultBtMessageDispatcher.h: New class.
  9977. * src/DefaultBtInteractive.h: New class.
  9978. * src/BitfieldManFactory.h: New class.
  9979. * src/HandleRegistry.h: New class.
  9980. * src/BtMessageFactory.h: New class.
  9981. * src/BtMessageReceiver.h: New class.
  9982. * src/DefaultBtMessageFactory.h: New class.
  9983. * src/PeerObject.h: New class.
  9984. * src/BtRequestFactory.h: New class.
  9985. * src/SuggestPieceMessage.h: Removed.
  9986. * src/PortMessage.h: Removed.
  9987. * src/SuggestPieceMessage.h: Removed.
  9988. * src/KeepAliveMessage.h: Removed.
  9989. * src/HandshakeMessage.h: Removed.
  9990. * src/PeerInteraction.h: Removed.
  9991. * src/UnchokeMessage.h: Removed.
  9992. * src/PieceMessage.h: Removed.
  9993. * src/RequestMessage.h: Removed.
  9994. * src/InterestedMessage.h: Removed.
  9995. * src/HaveMessage.h: Removed.
  9996. * src/CancelMessage.h: Removed.
  9997. * src/RejectMessage.h: Removed.
  9998. * src/AllowedFastMessage.h: Removed.
  9999. * src/HaveNoneMessage.h: Removed.
  10000. * src/SimplePeerMessage.h: Removed.
  10001. * src/HaveAllMessage.h: Removed.
  10002. * src/BitfieldMessage.h: Removed.
  10003. * src/PeerMessageFactory.h: Removed.
  10004. * src/NotInterestedMessage.h: Removed.
  10005. * src/ChokeMessage.h: Removed.
  10006. * src/PeerMessage.h: Removed.
  10007. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. To know root cause of exception:
  10009. * src/Exception.h
  10010. (cause): New variable.
  10011. (Exception): Added a parameter.
  10012. (getMsg): Return const reference to msg.
  10013. (getCause): New function.
  10014. * src/DlRetryEx.h
  10015. (DlRetryEx): Added a parameter 'cause'.
  10016. Added an overloaded constructor.
  10017. (DlAbortEx): Added a parameter 'cause'.
  10018. Added an overloaded constructor.
  10019. * src/SimpleLogger.cc
  10020. (writeLog): Log nested exception messages recursively.
  10021. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10022. * src/DefaultBtProgressInfoFile.cc
  10023. (load): Fixed memory leak when the infohash doesn't match.
  10024. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10025. * src/DefaultPeerStorage.cc
  10026. (calculateStat): Simplified the code by combining 2 loops into 1.
  10027. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10028. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10029. for BitTorrent download:
  10030. * src/PeerAbstractCommand.cc
  10031. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10032. * src/main.cc:
  10033. (timeoutSpecified): Removed.
  10034. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10035. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10036. * src/TorrentRequestInfo.cc
  10037. (timeoutSpecified): Removed.
  10038. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10039. timeout value.
  10040. * src/prefs.h
  10041. (PREF_BT_TIMEOUT): New definition.
  10042. Delete unused variables:
  10043. * src/TorrentRequestInfo.cc
  10044. (requestInfo): Removed.
  10045. Move setSignalHander to Util::setGlobalSignalHandler:
  10046. * src/TorrentRequestInfo.cc:
  10047. setSignalHander -> Util::setGlobalSignalHandler
  10048. * src/main.cc
  10049. (setSignalHander): Removed.
  10050. (main): setSignalHander -> Util::setGlobalSignalHandler
  10051. * src/Util.h
  10052. (setGlobalSignalHandler): New function.
  10053. * src/Util.cc
  10054. (setGlobalSignalHandler): New function.
  10055. * src/UrlRequestInfo.cc:
  10056. setSignalHander -> Util::setGlobalSignalHandler
  10057. Reset peer status in order to exit gracefully:
  10058. * src/PeerAbstractCommand.cc
  10059. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10060. To fix the bug that causes the number of bytes uploaded is not saved
  10061. to .aria2 file:
  10062. * src/DefaultPeerStorage.h
  10063. (removedPeerSessionDownloadLength): New variable.
  10064. (removedPeerSessionUploadLength): New variable.
  10065. * src/DefaultPeerStorage.cc
  10066. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10067. removedPeerSessionUploadLength(0).
  10068. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10069. through all peers, and then add removedPeerSessionDownloadLength(
  10070. removedPeerSessionUploadLength) to it.
  10071. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10072. (to) the peer to removedPeerSessionDownloadLength
  10073. (removedPeerSessionUploadLength).
  10074. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10075. To add Metalink location option:
  10076. * src/MetalinkRequestInfo.cc
  10077. (execute): Call MetalinkEntry::setLocationPreference()
  10078. * src/main.cc
  10079. (showUsage): Added the help message for --metalink-location option.
  10080. (main): Added --metalink-location option.
  10081. * src/prefs.h
  10082. (PREF_METALINK_LOCATION): New definition.
  10083. * src/MetalinkEntry.cc
  10084. (AddLocationPreference): New function object.
  10085. (setLocationPreference): New function.
  10086. * src/Xml2MetalinkProcessor.cc
  10087. (getResource): Set location attribute to MetalinkResource
  10088. To show URLs to download
  10089. * src/UrlRequestInfo.h
  10090. (printUrls): New function.
  10091. To add multiple <file> Metalink support:
  10092. * src/MetalinkEntry.h
  10093. (MetalinkResources): Removed.
  10094. (setLocationPreference): New function.
  10095. (MetalinkEntryHandle): New type definition.
  10096. (MetalinkEntries): New type definition.
  10097. * src/Xml2MetalinkProcessor.h
  10098. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10099. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10100. (parseFile): Metalinker* -> MetalinkerHandle
  10101. * src/UrlRequestInfo.h
  10102. (execute): RequestInfo* -> RequestInfos
  10103. * src/MetalinkRequestInfo.cc
  10104. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10105. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10106. (execute): RequestInfo* -> RequestInfos
  10107. Added multiple <file> support. Print filename when it is queued.
  10108. * src/MetalinkRequestInfo.h
  10109. (execute): RequestInfo* -> RequestInfos
  10110. (getDownloadEngine): Removed.
  10111. * src/RequestInfo.h
  10112. (RequestInfoHandle): New type definition.
  10113. (RequestInfos): New type definition.
  10114. (execute): RequestInfo* -> RequestInfos
  10115. (getDownloadEngine): Removed.
  10116. * src/MetalinkResource.h
  10117. (MetalinkResourceHandle): New type definition.
  10118. (MetalinkResources): New type definition.
  10119. * src/MetalinkEntry.cc
  10120. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10121. because the element is now of type MetalinkResourceHandle.
  10122. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10123. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10124. (dropUnsupportedResource): Removed the deletion of the elements of
  10125. resources because the element is now of type MetalinkResourceHandle.
  10126. * src/Xml2MetalinkProcessor.cc
  10127. (parseFile): Metalinker* -> MetalinkerHandle
  10128. MetalinkEntry* -> MetalinkEntryHandle
  10129. Removed try-catch block.
  10130. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10131. MetalinkResource* -> MetalinkResourceHandle
  10132. Removed try-catch block.
  10133. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10134. Free result by using xmlXPathFreeObject()
  10135. * src/Metalinker.cc
  10136. (~Metalinker): Removed the deletion of entries.
  10137. MetalinkEntry* -> MetalinkEntryHandle
  10138. (queryEntry): Add multiple <file> Metalink support.
  10139. * src/Metalinker.h
  10140. (MetalinkEntries): Removed.
  10141. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10142. * src/MetalinkProcessor.h
  10143. (parseFile): Metalinker* -> MetalinkerHandle
  10144. Bug fixes:
  10145. * src/PeerChokeCommand.cc
  10146. (execute): cat01->cat02
  10147. * src/DefaultPieceStorage.cc
  10148. (DefaultPieceStorage): Added diskAdaptor(0)
  10149. * src/TrackerWatcherComand.cc:
  10150. (execute): Use btAnnounce->noMoreAnnounce()
  10151. to determin whether the function returns true or not.
  10152. * src/TrackerUpdateCommand.cc:
  10153. (execute): Use btAnnounce->noMoreAnnounce()
  10154. to determin whether the function returns true or not.
  10155. * src/FtpConnection.cc
  10156. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10157. This is the fix of the busy loop bug.
  10158. * src/DownloadCommand.cc
  10159. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10160. cached PeerStat.
  10161. The value of "name" entry in torrent file is now set by
  10162. *DiskAdaptor::setTopDir(...) methods.
  10163. * src/MultiDiskAdaptor.h
  10164. (topDir): New variable.
  10165. (setTopDir): New function.
  10166. (getTopDir): New function.
  10167. * src/MultiDiskAdaptor.cc
  10168. (getFilePath): Concat storDir, "/" and topDir.
  10169. (mkdir): Use getFilePath() to get the directory path for output.
  10170. * src/DefaultPieceStorage.cc
  10171. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10172. CopyDiskAdaptor.
  10173. * src/CopyDiskAdaptor.h
  10174. (topDir): New variable.
  10175. (setTopDir): New function.
  10176. (getTopDir): New function.
  10177. * src/CopyDiskAdaptor.cc
  10178. (fixFilename): Updated.
  10179. Misc
  10180. * src/UrlRequestInfo.h
  10181. (e): Removed.
  10182. (UrlRequestInfo): Removed e.
  10183. (getDownloadEngine): Removed.
  10184. * src/UrlRequestInfo.cc
  10185. (handler): Rewritten.
  10186. (printUrls): New function.
  10187. (execute): Call printUrls().
  10188. * src/HandshakeMessage.cc
  10189. (check): peerinteraction->getBtContext() -> btContext
  10190. * src/PeerInteraction.h
  10191. (getBtContext): Removed.
  10192. * src/TorrentRequestInfo.h
  10193. (execute): RequestInfo* -> RequestInfos
  10194. (getDownloadEngine): Removed.
  10195. * src/TorrentRequestInfo.cc
  10196. (haltRequested): Removed.
  10197. (btHaltRequested): New variable.
  10198. (torrentHandler): haltRequested -> btHaltRequested
  10199. (execute): RequestInfo* -> RequestInfos
  10200. * src/TorrentConsoleDownloadEngine.cc
  10201. (afterEachIteration): haltRequested -> btHaltRequested.
  10202. * src/ConsoleDownloadEngine.h
  10203. (initStatistics): Added virtual.
  10204. (calculateStatistics): Added virtual.
  10205. (onEndOfRun): Added virtual.
  10206. (afterEachIteration): Added virtual.
  10207. * src/ConsoleDownloadEngine.cc
  10208. (haltRequested): New variable.
  10209. (afterEachIteration): New function.
  10210. * src/main.cc
  10211. (requestInfo): Removed.
  10212. * src/SegmentMan.cc
  10213. (findSlowerSegmentEntry): Refactored.
  10214. * Release 0.9.0
  10215. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10217. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10218. * src/TorrentMan.h: Removed.
  10219. * src/TorrentMan.cc: Removed.
  10220. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10221. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10222. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10223. * src/PeerAbstractCommand.cc: Use btRuntime.
  10224. * src/BtContextAwareCommand.h: New class.
  10225. * src/FileEntry.h: Added accessor methods for following variables.
  10226. (path): Made private.
  10227. (length): Made private.
  10228. (offset): Made private.
  10229. (extracted): Made private.
  10230. (requested): Made private.
  10231. (FileEntries): New definition.
  10232. (FileEntryHandle): New definition.
  10233. * src/FileEntry.cc: New file.
  10234. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10235. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10236. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10237. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10238. * src/PieceStorage.h: New file.
  10239. * src/PeerInteractionCommand.h: Use btContext.
  10240. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10241. btRuntime.
  10242. * src/DefaultBtProgressInfoFile.h: New file.
  10243. * src/DefaultBtProgressInfoFile.cc: New file.
  10244. * src/File.cc
  10245. (Util.h): New include.
  10246. (mkdirs): New function.
  10247. * src/MultiDiskAdaptor.h
  10248. (mkdir): New function.
  10249. * src/PeerListProcessor.h
  10250. (Peers): Removed.
  10251. * src/PeerInteraction.h
  10252. (torrentMan): Removed.
  10253. (btContext): New variable.
  10254. (peerStorage): New variable.
  10255. (pieceStorage): New variable.
  10256. (btAnnounce): New variable.
  10257. (getTorrentMan): Removed.
  10258. (getBtContext): New function.
  10259. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10260. btAnnounce.
  10261. * src/HandshakeMessage.h
  10262. (TorrentMan.h): Removed.
  10263. * src/HandshakeMessage.cc: Use btContext.
  10264. * src/DefaultBtAnnounce.cc: New file.
  10265. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10266. * src/DefaultPieceStorage.cc: New file.
  10267. * src/DefaultBtContext.h: New file.
  10268. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10269. Use the accessor methods of FileEntry.
  10270. * src/CookieBox.cc: Updated to use Util::slice().
  10271. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10272. * src/common.h (SharedHandle.h): New include.
  10273. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10274. pieceStorage.
  10275. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10276. * src/DiskAdaptor.h
  10277. (topDir): Removed.
  10278. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10279. (setTopDir): Removed.
  10280. (getTopDir): Removed.
  10281. * src/BtContext.h: New file.
  10282. * src/DefaultPeerStorage.h: New file.
  10283. * src/PieceMessage.h (TorrentMan.h): Removed.
  10284. * src/RequestMessage.h (TorrentMan.h): Removed.
  10285. * src/TorrentDownloadEngine.h
  10286. (uploadLength): New variable.
  10287. (btContext): New variable.
  10288. (btRuntime): New variable.
  10289. (pieceStorage): New variable.
  10290. (peerStorage): New variable.
  10291. (btAnnounce): New variable.
  10292. (btProgressInfoFile): New variable.
  10293. (torrentMan): Removed.
  10294. (setBtContext): New function.
  10295. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10296. peerStorage, btAnnounce, btProgressInfoFile.
  10297. * src/Piece.h
  10298. (toString): New function.
  10299. (Pieces): New type definition.
  10300. * src/Peer.h
  10301. (active): New variable.
  10302. (Peer): Added active.
  10303. (activate): Set active to true.
  10304. (deactivate): Set active to false.
  10305. (isActive): New function.
  10306. (Peers): New type definition.
  10307. * src/DirectDiskAdaptor.cc
  10308. (getFilePath): Use the accessor methods of FileEntry.
  10309. * src/TorrentConsoleDownloadEngine.h
  10310. (afterEachIteration): New function.
  10311. * src/TorrentConsoleDownloadEngine.cc
  10312. (haltRequested): New variable.
  10313. (sendStatistics): Use pieceStorage, btRuntime.
  10314. (afterEachIteration): New function.
  10315. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10316. * src/Directry.h
  10317. (Directory): New function.
  10318. (DirectoryHandle): New type definition.
  10319. * src/BtProgressInfoFile.h: New file.
  10320. * src/RequestMessage.cc: Use pieceStorage.
  10321. * src/BtRuntime.h: New file.
  10322. * src/DefaultBtContext.cc: New file.
  10323. * src/BitfieldMan.h
  10324. (getCompletedLength): New function(private).
  10325. (getCompletedLength): New function.
  10326. (getFilteredCompletedLength): New function.
  10327. * src/BitfieldMan.h
  10328. (getCompletedLength): New function(private).
  10329. (getCompletedLength): New function.
  10330. (getFilteredCompletedLength): New function.
  10331. * src/MultiDiskAdaptor.cc
  10332. (mkdir): New function.
  10333. (openFile): Call mkdir().
  10334. (initAndOpenFile): Call mkdir().
  10335. * src/CancelMessage.h
  10336. (TorrentMan.h): Removed.
  10337. * src/RejectMessage.h
  10338. (TorrentMan.h): Removed.
  10339. * src/DownloadEngineFactory.cc
  10340. (DefaultPieceStorage.h): New include.
  10341. (DefaultPeerStorage.h): New include.
  10342. (DefaultBtAnnounce.h): New include.
  10343. (DefaultBtProgressInfoFile.h): New include.
  10344. (newTorrentConsoleEngine): Rewritten.
  10345. * src/ShareRatioSeedCriteria.h
  10346. (torrentMan): Removed.
  10347. (btContext): New variable.
  10348. (peerStorage): New variable.
  10349. (btRuntime): New variable.
  10350. (evaluate): Use btContext, btRuntime, peerStorage.
  10351. * src/AnnounceTier.h: New file.
  10352. * src/BtAnnounce.h: New file.
  10353. * src/BtRegistry.h: New file.
  10354. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10355. * src/PeerConnection.h (TorrentMan.h): Removed.
  10356. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10357. * src/Util.h
  10358. (slice): Added an argument.
  10359. * src/Util.cc
  10360. (slice): Added an argument to control whether trim is made or not.
  10361. * src/PeerStorage.h: New file.
  10362. * src/BtRegistry.cc: New file.
  10363. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10364. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10365. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10366. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10367. * src/TorrentRequestInfo.h
  10368. (e): Removed.
  10369. (showFileEntry): Added an argument.
  10370. (getDownloadEngine): Return 0.
  10371. * src/DefaultBtAnnounce.h: New file.
  10372. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10373. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10374. * src/PeerMessageFactory.h
  10375. (btContext): New variable.
  10376. (pieceStorage): New variable.
  10377. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10378. btAnnounce.
  10379. * src/DiskAdaptor.cc
  10380. (DiskAdaptor): Removed topDir.
  10381. (~DiskAdaptor): Removed topDir.
  10382. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10383. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10384. * src/File.h (mkdirs): New function.
  10385. * src/DefaultPeerStorage): New file.
  10386. * src/DownloadEngineFactory.h
  10387. (newTorrentConsoleEngine): Use btContext.
  10388. * src/BtContextAwareCommand.cc: New file.
  10389. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10390. * src/PeerMessage.h
  10391. (btContext): New variable.
  10392. (peerStorage): New variable.
  10393. (pieceStorage): New variable.
  10394. (setBtContext): New function.
  10395. * src/Directry.cc
  10396. (Directory): New function.
  10397. (createDir): Do nothing if name.size() == 0.
  10398. * src/AnnounceList.h
  10399. (AnnounceTier): Removed.
  10400. (AnnounceTiers): Removed.
  10401. * src/DefaultPieceStorage.h: New file.
  10402. * src/Piece.cc (toString): New function.
  10403. To fix typo:
  10404. * src/main.cc (showVersion): Fixed typo.
  10405. To fix compile warning:
  10406. * src/DelegatingPeerListProcessor.cc
  10407. (canHandle): Added "return false".
  10408. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10409. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10410. make the process of announce request testable.
  10411. * src/TrackerWatcherCommand.h
  10412. (TimeA2.h): Removed.
  10413. (interval): Removed.
  10414. (checkPoint): Removed.
  10415. (createRequestCommand): Added an argument 'url'.
  10416. (TrackerWatherCommand): Removed interval.
  10417. (createCommand): New function.
  10418. * src/DownloadEngineFactory.cc
  10419. (newTorrentConsoleEngine): Updated according to the changes in
  10420. TrackerWatherCommand.
  10421. * src/TorrentMan.cc
  10422. (DelegatingPeerListProcessor.h): New includes.
  10423. (TorrentMan): Added the initialization of announceInterval.
  10424. (isStoppedAnnounceReady): New function.
  10425. (isCompletedAnnounceReady): New function.
  10426. (isDefaultAnnounceReady): New function.
  10427. (isAnnounceReady): New function.
  10428. (getAnnounceUrl): New function.
  10429. (announceStart): New function.
  10430. (announceFailure): New function.
  10431. (announceSuccess): New function.
  10432. (isAllAnnounceFailed): New function.
  10433. (resetAnnounce): New function.
  10434. (processAnnounceResponse): New function.
  10435. (needMorePeerConnection): New function.
  10436. (noMoreAnnounce): New function.
  10437. * src/TrackerUpdateCommand.h
  10438. (getTrackerResponse): int->size_t
  10439. * src/TorrentMan.h
  10440. (isStoppedAnnounceReady): New function.
  10441. (isCompletedAnnounceReady): New function.
  10442. (isDefaultAnnounceReady): New function.
  10443. (announceInterval): New variable.
  10444. (isAnnounceReady): New function.
  10445. (getAnnounceUrl): New function.
  10446. (announceStart): New function.
  10447. (announceFailure): New function.
  10448. (announceSuccess): New function.
  10449. (isAllAnnounceFailed): New function.
  10450. (resetAnnounce): New function.
  10451. (processAnnounceResponse): New function.
  10452. (needMorePeerConnection): New function.
  10453. (noMoreAnnounce): New function.
  10454. * src/TrackerWatcherCommand.cc
  10455. (TrackerWatherCommand): Removed interval and checkPoint.
  10456. (execute): Rewritten.
  10457. (createCommand): New function.
  10458. (createRequestCommand): Rewritten.
  10459. * src/TrackerUpdateCommand.cc
  10460. (MetaFileUtil.h): Removed.
  10461. (DelegatingPeerListProcessor.h): Removed.
  10462. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10463. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10464. Request -> RequestHandle:
  10465. * src/HttpResponseCommand.h: Request->RequestHandle
  10466. * src/AbstractCommand.cc: Request->RequestHandle
  10467. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10468. * src/HttpRequestCommand.cc: Request->RequestHandle
  10469. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10470. * src/AbstractCommand.h: Request->RequestHandle
  10471. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10472. * src/HttpResponseCommand.cc: Request->RequestHandle
  10473. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10474. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10475. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10476. * src/HttpConnection.h: Request->RequestHandle
  10477. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10478. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10479. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10480. * src/DownloadCommand.h: Request->RequestHandle
  10481. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10482. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10483. * src/HttpRequestCommand.h: Request->RequestHandle
  10484. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10485. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10486. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10487. * src/HttpDownloadCommand.h: Request->RequestHandle
  10488. * src/FtpConnection.cc: Request->RequestHandle
  10489. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10490. * src/UrlRequestInfo.cc: Request->RequestHandle
  10491. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10492. * src/HttpConnection.h: Request->RequestHandle
  10493. * src/DownloadCommand.cc: Request->RequestHandle
  10494. * src/FtpConnection.h: Request->RequestHandle
  10495. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10496. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10497. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10498. * src/Request.h
  10499. (SharedHandle.h): New include.
  10500. (RequestHandle): New type definition.
  10501. (Requests): Redefined.
  10502. To add MULTITRACKER support:
  10503. * src/TrackerWatcherCommand.h
  10504. (createRequestCommand): New function.
  10505. * src/DownloadEngineFactory.cc
  10506. (newTorrentConsoleEngine): Removed req.
  10507. * src/prefs.h
  10508. (PREF_TRACKER_MAX_TRIES): New definition.
  10509. * src/TorrentMan.cc
  10510. (TorrentMan): Removed req. Added trackerNumTry.
  10511. (~TorrentMan): Removed req.
  10512. (setupInternal1): Added announceList.
  10513. * src/TorrentRequestInfo.cc
  10514. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10515. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10516. * src/main.cc
  10517. (main): Added PREF_TRACKER_MAX_TRIES.
  10518. * src/TorrentMan.h
  10519. (Request.h): Removed.
  10520. (AnnounceList.h): New include.
  10521. (trackerNumTry): New variable.
  10522. (req): Removed.
  10523. (announceList): New variable.
  10524. * src/TrackerWatcherCommand.cc
  10525. (execute): Rewritten.
  10526. (createRequestCommand): New function.
  10527. * src/TrackerUpdateCommand.cc
  10528. (execute): Updated with the use of AnnounceList.
  10529. * src/AnnounceList.cc: New class.
  10530. * src/AnnounceList.h: New class.
  10531. To fix typo:
  10532. * src/prefs.h
  10533. (PREF_MAX_TRIES): max_try->max_tries
  10534. To not to decode "+" as space in URL decode:
  10535. * src/Util.cc
  10536. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10537. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. To add timeout to async name resolution:
  10539. * src/AbstractCommand.h
  10540. (nameResolveFinished): New function. This is not elegant way. It needs
  10541. to be more refined.
  10542. (nameResolverCheck): New variable.
  10543. * src/AbstractCommand.cc
  10544. (AbstractCommand): Added nameResolverCheck.
  10545. (execute): Added the check whether the name resolution has finished.
  10546. (setNameResolverCheck): Set nameResolverCheck to true.
  10547. (disableNameResolverCheck): Set nameResolverCheck to false.
  10548. (nameResolverFinished): New function.
  10549. * src/FtpInitiateConnectionCommand.h
  10550. (nameResolverFinished): New function.
  10551. * src/FtpInitiateConnectionCommand.cc
  10552. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10553. * src/HttpInitiateConnectionCommand.h
  10554. (nameResolverFinished): New function.
  10555. * src/HttpInitiateConnectionCommand.cc
  10556. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10557. * src/prefs.h
  10558. (PREF_DNS_TIMEOUT): New definition.
  10559. * src/main.cc
  10560. (main): Added PREF_DNS_TIMEOUT.
  10561. To add the support for a non-compact response from a tracker:
  10562. * src/PeerListProcessor.h: New class.
  10563. * src/DefaultPeerListProcessor.h: New class.
  10564. * src/DefaultPeerListProcessor.cc: New class.
  10565. * src/CompactPeerListProcessor.h: New class.
  10566. * src/CompactPeerListProcessor.cc: New class.
  10567. * src/DelegatingPeerListProcessor.h: New class.
  10568. * src/DelegatingPeerListProcessor.cc: New class.
  10569. * src/TorrentMan.cc
  10570. (addPeer): New function(overload).
  10571. (addPeer): Delete unused peers only when new peer is added.
  10572. * src/TorrentMan.h
  10573. (PeerListProcessor.h): Included.
  10574. (Peers): Removed.
  10575. (addPeer): New function(overload).
  10576. * src/TrackerUpdateCommand.cc
  10577. (netinet/in.h): Removed.
  10578. (DelegatingPeerListProcessor.h): Included.
  10579. (execute): Updated to use DelegatingPeerListProcessor.
  10580. To fix the memory leak in TorrentMan::peers:
  10581. * src/PeerAbstractCommand.cc
  10582. (onAbort): Added peer->resetStatus().
  10583. * src/Peer.h
  10584. (resetStatus): Made public.
  10585. To improve the precision of the speed calculation:
  10586. * src/SpeedCalc.h
  10587. (nextInterval): New variable.
  10588. * src/SpeedCalc.cc
  10589. (reset): Added nextInterval.
  10590. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10591. (changeSw): Set nextInterval to 15 seconds relative to the current
  10592. instant time.
  10593. * src/main.cc
  10594. (showVersion): Updated.
  10595. (showUsage): Updated.
  10596. * Release 0.8.1
  10597. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10598. * src/main.cc
  10599. (showUsage): Commented out --min-segment-size option.
  10600. (main): Commented out --min-segment-size option.
  10601. * Release 0.8.0
  10602. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10603. * src/*.{h,cc}:
  10604. Added an exception to the license which allows linking with OpenSSL.
  10605. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10606. * src/AbstractCommand.cc
  10607. (execute): Check whether the download has finished before checking
  10608. socket status.
  10609. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10610. Do not exit even if no segment is available.
  10611. * src/prefs.h
  10612. (PREF_STARTUP_IDLE_TIME): New definition.
  10613. * src/PeerInteractionCommand.cc
  10614. (executeInternal): Removed max speed limit. Because it performs bad.
  10615. (receiveMessages): Added max speed limit. This was better than above,
  10616. but still a little bit to be desired. Sometimes the download speed
  10617. became much faster than I specified.
  10618. * src/SpeedCalc.h
  10619. (start): New variable.
  10620. (accumulatedLength): New variable.
  10621. (getAvgSpeed): New function.
  10622. * src/SpeedCalc.cc
  10623. (reset): Added start, accumulatedLength.
  10624. (update): Added calculation of an average speed.
  10625. (getAvgSpeed): New function.
  10626. * src/DownloadCommand.h
  10627. (sw): Removed.
  10628. * src/main.cc
  10629. (main): Added PREF_STARTUP_IDLE_TIME.
  10630. * src/PeerStat.h
  10631. (STATUS): Added REQUEST_IDLE.
  10632. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10633. (getAvgDownloadSpeed): New function
  10634. (requestIdle): New function.
  10635. * src/SegmentMan.h
  10636. (SegmentEntryHandle): New type definition.
  10637. (SegmentEntries): Now holds SegmentEntryHandle.
  10638. (findSlowerSegmentEntry): New funtion.
  10639. * src/SegmentMan.cc
  10640. (save): Updated according to the changes in SegmentEntries.
  10641. (read): Updated according to the changes in SegmentEntries.
  10642. (FindSegmentEntryByIndex): Updated according to the changes in
  10643. SegmentEntries.
  10644. (FindSegmentEntryByCuid): Updated according to the changes in
  10645. SegmentEntries.
  10646. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10647. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10648. Renamed uitr as itr.
  10649. (findSlowerSegmentEntry): New function.
  10650. (getSegment): Updated according to the changes in SegmentEntries.
  10651. Added the feature that cancels the segment with slow server and fast
  10652. one takes it over.
  10653. (cancelSegment): Updated according to the changes in SegmentEntries.
  10654. (getDownloadLength): Updated according to the changes in
  10655. SegmentEntries.
  10656. (init): Assigned 0 to bitfield after deleting it.
  10657. * src/DownloadCommand.cc
  10658. (STARTUP_IDLE_TIME): Removed.
  10659. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10660. * src/PeerChokeCommand.cc
  10661. (optUnchokingPeer): Updated according to the changes in Peer.
  10662. (ResetDelta): Removed.
  10663. (UploadFaster): Updated according to the changes in Peer.
  10664. (DownloadFaster): Updated according to the changes in Peer.
  10665. (execute): I clarify the meaning of "upload" and "download" here.
  10666. "upload" means the transfer from localhost to remote host.
  10667. "download" means the transfer from remote host to localhost.
  10668. Based on this rule, I swapped orderByUploadRate and
  10669. orderByDownloadRate.
  10670. * src/PeerInteractionCommand.cc
  10671. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10672. (executeInternal): Removed the argument of
  10673. peerInteraction->sendMessages().
  10674. (receiveMessages): Rewritten download speed limit.
  10675. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10676. * src/HttpResponseCommand.cc
  10677. (handleDefaultEncoding): If file size is unknown in torrent request,
  10678. do not call segmentMan->initBitfield() here.
  10679. Disabled persistent connection feature in torrent request.
  10680. * src/UrlRequestInfo.h
  10681. (UrlRequestInfo): Removed const qualifier from option.
  10682. * src/TorrentMan.h
  10683. (TransferStat): New class.
  10684. (deltaDownloadLength): Removed.
  10685. (deltaUploadLength): Removed.
  10686. (addDeltaDownloadLength): Removed.
  10687. (getDeltaDownloadLength): Removed.
  10688. (resetDeltaDownloadLength): Removed.
  10689. (addDeltaUploadLength): Removed.
  10690. (getDeltaUploadLength): Removed.
  10691. (resetDeltaUploadLength): Removed.
  10692. (addActivePeer): Added peer->activate().
  10693. (deleteActivePeer): Added peer->deactivate().
  10694. (calculateStat): New function.
  10695. * src/TorrentMan.cc
  10696. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10697. (calculateStat): New function.
  10698. * src/PeerInteraction.h
  10699. (uploadLimit): Removed.
  10700. (option): New variable.
  10701. (setUploadLimit): Removed.
  10702. (getUploadSpeed): Removed.
  10703. (sendMessages): Removed the argument "currentUploadSpeed".
  10704. * src/PeerInteraction.cc
  10705. (prefs.h): Included.
  10706. (PeerInteraction): Removed uploadLimit. Added option.
  10707. (sendMessages): Rewritten upload speed limit.
  10708. (sendHandshake): Removed the argument from sendMessages().
  10709. (sendBitfield): Removed the argument from sendMessages().
  10710. * src/PeerAbstractCommand.cc
  10711. (execute): Commented out the portion of upload limit.
  10712. (onAbort): Removed peer->resetStatus().
  10713. * src/TorrentRequestInfo.cc
  10714. (timeoutSpecified): Declared extern.
  10715. (execute): Set timeout to 180 if timeout is not specified by.
  10716. command-line.
  10717. * src/PieceMessage.cc
  10718. (receivedAction): Added peer->updateDownloadLength().
  10719. Removed peer->addPeerUpload().
  10720. Removed torrentMan->addDeltaDownloadLength().
  10721. (send): Added peer->updateUploadLength().
  10722. Removed peer->addPeerDownload().
  10723. Removed torrentMan->addDeltaUploadLength().
  10724. * src/main.cc
  10725. (timeoutSpecified): New variable.
  10726. (main): Set timeoutSpecified to false.
  10727. If the command-line option "--upload-limit" is specified, then
  10728. timeoutSpecified is set to true. This option will remain in the next
  10729. release, but be deprecated in the future release.
  10730. * src/TorrentRequestInfo.h
  10731. (TorrentRequestInfo): Removed const qualifier from op.
  10732. * src/PeerStat.h
  10733. (uploadSpeed): New variable.
  10734. (PeerStat): Added default value to cuid.
  10735. (calculateUploadSpeed): New function.
  10736. (updateUploadLength): New function.
  10737. (getMaxUploadSpeed): New function.
  10738. (getAvgUploadSpeed): New function.
  10739. (reset): Added uploadSpeed. Set status to IDLE.
  10740. * src/TorrentDownloadEngine.h
  10741. (cp): Declared as Time.
  10742. (sessionDownloadLengthArray): Removed.
  10743. (sessionUploadLengthArray): Removed.
  10744. (currentCp): Removed.
  10745. (lastCalcStat): New variable
  10746. (lastElapsed): Removed.
  10747. (sessionDownloadLength): Removed.
  10748. (calculateStat): New function.
  10749. * src/TorrentDownloadEngine.cc
  10750. (initStatistics): Removed lastElapsed, cp[],
  10751. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10752. currentCp, sessionDownloadLength.
  10753. Added cp.reset() and lastCalcStat.reset().
  10754. (calculateSpeed): Changed the name of the argument.
  10755. (calculateStatistics): Rewritten.
  10756. (calculateStat): New function.
  10757. * src/Peer.h
  10758. (PeerStat.h): Included.
  10759. (peerUpload): Removed.
  10760. (peerDownload): Removed.
  10761. (peerStat): New variable.
  10762. (sessionUploadLength): New variable.
  10763. (sessionDownloadLength): New variable.
  10764. (deltaUpload): Removed.
  10765. (deltaDownload): Removed.
  10766. (resetStatus): Made private.
  10767. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10768. Removed peerUpload, peerDownload.
  10769. (updateUploadLength): New function.
  10770. (addDeltaUpload): Removed.
  10771. (updateDownloadLength): New function.
  10772. (resetDeltaUpload): Removed.
  10773. (getDeltaUpload): Removed.
  10774. (addDeltaDownload): Removed.
  10775. (calculateUploadSpeed): New function.
  10776. (resetDeltaDownload): Removed.
  10777. (getDeltaDownload): Removed.
  10778. (calculateDownloadSpeed): New function.
  10779. (getSessionUploadLength): New function.
  10780. (getSessionDownloadLength): New function.
  10781. (activate): New function.
  10782. (deactivate): New function.
  10783. (addPeerUpload): Removed.
  10784. (setPeerUpload): Removed.
  10785. (getPeerUpload): Removed.
  10786. (addPeerDownload): Removed.
  10787. (setPeerDownload): Removed.
  10788. (getPeerDownload): Removed.
  10789. * src/Peer.cc
  10790. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10791. * src/MetalinkRequestInfo.h
  10792. (MetalinkRequestInfo): Removed const qualifier from op.
  10793. * src/RequestInfo.h
  10794. (op): Removed const qualifier.
  10795. (RequestInfo): Removed const qualifier from op.
  10796. * src/prefs.h
  10797. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10798. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10799. * src/PeerInteractionCommand.cc
  10800. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10801. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10802. * src/PeerInteraction.cc
  10803. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10804. * src/main.cc
  10805. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10806. Added the description of "--max-download-limit" option.
  10807. Removed the description of "--upload-limit" option.
  10808. Added the description of "--max-upload-limit" option.
  10809. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10810. Added "--max-download-limit" option and "--max-upload-limit" option.
  10811. Added the warning message if "--upload-limit" option is used.
  10812. * src/DownloadCommand.cc
  10813. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10814. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10815. To rewrite segment download mechanism for HTTP/FTP download.
  10816. Use BitfieldMan to manage segment download.
  10817. * src/HttpResponseCommand.h
  10818. (executeInternal): Pass the reference of segment.
  10819. * src/AbstractCommand.cc
  10820. (prepareForRetry): Call segmentMan->cancelSegment here.
  10821. (onAbort): Call segmentMan->cancelSegment here.
  10822. * src/HttpDownloadCommand.cc
  10823. (prepareForNextSegment): New function.
  10824. * src/DownloadEngineFactory.cc
  10825. (newConsoleEngine): Removed splitter.
  10826. (newTorrentConsoleEngine): Removed splitter.
  10827. * src/Request.h
  10828. (segment): Renamed from seg.
  10829. * src/FtpInitiateConnectionCommand.h
  10830. (executeInternal): Pass the reference of segment.
  10831. * src/AbstractCommand.h
  10832. (executeInternal): Pass the reference of segment.
  10833. * src/pref.h
  10834. (PREF_SEGMENT_SIZE): New definition.
  10835. * src/HttpProxyRequestCommand.h
  10836. (executeInternal): Pass the reference of segment.
  10837. * src/HttpResponseCommand.cc
  10838. (checkResponse): Allowed status 206 when a request range starts 0.
  10839. (handleDefaultEncoding): Rewritten the code related to Segment.
  10840. (handleOtherEncoding): Rewritten the code related to Segment.
  10841. * src/SegmentMan.h
  10842. (SegmentEntry): New class.
  10843. (SegmentEntries): New type definition.
  10844. (bitfield): New variable.
  10845. (usedSegmentEntries): New variable.
  10846. (onNullBitfield): New function.
  10847. (checkoutSegment): New function.
  10848. (segments): Removed.
  10849. (splitter): Removed.
  10850. (unregisterId): Removed.
  10851. (getSegment): New function(overload)
  10852. (getDownloadedSize): Removed.
  10853. (cancelSegment): New function.
  10854. (completeSegment): New function.
  10855. (initBitfield): New function.
  10856. (hasSegment): New function.
  10857. (getDownloadLength): New function.
  10858. * src/BitfieldMan.h
  10859. (getStartIndex): New function.
  10860. (getEndIndex): New function.
  10861. (getMissingUnusedIndex): New function(overload).
  10862. (getSparseMissingUnusedIndex): New function.
  10863. * src/BitfieldMan.cc
  10864. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10865. (getMissingUnusedIndex): New function(overload).
  10866. (Range): New class.
  10867. (getStartIndex): New function.
  10868. (getEndIndex): New function.
  10869. (getSparseMissingUnusedIndex): New function.
  10870. (isBitSetInternal): Return false if the given index is less than 0.
  10871. * src/HttpInitiateConnectionCommand.h
  10872. (executeInternal): Pass the reference of segment.
  10873. * src/FtpNegotiateCommand.h
  10874. (executeInternal): Pass the reference of segment.
  10875. * src/FtpNegotiateCommand.cc
  10876. (recvSize): Initialize bitfield here.
  10877. * src/FtpTunnelResponseCommand.h
  10878. (executeInternal): Pass the reference of segment.
  10879. * src/HttpConnection.cc
  10880. (createRequest): Rewritten range header processing.
  10881. * src/DownloadCommand.h
  10882. (executeInternal): Pass the reference of segment.
  10883. (prepareForRetry): Removed.
  10884. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10885. function.
  10886. * src/main.cc
  10887. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10888. * src/SegmentMan.cc
  10889. (SegmentMan): Added bitfield. Removed splitter.
  10890. (~SegmentMan): Added bitfield. Removed splitter.
  10891. (unregisterId): Removed.
  10892. (getSegment): Rewritten.
  10893. (updateSegment): Rewritten.
  10894. (save): Rewritten.
  10895. (read): Rewritten.
  10896. (finished): Rewritten.
  10897. (getDownloadedSize): Removed.
  10898. (initBitfield): New function.
  10899. (FindSegmentEntryByIndex): New function object.
  10900. (FindSegmentEntryByCuid): New function object.
  10901. (checkoutSegment): New function.
  10902. (onNullBitfield): New function.
  10903. (getSegment): New function(overload).
  10904. (CancelSegment): New function object.
  10905. (cancelSegment): New function.
  10906. (completeSegment): New function.
  10907. (hasSegment): New function.
  10908. (getDownloadLength): New function.
  10909. * src/FtpInitiateConnectionCommand.cc
  10910. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10911. * src/Segment.h: Rewritten.
  10912. * src/Segment.cc (operator<<): New function.
  10913. * src/HttpDownloadCommand.h
  10914. (prepareForNextSegment): New function.
  10915. * src/Request.cc
  10916. (resetUrl): Made segment null.
  10917. * src/DownloadEngine.cc
  10918. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10919. * src/HttpProxyRequestCommand.h
  10920. (executeInternal): Pass the reference of segment.
  10921. * src/DownloadCommand.cc
  10922. (executeInternal): Rewritten the code related to Segment.
  10923. (prepareForRetry): Removed.
  10924. (prepareForNextSegment): Rewritten.
  10925. * src/FtpTunnelResponseCommand.h
  10926. (executeInternal): Pass the reference of segment.
  10927. To add HTTP 1.1 persistent connection support(experimental)
  10928. * src/HttpRequestCommand.cc
  10929. (executeInternal): Disable keep alive if it is disabled by
  10930. configuration.
  10931. * src/Request.h
  10932. (keepAlive): New variable.
  10933. (isKeepAlive): New function.
  10934. (setKeepAlive): New function.
  10935. * src/pref.h
  10936. (PREF_HTTP_KEEP_ALIVE): New definition.
  10937. * src/HttpResponseCommand.cc
  10938. (executeInternal): Check the remote server supports keep alive.
  10939. * src/HttpConnection.cc
  10940. (createRequest): Send "Connection: close" only if keep alive is
  10941. disabled.
  10942. * src/main.cc
  10943. (main):
  10944. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10945. To add max download speed limit:
  10946. * src/pref.h
  10947. (PREF_MAX_SPEED_LIMIT): New definition.
  10948. * src/PeerInteractionCommand.cc
  10949. (executeInternal): Added max download speed limit. Not tested yet.
  10950. * src/SegmentMan.h
  10951. (PeerStats): New type definition.
  10952. (peerStats): New variable.
  10953. (registerPeerStat): New function.
  10954. (FindPeerStat): New function object.
  10955. (getPeerStat): New function.
  10956. (calculateDownloadSpeed): New function.
  10957. * src/SpeedCalc.h: New class.
  10958. * src/SpeedCalc.cc: New class.
  10959. * src/main.cc
  10960. (main):
  10961. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10962. download speed is not restricted).
  10963. * src/PeerStat.h: New class.
  10964. * src/SegmentMan.cc
  10965. (registerPeerStat): New function.
  10966. (calculateDownloadSpeed): New function.
  10967. * src/DownloadCommand.cc
  10968. (STARTUP_IDLE_TIME): New definition.
  10969. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10970. downloadStart.
  10971. (~DownloadCommand): Call peerStat->downloadStop.
  10972. (executeInternal): Added download speed limitter. Rewritten lowest
  10973. speed limitter.
  10974. * src/HttpConnection.cc
  10975. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10976. * src/AbstractCommand.cc
  10977. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10978. Added hostname to the error message.
  10979. * src/ConsoleDownloadEngine.cc
  10980. (calculateStatistics): Initialize psize with dlSize.
  10981. * src/PieceMessage.cc
  10982. (receivedAction): Do not call peerInteraction->abortPiece here.
  10983. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10984. * src/BitfieldMan.h
  10985. (clearAllUseBit): New function.
  10986. (setAllUseBit): New function.
  10987. * src/BitfieldMan.cc
  10988. (clearAllBit): Do not clear useBitfield here.
  10989. (clearAllUseBit): New function.
  10990. (setAllUseBit): New function.
  10991. * src/Piece.cc
  10992. (clearAllBlock): Call bitfield->clearAllUseBit().
  10993. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10994. To make filename URL-decoded:
  10995. * src/HttpResponseCommand.h: Updated doc.
  10996. * src/HttpResponseCommand.cc
  10997. (determinFilename): Made filename URL-decoded.
  10998. * src/FtpInitiateConnectionCommand.cc
  10999. (executeInternal): Made filename URL-decoded.
  11000. * src/Util.h (urldecode): New function.
  11001. * src/Util.cc (urldecode): New function.
  11002. To fix a bug that caused assertion failure in ares_strerror:
  11003. * src/NameResolver.cc (callback): Fixed the bug.
  11004. * Release 0.7.3
  11005. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11006. To add --seed-time and --seed-ratio command-line option:
  11007. * src/Option.h (getAsDouble): New function.
  11008. * src/Option.cc (getAsDouble): New function.
  11009. * src/SeedCheckCommand.h: New class.
  11010. * src/SeedCheckCommand.cc: New class.
  11011. * src/DownloadEngineFactory.cc
  11012. (SeedCheckCommand.h): Included.
  11013. (UnionSeedCriteria.h): Included.
  11014. (TimeSeedCriteria.h): Included.
  11015. (ShareRatioSeedCriteria.h): Included.
  11016. (newTorrentConsoleEngine): Added the processing of seed option.
  11017. * src/SeedCriteria.h: New class.
  11018. * src/ShareRatioSeedCriteria.h: New class.
  11019. * src/TimeSeedCriteria.h: New class.
  11020. * src/UnionSeedCriteria.h: New class.
  11021. * src/prefs.h
  11022. (PREF_SEED_TIME): New definition.
  11023. (PREF_SEED_RATIO): New definition.
  11024. * src/main.cc
  11025. (showUsage): Added --seed-time and --seed-ratio option.
  11026. (main): Added --seed-time and --seed-ratio option.
  11027. Made default log file name "/dev/null".
  11028. * src/SharedHandle.h
  11029. (SharedHandle): Copy constructor. Made it assignable from the
  11030. SharedHandle of the subclasses.
  11031. (operator=): Made it assignable from the SharedHandle of the
  11032. subclasses.
  11033. (getRefCount): New function.
  11034. To add notice log level and the switch to write log to stdout. This
  11035. switch is configurable per log level.
  11036. * src/Logger.h
  11037. (notice): New function.
  11038. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11039. constant.
  11040. * src/LogFactory.cc
  11041. (getInstance): The use of NullLogger was removed. A log message with
  11042. notice log level was made written to stdout along with log file.
  11043. * src/NullLogger.h
  11044. (notice): New function.
  11045. * src/SimpleLogger.h
  11046. (writeHeader): Added the 'file' argument.
  11047. (writeLog): Added the 'file' argument.
  11048. (writeFile): New function.
  11049. (stdoutField): New variable.
  11050. (SimpleLogger): Removed the default constructor.
  11051. (SimpleLogger): Made the default value of logfile 0.
  11052. (debug): Added 'virtual' keyword.
  11053. (info): Added 'virtual' keyword.
  11054. (warn): Added 'virtual' keyword.
  11055. (error): Added 'virtual' keyword.
  11056. (notice): New function.
  11057. (setStdout): New function.
  11058. * src/SimpleLogger.cc
  11059. (WRITE_LOG): Replaced writeLog with writeFile.
  11060. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11061. (SimpleLogger): Removed the default constructor.
  11062. (setStdout): New function.
  11063. (writeLog): Added the handling of NOTICE log level.
  11064. (writeFile): New function.
  11065. (notice): New function.
  11066. * src/TorrentMan.h: Updated doc.
  11067. * src/BitfieldMan.h: Updated doc.
  11068. * src/TrackerWatcherCommand.cc
  11069. (execute): Return true if error occurred in the request to the tracker
  11070. and halt is requested.
  11071. * src/TrackerUpdateCommand.cc
  11072. (execute): Return true if error occurred in the request to the tracker
  11073. and halt is requested.
  11074. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11075. DownloadEngine:
  11076. * src/TorrentConsoleDownloadEngine.h
  11077. (onSelectiveDownloadingCompletes): Removed.
  11078. * src/TorrentConsoleDownloadEngine.cc
  11079. (onSelectiveDownloadingCompletes): Removed.
  11080. * src/TorrentDownloadEngine.h
  11081. (onEndOfRun): Added 'virtual' keyword.
  11082. (afterEachIteration): Removed.
  11083. (onSelectiveDownloadingCompletes): Removed.
  11084. * src/TorrentDownloadEngine.cc
  11085. (onEndOfRun): Removed filenameFixed.
  11086. (afterEachIteration): Removed.
  11087. * src/TorrentMan.cc
  11088. (completePiece): Call onDownloadComplete here.
  11089. (onDownloadComplete): Added 2 log messages.
  11090. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11091. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11092. * src/NameResolver.h: Added the prototype declaration of callback().
  11093. To support c-ares library:
  11094. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11095. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11096. * src/FtpInitiateConnectionCommand.h:
  11097. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11098. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11099. * src/HttpInitiateConnectionCommand.h:
  11100. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11101. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11102. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11103. #1542285 by tizianomueller)
  11104. * src/HttpInitiateConnectionCommand.cc:
  11105. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11106. * src/FtpInitiateConnectionCommand.cc:
  11107. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11108. * src/DownloadEngine.h:
  11109. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11110. * src/DownloadEngine.cc:
  11111. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11112. To fix the bug that causes compilation failure with metalink-support
  11113. disabled(bug#1543587):
  11114. * src/main.cc: Fixed with the patch by tizianomueller.
  11115. * Release 0.7.2
  11116. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11117. * src/main.cc
  11118. (main): Added a message to inform users that aria2 is starting to
  11119. verify checksum.
  11120. * src/RequestInfo.cc
  11121. (printDownloadAbortMessage): Added a message to inform users that
  11122. transfer can be resumed.
  11123. * src/FeatureConfig.cc
  11124. (FEATURE_ASYNC_DNS): New definition.
  11125. (FeatureConfig): Added aysnc DNS entry.
  11126. To replace CommandUuid with Command* in SocketEntry and
  11127. NameResolverEntry:
  11128. * src/DownloadEngine.h
  11129. (CommandUuids): Removed.
  11130. (SocketEntry::commandUuid): Removed.
  11131. (SocketEntry::command): New variable.
  11132. (SocketEntry::SocketEntry): Updated.
  11133. (SocketEntry::operator==): Updated.
  11134. (NameResolverEntry::commandUuid): Removed.
  11135. (NameResolverEntry::command): New variable.
  11136. (NameResolverEntry::NameResolverEntry): Updated.
  11137. (NameResolverEntry::operator==): Updated.
  11138. (waitData): Changed the argument type.
  11139. (addSocketForReadCheck): Changed the argument type.
  11140. (deleteSocketForReadCheck): Changed the argument type.
  11141. (addSocketForWriteCheck): Changed the argument type.
  11142. (deleteSocketForWriteCheck): Changed the argument type.
  11143. (addNameResolverCheck): Changed the argument type.
  11144. (deleteNameResolverCheck): Changed the argument type.
  11145. * src/DownloadEngine.cc
  11146. (FindCommand): Removed.
  11147. (run): Removed activeUuid. Added activeCommands instead.
  11148. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11149. (AccumulateActiveCommand): New function object.
  11150. (waitData): Use AccumulateActiveCommand.
  11151. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11152. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11153. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11154. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11155. (addNameResolverCheck): Use Command instead of CommandUuid.
  11156. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11157. * src/AbstractCommand.cc
  11158. (disableReadCheckSocket): Updated according to the changes in
  11159. DownloadEngine.
  11160. (setReadCheckSocket): Updated according to the changes in
  11161. DownloadEngine.
  11162. (disableWriteCheckSocket): Updated according to the changes in
  11163. DownloadEngine.
  11164. (setWriteCheckSocket): Updated according to the changes in
  11165. DownloadEngine.
  11166. (setNameResolverCheck): Updated according to the changes in
  11167. DownloadEngine.
  11168. (disableNameResolverCheck): Updated according to the changes in
  11169. DownloadEngine.
  11170. * src/AbstractCommand.cc
  11171. (disableReadCheckSocket): Updated according to the changes in
  11172. DownloadEngine.
  11173. (setReadCheckSocket): Updated according to the changes in
  11174. DownloadEngine.
  11175. (disableWriteCheckSocket): Updated according to the changes in
  11176. DownloadEngine.
  11177. (setWriteCheckSocket): Updated according to the changes in
  11178. DownloadEngine.
  11179. * release 0.7.1
  11180. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11181. To handle the case where some BitTorrent tracker requires all letters
  11182. except for [A-Za-z0-9] is URL encoded.
  11183. * src/Util.h
  11184. (torrentUrlencode): New function.
  11185. * src/Util.cc
  11186. (ctype.h): Included.
  11187. (torrentUrlencode): New function.
  11188. * src/TrackerWatcherCommand.cc
  11189. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11190. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11191. To add asynchronous DNS support(libares):
  11192. * src/AbstractCommand.h
  11193. (setNameResolverCheck): New function.
  11194. (disableNameResolverCheck): New function
  11195. (resolveHostname): New function.
  11196. * src/AbstractCommand.cc
  11197. (setNameResolverCheck): New function.
  11198. (disableNameResolverCheck): New function
  11199. (resolveHostname): New function.
  11200. * src/FtpInitiateConnectionCommand.h
  11201. (nameResolver): New function.
  11202. * src/FtpInitiateConnectionCommand.cc
  11203. (Util.h): Included.
  11204. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11205. disableWriteCheckSocket.
  11206. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11207. (executeInternal): Added async DNS support.
  11208. * src/HttpInitiateConnectionCommand.h
  11209. (nameResolver): New function.
  11210. * src/HttpInitiateConnectionCommand.cc
  11211. (DlRetryEx.h): Included.
  11212. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11213. disableWriteCheckSocket.
  11214. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11215. (executeInternal): Added async DNS support.
  11216. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11217. by extern "C" declaration.
  11218. * src/NameResolver.cc: New class.
  11219. * src/Util.h:
  11220. (isNumberAndDotsNotation): New function
  11221. * src/Util.cc
  11222. (isNumberAndDotsNotation): New function.
  11223. * src/DownloadEngine.h
  11224. (NameResolver.h): Included.
  11225. (NameResolverEntry): New class.
  11226. (NameResolverEntries): New type definition.
  11227. (addNameResolverCheck): New function.
  11228. (deleteNameResolverCheck): New function.
  11229. * src/DownloadEngine.cc
  11230. (run): Initialize cp with 0.
  11231. (SetDescriptor::operator()): Added for NameResolverEntry.
  11232. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11233. (waitData): Check nameResolver entries.
  11234. (updateFdSet): Update fds in nameResolver entries.
  11235. (addNameResolverCheck): New function.
  11236. (deleteNameResolverCheck): new function.
  11237. * src/PeerInteractionCommand.cc
  11238. (executeInternal): Fixed wrong socket handling.
  11239. * src/main.cc
  11240. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11241. * src/Util.cc
  11242. (fileChecksum): Removed the call to ctx.digestReset().
  11243. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11244. * po/ru.po: Azamat sent me Russian translation.
  11245. * src/FtpNegotiateCommand.cc
  11246. (recvGreeting): Call disableWriteCheckSocket just after
  11247. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11248. (recvRetr): Recognized status code 125 as a acceptable response code.
  11249. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11250. case-insesitive filesystem(BUG#1531057).
  11251. * src/Time.h: Renamed as TimeA2.h.
  11252. * src/Time.cc: Renamed as TimeA2.cc.
  11253. * src/TimeA2.h: New class.
  11254. * src/TimeA2.cc: New class.
  11255. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11256. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11257. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11258. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11259. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11260. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11261. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11262. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11263. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11264. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11265. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11266. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11267. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11268. * release 0.7.0
  11269. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11270. * src/PeerChokeCommand.h
  11271. (PeerChokeCommand): Rearranged the arguments.
  11272. * src/PeerChokeCommand.cc
  11273. (PeerChokeCommand): Rearranged the arguments.
  11274. * src/MetalinkEntry.h
  11275. (Checksum.h): Included.
  11276. (md5): Removed.
  11277. (sha1): Removed.
  11278. (checksum): New variable.
  11279. (operator=): Updated.
  11280. (check): Removed.
  11281. * src/prefs.h
  11282. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11283. (PREF_FOLLOW_TORRENT): New definition.
  11284. (PREF_SELECT_FILE): New definition.
  11285. (PREF_FOLLOW_METALINK): New definition.
  11286. * src/MetalinkResource.h
  11287. (TYPE_HTTPS): Added to enum TYPE.
  11288. * src/TorrentMan.cc
  11289. (~TorrentMan): Rewritten.
  11290. * src/MultiDiskWriter.cc
  11291. (MultiDiskAdaptor): Updated according to the changes in
  11292. MessageDigestContext.
  11293. (~MultiDiskAdaptor): Updated according to the changes in
  11294. MessageDigestContext.
  11295. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11296. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11297. * src/Util.h
  11298. (fileChecksum): Updated according to the changes in
  11299. MessageDigestContext.
  11300. * src/Util.cc
  11301. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11302. (fileChecksum): Updated according to the changes in
  11303. MessageDigestContext.
  11304. * src/messageDigest.h: Rewritten.
  11305. * src/MetalinkEntry.cc
  11306. (check): Removed.
  11307. (Supported): Updated.
  11308. (dropUnsupportedResource): Fixed a memory leak.
  11309. * src/ShaVisitor.cc
  11310. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11311. (~ShaVisitor): Updated according to the changes in
  11312. MessageDigestContext.
  11313. (visit): Updated according to the changes in MessageDigestContext.
  11314. * src/main.cc
  11315. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11316. command-line option added.
  11317. * src/DownloadEngine.h
  11318. (SocketEntry): New class.
  11319. (SocketEntries): New definition.
  11320. (PairFind): Removed.
  11321. (SockCmdMap): Removed.
  11322. * src/DownloadEngine.cc
  11323. (DownloadEngine): Rewritten.
  11324. (~DownloadEngine): Rewritten.
  11325. (run): Renamed activeCommandUuids as activeUuids.
  11326. (SetDescriptor): Rewritten.
  11327. (AccumulateActiveCommandUuid): Removed.
  11328. (AccumulateActiveUuid): New function object.
  11329. (waitData): Rewritten.
  11330. (updateFdSet): Rewritten.
  11331. (addSocket): Rewritten.
  11332. (deleteSocket): Rewritten.
  11333. (addSocketForReadCheck): Rewritten.
  11334. (deleteSocketForReadCheck): Rewritten.
  11335. (addSocketForWriteCheck): Rewritten.
  11336. (deleteSocketForWriteCheck): Rewritten.
  11337. * src/Xml2MetalinkProcessor.cc
  11338. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11339. * src/DownloadCommand.cc
  11340. (executeInternal): Added the check routine for lowest speed limit.
  11341. * src/AbstractDiskWriter.cc
  11342. (AbstractDiskWriter): Updated according to the changes in
  11343. MessageDigestContext.
  11344. (~AbstractDiskWriter): Updated according to the changes in
  11345. MessageDigestContext.
  11346. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11347. * src/RequestInfo.h: New class.
  11348. * src/UrlRequestInfo.h: New class.
  11349. * src/UrlRequestInfo.cc: New class.
  11350. * src/TorrentRequestInfo.h: New class.
  11351. * src/TorrentRequestInfo.cc: New class.
  11352. * src/MetalinkRequestInfo.h: New class.
  11353. * src/MetalinkRequestInfo.cc: New class.
  11354. * src/Checksum.h: New class.
  11355. * src/DownloadEngineFactory.h: New class.
  11356. * src/DownloadEngineFactory.cc: New class.
  11357. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11358. * src/Option.h
  11359. (getAsBool): New function.
  11360. * src/Option.cc
  11361. (prefs.h): Included.
  11362. (defined): 0-length value is now recognized as undefined.
  11363. (getAsInt): Rewritten.
  11364. (getAsLLInt): Rewritten.
  11365. (getAsBool): New function.
  11366. * src/FeatureConfig.h: Rewritten.
  11367. * src/FeatureConfig.cc: Rewritten.
  11368. * src/prefs.h
  11369. (PREF_STDOUT_LOG): New definition.
  11370. (PREF_LOG): New definition.
  11371. (PREF_DIR): New definition.
  11372. (PREF_OUT): New definition.
  11373. (PREF_SPLIT): New definition.
  11374. (PREF_DAEMON): New definition.
  11375. (PREF_REFERER): New definition.
  11376. (PREF_TORRENT_FILE): New definition.
  11377. (PREF_LISTEN_PORT): New definition.
  11378. (PREF_METALINK_FILE): New definition.
  11379. (PREF_METALINK_VERSION): New definition.
  11380. (PREF_METALINK_LANGUAGE): New definition.
  11381. (PREF_METALINK_OS): New definition.
  11382. (PREF_METALINK_SERVERS): New definition.
  11383. * src/main.cc
  11384. (main): Following command-line parameters are now put into Option
  11385. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11386. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11387. metalinkLanguage, metalinkOs, metalinkServers
  11388. To fix the bug that aria2 can not handle http response header properly.
  11389. * src/HttpHeader.cc
  11390. (put): Made name lowercased.
  11391. (defined): Made name lowercased.
  11392. (getFirst): Made name lowercased.
  11393. (get): Made name lowercased.
  11394. (getFirstAsInt): Rewritten.
  11395. (getFirstAsLLInt): Rewritten.
  11396. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11397. * src/TorrentMan.h:
  11398. (advertisePiece): Updated doc.
  11399. (getAdvertisedPieceIndexes): Updated doc.
  11400. (removeAdvertisedPiece); New function.
  11401. * src/TorrentMan.cc
  11402. (FindElapsedHave): New function object.
  11403. (removeAdvertisedPiece): New function.
  11404. * src/HaveEraseCommand.h: New class.
  11405. * src/HaveEraseCommand.cc: New class.
  11406. * src/FeatureConfig.h: New class.
  11407. * src/FeatureConfig.cc: New class.
  11408. * src/Request.h
  11409. (defaultPorts): Removed.
  11410. * src/Request.cc
  11411. (FeatureConfig.h): Included.
  11412. (Request): Removed the statements related to defaultPorts.
  11413. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11414. A default port number is now retrieved from FeatureConfig.
  11415. * src/main.cc
  11416. (HaveEraseCommand.h): Included.
  11417. (showVersion): Added the output of feature list.
  11418. (main): Added HaveEraseCommand to command queue in BitTorrent
  11419. downloading.
  11420. * src/PeerInteractionCommand.h
  11421. (chokeCheckPoint): Commented out.
  11422. (periodicExecPoint): New variable.
  11423. * src/PeerInteractionCommand.cc
  11424. (executeInternal): Following methods are now called in at least every
  11425. 0.5 seconds to reduce CPU usage:
  11426. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11427. checkHave(), sendKeepAlive().
  11428. (checkLongTimePeerChoking): Commented out.
  11429. * src/BitfieldMan.h
  11430. (getNthBitIndex): Changed the method signature.
  11431. (getMissingIndexRandomly): Changed the method signature.
  11432. * src/BitfieldMan.cc
  11433. (getNthBitIndex): Rewritten
  11434. (getMissingIndexRandomly): Rewritten.
  11435. (hasMissingPiece): Rewritten.
  11436. (getMissingIndex): Refactored.
  11437. (getMissingUnusedIndex); Refactored.
  11438. (getMissingIndex): Refactored.
  11439. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11440. * src/PeerMessage.h
  11441. (Piece.h): Included.
  11442. (SharedHandle.h): Included.
  11443. (invalidate): New variable.
  11444. (uploading): New variable.
  11445. (isInvalidate): New function.
  11446. (isUploading): New function.
  11447. (onPush): New function.
  11448. (onChoked): New function.
  11449. (onCanceled): New function.
  11450. (onAbortPiece): New function.
  11451. (PeerMessageHandle): New type definition.
  11452. * src/PeerMessage.cc
  11453. (PeerMessage): Added the initialization for invalidate and uploading.
  11454. * src/CancelMessage.h
  11455. (CancelMessage): Rewritten.
  11456. * src/RejectMessage.h
  11457. (RejectMessage): Rewritten.
  11458. * src/Metalinker.h
  11459. (operator=): Defined.
  11460. * src/MetaEntry.h
  11461. (operator=): Defined.
  11462. * src/MetalinkResource.h
  11463. (operator=): Defined.
  11464. * src/AllowedFastMessage.h
  11465. (AllowedFastMessage): Rewritten.
  11466. * src/HandshakeMessage.h
  11467. (HandshakeMessage): New function(overload).
  11468. * src/HandshakeMessage.cc
  11469. (HandshakeMessage): Rewritten.
  11470. (init): New function.
  11471. * src/HaveMessage.h
  11472. (HaveMessage): Rewritten.
  11473. * src/Time.h
  11474. (operator=): Defined the function body here.
  11475. * src/Time.cc
  11476. (operator=): Removed.
  11477. * src/SocketCore.h
  11478. (operator==): Defined here.
  11479. (operator!=): Defined here.
  11480. (operator<): Defined here.
  11481. * src/SocketCore.cc
  11482. (operator==): Removed.
  11483. (operator<): Removed.
  11484. * src/BitfieldMan.h
  11485. (operator=): Defined the function body here.
  11486. * src/BitfieldMan.cc
  11487. (operator=): Removed.
  11488. * src/TorrentMan.h
  11489. (deleteErrorPeer): Removed.
  11490. (deleteUnusedPeer); New function.
  11491. * src/TorrentMan.cc
  11492. (addPeer): Call deleteUnusedPeer.
  11493. (deleteErrorPeer): Removed.
  11494. (deleteUnusedPeer): New function.
  11495. * src/PeerAbstractCommand.h
  11496. (setNoCheck): New function.
  11497. (noCheck): New variable.
  11498. * src/PeerAbstractCommand.cc
  11499. (PeerAbstractCommand): Added the initialization of noCheck.
  11500. (execute): Added a check for noCheck.
  11501. (setNoCheck): New function.
  11502. * src/Util.h
  11503. (stdio.h): Included.
  11504. * src/Util.cc
  11505. (unistd.h): Included.
  11506. * src/DefaultDiskWriter.cc
  11507. (unistd.h): Included.
  11508. * src/Peer.h
  11509. (operator==): Defined the function body here.
  11510. (operator!=): Defined the function body here.
  11511. * src/Peer.cc
  11512. (operator==): Removed.
  11513. (operator!=): Removed.
  11514. * src/Piece.h
  11515. (Piece): Defined the function body here(copy constructor).
  11516. (operator=): Defined the function body here.
  11517. (operator==): Defined the function body here.
  11518. * src/Piece.cc
  11519. (Piece): Removed(copy constructor).
  11520. (operator=): Removed.
  11521. (operator==): Removed.
  11522. * src/PeerMessageUtil.h
  11523. (ChokeMessage.h): Removed.
  11524. (UnchokeMessage.h): Removed.
  11525. (InterestedMessage.h): Removed.
  11526. (NotInterestedMessage.h): Removed.
  11527. (HaveMessage.h): Removed.
  11528. (BitfieldMessage.h): Removed.
  11529. (RequestMessage.h): Removed.
  11530. (CancelMessage.h): Removed.
  11531. (PieceMessage.h): Removed.
  11532. (HandshakeMessage.h): Removed.
  11533. (KeepAliveMessage.h): Removed.
  11534. (PortMessage.h): Removed.
  11535. (HaveAllMessage.h): Removed.
  11536. (HaveNoneMessage.h): Removed.
  11537. (PeerConnection.h): Removed.
  11538. (HandshakeMessage.h): Included.
  11539. * src/BitfieldMessage.h
  11540. (init): New function.
  11541. (BitfieldMessage): Rewritten.
  11542. (BitfieldMessage): New function(overload).
  11543. * src/RequestSlot.h
  11544. (operator=): Defined the function body here.
  11545. (operator==): Defined the function body here.
  11546. * src/RequestSlot.cc
  11547. (operator=): Removed.
  11548. (operator==): Removed.
  11549. To remove the dependency on the PeerMessage subclass from
  11550. PeerInteraction:
  11551. * src/PeerMessageFactory.h: New class.
  11552. * src/PeerMessageFactory.cc: New class.
  11553. * src/SimplePeerMessage.cc
  11554. (send): If invalidate is true then do nothing.
  11555. * src/PeerInteractionCommand.cc
  11556. (HandshakeMessage.h): Included.
  11557. (KeepAliveMessage.h): Included.
  11558. (ChokeMessage.h): Included.
  11559. (UnchokeMessage.h): Included.
  11560. (HaveMessage.h): Included.
  11561. (executeInternal): Call setNoCheck().
  11562. Removed setWriteCheckSocket(socket).
  11563. * src/PeerInteraction.h
  11564. (ChokeMessage.h): Removed.
  11565. (UnchokeMessage.h): Removed.
  11566. (InterestedMessage.h): Removed.
  11567. (NotInterestedMessage.h): Removed.
  11568. (HaveMessage.h): Removed.
  11569. (BitfieldMessage.h): Removed.
  11570. (RequestMessage.h): Removed.
  11571. (CancelMessage.h): Removed.
  11572. (PieceMessage.h): Removed.
  11573. (HandshakeMessage.h): Removed.
  11574. (KeepAliveMessage.h): Removed.
  11575. (PortMessage.h): Removed.
  11576. (HaveAllMessage.h): Removed.
  11577. (HaveNoneMessage.h): Removed.
  11578. (RejectMessage.h): Removed.
  11579. (AllowedFastMessage.h): Removed.
  11580. (SuggestPieceMessage.h): Removed.
  11581. (PeerMessageFactory.h): Included.
  11582. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11583. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11584. (PeerMessageFactory): New variable.
  11585. (createPeerMessage): Removed.
  11586. (createHandshakeMessage): Removed.
  11587. (setPeerMessageCommonProperty): Removed.
  11588. (addRequestSlot): New function.
  11589. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11590. (getPeerMessageFactory): New function.
  11591. (createRequestMessage): Removed.
  11592. (createCancelMessage): Removed.
  11593. (createPieceMessage): Removed.
  11594. (createHaveMessage): Removed.
  11595. (createChokeMessage): Removed.
  11596. (createUnchokeMessage): Removed.
  11597. (createInterestedMessage): Removed.
  11598. (createNotInterestedMessage): Removed.
  11599. (createBitfieldMessage): Removed.
  11600. (createKeepAliveMessage): Removed.
  11601. (createHaveAllMessage): Removed.
  11602. (createHaveNoneMessage): Removed.
  11603. (createRejectMessage): Removed.
  11604. (createAllowedFastMessage): Removed.
  11605. * src/PeerInteraction.cc
  11606. (PeerInteraction): Allocate PeerMessageFactory here.
  11607. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11608. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11609. PieceMessage::ID.
  11610. (addMessage): Simplified by using PeerMessage::onPush().
  11611. (addRequestSlot): New function.
  11612. (rejectAllPieceMessageInQueue): Simplified by using
  11613. PeerMessage::onChoked().
  11614. (rejectPieceMessageInQueue): Simplified by using
  11615. PeerMessage::onCanceled().
  11616. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11617. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11618. (createHandshakeMessage): Removed.
  11619. (createPeerMessage): Removed.
  11620. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11621. (setPeerMessageCommonProperty): Removed.
  11622. (createRequestMessage): Removed.
  11623. (createCancelMessage): Removed.
  11624. (createPieceMessage): Removed.
  11625. (createHaveMessage): Removed.
  11626. (createChokeMessage): Removed.
  11627. (createUnchokeMessage): Removed.
  11628. (createInterestedMessage): Removed.
  11629. (createNotInterestedMessage): Removed.
  11630. (createBitfieldMessage): Removed.
  11631. (createKeepAliveMessage): Removed.
  11632. (createHaveAllMessage): Removed.
  11633. (createHaveNoneMessage): Removed.
  11634. (createRejectMessage): Removed.
  11635. (createAllowedFastMessage): Removed.
  11636. * src/PieceMessage.h
  11637. (createRejectMessage): New function.
  11638. (PieceMessage): Rewritten.
  11639. (onChoked): New function.
  11640. (onCanceled): New function.
  11641. * src/PieceMessage.cc
  11642. (send): If invalidate is true then do nothing, just return.
  11643. (createRejectMessage): New function.
  11644. (onChoked): New function.
  11645. (onCanceled): New function.
  11646. * src/RequestMessage.h
  11647. (RequestMessage): Rewritten.
  11648. (onPush): New function.
  11649. (onAbortPiece): New function.
  11650. * src/RequestMessage.cc
  11651. (onPush): New function.
  11652. (onAbortPiece): New function.
  11653. Update fd_set when a socket is added or deleted in order to improve
  11654. performance:
  11655. * src/DownloadEngine.h
  11656. (rfdset): New variable.
  11657. (wfdset): New variable.
  11658. (updateFdSet): New function.
  11659. * src/DownloadEngine.cc
  11660. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11661. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11662. (waitData): Copy rfdset and wfdset.
  11663. (updateFdSet): New function.
  11664. (addSocket): Call updateFdSet.
  11665. (deleteSocket): Call updateFdSet.
  11666. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11667. To add the support for Metalink3.0 backward compatible links:
  11668. * src/Request.h
  11669. (SAFE_CHARS): Added '#'.
  11670. (METALINK_MARK): New definition.
  11671. * src/Request.cc
  11672. (parseUrl): Added the support for Metalink3.0 backward compatible
  11673. links.
  11674. etc
  11675. * src/PeerInteraction.cc
  11676. (MsgPushBack): Removed.
  11677. (sendMessages): Use STL copy and back_inserter.
  11678. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11679. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11680. * src/TorrentMan.h
  11681. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11682. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11683. * src/SharedHandle.h: New class.
  11684. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11685. * src/HttpResponseCommand.h
  11686. (HttpResponseCommand): Wrapped Socket.
  11687. * src/SocketCore.h
  11688. (operator==): New function.
  11689. (operator!=): New function.
  11690. (operator<): New function.
  11691. (getSockfd): New function.
  11692. (isOpen): New function.
  11693. (writeData): New function.
  11694. * src/SocketCore.cc
  11695. (operator==): New function.
  11696. (operator!=): New function.
  11697. (operator<): New function.
  11698. * src/AbstractCommand.h
  11699. (socket): Changed its type to SocketHandle.
  11700. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11701. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11702. (disableReadCheckSocket): New function.
  11703. (disableWriteCheckSocket): New function.
  11704. (readCheckTarget): Changed its type to SocketHandle.
  11705. (writeCheckTarget): Changed its type to SocketHandle.
  11706. (AbstractCommand): Replaced Socket with SocketHandle.
  11707. * src/AbstractCommand.cc
  11708. (AbstractCommand): Replaced Socket with SocketHandle.
  11709. (~AbstractCommand): Removed the deallocation for Socket object.
  11710. (disableReadCheckSocket): New function.
  11711. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11712. (disableWriteCheckSocket): New function.
  11713. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11714. * src/HttpDownloadCommand.cc
  11715. (DownloadCommand): Replaced Socket with SocketHandle.
  11716. * src/PeerAbstractCommand.h
  11717. (socket): Changed its type to SocketHandle.
  11718. (peer): Changed its type to PeerHandle.
  11719. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11720. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11721. (disableReadCheckSocket): New function.
  11722. (disableWriteCheckSocket): New function.
  11723. (readCheckTarget): Changed its type to SocketHandle.
  11724. (writeCheckTarget): Changed its type to SocketHandle.
  11725. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11726. Replaced Peer with PeerHandle.
  11727. * src/HttpRequestCommand.cc
  11728. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11729. Use disableReadCheckSocket.
  11730. * src/PeerInitiateConnectionCommand.h
  11731. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11732. * src/PeerChokeCommand.cc
  11733. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11734. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11735. (execute): Use PeerHandle.
  11736. * src/PeerConnection.h
  11737. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11738. (socket): Changed its type to SocketHandle.
  11739. (PeerConnection): Replaced Socket with SocketHandle.
  11740. * src/PeerConnection.cc
  11741. (PeerConnection): Replaced Socket with SocketHandle.
  11742. * src/PeerInteractionCommand.h
  11743. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11744. Replaced Peer with PeerHandle.
  11745. * src/PeerInteractionCommand.cc
  11746. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11747. Replaced Peer with PeerHandle.
  11748. (executeInternal): Use disableWriteCheckSocket.
  11749. Use HandshakeMessageHandle.
  11750. (receiveMessages): Use PeerMessageHandle.
  11751. (prepareForNextPeer): Use PeerHandle.
  11752. * src/HttpProxyRequestCommand.h
  11753. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11754. * src/HttpResponseCommand.cc
  11755. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11756. * src/TorrentMan.cc
  11757. (nullPeer): Added external reference.
  11758. (~TorrentMan): Removed the deallocation of the elements of peers.
  11759. (addPeer): Rewritten.
  11760. (isPeerAvailable): Use nullPeer.
  11761. (deleteOldpeers): Replaced with deleteErrorPeer.
  11762. (deleteErrorPeer): New function.
  11763. (getPeer): Use PeerHandle and nullPeer.
  11764. (hasMissingPiece): Replaced Peer with PeerHandle.
  11765. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11766. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11767. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11768. (getMissingPiece): Replaced Peer with PeerHandle.
  11769. * src/FtpNegotiateCommand.cc
  11770. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11771. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11772. (recvGreeting): Use disableWriteCheckSocket.
  11773. (recvPasv): Removed the allocation of Socket.
  11774. Use disableReadCheckSocket.
  11775. (sendRestPasv): Use disableWriteCheckSocket.
  11776. (recvRetr): Changed assertion.
  11777. * src/PeerInteraction.h
  11778. (SharedHandle.h): Included SharedHandle.h.
  11779. (PeerMessageHandle): New type definition.
  11780. (HandshakeMessageHandle): New type definition.
  11781. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11782. (peer): Changed its type to PeerHandle.
  11783. (createHandshakeMessage): Replaced HandshakeMessage with
  11784. HandshakeMessageHandle.
  11785. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11786. (PeerInteraction): Replaced Peer with PeerHandle.
  11787. Replaced Socket with SocketHandle.
  11788. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11789. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11790. (receiveHandshake): Replaced HandshakeMessage with
  11791. HandshakeMessageHandle.
  11792. * src/PeerInteraction.cc
  11793. (PeerInteraction): Replaced Peer with PeerHandle.
  11794. Replaced Socket with SocketHandle.
  11795. (~PeerInteraction): Removed the deallocation of the elements of
  11796. messageQueue.
  11797. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11798. (isSendingMessageInProgress): Replaced PeerMessage with
  11799. PeerMessageHandle.
  11800. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11801. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11802. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11803. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11804. (abortPiece): Use PeerMessageHandle.
  11805. (receiveHandshake): Replaced HandshakeMessage with
  11806. HandshakeMessageHandle. Removed try-catch block.
  11807. (createHandshakeMessage): Replaced HandshakeMessage with
  11808. HandshakeMessageHandle.
  11809. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11810. Removed try-catch block.
  11811. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11812. * src/HttpProxyResponseCommand.cc
  11813. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11814. * src/FtpTunnelResponseCommand.h
  11815. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11816. * src/HttpConnection.cc
  11817. (HttpConnection): Replaced Socket with SocketHandle.
  11818. * src/PeerAbstractCommand.cc
  11819. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11820. (~PeerAbstractCommand): Removed the deallocation of socket.
  11821. Use disableReadCheckSocket, disableWriteCheckSocket.
  11822. (disableReadCheckSocket): New function.
  11823. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11824. (disableWriteCheckSocket): New function.
  11825. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11826. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11827. * src/FtpTunnelRequestCommand.cc
  11828. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11829. (~FtpTunnelRequestCommand): Corrected indentation.
  11830. * src/DownloadCommand.h
  11831. (DownloadCommand): Replaced Socket with SocketHandle.
  11832. * src/PeerListenCommand.cc
  11833. (PeerListenCommand): Removed the initialization of socket.
  11834. (~PeerListenCommand): Removed the deallocation of socket.
  11835. (bindPort): Use SocketHandle.
  11836. (execute): Use SocketHandle and PeerHandle.
  11837. * src/FtpDowndloadCommand.cc
  11838. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11839. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11840. * src/main.cc
  11841. (main): Corrected indentation.
  11842. * src/HttpInitiateConnectionCommand.cc
  11843. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11844. (executeInternal): Removed the allocation of socket.
  11845. * src/HttpRequestCommand.h
  11846. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11847. * src/FtpNegotiationCommand.h
  11848. (dataSocket): Changed its type to SocketHandle.
  11849. (serverSocket): Changed its type to SocketHandle.
  11850. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11851. * src/TorrentMan.h
  11852. (MAX_PEER_UPDATE): Removed.
  11853. (MAX_PEERS): New definition.
  11854. (Peers): The element is now of type PeerHandle.
  11855. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11856. (getPeer): Replaced Peer with PeerHandle.
  11857. (deleteOldErrorPeers): Removed.
  11858. (deleteErrorPeer): New function.
  11859. (hasMissingPiece): Replaced Peer with PeerHandle.
  11860. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11861. (getMissingPiece): Replaced Peer with PeerHandle.
  11862. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11863. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11864. (addActivePeer): Replaced Peer with PeerHandle.
  11865. (deleteActivePeer): Replaced Peer with PeerHandle.
  11866. Added a check for the return value of find.
  11867. * src/FtpTunnelResponseCommand.cc
  11868. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11869. * src/FtpInitiateConnectionCommand.cc
  11870. (executeInternal): Removed the allocation of socket.
  11871. * src/DownloadEngine.h
  11872. (Sockets): An element is now of type SocketHandle.
  11873. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11874. (CommandUuids): New type definition.
  11875. (rsockets): Changed its type to SockCmdMap.
  11876. (wsockets): Changed its type to SockCmdMap.
  11877. (addSocket): Rewritten.
  11878. (deleteSocket): Rewritten.
  11879. (addSocketForReadCheck): Rewritten.
  11880. (deleteSocketForReadCheck): Rewritten.
  11881. (addSocketForWriteCheck): Rewritten.
  11882. (deleteSocketForWriteCheck): Rewritten.
  11883. (PairFind): New template class.
  11884. * src/HttpDownloadCommand.h
  11885. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11886. * src/FtpConnection.cc
  11887. (FtpConnection): Replaced Socket with SocketHandle.
  11888. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11889. block.
  11890. * src/InitiateConnectionCommandFactory.cc
  11891. (DlAbortEx.h): Included DlAbortEx.h.
  11892. (createInitiateConnectionCommand): Throw exception if the protocol of
  11893. requested URI is not supported.
  11894. * src/Peer.cc
  11895. (nullPeer): Changed its type to PeerHandle.
  11896. (operator==): New function.
  11897. (operator!=): New function.
  11898. * src/Peer.h
  11899. (SharedHandle.h): Included SharedHandle.h.
  11900. (operator==): New function.
  11901. (operator!=): New function.
  11902. (Peer): Added the default constructor.
  11903. Use resetStatus() to initialize member variables.
  11904. (nullPeer): Removed.
  11905. * src/TrackerUpdateCommand.cc
  11906. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11907. with MIN_PEERS.
  11908. * src/PeerListenCommand.h
  11909. (socket): Changed its type to SocketHandle.
  11910. * src/Command.h
  11911. (CommandUuid): New type definition.
  11912. (uuid): New variable.
  11913. (uuidGen): New variable.
  11914. (Command): Added the initialization of uuid.
  11915. (getUuid): New function.
  11916. * src/Socket.h
  11917. (Socket): Removed.
  11918. (SocketHandle): New type definition.
  11919. * src/DownloadEngine.h
  11920. (FindCommand): New function object.
  11921. (run): The portion of socket check was rewritten.
  11922. (SetDescriptor): New function object.
  11923. (AccumulateActiveCommandUuid): New function object.
  11924. (waitData): Rewritten.
  11925. (addSocket): Rewritten.
  11926. (deleteSocket): Rewritten.
  11927. (addSocketForReadCheck): Rewritten.
  11928. (addSocketForWriteCheck): Rewritten.
  11929. (deleteSocketForReadCheck): Rewritten.
  11930. (deleteSocketForWriteCheck): Rewritten.
  11931. * src/HttpProxyResponseCommand.h
  11932. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11933. * src/HttpConnection.h
  11934. (socket): Changed its type to SocketHandle.
  11935. (HttpConnection): Replaced Socket with SocketHandle.
  11936. * src/PeerInitiateConnectionCommand.cc
  11937. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11938. (executeInternal): Removed the allocation of socket.
  11939. (prepareForNextPeer): Use PeerHandle.
  11940. * src/PeerMessage.h
  11941. (peer): Changed its type to PeerHandle.
  11942. (getPeer): Replaced Peer with PeerHandle.
  11943. (setPeer): Replaced Peer with PeerHandle.
  11944. * src/DownloadCommand.cc
  11945. (DownloadCommand): Replaced Socket with SocketHandle.
  11946. * src/FtpConnection.h
  11947. (socket): Changed its type to SocketHandle.
  11948. (FtpConnection): Replaced Socket with SocketHandle.
  11949. (sendPort); Replaced Socket with SocketHandle.
  11950. * src/FtpDowndloadCommand.h
  11951. (ctrlSocket): Changed its type to SocketHandle.
  11952. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11953. * src/HttpProxyRequestCommand.cc
  11954. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11955. * src/FtpTunnelRequestCommand.h
  11956. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11957. etc
  11958. * src/PeerChokeCommand.h
  11959. (setAllPeerChoked): Removed.
  11960. (setAllPeerResetDelta): Removed.
  11961. * src/PeerChokeCommand.cc
  11962. (setAllPeerChoked): Removed.
  11963. (ChokePeer): New function object.
  11964. (setAllPeerResetDelta): Removed.
  11965. (ResetDelta): New function object.
  11966. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11967. (execute): Show download speed when the local node is a seeder.
  11968. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11969. using STL.
  11970. * src/TrackerWatcherCommand.h
  11971. (MIN_PEERS): Removed.
  11972. * src/TorrentMan.cc
  11973. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11974. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11975. To fix the bug that .aria2 file is not saved if downloading is stopped
  11976. by the errors:it results that aria2 can not resume downloading:
  11977. * src/main.cc
  11978. (normalDownload): Added the call to save().
  11979. (main): Added the deletion of the elements in 'reserved'.
  11980. To fix log:
  11981. * src/PeerInteraction.cc
  11982. (receiveHandshake): Fixed log.
  11983. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11984. To improve download performance in BitTorrent:
  11985. * src/TorrentMan.cc
  11986. (getPeer): Check the number of connections. Return nullPeer if
  11987. it is greater than MAX_PEER_UPDATE.
  11988. This code was originally here, but was removed in 0.5.1.
  11989. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11990. To improve the conditional compilation:
  11991. * src/MultiDiskWriter.h:
  11992. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11993. * src/MultiDiskWriter.cc:
  11994. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11995. * src/Util.h:
  11996. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11997. Added ENABLE_BITTORRENT around computeFastSet().
  11998. * src/Util.cc:
  11999. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12000. Added ENABLE_BITTORRENT around computeFastSet().
  12001. * src/messageDigest.h:
  12002. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12003. * src/ShaVisitor.h:
  12004. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12005. * src/ShaVisitor.cc:
  12006. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12007. * src/main.cc:
  12008. Added ENABLE_BITTORRENT around includes and blocks related to
  12009. BitTorrent.
  12010. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12011. digest support is not available.
  12012. * src/AbstractDiskWriter.h:
  12013. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12014. * src/AbstractDiskWriter.cc:
  12015. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12016. * src/MetalinkEntry.cc
  12017. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12018. support is not available.
  12019. To add command-line options for Metalink:
  12020. * src/main.cc:
  12021. Added metalink-version, metalink-language, metalink-os,
  12022. follow-metalink.
  12023. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12024. * src/main.cc: Use these definition.
  12025. * Release 0.6.0
  12026. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12027. To add Metalink support(http/ftp only):
  12028. * src/AbstractCommand.h
  12029. (tryReserved): New function.
  12030. * src/AbstractCommand.cc
  12031. (execute): Call tryReserved().
  12032. (tryReserved): New function.
  12033. * src/Request.h
  12034. (Requests): New type definition.
  12035. * src/SegmentMan.h
  12036. (reserved): New variable.
  12037. * src/Util.h
  12038. (fileChecksum): New function.
  12039. (toUpper): New function.
  12040. (toLower): New function.
  12041. * src/Util.cc
  12042. (messageDigest.h): Included.
  12043. (trim): Trim \r\n\t.
  12044. (fileChecksum): New function.
  12045. (toUpper): New function.
  12046. (toLower): New function.
  12047. * src/main.cc
  12048. (normalDownload): New function.
  12049. (main): Added 2 command-line options: metalink-file,
  12050. metalink-connection. Their usage has not been written yet.
  12051. * src/MetalinkProcessor.h: New class.
  12052. * src/Xml2MetalinkProcessor.h: New class.
  12053. * src/Xml2MetalinkProcessor.cc: New class.
  12054. * src/MetalinkEntry.h: New class.
  12055. * src/MetalinkEntry.cc: New class.
  12056. * src/MetalinkResource.h: New class.
  12057. * src/MetalinkResource.cc: New class.
  12058. To add md5 message digest checking:
  12059. * src/messageDigest.h: Rewritten.
  12060. * src/MultiDiskWriter.cc: Updated according to the changes in
  12061. messageDigest.h.
  12062. * src/ShaVisitor.cc: Updated according to the changes in
  12063. messageDigest.h.
  12064. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12065. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12066. messageDigest.h.
  12067. To fix a bug that causes segfault when the payload length in peer
  12068. message is less than 0:
  12069. * src/PeerConnection.cc:
  12070. (receiveMessage): Fixed the bug.
  12071. * src/PeerMessageUtil.cc
  12072. (checkLength): Throw an exception if length is less than or equals to
  12073. 0.
  12074. To add new interfaces to Base64 encoding/decoding:
  12075. * src/Base64.h
  12076. (part_encode): Changed the method signature.
  12077. (encode): New function(overload).
  12078. (decode): New function(overload).
  12079. * src/Base64.cc
  12080. (part_encode): Rewritten.
  12081. (encode): Rewritten.
  12082. (encode): New function(overload).
  12083. To prevent a peer to download same piece if there is an error in
  12084. checksum:
  12085. * src/PieceMessage.cc
  12086. (receivedAction): Call peerInteraction->abortPiece().
  12087. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12088. To fix the bug that causes same have message is sent many times to
  12089. a single peer.
  12090. * src/Time.cc
  12091. (isNewer): Use Util::difftv().
  12092. * src/Util.cc
  12093. (difftv): Added a cast to (long long int).
  12094. * src/TorrentMan.cc
  12095. (advertisePiece): Use push_front.
  12096. (getAdvertisedPieceIndexes): A performance improvement was made.
  12097. To fix the bug that sends tracker requests without a sleep interval
  12098. when the number of connections is less than 15.
  12099. * src/TrackerWatcherCommand.cc
  12100. (execute): Now the number of connections is not a factor to decide
  12101. whether or not a tracker request should be sent or not.
  12102. * src/Time.h
  12103. (setTimeInSec): New function.
  12104. * src/Time.cc
  12105. (setTimeInSec): New function.
  12106. etc.
  12107. * src/ChokeMessage.cc
  12108. (receivedAction): Removed peer->snubbing = false
  12109. * src/PeerConnection.h
  12110. (receiveHandshake): Updated doc.
  12111. * src/TorrentMan.h
  12112. (getAdvertisedPieceIndexes): Updated the method signature.
  12113. * src/TorrentMan.cc
  12114. (getAdvertisedPieceIndexes): Updated the method signature.
  12115. * src/Time.h
  12116. (getTimeInMicros): Added a cast to (long long int).
  12117. (getTimeInMillis): Added a cast to (long long int).
  12118. * Release 0.5.2
  12119. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12120. To make a listening socket non-block:
  12121. * src/SocketCore.h
  12122. (setNonBlockingMode): New function.
  12123. * src/SocketCore.cc
  12124. (setNonBlockingMode): New function.
  12125. (beginListen): Added a call to setNonBlockingMode().
  12126. (acceptConnection): Call setNonBlockingMode().
  12127. (setBlockingMode): Updated.
  12128. To handle tracker's NAT-checking:
  12129. * src/PeerConnection.cc
  12130. (receiveHandshake): 'msg' param is filled with received data and
  12131. its length is assigned to 'length' param, even if all handshake
  12132. message is not yet received.
  12133. * src/PeerInteractionCommand.cc
  12134. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12135. a new peer connects to localhost.
  12136. A call to peerInteraction->sendHandshake() was removed because
  12137. it is called from peerInteraction->receiveHandshake(true).
  12138. * src/PeerInteraction.h
  12139. (quickReplied): New variable.
  12140. (receiveHandshake): Added an argument.
  12141. * src/PeerInteraction.cc
  12142. (PeerInteraction): Added the initialization of quickReplied.
  12143. (receiveHandshake): Send handshake message as soon as the info hash
  12144. in a handshake message from a peer is correct.
  12145. To change the random part of peer id and key parameter:
  12146. * src/TorrentMan.h
  12147. (key): New variable.
  12148. * src/TorrentMan.cc
  12149. (setupInternal1): Use Util::randomAlpha() to generate random part
  12150. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12151. key is also generated by Util::randomAlpha() and it is now 8 character
  12152. long.
  12153. * src/Util.h
  12154. (randomAlpha): New function.
  12155. * src/Util.cc
  12156. (randomAlpha): New function.
  12157. * src/TrackerWatcherCommand.cc
  12158. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12159. Added no_peer_id=1.
  12160. Set snubbing flag to false when a choke message is received from a
  12161. snubbed peer.
  12162. * src/ChokeMessage.cc
  12163. (receivedAction): Set snubbing flag to false.
  12164. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12165. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12166. * src/SimpleLogger.h (writeHeader): New function.
  12167. * src/SimpleLogger.cc (writeHeader): New function.
  12168. (writeLog): Fixed the bug that causes segfaults if exception message
  12169. contains an unescaped "%" character.
  12170. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12171. when a tracker request fails.
  12172. * src/Request.cc (parseUrl): Query string is now handled properly.
  12173. * Release 0.5.1
  12174. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12175. To add Time class which represents a specific instant in time and
  12176. its precision is microseconds. Time checking procedures were rewritten
  12177. using this object.
  12178. * src/Time.h: New class.
  12179. * src/Time.cc: New class.
  12180. * src/AbstractCommand.h
  12181. (updateCheckPoint): Removed.
  12182. (isTimeoutDetected): Removed.
  12183. (checkPoint): Changed the type to Time.
  12184. (timeout): New variable.
  12185. (setTimeout): New function.
  12186. * src/AbstractCommand.cc
  12187. (AbstractCommand): Removed the initialization of checkPoint.
  12188. Added the initialization of timeout.
  12189. (updateCheckPoint): Removed.
  12190. (isTimeoutDetected): Removed.
  12191. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12192. * src/PeerChokeCommand.h
  12193. (checkPoint): Changed the type to Time.
  12194. * src/PeerChokeCommand.cc
  12195. (PeerChokeCommand): Removed the initialization of checkPoint.
  12196. (execute): Rewritten using Time object.
  12197. * src/TrackerWatcherCommand.h
  12198. (checkPoint): Changed the type to Time.
  12199. * src/TrackerWatcherCommand.cc
  12200. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12201. (execute): Rewritten.
  12202. * src/ConsoleDownloadEngine.h
  12203. (cp): Changed the type to Time.
  12204. (startup): Changed the type to Time.
  12205. * src/ConsoleDownloadEngine.cc
  12206. (initStatistics): Use cp.reset(), startup.reset().
  12207. (calculateStatistics): Rewritten using Time object.
  12208. * src/PeerAbstractCommand.h
  12209. (updateCheckPoint): Removed.
  12210. (isTimeoutDetected): Removed.
  12211. (checkPoint): Changed the type to Time.
  12212. * src/PeerAbstractCommand.cc
  12213. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12214. (updateCheckPoint): Removed.
  12215. (isTimeoutDetected): Removed.
  12216. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12217. * src/PeerInteractionCommand.cc
  12218. (PeerInteractionCommand): Removed the initializations of struct
  12219. timeval variables.
  12220. * src/PeerInteractionCommand.h
  12221. (keepAliveCheckPoint): Changed the type to Time.
  12222. (chokeCheckPoint): Changed the type to Time.
  12223. (freqCheckPoint): Changed the type to Time.
  12224. (haveCheckTime): Changed the type to Time.
  12225. * src/PeerInteractionCommand.cc
  12226. (executeInternal): Rewritten using Time object.
  12227. (detectMessageFlooding): Rewritten using Time object.
  12228. (checkLongTimePeerChoking): Rewritten using Time object.
  12229. (sendKeepAlive): Rewritten using Time object.
  12230. (checkHave): Rewritten using Time object.
  12231. * src/SleepCommand.h
  12232. (checkPoint): Changed the type to Time.
  12233. * src/SleepCommand.cc
  12234. (SleepCommand): Removed the initialization of checkPoint.
  12235. (execute): Rewritten using Time object.
  12236. * src/TorrentAutoSaveCommand.h
  12237. (checkPoint): Changed the type to Time.
  12238. * src/TorrentAutoSaveCommand.cc
  12239. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12240. (execute): Rewritten.
  12241. * src/DownloadCommand.h
  12242. (sw): Changed the type to Time.
  12243. * src/DownloadCommand.cc
  12244. (DownloadCommand): Removed the initialization of sw.
  12245. (executeInternal): Rewritten.
  12246. * src/RequestSlot.h
  12247. (dispatchedTime): Changed the type to Time.
  12248. * src/RequestSlot.cc
  12249. (RequestSlot): Removed the call to setDispatchedTime().
  12250. (setDispatchedTime): Rewirtten.
  12251. (isTimeout): Rewritten.
  12252. (getLatencyInMillis): Rewritten.
  12253. * src/TorrentDownloadEngine.h
  12254. (cp): Changed the type to Time[2].
  12255. (startup): Changed the type to Time.
  12256. * src/TorrentDownloadEngine.cc
  12257. (initStatistics): Rewritten.
  12258. (calculateStatistics): Rewritten.
  12259. * src/DownloadEngine.cc
  12260. (run): Rewritten.
  12261. To detect all attempts to connect to the tracker are failed:
  12262. * src/AbstractCommand.cc
  12263. (execute): Increment e->segmentMan->errors if a command aborted.
  12264. * src/SegmentMan.h
  12265. (errors): New variable.
  12266. * src/SegmentMan.cc
  12267. (SegmentMan): Added the initialization of errors.
  12268. (init): Added the initialization of errors.
  12269. * src/TrackerWatcherCommand.cc
  12270. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12271. request was failed.
  12272. To handle snubbed peers:
  12273. * src/PeerChokeCommand.cc
  12274. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12275. (execute): Snubbed peers don't get unchoked.
  12276. * src/PeerInteraction.h
  12277. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12278. * src/PeerInteraction.cc
  12279. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12280. back the requested 16k block in 60 seconds.
  12281. * src/PieceMessage.cc
  12282. (receivedAction): A peer's snubbed state is cleard if it sends
  12283. the requested 16k block in 60 seconds.
  12284. * src/Peer.h
  12285. (snubbing): New variable.
  12286. * src/Peer.cc
  12287. (resetStatus): Added snubbed = false.
  12288. To fix the bug that causes have message is not sent:
  12289. * src/PeerInteractionCommand.cc
  12290. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12291. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12292. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12293. * src/TorrentMan.h
  12294. (HaveEntry): New class.
  12295. (advertisePiece): Rewritten.
  12296. (getAdvertisedPieceIndexes): Rewritten.
  12297. (Haves): Changed the type.
  12298. (getAdvertisedPieceIndexes): Added an argument.
  12299. Others:
  12300. * src/TorrentMan.h
  12301. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12302. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12303. * src/TorrentMan.cc
  12304. (getPeer): Don't check the number of connections here.
  12305. (setupInternal1): Changed peerId.
  12306. * src/PeerInteractionCommand.h
  12307. (KEEP_ALIVE_INTERVAL): New definition.
  12308. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12309. * src/main.cc
  12310. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12311. * src/DownloadEngine.h: Removed unnecessary header includes.
  12312. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12313. To fix the bug that causes segfaults if a tracker returns a zero-length
  12314. list as "peers":
  12315. * src/TrackerUpdateCommand.cc
  12316. (execute): Added a check to see wether the type of peers is Data*.
  12317. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12318. * Release 0.5.0
  12319. To fix compile issue with gcc3:
  12320. * src/CancelMessage.h
  12321. (ID): Renamed as ID_t
  12322. (ID_t): New enum.
  12323. * src/RejectMessage.h
  12324. (ID): Renamed as ID_t
  12325. (ID_t): New enum.
  12326. * src/SuggestPieceMessage.h
  12327. (ID): Renamed as ID_t
  12328. (ID_t): New enum.
  12329. * src/AllowedFastMessage.h
  12330. (ID): Renamed as ID_t
  12331. (ID_t): New enum.
  12332. * src/PortMessage.h
  12333. (ID): Renamed as ID_t
  12334. (ID_t): New enum.
  12335. * src/HaveNoneMessage.h
  12336. (ID): Renamed as ID_t
  12337. (ID_t): New enum.
  12338. * src/KeepAliveMessage.h
  12339. (ID): Renamed as ID_t
  12340. (ID_t): New enum.
  12341. * src/HaveAllMessage.h
  12342. (ID): Renamed as ID_t
  12343. (ID_t): New enum.
  12344. * src/UnchokeMessage.h
  12345. (ID): Renamed as ID_t
  12346. (ID_t): New enum.
  12347. * src/BitfieldMessage.h
  12348. (ID): Renamed as ID_t
  12349. (ID_t): New enum.
  12350. * src/PieceMessage.h
  12351. (ID): Renamed as ID_t
  12352. (ID_t): New enum.
  12353. * src/RequestMessage.h
  12354. (ID): Renamed as ID_t
  12355. (ID_t): New enum.
  12356. * src/NotInterestedMessage.h
  12357. (ID): Renamed as ID_t
  12358. (ID_t): New enum.
  12359. * src/ChokeMessage.h
  12360. (ID): Renamed as ID_t
  12361. (ID_t): New enum.
  12362. * src/InterestedMessage.h
  12363. (ID): Renamed as ID_t
  12364. (ID_t): New enum.
  12365. * src/HaveMessage.h
  12366. (ID): Renamed as ID_t
  12367. (ID_t): New enum.
  12368. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12369. * src/PeerAbstractCommand.h
  12370. (beforeSocketCheck): Removed.
  12371. * src/PeerAbstractCommand.cc
  12372. Modified in order to call executeInternal() even if socket check
  12373. and upload limit check fail.
  12374. * src/PeerInteractionCommand.h
  12375. (keepAlive): Removed.
  12376. (sendKeepAlive): New function.
  12377. (checkHave): New function.
  12378. (beforeSocketCheck): Removed.
  12379. * src/PeerInteractionCommand.cc
  12380. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12381. calls to checkHave() and sendKeepAlive().
  12382. (keepAlive): Renamed to sendKeepAlive().
  12383. (sendKeepAlive): New function.
  12384. (beforeSocketCheck): Removed.
  12385. (checkHave): New function.
  12386. * src/BitfieldMan.cc
  12387. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12388. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12389. 0.
  12390. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12391. * src/TorrentMan.h
  12392. (UsedPieces): Removed.
  12393. (Pieces): New type definition.
  12394. * src/Piece.h: Updated doc.
  12395. * src/Peer.h
  12396. (totalLength): Removed.
  12397. * src/Peer.cc
  12398. (updateLatency): Fixed the latency calculation.
  12399. * src/TorrentMan.cc
  12400. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12401. than or equal to MAX_PEER_LIST_SIZE.
  12402. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12403. then return false.
  12404. (deleteOldErrorPeers): Rewritten.
  12405. (deleteUsedPiece): Fixed the miss use of STL remove.
  12406. * src/PeerInteraction.h
  12407. (Pieces): Removed.
  12408. (deleteTimeoutRequestSlot): Removed.
  12409. (deleteCompletedRequestSlot): Removed.
  12410. (checkRequestSlot): New function.
  12411. * src/PeerInteraction.cc
  12412. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12413. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12414. (checkRequestSlot): New function.
  12415. * src/DownloadEngine.cc
  12416. (run): Clear activeSockets before calling waitData().
  12417. (waitData): Removed a call to activeSockets.clear().
  12418. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12419. To attempt to handle EINTR:
  12420. * src/SocketCore.cc
  12421. (isReadable): Added EINTR handling.
  12422. (isWritable): Added EINTR handling.
  12423. To improve the performance:
  12424. * src/AbstractCommand.cc
  12425. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12426. * src/PeerInteractionCommand.h
  12427. (receiveMessage): Renamed as receiveMessages().
  12428. (receiveMessages): New function.
  12429. * src/PeerInteractionCommand.cc
  12430. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12431. () function. detectMessageFlooding() is moved here.
  12432. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12433. (). The flooding detection for have message is comment out.
  12434. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12435. Util::difftv().
  12436. (receiveMessage): Renamed as receiveMessages().
  12437. (receiveMessages): New function.
  12438. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12439. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12440. * src/SleepCommand.cc
  12441. (execute): Use Util::difftvsec() instead of Util::difftv().
  12442. * src/BitfieldMan.h
  12443. (getNthBitIndex): New function.
  12444. (hasMissingPiece): New function.
  12445. (getAllMissingIndexes): New function.
  12446. * src/BitfieldMan.cc
  12447. (countSetBit): Rewritten.
  12448. (getNthBitIndex): New function.
  12449. (getMissingIndexRandomly): Rewritten.
  12450. (hasMissingPiece): New function.
  12451. (getAllMissingIndexes): New function.
  12452. * src/TorrentMan.cc
  12453. (hasMissingPiece): New function.
  12454. (deleteUsedPiece): Rewritten using STL.
  12455. * src/PeerInteraction.cc
  12456. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12457. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12458. (addRequests): Updated the number of pending requests.
  12459. * src/PeerAbstractCommand.cc
  12460. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12461. (execute): Returns true if TorrentMan::isHalt() is true.
  12462. Corrected the condition of upload limit checking.
  12463. * src/Util.h
  12464. (countBit): New function.
  12465. * src/Util.cc
  12466. (nbits): New variable.
  12467. (countBit): New function.
  12468. * src/DownloadEngine.h
  12469. (SockCmdMap): New type definition.
  12470. (waitData): Added an argument.
  12471. (addSocket): Added an argument.
  12472. (addSocketForReadCheck): Added an argument.
  12473. (addSocketForWriteCheck): Added an argument.
  12474. * src/DownloadEngine.cc
  12475. (run): Executes only commands whose sockets are ready to read or write.
  12476. All commands are executed in every 1 second.
  12477. (waitData): Calls select() again if it returned
  12478. EINTR.
  12479. (addSocket): Saves socket and command object pair to the map.
  12480. (deleteSocket): Deletes socket and command object pair from the map.
  12481. (addSocketForReadCheck): Added an argument.
  12482. (addSocketForWriteCheck): Added an argument.
  12483. * src/DownloadCommand.cc
  12484. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12485. To send "event=stopped" to the tracker when the application finishes:
  12486. * src/PeerChokeCommand.h
  12487. (checkPoint): New variable.
  12488. * src/PeerChokeCommand.cc
  12489. (PeerChokeCommand): Added the initialization of checkPoint.
  12490. (execute): The interval check is now done by checkPoint, not
  12491. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12492. * src/TorrentMan.h
  12493. (halt): New function.
  12494. (hasMissingPiece): New function.
  12495. (isHalt): New function.
  12496. (setHalt): New function.
  12497. * src/TorrentMan.cc
  12498. (TorrentMan): Added the initialization of halt.
  12499. * src/TorrentAutoSaveCommand.h
  12500. (checkPoint): New variable.
  12501. * src/PeerListenCommand.cc
  12502. (execute): Returns true if TorrentMan::isHalt() is true.
  12503. * src/main.cc
  12504. (setSignalHander): Added flags argument.
  12505. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12506. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12507. Removed printDownloadAbortMessage() after torrent downloading loop.
  12508. * src/TorrentAutoSaveCommand.cc
  12509. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12510. (execute): Returns true if TorrentMan::isHalt() is true.
  12511. The interval check is now done by checkPoint, not SleepCommand.
  12512. * src/TrackerWatcherCommand.cc
  12513. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12514. event=stopped.
  12515. * src/TrackerUpdateCommand.cc
  12516. (prepareForRetry): Do not use SleepCommand here.
  12517. (execute): Returns true if TorrentMan::isHalt() is true.
  12518. Others:
  12519. * src/TorrentMan.cc
  12520. (getMissingPieceIndex): Updated log message.
  12521. * src/PeerInteraction.cc
  12522. (createPeerMessag): Updated log message.
  12523. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12524. To add the ability to download several pieces in mix in a command and
  12525. increase the number of request slots according to request-cancel
  12526. latency:
  12527. * src/PeerInteractionCommand.cc
  12528. (executeInternal): The number of messages to be received at a time
  12529. is increased from 10 to 50.
  12530. * src/LogFactory
  12531. (getInstance): Added NullLogger.
  12532. * src/NullLogger.h: New class.
  12533. * src/BitfieldMan.h
  12534. (getMissingIndex): New function.
  12535. * src/BitfieldMan.cc
  12536. (getMissingIndex): New function.
  12537. * src/TorrentMan.h
  12538. (checkOutPiece): New function.
  12539. (getMissingPieceIndex): New function.
  12540. (getMissingFastPieceIndex): New function.
  12541. (getMissingFastPiece): New function.
  12542. * src/TorrentMan.cc
  12543. (updatePiece): Rewritten using STL.
  12544. (syncPiece): Rewritten using STL.
  12545. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12546. checkOutPiece().
  12547. (getMissingPieceIndex): New function.
  12548. (getMissingFastPieceIndex): New function.
  12549. (getMissingFastPiece): New function.
  12550. (checkOutPiece): New function.
  12551. * src/PeerInteraction.h
  12552. (Pieces): New type definition.
  12553. (piece): Removed.
  12554. (pieces): New variable.
  12555. (getNewPieceAndSendInterest): Added the "piece" argument.
  12556. (abortPiece): Added the "piece" argument.
  12557. (abortAllPieces): New function.
  12558. (isInRequestSlot): New function.
  12559. (hasDownloadPiece): Added the "index" argument.
  12560. (setDownloadPiece): Removed.
  12561. (getDownloadPiece): Added the "index" argument.
  12562. (updatePiece): New function.
  12563. (createRequestMessage): Added the "index" argument.
  12564. * src/PeerInteraction.cc
  12565. (onChoked): Rewritten.
  12566. (abortPiece): Rewirtten.
  12567. (abortAllPieces): New function.
  12568. (deleteTimeoutRequestSlot): Rewritten.
  12569. Clarified code a little bit.
  12570. (deleteCompletedRequestSlot): Rewritten.
  12571. (isInRequestSlot): New function.
  12572. (syncPiece): Rewritten.
  12573. (updatePiece): New function.
  12574. (getNewPieceAndSendInterest): Rewritten.
  12575. (addRequests): Rewritten.
  12576. (getDownloadPiece): Rewritten.
  12577. (hasDownloadPiece): Rewritten.
  12578. (createRequestMessage): Added the "index" argument.
  12579. * src/common.h
  12580. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12581. (DIV_FLOOR): New definition.
  12582. * src/PieceMessage.cc
  12583. (receivedAction): Update request-piece latency here.
  12584. * src/RequestSlot.h
  12585. (getLatencyInMillis): New function.
  12586. * src/RequestSlot.cc
  12587. (isTimeout): Rewritten using getLatencyInMillis.
  12588. (getLatencyInMillis): New function.
  12589. * src/Piece.h
  12590. (operator==): New function.
  12591. (getMissingBlockIndex): New function.
  12592. * src/Piece.cc
  12593. (operator==): New function.
  12594. (getMissingBlockIndex): New function.
  12595. * src/Peer.h
  12596. (DEFAULT_LATENCY): New definition.
  12597. (latency): New variable.
  12598. (updateLatency): New function.
  12599. (getLatency): New function.
  12600. * src/Peer.cc
  12601. (resetStatus): Reset latecy.
  12602. (updateLatency): New function.
  12603. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12604. * src/SocketCore.cc
  12605. (isReadable): Added secure to the condition.
  12606. * src/HttpConnection.cc
  12607. (receiveResponse): Fixed a bug that causes no response header
  12608. exception.
  12609. * src/Peer.h
  12610. (getFastSet): Fixed the return value type.
  12611. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12612. To remove a wait from download loop:
  12613. * src/DownloadEngine.cc
  12614. (run): Comment out shortSleep.
  12615. To rewrite the message handling:
  12616. * src/SimplePeerMessage.h: New class.
  12617. * src/SimplePeerMessage.cc: New class.
  12618. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12619. (msg): New variable.
  12620. (create): New function.
  12621. (send): Removed.
  12622. (getMessage): New function.
  12623. (getMessageLength): New function.
  12624. * src/CancelMessage.cc
  12625. (create): New function.
  12626. (receivedAction): Replaced deleteRequestMessageInQueue with
  12627. rejectPieceMessageInQueue.
  12628. (send): Removed.
  12629. (getMessage): New function.
  12630. (getMessageLength): New function.
  12631. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12632. (msg): New variable.
  12633. (msgLength): New variable.
  12634. (~BitfieldMessage): Deleted msg.
  12635. (send): Removed.
  12636. (getMessage): New function.
  12637. (getMessageLength): New function.
  12638. * src/BitfieldMessage.cc
  12639. (create): New function.
  12640. (send): Removed.
  12641. (getMessage): New function.
  12642. (getMessageLength): New function.
  12643. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12644. (msg): New variable.
  12645. (sendPredicate): New function.
  12646. (onSendComplete): New function.
  12647. (send): Removed.
  12648. (getMessage): New function.
  12649. (getMessageLength): New function.
  12650. (create): New function.
  12651. * src/ChokeMessage.cc
  12652. (create): New function.
  12653. (send): Removed.
  12654. (sendPredicate): New function.
  12655. (getMessage): New function.
  12656. (getMessageLength): New function.
  12657. (onSendComplete): New function.
  12658. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12659. (msg): New variable.
  12660. (send): Removed.
  12661. (getMessage): New function.
  12662. (getMessageLength): New function.
  12663. * src/KeepAliveMessage.cc
  12664. (send): Removed.
  12665. (getMessage): New function.
  12666. (getMessageLength): New function.
  12667. * src/PortMessage.h
  12668. (create): New function.
  12669. (receivedAction): Updated log message.
  12670. * src/PortMessage.cc: New file.
  12671. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12672. (msg): New variable.
  12673. (sendPredicate): New function.
  12674. (onSendComplete): New function.
  12675. (create): New function.
  12676. (send): Removed.
  12677. (getMessage): New function.
  12678. (getMessageLength): New function.
  12679. * src/UnchokeMessage.cc
  12680. (create): New function.
  12681. (send): Removed.
  12682. (sendPredicate): New function.
  12683. (getMessage): New function.
  12684. (getMessageLength): New function.
  12685. (onSendComplete): New function.
  12686. * src/PieceMessage.h
  12687. (leftPieceDataLength): Removed.
  12688. (leftDataLength): New variable.
  12689. (headerSend): New variable.
  12690. (pendingCount): New variable.
  12691. (msgHeader): New variable.
  12692. (sendPieceData): New function.
  12693. (incrementPendingCount): New function.
  12694. (isPendingCountMax): New function.
  12695. (create): New function.
  12696. (getMessageHeader): New function.
  12697. (getMessageHeaderLength): New function.
  12698. * src/PieceMessage.cc
  12699. (create): New function.
  12700. (getMessageHeader): New function.
  12701. (getMessageHeaderLength): New function.
  12702. (send): Rewritten.
  12703. (sendPieceData): New function.
  12704. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12705. (msg): New variable.
  12706. (create): New function.
  12707. (getMessage): New function.
  12708. (getMessageLength): New function.
  12709. * src/HaveMessage.cc
  12710. (create): New function.
  12711. (send): Removed.
  12712. (sendPieceData): New function.
  12713. (getMessage): New function.
  12714. (getMessageLength): New function.
  12715. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12716. (msg): New variable.
  12717. (create): New function.
  12718. (send): Removed.
  12719. (getMessage): New function.
  12720. (getMessageLength): New function.
  12721. * src/RequestMessage.cc
  12722. (create): New function.
  12723. (receivedAction): Added the handling of fast extension.
  12724. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12725. (send): Removed.
  12726. (getMessage): New function.
  12727. (getMessageLength): New function.
  12728. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12729. (msg): New variable.
  12730. (sendPredicate): New function.
  12731. (onSendComplete): New function.
  12732. (create): New function.
  12733. (getMessage): New function.
  12734. (getMessageLength): New function.
  12735. * src/InterestedMessage.cc
  12736. (create): New function.
  12737. (send): Removed.
  12738. (sendPieceData): New function.
  12739. (getMessage): New function.
  12740. (getMessageLength): New function.
  12741. (onSendComplete): New function.
  12742. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12743. (msg): New variable.
  12744. (sendPieceData): New function.
  12745. (onSendComplete): New function.
  12746. (create): New function.
  12747. (send): Removed.
  12748. (getMessage): New function.
  12749. (getMessageLength): New function.
  12750. * src/NotInterestedMessage.cc
  12751. (create): New function.
  12752. (send): Removed.
  12753. (sendPredicate): New function.
  12754. (getMessage): New function.
  12755. (getMessageLength): New function.
  12756. (onSendComplete): New function.
  12757. * src/AllowedFastMessage.h: New class.
  12758. * src/AllowedFastMessage.cc: New class.
  12759. * src/RejectMessage.h: New class.
  12760. * src/RejectMessage.cc: New class.
  12761. * src/SuggestPieceMessage.h: New class.
  12762. * src/SuggestPieceMessage.cc: New class.
  12763. * src/HaveAllMessage.h: New class.
  12764. * src/HaveAllMessage.cc: New class.
  12765. * src/HaveNoneMessage.h: New class.
  12766. * src/HaveNoneMessage.cc: New class.
  12767. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12768. (msg): New variable.
  12769. (reserved): New variable.
  12770. (create): New function.
  12771. (getId): New function.
  12772. (receivedAction): New function.
  12773. (getMessage): New function.
  12774. (getMessageLength): New function.
  12775. (isFastExtensionSupported): New function.
  12776. * src/HandshakeMessage.cc
  12777. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12778. (create): New function.
  12779. (getMessage): New function.
  12780. (getMessageLength): New function.
  12781. (toString): Added the output of reserved field.
  12782. (check): Added const qualifier.
  12783. (isFastExtensionSupported): New function.
  12784. * src/PeerMessageUtil.h
  12785. (createChokeMessage): Removed.
  12786. (createUnchokeMessage): Removed.
  12787. (createInterestedMessage): Removed.
  12788. (createNotInterestedMessage): Removed.
  12789. (createHaveMessage): Removed.
  12790. (createBitfieldMessage): Removed.
  12791. (createRequestMessage): Removed.
  12792. (createCancelMessage): Removed.
  12793. (createPieceMessage): Removed.
  12794. (createPortMessage): Removed.
  12795. (createChokeMessage): Removed.
  12796. (createUnchokeMessage): Removed.
  12797. (createInterestedMessage): Removed.
  12798. (createNotInterestedMessage): Removed.
  12799. (createHaveMessage): Removed.
  12800. (createBitfieldMessage): Removed.
  12801. (createRequestMessage): Removed.
  12802. (createCancelMessage): Removed.
  12803. (createPieceMessage): Removed.
  12804. (createKeepAliveMessage): Removed.
  12805. (createHandshakeMessage): Removed.
  12806. (setIntParam): New function.
  12807. (createPeerMessageString): New function.
  12808. * src/PeerMessageUtil.cc
  12809. (createChokeMessage): Removed.
  12810. (createUnchokeMessage): Removed.
  12811. (createInterestedMessage): Removed.
  12812. (createNotInterestedMessage): Removed.
  12813. (createHaveMessage): Removed.
  12814. (createBitfieldMessage): Removed.
  12815. (createRequestMessage): Removed.
  12816. (createCancelMessage): Removed.
  12817. (createPieceMessage): Removed.
  12818. (createPortMessage): Removed.
  12819. (createRequestMessage): Removed.
  12820. (createCancelMessage): Removed.
  12821. (createPieceMessage): Removed.
  12822. (createHaveMessage): Removed.
  12823. (createChokeMessage): Removed.
  12824. (createUnchokeMessage): Removed.
  12825. (createInterestedMessage): Removed.
  12826. (createNotInterestedMessage): Removed.
  12827. (createBitfieldMessage): Removed.
  12828. (createKeepAliveMessage): Removed.
  12829. (createHandshakeMessage): Removed.
  12830. (setIntParam): New function.
  12831. (createPeerMessageString): New function.
  12832. * src/PeerConnection.h
  12833. (peer): Removed.
  12834. (torrentMan): Removed.
  12835. (createNLengthMessage): Removed.
  12836. (setIntParam): Removed.
  12837. (writeOutgoingMessageLog): Removed all overloaded functions.
  12838. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12839. (sendMessage): New function.
  12840. (sendHandshake): Removed.
  12841. (sendKeepAlive): Removed.
  12842. (sendChoke): Removed.
  12843. (sendUnchoke): Removed.
  12844. (sendInterested): Removed.
  12845. (sendNotInterested): Removed.
  12846. (sendHave): Removed.
  12847. (sendBitfield): Removed.
  12848. (sendRequest): Removed.
  12849. (sendPiece): Removed.
  12850. (sendPieceHeader): Removed.
  12851. (sendPieceData): Removed.
  12852. (sendCancel): Removed.
  12853. (getPeer): Removed.
  12854. * src/PeerConnection.cc
  12855. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12856. (sendHandshake): Removed.
  12857. (sendKeepAlive): Removed.
  12858. (createNLengthMessage): Removed.
  12859. (setIntParam): Removed.
  12860. (writeOutgoingMessageLog): Removed all overloaded functions.
  12861. (sendChoke): Removed.
  12862. (sendUnchoke): Removed.
  12863. (sendInterested): Removed.
  12864. (sendNotInterested): Removed.
  12865. (sendHave): Removed.
  12866. (sendBitfield): Removed.
  12867. (sendRequest): Removed.
  12868. (sendPiece): Removed.
  12869. (sendPieceHeader): Removed.
  12870. (sendPieceData): Removed.
  12871. (sendMessage): New function.
  12872. (sendCancel): Removed.
  12873. * src/PeerInteractionCommand.cc
  12874. (PeerInteractionCommand): Call setUploadLimit.
  12875. (executeInternal): Call setUploadLimit.
  12876. Added the handling of "inProgress" state of handshake message.
  12877. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12878. sendNow().
  12879. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12880. sendNow().
  12881. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12882. * src/TorrentMan.h
  12883. (PEER_ID_LENGTH): New definition.
  12884. (hasAllPieces): New function.
  12885. * src/TorrentMan.cc
  12886. (getMissingPiece): Added the handling of fast extension.
  12887. (cancelPiece): Call updatePiece().
  12888. (hasAllPieces): New function.
  12889. * src/PeerInteraction.h
  12890. (fastSet): New variable.
  12891. (getNewPieceAndSendInterest): Changed the return type to void.
  12892. (send): Renamed as sendMessages.
  12893. (deleteAllRequestSlot): Removed.
  12894. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12895. (cancelAllRequest): Removed all overloaded functions.
  12896. (deleteAllRequestSlot): Removed.
  12897. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12898. (rejectPieceMessageInQueue): New function.
  12899. (rejectAllPieceMessageInQueue): New function.
  12900. (onChoked): New function.
  12901. (isSendingMessageInProgress): New function.
  12902. (getCorrespondingRequestSlot): Changed its arguments.
  12903. (isInFastSet): New function.
  12904. (addFastSetIndex): New function.
  12905. (addRequests): New function.
  12906. (sendNow): Removed.
  12907. (trySendNow): Removed.
  12908. (sendBitfield): New function.
  12909. (sendAllowdFast): New function.
  12910. (createHaveAllMessage): New function.
  12911. (createHaveNoneMessage): New function.
  12912. (createRejectMessage): New function.
  12913. (createAllowedFastMessage): New function.
  12914. * src/PeerInteraction.cc
  12915. (send): Renamed as sendMessages.
  12916. (sendMessages): New function.
  12917. (MsgPushBack): New class.
  12918. (isSendingMessageInProgress): New function.
  12919. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12920. (rejectAllPieceMessageInQueue): New function.
  12921. Added the handling of fast extension.
  12922. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12923. (rejectPieceMessageInQueue): New function.
  12924. Added the handling of fast extension.
  12925. (deleteRequestSlot): Replaced for loop with std::find.
  12926. (onChoked): New function.
  12927. (deleteAllRequestSlot): Removed.
  12928. (abortPiece): Rewirtten.
  12929. (deleteTimeoutRequestSlot): Updated log messages.
  12930. (getCorrespondingRequestSlot): Changed its arguments.
  12931. (cancelAllRequest): Removed all overloaded functions.
  12932. (receiveHandshake): Added the check to see whether an incoming peer
  12933. supports fast extension.
  12934. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12935. PeerMessageUtil.
  12936. (createPeerMessage): Use create() of each message class instead of
  12937. PeerMessageUtil.
  12938. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12939. AllowedFastMessage were added.
  12940. (getNewPieceAndSendInterest): Changed its return value type to void.
  12941. Added the handling of fast extension.
  12942. (addRequests): New function.
  12943. (sendNow): Removed.
  12944. (sendHandshake): Rewritten.
  12945. (trySendNow): Removed.
  12946. (sendBitfield): New function.
  12947. (sendAllowdFast): New function.
  12948. (isInFastSet): New function.
  12949. (addFastSetIndex): New function.
  12950. (createRequestMessage): Use RequestMessage::create instead of
  12951. PeerMessageUtil.
  12952. (createCancelMessage): Use CancelMessage::create instead of
  12953. PeerMessageUtil.
  12954. (createPieceMessage): Use PieceMessage::create instead of
  12955. PeerMessageUtil.
  12956. (createHaveMessage): Use HaveMessage::create instead of
  12957. PeerMessageUtil.
  12958. (createChokeMessage): Use ChokeMessage::create instead of
  12959. PeerMessageUtil.
  12960. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12961. PeerMessageUtil.
  12962. (createInterestedMessage): Use InterestedMessage::create instead of
  12963. PeerMessageUtil.
  12964. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12965. of PeerMessageUtil.
  12966. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12967. PeerMessageUtil.
  12968. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12969. PeerMessageUtil.
  12970. (createHaveAllMessage): New function.
  12971. (createHaveNoneMessage): New function.
  12972. (createRejectMessage): New function.
  12973. (createAllowedFastMessage: New function.
  12974. * src/Util.h
  12975. (sha1Sum): New function.
  12976. (computeFastSet): New function.
  12977. * src/Util.cc
  12978. (sha1Sum): New function.
  12979. (computeFastSet): New function.
  12980. * src/Peer.h
  12981. (fastExtensionEnabled): New variable.
  12982. (fastSet): New variable.
  12983. (setAllBitfield): New function.
  12984. (setFastExtensionEnabled): New function.
  12985. (isFastExtensionEnabled): New function.
  12986. (addFastSetIndex): New function.
  12987. (getFastSet): New function.
  12988. (isInFastSet): New function.
  12989. (countFastSet): New function.
  12990. * src/Peer.cc
  12991. (isInFastSet): New function.
  12992. (addFastSetIndex): New function.
  12993. (setAllBitfield): New function.
  12994. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12995. sockets.
  12996. * src/PeerAbstractCommand.cc
  12997. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12998. and uploadLimit.
  12999. (execute): Changed the procedure of checking sockets. The upload speed
  13000. checking were added.
  13001. (setUploadLimit): New function.
  13002. (setUploadLimitCheck): New function.
  13003. * src/PeerAbstractCommand.h
  13004. (setUploadLimit): New function.
  13005. (setUploadLimitCheck): New function.
  13006. (uploadLimit): New variable.
  13007. (uploadLimitCheck): New variable.
  13008. To contact a tracker regularly:
  13009. * src/TrackerWatcherCommand.h (interval): New variable.
  13010. (checkPoint): New variable.
  13011. (TrackerWatcherCommand): Added interval argument.
  13012. * src/TrackerWatcherCommand.cc
  13013. (TrackerWatcherCommand): Initialized checkPoint.
  13014. (execute): Now a tracker is contacted in every specified period.
  13015. If peer list is not needed, send request with numwant=0.
  13016. * src/TrackerUpdateCommand.cc
  13017. (execute): Updated log messages.
  13018. * src/DownloadEngine.cc
  13019. (~DownloadEngine): Removed two asserts.
  13020. (waitData): Uncommented wfds. May be a bug fix.
  13021. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13022. * src/PeerInteractionCommand.h
  13023. (checkInactiveConnection): Removed.
  13024. * src/PeerInteractionCommand.cc
  13025. (executeInternal): Removed following function calls:
  13026. detectMessageFlooding(), checkLongTimePeerChoking and
  13027. checkInactiveConnection().
  13028. (checkInactiveConnection): Removed.
  13029. (detectMessageFlooding): Removed function call to
  13030. checkInactiveConnection().
  13031. * src/PeerMessageUtil.h
  13032. (createChokeMessage): New function. Overload.
  13033. (createUnchokeMessage): New function. Overload.
  13034. (createInterestedMessage): New function. Overload.
  13035. (createNotInterestedMessage): New function. Overload.
  13036. (createHaveMessage): New function. Overload.
  13037. (createBitfieldMessage): New function. Overload.
  13038. (createRequestMessage): New function. Overload.
  13039. (createCancelMessage): New function. Overload.
  13040. (createPieceMessage): New function. Overload.
  13041. (createKeepAliveMessage): New function. Overload.
  13042. * src/PeerMessageUtil.cc
  13043. (createChokeMessage): New function. Overload.
  13044. (createUnchokeMessage): New function. Overload.
  13045. (createInterestedMessage): New function. Overload.
  13046. (createNotInterestedMessage): New function. Overload.
  13047. (createHaveMessage): New function. Overload.
  13048. (createBitfieldMessage): New function. Overload.
  13049. (createRequestMessage): New function. Overload.
  13050. (createCancelMessage): New function. Overload.
  13051. (createPieceMessage): New function. Overload.
  13052. (createKeepAliveMessage): New function. Overload.
  13053. * src/SendMessageQueue.cc
  13054. (createRequestMessage): Use PeerMessageUtil.
  13055. (createCancelMessage): Use PeerMessageUtil.
  13056. (createPieceMessage): Use PeerMessageUtil.
  13057. (createHaveMessage): Use PeerMessageUtil.
  13058. (createChokeMessage): Use PeerMessageUtil.
  13059. (createUnchokeMessage): Use PeerMessageUtil.
  13060. (createInterestedMessage): Use PeerMessageUtil.
  13061. (createNotInterestedMessage): Use PeerMessageUtil.
  13062. (createBitfieldMessage): Use PeerMessageUtil.
  13063. (createKeepAliveMessage): Use PeerMessageUtil.
  13064. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13065. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13066. * src/PeerInteraction.h: New class.
  13067. * src/PeerInteraction.cc: New class.
  13068. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13069. Each peer message has its own class.
  13070. * src/PendingMessages.h: Removed.
  13071. * src/PendingMessages.cc: Removed. The sending process was moved to
  13072. each message class.
  13073. * src/RequestSlotMan.h: Removed.
  13074. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13075. SendMessageQueue.
  13076. * src/RequestMessage.h: New class.
  13077. * src/RequestMessage.cc: New class.
  13078. * src/CancelMessage.h: New class.
  13079. * src/CancelMessage.cc: New class.
  13080. * src/BitfieldMessage.h: New class.
  13081. * src/BitfieldMessage.cc: New class.
  13082. * src/ChokeMessage.h: New class.
  13083. * src/ChokeMessage.cc: New class.
  13084. * src/KeepAliveMessage.h: New class.
  13085. * src/KeepAliveMessage.cc: New class.
  13086. * src/PortMessage.h: New class.
  13087. * src/UnchokeMessage.h: New class.
  13088. * src/UnchokeMessage.cc: New class.
  13089. * src/PieceMessage.h: New class.
  13090. * src/PieceMessage.cc: New class.
  13091. * src/HaveMessage.h: New class.
  13092. * src/HaveMessage.cc: New class.
  13093. * src/BitfieldMessage.h: New class.
  13094. * src/BitfieldMessage.cc: New class.
  13095. * src/NotInterestedMessage.h: New class.
  13096. * src/NotInterestedMessage.cc: New class.
  13097. * src/InterestedMessage.h: New class.
  13098. * src/InterestedMessage.cc: New class.
  13099. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13100. (getSendMessageQueue): New function.
  13101. (setSendMessageQueue): New function.
  13102. * src/HandshakeMessage.cc: New class.
  13103. * src/PeerConnection.h (receiveMessage): Changed return value and
  13104. arguments.
  13105. (receiveHandshake): Changed return value and arguments.
  13106. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13107. here.
  13108. (receiveHandshake): Do not create handshake class here.
  13109. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13110. (piece): Removed.
  13111. (syncPiece): Removed.
  13112. (sendInterest): Removed.
  13113. (sendMessages): Removed.
  13114. (createRequestPendingMessage): Removed.
  13115. (checkPieceHash): Removed.
  13116. (erasePieceOnDisk): Removed.
  13117. (getNewPieceAndSendInterest): Removed.
  13118. (onGotNewPice): Removed.
  13119. (onGotWrongPiece): Removed.
  13120. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13121. Removed peerConnection, piece.
  13122. (~PeerInteractionCommand): Removed peerConnection.
  13123. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13124. (syncPiece): Moved to SendMessageQueue.
  13125. (decideChoking): Removed PendingMessage.
  13126. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13127. The action after receiving peer message was moved to each message
  13128. class.
  13129. (onGotNewPice): Moved to SendMessageQueue.
  13130. (onGotWrongPiece): Moved to SendMessageQueue.
  13131. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13132. (sendInterest): Moved to SendMessageQueue.
  13133. (createRequestPendingMessage): Removed.
  13134. (sendMessages): Moved to SendMessageQueue.
  13135. (onAbort): Use SendMessageQueue::abortPiece()
  13136. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13137. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13138. (checkPieceHash): Moved to SendMessageQueue.
  13139. (erasePieceOnDisk): Moved to SendMessageQueue.
  13140. * src/PeerMessageUtil.h
  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/PeerMessageUtil.cc
  13164. (createBitfieldMessage): Removed.
  13165. (createHaveMessage): Changed return value and arguments.
  13166. (createBitfieldMessage): Changed return value and arguments.
  13167. (createRequestCancelMessage): Removed.
  13168. (createPieceMessage): Changed return value and arguments.
  13169. (getShortIntParam): New function.
  13170. (checkIndex): Changed arguments.
  13171. (checkBegin): Changed arguments.
  13172. (checkLength): Changed arguments.
  13173. (checkPieceOffset): Removed.
  13174. (checkRange): New function.
  13175. (checkBitfield): Changed arguments.
  13176. (createPeerMessage): Removed.
  13177. (checkIntegrity): Removed.
  13178. (createHandshakeMessage): Changed arguments.
  13179. (createChokeMessage): New function.
  13180. (createUnchokeMessage): New function.
  13181. (createInterestedMessage): New function.
  13182. (createNotInterestedMessage): New function.
  13183. (createRequestMessage): New function.
  13184. (createCancelMessage): New function.
  13185. (createPortMessage): New function.
  13186. * src/PeerMessage.h
  13187. (id): Removed.
  13188. (index): Removed.
  13189. (begin): Removed.
  13190. (length): Removed.
  13191. (bitfield): Removed.
  13192. (bitfieldLength): Removed.
  13193. (block): Removed.
  13194. (blockLength): Removed.
  13195. (inProgress): New variable.
  13196. (cuid): New variable.
  13197. (peer): New variable.
  13198. (sendMessageQueue): New variable.
  13199. (logger): New variable.
  13200. (setBitfield): Removed.
  13201. (getBitfield): Removed.
  13202. (setBlock): Removed.
  13203. (getBlock): Removed.
  13204. (getBitfieldLength): Removed.
  13205. (getBlockLength): Removed.
  13206. (isInProgress): New function.
  13207. (toString): Made pure virtual.
  13208. (check): New function.
  13209. (send): New function.
  13210. (receivedAction): New function.
  13211. (getId): Made pure virtual.
  13212. (setId): Removed.
  13213. (getIndex): Removed.
  13214. (setIndex): Removed.
  13215. (getBegin): Removed.
  13216. (setBegin): Removed.
  13217. (getLength): Removed.
  13218. (setLength): Removed.
  13219. (getCuid): New function.
  13220. (setCuid): New function.
  13221. (getPeer): New function.
  13222. (setPeer): New function.
  13223. (getSendMessageQueue): New function.
  13224. (setSendMessageQueue): New function.
  13225. (ID): Removed.
  13226. * src/PeerMessage.cc
  13227. (setBitfield): Removed.
  13228. (setBlock): Removed.
  13229. (toString): Removed.
  13230. * src/TorrentMan.h
  13231. (getPieceLength): New function.
  13232. (getPieceLength): New function.
  13233. * src/SendMessageQueue.h
  13234. (REQUEST_TIME_OUT): New definition.
  13235. (RequestSlots): New definition.
  13236. (MessageQueue): New definition.
  13237. (requestSlotMan): Removed.
  13238. (pendingMessages): Removed.
  13239. (requestSlots): New variable.
  13240. (messageQueue): New variable.
  13241. (torrentMan): New variable.
  13242. (peerConnection): New variable.
  13243. (peer): New variable.
  13244. (piece): New variable.
  13245. (getNewPieceAndSendInterest): New function.
  13246. (createPeerMessage): New function.
  13247. (createHandshakeMessage): New function.
  13248. (send): Made private.
  13249. (setPeerMessageCommonProperty): New function.
  13250. (deleteAllRequestSlot): New function.
  13251. (deleteRequestMessageInQueue): New function.
  13252. (cancelAllRequest): Made private.
  13253. (cancelAllRequest): Made private.
  13254. (countRequestSlot): Made private.
  13255. (addPendingMessage): Removed.
  13256. (deletePendingPieceMessage): Removed.
  13257. (deletePendingRequestMessage): Removed.
  13258. (addMessage): New function.
  13259. (deletePieceMessageInQueue): New function.
  13260. (deleteTimeoutRequestSlot): Changed argument.
  13261. (deleteCompletedRequestSlot): Changed argument.
  13262. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13263. (getCorrespondingRequestSlot): New function.
  13264. (countPendingMessage): Removed.
  13265. (countMessageInQueue): New function.
  13266. (getTorrentMan): New function.
  13267. (getPeerConnection): New function.
  13268. (hasDownloadPiece): New function.
  13269. (getDownloadPiece): New function.
  13270. (setDownloadPiece): New function.
  13271. (syncPiece): New function.
  13272. (sendMessages): New function.
  13273. (sendNow): New function.
  13274. (trySendNow): New function.
  13275. (abortPiece): New function.
  13276. (sendHandshake): New function.
  13277. (receiveMessage): New function.
  13278. (receiveHandshake): New function.
  13279. (createRequestMessage): New function.
  13280. (createCancelMessage): New function.
  13281. (createPieceMessage): New function.
  13282. (createHaveMessage): New function.
  13283. (createChokeMessage): New function.
  13284. (createUnchokeMessage): New function.
  13285. (createInterestedMessage): New function.
  13286. (createNotInterestedMessage): New function.
  13287. (createBitfieldMessage): New function.
  13288. (createKeepAliveMessage): New function.
  13289. * src/SendMessageQueue.cc
  13290. (SendMessageQueue): Removed requestSlotMan.
  13291. Instantiated peerConnection here.
  13292. (~SendMessageQueue): Removed requestSlotMan.
  13293. Added deletion of peerConnection and the contents of messageQueue.
  13294. (send): Updated according to the change of messageQueue.
  13295. (addPendingMessage): Renamed to addMessage.
  13296. (addMessage): New function.
  13297. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13298. (deletePieceMessageInQueue): New function.
  13299. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13300. (deleteRequestMessageInQueue): New function.
  13301. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13302. here.
  13303. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13304. (...) was moved here.
  13305. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13306. moved here.
  13307. (deleteCompletedRequestSlot):
  13308. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13309. (getCorrespondingRequestSlot):
  13310. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13311. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13312. (countPendingMessage): Renamed to countMessageInQueue.
  13313. (countMessageInQueue): New function.
  13314. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13315. (receiveHandshake): New function.
  13316. (createHandshakeMessage): New function.
  13317. (receiveMessage): New function.
  13318. (createPeerMessage): New function.
  13319. (syncPiece): New function.
  13320. (getNewPieceAndSendInterest): New function.
  13321. (sendMessages): New function.
  13322. (sendNow): New function.
  13323. (trySendNow): New function.
  13324. (sendHandshake): New function.
  13325. (abortPiece): New function.
  13326. (getDownloadPiece): New function.
  13327. (getPeerMessageCommonProperty): New function.
  13328. (createRequestMessage): New function.
  13329. (createCancelMessage): New function.
  13330. (createPieceMessage): New function.
  13331. (createHaveMessage): New function.
  13332. (createChokeMessage): New function.
  13333. (createUnchokeMessage): New function.
  13334. (createInterestedMessage): New function.
  13335. (createNotInterestedMessage): New function.
  13336. (createBitfieldMessage): New function.
  13337. (createKeepAliveMessage): New function.
  13338. To add simple Content-Disposition support:
  13339. * src/HttpResponseCommand.h (determinFilename): New function.
  13340. * src/HttpResponseCommand.cc (executeInternal):
  13341. Use determinFilename(headers) instead of req->getFile() when comparing
  13342. filename.
  13343. (determinFilename): New function.
  13344. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13345. req->getFile().
  13346. (handleOtherEncoding): Use determinFilename(headers) instead of
  13347. req->getFile().
  13348. * src/Util.h (getContentDispositionFilename): New function.
  13349. * src/Util.cc (getContentDispositionFilename): New function.
  13350. * src/LogFactory.h (release): New function.
  13351. * src/LogFactory.cc (release): New function.
  13352. To fix a bug that causes out-of-bound exception when HTTP status
  13353. line is wrong:
  13354. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13355. size.
  13356. * src/common.h (Deleter): New class.
  13357. * src/SegmentMan.cc
  13358. (~SegmentMan): Added deletion of splitter and diskWriter.
  13359. * src/DownloadEngine.h
  13360. (Commands): Use deque.
  13361. (clearQueue): New function.
  13362. * src/DownloadEngine.cc
  13363. (~DownloadEngine): Added deletion of segmentMan.
  13364. (cleanQueue): New function.
  13365. * src/TorrentDownloadEngine.h
  13366. (TorrentDownloadEngine): The implementation was moved to
  13367. TorrentDownloadEngine.cc.
  13368. (~TorrentDownloadEngine): The implementation was moved to
  13369. TorrentDownloadEngine.cc.
  13370. * src/TorrentDownloadEngine.cc
  13371. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13372. * src/main.cc
  13373. (clearRequest): Removed.
  13374. (handler): Added deletion of e.
  13375. (torrentHandler): Added deletion of te.
  13376. (main): Do not share splitter.
  13377. Use Deleter instead of clearRequest.
  13378. Deletion of classes were updated.
  13379. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13380. * src/main.cc (main): Fixed typo.
  13381. * src/message.h: Fixed typo.
  13382. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13383. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13384. To add --select-file command-line option:
  13385. * src/Util.cc
  13386. (unfoldRange): New function.
  13387. (getNum): New function.
  13388. (unfoldSubRange): New function
  13389. * src/main.cc
  13390. (showUsage): Added help message.
  13391. (main): Added --select-file command-line option. Updated the layout of
  13392. file listing.
  13393. * src/common.h
  13394. (Integers): New definition.
  13395. * src/SocketCore.cc
  13396. (writeData): Removed timeout argument.
  13397. (readData): Removed timeout argument.
  13398. (peekData): Removed timeout argument.
  13399. * src/Socket.cc
  13400. (writeData): Removed timeout argument.
  13401. (readData): Removed timeout argument.
  13402. (peekData): Removed timeout argument.
  13403. * Release 0.4.1
  13404. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13405. To deploy upload rate based choking algorithm:
  13406. * src/PeerInteractionCommand.cc
  13407. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13408. peer currently used.
  13409. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13410. download completes. Simplified.
  13411. (receiveMessage): Updated.
  13412. * src/TorrentMan.h
  13413. (activePeers): New variable.
  13414. (addActivePeer): New function.
  13415. (getActivePeers): New function.
  13416. (deleteActivePeer): New function.
  13417. * src/TorrentMan.cc
  13418. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13419. * src/PeerAbstractCommand.cc
  13420. (onAbort): Use peer->resetStatus().
  13421. * src/main.cc
  13422. (PeerChokeCommand.h): Included.
  13423. (main): Added the instance of ChokingCommand to the command queue.
  13424. * src/Peer.h
  13425. (amChoking): Renamed from amChocking
  13426. (chokingRequired): New variable.
  13427. (optUnchoking): New variable.
  13428. (deltaUpload): New variable.
  13429. (deltaDownload): New variable.
  13430. (addDeltaUpload): New function.
  13431. (resetDeltaUpload): New function.
  13432. (addDeltaDownload): New function.
  13433. (resetDeltaDownload): New function.
  13434. (addPeerUpload): Added a call to addDeltaUpload.
  13435. (addPeerDownload): Added a call to addDeltaDownload.
  13436. * src/Peer.cc
  13437. (shouldBeChoking): Renamed from shouldChoke.
  13438. (resetStatus): New function.
  13439. * src/PeerChokeCommand.h: New class.
  13440. * src/PeerChokeCommand.cc: New class.
  13441. To add lazy upload speed limiter:
  13442. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13443. statistics calculation to TorrentDownloadEngine.
  13444. * src/TorrentConsoleDownloadEngine.cc
  13445. (sendStatistics): Renamed from printStatistics.
  13446. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13447. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13448. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13449. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13450. calculation.
  13451. (sendStatistics): New function as pure virtual function.
  13452. (getUploadSpeed): New function.
  13453. * src/TorrentDownloadEngine.cc
  13454. (initStatistics): New function.
  13455. (calculateSpeed): New function.
  13456. (calculateStatistics): New function.
  13457. * src/SendMessageQueue.h
  13458. (uploadLength): New variable.
  13459. (send): Added an argument.
  13460. (setUploadLimit): New function.
  13461. (getUploadLimit): New function.
  13462. * src/SendMessageQueue.cc
  13463. (send): Added upload speed limiter.
  13464. * src/prefs.h
  13465. (PREF_UPLOAD_LIMIT): New definition.
  13466. * src/PeerInteractionCommand.cc
  13467. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13468. * src/main.cc
  13469. (main): Added --upload-limit option
  13470. For bug fixes:
  13471. * src/main.cc
  13472. (showUsage): Corrected --listen-port help
  13473. Other changes:
  13474. * src/TorrentMan.cc
  13475. (getPeer): Return nullPeer if connection is grather than
  13476. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13477. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13478. To add some useful information to the exception message:
  13479. * src/SocketCore.cc : Updated messages.
  13480. * src/SegmentMan.cc :
  13481. * src/TorrentMan.cc : Updated messages.
  13482. * src/MultiDiskWriter.cc : Updated messages.
  13483. * src/Util.cc : Updated messages.
  13484. * src/AbstractDiskWriter.cc : Updated messages.
  13485. * src/PreAllocationDiskWriter.cc : Updated messages.
  13486. * src/message.cc : Added new messages. Updated some messages.
  13487. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13488. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13489. Updated threshold from 30 to 15.
  13490. * src/AbstractDiskWriter.h (filename): New variable.
  13491. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13492. (createFile): Assigned filename.
  13493. * src/main.cc: Updated the help message for http-auth-scheme.
  13494. * Release 0.4.0
  13495. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13496. To add TrackerUpdateCommand with which replaces
  13497. CompactTrackerResponseProcessor:
  13498. * src/TrackerWatcherCommand.h (req): Removed.
  13499. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13500. if the number of peer connections are less than 30.
  13501. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13502. * src/SegmentMan.h (diskWriter): New function.
  13503. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13504. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13505. (main): Use TrackerUpdateCommand.
  13506. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13507. (req): New variable.
  13508. (setTrackerResponseProcessor): Removed.
  13509. (getTrackerResponseProcessor): Removed.
  13510. (processTrackerResponse): Removed.
  13511. * src/DownloadEngine.h (diskWriter): Removed.
  13512. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13513. to torrentMan->processTrackerResponse().
  13514. To add Util::expandBuffer:
  13515. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13516. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13517. * src/Util.h (expandBuffer): New function.
  13518. To fix the bug that causes segmentation fault when "-l ." is specified
  13519. in command-line option:
  13520. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13521. (openFile): New function.
  13522. (closeFile): New function.
  13523. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13524. (~SimpleLogger): Call closeFile();
  13525. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13526. * src/main.cc (main): Added a check to see logger is configured
  13527. properly.
  13528. To enable HTTP authentication without specifying "--http-auth-scheme"
  13529. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13530. * src/HttpConnection.cc (createRequest): Send Authorization header
  13531. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13532. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13533. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13534. * src/Peer.cc (shouldChoke): Updated algorithm.
  13535. * src/message.h (EX_AUTH_FAILED): New definition.
  13536. (EX_FILE_OPEN): New definition.
  13537. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13538. if status == 401.
  13539. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13540. if req->isTorrent == true.
  13541. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13542. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13543. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13544. (createFile): Updated message.
  13545. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13546. To add a readout of estimated remaining time to normal HTTP/FTP
  13547. downloads:
  13548. * src/ConsoleDownloadEngine.h (startup): New variable.
  13549. (startupLength): New variable.
  13550. (isStartupLengthSet): New variable.
  13551. (avgSpeed): New variable.
  13552. (eta): New variable.
  13553. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13554. estimated remaining time.
  13555. (initStatistics): Initialized newly added variables.
  13556. (calculateStatistics): Calculate average speed and estimated remaining
  13557. time.
  13558. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13559. * src/TrackerDownloadCommand.h: Removed.
  13560. * src/TrackerDownloadCommand.cc: Removed.
  13561. * src/TrackerInitCommand.h: Removed.
  13562. * src/TrackerInitCommand.cc: Removed.
  13563. * src/TrackerUpdateCommand.h: Removed.
  13564. * src/TrackerUpdateCommand.cc: Removed.
  13565. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13566. url written in TrackerInitCommand was moved here. Do not create
  13567. tracker request command if torrentMan->trackers != 0.
  13568. * src/CompactTrackerResponseProcessor.h: New class.
  13569. * src/CompactTrackerResponseProcessor.cc: New class.
  13570. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13571. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13572. Decoupled TorrentDownloadEngine from this.
  13573. * src/SegmentMan.h (init): New function.
  13574. * src/SegmentMan.cc (init): New function.
  13575. * src/TorrentMan.h (responseProcessor): New variable.
  13576. (trackers): New variable.
  13577. (setTrackerResponseProcessor): New function.
  13578. (getTrackerResponseProcessor): New function.
  13579. (processTrackerResponse): New function.
  13580. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13581. (processTrackerResponse): New function.
  13582. * src/main.cc (main): Use ByteArrayDiskWriter and
  13583. CompactTrackerResponseProcessor.
  13584. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13585. processTrackerResponse().
  13586. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13587. readout.
  13588. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13589. which indicates download has completed.
  13590. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13591. (closeFile): fd >= 0, not fd > 0
  13592. * src/main.cc (main): Added short cut for show-files.
  13593. Added short cut for torrent-file.
  13594. Added new command-line option listen-port.
  13595. Updated i18n messages.
  13596. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13597. To add LogFactory which creates singleton logger:
  13598. * src/LogFactory.h: New class.
  13599. * src/LogFactory.cc: New class.
  13600. * src/Command.h (logger): New variable.
  13601. (Constructor): Use LogFactory.
  13602. * src/AbstractCommand.cc: Use Command::logger
  13603. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13604. Use LogFactory.
  13605. * src/SegmentSplitter.h : Made logger protected.
  13606. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13607. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13608. * src/DownloadEngine.h : Made logger protected.
  13609. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13610. * src/PeerInteractionCommand.cc : Use Command::logger.
  13611. * src/HttpResponseCommand.cc : Use Command::logger.
  13612. * src/SegmentMan.h : Made logger private.
  13613. * src/TorrentMan.h : Made logger private.
  13614. * src/TorrentMan.cc : Use LogFactory.
  13615. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13616. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13617. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13618. Use LogFactory.
  13619. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13620. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13621. Use LogFactory.
  13622. * src/DownloadCommand.cc : Use Command::logger.
  13623. * src/PeerAbstractCommand.cc : Use Command::logger.
  13624. * src/PeerListenCommand.cc : Use Command::logger.
  13625. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13626. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13627. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13628. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13629. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13630. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13631. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13632. Use LogFactory.
  13633. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13634. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13635. Use LogFactory.
  13636. * src/main.cc (main): Use LogFactory.
  13637. * src/DiskAdaptor.h (logger): New variable.
  13638. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13639. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13640. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13641. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13642. parameter to a tracker request.
  13643. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13644. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13645. * src/main.cc (setSignalHander): New function.
  13646. (main): Added a handler for SIGTERM.
  13647. (handler): Updated message.
  13648. (torrentHandler): Updated message.
  13649. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13650. * src/TorrentConsoleDownloadEngine.cc
  13651. (onPartialDownloadingCompletes): Renamed as
  13652. onSelectiveDownloadingCompletes.
  13653. (onSelectiveDownloadingCompletes): Updated message.
  13654. To add DiskAdaptor which abstract DiskWriter family:
  13655. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13656. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13657. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13658. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13659. MultiDiskAdaptor.h.
  13660. (readFileEntry): Changed its arguments.
  13661. (setup): setupDiskWriter is merged into this function.
  13662. (setupDiskWriter): Removed.
  13663. (setFileFilter): New function.
  13664. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13665. made in readFileEntry.
  13666. (getFilePath): Removed.
  13667. (getTempFilePath): Removed.
  13668. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13669. (fixFilename): Removed.
  13670. (copySingleFile): Removed.
  13671. (splitMultiFile): Removed.
  13672. (deleteTempFile): Removed.
  13673. (setFileEntriesToDownload): Removed.
  13674. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13675. (isSelectiveDownloadingMode): New function.
  13676. (setAllMultiFileRequestedState): Removed.
  13677. (finishPartialDownloadingMode): Renamed as
  13678. finishSelectiveDownloadingMode.
  13679. (finishSelectiveDownloadingMode): New function.
  13680. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13681. (getSelectedTotalLength): New function.
  13682. (onDownloadComplete): Use diskAdaptor.
  13683. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13684. (Range): Removed.
  13685. (setMultiFileEntries): Renamed as setFileEntries.
  13686. (setFileEntries): New function.
  13687. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13688. (pieceLength): New variable.
  13689. * src/main.cc (printDownloadCompeleteMessage): New function.
  13690. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13691. (main): Renamed torrent-show-files to show-files.
  13692. Rewritten file contents listing.
  13693. * src/TorrentMan.h (FileEntry): Removed.
  13694. (multiFileTopDir): Removed.
  13695. (multiFileEntries): Removed.
  13696. (diskWriter): Removed.
  13697. (diskAdaptor): New variable.
  13698. * src/DefaultDiskWriter.h (totalLength): New variable.
  13699. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13700. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13701. diskWriter.
  13702. * src/TorrentConsoleDownloadEngine.h
  13703. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13704. (partialTotalLength): Renamed as selectedTotalLength.
  13705. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13706. openExistingFile, otherwise call initAndOpenFile.
  13707. (closeFile): fd > 0, not fd != 0.
  13708. * src/DirectDiskAdaptor.h: New class.
  13709. * src/DirectDiskAdaptor.cc: New class.
  13710. * src/MultiDiskAdaptor.h: New class.
  13711. * src/MultiDiskAdaptor.cc: New class.
  13712. * src/CopyDiskAdaptor.h: New class.
  13713. * src/CopyDiskAdaptor.cc: New class.
  13714. * src/DiskAdaptor.h: New class.
  13715. * src/DiskAdaptor.cc: New class.
  13716. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13717. (PREF_SHOW_FILES): New definition.
  13718. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13719. To add the ability to download multi torrent into respective files
  13720. directly:
  13721. * src/DiskWriter.h (openFile): New function.
  13722. (seek): Removed.
  13723. * src/MultiDiskWriter.h: New class.
  13724. * src/MultiDiskWriter.cc: New class.
  13725. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13726. protected.
  13727. (openFile): New function.
  13728. * src/AbstractDiskWriter.cc (openFile): New function.
  13729. * src/prefs.h (V_FALSE): New definition.
  13730. (PREF_DIRECT_FILE_MAPPING): New definition.
  13731. * src/TorrentMan.h (setupDiskWriter): New function.
  13732. (setAllMultiFileRequestedState): New function.
  13733. (onDownloadComplete): New function.
  13734. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13735. (setupDiskWriter): New function.
  13736. (getFilePath): Updated.
  13737. (getTempFilePath): Updated.
  13738. (getSegmentFilePath): Updated.
  13739. (fixFilename): Updated.
  13740. (deleteTempFile): Updated.
  13741. (setAllMultiFileRequestedState): New function.
  13742. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13743. (finishPartialDownloadingMode): Reset requested flags.
  13744. (onDownloadComplete): New function.
  13745. * src/main.cc: Added --direct-file-mapping option.
  13746. Use TorrentMan::setupDiskWriter().
  13747. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13748. onDownloadComplete().
  13749. To fix ETA bug:
  13750. * src/Util.h (difftvsec): New function.
  13751. * src/Util.cc (difftvsec): New function.
  13752. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13753. type of "elapsed" instead of long long int.
  13754. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13755. The updates of statistics takes place every 1 seconds.
  13756. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13757. (calculateSpeed): Changed its argument signature.
  13758. * src/PeerMessage.cc (toString): Fixed message.
  13759. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13760. To print ETA:
  13761. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13762. completion handling when dealing with
  13763. TorrentMan::isPartialDownloadingMode() == true.
  13764. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13765. New function.
  13766. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13767. (sessionDownloadLength): New variable.
  13768. (avgSpeed): New variable.
  13769. (eta): New variable.
  13770. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13771. new variables: eta, avgSpeed, startup.
  13772. (calculateSpeed): Calculate average speed and ETA.
  13773. (printStatistics): Added ETA.
  13774. * src/Util.h (secfmt): New function.
  13775. * src/Util.cc (secfmt): New function.
  13776. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13777. To detect "keep alive" flooding:
  13778. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13779. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13780. variable: keepAliveCount.
  13781. (detectMessageFlooding): Added "keep alive" flooding detection.
  13782. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13783. received.
  13784. To add the ability to download only specified files in multi-file
  13785. torrent:
  13786. * src/BitfieldMan.h (filterBitfield): New variable.
  13787. (filterEnabled): New variable.
  13788. (setFilterBit): New function.
  13789. (enableFilter): New function.
  13790. (disableFilter): New function.
  13791. (isFilterEnabled): New function.
  13792. (getFilteredTotalLength): New function.
  13793. (getCompletedLength): New function.
  13794. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13795. filterBitfield, filterEnabled.
  13796. (CopyConstructor): Added filterBitfield and filterEnabled.
  13797. (operator==): Added filterBitfield and filterEnabled.
  13798. (Destructor): Added filterBitfield.
  13799. (getMissingIndex): Use filterBitfield.
  13800. (getMissingUnusedIndex): Use filterBitfield.
  13801. (getFirstMissingUnusedIndex): Use filterBitfield.
  13802. (getFirstMissingUnusedIndex): Use filterBitfield.
  13803. (getAllMissingIndexes): Use filterBitfield.
  13804. (countMissingBlock): Use filterBitfield.
  13805. (countBlock): Use filterBitfield.
  13806. (setBitInternal): Added new argument on.
  13807. (setUseBit): Use setBitInternal.
  13808. (unsetUseBit): Use setBitInternal.
  13809. (setBit): Use setBitInternal.
  13810. (unsetBit): Use setBitInternal.
  13811. (isAllBitSet): Use filterBitfield.
  13812. (setFilterBit): New function.
  13813. (addFilter): New function.
  13814. (enableFilter): New function.
  13815. (disableFilter): New function.
  13816. (clearFilter): New function.
  13817. (isFilterEnabled): New function.
  13818. (getFilteredTotalLength): New function.
  13819. (getCompletedLength): New function.
  13820. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13821. Initalized newly added variables.
  13822. [FileEntry](offset): New variable.
  13823. [FileEntry](extracted): New variable.
  13824. [FileEntry](requested): New variable.
  13825. (readFileEntry): New function.
  13826. (option): New variable.
  13827. (splitMultiFile): Removed const qualifier.
  13828. (fixFilename): Removed const qualifier.
  13829. (readFileEntryFromMetaInfoFile): New function.
  13830. (finishPartialDownloadingMode): New function.
  13831. (isPartialDownloadingMode): New function.
  13832. (setFileEntriesToDownload): New function.
  13833. (getCompletedLength): New function.
  13834. (getPartialTotalLength): New function.
  13835. * src/TorrentMan.cc (readFileEntry): New function.
  13836. (setup): Use readFileEntry. If no-preallocation option is specified,
  13837. use DefaultDiskWriter.
  13838. (readFileEntryFromMetaInfoFile): New function.
  13839. (fixFilename): Removed const qualifier.
  13840. (splitMultiFile): Removed const qualifier.
  13841. (setFileEntriesToDownload): New function.
  13842. (isPartialDownloadingMode): New function.
  13843. (finishPartialDownloadingMode): New function.
  13844. (getCompletedLength): New function.
  13845. (getPartialTotalLength): New function.
  13846. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13847. New variable.
  13848. (partialTotalLength): New variable.
  13849. (downloadLength): New variable.
  13850. (totalLength): New variable.
  13851. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13852. Added log.
  13853. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13854. partialTotalLength, downloadLength, totalLength.
  13855. (calculate): Calculate downloadLength and totalLength.
  13856. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13857. * src/main.cc (addCommand): Changed argument signature.
  13858. (main): Added new variable: args. Added new option "torrent-show-files"
  13859. "no-preallocation". Usage is not updated yet.
  13860. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13861. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13862. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13863. Attempt to add the ability to listing file entries in a .torrent file.
  13864. This feature is not yet complete.
  13865. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13866. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13867. (getName): New function.
  13868. * src/TorrentMan.h (getMultiFileEntries): New function.
  13869. (getName): New function.
  13870. * src/main.cc (main): Use above 2 funtion.
  13871. * Release 0.3.2
  13872. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13873. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13874. (detectMessageFlooding): Updated threshold value.
  13875. (checkLongTimePeerChoking): Updated timeout value.
  13876. (getNewPieceAndSendInterest): Added debug log.
  13877. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13878. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13879. (getPeer): Updated.
  13880. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13881. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13882. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13883. is localhost.
  13884. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13885. * src/PendingMessage.cc (processMessage): Not to send piece message
  13886. if peer is not interested in the pieces localhost has.
  13887. * src/Peer.cc (shouldChoke): Updated.
  13888. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13889. * src/Util.cc (isPowerOf): New function.
  13890. * src/Util.h (isPowerOf): New function.
  13891. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13892. whether or not it is power of 2.
  13893. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13894. Added new class SendMessageQueue that includes PendingMessages and
  13895. RequestSlotMan.
  13896. * src/SendMessageQueue.h: New class.
  13897. * src/SendMessageQueue.cc: New class.
  13898. * src/PendingMessage.h: Added new member variable blockIndex and its
  13899. accessors.
  13900. (createRequestMessage): Updated.
  13901. * src/PendingMessage.cc (createRequestMessage): Updated.
  13902. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13903. SendMessageQueue.
  13904. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13905. (receiveMessage): Updated with SendMessageQueue.
  13906. (deletePendingPieceMessage): Removed.
  13907. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13908. (sendInterest): Updated with SendMessageQueue.
  13909. (createRequestPendingMessage): Updated with SendMessageQueue.
  13910. (sendMessages): Updated with SendMessageQueue.
  13911. (onAbort): Updated with SendMessageQueue.
  13912. (keepAlive): Updated with SendMessageQueue.
  13913. (beforeSocketCheck): Updated SendMessageQueue.
  13914. * src/PeerInteractionCommand (sendMessages): Shuffle
  13915. missingBLockIndexes before using it.
  13916. Added its own timeout for peer connection.
  13917. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13918. setter.
  13919. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13920. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13921. Added setTimeout() call.
  13922. (executeInternal): Added setTimeout() call.
  13923. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13924. Added timeout.
  13925. (isTimeoutDetected): Updated.
  13926. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13927. option.
  13928. Added *simple* message flooding checker.
  13929. * src/PeerInteractionCommand.cc (executeInternal):
  13930. Added detectMessageFlooding() call.
  13931. (detectMessageFlooding): New function.
  13932. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13933. (beforeSocketCheck): Added detectMessageFlooding() call.
  13934. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13935. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13936. Removed deletePendingPieceMessage(), getRequestSlot(),
  13937. deleteRequestSlot(), deleteAllRequestSlot().
  13938. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13939. Added checkLongTimePeerChoking() call.
  13940. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13941. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13942. if duplicate == false.
  13943. The parameter "uploaded" and "downloaded" in the tracker request are
  13944. the size since the client sent the "started" event to the tracker.
  13945. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13946. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13947. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13948. getSessionDownloadedSize(), getSessionUploadedSize().
  13949. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13950. getSessionUploadedSize() instead of getDownloadedSize(),
  13951. getUploadedSize().
  13952. * src/PendingMessage.cc (processMessage): Do not send request message
  13953. if the peer is choking the client.
  13954. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13955. less than interval.
  13956. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13957. * configure.in: Added gnutls support. Added several CPP macros.
  13958. * m4/openssl.m4: Added.
  13959. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13960. readData(), peekData(). Added gnutls support.
  13961. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13962. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13963. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13964. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13965. Instead, added a check for whether setup method has executed
  13966. successfully.
  13967. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13968. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13969. * src/Makefile.am: Updated.
  13970. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13971. using whether OpenSSL or gcrypt, depending on the result of configure
  13972. script.
  13973. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13974. messageDigest.h.
  13975. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13976. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13977. Fixed memory leak.
  13978. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13979. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13980. Removed instantiation of TrackerInitCommand. Instead,
  13981. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13982. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13983. ENABLE_SSL.
  13984. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13985. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13986. If a piece is already acquired by another command, delete the request
  13987. slots for the piece.
  13988. * src/TrackerUpdateCommand.cc (execute):
  13989. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13990. Added a check whether peer list is null.
  13991. Fixed the bug that causes sending completed event to the tracker
  13992. several times.
  13993. * src/TrackerInitCommand.cc (execute):
  13994. Fixed the bug that causes sending completed event to the tracker
  13995. several times.
  13996. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13997. by using messageDigest.h.
  13998. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13999. * PeerConnection.cc: Replaced log message "keep-alive" with
  14000. "keep alive".
  14001. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14002. localhost long time.
  14003. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14004. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14005. at most 100 failure entry from the list. If with duplicate = false,
  14006. MAX_PEER_LIST is not checked.
  14007. * PeerListenCommand.cc: Fixed the argument order of log message.
  14008. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14009. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14010. Added warn().
  14011. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14012. Implemented warn().
  14013. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14014. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14015. * Request.h: Added AFTER_COMPLETED event.
  14016. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14017. instead of downloaded size and progress(%) after download completes.
  14018. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14019. message to the peer if it is interested in what localhost has
  14020. downloaded.
  14021. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14022. destination instead of just renaming it.
  14023. * TorrentMan.cc: Added deleteTempFile().
  14024. * PeerAbstractCommand.cc: do not stop execution after download
  14025. completes. This makes localhost a seeder.
  14026. * Util.{h,cc}: Added fileCopy().
  14027. * PeerListenCommand.cc: do not stop execution after download completes.
  14028. This makes localhost a seeder.
  14029. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14030. Added TorrentMan::deleteTempFile() to torrentHandler.
  14031. Initialized the variable dir as ".".
  14032. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14033. Deleted renameSingleFile().
  14034. Added copySingleFile(), deleteTempFile().
  14035. * DownloadEngine.h: Added virtual function afterEachIteration().
  14036. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14037. in onEndOfRun() to afterEachIteration().
  14038. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14039. true.
  14040. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14041. In rangedFileCopy(), added try-catch block to properly close file
  14042. descriptors.
  14043. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14044. Added afterEachIteration(), isFilenameFixed().
  14045. * Peer.cc: Changed choking strategy.
  14046. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14047. * TrackerInitCommand.cc: Send completed event only once.
  14048. * DownloadEngine.cc: Added a call to afterEachIteration().
  14049. * TrackerUpdateCommand.cc: Do not stop execution after download
  14050. completes.
  14051. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14052. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14053. received from a tracker.
  14054. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14055. Decreased the number of failure peers to delete to 0(just comment out
  14056. the line).
  14057. * Release 0.3.1
  14058. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14059. * PeerInteractionCommand.cc: added a call to
  14060. TorrentMan::unadvertisePiece in Destructor.
  14061. * PeerInteractionCommand.cc: make have message sent immediately
  14062. if the size of pending message queue is zero.
  14063. * TorrentMan.cc: set the maximum size of peer list to 250.
  14064. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14065. to deque.
  14066. * Util.cc: fixed rangedFileCopy.
  14067. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14068. to Constructor. Also, moved digest cleanup to Destructor.
  14069. * MetaFileUtil.cc: fixed memory leak
  14070. * replaced std::vector with std::deque.
  14071. * AbstractCommand.cc: casted timeout value to long long int.
  14072. * ChunkedEncoding.cc: fixed memory leak.
  14073. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14074. * SleepCommand.cc: casted timeout value to long long int.
  14075. * Data.cc: fixed memory leak.
  14076. * Data.cc: fixed toLLInt().
  14077. * BitfieldMan.cc: fixed memory leak.
  14078. * TorrentMan.cc: initialized storeDir to ".".
  14079. * TorrentMan.cc: fixed memory leak.
  14080. * TorrentMan.cc: corrected file paths of splitted files.
  14081. * PeerAbstractCommand.cc: casted timeout to long long int.
  14082. * main.cc: added delete(req) and delete(te->diskWriter).
  14083. * RequestSlot.cc: casted timeout value to long long int.
  14084. * Request.cc: fixed memory leak.
  14085. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14086. have the piece.
  14087. * Peer.{h,cc}: added hasPiece(int index).
  14088. * main.cc: corrected addCommand.
  14089. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14090. * BitTorrent protocol support added.
  14091. * Release 0.3.0
  14092. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14093. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14094. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14095. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14096. decoding did not work properly.
  14097. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14098. * DownloadEngine.h: included sys/time.h
  14099. * DownloadEngine.cc: remove sys/time.h
  14100. * Makefile.am (SUBDIRS): Add intl.
  14101. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14102. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14103. * main.cc: correct help message for --http-auth-scheme.
  14104. * main.cc: changed e-mail address for bug reports.
  14105. * ja.po: added japanese translation.
  14106. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14107. * SimpleLogger.cc: flush log file instead of stdout.
  14108. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14109. * main.cc: Fixed command-line option: max-tries
  14110. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14111. does not equal to seg.sp.
  14112. * DownloadCommand.cc: If EOF is got from the server and the total size
  14113. of file is not zero, then throw DlRetryEx.
  14114. * main.cc: Set the minium value of min-segment-size to 1024.
  14115. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14116. fails because of a regression since 0.2.0 release.
  14117. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14118. * HttpConnection.cc:
  14119. * common.h: defined the user agent name as macro
  14120. * DownloadEngine.{h, cc}:
  14121. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14122. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14123. * main.cc: Download complete/abort message is now generated by main.
  14124. * Makefile.am (SUBDIRS): Add m4.
  14125. (ACLOCAL_AMFLAGS): New variable.
  14126. (EXTRA_DIST): New variable.
  14127. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14128. * gettext: added gettext functionality
  14129. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14130. * AbstractCommand.cc:
  14131. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14132. unregister its cuid from SegmentMan.
  14133. * DownloadEngine.cc: .aria2 file was written when a downloading
  14134. failed with errors.
  14135. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14136. Added "User-Agent" header to CONNECT proxy request.
  14137. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14138. properly.
  14139. * Logger.h:
  14140. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14141. * ChunkedEncoding.cc: Added #include directive for strings.h
  14142. * Release 0.2.1
  14143. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14144. * Util.{h,cc}: added startsWith().
  14145. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14146. Util::endsWith().
  14147. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14148. * common.h: added #include directive of limit.h.
  14149. * DownloadEngine.cc: added #include directive of sys/time.h and
  14150. algorithm.
  14151. * Exception.h: added #include directive of stdio.h.
  14152. * AbstractCommand.h: added #include directive of sys/time.h.
  14153. * DownloadCommand.h: added #include directive of sys/time.h.
  14154. * *.h: added #include directive of common.h to all base classes.
  14155. subclasses' one was removed.
  14156. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14157. does not define these macros.
  14158. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14159. * Release 0.2.0
  14160. * main.cc:
  14161. * HttpInitiateConnectionCommand.{h,cc}:
  14162. * prefs.h:
  14163. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14164. We can now use GET command in http proxy.
  14165. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14166. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14167. that splits slowest segment of SegmentMan::commands vector.
  14168. This is the default split algorithm of aria2.
  14169. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14170. that splits first segment of SegmentMan::commands vector.
  14171. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14172. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14173. * Segment.h:
  14174. * SegmentMan.cc: Added speed field to Segment.h
  14175. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14176. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14177. * message.h: Change file size related %d to %lld.
  14178. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14179. * FtpInitiateConnectionCommand.{h,cc}:
  14180. * FtpNegotiationCommand.{h,cc}:
  14181. * FtpDownloadCommand.{h,cc}:
  14182. * FtpConnection.{h,cc}: Added FTP support
  14183. * SimpleLogger.cc: Log message now includes time information.
  14184. * main.cc: The value of --http-auth-scheme option is chagned from
  14185. 'BASIC' to 'basic'
  14186. * main.cc: Added --timeout command-line option.
  14187. * main.cc: Added --min-segment-size command-line option.
  14188. * main.cc: Added --max-retries command-line option.
  14189. * prefs.h: option string constants are now defined in prefs.h
  14190. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14191. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14192. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14193. with version 0.1.0's one.
  14194. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14195. * configure.in: Added --enable-ssl option to configure script.
  14196. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14197. cannot permit absoluteURI as Request-URI.
  14198. * HttpConnection.cc: Added Referer support.
  14199. * main.cc: Added referer command-line option.
  14200. * main.cc: Added rety-wait command-line option.
  14201. * Exception.h: Fixed formating bug in Exception::setMsg()
  14202. * SocketCore.{h,cc}:
  14203. * Socket.{h, cc}:
  14204. * Request.cc:
  14205. * InitiateConnectionCommandFactory.cc:
  14206. * HttpRequestCommand.cc: Added HTTPS support.
  14207. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14208. for SocketCore.
  14209. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14210. size is wrong
  14211. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14212. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14213. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14214. * Release 0.1.0