ChangeLog 502 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806
  1. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Parse options in -i list using OptionParser.
  3. * src/UriListParser.cc
  4. * src/UriListParser.h
  5. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Don't reset URI in retry to avoid additional round trips because
  7. of redirects.
  8. * src/AbstractCommand.cc
  9. * src/OptionHandlerFactory.cc
  10. * src/prefs.cc
  11. * src/prefs.h
  12. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Declared hide() in OptionHandler.
  14. * src/NameMatchOptionHandler.h
  15. * src/OptionHandler.h
  16. * src/OptionHandlerImpl.h
  17. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Updated doc
  19. * src/Peer.h
  20. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Added log message in setStatusInternal()
  22. * src/ServerStat.cc
  23. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Call ServerStat::setError() in AbstractCommand::onAbort() to
  25. effectively exclude failed server.
  26. * src/AbstractCommand.cc
  27. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Added --index-out option to specify each file path for torrent.
  29. Here index shown in --show-files option is used to specify which
  30. file path should be altered. For example, to change the file path
  31. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  32. option multiple times: --index-out=1=aria2.tar.bz2
  33. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  34. available. This option can be specified in -i list.
  35. * src/DefaultBtContext.cc
  36. * src/DefaultBtContext.h
  37. * src/MultiDiskAdaptor.cc
  38. * src/MultiDiskAdaptor.h
  39. * src/MultiFileAllocationIterator.cc
  40. * src/OptionHandlerFactory.cc
  41. * src/OptionHandlerImpl.h
  42. * src/Util.cc
  43. * src/Util.h
  44. * src/download_helper.cc
  45. * src/prefs.cc
  46. * src/prefs.h
  47. * src/usage_text.h
  48. * test/DefaultBtContextTest.cc
  49. * test/MultiDiskAdaptorTest.cc
  50. * test/MultiFileAllocationIteratorTest.cc
  51. * test/UtilTest.cc
  52. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Use Util::pathJoin()
  54. * src/MetalinkParserController.cc
  55. * test/test.xml
  56. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  57. Use Util::pathJoin()
  58. * src/DefaultBtContext.cc
  59. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. Added Util::pathJoin()
  61. * src/Util.h
  62. * test/UtilTest.cc
  63. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Applied basename function to remove directory element in
  65. content-disposition value.
  66. Return empty string if content-disposition value is ".." or ".".
  67. * src/Util.cc
  68. * test/UtilTest.cc
  69. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Added --max-overall-download-limit in man page.
  71. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  72. * doc/aria2c.1.txt
  73. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Added --max-overall-download-limit option. Now --max-upload-limit
  75. option is not ignored when --max-overall-upload-limit option has
  76. non-zero value. aria2 checks download(upload) speed in the order:
  77. first checks overall speed limit and if it is not exceeded, then
  78. checks speed limit per download. Thus you can specify both
  79. value. For example, set --max-overall-download-limit=1M and
  80. --max-download-limit=500K to prevent from one download from eating
  81. all overall speed limit.
  82. * src/DefaultBtInteractive.cc
  83. * src/DefaultBtInteractive.h
  84. * src/DefaultBtMessageDispatcher.cc
  85. * src/DefaultBtMessageDispatcher.h
  86. * src/DownloadCommand.cc
  87. * src/DownloadCommand.h
  88. * src/FtpNegotiationCommand.cc
  89. * src/HttpResponseCommand.cc
  90. * src/OptionHandlerFactory.cc
  91. * src/PeerInteractionCommand.cc
  92. * src/RequestGroup.cc
  93. * src/RequestGroup.h
  94. * src/RequestGroupMan.cc
  95. * src/RequestGroupMan.h
  96. * src/prefs.cc
  97. * src/prefs.h
  98. * src/usage_text.h
  99. * test/DefaultBtMessageDispatcherTest.cc
  100. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Documented select-file option in Input File section.
  102. Documented --http-auth-challenge option.
  103. * doc/aria2c.1.txt
  104. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Now select-file can be specified in the uri list(-i list).
  106. * src/BtContext.cc
  107. * src/BtContext.h
  108. * src/RequestGroup.cc
  109. * src/Sequence.h
  110. * src/download_helper.cc
  111. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Made the upper value of --max-concurrent-downloads options unlimited.
  113. * src/OptionHandlerFactory.cc
  114. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Fixed the bug that disk writer is not created even if it shares
  116. same piece with the preceding file if the length of previous file
  117. is 0.
  118. * src/MultiDiskAdaptor.cc
  119. * test/MultiDiskAdaptorTest.cc
  120. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. In BitTorrent, Open files in read-only mode for hash check. After
  122. that, re-open file in read/write mode only when the download is
  123. not finished.
  124. * src/AbstractDiskWriter.cc
  125. * src/AbstractDiskWriter.h
  126. * src/AbstractSingleDiskAdaptor.cc
  127. * src/AbstractSingleDiskAdaptor.h
  128. * src/BtCheckIntegrityEntry.cc
  129. * src/DiskAdaptor.h
  130. * src/DiskWriter.h
  131. * src/MultiDiskAdaptor.cc
  132. * src/MultiDiskAdaptor.h
  133. * src/RequestGroup.cc
  134. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  135. Added --http-auth-challenge option. If it is set to true(by
  136. default), aria2 sends HTTP authorization header only when it is
  137. requested by the server. If false is set, then authorization
  138. header is always sent to the server. This is useful for servers
  139. that don't respond 401 code when authentication is required.
  140. There is an exception: if username and password are embedded in
  141. URI, authorization header is always sent to the server regardless
  142. of this option.
  143. * src/AuthConfigFactory.cc
  144. * src/HttpSkipResponseCommand.cc
  145. * src/OptionHandlerFactory.cc
  146. * src/prefs.cc
  147. * src/prefs.h
  148. * src/usage_text.h
  149. * test/AuthConfigFactoryTest.cc
  150. * test/HttpRequestTest.cc
  151. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. * Release 1.2.0
  153. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Updated Spanish, Ukrainian, Russian and Japanese translations.
  155. Thanks to all translators.
  156. * po/es.po
  157. * po/ja.po
  158. * po/ru.po
  159. * po/uk.po
  160. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Call deleteSocketForReadCheck() before socket is closed.
  162. * src/HttpListenCommand.cc
  163. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Defined virtual destructor for BObject.
  165. * src/bencode.h
  166. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Rewritten BDE to make it efficient.
  168. * src/bencode.cc
  169. * src/bencode.h
  170. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. Removed function throw list.
  172. * src/bencode.cc
  173. * src/bencode.h
  174. * test/BencodeTest.cc
  175. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Enclosed all URLs in double quotes in command-line examples.
  177. * doc/aria2c.1.txt
  178. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Updated reference/see also section.
  180. * README
  181. * doc/aria2c.1.txt
  182. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  183. Reorganized man page based on man man-pages.
  184. * doc/aria2c.1.txt
  185. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  187. because same documents are available in man page. Added
  188. References section.
  189. * README
  190. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  192. PERFORMANCE PROFILE section.
  193. * doc/aria2c.1.txt
  194. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Rewritten the section for configuration file.
  196. * README
  197. * doc/aria2c.1.txt
  198. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Fixed the segmentation fault during execution of choking algorithm
  200. in leecher state because of broken compare operator
  201. implementation.
  202. * src/BtLeecherStateChoke.cc
  203. * src/BtLeecherStateChoke.h
  204. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Open file in binary mode.
  206. * src/CookieStorage.cc
  207. * src/DHTSetup.cc
  208. * src/DHTUtil.cc
  209. * src/Netrc.cc
  210. * src/NsCookieParser.cc
  211. * src/ProtocolDetector.cc
  212. * src/RequestGroupMan.cc
  213. * src/Signature.cc
  214. * src/bencode.cc
  215. * src/download_helper.cc
  216. * src/option_processing.cc
  217. * test/CookieParserTest.cc
  218. * test/DefaultBtProgressInfoFileTest.cc
  219. * test/FileTest.cc
  220. * test/GZipDecoderTest.cc
  221. * test/RequestGroupManTest.cc
  222. * test/SignatureTest.cc
  223. * test/SingleFileAllocationIteratorTest.cc
  224. * test/UriListParserTest.cc
  225. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Removed operator[] because it is ambiguous with built-in []
  227. operator.
  228. * src/array_fun.h
  229. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Fixed compile error
  231. * src/OptionParser.cc
  232. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Added missing call to arrayWrapperConst
  234. * test/array_funTest.cc
  235. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  236. Use array_wrapper instead of array_ptr.
  237. * src/DHTRoutingTableDeserializer.cc
  238. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  240. * src/array_fun.h
  241. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Added array_wrapper template.
  243. * src/array_fun.h
  244. * test/array_funTest.cc
  245. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Use operator T* of array_ptr.
  247. * src/OptionParser.cc
  248. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Use localhost instead of 127.0.0.1
  250. * test/FtpConnectionTest.cc
  251. * test/MSEHandshakeTest.cc
  252. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Added operator T*
  254. * src/array_fun.h
  255. * test/array_funTest.cc
  256. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Use dynamically allocated char array to detect memory access
  258. violation.
  259. * src/DHTRoutingTableDeserializer.cc
  260. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  262. defined.
  263. * src/PeerMessageUtil.cc
  264. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  266. * configure.ac
  267. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Added a check to see struct sockaddr_in has sin_len member.
  269. * configure.ac
  270. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  271. Fixed buffer overrun.
  272. * src/DHTRoutingTableDeserializer.cc
  273. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  274. Added LL for long long int constant.
  275. * test/FtpConnectionTest.cc
  276. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  277. Casted to unsigned int to suppress compiler warning on netbsd.
  278. * src/BtRuntime.h
  279. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Assign the value of tv.tv_sec to time_t timesec instead of giving
  281. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  282. type time_t.
  283. * src/SimpleLogger.cc
  284. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Added test for FtpConnection::receiveSizeResponse().
  286. * test/FtpConnectionTest.cc
  287. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Fix epoll error on the old kernel 2.6.8 or ealier.
  289. * src/EpollEventPoll.cc
  290. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Use Util::parseLLInt instead of sscanf for portability. The
  292. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  293. * src/FtpConnection.cc
  294. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  296. block. It should not filter anything.
  297. * src/BitfieldMan.cc
  298. * src/ConsoleStatCalc.cc
  299. * test/BitfieldManTest.cc
  300. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Fixed the bug that the boolean options that don't take arguments
  302. don't work.
  303. * src/OptionHandlerImpl.h
  304. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Fixed broken selected file BitTorrent download.
  306. * src/MultiDiskAdaptor.cc
  307. * test/MultiDiskAdaptorTest.cc
  308. * test/MultiFileAllocationIteratorTest.cc
  309. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Fixed #define guard for EpollEventPoll
  311. * src/EpollEventPoll.h
  312. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Wait 2 seconds. 1 second is sometimes not enough.
  314. * test/TimeSeedCriteriaTest.cc
  315. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Use localhost instead of 127.0.0.1.
  317. * test/DHTConnectionImplTest.cc
  318. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Suppressed compiler warning.
  320. * src/AdaptiveURISelector.cc
  321. * src/DefaultPieceStorage.cc
  322. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  323. Defined virtual destructor.
  324. * src/MetalinkParserState.h
  325. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Give NULL for second argument of getaddrinfo instead of "0".
  327. * src/NameResolver.cc
  328. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  330. included strptime doesn't parse data for this format.
  331. * src/FtpConnection.cc
  332. * test/FtpConnectionTest.cc
  333. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Removed tests giving -1 for unsigned argument.
  335. * test/SingleFileDownloadContextTest.cc
  336. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Don't use sha256 in tests because it might not be supported by the
  338. SSL library.
  339. * test/MetalinkProcessorTest.cc
  340. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Removed tests giving -1 for unsigned argument.
  342. * test/AlphaNumberDecoratorTest
  343. * test/BitfieldManTest.cc
  344. * test/DefaultBtContextTest.cc
  345. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Fixed compile error without libcares when epoll is available.
  347. * src/EpollEventPoll.cc
  348. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Included fstream instead of iostream.
  350. * test/SignatureTest.cc
  351. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Removed #include <algorithm>
  353. * test/RequestGroupTest.cc
  354. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  355. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  356. using RequestGroup::extractURIResult().
  357. * src/AdaptiveURISelector.cc
  358. * src/RequestGroup.cc
  359. * src/RequestGroup.h
  360. * test/RequestGroupTest.cc
  361. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Added tests for array_ptr.
  363. * test/array_funTest.cc
  364. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Don't send ip parameter to a tracker if ip parameter is empty
  366. string.
  367. * src/DefaultBtAnnounce.cc
  368. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. Adjusted line feed.
  370. * src/version_usage.cc
  371. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Print tags, possible values when OptionHandlerException is caught.
  373. * src/option_processing.cc
  374. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Changed the message for FatalException.
  376. * src/OptionParser.cc
  377. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Documented --bt-external-ip option in man page. Updated man pages
  379. for --proxy-method option.
  380. * doc/aria2c.1.txt
  381. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Use GET method for FTP via HTTP proxy.
  383. * src/FtpInitiateConnectionCommand.cc
  384. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Changed the default value of --proxy-method option from 'tunnel'
  386. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  387. option.
  388. * src/AbstractCommand.cc
  389. * src/AbstractCommand.h
  390. * src/FtpInitiateConnectionCommand.cc
  391. * src/HttpDownloadCommand.cc
  392. * src/HttpInitiateConnectionCommand.cc
  393. * src/HttpInitiateConnectionCommand.h
  394. * src/OptionHandlerFactory.cc
  395. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Initialized _logger
  397. * src/SelectEventPoll.cc
  398. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Defined a copy constructor for the same type.
  400. * src/SharedHandle.h
  401. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Added OptionParser::parseArg() which internally uses getopt_long
  403. to parse command-line options. All command-line options are now
  404. configured by OptionHandler. No manual editing of struct option*
  405. is required any more.
  406. * src/NameMatchOptionHandler.h
  407. * src/OptionHandler.h
  408. * src/OptionHandlerFactory.cc
  409. * src/OptionHandlerImpl.h
  410. * src/OptionParser.cc
  411. * src/OptionParser.h
  412. * src/array_fun.h
  413. * src/main.cc
  414. * src/option_processing.cc
  415. * test/OptionHandlerTest.cc
  416. * test/OptionParserTest.cc
  417. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  418. Fixed configure error with --disable-epoll
  419. * configure.ac
  420. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Fixed compile error when HAVE_EPOLL is not defined.
  422. Fixed linker error on bigendian systems.
  423. * src/SocketCore.cc
  424. * src/SocketCore.h
  425. * test/DefaultBtProgressInfoFileTest.cc
  426. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  427. Added --bt-external-ip option. You can specify the external IP
  428. address to report to a BitTorrent tracker. Although this function
  429. is named 'external', it can accept any kind of IP addresses.
  430. * src/DefaultBtAnnounce.cc
  431. * src/OptionHandlerFactory.cc
  432. * src/option_processing.cc
  433. * src/prefs.cc
  434. * src/prefs.h
  435. * src/usage_text.h
  436. * test/DefaultBtAnnounceTest.cc
  437. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Extracted the algorithm to find the longest incremental sequence
  439. as max_sequence template.
  440. * src/LongestSequencePieceSelector.cc
  441. * src/a2algo.h
  442. * test/Makefile.am
  443. * test/a2algoTest.cc
  444. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  446. * src/usage_text.h
  447. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Updated doc for --uri-selector, --http-server-listen-port and
  449. --enable-http-server option. Documented --event-poll option.
  450. * doc/aria2c.1.txt
  451. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  452. Updated doc for --enable-http-server.
  453. * src/usage_text.h
  454. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. Documented --http-server-listen-port and --enable-http-server in
  456. man page.
  457. * doc/aria2c.1.txt
  458. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  459. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  460. translations. Thanks to all translators.
  461. * po/es.po
  462. * po/id.po
  463. * po/it.po
  464. * po/ru.po
  465. * po/uk.po
  466. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Bump up version number to 1.2.0
  468. * configure.ac
  469. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. BtContext::getAnnounceTiers() now returns const reference.
  471. * src/BtContext.h
  472. * src/DefaultBtContext.cc
  473. * src/DefaultBtContext.h
  474. * test/MockBtContext.h
  475. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Change the number of retries for tracker request based on the
  477. number of available tracker in a torrent file.
  478. * src/TrackerWatcherCommand.cc
  479. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  480. Added _maxTries property to RequestGroup and assign the option
  481. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  482. RequestGroup::getMaxTries() instead of
  483. Option::getAsInt(PREF_MAX_TRIES).
  484. * src/AbstractCommand.cc
  485. * src/RequestGroup.cc
  486. * src/RequestGroup.h
  487. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  489. Mandriva. I modified the patch: make RequestGroup have the
  490. timeout value and AdaptiveURISelector directly modifies that
  491. value.
  492. * src/AbstractCommand.cc
  493. * src/AdaptiveURISelector.cc
  494. * src/AdaptiveURISelector.h
  495. * src/FtpNegotiationCommand.cc
  496. * src/RequestGroup.cc
  497. * src/RequestGroup.h
  498. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  499. Fixed compiler warning
  500. * test/IteratableChecksumValidatorTest.cc
  501. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  503. integrated downloads. This PieceSelector subclass finds the
  504. longest continuous sequence in the available missing pieces and
  505. selects the last index of such sequence. This makes HTTP/FTP
  506. connections less interrupted by the pieces obtained by BitTorrent
  507. peers.
  508. * src/DefaultPieceStorage.cc
  509. * src/DefaultPieceStorage.h
  510. * src/LongestSequencePieceSelector.cc
  511. * src/LongestSequencePieceSelector.h
  512. * src/Makefile.am
  513. * src/PieceSelector.h
  514. * src/RarestPieceSelector.h
  515. * src/RequestGroup.cc
  516. * test/BtDependencyTest.cc
  517. * test/DefaultPieceStorageTest.cc
  518. * test/IteratableChecksumValidatorTest.cc
  519. * test/LongestSequencePieceSelectorTest.cc
  520. * test/Makefile.am
  521. * test/SegmentManTest.cc
  522. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Fixed the bug that the average speed is wrong in
  524. http/ftp/BitTorrent integrated download. Only the download bytes
  525. in BitTorrent were considered.
  526. * src/RequestGroup.cc
  527. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  528. Choose port for BitTorrent/DHT randomly from the specified range.
  529. * src/DHTConnectionImpl.cc
  530. * src/PeerListenCommand.cc
  531. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. Send HTTP Authorization header only if it is requested by the
  533. server(response 401). There are some exceptions. The authorization
  534. header for proxy is always sent if it is available without request
  535. by the server. If username/password is specified in the URI, it
  536. is immediately sent to the server without request by the server.
  537. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  538. SharedHandle<AuthConfig>().
  539. NetrcAuthResolver::resolveAuthConfig() returns
  540. SharedHandle<AuthConfig>() if no AuthConfig is available.
  541. * src/AbstractAuthResolver.cc
  542. * src/AbstractProxyRequestCommand.cc
  543. * src/AuthConfigFactory.cc
  544. * src/AuthConfigFactory.h
  545. * src/HttpConnection.cc
  546. * src/HttpRequest.cc
  547. * src/HttpRequest.h
  548. * src/HttpResponse.cc
  549. * src/HttpResponseCommand.cc
  550. * src/HttpSkipResponseCommand.cc
  551. * test/AuthConfigFactoryTest.cc
  552. * test/HttpRequestTest.cc
  553. * test/HttpResponseTest.cc
  554. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Remove leading "--" from help keyword and a substring after "="
  556. from help keyword, so that one can query options by '-h--max-' or
  557. '-hmax-peers=10'.
  558. * src/option_processing.cc
  559. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Rewritten PStringVisitor and its implementation.
  561. * src/PStringBuildVisitor.cc
  562. * src/PStringBuildVisitor.h
  563. * src/PStringDatum.h
  564. * src/PStringNumLoop.h
  565. * src/PStringSegment.cc
  566. * src/PStringSegment.h
  567. * src/PStringSelect.h
  568. * src/PStringVisitor.h
  569. * src/download_helper.cc
  570. * test/PStringBuildVisitorTest.cc
  571. * test/ParameterizedStringParserTest.cc
  572. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Persist connection between the built-in HTTP server and a client
  574. if a client supports keep-alive. Fixed the bug that aria2 exits
  575. when the HTTP server receives EOF from a client.
  576. * src/HttpServer.cc
  577. * src/HttpServer.h
  578. * src/HttpServerCommand.cc
  579. * src/HttpServerCommand.h
  580. * src/HttpServerResponseCommand.cc
  581. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Added experimental built-in HTTP server. Currently, when a client
  583. accesses to the server, it responds with the current download
  584. progress. By default, it is disabled. To enable the server, give
  585. --enable-http-server option. To change the default port number
  586. for the server to listen to, use --http-server-listen-port option.
  587. The response HTML is very simple and refreshes it self each 1
  588. second. Because of this refresh, you see flicker in normal web
  589. browser such as Firefox. I recommend to use console-based browser
  590. such as elinks, w3m. To connect to the server, run 'elinks
  591. http://localhost:6800/' while running aria2. Please replace port
  592. number '6800'(which is default) with your preference.
  593. * src/DownloadEngineFactory.cc
  594. * src/HttpHeader.cc
  595. * src/HttpHeader.h
  596. * src/HttpHeaderProcessor.cc
  597. * src/HttpHeaderProcessor.h
  598. * src/HttpListenCommand.cc
  599. * src/HttpListenCommand.h
  600. * src/HttpServer.cc
  601. * src/HttpServer.h
  602. * src/HttpServerCommand.cc
  603. * src/HttpServerCommand.h
  604. * src/HttpServerResponseCommand.cc
  605. * src/HttpServerResponseCommand.h
  606. * src/Makefile.am
  607. * src/OptionHandlerFactory.cc
  608. * src/Util.cc
  609. * src/Util.h
  610. * src/help_tags.h
  611. * src/option_processing.cc
  612. * src/prefs.cc
  613. * src/prefs.h
  614. * src/usage_text.h
  615. * test/HttpHeaderProcessorTest.cc
  616. * test/UtilTest.cc
  617. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Removed.
  619. * src/CheckIntegrityMan.cc
  620. * src/FileAllocationMan.cc
  621. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Made (piece) hash check sequential for each RequestGroup because
  623. simultaneous hash check is slower than sequential execution.
  624. * src/CheckIntegrityCommand.cc
  625. * src/CheckIntegrityDispatcherCommand.cc
  626. * src/CheckIntegrityDispatcherCommand.h
  627. * src/CheckIntegrityMan.h
  628. * src/ConsoleStatCalc.cc
  629. * src/DownloadCommand.cc
  630. * src/DownloadEngine.cc
  631. * src/DownloadEngine.h
  632. * src/DownloadEngineFactory.cc
  633. * src/Makefile.am
  634. * src/Makefile.in
  635. * src/RequestGroup.cc
  636. * src/StatCalc.h
  637. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  639. SequentialDispatcherCommand.
  640. * src/FileAllocationDispatcherCommand.cc
  641. * src/SequentialDispatcherCommand.h
  642. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Rewritten FileAllocationDispatcherCommand using brand new
  644. SequentialDispatcherCommand.
  645. * src/DownloadEngineFactory.cc
  646. * src/FileAllocationCommand.cc
  647. * src/FileAllocationDispatcherCommand.cc
  648. * src/FileAllocationDispatcherCommand.h
  649. * src/Makefile.am
  650. * src/SequentialDispatcherCommand.h
  651. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Replaced FileAllocationMan with
  653. SequentialPicker<FileAllocationEntry>.
  654. * src/BtCheckIntegrityEntry.cc
  655. * src/ConsoleStatCalc.cc
  656. * src/DownloadEngine.cc
  657. * src/DownloadEngine.h
  658. * src/DownloadEngineFactory.cc
  659. * src/FileAllocationCommand.cc
  660. * src/FileAllocationDispatcherCommand.cc
  661. * src/FileAllocationMan.h
  662. * src/Makefile.am
  663. * src/SequentialPicker.h
  664. * src/StatCalc.h
  665. * src/StreamCheckIntegrityEntry.cc
  666. * test/Makefile.am
  667. * test/SequentialPickerTest.cc
  668. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Added doc for adaptive URI selector.
  670. * doc/aria2c.1.txt
  671. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Added doc for adaptive URI selector.
  673. * src/usage_text.h
  674. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Added doc for --bt-max-peers option.
  676. * doc/aria2c.1.txt
  677. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Added doc for --bt-hash-check-seed option.
  679. * doc/aria2c.1.txt
  680. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Documented exit codes.
  682. * doc/aria2c.1.txt
  683. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Added --bt-max-peers option to specify the maximum number of peers
  685. per torrent. 0 means unlimited number of peers.
  686. * src/ActivePeerConnectionCommand.cc
  687. * src/BtRuntime.h
  688. * src/DefaultPeerStorage.cc
  689. * src/DefaultPeerStorage.h
  690. * src/OptionHandlerFactory.cc
  691. * src/RequestGroup.cc
  692. * src/option_processing.cc
  693. * src/prefs.cc
  694. * src/prefs.h
  695. * src/usage_text.h
  696. * test/DefaultPeerStorageTest.cc
  697. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Added --bt-hash-check-seed option. If true is given to this
  699. option, after hash check using --check-integrity option and file
  700. is complete, continue to seed file. If you want to check file and
  701. download it only when it is damaged or incomplete, set this option
  702. to false. This option has effect only on BitTorrent download.
  703. The default value is true(This is the same behavior with the
  704. previous release).
  705. * src/BtCheckIntegrityEntry.cc
  706. * src/OptionHandlerFactory.cc
  707. * src/option_processing.cc
  708. * src/prefs.cc
  709. * src/prefs.h
  710. * src/usage_text.h
  711. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Updated copyright year.
  713. * src/version_usage.cc
  714. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Rewritten the usage text for --bt-request-peer-speed-limit option.
  716. * doc/aria2c.1.txt
  717. * src/usage_text.h
  718. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Made the max value of split option unlimited.
  720. * doc/aria2c.1.txt
  721. * src/OptionHandlerFactory.cc
  722. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Fixed compile warning/error.
  724. * src/DownloadResult.h
  725. * src/HttpDownloadCommand.cc
  726. * src/ServerStat.cc
  727. * test/RequestGroupTest.cc
  728. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Added --event-poll option to select the method for polling events.
  730. The available methods are "select" and "epoll". "epoll" is
  731. available on Linux only. The earlier release has the compile
  732. option to choose from these methods.
  733. * configure.ac
  734. * src/RequestGroupMan.cc
  735. * src/OptionHandlerFactory.cc
  736. * src/EpollEventPoll.h
  737. * src/StreamFileAllocationEntry.cc
  738. * src/a2io.h
  739. * src/SelectEventPoll.h
  740. * src/option_processing.cc
  741. * src/prefs.h
  742. * src/EpollEventPoll.cc
  743. * src/EventPoll.h
  744. * src/SocketCore.h
  745. * src/Makefile.am
  746. * src/main.cc
  747. * src/DownloadEngine.h
  748. * src/SelectEventPoll.cc
  749. * src/DownloadEngine.cc
  750. * src/SocketCore.cc
  751. * src/DownloadEngineFactory.cc
  752. * src/Makefile.in
  753. * src/prefs.cc
  754. * src/usage_text.h
  755. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Included RecoverableException.h from main.cc
  757. * src/main.cc
  758. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  759. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  760. now returns last error encountered in the HTTP/FTP downloads as a
  761. exit status value. If all downloads finished successfully, aria2
  762. returns 0. The error code is defined in src/DownloadResult.h.
  763. The error occurred in the download currently in progress is not
  764. reported as a last error. If no error has encountered but there
  765. are in progress or waiting downloads, aria2 returns 7.
  766. * src/AbstractCommand.cc
  767. * src/DlAbortEx.h
  768. * src/DlRetryEx.h
  769. * src/DownloadCommand.cc
  770. * src/DownloadFailureException.h
  771. * src/DownloadResult.h
  772. * src/FtpNegotiationCommand.cc
  773. * src/HttpSkipResponseCommand.cc
  774. * src/Makefile.am
  775. * src/MultiUrlRequestInfo.cc
  776. * src/MultiUrlRequestInfo.h
  777. * src/RecoverableException.h
  778. * src/RequestGroup.cc
  779. * src/RequestGroup.h
  780. * src/RequestGroupMan.cc
  781. * src/RequestGroupMan.h
  782. * src/URIResult.cc
  783. * src/URIResult.h
  784. * src/main.cc
  785. * src/option_processing.cc
  786. * test/RequestGroupTest.cc
  787. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  789. patch adds AdaptiveURISelector, which selects one of the bests
  790. mirrors for first and reserved connections. For supplementary
  791. ones, it returns mirrors which has not been tested yet, and if
  792. each of them already tested, returns mirrors which has to be
  793. tested again. Otherwise, it doesn't return anymore mirrors.
  794. * src/AdaptiveURISelector.cc
  795. * src/AdaptiveURISelector.h
  796. * src/FtpNegotiationCommand.cc
  797. * src/HttpResponseCommand.cc
  798. * src/Makefile.am
  799. * src/Makefile.in
  800. * src/OptionHandlerFactory.cc
  801. * src/RequestGroup.cc
  802. * src/RequestGroup.h
  803. * src/RequestGroupMan.cc
  804. * src/ServerStat.cc
  805. * src/ServerStat.h
  806. * src/ServerStatMan.cc
  807. * src/SpeedCalc.cc
  808. * src/URISelector.h
  809. * src/prefs.cc
  810. * src/prefs.h
  811. * test/RequestGroupManTest.cc
  812. * test/ServerStatManTest.cc
  813. * test/ServerStatTest.cc
  814. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Fixed unit test error.
  816. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  817. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. * Release 1.1.2
  819. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Updated Russian translation. Thanks to the translators.
  821. * po/ru.po
  822. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Added the description of --use-head option to man page.
  824. * doc/aria2c.1.txt
  825. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Bump up version number to 1.1.2
  827. * configure.ac
  828. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Added --use-head option to toggle whether HEAD method should be
  830. used in the first HTTP request. By default aria2 uses HEAD method
  831. as the first request. When the server doesn't recognize HEAD, then
  832. give aria2 --use-head=false to force aria2 to use GET method
  833. instead.
  834. * src/OptionHandlerFactory.cc
  835. * src/RequestGroupMan.cc
  836. * src/option_processing.cc
  837. * src/prefs.cc
  838. * src/prefs.h
  839. * src/usage_text.h
  840. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Fixed the bug that BitTorrent download doesn't finish when REJECT
  842. message is received before CHOKE message. The old implementation
  843. doen't clear the use-bit of the piece when recieved REJECT
  844. message.
  845. * src/DefaultBtMessageDispatcher.cc
  846. * test/DefaultBtMessageDispatcherTest.cc
  847. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. * Release 1.1.1
  849. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Bump up version number to 1.1.1.
  851. * configure.ac
  852. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Fixed the bug that --summary-interval=0 doesn't work. The summary
  854. is printed repeatedly.
  855. * src/ConsoleStatCalc.cc
  856. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. * Release 1.1.0
  858. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Added ifdef clause for conditional compilation.
  860. * src/main.cc
  861. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  862. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  863. translations. Thanks to all translators.
  864. * po/ja.po
  865. * po/ru.po
  866. * po/uk.po
  867. * po/zh_CN.po
  868. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Added the preceding ">>> " before the message "Printing the
  870. contents of file..." to make the output more readable.
  871. * src/main.cc
  872. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Added try-catch block in the loop in showFiles() to continue the
  874. operation even if the exception occurred in one file.
  875. * src/main.cc (showFiles)
  876. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. Made messages in showFiles() translatable.
  878. * po/aria2.pot
  879. * src/main.cc
  880. * src/message.h
  881. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  882. Print the contents of Torrent/Metalink files are printed without
  883. -T/-M options.
  884. * src/main.cc
  885. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Escaped '--' with '\--'
  887. * README
  888. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Updated "How to build" section in README. Mentioned about
  890. --with-ca-bundle compile option.
  891. * README
  892. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  893. Bump up version number to 1.1.0.
  894. * configure.ac
  895. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Added a note for --dht-listen-port option.
  897. * doc/aria2c.1.txt
  898. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Update doc for --realtime-chunk-checksum option.
  900. * doc/aria2c.1.txt
  901. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Update doc for --realtime-chunk-checksum option.
  903. * src/usage_text.h
  904. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  905. Updated French, Japanese, Russian and Ukrainian translations.
  906. Thanks to all translators.
  907. * po/fr.po
  908. * po/ja.po
  909. * po/ru.po
  910. * po/uk.po
  911. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Renamed aria2c.pot to aria2.pot
  913. * po/aria2.pot
  914. * po/aria2c.pot: Removed.
  915. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  916. Removed MetaEntry.h
  917. * src/Makefile.am
  918. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Rename file by appending digits if a local file exists and its
  920. file size is larger than that of remote file with --continue
  921. option. The old implementation just throws exception in such case.
  922. * src/RequestGroup.cc
  923. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Fixed the bug that download progress summary is not printed in the
  925. interval specified by the option.
  926. * src/ConsoleStatCalc.cc
  927. * src/ConsoleStatCalc.h
  928. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Fixed compiler warning
  930. * src/Cookie.cc
  931. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. Fixed the cookie implementation based on RFC2965.
  933. Now if a value in domain field is not started with dot, then
  934. prepend dot. That means a cookie with domain=sf.net is sent to
  935. wiki.sf.net.
  936. * src/Cookie.cc
  937. * test/CookieParserTest.cc
  938. * test/CookieStorageTest.cc
  939. * test/CookieTest.cc
  940. * test/NsCookieParserTest.cc
  941. * test/Sqlite3MozCookieParserTest.cc
  942. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Fixed the bug that causes corrupted downloads if HTTP pipelining
  944. is enabled and the server doesn't support keep-alive.
  945. * src/AbstractCommand.cc
  946. * src/DownloadCommand.cc
  947. * src/HttpDownloadCommand.cc
  948. * src/HttpDownloadCommand.h
  949. * src/HttpResponseCommand.cc
  950. * src/Request.cc
  951. * src/Request.h
  952. * test/RequestTest.cc
  953. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Removed Dictionary/List/Data and its related classes.
  955. * src/BencodeVisitor.cc: Removed.
  956. * src/BencodeVisitor.h: Removed.
  957. * src/Data.cc: Removed.
  958. * src/Data.h: Removed.
  959. * src/Dictionary.cc: Removed.
  960. * src/Dictionary.h: Removed.
  961. * src/List.cc: Removed.
  962. * src/List.h: Removed.
  963. * src/Makefile.am
  964. * src/MetaEntry.h: Removed.
  965. * src/MetaEntryVisitor.h: Removed.
  966. * src/MetaFileUtil.cc: Removed.
  967. * src/MetaFileUtil.h: Removed.
  968. * test/BencodeVisitorTest.cc: Removed.
  969. * test/DataTest.cc: Removed.
  970. * test/DictionaryTest.cc: Removed.
  971. * test/ListTest.cc: Removed.
  972. * test/Makefile.am
  973. * test/MetaFileUtilTest.cc: Removed.
  974. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Removed include of MetaEntry.h
  976. * test/DHTMessageTrackerEntryTest.cc
  977. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. Use BDE instead of Dictionary/List/Data.
  979. * src/AnnounceList.cc
  980. * src/AnnounceList.h
  981. * test/AnnounceListTest.cc
  982. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Use BDE instead of Dictionary/List/Data.
  984. * src/DHTAbstractMessage.cc
  985. * src/DHTAbstractMessage.h
  986. * src/DHTAnnouncePeerMessage.cc
  987. * src/DHTAnnouncePeerMessage.h
  988. * src/DHTAnnouncePeerReplyMessage.cc
  989. * src/DHTAnnouncePeerReplyMessage.h
  990. * src/DHTFindNodeMessage.cc
  991. * src/DHTFindNodeMessage.h
  992. * src/DHTFindNodeReplyMessage.cc
  993. * src/DHTFindNodeReplyMessage.h
  994. * src/DHTGetPeersMessage.cc
  995. * src/DHTGetPeersMessage.h
  996. * src/DHTGetPeersReplyMessage.cc
  997. * src/DHTGetPeersReplyMessage.h
  998. * src/DHTMessageFactory.h
  999. * src/DHTMessageFactoryImpl.cc
  1000. * src/DHTMessageFactoryImpl.h
  1001. * src/DHTMessageReceiver.cc
  1002. * src/DHTMessageTracker.cc
  1003. * src/DHTMessageTracker.h
  1004. * src/DHTPingMessage.cc
  1005. * src/DHTPingMessage.h
  1006. * src/DHTPingReplyMessage.cc
  1007. * src/DHTPingReplyMessage.h
  1008. * src/DHTQueryMessage.cc
  1009. * src/DHTQueryMessage.h
  1010. * src/DHTResponseMessage.cc
  1011. * src/DHTResponseMessage.h
  1012. * test/DHTAnnouncePeerMessageTest.cc
  1013. * test/DHTAnnouncePeerReplyMessageTest.cc
  1014. * test/DHTFindNodeMessageTest.cc
  1015. * test/DHTFindNodeReplyMessageTest.cc
  1016. * test/DHTGetPeersMessageTest.cc
  1017. * test/DHTGetPeersReplyMessageTest.cc
  1018. * test/DHTMessageFactoryImplTest.cc
  1019. * test/DHTMessageTrackerTest.cc
  1020. * test/DHTPingMessageTest.cc
  1021. * test/DHTPingReplyMessageTest.cc
  1022. * test/MockDHTMessageFactory.h
  1023. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1024. Added tests the case where length < 0 is specified.
  1025. * test/BencodeTest.cc
  1026. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1027. Fixed memory leak in decoderawstring()
  1028. * src/bencode.cc
  1029. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1030. Added missing #ifdef guard. Added uc() function for String and
  1031. removeKey() for Dict.
  1032. * src/bencode.cc
  1033. * src/bencode.h
  1034. * test/BencodeTest.cc
  1035. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. Use BDE instead of Dictionary/List/Data.
  1037. * src/HandshakeExtensionMessage.cc
  1038. * src/HandshakeExtensionMessage.h
  1039. * test/HandshakeExtensionMessageTest.cc
  1040. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Added --max-overall-upload-limit option. This option limits the
  1042. overall upload speed. Stated in help message that the existing
  1043. --max-upload-limit option limits the upload speed per each
  1044. torrent. Man page is also updated.
  1045. * doc/aria2c.1.txt
  1046. * src/DefaultBtMessageDispatcher.cc
  1047. * src/DefaultBtMessageDispatcher.h
  1048. * src/OptionHandlerFactory.cc
  1049. * src/PeerInteractionCommand.cc
  1050. * src/option_processing.cc
  1051. * src/prefs.cc
  1052. * src/prefs.h
  1053. * src/usage_text.h
  1054. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Use BDE instead of Dictionary/List/Data classes.
  1056. * src/CompactPeerListProcessor.cc
  1057. * src/CompactPeerListProcessor.h
  1058. * src/DefaultBtAnnounce.cc
  1059. * src/DefaultBtContext.cc
  1060. * src/DefaultBtContext.h
  1061. * src/DefaultPeerListProcessor.cc
  1062. * src/DefaultPeerListProcessor.h
  1063. * src/DelegatingPeerListProcessor.cc
  1064. * src/DelegatingPeerListProcessor.h
  1065. * src/PeerListProcessor.h
  1066. * src/UTPexExtensionMessage.cc
  1067. * src/Util.h
  1068. * src/message.h
  1069. * test/DefaultBtContextTest.cc
  1070. * test/DefaultPeerListProcessorTest.cc
  1071. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. Added bencode helper functions and BDE class.
  1073. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1074. * src/Makefile.am
  1075. * src/bencode.cc
  1076. * src/bencode.h
  1077. * test/BencodeTest.cc
  1078. * test/Makefile.am
  1079. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Fixed the bug that bad URI is sent to the tracker when the announe
  1081. URI in torrent file includes query.
  1082. * src/DefaultBtAnnounce.cc
  1083. * test/DefaultBtAnnounceTest.cc
  1084. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Added Option::blank().
  1086. Use !Option::blank(name) instead of Option::defined(name) for
  1087. the options that take filename.
  1088. * src/MultiUrlRequestInfo.cc
  1089. * src/Option.cc
  1090. * src/Option.h
  1091. * src/main.cc
  1092. * src/option_processing.cc
  1093. * test/OptionTest.cc
  1094. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Documented the default value of --check-certificate option in man
  1096. page.
  1097. * doc/aria2c.1.txt
  1098. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Enabled --check-certificate by default. Added compile
  1100. time(configure) option --with-ca-bundle to specify CA bundle.
  1101. Warn if --check-certificate=true and --ca-certificate is not
  1102. specified or loading CA certificate is failed.
  1103. * configure.ac
  1104. * src/MultiUrlRequestInfo.cc
  1105. * src/OptionHandlerFactory.cc
  1106. * src/message.h
  1107. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Mentioned https tag in help option.
  1109. * doc/aria2c.1.txt
  1110. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Added `https' tag to help option category. Added https tag to
  1112. --ca-certificate, --certificate, --check-certificate and
  1113. --private-key option.
  1114. * src/OptionHandlerFactory.cc
  1115. * src/help_tags.h
  1116. * src/option_processing.cc
  1117. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Changed the package name from `aria2c' to `aria2' in order to fix
  1119. the packaging issue in Debian and Fedora. The name of the
  1120. executable is not changed.
  1121. * configure.ac
  1122. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Fixed typos
  1124. * src/usage_text.h
  1125. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1126. Fixed typos and updated doc.
  1127. * README
  1128. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. Fixed typos
  1130. * doc/aria2c.1.txt
  1131. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Fixed typos
  1133. * src/usage_text.h
  1134. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1135. Print a message when no files to download.
  1136. * src/download_helper.cc
  1137. * src/main.cc
  1138. * src/message.h
  1139. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. RFC3986 complied Percent-Encoding(urlencode).
  1141. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1142. ones.
  1143. * src/Request.cc
  1144. * src/Util.cc
  1145. * src/Util.h
  1146. * test/BtHandshakeMessageTest.cc
  1147. * test/DefaultBtAnnounceTest.cc
  1148. * test/DefaultBtContextTest.cc
  1149. * test/RequestTest.cc
  1150. * test/UtilTest.cc
  1151. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Fixed the bug that prevents aria2 from downloading 0-length files
  1153. via HTTP/FTP.
  1154. * src/DefaultBtContext.cc
  1155. * src/DefaultBtContext.h
  1156. * src/DownloadContext.h
  1157. * src/FtpNegotiationCommand.cc
  1158. * src/HttpResponseCommand.cc
  1159. * src/HttpResponseCommand.h
  1160. * src/RequestGroup.cc
  1161. * src/SingleFileDownloadContext.cc
  1162. * src/SingleFileDownloadContext.h
  1163. * test/BtPostDownloadHandlerTest.cc
  1164. * test/MetalinkPostDownloadHandlerTest.cc
  1165. * test/MockBtContext.h
  1166. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1168. * src/option_processing.cc
  1169. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Applied aria2-1.0.1-mingw.patch.
  1171. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1172. mingw.
  1173. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1174. * src/SocketCore.cc
  1175. * src/a2netcompat.h
  1176. * test/SocketCoreTest.cc
  1177. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1178. * Release 1.0.1
  1179. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Updated Ukrainian and Norwegian Nynorsk translations.
  1181. Thanks to all translators.
  1182. * po/nn.po
  1183. * po/uk.po
  1184. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Don't show download result when -S option is used.
  1186. * src/main.cc
  1187. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Bump up version number to 1.0.1
  1189. * configure.ac
  1190. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Closed files after the test cases in MultiDiskWriterTest::
  1192. testResetDiskWriterEntries(). This will fix the unit test error
  1193. in mingw32 build.
  1194. * test/MultiDiskWriterTest.cc
  1195. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Use HEAD method to get file size from HTTP server for segmented
  1197. downloading.
  1198. The request to the BitTorrent Tracker always uses GET method because
  1199. the response of the tracker is small and it doesn't need segmented
  1200. download.
  1201. * src/FtpNegotiationCommand.cc
  1202. * src/HttpRequest.cc
  1203. * src/HttpResponseCommand.cc
  1204. * src/HttpSkipResponseCommand.cc
  1205. * src/RequestGroup.cc
  1206. * src/RequestGroup.h
  1207. * src/TrackerWatcherCommand.cc
  1208. * test/HttpRequestTest.cc
  1209. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1210. Fixed the bug that causes floating exception when -T option is used and
  1211. no URIs are given.
  1212. * src/download_helper.cc
  1213. * test/DownloadHelperTest.cc
  1214. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1215. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1216. errors in MinGW:
  1217. Closed file after saving server stats (RequestGroupMan.cc)
  1218. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1219. Ignored case & handled 2-digit years (strptime.c)
  1220. Added missing suseconds_t definition (a2time.h)
  1221. Fixed socket CLOSE() define (SocketCore.cc)
  1222. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1223. Changed utime() test values from x000 to x00000 as MinGW failed on
  1224. values less than timezone offset from Unix epoch
  1225. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1226. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1227. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1228. handle negative dates (CookieParserTest.cc)
  1229. * src/a2time.h
  1230. * src/FtpConnection.cc
  1231. * src/RequestGroupMan.cc
  1232. * src/SocketCore.cc
  1233. * src/strptime.c
  1234. * test/CookieParserTest.cc
  1235. * test/CopyDiskAdaptorTest.cc
  1236. * test/FileTest.cc
  1237. * test/FtpConnectionTest.cc
  1238. * test/MultiDiskAdaptorTest.cc
  1239. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1241. * doc/aria2c.1.txt
  1242. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. * Release 1.0.0
  1244. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Added '~' to reserved characters.
  1246. * src/Util.cc
  1247. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Do not urlencode Request::url in setUrl() because we want unmodified
  1249. URL using Request::getUrl()
  1250. * src/Request.cc
  1251. * src/Request.h
  1252. * test/RequestTest.cc
  1253. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1255. Thanks to all translators.
  1256. * po/bg.po
  1257. * po/fr.po
  1258. * po/ja.po
  1259. * po/ru.po
  1260. * po/uk.po
  1261. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Bump up version number to 1.0.0
  1263. * configure.ac
  1264. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Added nosqlite3 build to build_test.sh.
  1266. Renamed noxml as expat.
  1267. * build_test.sh
  1268. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Updated INPUT FILE section.
  1270. * doc/aria2c.1.txt
  1271. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1273. on big endian systems because test .aria2 files are made for little
  1274. endian systems.
  1275. * test/DefaultBtProgressInfoFileTest.cc
  1276. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Dropped ares support.
  1278. * README
  1279. * configure.ac
  1280. * m4/libares.m4: Removed.
  1281. * src/AsyncNameResolver.cc
  1282. * src/Makefile.am
  1283. * test/Makefile.am
  1284. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1286. Removed const qualifier from DiskWriter::size().
  1287. * src/AbstractDiskWriter.cc
  1288. * src/AbstractDiskWriter.h
  1289. * src/ByteArrayDiskWriter.cc
  1290. * src/ByteArrayDiskWriter.h
  1291. * src/DiskWriter.h
  1292. * test/ByteArrayDiskWriterTest.cc
  1293. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Fixed the bug that causes segmentation fault/bus error during executing
  1295. choking algorithm while seeding. This is caused by improper
  1296. implementation of compare function which returns inconsistent results
  1297. depending on the timing of last unchoke.
  1298. * src/BtSeederStateChoke.cc
  1299. * src/BtSeederStateChoke.h
  1300. * src/DefaultPeerStorage.cc
  1301. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. Removed TODO
  1303. * TODO
  1304. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Added a section that explains how to pass argument to options that
  1306. takes optional arguments with its short form.
  1307. * doc/aria2c.1.txt
  1308. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Added -u for the short form of --max-upload-limit option.
  1310. * doc/aria2c.1.txt
  1311. * src/option_processing.cc
  1312. * src/usage_text.h
  1313. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1314. Added -V for the short form of --check-integrity option.
  1315. Now the argument of --check-integrity option is optional:
  1316. if it is omitted, it is evaluated as true.
  1317. * doc/aria2c.1.txt
  1318. * src/option_processing.cc
  1319. * src/usage_text.h
  1320. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Made the default value of --ftp-pasv option set to true and it can take
  1322. true/false values.
  1323. * src/OptionHandlerFactory.cc
  1324. * src/option_processing.cc
  1325. * src/usage_text.h
  1326. * doc/aria2c.1.txt
  1327. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Given custom random number generator to std::random_shuffle.
  1329. * src/AnnounceList.cc
  1330. * src/BtLeecherStateChoke.cc
  1331. * src/BtSeederStateChoke.cc
  1332. * src/DefaultBtRequestFactory.cc
  1333. * src/MetalinkEntry.cc
  1334. * src/RarestPieceSelector.cc
  1335. * src/SimpleRandomizer.cc
  1336. * src/SimpleRandomizer.h
  1337. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Now the default value of --enable-direct-io is true.
  1339. * src/OptionHandlerFactory.cc
  1340. * doc/aria2c.1.txt
  1341. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Erase peer before executing onReturningPeer and onErasingPeer
  1343. because choking algorithm called from onReturningPeer doesn't
  1344. like erasing peer in the active peer list.
  1345. * src/DefaultPeerStorage.cc
  1346. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Instead of creating special filename in createDownloadResult() if
  1348. inMemoryDownload() is true, now it is done in getFilePath().
  1349. * src/RequestGroup.cc
  1350. * test/RequestGroupTest.cc
  1351. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1352. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1353. processed in memory. This is the fix for previous comment out.
  1354. * src/MemoryBufferPreDownloadHandler.cc
  1355. * src/RequestGroup.cc
  1356. * src/RequestGroup.h
  1357. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Commented out the code which sets virtual directory path "[MEMORY]"
  1359. propagate directory to store to following RequestGroup.
  1360. * src/MemoryBufferPreDownloadHandler.cc
  1361. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. Bump up version number to 1.0.0b
  1363. * configure.ac
  1364. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Added input_uris.txt to EXTRA_DIST
  1366. * test/Makefile.am
  1367. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Removed PeerObject.h from Makefile.am
  1369. * src/Makefile.am
  1370. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. Avoid slow seeding
  1372. * src/PeerInteractionCommand.cc
  1373. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Updated usage for -i option.
  1375. * src/usage_text.h (TEXT_INPUT_FILE)
  1376. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Added INPUT FILE section to man page.
  1378. Escaped fake URLs.
  1379. * doc/aria2c.1.txt
  1380. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Fixed wrong note position for -o option.
  1382. * doc/aria2c.1.txt
  1383. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Fixed compile error without SSL/XML library.
  1385. * src/DefaultBtProgressInfoFile.cc
  1386. * src/DefaultBtProgressInfoFile.h
  1387. * src/FileMetalinkParserState.cc
  1388. * src/RequestGroup.h
  1389. * src/SocketCore.cc
  1390. * src/SocketCore.h
  1391. * src/VerificationMetalinkParserState.cc
  1392. * src/download_helper.h
  1393. * src/main.cc
  1394. * test/DefaultBtProgressInfoFileTest.cc
  1395. * test/DownloadHelperTest.cc
  1396. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Rewritten URI handling functions. They are now provided as a testable
  1398. functions.
  1399. * src/Makefile.am
  1400. * src/RequestGroup.cc
  1401. * src/RequestGroup.h
  1402. * src/download_helper.cc
  1403. * src/download_helper.h
  1404. * src/main.cc
  1405. * test/DownloadHelperTest.cc
  1406. * test/Makefile.am
  1407. * test/input_uris.txt
  1408. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. Quickly terminate commands when ctrl-c is pressed.
  1410. * src/DownloadEngine.cc
  1411. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Quickly terminate idle commands when download finished.
  1413. * src/AbstractCommand.cc
  1414. * src/DownloadCommand.cc
  1415. * src/DownloadEngine.cc
  1416. * src/DownloadEngine.h
  1417. * src/SleepCommand.cc
  1418. * src/SleepCommand.h
  1419. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Added the ability to specify output filename and directory in input
  1421. file.
  1422. Additional parameters are added in the following line of URIs
  1423. with proceeding white space(s), 1 parameter in 1 line.
  1424. The parameter names are the same with the command-line option name
  1425. without proceeding "--". Not all the options are available here:
  1426. at the moment, 'dir' and 'out' options are avialable.
  1427. Please note that out option has no effect against Metalink or BitTorrent
  1428. downloads.
  1429. Example input file:
  1430. http://host/foo-1.1.tar.bz2
  1431. out=foo.tar.bz2
  1432. dir=/tmp/downloads
  1433. http://host/thundermonkey-2.0.tar.bz2
  1434. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1435. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1436. thundermonkey-2.0.tar.bz2 is saved as
  1437. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1438. * src/BtPostDownloadHandler.cc
  1439. * src/Metalink2RequestGroup.cc
  1440. * src/Metalink2RequestGroup.h
  1441. * src/MetalinkPostDownloadHandler.cc
  1442. * src/UriListParser.cc
  1443. * src/UriListParser.h
  1444. * src/main.cc
  1445. * test/Metalink2RequestGroupTest.cc
  1446. * test/UriListParserTest.cc
  1447. * test/filelist1.txt
  1448. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Fixed error when SSL library is not found.
  1450. * configure.ac
  1451. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1452. Cross referenced among -s, -C and -j options.
  1453. Updated usage of -C and -s options.
  1454. * src/usage_text.h
  1455. * doc/aria2c.1.txt
  1456. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Fixed bad cast in 32bit platforms.
  1458. * test/DefaultPieceStorageTest.cc
  1459. (DefaultPieceStorageTest::testGetCompletedLength)
  1460. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Fixed unit test fails on 32bit platforms.
  1462. * test/CookieParserTest.cc
  1463. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Show an average download speed in Download results.
  1465. * src/BtFileAllocationEntry.cc
  1466. * src/DefaultPieceStorage.cc
  1467. * src/DownloadContext.cc
  1468. * src/DownloadContext.h
  1469. * src/DownloadResult.h
  1470. * src/RequestGroup.cc
  1471. * src/RequestGroupMan.cc
  1472. * src/StreamFileAllocationEntry.cc
  1473. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Fixed the bug that metalink file is not processed if Content-Type
  1475. field has a paramter.
  1476. * src/HttpResponse.cc
  1477. * src/HttpResponse.h
  1478. * test/HttpResponseTest.cc
  1479. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. Removed unused code.
  1481. * src/DefaultBtAnnounce.cc
  1482. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1484. the value larger than DefaultPieceStorage::getTotalLength() when
  1485. in flight pieces are involved.
  1486. * src/DefaultPieceStorage.cc
  1487. * test/DefaultPieceStorageTest.cc
  1488. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Bump up version number to 1.0.0a.
  1490. * configure.ac
  1491. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Updated configure.ac
  1493. * configure.ac
  1494. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1495. Added usege for proxy.
  1496. * doc/aria2c.1.txt
  1497. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Added usage for --ca-certificate, --certificate, --private-key and
  1499. --check-certificate options.
  1500. * doc/aria2c.1.txt
  1501. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Updated man page
  1503. * doc/aria2c.1.txt
  1504. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Added --no-proxy option. It receives comman separated hostname or
  1506. domains to which proxy should not be used.
  1507. aria2 honors the environment variable no_proxy to override no-proxy
  1508. value in configuration file. The user can override the environment
  1509. variable no_proxy with --no-proxy command-line option.
  1510. * src/AbstractCommand.cc
  1511. * src/OptionHandlerFactory.cc
  1512. * src/option_processing.cc
  1513. * src/prefs.cc
  1514. * src/prefs.h
  1515. * src/usage_text.h
  1516. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Added the ability to verify peer in SSL/TLS using given CA certificates.
  1518. The CA certificates are specified in --ca-certificate option.
  1519. By default, the verification is disabled. Use --check-certificate
  1520. option to enable it.
  1521. * src/HttpRequestCommand.cc
  1522. * src/LibgnutlsTLSContext.cc
  1523. * src/LibgnutlsTLSContext.h
  1524. * src/LibsslTLSContext.cc
  1525. * src/LibsslTLSContext.h
  1526. * src/MultiUrlRequestInfo.cc
  1527. * src/OptionHandlerFactory.cc
  1528. * src/SocketCore.cc
  1529. * src/SocketCore.h
  1530. * src/a2functional.h
  1531. * src/message.h
  1532. * src/option_processing.cc
  1533. * src/prefs.cc
  1534. * src/prefs.h
  1535. * src/usage_text.h
  1536. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Added client certificate authentication for SSL/TLS.
  1538. Currently a private key must be decrypted for use with aria2.
  1539. If a user accidentally gives encrypted file to aria2 then following
  1540. thing happens:
  1541. If encrypted private key is given to aria2, it behaves differently
  1542. depending on the ssl library it uses. If aria2 built with openssl then
  1543. openssl prompts the user for password. If aria2 build with gnutls then
  1544. aria2 exists with error at start up.
  1545. * src/DownloadEngineFactory.cc
  1546. * src/MultiUrlRequestInfo.cc
  1547. * src/OptionHandlerFactory.cc
  1548. * src/option_processing.cc
  1549. * src/prefs.cc
  1550. * src/prefs.h
  1551. * src/usage_text.h
  1552. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1553. Introduced TLSContext that holds TLS related data that can be shared
  1554. with multiple SSL connections.
  1555. * src/DownloadEngineFactory.cc
  1556. * src/LibgnutlsTLSContext.cc
  1557. * src/LibgnutlsTLSContext.h
  1558. * src/LibsslTLSContext.cc
  1559. * src/LibsslTLSContext.h
  1560. * src/Makefile.am
  1561. * src/SocketCore.cc
  1562. * src/SocketCore.h
  1563. * src/TLSContext.h
  1564. * src/message.h
  1565. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Fixed the bug that the DiskWriter of the first FileEntry whose
  1567. `needsFileAllocation' property is false is not created
  1568. even if it shares a piece with next FileEntry which `requested' property
  1569. is true.
  1570. Fixed the bug that zero-length file is not created if pre file
  1571. allocation is not done.
  1572. * src/MultiDiskAdaptor.cc
  1573. * src/MultiDiskAdaptor.h
  1574. * test/MultiDiskAdaptorTest.cc
  1575. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1576. Added the ability to pool proxy connection.
  1577. The conneciton in FTP with proxy-method=GET is not pooled.
  1578. Proxy-Connection header will not be sent when sending CONNECT method.
  1579. * src/DownloadEngine.cc
  1580. * src/DownloadEngine.h
  1581. * src/FtpFinishDownloadCommand.cc
  1582. * src/FtpInitiateConnectionCommand.cc
  1583. * src/FtpNegotiationCommand.cc
  1584. * src/HttpDownloadCommand.cc
  1585. * src/HttpInitiateConnectionCommand.cc
  1586. * src/HttpRequest.cc
  1587. * src/HttpRequest.h
  1588. * src/HttpResponse.cc
  1589. * src/HttpSkipResponseCommand.cc
  1590. * test/HttpRequestTest.cc
  1591. * test/HttpResponseTest.cc
  1592. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1593. Handle date before epoch.
  1594. To create *bad* Time object, call Time::null().
  1595. * src/CookieParser.cc
  1596. * src/FtpConnection.cc
  1597. * src/FtpConnection.h
  1598. * src/FtpNegotiationCommand.cc
  1599. * src/RequestGroup.cc
  1600. * src/TimeA2.cc
  1601. * src/TimeA2.h
  1602. * test/CookieParserTest.cc
  1603. * test/FtpConnectionTest.cc
  1604. * test/TimeTest.cc
  1605. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1606. Added support for following envrionment variables: http_proxy,
  1607. https_proxy, ftp_proxy and all_proxy.
  1608. Each variable is equivalent to the aria2 option whose name is the
  1609. variable name with '_' replaced with '-'.
  1610. They overrides options specified in aria2.conf file.
  1611. The envrionment variables can be overrode using command-line option.
  1612. * src/option_processing.cc
  1613. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1614. Renamed --http-proxy-method as --proxy-method.
  1615. * src/AbstractCommand.cc
  1616. * src/FtpInitiateConnectionCommand.cc
  1617. * src/HttpInitiateConnectionCommand.cc
  1618. * src/OptionHandlerFactory.cc
  1619. * src/option_processing.cc
  1620. * src/prefs.cc
  1621. * src/prefs.h
  1622. * src/usage_text.h
  1623. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1624. Deprecated --http-proxy-user and --http-proxy-passwd options.
  1625. Added --https-proxy, --ftp-proxy and --all-proxy options.
  1626. Above 3 options and --http-proxy option can handle proxy in URL format
  1627. like: http://user:passwd@host:port.
  1628. If a proxy requires user/password, they must be specified in a URL.
  1629. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  1630. instead.
  1631. * src/AbstractCommand.cc
  1632. * src/AbstractCommand.h
  1633. * src/AbstractProxyRequestCommand.cc
  1634. * src/AbstractProxyRequestCommand.h
  1635. * src/AuthConfigFactory.cc
  1636. * src/AuthConfigFactory.h
  1637. * src/FtpFinishDownloadCommand.cc
  1638. * src/FtpInitiateConnectionCommand.cc
  1639. * src/FtpInitiateConnectionCommand.h
  1640. * src/FtpNegotiationCommand.cc
  1641. * src/FtpTunnelRequestCommand.cc
  1642. * src/FtpTunnelRequestCommand.h
  1643. * src/HttpDownloadCommand.cc
  1644. * src/HttpInitiateConnectionCommand.cc
  1645. * src/HttpInitiateConnectionCommand.h
  1646. * src/HttpProxyRequestCommand.cc
  1647. * src/HttpProxyRequestCommand.h
  1648. * src/HttpRequest.cc
  1649. * src/HttpRequest.h
  1650. * src/HttpRequestCommand.cc
  1651. * src/HttpRequestCommand.h
  1652. * src/HttpSkipResponseCommand.cc
  1653. * src/InitiateConnectionCommand.cc
  1654. * src/InitiateConnectionCommand.h
  1655. * src/OptionHandlerFactory.cc
  1656. * src/OptionHandlerImpl.h
  1657. * src/Request.cc
  1658. * src/option_processing.cc
  1659. * src/prefs.cc
  1660. * src/prefs.h
  1661. * src/usage_text.h
  1662. * test/AuthConfigFactoryTest.cc
  1663. * test/HttpRequestTest.cc
  1664. * test/OptionHandlerTest.cc
  1665. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1666. Execute choking algorithm when unchoked and interested peer is
  1667. disconected.
  1668. * src/DefaultPeerStorage.cc
  1669. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1670. Added testcase for BtNotInterestedMessage from unchoked peer.
  1671. * test/BtNotInterestedMessageTest.cc
  1672. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1673. Execute choking algorithm when BtInterestedMessage arrives from
  1674. unchoked peer.
  1675. * src/BtInterestedMessage.cc
  1676. * src/BtInterestedMessage.h
  1677. * src/DefaultBtMessageFactory.cc
  1678. * test/BtInterestedMessageTest.cc
  1679. * test/MockPeerStorage.h
  1680. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1681. AuthConfigFactory is now part of DownloadEngine.
  1682. * src/AbstractProxyRequestCommand.cc
  1683. * src/AuthConfigFactory.h
  1684. * src/DownloadEngine.cc
  1685. * src/DownloadEngine.h
  1686. * src/FtpConnection.cc
  1687. * src/FtpConnection.h
  1688. * src/FtpNegotiationCommand.cc
  1689. * src/HttpConnection.cc
  1690. * src/HttpRequest.cc
  1691. * src/HttpRequest.h
  1692. * src/HttpRequestCommand.cc
  1693. * src/HttpResponse.cc
  1694. * src/HttpResponseCommand.cc
  1695. * src/HttpSkipResponseCommand.cc
  1696. * src/MultiUrlRequestInfo.cc
  1697. * src/main.cc
  1698. * test/FtpConnectionTest.cc
  1699. * test/HttpRequestTest.cc
  1700. * test/HttpResponseTest.cc
  1701. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1702. Corrected catched exception type.
  1703. * src/ServerStatMan.cc
  1704. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1705. DNSCache is now part of DownloadEngine.
  1706. * src/DNSCache.h
  1707. * src/DownloadEngine.cc
  1708. * src/DownloadEngine.h
  1709. * src/InitiateConnectionCommand.cc
  1710. * src/MultiUrlRequestInfo.cc
  1711. * test/Makefile.am
  1712. * test/Makefile.in
  1713. * test/SimpleDNSCacheTest.cc
  1714. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1715. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  1716. DownloadEngine.
  1717. * src/ActivePeerConnectionCommand.cc
  1718. * src/BtSetup.cc
  1719. * src/CUIDCounter.h
  1720. * src/DHTSetup.cc
  1721. * src/DownloadCommand.cc
  1722. * src/DownloadEngine.cc
  1723. * src/DownloadEngine.h
  1724. * src/DownloadEngineFactory.cc
  1725. * src/FileAllocationDispatcherCommand.cc
  1726. * src/InitiatorMSEHandshakeCommand.cc
  1727. * src/PeerInitiateConnectionCommand.cc
  1728. * src/PeerInteractionCommand.cc
  1729. * src/PeerListenCommand.cc
  1730. * src/RequestGroup.cc
  1731. * src/StreamFileAllocationEntry.cc
  1732. * src/TrackerWatcherCommand.cc
  1733. * src/main.cc
  1734. * test/RequestGroupManTest.cc
  1735. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1736. Implemented commented code in BtSeederStateChoke
  1737. * src/BtSeederStateChoke.cc
  1738. * src/Peer.cc
  1739. * src/Peer.h
  1740. * src/PeerInteractionCommand.cc
  1741. * src/PeerSessionResource.cc
  1742. * src/PeerSessionResource.h
  1743. * test/MockBtMessageDispatcher.h
  1744. * test/PeerSessionResourceTest.cc
  1745. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1746. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  1747. its object.
  1748. * src/AbstractBtMessage.cc
  1749. * src/ActivePeerConnectionCommand.cc
  1750. * src/ActivePeerConnectionCommand.h
  1751. * src/BtContextAwareCommand.cc
  1752. * src/BtContextAwareCommand.h
  1753. * src/BtExtendedMessage.cc
  1754. * src/BtExtendedMessage.h
  1755. * src/BtInterestedMessage.cc
  1756. * src/BtInterestedMessage.h
  1757. * src/BtNotInterestedMessage.cc
  1758. * src/BtNotInterestedMessage.h
  1759. * src/BtRegistry.cc
  1760. * src/BtRegistry.h
  1761. * src/BtSeederStateChoke.cc
  1762. * src/BtSetup.cc
  1763. * src/DHTGetPeersCommand.cc
  1764. * src/DHTGetPeersCommand.h
  1765. * src/DHTPeerAnnounceEntry.cc
  1766. * src/DHTPeerAnnounceEntry.h
  1767. * src/DHTPeerAnnounceStorage.cc
  1768. * src/DHTPeerAnnounceStorage.h
  1769. * src/DHTPeerLookupTask.cc
  1770. * src/DHTPeerLookupTask.h
  1771. * src/DHTSetup.cc
  1772. * src/DHTSetup.h
  1773. * src/DHTTaskFactory.h
  1774. * src/DHTTaskFactoryImpl.cc
  1775. * src/DHTTaskFactoryImpl.h
  1776. * src/DefaultBtAnnounce.cc
  1777. * src/DefaultBtInteractive.cc
  1778. * src/DefaultBtInteractive.h
  1779. * src/DefaultBtMessageDispatcher.cc
  1780. * src/DefaultBtMessageDispatcher.h
  1781. * src/DefaultBtMessageFactory.cc
  1782. * src/DefaultBtMessageFactory.h
  1783. * src/DefaultBtMessageReceiver.cc
  1784. * src/DefaultBtProgressInfoFile.cc
  1785. * src/DefaultBtProgressInfoFile.h
  1786. * src/DefaultBtRequestFactory.cc
  1787. * src/DefaultBtRequestFactory.h
  1788. * src/DefaultExtensionMessageFactory.cc
  1789. * src/DefaultExtensionMessageFactory.h
  1790. * src/DefaultPeerStorage.cc
  1791. * src/DefaultPeerStorage.h
  1792. * src/DownloadEngine.cc
  1793. * src/DownloadEngine.h
  1794. * src/InitiatorMSEHandshakeCommand.cc
  1795. * src/InitiatorMSEHandshakeCommand.h
  1796. * src/MSEHandshake.cc
  1797. * src/MSEHandshake.h
  1798. * src/Makefile.am
  1799. * src/Makefile.in
  1800. * src/PeerChokeCommand.cc
  1801. * src/PeerChokeCommand.h
  1802. * src/PeerInitiateConnectionCommand.cc
  1803. * src/PeerInitiateConnectionCommand.h
  1804. * src/PeerInteractionCommand.cc
  1805. * src/PeerInteractionCommand.h
  1806. * src/PeerObject.h
  1807. * src/PeerReceiveHandshakeCommand.cc
  1808. * src/PeerReceiveHandshakeCommand.h
  1809. * src/ReceiverMSEHandshakeCommand.cc
  1810. * src/RequestGroup.cc
  1811. * src/RequestGroup.h
  1812. * src/RequestGroupMan.cc
  1813. * src/RequestGroupMan.h
  1814. * src/SeedCheckCommand.cc
  1815. * src/SeedCheckCommand.h
  1816. * src/ShareRatioSeedCriteria.h
  1817. * src/SimpleBtMessage.cc
  1818. * src/TrackerWatcherCommand.cc
  1819. * src/TrackerWatcherCommand.h
  1820. * src/UTPexExtensionMessage.cc
  1821. * src/UTPexExtensionMessage.h
  1822. * test/BtCancelMessageTest.cc
  1823. * test/BtChokeMessageTest.cc
  1824. * test/BtExtendedMessageTest.cc
  1825. * test/BtInterestedMessageTest.cc
  1826. * test/BtNotInterestedMessageTest.cc
  1827. * test/BtPieceMessageTest.cc
  1828. * test/BtPortMessageTest.cc
  1829. * test/BtRegistryTest.cc
  1830. * test/BtRejectMessageTest.cc
  1831. * test/BtRequestMessageTest.cc
  1832. * test/DHTPeerAnnounceEntryTest.cc
  1833. * test/DHTPeerAnnounceStorageTest.cc
  1834. * test/DefaultBtMessageDispatcherTest.cc
  1835. * test/DefaultBtMessageFactoryTest.cc
  1836. * test/DefaultBtProgressInfoFileTest.cc
  1837. * test/DefaultBtRequestFactoryTest.cc
  1838. * test/DefaultExtensionMessageFactoryTest.cc
  1839. * test/MSEHandshakeTest.cc
  1840. * test/MockDHTTaskFactory.h
  1841. * test/ShareRatioSeedCriteriaTest.cc
  1842. * test/UTPexExtensionMessageTest.cc
  1843. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1844. Fixed compiler warning.
  1845. * test/UtilTest.cc
  1846. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1847. Treat Cookie object as session cookie if expiry = 0 is given.
  1848. With this change, you can specify session scoped cookies in an external
  1849. file setting expiry value to 0.
  1850. * src/Cookie.cc
  1851. * src/Cookie.h
  1852. * test/CookieParserTest.cc
  1853. * test/CookieStorageTest.cc
  1854. * test/CookieTest.cc
  1855. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1856. Changed signature of DHTMessageFactory::createResponseMessage().
  1857. Removed unused validateIDMatch.
  1858. * src/DHTMessageFactory.h
  1859. * src/DHTMessageFactoryImpl.cc
  1860. * src/DHTMessageFactoryImpl.h
  1861. * src/DHTMessageTracker.cc
  1862. * test/DHTMessageFactoryImplTest.cc
  1863. * test/MockDHTMessageFactory.h
  1864. Dropped DHT message coming from same ID of localhost.
  1865. * src/DHTMessageReceiver.cc
  1866. Rejected adding node whose ID is the same as localhost's.
  1867. * src/DHTRoutingTable.cc
  1868. * test/BtPortMessageTest.cc
  1869. * test/DHTRoutingTableTest.cc
  1870. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1871. Pool connection when redirection occurs with Content-Length = 0.
  1872. * src/HttpSkipResponseCommand.cc
  1873. * src/HttpSkipResponseCommand.h
  1874. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1875. Fixed the bug that causes time out when redirection occurs with
  1876. content-length 0.
  1877. * src/HttpResponseCommand.cc
  1878. * src/HttpSkipResponseCommand.cc
  1879. * src/HttpSkipResponseCommand.h
  1880. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1881. Now each status legends is shown only when it appears in Download
  1882. Result. If Download Result has no item, then status legend will not
  1883. be printed.
  1884. * src/RequestGroupMan.cc
  1885. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1886. Removed duplicate creation of OptionHandlers.
  1887. * src/option_processing.cc
  1888. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1889. Fixed the bug that causes segmentation fault when accessing files which
  1890. don't exist or are not included in --select-file option while
  1891. validating chunk checksum.
  1892. * src/MultiDiskAdaptor.cc
  1893. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1894. Fixed compiler warning.
  1895. * test/UtilTest.cc
  1896. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1897. Included cstdlib. This fixed the compile error with g++-4.3.2.
  1898. * src/IteratableChecksumValidator.cc
  1899. * src/IteratableChunkChecksumValidator.cc
  1900. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1901. * Release 0.16.2
  1902. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1903. Added Serbian translation. Updated Ukrainian translation.
  1904. Thanks to all translators.
  1905. * po/sr.po
  1906. * po/uk.po
  1907. * po/LINGUAS
  1908. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1909. Bump up version number to 0.16.2
  1910. * configure.ac
  1911. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1912. Added length equality test to operator== to drop a piece message
  1913. whose length does not match to the requested one.
  1914. * src/RequestSlot.cc
  1915. * test/DefaultBtMessageDispatcherTest.cc
  1916. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1917. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  1918. recieved.
  1919. In this fix, if a request larger than 16KiB length is received, aria2
  1920. disconnects the peer.
  1921. * src/BtConstants.h
  1922. * src/PeerMessageUtil.cc
  1923. * src/PeerMessageUtil.h
  1924. * test/BtRequestMessageTest.cc
  1925. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1926. * Release 0.16.1
  1927. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1928. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  1929. * doc/aria2c.1.txt
  1930. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1931. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  1932. Updated French, Simplified Chinese and Japanese translations.
  1933. Thanks to all translators.
  1934. en@quot and en@boldquot are also added.
  1935. * po/LINGUAS
  1936. * po/fr.po
  1937. * po/ja.po
  1938. * po/uk.po
  1939. * po/vi.po
  1940. * po/zh_CN.po
  1941. * po/zh_TW.po
  1942. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1943. Bump up version number to 0.16.1.
  1944. * configure.ac
  1945. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1946. Updated README.
  1947. * README
  1948. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1949. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  1950. not to replace '--' with em dash character.
  1951. * doc/aria2c.1.txt
  1952. * doc/makeman
  1953. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1954. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  1955. every SEC seconds.
  1956. * src/DownloadEngineFactory.cc
  1957. * src/OptionHandlerFactory.cc
  1958. * src/option_processing.cc
  1959. * src/usage_text.h
  1960. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1961. Fixed compile warning on linux-amd64
  1962. * src/FtpConnection.cc
  1963. * src/IteratableChunkChecksumValidator.cc
  1964. * src/MultiDiskAdaptor.cc
  1965. Fixed the bug that unit test fails on linux-amd64
  1966. * test/UtilTest.cc
  1967. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1968. Added --dht-file-path option to change the path to dht.dat, which is a
  1969. serialized DHT routing table.
  1970. * src/OptionHandlerFactory.cc
  1971. * src/option_processing.cc
  1972. * src/usage_text.h
  1973. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1974. Fixed possible underflow.
  1975. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  1976. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1977. Fixed the bug that last character in URI is not encoded.
  1978. * src/Request.cc
  1979. * test/RequestTest.cc
  1980. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1981. Fixed the bug that referer header field contains fragment.
  1982. Now Request class removes fragment part of URI and encodes it
  1983. in Request::setUri() and setReferer().
  1984. * src/Request.h
  1985. * src/Request.cc
  1986. * test/RequestTest.cc
  1987. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1988. Added missing m4 macros.
  1989. * m4/cppunit.m4
  1990. * m4/libgcrypt.m4
  1991. * m4/libgnutls-extra.m4
  1992. * m4/libgnutls.m4
  1993. * m4/libxml2.m4
  1994. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1995. Fixed compile error with gcc-4.4(snapshot)
  1996. * src/File.cc
  1997. * src/FtpConnection.cc
  1998. * src/OptionHandlerImpl.h
  1999. * src/Util.cc
  2000. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2001. Removed assert()
  2002. * src/SocketBuffer.cc (SocketBuffer::send)
  2003. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2004. Changed the type of _numNewConnection to unsigned int.
  2005. * src/ActivePeerConnectionCommand.cc
  2006. * src/ActivePeerConnectionCommand.h
  2007. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2008. * Release 0.16.0
  2009. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2010. Updated doc
  2011. * README
  2012. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2013. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2014. translations. Thanks to all translators.
  2015. * po/bg.po
  2016. * po/de.po
  2017. * po/fr.po
  2018. * po/ja.po
  2019. * po/zh_CN.po
  2020. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2021. Bump up version number to 0.16.0.
  2022. * configure.ac
  2023. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2024. Casted entry->maxConnections to int32_t for std::min<T> with T =
  2025. int32_t.
  2026. Changed the type of count to int32_t.
  2027. * src/Metalink2RequestGroup.cc
  2028. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2029. Added test for Time::elapsed(time_t).
  2030. * test/TimeTest.cc
  2031. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2032. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  2033. Util::difftv() should be used instead.
  2034. * src/TimeA2.cc
  2035. * src/TimeA2.h
  2036. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2037. Made socket for dht connections non-blocking
  2038. * src/DHTAbstractMessage.cc
  2039. * src/DHTAbstractMessage.h
  2040. * src/DHTConnection.h
  2041. * src/DHTConnectionImpl.cc
  2042. * src/DHTConnectionImpl.h
  2043. * src/DHTMessage.h
  2044. * src/DHTMessageDispatcherImpl.cc
  2045. * src/DHTMessageDispatcherImpl.h
  2046. * src/DHTUnknownMessage.cc
  2047. * src/DHTUnknownMessage.h
  2048. * src/SocketCore.cc
  2049. * src/SocketCore.h
  2050. * test/MockDHTMessage.h
  2051. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2052. Changed the type of offset to int.
  2053. * src/ParameterizedStringParser.cc
  2054. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2055. Made getAsInt() return int32_t
  2056. * src/Option.h
  2057. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2058. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  2059. build.
  2060. * configure.ac
  2061. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2062. Use sqlite3_open if sqlite3_open_v2 is not available.
  2063. * src/Sqlite3MozCookieParser.cc
  2064. * src/Sqlite3MozCookieParser.h
  2065. * m4/sqlite3.m4
  2066. * test/Sqlite3MozCookieParserTest.cc
  2067. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2068. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2069. * src/BtPieceMessage.cc
  2070. * src/DHTPeerAnnounceStorage.cc
  2071. * src/DefaultPieceStorage.cc
  2072. * src/DownloadCommand.cc
  2073. * src/DownloadEngine.cc
  2074. * src/FtpConnection.cc
  2075. * src/PeerConnection.cc
  2076. * src/PeerMessageUtil.cc
  2077. * src/RequestGroup.cc
  2078. * src/RequestGroupMan.cc
  2079. * src/SimpleBtMessage.cc
  2080. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2081. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2082. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2083. * src/AbstractDiskWriter.cc
  2084. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2085. Don't set Request::supportsPersistentConnection() in HttpConnection
  2086. since this code is also used in AbstractProxyResponseCommand.
  2087. Moved those code to HttpResponse.
  2088. * src/HttpResponse.cc
  2089. * src/HttpResponse.h
  2090. * src/HttpConnection.cc
  2091. * src/HttpConnection.h
  2092. * src/HttpResponseCommand.cc
  2093. * test/HttpResponseTest.cc
  2094. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2095. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2096. The configuration is minimum: no torrent, no metalink, so there may be
  2097. other compile error on their code.
  2098. * src/a2netcompat.h
  2099. * src/File.cc
  2100. * src/File.h
  2101. * src/SocketCore.cc
  2102. * src/SocketCore.h
  2103. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2104. Made a socket of incoming peer non-blocking.
  2105. * src/PeerListenCommand.cc
  2106. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2107. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2108. whole message data is not sent in one send() call.
  2109. * src/BtPieceMessage.cc
  2110. * src/BtPieceMessage.h
  2111. * src/PeerConnection.cc
  2112. * src/PeerConnection.h
  2113. * src/SimpleBtMessage.cc
  2114. * src/SimpleBtMessage.h
  2115. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2116. Fixed the bug that aria2 downloads faster than max-download-limit when
  2117. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2118. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2119. , instead of sum of them.
  2120. * src/ActivePeerConnectionCommand.cc
  2121. * src/DefaultBtInteractive.cc
  2122. * src/DownloadCommand.cc
  2123. * src/PeerInteractionCommand.cc
  2124. * src/PeerReceiveHandshakeCommand.cc
  2125. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2126. Fixed the bug that HTTPS download fails.
  2127. * src/AbstractCommand.cc
  2128. * src/AbstractCommand.h
  2129. * src/DownloadCommand.cc
  2130. * src/FtpConnection.cc
  2131. * src/HttpConnection.cc
  2132. * src/HttpRequestCommand.cc
  2133. * src/HttpResponseCommand.cc
  2134. * src/HttpSkipResponseCommand.cc
  2135. * src/MSEHandshake.cc
  2136. * src/PeerConnection.cc
  2137. * src/SocketCore.cc
  2138. * src/SocketCore.h
  2139. Fixed the bug that aria2 doesn't download whole content body and cannot
  2140. reuse connection if chunked transfer encoding and gzip content encoding
  2141. are set.
  2142. * src/DownloadCommand.cc
  2143. * src/HttpSkipResponseCommand.cc
  2144. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2145. Updated man page.
  2146. * doc/aria2c.1.txt
  2147. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2148. When error occurred while aria2 was parsing an .aria2.conf file, print
  2149. the usage of the option that caused error.
  2150. * src/option_processing.cc
  2151. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2152. Fixed compile error on OptionHandlerException
  2153. * src/Makefile.am
  2154. * src/OptionHandlerException.cc
  2155. * src/OptionHandlerException.h
  2156. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2157. Moved message of the error to OptionHandlerException.h
  2158. * src/NameMatchOptionHandler.h
  2159. * src/OptionHandlerException.h
  2160. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2161. When error occurs while aria2 is parsing an command-line option, print
  2162. the usage of the option.
  2163. * src/Makefile.am
  2164. * src/NameMatchOptionHandler.h
  2165. * src/OptionHandlerException.h
  2166. * src/option_processing.cc
  2167. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2168. Reverted previous change.
  2169. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2170. username is not in URI.
  2171. * src/HttpRequest.cc
  2172. * src/Request.cc
  2173. * test/HttpRequestTest.cc
  2174. * test/RequestTest.cc
  2175. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2176. Now colon is required for username and password in FTP URL, like:
  2177. ftp://username:password@host.
  2178. If colon is not there, aria2 don't parse it as a username. For example,
  2179. aria2 don't retrieve username from ftp://username@host.
  2180. This fix was made in order to login FTP server via non-transparent ftp
  2181. proxy.
  2182. * src/Request.cc
  2183. * test/RequestTest.cc
  2184. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2185. Use netrc for HTTP.
  2186. Now FTP user/password is sent in Authorization header when
  2187. --ftp-via-http-proxy=get is given.
  2188. * src/AuthConfigFactory.cc
  2189. * src/HttpRequest.cc
  2190. * src/HttpRequest.h
  2191. * src/NetrcAuthResolver.cc
  2192. * src/NetrcAuthResolver.h
  2193. * src/OptionHandlerFactory.cc
  2194. * src/option_processing.cc
  2195. * src/prefs.cc
  2196. * src/prefs.h
  2197. * test/AuthConfigFactoryTest.cc
  2198. * test/HttpRequestTest.cc
  2199. * test/NetrcAuthResolverTest.cc
  2200. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2201. Issue PWD command first and get working directory and use it as a prefix
  2202. for CWD command.
  2203. * src/DownloadEngine.cc
  2204. * src/DownloadEngine.h
  2205. * src/FtpConnection.cc
  2206. * src/FtpConnection.h
  2207. * src/FtpFinishDownloadCommand.cc
  2208. * src/FtpInitiateConnectionCommand.cc
  2209. * src/FtpNegotiationCommand.cc
  2210. * src/FtpNegotiationCommand.h
  2211. * test/FtpConnectionTest.cc
  2212. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2213. Removed default user/pass for FTP user/pass, since it should not have
  2214. precedence over netrc configuration by default.
  2215. * src/OptionHandlerFactory.cc
  2216. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2217. Added debug log for socket event.
  2218. * src/AbstractCommand.cc
  2219. * src/PeerAbstractCommand.cc
  2220. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2221. Log microseconds.
  2222. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2223. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2224. Replaced HelpItem.cc with OptionHandler.cc.
  2225. * po/POTFILES.in
  2226. Updated po files with 'make update-po'
  2227. * po/aria2c.pot
  2228. * po/*.po
  2229. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2230. Removed possible values from the text.
  2231. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2232. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2233. Removed unused preferences:
  2234. PREF_NO_PREALLOCATION
  2235. PREF_STDOUT_LOG
  2236. PREF_TRACKER_MAX_TRIES
  2237. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2238. PREF_MIN_SEGMENT_SIZE
  2239. * src/option_processing.cc
  2240. * src/prefs.cc
  2241. * src/prefs.h
  2242. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2243. Integrated HelpItem into OptionParser to ease the workload for adding
  2244. new options. Removed default value from usage text.
  2245. * src/HelpItem.cc: Removed.
  2246. * src/HelpItem.h: Removed.
  2247. * src/HelpItemFactory.cc: Removed.
  2248. * src/HelpItemFactory.h: Removed.
  2249. * src/Makefile.am
  2250. * src/Makefile.in
  2251. * src/NameMatchOptionHandler.h
  2252. * src/OptionHandler.cc
  2253. * src/OptionHandler.h
  2254. * src/OptionHandlerFactory.cc
  2255. * src/OptionHandlerImpl.h
  2256. * src/OptionParser.cc
  2257. * src/OptionParser.h
  2258. * src/TagContainer.cc: Removed.
  2259. * src/TagContainer.h: Removed.
  2260. * src/TaggedItem.cc: Removed.
  2261. * src/TaggedItem.h: Removed.
  2262. * src/main.cc
  2263. * src/option_processing.cc
  2264. * src/usage_text.h
  2265. * src/version_usage.cc
  2266. * test/HelpItemTest.cc: Removed.
  2267. * test/Makefile.am
  2268. * test/Makefile.in
  2269. * test/OptionHandlerTest.cc
  2270. * test/OptionParserTest.cc
  2271. * test/TagContainerTest.cc: Removed.
  2272. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2273. Moved `TransferStat stat = ...' to inside the `if' clause.
  2274. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2275. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2276. Fixed the bug that a block in a piece is requested when same block is
  2277. already requested to the same peer in end game mode.
  2278. * src/BtRequestFactory.h
  2279. * src/DefaultBtInteractive.cc
  2280. * src/DefaultBtRequestFactory.cc
  2281. * src/DefaultBtRequestFactory.h
  2282. * src/DefaultPieceStorage.cc
  2283. * src/DefaultPieceStorage.h
  2284. * src/PieceStorage.h
  2285. * src/UnknownLengthPieceStorage.cc
  2286. * src/UnknownLengthPieceStorage.h
  2287. * test/DefaultBtRequestFactoryTest.cc
  2288. * test/DefaultPieceStorageTest.cc
  2289. * test/MockBtRequestFactory.h
  2290. * test/MockPieceStorage.h
  2291. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2292. Removed _uploadLength and _downloadLength from PeerSessionResource
  2293. and use PeerStat::_sessionUploadLength and
  2294. PeerStat::_sessionDownloadLength.
  2295. * src/PeerSessionResource.cc
  2296. * src/PeerSessionResource.h
  2297. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2298. Fixed the bug that prefixLength of split bucket which doesn't include
  2299. local node ID is incremented.
  2300. * src/DHTBucket.cc
  2301. * src/DHTBucket.h
  2302. * test/DHTBucketTest.cc
  2303. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2304. Added cookies.sqlite to EXTRA_DIST
  2305. * test/Makefile.am
  2306. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2307. Added Turkish translation. Updated French, German, Russian and
  2308. Simplified Chinese translations. Thanks to all translators.
  2309. * po/LINGUAS
  2310. * po/de.po
  2311. * po/fr.po
  2312. * po/ru.po
  2313. * po/tr.po
  2314. * po/zh_CN.po
  2315. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2316. Added deliminating text to the beginning of the log so that one can find
  2317. where the log starts easily.
  2318. * src/main.cc
  2319. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2320. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2321. to fix compile error when async DNS is not enabled by configuration.
  2322. * src/AbstractCommand.cc
  2323. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2324. If establishing conneciton to a server is failed, then mark error on
  2325. its ServerStat.
  2326. Added the cause of error to log when error event occurred.
  2327. Moved message string to message.h for translation.
  2328. * src/AbstractCommand.cc
  2329. * src/AbstractCommand.h
  2330. * src/FtpNegotiationCommand.cc
  2331. * src/HttpRequestCommand.cc
  2332. * src/PeerAbstractCommand.cc
  2333. * src/message.h
  2334. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2335. Added the function to get error message from socket.
  2336. * src/SocketCore.cc
  2337. * src/SocketCore.h
  2338. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2339. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2340. * src/RequestGroupMan.cc
  2341. * src/RequestGroupMan.h
  2342. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2343. If error event is received in epoll, then abort download immediately.
  2344. * src/AbstractCommand.cc
  2345. * src/Command.cc
  2346. * src/Command.h
  2347. * src/DownloadEngine.cc
  2348. * src/PeerAbstractCommand.cc
  2349. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2350. Added usage message for --uri-selector, --server-stat-of,
  2351. --server-stat-in, --server-stat-timeout options.
  2352. * src/HelpItemFactory.cc
  2353. * src/usage_text.h
  2354. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2355. Added upper limit of FTP response buffer. The current implementation
  2356. uses 4096bytes as a limit.
  2357. * src/FtpConnection.cc
  2358. * src/FtpConnection.h
  2359. * test/FtpConnectionTest.cc
  2360. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2361. Use non-blocking socket for TCP communication to avoid possible
  2362. blocking due to buffer full.
  2363. * src/AbstractProxyRequestCommand.cc
  2364. * src/FtpConnection.cc
  2365. * src/FtpConnection.h
  2366. * src/FtpNegotiationCommand.cc
  2367. * src/FtpNegotiationCommand.h
  2368. * src/HttpConnection.cc
  2369. * src/HttpConnection.h
  2370. * src/HttpRequestCommand.cc
  2371. * src/InitiatorMSEHandshakeCommand.cc
  2372. * src/InitiatorMSEHandshakeCommand.h
  2373. * src/MSEHandshake.cc
  2374. * src/MSEHandshake.h
  2375. * src/Makefile.am
  2376. * src/PeerConnection.cc
  2377. * src/PeerConnection.h
  2378. * src/PeerInteractionCommand.cc
  2379. * src/PeerListenCommand.cc
  2380. * src/ReceiverMSEHandshakeCommand.cc
  2381. * src/ReceiverMSEHandshakeCommand.h
  2382. * src/SocketBuffer.cc
  2383. * src/SocketBuffer.h
  2384. * src/SocketCore.cc
  2385. * src/SocketCore.h
  2386. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2387. Call setStatusRealtime() in constructor.
  2388. * src/RealtimeCommand.cc
  2389. * src/RealtimeCommand.h
  2390. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2391. Call Download::setNoWait(true) to execute newly created command without
  2392. a pause.
  2393. * src/AbstractCommand.cc
  2394. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2395. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2396. found' error from HTTP/FTP server NUM times without getting single
  2397. bytes of data, then force the download to fail.
  2398. Basically aria2 tris all URIs available. So if long list of URIs are
  2399. specified in Metalink, then aria2 will take a long time to fail
  2400. eventually if all URIs are outdated. This option eases this situation
  2401. to limit the number of servers to try.
  2402. * src/FtpNegotiationCommand.cc
  2403. * src/HelpItemFactory.cc
  2404. * src/HttpResponseCommand.cc
  2405. * src/OptionHandlerFactory.cc
  2406. * src/PeerStat.h
  2407. * src/RequestGroup.cc
  2408. * src/RequestGroup.h
  2409. * src/SegmentMan.cc
  2410. * src/SegmentMan.h
  2411. * src/option_processing.cc
  2412. * src/prefs.cc
  2413. * src/prefs.h
  2414. * src/usage_text.h
  2415. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2416. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2417. response even if more than one response is in it.
  2418. * src/FtpConnection.cc
  2419. * src/FtpConnection.h
  2420. * test/FtpConnectionTest.cc
  2421. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2422. Merged from stable-0.15
  2423. * m4/libcares.m4
  2424. Use pkg-config
  2425. * m4/sqlite3.m4
  2426. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2427. Removed unnecessary if statement.
  2428. * src/DefaultPieceStorage.cc (initPieceStorage)
  2429. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2430. Added --connect-timeout option to specify connect timeout in seconds.
  2431. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2432. connecting to BitTorrent peer is not controlled by this option.
  2433. * src/AbstractProxyRequestCommand.cc
  2434. * src/FtpNegotiationCommand.cc
  2435. * src/HelpItemFactory.cc
  2436. * src/HttpRequestCommand.cc
  2437. * src/OptionHandlerFactory.cc
  2438. * src/option_processing.cc
  2439. * src/prefs.cc
  2440. * src/prefs.h
  2441. * src/usage_text.h
  2442. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2443. Added help message for -R option.
  2444. * src/HelpItemFactory.cc
  2445. * src/usage_text.h
  2446. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2447. Added the message that the time is in local time zone.
  2448. * src/RequestGroup.cc
  2449. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2450. Implemented the ability to get timestamp from remote FTP server using
  2451. MDTM command described in RFC3659.
  2452. * src/FtpConnection.cc
  2453. * src/FtpConnection.h
  2454. * src/FtpNegotiationCommand.cc
  2455. * src/FtpNegotiationCommand.h
  2456. * test/FtpConnectionTest.cc
  2457. * test/Makefile.am
  2458. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2459. Implemented the ability to get timestamp from remote HTTP server and
  2460. apply it to local file. To enable this feature, --remote-time option
  2461. is added. No usage text has been written yet.
  2462. If several servers returns difference timestamp, then aria2 uses latest
  2463. one.
  2464. * src/CopyDiskAdaptor.cc
  2465. * src/CopyDiskAdaptor.h
  2466. * src/DirectDiskAdaptor.cc
  2467. * src/DirectDiskAdaptor.h
  2468. * src/DiskAdaptor.h
  2469. * src/File.cc
  2470. * src/File.h
  2471. * src/HttpHeader.cc
  2472. * src/HttpHeader.h
  2473. * src/HttpResponse.cc
  2474. * src/HttpResponse.h
  2475. * src/HttpResponseCommand.cc
  2476. * src/HttpResponseCommand.h
  2477. * src/MultiDiskAdaptor.cc
  2478. * src/MultiDiskAdaptor.h
  2479. * src/OptionHandlerFactory.cc
  2480. * src/RequestGroup.cc
  2481. * src/RequestGroup.h
  2482. * src/RequestGroupMan.cc
  2483. * src/option_processing.cc
  2484. * src/prefs.cc
  2485. * src/prefs.h
  2486. * test/CopyDiskAdaptorTest.cc
  2487. * test/FileTest.cc
  2488. * test/Makefile.am
  2489. * test/Makefile.in
  2490. * test/MultiDiskAdaptorTest.cc
  2491. * test/TestUtil.cc
  2492. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2493. Fixed the bug that DiskWriterEntry is not created when its
  2494. FileEntry.isRequested() is false and it doesn't share a piece with
  2495. other FileEntries that are requested. This bug causes segmentation fault
  2496. in the end.
  2497. * src/MultiDiskAdaptor.cc
  2498. * src/MultiDiskAdaptor.h
  2499. * src/MultiFileAllocationIterator.cc
  2500. * test/MultiDiskAdaptorTest.cc
  2501. * test/MultiFileAllocationIteratorTest.cc
  2502. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2503. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  2504. called if the number of file entries are greater than max open files.
  2505. * src/AbstractSingleDiskAdaptor.cc
  2506. * src/AbstractSingleDiskAdaptor.h
  2507. * src/DiskAdaptor.h
  2508. * src/MultiDiskAdaptor.cc
  2509. * src/MultiDiskAdaptor.h
  2510. * test/MultiDiskAdaptorTest.cc
  2511. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2512. Added a constuctor that receives struct timeval.
  2513. Added operator<.
  2514. * src/TimeA2.cc
  2515. * src/TimeA2.h
  2516. * test/TimeTest.cc
  2517. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2518. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  2519. * src/CookieParser.cc
  2520. * test/CookieParserTest.cc
  2521. * test/HttpResponseTest.cc
  2522. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2523. Implmented the functions to parse date.
  2524. * src/TimeA2.cc
  2525. * src/TimeA2.h
  2526. * test/TimeTest.cc
  2527. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2528. Added "Firefox3 Cookie" feature to FeatureConfig
  2529. * src/FeatureConfig.cc
  2530. * src/FeatureConfig.h
  2531. * test/FeatureConfigTest.cc
  2532. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2533. Bump up version number to 0.16.0b
  2534. * configure.ac
  2535. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2536. Use pkg-config if is is available.
  2537. * m4/openssl.m4
  2538. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2539. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  2540. * src/BtAnnounce.h
  2541. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2542. If an error occurred with a URI, remove identical URI from remaining
  2543. URI list because it is likely that same error occurred in the end and it
  2544. is waste of time.
  2545. * src/AbstractCommand.cc
  2546. * src/RequestGroup.cc
  2547. * src/RequestGroup.h
  2548. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2549. Removed wrong comment.
  2550. * src/DefaultPeerStorage.cc
  2551. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2552. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  2553. Added return value of getpid() to argument of srand() to achieve more
  2554. randomized value.
  2555. * src/SimpleRandomizer.cc
  2556. * src/SimpleRandomizer.h
  2557. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2558. Contact tracker frequently when the number of connections are 0 and
  2559. download is not finished yet.
  2560. * src/ActivePeerConnectionCommand.cc
  2561. * src/BtAnnounce.h
  2562. * src/DefaultBtAnnounce.cc
  2563. * src/DefaultBtAnnounce.h
  2564. * test/MockBtAnnounce.h
  2565. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2566. Moved threshold values to UTPexExtensionMessage.
  2567. * src/DefaultBtInteractive.cc
  2568. * src/Peer.cc
  2569. * src/Peer.h
  2570. * src/UTPexExtensionMessage.cc
  2571. * src/UTPexExtensionMessage.h
  2572. * test/UTPexExtensionMessageTest.cc
  2573. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2574. Added _incoming member to Peer class and made it true if the peer
  2575. initiated connection. Don't add those peer to UTPex message.
  2576. If extended handshake is received, assign _incoming to false.
  2577. * src/DefaultBtInteractive.cc
  2578. * src/HandshakeExtensionMessage.cc
  2579. * src/Peer.cc
  2580. * src/Peer.h
  2581. * src/PeerListenCommand.cc
  2582. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2583. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  2584. Encoding Decoder. Removed size threshold for turning off on the fly
  2585. inflation because resulting file may or may not be inflated depending
  2586. on the file size and I think it is not expected by users.
  2587. This change fixes segmentation fault when Metalink file contains gzipped
  2588. file and its filesize is provided.
  2589. * src/HttpResponseCommand.cc
  2590. * src/HttpResponseCommand.h
  2591. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2592. Made Cookie immutable.
  2593. * src/Cookie.cc
  2594. * src/Cookie.h
  2595. * src/CookieParser.cc
  2596. * src/CookieParser.h
  2597. * src/CookieStorage.cc
  2598. * test/CookieParserTest.cc
  2599. * test/CookieStorageTest.cc
  2600. * test/NsCookieParserTest.cc
  2601. * test/Sqlite3MozCookieParserTest.cc
  2602. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2603. Removed CookieBox, CookieBoxFactory.
  2604. * src/CookieBox.cc
  2605. * src/CookieBox.h
  2606. * src/CookieBoxFactory.cc
  2607. * src/CookieBoxFactory.h
  2608. * src/Makefile.am
  2609. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2610. Use CookieStorage class instead of CookieBox class.
  2611. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  2612. * src/AbstractProxyRequestCommand.cc
  2613. * src/CookieStorage.cc
  2614. * src/DownloadEngine.cc
  2615. * src/DownloadEngine.h
  2616. * src/HttpConnection.cc
  2617. * src/HttpConnection.h
  2618. * src/HttpRequest.cc
  2619. * src/HttpRequest.h
  2620. * src/HttpRequestCommand.cc
  2621. * src/HttpResponse.cc
  2622. * src/HttpResponseCommand.cc
  2623. * src/HttpSkipResponseCommand.cc
  2624. * src/Makefile.am
  2625. * src/MultiUrlRequestInfo.cc
  2626. * src/Request.cc
  2627. * src/Request.h
  2628. * src/main.cc
  2629. * test/AllTest.cc
  2630. * test/CookieStorageTest.cc
  2631. * test/CookieTest.cc
  2632. * test/HttpRequestTest.cc
  2633. * test/HttpResponseTest.cc
  2634. * test/Makefile.am
  2635. * test/NsCookieParserTest.cc
  2636. * test/Sqlite3MozCookieParserTest.cc
  2637. * test/nscookietest.txt
  2638. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2639. Updated
  2640. * test/Cookies.sqlite
  2641. * test/nscookietest.txt
  2642. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2643. Added tests for CookieStorage::load()
  2644. * test/CookieStorageTest.cc
  2645. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2646. Added CookieStorage class which is based on RFC2109 and manages cookies
  2647. more strictly than CookieBox and CookieBoxFactory class.
  2648. * src/CookieStorage.cc
  2649. * src/CookieStorage.h
  2650. * src/Cookie.cc
  2651. * src/Cookie.h
  2652. * test/CookieStorageTest.cc
  2653. * test/CookieTest.cc
  2654. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2655. Fixed the bug that commands are created more than the number of pieces.
  2656. * src/RequestGroup.cc
  2657. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2658. Fixed infinite loop bug in FTP when SIZE command failed.
  2659. * src/FtpNegotiationCommand.cc
  2660. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2661. Removed DirectDiskAdaptorTest.h
  2662. * test/Makefile.am
  2663. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2664. Fixed chunk checksum validation cannot detect trailing garbage data.
  2665. BUG#2074141
  2666. * src/AbstractSingleDiskAdaptor.cc
  2667. * src/AbstractSingleDiskAdaptor.h
  2668. * src/CheckIntegrityEntry.cc
  2669. * src/CheckIntegrityEntry.h
  2670. * src/DiskAdaptor.h
  2671. * src/MultiDiskAdaptor.cc
  2672. * src/MultiDiskAdaptor.h
  2673. * src/RequestGroup.cc
  2674. * test/DirectDiskAdaptorTest.cc
  2675. * test/MultiDiskAdaptorTest.cc
  2676. * test/TestUtil.cc
  2677. * test/TestUtil.h
  2678. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2679. Bump up version number of dht.dat file to 3. In version 3 format, time
  2680. is stored in 64bit, network byte order.
  2681. New build can load old format(version 2) but it saves the file in new
  2682. format. It means once you used new build, your dht.dat becomes
  2683. incompatible with older build.
  2684. * src/DHTRoutingTableDeserializer.cc
  2685. * src/DHTRoutingTableSerializer.cc
  2686. * test/DHTRoutingTableSerializerTest.cc
  2687. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2688. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  2689. * test/Makefile.am
  2690. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2691. Bump up version number of .aria2 control file to 0001.
  2692. New aria2 can still load version 0000 file but it saves the file in
  2693. version 0001 format. It means that new aria2 can resume download
  2694. started by old aria2 but the opposite is not true.
  2695. * src/DefaultBtProgressInfoFile.cc
  2696. * src/DefaultBtProgressInfoFile.h
  2697. * test/DefaultBtProgressInfoFileTest.cc
  2698. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2699. Added ntoh64 and hton64 as inline functions.
  2700. * src/Util.cc
  2701. * test/UtilTest.cc
  2702. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2703. Added sqlite3 depenency and Firefox3 cookie support.
  2704. * README
  2705. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2706. State that firefox3 cookie is supported explicitly in the usage.
  2707. * src/usage_text.h
  2708. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2709. Externalized message.
  2710. * src/RequestGroupMan.cc
  2711. * src/message.h
  2712. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2713. Save temporary file first and rename to the destination on success.
  2714. Added test cases.
  2715. * src/RequestGroupMan.cc
  2716. * test/RequestGroupManTest.cc
  2717. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2718. Fixed the bug that the number of connected peer is exceeding the limit
  2719. (55 by default) in seeding mode.
  2720. Multiplied 0.8 to _maxUploadSpeedLimit.
  2721. * src/ActivePeerConnectionCommand.cc
  2722. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2723. Clear table item.
  2724. * src/Dictionary.cc
  2725. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2726. Fixed error handling of lseek.
  2727. * src/AbstractDiskWriter.cc
  2728. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2729. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  2730. style cookie file.
  2731. * src/usage_text.h
  2732. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2733. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  2734. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  2735. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  2736. * src/Util.cc
  2737. * src/Util.h
  2738. * src/CookieParser.cc
  2739. * test/UtilTest.cc
  2740. * test/CookieParserTest.cc
  2741. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2742. Separate the implementation to load old mozilla format of cookie to
  2743. NsCookieParser class.
  2744. * src/CookieBoxFactory.cc
  2745. * src/CookieBoxFactory.h
  2746. * src/NsCookieParser.cc
  2747. * src/NsCookieParser.h
  2748. * test/NsCookieParserTest.cc
  2749. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2750. Made parse() const
  2751. * src/Sqlite3MozCookieParser.cc
  2752. * src/Sqlite3MozCookieParser.h
  2753. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2754. Added firefox3 cookie support based on the patch submitted by
  2755. tizianomueller.
  2756. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  2757. this functionality.
  2758. * configure.ac
  2759. * m4/sqlite3.m4
  2760. * src/CookieBoxFactory.cc
  2761. * src/CookieBoxFactory.h
  2762. * src/Makefile.am
  2763. * src/Makefile.in
  2764. * src/Sqlite3MozCookieParser.cc
  2765. * src/Sqlite3MozCookieParser.h
  2766. * src/main.cc
  2767. * test/CookieBoxFactoryTest.cc
  2768. * test/Makefile.am
  2769. * test/Makefile.in
  2770. * test/Sqlite3MozCookieParserTest.cc
  2771. * test/badcookies.sqlite
  2772. * test/cookies.sqlite
  2773. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2774. Added Danish and Greek translations.
  2775. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  2776. Great thanks to all translators.
  2777. * po/LINGUAS
  2778. * po/el.po
  2779. * po/da.po
  2780. * po/es.po
  2781. * po/ca.po
  2782. * po/nn.po
  2783. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2784. Fixed man page: --follow-bittorrent should be --follow-torrent
  2785. * doc/aria2c.1.txt
  2786. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2787. Fixed: numCommand is less than the value specified in -C option.
  2788. * src/RequestGroup.cc
  2789. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2790. Fixed occasional assertion failure in PieceSegment.
  2791. Calling PieceStorage::getMissingPiece(size_t) was missing after
  2792. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  2793. creation of duplicate segments and one of the segment was finished then
  2794. assertion failure was caused.
  2795. * src/SegmentMan.cc
  2796. * test/SegmentManTest.cc
  2797. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2798. Added options to load/save the server's performance/status to a file
  2799. and the timeout to drop their data.
  2800. --server-stat-of=FILE specifies the file to which performance data
  2801. is saved.
  2802. --server-stat-if=FILE specifies the file to read previously saved
  2803. by --server-stat-of option. Might be used with --uri-selector=feedback.
  2804. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  2805. TIMEOUT is specified in seconds and the default value is 24hours.
  2806. * src/MultiUrlRequestInfo.cc
  2807. * src/OptionHandlerFactory.cc
  2808. * src/RequestGroupMan.cc
  2809. * src/RequestGroupMan.h
  2810. * src/ServerStatMan.cc
  2811. * src/ServerStatMan.h
  2812. * src/option_processing.cc
  2813. * src/prefs.cc
  2814. * src/prefs.h
  2815. * test/ServerStatManTest.cc
  2816. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2817. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  2818. * src/ServerStatMan.cc
  2819. * src/ServerStatMan.h
  2820. * test/ServerStatManTest.cc
  2821. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2822. Implemented ServerStatMan::load(...) function and its test case.
  2823. * src/ServerStat.cc
  2824. * src/ServerStat.h
  2825. * src/ServerStatMan.cc
  2826. * test/ServerStatManTest.cc
  2827. * test/ServerStatTest.cc
  2828. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2829. Use time_t instead of int32_t. Use int64_t where milli second is
  2830. expected.
  2831. * src/TimeA2.cc
  2832. * src/TimeA2.h
  2833. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2834. Implemented ServerStatMan::save(...) function and its test case.
  2835. * src/ServerStat.cc
  2836. * src/ServerStat.h
  2837. * src/ServerStatMan.cc
  2838. * src/ServerStatMan.h
  2839. * test/ServerStatManTest.cc
  2840. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2841. Now aria2 uses name attribute in Metalink as local filename in
  2842. BitTorrent downloads. BUG#2033999
  2843. * src/BtContext.h
  2844. * src/BtDependency.cc
  2845. * src/DefaultBtContext.cc
  2846. * src/DefaultBtContext.h
  2847. * src/SingleFileDownloadContext.cc
  2848. * src/SingleFileDownloadContext.h
  2849. * test/BtDependencyTest.cc
  2850. * test/DefaultBtContextTest.cc
  2851. * test/MockBtContext.h
  2852. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2853. Added AC_C_BIGENDIAN
  2854. * src/configure.ac
  2855. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2856. Limited numCommand less than or equal to the number of piece.
  2857. * src/RequestGroup.cc
  2858. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2859. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  2860. directive.
  2861. * test/DefaultPieceStorageTest.cc
  2862. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2863. Fixed memory leak in test code
  2864. * test/AnnounceListTest.cc
  2865. * test/DefaultPeerListProcessorTest.cc
  2866. * test/DefaultPeerStorageTest.cc
  2867. * test/MetaFileUtilTest.cc
  2868. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2869. Fixed wrong argument passing to BitfieldMan::isBitSet()
  2870. * src/DefaultPieceStorage.cc
  2871. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2872. Initialized _directIOAllowed
  2873. * src/MultiDiskAdaptor.cc
  2874. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2875. Fixed memory leak
  2876. * src/GZipDecoder.cc
  2877. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2878. Fixed memory leak
  2879. * src/MetalinkParserStateMachine.cc
  2880. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2881. Fixed memory leak
  2882. * src/Dictionary.cc
  2883. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2884. Fixed memory leak
  2885. * src/IteratableChunkChecksumValidator.h
  2886. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2887. Fixed unmatched malloc/free.
  2888. * src/IteratableChunkChecksumValidator.cc
  2889. * src/IteratableChecksumValidator.cc
  2890. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2891. Removed max chunk size check. This change fixes BUG#2040169
  2892. * src/ChunkedDecoder.cc
  2893. * src/ChunkedDecoder.h
  2894. * test/ChunkedDecoderTest.cc
  2895. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2896. Implemented download speed based URI selection algorithm.
  2897. Introduced new option --uri-selector.
  2898. If --uri-selector=feedback is given, aria2 uses download speed observed
  2899. in the previous downloads and chooses fastest server in the URI list.
  2900. Currently at most 10 URIs are considered to introduce randomeness for
  2901. finding better servers. The speed is average download speed in the
  2902. downloads.
  2903. On the other hand, if --uri-selector=inorder is given, which is default,
  2904. URI is tried in order in URI list.
  2905. The usage text for the new option has not been written yet.
  2906. * src/AbstractCommand.cc
  2907. * src/DownloadCommand.cc
  2908. * src/DownloadEngine.cc
  2909. * src/DownloadEngineFactory.cc
  2910. * src/InOrderURISelector.cc
  2911. * src/InOrderURISelector.h
  2912. * src/OptionHandlerFactory.cc
  2913. * src/PeerStat.h
  2914. * src/RequestGroup.cc
  2915. * src/RequestGroup.h
  2916. * src/RequestGroupMan.cc
  2917. * src/RequestGroupMan.h
  2918. * src/SegmentMan.cc
  2919. * src/SegmentMan.h
  2920. * src/ServerStat.cc
  2921. * src/ServerStat.h
  2922. * src/ServerStatMan.cc
  2923. * src/ServerStatMan.h
  2924. * src/ServerStatURISelector.cc
  2925. * src/ServerStatURISelector.h
  2926. * src/URISelector.h
  2927. * src/option_processing.cc
  2928. * src/prefs.cc
  2929. * src/prefs.h
  2930. * test/InOrderURISelectorTest.cc
  2931. * test/RequestGroupManTest.cc
  2932. * test/ServerStatManTest.cc
  2933. * test/ServerStatURISelectorTest.cc
  2934. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2935. * Release 0.15.1+2
  2936. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2937. Bump up version number to 0.15.1+2
  2938. * configure.ac
  2939. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2940. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  2941. * m4/aria2_arg.m4
  2942. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2943. * Release 0.15.1+1
  2944. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2945. Bump up version number to 0.15.1+1
  2946. * configure.ac
  2947. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2948. Fixed the bug that causes segmentaion fault when resuming download
  2949. using metalink without size tag. Reproducible only using HTTP URI.
  2950. * src/HttpResponseCommand.cc
  2951. * src/FtpNegotiationCommand.cc
  2952. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2953. * Release 0.15.1
  2954. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2955. Updated Bulgarian and French translations, thanks to all translators.
  2956. * po/bg.po
  2957. * po/fr.po
  2958. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2959. Bump up version number to 0.15.1
  2960. * configure.ac
  2961. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2962. Avoid repeated call of gettimeofday() when calculating speed.
  2963. * src/SpeedCalc.cc
  2964. * src/SpeedCalc.h
  2965. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2966. Removed writable check when socket's send buffer is full in BitTorrent
  2967. downloads to lower CPU usage.
  2968. * src/PeerInteractionCommand.cc
  2969. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2970. Fixed broken gzip inflation.
  2971. Turn off segmented downloading if gzip content is smaller than or equal
  2972. to 1MiB and inflate the data on the fly, because HTTP response header
  2973. doesn't contain the length of inflated file we can't determin where
  2974. the chunk of data should be written.
  2975. On the other hand, if gzip content is larger than 1MB, then turn off
  2976. on the fly inflation, because some servers returns "content-type: gzip"
  2977. for *.tgz, *.gz files.
  2978. * src/DownloadCommand.cc
  2979. * src/HttpResponseCommand.cc
  2980. * src/HttpResponseCommand.h
  2981. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2982. Applied tizianomueller's patch to fix compile error.
  2983. * test/BitfieldManTest.cc
  2984. * test/BtRequestMessageTest.cc
  2985. * test/DefaultBtContextTest.cc
  2986. * test/DefaultDiskWriterTest.cc
  2987. * test/DefaultPieceStorageTest.cc
  2988. * test/HttpHeaderProcessorTest.cc
  2989. * test/HttpResponseTest.cc
  2990. * test/Metalink2RequestGroupTest.cc
  2991. * test/MetalinkParserControllerTest.cc
  2992. * test/MetalinkProcessorTest.cc
  2993. * test/PeerSessionResourceTest.cc
  2994. * test/UtilTest.cc
  2995. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2996. * Release 0.15.0
  2997. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2998. Reordered src files in POTFILES.in so that usage text appears first.
  2999. * po/POTFILES.in
  3000. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3001. Bump up version number to 0.15.0
  3002. * configure.ac
  3003. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3004. Added Bulgarian translation.
  3005. Updated Catalan, Spanish, French and Japanese translations.
  3006. Thanks to all translators.
  3007. * po/LINGUAS
  3008. * po/bg.po
  3009. * po/ca.po
  3010. * po/es.po
  3011. * po/fr.po
  3012. * po/ja.po
  3013. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3014. Updated feature list. Added libz for dependency section.
  3015. Added a description about unit testing using CppUnit.
  3016. * README
  3017. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3018. Added a test for libz. Quoted where it is necessary.
  3019. * build_test.sh
  3020. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3021. Added GZip to `Enabled Features' list.
  3022. * src/FeatureConfig.cc
  3023. * src/FeatureConfig.h
  3024. * test/FeatureConfigTest.cc
  3025. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3026. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  3027. the transfer has not yet started.
  3028. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  3029. * src/SegmentMan.cc
  3030. * src/SegmentMan.h
  3031. * test/SegmentManTest.cc
  3032. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3033. Cache last calculated average download/upload speed.
  3034. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  3035. cached value.
  3036. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  3037. * src/PeerStat.h
  3038. * src/SpeedCalc.cc
  3039. * src/SpeedCalc.h
  3040. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3041. Call parseUrl directly.
  3042. * src/Request.cc (resetUrl)
  3043. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3044. Supported absolute/relative path in Location header field.
  3045. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  3046. * src/HttpHeader.cc
  3047. * src/HttpHeader.h
  3048. * src/HttpResponse.cc
  3049. * src/HttpSkipResponseCommand.cc
  3050. * src/Request.cc
  3051. * test/HttpHeaderTest.cc
  3052. * test/HttpResponseTest.cc
  3053. * test/RequestTest.cc
  3054. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3055. Changed help text for --load-cookie option.
  3056. * doc/aria2c.1.txt
  3057. * src/usage_text.h
  3058. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3059. Regenerated test/Makefile.in to remove stale ChangeLog.
  3060. * test/Makefile.in
  3061. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3062. Updated po files.
  3063. * po/aria2c.pot
  3064. * po/*.po
  3065. * po/*.gmo
  3066. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3067. Bump up version number to 0.15.0b
  3068. * configure.ac
  3069. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3070. Externalize messages.
  3071. * src/RequestGroupMan.cc
  3072. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3073. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3074. Use File::exists() instead of File::isFile() to allow non-regular file
  3075. such as block special files.
  3076. * src/AbstractDiskWriter.cc
  3077. * src/MultiDiskWriter.cc
  3078. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3080. * src/gai_strerror.h
  3081. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3082. Fixed compile error. Thanks gknauf for the patch.
  3083. * src/asctime_r.c
  3084. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3085. Included asctime_r.h from a2time.h.
  3086. * src/a2time.h
  3087. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3088. Added a message "aria2 doesn't verify signature" to log message when
  3089. signature file is saved.
  3090. * src/RequestGroupMan.cc
  3091. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3092. Added the ability to save signature when download is completed if
  3093. signature is available. The filename of signature file is the path to
  3094. download file followed by ".sig". If it already exists, then signature
  3095. will not be saved.
  3096. * src/RequestGroupMan.cc
  3097. * src/Signature.cc
  3098. * test/SignatureTest.cc
  3099. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3100. Updated the descriptions for --bt-seed-unverified.
  3101. * doc/aria2c.1
  3102. * doc/aria2c.1.html
  3103. * doc/aria2c.1.txt
  3104. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3105. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3106. that this is not going to verify files using piece hashes.
  3107. * src/HelpItemFactory.cc
  3108. * src/OptionHandlerFactory.cc
  3109. * src/RequestGroup.cc
  3110. * src/option_processing.cc
  3111. * src/prefs.cc
  3112. * src/prefs.h
  3113. * src/usage_text.h
  3114. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3115. Added the ability to retrieve signature from Metalink file.
  3116. A retrieved signature is stored in Signature class and it is held by
  3117. DownloadContext class. Note that aria2 doesn't verify signature.
  3118. * src/DownloadContext.cc
  3119. * src/DownloadContext.h
  3120. * src/Makefile.am
  3121. * src/Makefile.in
  3122. * src/Metalink2RequestGroup.cc
  3123. * src/MetalinkEntry.cc
  3124. * src/MetalinkEntry.h
  3125. * src/MetalinkParserController.cc
  3126. * src/MetalinkParserController.h
  3127. * src/MetalinkParserStateMachine.cc
  3128. * src/MetalinkParserStateMachine.h
  3129. * src/Signature.cc
  3130. * src/Signature.h
  3131. * src/SignatureMetalinkParserState.cc
  3132. * src/SignatureMetalinkParserState.h
  3133. * src/VerificationMetalinkParserState.cc
  3134. * src/VerificationMetalinkParserState.h
  3135. * test/Metalink2RequestGroupTest.cc
  3136. * test/MetalinkParserControllerTest.cc
  3137. * test/MetalinkProcessorTest.cc
  3138. * test/test.xml
  3139. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3140. Close DiskAdaptor after renaming file.
  3141. * src/RequestGroup.cc
  3142. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3143. Corrected indentation
  3144. * src/DefaultBtProgressInfoFile.cc
  3145. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3146. Moved the calls of std::ios::exceptions() inside of try-catch block
  3147. because if an error occurred in constructor of std::fstream, then
  3148. exception is thrown immediately when std::ios::exceptions() is called
  3149. which results unhandled exception and aria2c aborts.
  3150. * src/DefaultBtProgressInfoFile.cc
  3151. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3152. Added the test for the previous change in DefaultBtContext.cc
  3153. * test/DefaultBtContextTest.cc
  3154. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3155. Fixed the bug that causes infinite loop when the number of pieces are
  3156. fewer than allowed fast set size which is 10 by default.
  3157. * src/DefaultBtContext.cc
  3158. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3159. Updated the descriptions for -j, -s. Added --bt-seed.
  3160. * doc/aria2c.1
  3161. * doc/aria2c.1.html
  3162. * doc/aria2c.1.txt
  3163. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3164. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3165. aria2 seeds previously downloaded files without validating piece hashs.
  3166. * src/HelpItemFactory.cc
  3167. * src/OptionHandlerFactory.cc
  3168. * src/RequestGroup.cc
  3169. * src/option_processing.cc
  3170. * src/prefs.cc
  3171. * src/prefs.h
  3172. * src/usage_text.h
  3173. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3174. Updated DESCRIPTION of man page.
  3175. * doc/aria2c.1
  3176. * doc/aria2c.1.html
  3177. * doc/aria2c.1.txt
  3178. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3179. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3180. Don't define `struct addrinfo' when __sun is defined.
  3181. * src/getaddrinfo.h
  3182. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3183. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3184. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3185. second argument is of type `struct _stati64'. Otherwise it is defined as
  3186. `struct stat'.
  3187. * src/AbstractDiskWriter.cc
  3188. * src/File.cc
  3189. * src/File.h
  3190. * src/a2io.h
  3191. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3192. Fixed the compile error in hurd-i386
  3193. See the original bug report:
  3194. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3195. * src/a2io.h
  3196. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3197. Code cleanup.
  3198. * src/PeerAbstractCommand.cc
  3199. * src/PeerAbstractCommand.h
  3200. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3201. Removed TransferEncoding.
  3202. * src/DownloadCommand.cc
  3203. * src/DownloadCommand.h
  3204. * src/HttpResponseCommand.cc
  3205. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3206. Updated po files.
  3207. * po/aria2c.pot
  3208. * po/*.po
  3209. * po/*.gmo
  3210. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3211. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3212. * src/A2STR.cc
  3213. * src/A2STR.h
  3214. * src/ChunkedDecoder.cc
  3215. * src/ChunkedDecoder.h
  3216. * src/ChunkedEncoding.cc: Removed
  3217. * src/ChunkedEncoding.h: Removed
  3218. * src/DownloadCommand.cc
  3219. * src/DownloadCommand.h
  3220. * src/HttpDownloadCommand.cc
  3221. * src/HttpResponse.cc
  3222. * src/HttpResponse.h
  3223. * src/HttpResponseCommand.cc
  3224. * src/HttpSkipResponseCommand.cc
  3225. * src/HttpSkipResponseCommand.h
  3226. * src/Makefile.am
  3227. * src/TransferEncoding.h: Removed
  3228. * test/ChunkedDecoderTest.cc
  3229. * test/ChunkedEncodingTest.cc: Removed
  3230. * test/HttpResponseTest.cc
  3231. * test/Makefile.am
  3232. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Use append instead of insert.
  3234. * src/GZipDecoder.cc
  3235. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3236. Updated doc
  3237. * src/Decoder.h
  3238. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3239. Updated usage text for -s option.
  3240. * src/usage_text.h
  3241. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3242. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3243. * src/Request.cc
  3244. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3245. Cleaned up configure.ac.
  3246. * configure.ac
  3247. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3249. AC_ARG_ENABLE.
  3250. * configure.ac
  3251. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3252. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3253. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3254. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3255. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3256. fly and writes decoded data to a local disk.
  3257. * README
  3258. * README.html
  3259. * configure.ac
  3260. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3261. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3262. * m4/libz.m4
  3263. * src/Decoder.h
  3264. * src/DownloadCommand.cc
  3265. * src/DownloadCommand.h
  3266. * src/Exception.h
  3267. * src/GZipDecoder.cc
  3268. * src/GZipDecoder.h
  3269. * src/HttpHeader.cc
  3270. * src/HttpHeader.h
  3271. * src/HttpRequest.cc
  3272. * src/HttpRequest.h
  3273. * src/HttpResponse.cc
  3274. * src/HttpResponse.h
  3275. * src/HttpResponseCommand.cc
  3276. * src/Makefile.am
  3277. * test/GZipDecoderTest.cc
  3278. * test/HttpRequestTest.cc
  3279. * test/HttpResponseTest.cc
  3280. * test/Makefile.am
  3281. * test/Makefile.in
  3282. * test/gzip_decode_test.gz
  3283. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3284. Clarified usage of -j option.
  3285. * src/usage_text.h
  3286. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3287. Disabled getting size from the response of RETR.
  3288. If SIZE command failed, then disable resuming and segmented downloading.
  3289. * src/FtpConnection.cc
  3290. * src/FtpConnection.h
  3291. * src/FtpNegotiationCommand.cc
  3292. * src/FtpNegotiationCommand.h
  3293. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3294. Use digits to find first byte of file size, which makes the intention
  3295. of the code clearer.
  3296. * src/FtpConnection.cc
  3297. Don't call validateTotalLength() when size is 0.
  3298. * src/FtpNegotiationCommand.cc
  3299. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3300. Updated po files.
  3301. * po/aria2c.pot
  3302. * po/*.gmo
  3303. * po/*.po
  3304. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3305. Clarified usage text for --split option.
  3306. * src/usage_text.h
  3307. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3308. Bump up version number to 0.15.0dev. "dev" means "development"
  3309. version, which means I started the development of the next release!
  3310. * src/configure.ac
  3311. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3312. If FTP server returns negative response with REST raw command and
  3313. requested range is not 0, throw exception. If requested range is 0,
  3314. continue download a file from 0 byte.
  3315. * src/FtpNegotiationCommand.cc
  3316. * src/FtpNegotiationCommand.h
  3317. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3318. Supported FTP server which don't recognize SIZE raw command.
  3319. If SIZE raw command is failed, aria2 will try to get file size
  3320. from the response of RETR raw command. If both attempts are failed,
  3321. then resuming and segmented downloading are disabled.
  3322. * src/FtpConnection.cc
  3323. * src/FtpConnection.h
  3324. * src/FtpNegotiationCommand.cc
  3325. * src/FtpNegotiationCommand.h
  3326. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3327. * Release 0.14.0+1
  3328. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3329. Bump up version number to 0.14.0+1
  3330. * src/configure.ac
  3331. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3332. Fixed the code that refers static member variable from non-static
  3333. context.
  3334. * src/DefaultPeerStorage.cc
  3335. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3336. * Release 0.14.0
  3337. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3338. Added build test script
  3339. * build_test.sh
  3340. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3341. Updated ja.po
  3342. * src/ja.po
  3343. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3344. Bump up version number to 0.14.0
  3345. * src/configure.ac
  3346. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3347. Updated ja.po and fr.po. Great thanks for french translators and
  3348. Sebastien WILLEMIJNS.
  3349. * po/fr.po
  3350. * po/ja.po
  3351. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Added configure option to enable/disable epoll support.
  3353. * configure.ac
  3354. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. Updated man page.
  3356. * doc/aria2c.1.txt
  3357. * doc/aria2c.1
  3358. * doc/aria2c.1.html
  3359. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3360. Added missing default value '5' to the usage of --split option.
  3361. * src/HelpItemFactory.cc
  3362. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3363. Filled up pieces based on the number of missing blocks, rather than
  3364. simplay the number of piece * block length.
  3365. * src/BtRequestFactory.h
  3366. * src/DefaultBtInteractive.cc
  3367. * src/DefaultBtInteractive.h
  3368. * src/DefaultBtRequestFactory.cc
  3369. * src/DefaultBtRequestFactory.h
  3370. * src/Piece.cc
  3371. * src/Piece.h
  3372. * test/BitfieldManTest.cc
  3373. * test/DefaultBtRequestFactoryTest.cc
  3374. * test/MockBtRequestFactory.h
  3375. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3376. Made _epEvents a member variable.
  3377. * src/DownloadEngine.cc
  3378. * src/DownloadEngine.h
  3379. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3380. Cancel download if http redirect is bounded more than 20 times.
  3381. * src/AbstractCommand.cc
  3382. * src/HttpSkipResponseCommand.cc
  3383. * src/Request.cc
  3384. * src/Request.h
  3385. * test/RequestTest.cc
  3386. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3387. Fixed unhandled exception(removed keyword `new').
  3388. * src/SocketCore.cc (initEPOLL)
  3389. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. Removed visit(const MetaEntry*)
  3391. * src/MetaEntryVisitor.h:
  3392. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3393. and made them virtual.
  3394. * src/BencodeVisitor.h
  3395. * src/BencodeVisitor.cc
  3396. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3397. Updated po files.
  3398. * po/aria2c.pot
  3399. * po/*.po
  3400. * po/*.gmo
  3401. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3402. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3403. the number of socket to watch out.
  3404. * src/PeerInteractionCommand.cc
  3405. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3406. When there is not enough space in disk when writing a chunk of data,
  3407. aria2 now prints the message to the console to warn user and aborts
  3408. its download. Not all downloads are canceled because some downloads
  3409. may use another disk or partition. BUG#1640332
  3410. * src/AbstractDiskWriter.cc
  3411. * src/PeerAbstractCommand.cc
  3412. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3413. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3414. setHaltRequested(true) to cancel download.
  3415. * src/PeerInteractionCommand.h
  3416. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3417. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3418. socket from int to sock_t as sockets are unsigned in Windows.
  3419. For AsyncNameResolver, DownloadEngine, I did additional modification
  3420. for the portion of the code changed according to epoll support.
  3421. I defined sock_t in a2netcompat.h to use sock_t without including
  3422. SocketCore.h.
  3423. * src/AsyncNameResolver.cc
  3424. * src/AsyncNameResolver.h
  3425. * src/DownloadEngine.cc
  3426. * src/DownloadEngine.h
  3427. * src/SocketCore.cc
  3428. * src/SocketCore.h
  3429. * src/a2netcompat.h
  3430. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3432. changes in the patch were applied.
  3433. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3434. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3435. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3436. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3437. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3438. a2io.h and common.h were modified.
  3439. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3440. MinGW.
  3441. * src/common.h: Changed off_t to 64 bit in MinGW.
  3442. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3443. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3444. only a2netcompat.h is modified.
  3445. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3446. directives.
  3447. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3448. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3449. only gai_strerror.h is modified.
  3450. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3451. winsock errors in MinGW.
  3452. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3453. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3454. follow sources are applied.
  3455. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3456. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3457. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3458. I included locale.h from Platform.cc.
  3459. * src/main.cc: Moved common setup/teardown code to Platform class.
  3460. * test/AllTest.cc: Use Platform class.
  3461. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3462. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3463. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3464. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3465. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3466. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3467. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3468. aria2-0.13.2+1-mingw-2.patch.
  3469. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3470. systems which don't have termious.h. I moved the directive inside of
  3471. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3472. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3473. anyway.
  3474. * src/asctime_r.h
  3475. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3476. I added 2nd argument to the prototype declaration.
  3477. * src/StringFormat.cc: Get rid of vasprintf.
  3478. * src/getaddrinfo.h: Fixed constants.
  3479. * configure.ac: Added the check for asctime_r function.
  3480. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3481. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3482. Added writable test for Socket when the sending message is in progress.
  3483. Usually the sending message is piece message. Without wriable check,
  3484. upload latency is dropped to more than 1sec.
  3485. * src/PeerInteractionCommand.cc
  3486. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Create only requested files and files which shares a piece with
  3488. requested file in multi-torrent downloads. Directory structures are
  3489. also created in the same rule.
  3490. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3491. DiskWriterEntry as in the previous implementation.
  3492. * src/MultiDiskWriter.cc
  3493. * src/MultiFileAllocationIterator.cc
  3494. * src/MultiFileAllocationIterator.h
  3495. * test/MultiFileAllocationIteratorTest.cc
  3496. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3497. Commented out -lprofiler
  3498. * src/Makefile.am
  3499. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3500. Bump up version number to 0.14.0b.
  3501. * src/configure.ac
  3502. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3503. Actively establish connection to peers in seeding, when peer cache
  3504. is not full and max upload speed limit is not reached.
  3505. * src/ActivePeerConnectionCommand.cc
  3506. * src/ActivePeerConnectionCommand.h
  3507. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3508. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  3509. to make room more fleshy, recently found peers.
  3510. Peer::_badConditionStartTime is not used anymore. Consider to remove
  3511. it.
  3512. * src/DefaultPeerStorage.cc
  3513. * test/DefaultPeerStorageTest.cc
  3514. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3515. Returns cached data only when the previous receiveHandshake() is called
  3516. with peek = true.
  3517. * src/PeerConnection.cc (receiveHandshake)
  3518. * src/PeerConnection.h (receiveHandshake)
  3519. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3520. Changed default value of -s option from 1 to 5.
  3521. Also max value of -s option is changed from 5 to 16.
  3522. * src/HelpItemFactory.cc
  3523. * src/OptionHandlerFactory.cc
  3524. * src/option_processing.cc
  3525. * src/usage_text.h
  3526. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3527. Changed -s options behavior. Now it means the number of connections
  3528. made simultaneously in each http/ftp download.
  3529. If 1 URL is specified, the behavior is the same with old implementation.
  3530. If -s N is given and more than N URLs are specified, first N URLs are
  3531. used and remaining URLs are used for backup. If less than N URLs are
  3532. specified, some of URLs are used more than once so that totally N
  3533. connections are made simultaneously.
  3534. * src/main.cc
  3535. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3536. Included missing iosfwd or ostream header.
  3537. * src/RequestGroupMan.cc
  3538. * src/TaggedItem.cc
  3539. * src/TaggedItem.h
  3540. * src/Util.cc
  3541. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3542. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  3543. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  3544. * src/HttpConnection.cc: Included missing sstream.
  3545. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3546. Added --bt-max-open-files option.
  3547. * src/DefaultPieceStorage.cc
  3548. * src/HelpItemFactory.cc
  3549. * src/MultiDiskAdaptor.cc
  3550. * src/MultiDiskAdaptor.h
  3551. * src/OptionHandlerFactory.cc
  3552. * src/option_processing.cc
  3553. * src/prefs.cc
  3554. * src/prefs.h
  3555. * src/usage_text.h
  3556. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3557. Fixed the bug that aria2 aborts when a path to a directory is given
  3558. in command-line.
  3559. * src/ProtocolDetector.cc
  3560. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3561. Limited the number files opened in each BitTorrent download. The default
  3562. value is 100. The option to change this value will be added.
  3563. * src/MultiDiskAdaptor.cc
  3564. * src/MultiDiskAdaptor.h
  3565. * src/MultiFileAllocationIterator.cc
  3566. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3567. Fixed the bug that HTTP downloads don't start with old libraries.
  3568. * src/HttpHeaderProcessor.cc
  3569. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3570. Use empty() instead of size() > 0.
  3571. * src/HttpConnection.cc
  3572. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3573. Drop connection if the incoming peer ID is the same with localhost's
  3574. one. The previous implementation drops connection when incoming peer's
  3575. IP address is the same with localhost's one.
  3576. * src/PeerListenCommand.cc
  3577. * src/DefaultBtInteractive.cc
  3578. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Returns cached data without checking whether socket is readable
  3580. if the cache is available.
  3581. * src/PeerConnection.cc (receiveHandshake)
  3582. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3583. Included stdint.h
  3584. * src/common.h
  3585. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3586. Removed duplicate HAVE_GETTIMEOFDAY
  3587. * src/Makefile.am
  3588. * src/Makefile.in
  3589. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3590. Use interval as a minInterval when minInterval is not supplied.
  3591. * src/DefaultBtAnnounce.cc
  3592. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3593. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  3594. attempt is failed, then 2nd attempt get kicked out more quickly.
  3595. And it is now static const member of DefaultBtAnnounce.
  3596. * src/DefaultBtAnnounce.h
  3597. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  3599. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  3600. * src/ActivePeerConnectionCommand.cc
  3601. * src/BtConstants.h
  3602. * src/BtRuntime.h
  3603. * src/DHTGetPeersCommand.cc
  3604. * src/DefaultBtAnnounce.cc
  3605. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  3606. BtRuntime::MAX_PEERS.
  3607. * src/DefaultPeerStorage.h
  3608. * src/InitiatorMSEHandshakeCommand.cc
  3609. * src/PeerInitiateConnectionCommand.cc
  3610. * src/PeerInteractionCommand.cc
  3611. * src/PeerReceiveHandshakeCommand.cc
  3612. * src/TrackerWatcherCommand.cc
  3613. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3614. Always Connect to _numNewConnection
  3615. * src/ActivePeerConnectionCommand.cc
  3616. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3617. Made `begin' unsigned int.
  3618. * src/GrowSegment.h
  3619. * src/Piece.cc
  3620. * src/Piece.h
  3621. * src/PiecedSegment.cc
  3622. * src/PiecedSegment.h
  3623. * src/Segment.h
  3624. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3625. Calculate piece hash when data is arrived if the data is arrived in
  3626. order. This removes additional read operation for hash calculation.
  3627. If the data is arrived in out of order, the hash is calucated when the
  3628. piece is completed. This is the same behavior as the old implementation.
  3629. * src/BtPieceMessage.cc
  3630. * src/DefaultBtProgressInfoFile.cc
  3631. * src/DefaultPieceStorage.cc
  3632. * src/DownloadCommand.cc
  3633. * src/DownloadCommand.h
  3634. * src/DownloadEngine.cc
  3635. * src/GrowSegment.cc
  3636. * src/GrowSegment.h
  3637. * src/Piece.cc
  3638. * src/Piece.h
  3639. * src/PiecedSegment.cc
  3640. * src/PiecedSegment.h
  3641. * src/Segment.h
  3642. * test/PieceTest.cc
  3643. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3644. Try to keep the ordering of outgoing piece message.
  3645. * src/DefaultBtMessageDispatcher.cc
  3646. (DefaultBtMessageDispatcher::sendMessages)
  3647. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3648. Fixed busy loop when error/hup epoll events occur.
  3649. * src/AbstractCommand.cc
  3650. * src/PeerAbstractCommand.cc
  3651. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3652. Added --bt-request-peer-speed-limit option, which was a constant
  3653. SLOW_SPEED_THRESHOLD.
  3654. * src/ActivePeerConnectionCommand.cc
  3655. * src/ActivePeerConnectionCommand.h
  3656. * src/BtConstants.h
  3657. * src/HelpItemFactory.cc
  3658. * src/OptionHandlerFactory.cc
  3659. * src/PeerReceiveHandshakeCommand.cc
  3660. * src/option_processing.cc
  3661. * src/prefs.cc
  3662. * src/prefs.h
  3663. * src/usage_text.h
  3664. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3665. Removed repeated call of getTopDirPath(). Instead, call it once and
  3666. cache the result.
  3667. * src/MultiDiskAdaptor.cc
  3668. * src/MultiDiskAdaptor.h
  3669. (mkdir, openFile, initAndOpenFile, openExistingFile)
  3670. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3671. Fixed compile error on debian etch.
  3672. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  3673. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  3674. it is undefined.
  3675. * src/Util.cc (ULLONG_MAX)
  3676. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3677. Added epoll support. Use epoll if it is available. If not, use select.
  3678. When async dns is enabled in compile time, epoll support is enabled
  3679. only when aria2 is built with c-ares. This condition statement is
  3680. defined in a2io.h.
  3681. Currently aria2 supports both c-ares and ares, but ares is maintained
  3682. for quite a while and debian already has c-ares package, ares support
  3683. will be dropped in the future version.
  3684. * configure.ac
  3685. * src/AbstractCommand.cc
  3686. * src/AsyncNameResolver.cc
  3687. * src/AsyncNameResolver.h
  3688. * src/Command.cc
  3689. * src/Command.h
  3690. * src/DownloadEngine.cc
  3691. * src/DownloadEngine.h
  3692. * src/PeerAbstractCommand.cc
  3693. * src/SocketCore.cc
  3694. * src/SocketCore.h
  3695. * src/a2io.h
  3696. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3697. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  3698. directive.
  3699. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3700. Do not do write operation to /dev/null file.
  3701. * src/LogFactory.cc
  3702. * src/SimpleLogger.cc
  3703. Replaced vasprintf with vsnprintf
  3704. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3705. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3706. * src/BtRequestMessage.cc
  3707. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  3708. for segmentation fault caused by previous commit.
  3709. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3710. Reduced the usage of gettimeofday().
  3711. * src/DefaultBtMessageDispatcher.cc
  3712. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  3713. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3714. * src/RequestSlot.cc
  3715. * src/RequestSlot.h
  3716. (RequestSlot::isTimeout)
  3717. Made RequestSlot have a reference to Piece object to avoid find
  3718. Piece repeatedly.
  3719. * src/DefaultBtMessageDispatcher.cc
  3720. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3721. * src/RequestSlot.cc
  3722. * src/RequestSlot.h
  3723. (RequestSlot::getPiece)
  3724. * test/DefaultBtMessageDispatcherTest.cc
  3725. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3726. * src/TimeA2.cc
  3727. * src/TimeA2.h
  3728. (Time::difference): New function.
  3729. (Time::elapsed): Done optimization.
  3730. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3731. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  3732. directive.
  3733. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3734. * src/option_processing.cc: Added missing `defined' keyword to #if
  3735. directive.
  3736. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3737. Bump up version number to 0.13.2+1
  3738. * src/configure.ac
  3739. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3740. Refactored broken outstanding piece handling.
  3741. * src/DefaultPieceStorage.cc
  3742. * src/DefaultPieceStorage.h
  3743. * src/Piece.cc
  3744. * src/Piece.h
  3745. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3746. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  3747. name collision of static variable and predefined macro.
  3748. * src/BtContext.cc
  3749. * src/BtContext.h
  3750. * src/CookieBoxFactory.cc
  3751. * src/CookieBoxFactory.h
  3752. * src/CookieParser.cc
  3753. * src/CookieParser.h
  3754. * src/DefaultBtContext.cc
  3755. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3756. * src/RequestGroup.cc
  3757. (RequestGroup::createInitialCommand): Use empty() instead of size().
  3758. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3759. * Release 0.13.2
  3760. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3761. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  3762. * po/fr.po
  3763. * po/ja.po
  3764. * po/aria2c.pot
  3765. * po/*.po
  3766. * po/*.gmo
  3767. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3768. Bump up version number to 0.13.2
  3769. * src/configure.ac
  3770. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3771. Refactord.
  3772. * src/RequestGroupMan.cc
  3773. (removeStoppedGroup)
  3774. (fillRequestGroupFromReserver)
  3775. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. Fixed compile error on Ubuntu.
  3777. * src/BtPieceMessage.cc
  3778. * src/MessageDigestHelper.cc
  3779. * src/Util.cc
  3780. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3781. Fixed compile error when configured with --disable-bittorrent
  3782. * test/DownloadHandlerFactoryTest.cc
  3783. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3784. Done make update-po
  3785. * po/aria2c.pot
  3786. * po/*.po
  3787. * po/*.gmo
  3788. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3789. Bump up version number to 0.13.2rc.
  3790. * src/configure.ac
  3791. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3792. Made option name bold. Updated SYNOPSIS to make it more readable.
  3793. * doc/aria2c.1.txt
  3794. * doc/aria2c.1
  3795. * doc/aria2c.1.html
  3796. * src/version_usage.cc
  3797. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3798. Refactored. Use std::string instead of size and char*.
  3799. * Data.cc
  3800. * Data.h
  3801. * test/Data.cc
  3802. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3803. Added trimSelf(). Rewritten trim() to use trimSelf().
  3804. * Util.cc
  3805. * Util.h
  3806. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3807. * src/ChunkChecksum.h (getChecksum): Return const reference.
  3808. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3809. Fixed compile error when configured with --disable-metalink.
  3810. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  3811. * test/FeatureConfigTest.cc
  3812. * test/DownloadHandlerFactoryTest.cc
  3813. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3814. Fixed compile error when configured with --without-gnutls
  3815. --without-openssl
  3816. * src/main.cc
  3817. * test/DefaultBtProgressInfoFileTest.cc
  3818. * test/SegmentManTest.cc
  3819. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3820. Fixed compile error with OpenSSL.
  3821. * src/IteratableChunkChecksumValidator.cc
  3822. * src/LibsslDHKeyExchange.h
  3823. * src/MessageDigestHelper.cc
  3824. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. Revert the default value of --max-concurrent-downloads to 5.
  3826. Revert the default value of --metalink-servers to 5.
  3827. Man pages was also updated.
  3828. * src/option_processing.cc
  3829. * doc/aria2c.1.txt
  3830. * doc/aria2c.1.html
  3831. * doc/aria2c.1
  3832. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Returns const reference:
  3834. DownloadContext::getPieceHash, DownloadContext::getName,
  3835. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  3836. BtContext::getInfoHashAsString,
  3837. * src/BtContext.h
  3838. * src/DefaultBtContext.cc
  3839. * src/DefaultBtContext.h
  3840. * src/DownloadContext.h
  3841. * src/SingleFileDownloadContext.h
  3842. * test/MockBtContext.h
  3843. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3844. * src/RequestGroup.h (getDir): Removed.
  3845. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3846. Returns const reference. The internal urlencode function was optimized
  3847. a little bit.
  3848. * src/Request.cc
  3849. * src/Request.h
  3850. * src/HttpRequest.cc
  3851. * src/HttpRequest.h
  3852. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3853. Defined option name and possible values as std::string to reduce
  3854. temporary string object creation in runtime.
  3855. * src/HelpItemFactory.cc
  3856. * src/LogFactory.cc
  3857. * src/Option.cc
  3858. * src/OptionHandlerFactory.cc
  3859. * src/option_processing.cc
  3860. * src/prefs.cc
  3861. * src/prefs.h
  3862. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3863. Return const reference.
  3864. * src/DownloadHandlerConstants.cc
  3865. * src/DownloadHandlerConstants.h
  3866. (getMetalinkExtensions)
  3867. (getMetalinkContentTypes)
  3868. (getBtExtensions)
  3869. (getBtContentTypes)
  3870. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. * src/HttpHeader.cc (get): Rewritten.
  3872. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3873. Make HttpHeader::getFirst(...) return const reference.
  3874. * src/HttpHeader.cc
  3875. * src/HttpHeader.h
  3876. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3877. Use Option::getAsBool(...) instead of Option::get(...) and compare
  3878. it with V_TRUE.
  3879. * src/DefaultPieceStorage.cc
  3880. * src/DownloadCommand.cc
  3881. * src/FtpNegotiationCommand.cc
  3882. * src/HttpRequest.cc
  3883. * src/InitiateConnectionCommand.cc
  3884. * src/RequestGroup.cc
  3885. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3886. Made Option::get(...) return const reference of std::string.
  3887. * src/Option.cc
  3888. * src/Option.h
  3889. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3890. Replaced std:copy with insert.
  3891. * src/DefaultBtMessageDispatcher.cc
  3892. * src/DefaultPieceStorage.cc
  3893. * src/DownloadEngineFactory.cc
  3894. * src/RequestGroup.cc
  3895. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3896. Included SocketCore.h to fix compiler warning.
  3897. * src/InitiateConnectionCommand.cc
  3898. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3899. Put piece selection strategy algorithm to RarestPieceSelector class,
  3900. Added a switch to choose whether randomized selection so that unit
  3901. tests emit same results in, possibly, win32.
  3902. * src/DefaultPieceStorage.cc
  3903. * src/DefaultPieceStorage.h
  3904. * src/RarestPieceSelector.cc
  3905. * src/RarestPieceSelector.h
  3906. * test/DefaultPieceStorageTest.cc
  3907. * test/RarestPieceSelectorTest.cc
  3908. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3909. Don't pool connection if HTTP proxy is enabled.
  3910. * src/FtpFinishDownloadCommand.cc
  3911. * src/FtpNegotiationCommand.cc
  3912. * src/HttpSkipResponseCommand.cc
  3913. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3914. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  3915. * src/AbstractCommand.cc
  3916. * src/AbstractCommand.h
  3917. * src/ActivePeerConnectionCommand.cc
  3918. * src/FtpInitiateConnectionCommand.cc
  3919. * src/HttpInitiateConnectionCommand.cc
  3920. * src/InitiateConnectionCommandFactory.cc
  3921. * src/PeerAbstractCommand.cc
  3922. * src/PeerAbstractCommand.h
  3923. * src/PeerInitiateConnectionCommand.cc
  3924. * src/TrackerWatcherCommand.cc
  3925. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3926. Sort RequestSlot in ascending order and manipulate them using
  3927. lower_bound.
  3928. * src/DefaultBtMessageDispatcher.cc
  3929. * src/DefaultBtMessageDispatcher.h
  3930. (getMessageQueue): Added const qualifier.
  3931. (getRequestSlots): Added const qualifier.
  3932. (sendMessages): Use empty() instead of size().
  3933. (doCancelSendingPieceAction): Use HandleEvent object.
  3934. (doAbortOutstandingRequestAction): Rewritten.
  3935. (doChokedAction): Rewritten.
  3936. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  3937. (isOutstandingRequest): Rewritten.
  3938. (getOutstandingRequest): Rewritten.
  3939. (removeOutstandingRequest): Rewritten.
  3940. (addOutstandingRequest): Rewritten.
  3941. * src/RequestSlot.cc
  3942. * src/RequestSlot.h
  3943. (operator=): Rewritten.
  3944. (operator!=): New function.
  3945. (operator<): New function.
  3946. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3947. * src/DefaultBtRequestFactory.cc
  3948. (doChokedAction): Rewritten.
  3949. (removeCompletedPiece): Rewritten.
  3950. (removeTargetPiece): Rewritten.
  3951. (createRequestMessages): Added the debug log.
  3952. (createRequestMessagesOnEndGame: Added the debug log.
  3953. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3954. Added the debug log message.
  3955. * src/BtPieceMessage.cc (doReceivedAction)
  3956. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3957. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  3958. used lower_bound to process them rather than linear search.
  3959. * src/DHTPeerAnnounceStorage.cc
  3960. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Call subtractPieceStats from ~PeerInteractionCommand only when the
  3962. peer has at least one completed piece.
  3963. * src/Peer.cc
  3964. * src/Peer.h
  3965. * src/PeerInteractionCommand.cc
  3966. * src/PeerSessionResource.cc
  3967. * src/PeerSessionResource.h
  3968. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3969. Removed unnecessary sorting
  3970. * src/DefaultPieceStorage (DefaultPieceStorage)
  3971. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3972. Rewritten the portion of the code that mangaes allowed fast indexes.
  3973. * src/PeerSessionResource.cc
  3974. * src/PeerSessionResource.h
  3975. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3976. Removed the invalid string including '\r' from ru.po and
  3977. did make update-po.
  3978. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3979. Added --log-level and --summary-interval to man page.
  3980. * doc/aria2c.1.txt
  3981. * doc/aria2c.1.html
  3982. * doc/aria2c.1
  3983. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3984. Added --log-level option to specify log level. Log messages under
  3985. the specified level are not output. Default value is `debug'.
  3986. * src/HelpItemFactory.cc
  3987. * src/LogFactory.cc
  3988. * src/LogFactory.h
  3989. * src/Logger.h
  3990. * src/OptionHandlerFactory.cc
  3991. * src/SimpleLogger.cc
  3992. * src/SimpleLogger.h
  3993. * src/main.cc
  3994. * src/option_processing.cc
  3995. * src/prefs.h
  3996. * src/usage_text.h
  3997. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3998. Print download progress summary of all parallel downloads in specified
  3999. interval, default 60 secs. While aria2 could download several files
  4000. in parallel (see -j option), it displayed just first download progress,
  4001. and the other downloads are hidden from the users. This new feature
  4002. prints all downloads currently in-progress to the console so that you
  4003. can check the status of all downloads. The interval can be adjusted
  4004. by --summary-interval option.
  4005. The progress readout is now cut so that all fits in the one line of
  4006. console.
  4007. * src/ConsoleStatCalc.cc
  4008. * src/ConsoleStatCalc.h
  4009. * src/HelpItemFactory.cc
  4010. * src/OptionHandlerFactory.cc
  4011. * src/RequestGroupMan.cc
  4012. * src/RequestGroupMan.h
  4013. * src/main.cc
  4014. * src/option_processing.cc
  4015. * src/prefs.h
  4016. * src/usage_text.h
  4017. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4019. * src/DownloadEngine.cc (DownloadEngine)
  4020. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4021. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4022. defined.
  4023. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4024. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4025. Use erase+lower_bound+insert instead of sort.
  4026. * src/DefaultPieceStorage.cc (addPieceStats)
  4027. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4028. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  4029. * src/A2STR.cc
  4030. * src/A2STR.h
  4031. * src/OptionParser.cc (parse)
  4032. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4033. Defined fake filename `[tracker.announce]' as static const std::string.
  4034. * src/TrackerWatcherCommand.cc (createRequestGroup)
  4035. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4036. Defined default filename `index.html' as static const std::string
  4037. * src/SingleFileDownloadContext.cc
  4038. * src/SingleFileDownloadContext.h
  4039. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4040. Defined "[MEMORY]" as static const std::string.
  4041. * src/MemoryBufferPreDownloadHandler.cc (execute)
  4042. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4043. Defined control file's version number as static const std::string.
  4044. * src/DefaultBtProgressInfoFile.cc
  4045. * src/DefaultBtProgressInfoFile.h
  4046. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4047. Use Request::METHOD_GET
  4048. * src/RequestGroup.cc (createNextCommandWithAdj)
  4049. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Defined "OK", "ERR", "INPR" as static const std::string
  4051. * src/RequestGroupMan.cc (showDownloadResults)
  4052. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4053. Defined default client used in extended handshake as static const
  4054. std::string
  4055. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  4056. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  4058. * src/HttpConnection.cc (eraseConfidentialInfo)
  4059. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4060. Defined default ftp user and password as static const std::string
  4061. * src/AuthConfigFactory.cc
  4062. * src/AuthConfigFactory.h
  4063. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4064. Defined strings used in netrc as static const std::string
  4065. * src/Netrc.cc
  4066. * src/Netrc.h
  4067. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4068. Defined HTTP status as static const std::string
  4069. * src/AbstractProxyResponseCommand.cc
  4070. * src/HttpHeader.cc
  4071. * src/HttpHeader.h
  4072. * src/HttpResponse.cc
  4073. * src/HttpResponseCommand.cc
  4074. * src/HttpSkipResponseCommand.cc
  4075. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4076. Defined "\r\n", "A", "I" as static const std::string
  4077. * src/A2STR.cc
  4078. * src/A2STR.h
  4079. * src/FtpConnection.cc
  4080. * src/FtpConnection.h
  4081. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4082. Added COLON_C(".") and used it in Request::parseUrl()
  4083. * src/A2STR.cc
  4084. * src/A2STR.h
  4085. * src/Request.cc (parseUrl)
  4086. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4087. Changed the type of padName from `const std::string&' to `const char*'.
  4088. * src/MSEHandshake.cc (verifyPadLength)
  4089. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4090. Defined "sha1" as static const std::string.
  4091. * src/MetalinkParserController.cc
  4092. * src/MetalinkParserController.h
  4093. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4094. Defined message digest algorithm name as static const std::string
  4095. * src/DHTTokenTracker.cc
  4096. * src/DHTUtil.cc
  4097. * src/DefaultBtContext.cc
  4098. * src/MSEHandshake.cc
  4099. * src/MessageDigestHelper.cc
  4100. * src/Peer.cc
  4101. * src/messageDigest.cc
  4102. * src/messageDigest.h
  4103. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4104. Made string literals used in SAX parser static const std::string.
  4105. * src/FileMetalinkParserState.cc
  4106. * src/FileMetalinkParserState.h
  4107. * src/FilesMetalinkParserState.cc
  4108. * src/FilesMetalinkParserState.h
  4109. * src/InitialMetalinkParserState.cc
  4110. * src/InitialMetalinkParserState.h
  4111. * src/MetalinkMetalinkParserState.cc
  4112. * src/MetalinkMetalinkParserState.h
  4113. * src/PiecesMetalinkParserState.cc
  4114. * src/PiecesMetalinkParserState.h
  4115. * src/ResourcesMetalinkParserState.cc
  4116. * src/ResourcesMetalinkParserState.h
  4117. * src/VerificationMetalinkParserState.cc
  4118. * src/VerificationMetalinkParserState.h
  4119. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4120. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4121. * src/A2STR.cc
  4122. * src/A2STR.h
  4123. * src/File.cc
  4124. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4125. Defined static const std::string IP("ip"), PORT("port") and use them
  4126. instead of string literals.
  4127. * src/DefaultPeerListProcessor.cc
  4128. * src/DefaultPeerListProcessor.h
  4129. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4130. Made string literals for torrent file processing static const
  4131. std::string.
  4132. * src/BtContext.cc
  4133. * src/BtContext.h
  4134. * src/DefaultBtContext.cc
  4135. * src/DefaultBtContext.h
  4136. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4137. Made string literal for tracker response static const std::string
  4138. * src/BtAnnounce.cc
  4139. * src/BtAnnounce.h
  4140. * src/DefaultBtAnnounce.cc
  4141. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4142. Use DHTMessage::T instead of "t".
  4143. * src/DHTMessageTracker.cc (messageArrived)
  4144. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4145. Made keyName static const. Made trimmed charset static const
  4146. std::string.
  4147. * src/Util.cc (getContentDispositionFilename)
  4148. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4149. Made USER_AGENT const. Made "/" static const std::string.
  4150. * src/A2STR.cc
  4151. * src/A2STR.h
  4152. * src/HttpRequest.cc
  4153. * src/HttpRequest.h
  4154. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4155. Made string listeral to static const std::string:
  4156. "Content-Range", "Content-Length"
  4157. * src/HttpHeader.cc
  4158. * src/HttpHeader.h
  4159. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4160. Made string listeral to static const std::string.
  4161. * src/HttpConnection.cc
  4162. * src/HttpHeader.cc
  4163. * src/HttpHeader.h
  4164. * src/HttpResponse.cc
  4165. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4166. Made string listeral to static const std::string.
  4167. * src/A2STR.cc
  4168. * src/A2STR.h
  4169. * src/SimpleLogger.cc
  4170. * src/SimpleLogger.h
  4171. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4172. Made string literal to static const std::string.
  4173. Rewritten CookieParser::setField.
  4174. * src/A2STR.cc
  4175. * src/A2STR.h
  4176. * src/CookieBoxFactory.cc
  4177. * src/CookieBoxFactory.h
  4178. * src/CookieParser.cc
  4179. * src/CookieParser.h
  4180. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4181. Made string literal to static const std::string
  4182. * src/DHTAbstractMessage.cc
  4183. * src/DHTAnnouncePeerMessage.cc
  4184. * src/DHTAnnouncePeerMessage.h
  4185. * src/DHTAnnouncePeerReplyMessage.cc
  4186. * src/DHTAnnouncePeerReplyMessage.h
  4187. * src/DHTFindNodeMessage.cc
  4188. * src/DHTFindNodeMessage.h
  4189. * src/DHTFindNodeReplyMessage.cc
  4190. * src/DHTFindNodeReplyMessage.h
  4191. * src/DHTGetPeersMessage.cc
  4192. * src/DHTGetPeersMessage.h
  4193. * src/DHTGetPeersReplyMessage.cc
  4194. * src/DHTGetPeersReplyMessage.h
  4195. * src/DHTMessage.cc
  4196. * src/DHTMessage.h
  4197. * src/DHTMessageFactoryImpl.cc
  4198. * src/DHTMessageReceiver.cc
  4199. * src/DHTPingMessage.cc
  4200. * src/DHTPingMessage.h
  4201. * src/DHTPingReplyMessage.cc
  4202. * src/DHTPingReplyMessage.h
  4203. * src/DHTQueryMessage.cc
  4204. * src/DHTQueryMessage.h
  4205. * src/DHTResponseMessage.cc
  4206. * src/DHTResponseMessage.h
  4207. * src/DHTUnknownMessage.cc
  4208. * src/DHTUnknownMessage.h
  4209. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4210. Made string literal to static const std::string
  4211. * src/BtChokeMessage.cc (toString)
  4212. * src/BtHaveAllMessage.cc (toString)
  4213. * src/BtHaveNoneMessage.cc (toString)
  4214. * src/BtInterestedMessage.cc (toString)
  4215. * src/BtNotInterestedMessage.cc (toString)
  4216. * src/BtUnchokeMessage.cc (toString)
  4217. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4218. Replaced "" with static const variable A2STR::NIL.
  4219. Replaced string comparison against "" with std::string::empty().
  4220. Added PROTO_* to Request class and use them as a protocol string
  4221. constant.
  4222. Made "started", "stopped", "completed" static const variable in
  4223. AnnounceList class.
  4224. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4225. Updated translations. Great thanks to translators.
  4226. * po/ca.po
  4227. * po/de.po
  4228. * po/fr.po
  4229. * po/it.po
  4230. * po/ja.po
  4231. * po/ru.po
  4232. * po/zh_CN.po
  4233. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4234. Updated man page; categorized options and fixed typo.
  4235. * doc/aria2c.1.txt
  4236. * doc/aria2c.1.html
  4237. * doc/aria2c.1
  4238. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4239. Removed const ref
  4240. * src/MetalinkEntry.cc (AddProtocolPreference)
  4241. * src/RequestGroup.cc (FindServerHostByHostname)
  4242. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4243. Rewritten Accept-Features handling.
  4244. * src/HttpRequestCommand.cc (createHttpRequest)
  4245. * src/a2functional.h
  4246. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4247. Changed method signature:
  4248. DHTAbstractNodeLookupTask::toEntries
  4249. * src/DHTAbstractNodeLookupTask.cc
  4250. * src/DHTAbstractNodeLookupTask.h
  4251. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4252. Changed method signature:
  4253. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4254. * src/BtContext.h
  4255. * src/DefaultBtContext.cc
  4256. * src/DefaultBtContext.h
  4257. * src/DefaultBtInteractive.cc
  4258. * test/DefaultBtContextTest.cc
  4259. * test/MockBtContext.h
  4260. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4261. Changed method signature:
  4262. MultiFileAllocationIterator::makeDiskWriterEntries
  4263. * src/MultiFileAllocationIterator.cc
  4264. * src/MultiFileAllocationIterator.h
  4265. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4266. Changed method sinature:
  4267. MetalinkEntry::toFileEntry,
  4268. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4269. Metalinker::queryEntry
  4270. * src/Metalink2RequestGroup.cc
  4271. * src/MetalinkEntry.cc
  4272. * src/MetalinkEntry.h
  4273. * src/MetalinkHelper.cc
  4274. * src/MetalinkHelper.h
  4275. * src/Metalinker.cc
  4276. * src/Metalinker.h
  4277. * src/main.cc
  4278. * test/MetalinkHelperTest.cc
  4279. * test/MetalinkerTest.cc
  4280. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4281. Changed method sinature:
  4282. RequestGroup::getURIs
  4283. * src/RequestGroup.cc
  4284. * src/RequestGroup.h
  4285. * test/Metalink2RequestGroupTest.cc
  4286. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4287. Changed method signature:
  4288. PeerListProcessor::extractPeer
  4289. * src/CompactPeerListProcessor.cc
  4290. * src/CompactPeerListProcessor.h
  4291. * src/DefaultBtAnnounce.cc
  4292. * src/DefaultPeerListProcessor.cc
  4293. * src/DefaultPeerListProcessor.h
  4294. * src/DelegatingPeerListProcessor.cc
  4295. * src/DelegatingPeerListProcessor.h
  4296. * src/PeerListProcessor.h
  4297. * src/UTPexExtensionMessage.cc
  4298. * test/DefaultPeerListProcessorTest.cc
  4299. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4300. Changed method signature:
  4301. BtRequestFactory::createRequestMessages,
  4302. BtRequestFactory::createRequestMessagesOnEndGame
  4303. * src/BtRequestFactory.h
  4304. * src/DefaultBtInteractive.cc
  4305. * src/DefaultBtRequestFactory.cc
  4306. * src/DefaultBtRequestFactory.h
  4307. * test/DefaultBtRequestFactoryTest.cc
  4308. * test/MockBtRequestFactory.h
  4309. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4310. Changed method signature:
  4311. PieceStorage::getInFlightPieces
  4312. * src/DefaultBtProgressInfoFile.cc
  4313. * src/DefaultPieceStorage.cc
  4314. * src/DefaultPieceStorage.h
  4315. * src/PieceStorage.h
  4316. * src/UnknownLengthPieceStorage.cc
  4317. * src/UnknownLengthPieceStorage.h
  4318. * test/DefaultBtProgressInfoFileTest.cc
  4319. * test/MockPieceStorage.h
  4320. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Changed method signature:
  4322. PostDownloadHandler::getNextRequestGroups
  4323. Metalink2RequestGroup::generate
  4324. RequestGroup::postDownloadProcessing
  4325. * src/BtPostDownloadHandler.cc
  4326. * src/BtPostDownloadHandler.h
  4327. * src/Metalink2RequestGroup.cc
  4328. * src/Metalink2RequestGroup.h
  4329. * src/MetalinkPostDownloadHandler.cc
  4330. * src/MetalinkPostDownloadHandler.h
  4331. * src/PostDownloadHandler.h
  4332. * src/RequestGroup.cc
  4333. * src/RequestGroup.h
  4334. * src/RequestGroupMan.cc
  4335. * src/main.cc
  4336. * test/BtPostDownloadHandlerTest.cc
  4337. * test/Metalink2RequestGroupTest.cc
  4338. * test/MetalinkPostDownloadHandlerTest.cc
  4339. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4340. Rewritten AccRequestGroup
  4341. * src/main.cc
  4342. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4343. Rewritten.
  4344. * src/TaggedItem.cc (toTagString)
  4345. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4346. Rewritten Accept-Features handling.
  4347. * src/HttpRequestCommand.cc (createHttpRequest)
  4348. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4349. Rewritten accept types handling.
  4350. * HttpRequest.cc (createRequest)
  4351. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4352. Rewritten
  4353. * src/FeatureConfig.cc (featureSummary)
  4354. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4355. Changed method signature:
  4356. PeerStorage::getActivePeers
  4357. * src/DHTPeerAnnounceEntry.cc
  4358. * src/DefaultPeerStorage.cc
  4359. * src/DefaultPeerStorage.h
  4360. * src/PeerStorage.h
  4361. * test/DefaultPeerStorageTest.cc
  4362. * test/MockPeerStorage.h
  4363. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. Changed method signature:
  4365. DHTPeerAnnounceStorage::getPeers,
  4366. DHTPeerAnnounceEntry::getPeers
  4367. * src/DHTGetPeersMessage.cc
  4368. * src/DHTPeerAnnounceEntry.cc
  4369. * src/DHTPeerAnnounceEntry.h
  4370. * src/DHTPeerAnnounceStorage.cc
  4371. * src/DHTPeerAnnounceStorage.h
  4372. * test/DHTAnnouncePeerMessageTest.cc
  4373. * test/DHTPeerAnnounceEntryTest.cc
  4374. * test/DHTPeerAnnounceStorageTest.cc
  4375. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4376. Changed method signature:
  4377. NameResolver::resolve
  4378. * src/DHTEntryPointNameResolveCommand.cc
  4379. * src/InitiateConnectionCommand.cc
  4380. * src/NameResolver.cc
  4381. * src/NameResolver.h
  4382. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4383. Changed method signature:
  4384. PieceStorage::getAdvertisedPieceIndexes
  4385. * src/DefaultBtInteractive.cc
  4386. * src/DefaultPieceStorage.cc
  4387. * src/DefaultPieceStorage.h
  4388. * src/PieceStorage.h
  4389. * src/UnknownLengthPieceStorage.h
  4390. * test/MockPieceStorage.h
  4391. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4392. Changed method signature:
  4393. SegmentMan::getInFlightSegment
  4394. * src/AbstractCommand.cc
  4395. * src/SegmentMan.cc
  4396. * src/SegmentMan.h
  4397. * test/SegmentManTest.cc
  4398. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4399. Changed method signature:
  4400. DHTAbstractNodeLookupTask::getNodesFromMessage
  4401. * src/DHTAbstractNodeLookupTask.cc
  4402. * src/DHTAbstractNodeLookupTask.h
  4403. * src/DHTNodeLookupTask.cc
  4404. * src/DHTNodeLookupTask.h
  4405. * src/DHTPeerLookupTask.cc
  4406. * src/DHTPeerLookupTask.h
  4407. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4408. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4409. * src/AbstractCommand.cc
  4410. * src/BtCheckIntegrityEntry.cc
  4411. * src/BtCheckIntegrityEntry.h
  4412. * src/BtFileAllocationEntry.cc
  4413. * src/BtFileAllocationEntry.h
  4414. * src/BtSetup.cc
  4415. * src/BtSetup.h
  4416. * src/CheckIntegrityCommand.cc
  4417. * src/CheckIntegrityEntry.h
  4418. * src/ChecksumCheckIntegrityEntry.cc
  4419. * src/ChecksumCheckIntegrityEntry.h
  4420. * src/DHTSetup.cc
  4421. * src/DHTSetup.h
  4422. * src/DownloadEngine.cc
  4423. * src/FileAllocationCommand.cc
  4424. * src/FileAllocationEntry.h
  4425. * src/RequestGroup.cc
  4426. * src/RequestGroup.h
  4427. * src/RequestGroupMan.cc
  4428. * src/RequestGroupMan.h
  4429. * src/StreamCheckIntegrityEntry.cc
  4430. * src/StreamCheckIntegrityEntry.h
  4431. * src/StreamFileAllocationEntry.cc
  4432. * src/StreamFileAllocationEntry.h
  4433. * src/TrackerWatcherCommand.cc
  4434. * src/a2functional.h
  4435. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4436. Changed method signature:
  4437. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4438. DHTBucket::getGoodNodes,
  4439. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4440. * src/BNode.cc
  4441. * src/BNode.h
  4442. * src/DHTAbstractNodeLookupTask.cc
  4443. * src/DHTAutoSaveCommand.cc
  4444. * src/DHTBucket.cc
  4445. * src/DHTBucket.h
  4446. * src/DHTBucketRefreshTask.cc
  4447. * src/DHTFindNodeMessage.cc
  4448. * src/DHTGetPeersMessage.cc
  4449. * src/DHTRoutingTable.cc
  4450. * src/DHTRoutingTable.h
  4451. * test/BNodeTest.cc
  4452. * test/DHTBucketTest.cc
  4453. * test/DHTRoutingTableTest.cc
  4454. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. In piece selection functions, Pass std::deque<...> by reference rather
  4456. than returning it.
  4457. * src/BitfieldMan.cc
  4458. * src/BitfieldMan.h
  4459. * src/DefaultBtRequestFactory.cc
  4460. * src/DefaultPieceStorage.cc
  4461. * src/Piece.cc
  4462. * src/Piece.h
  4463. * test/BitfieldManTest.cc
  4464. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4465. Implemented rarest piece first piece selection strategy.
  4466. * src/AbstractBtMessage.cc
  4467. * src/AbstractBtMessage.h
  4468. * src/BitfieldMan.cc
  4469. * src/BitfieldMan.h
  4470. * src/BtBitfieldMessage.cc
  4471. * src/BtHaveAllMessage.cc
  4472. * src/BtHaveMessage.cc
  4473. * src/DefaultPieceStorage.cc
  4474. * src/DefaultPieceStorage.h
  4475. * src/PeerInteractionCommand.cc
  4476. * src/PieceStorage.h
  4477. * src/UnknownLengthPieceStorage.h
  4478. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4479. Rewritten readData and writeData.
  4480. * src/MultiDiskAdaptor.cc
  4481. * src/MultiDiskAdaptor.h
  4482. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4483. Move \n out of the message "Usage: ...".
  4484. * src/version_usage.cc
  4485. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4486. Bump up version number to 0.13.2b.
  4487. * configure.ac
  4488. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Added const qualifier to argument Exception& e.
  4490. * src/Logger.h
  4491. * src/SimpleLogger.cc
  4492. * src/SimpleLogger.h
  4493. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Pool connection when CWD, SIZE command fails.
  4495. * src/FtpNegotiationCommand.cc
  4496. * src/FtpNegotiationCommand.h
  4497. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4498. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4499. * src/HttpResponseCommand.cc
  4500. * src/HttpSkipResponseCommand.cc
  4501. * src/HttpSkipResponseCommand.h
  4502. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Pool connection when a server returns 4xx, 5xx responses.
  4504. * src/HttpNullDownloadCommand.cc
  4505. * src/HttpNullDownloadCommand.h
  4506. * src/HttpResponse.cc
  4507. * src/HttpResponse.h
  4508. * src/HttpResponseCommand.cc
  4509. * src/HttpResponseCommand.h
  4510. * test/HttpResponseTest.cc
  4511. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4512. Print usage when no URL is specifed or bad command-line option is
  4513. specified.
  4514. * src/HelpItemFactory.cc
  4515. * src/help_tags.h
  4516. * src/option_processing.cc
  4517. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4518. Removed duplicate log message.
  4519. * src/AbstractCommand.cc (asyncResolveHostname)
  4520. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4521. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4522. Changed -j option's default value from 5 to 1.
  4523. Added new examples using protocol auto detection feature.
  4524. Removed -T, -M usage where it can be omitted.
  4525. * doc/aria2c.1.txt
  4526. * doc/aria2c.1.html
  4527. * doc/aria2c.1.txt
  4528. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4529. Updated command-line usage text, so that it tells users that they
  4530. can specify any number of torrent files and metalink files in
  4531. command-line.
  4532. * src/version_usage.cc
  4533. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. Changed the default value of -j option to 1.
  4535. * src/HelpItemFactory.cc
  4536. * src/option_processing.cc
  4537. * src/usage_text.h
  4538. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4539. Added the ability to reuse connection in FTP and it is enabled by
  4540. default. It can be disabled by --ftp-reuse-connection=false option.
  4541. * src/Command.cc
  4542. * src/DownloadCommand.cc
  4543. * src/FtpDownloadCommand.cc
  4544. * src/FtpDownloadCommand.h
  4545. * src/FtpFinishDownloadCommand.cc
  4546. * src/FtpFinishDownloadCommand.h
  4547. * src/FtpInitiateConnectionCommand.cc
  4548. * src/FtpNegotiationCommand.cc
  4549. * src/FtpNegotiationCommand.h
  4550. * src/HelpItemFactory.cc
  4551. * src/Makefile.am
  4552. * src/Makefile.in
  4553. * src/OptionHandlerFactory.cc
  4554. * src/option_processing.cc
  4555. * src/prefs.h
  4556. * src/usage_text.h
  4557. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. Call Command::transitStatus() before calling Command::execute(),
  4559. so that the status change made in execute() is not cleared.
  4560. * src/DownloadEngine.cc
  4561. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4562. Removed forward declaration of SocketCore class.
  4563. * src/HttpDownloadCommand.h
  4564. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4565. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  4566. in InitiateConnectionCommandFactory. They should be set only when
  4567. the protocol is HTTP or HTTPS.
  4568. * src/InitiateConnectionCommandFactory.cc
  4569. * src/RequestGroup.cc
  4570. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. Fixed infinite loop in checksum checking.
  4572. * src/IteratableChecksumValidator.cc
  4573. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4574. Set _supportsPersistentConnection to true by default.
  4575. * src/Request.cc
  4576. * src/RequestGroup.cc
  4577. * test/HttpRequestTest.cc
  4578. * test/RequestTest.cc
  4579. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4580. Added timeout to socket pool. The default timeout is 15 seconds,
  4581. which is the same value Apache uses.
  4582. * src/DownloadEngine.cc
  4583. * src/DownloadEngine.h
  4584. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4585. Fixed misuse of multimap::find()
  4586. * src/HttpHeader.cc
  4587. * test/HttpHeaderTest.cc
  4588. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  4590. option.
  4591. The asynchronous DNS is not capable of IPv6 yet.
  4592. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  4593. least for HTTP download.
  4594. * src/AbstractCommand.cc
  4595. * src/AbstractCommand.h
  4596. * src/AsyncNameResolver.cc
  4597. * src/AsyncNameResolver.h
  4598. * src/DHTEntryPointNameResolveCommand.cc
  4599. * src/DHTEntryPointNameResolveCommand.h
  4600. * src/DownloadEngine.cc
  4601. * src/DownloadEngine.h
  4602. * src/FtpInitiateConnectionCommand.cc
  4603. * src/FtpInitiateConnectionCommand.h
  4604. * src/HelpItemFactory.cc
  4605. * src/HttpInitiateConnectionCommand.cc
  4606. * src/HttpInitiateConnectionCommand.h
  4607. * src/InitiateConnectionCommand.cc
  4608. * src/InitiateConnectionCommand.h
  4609. * src/Makefile.am
  4610. * src/Makefile.in
  4611. * src/NameResolver.cc
  4612. * src/NameResolver.h
  4613. * src/OptionHandlerFactory.cc
  4614. * src/SocketCore.cc
  4615. * src/SocketCore.h
  4616. * src/Util.cc
  4617. * src/Util.h
  4618. * src/option_processing.cc
  4619. * src/prefs.h
  4620. * src/usage_text.h
  4621. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. Updated man page: --quiet, --header were added.
  4623. --metalink-servers and --enable-http-keep-alive option were updated.
  4624. * doc/aria2c.1
  4625. * doc/aria2c.1.html
  4626. * doc/aria2c.1.txt
  4627. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4628. Enable HTTP keep-alive by default.
  4629. * src/HelpItemFactory.cc
  4630. * src/option_processing.cc
  4631. * src/usage_text.h
  4632. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4633. Disable http keep-alive if the remote server is not HTTP/1.1.
  4634. * src/HttpConnection.cc
  4635. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4636. Receive content body of 302 response so that the connection can be
  4637. reused later when http keep-alive is enabled.
  4638. * src/HttpNullDownloadCommand.cc
  4639. * src/HttpNullDownloadCommand.h
  4640. * src/HttpResponseCommand.cc
  4641. * src/HttpResponseCommand.h
  4642. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4643. const SharedHandle<Request> -> const SharedHandle<Request>&
  4644. * src/FtpDowndloadCommand.cc
  4645. * src/FtpDowndloadCommand.h
  4646. * src/HttpDownloadCommand.cc
  4647. * src/HttpDownloadCommand.h
  4648. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4649. Fixed the bug that the control file(.aria2 file) is not renamed
  4650. according to tryAutoFileRenaming().
  4651. tryAutoFileRenaming() was rewritten so that if both renamed file and
  4652. its control file exist, use them and continue download.
  4653. The old implementation didn't take into account of control file's
  4654. existence, so basically you couldn't continue download of renamed file.
  4655. * src/BtProgressInfoFile.h
  4656. * src/DefaultBtProgressInfoFile.cc
  4657. * src/DefaultBtProgressInfoFile.h
  4658. * src/NullProgressInfoFile.h
  4659. * src/RequestGroup.cc
  4660. * test/DefaultBtProgressInfoFileTest.cc
  4661. * test/MockBtProgressInfoFile.h
  4662. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4663. Change the default value of --metalink-servers option from `5' to `1'.
  4664. * src/HelpItemFactory.cc
  4665. * src/option_processing.cc
  4666. * src/usage_text.h
  4667. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Reimplemented transparent metalink using Accept request header.
  4669. * src/HttpRequest.cc
  4670. * src/HttpRequest.h
  4671. * src/HttpRequestCommand.cc
  4672. * src/Metalink2RequestGroup.cc
  4673. * src/RequestGroup.cc
  4674. * src/RequestGroup.h
  4675. * test/HttpRequestTest.cc
  4676. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4677. Bump up version number to 0.13.2a
  4678. * configure.ac
  4679. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4680. Updated configure.ac using the result of autoscan.
  4681. * configure.ac
  4682. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Fixed compilation error without gcrypt/openssl.
  4684. * src/DownloadCommand.cc
  4685. * src/DownloadCommand.h
  4686. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4687. Reorganized version information so that it can be displayed in a
  4688. standard terminal screen without scrolling.
  4689. Removed http, ftp from Configuration section, because they are always
  4690. enabled.
  4691. * src/FeatureConfig.cc
  4692. * src/FeatureConfig.h
  4693. * src/main.cc
  4694. * src/messageDigest.cc
  4695. * src/messageDigest.h
  4696. * src/version_usage.cc
  4697. * test/FeatureConfigTest.cc
  4698. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4699. Masked user ID in log.
  4700. * src/FtpConnection.cc (sendUser)
  4701. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4702. Removed query part from filename in HTTP download. The query part means
  4703. the substring after "?" in URL. Firefox seems do the same thing.
  4704. A query part is sometimes very long and not suitable to filename,
  4705. so I think it is better to remove it from filename.
  4706. * src/HttpRequest.cc
  4707. * src/HttpRequest.h
  4708. * src/Request.cc
  4709. * src/Request.h
  4710. * test/HttpRequestTest.cc
  4711. * test/RequestTest.cc
  4712. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4713. Rewritten Exception class. Throw exception object, not its pointer and
  4714. catch by reference, so that remove problematic delete operator for
  4715. catched exception.
  4716. * src/Exception.cc
  4717. * src/Exception.h
  4718. * test/ExceptionTest.cc
  4719. * src/*: All files throwing/catching exception.
  4720. * test/*: All files throwing/catching exception.
  4721. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4722. Now auto protocol detection is enabled without -Z option.
  4723. But there is a important difference between with/without -Z optoin.
  4724. For example, if you type:
  4725. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  4726. then, aria2 interprets there are 3 request groups:
  4727. (1) http://host/file, http://mirror/file <-- multi-source download
  4728. (2) file1.torrent
  4729. (3) file2.metalink
  4730. On the other hand, if you invoke above command with -Z option, it is
  4731. interpreted as 4 request groups:
  4732. (1) http://host/file
  4733. (2) file1.torrent
  4734. (3) file2.metalink
  4735. (4) http://mirror/file
  4736. I think usually user don't mix multi-source URLs and torrent files, so
  4737. there is no big problem here.
  4738. * src/main.cc
  4739. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. Fixed the bug that causes segmentaion fault when reading XML containing
  4741. unescapsed character like '&'.
  4742. Also a modification was made which avoids adding unnecessary
  4743. characters stack and appending unused string.
  4744. * src/ExpatMetalinkProcessor.cc
  4745. * src/FileMetalinkParserState.h
  4746. * src/FilesMetalinkParserState.h
  4747. * src/FinMetalinkParserState.h
  4748. * src/HashMetalinkParserState.h
  4749. * src/InitialMetalinkParserState.h
  4750. * src/LanguageMetalinkParserState.h
  4751. * src/MetalinkMetalinkParserState.h
  4752. * src/MetalinkParserState.h
  4753. * src/MetalinkParserStateMachine.cc
  4754. * src/MetalinkParserStateMachine.h
  4755. * src/OSMetalinkParserState.h
  4756. * src/PieceHashMetalinkParserState.h
  4757. * src/PiecesMetalinkParserState.h
  4758. * src/ResourcesMetalinkParserState.h
  4759. * src/SizeMetalinkParserState.h
  4760. * src/SkipTagMetalinkParserState.h
  4761. * src/URLMetalinkParserState.h
  4762. * src/VerificationMetalinkParserState.h
  4763. * src/VersionMetalinkParserState.h
  4764. * src/XML2SAXMetalinkProcessor.cc
  4765. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4766. Added StringFormat class, which internally calls vasprintf.
  4767. operator<< is defined for this class, so it can be used with iostream
  4768. classes nicely. SimpleLogger and following functions are rewritten
  4769. using StringFormat class.
  4770. Besides, now Logger class's methods are non-const, many classes
  4771. that has a const Logger* as a member variable are modified to remove
  4772. const qualifier from the variable declaration.
  4773. * src/HelpItemFactory.cc
  4774. * src/Request.cc
  4775. * src/SimpleLogger.cc
  4776. * src/StringFormat.cc
  4777. * src/StringFormat.h
  4778. * src/Util.cc
  4779. * src/option_processing.cc
  4780. * src/version_usage.cc
  4781. * test/StringFormatTest.cc
  4782. * src/*.h: The classes that has const Logger* as a member variable.
  4783. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  4785. failed. Also fixed memory link when exception is thrown there.
  4786. * src/main.cc (AccRequestGroup)
  4787. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4788. Added build-in "Accept-Features" support. For now only "metalink" is
  4789. used in this header field.
  4790. This "metalink" value is removed from the list when connecting URLs
  4791. fed by metalink file to avoid loop in "transparent" metlaink.
  4792. * src/HttpRequest.cc
  4793. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  4794. header is also held in this variable. Also renamed setUserHeaders as
  4795. addHeader and it was rewritten to add header not just to clear the old
  4796. value.
  4797. * src/HttpRequestCommand.cc
  4798. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  4799. from "Accept-Features" list.
  4800. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  4801. default.
  4802. * src/RequestGroup.h
  4803. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  4804. * src/a2functional.h: Included <string> because Concat class depends on
  4805. it.
  4806. * test/HttpRequestTest.cc
  4807. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4808. Added comment
  4809. * src/RequestGroup.cc (createNextCommand)
  4810. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4811. Capitalized METHOD_GET and METHOD_HEAD
  4812. * src/Request.cc
  4813. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. Added getDownloadResults() method
  4815. * src/RequestGroupMan.cc
  4816. * src/RequestGroupMan.h
  4817. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4818. Fixed the bug that aria2 exits when commands is empty() but
  4819. _routineCommands are not.
  4820. * src/DownloadEngine.cc
  4821. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4822. Use the default value pulled from Option object in HelpItemFactory.
  4823. except options whose defualt value is embedded in a usage text.
  4824. * src/HelpItemFactory.cc
  4825. * src/HelpItemFactory.h
  4826. * src/option_processing.cc
  4827. * src/version_usage.cc
  4828. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Added --quiet option to make aria2 quiet (no console output).
  4830. --quiet option is tagged with ADVANCED.
  4831. * src/HelpItemFactory.cc
  4832. * src/LogFactory.cc
  4833. * src/LogFactory.h
  4834. * src/MultiUrlRequestInfo.cc
  4835. * src/MultiUrlRequestInfo.h
  4836. * src/NullStatCalc.h: New class. This class prints nothing.
  4837. * src/OptionHandlerFactory.cc
  4838. * src/main.cc
  4839. * src/option_processing.cc
  4840. * src/prefs.h
  4841. * src/usage_text.h
  4842. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4843. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  4844. * src/HelpItemFactory.cc (createHelpItems):
  4845. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4846. Fixed compilation error in ExpatMetalinkProcessor.cc
  4847. * src/ExpatMetalinkProcessor.cc
  4848. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4849. Reuse socket if the origin server supports HTTP keep-alive and
  4850. --enable-http-keep-alive or --enable-http-pipelining is given.
  4851. The current implementation doesn't reuse the connections established
  4852. against proxy server.
  4853. * src/AbstractCommand.cc
  4854. * src/DownloadEngine.cc
  4855. * src/DownloadEngine.h
  4856. * src/HttpDownloadCommand.cc
  4857. * src/HttpInitiateConnectionCommand.cc
  4858. * src/HttpResponseCommand.cc
  4859. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Rewritten HTTP keep-alive and pipelining routine.
  4861. * src/AbstractCommand.cc
  4862. * src/HttpConnection.cc
  4863. * src/HttpDownloadCommand.cc
  4864. * src/HttpRequest.cc
  4865. * src/HttpRequestCommand.cc
  4866. * src/HttpResponseCommand.cc
  4867. * src/Request.cc
  4868. * src/Request.h
  4869. * src/RequestGroup.cc
  4870. * test/HttpRequestTest.cc
  4871. * test/HttpResponseTest.cc
  4872. * test/RequestTest.cc
  4873. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. Added missing setUserHeaders call
  4875. * src/HttpRequestCommand.cc
  4876. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4877. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  4878. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  4879. waste of time because it is more likey false.
  4880. * src/FileAllocationDispatcherCommand.cc (execute)
  4881. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4882. Now HTTP status and version are a member variable of HttpHeader.
  4883. HTTP status is processed as a string, not integer.
  4884. * src/AbstractProxyResponseCommand.cc
  4885. * src/HttpConnection.cc
  4886. * src/HttpHeader.cc
  4887. * src/HttpHeader.h
  4888. * src/HttpHeaderProcessor.cc
  4889. * src/HttpHeaderProcessor.h
  4890. * src/HttpResponse.cc
  4891. * src/HttpResponse.h
  4892. * test/HttpHeaderProcessorTest.cc
  4893. * test/HttpResponseTest.cc
  4894. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4895. Added --header option. You can specify any number of additional HTTP headers
  4896. like:
  4897. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  4898. Unlike other commad-line option, you can use --header option multiple times.
  4899. * src/HelpItemFactory.cc
  4900. * src/HttpRequest.{cc, h}
  4901. * src/HttpRequestCommand.cc
  4902. * src/OptionHandlerFactory.cc
  4903. * src/OptionHandlerImpl.h
  4904. * src/option_processing.cc
  4905. * src/prefs.h
  4906. * src/usage_text.h
  4907. * test/HttpRequestTest.cc (testUserHeaders)
  4908. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4909. Eliminates the time lag between sequential downloads and commands in
  4910. the same RequestGroup.
  4911. In old implementation, aria2 occasionally waits 1 seconds before
  4912. executing next command or RequestGroup.
  4913. This is really a waste of time, and new implementation eliminates
  4914. this unnecessary time lag.
  4915. * src/AbstractCommand.cc
  4916. * src/AutoSaveCommand.cc
  4917. * src/CheckIntegrityCommand.cc
  4918. * src/Command.{cc, h}
  4919. * src/DownloadEngine.{cc, h}
  4920. * src/DownloadEngineFactory.cc
  4921. * src/FileAllocationCommand.cc
  4922. * src/FileAllocationDispatcherCommand.cc
  4923. * src/FillRequestGroupCommand.cc
  4924. * src/FtpInitiateConnectionCommand.cc
  4925. * src/HaveEraseCommand.cc
  4926. * src/HttpInitiateConnectionCommand.cc
  4927. * src/HttpResponseCommand.cc
  4928. * src/RealtimeCommand.cc
  4929. * src/RequestGroup.cc
  4930. * src/RequestGroupMan.cc
  4931. * src/StreamFileAllocationEntry.cc
  4932. * src/TimeBasedCommand.{cc, h}
  4933. * src/TimedHaltCommand.cc
  4934. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4935. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  4936. keyword explicit and SharedHandle's default constructor initializes
  4937. its internal obj to null, old implementation initializes it using
  4938. obj's default constructor.
  4939. To assign null, write SharedHandle<T> x(...); x.reset();
  4940. TODO: test/SharedHandleTest.cc needs more tests.
  4941. * src/SharedHandle.h
  4942. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4943. Fixed type in man page.
  4944. * doc/aria2c.1.txt
  4945. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4946. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  4947. * src/SimpleLogger.{cc, h}
  4948. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. Implemented auto protocol detection.
  4950. Now you can do:
  4951. aria2c -Z http://host/file file1.torrent file2.metalink
  4952. (Note: -Z option is required for auto protcol detection.)
  4953. Then aria2c downloads 3 files simultaneously:
  4954. 1. http://host/file
  4955. 2. file1.torrent <-- read local torrent file
  4956. 3. file2.metalink <-- read local Metalink file.
  4957. Same thing goes with -i option. Assume your uris.txt contans:
  4958. http://host/file
  4959. file1.torrent
  4960. file2.metalink
  4961. Then you can do: aria2c -i uris.txt
  4962. (Note: -Z option is not needed if -i option is given.)
  4963. * src/main.cc
  4964. * src/ProtocolDetector.{cc, h}
  4965. * test/ProtocolDetectorTest.cc
  4966. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4967. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  4968. installed
  4969. * src/ARC4Encryptor.h
  4970. * src/ARC4Decryptor.h
  4971. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Renamed argument from 'errno' to 'err', since errno is confused with
  4973. errno defined in errno.h.
  4974. * src/LibgcryptARC4Decryptor.h
  4975. * src/LibgcryptARC4Context.h
  4976. * src/LibgcryptDHKeyExchange.h
  4977. * src/LibgcryptARC4Encryptor.h
  4978. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Rewritten choking algorithm.
  4980. * src/PeerChokeCommand.{cc, h}
  4981. * src/BtInterestedMessage.cc
  4982. * src/PeerSessionResource.{cc, h}
  4983. * src/DefaultPeerStorage.{cc, h}
  4984. * src/BtNotInterestedMessage.cc
  4985. * src/DefaultBtMessageDispatcher.{cc, h}
  4986. * src/BtMessageDispatcher.h
  4987. * src/Peer.{cc, h}
  4988. * src/BtLeecherStateChoke.{cc, h}
  4989. * src/BtSetup.cc
  4990. * src/BtSeederStateChoke.{cc, h}
  4991. * src/PeerStorage.h
  4992. * test/MockPeerStorage.h
  4993. * test/MockBtMessageDispatcher.h
  4994. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4995. Fixed compilation error on x84-64 platform.
  4996. * src/AuthConfig.cc: Included ostream.
  4997. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. Rewritten getBasename() and getDirname(), without standard library
  4999. basename(), dirname().
  5000. * src/File.cc
  5001. * test/FileTest.cc
  5002. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. Added Simplified Chinese translation. Also updated the following
  5004. translations: Polish, Dutch, German. Great thanks to all translators.
  5005. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5006. Suppress content-range error when 'Content-Range' response header
  5007. doesn't contains bytes-unit specifier 'bytes'
  5008. * src/HttpHeader.cc (getRange)
  5009. * test/HttpHeaderTest.cc
  5010. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5011. Fixed compilation error with g++-4.3
  5012. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5013. Added missing include files for MinGW
  5014. * test/HttpHeaderProcessorTest.cc
  5015. * test/DHTRoutingTableSerializerTest.cc
  5016. * test/DHTRoutingTableDeserializerTest.cc
  5017. * test/UriListParserTest.cc
  5018. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5019. Now download line is printed nicely with no garbage at the end of
  5020. line. I use ioctl to get the columns of terminal.
  5021. If stdout is redirected to another device, instead of carriage return,
  5022. end of line '\n' character is used. This is feature request#1909659
  5023. * src/ConsoleStatCalc.cc (calculateStat)
  5024. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5025. Included a2time.h
  5026. * src/DHTMessageDispatcher.h
  5027. * src/DHTMessageEntry.h
  5028. * src/DHTReplaceNodeTask.h
  5029. * src/DHTMessageTracker.h
  5030. * src/Util.h
  5031. * src/CookieBox.h
  5032. * src/SocketCore.h
  5033. * src/DefaultBtMessageDispatcher.h
  5034. * src/SocketCore.cc
  5035. * src/Util.cc
  5036. * src/DHTPingTask.h
  5037. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5038. Fixed high memory footprint when DHT is enabled.
  5039. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  5040. queued than it is processed and the queue is getting longer. As a
  5041. consequence, momory usage is increased.
  5042. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  5043. replacement cache in DHTBucket which is described in Kademlia paper.
  5044. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  5045. DHTReplaceNodeTask.
  5046. * src/DHTBucket.{h, cc}
  5047. (cacheNode): New function.
  5048. (getCachedNodes): New function.
  5049. (dropNode): Push back cached node to _nodes.
  5050. * test/DHTBucketTest.cc
  5051. (testCacheNode): New test
  5052. (testDropNode): New test
  5053. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5054. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  5055. the unused 4KB memory when ssl is not used.
  5056. * src/SocketCore.cc
  5057. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5058. Added summary log for peer announce storage.
  5059. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  5060. Removed cast
  5061. * src/DefaultPeerStorage.cc (addPeer)
  5062. Log exception message
  5063. * src/DHTMessageTracker.cc (handleTimeout)
  5064. Fixed casting
  5065. * test/HttpRequestTest.cc
  5066. * test/MetalinkProcessorTest.cc
  5067. * test/PieceTest.cc
  5068. * test/MetalinkEntryTest.cc
  5069. * test/SequenceTest.cc
  5070. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5071. * src/ParameterizedStringParser.cc (createLoop):
  5072. Removed unused variable sstep.
  5073. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5074. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. * src/Util.{h, cc}
  5076. (parseUInt): New function.
  5077. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5078. The actual range is uint32_t.
  5079. * test/UtilTest.cc
  5080. * src/ParameterizedStringParser.cc:
  5081. Use Util::parseUInt() for loop variables.
  5082. * test/ParameterizedStringParserTest.cc
  5083. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5084. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Rewritten the functions for binding port.
  5086. * src/DHTConnectionImpl.{h, cc}
  5087. * src/PeerListenCommand.{h, cc}
  5088. * src/DHTSetup.cc
  5089. * src/BtSetup.cc
  5090. * test/DHTConnectionImplTest.cc
  5091. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. type cleanup for allmost all remaining files.
  5093. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5094. Type clarification
  5095. * src/PeerSessionResource.{h, cc}
  5096. * src/DefaultPieceStorage.{h, cc}
  5097. * src/Peer.{h, cc}
  5098. * test/PeerSessionResourceTest.cc
  5099. Use div function
  5100. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5101. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5102. Type clarification
  5103. * src/DefaultPeerStorage.{h, cc}
  5104. * test/DefaultPeerStorageTest.cc
  5105. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5106. Type clarification: size_t for length or size, uint64_t for file
  5107. length, off_t for file offset.
  5108. * src/DefaultBtProgressInfoFile.cc
  5109. * src/DefaultBtContext.{h, cc}
  5110. * src/DefaultBtInteractive.cc
  5111. * src/DownloadCommand.{h, cc}
  5112. * src/IteratableChunkChecksumValidator.{h, cc}
  5113. * src/SegmentMan.{h, cc}
  5114. * src/SingleFileDownloadContext.{h, cc}
  5115. * src/IteratableChecksumValidator.{h, cc}
  5116. * src/BtContext.h
  5117. * src/IteratableValidator.h
  5118. * src/DownloadContext.h
  5119. * test/SingleFileDownloadContextTest.cc
  5120. * test/DefaultBtContextTest.cc
  5121. * test/MockBtContext.h
  5122. * test/Metalink2RequestGroupTest.cc
  5123. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5124. Type clarification: size_t for length or size, uint64_t for file
  5125. length, off_t for file offset.
  5126. * src/PiecedSegment.cc
  5127. * src/GrowSegment.h
  5128. * src/DefaultBtRequestFactory.h
  5129. * src/DefaultBtProgressInfoFile.cc
  5130. * src/UnknownLengthPieceStorage.h
  5131. * src/DefaultPieceStorage.cc
  5132. * src/UnknownLengthPieceStorage.cc
  5133. * src/DefaultBtInteractive.cc
  5134. * src/GrowSegment.cc
  5135. * src/BitfieldMan.h
  5136. * src/DownloadCommand.cc
  5137. * src/BtRequestFactory.h
  5138. * src/PiecedSegment.h
  5139. * src/DefaultPieceStorage.h
  5140. * src/Piece.cc
  5141. * src/DefaultBtRequestFactory.cc
  5142. * src/PieceStorage.h
  5143. * src/Segment.h
  5144. * src/Piece.h
  5145. * src/BitfieldMan.cc
  5146. * src/Util.cc
  5147. * test/DefaultBtProgressInfoFileTest.cc
  5148. * test/DefaultPieceStorageTest.cc
  5149. * test/MockPieceStorage.h
  5150. * test/BtRequestMessageTest.cc
  5151. * test/DefaultBtMessageDispatcherTest.cc
  5152. * test/BitfieldManTest.cc
  5153. * test/GrowSegmentTest.cc
  5154. * test/PieceTest.cc
  5155. * test/SegmentTest.cc
  5156. * test/SegmentManTest.cc
  5157. * test/DefaultBtRequestFactoryTest.cc
  5158. * test/MockBtRequestFactory.h
  5159. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. Fixed compilation error with --disable-nls
  5161. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5162. in gettext.h causes the problem.
  5163. * src/common.h
  5164. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5165. Removed subPiece related functions.
  5166. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5167. * src/DefaultPieceStorage.{h, cc}
  5168. * test/PieceTest.cc
  5169. * test/DefaultPieceStorageTest.cc
  5170. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5171. Use unsigned char for data store.
  5172. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Bump up version number to 0.13.0+1
  5174. * configure.ac
  5175. * Release 0.13.0+1
  5176. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5177. Changed inactive connection timeout to 120.
  5178. To accept more mulually interested peers, disconnect peer when there
  5179. is no interest between us after certain time passed.
  5180. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5181. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5182. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5183. when compiled with async DNS support.
  5184. * src/DownloadEngine.cc
  5185. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5186. value '10' will be a little bit short when some DNS servers are
  5187. offline and several DNS servers are tried. It should be configured
  5188. by command-line option.
  5189. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5190. Merged Ross's mingw patch.
  5191. * src/DHTRoutingTableDeserializer.cc
  5192. * src/DHTRoutingTableSerializer.cc
  5193. * src/Platform.{h, cc}
  5194. * src/timegm.h
  5195. * src/gettimeofday.h
  5196. * src/getaddrinfo.h
  5197. * src/SocketCore.h
  5198. * src/common.h
  5199. * src/inet_aton.h
  5200. * src/DownloadEngine.h
  5201. * src/gai_strerror.h
  5202. * src/a2netcompat.h
  5203. * configure.ac
  5204. * configure
  5205. * aclocal.m4
  5206. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5207. Included missing iostream.
  5208. * test/AllTest.cc
  5209. * test/BtDependencyTest.cc
  5210. * test/BtExtendedMessageTest.cc
  5211. * test/DHTConnectionImplTest.cc
  5212. * test/DHTMessageFactoryImplTest.cc
  5213. * test/DHTMessageTrackerEntryTest.cc
  5214. * test/DHTNodeTest.cc
  5215. * test/DHTRoutingTableSerializerTest.cc
  5216. * test/DefaultBtAnnounceTest.cc
  5217. * test/DefaultBtContextTest.cc
  5218. * test/DefaultBtMessageFactoryTest.cc
  5219. * test/DefaultExtensionMessageFactoryTest.cc
  5220. * test/HandshakeExtensionMessageTest.cc
  5221. * test/HttpResponseTest.cc
  5222. * test/MetalinkProcessorTest.cc
  5223. * test/MultiFileAllocationIteratorTest.cc
  5224. * test/SocketCoreTest.cc
  5225. * test/UTPexExtensionMessageTest.cc
  5226. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5227. Reorganized includes.
  5228. * src/NameResolver.cc
  5229. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5230. Fixed compilation error without ares/c-ares
  5231. * src/NameResolver.h:
  5232. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5233. Added a test for large file.
  5234. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5235. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5236. Fixed the bug that file size is ignored if size > INT32_MAX
  5237. * src/SizeMetalinkParserState.cc (endElement):
  5238. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5239. Bump up version number to 0.13.0
  5240. * configure.ac
  5241. * Release 0.13.0
  5242. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5243. Updated Makfefile.am to make 'make dist' work.
  5244. Now packaged filename is aria2c-VERSION.tar.bz2.
  5245. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5246. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5247. Large file support is now configured by configure script.
  5248. * configure.ac
  5249. Removed unsused source files
  5250. * src/
  5251. * test/
  5252. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5253. Peer.h and BtContext.h respectively.
  5254. * src/Peer.h
  5255. * src/BtContext.h
  5256. Updated translations.
  5257. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5258. translations. Great thanks to all translators!;)
  5259. * po/*.{po, gmo}
  5260. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5262. statically declared sha1 MessageDigestContext.
  5263. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5264. initialization of short-lived MessageDigestContext.
  5265. * src/MessageDigestHelper.{h, cc}
  5266. * src/main.cc
  5267. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5268. the initialization of MessageDigestContext every time in validating
  5269. chunk checksum.
  5270. * src/DownloadCommand.{h, cc}
  5271. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Add a file descriptor which connected to fast peer(latency<1500) to
  5273. select(). This change reduced CPU load.
  5274. * src/PeerInteractionCommand.cc
  5275. * src/DefaultBtInteractive.{h, cc}
  5276. * src/BtInteractive.h
  5277. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Fixed the previous insufficient fix for possible busy loop.
  5279. * src/MSEHandshake.cc (identifyHandshakeType)
  5280. Removed unused functions.
  5281. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5282. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5283. Fixed possible busy loop if first 20 bytes are not received for a few
  5284. minutes.
  5285. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5286. * src/ReceiverMSEHandshakeCommand.cc
  5287. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5288. Fixed compilation error
  5289. * src/ExpatMetalinkProcessor.cc
  5290. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5291. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5292. * src/DHTBucket.cc
  5293. Removed unnecessary cast.
  5294. * src/HandshakeExtensionMessage.cc
  5295. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5296. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5297. is missing.
  5298. * src/OptionHandlerFactory.cc
  5299. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5300. Fixed the bug that HAVE message is not sent for a piece they are
  5301. downloaded fom http/ftp server before any BitTorrent handshake is done
  5302. with peers.
  5303. * src/DefaultBtInteractive.cc
  5304. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5305. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5306. * src/Makefile.am
  5307. * src/Makefile.in
  5308. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5309. Updated README. Added html version of README and man page.
  5310. * README
  5311. * README.html
  5312. * readme2html: Shell script to generate README.html from README using
  5313. asciidoc.
  5314. * doc/aria2c.1.html
  5315. * doc/makeman: Added the line to generate aria2c.1.html
  5316. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5317. Fixed offset calculation.
  5318. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5319. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5320. Rewritten itos and uitos using template. llitos and ullitos are
  5321. replaced with itos and uitos respectively.
  5322. * src/Util.{h, cc}
  5323. * test/UtilTest.cc
  5324. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5325. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5326. of the number of bytes required for storing public key and shared
  5327. secret.
  5328. * src/LibgcryptDHKeyExchange.h
  5329. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5330. * src/MSEHandshake.cc
  5331. * test/DHKeyExchangeTest.cc
  5332. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5333. Removed since they are not used.
  5334. * src/Xml2MetalinkProcessor.{h, cc}
  5335. * src/Socket.cc
  5336. * src/SegmentSplitter.{h, cc}
  5337. * test/Xml2MetalinkProcessorTest.cc
  5338. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5339. Fixed the bug that prevents aria2 from stopping other than by pressing
  5340. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5341. option. aria2 doesn't stop even after --seed-time is satisfied and
  5342. continues to output blank lines in the console.
  5343. * src/ReceiverMSEHandshakeCommand.cc
  5344. * src/PeerReceiveHandshakeCommand.cc
  5345. * src/PeerListenCommand.cc
  5346. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5347. Bump up version number to 0.13.0rc
  5348. * configure.ac
  5349. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5350. Updated man page and some usage text.
  5351. * doc/aria2c.1.txt
  5352. * src/usage_text.h
  5353. * po/*.{po, gmo}
  5354. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Updated translations. Added Finnish and Hebrew translations.
  5356. Great thanks to all translators!
  5357. * po/*.{po, gmo}
  5358. * po/LINGUAS
  5359. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5360. Log more detailed information about each message.
  5361. * src/DHTQueryMessage.{h, cc}
  5362. * src/DHTGetPeersMessage.{h, cc}
  5363. * src/DHTFindNodeReplyMessage.{h, cc}
  5364. * src/DHTGetPeersReplyMessage.{h, cc}
  5365. * src/DHTAnnouncePeerMessage.{h, cc}
  5366. * src/DHTResponseMessage.{h, cc}
  5367. * src/DHTFindNodeMessage.{h, cc}
  5368. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5369. Use constants defined in prefs.h
  5370. * src/option_processing.cc
  5371. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5372. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5373. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5374. Make room for future enchancements for IPv6 addresses.
  5375. Bump up version number of dht.dat file format to 2.
  5376. Not compatible with previous version.
  5377. * src/DHTRoutingTableSerializer.cc
  5378. * src/DHTRoutingTableDeserializer.cc
  5379. * test/DHTRoutingTableSerializerTest.cc
  5380. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5381. Added handling for the return values from
  5382. PeerMessageUtil::createcompact().
  5383. * src/DefaultBtContext.cc (computeFastSet):
  5384. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. Fixed abort when peer's ip address is IPv4-mapped address.
  5386. * src/DefaultBtContext.cc (computeFastSet)
  5387. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5388. cannot handle IPv4-mapped addresses.
  5389. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5390. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5391. Proper return value handling for OpenSSL functions.
  5392. * src/LibsslDHKeyExchange.h
  5393. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5394. Random bytes generation using libgcrypt and OpenSSL.
  5395. * src/DHTUtil.{h, cc}
  5396. * test/DHTUtilTest.cc
  5397. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5398. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5399. received.
  5400. * src/DHTMessageReceiver.cc (receiveMessage)
  5401. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Fixed the bug that a return code is always 0. BUG#1897704
  5403. If error occurred during the download or there exist unfinished
  5404. downloads, aria2 returns with code 1.
  5405. * src/RequestGroupMan.{h, cc}
  5406. * src/MultiUrlRequestInfo.{h, cc}
  5407. * src/main.cc
  5408. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5409. IPv6 support for SocketCore class.
  5410. TODO: In SocketCore::establishConnection(), this is insufficient to
  5411. determin the failure of connect() here because the socket is
  5412. non-blocking state. The next addresses should be tried after select().
  5413. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5414. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5415. instead which address family independent.
  5416. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5417. information in a compact peer format which is for IPv4 only.
  5418. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5419. this is a spec of BitTorrent protocol.
  5420. * src/SocketCore.{h, cc}
  5421. * src/PeerMessageUtil.cc
  5422. * test/SocketCoreTest.cc
  5423. * test/PeerMessageUtilTest.cc
  5424. * test/DHTConnectionImplTest.cc
  5425. Handle IPv4-mapped addresses.
  5426. * src/DHTNode.cc: Now identity is determined by node id.
  5427. * src/DHTMessageTrackerEntry.cc
  5428. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5429. should handle it.
  5430. * src/DHTRoutingTableDeserializer.cc
  5431. * src/DHTMessageFactoryImpl.cc
  5432. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5433. Change the unit of --stop option from a minute to a second.
  5434. * src/usage_text.h
  5435. * src/DownloadEngineFactory.cc
  5436. * src/OptionHandlerFactory.cc
  5437. * src/message.h
  5438. * src/TimedHaltCommand.cc
  5439. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. Make listening socket non-block mode.
  5441. * src/FtpConnection.cc
  5442. * src/FtpNegotiationCommand.{h, cc}
  5443. * src/PeerListenCommand.cc
  5444. Fixed the bug that cause slow ftp negotiation.
  5445. * src/FtpNegotiationCommand.{h, cc}
  5446. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5447. Added basic tag to --enable-dht, --dht-listen-port option.
  5448. * src/HelpItemFactory.cc (createHelpItems)
  5449. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5450. Updated text.
  5451. * src/usage_text.h
  5452. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5454. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5455. Determin _threadtholdSpeed in each constructor for
  5456. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5457. * src/ActivePeerConnectionCommand.{h, cc}
  5458. * src/PeerReceiveHandshakeCommand.{h, cc}
  5459. * src/BtSetup.cc
  5460. * src/BtConstants.h
  5461. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5462. Added --bt-min-crypto-level and --bt-require-crypto options.
  5463. * src/OptionHandlerFactory.cc
  5464. * src/MSEHandshake.cc
  5465. * src/HelpItemFactory.cc
  5466. * src/option_processing.cc
  5467. * src/ReceiverMSEHandshakeCommand.cc
  5468. * src/prefs.h
  5469. * src/DefaultBtAnnounce.cc
  5470. * src/InitiatorMSEHandshakeCommand.cc
  5471. * src/usage_text.h
  5472. * test/MSEHandshakeTest.cc
  5473. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5474. Bump version number to 0.13.0b
  5475. * configure.ac
  5476. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Updated doc.
  5478. * src/MessageDigestHelper.h:
  5479. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5480. Use raw message digest as a token instead of its hexadecimal
  5481. representation.
  5482. * src/DHTTokenTracker.cc (generateToken)
  5483. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5484. Added Message Stream Encryption(MSE) support.
  5485. Currently, aria2 accepts incoming connections with Obfuscation Header
  5486. and legacy BitTorrent Header and establishes connections with
  5487. Obfuscation Header first and if failed then retry with legacy
  5488. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5489. choose ARC4. The new option to change the default behavior is planned.
  5490. For tracker extension, "supportcrypto=1" is added statically.
  5491. * src/PeerInitiateConnectionCommand.{h, cc}
  5492. * src/PeerConnection.{h, cc}
  5493. * src/HandleRegistry.h
  5494. * src/SocketCore.h
  5495. * src/PeerReceiveHandshakeCommand.{h, cc}
  5496. * src/BtRegistry.{h, cc}
  5497. * src/PeerListenCommand.cc
  5498. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5499. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5500. * src/MSEHandshake.{h, cc}
  5501. * src/ARC4Encryptor.h
  5502. * src/ARC4Decryptor.h
  5503. * src/LibgcryptARC4Encryptor.h
  5504. * src/LibgcryptARC4Decryptor.h
  5505. * src/LibgcryptARC4Context.h
  5506. * src/LibsslARC4Encryptor.h
  5507. * src/LibsslARC4Decryptor.h
  5508. * src/LibsslARC4Context.h
  5509. * src/DHKeyExchange.h
  5510. * src/LibgcryptDHKeyExchange.h
  5511. * src/LibsslDHKeyExchange.h
  5512. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  5513. * test/DefaultBtAnnounceTest.cc
  5514. * test/ARC4Test.cc
  5515. * test/DHKeyExchangeTest.cc
  5516. Removed prepareForRetry() because it is not used.
  5517. * src/PeerAbstractCommand.{h, cc}
  5518. * src/PeerInteractionCommand.{h, cc}
  5519. * src/PeerInitiateConnectionCommand.{h, cc}
  5520. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. Added the ability to load nodes from torrent file. These nodes are
  5522. added to the routing table when downloading that torrent.
  5523. * src/BtContext.h
  5524. * src/DefaultBtContext.{h, cc}
  5525. * src/DHTSetup.cc
  5526. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5527. hostname and port pair, and resolves all of them.
  5528. * src/NameResolver.{h, cc}: Added reset().
  5529. * src/RequestGroup.cc
  5530. * test/DefaultBtContextTest.cc
  5531. * test/MockBtContext.h
  5532. Removed assert() from DefaultBtContext and throw exception instead.
  5533. * src/DefaultBtContext.cc
  5534. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. Fixed segmentation fault bug when exiting if dht is disabled.
  5536. * src/RequestGroup.cc
  5537. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. Fixed typo in log message and define the message in message.h
  5539. * src/TimedHaltCommand.cc
  5540. * src/message.h
  5541. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Included RecoverableException.h to fix compilation error.
  5543. * test/DHTMessageFactoryImplTest.cc
  5544. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5545. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  5546. * test/DHTPingMessageTest.cc
  5547. * test/DHTGetPeersMessageTest.cc
  5548. * test/DHTFindNodeMessageTest.cc
  5549. * test/DHTAnnouncePeerMessageTest.cc
  5550. * test/MockDHTMessage.h
  5551. * test/MockDHTMessageFactory.h
  5552. * test/MockDHTMessageDispatcher.h: New class.
  5553. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5554. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  5555. virtual.
  5556. * src/DHTMessageDispatcher.h
  5557. * src/DHTMessageDispatcherImpl.{h, cc}
  5558. * src/DHTSetup.cc
  5559. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5560. Adding handling of DHT error message. Just log error message and
  5561. throw exception.
  5562. * src/DHTMessageFactoryImpl.cc
  5563. * test/DHTMessageFactoryImplTest.cc
  5564. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5565. Added handling of dynamic cast failure.
  5566. * src/DHTNodeLookupTask.cc
  5567. * src/DHTPeerLookupTask.cc
  5568. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. Added the ability to stop aria2 itself when given time has passed
  5570. from start. Use --stop option to specify time in minutes.
  5571. When 0 is given, this feature is disabled.
  5572. * src/OptionHandlerFactory.cc
  5573. * src/TimeBasedCommand.h: Make _interval protected scope.
  5574. * src/HelpItemFactory.cc
  5575. * src/option_processing.cc
  5576. * src/prefs.h
  5577. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  5578. before calling RequestGroupMan::fillRequestGroupFromReserver().
  5579. Without this modification, the result list shows "ERR" when aria2 is
  5580. stopped by --stop option. It should be "INPR".
  5581. * src/DownloadEngine.{h, cc}
  5582. * src/DownloadEngineFactory.cc
  5583. * src/usage_text.h
  5584. * src/TimedHaltCommand.{h, cc}: New class.
  5585. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5586. Bootstrap through node added by port message.
  5587. Currently bootstrap is executed if the number of buckets in routing
  5588. table is 1.
  5589. * src/BtPortMessage.{h, cc}
  5590. * src/DefaultBtMessageFactory.{h, cc}
  5591. * src/PeerInteractionCommand.cc
  5592. * test/BtPortMessageTest.cc
  5593. * test/MockDHTTask.h
  5594. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5595. Extract the Peer class's member variables, which are only needed after
  5596. PeerInteractionCommand, into PeerSessionResource class.
  5597. This class is instantiated in PeerInteractionCommand class's ctor and
  5598. released in its dtor.
  5599. This will make Peer class lightweight and uses less memory for peers
  5600. which are not connected and wait in the queue.
  5601. * src/PeerChokeCommand.cc
  5602. * src/PeerSessionResource.{h, cc}
  5603. * src/PeerInteractionCommand.cc
  5604. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  5605. * src/DefaultBtInteractive.cc
  5606. * src/BtPieceMessage.cc
  5607. * src/BtInterestedMessage.cc
  5608. * src/BtUnchokeMessage.cc
  5609. * src/DefaultPeerStorage.{h, cc}
  5610. * src/PeerInitiateConnectionCommand.cc
  5611. * src/ActivePeerConnectionCommand.cc
  5612. * src/BtNotInterestedMessage.cc
  5613. * src/DefaultBtMessageDispatcher.cc
  5614. * src/BtChokeMessage.cc
  5615. * src/BtRequestMessage.cc
  5616. * src/Peer.{h, cc}
  5617. * src/BtRegistry.h
  5618. * src/TrackerWatcherCommand.cc
  5619. * src/PeerReceiveHandshakeCommand.cc
  5620. * test/BtExtendedMessageTest.cc
  5621. * test/BtAllowedFastMessageTest.cc
  5622. * test/BtCancelMessageTest.cc
  5623. * test/DefaultPieceStorageTest.cc
  5624. * test/BtBitfieldMessageTest.cc
  5625. * test/BtHaveMessageTest.cc
  5626. * test/BtNotInterestedMessageTest.cc
  5627. * test/BtRequestMessageTest.cc
  5628. * test/PeerSessionResourceTest.cc
  5629. * test/DefaultBtMessageDispatcherTest.cc
  5630. * test/PeerTest.cc
  5631. * test/BtInterestedMessageTest.cc
  5632. * test/BtRejectMessageTest.cc
  5633. * test/BtChokeMessageTest.cc
  5634. * test/DefaultPeerStorageTest.cc
  5635. * test/BtHaveNoneMessageTest.cc
  5636. * test/BtHaveAllMessageTest.cc
  5637. * test/DefaultExtensionMessageFactoryTest.cc
  5638. * test/BtUnchokeMessageTest.cc
  5639. * test/DefaultBtMessageFactoryTest.cc
  5640. * test/HandshakeExtensionMessageTest.cc
  5641. * test/UTPexExtensionMessageTest.cc
  5642. * test/DefaultBtRequestFactoryTest.cc
  5643. * test/BtPieceMessageTest.cc
  5644. Removed typedef PeerStats.
  5645. * src/PeerStat.h
  5646. * src/SegmentMan.cc
  5647. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Added std namespace to copy, remove_copy, back_inserter,
  5649. front_inserter.
  5650. * src/RequestGroupMan.cc
  5651. * src/DefaultPieceStorage.cc
  5652. * src/StreamFileAllocationEntry.cc
  5653. * src/BtFileAllocationEntry.cc
  5654. * src/RequestGroup.cc
  5655. * src/MetalinkEntry.cc
  5656. * src/DelegatingPeerListProcessor.cc
  5657. * src/DefaultBtRequestFactory.cc
  5658. * src/DefaultBtMessageDispatcher.cc
  5659. * src/version_usage.cc: Included <algorithm>
  5660. * src/main.cc
  5661. * src/MetalinkParserController.cc
  5662. * src/DefaultBtContext.cc
  5663. * src/DownloadEngineFactory.cc
  5664. * src/a2algo.h
  5665. Removed.
  5666. * test/StreamUriListParserTest.cc
  5667. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5668. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  5669. ActivePeerConnectionCommand when it is given and
  5670. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  5671. * src/ActivePeerConnectionCommand.{h, cc}
  5672. * src/BtSetup.cc
  5673. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Only add socket to DownloadEngine's select routine when peer or
  5675. localhost is unchoked and interested. This lowers CPU usage a
  5676. little bit.
  5677. * src/PeerInteractionCommand.cc
  5678. * src/PeerAbstractCommand.{h, cc}
  5679. * src/BtInteractive.h
  5680. * src/DefaultBtInteractive.{h, cc}
  5681. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5682. Revert previous change because get_peers message is needed for
  5683. announce_peer anyway.
  5684. * src/DHTGetPeersCommand.cc
  5685. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5686. Request peers thought DHT only when download hasn't finished.
  5687. * src/DHTGetPeersCommand.cc
  5688. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5689. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  5690. * src/DHTBucketRefreshTask.{h, cc}
  5691. * src/DHTSetup.cc
  5692. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5693. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  5694. standard classes.
  5695. Included string.h where mem* function are used.
  5696. Added namespace aria2.
  5697. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5698. Create directory before saving DHT routing table.
  5699. Now ios::failure is now handled properly.
  5700. * src/DHTAutoSaveCommand.cc
  5701. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5702. Removed unnecessary cerr.
  5703. * src/DownloadEngine.cc
  5704. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. Catch exception inside DHTMessageReceiver::receiveMessage().
  5706. Log unknown message.
  5707. * src/DHTMessageReceiver.{h, cc}
  5708. * src/DHTMessageFactory.h
  5709. * src/DHTMessageFactoryImpl.{h, cc}
  5710. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  5711. * src/DHTInteractionCommand.cc
  5712. * src/DHTUnknownMessage.{h, cc}
  5713. * test/DHTUnknownMessageTest.cc
  5714. * test/MockDHTMessageFactory.h
  5715. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. Commented out ip address comparison because a host can have multiple
  5717. ip addresses and it is hard to predict the hostname is resolved into
  5718. which one.
  5719. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  5720. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5721. * po/Makefile.in: Removed since this is generated by configure.
  5722. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5723. Fixed compiler warning about redefinition of SIZE_MAX.
  5724. Use common.h instead of config.h directly here.
  5725. * src/Platform.{h, cc}
  5726. The check of ENABLE_NLS is made in gettext.h, so it is not required
  5727. here.
  5728. * common.h
  5729. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  5730. Updated gettext related files.
  5731. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  5732. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  5733. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. Added DHT functionality, compatible with mainline.
  5735. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  5736. You may need to specify entry point to DHT network using
  5737. --dht-entry-point. DHT uses UDP port to listen incoming message.
  5738. Use --dht-listen-port to specify port number. Make sure that your
  5739. firewall configuration can pass through UDP traffic to the port.
  5740. The routing table is saved in $HOME/.aria2/dht.dat.
  5741. * src/DHT*
  5742. * src/BNode.{h, cc}
  5743. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  5744. particular torrent.
  5745. * src/Data.cc: Rewritten ctor.
  5746. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  5747. --dht-entry-point.
  5748. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  5749. * src/RequestGroup.cc: Initialize DHT functionality. When download
  5750. ends, remove BtContext from DHTPeerAnnounceStorage.
  5751. * src/BtPortMessage.{h, cc}: Rewritten.
  5752. * src/message.h
  5753. * src/OptionHandlerImpl.cc
  5754. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  5755. --dht-entry-point.
  5756. * src/Dictionary.{h, cc} (remove): New function.
  5757. * src/prefs.h
  5758. * src/DefaultBtMessageFactory.h
  5759. * src/BtHandshakeMessage.cc
  5760. * src/ActivePeerConnectionCommand.cc
  5761. * src/SocketCore.{h, cc}: Added datagram socket support.
  5762. * src/DefaultBtMessageFactory.cc
  5763. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  5764. Create DHT commands.
  5765. * src/BtMessageFactory.h
  5766. * src/PeerMessageUtil.{h, cc}
  5767. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5768. Fixed the bug that log file is not written when configuration file doesn't exist.
  5769. This is caused by using Logger class before LogFactory is not configured.
  5770. BUG #1875079
  5771. * src/option_processing.cc
  5772. Warning message "configuration doesn't exist" is only printed when --conf is
  5773. given.
  5774. * src/option_processing.cc
  5775. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5776. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  5777. ShaVisitor is now deprecated and slated to be removed.
  5778. * src/DefaultBtContext.cc
  5779. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5780. Externalize message to message.h
  5781. * src/Platform.cc
  5782. * src/message.h
  5783. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Set default domain and default path to cookie.
  5785. * src/HttpResponse.cc
  5786. * src/CookieBox.{h, cc}
  5787. * src/CookieParser.{h, cc}
  5788. * test/CookieParserTest.cc
  5789. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5790. Added --no-conf and --conf-path command-line option.
  5791. --no-conf option disables loading aria2.conf file.
  5792. --conf-path option changes the configuration file path. The default
  5793. file path is $HOME/.aria2/aria2.conf
  5794. Added a warning message when the configuration file is not found.
  5795. * src/HelpItemFactory.cc
  5796. * src/option_processing.cc
  5797. * src/prefs.h
  5798. * src/usage_text.h
  5799. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5800. Added the message to inform users that other help categories are
  5801. available in -h option.
  5802. * src/version_usage.cc
  5803. * src/TagContainer.{h, cc}
  5804. * test/TagContainerTest.cc
  5805. * src/TaggedItem.{h, cc}
  5806. * test/TaggedItemTest.cc
  5807. * src/HelpItem.h
  5808. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5809. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  5810. from PiecedSegment's ctor.
  5811. Previously Piece::getAllMissingBlockIndexes() is called from
  5812. PiecedSegment() but it is rather expensive since only first element is
  5813. used.
  5814. * src/PiecedSegment.cc
  5815. * src/Piece.{h, cc}
  5816. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Rewritten get*Missing*Index functions. Now no need to allocate memory
  5818. each time these functions are called.
  5819. * src/BitfieldMan.{h, cc}
  5820. * test/BitfieldManTest.cc
  5821. * src/array_fun.h
  5822. * test/array_funTest.cc
  5823. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  5824. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  5825. filtered. Removed unnecessary cast to int32_t.
  5826. * src/BitfieldMan.{h, cc}
  5827. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5828. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  5829. payload length(4bytes) are received. This happens because lenbufLength
  5830. is not updated in this particular case and successive call of
  5831. receiveMessage() overwrites payload length with bytes recieved which
  5832. are payload body.
  5833. * src/PeerConnection.{h, cc}
  5834. * src/message.h
  5835. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5836. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  5837. peer if there are peers that have same ipaddr and port.
  5838. I've experiened segmentation fault and "pure virtual function was
  5839. called" error.
  5840. * src/Peer.h
  5841. * test/PeerTest.cc
  5842. * src/DefaultPeerStorage.cc
  5843. * test/DefaultPeerStorageTest.cc
  5844. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5845. Removed a call to isPowerOf() because it is no longer necessary here
  5846. and a request block is not always power of 2.
  5847. BUG#1866924
  5848. * src/PeerMessageUtil.cc (checkLength)
  5849. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5850. Fixed the bug that always first found Segment is removed from
  5851. usedSegmentEntries. Removed unused functions.
  5852. * src/SegmentMan.{h, cc}
  5853. * test/SegmentManTest.cc
  5854. Fixed the bug that ServerHost is not removed.
  5855. * src/RequestGroup.cc
  5856. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5857. Fixed the bug that SegmentMan::completeSegment() is not called
  5858. even if Segment is complete when --lowest-speed-limit is enabled.
  5859. BUG#1864525
  5860. * src/DownloadCommand.{h, cc}
  5861. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. Fixed: hash algorithm 'sha1' is always used.
  5863. * src/DownloadCommand.cc (validatePieceHash)
  5864. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5865. Added --enable-peer-exchange command-line option.
  5866. * src/OptionHandlerFactory.cc
  5867. * src/HelpItemFactory.cc
  5868. * src/option_processing.cc
  5869. * src/usage_text.h
  5870. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5871. Move extension from BtRuntime to ExtensionMessageFactory, because
  5872. extension can be specified per peer, not per torrent.
  5873. * src/DefaultBtInteractive.cc
  5874. * src/BtRuntime.h
  5875. * src/ExtendedMessagingAware.h
  5876. * src/ExtensionMessageFactory.h
  5877. * src/DefaultExtensionMessageFactory.cc
  5878. * test/DefaultExtensionMessageFactoryTest.cc
  5879. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Added categorized option help. Specify category using --help option.
  5881. Also added the ability to search options in forward match.
  5882. * src/HelpItem.{h, cc}
  5883. * test/HelpItemTest.cc
  5884. * src/HelpItemFactory.{h, cc}
  5885. * src/TagContainer.{h, cc}
  5886. * test/TagContainerTest.cc
  5887. * src/option_processing.cc
  5888. * src/prefs.h
  5889. * src/TaggedItem.{h, cc}
  5890. * test/TaggedItemTest.cc
  5891. * src/version_usage.cc
  5892. * src/help_tags.h
  5893. * src/usage_text.h
  5894. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5895. Fixed segmentation fault when bad torrent metainfo is parsed.
  5896. Added dynamic_cast properly to detect the misconfiguration of metainfo
  5897. and then throw exception or skip it.
  5898. * src/DefaultBtContext.{h, cc}
  5899. * test/DefaultBtContextTest.cc
  5900. * src/AnnounceList.cc
  5901. * src/CompactPeerListProcessor.cc
  5902. * src/message.h
  5903. * src/DefaultBtAnnounce.{h, cc}
  5904. * test/DefaultBtAnnounceTest.cc
  5905. * src/BencodeVisitor.cc
  5906. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5907. Added missing "B"(=Byte). So now the message looks like this:
  5908. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  5909. * src/message.h (MSG_SHARE_RATIO_REPORT)
  5910. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. Show the seed ratio after torrent downloads.
  5912. For example, after torrent download completed and --seed-time and
  5913. --seed-ratio conditions are fulfilled, following message is printed
  5914. right after "Download complete: .....":
  5915. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  5916. * src/RequestGroupMan.cc
  5917. * src/RequestGroup.{h, cc}
  5918. * src/message.h
  5919. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Remove a defunct control file. A defunct control file means that while
  5921. it exists, but the corresponding download file is missing.
  5922. After its removal, a download restarts from the beginning.
  5923. * src/RequestGroup.cc
  5924. * src/message.h
  5925. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. Allocate bitfield in Peer when it is really used. More specifically,
  5927. bitfield in Peer is allocated after the connection is established and
  5928. deallocated when the connection is dropped.
  5929. Since 2 parameters(piece length and total length) was removed from the
  5930. constructor of Peer class, many test classes were modified accordingly.
  5931. See svn log for more detailed information.
  5932. * src/PeerInteractionCommand.cc
  5933. * src/CompactPeerListProcessor.cc
  5934. * src/Peer.cc
  5935. * src/DefaultPeerListProcessor.cc
  5936. * src/PeerListenCommand.cc
  5937. * src/PeerReceiveHandshakeCommand.cc
  5938. Fixed memory leak
  5939. * src/Piece.cc
  5940. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5941. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  5942. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  5943. command-line options.
  5944. * src/option_processing.cc
  5945. * src/ActivePeerConnectionCommand.cc
  5946. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5947. Send have message to peer if it already has the piece.
  5948. * src/BtHaveMessage.{h, cc}
  5949. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5950. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  5951. port.
  5952. * src/DefaultPeerStorage.{h, cc}
  5953. * test/DefaultPeerStorageTest.cc
  5954. * src/HandshakeExtensionMessage.cc
  5955. * test/HandshakeExtensionMessageTest.cc
  5956. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  5957. * src/PeerStorage.h
  5958. * test/MockPeerStorage.h
  5959. * src/PeerListenCommand.cc
  5960. * src/PeerReceiveHandshakeCommand.cc
  5961. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. Added --metalink-enable-unique-protocol option.
  5963. * src/Metalink2RequestGroup.cc
  5964. * src/option_processing.cc
  5965. * src/prefs.h
  5966. * src/version_usage.cc
  5967. * doc/aria2c.1.txt
  5968. * doc/aria2c.1
  5969. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Allow a peer in incomingPeer to be added peers.
  5971. * src/DefaultPeerStorage.cc
  5972. * test/DefaultPeerStorageTest.cc
  5973. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  5975. I could reproduce this bug in following procedure:
  5976. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  5977. 2. Restart aria2.
  5978. 3. You see the download stopped around 99%.
  5979. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5980. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  5981. If timeout is reached, then _nextCommand is unused and it may contains
  5982. segments and they won't be canceled. Actually, timeout is not needed
  5983. here because if the server dropped connection, then retry is made.
  5984. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Added uTorrent compatible Peer Exchange.
  5986. * src/BencodeVisitor.{h, cc}
  5987. * test/BencodeVisitorTest.cc
  5988. * src/BtConstants.h
  5989. * src/BtContext.h: Added 'private' flag.
  5990. * src/BtExtendedMessage.{h, cc}
  5991. * test/BtExtendedMessageTest.cc
  5992. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  5993. reserved field.
  5994. * test/BtHandshakeMessageTest.cc
  5995. * src/BtMessageFactory.h
  5996. * src/BtRegistry.h
  5997. * src/BtRuntime.h: This class holds default extension message IDs for
  5998. aria2. By default, aria2 uses ID 8 for ut_pex.
  5999. * src/DefaultBtContext.cc
  6000. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6001. When it is true, aria2 enables ut_pex. This value is set by
  6002. PeerInteractionCommand.
  6003. * src/DefaultBtMessageFactory.{h, cc}
  6004. * test/DefaultBtMessageFactoryTest.cc
  6005. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6006. handling to DefaultBtInteractive class.
  6007. * src/DefaultExtensionMessageFactory.{h, cc}
  6008. * test/DefaultExtensionMessageFactoryTest.cc
  6009. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6010. the container(peers and incomingPeers. The equality is determined by
  6011. Peer::id).
  6012. * test/DefaultPeerStorageTest.cc
  6013. * src/ExtensionMessage.h
  6014. * test/MockExtensionMessage.h
  6015. * src/ExtensionMessageFactory.h
  6016. * test/MockExtensionMessageFactory.h
  6017. * src/HandshakeExtensionMessage.{h, cc}
  6018. * test/HandshakeExtensionMessageTest.cc
  6019. * src/MetaEntry.h
  6020. * src/Peer.{h, cc}
  6021. * src/PeerInteractionCommand.cc
  6022. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6023. addIncomingPeer.
  6024. * src/PeerMessageUtil.{h, cc}
  6025. * src/PeerObject.h
  6026. * src/UTPexExtensionMessage.{h, cc}
  6027. * test/UTPexExtensionMessageTest.cc
  6028. * src/message.h
  6029. * src/prefs.h
  6030. Fixed the bug that returns incomplete data when it contains null
  6031. character. A convenient constructor was also added.
  6032. * src/Data.{h, cc}
  6033. Rewritten.
  6034. * src/CompactPeerListProcessor.cc
  6035. Fixed typos.
  6036. * src/message.h
  6037. * src/MetaFileUtil.cc
  6038. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Added "Status Legend" label to the explanation text of 'stat' in
  6040. download result and moved it to the last. BUG#1848214
  6041. * src/RequestGroupMan.cc
  6042. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6043. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  6044. * src/Makefie.am
  6045. * test/Makefile.am
  6046. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Fixed the bug that prevents aria2 from loading cookie file when expire
  6048. value is greater than 2^31-1. BUG#1851066
  6049. * src/CookieBoxFactory.cc
  6050. * test/CookieBoxFactoryTest.cc
  6051. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6052. Fixed possible memory leak when an exception is thrown.
  6053. * src/XML2SAXMetalinkProcessor.cc
  6054. Added Expat support. If both libxml2 and Expat are installed, then
  6055. libxml2 is used by default.
  6056. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  6057. ExpatMetalinkProcessor according to the configuration.
  6058. * src/ExpatMetalinkProcessor.{h, cc}
  6059. * src/main.cc: Removed libxml2 specific header and init/free function.
  6060. * src/MetalinkProcessorFactory.{h, cc}
  6061. * src/MetalinkHelper.cc
  6062. * src/Metalinker.h: Removed unnecessary libxml2 header.
  6063. * src/MetalinkProcessor.h
  6064. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  6065. MetalinkProcessorTest is used instead.
  6066. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  6067. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6068. MetalinkProcessorFactory::newInstance().
  6069. * m4/libexpat.m4
  6070. * configure.ac: Added configuration options for libexpat.
  6071. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6072. Disabled -s option in metalink download.
  6073. * src/Metalink2RequestGroup.cc
  6074. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6075. If several protocols are available for a mirror in metalink file,
  6076. aria2 now use one of them. --metalink-preferred-protocol option was
  6077. added to specify the preference of protocol.
  6078. * src/AbstractCommand.cc
  6079. * src/OptionHandlerFactory.cc
  6080. * src/ServerHost.{h, cc}
  6081. * src/Metalink2RequestGroup.cc
  6082. * src/RequestGroup.{h, cc}
  6083. * test/RequestGroupTest.cc
  6084. * src/option_processing.cc
  6085. * src/prefs.h
  6086. * src/HttpResponseCommand.cc
  6087. * src/MetalinkResource.{h, cc}
  6088. * src/FtpNegotiationCommand.cc
  6089. * src/MetalinkEntry.{h, cc}
  6090. * src/MetalinkEntryTest.cc
  6091. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6092. Code cleanup and added debug log.
  6093. * src/PeerConnection.cc
  6094. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6095. Compiler error fix: applied the patch by Tiziano Mueller
  6096. * src/RequestGroup.cc
  6097. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6098. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6099. in stopped and completed event.
  6100. * src/AnnounceList.{h, cc}
  6101. * test/AnnounceListTest.cc
  6102. * src/DefaultBtAnnounce.cc
  6103. * test/DefaultBtAnnounceTest.cc
  6104. Sorted URLs.
  6105. * test/Metalink2RequestGroupTest.cc
  6106. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6107. Removed unnecessary string copy. Updated doc and corrected indentation.
  6108. * src/Base64.cc
  6109. Fixed compilation warnings
  6110. * test/DataTest.cc
  6111. * test/HttpRequestTest.cc
  6112. * test/MetaFileUtilTest.cc
  6113. * test/RequestTest.cc
  6114. * Release 0.12.0
  6115. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. Updated translations
  6117. * po/{de,fr,ja,nl,ru}.po
  6118. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6119. translations. Many thanks to translators.
  6120. * po/{ca,es,it,pt_BR,sv}.po
  6121. * po/LINGUAS
  6122. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Added a notice about URL
  6124. * src/version_usage.cc
  6125. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6126. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6127. aria2 repeatedly sends stopped request when tracker returns error code.
  6128. * src/AnnounceList.cc
  6129. * test/AnnounceListTest.cc
  6130. * src/AnnounceTier.h
  6131. Added a message when ctrl-c is hit.
  6132. Now second ctrl-c is also handled in signal handler.
  6133. * src/RequestGroupMan.{h, cc}
  6134. * src/RequestGroup.{h, cc}
  6135. * src/MultiUrlRequestInfo.cc
  6136. * src/DownloadEngine.cc
  6137. * src/TrackerWatcherCommand.cc
  6138. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6139. Code cleanup
  6140. * src/Base64.cc (encode)
  6141. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Changed Direct/IO enable/disable procesure in file allocation routine.
  6143. * src/SingleFileAllocationIterator.cc
  6144. (SingleFileAllocationIterator):
  6145. Disable directIO if offset is not multiple of 512.
  6146. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6147. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6148. Enable created SingleFileAllocationIterator's directIO.
  6149. * src/FileAllocationEntry.cc
  6150. (FileAllocationEntry): Enable directIO here.
  6151. (~FileAllocationEntry): Disable directIO here.
  6152. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6154. * src/Peer.{h, cc}
  6155. * src/DefaultPieceStorage.cc
  6156. * test/DefaultPieceStorageTest.cc
  6157. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6158. Rewritten direct I/O support routine
  6159. * src/SingleFileAllocationIterator.cc
  6160. * src/MultiDiskAdaptor.{h, cc}
  6161. * src/ByteArrayDiskWriter.h
  6162. * src/AbstractSingleDiskAdaptor.h
  6163. * src/AbstractDiskWriter.cc
  6164. * src/DefaultPieceStorage.cc
  6165. * src/DiskWriter.h
  6166. * src/BinaryStream.h
  6167. * src/IteratableChunkChecksumValidator.cc
  6168. * src/IteratableChecksumValidator.cc
  6169. * src/CheckIntegrityEntry.cc
  6170. * src/FileAllocationEntry.cc
  6171. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6172. Fixed typo
  6173. * src/version_usage.cc
  6174. Updated doc
  6175. * doc/aria2c.1.txt
  6176. * doc/aria2c.1
  6177. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Fixed compile error without message digest support.
  6179. * src/FileMetalinkParserState.cc
  6180. * src/MetalinkParserController.{h, cc}
  6181. * test/XML2SAXMetalinkProcessorTest.cc
  6182. * test/MetalinkParserControllerTest.cc
  6183. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6184. Enable direct I/O support in checksum checking.
  6185. * src/IteratableChunkChecksumValidator.{h, cc}
  6186. * test/IteratableChunkChecksumValidatorTest.cc
  6187. * src/CheckIntegrityEntry.cc
  6188. * src/PieceHashCheckIntegrityEntry.cc
  6189. * src/IteratableChecksumValidator.{h, cc}
  6190. * src/BtCheckIntegrityEntry.cc: Added doc.
  6191. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Added --allow-piece-length-change option.
  6193. * src/DefaultBtProgressInfoFile.cc
  6194. * test/DefaultBtProgressInfoFileTest.cc
  6195. * src/OptionHandlerFactory.cc
  6196. * src/option_processing.cc
  6197. * src/prefs.h
  6198. * src/version_usage.cc
  6199. * doc/aria2c.1.txt
  6200. * doc/aria2c.1
  6201. Fixed: duplicated result entry appears when exception is thrown in
  6202. RequestGroup::createInitiateConnectionCommand().
  6203. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6204. Add RequestGroup to _requestGroup after RequetGroup::
  6205. createInitiateConnectionCommand() succeeds.
  6206. Externalized message
  6207. * src/XML2SAXMetalinkProcessor.cc
  6208. * src/message.h
  6209. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6210. Forced download abort when received negative response from http/ftp
  6211. server.
  6212. * src/HttpResponseCommand.cc
  6213. * src/FtpNegotiationCommand.cc
  6214. * src/HttpResponse.cc
  6215. * src/FtpConnection.cc
  6216. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6217. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6218. the predecessor, Xml2MetalinkParser class.
  6219. I tested them against 94KB metalink file with 1234 chunk checksums.
  6220. The new one parsed it in 22msec, while it took 6000msec with old one.
  6221. * src/XML2SAXMetalinkProcessor.{h, cc}
  6222. * test/XML2SAXMetalinkProcessorTest.cc
  6223. * src/MetalinkParserController.{h, cc}
  6224. * test/MetalinkParserControllerTest.cc
  6225. * src/MetalinkParserState.h: Also added 16 subclasses.
  6226. * src/main.cc
  6227. * src/Metalink2RequestGroup.cc
  6228. * src/MetalinkHelper.cc
  6229. * src/MetalinkEntry.cc
  6230. * src/ChunkChecksum.h
  6231. Rewritten Base64 class for better performance.
  6232. * src/Base64.{h, cc}
  6233. * test/Base64Test.cc
  6234. * src/HttpRequest.cc
  6235. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6236. Fixed the bug#1841757: aria2 will connect to server to only get
  6237. file size.
  6238. * src/StreamFileAllocationEntry.cc
  6239. * src/option_processing.cc
  6240. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6241. downloads.
  6242. * src/FtpNegotiationCommand.cc
  6243. Suppressed wrong message when finding PreDownloadHandler
  6244. * src/RequestGroup.cc
  6245. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6246. Updated usage
  6247. * src/version_usage.cc
  6248. Updated man page
  6249. * doc/aria2c.1.txt
  6250. * doc/aria2c.1
  6251. Updated po files
  6252. * po/aria2c.pot
  6253. * po/*.po
  6254. * po/*.gmo
  6255. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. Eliminated g++-4.2 warning
  6257. * src/DownloadHandlerConstants.{h, cc}
  6258. * src/Util.cc
  6259. * test/MetaFileUtilTest.cc
  6260. * test/PStringBuildVisitorTest.cc
  6261. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6262. * src/RequestGroup.cc
  6263. * src/BtCheckIntegrityEntry.cc
  6264. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. Fixed a2io.h
  6266. * src/a2io.h
  6267. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6268. Added direct I/O support. The current implementation uses O_DIRECT,
  6269. which is not posix standard and is tested on linux 2.6.21.
  6270. Currently only file allocation uses direct I/O.
  6271. * src/SingleFileAllocationIterator.{h, cc}
  6272. * test/SingleFileAllocationIteratorTest.cc
  6273. * src/MultiFileAllocationIterator.{h, cc}
  6274. * test/MultiFileAllocationIteratorTest.cc
  6275. * src/BinaryStream.h
  6276. * src/DiskWriter.h
  6277. * src/AbstractDiskWriter.{h, cc}
  6278. * src/ByteArrayDiskWriter.h
  6279. * src/DiskAdaptor.h
  6280. * src/AbstractSingleDiskAdaptor.{h, cc}
  6281. * src/MultiDiskAdaptor.{h, cc}
  6282. * src/FileAllocationEntry.cc
  6283. * src/Util.{h, cc}
  6284. * src/OptionHandlerFactory.cc
  6285. * src/prefs.h
  6286. * src/version_usage.cc
  6287. * src/option_processing.cc
  6288. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6289. handleException.
  6290. * src/MultiFileAllocationIterator.cc
  6291. Added EINTR handling
  6292. * src/SocketCore.cc
  6293. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Updated usage
  6295. * src/version_usage.cc
  6296. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Applied Ross's patch for MinGW port.
  6298. * src/DownloadEngine.h
  6299. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6300. Set Content-Type to SingleFileDownloadContext when http response is
  6301. received.
  6302. * src/HttpResponseCommand.cc
  6303. * src/HttpResponse.{h, cc}
  6304. * test/HttpResponseTest.cc
  6305. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Rewritten to add content-type support.
  6307. * src/DownloadHandler.{h, cc}
  6308. * src/BtPostDownloadHandler.{h, cc}
  6309. * test/BtPostDownloadHandlerTest.cc
  6310. * src/MetalinkPostDownloadHandler.{h, cc}
  6311. * test/MetalinkPostDownloadHandlerTest.cc
  6312. * src/PostDownloadHandler.{h, cc}
  6313. * src/DownloadHandlerConstants.{h, cc}
  6314. * src/RequestGroup.cc
  6315. * src/HttpResponseCommand.cc
  6316. * src/FtpNegotiationCommand.cc
  6317. * src/SingleFileDownloadContext.{h, cc}
  6318. * src/RequestGroup.h
  6319. * src/RequestGroupCriteria.h
  6320. * src/ContentTypeRequestGroupCriteria.h
  6321. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6322. If it is give, metalink/torrent file is not written to the disk, but
  6323. just is kept in memory. Parsing is occurred on memory.
  6324. * src/MetalinkHelper.{h, cc}
  6325. * src/MetalinkProcessor.h
  6326. * src/Xml2MetalinkProcessor.{h, cc}
  6327. * test/Xml2MetalinkProcessorTest.cc
  6328. * src/DownloadHandlerFactory.{h, cc}
  6329. * test/DownloadHandlerFactoryTest.cc
  6330. * src/PreDownloadHandler.{h, cc}
  6331. * src/OptionHandlerFactory.cc
  6332. * src/DefaultBtContext.{h, cc}
  6333. * test/DefaultBtContextTest.cc
  6334. * src/version_usage.cc
  6335. * src/Metalink2RequestGroup.{h, cc}
  6336. * src/RequestGroup.{h, cc}
  6337. * src/a2functional.h
  6338. * test/a2functionalTest.cc
  6339. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6340. * src/OptionHandlerImpl.h
  6341. * src/prefs.h
  6342. * src/Util.{h, cc}
  6343. * test/UtilTest.cc
  6344. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6345. memory usage.
  6346. * src/RequestGroupMan.{h, cc}
  6347. * src/DownloadEngine.cc
  6348. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6349. WeakHandle to SharedHandle because WeakHandle could be null.
  6350. * src/RequestGroup.{h, cc}
  6351. * src/DownloadEngineFactory.cc
  6352. * src/DownloadResult.h
  6353. Set totalLength after download finished
  6354. * src/UnknownLengthPieceStorage.{h, cc}
  6355. Keep torrent file specified in metalink in memory.
  6356. * src/Metalink2RequestGroup.cc
  6357. * src/BtDependency.cc
  6358. * src/TrueRequestGroupCriteria.h
  6359. Fixed the bug: seekg is used where seekp should be used.
  6360. * src/ByteArrayDiskWriter.cc
  6361. * test/ByteArraydiskWriterTest.cc
  6362. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6363. Fixed syntax error
  6364. * test/SequenceTest.cc
  6365. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6366. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6367. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6368. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6369. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6370. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6371. Added the check to see whether ares_host_callback accepts timeouts
  6372. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6373. * src/NameResolver.{h, cc}
  6374. * m4/libcares.m4
  6375. * configure.ac: Set C++ for language choice.
  6376. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Fixed: compilation fails without c-ares/ares
  6378. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6379. Generate http/ftp commands only when download is incomplete.
  6380. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6381. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Corrected typo. Examples are removed since they are available in man
  6383. page.
  6384. * src/version_usage.cc
  6385. Updated man page.
  6386. * doc/aria2c.1
  6387. * doc/aria2c.1.txt
  6388. * doc/makeman: Commented out sed command.
  6389. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6390. Throw DlAbortEx when a remote file is not found.
  6391. * src/HttpResponse.cc
  6392. * src/FtpNegotiationCommand.cc
  6393. * src/message.h
  6394. Overwrite an existing file if --allow-overwrite=true is given.
  6395. * src/RequestGroup.cc
  6396. Removed unused functions
  6397. * src/AbstractCommand.h
  6398. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6399. Removed 'extern' from 'extern typedef ...' in src/*.h
  6400. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Updated usage
  6402. * src/version_usage.cc
  6403. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6404. Trim announce URL
  6405. * src/DefaultBtContext.cc
  6406. * test/ShaVisitorTest.cc
  6407. Trim argument s. Give trimed s to exception constructor.
  6408. * src/Util.cc (parseInt)(parseLLInt)
  6409. * test/UtilTest.cc
  6410. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6411. Set precision back to 1.
  6412. * src/ConsoleStatCalc.cc (calculateStat)
  6413. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6414. Replaced strtol with Util::parseInt
  6415. * src/ChunkedEncoding.cc
  6416. * src/HttpConnection.cc
  6417. * src/CookieBoxFactory.cc
  6418. * src/ParameterizedStringParser.cc
  6419. * src/Util.cc
  6420. * test/UtilTest.cc
  6421. * test/OptionHandlerTest.cc
  6422. * src/Request.cc
  6423. Throw exception when empty string is given. The message for exception
  6424. changed.
  6425. * src/Util.cc (parseInt)(parseLLInt)
  6426. * src/message.h
  6427. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6428. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6429. set to 1.
  6430. * src/ConsoleStatCalc.cc (calculateStat)
  6431. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Preallocate non-requested file which is adjacent forward to requested
  6433. file('requested' files means the files given in --select-file option)
  6434. if they share a same piece.
  6435. This fixes long pause in the file system which doesn't support sparse
  6436. files like FAT32 while downloading.
  6437. * src/MultiFileAllocationIterator.{h, cc}
  6438. * test/MultiFileAllocationIteratorTest.cc
  6439. * src/FileEntry.{h, cc}
  6440. Removed unused _option.
  6441. * src/MultiDiskAdaptor.h
  6442. * test/MultiDiskAdaptorTest.cc
  6443. * src/DefaultPieceStorage.cc
  6444. Set the default value of --seed-ratio to 1.0.
  6445. If 0.0 is given, then seeding continues regardless of share ratio.
  6446. * src/version_usage.cc
  6447. * src/option_processing.cc
  6448. * src/BtSetup.cc
  6449. * doc/aria2c.1.txt
  6450. * doc/aria2c.1
  6451. Fixed: Selective download is not working in BitTorrent
  6452. * src/RequestGroup.cc
  6453. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6454. * src/PieceStorage.h
  6455. * test/MockPieceStorage.h
  6456. * src/UnknownLengthPieceStorage.h
  6457. * src/DefaultPieceStorage.{h, cc}
  6458. * src/Metalink2RequestGroup.cc
  6459. * src/RequestGroup.cc
  6460. * src/Sequence.h
  6461. * test/SequenceTest.cc
  6462. * src/IntSequence.h
  6463. * src/message.h
  6464. * src/Util.{h, cc}
  6465. * test/UtilTest.cc
  6466. Added new function 'parse' to catch exception thrown by subclass's
  6467. parseArg
  6468. * src/OptionHandler.h
  6469. * src/OptionParser.cc
  6470. * src/NameMatchOptionHandler.h
  6471. * src/OptionHandlerImpl.h
  6472. * test/OptionHandlerTest.cc
  6473. Added IntegerRangeOptionHandler. Used for --listen-port and
  6474. --select-file. Now --listen-port accepts range of port.
  6475. * src/OptionHandlerFactory.cc
  6476. * src/version_usage.cc
  6477. * src/OptionHandlerImpl.h
  6478. * src/option_processing.cc
  6479. * src/BtSetup.cc
  6480. * src/PeerListenCommand.{h, cc}
  6481. * doc/aria2c.1.txt
  6482. * doc/aria2c.1
  6483. Implemented operator< for Exception class to provide easy way to print
  6484. exception stack trace.
  6485. * src/Exception.{h, cc}
  6486. * src/main.cc
  6487. * src/option_processing.cc
  6488. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6489. * src/version_usage.cc
  6490. (showVersion): Reworked.
  6491. (showUsage): Added examples.
  6492. Removed Hint for total length and file name.
  6493. * src/Metalink2RequestGroup.cc
  6494. * src/RequestGroup.{h, cc}
  6495. * src/HttpResponseCommand.cc
  6496. * src/FtpNegotiationCommand.cc
  6497. Now --follow-torrent and --follow-metalink option work properly.
  6498. * src/RequestGroup.cc
  6499. Updated man page
  6500. * doc/aria2c.1.txt
  6501. * doc/aria2c.1
  6502. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. Removed.
  6504. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  6505. Use Segment::operator==()
  6506. * src/HttpConnection.cc
  6507. * src/Segment.h
  6508. Updated usage
  6509. * src/version_usage.cc
  6510. Added EINTR treatment.
  6511. * src/SocketCore.cc
  6512. * src/AbstractDiskWriter.cc
  6513. Rewritten.
  6514. * src/Util.cc (rangedFileCopy)
  6515. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Fixed typo.
  6517. * src/version_usage.cc
  6518. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6519. Implemented. Now -c option works fine.
  6520. * src/DefaultPieceStorage.cc (markPiecesDone)
  6521. * test/DefaultPieceStorageTest.cc
  6522. Removed.
  6523. * src/SegmentMan.{h, cc}
  6524. (markAllPiecesDone)
  6525. (markPieceDone)
  6526. Synchronized po files with
  6527. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6528. * src/fr.po
  6529. * src/ru.po
  6530. * src/de.po
  6531. * src/ja.po
  6532. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Added ifdef and some modifications to compile without BitTorrent,
  6534. Metalink, MessageDigest
  6535. support.
  6536. * src/PieceHashCheckIntegrityEntry.cc
  6537. * src/MetalinkEntry.h
  6538. * src/version_usage.cc
  6539. * src/main.cc
  6540. * src/DownloadEngine.{h, cc}
  6541. * src/Metalink2RequestGroup.cc
  6542. * src/Peer.cc
  6543. * src/RequestGroup.cc
  6544. * src/MetalinkHelper.cc
  6545. * test/DefaultPieceStorageTest.cc
  6546. * test/MetalinkPostDownloadHandlerTest.cc
  6547. * test/Metalink2RequestGroupTest.cc
  6548. Hide TOTAL SPD when all downloads complete.
  6549. * src/ConsoleStatCalc.cc
  6550. Log target system information.
  6551. * src/main.cc
  6552. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6553. Now --metalink-location accepts a comma-deliminated list of locations.
  6554. * src/MetalinkEntry.{h, cc}
  6555. * test/MetalinkEntryTest.cc
  6556. * src/version_usage.cc
  6557. * src/Metalink2RequestGroup.cc
  6558. * src/Xml2MetalinkProcessor.cc
  6559. * test/Xml2MetalinkProcessorTest.cc
  6560. * doc/aria2c.1.txt
  6561. * doc/aria2c.1
  6562. * src/Util.cc (toUpper)(toLower): Rewritten.
  6563. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. Added the ability to detect duplicate download entry which is about to
  6565. download the same file other RequestGroup is downloading.
  6566. * src/RequestGroup.cc
  6567. * src/HttpResponseCommand.cc
  6568. * src/FtpNegotiationCommand.cc
  6569. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6570. Recalculates download progress when loading a control file,
  6571. if the piece length of DownloadContext is different from the one saved
  6572. in the control file. Currently in-flight pieces are ignored.
  6573. * src/DefaultBtProgressInfoFile.cc
  6574. * test/DefaultBtProgressInfoFileTest.cc
  6575. * src/Util.{h, cc}
  6576. * test/UtilTest.cc
  6577. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Do not rotate tiers in announce-list.
  6579. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  6580. AnnounceList::allTiersFailed() used instead to detect whether all
  6581. tiers are tried and failed.
  6582. * test/DefaultBtAnnounceTest.cc
  6583. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  6584. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  6585. * test/AnnounceListTest.cc
  6586. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  6587. clause. Catch RecoverableException instead of DlRetryEx instead.
  6588. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Implemented checksum validation feature(1 checksum for each file)
  6590. The validation takes place after the download.
  6591. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  6592. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  6593. * src/CheckIntegrityCommand.cc: Changed log message.
  6594. * src/Metalink2RequestGroup.cc: Set checksum to
  6595. SingleFileDownloadContext.
  6596. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  6597. PieceHashCheckIntegrity class.
  6598. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  6599. PieceHashCheckIntegrity class.
  6600. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  6601. * src/IteratableValidator.h: New class.
  6602. * src/message.h
  6603. * src/CheckIntegrityEntry.{h, cc}
  6604. * src/IteratableChunkChecksumValidator.{h, cc}
  6605. * src/SingleFileDownloadContext.h
  6606. * src/DownloadCommand.cc
  6607. --allow-overwrite=true is no longer needed to check file integrity
  6608. before download in BitTorrent download.
  6609. * src/RequestGroup.cc (getInitialCommand)
  6610. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  6611. throws exception.
  6612. * src/RequestGroupMan.cc (getInitialCommands)
  6613. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6614. urlencode the given url inside Request::parseUrl(...)
  6615. * src/Request.{h, cc}
  6616. * src/Util.{h, cc}
  6617. * test/RequestTest.cc
  6618. Removed #!metalink3! notation support because it is deleted from
  6619. the metalink specification.
  6620. * src/Request.{h, cc}
  6621. * test/RequestTest.cc
  6622. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Don't connect server before checking file integrity at startup, if
  6624. filesize and output file path are known.
  6625. * src/AbstractCommand.cc
  6626. * src/StreamFileAllocationEntry.cc
  6627. * src/Metalink2RequestGroup.cc
  6628. * src/RequestGroup.{h, cc}
  6629. * src/HttpResponseCommand.cc
  6630. * src/FtpNegotiationCommand.cc
  6631. Added DownloadFailureException. If it is thrown, RequestGroup should
  6632. halt.
  6633. * src/AbstractCommand.cc
  6634. * src/DownloadFailureException.h
  6635. * src/RequestGroup.cc
  6636. Catch RecoverableException, instead of DlAbortEx.
  6637. * src/RequestGroupMan.cc
  6638. * src/FillRequestGroupCommand.cc
  6639. * src/MetaFileUtil.cc
  6640. * src/IteratableChunkChecksumValidator.cc
  6641. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  6642. getGID())
  6643. * src/CheckIntegrityCommand.cc
  6644. * src/message.h
  6645. Print gid instead of idx.
  6646. * src/RequestGroupMan.cc
  6647. Removed exception throwers declaration.
  6648. * src/DirectDiskAdaptor.{h, cc}
  6649. * src/SocketCore.{h, cc}
  6650. * src/MultiDiskAdaptor.{h, cc}
  6651. * src/HttpConnection.{h, cc}
  6652. * src/HttpResponse.{h, cc}
  6653. * src/DiskAdaptor.{h, cc}
  6654. * src/CopyDiskAdaptor.{h, cc}
  6655. * src/MultiDiskAdaptor.{h, cc}
  6656. * src/HttpHeaderProcessor.{h, cc}
  6657. * src/AbstractSingleDiskAdaptor.{h, cc}
  6658. * src/Util.{h, cc}
  6659. * test/UtilTest.cc
  6660. * src/DefaultDiskWriter.{h, cc}
  6661. * src/FtpConnection.{h, cc}
  6662. * src/AbstractDiskWriter.{h, cc}
  6663. Removed duplicate code.
  6664. * src/StreamCheckIntegrityEntry.cc
  6665. Removed unnecessary include.
  6666. * src/DiskWriter.h
  6667. Included Exception.h
  6668. * src/option_processing.cc
  6669. Included 2 files and added doc
  6670. * src/TrackerWatcherCommand.cc
  6671. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  6672. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6673. Changed CheckIntegrityEntry interface so that it can define
  6674. the action when all the chunk checksums are valid.
  6675. * src/CheckIntegrityEntry.h
  6676. * src/StreamCheckIntegrityEntry.{h, cc}
  6677. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  6678. are valid, then aira2 goes to seeding mode. Sometimes it is better
  6679. to exit rather than doing seeding. So, it would be good to toggle this
  6680. behavior.
  6681. * src/CheckIntegrityCommand.cc
  6682. * src/AbstractCommand.cc
  6683. * src/RequestGroup.cc
  6684. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. Reflect the download length of in-flight pieces.
  6686. It makes the download length readout more precise.
  6687. * src/DefaultPieceStorage.{h, cc}
  6688. * test/DefaultPieceStorageTest.cc
  6689. * src/a2functional.h
  6690. * test/a2functionalTest.cc
  6691. Lower CPU load when --max-download-limit is used.
  6692. There is up and down in speed indicator when enabling
  6693. http-pipelining but a download goes well. I think the problem is that
  6694. because http-pipelining is enabled, DownloadCommand is created for
  6695. each segment and in its constructor, PeerStat::downloadStart() is
  6696. called. In PeerStat::downloadStart(), speed calculation object is
  6697. reseted, which makes download speed zero.
  6698. * src/DownloadCommand.cc
  6699. Rewritten using accumulate.
  6700. * src/RequestGroupMan.cc (calculateStat)
  6701. Code clearnup.
  6702. * src/FtpNegotiationCommand.cc
  6703. * src/HttpResponseCommand.cc
  6704. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Fixed: Can not resume: aria2 reports download already finished.
  6706. * src/AbstractCommand.{h, cc}
  6707. * src/HttpResponseCommand.cc
  6708. * src/FtpNegotiateCommand.cc
  6709. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Now a file is stored in the directory specified in .metalnk file
  6711. (file[@name]).
  6712. * src/Metalink2RequestGroup.cc
  6713. Create the directory structure when opening the file if it doesn't
  6714. exist.
  6715. * src/AbstractDiskWriter.cc
  6716. * src/Util.{h, cc}
  6717. * src/File.h
  6718. * test/UtilTest.cc
  6719. Removed file name comparison
  6720. * src/Metalink2RequestGroup.cc
  6721. * src/HttpResponseCommand.cc
  6722. Rewritten using Util::mkdirs()
  6723. * src/FileEntry.cc (setupDir)
  6724. * test/FileEntryTest.cc
  6725. Updated doc
  6726. * src/SingleFileDownloadContext.h
  6727. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Now SleepCommand dispatches nextCommand when halt is requested.
  6729. It avoids a possible long wait after hitting CTRL-C.
  6730. * src/SleepCommand.{h, cc}
  6731. * src/RequestGroupAware.{h, cc}
  6732. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6733. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  6734. to open listen port, then remove the port number from the tracker
  6735. request.
  6736. * src/DefaultBtAnnounce.cc
  6737. * test/DefaultBtAnnounceTest.cc
  6738. * test/MockPieceStorage.h
  6739. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  6740. them more testable.
  6741. * src/DefaultBtAnnounce.{h, cc}
  6742. * src/DefaultBtContext.{h, cc}
  6743. * src/Util.{h, cc}
  6744. * test/DefaultBtAnnounceTest.cc
  6745. * test/DefaultBtContextTest.cc
  6746. * test/UtilTest.cc
  6747. Added 'B' to upload bytes readout.
  6748. * src/ConsoleStatCalc.cc
  6749. Now the listen port for BitTorrent download is opened when it is
  6750. needed.
  6751. * src/DownloadEngineFactory.cc
  6752. * src/BtSetup.{h, cc}
  6753. * src/PeerListenCommand.{h, cc}
  6754. Now an exception thrown while parsing tracker response is now logged.
  6755. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  6756. called, which means no retry is made in this case, assuming a tracker
  6757. has a problem.
  6758. * src/TrackerWatcherCommand.cc
  6759. Fixed: downloading a file whose length is unkown fails.
  6760. * src/DownloadCommand.cc
  6761. Simplified prepareForNextSegment()
  6762. * src/DownloadCommand.cc
  6763. Updated
  6764. * po/POTFILES.in
  6765. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Re-implemented a file listing for Metalink, which was dropped while
  6767. http/ftp/torrent integration was being implemented.
  6768. * src/MetalinkHelper.{h, cc}: New class.
  6769. * test/MetalinkHelperTest.cc
  6770. * src/main.cc
  6771. * src/Metalink2RequestGroup.cc
  6772. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6773. Added the ability to display the detailed torrent file information.
  6774. Now -S option gives not only a file listing, but also total download
  6775. length, info hash, announce URI, piece length, the number of pieces,
  6776. and mode(single or multi-torrent).
  6777. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  6778. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  6779. KiB)
  6780. * test/UtilTest.cc
  6781. * src/main.cc
  6782. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6783. Added ftp://USER:PASSWD@Servername automatic parsing.
  6784. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  6785. _password. Recognize username and password in URI.
  6786. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  6787. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  6788. * src/RequestFactory.{h, cc}: Removed.
  6789. * src/AuthConfigFactory.{h, cc}: New class.
  6790. * src/FtpConnection.cc: Use AuthConfigFactory.
  6791. * src/HttpRequest.cc: Use AuthConfigFactory.
  6792. * test/HttpRequestTest.cc: Updated.
  6793. * test/RequestTest.cc: Updated.
  6794. * test/AuthConfigFactoryTest.cc: New class.
  6795. * test/RequestFactoryTest.cc: Removed.
  6796. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Use RequestGroup::allDownloadFinished() to decide whether the control
  6798. file should be removed or saved.
  6799. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  6800. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  6801. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. Use File::renameTo()
  6803. * src/DefaultBtProgressInfoFile.cc
  6804. Added --no-file-allocation-limit command-line option.
  6805. * src/version_usage.cc
  6806. * src/option_processing.cc
  6807. * src/OptionHandlerFactory.cc
  6808. * src/RequestGroup.{h, cc}
  6809. * src/BtCheckIntegrityEntry.cc
  6810. * src/StreamCheckIntegrityEntry.cc
  6811. * src/prefs.h
  6812. * doc/aria2c.1.txt
  6813. * doc/aria2c.1
  6814. Now prealloc is the default value for --file-allocation option.
  6815. * src/version_usage.cc
  6816. * src/option_processing.cc
  6817. * doc/aria2c.1.txt
  6818. * doc/aria2c.1
  6819. Don't URL-encode user-agent.
  6820. * src/HttpRequest.cc
  6821. Updated translations
  6822. * po/LINGUAS: Added nl for Dutch translation.
  6823. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  6824. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  6825. * po/POTFILES.in: Updated.
  6826. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6827. Added the ability to recognize url-list in a torrent file.
  6828. The retrieved URLs are attached to the corresponding FileEntry.
  6829. * src/DefaultBtContext.{h, cc}
  6830. * src/FileEntry.{h, cc}
  6831. * test/DefaultBtContextTest.cc
  6832. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6833. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  6834. after the download finishes.
  6835. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6836. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  6837. the data smaller than block length.
  6838. A block length can be specified by constructor's argument.
  6839. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  6840. Get a missing piece in the range of given FileEntry. This function is
  6841. not used in the program yet.
  6842. * src/Util.h: Added some macros.
  6843. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6844. Added HTTP/1.1 keep alive and pipelining support.
  6845. See --enable-http-keep-alive and --enable-http-pipelining option.
  6846. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  6847. Segment.
  6848. * src/HttpDownloadCommand.{h, cc}
  6849. * src/OptionHandlerFactory.cc
  6850. * src/HttpConnection.{h, cc}
  6851. * src/version_usage.cc
  6852. * src/HttpInitiateConnectionCommand.cc
  6853. * src/FtpInitiateConnectionCommand.cc
  6854. * src/Segment.h
  6855. * src/HttpRequestCommand.{h, cc}
  6856. * src/option_processing.cc
  6857. * src/prefs.h
  6858. * src/HttpResponseCommand.cc
  6859. * src/SegmentMan.{h, cc}
  6860. * src/FtpNegotiateCommand.cc
  6861. * src/HttpProxyResponseCommand.cc
  6862. * src/Request.cc
  6863. * src/HttpRequest.cc
  6864. * src/DownloadCommand.cc
  6865. * test/HttpRequestTest.cc
  6866. * test/RequestTest.cc
  6867. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  6869. finished.
  6870. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6871. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  6872. catching it inside the method.
  6873. When no file entry is found in a metalink without querying user
  6874. preferences, throw the exception with the error message that suggests
  6875. metalink file is probably broken.
  6876. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  6877. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Fixed the bug that prevents remote Metalink/Torrent file from begin
  6879. processed.
  6880. * src/RequestGroupMan.cc (removeStoppedGroup)
  6881. Added debug message.
  6882. * src/BtPostDownloadHandler.cc
  6883. * src/MetalinkPostDownloadHandler.cc
  6884. * src/PostDownloadHandler.{h, cc}
  6885. * src/RequestGroup.cc
  6886. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6887. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  6888. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  6890. stops and there are any unfinished or in-progress downloads.
  6891. Added the legend of "stat".
  6892. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Throw exception when chunck checksum verification fails.
  6894. * src/DownloadCommand.cc (validatePieceHash): New function.
  6895. * src/PiecedSegment.{h, cc} (clear): New function.
  6896. * src/GrowSegment.{h, cc} (clear): New function.
  6897. * src/Segment.h (clear): New function.
  6898. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  6899. * test/SegmentTest.cc
  6900. * test/GrowSegmentTest.cc
  6901. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6902. Do not send referer when redirected.
  6903. * src/Request.cc (redirectUrl)
  6904. * test/RequestTest.cc
  6905. * test/HttpRequestTest.cc
  6906. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. Implemented BitTorrent/http/ftp integrated download.
  6908. I've rewritten lots of files and now some headers have forward
  6909. class declarations to reduce compile time.
  6910. The implementation is extremely alpha stage, I recommend to use this
  6911. for testing purpose only.
  6912. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Fixed the compilation error on 64bit platform.
  6914. * test/HttpHeaderProcessorTest.cc
  6915. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Merged Ross's patch that fixes compilation problem in MinGW
  6917. * test/DefaultBtProgressInfoFileTest.cc
  6918. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Updated fr.po by sebone
  6920. * po/fr.po
  6921. Updated man page.
  6922. * doc/aria2c.1.txt
  6923. * Release 0.11.3
  6924. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  6926. failure in Metalink.
  6927. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Automatically save *.aria2 control file of http/ftp download in every
  6929. 60 seconds.
  6930. * src/AutoSaveCommand.{h, cc}: New class.
  6931. * src/TimeBasedCommand.{h, cc}: New class.
  6932. * src/DownloadEngineFactory.cc (newConsoleEngine)
  6933. Disable parameterized URI support by default. Added -P option to
  6934. enable the feature.
  6935. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  6936. * src/OptionHandlerFactory.cc
  6937. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  6938. Updated Japanese translation.
  6939. * po/ja.po
  6940. Updated man page.
  6941. * doc/aria2c.1.txt
  6942. * Release 0.11.3-rc
  6943. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  6945. it is successful, then renamed to *.aria2.
  6946. This prevents *.aria2 file from being truncated or corrupted when
  6947. file system becomes out of space.
  6948. * src/DefaultBtProgressInfoFile.cc (save)
  6949. * src/SegmentMan.cc (save)
  6950. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  6951. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Reduced the fragmentation of bitfield in http/ftp download.
  6953. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  6954. * test/BitfieldManTest.cc
  6955. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Added the ability to disable segmented download in .metalink.
  6957. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  6958. 'url' tag.
  6959. * src/MetalinkEntry.{h, cc}
  6960. * src/RequestResource.{h, cc}
  6961. * src/MetalinkRequestInfo.cc
  6962. * src/Xml2MetalinkProcessor.cc
  6963. * test/Xml2MetalinkProcessorTest.cc
  6964. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Added parameterized URI support.
  6966. * src/main.cc: -Z option added.
  6967. * src/OptionHandlerFactory.cc
  6968. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  6969. * src/PStringDatum.h: New class.
  6970. * src/PStringSegment.{h,cc}: New class.
  6971. * src/PStringNumLoop.h: New class.
  6972. * src/PStringSelect.h: New class.
  6973. * src/NumberDecorator.h: New class.
  6974. * src/FixedWidthNumberDecorator.h: New class.
  6975. * src/AlphaNumberDecorator.h: New class.
  6976. * src/PStringVisitor.h: New class.
  6977. * src/PStringBuildVisitor.{h,cc}: New class.
  6978. * src/ParameterizedStringParser.{h,cc}: New class.
  6979. * src/Util.{h,cc}
  6980. (isNumber): New function.
  6981. (isLowercase): New function.
  6982. (isUppercase): New function.
  6983. (alphaToNum): New function.
  6984. * test/ParameterizedStringParserTest.cc: New class.
  6985. * test/AlphaNumberDecoratorTest.cc: New class.
  6986. * test/PStringBuildVisitorTest.cc: New class.
  6987. * test/UtilTest.cc
  6988. (testIsNumber): New function.
  6989. (testIsLowercase): New function.
  6990. (testIsUppercase): New function.
  6991. (testAlphaToNum): New function.
  6992. Added '\n' after the error message
  6993. * src/RequestInfo.h (printDownloadAbortMessage)
  6994. Added auto file renaming feature in http(s)/ftp download.
  6995. * src/main.cc: Added --auto-file-renaming command-line option.
  6996. * src/OptionHandlerFactory.cc
  6997. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  6998. * src/RequestGroup.{h, cc}
  6999. (shouldCancelDownloadForSafety): Rewritten
  7000. (tryAutoFileRenaming): New function.
  7001. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7002. * src/HttpResponseCommand.cc
  7003. (executeInternal): Removed the call to RequestGroupMan::
  7004. isSameFileBeingDownloaded()
  7005. * src/FtpNegotiateCommand.cc
  7006. (recvSize): Removed the call to RequestGroupMan::
  7007. isSameFileBeingDownloaded()
  7008. * test/RequestGroupTest.cc: New class.
  7009. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7011. IO.
  7012. * src/DefaultBtProgressInfoFile.cc
  7013. * src/MetaFileUtil.cc
  7014. * src/SimpleLogger.cc
  7015. * src/SegmentMan.cc
  7016. * src/Util.cc
  7017. * src/Platform.cc
  7018. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7019. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7020. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7022. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7023. Fixed the bug that prevents file allocation is not done when
  7024. dowloading multi-torrent file.
  7025. * src/AbstractDiskWriter.cc (openFile)
  7026. Increase the maximum number of -j option from 15 to 45.
  7027. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7028. Added fr.po, thanks to Charles Landemaine.
  7029. * po/fr.po
  7030. * po/LINGUAS
  7031. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7032. gcc 3.4.4 support:
  7033. * src/DefaultBtContext.cc: int32_t -> int
  7034. * src/main.cc: int -> int32_t, int32_t -> int
  7035. * src/messageDigest.h: uint32_t -> unsigned int
  7036. * src/NameResolver.h: int32_t -> int
  7037. * src/PeerConnection.cc: int -> int32_t
  7038. * src/SpeedCalc.cc: int32_t -> int
  7039. * src/TrackerUpdateCommand.h: int -> int32_t
  7040. * src/Util.cc: int32_t -> int
  7041. * src/Util.h: int32_t -> int
  7042. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  7043. * test/AnnounceListTest.cc: int -> int32_t
  7044. * test/ChunkedEncodingTest.cc: int -> int32_t
  7045. * test/DataTest.cc: int -> int32_t
  7046. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  7047. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  7048. * test/DefaultPieceStorageTest.cc: int -> int32_t
  7049. * test/FeatureConfigTest.cc: int -> int32_t
  7050. * test/MetalinkEntryTest.cc: int -> int32_t
  7051. * test/MockBtRequestFactory.h: int -> int32_t
  7052. * test/MockPieceStorage.h: int -> int32_t
  7053. * test/OptionTest.cc: int -> int32_t
  7054. * test/RequestTest.cc: int -> int32_t
  7055. * test/SegmentManTest.cc: int -> int32_t
  7056. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  7057. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7058. Move sleep functions to Util class:
  7059. * src/Util.cc
  7060. (sleep): New function.
  7061. (usleep): New function.
  7062. * src/DownloadCommand.cc: sleep -> Util::sleep
  7063. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  7064. MinGW build enhancements. The following files are added:
  7065. * src/timegm.{c,h}
  7066. Changes to support the above new files:
  7067. * configure.ac
  7068. * src/Makefile.am
  7069. * src/a2time.h
  7070. * src/Util.cc:
  7071. * src/strptime.c: Added support for %Z option.
  7072. Fixed MinGW non-blocking bug.
  7073. * src/SocketCore.cc
  7074. * src/HttpRequestCommand.cc
  7075. Miscellenous build fixes/enhancements.
  7076. * configure.ac: Added summary report.
  7077. * src/Platform.h: Tweaked #include's.
  7078. * src/a2netcompat.h: Tweaked #include's.
  7079. * src/strptime.h: Tweaked #include's.
  7080. * src/gai_strerror.c: Tweaked #include's.
  7081. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7082. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7083. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7084. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7085. Increased the initial connection size in BitTorrent download to 40.
  7086. * src/BtRuntime.h
  7087. Added the usage message of --peer-id-prefix option.
  7088. * src/main.cc
  7089. * Release 0.11.2
  7090. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. MessageDigestHelper is introduced in order to simplify the use
  7092. of message digest. Removed repeated code.
  7093. The message digest algorithm is now specified by string, like "sha1",
  7094. "md5".
  7095. * src/messageDigest.{h, cc}
  7096. * src/MessageDigestHelper.{h, cc}: New class.
  7097. * src/DefaultPieceStorage.cc
  7098. * src/DefaultBtContext.{h, cc}
  7099. (computeFastSet): New function.
  7100. (setInfoHash): Added for unit testing.
  7101. (setNumPieces): Added for unit testing.
  7102. * src/DefaultBtInteractive.cc
  7103. * src/BtPieceMessage.cc
  7104. * src/Peer.cc
  7105. * src/Checksum.h
  7106. * src/message.h
  7107. * src/IteratableChecksumValidator.h
  7108. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7109. inside it.
  7110. * src/SegmentMan.{h, cc}
  7111. (checkIntegrity): Removed.
  7112. * src/IteratableChunkChecksumValidator.{h, cc}
  7113. * src/Util.h
  7114. (sha1Sum): Removed.
  7115. (simpleMessageDigest): Removed.
  7116. (fileChecksum): Removed.
  7117. (computeFastSet): Removed.
  7118. * src/ShaVisitor.cc
  7119. * src/ChunkChecksum.h
  7120. * src/DownloadCommand.cc
  7121. Removed messageDigest virtual functions.
  7122. * src/MultiDiskAdaptor.{h, cc}
  7123. * src/DiskAdaptor.h
  7124. * src/ByteArrayDiskWriter.h
  7125. * src/DiskWriter.h
  7126. * src/DiskAdaptorWriter.h
  7127. * src/AbstractSingleDiskAdaptor.{h, cc}
  7128. * src/AbstractDiskWriter.{h, cc}
  7129. Fixed comilation error when message digest is disabled.
  7130. * src/MetalinkEntry.{h, cc}
  7131. * src/MetalinkRequestInfo.cc
  7132. Removed srandom and random.
  7133. * src/SimpleRandomizer.h
  7134. Added size() virtual function to DiskAdaptor
  7135. * src/MultiDiskAdaptor.h
  7136. Fixed the bug that causes that files are not opened correctly in
  7137. multi-file torrent.
  7138. * src/TorrentRequestInfo.cc
  7139. * src/MultiDiskAdaptor.cc
  7140. Added SHA256 support
  7141. * src/messageDigest.cc
  7142. * src/Xml2MetalinkProcessor.cc
  7143. Show supported message digest algorithms
  7144. * src/main.cc
  7145. Updated contact info.
  7146. * src/main.cc
  7147. Applied Ross's patch
  7148. * src/a2netcompat.h
  7149. * src/main.cc
  7150. Fixed the bug that prevents a remote metalink from not being processed
  7151. even if '-o foo.metalink' is specified.
  7152. * src/MetalinkRequestInfo.cc
  7153. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Merged Dan's patch:
  7155. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7156. Use va_copy to avoid core dump on amd64:
  7157. * src/SimpleLogger.cc
  7158. Updated contact info.
  7159. * src/main.cc
  7160. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7161. digest is not available.
  7162. * src/MetalinkEntry.h
  7163. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7164. Make a2netcompat.h include a2io.h to fix compilation error:
  7165. * src/a2netcompat.h
  7166. * src/SocketCore.cc: Removed include of a2io.h
  7167. * src/Util.cc: Removed include of a2io.h
  7168. Gather time related functions to a2time.h:
  7169. * src/a2time.h: New file.
  7170. * src/DefaultPeerStorage.cc
  7171. * src/SimpleLogger.cc
  7172. * src/Util.{h, cc}
  7173. * src/SimpleRandomizer.h
  7174. * src/TimeA2.{h,cc}
  7175. * src/DownloadCommand.cc
  7176. * src/main.cc
  7177. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7178. a2netcompat.h:
  7179. * src/NameResolver.cc
  7180. Fixed compilation error without openssl:
  7181. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7182. Added default block to suppress compiler warnings:
  7183. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7184. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7185. MinGW build enhancements. The following files are added:
  7186. * src/gai_strerror.{c,h}
  7187. * src/gettimeofday.{c,h}
  7188. Changes to support the above new files:
  7189. * configure.ac
  7190. * src/Makefile.am
  7191. * src/a2netcompat.h
  7192. * src/TimeA2.cc
  7193. * src/DefaultPeerStorage.cc
  7194. * src/NameResolver.cc: removed mingw_strerror() function.
  7195. * src/SocketCore.cc: removed mingw_strerror() function.
  7196. Miscellaneous MinGW build fixes.
  7197. * src/a2io.h: Use _lseeki64() instead of lseek()
  7198. * src/common.h
  7199. * src/DefaultFileAllocator.cc
  7200. * src/GlowFileAllocator.cc
  7201. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7202. * src/NameResolver.cc
  7203. (callback): Changed int32_t to int.
  7204. (resolve): Changed int32_t to int.
  7205. * src/Platform.cc
  7206. * src/Platform.h
  7207. * test/MultiDiskWriterTest.cc
  7208. * test/PeerMessageUtilTest.cc
  7209. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7210. Other enhancements and fixes.
  7211. * src/HttpRequestCommand.cc
  7212. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7213. * src/SocketCore.cc:
  7214. (error): New function to abstract errno/WSAGetLastError().
  7215. (errorMsg): New function to abstract errno/WSAGetLastError().
  7216. (initiateSecureConnection): Added more detailed error reporting.
  7217. * src/SocketCore.h: Added private variable blocking, to allow
  7218. proper handling of OpenSSL psuedo-errors.
  7219. * src/message.h
  7220. (EX_SSL_INIT_FAILURE)
  7221. (EX_SSL_IO_ERROR)
  7222. (EX_SSL_PROTOCOL_ERROR)
  7223. (EX_SSL_UNKNOWN_ERROR)
  7224. (EX_SSL_CONNECT_ERROR)
  7225. (EX_SOCKET_BLOCKING)
  7226. (EX_SOCKET_NONBLOCKING)
  7227. (EX_SOCKET_UNKNOWN_ERROR)
  7228. * src/Util.cc
  7229. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7230. reserved name.
  7231. (httpGMT): Fixed typo.
  7232. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7233. Merged Ross's win32 patch(manually)
  7234. In the course of merging, following files are added.
  7235. * src/strptime.{h,c}
  7236. * src/libgen.{h,c}
  7237. * src/inet_aton.{h,c}
  7238. * src/Platform.{h,cc}
  7239. * src/localtime_r.{h,c}
  7240. * src/getaddrinfo.{h,c}
  7241. I've gethered network related things, and put them to following file:
  7242. * src/a2netcompat.h
  7243. Also io related things are put to following file:
  7244. * src/a2io.h
  7245. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7246. * src/message.h
  7247. (MSG_ALLOCATION_COMPLETED)
  7248. (EX_TOO_LARGE_FILE)
  7249. (EX_SIZE_MISMATCH)
  7250. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7251. (EX_INVALID_CHUNK_CHECKSUM)
  7252. (EX_INVALID_RANGE_HEADER)
  7253. * src/FileAllocationCommand.cc
  7254. * src/HttpResponse.cc
  7255. * src/RequestGroup.cc
  7256. * src/MultiDiskAdaptor.cc
  7257. * src/OptionHandlerImpl.h
  7258. * src/HttpResponseCommand.cc
  7259. * src/FtpNegotiateCommand.cc
  7260. * src/IteratableChecksumValidator.cc
  7261. * src/SegmentMan.cc
  7262. * src/ChunkChecksumValidator.cc
  7263. Added Randomizer::getRandomNumber(long int)
  7264. * src/Randomizer.h (getRandomNumber)
  7265. * src/SimpleRandomizer.h (getRandomNumber)
  7266. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7267. * src/Util.cc (randomAlpha): Use this new function.
  7268. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Converted int's to in32_t. long long int's are also converted to
  7270. int64_t
  7271. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Fixed the bug that prevents cookies from being sent to the server
  7273. if the domain of cookie is FQDN and starts with ".".
  7274. * src/Cookie.cc (match)
  7275. To add the ability to change peer id.
  7276. * src/DefaultBtContext.h
  7277. (_peerIdPrefix): New variable
  7278. (setPeerIdPrefix): New function.
  7279. * src/torrentRequestInfo.cc
  7280. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7281. DefaultBtContext.
  7282. * src/main.cc (main): Added peer-id-prefix command-line option.
  7283. The usage message is not added yet.
  7284. * src/DefaultBtContext.cc
  7285. (generatePeerId): Use _peerIdPrefix.
  7286. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7287. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7288. Fixed the bug that prevents filename in content-disposition from
  7289. being retrieved when filename is not quoted.
  7290. * src/Util.cc (getContentDispositionFilename)
  7291. Fixed the bug that causes infinate loop and memory leak when file open
  7292. operation failed.
  7293. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7294. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7295. Fixed the bug that causes segfault when all URIs specified are
  7296. unsupported.
  7297. * src/RequestGroupMan.cc (getInitialCommands)
  7298. Check if RequestGroup::createNextCommand() returns empty list of
  7299. commands.
  7300. * src/RequestGroup.cc (createNextCommand)
  7301. Change log level from info to error so that users can notice that
  7302. an error occurred.
  7303. Fixed the bug that causes segfault when a zero-sized file is
  7304. downloaded.
  7305. * src/BitfieldMan.cc (isAllBitSet)
  7306. Return true if bitfieldLength is 0.
  7307. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. * src/main.cc
  7309. (showUsage): Added 3 usage examples for metalink download.
  7310. Replace MetalinkChunkChecksum with ChunkChecksum.
  7311. * src/MetalinkChunkChecksum.h: Removed.
  7312. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7313. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7314. * src/Xml2MetalinkProcessor.cc
  7315. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7316. * src/MetalinkRequestInfo.cc (execute)
  7317. * Release 0.11.1
  7318. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Reads URIs from stdin when "-i -" is specified.
  7320. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7321. * src/UriListParser.h, src/UriListParser.cc: New class.
  7322. * src/StreamUriListParser.h: New class.
  7323. * src/FileUriListParser.h: New class.
  7324. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7325. instead of UriFileListParser.
  7326. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7327. Made console readout more readable.
  7328. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7329. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7330. Fix the bug that causes -s option not to work.
  7331. * src/main.cc (main)
  7332. * src/a2algo.h: New file.
  7333. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Create directory structure specified in metalink file.
  7335. * src/RequestGroup.h, src/RequestGroup.cc
  7336. (initAndOpenFile): Create a directory to store files if it does not
  7337. exist.
  7338. (getDir): New function.
  7339. Added ETA and download speed for an individual file to readout.
  7340. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7341. * src/RequestGroup.h
  7342. (calculateDownloadSpeed): New function.
  7343. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7344. Made -S option work with metalink file and provided selective download
  7345. to metalink.
  7346. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7347. (filename): Removed.
  7348. (file): New variable.
  7349. (size): Removed.
  7350. (operator=): Updated.
  7351. (getPath): New function.
  7352. (getLength): New function.
  7353. (toFileEntry): New function.
  7354. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7355. (execute): Use toStream.
  7356. (showFileEntry): Removed.
  7357. * src/MetalinkRequestInfo.h
  7358. (targetFiles): New variable.
  7359. (setTargetFiles): New variable.
  7360. * src/MetalinkRequestInfo.cc
  7361. (execute): Added the ability to print file information included in
  7362. a metalink file.
  7363. Added selective download mode to metalink.
  7364. * src/main.cc
  7365. (showUsage): Updated to denote that -S and --select-file options are
  7366. applicable to metalink.
  7367. * src/FileEntry.h
  7368. (operator=): New function.
  7369. (getBasename): New function.
  7370. (getDirname): New function.
  7371. * src/Util.h, src/Util.cc
  7372. (toStream): New function.
  7373. * src/Xml2MetalinkProcessor.cc: Updated.
  7374. Made aria2 work with metalink with directory structure.
  7375. * src/File.h, src/File.cc
  7376. (getBasename): New function.
  7377. (getDirname): New function.
  7378. * src/RequestGroup.h, src/RequestGroup.cc
  7379. (_topDir): New variable.
  7380. (setTopDir): New function.
  7381. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7382. Rewrote HTTP header parsing with stringstream.
  7383. * src/HttpConnection.h, src/HttpConnection.cc
  7384. (HttpRequestEntry): New class.
  7385. (headerBuf): Removed.
  7386. (headerBufLength): Removed.
  7387. (outstandingHttpRequests): Now its element type is
  7388. HttpRequestEntryHandle.
  7389. (findEndOfHeader): Removed.
  7390. (receiveResponse): Rewritten.
  7391. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7392. Updated doc for -j option to notice that it should be used with -i
  7393. option.
  7394. * src/main.cc (showUsage)
  7395. Removed unused classes.
  7396. * src/RequestInfo.h
  7397. (FileInfo): Removed.
  7398. (checksum): Removed.
  7399. (fileInfo): Removed.
  7400. (setChecksum): Removed.
  7401. (getChecksum): Removed.
  7402. (getFileInfo): Removed.
  7403. Use ISO units.
  7404. * src/ConsoleDownloadEngine.cc
  7405. * src/TorrentConsoleDownloadEngine.cc
  7406. * src/Util.cc (abbrevSize)
  7407. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Added the default listening ports to the help message.
  7409. * src/main.cc (showUsage)
  7410. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Reduce the number of calls to gettimeofday to lower CPU load.
  7412. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7413. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7414. * src/Peer.h (calculateUploadSpeed): New function.
  7415. (calculateDownloadSpeed): New function.
  7416. * src/DefaultPeerStorage.cc
  7417. (CalculateStat): Added _now variable.
  7418. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7419. and Peer::calculateUploadSpeed(const struct timeval&)
  7420. Drop connection if no request or piece message is exchanged in
  7421. a certain interval.
  7422. * src/DefaultBtInteractive.h
  7423. (btRuntime): New variable.
  7424. (inactiveCheckPoint): New variable.
  7425. (checkActiveInteraction): New function.
  7426. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7427. request or piece message is received.
  7428. (checkActiveInteraction): New function.
  7429. (doInteractionProcessing): Call checkActiveInteraction.
  7430. Fixed the bug that causes remote Metalink and Torrent files are not
  7431. processed.
  7432. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7433. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7434. Changed format of log file.
  7435. * src/SimpleLogger.cc
  7436. * Release 0.11.0
  7437. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7438. * src/AbstractCommand.cc
  7439. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7440. MSG_MAX_TRY from error to info.
  7441. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7442. * src/message.h
  7443. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7444. (MSG_DOWNLOAD_ABORTED): Added %s.
  7445. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7446. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7447. * src/PeerAbstractCommand.cc
  7448. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7449. * src/Request.h
  7450. (cookieBox): Made ShardHandle.
  7451. * src/RequestGroup.h, src/RequestGroup.cc
  7452. (createNextCommandWithAdj): New function.
  7453. * src/FileAllocationCommand.cc
  7454. (executeInternal): Use createNextCommandWithAdj().
  7455. * src/CheckIntegrityCommand.cc
  7456. (executeInternal): Use createNextCommandWithAdj().
  7457. Added --load-cookies command-option.
  7458. * src/OptionHandlerFactory.cc
  7459. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7460. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7461. Now aria2 can handle cookie's expiration date.
  7462. * src/Cookie.h (expires): Changed its type to time_t.
  7463. * src/main.cc: Added --load-cookies command-line option.
  7464. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7465. * src/Util.h, src/Util.cc (httpGMT): New function.
  7466. * src/Request.cc (Request): Initialize cookieBox using
  7467. CookieBoxFactory.
  7468. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7469. * src/CookieParser.h, src/CookieParser.cc: New class.
  7470. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7471. * src/HttpResponseCommand.cc
  7472. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7473. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7474. download.
  7475. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. Added -j command-line option.
  7477. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7478. * src/main.cc
  7479. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7480. Rewritten using stringstream.
  7481. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7482. Rewritten using stringstream.
  7483. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7484. Make download size shown in MB, KB.
  7485. * src/ConsoleDownloadEngine.h (sendStatistics)
  7486. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7487. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Accept incoming connections if download rate is low.
  7489. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7490. (_lowestSpeedLimit): New variable.
  7491. (setLowestSpeedLimit): New function.
  7492. (execute): Accept incoming connections if download rate is low.
  7493. MAX_PEERS is ignored in this case.
  7494. Disable PREF_OUT in multiple concurrent download:
  7495. * src/RequestGroup.h, src/RequestGroup.cc
  7496. (setUserDefinedFilename): New function.
  7497. * src/DownloadEngineFactory.cc
  7498. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7499. concurrent download.
  7500. * src/DefaultSegmentManFactory.cc
  7501. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7502. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. RequestGroup::getNextCommand() was renamed to createNextCommand().
  7504. Added its overloaded method.
  7505. * src/RequestGroup.h
  7506. (_numConcurrentCommand): New variable.
  7507. (setNumConcurrentCommand): New function.
  7508. * src/RequestGroup.cc
  7509. Abort download if same file is being downloaded concurrently.
  7510. * src/RequestGroup.h, src/RequestGroupMan.cc
  7511. (isSameFileBeingDownloaded): New function.
  7512. * src/HttpResponseCommand.cc (executeInternal)
  7513. * src/FtpNegotiateCommand.cc (recvSize)
  7514. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  7515. * main.cc: Added help message for -i option.
  7516. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  7518. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  7519. * src/MetalinkEntry.h
  7520. (checksum): Changed to ChecksumHandle
  7521. * src/MetalinkRequestInfo.cc
  7522. (checksum): Changed to ChecksumHandle
  7523. * src/File.cc
  7524. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7525. * src/common.h
  7526. (DIR_OPEN_MODE): New definition
  7527. * src/RequestGroup.cc
  7528. (prepareForNextAction): Added an argument.
  7529. * src/message.h
  7530. (MSG_GOOD_CHECKSUM): New definition
  7531. (MSG_BAD_CHECKSUM): New definition
  7532. * src/HttpResponseCommand.cc
  7533. (handleDefaultEncoding): Continue download sequence in new
  7534. non-segmented download.
  7535. * src/FileAllocationEntry.h
  7536. (_nextDownloadCommand): New variable.
  7537. * src/DownloadCommand.cc
  7538. (prepareForNextSegment): Create ChecksumCommand if checksum is
  7539. available.
  7540. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  7541. * src/IteratableChecksumValidator.h,
  7542. src/IteratableChecksumValidator.cc: New class.
  7543. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  7544. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7545. Change file mode to 666:
  7546. * src/common.h (OPEN_MODE): New definition.
  7547. * src/File.cc
  7548. * src/Util.cc
  7549. * src/Directry.cc
  7550. * src/AbstractDiskWriter.cc
  7551. Change the level of log message "download aborted" to debug:
  7552. * src/PeerAbstractCommand.cc (execute)
  7553. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  7554. * src/TrackerWatcherCommand.cc
  7555. (createCommand): Sleep some seconds after request failed.
  7556. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  7557. then abort tracker request.
  7558. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7559. * Added the simultaneous download feature.
  7560. * src/main.cc: Print "Exception caught: " when exception is caught.
  7561. Use CUIDCounter instead of BtRuntime::getNewCuid():
  7562. * src/ActivePeerConnectionCommand.cc
  7563. * src/PeerInteractionCommand.cc
  7564. * src/BtRuntime.h
  7565. (cuidCounter): Removed.
  7566. (getNewCuid): Removed.
  7567. * src/DownloadEngineFactory.cc
  7568. * src/PeerListenCommand.cc
  7569. * src/TrackerUpdateCommand.cc
  7570. * src/PeerInitiateConnectionCommand.cc
  7571. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. * src/PeerAbstractCommand.cc
  7573. (onAbort): Call PeerStorage::returnPeer()
  7574. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  7575. (incomingPeers): New variable.
  7576. (addIncomingPeer): New function.
  7577. (returnPeer): New function.
  7578. (onErasingPeer): New function.
  7579. (addPeer): push_back -> push_front
  7580. (getActivePeers): Rewritten.
  7581. (calculateStat): Rewritten.
  7582. * src/PeerStorage.h
  7583. (TransferStat::copy): New function.
  7584. (TransferStat::TransferStat): New function.
  7585. (TransferStat::operator=): New function.
  7586. (addIncomingPeer): New function.
  7587. (returnPeer): New function.
  7588. * src/PeerListenCommand.cc
  7589. (execute): Use PeerStorage::addIncomingPeer() instead of
  7590. Peer::addPeer().
  7591. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7592. Connect to a peer actively when download speed is lower than specified
  7593. speed in torrent download:
  7594. * src/ActivePeerConnectionCommand.h: New class.
  7595. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. * src/HttpRequest.cc (createRequest): url-encode user-agent
  7597. * src/main.cc: Fixed the bug that prevents download if .netrc
  7598. doesn't exist.
  7599. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7600. To cache resolved hostname:
  7601. * src/AbstractCommand.h, src/AbstractCommand.cc
  7602. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  7603. Added dns cache.
  7604. * src/FtpInitiateConnectionCommand.cc
  7605. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  7606. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  7607. NameResolver working without ares.
  7608. * src/TorrentRequestInfo.cc
  7609. (execute): Don't cache dns in torrent download.
  7610. * src/HttpInitiateConnectionCommand.cc
  7611. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  7612. * src/DNSCache.h: New class.
  7613. * src/UrlRequestInfo.cc
  7614. (execute): Use dns cache.
  7615. In http request, suppress port number in http request header if port
  7616. is 80 or 443:
  7617. * src/HttpRequest.cc (getHostText): Suppress port number in http
  7618. request header if port is 80 or 443.
  7619. (createProxyRequest): Allways send port number.
  7620. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. To add the command-line option which disables netrc support:
  7622. * src/OptionHandlerFactory.cc
  7623. (createOptionHandlers): Added PREF_NO_NETRC.
  7624. * src/main.cc: Added -n option.
  7625. * src/prefs.h (PREF_NO_NETRC): New definition.
  7626. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  7627. V_TRUE.
  7628. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  7629. is V_FALSE. This may get configurable in the future release.
  7630. To clear peer's error status by time basis:
  7631. * src/PeerAbstractCommand.cc
  7632. (onAbort): Call Peer::startBadCondition().
  7633. * src/Peer.h, src/Peer.cc
  7634. (error): Removed.
  7635. (_badConditionStartTime): New variable.
  7636. (_badConditionInterval): New variable. Initialized to 10 seconds.
  7637. (startBadCondition): New function.
  7638. (isGood): New function.
  7639. * src/DefaultPeerStorage.cc
  7640. (addPeer): Use Peer::isGood().
  7641. (FindFinePeer): Use Peer::isGood().
  7642. Always include port number in http request header:
  7643. * src/HttpRequest.cc (getHostText): Always include port number in
  7644. http request header.
  7645. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. To the ability to read options from a config file:
  7647. * src/main.cc: Command-line parameter validation is delegated to
  7648. OptionHandler class.
  7649. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  7650. * src/Option.h, src/Option.cc (clear): New function.
  7651. * src/OptionParser.h, src/OptionParser.cc: New class.
  7652. * src/OptionHandler.h: New class.
  7653. * src/NameMatchOptionHandler.h: New class.
  7654. * src/OptionHandlerImpl.h: New classes.
  7655. * src/prefs.h: '_' -> '-'
  7656. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  7657. (FTP_PASV): New definition.
  7658. * src/Util.h, src/Util.cc (getRealSize): New function.
  7659. To disable netrc support if .netrc file does not have correct
  7660. permissions:
  7661. * src/File.h, src/File.cc (mode): New function.
  7662. To prevent confidential information to be logged:
  7663. * src/HttpConnection.h, src/HttpConnection.cc
  7664. (eraseConfidentialInfo): New function.
  7665. (sendRequest): Call eraseConfidentialInfo().
  7666. (sendProxyRequest): Call eraseConfidentialInfo().
  7667. * src/main.cc: Validate permissions of .netrc file.
  7668. To add --user-agent command-line option:
  7669. * src/main.cc: Added new command line option: --user-agent
  7670. * src/prefs.h (PREF_USER_AGENT): New definition.
  7671. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  7672. parameter to HttpRequest object.
  7673. * src/AbstractProxyRequestCommand.cc
  7674. (executeInternal): Set user-agent option parameter to HttpRequest
  7675. object.
  7676. Marged the patches from Dan Fandrich.
  7677. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Use filename and size from Metalink file instead of sending HEAD
  7679. request:
  7680. * src/UrlRequestInfo.h
  7681. (_filename): New variable.
  7682. (_totalLength): New variable.
  7683. (setTotalLength): New variable.
  7684. (setFilename): New variable.
  7685. * src/MetalinkRequestInfo.cc
  7686. (execute): Set filename and size to UrlRequestInfo
  7687. * src/UrlRequestInfo.cc
  7688. (execute): Use filename and size from Metalink instead of seding
  7689. HEAD request to servers.
  7690. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. To add the ability to resume downloading a partially downloaded file
  7692. which is downloaded from the beginning:
  7693. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  7694. takes this role.
  7695. * src/main.cc: Added -c option.
  7696. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  7697. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  7698. * src/prefs.h (PREF_CONTINUE): New definition.
  7699. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  7700. * src/DefaultDiskWriter.cc
  7701. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  7702. * src/AbstractDiskWriter.h
  7703. (glowFileAllocator): New variable.
  7704. * src/AbstractDiskWriter.cc
  7705. (openExistingFile): Now preallocate file space from the end of the
  7706. existing file if totalLength argument is specified and grater than 0.
  7707. * src/UrlRequestInfo.cc: If -c option is specified and the file
  7708. to download exists in local, continue the download of the file.
  7709. --allow-overwrite=true is assumed in this context.
  7710. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  7711. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  7712. Throw exception if --check-integrity=true is specified but chunk
  7713. checksums are not provided:
  7714. * src/UrlRequestInfo.cc
  7715. Do not print URLs to stdout:
  7716. * src/UrlRequestInfo.cc
  7717. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7718. * src/Request.h: Use AuthResolver to get authentication information.
  7719. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  7720. set to RequestFactory object.
  7721. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  7722. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  7723. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  7724. create Request object.
  7725. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  7726. To integrate Netrc into exsiting classes:
  7727. * src/Request.h
  7728. (_userDefinedAuthConfig): New variable.
  7729. (findNetrcAuthenticator): New function.
  7730. (segment): Removed.
  7731. (setUserDefinedAuthConfig): New function.
  7732. (resolveHttpAuthConfigItem): New function.
  7733. (resolveFtpAuthConfigItem): New function.
  7734. (resolveHttpProxyAuthConfigItem): New function.
  7735. * src/HttpRequest.h
  7736. (authConfig): Removed.
  7737. (proxyAuthConfig): Removed.
  7738. (setAuthConfig): Removed.
  7739. (setProxyAuthConfig): Removed.
  7740. * src/UrlRequest.h
  7741. (getHeadResult): Added a parameter: authConfigHandle
  7742. * src/common.h
  7743. (SingletonHolder.h): New include.
  7744. * src/main.cc
  7745. (Netrc.h): New include.
  7746. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  7747. Added initial value of PREF_NETRC_PATH.
  7748. Added the initialization of netrc.
  7749. * src/AuthConfig.h: New class.
  7750. * src/prefs.h
  7751. (PREF_NETRC_PATH): New definition.
  7752. * src/HttpAuthConfig.h: Removed.
  7753. * src/Netrc.cc
  7754. (getRequiredNextToken): New function.
  7755. (skipMacdef): New function.
  7756. (parse): Rewritten.
  7757. * src/Netrc.h
  7758. (getRequiredNextToken): New function.
  7759. (skipMacdef): New function.
  7760. * src/Util.h, src/Util.cc
  7761. (getHomeDir): New function.
  7762. * src/TrackerWatcherComand.cc
  7763. (createRequestCommand): Use AuthConfig.
  7764. * src/FtpConnection.cc
  7765. (sendUser): Use Request::resolveFtpAuthConfigItem().
  7766. (sendPass): Use Request::resolveFtpAuthConfigItem().
  7767. * src/Request.cc
  7768. (findNetrcAuthenticator): New function.
  7769. (resolveHttpAuthConfigItem): New function.
  7770. (resolveFtpAuthConfigItem): New function.
  7771. (resolveHttpProxyAuthConfigItem): New function.
  7772. * src/UrlRequestInfo.cc: Use AuthConfig.
  7773. * src/HttpRequest.cc
  7774. (createRequest): Use authConfig.
  7775. (getProxyAuthString): Use authConfig.
  7776. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  7777. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  7778. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. To reduce overhead to find commands whose socket is either
  7780. readable or writable in the download engine loop:
  7781. * src/Command.h, src/Command.cc
  7782. (STATUS): New enum.
  7783. (status): New variable.
  7784. (statusMatch): New function.
  7785. (setStatusActive): New function.
  7786. (setStatusInactive): New function.
  7787. * src/DownloadEngine.h, src/DownloadEngine.cc
  7788. (executeCommand): New function.
  7789. (run): Simplified.
  7790. (waitData): Call Command::setStatusActive() when command's socket is
  7791. readable or writable.
  7792. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7793. To handle Segment as SegmentHandle:
  7794. * src/AbstractCommand.cc (execute): Rewritten.
  7795. * src/SegmentMan.h: Segment -> SegmentHandle
  7796. Introducded HttpResponse class, HttpRequest class to improve code
  7797. extensiveness and make it clear:
  7798. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  7799. HttpResponse class.
  7800. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  7801. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  7802. * src/HttpConnection.cc: Contruction of http request were moved to
  7803. HttpRequest class.
  7804. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  7805. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  7806. * src/HttpAuthConfig.h: New class.
  7807. * src/Range.h: New class.
  7808. To make FtpTunnel{Request, Response}Command and
  7809. HttpProxy{Request, Response}Command derived from
  7810. AbstractProxy{Request, Response}Command:
  7811. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  7812. Derived from AbstractProxyRequestCommand class.
  7813. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  7814. Derived from AbstractProxyResponseCommand class.
  7815. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  7816. Derived from AbstractProxyRequestCommand class.
  7817. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  7818. Derived from AbstractProxyResponseCommand class.
  7819. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  7820. : New class.
  7821. * src/AbstractProxyResponseCommand.h,
  7822. src/AbstractProxyResponseCommand.cc: New class.
  7823. To add netrc support:
  7824. * src/Netrc.h, src/Netrc.cc: New class.
  7825. * src/Util.h, src/Util.cc (split): New function.
  7826. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  7827. "Content-Range" header instead of "Range" header.
  7828. * src/HttpHeader.h
  7829. (getStatus): Removed.
  7830. (setStatus): Removed.
  7831. * src/Segment.h
  7832. (getPositionToWrite): New function.
  7833. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7834. * src/HttpHeader.h
  7835. (Range.h): New include.
  7836. (status): New variable.
  7837. (HttpHeader): Initialized status with 0.
  7838. (getStatus): New function.
  7839. (setStatus): New function.
  7840. (getRange): New function.
  7841. (HttpHeaderHandle): New function.
  7842. * src/HttpHeader.cc
  7843. (getRange): New function.
  7844. * src/Request.h
  7845. (RequestWeakHandle): New definition.
  7846. * src/HttpConnection.h
  7847. (HttpConnectionHandle): New type definition.
  7848. * src/HttpConnection.cc
  7849. (receiveResponse): Set HTTP status to headers.
  7850. * src/main.cc
  7851. (showUsage): Fixed typo.
  7852. * src/Segment.h
  7853. (SegmentHandle): New type definition.
  7854. * src/BitfieldMan.h
  7855. (getMissingUnusedLength): New function.
  7856. * src/BitfieldMan.cc
  7857. (getMissingUnusedLength): New function.
  7858. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. To fix static initialization order problem:
  7860. * src/BitfieldManFactory.h
  7861. (defaultRandomizer): Removed.
  7862. (factory): New variable.
  7863. (getNewFactory): Removed.
  7864. (getFactoryInstance): New function.
  7865. (setDefaultRandomizer): Rewritten.
  7866. (getDefaultRandomizer): Rewritten.
  7867. * src/BitfieldManFactory.cc
  7868. (defaultRandomizer): Removed.
  7869. (factory): Initialized to 0.
  7870. (BitfieldManFactory): Initialized randomizer to 0.
  7871. * src/DefaultPieceStorage.cc
  7872. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  7873. * src/Peer.cc
  7874. (Peer): getNewFactory() -> getFactoryInstance()
  7875. * src/SegmentMan.cc
  7876. (initBitfield): getNewFactory() -> getFactoryInstance()
  7877. * src/Piece.cc
  7878. (Piece): getNewFactory() -> getFactoryInstance()
  7879. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. To fix the bug that causes crash on Max OS X:
  7881. * src/SimpleRandomizer.h
  7882. (getInstance): Create new instance if the static variable is null.
  7883. * src/SimpleRandomizer.cc
  7884. (randomizer): Initialized to 0.
  7885. * src/BitfieldManFactory.h
  7886. (getNewFactory): Removed the call to setRandomizer().
  7887. To fix the miscalculation of the range of checksum:
  7888. * src/BitfieldMan.h
  7889. (isBitSetOffsetRange): New function.
  7890. * src/BitfieldMan.cc
  7891. (isBitSetOffsetRange): New function.
  7892. * src/SegmentMan.cc
  7893. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  7894. Use bitfield->getBlockLength() instead of segment.segmentLength.
  7895. * Release 0.10.1
  7896. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7897. To lower CPU usage in BitTorrent download when --max-upload-limit
  7898. command-line option specified:
  7899. * src/DefaultBtMessageDispatcher.cc
  7900. (sendMessages): Calculate uploading speed only when current message
  7901. is uploading data and is not sent yet.
  7902. * src/DefaultPeerStorage.h
  7903. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  7904. * src/HttpResponseCommand.cc
  7905. (handleDefaultEncoding): Added the cast to int32_t to itos.
  7906. This fixes compile error in Soralis 10.
  7907. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. To fix segfault in Metalink download:
  7909. * src/UrlRequestInfo.h
  7910. (filename): Removed.
  7911. (totalLength): Removed.
  7912. (setTotalLength): Removed.
  7913. (setFilename): Removed.
  7914. * src/MetalinkRequestInfo.cc
  7915. (execute): Do not set filename and totalLength to reqInfo.
  7916. Set chunk checksum to reqInfo if it is not null.
  7917. * src/HttpResponseCommand.cc
  7918. (executeInternal): Fixed filename in log.
  7919. (handleDefaultEncoding): Removed the call to initBitfield() and
  7920. markAllPiecesDone().
  7921. (handleOtherEncoding): Added HEAD method handling.
  7922. * src/FtpNegotiateCommand.cc
  7923. (executeInternal): Added SEQ_HEAD_OK handling.
  7924. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  7925. return false.
  7926. * src/FtpNegotiateCommand.h
  7927. (SEQ_HEAD_OK): New definition.
  7928. * src/SegmentMan.cc
  7929. (initBitfield): Delete bitfield.
  7930. (isChunkChecksumValidationReady): Fixed the condition.
  7931. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  7932. works fine.
  7933. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. * src/Xml2MetalinkProcessor.h
  7935. (xpathExists): New function.
  7936. * src/Xml2MetalinkProcessor.cc
  7937. (xpathExists): New function.
  7938. Not to send HEAD request if filename and size are available in Metalink
  7939. file:
  7940. * src/UrlRequestInfo.h
  7941. (filename): New variable.
  7942. (totalLength): New variable.
  7943. (setTotalLength): New function.
  7944. (setFilename): New function.
  7945. * src/MetalinkRequestInfo.cc
  7946. (execute): Set filename and size to UrlRequestInfo.
  7947. * src/MetalinkEntry.cc
  7948. (MetalinkEntry): Initialize size with 0.
  7949. * src/UrlRequestInfo.cc
  7950. (execute): Set filename and size to SegmentMan.
  7951. Not to download rest of the files after selected files are downloaded
  7952. in BitTorrent:
  7953. * src/PieceStorage.h
  7954. (allDownloadFinished): New function.
  7955. * src/DefaultBtAnnounce.cc
  7956. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  7957. downloadFinished.
  7958. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  7959. * src/DefaultPieceStorage.cc
  7960. (completePiece): Use allDownloadFinished instead of downloadFinished.
  7961. Commented out the call to finishSelectiveDownloadingMode().
  7962. (downloadFinished): Call isFilteredAllBitSet() instead of
  7963. isAllBitSet().
  7964. (allDownloadFinished): New function.
  7965. * src/DefaultBtInteractive.cc
  7966. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  7967. downloadFinished().
  7968. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  7969. * src/TorrentDownloadEngine.cc
  7970. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  7971. * src/BitfieldMan.h
  7972. (isFilteredAllBitSet): New function.
  7973. * src/ShareRatioSeedCriteria.h
  7974. (PieceStorage.h): New include.
  7975. (pieceStorage): New variable.
  7976. (evaluate):
  7977. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  7978. * src/BitfieldMan.cc
  7979. (isFilteredAllBitSet): New function.
  7980. (isAllBitSet): Filter is not took into account.
  7981. Rename --force-truncate as --allow-overwrite:
  7982. * src/TorrentRequestInfo.cc
  7983. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  7984. * src/main.cc
  7985. (showUsage): --force-truncate -> --allow-overwrite
  7986. * src/message.h
  7987. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  7988. * src/prefs.h
  7989. (PREF_FORCE_TRUNCATE): Removed.
  7990. (PREF_ALLOW_OVERWRITE): New definition.
  7991. * src/SegmentMan.cc
  7992. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  7993. * src/MetalinkRequestInfo.cc
  7994. (execute): Queueing message are now logged in info level.
  7995. * src/common.h
  7996. (LONG_LONG_MAX): Removed.
  7997. (LONG_LONG_MIN): Removed.
  7998. * src/HttpResponseCommand.cc
  7999. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8000. * src/FtpNegotiateCommand.cc
  8001. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8002. * src/main.cc
  8003. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8004. command-line option.
  8005. (main): Added --check-integriy and --realtime-chunk-checksum
  8006. command-line option.
  8007. --force-truncate -> --allow-overwrite
  8008. Set initial value of --check-integrity option to false.
  8009. Don't show usage when error occurs while persing command-line options.
  8010. Removed deprecated --upload-limit option.
  8011. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8013. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8014. * src/BtAllowedFastMessage.cc:
  8015. * src/BtBitfieldMessage.cc
  8016. * src/BtCancelMessage.cc
  8017. * src/BtChokeMessage.cc
  8018. * src/BtHaveAllMessage.cc
  8019. * src/BtHaveMessage.cc
  8020. * src/BtHaveNoneMessage.cc
  8021. * src/BtInterestedMessage.cc
  8022. * src/BtNotInterestedMessage.cc
  8023. * src/BtPieceMessage.cc
  8024. * src/BtPortMessage.cc
  8025. * src/BtRejectMessage.cc
  8026. * src/BtRequestMessage.cc
  8027. * src/BtSuggestPieceMessage.cc
  8028. * src/BtUnchokeMessage.cc
  8029. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  8030. files are affected.
  8031. * src/ChunkChecksumValidator.cc
  8032. * src/SegmentMan.cc
  8033. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. To add chunk checksum validation:
  8035. * src/MetalinkEntry.h
  8036. (MetalinkChunkChecksum.h): New include.
  8037. (chunkChecksum): New variable.
  8038. * src/Request.h
  8039. (method): New variable.
  8040. (setMethod): New function.
  8041. (getMethod): New function.
  8042. (METHOD_GET): New static constant.
  8043. (METHOD_HEAD): New static constant.
  8044. * src/Xml2MetalinkProcessor.h
  8045. (getPieceHash): New function.
  8046. * src/PieceStorage.h
  8047. (markAllPiecesDone): New function.
  8048. (checkIntegrity): New function.
  8049. * src/FileAllocator.h
  8050. (NullFileAllocationMonitor.h): New include.
  8051. (FileAllocator): Initialize fileAllocationMonitor with new
  8052. NullFileAllocationMonitor().
  8053. * src/MultiDiskAdaptor.h
  8054. (messageDigest.h): Remove include.
  8055. (ctx): Removed.
  8056. (hashUpdate): Added ctx.
  8057. (MultiDiskAdaptor): Removed ctx.
  8058. (sha1Sum): Renamed as messageDigest.
  8059. (messageDigest): New function.
  8060. * src/UrlRequestInfo.h
  8061. (HeadResult): New class.
  8062. (digestAlgo): New variable.
  8063. (chunkChecksumLength): New variable.
  8064. (chunkChecksums): New variable.
  8065. (getHeadResult): New function.
  8066. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  8067. (setDigestAlgo): New function.
  8068. (setChunkChecksumLength): New function.
  8069. (setChunkChecksums): New function.
  8070. * src/DefaultPieceStorage.cc
  8071. (DiskAdaptorWriter.h): New include.
  8072. (ChunkChecksumValidator.h): New include.
  8073. (markAllPiecesDone): New function.
  8074. (checkIntegrity): New function.
  8075. * src/DefaultBtContext.h
  8076. (getPieceHashes): New function.
  8077. * src/TorrentRequestInfo.cc
  8078. (execute): Try to validate chunk checksum if file already exists and
  8079. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8080. * src/messageDigest.h
  8081. (~MessageDigestContext): Added digestFree().
  8082. * src/MetalinkRequestInfo.cc
  8083. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8084. * src/DiskAdaptor.h
  8085. (messageDigest.h): New include.
  8086. (sha1Sum): Renamed as messageDigest.
  8087. (messageDigest): New function.
  8088. * src/DownloadCommand.h
  8089. (PeerStat.h): New include.
  8090. (maxDownloadSpeedLimit): New variable.
  8091. (startupIdleTime): New variable.
  8092. (lowestDownloadSpeedLimit): New variable.
  8093. (peerStat): New variable.
  8094. (setMaxDownloadSpeedLimit): New function.
  8095. (setStartupIdleTime): New function.
  8096. (setLowestDownloadSPeedLimit): New function.
  8097. * src/BtContext.h
  8098. (getPieceHashes): New function.
  8099. * src/main.cc
  8100. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8101. option to true for testing purpose.
  8102. * src/BtPieceMessage.cc
  8103. (checkPieceHash): Use messageDigest
  8104. * src/DownloadEngine.cc
  8105. (SetDescriptor): Removed.
  8106. (AccumulateActiveCommand): Removed.
  8107. (waitData): Rewritten.
  8108. (updateFdSet): Rewritten.
  8109. * src/MultiDiskAdaptor.cc
  8110. (hashUpdate): Added ctx.
  8111. (sha1Sum): Renamed as messageDigest.
  8112. (messageDigest): New function.
  8113. * src/BitfieldMan.h
  8114. (isBitRangeSet): New function.
  8115. (unsetBitRange): New function.
  8116. * src/ByteArrayDiskWriter.h
  8117. (sha1Sum): Renamed as messageDigest.
  8118. (messageDigest): New function.
  8119. * src/ConsoleDownloadEngine.cc
  8120. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8121. * src/DiskWriter.h
  8122. (messageDigest.h): New include.
  8123. (sha1Sum): Renamed as messageDigest.
  8124. (messageDigest): New function.
  8125. * src/ChunkChecksumValidator.h: New class.
  8126. * src/DiskAdaptorWriter.h: New class.
  8127. * src/prefs.h
  8128. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8129. (PREF_CHECK_INTEGRITY): New definition.
  8130. * src/HttpResponseCommand.cc
  8131. (handleDefaultEncoding): Added method "HEAD" handling.
  8132. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8133. (handleOtherEncoding):
  8134. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8135. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8136. startupIdleTime, lowestDownloadSpeedLimit to command.
  8137. * src/SegmentMan.h
  8138. (getSegmentEntryByIndex): New function.
  8139. (getSegmentEntryByCuid): New function.
  8140. (getSegmentEntryIteratorByCuid): New function.
  8141. (diskWriter): DiskWriter -> DiskWriterHandle
  8142. (pieceHashes): New variable.
  8143. (chunkHashLength): New variable.
  8144. (digestAlgo): New variable.
  8145. (FindPeerStat): Removed.
  8146. (getPeerStat): Rewritten.
  8147. (markAllPiecesDone): New function.
  8148. (checkIntegrity): New function.
  8149. (tryChunkChecksumValidation): New function.
  8150. (isChunkChecksumValidationReady): New function.
  8151. * src/BitfieldMan.cc
  8152. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8153. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8154. blocks to 0.
  8155. (isBitRangeSet): New function.
  8156. (unsetBitRange): New function.
  8157. * src/FtpNegotiateCommand.cc
  8158. (executeInternal): Set maxDownloadSpeedLimit,
  8159. startupIdleTime, lowestDownloadSpeedLimit to command.
  8160. (recvSize): Added method "HEAD" handling.
  8161. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8162. * src/AbstractSingleDiskAdaptor.cc
  8163. (sha1Sum): Renamed as messageDigest.
  8164. (messageDigest): New function.
  8165. * src/AbstractSingleDiskAdaptor.h
  8166. (sha1Sum): Renamed as messageDigest.
  8167. (messageDigest): New function.
  8168. * src/Util.h
  8169. (indexRange): New function.
  8170. * src/MetalinkEntry.cc
  8171. (MetalinkEntry): Initialized chunkChecksum to 0.
  8172. * src/ShaVisitor.cc
  8173. (~ShaVisitor): Removed the call to ctx.digestFree().
  8174. * src/SegmentMan.cc
  8175. (ChunkChecksumValidator.h): New include.
  8176. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8177. to DIGEST_ALGO_SHA1.
  8178. (~SegmentMan): Removed diskWriter.
  8179. (FindSegmentEntryByIndex): Removed.
  8180. (FindSegmentEntryByCuid): Removed.
  8181. (checkoutSegment): Rewritten.
  8182. (findSlowerSegmentEntry): Rewritten.
  8183. (getSegment): Rewritten.
  8184. (updateSegment): Rewritten.
  8185. (completeSegment): Rewritten.
  8186. (markAllPiecesDone): New function.
  8187. (checkIntegrity): New function.
  8188. (isChunkChecksumValidationReady): New function.
  8189. (tryChunkChecksumValidation): New function.
  8190. * src/Xml2MetalinkProcessor.cc
  8191. (getEntry): Get size and set it to entry.
  8192. Get chunk checksum and set it to entry.
  8193. (getPieceHash): New function.
  8194. * src/Util.cc
  8195. (sha1Sum): Removed ctx.digestFree()
  8196. (fileChecksum): Removed ctx.digestFree()
  8197. (indexRange): New function.
  8198. * src/Request.cc
  8199. (METHOD_GET): New variable.
  8200. (METHOD_HEAD): New variable.
  8201. (Request): Added method.
  8202. * src/UrlRequestInfo.cc
  8203. (FatalException.h): New include.
  8204. (message.h): New include.
  8205. (operator<<): Added operator<< for class HeadResult.
  8206. (getHeadResult): New function.
  8207. (execute): Get filename and size in separate download engine.
  8208. * src/ChunkChecksumValidator.cc: New class.
  8209. * src/DownloadCommand.cc:
  8210. (DownloadCommand): Added peerStat.
  8211. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8212. the value from Option.
  8213. The buffer size is now 16KB.
  8214. Use peerStat member instead of getting it from SegmentMan.
  8215. Use startupIdleTime member instead of gettingit from Option.
  8216. Added chunk checksum validation.
  8217. * src/AbstractDiskWriter.cc
  8218. (AbstractDiskWriter): Removed ctx.
  8219. (~AbstractDiskWriter): Removed ctx.digestFree()
  8220. (writeDataInternal): Returns the return value of write.
  8221. (readDataInternal): Returns the return value of read.
  8222. (sha1Sum): Renamed as messageDigest
  8223. (messageDigest): New function.
  8224. * src/AbstractDiwkWriter.h
  8225. (messageDigest.h): Removed include.
  8226. (ctx): Removed.
  8227. (sha1Sum): Renamed as messageDigest
  8228. (messageDigest): New function.
  8229. * src/DefaultPieceStorage.h
  8230. (markAllPiecesDone): New function.
  8231. (checkIntegrity): New function.
  8232. * src/NullFileAllocationMonitor.h: New class.
  8233. * src/MetalinkChunkChecksum.h: New class.
  8234. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. To decrease CPU usage in bittorrent download, calculation results in
  8236. BitfieldMan were cached and realtime fetching PeerObject was removed
  8237. with WeakHandle introduced. Option values are set to the objects
  8238. by setter before download begins.
  8239. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8240. * src/DefaultBtRequestFactory.h
  8241. (dispatcher): BtMessageDispatcherHandle ->
  8242. BtMessageDispatcherWeakHandle.
  8243. (messageFactory): New variable.
  8244. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8245. BtMessageDispatcherWeakHandle.
  8246. (setBtMessageFactory): New function.
  8247. * src/DefaultBtMessageDispatcher.cc:
  8248. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8249. from Option.
  8250. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8251. feating the value from Option.
  8252. Use messageFactory member.
  8253. * src/PeerInteractionCommand.cc
  8254. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8255. Add reverse dependencies to factory object.
  8256. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8257. dispatcher.
  8258. Set messageFactory to receiver.
  8259. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8260. btInteractive.
  8261. Set receiver to peerObject.
  8262. Set maxDownloadSpeedLimit to this.
  8263. (executeInternal): Use maxDownloadSpeedLimit member.
  8264. * src/BtChokeMessage.cc
  8265. (doReceivedAction): Use dispatcher, requestFactory member.
  8266. (onSendComplete): Use dispatcher member.
  8267. * src/PeerInteractionCommand.h
  8268. (maxDownloadSpeedLimit): New variable.
  8269. * src/DefaultBtMessageReceiver.h
  8270. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8271. (dispatcher):
  8272. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8273. (messageFactory): New variable.
  8274. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8275. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8276. (setDispatcher):
  8277. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8278. (setBtMessageFactory): New function.
  8279. * src/DefaultBtInteractive.cc
  8280. (initiateHandshake): Use messageFactory member.
  8281. (addBitfieldMessageToQueue): Use messageFactory member.
  8282. (addAllowedFastMessageToQueue): Use messageFactory member.
  8283. (decideChoking): Use messageFactory member.
  8284. (checkHave): Use messageFactory member.
  8285. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8286. (receiveMessages): Use maxDownloadSpeedLimit member.
  8287. (decideInterest): Use messageFactory member.
  8288. * src/BtRequestMessage.cc
  8289. (doReceivedAction): Use messageFactory, dispatcher member.
  8290. (onQueued): Use dispatcher member.
  8291. * src/BtPieceMessage.cc
  8292. (doReceivedAction): Use dispatcher member.
  8293. (send): Use peerConnection member.
  8294. (onWrongPiece): Use requestFactory member.
  8295. (handleChokingEvent): Use messageFactory, dispatcher member.
  8296. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8297. * src/BtMessageDispatcher.h
  8298. (BtMessageDispatcherWeakHandle): New type definition.
  8299. * src/SimpleBtMessage.cc
  8300. (send): Use peerConnection member.
  8301. * src/BtRejectMessage.cc
  8302. (doReceivedAction): Use dispatcher member.
  8303. * src/DefaultBtMessageDispatcher.h
  8304. (Option.h): Removed include.
  8305. (messageFactory): New variable.
  8306. (option): Removed.
  8307. (maxUploadSpeedLimit): New variable.
  8308. (requestTimeout): New variable.
  8309. (DefaultBtMessageDispatcher): Removed option.
  8310. Added maxUploadSpeedLimit, requestTimeout.
  8311. (setOption): Removed.
  8312. (getOption): Removed.
  8313. (setMaxUploadSpeedLimit): New function.
  8314. (setRequestTimeout): New function.
  8315. (setBtMessageFactory): New function.
  8316. * src/DefaultBtInteractive.h
  8317. (btMessageReceiver):
  8318. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8319. (dispatcher):
  8320. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8321. (btRequestFactory):
  8322. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8323. (peerConnection):
  8324. PeerConnectionHandle -> PeerConnectionWeakHandle
  8325. (messageFactory): New variable.
  8326. (option): Removed.
  8327. (keepAliveInterval): New variable.
  8328. (maxDownloadSpeedLimit): New variable.
  8329. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8330. (setBtMessageReceiver):
  8331. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8332. (setDispatcher):
  8333. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8334. (setBtRequestFactory):
  8335. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8336. (setPeerConnection):
  8337. PeerConnectionHandle -> PeerConnectionWeakHandle
  8338. (setOption): Removed.
  8339. (setKeepAliveInterval): New function.
  8340. (setMaxDownloadSpeedLimit): New function.
  8341. (setBtMessageFactory): New function.
  8342. * src/BitfieldMan.h
  8343. (cachedNumMissingBlock): New variable.
  8344. (cachedNumFilteredBlock): New variable.
  8345. (cachedCompletedLength): New variable.
  8346. (cachedFilteredComletedLength): New variable.
  8347. (cachedFilteredTotalLength): New variable.
  8348. (countMissingBlockNow): New function.
  8349. (countFilteredBlockNow): New function.
  8350. (getFilteredTotalLengthNow): New function.
  8351. (getCompletedLengthNow): New function.
  8352. (getFilteredCompletedLengthNow): New function.
  8353. (updateCache): New function.
  8354. * src/AbstractBtMessage.h
  8355. (BtMessageDispatcher.h): New include.
  8356. (PeerConnection.h): New include.
  8357. (BtRequestFactory.h): New include
  8358. (BtMessageFactory.h): New include.
  8359. (dispatcher): New variable.
  8360. (messageFactory): New variable.
  8361. (peerConnection: New variable.
  8362. (setBtMessageDispatcher): New function.
  8363. (setPeerConnection): New function.
  8364. (setBtMessageFactory): New function.
  8365. (setBtRequestFactory): New function.
  8366. * src/DefaultBtMessageFactory.cc
  8367. (setCommonProperty): Set dispatcher, requestFactory, this,
  8368. peerConnection to msg.
  8369. * src/BtRegistry.h
  8370. (BT_MESSAGE_RECEIVER): New macro.
  8371. * src/PeerConnection.h
  8372. (PeerConnectionWeakHandle): New type definition.
  8373. * src/BtMessageFactory.h
  8374. (BtMessageFactoryWeakHandle): New type definition.
  8375. * src/BitfieldMan.cc
  8376. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8377. cachedCompletedLength, cachedFilteredComletedLength,
  8378. cachedFilteredTotalLength.
  8379. Call updateCache().
  8380. (countMissingBlock): Return cachedNumMissingBlock.
  8381. (countMissingBlockNow): New function.
  8382. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8383. (countFilteredBlockNow): New function.
  8384. (setBit): Call updateCache().
  8385. (unsetBit): Call updateCache().
  8386. (setBitfield): Call updateCache().
  8387. (clearAllBit): Call updateCache().
  8388. (setAllBit): Use setBitInternal instead of setBit.
  8389. Call updateCache().
  8390. (addFilter): Call updateCache().
  8391. (enableFilter): Call updateCache().
  8392. (disableFilter): Call updateCache().
  8393. (clearFilter): Call updateCache().
  8394. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8395. (getFilteredTotalLengthNow): New function.
  8396. (getCompletedLength): Return cachedCompletedLength.
  8397. (getCompletedLengthNow): New function.
  8398. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8399. (getFilteredCompletedLengthNow): New function.
  8400. (updateCache): New function.
  8401. * src/BtMessageReceiver.h
  8402. (BtMessageReceiverWeakHandle): New type definition.
  8403. * src/DefaultBtMessageReceiver.cc
  8404. (receiveHandshake): Use messageFactory member.
  8405. (sendHandshake): Use messageFactory member.
  8406. (receiveMessage): Use messageFactory member.
  8407. * src/DefaultBtMessageFactory.h
  8408. (dispatcher): New variable.
  8409. (requestFactory): New variable.
  8410. (peerConnection): New variablle.
  8411. (setBtMessageDispatcher): New function.
  8412. (setBtRequestFactory): New function.
  8413. (setPeerConnection): New function.
  8414. * src/SharedHandle.h
  8415. (RefCount): New class.
  8416. (WeakHandle): New class.
  8417. * src/PeerObject.h
  8418. (BtMessageReceiver.h): New include.
  8419. (PeerObject): Added btMessageReceiver.
  8420. (btMessageReceiver): New variable.
  8421. * src/Util.cc
  8422. (countBit): Simplified.
  8423. * src/BtCancelMessage.cc
  8424. (doReceivedAction): Use dispatcher member.
  8425. * src/BtRequestFactory.h
  8426. (BtRequestFactoryWeakHandle): New type definition.
  8427. * src/PeerStorage.h
  8428. (downloadSpeed): int -> uint32_t
  8429. (uploadSpeed): int -> uint32_t
  8430. (sessionDownloadLength): long long int -> uint64_t
  8431. (sessionUploadLength): long long int -> uint64_t
  8432. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. To add RecoverableException, FatalException:
  8434. * src/AbstractCommand.cc
  8435. (onAbort): Exception -> RecoverableException
  8436. * src/PeerAbstractCommand.h
  8437. (RecoverableException.h): New include.
  8438. (onAbort): Exception -> RecoverableException.
  8439. * src/PeerInteractionCommand.cc
  8440. (onAbort): Exception -> RecoverableException.
  8441. * src/PeerAbstractCommand.cc
  8442. (execute): Exception -> RecoverableException.
  8443. (onAbort): Exception -> RecoverableException.
  8444. * src/TorrentRequestInfo.cc
  8445. (execute): Exception -> RecoverableException.
  8446. * src/MetalinkRequestInfo.cc
  8447. (execute): Exception -> RecoverableException.
  8448. * src/MetaFileUtil.cc: RecoverableException.
  8449. * src/AbstractCommand.h
  8450. (onAbort): Exception -> RecoverableException.
  8451. * src/DlRetryEx.h: Exception -> RecoverableException.
  8452. * src/DlAbortEx.h: Exception -> RecoverableException.
  8453. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8454. * src/Util.cc: Exception -> RecoverableException.
  8455. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8456. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8457. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8458. To make ID static const int
  8459. * src/BtInterestedMessage.h
  8460. (ID_t): Removed.
  8461. (ID): New variable.
  8462. (getId): Made non-const.
  8463. * src/BtPieceMessage.h
  8464. (ID_t): Removed.
  8465. (ID): New variable.
  8466. (getId): Made non-const.
  8467. * src/BtChokeMessage.h
  8468. (ID_t): Removed.
  8469. (ID): New variable.
  8470. (getId): Made non-const.
  8471. * src/BtHaveAllMessage.h
  8472. (ID_t): Removed.
  8473. (ID): New variable.
  8474. (getId): Made non-const.
  8475. * src/BtKeepAliveMessage.h
  8476. (ID_t): Removed.
  8477. (ID): New variable.
  8478. (getId): Made non-const.
  8479. * src/BtHandshakeMessage.h
  8480. (ID): New variable.
  8481. (getId): Made non-const.
  8482. * src/BtSuggestPieceMessage.h
  8483. (ID_t): Removed.
  8484. (ID): New variable.
  8485. (getId): Made non-const.
  8486. * src/BtPortMessage.h
  8487. (ID_t): Removed.
  8488. (ID): New variable.
  8489. (getId): Made non-const.
  8490. * src/AbstractBtMessage.h
  8491. (id): Removed.
  8492. (AbstractBtMessage): Removed id.
  8493. (getId): Removed.
  8494. * src/BtHaveMessage.h
  8495. (ID_t): Removed.
  8496. (ID): New variable.
  8497. (getId): Made non-const.
  8498. * src/BtAllowedFastMessage.h
  8499. (ID_t): Removed.
  8500. (ID): New variable.
  8501. (getId): Made non-const.
  8502. * src/BtCancelMessage.h
  8503. (ID_t): Removed.
  8504. (ID): New variable.
  8505. (getId): Made non-const.
  8506. * src/BtNotInterestedMessage.h
  8507. (ID_t): Removed.
  8508. (ID): New variable.
  8509. (getId): Made non-const.
  8510. * src/BtChokeMessage.h
  8511. (ID_t): Removed.
  8512. (ID): New variable.
  8513. (getId): Made non-const.
  8514. * src/BtRejectMessage.h
  8515. (ID_t): Removed.
  8516. (ID): New variable.
  8517. (getId): Made non-const.
  8518. * src/BtBitfieldMessage.h
  8519. (ID_t): Removed.
  8520. (ID): New variable.
  8521. (getId): Made non-const.
  8522. * src/BtUnchokeMessage.h
  8523. (ID_t): Removed.
  8524. (ID): New variable.
  8525. (getId): Made non-const.
  8526. * src/BtRequestMessage.h
  8527. (ID_t): Removed.
  8528. (ID): New variable.
  8529. (getId): Made non-const.
  8530. * src/BtHaveMessage.h
  8531. (ID_t): Removed.
  8532. (ID): New variable.
  8533. (getId): Made non-const.
  8534. To add --force-truncate command-line option and a check whether
  8535. the file already exists:
  8536. * src/DirectDiskAdaptor.h
  8537. (getFilePath): Made virtual public.
  8538. * src/MultiDiskAdaptor.h
  8539. (File.h): New include.
  8540. (DiskWriterEntry::fileEntry): Made private.
  8541. (DiskWriterEntry::fileExists): New function.
  8542. (DiskWriterEntry::getFileEntry): New function.
  8543. (fileExists): New function.
  8544. (getFilePath): New function.
  8545. * src/TorrentRequestInfo.cc
  8546. (FatalException.h): New include.
  8547. (message.h): New include.
  8548. (RecoverableException.h): New include.
  8549. (execute): Added a check whether file is already exists or not.
  8550. * src/DiskAdaptor.h
  8551. (fileExists): New function.
  8552. (getFilePath): New function.
  8553. * src/main.cc
  8554. (showUsage): Added an explanation of --force-truncate command-line
  8555. option.
  8556. (main): Added --force-truncate command-line option.
  8557. * src/Exception.h
  8558. (setMsg): buf[256] -> buf[1024]
  8559. * src/CopyDiskWriter.h
  8560. (getFilePath): Made public virtual.
  8561. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  8562. (fileExists): New function.
  8563. * src/DownloadEngineFactory.cc
  8564. (newTorrentConsoleEngine): Don't open file here.
  8565. * src/message.h
  8566. (EX_FILE_ALREADY_EXISTS): New definition.
  8567. * src/prefs.h
  8568. (PREF_FOECE_TRUNCATE): New definition.
  8569. * src/HttpResponseCommand.cc
  8570. (handleDefaultEncoding): Added a check whether the file already exists.
  8571. * src/SegmentMan.h
  8572. (fileExists): New function.
  8573. (shouldCancelDownloadForSafety): New function.
  8574. * src/FtpNegotiateCommand.cc
  8575. (recvSize): Added a check whether the file already exists.
  8576. * src/AbstractSingleDiskAdaptor.cc
  8577. (File.h): New include.
  8578. (fileExists): New function.
  8579. * src/AbstractSingleDiskAdaptor.h
  8580. (getFilePath): Removed.
  8581. (fileExists): New function.
  8582. * src/SegmentMan.cc
  8583. (fileExists): New function.
  8584. (shouldCancelDownloadForSafety): New function.
  8585. To fix regression bug in torrent downloading:
  8586. * src/DefaultBtRequestFactory.cc
  8587. (doChokedAction): New function.
  8588. * src/DefaultBtRequestFactory.h
  8589. (doChokedAction): New function.
  8590. * src/DefaultBtMessageDispatcher.cc
  8591. (doChokedAction): Do not delete request if its target is in allowed
  8592. fast set.
  8593. * src/DefaultBtInteractive.cc
  8594. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  8595. (sendKeepAlive): Send keep alive message even if the outgoing message
  8596. queue is not empty.
  8597. (decideInterest): Simplified the code.
  8598. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  8599. it is already called when BtChokeMessage is received from a peer.
  8600. * src/BtRequestFactory.h
  8601. (doChokedAction): New function.
  8602. To clean up code:
  8603. * src/PeerInteractionCommand.h
  8604. (executeInternal): Added virtual keyword explicitly.
  8605. (prepareForRetry): Added virtual keyword explicitly.
  8606. (prepareForNextPeer): Added virtual keyword explicitly.
  8607. (onAbort): Added virtual keyword explicitly.
  8608. * src/RequestSlot.cc
  8609. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  8610. * src/BtPieceMessage.cc
  8611. (doReceivedAction): Added a debug log of piece's bitfield.
  8612. * src/Piece.h
  8613. (getBitfieldLength): New function.
  8614. * src/ByteArrayDiskWriter.cc
  8615. (clear): Added buf = 0 to avoid double free corruption.
  8616. * src/FileAllocator.cc
  8617. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  8618. Added cp.reset().
  8619. * src/BitfieldMan.h
  8620. (operator=): Rewritten.
  8621. * src/BitfieldMan.cc
  8622. (BitfieldMan): Initialized bitfield, useBitfield.
  8623. * src/PeerConnection.cc
  8624. (receiveMessage): Added a call to socket->readable() after getting
  8625. message length to avoid possible EOF.
  8626. * src/Util.cc
  8627. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  8628. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8629. To add an ability to pre-allocate file space:
  8630. * src/DirectDiskAdaptor.h: Rewritten.
  8631. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  8632. * src/MultiDiskAdaptor.h: Rewritten.
  8633. * src/DefaultPieceStorage.cc
  8634. (MultiDiskWriter.h): Removed include.
  8635. (PreAllocationDiskWriter.h): Removed include.
  8636. (FileAllocationMonitor.h): New include.
  8637. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  8638. (initStorage): Rewritten.
  8639. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8640. * src/FileAllocator.h: New class.
  8641. * src/FileAllocator.cc: New class.
  8642. * src/FileAllocationMonitor.h: New class.
  8643. * src/FileAllocationMonitor.cc: New class.
  8644. * src/ConsoleFileAllocationMonitor.h: New class.
  8645. * src/ConsoleFileAllocationMonitor.cc: New class.
  8646. * src/AbstractSingleDiskAdaptor.h: New class.
  8647. * src/AbstractSingleDiskAdaptor.cc: New class.
  8648. * src/DiskAdaptor.h
  8649. (Directory.h): Removed include.
  8650. (DiskWriter.h): Removed include.
  8651. (FileEntry.h): Removed include.
  8652. (diskWriter): Removed.
  8653. (DiskAdaptor): Removed diskWriter.
  8654. (openFile): Made pure virtual.
  8655. (closeFile): Made pure virtual.
  8656. (openExistingFile): Made pure virtual.
  8657. (initAndOpenFile): Made pure virtual.
  8658. (writeData): Made pure virtual.
  8659. (readData): Made pure virtual.
  8660. (sha1Sum): Made pure virtual.
  8661. (getStoreDir): Returns const reference of storeDir.
  8662. (DiskAdaptorHandle): New type definition.
  8663. * src/main.cc
  8664. (ConsoleFileAllocationMonitor.h): New include.
  8665. (showUsage): Added default value description of -s option.
  8666. Added the description of --file-allocation option.
  8667. (main): Set default value of --file-allocation option to 'none'.
  8668. Added --file-allocation command-line option.
  8669. Setup FileAllocationMonitorFactory.
  8670. * src/FtpInitiateConnectionCommand.cc
  8671. (executeInternal): Removed diskWriter related processing, which was
  8672. moved to FtpNegotiationCommand.cc.
  8673. * src/DirectDiskAdaptor.cc
  8674. (getFilePath): Made non-const.
  8675. * src/CopyDiskAdaptor.h
  8676. (DiskAdaptor.h): Removed include.
  8677. (DiskWriter.h): Removed include.
  8678. (AbstractSingleDiskAdaptor.h): New include.
  8679. (getFilePath): Made non-const. Added virtual keyword.
  8680. (CopyDiskAdaptor): Removed diskWriter.
  8681. (getTempFile): Returns const reference.
  8682. (CopyDiskAdaptorHandle): New type definition.
  8683. * src/ByteArrayDiskWriter.cc
  8684. (clear): Simplified.
  8685. (initAndOpenFile): Rewritten.
  8686. (openFile): Call initAndOpenFile()
  8687. * src/MultiDiskAdaptor.cc: Rewritten.
  8688. * src/DownloadEngineFactory.cc
  8689. (FileAllocator.h): New include.
  8690. (FileAllocationMonitor.h): New include.
  8691. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  8692. create DefaultDiskWriter with file allocator.
  8693. * src/DiskWriter.h
  8694. (initAndOpenFile): Added totalLength argument.
  8695. (openFile): Added totalLength argument.
  8696. * src/prefs.h
  8697. (PREF_FILE_ALLOCATION): New definition.
  8698. (V_PREALLOC): New definition.
  8699. (V_NONE): New definition.
  8700. * src/HttpResponseCommand.cc
  8701. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  8702. size.
  8703. * src/FtpNegotiateCommand.cc
  8704. (Util.h): New include.
  8705. (recvSize): Open file here.
  8706. * src/Util.h
  8707. (ullitos): New function.
  8708. * src/CopyDiskWriter.h
  8709. (getFilePath): Made non-const.
  8710. * src/DefaultDiskWriter.h
  8711. (Option.h): New include.
  8712. (totalLength): Removed.
  8713. (DefaultDiskWriter): Removed totalLength.
  8714. (initAndOpenFile): Added totalLength argument.
  8715. (DefaultDiskWriterHandle): New type definition.
  8716. (createNewDiskWriter): New function.
  8717. * src/Util.cc
  8718. (ullitos): New function.
  8719. * src/DefaultDiskWriter.cc
  8720. (message.h): New include.
  8721. (FileAllocator.h): New include.
  8722. (prefs.h): New include.
  8723. (Util.h): New include.
  8724. (DefaultDiskWriter): Removed totalLength.
  8725. (initAndOpenFile): Added file allocation.
  8726. (createNewDiskWriter): New function. Just for temporary solution.
  8727. It will be rewritten later.
  8728. * src/DiskAdaptor.cc
  8729. (DiskAdaptor): Removed diskWriter.
  8730. * src/AbstractDiskWriter.cc
  8731. (LogFactory.h): New include.
  8732. (AbstractDiskWriter): Added fileAllocator, logger.
  8733. (openFile): Added totalLength argument.
  8734. * src/AbstractDiskWriter.h
  8735. (FileAllocator.h): New include.
  8736. (Logger.h): New include.
  8737. (fileAllocator): New variable.
  8738. (logger): New variable.
  8739. (openFile): Added totalLength argument. Added virtual keyword
  8740. explicitly.
  8741. (openExistingFile): Added totalLength argument. Added virtual keyword
  8742. explicitly.
  8743. (closeFile): Added virtual keyword explicitly.
  8744. (sha1Sum): Added virtual keyword explicitly.
  8745. (writeData): Added virtual keyword explicitly.
  8746. (readData): Added virtual keyword explicitly.
  8747. (setFileAllocator): New function.
  8748. * src/DefaultPieceStorage.h
  8749. (FileAllocator.h): New include.
  8750. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8751. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8752. * src/FileProgressMonitor.h: New class.
  8753. To compile aria2 on PC-BSD:
  8754. * src/DefaultBtContext.cc
  8755. (libgen.h): New include.
  8756. To fix memory leak:
  8757. * src/Exception.h
  8758. (~Exception): Delete cause. Fixed memory leak.
  8759. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Rewritten a portion of bittorrent implementation:
  8761. * src/BtMessageValidator.h: New class.
  8762. * src/BtBitfieldMessageValidator.h: New class.
  8763. * src/BtHandshakeMessageValidator.h: New class.
  8764. * src/BtRequestMessageValidator.h: New class.
  8765. * src/BtSuggestPieceMessageValidator.h: New class.
  8766. * src/BtAllowedFastMessageValidator.h: New class.
  8767. * src/BtRejectMessageValidator.h: New class.
  8768. * src/BtCancelMessageValidator.h: New class.
  8769. * src/BtPieceMessageValidator.h: New class.
  8770. * src/BtHaveMessageValidator.h: New class.
  8771. * src/BtEventListener.h: New class.
  8772. * src/AbstractBtEventListener.h: New class.
  8773. * src/BtEvent.h: New class.
  8774. * src/BtChokingEvent.h: New class.
  8775. * src/BtChokedEvent.h: New class.
  8776. * src/BtCancelSendingPieceEvent.h: New class.
  8777. * src/BtAbortOutstandingRequestEvent.h: New class.
  8778. * src/Randomizer.h: New class.
  8779. * src/SimpleRandomizer.h: New class.
  8780. * src/BtMessage.h: New class.
  8781. * src/AbstractBtMessage.h: New class.
  8782. * src/SimpleBtMessage.h: New class.
  8783. * src/BtHaveMessage.h: New class.
  8784. * src/BtInterestedMessage.h: New class.
  8785. * src/BtAllowedFastMessage.h: New class.
  8786. * src/BtUnchokeMessage.h: New class.
  8787. * src/BtCancelMessage.h: New class.
  8788. * src/BtNotInterestedMessage.h: New class.
  8789. * src/BtChokeMessage.h: New class.
  8790. * src/BtHaveNoneMessage.h: New class.
  8791. * src/BtHandshakeMessage.h: New class.
  8792. * src/BtSuggestPieceMessage.h: New class.
  8793. * src/BtHaveMessage.h: New class.
  8794. * src/BtPieceMessage.h: New class.
  8795. * src/BtHaveAllMessage.h: New class.
  8796. * src/BtKeepAliveMessage.h: New class.
  8797. * src/BtPortMessage.h: New class.
  8798. * src/BtRejectMessage.h: New class.
  8799. * src/BtBitfieldMessage.h: New class.
  8800. * src/BtRequestMessage.h: New class.
  8801. * src/DefaultBtRequestFactory.h: New class.
  8802. * src/DefaultBtMessageReceiver.h: New class.
  8803. * src/BtInteractive.h: New class.
  8804. * src/BtMessageDispatcher.h: New class.
  8805. * src/DefaultBtMessageDispatcher.h: New class.
  8806. * src/DefaultBtInteractive.h: New class.
  8807. * src/BitfieldManFactory.h: New class.
  8808. * src/HandleRegistry.h: New class.
  8809. * src/BtMessageFactory.h: New class.
  8810. * src/BtMessageReceiver.h: New class.
  8811. * src/DefaultBtMessageFactory.h: New class.
  8812. * src/PeerObject.h: New class.
  8813. * src/BtRequestFactory.h: New class.
  8814. * src/SuggestPieceMessage.h: Removed.
  8815. * src/PortMessage.h: Removed.
  8816. * src/SuggestPieceMessage.h: Removed.
  8817. * src/KeepAliveMessage.h: Removed.
  8818. * src/HandshakeMessage.h: Removed.
  8819. * src/PeerInteraction.h: Removed.
  8820. * src/UnchokeMessage.h: Removed.
  8821. * src/PieceMessage.h: Removed.
  8822. * src/RequestMessage.h: Removed.
  8823. * src/InterestedMessage.h: Removed.
  8824. * src/HaveMessage.h: Removed.
  8825. * src/CancelMessage.h: Removed.
  8826. * src/RejectMessage.h: Removed.
  8827. * src/AllowedFastMessage.h: Removed.
  8828. * src/HaveNoneMessage.h: Removed.
  8829. * src/SimplePeerMessage.h: Removed.
  8830. * src/HaveAllMessage.h: Removed.
  8831. * src/BitfieldMessage.h: Removed.
  8832. * src/PeerMessageFactory.h: Removed.
  8833. * src/NotInterestedMessage.h: Removed.
  8834. * src/ChokeMessage.h: Removed.
  8835. * src/PeerMessage.h: Removed.
  8836. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. To know root cause of exception:
  8838. * src/Exception.h
  8839. (cause): New variable.
  8840. (Exception): Added a parameter.
  8841. (getMsg): Return const reference to msg.
  8842. (getCause): New function.
  8843. * src/DlRetryEx.h
  8844. (DlRetryEx): Added a parameter 'cause'.
  8845. Added an overloaded constructor.
  8846. (DlAbortEx): Added a parameter 'cause'.
  8847. Added an overloaded constructor.
  8848. * src/SimpleLogger.cc
  8849. (writeLog): Log nested exception messages recursively.
  8850. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8851. * src/DefaultBtProgressInfoFile.cc
  8852. (load): Fixed memory leak when the infohash doesn't match.
  8853. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. * src/DefaultPeerStorage.cc
  8855. (calculateStat): Simplified the code by combining 2 loops into 1.
  8856. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  8858. for BitTorrent download:
  8859. * src/PeerAbstractCommand.cc
  8860. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  8861. * src/main.cc:
  8862. (timeoutSpecified): Removed.
  8863. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  8864. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  8865. * src/TorrentRequestInfo.cc
  8866. (timeoutSpecified): Removed.
  8867. (torrentHandler): Removed timeoutSpecified and the adjustment of
  8868. timeout value.
  8869. * src/prefs.h
  8870. (PREF_BT_TIMEOUT): New definition.
  8871. Delete unused variables:
  8872. * src/TorrentRequestInfo.cc
  8873. (requestInfo): Removed.
  8874. Move setSignalHander to Util::setGlobalSignalHandler:
  8875. * src/TorrentRequestInfo.cc:
  8876. setSignalHander -> Util::setGlobalSignalHandler
  8877. * src/main.cc
  8878. (setSignalHander): Removed.
  8879. (main): setSignalHander -> Util::setGlobalSignalHandler
  8880. * src/Util.h
  8881. (setGlobalSignalHandler): New function.
  8882. * src/Util.cc
  8883. (setGlobalSignalHandler): New function.
  8884. * src/UrlRequestInfo.cc:
  8885. setSignalHander -> Util::setGlobalSignalHandler
  8886. Reset peer status in order to exit gracefully:
  8887. * src/PeerAbstractCommand.cc
  8888. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  8889. To fix the bug that causes the number of bytes uploaded is not saved
  8890. to .aria2 file:
  8891. * src/DefaultPeerStorage.h
  8892. (removedPeerSessionDownloadLength): New variable.
  8893. (removedPeerSessionUploadLength): New variable.
  8894. * src/DefaultPeerStorage.cc
  8895. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  8896. removedPeerSessionUploadLength(0).
  8897. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  8898. through all peers, and then add removedPeerSessionDownloadLength(
  8899. removedPeerSessionUploadLength) to it.
  8900. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  8901. (to) the peer to removedPeerSessionDownloadLength
  8902. (removedPeerSessionUploadLength).
  8903. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. To add Metalink location option:
  8905. * src/MetalinkRequestInfo.cc
  8906. (execute): Call MetalinkEntry::setLocationPreference()
  8907. * src/main.cc
  8908. (showUsage): Added the help message for --metalink-location option.
  8909. (main): Added --metalink-location option.
  8910. * src/prefs.h
  8911. (PREF_METALINK_LOCATION): New definition.
  8912. * src/MetalinkEntry.cc
  8913. (AddLocationPreference): New function object.
  8914. (setLocationPreference): New function.
  8915. * src/Xml2MetalinkProcessor.cc
  8916. (getResource): Set location attribute to MetalinkResource
  8917. To show URLs to download
  8918. * src/UrlRequestInfo.h
  8919. (printUrls): New function.
  8920. To add multiple <file> Metalink support:
  8921. * src/MetalinkEntry.h
  8922. (MetalinkResources): Removed.
  8923. (setLocationPreference): New function.
  8924. (MetalinkEntryHandle): New type definition.
  8925. (MetalinkEntries): New type definition.
  8926. * src/Xml2MetalinkProcessor.h
  8927. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8928. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8929. (parseFile): Metalinker* -> MetalinkerHandle
  8930. * src/UrlRequestInfo.h
  8931. (execute): RequestInfo* -> RequestInfos
  8932. * src/MetalinkRequestInfo.cc
  8933. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  8934. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  8935. (execute): RequestInfo* -> RequestInfos
  8936. Added multiple <file> support. Print filename when it is queued.
  8937. * src/MetalinkRequestInfo.h
  8938. (execute): RequestInfo* -> RequestInfos
  8939. (getDownloadEngine): Removed.
  8940. * src/RequestInfo.h
  8941. (RequestInfoHandle): New type definition.
  8942. (RequestInfos): New type definition.
  8943. (execute): RequestInfo* -> RequestInfos
  8944. (getDownloadEngine): Removed.
  8945. * src/MetalinkResource.h
  8946. (MetalinkResourceHandle): New type definition.
  8947. (MetalinkResources): New type definition.
  8948. * src/MetalinkEntry.cc
  8949. (~MetalinkEntry): Removed the deletion of the elements of resources,
  8950. because the element is now of type MetalinkResourceHandle.
  8951. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  8952. (Supported): MetalinkResource* -> MetalinkResourceHandle
  8953. (dropUnsupportedResource): Removed the deletion of the elements of
  8954. resources because the element is now of type MetalinkResourceHandle.
  8955. * src/Xml2MetalinkProcessor.cc
  8956. (parseFile): Metalinker* -> MetalinkerHandle
  8957. MetalinkEntry* -> MetalinkEntryHandle
  8958. Removed try-catch block.
  8959. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8960. MetalinkResource* -> MetalinkResourceHandle
  8961. Removed try-catch block.
  8962. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8963. Free result by using xmlXPathFreeObject()
  8964. * src/Metalinker.cc
  8965. (~Metalinker): Removed the deletion of entries.
  8966. MetalinkEntry* -> MetalinkEntryHandle
  8967. (queryEntry): Add multiple <file> Metalink support.
  8968. * src/Metalinker.h
  8969. (MetalinkEntries): Removed.
  8970. (queryEntry): MetalinkEntry* -> MetalinkEntries
  8971. * src/MetalinkProcessor.h
  8972. (parseFile): Metalinker* -> MetalinkerHandle
  8973. Bug fixes:
  8974. * src/PeerChokeCommand.cc
  8975. (execute): cat01->cat02
  8976. * src/DefaultPieceStorage.cc
  8977. (DefaultPieceStorage): Added diskAdaptor(0)
  8978. * src/TrackerWatcherComand.cc:
  8979. (execute): Use btAnnounce->noMoreAnnounce()
  8980. to determin whether the function returns true or not.
  8981. * src/TrackerUpdateCommand.cc:
  8982. (execute): Use btAnnounce->noMoreAnnounce()
  8983. to determin whether the function returns true or not.
  8984. * src/FtpConnection.cc
  8985. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  8986. This is the fix of the busy loop bug.
  8987. * src/DownloadCommand.cc
  8988. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  8989. cached PeerStat.
  8990. The value of "name" entry in torrent file is now set by
  8991. *DiskAdaptor::setTopDir(...) methods.
  8992. * src/MultiDiskAdaptor.h
  8993. (topDir): New variable.
  8994. (setTopDir): New function.
  8995. (getTopDir): New function.
  8996. * src/MultiDiskAdaptor.cc
  8997. (getFilePath): Concat storDir, "/" and topDir.
  8998. (mkdir): Use getFilePath() to get the directory path for output.
  8999. * src/DefaultPieceStorage.cc
  9000. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9001. CopyDiskAdaptor.
  9002. * src/CopyDiskAdaptor.h
  9003. (topDir): New variable.
  9004. (setTopDir): New function.
  9005. (getTopDir): New function.
  9006. * src/CopyDiskAdaptor.cc
  9007. (fixFilename): Updated.
  9008. Misc
  9009. * src/UrlRequestInfo.h
  9010. (e): Removed.
  9011. (UrlRequestInfo): Removed e.
  9012. (getDownloadEngine): Removed.
  9013. * src/UrlRequestInfo.cc
  9014. (handler): Rewritten.
  9015. (printUrls): New function.
  9016. (execute): Call printUrls().
  9017. * src/HandshakeMessage.cc
  9018. (check): peerinteraction->getBtContext() -> btContext
  9019. * src/PeerInteraction.h
  9020. (getBtContext): Removed.
  9021. * src/TorrentRequestInfo.h
  9022. (execute): RequestInfo* -> RequestInfos
  9023. (getDownloadEngine): Removed.
  9024. * src/TorrentRequestInfo.cc
  9025. (haltRequested): Removed.
  9026. (btHaltRequested): New variable.
  9027. (torrentHandler): haltRequested -> btHaltRequested
  9028. (execute): RequestInfo* -> RequestInfos
  9029. * src/TorrentConsoleDownloadEngine.cc
  9030. (afterEachIteration): haltRequested -> btHaltRequested.
  9031. * src/ConsoleDownloadEngine.h
  9032. (initStatistics): Added virtual.
  9033. (calculateStatistics): Added virtual.
  9034. (onEndOfRun): Added virtual.
  9035. (afterEachIteration): Added virtual.
  9036. * src/ConsoleDownloadEngine.cc
  9037. (haltRequested): New variable.
  9038. (afterEachIteration): New function.
  9039. * src/main.cc
  9040. (requestInfo): Removed.
  9041. * src/SegmentMan.cc
  9042. (findSlowerSegmentEntry): Refactored.
  9043. * Release 0.9.0
  9044. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  9046. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  9047. * src/TorrentMan.h: Removed.
  9048. * src/TorrentMan.cc: Removed.
  9049. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  9050. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  9051. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  9052. * src/PeerAbstractCommand.cc: Use btRuntime.
  9053. * src/BtContextAwareCommand.h: New class.
  9054. * src/FileEntry.h: Added accessor methods for following variables.
  9055. (path): Made private.
  9056. (length): Made private.
  9057. (offset): Made private.
  9058. (extracted): Made private.
  9059. (requested): Made private.
  9060. (FileEntries): New definition.
  9061. (FileEntryHandle): New definition.
  9062. * src/FileEntry.cc: New file.
  9063. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  9064. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  9065. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  9066. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  9067. * src/PieceStorage.h: New file.
  9068. * src/PeerInteractionCommand.h: Use btContext.
  9069. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9070. btRuntime.
  9071. * src/DefaultBtProgressInfoFile.h: New file.
  9072. * src/DefaultBtProgressInfoFile.cc: New file.
  9073. * src/File.cc
  9074. (Util.h): New include.
  9075. (mkdirs): New function.
  9076. * src/MultiDiskAdaptor.h
  9077. (mkdir): New function.
  9078. * src/PeerListProcessor.h
  9079. (Peers): Removed.
  9080. * src/PeerInteraction.h
  9081. (torrentMan): Removed.
  9082. (btContext): New variable.
  9083. (peerStorage): New variable.
  9084. (pieceStorage): New variable.
  9085. (btAnnounce): New variable.
  9086. (getTorrentMan): Removed.
  9087. (getBtContext): New function.
  9088. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9089. btAnnounce.
  9090. * src/HandshakeMessage.h
  9091. (TorrentMan.h): Removed.
  9092. * src/HandshakeMessage.cc: Use btContext.
  9093. * src/DefaultBtAnnounce.cc: New file.
  9094. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9095. * src/DefaultPieceStorage.cc: New file.
  9096. * src/DefaultBtContext.h: New file.
  9097. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9098. Use the accessor methods of FileEntry.
  9099. * src/CookieBox.cc: Updated to use Util::slice().
  9100. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9101. * src/common.h (SharedHandle.h): New include.
  9102. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9103. pieceStorage.
  9104. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9105. * src/DiskAdaptor.h
  9106. (topDir): Removed.
  9107. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9108. (setTopDir): Removed.
  9109. (getTopDir): Removed.
  9110. * src/BtContext.h: New file.
  9111. * src/DefaultPeerStorage.h: New file.
  9112. * src/PieceMessage.h (TorrentMan.h): Removed.
  9113. * src/RequestMessage.h (TorrentMan.h): Removed.
  9114. * src/TorrentDownloadEngine.h
  9115. (uploadLength): New variable.
  9116. (btContext): New variable.
  9117. (btRuntime): New variable.
  9118. (pieceStorage): New variable.
  9119. (peerStorage): New variable.
  9120. (btAnnounce): New variable.
  9121. (btProgressInfoFile): New variable.
  9122. (torrentMan): Removed.
  9123. (setBtContext): New function.
  9124. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9125. peerStorage, btAnnounce, btProgressInfoFile.
  9126. * src/Piece.h
  9127. (toString): New function.
  9128. (Pieces): New type definition.
  9129. * src/Peer.h
  9130. (active): New variable.
  9131. (Peer): Added active.
  9132. (activate): Set active to true.
  9133. (deactivate): Set active to false.
  9134. (isActive): New function.
  9135. (Peers): New type definition.
  9136. * src/DirectDiskAdaptor.cc
  9137. (getFilePath): Use the accessor methods of FileEntry.
  9138. * src/TorrentConsoleDownloadEngine.h
  9139. (afterEachIteration): New function.
  9140. * src/TorrentConsoleDownloadEngine.cc
  9141. (haltRequested): New variable.
  9142. (sendStatistics): Use pieceStorage, btRuntime.
  9143. (afterEachIteration): New function.
  9144. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9145. * src/Directry.h
  9146. (Directory): New function.
  9147. (DirectoryHandle): New type definition.
  9148. * src/BtProgressInfoFile.h: New file.
  9149. * src/RequestMessage.cc: Use pieceStorage.
  9150. * src/BtRuntime.h: New file.
  9151. * src/DefaultBtContext.cc: New file.
  9152. * src/BitfieldMan.h
  9153. (getCompletedLength): New function(private).
  9154. (getCompletedLength): New function.
  9155. (getFilteredCompletedLength): New function.
  9156. * src/BitfieldMan.h
  9157. (getCompletedLength): New function(private).
  9158. (getCompletedLength): New function.
  9159. (getFilteredCompletedLength): New function.
  9160. * src/MultiDiskAdaptor.cc
  9161. (mkdir): New function.
  9162. (openFile): Call mkdir().
  9163. (initAndOpenFile): Call mkdir().
  9164. * src/CancelMessage.h
  9165. (TorrentMan.h): Removed.
  9166. * src/RejectMessage.h
  9167. (TorrentMan.h): Removed.
  9168. * src/DownloadEngineFactory.cc
  9169. (DefaultPieceStorage.h): New include.
  9170. (DefaultPeerStorage.h): New include.
  9171. (DefaultBtAnnounce.h): New include.
  9172. (DefaultBtProgressInfoFile.h): New include.
  9173. (newTorrentConsoleEngine): Rewritten.
  9174. * src/ShareRatioSeedCriteria.h
  9175. (torrentMan): Removed.
  9176. (btContext): New variable.
  9177. (peerStorage): New variable.
  9178. (btRuntime): New variable.
  9179. (evaluate): Use btContext, btRuntime, peerStorage.
  9180. * src/AnnounceTier.h: New file.
  9181. * src/BtAnnounce.h: New file.
  9182. * src/BtRegistry.h: New file.
  9183. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9184. * src/PeerConnection.h (TorrentMan.h): Removed.
  9185. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9186. * src/Util.h
  9187. (slice): Added an argument.
  9188. * src/Util.cc
  9189. (slice): Added an argument to control whether trim is made or not.
  9190. * src/PeerStorage.h: New file.
  9191. * src/BtRegistry.cc: New file.
  9192. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9193. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9194. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9195. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9196. * src/TorrentRequestInfo.h
  9197. (e): Removed.
  9198. (showFileEntry): Added an argument.
  9199. (getDownloadEngine): Return 0.
  9200. * src/DefaultBtAnnounce.h: New file.
  9201. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9202. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9203. * src/PeerMessageFactory.h
  9204. (btContext): New variable.
  9205. (pieceStorage): New variable.
  9206. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9207. btAnnounce.
  9208. * src/DiskAdaptor.cc
  9209. (DiskAdaptor): Removed topDir.
  9210. (~DiskAdaptor): Removed topDir.
  9211. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9212. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9213. * src/File.h (mkdirs): New function.
  9214. * src/DefaultPeerStorage): New file.
  9215. * src/DownloadEngineFactory.h
  9216. (newTorrentConsoleEngine): Use btContext.
  9217. * src/BtContextAwareCommand.cc: New file.
  9218. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9219. * src/PeerMessage.h
  9220. (btContext): New variable.
  9221. (peerStorage): New variable.
  9222. (pieceStorage): New variable.
  9223. (setBtContext): New function.
  9224. * src/Directry.cc
  9225. (Directory): New function.
  9226. (createDir): Do nothing if name.size() == 0.
  9227. * src/AnnounceList.h
  9228. (AnnounceTier): Removed.
  9229. (AnnounceTiers): Removed.
  9230. * src/DefaultPieceStorage.h: New file.
  9231. * src/Piece.cc (toString): New function.
  9232. To fix typo:
  9233. * src/main.cc (showVersion): Fixed typo.
  9234. To fix compile warning:
  9235. * src/DelegatingPeerListProcessor.cc
  9236. (canHandle): Added "return false".
  9237. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9238. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9239. make the process of announce request testable.
  9240. * src/TrackerWatcherCommand.h
  9241. (TimeA2.h): Removed.
  9242. (interval): Removed.
  9243. (checkPoint): Removed.
  9244. (createRequestCommand): Added an argument 'url'.
  9245. (TrackerWatherCommand): Removed interval.
  9246. (createCommand): New function.
  9247. * src/DownloadEngineFactory.cc
  9248. (newTorrentConsoleEngine): Updated according to the changes in
  9249. TrackerWatherCommand.
  9250. * src/TorrentMan.cc
  9251. (DelegatingPeerListProcessor.h): New includes.
  9252. (TorrentMan): Added the initialization of announceInterval.
  9253. (isStoppedAnnounceReady): New function.
  9254. (isCompletedAnnounceReady): New function.
  9255. (isDefaultAnnounceReady): New function.
  9256. (isAnnounceReady): New function.
  9257. (getAnnounceUrl): New function.
  9258. (announceStart): New function.
  9259. (announceFailure): New function.
  9260. (announceSuccess): New function.
  9261. (isAllAnnounceFailed): New function.
  9262. (resetAnnounce): New function.
  9263. (processAnnounceResponse): New function.
  9264. (needMorePeerConnection): New function.
  9265. (noMoreAnnounce): New function.
  9266. * src/TrackerUpdateCommand.h
  9267. (getTrackerResponse): int->size_t
  9268. * src/TorrentMan.h
  9269. (isStoppedAnnounceReady): New function.
  9270. (isCompletedAnnounceReady): New function.
  9271. (isDefaultAnnounceReady): New function.
  9272. (announceInterval): New variable.
  9273. (isAnnounceReady): New function.
  9274. (getAnnounceUrl): New function.
  9275. (announceStart): New function.
  9276. (announceFailure): New function.
  9277. (announceSuccess): New function.
  9278. (isAllAnnounceFailed): New function.
  9279. (resetAnnounce): New function.
  9280. (processAnnounceResponse): New function.
  9281. (needMorePeerConnection): New function.
  9282. (noMoreAnnounce): New function.
  9283. * src/TrackerWatcherCommand.cc
  9284. (TrackerWatherCommand): Removed interval and checkPoint.
  9285. (execute): Rewritten.
  9286. (createCommand): New function.
  9287. (createRequestCommand): Rewritten.
  9288. * src/TrackerUpdateCommand.cc
  9289. (MetaFileUtil.h): Removed.
  9290. (DelegatingPeerListProcessor.h): Removed.
  9291. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9292. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Request -> RequestHandle:
  9294. * src/HttpResponseCommand.h: Request->RequestHandle
  9295. * src/AbstractCommand.cc: Request->RequestHandle
  9296. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9297. * src/HttpRequestCommand.cc: Request->RequestHandle
  9298. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9299. * src/AbstractCommand.h: Request->RequestHandle
  9300. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9301. * src/HttpResponseCommand.cc: Request->RequestHandle
  9302. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9303. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9304. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9305. * src/HttpConnection.h: Request->RequestHandle
  9306. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9307. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9308. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9309. * src/DownloadCommand.h: Request->RequestHandle
  9310. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9311. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9312. * src/HttpRequestCommand.h: Request->RequestHandle
  9313. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9314. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9315. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9316. * src/HttpDownloadCommand.h: Request->RequestHandle
  9317. * src/FtpConnection.cc: Request->RequestHandle
  9318. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9319. * src/UrlRequestInfo.cc: Request->RequestHandle
  9320. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9321. * src/HttpConnection.h: Request->RequestHandle
  9322. * src/DownloadCommand.cc: Request->RequestHandle
  9323. * src/FtpConnection.h: Request->RequestHandle
  9324. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9325. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9326. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9327. * src/Request.h
  9328. (SharedHandle.h): New include.
  9329. (RequestHandle): New type definition.
  9330. (Requests): Redefined.
  9331. To add MULTITRACKER support:
  9332. * src/TrackerWatcherCommand.h
  9333. (createRequestCommand): New function.
  9334. * src/DownloadEngineFactory.cc
  9335. (newTorrentConsoleEngine): Removed req.
  9336. * src/prefs.h
  9337. (PREF_TRACKER_MAX_TRIES): New definition.
  9338. * src/TorrentMan.cc
  9339. (TorrentMan): Removed req. Added trackerNumTry.
  9340. (~TorrentMan): Removed req.
  9341. (setupInternal1): Added announceList.
  9342. * src/TorrentRequestInfo.cc
  9343. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9344. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9345. * src/main.cc
  9346. (main): Added PREF_TRACKER_MAX_TRIES.
  9347. * src/TorrentMan.h
  9348. (Request.h): Removed.
  9349. (AnnounceList.h): New include.
  9350. (trackerNumTry): New variable.
  9351. (req): Removed.
  9352. (announceList): New variable.
  9353. * src/TrackerWatcherCommand.cc
  9354. (execute): Rewritten.
  9355. (createRequestCommand): New function.
  9356. * src/TrackerUpdateCommand.cc
  9357. (execute): Updated with the use of AnnounceList.
  9358. * src/AnnounceList.cc: New class.
  9359. * src/AnnounceList.h: New class.
  9360. To fix typo:
  9361. * src/prefs.h
  9362. (PREF_MAX_TRIES): max_try->max_tries
  9363. To not to decode "+" as space in URL decode:
  9364. * src/Util.cc
  9365. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9366. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. To add timeout to async name resolution:
  9368. * src/AbstractCommand.h
  9369. (nameResolveFinished): New function. This is not elegant way. It needs
  9370. to be more refined.
  9371. (nameResolverCheck): New variable.
  9372. * src/AbstractCommand.cc
  9373. (AbstractCommand): Added nameResolverCheck.
  9374. (execute): Added the check whether the name resolution has finished.
  9375. (setNameResolverCheck): Set nameResolverCheck to true.
  9376. (disableNameResolverCheck): Set nameResolverCheck to false.
  9377. (nameResolverFinished): New function.
  9378. * src/FtpInitiateConnectionCommand.h
  9379. (nameResolverFinished): New function.
  9380. * src/FtpInitiateConnectionCommand.cc
  9381. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9382. * src/HttpInitiateConnectionCommand.h
  9383. (nameResolverFinished): New function.
  9384. * src/HttpInitiateConnectionCommand.cc
  9385. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9386. * src/prefs.h
  9387. (PREF_DNS_TIMEOUT): New definition.
  9388. * src/main.cc
  9389. (main): Added PREF_DNS_TIMEOUT.
  9390. To add the support for a non-compact response from a tracker:
  9391. * src/PeerListProcessor.h: New class.
  9392. * src/DefaultPeerListProcessor.h: New class.
  9393. * src/DefaultPeerListProcessor.cc: New class.
  9394. * src/CompactPeerListProcessor.h: New class.
  9395. * src/CompactPeerListProcessor.cc: New class.
  9396. * src/DelegatingPeerListProcessor.h: New class.
  9397. * src/DelegatingPeerListProcessor.cc: New class.
  9398. * src/TorrentMan.cc
  9399. (addPeer): New function(overload).
  9400. (addPeer): Delete unused peers only when new peer is added.
  9401. * src/TorrentMan.h
  9402. (PeerListProcessor.h): Included.
  9403. (Peers): Removed.
  9404. (addPeer): New function(overload).
  9405. * src/TrackerUpdateCommand.cc
  9406. (netinet/in.h): Removed.
  9407. (DelegatingPeerListProcessor.h): Included.
  9408. (execute): Updated to use DelegatingPeerListProcessor.
  9409. To fix the memory leak in TorrentMan::peers:
  9410. * src/PeerAbstractCommand.cc
  9411. (onAbort): Added peer->resetStatus().
  9412. * src/Peer.h
  9413. (resetStatus): Made public.
  9414. To improve the precision of the speed calculation:
  9415. * src/SpeedCalc.h
  9416. (nextInterval): New variable.
  9417. * src/SpeedCalc.cc
  9418. (reset): Added nextInterval.
  9419. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9420. (changeSw): Set nextInterval to 15 seconds relative to the current
  9421. instant time.
  9422. * src/main.cc
  9423. (showVersion): Updated.
  9424. (showUsage): Updated.
  9425. * Release 0.8.1
  9426. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9427. * src/main.cc
  9428. (showUsage): Commented out --min-segment-size option.
  9429. (main): Commented out --min-segment-size option.
  9430. * Release 0.8.0
  9431. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9432. * src/*.{h,cc}:
  9433. Added an exception to the license which allows linking with OpenSSL.
  9434. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. * src/AbstractCommand.cc
  9436. (execute): Check whether the download has finished before checking
  9437. socket status.
  9438. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9439. Do not exit even if no segment is available.
  9440. * src/prefs.h
  9441. (PREF_STARTUP_IDLE_TIME): New definition.
  9442. * src/PeerInteractionCommand.cc
  9443. (executeInternal): Removed max speed limit. Because it performs bad.
  9444. (receiveMessages): Added max speed limit. This was better than above,
  9445. but still a little bit to be desired. Sometimes the download speed
  9446. became much faster than I specified.
  9447. * src/SpeedCalc.h
  9448. (start): New variable.
  9449. (accumulatedLength): New variable.
  9450. (getAvgSpeed): New function.
  9451. * src/SpeedCalc.cc
  9452. (reset): Added start, accumulatedLength.
  9453. (update): Added calculation of an average speed.
  9454. (getAvgSpeed): New function.
  9455. * src/DownloadCommand.h
  9456. (sw): Removed.
  9457. * src/main.cc
  9458. (main): Added PREF_STARTUP_IDLE_TIME.
  9459. * src/PeerStat.h
  9460. (STATUS): Added REQUEST_IDLE.
  9461. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9462. (getAvgDownloadSpeed): New function
  9463. (requestIdle): New function.
  9464. * src/SegmentMan.h
  9465. (SegmentEntryHandle): New type definition.
  9466. (SegmentEntries): Now holds SegmentEntryHandle.
  9467. (findSlowerSegmentEntry): New funtion.
  9468. * src/SegmentMan.cc
  9469. (save): Updated according to the changes in SegmentEntries.
  9470. (read): Updated according to the changes in SegmentEntries.
  9471. (FindSegmentEntryByIndex): Updated according to the changes in
  9472. SegmentEntries.
  9473. (FindSegmentEntryByCuid): Updated according to the changes in
  9474. SegmentEntries.
  9475. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9476. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9477. Renamed uitr as itr.
  9478. (findSlowerSegmentEntry): New function.
  9479. (getSegment): Updated according to the changes in SegmentEntries.
  9480. Added the feature that cancels the segment with slow server and fast
  9481. one takes it over.
  9482. (cancelSegment): Updated according to the changes in SegmentEntries.
  9483. (getDownloadLength): Updated according to the changes in
  9484. SegmentEntries.
  9485. (init): Assigned 0 to bitfield after deleting it.
  9486. * src/DownloadCommand.cc
  9487. (STARTUP_IDLE_TIME): Removed.
  9488. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9489. * src/PeerChokeCommand.cc
  9490. (optUnchokingPeer): Updated according to the changes in Peer.
  9491. (ResetDelta): Removed.
  9492. (UploadFaster): Updated according to the changes in Peer.
  9493. (DownloadFaster): Updated according to the changes in Peer.
  9494. (execute): I clarify the meaning of "upload" and "download" here.
  9495. "upload" means the transfer from localhost to remote host.
  9496. "download" means the transfer from remote host to localhost.
  9497. Based on this rule, I swapped orderByUploadRate and
  9498. orderByDownloadRate.
  9499. * src/PeerInteractionCommand.cc
  9500. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9501. (executeInternal): Removed the argument of
  9502. peerInteraction->sendMessages().
  9503. (receiveMessages): Rewritten download speed limit.
  9504. (sendKeepAlive): Removed peerInteraction->sendMessages().
  9505. * src/HttpResponseCommand.cc
  9506. (handleDefaultEncoding): If file size is unknown in torrent request,
  9507. do not call segmentMan->initBitfield() here.
  9508. Disabled persistent connection feature in torrent request.
  9509. * src/UrlRequestInfo.h
  9510. (UrlRequestInfo): Removed const qualifier from option.
  9511. * src/TorrentMan.h
  9512. (TransferStat): New class.
  9513. (deltaDownloadLength): Removed.
  9514. (deltaUploadLength): Removed.
  9515. (addDeltaDownloadLength): Removed.
  9516. (getDeltaDownloadLength): Removed.
  9517. (resetDeltaDownloadLength): Removed.
  9518. (addDeltaUploadLength): Removed.
  9519. (getDeltaUploadLength): Removed.
  9520. (resetDeltaUploadLength): Removed.
  9521. (addActivePeer): Added peer->activate().
  9522. (deleteActivePeer): Added peer->deactivate().
  9523. (calculateStat): New function.
  9524. * src/TorrentMan.cc
  9525. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9526. (calculateStat): New function.
  9527. * src/PeerInteraction.h
  9528. (uploadLimit): Removed.
  9529. (option): New variable.
  9530. (setUploadLimit): Removed.
  9531. (getUploadSpeed): Removed.
  9532. (sendMessages): Removed the argument "currentUploadSpeed".
  9533. * src/PeerInteraction.cc
  9534. (prefs.h): Included.
  9535. (PeerInteraction): Removed uploadLimit. Added option.
  9536. (sendMessages): Rewritten upload speed limit.
  9537. (sendHandshake): Removed the argument from sendMessages().
  9538. (sendBitfield): Removed the argument from sendMessages().
  9539. * src/PeerAbstractCommand.cc
  9540. (execute): Commented out the portion of upload limit.
  9541. (onAbort): Removed peer->resetStatus().
  9542. * src/TorrentRequestInfo.cc
  9543. (timeoutSpecified): Declared extern.
  9544. (execute): Set timeout to 180 if timeout is not specified by.
  9545. command-line.
  9546. * src/PieceMessage.cc
  9547. (receivedAction): Added peer->updateDownloadLength().
  9548. Removed peer->addPeerUpload().
  9549. Removed torrentMan->addDeltaDownloadLength().
  9550. (send): Added peer->updateUploadLength().
  9551. Removed peer->addPeerDownload().
  9552. Removed torrentMan->addDeltaUploadLength().
  9553. * src/main.cc
  9554. (timeoutSpecified): New variable.
  9555. (main): Set timeoutSpecified to false.
  9556. If the command-line option "--upload-limit" is specified, then
  9557. timeoutSpecified is set to true. This option will remain in the next
  9558. release, but be deprecated in the future release.
  9559. * src/TorrentRequestInfo.h
  9560. (TorrentRequestInfo): Removed const qualifier from op.
  9561. * src/PeerStat.h
  9562. (uploadSpeed): New variable.
  9563. (PeerStat): Added default value to cuid.
  9564. (calculateUploadSpeed): New function.
  9565. (updateUploadLength): New function.
  9566. (getMaxUploadSpeed): New function.
  9567. (getAvgUploadSpeed): New function.
  9568. (reset): Added uploadSpeed. Set status to IDLE.
  9569. * src/TorrentDownloadEngine.h
  9570. (cp): Declared as Time.
  9571. (sessionDownloadLengthArray): Removed.
  9572. (sessionUploadLengthArray): Removed.
  9573. (currentCp): Removed.
  9574. (lastCalcStat): New variable
  9575. (lastElapsed): Removed.
  9576. (sessionDownloadLength): Removed.
  9577. (calculateStat): New function.
  9578. * src/TorrentDownloadEngine.cc
  9579. (initStatistics): Removed lastElapsed, cp[],
  9580. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  9581. currentCp, sessionDownloadLength.
  9582. Added cp.reset() and lastCalcStat.reset().
  9583. (calculateSpeed): Changed the name of the argument.
  9584. (calculateStatistics): Rewritten.
  9585. (calculateStat): New function.
  9586. * src/Peer.h
  9587. (PeerStat.h): Included.
  9588. (peerUpload): Removed.
  9589. (peerDownload): Removed.
  9590. (peerStat): New variable.
  9591. (sessionUploadLength): New variable.
  9592. (sessionDownloadLength): New variable.
  9593. (deltaUpload): Removed.
  9594. (deltaDownload): Removed.
  9595. (resetStatus): Made private.
  9596. (Peer): Added sessionUploadLength, sessionDownloadLength.
  9597. Removed peerUpload, peerDownload.
  9598. (updateUploadLength): New function.
  9599. (addDeltaUpload): Removed.
  9600. (updateDownloadLength): New function.
  9601. (resetDeltaUpload): Removed.
  9602. (getDeltaUpload): Removed.
  9603. (addDeltaDownload): Removed.
  9604. (calculateUploadSpeed): New function.
  9605. (resetDeltaDownload): Removed.
  9606. (getDeltaDownload): Removed.
  9607. (calculateDownloadSpeed): New function.
  9608. (getSessionUploadLength): New function.
  9609. (getSessionDownloadLength): New function.
  9610. (activate): New function.
  9611. (deactivate): New function.
  9612. (addPeerUpload): Removed.
  9613. (setPeerUpload): Removed.
  9614. (getPeerUpload): Removed.
  9615. (addPeerDownload): Removed.
  9616. (setPeerDownload): Removed.
  9617. (getPeerDownload): Removed.
  9618. * src/Peer.cc
  9619. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  9620. * src/MetalinkRequestInfo.h
  9621. (MetalinkRequestInfo): Removed const qualifier from op.
  9622. * src/RequestInfo.h
  9623. (op): Removed const qualifier.
  9624. (RequestInfo): Removed const qualifier from op.
  9625. * src/prefs.h
  9626. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  9627. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  9628. * src/PeerInteractionCommand.cc
  9629. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  9630. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  9631. * src/PeerInteraction.cc
  9632. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  9633. * src/main.cc
  9634. (showUsage): Updated the description of "--lowest-speed-limit" option.
  9635. Added the description of "--max-download-limit" option.
  9636. Removed the description of "--upload-limit" option.
  9637. Added the description of "--max-upload-limit" option.
  9638. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  9639. Added "--max-download-limit" option and "--max-upload-limit" option.
  9640. Added the warning message if "--upload-limit" option is used.
  9641. * src/DownloadCommand.cc
  9642. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  9643. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9644. To rewrite segment download mechanism for HTTP/FTP download.
  9645. Use BitfieldMan to manage segment download.
  9646. * src/HttpResponseCommand.h
  9647. (executeInternal): Pass the reference of segment.
  9648. * src/AbstractCommand.cc
  9649. (prepareForRetry): Call segmentMan->cancelSegment here.
  9650. (onAbort): Call segmentMan->cancelSegment here.
  9651. * src/HttpDownloadCommand.cc
  9652. (prepareForNextSegment): New function.
  9653. * src/DownloadEngineFactory.cc
  9654. (newConsoleEngine): Removed splitter.
  9655. (newTorrentConsoleEngine): Removed splitter.
  9656. * src/Request.h
  9657. (segment): Renamed from seg.
  9658. * src/FtpInitiateConnectionCommand.h
  9659. (executeInternal): Pass the reference of segment.
  9660. * src/AbstractCommand.h
  9661. (executeInternal): Pass the reference of segment.
  9662. * src/pref.h
  9663. (PREF_SEGMENT_SIZE): New definition.
  9664. * src/HttpProxyRequestCommand.h
  9665. (executeInternal): Pass the reference of segment.
  9666. * src/HttpResponseCommand.cc
  9667. (checkResponse): Allowed status 206 when a request range starts 0.
  9668. (handleDefaultEncoding): Rewritten the code related to Segment.
  9669. (handleOtherEncoding): Rewritten the code related to Segment.
  9670. * src/SegmentMan.h
  9671. (SegmentEntry): New class.
  9672. (SegmentEntries): New type definition.
  9673. (bitfield): New variable.
  9674. (usedSegmentEntries): New variable.
  9675. (onNullBitfield): New function.
  9676. (checkoutSegment): New function.
  9677. (segments): Removed.
  9678. (splitter): Removed.
  9679. (unregisterId): Removed.
  9680. (getSegment): New function(overload)
  9681. (getDownloadedSize): Removed.
  9682. (cancelSegment): New function.
  9683. (completeSegment): New function.
  9684. (initBitfield): New function.
  9685. (hasSegment): New function.
  9686. (getDownloadLength): New function.
  9687. * src/BitfieldMan.h
  9688. (getStartIndex): New function.
  9689. (getEndIndex): New function.
  9690. (getMissingUnusedIndex): New function(overload).
  9691. (getSparseMissingUnusedIndex): New function.
  9692. * src/BitfieldMan.cc
  9693. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  9694. (getMissingUnusedIndex): New function(overload).
  9695. (Range): New class.
  9696. (getStartIndex): New function.
  9697. (getEndIndex): New function.
  9698. (getSparseMissingUnusedIndex): New function.
  9699. (isBitSetInternal): Return false if the given index is less than 0.
  9700. * src/HttpInitiateConnectionCommand.h
  9701. (executeInternal): Pass the reference of segment.
  9702. * src/FtpNegotiateCommand.h
  9703. (executeInternal): Pass the reference of segment.
  9704. * src/FtpNegotiateCommand.cc
  9705. (recvSize): Initialize bitfield here.
  9706. * src/FtpTunnelResponseCommand.h
  9707. (executeInternal): Pass the reference of segment.
  9708. * src/HttpConnection.cc
  9709. (createRequest): Rewritten range header processing.
  9710. * src/DownloadCommand.h
  9711. (executeInternal): Pass the reference of segment.
  9712. (prepareForRetry): Removed.
  9713. (prepareForNextSegment): Added an argument segment. Made it a virtual
  9714. function.
  9715. * src/main.cc
  9716. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  9717. * src/SegmentMan.cc
  9718. (SegmentMan): Added bitfield. Removed splitter.
  9719. (~SegmentMan): Added bitfield. Removed splitter.
  9720. (unregisterId): Removed.
  9721. (getSegment): Rewritten.
  9722. (updateSegment): Rewritten.
  9723. (save): Rewritten.
  9724. (read): Rewritten.
  9725. (finished): Rewritten.
  9726. (getDownloadedSize): Removed.
  9727. (initBitfield): New function.
  9728. (FindSegmentEntryByIndex): New function object.
  9729. (FindSegmentEntryByCuid): New function object.
  9730. (checkoutSegment): New function.
  9731. (onNullBitfield): New function.
  9732. (getSegment): New function(overload).
  9733. (CancelSegment): New function object.
  9734. (cancelSegment): New function.
  9735. (completeSegment): New function.
  9736. (hasSegment): New function.
  9737. (getDownloadLength): New function.
  9738. * src/FtpInitiateConnectionCommand.cc
  9739. (executeInternal): Load .aria2 file after hostname resolution finishes.
  9740. * src/Segment.h: Rewritten.
  9741. * src/Segment.cc (operator<<): New function.
  9742. * src/HttpDownloadCommand.h
  9743. (prepareForNextSegment): New function.
  9744. * src/Request.cc
  9745. (resetUrl): Made segment null.
  9746. * src/DownloadEngine.cc
  9747. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  9748. * src/HttpProxyRequestCommand.h
  9749. (executeInternal): Pass the reference of segment.
  9750. * src/DownloadCommand.cc
  9751. (executeInternal): Rewritten the code related to Segment.
  9752. (prepareForRetry): Removed.
  9753. (prepareForNextSegment): Rewritten.
  9754. * src/FtpTunnelResponseCommand.h
  9755. (executeInternal): Pass the reference of segment.
  9756. To add HTTP 1.1 persistent connection support(experimental)
  9757. * src/HttpRequestCommand.cc
  9758. (executeInternal): Disable keep alive if it is disabled by
  9759. configuration.
  9760. * src/Request.h
  9761. (keepAlive): New variable.
  9762. (isKeepAlive): New function.
  9763. (setKeepAlive): New function.
  9764. * src/pref.h
  9765. (PREF_HTTP_KEEP_ALIVE): New definition.
  9766. * src/HttpResponseCommand.cc
  9767. (executeInternal): Check the remote server supports keep alive.
  9768. * src/HttpConnection.cc
  9769. (createRequest): Send "Connection: close" only if keep alive is
  9770. disabled.
  9771. * src/main.cc
  9772. (main):
  9773. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  9774. To add max download speed limit:
  9775. * src/pref.h
  9776. (PREF_MAX_SPEED_LIMIT): New definition.
  9777. * src/PeerInteractionCommand.cc
  9778. (executeInternal): Added max download speed limit. Not tested yet.
  9779. * src/SegmentMan.h
  9780. (PeerStats): New type definition.
  9781. (peerStats): New variable.
  9782. (registerPeerStat): New function.
  9783. (FindPeerStat): New function object.
  9784. (getPeerStat): New function.
  9785. (calculateDownloadSpeed): New function.
  9786. * src/SpeedCalc.h: New class.
  9787. * src/SpeedCalc.cc: New class.
  9788. * src/main.cc
  9789. (main):
  9790. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  9791. download speed is not restricted).
  9792. * src/PeerStat.h: New class.
  9793. * src/SegmentMan.cc
  9794. (registerPeerStat): New function.
  9795. (calculateDownloadSpeed): New function.
  9796. * src/DownloadCommand.cc
  9797. (STARTUP_IDLE_TIME): New definition.
  9798. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  9799. downloadStart.
  9800. (~DownloadCommand): Call peerStat->downloadStop.
  9801. (executeInternal): Added download speed limitter. Rewritten lowest
  9802. speed limitter.
  9803. * src/HttpConnection.cc
  9804. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  9805. * src/AbstractCommand.cc
  9806. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  9807. Added hostname to the error message.
  9808. * src/ConsoleDownloadEngine.cc
  9809. (calculateStatistics): Initialize psize with dlSize.
  9810. * src/PieceMessage.cc
  9811. (receivedAction): Do not call peerInteraction->abortPiece here.
  9812. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  9813. * src/BitfieldMan.h
  9814. (clearAllUseBit): New function.
  9815. (setAllUseBit): New function.
  9816. * src/BitfieldMan.cc
  9817. (clearAllBit): Do not clear useBitfield here.
  9818. (clearAllUseBit): New function.
  9819. (setAllUseBit): New function.
  9820. * src/Piece.cc
  9821. (clearAllBlock): Call bitfield->clearAllUseBit().
  9822. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9823. To make filename URL-decoded:
  9824. * src/HttpResponseCommand.h: Updated doc.
  9825. * src/HttpResponseCommand.cc
  9826. (determinFilename): Made filename URL-decoded.
  9827. * src/FtpInitiateConnectionCommand.cc
  9828. (executeInternal): Made filename URL-decoded.
  9829. * src/Util.h (urldecode): New function.
  9830. * src/Util.cc (urldecode): New function.
  9831. To fix a bug that caused assertion failure in ares_strerror:
  9832. * src/NameResolver.cc (callback): Fixed the bug.
  9833. * Release 0.7.3
  9834. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. To add --seed-time and --seed-ratio command-line option:
  9836. * src/Option.h (getAsDouble): New function.
  9837. * src/Option.cc (getAsDouble): New function.
  9838. * src/SeedCheckCommand.h: New class.
  9839. * src/SeedCheckCommand.cc: New class.
  9840. * src/DownloadEngineFactory.cc
  9841. (SeedCheckCommand.h): Included.
  9842. (UnionSeedCriteria.h): Included.
  9843. (TimeSeedCriteria.h): Included.
  9844. (ShareRatioSeedCriteria.h): Included.
  9845. (newTorrentConsoleEngine): Added the processing of seed option.
  9846. * src/SeedCriteria.h: New class.
  9847. * src/ShareRatioSeedCriteria.h: New class.
  9848. * src/TimeSeedCriteria.h: New class.
  9849. * src/UnionSeedCriteria.h: New class.
  9850. * src/prefs.h
  9851. (PREF_SEED_TIME): New definition.
  9852. (PREF_SEED_RATIO): New definition.
  9853. * src/main.cc
  9854. (showUsage): Added --seed-time and --seed-ratio option.
  9855. (main): Added --seed-time and --seed-ratio option.
  9856. Made default log file name "/dev/null".
  9857. * src/SharedHandle.h
  9858. (SharedHandle): Copy constructor. Made it assignable from the
  9859. SharedHandle of the subclasses.
  9860. (operator=): Made it assignable from the SharedHandle of the
  9861. subclasses.
  9862. (getRefCount): New function.
  9863. To add notice log level and the switch to write log to stdout. This
  9864. switch is configurable per log level.
  9865. * src/Logger.h
  9866. (notice): New function.
  9867. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  9868. constant.
  9869. * src/LogFactory.cc
  9870. (getInstance): The use of NullLogger was removed. A log message with
  9871. notice log level was made written to stdout along with log file.
  9872. * src/NullLogger.h
  9873. (notice): New function.
  9874. * src/SimpleLogger.h
  9875. (writeHeader): Added the 'file' argument.
  9876. (writeLog): Added the 'file' argument.
  9877. (writeFile): New function.
  9878. (stdoutField): New variable.
  9879. (SimpleLogger): Removed the default constructor.
  9880. (SimpleLogger): Made the default value of logfile 0.
  9881. (debug): Added 'virtual' keyword.
  9882. (info): Added 'virtual' keyword.
  9883. (warn): Added 'virtual' keyword.
  9884. (error): Added 'virtual' keyword.
  9885. (notice): New function.
  9886. (setStdout): New function.
  9887. * src/SimpleLogger.cc
  9888. (WRITE_LOG): Replaced writeLog with writeFile.
  9889. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  9890. (SimpleLogger): Removed the default constructor.
  9891. (setStdout): New function.
  9892. (writeLog): Added the handling of NOTICE log level.
  9893. (writeFile): New function.
  9894. (notice): New function.
  9895. * src/TorrentMan.h: Updated doc.
  9896. * src/BitfieldMan.h: Updated doc.
  9897. * src/TrackerWatcherCommand.cc
  9898. (execute): Return true if error occurred in the request to the tracker
  9899. and halt is requested.
  9900. * src/TrackerUpdateCommand.cc
  9901. (execute): Return true if error occurred in the request to the tracker
  9902. and halt is requested.
  9903. To call onDownloadComplete from TorrentMan::completePiece(), not from
  9904. DownloadEngine:
  9905. * src/TorrentConsoleDownloadEngine.h
  9906. (onSelectiveDownloadingCompletes): Removed.
  9907. * src/TorrentConsoleDownloadEngine.cc
  9908. (onSelectiveDownloadingCompletes): Removed.
  9909. * src/TorrentDownloadEngine.h
  9910. (onEndOfRun): Added 'virtual' keyword.
  9911. (afterEachIteration): Removed.
  9912. (onSelectiveDownloadingCompletes): Removed.
  9913. * src/TorrentDownloadEngine.cc
  9914. (onEndOfRun): Removed filenameFixed.
  9915. (afterEachIteration): Removed.
  9916. * src/TorrentMan.cc
  9917. (completePiece): Call onDownloadComplete here.
  9918. (onDownloadComplete): Added 2 log messages.
  9919. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  9921. * src/NameResolver.h: Added the prototype declaration of callback().
  9922. To support c-ares library:
  9923. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9924. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9925. * src/FtpInitiateConnectionCommand.h:
  9926. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9927. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9928. * src/HttpInitiateConnectionCommand.h:
  9929. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9930. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  9931. Added thes upport of c-ares's ares_strerror(the idea came from patch
  9932. #1542285 by tizianomueller)
  9933. * src/HttpInitiateConnectionCommand.cc:
  9934. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9935. * src/FtpInitiateConnectionCommand.cc:
  9936. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9937. * src/DownloadEngine.h:
  9938. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9939. * src/DownloadEngine.cc:
  9940. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9941. To fix the bug that causes compilation failure with metalink-support
  9942. disabled(bug#1543587):
  9943. * src/main.cc: Fixed with the patch by tizianomueller.
  9944. * Release 0.7.2
  9945. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9946. * src/main.cc
  9947. (main): Added a message to inform users that aria2 is starting to
  9948. verify checksum.
  9949. * src/RequestInfo.cc
  9950. (printDownloadAbortMessage): Added a message to inform users that
  9951. transfer can be resumed.
  9952. * src/FeatureConfig.cc
  9953. (FEATURE_ASYNC_DNS): New definition.
  9954. (FeatureConfig): Added aysnc DNS entry.
  9955. To replace CommandUuid with Command* in SocketEntry and
  9956. NameResolverEntry:
  9957. * src/DownloadEngine.h
  9958. (CommandUuids): Removed.
  9959. (SocketEntry::commandUuid): Removed.
  9960. (SocketEntry::command): New variable.
  9961. (SocketEntry::SocketEntry): Updated.
  9962. (SocketEntry::operator==): Updated.
  9963. (NameResolverEntry::commandUuid): Removed.
  9964. (NameResolverEntry::command): New variable.
  9965. (NameResolverEntry::NameResolverEntry): Updated.
  9966. (NameResolverEntry::operator==): Updated.
  9967. (waitData): Changed the argument type.
  9968. (addSocketForReadCheck): Changed the argument type.
  9969. (deleteSocketForReadCheck): Changed the argument type.
  9970. (addSocketForWriteCheck): Changed the argument type.
  9971. (deleteSocketForWriteCheck): Changed the argument type.
  9972. (addNameResolverCheck): Changed the argument type.
  9973. (deleteNameResolverCheck): Changed the argument type.
  9974. * src/DownloadEngine.cc
  9975. (FindCommand): Removed.
  9976. (run): Removed activeUuid. Added activeCommands instead.
  9977. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  9978. (AccumulateActiveCommand): New function object.
  9979. (waitData): Use AccumulateActiveCommand.
  9980. (addSocketForReadCheck): Use Command instead of CommandUuid.
  9981. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  9982. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  9983. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  9984. (addNameResolverCheck): Use Command instead of CommandUuid.
  9985. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  9986. * src/AbstractCommand.cc
  9987. (disableReadCheckSocket): Updated according to the changes in
  9988. DownloadEngine.
  9989. (setReadCheckSocket): Updated according to the changes in
  9990. DownloadEngine.
  9991. (disableWriteCheckSocket): Updated according to the changes in
  9992. DownloadEngine.
  9993. (setWriteCheckSocket): Updated according to the changes in
  9994. DownloadEngine.
  9995. (setNameResolverCheck): Updated according to the changes in
  9996. DownloadEngine.
  9997. (disableNameResolverCheck): Updated according to the changes in
  9998. DownloadEngine.
  9999. * src/AbstractCommand.cc
  10000. (disableReadCheckSocket): Updated according to the changes in
  10001. DownloadEngine.
  10002. (setReadCheckSocket): Updated according to the changes in
  10003. DownloadEngine.
  10004. (disableWriteCheckSocket): Updated according to the changes in
  10005. DownloadEngine.
  10006. (setWriteCheckSocket): Updated according to the changes in
  10007. DownloadEngine.
  10008. * release 0.7.1
  10009. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. To handle the case where some BitTorrent tracker requires all letters
  10011. except for [A-Za-z0-9] is URL encoded.
  10012. * src/Util.h
  10013. (torrentUrlencode): New function.
  10014. * src/Util.cc
  10015. (ctype.h): Included.
  10016. (torrentUrlencode): New function.
  10017. * src/TrackerWatcherCommand.cc
  10018. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10019. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10020. To add asynchronous DNS support(libares):
  10021. * src/AbstractCommand.h
  10022. (setNameResolverCheck): New function.
  10023. (disableNameResolverCheck): New function
  10024. (resolveHostname): New function.
  10025. * src/AbstractCommand.cc
  10026. (setNameResolverCheck): New function.
  10027. (disableNameResolverCheck): New function
  10028. (resolveHostname): New function.
  10029. * src/FtpInitiateConnectionCommand.h
  10030. (nameResolver): New function.
  10031. * src/FtpInitiateConnectionCommand.cc
  10032. (Util.h): Included.
  10033. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  10034. disableWriteCheckSocket.
  10035. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  10036. (executeInternal): Added async DNS support.
  10037. * src/HttpInitiateConnectionCommand.h
  10038. (nameResolver): New function.
  10039. * src/HttpInitiateConnectionCommand.cc
  10040. (DlRetryEx.h): Included.
  10041. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  10042. disableWriteCheckSocket.
  10043. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  10044. (executeInternal): Added async DNS support.
  10045. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  10046. by extern "C" declaration.
  10047. * src/NameResolver.cc: New class.
  10048. * src/Util.h:
  10049. (isNumberAndDotsNotation): New function
  10050. * src/Util.cc
  10051. (isNumberAndDotsNotation): New function.
  10052. * src/DownloadEngine.h
  10053. (NameResolver.h): Included.
  10054. (NameResolverEntry): New class.
  10055. (NameResolverEntries): New type definition.
  10056. (addNameResolverCheck): New function.
  10057. (deleteNameResolverCheck): New function.
  10058. * src/DownloadEngine.cc
  10059. (run): Initialize cp with 0.
  10060. (SetDescriptor::operator()): Added for NameResolverEntry.
  10061. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  10062. (waitData): Check nameResolver entries.
  10063. (updateFdSet): Update fds in nameResolver entries.
  10064. (addNameResolverCheck): New function.
  10065. (deleteNameResolverCheck): new function.
  10066. * src/PeerInteractionCommand.cc
  10067. (executeInternal): Fixed wrong socket handling.
  10068. * src/main.cc
  10069. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10070. * src/Util.cc
  10071. (fileChecksum): Removed the call to ctx.digestReset().
  10072. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. * po/ru.po: Azamat sent me Russian translation.
  10074. * src/FtpNegotiateCommand.cc
  10075. (recvGreeting): Call disableWriteCheckSocket just after
  10076. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10077. (recvRetr): Recognized status code 125 as a acceptable response code.
  10078. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10079. case-insesitive filesystem(BUG#1531057).
  10080. * src/Time.h: Renamed as TimeA2.h.
  10081. * src/Time.cc: Renamed as TimeA2.cc.
  10082. * src/TimeA2.h: New class.
  10083. * src/TimeA2.cc: New class.
  10084. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10085. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10086. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10087. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10088. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10089. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10090. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10091. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10092. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10093. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10094. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10095. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10096. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10097. * release 0.7.0
  10098. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10099. * src/PeerChokeCommand.h
  10100. (PeerChokeCommand): Rearranged the arguments.
  10101. * src/PeerChokeCommand.cc
  10102. (PeerChokeCommand): Rearranged the arguments.
  10103. * src/MetalinkEntry.h
  10104. (Checksum.h): Included.
  10105. (md5): Removed.
  10106. (sha1): Removed.
  10107. (checksum): New variable.
  10108. (operator=): Updated.
  10109. (check): Removed.
  10110. * src/prefs.h
  10111. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10112. (PREF_FOLLOW_TORRENT): New definition.
  10113. (PREF_SELECT_FILE): New definition.
  10114. (PREF_FOLLOW_METALINK): New definition.
  10115. * src/MetalinkResource.h
  10116. (TYPE_HTTPS): Added to enum TYPE.
  10117. * src/TorrentMan.cc
  10118. (~TorrentMan): Rewritten.
  10119. * src/MultiDiskWriter.cc
  10120. (MultiDiskAdaptor): Updated according to the changes in
  10121. MessageDigestContext.
  10122. (~MultiDiskAdaptor): Updated according to the changes in
  10123. MessageDigestContext.
  10124. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10125. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10126. * src/Util.h
  10127. (fileChecksum): Updated according to the changes in
  10128. MessageDigestContext.
  10129. * src/Util.cc
  10130. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10131. (fileChecksum): Updated according to the changes in
  10132. MessageDigestContext.
  10133. * src/messageDigest.h: Rewritten.
  10134. * src/MetalinkEntry.cc
  10135. (check): Removed.
  10136. (Supported): Updated.
  10137. (dropUnsupportedResource): Fixed a memory leak.
  10138. * src/ShaVisitor.cc
  10139. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10140. (~ShaVisitor): Updated according to the changes in
  10141. MessageDigestContext.
  10142. (visit): Updated according to the changes in MessageDigestContext.
  10143. * src/main.cc
  10144. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10145. command-line option added.
  10146. * src/DownloadEngine.h
  10147. (SocketEntry): New class.
  10148. (SocketEntries): New definition.
  10149. (PairFind): Removed.
  10150. (SockCmdMap): Removed.
  10151. * src/DownloadEngine.cc
  10152. (DownloadEngine): Rewritten.
  10153. (~DownloadEngine): Rewritten.
  10154. (run): Renamed activeCommandUuids as activeUuids.
  10155. (SetDescriptor): Rewritten.
  10156. (AccumulateActiveCommandUuid): Removed.
  10157. (AccumulateActiveUuid): New function object.
  10158. (waitData): Rewritten.
  10159. (updateFdSet): Rewritten.
  10160. (addSocket): Rewritten.
  10161. (deleteSocket): Rewritten.
  10162. (addSocketForReadCheck): Rewritten.
  10163. (deleteSocketForReadCheck): Rewritten.
  10164. (addSocketForWriteCheck): Rewritten.
  10165. (deleteSocketForWriteCheck): Rewritten.
  10166. * src/Xml2MetalinkProcessor.cc
  10167. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10168. * src/DownloadCommand.cc
  10169. (executeInternal): Added the check routine for lowest speed limit.
  10170. * src/AbstractDiskWriter.cc
  10171. (AbstractDiskWriter): Updated according to the changes in
  10172. MessageDigestContext.
  10173. (~AbstractDiskWriter): Updated according to the changes in
  10174. MessageDigestContext.
  10175. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10176. * src/RequestInfo.h: New class.
  10177. * src/UrlRequestInfo.h: New class.
  10178. * src/UrlRequestInfo.cc: New class.
  10179. * src/TorrentRequestInfo.h: New class.
  10180. * src/TorrentRequestInfo.cc: New class.
  10181. * src/MetalinkRequestInfo.h: New class.
  10182. * src/MetalinkRequestInfo.cc: New class.
  10183. * src/Checksum.h: New class.
  10184. * src/DownloadEngineFactory.h: New class.
  10185. * src/DownloadEngineFactory.cc: New class.
  10186. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10187. * src/Option.h
  10188. (getAsBool): New function.
  10189. * src/Option.cc
  10190. (prefs.h): Included.
  10191. (defined): 0-length value is now recognized as undefined.
  10192. (getAsInt): Rewritten.
  10193. (getAsLLInt): Rewritten.
  10194. (getAsBool): New function.
  10195. * src/FeatureConfig.h: Rewritten.
  10196. * src/FeatureConfig.cc: Rewritten.
  10197. * src/prefs.h
  10198. (PREF_STDOUT_LOG): New definition.
  10199. (PREF_LOG): New definition.
  10200. (PREF_DIR): New definition.
  10201. (PREF_OUT): New definition.
  10202. (PREF_SPLIT): New definition.
  10203. (PREF_DAEMON): New definition.
  10204. (PREF_REFERER): New definition.
  10205. (PREF_TORRENT_FILE): New definition.
  10206. (PREF_LISTEN_PORT): New definition.
  10207. (PREF_METALINK_FILE): New definition.
  10208. (PREF_METALINK_VERSION): New definition.
  10209. (PREF_METALINK_LANGUAGE): New definition.
  10210. (PREF_METALINK_OS): New definition.
  10211. (PREF_METALINK_SERVERS): New definition.
  10212. * src/main.cc
  10213. (main): Following command-line parameters are now put into Option
  10214. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10215. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10216. metalinkLanguage, metalinkOs, metalinkServers
  10217. To fix the bug that aria2 can not handle http response header properly.
  10218. * src/HttpHeader.cc
  10219. (put): Made name lowercased.
  10220. (defined): Made name lowercased.
  10221. (getFirst): Made name lowercased.
  10222. (get): Made name lowercased.
  10223. (getFirstAsInt): Rewritten.
  10224. (getFirstAsLLInt): Rewritten.
  10225. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10226. * src/TorrentMan.h:
  10227. (advertisePiece): Updated doc.
  10228. (getAdvertisedPieceIndexes): Updated doc.
  10229. (removeAdvertisedPiece); New function.
  10230. * src/TorrentMan.cc
  10231. (FindElapsedHave): New function object.
  10232. (removeAdvertisedPiece): New function.
  10233. * src/HaveEraseCommand.h: New class.
  10234. * src/HaveEraseCommand.cc: New class.
  10235. * src/FeatureConfig.h: New class.
  10236. * src/FeatureConfig.cc: New class.
  10237. * src/Request.h
  10238. (defaultPorts): Removed.
  10239. * src/Request.cc
  10240. (FeatureConfig.h): Included.
  10241. (Request): Removed the statements related to defaultPorts.
  10242. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10243. A default port number is now retrieved from FeatureConfig.
  10244. * src/main.cc
  10245. (HaveEraseCommand.h): Included.
  10246. (showVersion): Added the output of feature list.
  10247. (main): Added HaveEraseCommand to command queue in BitTorrent
  10248. downloading.
  10249. * src/PeerInteractionCommand.h
  10250. (chokeCheckPoint): Commented out.
  10251. (periodicExecPoint): New variable.
  10252. * src/PeerInteractionCommand.cc
  10253. (executeInternal): Following methods are now called in at least every
  10254. 0.5 seconds to reduce CPU usage:
  10255. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10256. checkHave(), sendKeepAlive().
  10257. (checkLongTimePeerChoking): Commented out.
  10258. * src/BitfieldMan.h
  10259. (getNthBitIndex): Changed the method signature.
  10260. (getMissingIndexRandomly): Changed the method signature.
  10261. * src/BitfieldMan.cc
  10262. (getNthBitIndex): Rewritten
  10263. (getMissingIndexRandomly): Rewritten.
  10264. (hasMissingPiece): Rewritten.
  10265. (getMissingIndex): Refactored.
  10266. (getMissingUnusedIndex); Refactored.
  10267. (getMissingIndex): Refactored.
  10268. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10269. * src/PeerMessage.h
  10270. (Piece.h): Included.
  10271. (SharedHandle.h): Included.
  10272. (invalidate): New variable.
  10273. (uploading): New variable.
  10274. (isInvalidate): New function.
  10275. (isUploading): New function.
  10276. (onPush): New function.
  10277. (onChoked): New function.
  10278. (onCanceled): New function.
  10279. (onAbortPiece): New function.
  10280. (PeerMessageHandle): New type definition.
  10281. * src/PeerMessage.cc
  10282. (PeerMessage): Added the initialization for invalidate and uploading.
  10283. * src/CancelMessage.h
  10284. (CancelMessage): Rewritten.
  10285. * src/RejectMessage.h
  10286. (RejectMessage): Rewritten.
  10287. * src/Metalinker.h
  10288. (operator=): Defined.
  10289. * src/MetaEntry.h
  10290. (operator=): Defined.
  10291. * src/MetalinkResource.h
  10292. (operator=): Defined.
  10293. * src/AllowedFastMessage.h
  10294. (AllowedFastMessage): Rewritten.
  10295. * src/HandshakeMessage.h
  10296. (HandshakeMessage): New function(overload).
  10297. * src/HandshakeMessage.cc
  10298. (HandshakeMessage): Rewritten.
  10299. (init): New function.
  10300. * src/HaveMessage.h
  10301. (HaveMessage): Rewritten.
  10302. * src/Time.h
  10303. (operator=): Defined the function body here.
  10304. * src/Time.cc
  10305. (operator=): Removed.
  10306. * src/SocketCore.h
  10307. (operator==): Defined here.
  10308. (operator!=): Defined here.
  10309. (operator<): Defined here.
  10310. * src/SocketCore.cc
  10311. (operator==): Removed.
  10312. (operator<): Removed.
  10313. * src/BitfieldMan.h
  10314. (operator=): Defined the function body here.
  10315. * src/BitfieldMan.cc
  10316. (operator=): Removed.
  10317. * src/TorrentMan.h
  10318. (deleteErrorPeer): Removed.
  10319. (deleteUnusedPeer); New function.
  10320. * src/TorrentMan.cc
  10321. (addPeer): Call deleteUnusedPeer.
  10322. (deleteErrorPeer): Removed.
  10323. (deleteUnusedPeer): New function.
  10324. * src/PeerAbstractCommand.h
  10325. (setNoCheck): New function.
  10326. (noCheck): New variable.
  10327. * src/PeerAbstractCommand.cc
  10328. (PeerAbstractCommand): Added the initialization of noCheck.
  10329. (execute): Added a check for noCheck.
  10330. (setNoCheck): New function.
  10331. * src/Util.h
  10332. (stdio.h): Included.
  10333. * src/Util.cc
  10334. (unistd.h): Included.
  10335. * src/DefaultDiskWriter.cc
  10336. (unistd.h): Included.
  10337. * src/Peer.h
  10338. (operator==): Defined the function body here.
  10339. (operator!=): Defined the function body here.
  10340. * src/Peer.cc
  10341. (operator==): Removed.
  10342. (operator!=): Removed.
  10343. * src/Piece.h
  10344. (Piece): Defined the function body here(copy constructor).
  10345. (operator=): Defined the function body here.
  10346. (operator==): Defined the function body here.
  10347. * src/Piece.cc
  10348. (Piece): Removed(copy constructor).
  10349. (operator=): Removed.
  10350. (operator==): Removed.
  10351. * src/PeerMessageUtil.h
  10352. (ChokeMessage.h): Removed.
  10353. (UnchokeMessage.h): Removed.
  10354. (InterestedMessage.h): Removed.
  10355. (NotInterestedMessage.h): Removed.
  10356. (HaveMessage.h): Removed.
  10357. (BitfieldMessage.h): Removed.
  10358. (RequestMessage.h): Removed.
  10359. (CancelMessage.h): Removed.
  10360. (PieceMessage.h): Removed.
  10361. (HandshakeMessage.h): Removed.
  10362. (KeepAliveMessage.h): Removed.
  10363. (PortMessage.h): Removed.
  10364. (HaveAllMessage.h): Removed.
  10365. (HaveNoneMessage.h): Removed.
  10366. (PeerConnection.h): Removed.
  10367. (HandshakeMessage.h): Included.
  10368. * src/BitfieldMessage.h
  10369. (init): New function.
  10370. (BitfieldMessage): Rewritten.
  10371. (BitfieldMessage): New function(overload).
  10372. * src/RequestSlot.h
  10373. (operator=): Defined the function body here.
  10374. (operator==): Defined the function body here.
  10375. * src/RequestSlot.cc
  10376. (operator=): Removed.
  10377. (operator==): Removed.
  10378. To remove the dependency on the PeerMessage subclass from
  10379. PeerInteraction:
  10380. * src/PeerMessageFactory.h: New class.
  10381. * src/PeerMessageFactory.cc: New class.
  10382. * src/SimplePeerMessage.cc
  10383. (send): If invalidate is true then do nothing.
  10384. * src/PeerInteractionCommand.cc
  10385. (HandshakeMessage.h): Included.
  10386. (KeepAliveMessage.h): Included.
  10387. (ChokeMessage.h): Included.
  10388. (UnchokeMessage.h): Included.
  10389. (HaveMessage.h): Included.
  10390. (executeInternal): Call setNoCheck().
  10391. Removed setWriteCheckSocket(socket).
  10392. * src/PeerInteraction.h
  10393. (ChokeMessage.h): Removed.
  10394. (UnchokeMessage.h): Removed.
  10395. (InterestedMessage.h): Removed.
  10396. (NotInterestedMessage.h): Removed.
  10397. (HaveMessage.h): Removed.
  10398. (BitfieldMessage.h): Removed.
  10399. (RequestMessage.h): Removed.
  10400. (CancelMessage.h): Removed.
  10401. (PieceMessage.h): Removed.
  10402. (HandshakeMessage.h): Removed.
  10403. (KeepAliveMessage.h): Removed.
  10404. (PortMessage.h): Removed.
  10405. (HaveAllMessage.h): Removed.
  10406. (HaveNoneMessage.h): Removed.
  10407. (RejectMessage.h): Removed.
  10408. (AllowedFastMessage.h): Removed.
  10409. (SuggestPieceMessage.h): Removed.
  10410. (PeerMessageFactory.h): Included.
  10411. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10412. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10413. (PeerMessageFactory): New variable.
  10414. (createPeerMessage): Removed.
  10415. (createHandshakeMessage): Removed.
  10416. (setPeerMessageCommonProperty): Removed.
  10417. (addRequestSlot): New function.
  10418. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10419. (getPeerMessageFactory): New function.
  10420. (createRequestMessage): Removed.
  10421. (createCancelMessage): Removed.
  10422. (createPieceMessage): Removed.
  10423. (createHaveMessage): Removed.
  10424. (createChokeMessage): Removed.
  10425. (createUnchokeMessage): Removed.
  10426. (createInterestedMessage): Removed.
  10427. (createNotInterestedMessage): Removed.
  10428. (createBitfieldMessage): Removed.
  10429. (createKeepAliveMessage): Removed.
  10430. (createHaveAllMessage): Removed.
  10431. (createHaveNoneMessage): Removed.
  10432. (createRejectMessage): Removed.
  10433. (createAllowedFastMessage): Removed.
  10434. * src/PeerInteraction.cc
  10435. (PeerInteraction): Allocate PeerMessageFactory here.
  10436. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10437. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10438. PieceMessage::ID.
  10439. (addMessage): Simplified by using PeerMessage::onPush().
  10440. (addRequestSlot): New function.
  10441. (rejectAllPieceMessageInQueue): Simplified by using
  10442. PeerMessage::onChoked().
  10443. (rejectPieceMessageInQueue): Simplified by using
  10444. PeerMessage::onCanceled().
  10445. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10446. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10447. (createHandshakeMessage): Removed.
  10448. (createPeerMessage): Removed.
  10449. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10450. (setPeerMessageCommonProperty): Removed.
  10451. (createRequestMessage): Removed.
  10452. (createCancelMessage): Removed.
  10453. (createPieceMessage): Removed.
  10454. (createHaveMessage): Removed.
  10455. (createChokeMessage): Removed.
  10456. (createUnchokeMessage): Removed.
  10457. (createInterestedMessage): Removed.
  10458. (createNotInterestedMessage): Removed.
  10459. (createBitfieldMessage): Removed.
  10460. (createKeepAliveMessage): Removed.
  10461. (createHaveAllMessage): Removed.
  10462. (createHaveNoneMessage): Removed.
  10463. (createRejectMessage): Removed.
  10464. (createAllowedFastMessage): Removed.
  10465. * src/PieceMessage.h
  10466. (createRejectMessage): New function.
  10467. (PieceMessage): Rewritten.
  10468. (onChoked): New function.
  10469. (onCanceled): New function.
  10470. * src/PieceMessage.cc
  10471. (send): If invalidate is true then do nothing, just return.
  10472. (createRejectMessage): New function.
  10473. (onChoked): New function.
  10474. (onCanceled): New function.
  10475. * src/RequestMessage.h
  10476. (RequestMessage): Rewritten.
  10477. (onPush): New function.
  10478. (onAbortPiece): New function.
  10479. * src/RequestMessage.cc
  10480. (onPush): New function.
  10481. (onAbortPiece): New function.
  10482. Update fd_set when a socket is added or deleted in order to improve
  10483. performance:
  10484. * src/DownloadEngine.h
  10485. (rfdset): New variable.
  10486. (wfdset): New variable.
  10487. (updateFdSet): New function.
  10488. * src/DownloadEngine.cc
  10489. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10490. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10491. (waitData): Copy rfdset and wfdset.
  10492. (updateFdSet): New function.
  10493. (addSocket): Call updateFdSet.
  10494. (deleteSocket): Call updateFdSet.
  10495. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10496. To add the support for Metalink3.0 backward compatible links:
  10497. * src/Request.h
  10498. (SAFE_CHARS): Added '#'.
  10499. (METALINK_MARK): New definition.
  10500. * src/Request.cc
  10501. (parseUrl): Added the support for Metalink3.0 backward compatible
  10502. links.
  10503. etc
  10504. * src/PeerInteraction.cc
  10505. (MsgPushBack): Removed.
  10506. (sendMessages): Use STL copy and back_inserter.
  10507. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  10508. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  10509. * src/TorrentMan.h
  10510. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  10511. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10512. * src/SharedHandle.h: New class.
  10513. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  10514. * src/HttpResponseCommand.h
  10515. (HttpResponseCommand): Wrapped Socket.
  10516. * src/SocketCore.h
  10517. (operator==): New function.
  10518. (operator!=): New function.
  10519. (operator<): New function.
  10520. (getSockfd): New function.
  10521. (isOpen): New function.
  10522. (writeData): New function.
  10523. * src/SocketCore.cc
  10524. (operator==): New function.
  10525. (operator!=): New function.
  10526. (operator<): New function.
  10527. * src/AbstractCommand.h
  10528. (socket): Changed its type to SocketHandle.
  10529. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10530. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10531. (disableReadCheckSocket): New function.
  10532. (disableWriteCheckSocket): New function.
  10533. (readCheckTarget): Changed its type to SocketHandle.
  10534. (writeCheckTarget): Changed its type to SocketHandle.
  10535. (AbstractCommand): Replaced Socket with SocketHandle.
  10536. * src/AbstractCommand.cc
  10537. (AbstractCommand): Replaced Socket with SocketHandle.
  10538. (~AbstractCommand): Removed the deallocation for Socket object.
  10539. (disableReadCheckSocket): New function.
  10540. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10541. (disableWriteCheckSocket): New function.
  10542. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10543. * src/HttpDownloadCommand.cc
  10544. (DownloadCommand): Replaced Socket with SocketHandle.
  10545. * src/PeerAbstractCommand.h
  10546. (socket): Changed its type to SocketHandle.
  10547. (peer): Changed its type to PeerHandle.
  10548. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10549. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10550. (disableReadCheckSocket): New function.
  10551. (disableWriteCheckSocket): New function.
  10552. (readCheckTarget): Changed its type to SocketHandle.
  10553. (writeCheckTarget): Changed its type to SocketHandle.
  10554. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10555. Replaced Peer with PeerHandle.
  10556. * src/HttpRequestCommand.cc
  10557. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10558. Use disableReadCheckSocket.
  10559. * src/PeerInitiateConnectionCommand.h
  10560. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10561. * src/PeerChokeCommand.cc
  10562. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  10563. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  10564. (execute): Use PeerHandle.
  10565. * src/PeerConnection.h
  10566. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  10567. (socket): Changed its type to SocketHandle.
  10568. (PeerConnection): Replaced Socket with SocketHandle.
  10569. * src/PeerConnection.cc
  10570. (PeerConnection): Replaced Socket with SocketHandle.
  10571. * src/PeerInteractionCommand.h
  10572. (PeerInteractionCommand): Replaced socket with SocketHandle.
  10573. Replaced Peer with PeerHandle.
  10574. * src/PeerInteractionCommand.cc
  10575. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  10576. Replaced Peer with PeerHandle.
  10577. (executeInternal): Use disableWriteCheckSocket.
  10578. Use HandshakeMessageHandle.
  10579. (receiveMessages): Use PeerMessageHandle.
  10580. (prepareForNextPeer): Use PeerHandle.
  10581. * src/HttpProxyRequestCommand.h
  10582. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10583. * src/HttpResponseCommand.cc
  10584. (HttpResponseCommand): Replaced Socket with SocketHandle.
  10585. * src/TorrentMan.cc
  10586. (nullPeer): Added external reference.
  10587. (~TorrentMan): Removed the deallocation of the elements of peers.
  10588. (addPeer): Rewritten.
  10589. (isPeerAvailable): Use nullPeer.
  10590. (deleteOldpeers): Replaced with deleteErrorPeer.
  10591. (deleteErrorPeer): New function.
  10592. (getPeer): Use PeerHandle and nullPeer.
  10593. (hasMissingPiece): Replaced Peer with PeerHandle.
  10594. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10595. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10596. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10597. (getMissingPiece): Replaced Peer with PeerHandle.
  10598. * src/FtpNegotiateCommand.cc
  10599. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  10600. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  10601. (recvGreeting): Use disableWriteCheckSocket.
  10602. (recvPasv): Removed the allocation of Socket.
  10603. Use disableReadCheckSocket.
  10604. (sendRestPasv): Use disableWriteCheckSocket.
  10605. (recvRetr): Changed assertion.
  10606. * src/PeerInteraction.h
  10607. (SharedHandle.h): Included SharedHandle.h.
  10608. (PeerMessageHandle): New type definition.
  10609. (HandshakeMessageHandle): New type definition.
  10610. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  10611. (peer): Changed its type to PeerHandle.
  10612. (createHandshakeMessage): Replaced HandshakeMessage with
  10613. HandshakeMessageHandle.
  10614. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  10615. (PeerInteraction): Replaced Peer with PeerHandle.
  10616. Replaced Socket with SocketHandle.
  10617. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10618. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10619. (receiveHandshake): Replaced HandshakeMessage with
  10620. HandshakeMessageHandle.
  10621. * src/PeerInteraction.cc
  10622. (PeerInteraction): Replaced Peer with PeerHandle.
  10623. Replaced Socket with SocketHandle.
  10624. (~PeerInteraction): Removed the deallocation of the elements of
  10625. messageQueue.
  10626. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  10627. (isSendingMessageInProgress): Replaced PeerMessage with
  10628. PeerMessageHandle.
  10629. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  10630. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10631. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  10632. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  10633. (abortPiece): Use PeerMessageHandle.
  10634. (receiveHandshake): Replaced HandshakeMessage with
  10635. HandshakeMessageHandle. Removed try-catch block.
  10636. (createHandshakeMessage): Replaced HandshakeMessage with
  10637. HandshakeMessageHandle.
  10638. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10639. Removed try-catch block.
  10640. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  10641. * src/HttpProxyResponseCommand.cc
  10642. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10643. * src/FtpTunnelResponseCommand.h
  10644. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10645. * src/HttpConnection.cc
  10646. (HttpConnection): Replaced Socket with SocketHandle.
  10647. * src/PeerAbstractCommand.cc
  10648. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10649. (~PeerAbstractCommand): Removed the deallocation of socket.
  10650. Use disableReadCheckSocket, disableWriteCheckSocket.
  10651. (disableReadCheckSocket): New function.
  10652. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10653. (disableWriteCheckSocket): New function.
  10654. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10655. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  10656. * src/FtpTunnelRequestCommand.cc
  10657. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10658. (~FtpTunnelRequestCommand): Corrected indentation.
  10659. * src/DownloadCommand.h
  10660. (DownloadCommand): Replaced Socket with SocketHandle.
  10661. * src/PeerListenCommand.cc
  10662. (PeerListenCommand): Removed the initialization of socket.
  10663. (~PeerListenCommand): Removed the deallocation of socket.
  10664. (bindPort): Use SocketHandle.
  10665. (execute): Use SocketHandle and PeerHandle.
  10666. * src/FtpDowndloadCommand.cc
  10667. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10668. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  10669. * src/main.cc
  10670. (main): Corrected indentation.
  10671. * src/HttpInitiateConnectionCommand.cc
  10672. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  10673. (executeInternal): Removed the allocation of socket.
  10674. * src/HttpRequestCommand.h
  10675. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10676. * src/FtpNegotiationCommand.h
  10677. (dataSocket): Changed its type to SocketHandle.
  10678. (serverSocket): Changed its type to SocketHandle.
  10679. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  10680. * src/TorrentMan.h
  10681. (MAX_PEER_UPDATE): Removed.
  10682. (MAX_PEERS): New definition.
  10683. (Peers): The element is now of type PeerHandle.
  10684. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  10685. (getPeer): Replaced Peer with PeerHandle.
  10686. (deleteOldErrorPeers): Removed.
  10687. (deleteErrorPeer): New function.
  10688. (hasMissingPiece): Replaced Peer with PeerHandle.
  10689. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10690. (getMissingPiece): Replaced Peer with PeerHandle.
  10691. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10692. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10693. (addActivePeer): Replaced Peer with PeerHandle.
  10694. (deleteActivePeer): Replaced Peer with PeerHandle.
  10695. Added a check for the return value of find.
  10696. * src/FtpTunnelResponseCommand.cc
  10697. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10698. * src/FtpInitiateConnectionCommand.cc
  10699. (executeInternal): Removed the allocation of socket.
  10700. * src/DownloadEngine.h
  10701. (Sockets): An element is now of type SocketHandle.
  10702. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  10703. (CommandUuids): New type definition.
  10704. (rsockets): Changed its type to SockCmdMap.
  10705. (wsockets): Changed its type to SockCmdMap.
  10706. (addSocket): Rewritten.
  10707. (deleteSocket): Rewritten.
  10708. (addSocketForReadCheck): Rewritten.
  10709. (deleteSocketForReadCheck): Rewritten.
  10710. (addSocketForWriteCheck): Rewritten.
  10711. (deleteSocketForWriteCheck): Rewritten.
  10712. (PairFind): New template class.
  10713. * src/HttpDownloadCommand.h
  10714. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  10715. * src/FtpConnection.cc
  10716. (FtpConnection): Replaced Socket with SocketHandle.
  10717. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  10718. block.
  10719. * src/InitiateConnectionCommandFactory.cc
  10720. (DlAbortEx.h): Included DlAbortEx.h.
  10721. (createInitiateConnectionCommand): Throw exception if the protocol of
  10722. requested URI is not supported.
  10723. * src/Peer.cc
  10724. (nullPeer): Changed its type to PeerHandle.
  10725. (operator==): New function.
  10726. (operator!=): New function.
  10727. * src/Peer.h
  10728. (SharedHandle.h): Included SharedHandle.h.
  10729. (operator==): New function.
  10730. (operator!=): New function.
  10731. (Peer): Added the default constructor.
  10732. Use resetStatus() to initialize member variables.
  10733. (nullPeer): Removed.
  10734. * src/TrackerUpdateCommand.cc
  10735. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  10736. with MIN_PEERS.
  10737. * src/PeerListenCommand.h
  10738. (socket): Changed its type to SocketHandle.
  10739. * src/Command.h
  10740. (CommandUuid): New type definition.
  10741. (uuid): New variable.
  10742. (uuidGen): New variable.
  10743. (Command): Added the initialization of uuid.
  10744. (getUuid): New function.
  10745. * src/Socket.h
  10746. (Socket): Removed.
  10747. (SocketHandle): New type definition.
  10748. * src/DownloadEngine.h
  10749. (FindCommand): New function object.
  10750. (run): The portion of socket check was rewritten.
  10751. (SetDescriptor): New function object.
  10752. (AccumulateActiveCommandUuid): New function object.
  10753. (waitData): Rewritten.
  10754. (addSocket): Rewritten.
  10755. (deleteSocket): Rewritten.
  10756. (addSocketForReadCheck): Rewritten.
  10757. (addSocketForWriteCheck): Rewritten.
  10758. (deleteSocketForReadCheck): Rewritten.
  10759. (deleteSocketForWriteCheck): Rewritten.
  10760. * src/HttpProxyResponseCommand.h
  10761. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  10762. * src/HttpConnection.h
  10763. (socket): Changed its type to SocketHandle.
  10764. (HttpConnection): Replaced Socket with SocketHandle.
  10765. * src/PeerInitiateConnectionCommand.cc
  10766. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10767. (executeInternal): Removed the allocation of socket.
  10768. (prepareForNextPeer): Use PeerHandle.
  10769. * src/PeerMessage.h
  10770. (peer): Changed its type to PeerHandle.
  10771. (getPeer): Replaced Peer with PeerHandle.
  10772. (setPeer): Replaced Peer with PeerHandle.
  10773. * src/DownloadCommand.cc
  10774. (DownloadCommand): Replaced Socket with SocketHandle.
  10775. * src/FtpConnection.h
  10776. (socket): Changed its type to SocketHandle.
  10777. (FtpConnection): Replaced Socket with SocketHandle.
  10778. (sendPort); Replaced Socket with SocketHandle.
  10779. * src/FtpDowndloadCommand.h
  10780. (ctrlSocket): Changed its type to SocketHandle.
  10781. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10782. * src/HttpProxyRequestCommand.cc
  10783. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10784. * src/FtpTunnelRequestCommand.h
  10785. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10786. etc
  10787. * src/PeerChokeCommand.h
  10788. (setAllPeerChoked): Removed.
  10789. (setAllPeerResetDelta): Removed.
  10790. * src/PeerChokeCommand.cc
  10791. (setAllPeerChoked): Removed.
  10792. (ChokePeer): New function object.
  10793. (setAllPeerResetDelta): Removed.
  10794. (ResetDelta): New function object.
  10795. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  10796. (execute): Show download speed when the local node is a seeder.
  10797. setAllPeerChoked and setAllPeerResetDelta were rewritten
  10798. using STL.
  10799. * src/TrackerWatcherCommand.h
  10800. (MIN_PEERS): Removed.
  10801. * src/TorrentMan.cc
  10802. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  10803. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10804. To fix the bug that .aria2 file is not saved if downloading is stopped
  10805. by the errors:it results that aria2 can not resume downloading:
  10806. * src/main.cc
  10807. (normalDownload): Added the call to save().
  10808. (main): Added the deletion of the elements in 'reserved'.
  10809. To fix log:
  10810. * src/PeerInteraction.cc
  10811. (receiveHandshake): Fixed log.
  10812. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10813. To improve download performance in BitTorrent:
  10814. * src/TorrentMan.cc
  10815. (getPeer): Check the number of connections. Return nullPeer if
  10816. it is greater than MAX_PEER_UPDATE.
  10817. This code was originally here, but was removed in 0.5.1.
  10818. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10819. To improve the conditional compilation:
  10820. * src/MultiDiskWriter.h:
  10821. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10822. * src/MultiDiskWriter.cc:
  10823. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10824. * src/Util.h:
  10825. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10826. Added ENABLE_BITTORRENT around computeFastSet().
  10827. * src/Util.cc:
  10828. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10829. Added ENABLE_BITTORRENT around computeFastSet().
  10830. * src/messageDigest.h:
  10831. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  10832. * src/ShaVisitor.h:
  10833. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10834. * src/ShaVisitor.cc:
  10835. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10836. * src/main.cc:
  10837. Added ENABLE_BITTORRENT around includes and blocks related to
  10838. BitTorrent.
  10839. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  10840. digest support is not available.
  10841. * src/AbstractDiskWriter.h:
  10842. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10843. * src/AbstractDiskWriter.cc:
  10844. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10845. * src/MetalinkEntry.cc
  10846. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  10847. support is not available.
  10848. To add command-line options for Metalink:
  10849. * src/main.cc:
  10850. Added metalink-version, metalink-language, metalink-os,
  10851. follow-metalink.
  10852. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  10853. * src/main.cc: Use these definition.
  10854. * Release 0.6.0
  10855. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10856. To add Metalink support(http/ftp only):
  10857. * src/AbstractCommand.h
  10858. (tryReserved): New function.
  10859. * src/AbstractCommand.cc
  10860. (execute): Call tryReserved().
  10861. (tryReserved): New function.
  10862. * src/Request.h
  10863. (Requests): New type definition.
  10864. * src/SegmentMan.h
  10865. (reserved): New variable.
  10866. * src/Util.h
  10867. (fileChecksum): New function.
  10868. (toUpper): New function.
  10869. (toLower): New function.
  10870. * src/Util.cc
  10871. (messageDigest.h): Included.
  10872. (trim): Trim \r\n\t.
  10873. (fileChecksum): New function.
  10874. (toUpper): New function.
  10875. (toLower): New function.
  10876. * src/main.cc
  10877. (normalDownload): New function.
  10878. (main): Added 2 command-line options: metalink-file,
  10879. metalink-connection. Their usage has not been written yet.
  10880. * src/MetalinkProcessor.h: New class.
  10881. * src/Xml2MetalinkProcessor.h: New class.
  10882. * src/Xml2MetalinkProcessor.cc: New class.
  10883. * src/MetalinkEntry.h: New class.
  10884. * src/MetalinkEntry.cc: New class.
  10885. * src/MetalinkResource.h: New class.
  10886. * src/MetalinkResource.cc: New class.
  10887. To add md5 message digest checking:
  10888. * src/messageDigest.h: Rewritten.
  10889. * src/MultiDiskWriter.cc: Updated according to the changes in
  10890. messageDigest.h.
  10891. * src/ShaVisitor.cc: Updated according to the changes in
  10892. messageDigest.h.
  10893. * src/Util.cc: Updated according to the changes in messageDigest.h.
  10894. * src/AbstractDiskWriter.cc: Updated according to the changes in
  10895. messageDigest.h.
  10896. To fix a bug that causes segfault when the payload length in peer
  10897. message is less than 0:
  10898. * src/PeerConnection.cc:
  10899. (receiveMessage): Fixed the bug.
  10900. * src/PeerMessageUtil.cc
  10901. (checkLength): Throw an exception if length is less than or equals to
  10902. 0.
  10903. To add new interfaces to Base64 encoding/decoding:
  10904. * src/Base64.h
  10905. (part_encode): Changed the method signature.
  10906. (encode): New function(overload).
  10907. (decode): New function(overload).
  10908. * src/Base64.cc
  10909. (part_encode): Rewritten.
  10910. (encode): Rewritten.
  10911. (encode): New function(overload).
  10912. To prevent a peer to download same piece if there is an error in
  10913. checksum:
  10914. * src/PieceMessage.cc
  10915. (receivedAction): Call peerInteraction->abortPiece().
  10916. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10917. To fix the bug that causes same have message is sent many times to
  10918. a single peer.
  10919. * src/Time.cc
  10920. (isNewer): Use Util::difftv().
  10921. * src/Util.cc
  10922. (difftv): Added a cast to (long long int).
  10923. * src/TorrentMan.cc
  10924. (advertisePiece): Use push_front.
  10925. (getAdvertisedPieceIndexes): A performance improvement was made.
  10926. To fix the bug that sends tracker requests without a sleep interval
  10927. when the number of connections is less than 15.
  10928. * src/TrackerWatcherCommand.cc
  10929. (execute): Now the number of connections is not a factor to decide
  10930. whether or not a tracker request should be sent or not.
  10931. * src/Time.h
  10932. (setTimeInSec): New function.
  10933. * src/Time.cc
  10934. (setTimeInSec): New function.
  10935. etc.
  10936. * src/ChokeMessage.cc
  10937. (receivedAction): Removed peer->snubbing = false
  10938. * src/PeerConnection.h
  10939. (receiveHandshake): Updated doc.
  10940. * src/TorrentMan.h
  10941. (getAdvertisedPieceIndexes): Updated the method signature.
  10942. * src/TorrentMan.cc
  10943. (getAdvertisedPieceIndexes): Updated the method signature.
  10944. * src/Time.h
  10945. (getTimeInMicros): Added a cast to (long long int).
  10946. (getTimeInMillis): Added a cast to (long long int).
  10947. * Release 0.5.2
  10948. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10949. To make a listening socket non-block:
  10950. * src/SocketCore.h
  10951. (setNonBlockingMode): New function.
  10952. * src/SocketCore.cc
  10953. (setNonBlockingMode): New function.
  10954. (beginListen): Added a call to setNonBlockingMode().
  10955. (acceptConnection): Call setNonBlockingMode().
  10956. (setBlockingMode): Updated.
  10957. To handle tracker's NAT-checking:
  10958. * src/PeerConnection.cc
  10959. (receiveHandshake): 'msg' param is filled with received data and
  10960. its length is assigned to 'length' param, even if all handshake
  10961. message is not yet received.
  10962. * src/PeerInteractionCommand.cc
  10963. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  10964. a new peer connects to localhost.
  10965. A call to peerInteraction->sendHandshake() was removed because
  10966. it is called from peerInteraction->receiveHandshake(true).
  10967. * src/PeerInteraction.h
  10968. (quickReplied): New variable.
  10969. (receiveHandshake): Added an argument.
  10970. * src/PeerInteraction.cc
  10971. (PeerInteraction): Added the initialization of quickReplied.
  10972. (receiveHandshake): Send handshake message as soon as the info hash
  10973. in a handshake message from a peer is correct.
  10974. To change the random part of peer id and key parameter:
  10975. * src/TorrentMan.h
  10976. (key): New variable.
  10977. * src/TorrentMan.cc
  10978. (setupInternal1): Use Util::randomAlpha() to generate random part
  10979. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  10980. key is also generated by Util::randomAlpha() and it is now 8 character
  10981. long.
  10982. * src/Util.h
  10983. (randomAlpha): New function.
  10984. * src/Util.cc
  10985. (randomAlpha): New function.
  10986. * src/TrackerWatcherCommand.cc
  10987. (execute): In a tracker request: Use torrentMan->key as key parameter.
  10988. Added no_peer_id=1.
  10989. Set snubbing flag to false when a choke message is received from a
  10990. snubbed peer.
  10991. * src/ChokeMessage.cc
  10992. (receivedAction): Set snubbing flag to false.
  10993. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10994. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  10995. * src/SimpleLogger.h (writeHeader): New function.
  10996. * src/SimpleLogger.cc (writeHeader): New function.
  10997. (writeLog): Fixed the bug that causes segfaults if exception message
  10998. contains an unescaped "%" character.
  10999. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11000. when a tracker request fails.
  11001. * src/Request.cc (parseUrl): Query string is now handled properly.
  11002. * Release 0.5.1
  11003. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. To add Time class which represents a specific instant in time and
  11005. its precision is microseconds. Time checking procedures were rewritten
  11006. using this object.
  11007. * src/Time.h: New class.
  11008. * src/Time.cc: New class.
  11009. * src/AbstractCommand.h
  11010. (updateCheckPoint): Removed.
  11011. (isTimeoutDetected): Removed.
  11012. (checkPoint): Changed the type to Time.
  11013. (timeout): New variable.
  11014. (setTimeout): New function.
  11015. * src/AbstractCommand.cc
  11016. (AbstractCommand): Removed the initialization of checkPoint.
  11017. Added the initialization of timeout.
  11018. (updateCheckPoint): Removed.
  11019. (isTimeoutDetected): Removed.
  11020. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11021. * src/PeerChokeCommand.h
  11022. (checkPoint): Changed the type to Time.
  11023. * src/PeerChokeCommand.cc
  11024. (PeerChokeCommand): Removed the initialization of checkPoint.
  11025. (execute): Rewritten using Time object.
  11026. * src/TrackerWatcherCommand.h
  11027. (checkPoint): Changed the type to Time.
  11028. * src/TrackerWatcherCommand.cc
  11029. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  11030. (execute): Rewritten.
  11031. * src/ConsoleDownloadEngine.h
  11032. (cp): Changed the type to Time.
  11033. (startup): Changed the type to Time.
  11034. * src/ConsoleDownloadEngine.cc
  11035. (initStatistics): Use cp.reset(), startup.reset().
  11036. (calculateStatistics): Rewritten using Time object.
  11037. * src/PeerAbstractCommand.h
  11038. (updateCheckPoint): Removed.
  11039. (isTimeoutDetected): Removed.
  11040. (checkPoint): Changed the type to Time.
  11041. * src/PeerAbstractCommand.cc
  11042. (PeerAbstractCommand): Removed the initialization of checkPoint.
  11043. (updateCheckPoint): Removed.
  11044. (isTimeoutDetected): Removed.
  11045. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11046. * src/PeerInteractionCommand.cc
  11047. (PeerInteractionCommand): Removed the initializations of struct
  11048. timeval variables.
  11049. * src/PeerInteractionCommand.h
  11050. (keepAliveCheckPoint): Changed the type to Time.
  11051. (chokeCheckPoint): Changed the type to Time.
  11052. (freqCheckPoint): Changed the type to Time.
  11053. (haveCheckTime): Changed the type to Time.
  11054. * src/PeerInteractionCommand.cc
  11055. (executeInternal): Rewritten using Time object.
  11056. (detectMessageFlooding): Rewritten using Time object.
  11057. (checkLongTimePeerChoking): Rewritten using Time object.
  11058. (sendKeepAlive): Rewritten using Time object.
  11059. (checkHave): Rewritten using Time object.
  11060. * src/SleepCommand.h
  11061. (checkPoint): Changed the type to Time.
  11062. * src/SleepCommand.cc
  11063. (SleepCommand): Removed the initialization of checkPoint.
  11064. (execute): Rewritten using Time object.
  11065. * src/TorrentAutoSaveCommand.h
  11066. (checkPoint): Changed the type to Time.
  11067. * src/TorrentAutoSaveCommand.cc
  11068. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11069. (execute): Rewritten.
  11070. * src/DownloadCommand.h
  11071. (sw): Changed the type to Time.
  11072. * src/DownloadCommand.cc
  11073. (DownloadCommand): Removed the initialization of sw.
  11074. (executeInternal): Rewritten.
  11075. * src/RequestSlot.h
  11076. (dispatchedTime): Changed the type to Time.
  11077. * src/RequestSlot.cc
  11078. (RequestSlot): Removed the call to setDispatchedTime().
  11079. (setDispatchedTime): Rewirtten.
  11080. (isTimeout): Rewritten.
  11081. (getLatencyInMillis): Rewritten.
  11082. * src/TorrentDownloadEngine.h
  11083. (cp): Changed the type to Time[2].
  11084. (startup): Changed the type to Time.
  11085. * src/TorrentDownloadEngine.cc
  11086. (initStatistics): Rewritten.
  11087. (calculateStatistics): Rewritten.
  11088. * src/DownloadEngine.cc
  11089. (run): Rewritten.
  11090. To detect all attempts to connect to the tracker are failed:
  11091. * src/AbstractCommand.cc
  11092. (execute): Increment e->segmentMan->errors if a command aborted.
  11093. * src/SegmentMan.h
  11094. (errors): New variable.
  11095. * src/SegmentMan.cc
  11096. (SegmentMan): Added the initialization of errors.
  11097. (init): Added the initialization of errors.
  11098. * src/TrackerWatcherCommand.cc
  11099. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11100. request was failed.
  11101. To handle snubbed peers:
  11102. * src/PeerChokeCommand.cc
  11103. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11104. (execute): Snubbed peers don't get unchoked.
  11105. * src/PeerInteraction.h
  11106. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11107. * src/PeerInteraction.cc
  11108. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11109. back the requested 16k block in 60 seconds.
  11110. * src/PieceMessage.cc
  11111. (receivedAction): A peer's snubbed state is cleard if it sends
  11112. the requested 16k block in 60 seconds.
  11113. * src/Peer.h
  11114. (snubbing): New variable.
  11115. * src/Peer.cc
  11116. (resetStatus): Added snubbed = false.
  11117. To fix the bug that causes have message is not sent:
  11118. * src/PeerInteractionCommand.cc
  11119. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11120. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11121. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11122. * src/TorrentMan.h
  11123. (HaveEntry): New class.
  11124. (advertisePiece): Rewritten.
  11125. (getAdvertisedPieceIndexes): Rewritten.
  11126. (Haves): Changed the type.
  11127. (getAdvertisedPieceIndexes): Added an argument.
  11128. Others:
  11129. * src/TorrentMan.h
  11130. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11131. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11132. * src/TorrentMan.cc
  11133. (getPeer): Don't check the number of connections here.
  11134. (setupInternal1): Changed peerId.
  11135. * src/PeerInteractionCommand.h
  11136. (KEEP_ALIVE_INTERVAL): New definition.
  11137. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11138. * src/main.cc
  11139. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11140. * src/DownloadEngine.h: Removed unnecessary header includes.
  11141. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11142. To fix the bug that causes segfaults if a tracker returns a zero-length
  11143. list as "peers":
  11144. * src/TrackerUpdateCommand.cc
  11145. (execute): Added a check to see wether the type of peers is Data*.
  11146. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11147. * Release 0.5.0
  11148. To fix compile issue with gcc3:
  11149. * src/CancelMessage.h
  11150. (ID): Renamed as ID_t
  11151. (ID_t): New enum.
  11152. * src/RejectMessage.h
  11153. (ID): Renamed as ID_t
  11154. (ID_t): New enum.
  11155. * src/SuggestPieceMessage.h
  11156. (ID): Renamed as ID_t
  11157. (ID_t): New enum.
  11158. * src/AllowedFastMessage.h
  11159. (ID): Renamed as ID_t
  11160. (ID_t): New enum.
  11161. * src/PortMessage.h
  11162. (ID): Renamed as ID_t
  11163. (ID_t): New enum.
  11164. * src/HaveNoneMessage.h
  11165. (ID): Renamed as ID_t
  11166. (ID_t): New enum.
  11167. * src/KeepAliveMessage.h
  11168. (ID): Renamed as ID_t
  11169. (ID_t): New enum.
  11170. * src/HaveAllMessage.h
  11171. (ID): Renamed as ID_t
  11172. (ID_t): New enum.
  11173. * src/UnchokeMessage.h
  11174. (ID): Renamed as ID_t
  11175. (ID_t): New enum.
  11176. * src/BitfieldMessage.h
  11177. (ID): Renamed as ID_t
  11178. (ID_t): New enum.
  11179. * src/PieceMessage.h
  11180. (ID): Renamed as ID_t
  11181. (ID_t): New enum.
  11182. * src/RequestMessage.h
  11183. (ID): Renamed as ID_t
  11184. (ID_t): New enum.
  11185. * src/NotInterestedMessage.h
  11186. (ID): Renamed as ID_t
  11187. (ID_t): New enum.
  11188. * src/ChokeMessage.h
  11189. (ID): Renamed as ID_t
  11190. (ID_t): New enum.
  11191. * src/InterestedMessage.h
  11192. (ID): Renamed as ID_t
  11193. (ID_t): New enum.
  11194. * src/HaveMessage.h
  11195. (ID): Renamed as ID_t
  11196. (ID_t): New enum.
  11197. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11198. * src/PeerAbstractCommand.h
  11199. (beforeSocketCheck): Removed.
  11200. * src/PeerAbstractCommand.cc
  11201. Modified in order to call executeInternal() even if socket check
  11202. and upload limit check fail.
  11203. * src/PeerInteractionCommand.h
  11204. (keepAlive): Removed.
  11205. (sendKeepAlive): New function.
  11206. (checkHave): New function.
  11207. (beforeSocketCheck): Removed.
  11208. * src/PeerInteractionCommand.cc
  11209. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11210. calls to checkHave() and sendKeepAlive().
  11211. (keepAlive): Renamed to sendKeepAlive().
  11212. (sendKeepAlive): New function.
  11213. (beforeSocketCheck): Removed.
  11214. (checkHave): New function.
  11215. * src/BitfieldMan.cc
  11216. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11217. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11218. 0.
  11219. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11220. * src/TorrentMan.h
  11221. (UsedPieces): Removed.
  11222. (Pieces): New type definition.
  11223. * src/Piece.h: Updated doc.
  11224. * src/Peer.h
  11225. (totalLength): Removed.
  11226. * src/Peer.cc
  11227. (updateLatency): Fixed the latency calculation.
  11228. * src/TorrentMan.cc
  11229. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11230. than or equal to MAX_PEER_LIST_SIZE.
  11231. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11232. then return false.
  11233. (deleteOldErrorPeers): Rewritten.
  11234. (deleteUsedPiece): Fixed the miss use of STL remove.
  11235. * src/PeerInteraction.h
  11236. (Pieces): Removed.
  11237. (deleteTimeoutRequestSlot): Removed.
  11238. (deleteCompletedRequestSlot): Removed.
  11239. (checkRequestSlot): New function.
  11240. * src/PeerInteraction.cc
  11241. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11242. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11243. (checkRequestSlot): New function.
  11244. * src/DownloadEngine.cc
  11245. (run): Clear activeSockets before calling waitData().
  11246. (waitData): Removed a call to activeSockets.clear().
  11247. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11248. To attempt to handle EINTR:
  11249. * src/SocketCore.cc
  11250. (isReadable): Added EINTR handling.
  11251. (isWritable): Added EINTR handling.
  11252. To improve the performance:
  11253. * src/AbstractCommand.cc
  11254. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11255. * src/PeerInteractionCommand.h
  11256. (receiveMessage): Renamed as receiveMessages().
  11257. (receiveMessages): New function.
  11258. * src/PeerInteractionCommand.cc
  11259. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11260. () function. detectMessageFlooding() is moved here.
  11261. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11262. (). The flooding detection for have message is comment out.
  11263. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11264. Util::difftv().
  11265. (receiveMessage): Renamed as receiveMessages().
  11266. (receiveMessages): New function.
  11267. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11268. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11269. * src/SleepCommand.cc
  11270. (execute): Use Util::difftvsec() instead of Util::difftv().
  11271. * src/BitfieldMan.h
  11272. (getNthBitIndex): New function.
  11273. (hasMissingPiece): New function.
  11274. (getAllMissingIndexes): New function.
  11275. * src/BitfieldMan.cc
  11276. (countSetBit): Rewritten.
  11277. (getNthBitIndex): New function.
  11278. (getMissingIndexRandomly): Rewritten.
  11279. (hasMissingPiece): New function.
  11280. (getAllMissingIndexes): New function.
  11281. * src/TorrentMan.cc
  11282. (hasMissingPiece): New function.
  11283. (deleteUsedPiece): Rewritten using STL.
  11284. * src/PeerInteraction.cc
  11285. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11286. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11287. (addRequests): Updated the number of pending requests.
  11288. * src/PeerAbstractCommand.cc
  11289. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11290. (execute): Returns true if TorrentMan::isHalt() is true.
  11291. Corrected the condition of upload limit checking.
  11292. * src/Util.h
  11293. (countBit): New function.
  11294. * src/Util.cc
  11295. (nbits): New variable.
  11296. (countBit): New function.
  11297. * src/DownloadEngine.h
  11298. (SockCmdMap): New type definition.
  11299. (waitData): Added an argument.
  11300. (addSocket): Added an argument.
  11301. (addSocketForReadCheck): Added an argument.
  11302. (addSocketForWriteCheck): Added an argument.
  11303. * src/DownloadEngine.cc
  11304. (run): Executes only commands whose sockets are ready to read or write.
  11305. All commands are executed in every 1 second.
  11306. (waitData): Calls select() again if it returned
  11307. EINTR.
  11308. (addSocket): Saves socket and command object pair to the map.
  11309. (deleteSocket): Deletes socket and command object pair from the map.
  11310. (addSocketForReadCheck): Added an argument.
  11311. (addSocketForWriteCheck): Added an argument.
  11312. * src/DownloadCommand.cc
  11313. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11314. To send "event=stopped" to the tracker when the application finishes:
  11315. * src/PeerChokeCommand.h
  11316. (checkPoint): New variable.
  11317. * src/PeerChokeCommand.cc
  11318. (PeerChokeCommand): Added the initialization of checkPoint.
  11319. (execute): The interval check is now done by checkPoint, not
  11320. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11321. * src/TorrentMan.h
  11322. (halt): New function.
  11323. (hasMissingPiece): New function.
  11324. (isHalt): New function.
  11325. (setHalt): New function.
  11326. * src/TorrentMan.cc
  11327. (TorrentMan): Added the initialization of halt.
  11328. * src/TorrentAutoSaveCommand.h
  11329. (checkPoint): New variable.
  11330. * src/PeerListenCommand.cc
  11331. (execute): Returns true if TorrentMan::isHalt() is true.
  11332. * src/main.cc
  11333. (setSignalHander): Added flags argument.
  11334. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11335. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11336. Removed printDownloadAbortMessage() after torrent downloading loop.
  11337. * src/TorrentAutoSaveCommand.cc
  11338. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11339. (execute): Returns true if TorrentMan::isHalt() is true.
  11340. The interval check is now done by checkPoint, not SleepCommand.
  11341. * src/TrackerWatcherCommand.cc
  11342. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11343. event=stopped.
  11344. * src/TrackerUpdateCommand.cc
  11345. (prepareForRetry): Do not use SleepCommand here.
  11346. (execute): Returns true if TorrentMan::isHalt() is true.
  11347. Others:
  11348. * src/TorrentMan.cc
  11349. (getMissingPieceIndex): Updated log message.
  11350. * src/PeerInteraction.cc
  11351. (createPeerMessag): Updated log message.
  11352. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11353. To add the ability to download several pieces in mix in a command and
  11354. increase the number of request slots according to request-cancel
  11355. latency:
  11356. * src/PeerInteractionCommand.cc
  11357. (executeInternal): The number of messages to be received at a time
  11358. is increased from 10 to 50.
  11359. * src/LogFactory
  11360. (getInstance): Added NullLogger.
  11361. * src/NullLogger.h: New class.
  11362. * src/BitfieldMan.h
  11363. (getMissingIndex): New function.
  11364. * src/BitfieldMan.cc
  11365. (getMissingIndex): New function.
  11366. * src/TorrentMan.h
  11367. (checkOutPiece): New function.
  11368. (getMissingPieceIndex): New function.
  11369. (getMissingFastPieceIndex): New function.
  11370. (getMissingFastPiece): New function.
  11371. * src/TorrentMan.cc
  11372. (updatePiece): Rewritten using STL.
  11373. (syncPiece): Rewritten using STL.
  11374. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11375. checkOutPiece().
  11376. (getMissingPieceIndex): New function.
  11377. (getMissingFastPieceIndex): New function.
  11378. (getMissingFastPiece): New function.
  11379. (checkOutPiece): New function.
  11380. * src/PeerInteraction.h
  11381. (Pieces): New type definition.
  11382. (piece): Removed.
  11383. (pieces): New variable.
  11384. (getNewPieceAndSendInterest): Added the "piece" argument.
  11385. (abortPiece): Added the "piece" argument.
  11386. (abortAllPieces): New function.
  11387. (isInRequestSlot): New function.
  11388. (hasDownloadPiece): Added the "index" argument.
  11389. (setDownloadPiece): Removed.
  11390. (getDownloadPiece): Added the "index" argument.
  11391. (updatePiece): New function.
  11392. (createRequestMessage): Added the "index" argument.
  11393. * src/PeerInteraction.cc
  11394. (onChoked): Rewritten.
  11395. (abortPiece): Rewirtten.
  11396. (abortAllPieces): New function.
  11397. (deleteTimeoutRequestSlot): Rewritten.
  11398. Clarified code a little bit.
  11399. (deleteCompletedRequestSlot): Rewritten.
  11400. (isInRequestSlot): New function.
  11401. (syncPiece): Rewritten.
  11402. (updatePiece): New function.
  11403. (getNewPieceAndSendInterest): Rewritten.
  11404. (addRequests): Rewritten.
  11405. (getDownloadPiece): Rewritten.
  11406. (hasDownloadPiece): Rewritten.
  11407. (createRequestMessage): Added the "index" argument.
  11408. * src/common.h
  11409. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11410. (DIV_FLOOR): New definition.
  11411. * src/PieceMessage.cc
  11412. (receivedAction): Update request-piece latency here.
  11413. * src/RequestSlot.h
  11414. (getLatencyInMillis): New function.
  11415. * src/RequestSlot.cc
  11416. (isTimeout): Rewritten using getLatencyInMillis.
  11417. (getLatencyInMillis): New function.
  11418. * src/Piece.h
  11419. (operator==): New function.
  11420. (getMissingBlockIndex): New function.
  11421. * src/Piece.cc
  11422. (operator==): New function.
  11423. (getMissingBlockIndex): New function.
  11424. * src/Peer.h
  11425. (DEFAULT_LATENCY): New definition.
  11426. (latency): New variable.
  11427. (updateLatency): New function.
  11428. (getLatency): New function.
  11429. * src/Peer.cc
  11430. (resetStatus): Reset latecy.
  11431. (updateLatency): New function.
  11432. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11433. * src/SocketCore.cc
  11434. (isReadable): Added secure to the condition.
  11435. * src/HttpConnection.cc
  11436. (receiveResponse): Fixed a bug that causes no response header
  11437. exception.
  11438. * src/Peer.h
  11439. (getFastSet): Fixed the return value type.
  11440. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11441. To remove a wait from download loop:
  11442. * src/DownloadEngine.cc
  11443. (run): Comment out shortSleep.
  11444. To rewrite the message handling:
  11445. * src/SimplePeerMessage.h: New class.
  11446. * src/SimplePeerMessage.cc: New class.
  11447. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11448. (msg): New variable.
  11449. (create): New function.
  11450. (send): Removed.
  11451. (getMessage): New function.
  11452. (getMessageLength): New function.
  11453. * src/CancelMessage.cc
  11454. (create): New function.
  11455. (receivedAction): Replaced deleteRequestMessageInQueue with
  11456. rejectPieceMessageInQueue.
  11457. (send): Removed.
  11458. (getMessage): New function.
  11459. (getMessageLength): New function.
  11460. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11461. (msg): New variable.
  11462. (msgLength): New variable.
  11463. (~BitfieldMessage): Deleted msg.
  11464. (send): Removed.
  11465. (getMessage): New function.
  11466. (getMessageLength): New function.
  11467. * src/BitfieldMessage.cc
  11468. (create): New function.
  11469. (send): Removed.
  11470. (getMessage): New function.
  11471. (getMessageLength): New function.
  11472. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11473. (msg): New variable.
  11474. (sendPredicate): New function.
  11475. (onSendComplete): New function.
  11476. (send): Removed.
  11477. (getMessage): New function.
  11478. (getMessageLength): New function.
  11479. (create): New function.
  11480. * src/ChokeMessage.cc
  11481. (create): New function.
  11482. (send): Removed.
  11483. (sendPredicate): New function.
  11484. (getMessage): New function.
  11485. (getMessageLength): New function.
  11486. (onSendComplete): New function.
  11487. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11488. (msg): New variable.
  11489. (send): Removed.
  11490. (getMessage): New function.
  11491. (getMessageLength): New function.
  11492. * src/KeepAliveMessage.cc
  11493. (send): Removed.
  11494. (getMessage): New function.
  11495. (getMessageLength): New function.
  11496. * src/PortMessage.h
  11497. (create): New function.
  11498. (receivedAction): Updated log message.
  11499. * src/PortMessage.cc: New file.
  11500. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11501. (msg): New variable.
  11502. (sendPredicate): New function.
  11503. (onSendComplete): New function.
  11504. (create): New function.
  11505. (send): Removed.
  11506. (getMessage): New function.
  11507. (getMessageLength): New function.
  11508. * src/UnchokeMessage.cc
  11509. (create): New function.
  11510. (send): Removed.
  11511. (sendPredicate): New function.
  11512. (getMessage): New function.
  11513. (getMessageLength): New function.
  11514. (onSendComplete): New function.
  11515. * src/PieceMessage.h
  11516. (leftPieceDataLength): Removed.
  11517. (leftDataLength): New variable.
  11518. (headerSend): New variable.
  11519. (pendingCount): New variable.
  11520. (msgHeader): New variable.
  11521. (sendPieceData): New function.
  11522. (incrementPendingCount): New function.
  11523. (isPendingCountMax): New function.
  11524. (create): New function.
  11525. (getMessageHeader): New function.
  11526. (getMessageHeaderLength): New function.
  11527. * src/PieceMessage.cc
  11528. (create): New function.
  11529. (getMessageHeader): New function.
  11530. (getMessageHeaderLength): New function.
  11531. (send): Rewritten.
  11532. (sendPieceData): New function.
  11533. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11534. (msg): New variable.
  11535. (create): New function.
  11536. (getMessage): New function.
  11537. (getMessageLength): New function.
  11538. * src/HaveMessage.cc
  11539. (create): New function.
  11540. (send): Removed.
  11541. (sendPieceData): New function.
  11542. (getMessage): New function.
  11543. (getMessageLength): New function.
  11544. * src/RequestMessage.h: Derived from SimplePeerMessage.
  11545. (msg): New variable.
  11546. (create): New function.
  11547. (send): Removed.
  11548. (getMessage): New function.
  11549. (getMessageLength): New function.
  11550. * src/RequestMessage.cc
  11551. (create): New function.
  11552. (receivedAction): Added the handling of fast extension.
  11553. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  11554. (send): Removed.
  11555. (getMessage): New function.
  11556. (getMessageLength): New function.
  11557. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  11558. (msg): New variable.
  11559. (sendPredicate): New function.
  11560. (onSendComplete): New function.
  11561. (create): New function.
  11562. (getMessage): New function.
  11563. (getMessageLength): New function.
  11564. * src/InterestedMessage.cc
  11565. (create): New function.
  11566. (send): Removed.
  11567. (sendPieceData): New function.
  11568. (getMessage): New function.
  11569. (getMessageLength): New function.
  11570. (onSendComplete): New function.
  11571. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  11572. (msg): New variable.
  11573. (sendPieceData): New function.
  11574. (onSendComplete): New function.
  11575. (create): New function.
  11576. (send): Removed.
  11577. (getMessage): New function.
  11578. (getMessageLength): New function.
  11579. * src/NotInterestedMessage.cc
  11580. (create): New function.
  11581. (send): Removed.
  11582. (sendPredicate): New function.
  11583. (getMessage): New function.
  11584. (getMessageLength): New function.
  11585. (onSendComplete): New function.
  11586. * src/AllowedFastMessage.h: New class.
  11587. * src/AllowedFastMessage.cc: New class.
  11588. * src/RejectMessage.h: New class.
  11589. * src/RejectMessage.cc: New class.
  11590. * src/SuggestPieceMessage.h: New class.
  11591. * src/SuggestPieceMessage.cc: New class.
  11592. * src/HaveAllMessage.h: New class.
  11593. * src/HaveAllMessage.cc: New class.
  11594. * src/HaveNoneMessage.h: New class.
  11595. * src/HaveNoneMessage.cc: New class.
  11596. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  11597. (msg): New variable.
  11598. (reserved): New variable.
  11599. (create): New function.
  11600. (getId): New function.
  11601. (receivedAction): New function.
  11602. (getMessage): New function.
  11603. (getMessageLength): New function.
  11604. (isFastExtensionSupported): New function.
  11605. * src/HandshakeMessage.cc
  11606. (HandshakeMessage): Moved here from HandshakeMessage.h.
  11607. (create): New function.
  11608. (getMessage): New function.
  11609. (getMessageLength): New function.
  11610. (toString): Added the output of reserved field.
  11611. (check): Added const qualifier.
  11612. (isFastExtensionSupported): New function.
  11613. * src/PeerMessageUtil.h
  11614. (createChokeMessage): Removed.
  11615. (createUnchokeMessage): Removed.
  11616. (createInterestedMessage): Removed.
  11617. (createNotInterestedMessage): Removed.
  11618. (createHaveMessage): Removed.
  11619. (createBitfieldMessage): Removed.
  11620. (createRequestMessage): Removed.
  11621. (createCancelMessage): Removed.
  11622. (createPieceMessage): Removed.
  11623. (createPortMessage): Removed.
  11624. (createChokeMessage): Removed.
  11625. (createUnchokeMessage): Removed.
  11626. (createInterestedMessage): Removed.
  11627. (createNotInterestedMessage): Removed.
  11628. (createHaveMessage): Removed.
  11629. (createBitfieldMessage): Removed.
  11630. (createRequestMessage): Removed.
  11631. (createCancelMessage): Removed.
  11632. (createPieceMessage): Removed.
  11633. (createKeepAliveMessage): Removed.
  11634. (createHandshakeMessage): Removed.
  11635. (setIntParam): New function.
  11636. (createPeerMessageString): New function.
  11637. * src/PeerMessageUtil.cc
  11638. (createChokeMessage): Removed.
  11639. (createUnchokeMessage): Removed.
  11640. (createInterestedMessage): Removed.
  11641. (createNotInterestedMessage): Removed.
  11642. (createHaveMessage): Removed.
  11643. (createBitfieldMessage): Removed.
  11644. (createRequestMessage): Removed.
  11645. (createCancelMessage): Removed.
  11646. (createPieceMessage): Removed.
  11647. (createPortMessage): Removed.
  11648. (createRequestMessage): Removed.
  11649. (createCancelMessage): Removed.
  11650. (createPieceMessage): Removed.
  11651. (createHaveMessage): Removed.
  11652. (createChokeMessage): Removed.
  11653. (createUnchokeMessage): Removed.
  11654. (createInterestedMessage): Removed.
  11655. (createNotInterestedMessage): Removed.
  11656. (createBitfieldMessage): Removed.
  11657. (createKeepAliveMessage): Removed.
  11658. (createHandshakeMessage): Removed.
  11659. (setIntParam): New function.
  11660. (createPeerMessageString): New function.
  11661. * src/PeerConnection.h
  11662. (peer): Removed.
  11663. (torrentMan): Removed.
  11664. (createNLengthMessage): Removed.
  11665. (setIntParam): Removed.
  11666. (writeOutgoingMessageLog): Removed all overloaded functions.
  11667. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11668. (sendMessage): New function.
  11669. (sendHandshake): Removed.
  11670. (sendKeepAlive): Removed.
  11671. (sendChoke): Removed.
  11672. (sendUnchoke): Removed.
  11673. (sendInterested): Removed.
  11674. (sendNotInterested): Removed.
  11675. (sendHave): Removed.
  11676. (sendBitfield): Removed.
  11677. (sendRequest): Removed.
  11678. (sendPiece): Removed.
  11679. (sendPieceHeader): Removed.
  11680. (sendPieceData): Removed.
  11681. (sendCancel): Removed.
  11682. (getPeer): Removed.
  11683. * src/PeerConnection.cc
  11684. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11685. (sendHandshake): Removed.
  11686. (sendKeepAlive): Removed.
  11687. (createNLengthMessage): Removed.
  11688. (setIntParam): Removed.
  11689. (writeOutgoingMessageLog): Removed all overloaded functions.
  11690. (sendChoke): Removed.
  11691. (sendUnchoke): Removed.
  11692. (sendInterested): Removed.
  11693. (sendNotInterested): Removed.
  11694. (sendHave): Removed.
  11695. (sendBitfield): Removed.
  11696. (sendRequest): Removed.
  11697. (sendPiece): Removed.
  11698. (sendPieceHeader): Removed.
  11699. (sendPieceData): Removed.
  11700. (sendMessage): New function.
  11701. (sendCancel): Removed.
  11702. * src/PeerInteractionCommand.cc
  11703. (PeerInteractionCommand): Call setUploadLimit.
  11704. (executeInternal): Call setUploadLimit.
  11705. Added the handling of "inProgress" state of handshake message.
  11706. Call sendBitfield() or sendAllowdFast() instead of deprecated
  11707. sendNow().
  11708. (keepAlive): Call addMessage and sendMessage instead of deprecated
  11709. sendNow().
  11710. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  11711. * src/TorrentMan.h
  11712. (PEER_ID_LENGTH): New definition.
  11713. (hasAllPieces): New function.
  11714. * src/TorrentMan.cc
  11715. (getMissingPiece): Added the handling of fast extension.
  11716. (cancelPiece): Call updatePiece().
  11717. (hasAllPieces): New function.
  11718. * src/PeerInteraction.h
  11719. (fastSet): New variable.
  11720. (getNewPieceAndSendInterest): Changed the return type to void.
  11721. (send): Renamed as sendMessages.
  11722. (deleteAllRequestSlot): Removed.
  11723. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11724. (cancelAllRequest): Removed all overloaded functions.
  11725. (deleteAllRequestSlot): Removed.
  11726. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11727. (rejectPieceMessageInQueue): New function.
  11728. (rejectAllPieceMessageInQueue): New function.
  11729. (onChoked): New function.
  11730. (isSendingMessageInProgress): New function.
  11731. (getCorrespondingRequestSlot): Changed its arguments.
  11732. (isInFastSet): New function.
  11733. (addFastSetIndex): New function.
  11734. (addRequests): New function.
  11735. (sendNow): Removed.
  11736. (trySendNow): Removed.
  11737. (sendBitfield): New function.
  11738. (sendAllowdFast): New function.
  11739. (createHaveAllMessage): New function.
  11740. (createHaveNoneMessage): New function.
  11741. (createRejectMessage): New function.
  11742. (createAllowedFastMessage): New function.
  11743. * src/PeerInteraction.cc
  11744. (send): Renamed as sendMessages.
  11745. (sendMessages): New function.
  11746. (MsgPushBack): New class.
  11747. (isSendingMessageInProgress): New function.
  11748. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11749. (rejectAllPieceMessageInQueue): New function.
  11750. Added the handling of fast extension.
  11751. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11752. (rejectPieceMessageInQueue): New function.
  11753. Added the handling of fast extension.
  11754. (deleteRequestSlot): Replaced for loop with std::find.
  11755. (onChoked): New function.
  11756. (deleteAllRequestSlot): Removed.
  11757. (abortPiece): Rewirtten.
  11758. (deleteTimeoutRequestSlot): Updated log messages.
  11759. (getCorrespondingRequestSlot): Changed its arguments.
  11760. (cancelAllRequest): Removed all overloaded functions.
  11761. (receiveHandshake): Added the check to see whether an incoming peer
  11762. supports fast extension.
  11763. (createHandshakeMessage): Use HandshakeMessage::create instead of
  11764. PeerMessageUtil.
  11765. (createPeerMessage): Use create() of each message class instead of
  11766. PeerMessageUtil.
  11767. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  11768. AllowedFastMessage were added.
  11769. (getNewPieceAndSendInterest): Changed its return value type to void.
  11770. Added the handling of fast extension.
  11771. (addRequests): New function.
  11772. (sendNow): Removed.
  11773. (sendHandshake): Rewritten.
  11774. (trySendNow): Removed.
  11775. (sendBitfield): New function.
  11776. (sendAllowdFast): New function.
  11777. (isInFastSet): New function.
  11778. (addFastSetIndex): New function.
  11779. (createRequestMessage): Use RequestMessage::create instead of
  11780. PeerMessageUtil.
  11781. (createCancelMessage): Use CancelMessage::create instead of
  11782. PeerMessageUtil.
  11783. (createPieceMessage): Use PieceMessage::create instead of
  11784. PeerMessageUtil.
  11785. (createHaveMessage): Use HaveMessage::create instead of
  11786. PeerMessageUtil.
  11787. (createChokeMessage): Use ChokeMessage::create instead of
  11788. PeerMessageUtil.
  11789. (createUnchokeMessage): Use UnchokeMessage::create instead of
  11790. PeerMessageUtil.
  11791. (createInterestedMessage): Use InterestedMessage::create instead of
  11792. PeerMessageUtil.
  11793. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  11794. of PeerMessageUtil.
  11795. (createBitfieldMessage): Use BitfieldMessage::create instead of
  11796. PeerMessageUtil.
  11797. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  11798. PeerMessageUtil.
  11799. (createHaveAllMessage): New function.
  11800. (createHaveNoneMessage): New function.
  11801. (createRejectMessage): New function.
  11802. (createAllowedFastMessage: New function.
  11803. * src/Util.h
  11804. (sha1Sum): New function.
  11805. (computeFastSet): New function.
  11806. * src/Util.cc
  11807. (sha1Sum): New function.
  11808. (computeFastSet): New function.
  11809. * src/Peer.h
  11810. (fastExtensionEnabled): New variable.
  11811. (fastSet): New variable.
  11812. (setAllBitfield): New function.
  11813. (setFastExtensionEnabled): New function.
  11814. (isFastExtensionEnabled): New function.
  11815. (addFastSetIndex): New function.
  11816. (getFastSet): New function.
  11817. (isInFastSet): New function.
  11818. (countFastSet): New function.
  11819. * src/Peer.cc
  11820. (isInFastSet): New function.
  11821. (addFastSetIndex): New function.
  11822. (setAllBitfield): New function.
  11823. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  11824. sockets.
  11825. * src/PeerAbstractCommand.cc
  11826. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  11827. and uploadLimit.
  11828. (execute): Changed the procedure of checking sockets. The upload speed
  11829. checking were added.
  11830. (setUploadLimit): New function.
  11831. (setUploadLimitCheck): New function.
  11832. * src/PeerAbstractCommand.h
  11833. (setUploadLimit): New function.
  11834. (setUploadLimitCheck): New function.
  11835. (uploadLimit): New variable.
  11836. (uploadLimitCheck): New variable.
  11837. To contact a tracker regularly:
  11838. * src/TrackerWatcherCommand.h (interval): New variable.
  11839. (checkPoint): New variable.
  11840. (TrackerWatcherCommand): Added interval argument.
  11841. * src/TrackerWatcherCommand.cc
  11842. (TrackerWatcherCommand): Initialized checkPoint.
  11843. (execute): Now a tracker is contacted in every specified period.
  11844. If peer list is not needed, send request with numwant=0.
  11845. * src/TrackerUpdateCommand.cc
  11846. (execute): Updated log messages.
  11847. * src/DownloadEngine.cc
  11848. (~DownloadEngine): Removed two asserts.
  11849. (waitData): Uncommented wfds. May be a bug fix.
  11850. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11851. * src/PeerInteractionCommand.h
  11852. (checkInactiveConnection): Removed.
  11853. * src/PeerInteractionCommand.cc
  11854. (executeInternal): Removed following function calls:
  11855. detectMessageFlooding(), checkLongTimePeerChoking and
  11856. checkInactiveConnection().
  11857. (checkInactiveConnection): Removed.
  11858. (detectMessageFlooding): Removed function call to
  11859. checkInactiveConnection().
  11860. * src/PeerMessageUtil.h
  11861. (createChokeMessage): New function. Overload.
  11862. (createUnchokeMessage): New function. Overload.
  11863. (createInterestedMessage): New function. Overload.
  11864. (createNotInterestedMessage): New function. Overload.
  11865. (createHaveMessage): New function. Overload.
  11866. (createBitfieldMessage): New function. Overload.
  11867. (createRequestMessage): New function. Overload.
  11868. (createCancelMessage): New function. Overload.
  11869. (createPieceMessage): New function. Overload.
  11870. (createKeepAliveMessage): New function. Overload.
  11871. * src/PeerMessageUtil.cc
  11872. (createChokeMessage): New function. Overload.
  11873. (createUnchokeMessage): New function. Overload.
  11874. (createInterestedMessage): New function. Overload.
  11875. (createNotInterestedMessage): New function. Overload.
  11876. (createHaveMessage): New function. Overload.
  11877. (createBitfieldMessage): New function. Overload.
  11878. (createRequestMessage): New function. Overload.
  11879. (createCancelMessage): New function. Overload.
  11880. (createPieceMessage): New function. Overload.
  11881. (createKeepAliveMessage): New function. Overload.
  11882. * src/SendMessageQueue.cc
  11883. (createRequestMessage): Use PeerMessageUtil.
  11884. (createCancelMessage): Use PeerMessageUtil.
  11885. (createPieceMessage): Use PeerMessageUtil.
  11886. (createHaveMessage): Use PeerMessageUtil.
  11887. (createChokeMessage): Use PeerMessageUtil.
  11888. (createUnchokeMessage): Use PeerMessageUtil.
  11889. (createInterestedMessage): Use PeerMessageUtil.
  11890. (createNotInterestedMessage): Use PeerMessageUtil.
  11891. (createBitfieldMessage): Use PeerMessageUtil.
  11892. (createKeepAliveMessage): Use PeerMessageUtil.
  11893. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  11894. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  11895. * src/PeerInteraction.h: New class.
  11896. * src/PeerInteraction.cc: New class.
  11897. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11898. Each peer message has its own class.
  11899. * src/PendingMessages.h: Removed.
  11900. * src/PendingMessages.cc: Removed. The sending process was moved to
  11901. each message class.
  11902. * src/RequestSlotMan.h: Removed.
  11903. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  11904. SendMessageQueue.
  11905. * src/RequestMessage.h: New class.
  11906. * src/RequestMessage.cc: New class.
  11907. * src/CancelMessage.h: New class.
  11908. * src/CancelMessage.cc: New class.
  11909. * src/BitfieldMessage.h: New class.
  11910. * src/BitfieldMessage.cc: New class.
  11911. * src/ChokeMessage.h: New class.
  11912. * src/ChokeMessage.cc: New class.
  11913. * src/KeepAliveMessage.h: New class.
  11914. * src/KeepAliveMessage.cc: New class.
  11915. * src/PortMessage.h: New class.
  11916. * src/UnchokeMessage.h: New class.
  11917. * src/UnchokeMessage.cc: New class.
  11918. * src/PieceMessage.h: New class.
  11919. * src/PieceMessage.cc: New class.
  11920. * src/HaveMessage.h: New class.
  11921. * src/HaveMessage.cc: New class.
  11922. * src/BitfieldMessage.h: New class.
  11923. * src/BitfieldMessage.cc: New class.
  11924. * src/NotInterestedMessage.h: New class.
  11925. * src/NotInterestedMessage.cc: New class.
  11926. * src/InterestedMessage.h: New class.
  11927. * src/InterestedMessage.cc: New class.
  11928. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  11929. (getSendMessageQueue): New function.
  11930. (setSendMessageQueue): New function.
  11931. * src/HandshakeMessage.cc: New class.
  11932. * src/PeerConnection.h (receiveMessage): Changed return value and
  11933. arguments.
  11934. (receiveHandshake): Changed return value and arguments.
  11935. * src/PeerConnection.cc (receiveMessage): Do not create message class
  11936. here.
  11937. (receiveHandshake): Do not create handshake class here.
  11938. * src/PeerInteractionCommand.h (peerConnection): Removed.
  11939. (piece): Removed.
  11940. (syncPiece): Removed.
  11941. (sendInterest): Removed.
  11942. (sendMessages): Removed.
  11943. (createRequestPendingMessage): Removed.
  11944. (checkPieceHash): Removed.
  11945. (erasePieceOnDisk): Removed.
  11946. (getNewPieceAndSendInterest): Removed.
  11947. (onGotNewPice): Removed.
  11948. (onGotWrongPiece): Removed.
  11949. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11950. Removed peerConnection, piece.
  11951. (~PeerInteractionCommand): Removed peerConnection.
  11952. (executeInternal): Use sendMessageQueue instead of peerConnection.
  11953. (syncPiece): Moved to SendMessageQueue.
  11954. (decideChoking): Removed PendingMessage.
  11955. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  11956. The action after receiving peer message was moved to each message
  11957. class.
  11958. (onGotNewPice): Moved to SendMessageQueue.
  11959. (onGotWrongPiece): Moved to SendMessageQueue.
  11960. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  11961. (sendInterest): Moved to SendMessageQueue.
  11962. (createRequestPendingMessage): Removed.
  11963. (sendMessages): Moved to SendMessageQueue.
  11964. (onAbort): Use SendMessageQueue::abortPiece()
  11965. (keepAlive): Use sendMessageQueue instead of peerConnection.
  11966. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  11967. (checkPieceHash): Moved to SendMessageQueue.
  11968. (erasePieceOnDisk): Moved to SendMessageQueue.
  11969. * src/PeerMessageUtil.h
  11970. (createBitfieldMessage): Removed.
  11971. (createHaveMessage): Changed return value and arguments.
  11972. (createBitfieldMessage): Changed return value and arguments.
  11973. (createRequestCancelMessage): Removed.
  11974. (createPieceMessage): Changed return value and arguments.
  11975. (getShortIntParam): New function.
  11976. (checkIndex): Changed arguments.
  11977. (checkBegin): Changed arguments.
  11978. (checkLength): Changed arguments.
  11979. (checkPieceOffset): Removed.
  11980. (checkRange): New function.
  11981. (checkBitfield): Changed arguments.
  11982. (createPeerMessage): Removed.
  11983. (checkIntegrity): Removed.
  11984. (createHandshakeMessage): Changed arguments.
  11985. (createChokeMessage): New function.
  11986. (createUnchokeMessage): New function.
  11987. (createInterestedMessage): New function.
  11988. (createNotInterestedMessage): New function.
  11989. (createRequestMessage): New function.
  11990. (createCancelMessage): New function.
  11991. (createPortMessage): New function.
  11992. * src/PeerMessageUtil.cc
  11993. (createBitfieldMessage): Removed.
  11994. (createHaveMessage): Changed return value and arguments.
  11995. (createBitfieldMessage): Changed return value and arguments.
  11996. (createRequestCancelMessage): Removed.
  11997. (createPieceMessage): Changed return value and arguments.
  11998. (getShortIntParam): New function.
  11999. (checkIndex): Changed arguments.
  12000. (checkBegin): Changed arguments.
  12001. (checkLength): Changed arguments.
  12002. (checkPieceOffset): Removed.
  12003. (checkRange): New function.
  12004. (checkBitfield): Changed arguments.
  12005. (createPeerMessage): Removed.
  12006. (checkIntegrity): Removed.
  12007. (createHandshakeMessage): Changed arguments.
  12008. (createChokeMessage): New function.
  12009. (createUnchokeMessage): New function.
  12010. (createInterestedMessage): New function.
  12011. (createNotInterestedMessage): New function.
  12012. (createRequestMessage): New function.
  12013. (createCancelMessage): New function.
  12014. (createPortMessage): New function.
  12015. * src/PeerMessage.h
  12016. (id): Removed.
  12017. (index): Removed.
  12018. (begin): Removed.
  12019. (length): Removed.
  12020. (bitfield): Removed.
  12021. (bitfieldLength): Removed.
  12022. (block): Removed.
  12023. (blockLength): Removed.
  12024. (inProgress): New variable.
  12025. (cuid): New variable.
  12026. (peer): New variable.
  12027. (sendMessageQueue): New variable.
  12028. (logger): New variable.
  12029. (setBitfield): Removed.
  12030. (getBitfield): Removed.
  12031. (setBlock): Removed.
  12032. (getBlock): Removed.
  12033. (getBitfieldLength): Removed.
  12034. (getBlockLength): Removed.
  12035. (isInProgress): New function.
  12036. (toString): Made pure virtual.
  12037. (check): New function.
  12038. (send): New function.
  12039. (receivedAction): New function.
  12040. (getId): Made pure virtual.
  12041. (setId): Removed.
  12042. (getIndex): Removed.
  12043. (setIndex): Removed.
  12044. (getBegin): Removed.
  12045. (setBegin): Removed.
  12046. (getLength): Removed.
  12047. (setLength): Removed.
  12048. (getCuid): New function.
  12049. (setCuid): New function.
  12050. (getPeer): New function.
  12051. (setPeer): New function.
  12052. (getSendMessageQueue): New function.
  12053. (setSendMessageQueue): New function.
  12054. (ID): Removed.
  12055. * src/PeerMessage.cc
  12056. (setBitfield): Removed.
  12057. (setBlock): Removed.
  12058. (toString): Removed.
  12059. * src/TorrentMan.h
  12060. (getPieceLength): New function.
  12061. (getPieceLength): New function.
  12062. * src/SendMessageQueue.h
  12063. (REQUEST_TIME_OUT): New definition.
  12064. (RequestSlots): New definition.
  12065. (MessageQueue): New definition.
  12066. (requestSlotMan): Removed.
  12067. (pendingMessages): Removed.
  12068. (requestSlots): New variable.
  12069. (messageQueue): New variable.
  12070. (torrentMan): New variable.
  12071. (peerConnection): New variable.
  12072. (peer): New variable.
  12073. (piece): New variable.
  12074. (getNewPieceAndSendInterest): New function.
  12075. (createPeerMessage): New function.
  12076. (createHandshakeMessage): New function.
  12077. (send): Made private.
  12078. (setPeerMessageCommonProperty): New function.
  12079. (deleteAllRequestSlot): New function.
  12080. (deleteRequestMessageInQueue): New function.
  12081. (cancelAllRequest): Made private.
  12082. (cancelAllRequest): Made private.
  12083. (countRequestSlot): Made private.
  12084. (addPendingMessage): Removed.
  12085. (deletePendingPieceMessage): Removed.
  12086. (deletePendingRequestMessage): Removed.
  12087. (addMessage): New function.
  12088. (deletePieceMessageInQueue): New function.
  12089. (deleteTimeoutRequestSlot): Changed argument.
  12090. (deleteCompletedRequestSlot): Changed argument.
  12091. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12092. (getCorrespondingRequestSlot): New function.
  12093. (countPendingMessage): Removed.
  12094. (countMessageInQueue): New function.
  12095. (getTorrentMan): New function.
  12096. (getPeerConnection): New function.
  12097. (hasDownloadPiece): New function.
  12098. (getDownloadPiece): New function.
  12099. (setDownloadPiece): New function.
  12100. (syncPiece): New function.
  12101. (sendMessages): New function.
  12102. (sendNow): New function.
  12103. (trySendNow): New function.
  12104. (abortPiece): New function.
  12105. (sendHandshake): New function.
  12106. (receiveMessage): New function.
  12107. (receiveHandshake): New function.
  12108. (createRequestMessage): New function.
  12109. (createCancelMessage): New function.
  12110. (createPieceMessage): New function.
  12111. (createHaveMessage): New function.
  12112. (createChokeMessage): New function.
  12113. (createUnchokeMessage): New function.
  12114. (createInterestedMessage): New function.
  12115. (createNotInterestedMessage): New function.
  12116. (createBitfieldMessage): New function.
  12117. (createKeepAliveMessage): New function.
  12118. * src/SendMessageQueue.cc
  12119. (SendMessageQueue): Removed requestSlotMan.
  12120. Instantiated peerConnection here.
  12121. (~SendMessageQueue): Removed requestSlotMan.
  12122. Added deletion of peerConnection and the contents of messageQueue.
  12123. (send): Updated according to the change of messageQueue.
  12124. (addPendingMessage): Renamed to addMessage.
  12125. (addMessage): New function.
  12126. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12127. (deletePieceMessageInQueue): New function.
  12128. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12129. (deleteRequestMessageInQueue): New function.
  12130. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12131. here.
  12132. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12133. (...) was moved here.
  12134. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12135. moved here.
  12136. (deleteCompletedRequestSlot):
  12137. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12138. (getCorrespondingRequestSlot):
  12139. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12140. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12141. (countPendingMessage): Renamed to countMessageInQueue.
  12142. (countMessageInQueue): New function.
  12143. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12144. (receiveHandshake): New function.
  12145. (createHandshakeMessage): New function.
  12146. (receiveMessage): New function.
  12147. (createPeerMessage): New function.
  12148. (syncPiece): New function.
  12149. (getNewPieceAndSendInterest): New function.
  12150. (sendMessages): New function.
  12151. (sendNow): New function.
  12152. (trySendNow): New function.
  12153. (sendHandshake): New function.
  12154. (abortPiece): New function.
  12155. (getDownloadPiece): New function.
  12156. (getPeerMessageCommonProperty): New function.
  12157. (createRequestMessage): New function.
  12158. (createCancelMessage): New function.
  12159. (createPieceMessage): New function.
  12160. (createHaveMessage): New function.
  12161. (createChokeMessage): New function.
  12162. (createUnchokeMessage): New function.
  12163. (createInterestedMessage): New function.
  12164. (createNotInterestedMessage): New function.
  12165. (createBitfieldMessage): New function.
  12166. (createKeepAliveMessage): New function.
  12167. To add simple Content-Disposition support:
  12168. * src/HttpResponseCommand.h (determinFilename): New function.
  12169. * src/HttpResponseCommand.cc (executeInternal):
  12170. Use determinFilename(headers) instead of req->getFile() when comparing
  12171. filename.
  12172. (determinFilename): New function.
  12173. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12174. req->getFile().
  12175. (handleOtherEncoding): Use determinFilename(headers) instead of
  12176. req->getFile().
  12177. * src/Util.h (getContentDispositionFilename): New function.
  12178. * src/Util.cc (getContentDispositionFilename): New function.
  12179. * src/LogFactory.h (release): New function.
  12180. * src/LogFactory.cc (release): New function.
  12181. To fix a bug that causes out-of-bound exception when HTTP status
  12182. line is wrong:
  12183. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12184. size.
  12185. * src/common.h (Deleter): New class.
  12186. * src/SegmentMan.cc
  12187. (~SegmentMan): Added deletion of splitter and diskWriter.
  12188. * src/DownloadEngine.h
  12189. (Commands): Use deque.
  12190. (clearQueue): New function.
  12191. * src/DownloadEngine.cc
  12192. (~DownloadEngine): Added deletion of segmentMan.
  12193. (cleanQueue): New function.
  12194. * src/TorrentDownloadEngine.h
  12195. (TorrentDownloadEngine): The implementation was moved to
  12196. TorrentDownloadEngine.cc.
  12197. (~TorrentDownloadEngine): The implementation was moved to
  12198. TorrentDownloadEngine.cc.
  12199. * src/TorrentDownloadEngine.cc
  12200. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12201. * src/main.cc
  12202. (clearRequest): Removed.
  12203. (handler): Added deletion of e.
  12204. (torrentHandler): Added deletion of te.
  12205. (main): Do not share splitter.
  12206. Use Deleter instead of clearRequest.
  12207. Deletion of classes were updated.
  12208. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12209. * src/main.cc (main): Fixed typo.
  12210. * src/message.h: Fixed typo.
  12211. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12212. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12213. To add --select-file command-line option:
  12214. * src/Util.cc
  12215. (unfoldRange): New function.
  12216. (getNum): New function.
  12217. (unfoldSubRange): New function
  12218. * src/main.cc
  12219. (showUsage): Added help message.
  12220. (main): Added --select-file command-line option. Updated the layout of
  12221. file listing.
  12222. * src/common.h
  12223. (Integers): New definition.
  12224. * src/SocketCore.cc
  12225. (writeData): Removed timeout argument.
  12226. (readData): Removed timeout argument.
  12227. (peekData): Removed timeout argument.
  12228. * src/Socket.cc
  12229. (writeData): Removed timeout argument.
  12230. (readData): Removed timeout argument.
  12231. (peekData): Removed timeout argument.
  12232. * Release 0.4.1
  12233. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12234. To deploy upload rate based choking algorithm:
  12235. * src/PeerInteractionCommand.cc
  12236. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12237. peer currently used.
  12238. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12239. download completes. Simplified.
  12240. (receiveMessage): Updated.
  12241. * src/TorrentMan.h
  12242. (activePeers): New variable.
  12243. (addActivePeer): New function.
  12244. (getActivePeers): New function.
  12245. (deleteActivePeer): New function.
  12246. * src/TorrentMan.cc
  12247. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12248. * src/PeerAbstractCommand.cc
  12249. (onAbort): Use peer->resetStatus().
  12250. * src/main.cc
  12251. (PeerChokeCommand.h): Included.
  12252. (main): Added the instance of ChokingCommand to the command queue.
  12253. * src/Peer.h
  12254. (amChoking): Renamed from amChocking
  12255. (chokingRequired): New variable.
  12256. (optUnchoking): New variable.
  12257. (deltaUpload): New variable.
  12258. (deltaDownload): New variable.
  12259. (addDeltaUpload): New function.
  12260. (resetDeltaUpload): New function.
  12261. (addDeltaDownload): New function.
  12262. (resetDeltaDownload): New function.
  12263. (addPeerUpload): Added a call to addDeltaUpload.
  12264. (addPeerDownload): Added a call to addDeltaDownload.
  12265. * src/Peer.cc
  12266. (shouldBeChoking): Renamed from shouldChoke.
  12267. (resetStatus): New function.
  12268. * src/PeerChokeCommand.h: New class.
  12269. * src/PeerChokeCommand.cc: New class.
  12270. To add lazy upload speed limiter:
  12271. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12272. statistics calculation to TorrentDownloadEngine.
  12273. * src/TorrentConsoleDownloadEngine.cc
  12274. (sendStatistics): Renamed from printStatistics.
  12275. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12276. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12277. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12278. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12279. calculation.
  12280. (sendStatistics): New function as pure virtual function.
  12281. (getUploadSpeed): New function.
  12282. * src/TorrentDownloadEngine.cc
  12283. (initStatistics): New function.
  12284. (calculateSpeed): New function.
  12285. (calculateStatistics): New function.
  12286. * src/SendMessageQueue.h
  12287. (uploadLength): New variable.
  12288. (send): Added an argument.
  12289. (setUploadLimit): New function.
  12290. (getUploadLimit): New function.
  12291. * src/SendMessageQueue.cc
  12292. (send): Added upload speed limiter.
  12293. * src/prefs.h
  12294. (PREF_UPLOAD_LIMIT): New definition.
  12295. * src/PeerInteractionCommand.cc
  12296. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12297. * src/main.cc
  12298. (main): Added --upload-limit option
  12299. For bug fixes:
  12300. * src/main.cc
  12301. (showUsage): Corrected --listen-port help
  12302. Other changes:
  12303. * src/TorrentMan.cc
  12304. (getPeer): Return nullPeer if connection is grather than
  12305. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12306. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12307. To add some useful information to the exception message:
  12308. * src/SocketCore.cc : Updated messages.
  12309. * src/SegmentMan.cc :
  12310. * src/TorrentMan.cc : Updated messages.
  12311. * src/MultiDiskWriter.cc : Updated messages.
  12312. * src/Util.cc : Updated messages.
  12313. * src/AbstractDiskWriter.cc : Updated messages.
  12314. * src/PreAllocationDiskWriter.cc : Updated messages.
  12315. * src/message.cc : Added new messages. Updated some messages.
  12316. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12317. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12318. Updated threshold from 30 to 15.
  12319. * src/AbstractDiskWriter.h (filename): New variable.
  12320. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12321. (createFile): Assigned filename.
  12322. * src/main.cc: Updated the help message for http-auth-scheme.
  12323. * Release 0.4.0
  12324. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12325. To add TrackerUpdateCommand with which replaces
  12326. CompactTrackerResponseProcessor:
  12327. * src/TrackerWatcherCommand.h (req): Removed.
  12328. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12329. if the number of peer connections are less than 30.
  12330. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12331. * src/SegmentMan.h (diskWriter): New function.
  12332. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12333. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12334. (main): Use TrackerUpdateCommand.
  12335. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12336. (req): New variable.
  12337. (setTrackerResponseProcessor): Removed.
  12338. (getTrackerResponseProcessor): Removed.
  12339. (processTrackerResponse): Removed.
  12340. * src/DownloadEngine.h (diskWriter): Removed.
  12341. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12342. to torrentMan->processTrackerResponse().
  12343. To add Util::expandBuffer:
  12344. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12345. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12346. * src/Util.h (expandBuffer): New function.
  12347. To fix the bug that causes segmentation fault when "-l ." is specified
  12348. in command-line option:
  12349. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12350. (openFile): New function.
  12351. (closeFile): New function.
  12352. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12353. (~SimpleLogger): Call closeFile();
  12354. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12355. * src/main.cc (main): Added a check to see logger is configured
  12356. properly.
  12357. To enable HTTP authentication without specifying "--http-auth-scheme"
  12358. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12359. * src/HttpConnection.cc (createRequest): Send Authorization header
  12360. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12361. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12362. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12363. * src/Peer.cc (shouldChoke): Updated algorithm.
  12364. * src/message.h (EX_AUTH_FAILED): New definition.
  12365. (EX_FILE_OPEN): New definition.
  12366. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12367. if status == 401.
  12368. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12369. if req->isTorrent == true.
  12370. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12371. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12372. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12373. (createFile): Updated message.
  12374. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12375. To add a readout of estimated remaining time to normal HTTP/FTP
  12376. downloads:
  12377. * src/ConsoleDownloadEngine.h (startup): New variable.
  12378. (startupLength): New variable.
  12379. (isStartupLengthSet): New variable.
  12380. (avgSpeed): New variable.
  12381. (eta): New variable.
  12382. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12383. estimated remaining time.
  12384. (initStatistics): Initialized newly added variables.
  12385. (calculateStatistics): Calculate average speed and estimated remaining
  12386. time.
  12387. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12388. * src/TrackerDownloadCommand.h: Removed.
  12389. * src/TrackerDownloadCommand.cc: Removed.
  12390. * src/TrackerInitCommand.h: Removed.
  12391. * src/TrackerInitCommand.cc: Removed.
  12392. * src/TrackerUpdateCommand.h: Removed.
  12393. * src/TrackerUpdateCommand.cc: Removed.
  12394. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12395. url written in TrackerInitCommand was moved here. Do not create
  12396. tracker request command if torrentMan->trackers != 0.
  12397. * src/CompactTrackerResponseProcessor.h: New class.
  12398. * src/CompactTrackerResponseProcessor.cc: New class.
  12399. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12400. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12401. Decoupled TorrentDownloadEngine from this.
  12402. * src/SegmentMan.h (init): New function.
  12403. * src/SegmentMan.cc (init): New function.
  12404. * src/TorrentMan.h (responseProcessor): New variable.
  12405. (trackers): New variable.
  12406. (setTrackerResponseProcessor): New function.
  12407. (getTrackerResponseProcessor): New function.
  12408. (processTrackerResponse): New function.
  12409. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12410. (processTrackerResponse): New function.
  12411. * src/main.cc (main): Use ByteArrayDiskWriter and
  12412. CompactTrackerResponseProcessor.
  12413. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12414. processTrackerResponse().
  12415. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12416. readout.
  12417. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12418. which indicates download has completed.
  12419. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12420. (closeFile): fd >= 0, not fd > 0
  12421. * src/main.cc (main): Added short cut for show-files.
  12422. Added short cut for torrent-file.
  12423. Added new command-line option listen-port.
  12424. Updated i18n messages.
  12425. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12426. To add LogFactory which creates singleton logger:
  12427. * src/LogFactory.h: New class.
  12428. * src/LogFactory.cc: New class.
  12429. * src/Command.h (logger): New variable.
  12430. (Constructor): Use LogFactory.
  12431. * src/AbstractCommand.cc: Use Command::logger
  12432. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12433. Use LogFactory.
  12434. * src/SegmentSplitter.h : Made logger protected.
  12435. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12436. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12437. * src/DownloadEngine.h : Made logger protected.
  12438. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12439. * src/PeerInteractionCommand.cc : Use Command::logger.
  12440. * src/HttpResponseCommand.cc : Use Command::logger.
  12441. * src/SegmentMan.h : Made logger private.
  12442. * src/TorrentMan.h : Made logger private.
  12443. * src/TorrentMan.cc : Use LogFactory.
  12444. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12445. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12446. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12447. Use LogFactory.
  12448. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12449. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12450. Use LogFactory.
  12451. * src/DownloadCommand.cc : Use Command::logger.
  12452. * src/PeerAbstractCommand.cc : Use Command::logger.
  12453. * src/PeerListenCommand.cc : Use Command::logger.
  12454. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12455. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12456. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12457. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12458. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12459. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12460. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12461. Use LogFactory.
  12462. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12463. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12464. Use LogFactory.
  12465. * src/main.cc (main): Use LogFactory.
  12466. * src/DiskAdaptor.h (logger): New variable.
  12467. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12468. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12469. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12470. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12471. parameter to a tracker request.
  12472. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12473. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12474. * src/main.cc (setSignalHander): New function.
  12475. (main): Added a handler for SIGTERM.
  12476. (handler): Updated message.
  12477. (torrentHandler): Updated message.
  12478. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12479. * src/TorrentConsoleDownloadEngine.cc
  12480. (onPartialDownloadingCompletes): Renamed as
  12481. onSelectiveDownloadingCompletes.
  12482. (onSelectiveDownloadingCompletes): Updated message.
  12483. To add DiskAdaptor which abstract DiskWriter family:
  12484. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12485. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12486. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12487. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12488. MultiDiskAdaptor.h.
  12489. (readFileEntry): Changed its arguments.
  12490. (setup): setupDiskWriter is merged into this function.
  12491. (setupDiskWriter): Removed.
  12492. (setFileFilter): New function.
  12493. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12494. made in readFileEntry.
  12495. (getFilePath): Removed.
  12496. (getTempFilePath): Removed.
  12497. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12498. (fixFilename): Removed.
  12499. (copySingleFile): Removed.
  12500. (splitMultiFile): Removed.
  12501. (deleteTempFile): Removed.
  12502. (setFileEntriesToDownload): Removed.
  12503. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  12504. (isSelectiveDownloadingMode): New function.
  12505. (setAllMultiFileRequestedState): Removed.
  12506. (finishPartialDownloadingMode): Renamed as
  12507. finishSelectiveDownloadingMode.
  12508. (finishSelectiveDownloadingMode): New function.
  12509. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  12510. (getSelectedTotalLength): New function.
  12511. (onDownloadComplete): Use diskAdaptor.
  12512. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  12513. (Range): Removed.
  12514. (setMultiFileEntries): Renamed as setFileEntries.
  12515. (setFileEntries): New function.
  12516. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  12517. (pieceLength): New variable.
  12518. * src/main.cc (printDownloadCompeleteMessage): New function.
  12519. (torrentHandler): Use diskAdaptor instead of diskWriter.
  12520. (main): Renamed torrent-show-files to show-files.
  12521. Rewritten file contents listing.
  12522. * src/TorrentMan.h (FileEntry): Removed.
  12523. (multiFileTopDir): Removed.
  12524. (multiFileEntries): Removed.
  12525. (diskWriter): Removed.
  12526. (diskAdaptor): New variable.
  12527. * src/DefaultDiskWriter.h (totalLength): New variable.
  12528. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12529. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12530. diskWriter.
  12531. * src/TorrentConsoleDownloadEngine.h
  12532. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12533. (partialTotalLength): Renamed as selectedTotalLength.
  12534. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12535. openExistingFile, otherwise call initAndOpenFile.
  12536. (closeFile): fd > 0, not fd != 0.
  12537. * src/DirectDiskAdaptor.h: New class.
  12538. * src/DirectDiskAdaptor.cc: New class.
  12539. * src/MultiDiskAdaptor.h: New class.
  12540. * src/MultiDiskAdaptor.cc: New class.
  12541. * src/CopyDiskAdaptor.h: New class.
  12542. * src/CopyDiskAdaptor.cc: New class.
  12543. * src/DiskAdaptor.h: New class.
  12544. * src/DiskAdaptor.cc: New class.
  12545. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  12546. (PREF_SHOW_FILES): New definition.
  12547. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12548. To add the ability to download multi torrent into respective files
  12549. directly:
  12550. * src/DiskWriter.h (openFile): New function.
  12551. (seek): Removed.
  12552. * src/MultiDiskWriter.h: New class.
  12553. * src/MultiDiskWriter.cc: New class.
  12554. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  12555. protected.
  12556. (openFile): New function.
  12557. * src/AbstractDiskWriter.cc (openFile): New function.
  12558. * src/prefs.h (V_FALSE): New definition.
  12559. (PREF_DIRECT_FILE_MAPPING): New definition.
  12560. * src/TorrentMan.h (setupDiskWriter): New function.
  12561. (setAllMultiFileRequestedState): New function.
  12562. (onDownloadComplete): New function.
  12563. * src/TorrentMan.cc : Included MultiDiskWriter.h
  12564. (setupDiskWriter): New function.
  12565. (getFilePath): Updated.
  12566. (getTempFilePath): Updated.
  12567. (getSegmentFilePath): Updated.
  12568. (fixFilename): Updated.
  12569. (deleteTempFile): Updated.
  12570. (setAllMultiFileRequestedState): New function.
  12571. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  12572. (finishPartialDownloadingMode): Reset requested flags.
  12573. (onDownloadComplete): New function.
  12574. * src/main.cc: Added --direct-file-mapping option.
  12575. Use TorrentMan::setupDiskWriter().
  12576. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  12577. onDownloadComplete().
  12578. To fix ETA bug:
  12579. * src/Util.h (difftvsec): New function.
  12580. * src/Util.cc (difftvsec): New function.
  12581. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  12582. type of "elapsed" instead of long long int.
  12583. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  12584. The updates of statistics takes place every 1 seconds.
  12585. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  12586. (calculateSpeed): Changed its argument signature.
  12587. * src/PeerMessage.cc (toString): Fixed message.
  12588. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12589. To print ETA:
  12590. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  12591. completion handling when dealing with
  12592. TorrentMan::isPartialDownloadingMode() == true.
  12593. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  12594. New function.
  12595. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  12596. (sessionDownloadLength): New variable.
  12597. (avgSpeed): New variable.
  12598. (eta): New variable.
  12599. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  12600. new variables: eta, avgSpeed, startup.
  12601. (calculateSpeed): Calculate average speed and ETA.
  12602. (printStatistics): Added ETA.
  12603. * src/Util.h (secfmt): New function.
  12604. * src/Util.cc (secfmt): New function.
  12605. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12606. To detect "keep alive" flooding:
  12607. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  12608. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  12609. variable: keepAliveCount.
  12610. (detectMessageFlooding): Added "keep alive" flooding detection.
  12611. (receiveMessage): Increase keepAliveCount when "keep alive" message
  12612. received.
  12613. To add the ability to download only specified files in multi-file
  12614. torrent:
  12615. * src/BitfieldMan.h (filterBitfield): New variable.
  12616. (filterEnabled): New variable.
  12617. (setFilterBit): New function.
  12618. (enableFilter): New function.
  12619. (disableFilter): New function.
  12620. (isFilterEnabled): New function.
  12621. (getFilteredTotalLength): New function.
  12622. (getCompletedLength): New function.
  12623. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  12624. filterBitfield, filterEnabled.
  12625. (CopyConstructor): Added filterBitfield and filterEnabled.
  12626. (operator==): Added filterBitfield and filterEnabled.
  12627. (Destructor): Added filterBitfield.
  12628. (getMissingIndex): Use filterBitfield.
  12629. (getMissingUnusedIndex): Use filterBitfield.
  12630. (getFirstMissingUnusedIndex): Use filterBitfield.
  12631. (getFirstMissingUnusedIndex): Use filterBitfield.
  12632. (getAllMissingIndexes): Use filterBitfield.
  12633. (countMissingBlock): Use filterBitfield.
  12634. (countBlock): Use filterBitfield.
  12635. (setBitInternal): Added new argument on.
  12636. (setUseBit): Use setBitInternal.
  12637. (unsetUseBit): Use setBitInternal.
  12638. (setBit): Use setBitInternal.
  12639. (unsetBit): Use setBitInternal.
  12640. (isAllBitSet): Use filterBitfield.
  12641. (setFilterBit): New function.
  12642. (addFilter): New function.
  12643. (enableFilter): New function.
  12644. (disableFilter): New function.
  12645. (clearFilter): New function.
  12646. (isFilterEnabled): New function.
  12647. (getFilteredTotalLength): New function.
  12648. (getCompletedLength): New function.
  12649. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  12650. Initalized newly added variables.
  12651. [FileEntry](offset): New variable.
  12652. [FileEntry](extracted): New variable.
  12653. [FileEntry](requested): New variable.
  12654. (readFileEntry): New function.
  12655. (option): New variable.
  12656. (splitMultiFile): Removed const qualifier.
  12657. (fixFilename): Removed const qualifier.
  12658. (readFileEntryFromMetaInfoFile): New function.
  12659. (finishPartialDownloadingMode): New function.
  12660. (isPartialDownloadingMode): New function.
  12661. (setFileEntriesToDownload): New function.
  12662. (getCompletedLength): New function.
  12663. (getPartialTotalLength): New function.
  12664. * src/TorrentMan.cc (readFileEntry): New function.
  12665. (setup): Use readFileEntry. If no-preallocation option is specified,
  12666. use DefaultDiskWriter.
  12667. (readFileEntryFromMetaInfoFile): New function.
  12668. (fixFilename): Removed const qualifier.
  12669. (splitMultiFile): Removed const qualifier.
  12670. (setFileEntriesToDownload): New function.
  12671. (isPartialDownloadingMode): New function.
  12672. (finishPartialDownloadingMode): New function.
  12673. (getCompletedLength): New function.
  12674. (getPartialTotalLength): New function.
  12675. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  12676. New variable.
  12677. (partialTotalLength): New variable.
  12678. (downloadLength): New variable.
  12679. (totalLength): New variable.
  12680. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  12681. Added log.
  12682. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  12683. partialTotalLength, downloadLength, totalLength.
  12684. (calculate): Calculate downloadLength and totalLength.
  12685. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  12686. * src/main.cc (addCommand): Changed argument signature.
  12687. (main): Added new variable: args. Added new option "torrent-show-files"
  12688. "no-preallocation". Usage is not updated yet.
  12689. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12690. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  12691. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12692. Attempt to add the ability to listing file entries in a .torrent file.
  12693. This feature is not yet complete.
  12694. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  12695. * src/TorrentMan.cc (getMultiFileEntries): New function.
  12696. (getName): New function.
  12697. * src/TorrentMan.h (getMultiFileEntries): New function.
  12698. (getName): New function.
  12699. * src/main.cc (main): Use above 2 funtion.
  12700. * Release 0.3.2
  12701. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12702. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  12703. (detectMessageFlooding): Updated threshold value.
  12704. (checkLongTimePeerChoking): Updated timeout value.
  12705. (getNewPieceAndSendInterest): Added debug log.
  12706. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  12707. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  12708. (getPeer): Updated.
  12709. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  12710. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  12711. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  12712. is localhost.
  12713. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  12714. * src/PendingMessage.cc (processMessage): Not to send piece message
  12715. if peer is not interested in the pieces localhost has.
  12716. * src/Peer.cc (shouldChoke): Updated.
  12717. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  12718. * src/Util.cc (isPowerOf): New function.
  12719. * src/Util.h (isPowerOf): New function.
  12720. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  12721. whether or not it is power of 2.
  12722. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12723. Added new class SendMessageQueue that includes PendingMessages and
  12724. RequestSlotMan.
  12725. * src/SendMessageQueue.h: New class.
  12726. * src/SendMessageQueue.cc: New class.
  12727. * src/PendingMessage.h: Added new member variable blockIndex and its
  12728. accessors.
  12729. (createRequestMessage): Updated.
  12730. * src/PendingMessage.cc (createRequestMessage): Updated.
  12731. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  12732. SendMessageQueue.
  12733. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  12734. (receiveMessage): Updated with SendMessageQueue.
  12735. (deletePendingPieceMessage): Removed.
  12736. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  12737. (sendInterest): Updated with SendMessageQueue.
  12738. (createRequestPendingMessage): Updated with SendMessageQueue.
  12739. (sendMessages): Updated with SendMessageQueue.
  12740. (onAbort): Updated with SendMessageQueue.
  12741. (keepAlive): Updated with SendMessageQueue.
  12742. (beforeSocketCheck): Updated SendMessageQueue.
  12743. * src/PeerInteractionCommand (sendMessages): Shuffle
  12744. missingBLockIndexes before using it.
  12745. Added its own timeout for peer connection.
  12746. * src/PeerAbstractCommand.h: Added member variable timeout and its
  12747. setter.
  12748. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  12749. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12750. Added setTimeout() call.
  12751. (executeInternal): Added setTimeout() call.
  12752. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  12753. Added timeout.
  12754. (isTimeoutDetected): Updated.
  12755. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  12756. option.
  12757. Added *simple* message flooding checker.
  12758. * src/PeerInteractionCommand.cc (executeInternal):
  12759. Added detectMessageFlooding() call.
  12760. (detectMessageFlooding): New function.
  12761. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  12762. (beforeSocketCheck): Added detectMessageFlooding() call.
  12763. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  12764. chokeUnchokeCount, haveCount, detectMessageFlooding().
  12765. Removed deletePendingPieceMessage(), getRequestSlot(),
  12766. deleteRequestSlot(), deleteAllRequestSlot().
  12767. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  12768. Added checkLongTimePeerChoking() call.
  12769. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  12770. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  12771. if duplicate == false.
  12772. The parameter "uploaded" and "downloaded" in the tracker request are
  12773. the size since the client sent the "started" event to the tracker.
  12774. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  12775. uploaded size to preDownloadedSize, preUploadedSize respectively.
  12776. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  12777. getSessionDownloadedSize(), getSessionUploadedSize().
  12778. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  12779. getSessionUploadedSize() instead of getDownloadedSize(),
  12780. getUploadedSize().
  12781. * src/PendingMessage.cc (processMessage): Do not send request message
  12782. if the peer is choking the client.
  12783. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  12784. less than interval.
  12785. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12786. * configure.in: Added gnutls support. Added several CPP macros.
  12787. * m4/openssl.m4: Added.
  12788. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  12789. readData(), peekData(). Added gnutls support.
  12790. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  12791. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  12792. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  12793. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  12794. Instead, added a check for whether setup method has executed
  12795. successfully.
  12796. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  12797. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  12798. * src/Makefile.am: Updated.
  12799. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  12800. using whether OpenSSL or gcrypt, depending on the result of configure
  12801. script.
  12802. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  12803. messageDigest.h.
  12804. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  12805. * src/PeerListenCommand.cc: Added log about port binded successfully.
  12806. Fixed memory leak.
  12807. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  12808. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  12809. Removed instantiation of TrackerInitCommand. Instead,
  12810. TrackerWatcherCommand is instantiated and pushed to the command queue.
  12811. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  12812. ENABLE_SSL.
  12813. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  12814. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  12815. If a piece is already acquired by another command, delete the request
  12816. slots for the piece.
  12817. * src/TrackerUpdateCommand.cc (execute):
  12818. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  12819. Added a check whether peer list is null.
  12820. Fixed the bug that causes sending completed event to the tracker
  12821. several times.
  12822. * src/TrackerInitCommand.cc (execute):
  12823. Fixed the bug that causes sending completed event to the tracker
  12824. several times.
  12825. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  12826. by using messageDigest.h.
  12827. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12828. * PeerConnection.cc: Replaced log message "keep-alive" with
  12829. "keep alive".
  12830. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  12831. localhost long time.
  12832. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  12833. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  12834. at most 100 failure entry from the list. If with duplicate = false,
  12835. MAX_PEER_LIST is not checked.
  12836. * PeerListenCommand.cc: Fixed the argument order of log message.
  12837. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12838. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  12839. Added warn().
  12840. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  12841. Implemented warn().
  12842. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  12843. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12844. * Request.h: Added AFTER_COMPLETED event.
  12845. * TorrentDownloadEngine.cc: Prints "Download complete" message
  12846. instead of downloaded size and progress(%) after download completes.
  12847. * PeerInteractionCommand.cc: After download completes, sends unchoke
  12848. message to the peer if it is interested in what localhost has
  12849. downloaded.
  12850. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  12851. destination instead of just renaming it.
  12852. * TorrentMan.cc: Added deleteTempFile().
  12853. * PeerAbstractCommand.cc: do not stop execution after download
  12854. completes. This makes localhost a seeder.
  12855. * Util.{h,cc}: Added fileCopy().
  12856. * PeerListenCommand.cc: do not stop execution after download completes.
  12857. This makes localhost a seeder.
  12858. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  12859. Added TorrentMan::deleteTempFile() to torrentHandler.
  12860. Initialized the variable dir as ".".
  12861. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  12862. Deleted renameSingleFile().
  12863. Added copySingleFile(), deleteTempFile().
  12864. * DownloadEngine.h: Added virtual function afterEachIteration().
  12865. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  12866. in onEndOfRun() to afterEachIteration().
  12867. In onEndOfRun(), changed if condition to check whether filenameFixed is
  12868. true.
  12869. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  12870. In rangedFileCopy(), added try-catch block to properly close file
  12871. descriptors.
  12872. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  12873. Added afterEachIteration(), isFilenameFixed().
  12874. * Peer.cc: Changed choking strategy.
  12875. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  12876. * TrackerInitCommand.cc: Send completed event only once.
  12877. * DownloadEngine.cc: Added a call to afterEachIteration().
  12878. * TrackerUpdateCommand.cc: Do not stop execution after download
  12879. completes.
  12880. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  12881. connect the peers at most MAX_PEER_UPDATE when a peer list is
  12882. received from a tracker.
  12883. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  12884. Decreased the number of failure peers to delete to 0(just comment out
  12885. the line).
  12886. * Release 0.3.1
  12887. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12888. * PeerInteractionCommand.cc: added a call to
  12889. TorrentMan::unadvertisePiece in Destructor.
  12890. * PeerInteractionCommand.cc: make have message sent immediately
  12891. if the size of pending message queue is zero.
  12892. * TorrentMan.cc: set the maximum size of peer list to 250.
  12893. * TorrentMan.h: changed the container type of Peers and UsedPieces
  12894. to deque.
  12895. * Util.cc: fixed rangedFileCopy.
  12896. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  12897. to Constructor. Also, moved digest cleanup to Destructor.
  12898. * MetaFileUtil.cc: fixed memory leak
  12899. * replaced std::vector with std::deque.
  12900. * AbstractCommand.cc: casted timeout value to long long int.
  12901. * ChunkedEncoding.cc: fixed memory leak.
  12902. * PeerInteractionCommand.cc: casted timeout value to long long int.
  12903. * SleepCommand.cc: casted timeout value to long long int.
  12904. * Data.cc: fixed memory leak.
  12905. * Data.cc: fixed toLLInt().
  12906. * BitfieldMan.cc: fixed memory leak.
  12907. * TorrentMan.cc: initialized storeDir to ".".
  12908. * TorrentMan.cc: fixed memory leak.
  12909. * TorrentMan.cc: corrected file paths of splitted files.
  12910. * PeerAbstractCommand.cc: casted timeout to long long int.
  12911. * main.cc: added delete(req) and delete(te->diskWriter).
  12912. * RequestSlot.cc: casted timeout value to long long int.
  12913. * Request.cc: fixed memory leak.
  12914. * PendingMessage.cc: make HAVE messages sent only when peer does not
  12915. have the piece.
  12916. * Peer.{h,cc}: added hasPiece(int index).
  12917. * main.cc: corrected addCommand.
  12918. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12919. * BitTorrent protocol support added.
  12920. * Release 0.3.0
  12921. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12922. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  12923. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12924. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  12925. decoding did not work properly.
  12926. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12927. * DownloadEngine.h: included sys/time.h
  12928. * DownloadEngine.cc: remove sys/time.h
  12929. * Makefile.am (SUBDIRS): Add intl.
  12930. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  12931. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12932. * main.cc: correct help message for --http-auth-scheme.
  12933. * main.cc: changed e-mail address for bug reports.
  12934. * ja.po: added japanese translation.
  12935. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12936. * SimpleLogger.cc: flush log file instead of stdout.
  12937. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12938. * main.cc: Fixed command-line option: max-tries
  12939. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  12940. does not equal to seg.sp.
  12941. * DownloadCommand.cc: If EOF is got from the server and the total size
  12942. of file is not zero, then throw DlRetryEx.
  12943. * main.cc: Set the minium value of min-segment-size to 1024.
  12944. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  12945. fails because of a regression since 0.2.0 release.
  12946. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12947. * HttpConnection.cc:
  12948. * common.h: defined the user agent name as macro
  12949. * DownloadEngine.{h, cc}:
  12950. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  12951. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  12952. * main.cc: Download complete/abort message is now generated by main.
  12953. * Makefile.am (SUBDIRS): Add m4.
  12954. (ACLOCAL_AMFLAGS): New variable.
  12955. (EXTRA_DIST): New variable.
  12956. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  12957. * gettext: added gettext functionality
  12958. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12959. * AbstractCommand.cc:
  12960. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  12961. unregister its cuid from SegmentMan.
  12962. * DownloadEngine.cc: .aria2 file was written when a downloading
  12963. failed with errors.
  12964. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  12965. Added "User-Agent" header to CONNECT proxy request.
  12966. Fixed "Proxy-Authorization" header. Now proxy authorization works
  12967. properly.
  12968. * Logger.h:
  12969. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  12970. * ChunkedEncoding.cc: Added #include directive for strings.h
  12971. * Release 0.2.1
  12972. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12973. * Util.{h,cc}: added startsWith().
  12974. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  12975. Util::endsWith().
  12976. * SocketCore.cc: struct addrinfo is now zero-initialized.
  12977. * common.h: added #include directive of limit.h.
  12978. * DownloadEngine.cc: added #include directive of sys/time.h and
  12979. algorithm.
  12980. * Exception.h: added #include directive of stdio.h.
  12981. * AbstractCommand.h: added #include directive of sys/time.h.
  12982. * DownloadCommand.h: added #include directive of sys/time.h.
  12983. * *.h: added #include directive of common.h to all base classes.
  12984. subclasses' one was removed.
  12985. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  12986. does not define these macros.
  12987. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12988. * Release 0.2.0
  12989. * main.cc:
  12990. * HttpInitiateConnectionCommand.{h,cc}:
  12991. * prefs.h:
  12992. * HttpConnection.{h,cc}: added --http-proxy-method option.
  12993. We can now use GET command in http proxy.
  12994. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12995. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  12996. that splits slowest segment of SegmentMan::commands vector.
  12997. This is the default split algorithm of aria2.
  12998. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  12999. that splits first segment of SegmentMan::commands vector.
  13000. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13001. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13002. * Segment.h:
  13003. * SegmentMan.cc: Added speed field to Segment.h
  13004. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13005. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13006. * message.h: Change file size related %d to %lld.
  13007. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13008. * FtpInitiateConnectionCommand.{h,cc}:
  13009. * FtpNegotiationCommand.{h,cc}:
  13010. * FtpDownloadCommand.{h,cc}:
  13011. * FtpConnection.{h,cc}: Added FTP support
  13012. * SimpleLogger.cc: Log message now includes time information.
  13013. * main.cc: The value of --http-auth-scheme option is chagned from
  13014. 'BASIC' to 'basic'
  13015. * main.cc: Added --timeout command-line option.
  13016. * main.cc: Added --min-segment-size command-line option.
  13017. * main.cc: Added --max-retries command-line option.
  13018. * prefs.h: option string constants are now defined in prefs.h
  13019. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13020. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13021. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13022. with version 0.1.0's one.
  13023. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13024. * configure.in: Added --enable-ssl option to configure script.
  13025. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  13026. cannot permit absoluteURI as Request-URI.
  13027. * HttpConnection.cc: Added Referer support.
  13028. * main.cc: Added referer command-line option.
  13029. * main.cc: Added rety-wait command-line option.
  13030. * Exception.h: Fixed formating bug in Exception::setMsg()
  13031. * SocketCore.{h,cc}:
  13032. * Socket.{h, cc}:
  13033. * Request.cc:
  13034. * InitiateConnectionCommandFactory.cc:
  13035. * HttpRequestCommand.cc: Added HTTPS support.
  13036. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  13037. for SocketCore.
  13038. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  13039. size is wrong
  13040. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  13041. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  13042. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  13043. * Release 0.1.0