ChangeLog 589 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782
  1. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Use SegmentMan::getSegment(cuid) for single file download.
  3. * src/AbstractCommand.cc
  4. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Fixed bufSize calculation
  6. * src/DownloadCommand.cc
  7. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Don't append "/" if base URI ends with "/".
  9. * src/bittorrent_helper.cc
  10. * test/url-list-multiFile.torrent
  11. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  12. HTTP pipelining is now working. Fixed Segmention fault in
  13. BitfieldMan's copy ctor.
  14. * src/AbstractCommand.cc
  15. * src/BitfieldMan.cc
  16. * src/BitfieldMan.h
  17. * src/DownloadCommand.cc
  18. * src/HttpDownloadCommand.cc
  19. * src/HttpRequest.cc
  20. * src/SegmentMan.cc
  21. * src/SegmentMan.h
  22. * test/BitfieldManTest.cc
  23. * test/SegmentManTest.cc
  24. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Removed ServerHost. Same functionality is implemented using
  26. FileEntry's in-flight Request objects.
  27. * src/AbstractCommand.cc
  28. * src/BtDependency.cc
  29. * src/CreateRequestCommand.cc
  30. * src/FileEntry.cc
  31. * src/FileEntry.h
  32. * src/FtpNegotiationCommand.cc
  33. * src/HttpResponseCommand.cc
  34. * src/Makefile.am
  35. * src/Metalink2RequestGroup.cc
  36. * src/RequestGroup.cc
  37. * src/RequestGroup.h
  38. * src/ServerHost.cc: Removed
  39. * src/ServerHost.h: Removed
  40. * test/BtDependencyTest.cc
  41. * test/FileEntryTest.cc
  42. * test/RequestGroupTest.cc
  43. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Rewritten PeerStat handling. In the previous implementation,
  45. faster command tries to find slower command. In this new
  46. implementation, slower command tries to find faster command.
  47. PeerStat is now created in each HTTP/FTP request to get download
  48. rate correctly. If the download range is small, the download rate
  49. tends to small and this will occur at the later stage of download.
  50. * src/AbstractCommand.cc
  51. * src/DownloadCommand.cc
  52. * src/FileEntry.cc
  53. * src/FileEntry.h
  54. * src/Request.cc
  55. * src/Request.h
  56. * src/RequestGroup.h
  57. * src/RequestGroupMan.cc
  58. * src/SegmentMan.cc
  59. * src/SegmentMan.h
  60. * test/SegmentManTest.cc
  61. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Removed _uris from RequestGroup. All functions that refer to _uris
  63. were moved to FileEntry. Exit status code are now defined in
  64. DownloadResultCode.h.
  65. * src/AbstractCommand.cc
  66. * src/AdaptiveURISelector.cc
  67. * src/AdaptiveURISelector.h
  68. * src/AutoSaveCommand.cc
  69. * src/BtPostDownloadHandler.cc
  70. * src/CheckIntegrityDispatcherCommand.cc
  71. * src/CookieStorage.cc
  72. * src/DHTAutoSaveCommand.cc
  73. * src/DHTBucketRefreshCommand.cc
  74. * src/DHTEntryPointNameResolveCommand.cc
  75. * src/DHTInteractionCommand.cc
  76. * src/DHTPeerAnnounceCommand.cc
  77. * src/DHTTokenUpdateCommand.cc
  78. * src/DlAbortEx.h
  79. * src/DlRetryEx.h
  80. * src/DownloadCommand.cc
  81. * src/DownloadContext.h
  82. * src/DownloadFailureException.h
  83. * src/DownloadResult.h
  84. * src/DownloadResultCode.h
  85. * src/FeedbackURISelector.cc
  86. * src/FeedbackURISelector.h
  87. * src/FileEntry.cc
  88. * src/FileEntry.h
  89. * src/FtpNegotiationCommand.cc
  90. * src/HttpListenCommand.cc
  91. * src/HttpResponseCommand.cc
  92. * src/HttpServerResponseCommand.cc
  93. * src/HttpSkipResponseCommand.cc
  94. * src/InOrderURISelector.cc
  95. * src/InOrderURISelector.h
  96. * src/Makefile.am
  97. * src/Makefile.in
  98. * src/Metalink2RequestGroup.cc
  99. * src/MultiUrlRequestInfo.cc
  100. * src/MultiUrlRequestInfo.h
  101. * src/OptionHandlerFactory.cc
  102. * src/PeerListenCommand.cc
  103. * src/RecoverableException.h
  104. * src/RequestGroup.cc
  105. * src/RequestGroup.h
  106. * src/RequestGroupMan.cc
  107. * src/RequestGroupMan.h
  108. * src/TimedHaltCommand.cc
  109. * src/TrackerWatcherCommand.cc
  110. * src/URIResult.cc
  111. * src/URIResult.h
  112. * src/URISelector.h
  113. * src/XmlRpcMethodImpl.cc
  114. * src/bittorrent_helper.cc
  115. * src/bittorrent_helper.h
  116. * src/download_helper.cc
  117. * src/main.cc
  118. * src/option_processing.cc
  119. * test/BtDependencyTest.cc
  120. * test/BtPostDownloadHandlerTest.cc
  121. * test/CookieStorageTest.cc
  122. * test/DefaultBtMessageDispatcherTest.cc
  123. * test/DownloadHandlerFactoryTest.cc
  124. * test/DownloadHelperTest.cc
  125. * test/FeedbackURISelectorTest.cc
  126. * test/FileEntryTest.cc
  127. * test/InOrderURISelectorTest.cc
  128. * test/Metalink2RequestGroupTest.cc
  129. * test/MetalinkPostDownloadHandlerTest.cc
  130. * test/RequestGroupManTest.cc
  131. * test/RequestGroupTest.cc
  132. * test/XmlRpcMethodTest.cc
  133. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Removed MockBtContext.h
  135. * test/Makefile.am
  136. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Removed _currentRequest from StreamCheckIntegrityEntry and
  138. StreamFileAllocationEntry.
  139. * src/AbstractCommand.cc
  140. * src/HttpResponseCommand.cc
  141. * src/RequestGroup.cc
  142. * src/StreamCheckIntegrityEntry.cc
  143. * src/StreamCheckIntegrityEntry.h
  144. * src/StreamFileAllocationEntry.cc
  145. * src/StreamFileAllocationEntry.h
  146. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Rewritten DownloadContext and removed SingleFileDownloadContext
  148. and BtContext and its derived classes. BitTorrent specific
  149. attributes are now set by DownloadContext::setAttribute() with key
  150. bittorrent::BITTORRENT.
  151. * src/AbstractBtMessage.cc
  152. * src/AbstractBtMessage.h
  153. * src/AbstractCommand.cc
  154. * src/AbstractCommand.h
  155. * src/AbstractProxyRequestCommand.cc
  156. * src/AbstractProxyResponseCommand.cc
  157. * src/ActivePeerConnectionCommand.cc
  158. * src/ActivePeerConnectionCommand.h
  159. * src/AnnounceList.cc
  160. * src/BtCheckIntegrityEntry.cc
  161. * src/BtConstants.h
  162. * src/BtContext.h: Removed
  163. * src/BtDependency.cc
  164. * src/BtExtendedMessage.cc
  165. * src/BtPieceMessage.cc
  166. * src/BtPieceMessage.h
  167. * src/BtPostDownloadHandler.cc
  168. * src/BtRegistry.cc
  169. * src/BtRegistry.h
  170. * src/BtSetup.cc
  171. * src/CheckIntegrityCommand.cc
  172. * src/CheckIntegrityEntry.cc
  173. * src/ChecksumCheckIntegrityEntry.cc
  174. * src/ConsoleStatCalc.cc
  175. * src/ContentTypeRequestGroupCriteria.cc
  176. * src/DHTGetPeersCommand.cc
  177. * src/DHTGetPeersCommand.h
  178. * src/DHTPeerLookupTask.cc
  179. * src/DHTPeerLookupTask.h
  180. * src/DHTTaskFactory.h
  181. * src/DHTTaskFactoryImpl.cc
  182. * src/DHTTaskFactoryImpl.h
  183. * src/DefaultBtAnnounce.cc
  184. * src/DefaultBtAnnounce.h
  185. * src/DefaultBtContext.cc: Removed
  186. * src/DefaultBtContext.h: Removed
  187. * src/DefaultBtInteractive.cc
  188. * src/DefaultBtInteractive.h
  189. * src/DefaultBtMessageDispatcher.cc
  190. * src/DefaultBtMessageDispatcher.h
  191. * src/DefaultBtMessageFactory.cc
  192. * src/DefaultBtMessageFactory.h
  193. * src/DefaultBtMessageReceiver.cc
  194. * src/DefaultBtMessageReceiver.h
  195. * src/DefaultBtProgressInfoFile.cc
  196. * src/DefaultBtRequestFactory.cc
  197. * src/DefaultBtRequestFactory.h
  198. * src/DefaultExtensionMessageFactory.cc
  199. * src/DefaultExtensionMessageFactory.h
  200. * src/DefaultPeerStorage.cc
  201. * src/DefaultPeerStorage.h
  202. * src/DefaultPieceStorage.cc
  203. * src/DefaultSegmentManFactory.cc
  204. * src/DiskAdaptor.cc
  205. * src/DiskAdaptor.h
  206. * src/DownloadContext.cc
  207. * src/DownloadContext.h
  208. * src/DownloadEngine.cc
  209. * src/DownloadEngineFactory.cc
  210. * src/DownloadHandler.cc
  211. * src/DownloadResult.h
  212. * src/FileAllocationCommand.cc
  213. * src/FileAllocationDispatcherCommand.cc
  214. * src/FileAllocationEntry.cc
  215. * src/FileEntry.h
  216. * src/FillRequestGroupCommand.cc
  217. * src/FtpDownloadCommand.cc
  218. * src/FtpFinishDownloadCommand.cc
  219. * src/FtpInitiateConnectionCommand.cc
  220. * src/FtpNegotiationCommand.cc
  221. * src/FtpTunnelRequestCommand.cc
  222. * src/FtpTunnelResponseCommand.cc
  223. * src/HandshakeExtensionMessage.cc
  224. * src/HandshakeExtensionMessage.h
  225. * src/HaveEraseCommand.cc
  226. * src/HttpDownloadCommand.cc
  227. * src/HttpInitiateConnectionCommand.cc
  228. * src/HttpProxyRequestCommand.cc
  229. * src/HttpProxyResponseCommand.cc
  230. * src/HttpRequest.cc
  231. * src/HttpRequest.h
  232. * src/HttpRequestCommand.cc
  233. * src/HttpResponseCommand.cc
  234. * src/HttpServerBodyCommand.cc
  235. * src/HttpServerCommand.cc
  236. * src/HttpSkipResponseCommand.cc
  237. * src/InitiateConnectionCommandFactory.cc
  238. * src/InitiatorMSEHandshakeCommand.cc
  239. * src/InitiatorMSEHandshakeCommand.h
  240. * src/IteratableChecksumValidator.cc
  241. * src/IteratableChecksumValidator.h
  242. * src/IteratableChunkChecksumValidator.cc
  243. * src/MSEHandshake.cc
  244. * src/MSEHandshake.h
  245. * src/Makefile.am
  246. * src/Makefile.in
  247. * src/Metalink2RequestGroup.cc
  248. * src/MetalinkPostDownloadHandler.cc
  249. * src/MultiDiskAdaptor.cc
  250. * src/MultiDiskAdaptor.h
  251. * src/MultiFileAllocationIterator.cc
  252. * src/MultiUrlRequestInfo.cc
  253. * src/PeerChokeCommand.cc
  254. * src/PeerChokeCommand.h
  255. * src/PeerInitiateConnectionCommand.cc
  256. * src/PeerInitiateConnectionCommand.h
  257. * src/PeerInteractionCommand.cc
  258. * src/PeerInteractionCommand.h
  259. * src/PeerReceiveHandshakeCommand.cc
  260. * src/PieceHashCheckIntegrityEntry.cc
  261. * src/RealtimeCommand.cc
  262. * src/ReceiverMSEHandshakeCommand.cc
  263. * src/RequestGroup.cc
  264. * src/RequestGroup.h
  265. * src/RequestGroupEntry.cc
  266. * src/RequestGroupMan.cc
  267. * src/SeedCheckCommand.cc
  268. * src/SeedCheckCommand.h
  269. * src/SegmentMan.cc
  270. * src/ShareRatioSeedCriteria.h
  271. * src/SingleFileDownloadContext.cc: Removed
  272. * src/SingleFileDownloadContext.h: Removed
  273. * src/SleepCommand.cc
  274. * src/StreamCheckIntegrityEntry.cc
  275. * src/TrackerWatcherCommand.cc
  276. * src/TrackerWatcherCommand.h
  277. * src/UnknownLengthPieceStorage.cc
  278. * src/Util.cc
  279. * src/Util.h
  280. * src/XmlRpcMethodImpl.cc
  281. * src/bittorrent_helper.cc
  282. * src/bittorrent_helper.h
  283. * src/download_helper.cc
  284. * src/main.cc
  285. * src/option_processing.cc
  286. * test/BitfieldManTest.cc
  287. * test/BittorrentHelperTest.cc
  288. * test/BtCancelMessageTest.cc
  289. * test/BtChokeMessageTest.cc
  290. * test/BtDependencyTest.cc
  291. * test/BtPieceMessageTest.cc
  292. * test/BtPostDownloadHandlerTest.cc
  293. * test/BtRegistryTest.cc
  294. * test/BtRejectMessageTest.cc
  295. * test/BtRequestMessageTest.cc
  296. * test/DHTPeerAnnounceStorageTest.cc
  297. * test/DefaultBtAnnounceTest.cc
  298. * test/DefaultBtContextTest.cc: Removed
  299. * test/DefaultBtMessageDispatcherTest.cc
  300. * test/DefaultBtMessageFactoryTest.cc
  301. * test/DefaultBtProgressInfoFileTest.cc
  302. * test/DefaultBtRequestFactoryTest.cc
  303. * test/DefaultExtensionMessageFactoryTest.cc
  304. * test/DefaultPeerStorageTest.cc
  305. * test/DefaultPieceStorageTest.cc
  306. * test/DirectDiskAdaptorTest.cc
  307. * test/DownloadContextTest.cc
  308. * test/DownloadHandlerFactoryTest.cc
  309. * test/DownloadHelperTest.cc
  310. * test/HandshakeExtensionMessageTest.cc
  311. * test/HttpRequestTest.cc
  312. * test/HttpResponseTest.cc
  313. * test/IteratableChecksumValidatorTest.cc
  314. * test/IteratableChunkChecksumValidatorTest.cc
  315. * test/MSEHandshakeTest.cc
  316. * test/Makefile.am
  317. * test/Makefile.in
  318. * test/Metalink2RequestGroupTest.cc
  319. * test/MetalinkPostDownloadHandlerTest.cc
  320. * test/MockBtContext.h: Removed
  321. * test/MockDHTTaskFactory.h
  322. * test/MockDownloadContext.h: Removed
  323. * test/MockPieceStorage.h
  324. * test/MultiDiskAdaptorTest.cc
  325. * test/MultiFileAllocationIteratorTest.cc
  326. * test/RequestGroupManTest.cc
  327. * test/RequestGroupTest.cc
  328. * test/SegmentManTest.cc
  329. * test/ShareRatioSeedCriteriaTest.cc
  330. * test/SingleFileDownloadContextTest.cc: Removed
  331. * test/UtilTest.cc
  332. * test/XmlRpcMethodTest.cc
  333. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Added experimental support of WEB-Seeding for multi-file torrent.
  335. Due to fundamental changes in file handling in HTTP/FTP code, many
  336. functions are not working: PeerStat, ServerHost, proxy..etc
  337. * src/AbstractCommand.cc
  338. * src/AbstractCommand.h
  339. * src/BitfieldMan.cc
  340. * src/BitfieldMan.h
  341. * src/CreateRequestCommand.cc
  342. * src/CreateRequestCommand.h
  343. * src/DefaultPieceStorage.cc
  344. * src/DefaultPieceStorage.h
  345. * src/DownloadCommand.cc
  346. * src/DownloadCommand.h
  347. * src/DownloadContext.cc
  348. * src/DownloadContext.h
  349. * src/FileEntry.cc
  350. * src/FileEntry.h
  351. * src/FtpDownloadCommand.cc
  352. * src/FtpDownloadCommand.h
  353. * src/FtpFinishDownloadCommand.cc
  354. * src/FtpFinishDownloadCommand.h
  355. * src/FtpInitiateConnectionCommand.cc
  356. * src/FtpInitiateConnectionCommand.h
  357. * src/FtpNegotiationCommand.cc
  358. * src/FtpNegotiationCommand.h
  359. * src/FtpTunnelResponseCommand.cc
  360. * src/HttpDownloadCommand.cc
  361. * src/HttpDownloadCommand.h
  362. * src/HttpInitiateConnectionCommand.cc
  363. * src/HttpInitiateConnectionCommand.h
  364. * src/HttpProxyResponseCommand.cc
  365. * src/HttpRequest.cc
  366. * src/HttpRequest.h
  367. * src/HttpRequestCommand.cc
  368. * src/HttpRequestCommand.h
  369. * src/HttpResponseCommand.cc
  370. * src/HttpResponseCommand.h
  371. * src/HttpSkipResponseCommand.cc
  372. * src/HttpSkipResponseCommand.h
  373. * src/InitiateConnectionCommand.cc
  374. * src/InitiateConnectionCommand.h
  375. * src/InitiateConnectionCommandFactory.cc
  376. * src/InitiateConnectionCommandFactory.h
  377. * src/Makefile.am
  378. * src/PieceStorage.h
  379. * src/RequestGroup.cc
  380. * src/RequestGroup.h
  381. * src/RequestGroupMan.cc
  382. * src/SegmentMan.cc
  383. * src/SegmentMan.h
  384. * src/SingleFileDownloadContext.h
  385. * src/StreamFileAllocationEntry.cc
  386. * src/TrackerWatcherCommand.cc
  387. * src/UnknownLengthPieceStorage.cc
  388. * src/UnknownLengthPieceStorage.h
  389. * src/array_fun.h
  390. * src/bitfield.h
  391. * src/download_helper.cc
  392. * test/DownloadContextTest.cc
  393. * test/Makefile.am
  394. * test/MockDownloadContext.h
  395. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Added tellWaiting XML-RPC method.
  397. * src/SingleFileDownloadContext.cc
  398. * src/XmlRpcMethodFactory.cc
  399. * src/XmlRpcMethodImpl.cc
  400. * src/XmlRpcMethodImpl.h
  401. * test/XmlRpcMethodTest.cc
  402. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Updated CookieStorageTest
  404. * test/CookieStorageTest.cc
  405. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  407. handle excepion inside these functions.
  408. * src/LibgnutlsTLSContext.cc
  409. * src/LibgnutlsTLSContext.h
  410. * src/LibsslTLSContext.cc
  411. * src/LibsslTLSContext.h
  412. * src/MultiUrlRequestInfo.cc
  413. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Added comment
  415. * src/RequestGroup.cc
  416. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  417. In CookieStorage::load() and saveNsFormat(), handle exception
  418. inside the functions. When saving Cookies, first write temporary
  419. file and after successful writes, then renames it to final
  420. destination.
  421. * src/CookieStorage.cc
  422. * src/CookieStorage.h
  423. * src/MultiUrlRequestInfo.cc
  424. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. The default value of --dir option is the absolute path to the
  426. current directory. If getcwd() is failed, then it is ".", which is
  427. the same value with old implementation. This change is necessary
  428. because after daemon() call, the current working directory is
  429. changed to /.
  430. * src/File.cc
  431. * src/File.h
  432. * src/OptionHandlerFactory.cc
  433. * src/option_processing.cc
  434. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  435. Call daemon() with arguments(0,0), which means daemon() changes
  436. current working directory to / and redirects stdin, stdout and
  437. stderr to /dev/null.
  438. * src/option_processing.cc
  439. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Small performance optimizations.
  441. * src/RequestGroupMan.cc
  442. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Added _xmlRpc member variable to RequestGroupMan to reduce the
  444. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  445. * src/RequestGroupMan.cc
  446. * src/RequestGroupMan.h
  447. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  449. setNoWiat(true) if newly created command calls
  450. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  451. * src/HttpListenCommand.cc
  452. * src/HttpServerBodyCommand.cc
  453. * src/HttpServerCommand.cc
  454. * src/HttpServerResponseCommand.cc
  455. * src/InitiateConnectionCommand.cc
  456. * src/RequestGroup.cc
  457. * src/StreamFileAllocationEntry.cc
  458. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  459. Removed include vector
  460. * src/BtRegistry.h
  461. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  462. Rewritten BtRegistry
  463. * src/BtRegistry.cc
  464. * src/BtRegistry.h
  465. * src/BtSetup.cc
  466. * src/ConsoleStatCalc.cc
  467. * src/PeerInteractionCommand.cc
  468. * src/PeerReceiveHandshakeCommand.cc
  469. * src/ReceiverMSEHandshakeCommand.cc
  470. * src/RequestGroup.cc
  471. * src/XmlRpcMethodImpl.cc
  472. * test/BtRegistryTest.cc
  473. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  475. * src/DefaultBtProgressInfoFile.cc
  476. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  477. Throw an exception if position is less than 0.
  478. * src/XmlRpcMethodImpl.cc
  479. * test/XmlRpcMethodTest.cc
  480. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Use writeFilePath() in ConsoleStatCalc.cc
  482. * src/ConsoleStatCalc.cc
  483. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Receive the return value as const reference from
  485. DownloadContext::getFileEntries().
  486. * src/DefaultPieceStorage.cc
  487. * src/RequestGroupMan.cc
  488. * src/XmlRpcMethodImpl.cc
  489. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  490. DownloadContext now has _fileEntries so that
  491. DownloadContext::getFileEntries() can returns its const reference.
  492. * src/DefaultBtContext.cc
  493. * src/DefaultBtContext.h
  494. * src/DownloadContext.cc
  495. * src/DownloadContext.h
  496. * src/SingleFileDownloadContext.cc
  497. * src/SingleFileDownloadContext.h
  498. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  499. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  500. writeFilePath() function template from RequestGroupMan.cc to
  501. FileEntry.h
  502. * src/FileEntry.h
  503. * src/RequestGroupMan.cc
  504. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Documented 'position' parameter is starting from 0 in man page.
  506. * doc/aria2c.1.txt
  507. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Updated doc.
  509. * src/MSEHandshake.cc
  510. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Removed _acceptFeatures and its accessor functions from
  512. RequestGroup since they are not used practically.
  513. * src/HttpRequestCommand.cc
  514. * src/RequestGroup.cc
  515. * src/RequestGroup.h
  516. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Removed member _maxTries from RequestGroup class to avoid
  518. duplicate option value. Those classes who refer this variable
  519. should use option value of PREF_MAX_TRIES directly.
  520. * src/AbstractCommand.cc
  521. * src/RequestGroup.cc
  522. * src/RequestGroup.h
  523. * src/TrackerWatcherCommand.cc
  524. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. * Release 1.4.1
  526. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Fixed compiler warnings on netbsd
  528. * src/DHTConnectionImpl.cc
  529. * src/PeerListenCommand.cc
  530. * src/PeerSessionResource.cc
  531. * src/SegmentMan.cc
  532. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Updated Ukrainian translation. Thanks to all translators.
  534. * po/uk.po
  535. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Bump up version number to 1.4.1.
  537. * configure.ac
  538. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Added unit tests for strjoin, strconcat and strappend.
  540. * test/a2functionalTest.cc
  541. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Rewritten strconcat and strappend using operator+ instead of
  543. append().
  544. * src/a2functional.h
  545. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  547. is enabled.
  548. * src/Makefile.am
  549. * test/Makefile.am
  550. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Added countSeeder() function which counts seeder in the given
  552. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  553. * src/ConsoleStatCalc.cc
  554. * src/Peer.h
  555. * src/XmlRpcMethodImpl.cc
  556. * test/PeerTest.cc
  557. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Documented missing seeder in getPeers xml-rpc method.
  559. Documented uploadLength and numSeeders.
  560. * doc/aria2c.1.txt
  561. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  562. Added uploadLength and numSeeders to the response of tellStatus
  563. xml-rpc method. Assert that PeerStorage instance is not null
  564. instead of checking if statement. It should be non-null in this
  565. context.
  566. * src/XmlRpcMethodImpl.cc
  567. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  569. * src/XmlRpcResponse.cc
  570. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Avoid intermediate object during string concatenation.
  572. * src/HttpRequest.cc
  573. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. Added strjoin function template. Use it in pathJoin()
  575. * src/Util.h
  576. * src/a2functional.h
  577. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Avoid intermediate object during string concatenation. Replaced
  579. post-increment unary operator with pre-increment one in for loop.
  580. * src/AdaptiveURISelector.cc
  581. * src/AnnounceList.cc
  582. * src/AuthConfig.h
  583. * src/BtBitfieldMessage.cc
  584. * src/BtExtendedMessage.cc
  585. * src/BtHandshakeMessage.cc
  586. * src/BtPieceMessage.cc
  587. * src/BtPortMessage.cc
  588. * src/Cookie.cc
  589. * src/DHTAnnouncePeerMessage.cc
  590. * src/DHTAutoSaveCommand.cc
  591. * src/DHTGetPeersReplyMessage.cc
  592. * src/DHTNode.cc
  593. * src/DHTQueryMessage.cc
  594. * src/DHTResponseMessage.cc
  595. * src/DHTUnknownMessage.cc
  596. * src/DefaultBtAnnounce.cc
  597. * src/DefaultBtContext.cc
  598. * src/DefaultBtInteractive.cc
  599. * src/DefaultBtProgressInfoFile.cc
  600. * src/DefaultPeerStorage.cc
  601. * src/DownloadEngine.cc
  602. * src/FeatureConfig.cc
  603. * src/File.cc
  604. * src/FtpConnection.cc
  605. * src/FtpNegotiationCommand.cc
  606. * src/HandshakeExtensionMessage.cc
  607. * src/HttpConnection.cc
  608. * src/HttpRequest.cc
  609. * src/HttpResponseCommand.cc
  610. * src/HttpServer.cc
  611. * src/IndexBtMessage.cc
  612. * src/Metalink2RequestGroup.cc
  613. * src/OptionHandlerImpl.h
  614. * src/PStringBuildVisitor.cc
  615. * src/Peer.cc
  616. * src/PeerListenCommand.cc
  617. * src/Piece.cc
  618. * src/RangeBtMessage.cc
  619. * src/Request.cc
  620. * src/Request.h
  621. * src/RequestGroup.cc
  622. * src/RequestGroupMan.cc
  623. * src/ServerStat.cc
  624. * src/ServerStatMan.cc
  625. * src/UTPexExtensionMessage.cc
  626. * src/Util.cc
  627. * src/a2functional.h
  628. * src/download_helper.cc
  629. * src/messageDigest.cc
  630. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Unchoke a peer randomly at first and second choke round in seed
  632. state.
  633. * src/BtSeederStateChoke.cc
  634. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  635. Added (sock_t) to quiet compiler warnings in MinGW
  636. * src/SocketCore.cc
  637. * src/SocketCore.h
  638. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  640. * src/EpollEventPoll.h
  641. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  642. Added fork() emulation using CreateProcess() in MinGW
  643. * src/RequestGroupMan.cc
  644. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  645. * Release 1.4.0
  646. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Added utf8.torrent to EXTRA_DIST
  648. * test/Makefile.am
  649. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Fixed docs of aria2.addMetalink xml-rpc method.
  651. * doc/aria2c.1.txt
  652. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Added Slovak translation. Updated Ukrainian and Brazilian
  654. Portuguese translation. Thanks to all translators.
  655. * po/sk.po
  656. * po/uk.po
  657. * po/pt_BR.po
  658. * po/LINGUAS
  659. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Added test case for XmlRpcProcessor to fail to parse malformed
  661. document.
  662. * test/XmlRpcRequestProcessorTest.cc
  663. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Removed *.gmo files in po because they are generated on 'make
  665. dist'
  666. * po/*.gmo
  667. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Documented max-concurrent-downloads of changeGlobalOption method
  669. in man page.
  670. * doc/aria2c.1.txt
  671. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Added max-concurrent-downloads option to changeGlobalOption
  673. xml-rpc method. Rewritten loop conditional in
  674. RequestGroupMan::fillRequestGroupFromReserver().
  675. * src/RequestGroupMan.cc
  676. * src/RequestGroupMan.h
  677. * src/XmlRpcMethod.cc
  678. * src/XmlRpcMethodImpl.cc
  679. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  680. Documented position parameter in man page.
  681. * doc/aria2c.1.txt
  682. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Added 'position' parameter to addUri, addTorrent and addMetalink
  684. xml-rpc method.
  685. * src/RequestGroupMan.cc
  686. * src/RequestGroupMan.h
  687. * src/XmlRpcMethodImpl.cc
  688. * test/XmlRpcMethodTest.cc
  689. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Removed Peer.cc from compile source list when --disable-bittorrent
  691. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  692. takes Peer.
  693. * src/DefaultPieceStorage.cc
  694. * src/DefaultPieceStorage.h
  695. * src/Makefile.am
  696. * src/PieceStorage.h
  697. * src/UnknownLengthPieceStorage.cc
  698. * src/UnknownLengthPieceStorage.h
  699. * test/MockPieceStorage.h
  700. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Implemented getter methods in header files to give them more
  702. chance of optimization.
  703. Return const reference for SharadHandle if possible.
  704. * src/AbstractAuthResolver.cc
  705. * src/AbstractAuthResolver.h
  706. * src/AbstractBtMessage.cc
  707. * src/AbstractBtMessage.h
  708. * src/AbstractSingleDiskAdaptor.cc
  709. * src/AbstractSingleDiskAdaptor.h
  710. * src/AsyncNameResolver.cc
  711. * src/AsyncNameResolver.h
  712. * src/BNode.cc
  713. * src/BNode.h
  714. * src/BitfieldMan.cc
  715. * src/BitfieldMan.h
  716. * src/BtAbortOutstandingRequestEvent.h
  717. * src/BtExtendedMessage.cc
  718. * src/BtExtendedMessage.h
  719. * src/BtSeederStateChoke.cc
  720. * src/BtSeederStateChoke.h
  721. * src/Cookie.cc
  722. * src/Cookie.h
  723. * src/DHTBucket.cc
  724. * src/DHTBucket.h
  725. * src/DHTConnectionImpl.cc
  726. * src/DHTConnectionImpl.h
  727. * src/DHTFindNodeReplyMessage.cc
  728. * src/DHTFindNodeReplyMessage.h
  729. * src/DHTGetPeersReplyMessage.cc
  730. * src/DHTGetPeersReplyMessage.h
  731. * src/DHTInteractionCommand.cc
  732. * src/DHTMessage.cc
  733. * src/DHTMessage.h
  734. * src/DHTMessageDispatcherImpl.cc
  735. * src/DHTMessageEntry.cc
  736. * src/DHTMessageReceiver.cc
  737. * src/DHTMessageReceiver.h
  738. * src/DHTMessageTrackerEntry.cc
  739. * src/DHTMessageTrackerEntry.h
  740. * src/DHTPeerAnnounceEntry.cc
  741. * src/DHTPeerAnnounceEntry.h
  742. * src/DHTPeerLookupTask.cc
  743. * src/DHTPeerLookupTask.h
  744. * src/DHTRoutingTableDeserializer.cc
  745. * src/DHTRoutingTableDeserializer.h
  746. * src/DefaultBtAnnounce.cc
  747. * src/DefaultBtAnnounce.h
  748. * src/DefaultBtMessageDispatcher.cc
  749. * src/DefaultBtMessageDispatcher.h
  750. * src/DefaultBtRequestFactory.cc
  751. * src/DefaultBtRequestFactory.h
  752. * src/DiskAdaptor.cc
  753. * src/DiskAdaptor.h
  754. * src/DownloadContext.cc
  755. * src/DownloadContext.h
  756. * src/DownloadEngine.cc
  757. * src/DownloadEngine.h
  758. * src/EpollEventPoll.cc
  759. * src/EpollEventPoll.h
  760. * src/FtpConnection.cc
  761. * src/FtpConnection.h
  762. * src/HttpConnection.cc
  763. * src/HttpConnection.h
  764. * src/HttpHeader.cc
  765. * src/HttpHeader.h
  766. * src/HttpRequest.cc
  767. * src/HttpRequest.h
  768. * src/HttpResponse.cc
  769. * src/HttpResponse.h
  770. * src/LibsslTLSContext.cc
  771. * src/LibsslTLSContext.h
  772. * src/MSEHandshake.cc
  773. * src/MSEHandshake.h
  774. * src/MetalinkEntry.cc
  775. * src/MetalinkEntry.h
  776. * src/MetalinkParserController.cc
  777. * src/MetalinkParserController.h
  778. * src/MetalinkParserStateMachine.cc
  779. * src/MetalinkParserStateMachine.h
  780. * src/MultiDiskAdaptor.cc
  781. * src/MultiDiskAdaptor.h
  782. * src/NetrcAuthResolver.cc
  783. * src/NetrcAuthResolver.h
  784. * src/Peer.cc
  785. * src/Peer.h
  786. * src/PeerSessionResource.cc
  787. * src/PeerSessionResource.h
  788. * src/Piece.cc
  789. * src/Piece.h
  790. * src/PieceStatMan.cc
  791. * src/PieceStatMan.h
  792. * src/Request.cc
  793. * src/Request.h
  794. * src/RequestGroup.cc
  795. * src/RequestGroup.h
  796. * src/RequestGroupMan.cc
  797. * src/RequestGroupMan.h
  798. * src/RequestSlot.cc
  799. * src/RequestSlot.h
  800. * src/SegmentMan.cc
  801. * src/SegmentMan.h
  802. * src/SelectEventPoll.cc
  803. * src/SelectEventPoll.h
  804. * src/ServerStat.cc
  805. * src/ServerStat.h
  806. * src/Signature.cc
  807. * src/Signature.h
  808. * src/URIResult.cc
  809. * src/URIResult.h
  810. * src/UTPexExtensionMessage.cc
  811. * src/UTPexExtensionMessage.h
  812. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Fixed compile error without BitTorrent and Metalink support.
  814. * src/XmlRpcMethod.cc
  815. * src/XmlRpcMethodFactory.cc
  816. * src/XmlRpcMethodImpl.cc
  817. * src/XmlRpcMethodImpl.h
  818. * test/XmlRpcMethodTest.cc
  819. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Rewritten the help message for --allow-overwrite option.
  821. * doc/aria2c.1.txt
  822. * src/usage_text.h
  823. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Fixed typo
  825. * doc/aria2c.1.txt
  826. * src/usage_text.h
  827. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Updated README for 1.4.0 release. Use new table syntax of
  829. asciidoc.
  830. * README
  831. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Documented --xml-rpc-max-request-size option in man page.
  833. * doc/aria2c.1.txt
  834. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Moved C_* constants from BtContext to DefaultBtContext.
  836. * src/BtContext.cc: Removed.
  837. * src/BtContext.h
  838. * src/DefaultBtContext.cc
  839. * src/DefaultBtContext.h
  840. * src/Makefile.am
  841. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Use name.utf-8 and path.utf-8 key in higher priority than name and
  843. path key respectively when persing .torrent file.
  844. * src/BtContext.cc
  845. * src/BtContext.h
  846. * src/DefaultBtContext.cc
  847. * test/DefaultBtContextTest.cc
  848. * test/utf8.torrent
  849. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Added --xml-rpc-max-request-size option to limit the size of
  851. XML-RPC request.
  852. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Documented XML-RPC API in man page.
  854. * doc/aria2c.1.txt
  855. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  857. will break strict-aliasing rules
  858. * src/PeerConnection.cc
  859. * test/DHTRoutingTableSerializerTest.cc
  860. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  862. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  863. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  864. PKG_CHECK_MODULES macro uses latter name.
  865. * m4/sqlite3.m4
  866. * src/Makefile.am
  867. * test/Makefile.am
  868. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Fixed typo
  870. * configure.ac
  871. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  873. presence of libgnutls using pkg-config first. If it fails, fall
  874. back to old macro libgnutls.m4.
  875. * configure.ac
  876. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. Use s itself instead of !s.bad()
  878. * src/CookieStorage.cc
  879. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Documented --on-download-* option and --save-cookies option in man
  881. page.
  882. * doc/aria2c.1.txt
  883. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Set possible values for --load-cookie option to "/path/to/file".
  885. * src/OptionHandlerFactory.cc
  886. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Added --save-cookies option.
  888. * src/Cookie.cc
  889. * src/Cookie.h
  890. * src/CookieStorage.cc
  891. * src/CookieStorage.h
  892. * src/MultiUrlRequestInfo.cc
  893. * src/OptionHandlerFactory.cc
  894. * src/prefs.cc
  895. * src/prefs.h
  896. * src/usage_text.h
  897. * test/CookieStorageTest.cc
  898. * test/CookieTest.cc
  899. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  900. Removed tellAll XML-RPC command because its reponse tends to be
  901. big if stopped/waiting downloads pile up.
  902. * src/XmlRpcMethodFactory.cc
  903. * src/XmlRpcMethodImpl.cc
  904. * src/XmlRpcMethodImpl.h
  905. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Added the ability to execute command when download starts and
  907. stops. You can also specify command for particular cases such as
  908. complete/error download. Added --on-download-start,
  909. --on-download-stop, --on-download-complete and --on-download-error
  910. option.
  911. * src/OptionHandlerFactory.cc
  912. * src/RequestGroupMan.cc
  913. * src/prefs.cc
  914. * src/prefs.h
  915. * src/usage_text.h
  916. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Fixed test error
  918. * test/BencodeTest.cc
  919. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Added unit tests.
  921. * test/XmlRpcMethodTest.cc
  922. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Made exception message more verbose.
  924. * src/bencode.cc
  925. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  927. space in console readout. Also they are now shown in MiB/s if
  928. speed > 1024KiB/s.
  929. * src/ConsoleStatCalc.cc
  930. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  931. Added SEED to console output, which represents the number of
  932. seeders currently the client is connecting to.
  933. * src/ConsoleStatCalc.cc
  934. * src/ConsoleStatCalc.h
  935. * src/DownloadEngine.cc
  936. * src/NullStatCalc.h
  937. * src/StatCalc.h
  938. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Added source filename(__FILE__) and line number(__LINE__) to
  940. exception message.
  941. * src/AbstractCommand.cc
  942. * src/AbstractDiskWriter.cc
  943. * src/AbstractProxyResponseCommand.cc
  944. * src/BDE.h
  945. * src/BtAllowedFastMessage.cc
  946. * src/BtHandshakeMessageValidator.h
  947. * src/BtHaveAllMessage.cc
  948. * src/BtHaveNoneMessage.cc
  949. * src/BtPieceMessage.cc
  950. * src/BtRejectMessage.cc
  951. * src/ChunkedDecoder.cc
  952. * src/CookieStorage.cc
  953. * src/DHTAnnouncePeerMessage.cc
  954. * src/DHTEntryPointNameResolveCommand.cc
  955. * src/DHTMessageFactoryImpl.cc
  956. * src/DHTMessageTracker.cc
  957. * src/DHTRoutingTableDeserializer.cc
  958. * src/DHTRoutingTableSerializer.cc
  959. * src/DHTSetup.cc
  960. * src/DHTTokenTracker.cc
  961. * src/DefaultBtAnnounce.cc
  962. * src/DefaultBtContext.cc
  963. * src/DefaultBtInteractive.cc
  964. * src/DefaultBtMessageFactory.cc
  965. * src/DefaultBtProgressInfoFile.cc
  966. * src/DefaultExtensionMessageFactory.cc
  967. * src/DlAbortEx.h
  968. * src/DlRetryEx.h
  969. * src/DownloadCommand.cc
  970. * src/DownloadEngineFactory.cc
  971. * src/DownloadFailureException.h
  972. * src/Exception.cc
  973. * src/Exception.h
  974. * src/ExpatMetalinkProcessor.cc
  975. * src/ExpatXmlRpcRequestProcessor.cc
  976. * src/FallocFileAllocationIterator.cc
  977. * src/FatalException.h
  978. * src/FtpConnection.cc
  979. * src/FtpFinishDownloadCommand.cc
  980. * src/FtpInitiateConnectionCommand.cc
  981. * src/FtpNegotiationCommand.cc
  982. * src/GZipDecoder.cc
  983. * src/HandshakeExtensionMessage.cc
  984. * src/HttpConnection.cc
  985. * src/HttpHeaderProcessor.cc
  986. * src/HttpInitiateConnectionCommand.cc
  987. * src/HttpResponse.cc
  988. * src/HttpResponseCommand.cc
  989. * src/HttpServer.cc
  990. * src/HttpSkipResponseCommand.cc
  991. * src/InitiateConnectionCommandFactory.cc
  992. * src/IteratableChunkChecksumValidator.cc
  993. * src/LibgcryptARC4Context.h
  994. * src/LibgcryptARC4Decryptor.h
  995. * src/LibgcryptARC4Encryptor.h
  996. * src/LibgcryptDHKeyExchange.h
  997. * src/LibgnutlsTLSContext.cc
  998. * src/LibsslARC4Context.h
  999. * src/LibsslARC4Decryptor.h
  1000. * src/LibsslARC4Encryptor.h
  1001. * src/LibsslDHKeyExchange.h
  1002. * src/LibsslTLSContext.cc
  1003. * src/MSEHandshake.cc
  1004. * src/MessageDigestHelper.cc
  1005. * src/MetalinkHelper.cc
  1006. * src/MultiDiskAdaptor.cc
  1007. * src/NameMatchOptionHandler.h
  1008. * src/NameResolver.cc
  1009. * src/Netrc.cc
  1010. * src/NsCookieParser.cc
  1011. * src/OptionHandlerException.cc
  1012. * src/OptionHandlerException.h
  1013. * src/OptionHandlerImpl.h
  1014. * src/OptionParser.cc
  1015. * src/ParameterizedStringParser.cc
  1016. * src/PeerAbstractCommand.cc
  1017. * src/PeerConnection.cc
  1018. * src/PeerMessageUtil.cc
  1019. * src/PeerReceiveHandshakeCommand.cc
  1020. * src/Platform.cc
  1021. * src/ReceiverMSEHandshakeCommand.cc
  1022. * src/RecoverableException.h
  1023. * src/RequestGroup.cc
  1024. * src/SimpleLogger.cc
  1025. * src/SocketCore.cc
  1026. * src/Sqlite3MozCookieParser.cc
  1027. * src/UTPexExtensionMessage.cc
  1028. * src/Util.cc
  1029. * src/XML2SAXMetalinkProcessor.cc
  1030. * src/Xml2XmlRpcRequestProcessor.cc
  1031. * src/XmlRpcMethodImpl.cc
  1032. * src/bencode.cc
  1033. * src/download_helper.cc
  1034. * src/messageDigest.h
  1035. * test/ExceptionTest.cc
  1036. * test/TestUtil.cc
  1037. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Bump up version number to 1.4.0
  1039. * configure.ac
  1040. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Added 2files.metalink to EXTRA_DIST
  1042. * test/Makefile.am
  1043. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Added missing 2files.metalink
  1045. * test/2files.metalink
  1046. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Show "[MEMORY]" prefix before filename in download summary if it
  1048. is downloaded into memory.
  1049. * src/DownloadResult.h
  1050. * src/RequestGroup.cc
  1051. * src/RequestGroupMan.cc
  1052. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1054. * src/ExpatXmlRpcRequestProcessor.cc
  1055. * src/Xml2XmlRpcRequestProcessor.cc
  1056. * src/message.h
  1057. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Defined const BDEs to avoid duplicate instantiation.
  1059. Defined MSG_GID_NOT_PROVIDED.
  1060. * src/XmlRpcMethodImpl.cc
  1061. * src/message.h
  1062. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. Code cleanup
  1064. * src/Xml2XmlRpcRequestProcessor.cc
  1065. * src/Xml2XmlRpcRequestProcessor.h
  1066. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1067. Defined ENABLE_XML_RPC
  1068. * configure.ac
  1069. * configure
  1070. * config.h.in
  1071. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. Added ExpatXmlRpcRequestProcessor
  1073. * src/ExpatXmlRpcRequestProcessor.cc
  1074. * src/ExpatXmlRpcRequestProcessor.h
  1075. * src/Makefile.am
  1076. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Added tests for addTorrent and addMetalink command.
  1078. * test/TestUtil.cc
  1079. * test/TestUtil.h
  1080. * test/XmlRpcMethodTest.cc
  1081. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Corrected the description of --file-allocation option.
  1083. * doc/aria2c.1.txt
  1084. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Added tellAll command.
  1086. * src/XmlRpcMethodFactory.cc
  1087. * src/XmlRpcMethodImpl.cc
  1088. * src/XmlRpcMethodImpl.h
  1089. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1091. * src/XmlRpcMethodImpl.cc
  1092. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Added changeGlobalOption command. Currently,
  1094. max-overall-download-limit and max-overall-upload-limit option are
  1095. available.
  1096. * src/RequestGroupMan.h
  1097. * src/XmlRpcMethod.cc
  1098. * src/XmlRpcMethod.h
  1099. * src/XmlRpcMethodFactory.cc
  1100. * src/XmlRpcMethodImpl.cc
  1101. * src/XmlRpcMethodImpl.h
  1102. * test/XmlRpcMethodTest.cc
  1103. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1104. Added changeOption command. Currently, max-download-limit,
  1105. max-upload-limit option are available in this command.
  1106. * src/RequestGroup.h
  1107. * src/XmlRpcMethod.cc
  1108. * src/XmlRpcMethod.h
  1109. * src/XmlRpcMethodFactory.cc
  1110. * src/XmlRpcMethodImpl.cc
  1111. * src/XmlRpcMethodImpl.h
  1112. * test/XmlRpcMethodTest.cc
  1113. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. Added purgeDownloadResult command.
  1115. * src/RequestGroupMan.cc
  1116. * src/RequestGroupMan.h
  1117. * src/XmlRpcMethodFactory.cc
  1118. * src/XmlRpcMethodImpl.cc
  1119. * src/XmlRpcMethodImpl.h
  1120. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1121. Refactored.
  1122. * src/XmlRpcMethod.cc
  1123. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1125. XmlRpcResponse.
  1126. * src/HttpServerBodyCommand.cc
  1127. * src/Makefile.am
  1128. * src/XmlRpcMethod.cc
  1129. * src/XmlRpcMethod.h
  1130. * src/XmlRpcMethodImpl.cc
  1131. * src/XmlRpcResponse.cc
  1132. * src/XmlRpcResponse.h
  1133. * test/XmlRpcMethodTest.cc
  1134. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1135. In XML-RPC option struct, header and index-out option can take
  1136. array as value.
  1137. * src/XmlRpcMethod.cc
  1138. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Removed unused option member from PeerConnection.
  1140. * src/InitiatorMSEHandshakeCommand.cc
  1141. * src/PeerConnection.cc
  1142. * src/PeerConnection.h
  1143. * src/PeerInteractionCommand.cc
  1144. * src/PeerReceiveHandshakeCommand.cc
  1145. * src/ReceiverMSEHandshakeCommand.cc
  1146. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Added "seeder" key to getPeers response.
  1148. * src/XmlRpcMethodImpl.cc
  1149. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Added addMetalink XML-RPC command.
  1151. * src/XmlRpcMethodFactory.cc
  1152. * src/XmlRpcMethodImpl.cc
  1153. * src/XmlRpcMethodImpl.h
  1154. * src/download_helper.cc
  1155. * src/download_helper.h
  1156. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. Fixed the bug that POU peers are never choked in seeding.
  1158. * src/BtSeederStateChoke.cc
  1159. * src/BtSeederStateChoke.h
  1160. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Added web-seeding URI handling in addTorrent command.
  1162. * src/XmlRpcMethodImpl.cc
  1163. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Added "length" key to getFiles response.
  1165. * src/XmlRpcMethodImpl.cc
  1166. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Moved --no-netrc option from ftp option section to http/ftp option
  1168. section.
  1169. * doc/aria2c.1.txt
  1170. * src/OptionHandlerFactory.cc
  1171. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Removed garbage "\" character before '
  1173. * doc/aria2c.1.txt
  1174. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Removed garbage "\" character before http.
  1176. * doc/aria2c.1.txt
  1177. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1178. Documented additional options that can be specified in -i list.
  1179. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1180. and --xml-rpc-passwd. Removed --enable-http-server and
  1181. --http-server-listen-port.
  1182. * doc/aria2c.1.txt
  1183. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1185. * src/DefaultPeerStorage.cc
  1186. * src/DefaultPeerStorage.h
  1187. * src/PeerStorage.h
  1188. * src/XmlRpcMethodImpl.cc
  1189. * test/MockPeerStorage.h
  1190. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Put a call to Socket::isReadable() in try block.
  1192. * src/HttpServerBodyCommand.cc
  1193. * src/HttpServerCommand.cc
  1194. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1196. exception , so it is now in try block.
  1197. * src/HttpServerResponseCommand.cc
  1198. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Added "amChoking" and "peerChoking" key in getPeers response.
  1200. * src/XmlRpcMethodImpl.cc
  1201. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. Added test case for zero-length filter.
  1203. * test/BitfieldManTest.cc
  1204. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1205. getFiles command now returns file data for finished/stopped
  1206. downloads.
  1207. * src/XmlRpcMethodImpl.cc
  1208. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. DownloadResult now has the list of FileEntry. The download
  1210. summary displays the path of first selected file and the number of
  1211. remaining files for multi-file torrent.
  1212. * src/DownloadResult.h
  1213. * src/RequestGroup.cc
  1214. * src/RequestGroupMan.cc
  1215. * test/RequestGroupTest.cc
  1216. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Fixed segmentation fault error when no file is selected in
  1218. multi-file torrent.
  1219. * src/BitfieldMan.cc
  1220. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Escaped <,>,& character in XML-RPC response.
  1222. * src/XmlRpcMethod.cc
  1223. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Throw DlAbortEx instead of FatalException during parsing options
  1225. because we don't want for aria2 to quit when bad option is passed
  1226. via XML-RPC.
  1227. * src/OptionHandlerException.cc
  1228. * src/OptionHandlerException.h
  1229. * src/OptionHandlerImpl.h
  1230. * src/OptionParser.cc
  1231. * src/OptionParser.h
  1232. * src/PStringSegment.cc
  1233. * src/ParameterizedStringParser.cc
  1234. * src/download_helper.cc
  1235. * test/ParameterizedStringParserTest.cc
  1236. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Selecting files are now done in
  1238. DefaultBtContext::setFileFileter().
  1239. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1240. functions are removed because they are no longer used. Creating
  1241. filter in BitfieldMan is done in new funtion
  1242. PieceStorage::setupFileFilter()
  1243. * src/BtContext.cc
  1244. * src/BtContext.h
  1245. * src/DefaultBtContext.cc
  1246. * src/DefaultBtContext.h
  1247. * src/DefaultPieceStorage.cc
  1248. * src/DefaultPieceStorage.h
  1249. * src/DiskAdaptor.cc
  1250. * src/DiskAdaptor.h
  1251. * src/PieceStorage.h
  1252. * src/RequestGroup.cc
  1253. * src/UnknownLengthPieceStorage.h
  1254. * src/XmlRpcMethodImpl.cc
  1255. * test/DefaultBtContextTest.cc
  1256. * test/MockBtContext.h
  1257. * test/MockPieceStorage.h
  1258. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1259. Fixed compile error on Mac OS X
  1260. * src/HttpServer.cc
  1261. * src/XmlRpcMethod.h
  1262. * src/XmlRpcMethodImpl.cc
  1263. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. Use std::binary_search instead of std::find
  1265. * src/DefaultPieceStorage.cc
  1266. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1267. Removed unnecessary BDE() call; leave them to implicit conversion.
  1268. * src/XmlRpcMethodImpl.cc
  1269. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Return connections and gid in string
  1271. * src/XmlRpcMethodImpl.cc
  1272. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Renamed addURI as addUri
  1274. * src/XmlRpcMethodFactory.cc
  1275. * src/XmlRpcMethodImpl.cc
  1276. * src/XmlRpcMethodImpl.h
  1277. * test/XmlRpcMethodTest.cc
  1278. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Renamed addTorrentFile as addTorrent
  1280. * src/XmlRpcMethodFactory.cc
  1281. * src/XmlRpcMethodImpl.cc
  1282. * src/XmlRpcMethodImpl.h
  1283. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. The information for files, URIs, peers are removed from the
  1285. reponse of TellaActive, TellStatus command because they tend to be
  1286. large. Instead they can be retrieved by the dedicated commands:
  1287. getFiles, getUris and getPeers respectively.
  1288. * src/XmlRpcMethodFactory.cc
  1289. * src/XmlRpcMethodImpl.cc
  1290. * src/XmlRpcMethodImpl.h
  1291. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1292. Removed --max-overall-upload-limit and
  1293. --max-overall-download-limit option from listRequestOptions.
  1294. * src/download_helper.cc
  1295. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Log incoming host in HttpListenCommand.
  1297. * src/HttpListenCommand.cc
  1298. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1299. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1300. --xml-rpc-passwd option.
  1301. * src/HttpServer.cc
  1302. * src/HttpServer.h
  1303. * src/HttpServerCommand.cc
  1304. * src/OptionHandlerFactory.cc
  1305. * src/prefs.cc
  1306. * src/prefs.h
  1307. * src/usage_text.h
  1308. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1310. processing 0 length request.
  1311. * src/HttpServerBodyCommand.cc
  1312. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Removed --enable-http-server and --http-server-listen-port
  1314. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1315. instead. The original feature for --enable-http-server that
  1316. reports download progress in HTML was officially removed. Persist
  1317. XML-RPC connection if client supports keep-alive.
  1318. * src/DownloadEngineFactory.cc
  1319. * src/HttpServerCommand.cc
  1320. * src/HttpServerResponseCommand.cc
  1321. * src/Makefile.am
  1322. * src/Makefile.in
  1323. * src/OptionHandlerFactory.cc
  1324. * src/RequestGroupMan.cc
  1325. * src/main.cc
  1326. * src/option_processing.cc
  1327. * src/prefs.cc
  1328. * src/prefs.h
  1329. * src/usage_text.h
  1330. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Added "uris" key to the response of tellStatus command. Added
  1332. "connections" key to the response of tellStatus and tellActive
  1333. command.
  1334. * src/XmlRpcMethodImpl.cc
  1335. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1337. Added TellStatusXmlRpcMethod. Remove command can now remove
  1338. waiting RequestGroup.
  1339. * src/RequestGroupMan.cc
  1340. * src/RequestGroupMan.h
  1341. * src/XmlRpcMethodFactory.cc
  1342. * src/XmlRpcMethodImpl.cc
  1343. * src/XmlRpcMethodImpl.h
  1344. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Initialized _peerId
  1346. * src/Peer.cc
  1347. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Return fault structure for error. FailXmlRpcMethod is renamed as
  1349. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1350. in non-torrent download. Return single param value.
  1351. * src/XmlRpcMethod.cc
  1352. * src/XmlRpcMethodFactory.cc
  1353. * src/XmlRpcMethodImpl.cc
  1354. * src/XmlRpcMethodImpl.h
  1355. * test/XmlRpcMethodTest.cc
  1356. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1358. command.
  1359. * src/RequestGroup.cc
  1360. * src/RequestGroup.h
  1361. * src/RequestGroupMan.cc
  1362. * src/XmlRpcMethodImpl.cc
  1363. * test/RequestGroupTest.cc
  1364. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Added more options that can be specified in -i list and xml-rpc
  1366. add* command.
  1367. * src/download_helper.h
  1368. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. The available options in -i list should be listed in
  1370. listRequestOptions().
  1371. * src/download_helper.cc
  1372. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1374. command.
  1375. * src/XmlRpcMethodImpl.cc
  1376. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Now RequestGroup has its own copy of Option object. This will help
  1378. to give custom option for each RequestGroup.
  1379. addTorrentFile command now takes options.
  1380. * src/AbstractCommand.cc
  1381. * src/AbstractCommand.h
  1382. * src/AbstractProxyRequestCommand.cc
  1383. * src/ActivePeerConnectionCommand.cc
  1384. * src/ActivePeerConnectionCommand.h
  1385. * src/AdaptiveURISelector.cc
  1386. * src/BtCheckIntegrityEntry.cc
  1387. * src/BtDependency.cc
  1388. * src/BtDependency.h
  1389. * src/BtFileAllocationEntry.cc
  1390. * src/BtPostDownloadHandler.cc
  1391. * src/CheckIntegrityEntry.cc
  1392. * src/DownloadCommand.cc
  1393. * src/FtpDownloadCommand.cc
  1394. * src/FtpFinishDownloadCommand.cc
  1395. * src/FtpInitiateConnectionCommand.cc
  1396. * src/FtpNegotiationCommand.cc
  1397. * src/HttpInitiateConnectionCommand.cc
  1398. * src/HttpRequestCommand.cc
  1399. * src/HttpResponseCommand.cc
  1400. * src/HttpSkipResponseCommand.cc
  1401. * src/InitiateConnectionCommand.cc
  1402. * src/InitiateConnectionCommandFactory.cc
  1403. * src/InitiatorMSEHandshakeCommand.cc
  1404. * src/InitiatorMSEHandshakeCommand.h
  1405. * src/Metalink2RequestGroup.cc
  1406. * src/Metalink2RequestGroup.h
  1407. * src/MetalinkPostDownloadHandler.cc
  1408. * src/MultiUrlRequestInfo.cc
  1409. * src/MultiUrlRequestInfo.h
  1410. * src/PeerAbstractCommand.cc
  1411. * src/PeerInteractionCommand.cc
  1412. * src/PeerInteractionCommand.h
  1413. * src/PeerReceiveHandshakeCommand.cc
  1414. * src/PeerReceiveHandshakeCommand.h
  1415. * src/RequestGroup.cc
  1416. * src/RequestGroup.h
  1417. * src/TrackerWatcherCommand.cc
  1418. * src/TrackerWatcherCommand.h
  1419. * src/XmlRpcMethod.cc
  1420. * src/XmlRpcMethod.h
  1421. * src/XmlRpcMethodImpl.cc
  1422. * src/download_helper.cc
  1423. * src/download_helper.h
  1424. * src/main.cc
  1425. * test/BtDependencyTest.cc
  1426. * test/BtPostDownloadHandlerTest.cc
  1427. * test/DefaultBtMessageDispatcherTest.cc
  1428. * test/DownloadHandlerFactoryTest.cc
  1429. * test/DownloadHelperTest.cc
  1430. * test/Metalink2RequestGroupTest.cc
  1431. * test/MetalinkPostDownloadHandlerTest.cc
  1432. * test/RequestGroupManTest.cc
  1433. * test/RequestGroupTest.cc
  1434. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Added tellActiveStatus xml-rpc command which reports download
  1436. status of active downloads.
  1437. * src/XmlRpcMethodFactory.cc
  1438. * src/XmlRpcMethodImpl.cc
  1439. * src/XmlRpcMethodImpl.h
  1440. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Added addTorrentFile xml-rpc command which receives uploaded
  1442. torrent file and add download for it.
  1443. * src/RequestGroupMan.cc
  1444. * src/XmlRpcMethodFactory.cc
  1445. * src/XmlRpcMethodImpl.cc
  1446. * src/XmlRpcMethodImpl.h
  1447. * src/download_helper.cc
  1448. * src/download_helper.h
  1449. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Added remove xml-rpc command which removes specified download.
  1451. There is a known issue: the removed unfinished downloads are
  1452. reported ERR when aria2 exits. They should be reported as INPR.
  1453. * src/RequestGroupMan.cc
  1454. * src/RequestGroupMan.h
  1455. * src/XmlRpcMethodFactory.cc
  1456. * src/XmlRpcMethodImpl.cc
  1457. * src/XmlRpcMethodImpl.h
  1458. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. If --enable-http-server is enabled, don't stop aria2 when all
  1460. download finished and don't quit when no files to download at
  1461. start up.
  1462. * src/RequestGroupMan.cc
  1463. * src/main.cc
  1464. * src/option_processing.cc
  1465. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Added missing AM_CONDITIONAL
  1467. * configure.ac
  1468. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Added xml-rpc functionality. Currently only addURI commad is
  1470. supported. To enable xml-rpc, run aria2 with
  1471. --enable-http-server. This option name is temporal and will be
  1472. changed. The feature that reports download progress in html format
  1473. is temporarily disabled.
  1474. * src/HttpServer.cc
  1475. * src/HttpServer.h
  1476. * src/HttpServerBodyCommand.cc
  1477. * src/HttpServerBodyCommand.h
  1478. * src/HttpServerCommand.cc
  1479. * src/HttpServerResponseCommand.cc
  1480. * src/Makefile.am
  1481. * src/OptionParser.cc
  1482. * src/OptionParser.h
  1483. * src/RequestGroupMan.cc
  1484. * src/RequestGroupMan.h
  1485. * src/XmlRpcMethod.cc
  1486. * src/XmlRpcMethod.h
  1487. * src/XmlRpcMethodFactory.cc
  1488. * src/XmlRpcMethodFactory.h
  1489. * src/XmlRpcMethodImpl.cc
  1490. * src/XmlRpcMethodImpl.h
  1491. * src/download_helper.cc
  1492. * src/download_helper.h
  1493. * test/Makefile.am
  1494. * test/XmlRpcMethodTest.cc
  1495. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Added xml-rpc request parser. The supported value types are:
  1497. i4/int, string, double, struct, array, base64. Currently only
  1498. libxml2 version is provided.
  1499. * src/Xml2XmlRpcRequestProcessor.cc
  1500. * src/Xml2XmlRpcRequestProcessor.h
  1501. * src/XmlRpcElements.cc
  1502. * src/XmlRpcElements.h
  1503. * src/XmlRpcRequest.h
  1504. * src/XmlRpcRequestParserController.cc
  1505. * src/XmlRpcRequestParserController.h
  1506. * src/XmlRpcRequestParserState.h
  1507. * src/XmlRpcRequestParserStateImpl.cc
  1508. * src/XmlRpcRequestParserStateImpl.h
  1509. * src/XmlRpcRequestParserStateMachine.cc
  1510. * src/XmlRpcRequestParserStateMachine.h
  1511. * src/XmlRpcRequestProcessor.h
  1512. * test/XmlRpcRequestParserControllerTest.cc
  1513. * test/XmlRpcRequestProcessorTest.cc
  1514. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. * Release 1.3.3
  1516. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Fixed compile error since r1202.
  1518. * src/ExpatMetalinkProcessor.cc
  1519. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Updated Ukrainian, Russian and Simplified Chinese
  1521. translations. Thanks to all translators.
  1522. * po/ru.po
  1523. * po/uk.po
  1524. * po/zh_CN.po
  1525. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Pass reference of Option object instead of pointer.
  1527. * src/download_helper.cc
  1528. * src/download_helper.h
  1529. * src/main.cc
  1530. * test/DownloadHelperTest.cc
  1531. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1533. from option directly. Instead, get them from RequestGroup.
  1534. * src/ActivePeerConnectionCommand.cc
  1535. * src/ActivePeerConnectionCommand.h
  1536. * src/PeerReceiveHandshakeCommand.cc
  1537. * src/RequestGroup.h
  1538. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Removed unused uploadLimitCheck and uploadLimit from
  1540. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1541. PeerInteractionCommand.
  1542. * src/PeerAbstractCommand.cc
  1543. * src/PeerAbstractCommand.h
  1544. * src/PeerInteractionCommand.cc
  1545. * src/PeerInteractionCommand.h
  1546. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Fixed broken file renaming feature since r1202.
  1548. * src/FtpNegotiationCommand.cc
  1549. * src/FtpNegotiationCommand.h
  1550. * src/HttpResponseCommand.cc
  1551. * src/RequestGroup.cc
  1552. * src/RequestGroup.h
  1553. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Removed unused debug log
  1555. * src/SocketCore.cc
  1556. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Generated configure and Makefile.in using autoconf 2.63 and
  1558. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1559. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1560. * configure.ac
  1561. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Moved piece statistics stuff to new PieceStatMan class.
  1563. Refactored PieceSelector interface.
  1564. * src/DefaultPieceStorage.cc
  1565. * src/DefaultPieceStorage.h
  1566. * src/LongestSequencePieceSelector.cc
  1567. * src/LongestSequencePieceSelector.h
  1568. * src/Makefile.am
  1569. * src/PieceSelector.h
  1570. * src/PieceStatMan.cc
  1571. * src/PieceStatMan.h
  1572. * src/RarestPieceSelector.cc
  1573. * src/RarestPieceSelector.h
  1574. * src/RequestGroup.cc
  1575. * test/DefaultPieceStorageTest.cc
  1576. * test/InOrderPieceSelector.h
  1577. * test/Makefile.am
  1578. * test/PieceStatManTest.cc
  1579. * test/RarestPieceSelectorTest.cc
  1580. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1581. Added static member _protocolFamily to SocketCore. By default,
  1582. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1583. address. Sometime SocketCore::bind() and
  1584. SocketCore::establishConnection() use difference protocl family
  1585. and latter cannot connect to former. To avoid this situation, we
  1586. limit protocol family to AF_INET for unit tests.
  1587. * src/SocketCore.cc
  1588. * src/SocketCore.h
  1589. * test/AllTest.cc
  1590. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Avoid std::bad_alloc for negative bencode string length.
  1592. * src/bencode.cc
  1593. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Supported segmented downloading with chunked transfer encoding and
  1595. content-length.
  1596. * src/DownloadCommand.cc
  1597. * src/HttpResponseCommand.cc
  1598. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Bump up version number to 1.3.3
  1600. * configure.ac
  1601. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1603. from 4096 to 65536 (for insanely large ftp login banners)
  1604. * src/FtpConnection.h
  1605. * test/FtpConnectionTest.cc
  1606. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. In DefaultBtContext::getActualBasePath(), return first
  1608. FileEntry::getPath() for single file torrent.
  1609. * src/DefaultBtContext.cc
  1610. * test/DefaultBtContextTest.cc
  1611. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1613. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1614. Removed _directIOAllowed member from DiskWriter.
  1615. * src/AbstractDiskWriter.cc
  1616. * src/AbstractDiskWriter.h
  1617. * src/AbstractSingleDiskAdaptor.cc
  1618. * src/AbstractSingleDiskAdaptor.h
  1619. * src/BinaryStream.h
  1620. * src/ByteArrayDiskWriter.h
  1621. * src/DefaultPieceStorage.cc
  1622. * src/DiskWriter.h
  1623. * src/MultiDiskAdaptor.cc
  1624. * src/MultiDiskAdaptor.h
  1625. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Now the constructor of AbstractDiskWriter takes filename as an
  1627. argument and filename argument is removed from openFile(),
  1628. initAndOpenFile(), openExistingFile() interface. storeDir member
  1629. and its accessor functions are removed from DiskAdaptor because it
  1630. is not used anymore. size() member function of DefaultDiskWriter,
  1631. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1632. opening file.
  1633. * src/AbstractDiskWriter.cc
  1634. * src/AbstractDiskWriter.h
  1635. * src/AbstractSingleDiskAdaptor.cc
  1636. * src/AbstractSingleDiskAdaptor.h
  1637. * src/ByteArrayDiskWriter.cc
  1638. * src/ByteArrayDiskWriter.h
  1639. * src/ByteArrayDiskWriterFactory.cc
  1640. * src/ByteArrayDiskWriterFactory.h
  1641. * src/DefaultDiskWriter.cc
  1642. * src/DefaultDiskWriter.h
  1643. * src/DefaultDiskWriterFactory.cc
  1644. * src/DefaultDiskWriterFactory.h
  1645. * src/DefaultPieceStorage.cc
  1646. * src/DirectDiskAdaptor.cc
  1647. * src/DirectDiskAdaptor.h
  1648. * src/DiskAdaptor.h
  1649. * src/DiskWriter.h
  1650. * src/DiskWriterFactory.h
  1651. * src/MessageDigestHelper.cc
  1652. * src/MultiDiskAdaptor.cc
  1653. * src/RequestGroup.cc
  1654. * src/UnknownLengthPieceStorage.cc
  1655. * src/Util.cc
  1656. * test/DefaultDiskWriterTest.cc
  1657. * test/DirectDiskAdaptorTest.cc
  1658. * test/FallocFileAllocationIteratorTest.cc
  1659. * test/MessageDigestHelperTest.cc
  1660. * test/MetalinkProcessorTest.cc
  1661. * test/MultiDiskAdaptorTest.cc
  1662. * test/MultiFileAllocationIteratorTest.cc
  1663. * test/SingleFileAllocationIteratorTest.cc
  1664. * test/UtilTest.cc
  1665. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1666. Fixed the bug that aria2 aborts when --select-file is used. This
  1667. bug was introduced in r1199.
  1668. * src/MultiDiskAdaptor.cc
  1669. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Code cleanup
  1671. * test/MockPieceStorage.cc
  1672. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Fixed the bug that read-only file with wrong file size will cause
  1674. error because it cannot be truncated to the correct size. Now if
  1675. file size is different than the expected one, re-open file in
  1676. writable mode.
  1677. * src/AbstractSingleDiskAdaptor.cc
  1678. * src/AbstractSingleDiskAdaptor.h
  1679. * src/BtCheckIntegrityEntry.cc
  1680. * src/DiskAdaptor.h
  1681. * src/MultiDiskAdaptor.h
  1682. * src/RequestGroup.cc
  1683. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Fixed the bug that with --check-integrity option aria2 reports
  1685. downloaded file size is 0 even if some parts of file is correctly
  1686. downloaded. This bug is reproducible for the download that a file
  1687. includes last piece is missing. This bug doesn't reveal for
  1688. single-torrent with file allocation on.
  1689. * src/IteratableChecksumValidator.cc
  1690. * test/IteratableChecksumValidatorTest.cc
  1691. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1693. * src/RequestGroupMan.cc
  1694. * src/AdaptiveURISelector.cc
  1695. * src/AdaptiveURISelector.h
  1696. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1697. * Release 1.3.2
  1698. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Updated README
  1700. * README
  1701. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Updated Ukrainian translations. Thanks to Alexander10.
  1703. * po/uk.po
  1704. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Code cleanup
  1706. * src/MetalinkParserStateMachine.cc
  1707. * src/MetalinkParserStateMachine.h
  1708. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1710. and expat simultaneously, MetalinkProcessor is now not base class
  1711. and it is directly implemented in XML2SAXMetalinkProcessor and
  1712. ExpatMetalinkProcessor.
  1713. * src/ExpatMetalinkProcessor.cc
  1714. * src/ExpatMetalinkProcessor.h
  1715. * src/Makefile.am
  1716. * src/MetalinkHelper.cc
  1717. * src/MetalinkProcessor.h
  1718. * src/MetalinkProcessorFactory.cc: Removed.
  1719. * src/MetalinkProcessorFactory.h: Removed
  1720. * src/XML2SAXMetalinkProcessor.cc
  1721. * src/XML2SAXMetalinkProcessor.h
  1722. * test/MetalinkProcessorTest.cc
  1723. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Bump up version number to 1.3.2
  1725. * configure.ac
  1726. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Added missing file.
  1728. * test/Makefile.am
  1729. * test/url-list-singleFileEndsWithSlash.torrent
  1730. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1732. request.
  1733. * src/AnnounceList.cc
  1734. * src/AnnounceList.h
  1735. * src/BDE.cc: Added
  1736. * src/BDE.h: Added
  1737. * src/DHTAbstractMessage.cc
  1738. * src/DHTAbstractMessage.h
  1739. * src/DHTAnnouncePeerMessage.cc
  1740. * src/DHTAnnouncePeerMessage.h
  1741. * src/DHTAnnouncePeerReplyMessage.cc
  1742. * src/DHTAnnouncePeerReplyMessage.h
  1743. * src/DHTFindNodeMessage.cc
  1744. * src/DHTFindNodeMessage.h
  1745. * src/DHTFindNodeReplyMessage.cc
  1746. * src/DHTFindNodeReplyMessage.h
  1747. * src/DHTGetPeersMessage.cc
  1748. * src/DHTGetPeersMessage.h
  1749. * src/DHTGetPeersReplyMessage.cc
  1750. * src/DHTGetPeersReplyMessage.h
  1751. * src/DHTMessageFactory.h
  1752. * src/DHTMessageFactoryImpl.cc
  1753. * src/DHTMessageFactoryImpl.h
  1754. * src/DHTMessageReceiver.cc
  1755. * src/DHTMessageTracker.cc
  1756. * src/DHTMessageTracker.h
  1757. * src/DHTPingMessage.cc
  1758. * src/DHTPingMessage.h
  1759. * src/DHTPingReplyMessage.cc
  1760. * src/DHTPingReplyMessage.h
  1761. * src/DHTQueryMessage.cc
  1762. * src/DHTQueryMessage.h
  1763. * src/DHTResponseMessage.cc
  1764. * src/DHTResponseMessage.h
  1765. * src/DefaultBtAnnounce.cc
  1766. * src/DefaultBtContext.cc
  1767. * src/DefaultBtContext.h
  1768. * src/HandshakeExtensionMessage.cc
  1769. * src/Makefile.am
  1770. * src/PeerListProcessor.h
  1771. * src/UTPexExtensionMessage.cc
  1772. * src/bencode.cc
  1773. * src/bencode.h
  1774. * test/AnnounceListTest.cc
  1775. * test/BDETest.cc: Added
  1776. * test/BencodeTest.cc
  1777. * test/DHTAnnouncePeerMessageTest.cc
  1778. * test/DHTAnnouncePeerReplyMessageTest.cc
  1779. * test/DHTFindNodeMessageTest.cc
  1780. * test/DHTFindNodeReplyMessageTest.cc
  1781. * test/DHTGetPeersMessageTest.cc
  1782. * test/DHTGetPeersReplyMessageTest.cc
  1783. * test/DHTMessageFactoryImplTest.cc
  1784. * test/DHTMessageTrackerTest.cc
  1785. * test/DHTPingMessageTest.cc
  1786. * test/DHTPingReplyMessageTest.cc
  1787. * test/Makefile.am
  1788. * test/MockDHTMessageFactory.h
  1789. * test/PeerListProcessorTest.cc
  1790. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1791. Use url-list (web-seeding) only for single-file torrent. This is
  1792. basically the same behavior with Metalink file with torrent and
  1793. URIs.
  1794. * src/RequestGroup.cc
  1795. * src/DefaultBtContext.cc
  1796. * test/DefaultBtContextTest.cc
  1797. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1798. Rewritten expr
  1799. * src/array_fun.h
  1800. * test/array_funTest.cc
  1801. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1803. * src/DefaultBtMessageDispatcher.cc
  1804. * src/a2algo.h
  1805. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Removed ExtendedMessagingAware. Instead of using inheritance,
  1807. added ExtensionMessageRegistry and it is passed to
  1808. DefaultExtensionMessageFactory.
  1809. * src/DefaultBtInteractive.cc
  1810. * src/DefaultBtInteractive.h
  1811. * src/DefaultExtensionMessageFactory.cc
  1812. * src/DefaultExtensionMessageFactory.h
  1813. * src/ExtendedMessagingAware.h: Removed.
  1814. * src/ExtensionMessageFactory.h
  1815. * src/ExtensionMessageRegistry.h: Added.
  1816. * src/Makefile.am
  1817. * src/PeerInteractionCommand.cc
  1818. * test/DefaultExtensionMessageFactoryTest.cc
  1819. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. Fixed typo in log messages
  1821. * src/MSEHandshake.cc
  1822. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Fixed the bug that prevents torrent download from finishing. The
  1824. bug doesn't reveal for all torrents. The torrents affected this
  1825. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1826. of pieces.
  1827. * src/bitfield.h
  1828. * test/bitfieldTest.cc
  1829. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Code cleanup
  1831. * src/PeerListProcessor.h
  1832. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1833. Removed RequestGroupAware
  1834. * src/AbstractCommand.cc
  1835. * src/AbstractCommand.h
  1836. * src/ActivePeerConnectionCommand.cc
  1837. * src/ActivePeerConnectionCommand.h
  1838. * src/DHTGetPeersCommand.cc
  1839. * src/DHTGetPeersCommand.h
  1840. * src/InitiatorMSEHandshakeCommand.cc
  1841. * src/InitiatorMSEHandshakeCommand.h
  1842. * src/Makefile.am
  1843. * src/PeerInitiateConnectionCommand.cc
  1844. * src/PeerInitiateConnectionCommand.h
  1845. * src/PeerInteractionCommand.cc
  1846. * src/PeerInteractionCommand.h
  1847. * src/RealtimeCommand.cc
  1848. * src/RealtimeCommand.h
  1849. * src/RequestGroupAware.cc: Removed
  1850. * src/RequestGroupAware.h: Removed
  1851. * src/SeedCheckCommand.cc
  1852. * src/SeedCheckCommand.h
  1853. * src/SleepCommand.cc
  1854. * src/TrackerWatcherCommand.cc
  1855. * src/TrackerWatcherCommand.h
  1856. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1857. Rewritten PeerListProcessor
  1858. * src/PeerListProcessor.h
  1859. * src/CompactPeerListProcessor.h: Removed
  1860. * src/CompactPeerListProcessor.cc: Removed
  1861. * src/DelegatingPeerListProcessor.cc: Removed.
  1862. * src/DefaultBtAnnounce.cc
  1863. * src/Makefile.am
  1864. * src/UTPexExtensionMessage.cc
  1865. * src/DefaultPeerListProcessor.h: Removed.
  1866. * src/DefaultPeerListProcessor.cc: Removed.
  1867. * src/DelegatingPeerListProcessor.h: Removed.
  1868. * test/Makefile.am
  1869. * test/PeerListProcessorTest.cc
  1870. * test/DefaultPeerListProcessorTest.cc: Removed.
  1871. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1872. Rewritten RequestGroupMan::calculateStat()
  1873. * src/RequestGroupMan.cc
  1874. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1875. Removed unnecessary virtual destructor for Request class.
  1876. * src/Request.cc
  1877. * src/Request.h
  1878. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1879. Avoid dynamic_pointer_cast.
  1880. * src/DHTGetPeersCommand.cc
  1881. * src/DHTGetPeersCommand.h
  1882. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  1884. BtEvent.
  1885. * src/AbstractBtEventListener.h: Removed.
  1886. * src/AbstractBtMessage.cc
  1887. * src/AbstractBtMessage.h
  1888. * src/BtAbortOutstandingRequestEvent.h
  1889. * src/BtCancelSendingPieceEvent.h
  1890. * src/BtChokedEvent.h: Removed.
  1891. * src/BtChokingEvent.h
  1892. * src/BtEvent.h: Removed
  1893. * src/BtEventListener.h: Removed.
  1894. * src/BtMessage.h
  1895. * src/BtPieceMessage.cc
  1896. * src/BtPieceMessage.h
  1897. * src/BtRequestMessage.cc
  1898. * src/BtRequestMessage.h
  1899. * src/DefaultBtMessageDispatcher.cc
  1900. * src/Makefile.am
  1901. * src/a2functional.h
  1902. * test/BtPieceMessageTest.cc
  1903. * test/BtRequestMessageTest.cc
  1904. * test/DefaultBtMessageDispatcherTest.cc
  1905. * test/MockBtMessage.h
  1906. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Code cleanup
  1908. * src/RequestGroupMan.cc
  1909. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1910. Code cleanup
  1911. * src/DownloadCommand.cc
  1912. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1913. Fixed segmentation fault when GZipDecoder::decode() returns 0
  1914. byte.
  1915. * src/DownloadCommand.cc
  1916. * src/bitfield.h
  1917. * test/bitfieldTest.cc
  1918. Fixed the bug that causes infinite loop if broken web server
  1919. returns chunked response without last "0" chunk-size marker and
  1920. closes connection.
  1921. * src/DownloadCommand.cc
  1922. Instantiate properly configured HttpDownloadCommand for
  1923. non-resumable downlaods.
  1924. * src/HttpResponseCommand.cc
  1925. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Rewritten array operation functions.
  1927. * src/BitfieldMan.cc
  1928. * src/array_fun.h
  1929. * test/array_funTest.cc
  1930. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1931. Removed unused variable 'query'
  1932. * src/Request.cc
  1933. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  1935. accidentally set to false in r1162.
  1936. * configure.ac
  1937. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1938. Code cleanup
  1939. * src/BNode.cc
  1940. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. Increase prefixLength for the bucket which doesn't own local node
  1942. ID when splitting bucket.
  1943. * src/DHTBucket.cc
  1944. * test/DHTBucketTest.cc
  1945. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1946. * Release 1.3.1
  1947. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Bump up version number to 1.3.1
  1949. * configure.ac
  1950. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Removed unused variable checkPoint. Also removed include directive
  1952. for TimeA2.h.
  1953. * src/SeedCheckCommand.h
  1954. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Fixed the bug that upload limit exceeds the value specified in
  1956. --seed-ratio option depending on the timing of the execution of
  1957. SeedCheckCommand.
  1958. * src/SeedCheckCommand.cc
  1959. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1960. Fixed the bug that removed peer's session upload/download length
  1961. are counted twice in _cachedTransferStat before it is
  1962. re-calculated. This affected the calculation of shara ratio,
  1963. resulting aria2 wrongly determines that specified share ratio is
  1964. reached. Also fixed the typo in calculateStatFor function name.
  1965. * src/BtSetup.cc
  1966. * src/DefaultPeerStorage.cc
  1967. * src/ShareRatioSeedCriteria.h
  1968. * test/ShareRatioSeedCriteriaTest.cc
  1969. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. * Release 1.3.0
  1971. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  1973. Nynorsk translations. Thanks to all translators.
  1974. * po/es.po
  1975. * po/ja.po
  1976. * po/nn.po
  1977. * po/ru.po
  1978. * po/uk.po
  1979. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1980. Rewritten isInRange()
  1981. * src/DHTBucket.cc
  1982. * test/DHTBucketTest.cc
  1983. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Fixed typo
  1985. * doc/aria2c.1.txt
  1986. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  1988. malloc/realloc is not used.
  1989. * src/configure.ac
  1990. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. BitfieldMan::getMissingIndexes family functions now takes unsigned
  1992. char* bitfield instead of stl container for efficiency.
  1993. PieceSelector::select now takes this
  1994. bitfield. RarestPieceSelector::select now also performs
  1995. efficiently for this change. bitfield namespace is introduced and
  1996. it has several helper functions to handle basic bitfield
  1997. operations such as test, count set bits, etc.
  1998. * src/BitfieldMan.cc
  1999. * src/BitfieldMan.h
  2000. * src/DefaultBtRequestFactory.cc
  2001. * src/DefaultPieceStorage.cc
  2002. * src/DefaultPieceStorage.h
  2003. * src/LongestSequencePieceSelector.cc
  2004. * src/LongestSequencePieceSelector.h
  2005. * src/Makefile.am
  2006. * src/Piece.cc
  2007. * src/Piece.h
  2008. * src/PieceSelector.h
  2009. * src/RarestPieceSelector.cc
  2010. * src/RarestPieceSelector.h
  2011. * src/Util.cc
  2012. * src/Util.h
  2013. * src/bitfield.h
  2014. * test/BitfieldManTest.cc
  2015. * test/LongestSequencePieceSelectorTest.cc
  2016. * test/Makefile.am
  2017. * test/RarestPieceSelectorTest.cc
  2018. * test/UtilTest.cc
  2019. * test/bitfieldTest.cc
  2020. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Made accepted socket non-block.
  2022. * src/FtpNegotiationCommand.cc
  2023. * src/HttpListenCommand.cc
  2024. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2025. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2026. * src/AbstractSingleDiskAdaptor.cc
  2027. * src/DefaultPieceStorage.cc
  2028. * src/DiskAdaptor.h
  2029. * src/DiskAdaptor.h
  2030. * src/MultiFileAllocationIterator.cc
  2031. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Run
  2033. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2034. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2035. it doesn't need to be called every time when
  2036. DefaultBtInteractive::doInteractionProcessing() is called.
  2037. * src/DefaultBtInteractive.cc
  2038. * src/DefaultBtInteractive.h
  2039. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Documented 'falloc' in man page.
  2041. * doc/aria2c.1.txt
  2042. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2043. Updated doc
  2044. * src/usage_text.h
  2045. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2047. allocation mode uses posix_fallocate() system call to allocate
  2048. file on disk. If you are using newer file systems such as ext4
  2049. (with extents support), btrfs or xfs, 'falloc' is your best
  2050. choice. It allocates large(few GiB) files almost instantly. Don't
  2051. use 'falloc' with legacy file systems such as ext3 because it
  2052. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2053. until allocation finishes. 'falloc' may not be available if your
  2054. system doesn't have posix_fallocate() system call.
  2055. * configure.ac
  2056. * src/AbstractDiskWriter.cc
  2057. * src/AbstractDiskWriter.h
  2058. * src/AbstractSingleDiskAdaptor.cc
  2059. * src/BinaryStream.h
  2060. * src/BtCheckIntegrityEntry.cc
  2061. * src/ByteArrayDiskWriter.h
  2062. * src/CheckIntegrityEntry.cc
  2063. * src/CheckIntegrityEntry.h
  2064. * src/DefaultPieceStorage.cc
  2065. * src/DiskAdaptor.cc
  2066. * src/DiskAdaptor.h
  2067. * src/DiskWriter.h
  2068. * src/FallocFileAllocationIterator.cc
  2069. * src/FallocFileAllocationIterator.h
  2070. * src/FileAllocationEntry.cc
  2071. * src/FileAllocationEntry.h
  2072. * src/Makefile.am
  2073. * src/MultiFileAllocationIterator.cc
  2074. * src/MultiFileAllocationIterator.h
  2075. * src/OptionHandlerFactory.cc
  2076. * src/RequestGroup.cc
  2077. * src/StreamCheckIntegrityEntry.cc
  2078. * src/prefs.cc
  2079. * src/prefs.h
  2080. * src/usage_text.h
  2081. * test/FallocFileAllocationIteratorTest.cc
  2082. * test/Makefile.am
  2083. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Removed duplicate enableDirectIO() call.
  2085. * src/MultiFileAllocationIterator.cc
  2086. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2088. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2089. cost of std::rotate().
  2090. * src/RarestPieceSelector.cc
  2091. * src/RarestPieceSelector.h
  2092. * test/RarestPieceSelectorTest.cc
  2093. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. Updated usage doc for --bt-tracker-interval option.
  2095. * src/usage_text.h
  2096. * doc/aria2c.1.txt
  2097. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Documented --bt-tracker-interval option in man page.
  2099. * doc/aria2c.1.txt
  2100. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Added an option to specify the interval between tracker requests.
  2102. If non-zero value is specified, aria2 uses it and ignores the
  2103. interval value in the response of tracker. If zero is specified,
  2104. aria2 determines the inteval value based on the tarcker response
  2105. and download progress.
  2106. * src/DefaultBtAnnounce.cc
  2107. * src/DefaultBtAnnounce.h
  2108. * src/OptionHandlerFactory.cc
  2109. * src/RequestGroup.cc
  2110. * src/prefs.cc
  2111. * src/prefs.h
  2112. * src/usage_text.h
  2113. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Added operator+=, operator-=, operator-
  2115. * src/TransferStat.cc
  2116. * src/TransferStat.h
  2117. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. Refactored RarestPieceSelector to reduce CPU load, especially for
  2119. addPieceStats.
  2120. * src/RarestPieceSelector.cc
  2121. * src/RarestPieceSelector.h
  2122. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2124. getAllMissingBlockIndexes to reduce a call to
  2125. array_function_base::operator[].
  2126. * src/BitfieldMan.cc
  2127. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Cached TransferStat/download speed to avoid to sum them up in each
  2129. call.
  2130. * src/DefaultPeerStorage.cc
  2131. * src/DefaultPeerStorage.h
  2132. * src/SegmentMan.cc
  2133. * src/SegmentMan.h
  2134. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2135. Typedefed cuid_t as int32_t in Command.h
  2136. * src/CUIDCounter.h
  2137. * src/Command.cc
  2138. * src/Command.h
  2139. * src/DownloadEngine.cc
  2140. * src/DownloadEngine.h
  2141. * src/PeerStat.h
  2142. * src/SegmentMan.cc
  2143. * src/SegmentMan.h
  2144. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Reduced the number of calls to PeerStorage::calculateStat() and
  2146. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2147. transfer rate.
  2148. * src/DefaultBtInteractive.cc
  2149. * src/DefaultBtMessageDispatcher.cc
  2150. * src/DefaultPeerStorage.cc
  2151. * src/DefaultPeerStorage.h
  2152. * src/DownloadCommand.cc
  2153. * src/DownloadEngine.cc
  2154. * src/PeerStorage.h
  2155. * src/SegmentMan.cc
  2156. * src/SegmentMan.h
  2157. * test/MockPeerStorage.h
  2158. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Prepended _dir+"/" after joining path elements in torrent file.
  2160. * src/DefaultBtContext.cc
  2161. * test/DefaultBtContextTest.cc
  2162. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Added missing IndexBtMessageValidator.h
  2164. * src/Makefile.am
  2165. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2167. Chinese translations. Thank you for contributing our project.
  2168. * po/id.po
  2169. * po/it.po
  2170. * po/ru.po
  2171. * po/uk.po
  2172. * po/zh_CN.po
  2173. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Updated README
  2175. * README
  2176. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2177. Bump up version number to 1.3.0
  2178. * configure.ac
  2179. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2180. Updated doc
  2181. * src/DefaultBtContext.h
  2182. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2183. Slice/joinPath for name of single torrent.
  2184. * src/DefaultBtContext.cc
  2185. * test/DefaultBtContextTest.cc
  2186. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Updated man page: Documented --dry-run and --index-out
  2188. options. Changed the default value of --uri-selector and
  2189. --http-auth-challenge options. Removed --direct-file-mapping
  2190. option. Added example for --index-out
  2191. * doc/aria2c.1.txt
  2192. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Updated TEXT_DRY_RUN
  2194. * src/usage_text.h
  2195. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Changed the default value of --uri-selector option from 'inorder'
  2197. to 'feedback'
  2198. * src/OptionHandlerFactory.cc
  2199. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Included current URI in exception message.
  2201. * src/AbstractCommand.cc
  2202. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Renamed ServerStatURISelector as FeedbackURISelector.
  2204. * src/FeedbackURISelector.cc
  2205. * src/FeedbackURISelector.h
  2206. * src/Makefile.am
  2207. * src/RequestGroupMan.cc
  2208. * src/ServerStatURISelector.cc
  2209. * src/ServerStatURISelector.h
  2210. * test/FeedbackURISelectorTest.cc
  2211. * test/Makefile.am
  2212. * test/ServerStatURISelectorTest.cc
  2213. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2214. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2215. all URIs are tested and their timeout is not reached.
  2216. * src/AdaptiveURISelector.cc
  2217. * src/AdaptiveURISelector.h
  2218. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Changed the default value of --http-auth-challenge option to false.
  2220. * src/OptionHandlerFactory.cc
  2221. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2222. Reuse URIs when all unused URIs run out.
  2223. * src/OptionHandlerFactory.cc
  2224. * src/RequestGroup.cc
  2225. * src/prefs.cc
  2226. * src/prefs.h
  2227. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2229. and BtRejectMessage are derived from RangeBtMessage class.
  2230. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2231. derived from IndexBtMessage class. BtChokeMessage,
  2232. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2233. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2234. ZeroBtMessage class.
  2235. * src/AbstractBtMessage.cc
  2236. * src/AbstractBtMessage.h
  2237. * src/BtAllowedFastMessage.cc
  2238. * src/BtAllowedFastMessage.h
  2239. * src/BtAllowedFastMessageValidator.h: Removed
  2240. * src/BtBitfieldMessage.cc
  2241. * src/BtBitfieldMessage.h
  2242. * src/BtCancelMessage.cc
  2243. * src/BtCancelMessage.h
  2244. * src/BtCancelMessageValidator.h: Removed
  2245. * src/BtChokeMessage.cc
  2246. * src/BtChokeMessage.h
  2247. * src/BtExtendedMessage.cc
  2248. * src/BtExtendedMessage.h
  2249. * src/BtHandshakeMessage.cc
  2250. * src/BtHandshakeMessage.h
  2251. * src/BtHaveAllMessage.cc
  2252. * src/BtHaveAllMessage.h
  2253. * src/BtHaveMessage.cc
  2254. * src/BtHaveMessage.h
  2255. * src/BtHaveMessageValidator.h: Removed
  2256. * src/BtHaveNoneMessage.cc
  2257. * src/BtHaveNoneMessage.h
  2258. * src/BtInterestedMessage.cc
  2259. * src/BtInterestedMessage.h
  2260. * src/BtKeepAliveMessage.cc
  2261. * src/BtKeepAliveMessage.h
  2262. * src/BtNotInterestedMessage.cc
  2263. * src/BtNotInterestedMessage.h
  2264. * src/BtPieceMessage.cc
  2265. * src/BtPieceMessage.h
  2266. * src/BtPortMessage.cc
  2267. * src/BtPortMessage.h
  2268. * src/BtRejectMessage.cc
  2269. * src/BtRejectMessage.h
  2270. * src/BtRejectMessageValidator.h: Removed
  2271. * src/BtRequestMessage.cc
  2272. * src/BtRequestMessage.h
  2273. * src/BtRequestMessageValidator.h: Removed
  2274. * src/BtSuggestPieceMessage.cc
  2275. * src/BtSuggestPieceMessage.h
  2276. * src/BtSuggestPieceMessageValidator.h: Removed
  2277. * src/BtUnchokeMessage.cc
  2278. * src/BtUnchokeMessage.h
  2279. * src/DefaultBtMessageFactory.cc
  2280. * src/IndexBtMessage.cc
  2281. * src/IndexBtMessage.h
  2282. * src/IndexBtMessageValidator.h
  2283. * src/Makefile.am
  2284. * src/PeerMessageUtil.cc
  2285. * src/PeerMessageUtil.h
  2286. * src/RangeBtMessage.cc
  2287. * src/RangeBtMessage.h
  2288. * src/RangeBtMessageValidator.h
  2289. * src/SimpleBtMessage.cc
  2290. * src/SimpleBtMessage.h
  2291. * src/ZeroBtMessage.cc
  2292. * src/ZeroBtMessage.h
  2293. * test/BtRequestMessageTest.cc
  2294. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Reverted usage_text.h to r1093 to avoid to lose translated
  2296. messages.
  2297. * src/usage_text.h
  2298. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2300. declared as non-const previously is now const and defined in class
  2301. definition.
  2302. * src/AbstractBtMessage.cc
  2303. * src/AbstractBtMessage.h
  2304. * src/BtAllowedFastMessage.cc
  2305. * src/BtAllowedFastMessage.h
  2306. * src/BtBitfieldMessage.h
  2307. * src/BtCancelMessage.cc
  2308. * src/BtCancelMessage.h
  2309. * src/BtChokeMessage.cc
  2310. * src/BtChokeMessage.h
  2311. * src/BtExtendedMessage.cc
  2312. * src/BtExtendedMessage.h
  2313. * src/BtHandshakeMessage.cc
  2314. * src/BtHandshakeMessage.h
  2315. * src/BtHaveAllMessage.cc
  2316. * src/BtHaveAllMessage.h
  2317. * src/BtHaveMessage.cc
  2318. * src/BtHaveMessage.h
  2319. * src/BtHaveNoneMessage.cc
  2320. * src/BtHaveNoneMessage.h
  2321. * src/BtInterestedMessage.cc
  2322. * src/BtInterestedMessage.h
  2323. * src/BtKeepAliveMessage.cc
  2324. * src/BtKeepAliveMessage.h
  2325. * src/BtMessage.h
  2326. * src/BtNotInterestedMessage.cc
  2327. * src/BtNotInterestedMessage.h
  2328. * src/BtPieceMessage.h
  2329. * src/BtPortMessage.cc
  2330. * src/BtPortMessage.h
  2331. * src/BtRejectMessage.cc
  2332. * src/BtRejectMessage.h
  2333. * src/BtRequestMessage.cc
  2334. * src/BtRequestMessage.h
  2335. * src/BtSuggestPieceMessage.cc
  2336. * src/BtSuggestPieceMessage.h
  2337. * src/BtUnchokeMessage.cc
  2338. * src/BtUnchokeMessage.h
  2339. * src/SimpleBtMessage.cc
  2340. * src/SimpleBtMessage.h
  2341. * test/MockBtMessage.h
  2342. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Use FileEntry::exists()
  2344. * src/MultiDiskAdaptor.cc
  2345. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Added exists()
  2347. * src/FileEntry.cc
  2348. * src/FileEntry.h
  2349. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Added missing prefix dir.
  2351. * src/download_helper.cc
  2352. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2354. * src/CopyDiskAdaptor.cc: Removed
  2355. * src/CopyDiskAdaptor.h: Removed
  2356. * src/DefaultPieceStorage.cc
  2357. * src/Makefile.am
  2358. * src/OptionHandlerFactory.cc
  2359. * src/prefs.cc
  2360. * src/prefs.h
  2361. * src/usage_text.h
  2362. * test/CopyDiskAdaptorTest.cc: Removed
  2363. * test/Makefile.am
  2364. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Rewritten isSameFileBeingDownloaded()
  2366. * src/RequestGroupMan.cc
  2367. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Removed getName() from DownloadContext. getName() is declared in
  2369. BtContext.
  2370. * src/BtContext.h
  2371. * src/DownloadContext.h
  2372. * src/SingleFileDownloadContext.cc
  2373. * src/SingleFileDownloadContext.h
  2374. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2375. in AbstractSingleDiskAdaptor.
  2376. * src/AbstractSingleDiskAdaptor.h
  2377. * src/DiskAdaptor.h
  2378. * src/MultiDiskAdaptor.h
  2379. * src/RequestGroup.cc
  2380. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2381. MultiDiskAdaptor.
  2382. * src/DefaultPieceStorage.cc
  2383. * src/MultiDiskAdaptor.cc
  2384. * src/MultiDiskAdaptor.h
  2385. * test/MultiDiskAdaptorTest.cc
  2386. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. FileEntry::getPath() contains store(top level) directory to
  2388. simplify path handling operation. In the previous implementation,
  2389. store directory is concatenated to FileEntry::getPath() in
  2390. DownloadContext.
  2391. * src/BtDependency.cc
  2392. * src/BtPostDownloadHandler.cc
  2393. * src/CopyDiskAdaptor.cc
  2394. * src/DefaultBtContext.cc
  2395. * src/DirectDiskAdaptor.cc
  2396. * src/FileEntry.cc
  2397. * src/FileEntry.h
  2398. * src/FtpNegotiationCommand.cc
  2399. * src/HttpResponse.cc
  2400. * src/HttpResponseCommand.cc
  2401. * src/Metalink2RequestGroup.cc
  2402. * src/MultiDiskAdaptor.cc
  2403. * src/MultiDiskAdaptor.h
  2404. * src/MultiFileAllocationIterator.cc
  2405. * src/RequestGroup.cc
  2406. * src/SingleFileDownloadContext.cc
  2407. * src/SingleFileDownloadContext.h
  2408. * src/download_helper.cc
  2409. * test/BtDependencyTest.cc
  2410. * test/CopyDiskAdaptorTest.cc
  2411. * test/DefaultBtContextTest.cc
  2412. * test/DefaultBtProgressInfoFileTest.cc
  2413. * test/DirectDiskAdaptorTest.cc
  2414. * test/DownloadHelperTest.cc
  2415. * test/FileEntryTest.cc
  2416. * test/MultiDiskAdaptorTest.cc
  2417. * test/MultiFileAllocationIteratorTest.cc
  2418. * test/RequestGroupTest.cc
  2419. * test/SingleFileDownloadContextTest.cc
  2420. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Fixed compiler warning
  2422. * src/download_helper.cc
  2423. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Throw exception if same infohash torrent is now downloading.
  2425. * src/RequestGroup.cc
  2426. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Added --dry-run option. In this mode, aria2 just checks whether
  2428. the remote file is available and doesn't download data. This
  2429. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2430. are canceled in this mode.
  2431. * src/FtpNegotiationCommand.cc
  2432. * src/HttpResponseCommand.cc
  2433. * src/HttpResponseCommand.h
  2434. * src/OptionHandlerFactory.cc
  2435. * src/RequestGroup.cc
  2436. * src/RequestGroupMan.cc
  2437. * src/prefs.cc
  2438. * src/prefs.h
  2439. * src/usage_text.h
  2440. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2441. Fixed compiler waring
  2442. * test/UriListParserTest.cc
  2443. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Parse options in -i list using OptionParser.
  2445. * src/UriListParser.cc
  2446. * src/UriListParser.h
  2447. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Don't reset URI in retry to avoid additional round trips because
  2449. of redirects.
  2450. * src/AbstractCommand.cc
  2451. * src/OptionHandlerFactory.cc
  2452. * src/prefs.cc
  2453. * src/prefs.h
  2454. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Declared hide() in OptionHandler.
  2456. * src/NameMatchOptionHandler.h
  2457. * src/OptionHandler.h
  2458. * src/OptionHandlerImpl.h
  2459. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2460. Updated doc
  2461. * src/Peer.h
  2462. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Added log message in setStatusInternal()
  2464. * src/ServerStat.cc
  2465. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2466. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2467. effectively exclude failed server.
  2468. * src/AbstractCommand.cc
  2469. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Added --index-out option to specify each file path for torrent.
  2471. Here index shown in --show-files option is used to specify which
  2472. file path should be altered. For example, to change the file path
  2473. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  2474. option multiple times: --index-out=1=aria2.tar.bz2
  2475. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  2476. available. This option can be specified in -i list.
  2477. * src/DefaultBtContext.cc
  2478. * src/DefaultBtContext.h
  2479. * src/MultiDiskAdaptor.cc
  2480. * src/MultiDiskAdaptor.h
  2481. * src/MultiFileAllocationIterator.cc
  2482. * src/OptionHandlerFactory.cc
  2483. * src/OptionHandlerImpl.h
  2484. * src/Util.cc
  2485. * src/Util.h
  2486. * src/download_helper.cc
  2487. * src/prefs.cc
  2488. * src/prefs.h
  2489. * src/usage_text.h
  2490. * test/DefaultBtContextTest.cc
  2491. * test/MultiDiskAdaptorTest.cc
  2492. * test/MultiFileAllocationIteratorTest.cc
  2493. * test/UtilTest.cc
  2494. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Use Util::pathJoin()
  2496. * src/MetalinkParserController.cc
  2497. * test/test.xml
  2498. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. Use Util::pathJoin()
  2500. * src/DefaultBtContext.cc
  2501. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2502. Added Util::pathJoin()
  2503. * src/Util.h
  2504. * test/UtilTest.cc
  2505. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Applied basename function to remove directory element in
  2507. content-disposition value.
  2508. Return empty string if content-disposition value is ".." or ".".
  2509. * src/Util.cc
  2510. * test/UtilTest.cc
  2511. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Added --max-overall-download-limit in man page.
  2513. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  2514. * doc/aria2c.1.txt
  2515. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Added --max-overall-download-limit option. Now --max-upload-limit
  2517. option is not ignored when --max-overall-upload-limit option has
  2518. non-zero value. aria2 checks download(upload) speed in the order:
  2519. first checks overall speed limit and if it is not exceeded, then
  2520. checks speed limit per download. Thus you can specify both
  2521. value. For example, set --max-overall-download-limit=1M and
  2522. --max-download-limit=500K to prevent from one download from eating
  2523. all overall speed limit.
  2524. * src/DefaultBtInteractive.cc
  2525. * src/DefaultBtInteractive.h
  2526. * src/DefaultBtMessageDispatcher.cc
  2527. * src/DefaultBtMessageDispatcher.h
  2528. * src/DownloadCommand.cc
  2529. * src/DownloadCommand.h
  2530. * src/FtpNegotiationCommand.cc
  2531. * src/HttpResponseCommand.cc
  2532. * src/OptionHandlerFactory.cc
  2533. * src/PeerInteractionCommand.cc
  2534. * src/RequestGroup.cc
  2535. * src/RequestGroup.h
  2536. * src/RequestGroupMan.cc
  2537. * src/RequestGroupMan.h
  2538. * src/prefs.cc
  2539. * src/prefs.h
  2540. * src/usage_text.h
  2541. * test/DefaultBtMessageDispatcherTest.cc
  2542. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2543. Documented select-file option in Input File section.
  2544. Documented --http-auth-challenge option.
  2545. * doc/aria2c.1.txt
  2546. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Now select-file can be specified in the uri list(-i list).
  2548. * src/BtContext.cc
  2549. * src/BtContext.h
  2550. * src/RequestGroup.cc
  2551. * src/Sequence.h
  2552. * src/download_helper.cc
  2553. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Made the upper value of --max-concurrent-downloads options unlimited.
  2555. * src/OptionHandlerFactory.cc
  2556. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Fixed the bug that disk writer is not created even if it shares
  2558. same piece with the preceding file if the length of previous file
  2559. is 0.
  2560. * src/MultiDiskAdaptor.cc
  2561. * test/MultiDiskAdaptorTest.cc
  2562. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2563. In BitTorrent, Open files in read-only mode for hash check. After
  2564. that, re-open file in read/write mode only when the download is
  2565. not finished.
  2566. * src/AbstractDiskWriter.cc
  2567. * src/AbstractDiskWriter.h
  2568. * src/AbstractSingleDiskAdaptor.cc
  2569. * src/AbstractSingleDiskAdaptor.h
  2570. * src/BtCheckIntegrityEntry.cc
  2571. * src/DiskAdaptor.h
  2572. * src/DiskWriter.h
  2573. * src/MultiDiskAdaptor.cc
  2574. * src/MultiDiskAdaptor.h
  2575. * src/RequestGroup.cc
  2576. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Added --http-auth-challenge option. If it is set to true(by
  2578. default), aria2 sends HTTP authorization header only when it is
  2579. requested by the server. If false is set, then authorization
  2580. header is always sent to the server. This is useful for servers
  2581. that don't respond 401 code when authentication is required.
  2582. There is an exception: if username and password are embedded in
  2583. URI, authorization header is always sent to the server regardless
  2584. of this option.
  2585. * src/AuthConfigFactory.cc
  2586. * src/HttpSkipResponseCommand.cc
  2587. * src/OptionHandlerFactory.cc
  2588. * src/prefs.cc
  2589. * src/prefs.h
  2590. * src/usage_text.h
  2591. * test/AuthConfigFactoryTest.cc
  2592. * test/HttpRequestTest.cc
  2593. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2594. * Release 1.2.0
  2595. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2597. Thanks to all translators.
  2598. * po/es.po
  2599. * po/ja.po
  2600. * po/ru.po
  2601. * po/uk.po
  2602. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Call deleteSocketForReadCheck() before socket is closed.
  2604. * src/HttpListenCommand.cc
  2605. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2606. Defined virtual destructor for BObject.
  2607. * src/bencode.h
  2608. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2609. Rewritten BDE to make it efficient.
  2610. * src/bencode.cc
  2611. * src/bencode.h
  2612. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Removed function throw list.
  2614. * src/bencode.cc
  2615. * src/bencode.h
  2616. * test/BencodeTest.cc
  2617. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Enclosed all URLs in double quotes in command-line examples.
  2619. * doc/aria2c.1.txt
  2620. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Updated reference/see also section.
  2622. * README
  2623. * doc/aria2c.1.txt
  2624. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Reorganized man page based on man man-pages.
  2626. * doc/aria2c.1.txt
  2627. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2629. because same documents are available in man page. Added
  2630. References section.
  2631. * README
  2632. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2634. PERFORMANCE PROFILE section.
  2635. * doc/aria2c.1.txt
  2636. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Rewritten the section for configuration file.
  2638. * README
  2639. * doc/aria2c.1.txt
  2640. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. Fixed the segmentation fault during execution of choking algorithm
  2642. in leecher state because of broken compare operator
  2643. implementation.
  2644. * src/BtLeecherStateChoke.cc
  2645. * src/BtLeecherStateChoke.h
  2646. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2647. Open file in binary mode.
  2648. * src/CookieStorage.cc
  2649. * src/DHTSetup.cc
  2650. * src/DHTUtil.cc
  2651. * src/Netrc.cc
  2652. * src/NsCookieParser.cc
  2653. * src/ProtocolDetector.cc
  2654. * src/RequestGroupMan.cc
  2655. * src/Signature.cc
  2656. * src/bencode.cc
  2657. * src/download_helper.cc
  2658. * src/option_processing.cc
  2659. * test/CookieParserTest.cc
  2660. * test/DefaultBtProgressInfoFileTest.cc
  2661. * test/FileTest.cc
  2662. * test/GZipDecoderTest.cc
  2663. * test/RequestGroupManTest.cc
  2664. * test/SignatureTest.cc
  2665. * test/SingleFileAllocationIteratorTest.cc
  2666. * test/UriListParserTest.cc
  2667. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Removed operator[] because it is ambiguous with built-in []
  2669. operator.
  2670. * src/array_fun.h
  2671. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2672. Fixed compile error
  2673. * src/OptionParser.cc
  2674. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2675. Added missing call to arrayWrapperConst
  2676. * test/array_funTest.cc
  2677. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2678. Use array_wrapper instead of array_ptr.
  2679. * src/DHTRoutingTableDeserializer.cc
  2680. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2681. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2682. * src/array_fun.h
  2683. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Added array_wrapper template.
  2685. * src/array_fun.h
  2686. * test/array_funTest.cc
  2687. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2688. Use operator T* of array_ptr.
  2689. * src/OptionParser.cc
  2690. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Use localhost instead of 127.0.0.1
  2692. * test/FtpConnectionTest.cc
  2693. * test/MSEHandshakeTest.cc
  2694. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Added operator T*
  2696. * src/array_fun.h
  2697. * test/array_funTest.cc
  2698. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Use dynamically allocated char array to detect memory access
  2700. violation.
  2701. * src/DHTRoutingTableDeserializer.cc
  2702. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2704. defined.
  2705. * src/PeerMessageUtil.cc
  2706. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2708. * configure.ac
  2709. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2710. Added a check to see struct sockaddr_in has sin_len member.
  2711. * configure.ac
  2712. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Fixed buffer overrun.
  2714. * src/DHTRoutingTableDeserializer.cc
  2715. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Added LL for long long int constant.
  2717. * test/FtpConnectionTest.cc
  2718. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Casted to unsigned int to suppress compiler warning on netbsd.
  2720. * src/BtRuntime.h
  2721. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2723. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2724. type time_t.
  2725. * src/SimpleLogger.cc
  2726. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2727. Added test for FtpConnection::receiveSizeResponse().
  2728. * test/FtpConnectionTest.cc
  2729. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2730. Fix epoll error on the old kernel 2.6.8 or ealier.
  2731. * src/EpollEventPoll.cc
  2732. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Use Util::parseLLInt instead of sscanf for portability. The
  2734. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2735. * src/FtpConnection.cc
  2736. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2738. block. It should not filter anything.
  2739. * src/BitfieldMan.cc
  2740. * src/ConsoleStatCalc.cc
  2741. * test/BitfieldManTest.cc
  2742. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Fixed the bug that the boolean options that don't take arguments
  2744. don't work.
  2745. * src/OptionHandlerImpl.h
  2746. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Fixed broken selected file BitTorrent download.
  2748. * src/MultiDiskAdaptor.cc
  2749. * test/MultiDiskAdaptorTest.cc
  2750. * test/MultiFileAllocationIteratorTest.cc
  2751. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Fixed #define guard for EpollEventPoll
  2753. * src/EpollEventPoll.h
  2754. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Wait 2 seconds. 1 second is sometimes not enough.
  2756. * test/TimeSeedCriteriaTest.cc
  2757. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Use localhost instead of 127.0.0.1.
  2759. * test/DHTConnectionImplTest.cc
  2760. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Suppressed compiler warning.
  2762. * src/AdaptiveURISelector.cc
  2763. * src/DefaultPieceStorage.cc
  2764. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2765. Defined virtual destructor.
  2766. * src/MetalinkParserState.h
  2767. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2768. Give NULL for second argument of getaddrinfo instead of "0".
  2769. * src/NameResolver.cc
  2770. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2772. included strptime doesn't parse data for this format.
  2773. * src/FtpConnection.cc
  2774. * test/FtpConnectionTest.cc
  2775. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. Removed tests giving -1 for unsigned argument.
  2777. * test/SingleFileDownloadContextTest.cc
  2778. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Don't use sha256 in tests because it might not be supported by the
  2780. SSL library.
  2781. * test/MetalinkProcessorTest.cc
  2782. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2783. Removed tests giving -1 for unsigned argument.
  2784. * test/AlphaNumberDecoratorTest
  2785. * test/BitfieldManTest.cc
  2786. * test/DefaultBtContextTest.cc
  2787. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Fixed compile error without libcares when epoll is available.
  2789. * src/EpollEventPoll.cc
  2790. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Included fstream instead of iostream.
  2792. * test/SignatureTest.cc
  2793. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Removed #include <algorithm>
  2795. * test/RequestGroupTest.cc
  2796. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2797. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2798. using RequestGroup::extractURIResult().
  2799. * src/AdaptiveURISelector.cc
  2800. * src/RequestGroup.cc
  2801. * src/RequestGroup.h
  2802. * test/RequestGroupTest.cc
  2803. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Added tests for array_ptr.
  2805. * test/array_funTest.cc
  2806. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. Don't send ip parameter to a tracker if ip parameter is empty
  2808. string.
  2809. * src/DefaultBtAnnounce.cc
  2810. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2811. Adjusted line feed.
  2812. * src/version_usage.cc
  2813. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Print tags, possible values when OptionHandlerException is caught.
  2815. * src/option_processing.cc
  2816. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2817. Changed the message for FatalException.
  2818. * src/OptionParser.cc
  2819. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2820. Documented --bt-external-ip option in man page. Updated man pages
  2821. for --proxy-method option.
  2822. * doc/aria2c.1.txt
  2823. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2824. Use GET method for FTP via HTTP proxy.
  2825. * src/FtpInitiateConnectionCommand.cc
  2826. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Changed the default value of --proxy-method option from 'tunnel'
  2828. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2829. option.
  2830. * src/AbstractCommand.cc
  2831. * src/AbstractCommand.h
  2832. * src/FtpInitiateConnectionCommand.cc
  2833. * src/HttpDownloadCommand.cc
  2834. * src/HttpInitiateConnectionCommand.cc
  2835. * src/HttpInitiateConnectionCommand.h
  2836. * src/OptionHandlerFactory.cc
  2837. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2838. Initialized _logger
  2839. * src/SelectEventPoll.cc
  2840. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2841. Defined a copy constructor for the same type.
  2842. * src/SharedHandle.h
  2843. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2844. Added OptionParser::parseArg() which internally uses getopt_long
  2845. to parse command-line options. All command-line options are now
  2846. configured by OptionHandler. No manual editing of struct option*
  2847. is required any more.
  2848. * src/NameMatchOptionHandler.h
  2849. * src/OptionHandler.h
  2850. * src/OptionHandlerFactory.cc
  2851. * src/OptionHandlerImpl.h
  2852. * src/OptionParser.cc
  2853. * src/OptionParser.h
  2854. * src/array_fun.h
  2855. * src/main.cc
  2856. * src/option_processing.cc
  2857. * test/OptionHandlerTest.cc
  2858. * test/OptionParserTest.cc
  2859. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2860. Fixed configure error with --disable-epoll
  2861. * configure.ac
  2862. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2863. Fixed compile error when HAVE_EPOLL is not defined.
  2864. Fixed linker error on bigendian systems.
  2865. * src/SocketCore.cc
  2866. * src/SocketCore.h
  2867. * test/DefaultBtProgressInfoFileTest.cc
  2868. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Added --bt-external-ip option. You can specify the external IP
  2870. address to report to a BitTorrent tracker. Although this function
  2871. is named 'external', it can accept any kind of IP addresses.
  2872. * src/DefaultBtAnnounce.cc
  2873. * src/OptionHandlerFactory.cc
  2874. * src/option_processing.cc
  2875. * src/prefs.cc
  2876. * src/prefs.h
  2877. * src/usage_text.h
  2878. * test/DefaultBtAnnounceTest.cc
  2879. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2880. Extracted the algorithm to find the longest incremental sequence
  2881. as max_sequence template.
  2882. * src/LongestSequencePieceSelector.cc
  2883. * src/a2algo.h
  2884. * test/Makefile.am
  2885. * test/a2algoTest.cc
  2886. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  2888. * src/usage_text.h
  2889. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Updated doc for --uri-selector, --http-server-listen-port and
  2891. --enable-http-server option. Documented --event-poll option.
  2892. * doc/aria2c.1.txt
  2893. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2894. Updated doc for --enable-http-server.
  2895. * src/usage_text.h
  2896. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2897. Documented --http-server-listen-port and --enable-http-server in
  2898. man page.
  2899. * doc/aria2c.1.txt
  2900. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2901. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  2902. translations. Thanks to all translators.
  2903. * po/es.po
  2904. * po/id.po
  2905. * po/it.po
  2906. * po/ru.po
  2907. * po/uk.po
  2908. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Bump up version number to 1.2.0
  2910. * configure.ac
  2911. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2912. BtContext::getAnnounceTiers() now returns const reference.
  2913. * src/BtContext.h
  2914. * src/DefaultBtContext.cc
  2915. * src/DefaultBtContext.h
  2916. * test/MockBtContext.h
  2917. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Change the number of retries for tracker request based on the
  2919. number of available tracker in a torrent file.
  2920. * src/TrackerWatcherCommand.cc
  2921. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Added _maxTries property to RequestGroup and assign the option
  2923. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  2924. RequestGroup::getMaxTries() instead of
  2925. Option::getAsInt(PREF_MAX_TRIES).
  2926. * src/AbstractCommand.cc
  2927. * src/RequestGroup.cc
  2928. * src/RequestGroup.h
  2929. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2930. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  2931. Mandriva. I modified the patch: make RequestGroup have the
  2932. timeout value and AdaptiveURISelector directly modifies that
  2933. value.
  2934. * src/AbstractCommand.cc
  2935. * src/AdaptiveURISelector.cc
  2936. * src/AdaptiveURISelector.h
  2937. * src/FtpNegotiationCommand.cc
  2938. * src/RequestGroup.cc
  2939. * src/RequestGroup.h
  2940. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2941. Fixed compiler warning
  2942. * test/IteratableChecksumValidatorTest.cc
  2943. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2944. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  2945. integrated downloads. This PieceSelector subclass finds the
  2946. longest continuous sequence in the available missing pieces and
  2947. selects the last index of such sequence. This makes HTTP/FTP
  2948. connections less interrupted by the pieces obtained by BitTorrent
  2949. peers.
  2950. * src/DefaultPieceStorage.cc
  2951. * src/DefaultPieceStorage.h
  2952. * src/LongestSequencePieceSelector.cc
  2953. * src/LongestSequencePieceSelector.h
  2954. * src/Makefile.am
  2955. * src/PieceSelector.h
  2956. * src/RarestPieceSelector.h
  2957. * src/RequestGroup.cc
  2958. * test/BtDependencyTest.cc
  2959. * test/DefaultPieceStorageTest.cc
  2960. * test/IteratableChecksumValidatorTest.cc
  2961. * test/LongestSequencePieceSelectorTest.cc
  2962. * test/Makefile.am
  2963. * test/SegmentManTest.cc
  2964. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2965. Fixed the bug that the average speed is wrong in
  2966. http/ftp/BitTorrent integrated download. Only the download bytes
  2967. in BitTorrent were considered.
  2968. * src/RequestGroup.cc
  2969. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Choose port for BitTorrent/DHT randomly from the specified range.
  2971. * src/DHTConnectionImpl.cc
  2972. * src/PeerListenCommand.cc
  2973. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Send HTTP Authorization header only if it is requested by the
  2975. server(response 401). There are some exceptions. The authorization
  2976. header for proxy is always sent if it is available without request
  2977. by the server. If username/password is specified in the URI, it
  2978. is immediately sent to the server without request by the server.
  2979. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  2980. SharedHandle<AuthConfig>().
  2981. NetrcAuthResolver::resolveAuthConfig() returns
  2982. SharedHandle<AuthConfig>() if no AuthConfig is available.
  2983. * src/AbstractAuthResolver.cc
  2984. * src/AbstractProxyRequestCommand.cc
  2985. * src/AuthConfigFactory.cc
  2986. * src/AuthConfigFactory.h
  2987. * src/HttpConnection.cc
  2988. * src/HttpRequest.cc
  2989. * src/HttpRequest.h
  2990. * src/HttpResponse.cc
  2991. * src/HttpResponseCommand.cc
  2992. * src/HttpSkipResponseCommand.cc
  2993. * test/AuthConfigFactoryTest.cc
  2994. * test/HttpRequestTest.cc
  2995. * test/HttpResponseTest.cc
  2996. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Remove leading "--" from help keyword and a substring after "="
  2998. from help keyword, so that one can query options by '-h--max-' or
  2999. '-hmax-peers=10'.
  3000. * src/option_processing.cc
  3001. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3002. Rewritten PStringVisitor and its implementation.
  3003. * src/PStringBuildVisitor.cc
  3004. * src/PStringBuildVisitor.h
  3005. * src/PStringDatum.h
  3006. * src/PStringNumLoop.h
  3007. * src/PStringSegment.cc
  3008. * src/PStringSegment.h
  3009. * src/PStringSelect.h
  3010. * src/PStringVisitor.h
  3011. * src/download_helper.cc
  3012. * test/PStringBuildVisitorTest.cc
  3013. * test/ParameterizedStringParserTest.cc
  3014. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Persist connection between the built-in HTTP server and a client
  3016. if a client supports keep-alive. Fixed the bug that aria2 exits
  3017. when the HTTP server receives EOF from a client.
  3018. * src/HttpServer.cc
  3019. * src/HttpServer.h
  3020. * src/HttpServerCommand.cc
  3021. * src/HttpServerCommand.h
  3022. * src/HttpServerResponseCommand.cc
  3023. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3024. Added experimental built-in HTTP server. Currently, when a client
  3025. accesses to the server, it responds with the current download
  3026. progress. By default, it is disabled. To enable the server, give
  3027. --enable-http-server option. To change the default port number
  3028. for the server to listen to, use --http-server-listen-port option.
  3029. The response HTML is very simple and refreshes it self each 1
  3030. second. Because of this refresh, you see flicker in normal web
  3031. browser such as Firefox. I recommend to use console-based browser
  3032. such as elinks, w3m. To connect to the server, run 'elinks
  3033. http://localhost:6800/' while running aria2. Please replace port
  3034. number '6800'(which is default) with your preference.
  3035. * src/DownloadEngineFactory.cc
  3036. * src/HttpHeader.cc
  3037. * src/HttpHeader.h
  3038. * src/HttpHeaderProcessor.cc
  3039. * src/HttpHeaderProcessor.h
  3040. * src/HttpListenCommand.cc
  3041. * src/HttpListenCommand.h
  3042. * src/HttpServer.cc
  3043. * src/HttpServer.h
  3044. * src/HttpServerCommand.cc
  3045. * src/HttpServerCommand.h
  3046. * src/HttpServerResponseCommand.cc
  3047. * src/HttpServerResponseCommand.h
  3048. * src/Makefile.am
  3049. * src/OptionHandlerFactory.cc
  3050. * src/Util.cc
  3051. * src/Util.h
  3052. * src/help_tags.h
  3053. * src/option_processing.cc
  3054. * src/prefs.cc
  3055. * src/prefs.h
  3056. * src/usage_text.h
  3057. * test/HttpHeaderProcessorTest.cc
  3058. * test/UtilTest.cc
  3059. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3060. Removed.
  3061. * src/CheckIntegrityMan.cc
  3062. * src/FileAllocationMan.cc
  3063. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3064. Made (piece) hash check sequential for each RequestGroup because
  3065. simultaneous hash check is slower than sequential execution.
  3066. * src/CheckIntegrityCommand.cc
  3067. * src/CheckIntegrityDispatcherCommand.cc
  3068. * src/CheckIntegrityDispatcherCommand.h
  3069. * src/CheckIntegrityMan.h
  3070. * src/ConsoleStatCalc.cc
  3071. * src/DownloadCommand.cc
  3072. * src/DownloadEngine.cc
  3073. * src/DownloadEngine.h
  3074. * src/DownloadEngineFactory.cc
  3075. * src/Makefile.am
  3076. * src/Makefile.in
  3077. * src/RequestGroup.cc
  3078. * src/StatCalc.h
  3079. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3080. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3081. SequentialDispatcherCommand.
  3082. * src/FileAllocationDispatcherCommand.cc
  3083. * src/SequentialDispatcherCommand.h
  3084. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Rewritten FileAllocationDispatcherCommand using brand new
  3086. SequentialDispatcherCommand.
  3087. * src/DownloadEngineFactory.cc
  3088. * src/FileAllocationCommand.cc
  3089. * src/FileAllocationDispatcherCommand.cc
  3090. * src/FileAllocationDispatcherCommand.h
  3091. * src/Makefile.am
  3092. * src/SequentialDispatcherCommand.h
  3093. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3094. Replaced FileAllocationMan with
  3095. SequentialPicker<FileAllocationEntry>.
  3096. * src/BtCheckIntegrityEntry.cc
  3097. * src/ConsoleStatCalc.cc
  3098. * src/DownloadEngine.cc
  3099. * src/DownloadEngine.h
  3100. * src/DownloadEngineFactory.cc
  3101. * src/FileAllocationCommand.cc
  3102. * src/FileAllocationDispatcherCommand.cc
  3103. * src/FileAllocationMan.h
  3104. * src/Makefile.am
  3105. * src/SequentialPicker.h
  3106. * src/StatCalc.h
  3107. * src/StreamCheckIntegrityEntry.cc
  3108. * test/Makefile.am
  3109. * test/SequentialPickerTest.cc
  3110. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Added doc for adaptive URI selector.
  3112. * doc/aria2c.1.txt
  3113. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3114. Added doc for adaptive URI selector.
  3115. * src/usage_text.h
  3116. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Added doc for --bt-max-peers option.
  3118. * doc/aria2c.1.txt
  3119. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3120. Added doc for --bt-hash-check-seed option.
  3121. * doc/aria2c.1.txt
  3122. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. Documented exit codes.
  3124. * doc/aria2c.1.txt
  3125. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3126. Added --bt-max-peers option to specify the maximum number of peers
  3127. per torrent. 0 means unlimited number of peers.
  3128. * src/ActivePeerConnectionCommand.cc
  3129. * src/BtRuntime.h
  3130. * src/DefaultPeerStorage.cc
  3131. * src/DefaultPeerStorage.h
  3132. * src/OptionHandlerFactory.cc
  3133. * src/RequestGroup.cc
  3134. * src/option_processing.cc
  3135. * src/prefs.cc
  3136. * src/prefs.h
  3137. * src/usage_text.h
  3138. * test/DefaultPeerStorageTest.cc
  3139. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3140. Added --bt-hash-check-seed option. If true is given to this
  3141. option, after hash check using --check-integrity option and file
  3142. is complete, continue to seed file. If you want to check file and
  3143. download it only when it is damaged or incomplete, set this option
  3144. to false. This option has effect only on BitTorrent download.
  3145. The default value is true(This is the same behavior with the
  3146. previous release).
  3147. * src/BtCheckIntegrityEntry.cc
  3148. * src/OptionHandlerFactory.cc
  3149. * src/option_processing.cc
  3150. * src/prefs.cc
  3151. * src/prefs.h
  3152. * src/usage_text.h
  3153. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Updated copyright year.
  3155. * src/version_usage.cc
  3156. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3158. * doc/aria2c.1.txt
  3159. * src/usage_text.h
  3160. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Made the max value of split option unlimited.
  3162. * doc/aria2c.1.txt
  3163. * src/OptionHandlerFactory.cc
  3164. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Fixed compile warning/error.
  3166. * src/DownloadResult.h
  3167. * src/HttpDownloadCommand.cc
  3168. * src/ServerStat.cc
  3169. * test/RequestGroupTest.cc
  3170. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3171. Added --event-poll option to select the method for polling events.
  3172. The available methods are "select" and "epoll". "epoll" is
  3173. available on Linux only. The earlier release has the compile
  3174. option to choose from these methods.
  3175. * configure.ac
  3176. * src/RequestGroupMan.cc
  3177. * src/OptionHandlerFactory.cc
  3178. * src/EpollEventPoll.h
  3179. * src/StreamFileAllocationEntry.cc
  3180. * src/a2io.h
  3181. * src/SelectEventPoll.h
  3182. * src/option_processing.cc
  3183. * src/prefs.h
  3184. * src/EpollEventPoll.cc
  3185. * src/EventPoll.h
  3186. * src/SocketCore.h
  3187. * src/Makefile.am
  3188. * src/main.cc
  3189. * src/DownloadEngine.h
  3190. * src/SelectEventPoll.cc
  3191. * src/DownloadEngine.cc
  3192. * src/SocketCore.cc
  3193. * src/DownloadEngineFactory.cc
  3194. * src/Makefile.in
  3195. * src/prefs.cc
  3196. * src/usage_text.h
  3197. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3198. Included RecoverableException.h from main.cc
  3199. * src/main.cc
  3200. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3201. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3202. now returns last error encountered in the HTTP/FTP downloads as a
  3203. exit status value. If all downloads finished successfully, aria2
  3204. returns 0. The error code is defined in src/DownloadResult.h.
  3205. The error occurred in the download currently in progress is not
  3206. reported as a last error. If no error has encountered but there
  3207. are in progress or waiting downloads, aria2 returns 7.
  3208. * src/AbstractCommand.cc
  3209. * src/DlAbortEx.h
  3210. * src/DlRetryEx.h
  3211. * src/DownloadCommand.cc
  3212. * src/DownloadFailureException.h
  3213. * src/DownloadResult.h
  3214. * src/FtpNegotiationCommand.cc
  3215. * src/HttpSkipResponseCommand.cc
  3216. * src/Makefile.am
  3217. * src/MultiUrlRequestInfo.cc
  3218. * src/MultiUrlRequestInfo.h
  3219. * src/RecoverableException.h
  3220. * src/RequestGroup.cc
  3221. * src/RequestGroup.h
  3222. * src/RequestGroupMan.cc
  3223. * src/RequestGroupMan.h
  3224. * src/URIResult.cc
  3225. * src/URIResult.h
  3226. * src/main.cc
  3227. * src/option_processing.cc
  3228. * test/RequestGroupTest.cc
  3229. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3230. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3231. patch adds AdaptiveURISelector, which selects one of the bests
  3232. mirrors for first and reserved connections. For supplementary
  3233. ones, it returns mirrors which has not been tested yet, and if
  3234. each of them already tested, returns mirrors which has to be
  3235. tested again. Otherwise, it doesn't return anymore mirrors.
  3236. * src/AdaptiveURISelector.cc
  3237. * src/AdaptiveURISelector.h
  3238. * src/FtpNegotiationCommand.cc
  3239. * src/HttpResponseCommand.cc
  3240. * src/Makefile.am
  3241. * src/Makefile.in
  3242. * src/OptionHandlerFactory.cc
  3243. * src/RequestGroup.cc
  3244. * src/RequestGroup.h
  3245. * src/RequestGroupMan.cc
  3246. * src/ServerStat.cc
  3247. * src/ServerStat.h
  3248. * src/ServerStatMan.cc
  3249. * src/SpeedCalc.cc
  3250. * src/URISelector.h
  3251. * src/prefs.cc
  3252. * src/prefs.h
  3253. * test/RequestGroupManTest.cc
  3254. * test/ServerStatManTest.cc
  3255. * test/ServerStatTest.cc
  3256. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3257. Fixed unit test error.
  3258. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3259. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3260. * Release 1.1.2
  3261. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Updated Russian translation. Thanks to the translators.
  3263. * po/ru.po
  3264. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3265. Added the description of --use-head option to man page.
  3266. * doc/aria2c.1.txt
  3267. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3268. Bump up version number to 1.1.2
  3269. * configure.ac
  3270. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Added --use-head option to toggle whether HEAD method should be
  3272. used in the first HTTP request. By default aria2 uses HEAD method
  3273. as the first request. When the server doesn't recognize HEAD, then
  3274. give aria2 --use-head=false to force aria2 to use GET method
  3275. instead.
  3276. * src/OptionHandlerFactory.cc
  3277. * src/RequestGroupMan.cc
  3278. * src/option_processing.cc
  3279. * src/prefs.cc
  3280. * src/prefs.h
  3281. * src/usage_text.h
  3282. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3284. message is received before CHOKE message. The old implementation
  3285. doen't clear the use-bit of the piece when recieved REJECT
  3286. message.
  3287. * src/DefaultBtMessageDispatcher.cc
  3288. * test/DefaultBtMessageDispatcherTest.cc
  3289. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3290. * Release 1.1.1
  3291. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3292. Bump up version number to 1.1.1.
  3293. * configure.ac
  3294. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3295. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3296. is printed repeatedly.
  3297. * src/ConsoleStatCalc.cc
  3298. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3299. * Release 1.1.0
  3300. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3301. Added ifdef clause for conditional compilation.
  3302. * src/main.cc
  3303. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3304. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3305. translations. Thanks to all translators.
  3306. * po/ja.po
  3307. * po/ru.po
  3308. * po/uk.po
  3309. * po/zh_CN.po
  3310. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Added the preceding ">>> " before the message "Printing the
  3312. contents of file..." to make the output more readable.
  3313. * src/main.cc
  3314. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3315. Added try-catch block in the loop in showFiles() to continue the
  3316. operation even if the exception occurred in one file.
  3317. * src/main.cc (showFiles)
  3318. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3319. Made messages in showFiles() translatable.
  3320. * po/aria2.pot
  3321. * src/main.cc
  3322. * src/message.h
  3323. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3324. Print the contents of Torrent/Metalink files are printed without
  3325. -T/-M options.
  3326. * src/main.cc
  3327. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Escaped '--' with '\--'
  3329. * README
  3330. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3331. Updated "How to build" section in README. Mentioned about
  3332. --with-ca-bundle compile option.
  3333. * README
  3334. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3335. Bump up version number to 1.1.0.
  3336. * configure.ac
  3337. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3338. Added a note for --dht-listen-port option.
  3339. * doc/aria2c.1.txt
  3340. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3341. Update doc for --realtime-chunk-checksum option.
  3342. * doc/aria2c.1.txt
  3343. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3344. Update doc for --realtime-chunk-checksum option.
  3345. * src/usage_text.h
  3346. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3347. Updated French, Japanese, Russian and Ukrainian translations.
  3348. Thanks to all translators.
  3349. * po/fr.po
  3350. * po/ja.po
  3351. * po/ru.po
  3352. * po/uk.po
  3353. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3354. Renamed aria2c.pot to aria2.pot
  3355. * po/aria2.pot
  3356. * po/aria2c.pot: Removed.
  3357. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3358. Removed MetaEntry.h
  3359. * src/Makefile.am
  3360. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3361. Rename file by appending digits if a local file exists and its
  3362. file size is larger than that of remote file with --continue
  3363. option. The old implementation just throws exception in such case.
  3364. * src/RequestGroup.cc
  3365. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3366. Fixed the bug that download progress summary is not printed in the
  3367. interval specified by the option.
  3368. * src/ConsoleStatCalc.cc
  3369. * src/ConsoleStatCalc.h
  3370. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Fixed compiler warning
  3372. * src/Cookie.cc
  3373. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Fixed the cookie implementation based on RFC2965.
  3375. Now if a value in domain field is not started with dot, then
  3376. prepend dot. That means a cookie with domain=sf.net is sent to
  3377. wiki.sf.net.
  3378. * src/Cookie.cc
  3379. * test/CookieParserTest.cc
  3380. * test/CookieStorageTest.cc
  3381. * test/CookieTest.cc
  3382. * test/NsCookieParserTest.cc
  3383. * test/Sqlite3MozCookieParserTest.cc
  3384. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3386. is enabled and the server doesn't support keep-alive.
  3387. * src/AbstractCommand.cc
  3388. * src/DownloadCommand.cc
  3389. * src/HttpDownloadCommand.cc
  3390. * src/HttpDownloadCommand.h
  3391. * src/HttpResponseCommand.cc
  3392. * src/Request.cc
  3393. * src/Request.h
  3394. * test/RequestTest.cc
  3395. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3396. Removed Dictionary/List/Data and its related classes.
  3397. * src/BencodeVisitor.cc: Removed.
  3398. * src/BencodeVisitor.h: Removed.
  3399. * src/Data.cc: Removed.
  3400. * src/Data.h: Removed.
  3401. * src/Dictionary.cc: Removed.
  3402. * src/Dictionary.h: Removed.
  3403. * src/List.cc: Removed.
  3404. * src/List.h: Removed.
  3405. * src/Makefile.am
  3406. * src/MetaEntry.h: Removed.
  3407. * src/MetaEntryVisitor.h: Removed.
  3408. * src/MetaFileUtil.cc: Removed.
  3409. * src/MetaFileUtil.h: Removed.
  3410. * test/BencodeVisitorTest.cc: Removed.
  3411. * test/DataTest.cc: Removed.
  3412. * test/DictionaryTest.cc: Removed.
  3413. * test/ListTest.cc: Removed.
  3414. * test/Makefile.am
  3415. * test/MetaFileUtilTest.cc: Removed.
  3416. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3417. Removed include of MetaEntry.h
  3418. * test/DHTMessageTrackerEntryTest.cc
  3419. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3420. Use BDE instead of Dictionary/List/Data.
  3421. * src/AnnounceList.cc
  3422. * src/AnnounceList.h
  3423. * test/AnnounceListTest.cc
  3424. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3425. Use BDE instead of Dictionary/List/Data.
  3426. * src/DHTAbstractMessage.cc
  3427. * src/DHTAbstractMessage.h
  3428. * src/DHTAnnouncePeerMessage.cc
  3429. * src/DHTAnnouncePeerMessage.h
  3430. * src/DHTAnnouncePeerReplyMessage.cc
  3431. * src/DHTAnnouncePeerReplyMessage.h
  3432. * src/DHTFindNodeMessage.cc
  3433. * src/DHTFindNodeMessage.h
  3434. * src/DHTFindNodeReplyMessage.cc
  3435. * src/DHTFindNodeReplyMessage.h
  3436. * src/DHTGetPeersMessage.cc
  3437. * src/DHTGetPeersMessage.h
  3438. * src/DHTGetPeersReplyMessage.cc
  3439. * src/DHTGetPeersReplyMessage.h
  3440. * src/DHTMessageFactory.h
  3441. * src/DHTMessageFactoryImpl.cc
  3442. * src/DHTMessageFactoryImpl.h
  3443. * src/DHTMessageReceiver.cc
  3444. * src/DHTMessageTracker.cc
  3445. * src/DHTMessageTracker.h
  3446. * src/DHTPingMessage.cc
  3447. * src/DHTPingMessage.h
  3448. * src/DHTPingReplyMessage.cc
  3449. * src/DHTPingReplyMessage.h
  3450. * src/DHTQueryMessage.cc
  3451. * src/DHTQueryMessage.h
  3452. * src/DHTResponseMessage.cc
  3453. * src/DHTResponseMessage.h
  3454. * test/DHTAnnouncePeerMessageTest.cc
  3455. * test/DHTAnnouncePeerReplyMessageTest.cc
  3456. * test/DHTFindNodeMessageTest.cc
  3457. * test/DHTFindNodeReplyMessageTest.cc
  3458. * test/DHTGetPeersMessageTest.cc
  3459. * test/DHTGetPeersReplyMessageTest.cc
  3460. * test/DHTMessageFactoryImplTest.cc
  3461. * test/DHTMessageTrackerTest.cc
  3462. * test/DHTPingMessageTest.cc
  3463. * test/DHTPingReplyMessageTest.cc
  3464. * test/MockDHTMessageFactory.h
  3465. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3466. Added tests the case where length < 0 is specified.
  3467. * test/BencodeTest.cc
  3468. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. Fixed memory leak in decoderawstring()
  3470. * src/bencode.cc
  3471. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3472. Added missing #ifdef guard. Added uc() function for String and
  3473. removeKey() for Dict.
  3474. * src/bencode.cc
  3475. * src/bencode.h
  3476. * test/BencodeTest.cc
  3477. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3478. Use BDE instead of Dictionary/List/Data.
  3479. * src/HandshakeExtensionMessage.cc
  3480. * src/HandshakeExtensionMessage.h
  3481. * test/HandshakeExtensionMessageTest.cc
  3482. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3483. Added --max-overall-upload-limit option. This option limits the
  3484. overall upload speed. Stated in help message that the existing
  3485. --max-upload-limit option limits the upload speed per each
  3486. torrent. Man page is also updated.
  3487. * doc/aria2c.1.txt
  3488. * src/DefaultBtMessageDispatcher.cc
  3489. * src/DefaultBtMessageDispatcher.h
  3490. * src/OptionHandlerFactory.cc
  3491. * src/PeerInteractionCommand.cc
  3492. * src/option_processing.cc
  3493. * src/prefs.cc
  3494. * src/prefs.h
  3495. * src/usage_text.h
  3496. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Use BDE instead of Dictionary/List/Data classes.
  3498. * src/CompactPeerListProcessor.cc
  3499. * src/CompactPeerListProcessor.h
  3500. * src/DefaultBtAnnounce.cc
  3501. * src/DefaultBtContext.cc
  3502. * src/DefaultBtContext.h
  3503. * src/DefaultPeerListProcessor.cc
  3504. * src/DefaultPeerListProcessor.h
  3505. * src/DelegatingPeerListProcessor.cc
  3506. * src/DelegatingPeerListProcessor.h
  3507. * src/PeerListProcessor.h
  3508. * src/UTPexExtensionMessage.cc
  3509. * src/Util.h
  3510. * src/message.h
  3511. * test/DefaultBtContextTest.cc
  3512. * test/DefaultPeerListProcessorTest.cc
  3513. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3514. Added bencode helper functions and BDE class.
  3515. They will replace MetaFileUtil and Dictionary/List/Data classes.
  3516. * src/Makefile.am
  3517. * src/bencode.cc
  3518. * src/bencode.h
  3519. * test/BencodeTest.cc
  3520. * test/Makefile.am
  3521. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Fixed the bug that bad URI is sent to the tracker when the announe
  3523. URI in torrent file includes query.
  3524. * src/DefaultBtAnnounce.cc
  3525. * test/DefaultBtAnnounceTest.cc
  3526. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3527. Added Option::blank().
  3528. Use !Option::blank(name) instead of Option::defined(name) for
  3529. the options that take filename.
  3530. * src/MultiUrlRequestInfo.cc
  3531. * src/Option.cc
  3532. * src/Option.h
  3533. * src/main.cc
  3534. * src/option_processing.cc
  3535. * test/OptionTest.cc
  3536. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3537. Documented the default value of --check-certificate option in man
  3538. page.
  3539. * doc/aria2c.1.txt
  3540. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3541. Enabled --check-certificate by default. Added compile
  3542. time(configure) option --with-ca-bundle to specify CA bundle.
  3543. Warn if --check-certificate=true and --ca-certificate is not
  3544. specified or loading CA certificate is failed.
  3545. * configure.ac
  3546. * src/MultiUrlRequestInfo.cc
  3547. * src/OptionHandlerFactory.cc
  3548. * src/message.h
  3549. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3550. Mentioned https tag in help option.
  3551. * doc/aria2c.1.txt
  3552. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3553. Added `https' tag to help option category. Added https tag to
  3554. --ca-certificate, --certificate, --check-certificate and
  3555. --private-key option.
  3556. * src/OptionHandlerFactory.cc
  3557. * src/help_tags.h
  3558. * src/option_processing.cc
  3559. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3560. Changed the package name from `aria2c' to `aria2' in order to fix
  3561. the packaging issue in Debian and Fedora. The name of the
  3562. executable is not changed.
  3563. * configure.ac
  3564. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3565. Fixed typos
  3566. * src/usage_text.h
  3567. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3568. Fixed typos and updated doc.
  3569. * README
  3570. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3571. Fixed typos
  3572. * doc/aria2c.1.txt
  3573. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. Fixed typos
  3575. * src/usage_text.h
  3576. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3577. Print a message when no files to download.
  3578. * src/download_helper.cc
  3579. * src/main.cc
  3580. * src/message.h
  3581. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. RFC3986 complied Percent-Encoding(urlencode).
  3583. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3584. ones.
  3585. * src/Request.cc
  3586. * src/Util.cc
  3587. * src/Util.h
  3588. * test/BtHandshakeMessageTest.cc
  3589. * test/DefaultBtAnnounceTest.cc
  3590. * test/DefaultBtContextTest.cc
  3591. * test/RequestTest.cc
  3592. * test/UtilTest.cc
  3593. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3594. Fixed the bug that prevents aria2 from downloading 0-length files
  3595. via HTTP/FTP.
  3596. * src/DefaultBtContext.cc
  3597. * src/DefaultBtContext.h
  3598. * src/DownloadContext.h
  3599. * src/FtpNegotiationCommand.cc
  3600. * src/HttpResponseCommand.cc
  3601. * src/HttpResponseCommand.h
  3602. * src/RequestGroup.cc
  3603. * src/SingleFileDownloadContext.cc
  3604. * src/SingleFileDownloadContext.h
  3605. * test/BtPostDownloadHandlerTest.cc
  3606. * test/MetalinkPostDownloadHandlerTest.cc
  3607. * test/MockBtContext.h
  3608. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3609. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3610. * src/option_processing.cc
  3611. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3612. Applied aria2-1.0.1-mingw.patch.
  3613. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3614. mingw.
  3615. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3616. * src/SocketCore.cc
  3617. * src/a2netcompat.h
  3618. * test/SocketCoreTest.cc
  3619. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3620. * Release 1.0.1
  3621. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3622. Updated Ukrainian and Norwegian Nynorsk translations.
  3623. Thanks to all translators.
  3624. * po/nn.po
  3625. * po/uk.po
  3626. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3627. Don't show download result when -S option is used.
  3628. * src/main.cc
  3629. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3630. Bump up version number to 1.0.1
  3631. * configure.ac
  3632. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3633. Closed files after the test cases in MultiDiskWriterTest::
  3634. testResetDiskWriterEntries(). This will fix the unit test error
  3635. in mingw32 build.
  3636. * test/MultiDiskWriterTest.cc
  3637. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3638. Use HEAD method to get file size from HTTP server for segmented
  3639. downloading.
  3640. The request to the BitTorrent Tracker always uses GET method because
  3641. the response of the tracker is small and it doesn't need segmented
  3642. download.
  3643. * src/FtpNegotiationCommand.cc
  3644. * src/HttpRequest.cc
  3645. * src/HttpResponseCommand.cc
  3646. * src/HttpSkipResponseCommand.cc
  3647. * src/RequestGroup.cc
  3648. * src/RequestGroup.h
  3649. * src/TrackerWatcherCommand.cc
  3650. * test/HttpRequestTest.cc
  3651. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Fixed the bug that causes floating exception when -T option is used and
  3653. no URIs are given.
  3654. * src/download_helper.cc
  3655. * test/DownloadHelperTest.cc
  3656. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3657. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3658. errors in MinGW:
  3659. Closed file after saving server stats (RequestGroupMan.cc)
  3660. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3661. Ignored case & handled 2-digit years (strptime.c)
  3662. Added missing suseconds_t definition (a2time.h)
  3663. Fixed socket CLOSE() define (SocketCore.cc)
  3664. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3665. Changed utime() test values from x000 to x00000 as MinGW failed on
  3666. values less than timezone offset from Unix epoch
  3667. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3668. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3669. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3670. handle negative dates (CookieParserTest.cc)
  3671. * src/a2time.h
  3672. * src/FtpConnection.cc
  3673. * src/RequestGroupMan.cc
  3674. * src/SocketCore.cc
  3675. * src/strptime.c
  3676. * test/CookieParserTest.cc
  3677. * test/CopyDiskAdaptorTest.cc
  3678. * test/FileTest.cc
  3679. * test/FtpConnectionTest.cc
  3680. * test/MultiDiskAdaptorTest.cc
  3681. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3683. * doc/aria2c.1.txt
  3684. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3685. * Release 1.0.0
  3686. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Added '~' to reserved characters.
  3688. * src/Util.cc
  3689. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3690. Do not urlencode Request::url in setUrl() because we want unmodified
  3691. URL using Request::getUrl()
  3692. * src/Request.cc
  3693. * src/Request.h
  3694. * test/RequestTest.cc
  3695. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3696. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3697. Thanks to all translators.
  3698. * po/bg.po
  3699. * po/fr.po
  3700. * po/ja.po
  3701. * po/ru.po
  3702. * po/uk.po
  3703. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3704. Bump up version number to 1.0.0
  3705. * configure.ac
  3706. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3707. Added nosqlite3 build to build_test.sh.
  3708. Renamed noxml as expat.
  3709. * build_test.sh
  3710. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3711. Updated INPUT FILE section.
  3712. * doc/aria2c.1.txt
  3713. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3714. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3715. on big endian systems because test .aria2 files are made for little
  3716. endian systems.
  3717. * test/DefaultBtProgressInfoFileTest.cc
  3718. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3719. Dropped ares support.
  3720. * README
  3721. * configure.ac
  3722. * m4/libares.m4: Removed.
  3723. * src/AsyncNameResolver.cc
  3724. * src/Makefile.am
  3725. * test/Makefile.am
  3726. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3727. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3728. Removed const qualifier from DiskWriter::size().
  3729. * src/AbstractDiskWriter.cc
  3730. * src/AbstractDiskWriter.h
  3731. * src/ByteArrayDiskWriter.cc
  3732. * src/ByteArrayDiskWriter.h
  3733. * src/DiskWriter.h
  3734. * test/ByteArrayDiskWriterTest.cc
  3735. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3736. Fixed the bug that causes segmentation fault/bus error during executing
  3737. choking algorithm while seeding. This is caused by improper
  3738. implementation of compare function which returns inconsistent results
  3739. depending on the timing of last unchoke.
  3740. * src/BtSeederStateChoke.cc
  3741. * src/BtSeederStateChoke.h
  3742. * src/DefaultPeerStorage.cc
  3743. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Removed TODO
  3745. * TODO
  3746. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Added a section that explains how to pass argument to options that
  3748. takes optional arguments with its short form.
  3749. * doc/aria2c.1.txt
  3750. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3751. Added -u for the short form of --max-upload-limit option.
  3752. * doc/aria2c.1.txt
  3753. * src/option_processing.cc
  3754. * src/usage_text.h
  3755. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Added -V for the short form of --check-integrity option.
  3757. Now the argument of --check-integrity option is optional:
  3758. if it is omitted, it is evaluated as true.
  3759. * doc/aria2c.1.txt
  3760. * src/option_processing.cc
  3761. * src/usage_text.h
  3762. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3763. Made the default value of --ftp-pasv option set to true and it can take
  3764. true/false values.
  3765. * src/OptionHandlerFactory.cc
  3766. * src/option_processing.cc
  3767. * src/usage_text.h
  3768. * doc/aria2c.1.txt
  3769. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3770. Given custom random number generator to std::random_shuffle.
  3771. * src/AnnounceList.cc
  3772. * src/BtLeecherStateChoke.cc
  3773. * src/BtSeederStateChoke.cc
  3774. * src/DefaultBtRequestFactory.cc
  3775. * src/MetalinkEntry.cc
  3776. * src/RarestPieceSelector.cc
  3777. * src/SimpleRandomizer.cc
  3778. * src/SimpleRandomizer.h
  3779. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3780. Now the default value of --enable-direct-io is true.
  3781. * src/OptionHandlerFactory.cc
  3782. * doc/aria2c.1.txt
  3783. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3784. Erase peer before executing onReturningPeer and onErasingPeer
  3785. because choking algorithm called from onReturningPeer doesn't
  3786. like erasing peer in the active peer list.
  3787. * src/DefaultPeerStorage.cc
  3788. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3789. Instead of creating special filename in createDownloadResult() if
  3790. inMemoryDownload() is true, now it is done in getFilePath().
  3791. * src/RequestGroup.cc
  3792. * test/RequestGroupTest.cc
  3793. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3795. processed in memory. This is the fix for previous comment out.
  3796. * src/MemoryBufferPreDownloadHandler.cc
  3797. * src/RequestGroup.cc
  3798. * src/RequestGroup.h
  3799. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Commented out the code which sets virtual directory path "[MEMORY]"
  3801. propagate directory to store to following RequestGroup.
  3802. * src/MemoryBufferPreDownloadHandler.cc
  3803. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3804. Bump up version number to 1.0.0b
  3805. * configure.ac
  3806. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3807. Added input_uris.txt to EXTRA_DIST
  3808. * test/Makefile.am
  3809. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. Removed PeerObject.h from Makefile.am
  3811. * src/Makefile.am
  3812. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Avoid slow seeding
  3814. * src/PeerInteractionCommand.cc
  3815. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. Updated usage for -i option.
  3817. * src/usage_text.h (TEXT_INPUT_FILE)
  3818. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Added INPUT FILE section to man page.
  3820. Escaped fake URLs.
  3821. * doc/aria2c.1.txt
  3822. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3823. Fixed wrong note position for -o option.
  3824. * doc/aria2c.1.txt
  3825. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3826. Fixed compile error without SSL/XML library.
  3827. * src/DefaultBtProgressInfoFile.cc
  3828. * src/DefaultBtProgressInfoFile.h
  3829. * src/FileMetalinkParserState.cc
  3830. * src/RequestGroup.h
  3831. * src/SocketCore.cc
  3832. * src/SocketCore.h
  3833. * src/VerificationMetalinkParserState.cc
  3834. * src/download_helper.h
  3835. * src/main.cc
  3836. * test/DefaultBtProgressInfoFileTest.cc
  3837. * test/DownloadHelperTest.cc
  3838. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3839. Rewritten URI handling functions. They are now provided as a testable
  3840. functions.
  3841. * src/Makefile.am
  3842. * src/RequestGroup.cc
  3843. * src/RequestGroup.h
  3844. * src/download_helper.cc
  3845. * src/download_helper.h
  3846. * src/main.cc
  3847. * test/DownloadHelperTest.cc
  3848. * test/Makefile.am
  3849. * test/input_uris.txt
  3850. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3851. Quickly terminate commands when ctrl-c is pressed.
  3852. * src/DownloadEngine.cc
  3853. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3854. Quickly terminate idle commands when download finished.
  3855. * src/AbstractCommand.cc
  3856. * src/DownloadCommand.cc
  3857. * src/DownloadEngine.cc
  3858. * src/DownloadEngine.h
  3859. * src/SleepCommand.cc
  3860. * src/SleepCommand.h
  3861. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3862. Added the ability to specify output filename and directory in input
  3863. file.
  3864. Additional parameters are added in the following line of URIs
  3865. with proceeding white space(s), 1 parameter in 1 line.
  3866. The parameter names are the same with the command-line option name
  3867. without proceeding "--". Not all the options are available here:
  3868. at the moment, 'dir' and 'out' options are avialable.
  3869. Please note that out option has no effect against Metalink or BitTorrent
  3870. downloads.
  3871. Example input file:
  3872. http://host/foo-1.1.tar.bz2
  3873. out=foo.tar.bz2
  3874. dir=/tmp/downloads
  3875. http://host/thundermonkey-2.0.tar.bz2
  3876. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  3877. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  3878. thundermonkey-2.0.tar.bz2 is saved as
  3879. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  3880. * src/BtPostDownloadHandler.cc
  3881. * src/Metalink2RequestGroup.cc
  3882. * src/Metalink2RequestGroup.h
  3883. * src/MetalinkPostDownloadHandler.cc
  3884. * src/UriListParser.cc
  3885. * src/UriListParser.h
  3886. * src/main.cc
  3887. * test/Metalink2RequestGroupTest.cc
  3888. * test/UriListParserTest.cc
  3889. * test/filelist1.txt
  3890. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3891. Fixed error when SSL library is not found.
  3892. * configure.ac
  3893. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Cross referenced among -s, -C and -j options.
  3895. Updated usage of -C and -s options.
  3896. * src/usage_text.h
  3897. * doc/aria2c.1.txt
  3898. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3899. Fixed bad cast in 32bit platforms.
  3900. * test/DefaultPieceStorageTest.cc
  3901. (DefaultPieceStorageTest::testGetCompletedLength)
  3902. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Fixed unit test fails on 32bit platforms.
  3904. * test/CookieParserTest.cc
  3905. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Show an average download speed in Download results.
  3907. * src/BtFileAllocationEntry.cc
  3908. * src/DefaultPieceStorage.cc
  3909. * src/DownloadContext.cc
  3910. * src/DownloadContext.h
  3911. * src/DownloadResult.h
  3912. * src/RequestGroup.cc
  3913. * src/RequestGroupMan.cc
  3914. * src/StreamFileAllocationEntry.cc
  3915. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3916. Fixed the bug that metalink file is not processed if Content-Type
  3917. field has a paramter.
  3918. * src/HttpResponse.cc
  3919. * src/HttpResponse.h
  3920. * test/HttpResponseTest.cc
  3921. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Removed unused code.
  3923. * src/DefaultBtAnnounce.cc
  3924. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3925. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  3926. the value larger than DefaultPieceStorage::getTotalLength() when
  3927. in flight pieces are involved.
  3928. * src/DefaultPieceStorage.cc
  3929. * test/DefaultPieceStorageTest.cc
  3930. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Bump up version number to 1.0.0a.
  3932. * configure.ac
  3933. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. Updated configure.ac
  3935. * configure.ac
  3936. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3937. Added usege for proxy.
  3938. * doc/aria2c.1.txt
  3939. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. Added usage for --ca-certificate, --certificate, --private-key and
  3941. --check-certificate options.
  3942. * doc/aria2c.1.txt
  3943. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3944. Updated man page
  3945. * doc/aria2c.1.txt
  3946. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3947. Added --no-proxy option. It receives comman separated hostname or
  3948. domains to which proxy should not be used.
  3949. aria2 honors the environment variable no_proxy to override no-proxy
  3950. value in configuration file. The user can override the environment
  3951. variable no_proxy with --no-proxy command-line option.
  3952. * src/AbstractCommand.cc
  3953. * src/OptionHandlerFactory.cc
  3954. * src/option_processing.cc
  3955. * src/prefs.cc
  3956. * src/prefs.h
  3957. * src/usage_text.h
  3958. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3959. Added the ability to verify peer in SSL/TLS using given CA certificates.
  3960. The CA certificates are specified in --ca-certificate option.
  3961. By default, the verification is disabled. Use --check-certificate
  3962. option to enable it.
  3963. * src/HttpRequestCommand.cc
  3964. * src/LibgnutlsTLSContext.cc
  3965. * src/LibgnutlsTLSContext.h
  3966. * src/LibsslTLSContext.cc
  3967. * src/LibsslTLSContext.h
  3968. * src/MultiUrlRequestInfo.cc
  3969. * src/OptionHandlerFactory.cc
  3970. * src/SocketCore.cc
  3971. * src/SocketCore.h
  3972. * src/a2functional.h
  3973. * src/message.h
  3974. * src/option_processing.cc
  3975. * src/prefs.cc
  3976. * src/prefs.h
  3977. * src/usage_text.h
  3978. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3979. Added client certificate authentication for SSL/TLS.
  3980. Currently a private key must be decrypted for use with aria2.
  3981. If a user accidentally gives encrypted file to aria2 then following
  3982. thing happens:
  3983. If encrypted private key is given to aria2, it behaves differently
  3984. depending on the ssl library it uses. If aria2 built with openssl then
  3985. openssl prompts the user for password. If aria2 build with gnutls then
  3986. aria2 exists with error at start up.
  3987. * src/DownloadEngineFactory.cc
  3988. * src/MultiUrlRequestInfo.cc
  3989. * src/OptionHandlerFactory.cc
  3990. * src/option_processing.cc
  3991. * src/prefs.cc
  3992. * src/prefs.h
  3993. * src/usage_text.h
  3994. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3995. Introduced TLSContext that holds TLS related data that can be shared
  3996. with multiple SSL connections.
  3997. * src/DownloadEngineFactory.cc
  3998. * src/LibgnutlsTLSContext.cc
  3999. * src/LibgnutlsTLSContext.h
  4000. * src/LibsslTLSContext.cc
  4001. * src/LibsslTLSContext.h
  4002. * src/Makefile.am
  4003. * src/SocketCore.cc
  4004. * src/SocketCore.h
  4005. * src/TLSContext.h
  4006. * src/message.h
  4007. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4008. Fixed the bug that the DiskWriter of the first FileEntry whose
  4009. `needsFileAllocation' property is false is not created
  4010. even if it shares a piece with next FileEntry which `requested' property
  4011. is true.
  4012. Fixed the bug that zero-length file is not created if pre file
  4013. allocation is not done.
  4014. * src/MultiDiskAdaptor.cc
  4015. * src/MultiDiskAdaptor.h
  4016. * test/MultiDiskAdaptorTest.cc
  4017. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Added the ability to pool proxy connection.
  4019. The conneciton in FTP with proxy-method=GET is not pooled.
  4020. Proxy-Connection header will not be sent when sending CONNECT method.
  4021. * src/DownloadEngine.cc
  4022. * src/DownloadEngine.h
  4023. * src/FtpFinishDownloadCommand.cc
  4024. * src/FtpInitiateConnectionCommand.cc
  4025. * src/FtpNegotiationCommand.cc
  4026. * src/HttpDownloadCommand.cc
  4027. * src/HttpInitiateConnectionCommand.cc
  4028. * src/HttpRequest.cc
  4029. * src/HttpRequest.h
  4030. * src/HttpResponse.cc
  4031. * src/HttpSkipResponseCommand.cc
  4032. * test/HttpRequestTest.cc
  4033. * test/HttpResponseTest.cc
  4034. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4035. Handle date before epoch.
  4036. To create *bad* Time object, call Time::null().
  4037. * src/CookieParser.cc
  4038. * src/FtpConnection.cc
  4039. * src/FtpConnection.h
  4040. * src/FtpNegotiationCommand.cc
  4041. * src/RequestGroup.cc
  4042. * src/TimeA2.cc
  4043. * src/TimeA2.h
  4044. * test/CookieParserTest.cc
  4045. * test/FtpConnectionTest.cc
  4046. * test/TimeTest.cc
  4047. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4048. Added support for following envrionment variables: http_proxy,
  4049. https_proxy, ftp_proxy and all_proxy.
  4050. Each variable is equivalent to the aria2 option whose name is the
  4051. variable name with '_' replaced with '-'.
  4052. They overrides options specified in aria2.conf file.
  4053. The envrionment variables can be overrode using command-line option.
  4054. * src/option_processing.cc
  4055. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4056. Renamed --http-proxy-method as --proxy-method.
  4057. * src/AbstractCommand.cc
  4058. * src/FtpInitiateConnectionCommand.cc
  4059. * src/HttpInitiateConnectionCommand.cc
  4060. * src/OptionHandlerFactory.cc
  4061. * src/option_processing.cc
  4062. * src/prefs.cc
  4063. * src/prefs.h
  4064. * src/usage_text.h
  4065. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4066. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4067. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4068. Above 3 options and --http-proxy option can handle proxy in URL format
  4069. like: http://user:passwd@host:port.
  4070. If a proxy requires user/password, they must be specified in a URL.
  4071. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4072. instead.
  4073. * src/AbstractCommand.cc
  4074. * src/AbstractCommand.h
  4075. * src/AbstractProxyRequestCommand.cc
  4076. * src/AbstractProxyRequestCommand.h
  4077. * src/AuthConfigFactory.cc
  4078. * src/AuthConfigFactory.h
  4079. * src/FtpFinishDownloadCommand.cc
  4080. * src/FtpInitiateConnectionCommand.cc
  4081. * src/FtpInitiateConnectionCommand.h
  4082. * src/FtpNegotiationCommand.cc
  4083. * src/FtpTunnelRequestCommand.cc
  4084. * src/FtpTunnelRequestCommand.h
  4085. * src/HttpDownloadCommand.cc
  4086. * src/HttpInitiateConnectionCommand.cc
  4087. * src/HttpInitiateConnectionCommand.h
  4088. * src/HttpProxyRequestCommand.cc
  4089. * src/HttpProxyRequestCommand.h
  4090. * src/HttpRequest.cc
  4091. * src/HttpRequest.h
  4092. * src/HttpRequestCommand.cc
  4093. * src/HttpRequestCommand.h
  4094. * src/HttpSkipResponseCommand.cc
  4095. * src/InitiateConnectionCommand.cc
  4096. * src/InitiateConnectionCommand.h
  4097. * src/OptionHandlerFactory.cc
  4098. * src/OptionHandlerImpl.h
  4099. * src/Request.cc
  4100. * src/option_processing.cc
  4101. * src/prefs.cc
  4102. * src/prefs.h
  4103. * src/usage_text.h
  4104. * test/AuthConfigFactoryTest.cc
  4105. * test/HttpRequestTest.cc
  4106. * test/OptionHandlerTest.cc
  4107. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4108. Execute choking algorithm when unchoked and interested peer is
  4109. disconected.
  4110. * src/DefaultPeerStorage.cc
  4111. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4112. Added testcase for BtNotInterestedMessage from unchoked peer.
  4113. * test/BtNotInterestedMessageTest.cc
  4114. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4115. Execute choking algorithm when BtInterestedMessage arrives from
  4116. unchoked peer.
  4117. * src/BtInterestedMessage.cc
  4118. * src/BtInterestedMessage.h
  4119. * src/DefaultBtMessageFactory.cc
  4120. * test/BtInterestedMessageTest.cc
  4121. * test/MockPeerStorage.h
  4122. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4123. AuthConfigFactory is now part of DownloadEngine.
  4124. * src/AbstractProxyRequestCommand.cc
  4125. * src/AuthConfigFactory.h
  4126. * src/DownloadEngine.cc
  4127. * src/DownloadEngine.h
  4128. * src/FtpConnection.cc
  4129. * src/FtpConnection.h
  4130. * src/FtpNegotiationCommand.cc
  4131. * src/HttpConnection.cc
  4132. * src/HttpRequest.cc
  4133. * src/HttpRequest.h
  4134. * src/HttpRequestCommand.cc
  4135. * src/HttpResponse.cc
  4136. * src/HttpResponseCommand.cc
  4137. * src/HttpSkipResponseCommand.cc
  4138. * src/MultiUrlRequestInfo.cc
  4139. * src/main.cc
  4140. * test/FtpConnectionTest.cc
  4141. * test/HttpRequestTest.cc
  4142. * test/HttpResponseTest.cc
  4143. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. Corrected catched exception type.
  4145. * src/ServerStatMan.cc
  4146. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4147. DNSCache is now part of DownloadEngine.
  4148. * src/DNSCache.h
  4149. * src/DownloadEngine.cc
  4150. * src/DownloadEngine.h
  4151. * src/InitiateConnectionCommand.cc
  4152. * src/MultiUrlRequestInfo.cc
  4153. * test/Makefile.am
  4154. * test/Makefile.in
  4155. * test/SimpleDNSCacheTest.cc
  4156. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4157. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4158. DownloadEngine.
  4159. * src/ActivePeerConnectionCommand.cc
  4160. * src/BtSetup.cc
  4161. * src/CUIDCounter.h
  4162. * src/DHTSetup.cc
  4163. * src/DownloadCommand.cc
  4164. * src/DownloadEngine.cc
  4165. * src/DownloadEngine.h
  4166. * src/DownloadEngineFactory.cc
  4167. * src/FileAllocationDispatcherCommand.cc
  4168. * src/InitiatorMSEHandshakeCommand.cc
  4169. * src/PeerInitiateConnectionCommand.cc
  4170. * src/PeerInteractionCommand.cc
  4171. * src/PeerListenCommand.cc
  4172. * src/RequestGroup.cc
  4173. * src/StreamFileAllocationEntry.cc
  4174. * src/TrackerWatcherCommand.cc
  4175. * src/main.cc
  4176. * test/RequestGroupManTest.cc
  4177. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4178. Implemented commented code in BtSeederStateChoke
  4179. * src/BtSeederStateChoke.cc
  4180. * src/Peer.cc
  4181. * src/Peer.h
  4182. * src/PeerInteractionCommand.cc
  4183. * src/PeerSessionResource.cc
  4184. * src/PeerSessionResource.h
  4185. * test/MockBtMessageDispatcher.h
  4186. * test/PeerSessionResourceTest.cc
  4187. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4188. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4189. its object.
  4190. * src/AbstractBtMessage.cc
  4191. * src/ActivePeerConnectionCommand.cc
  4192. * src/ActivePeerConnectionCommand.h
  4193. * src/BtContextAwareCommand.cc
  4194. * src/BtContextAwareCommand.h
  4195. * src/BtExtendedMessage.cc
  4196. * src/BtExtendedMessage.h
  4197. * src/BtInterestedMessage.cc
  4198. * src/BtInterestedMessage.h
  4199. * src/BtNotInterestedMessage.cc
  4200. * src/BtNotInterestedMessage.h
  4201. * src/BtRegistry.cc
  4202. * src/BtRegistry.h
  4203. * src/BtSeederStateChoke.cc
  4204. * src/BtSetup.cc
  4205. * src/DHTGetPeersCommand.cc
  4206. * src/DHTGetPeersCommand.h
  4207. * src/DHTPeerAnnounceEntry.cc
  4208. * src/DHTPeerAnnounceEntry.h
  4209. * src/DHTPeerAnnounceStorage.cc
  4210. * src/DHTPeerAnnounceStorage.h
  4211. * src/DHTPeerLookupTask.cc
  4212. * src/DHTPeerLookupTask.h
  4213. * src/DHTSetup.cc
  4214. * src/DHTSetup.h
  4215. * src/DHTTaskFactory.h
  4216. * src/DHTTaskFactoryImpl.cc
  4217. * src/DHTTaskFactoryImpl.h
  4218. * src/DefaultBtAnnounce.cc
  4219. * src/DefaultBtInteractive.cc
  4220. * src/DefaultBtInteractive.h
  4221. * src/DefaultBtMessageDispatcher.cc
  4222. * src/DefaultBtMessageDispatcher.h
  4223. * src/DefaultBtMessageFactory.cc
  4224. * src/DefaultBtMessageFactory.h
  4225. * src/DefaultBtMessageReceiver.cc
  4226. * src/DefaultBtProgressInfoFile.cc
  4227. * src/DefaultBtProgressInfoFile.h
  4228. * src/DefaultBtRequestFactory.cc
  4229. * src/DefaultBtRequestFactory.h
  4230. * src/DefaultExtensionMessageFactory.cc
  4231. * src/DefaultExtensionMessageFactory.h
  4232. * src/DefaultPeerStorage.cc
  4233. * src/DefaultPeerStorage.h
  4234. * src/DownloadEngine.cc
  4235. * src/DownloadEngine.h
  4236. * src/InitiatorMSEHandshakeCommand.cc
  4237. * src/InitiatorMSEHandshakeCommand.h
  4238. * src/MSEHandshake.cc
  4239. * src/MSEHandshake.h
  4240. * src/Makefile.am
  4241. * src/Makefile.in
  4242. * src/PeerChokeCommand.cc
  4243. * src/PeerChokeCommand.h
  4244. * src/PeerInitiateConnectionCommand.cc
  4245. * src/PeerInitiateConnectionCommand.h
  4246. * src/PeerInteractionCommand.cc
  4247. * src/PeerInteractionCommand.h
  4248. * src/PeerObject.h
  4249. * src/PeerReceiveHandshakeCommand.cc
  4250. * src/PeerReceiveHandshakeCommand.h
  4251. * src/ReceiverMSEHandshakeCommand.cc
  4252. * src/RequestGroup.cc
  4253. * src/RequestGroup.h
  4254. * src/RequestGroupMan.cc
  4255. * src/RequestGroupMan.h
  4256. * src/SeedCheckCommand.cc
  4257. * src/SeedCheckCommand.h
  4258. * src/ShareRatioSeedCriteria.h
  4259. * src/SimpleBtMessage.cc
  4260. * src/TrackerWatcherCommand.cc
  4261. * src/TrackerWatcherCommand.h
  4262. * src/UTPexExtensionMessage.cc
  4263. * src/UTPexExtensionMessage.h
  4264. * test/BtCancelMessageTest.cc
  4265. * test/BtChokeMessageTest.cc
  4266. * test/BtExtendedMessageTest.cc
  4267. * test/BtInterestedMessageTest.cc
  4268. * test/BtNotInterestedMessageTest.cc
  4269. * test/BtPieceMessageTest.cc
  4270. * test/BtPortMessageTest.cc
  4271. * test/BtRegistryTest.cc
  4272. * test/BtRejectMessageTest.cc
  4273. * test/BtRequestMessageTest.cc
  4274. * test/DHTPeerAnnounceEntryTest.cc
  4275. * test/DHTPeerAnnounceStorageTest.cc
  4276. * test/DefaultBtMessageDispatcherTest.cc
  4277. * test/DefaultBtMessageFactoryTest.cc
  4278. * test/DefaultBtProgressInfoFileTest.cc
  4279. * test/DefaultBtRequestFactoryTest.cc
  4280. * test/DefaultExtensionMessageFactoryTest.cc
  4281. * test/MSEHandshakeTest.cc
  4282. * test/MockDHTTaskFactory.h
  4283. * test/ShareRatioSeedCriteriaTest.cc
  4284. * test/UTPexExtensionMessageTest.cc
  4285. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4286. Fixed compiler warning.
  4287. * test/UtilTest.cc
  4288. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4289. Treat Cookie object as session cookie if expiry = 0 is given.
  4290. With this change, you can specify session scoped cookies in an external
  4291. file setting expiry value to 0.
  4292. * src/Cookie.cc
  4293. * src/Cookie.h
  4294. * test/CookieParserTest.cc
  4295. * test/CookieStorageTest.cc
  4296. * test/CookieTest.cc
  4297. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4298. Changed signature of DHTMessageFactory::createResponseMessage().
  4299. Removed unused validateIDMatch.
  4300. * src/DHTMessageFactory.h
  4301. * src/DHTMessageFactoryImpl.cc
  4302. * src/DHTMessageFactoryImpl.h
  4303. * src/DHTMessageTracker.cc
  4304. * test/DHTMessageFactoryImplTest.cc
  4305. * test/MockDHTMessageFactory.h
  4306. Dropped DHT message coming from same ID of localhost.
  4307. * src/DHTMessageReceiver.cc
  4308. Rejected adding node whose ID is the same as localhost's.
  4309. * src/DHTRoutingTable.cc
  4310. * test/BtPortMessageTest.cc
  4311. * test/DHTRoutingTableTest.cc
  4312. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4313. Pool connection when redirection occurs with Content-Length = 0.
  4314. * src/HttpSkipResponseCommand.cc
  4315. * src/HttpSkipResponseCommand.h
  4316. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4317. Fixed the bug that causes time out when redirection occurs with
  4318. content-length 0.
  4319. * src/HttpResponseCommand.cc
  4320. * src/HttpSkipResponseCommand.cc
  4321. * src/HttpSkipResponseCommand.h
  4322. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4323. Now each status legends is shown only when it appears in Download
  4324. Result. If Download Result has no item, then status legend will not
  4325. be printed.
  4326. * src/RequestGroupMan.cc
  4327. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4328. Removed duplicate creation of OptionHandlers.
  4329. * src/option_processing.cc
  4330. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4331. Fixed the bug that causes segmentation fault when accessing files which
  4332. don't exist or are not included in --select-file option while
  4333. validating chunk checksum.
  4334. * src/MultiDiskAdaptor.cc
  4335. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4336. Fixed compiler warning.
  4337. * test/UtilTest.cc
  4338. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4339. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4340. * src/IteratableChecksumValidator.cc
  4341. * src/IteratableChunkChecksumValidator.cc
  4342. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4343. * Release 0.16.2
  4344. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4345. Added Serbian translation. Updated Ukrainian translation.
  4346. Thanks to all translators.
  4347. * po/sr.po
  4348. * po/uk.po
  4349. * po/LINGUAS
  4350. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4351. Bump up version number to 0.16.2
  4352. * configure.ac
  4353. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4354. Added length equality test to operator== to drop a piece message
  4355. whose length does not match to the requested one.
  4356. * src/RequestSlot.cc
  4357. * test/DefaultBtMessageDispatcherTest.cc
  4358. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4359. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4360. recieved.
  4361. In this fix, if a request larger than 16KiB length is received, aria2
  4362. disconnects the peer.
  4363. * src/BtConstants.h
  4364. * src/PeerMessageUtil.cc
  4365. * src/PeerMessageUtil.h
  4366. * test/BtRequestMessageTest.cc
  4367. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4368. * Release 0.16.1
  4369. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4370. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4371. * doc/aria2c.1.txt
  4372. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4373. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4374. Updated French, Simplified Chinese and Japanese translations.
  4375. Thanks to all translators.
  4376. en@quot and en@boldquot are also added.
  4377. * po/LINGUAS
  4378. * po/fr.po
  4379. * po/ja.po
  4380. * po/uk.po
  4381. * po/vi.po
  4382. * po/zh_CN.po
  4383. * po/zh_TW.po
  4384. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4385. Bump up version number to 0.16.1.
  4386. * configure.ac
  4387. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4388. Updated README.
  4389. * README
  4390. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4391. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4392. not to replace '--' with em dash character.
  4393. * doc/aria2c.1.txt
  4394. * doc/makeman
  4395. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4396. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4397. every SEC seconds.
  4398. * src/DownloadEngineFactory.cc
  4399. * src/OptionHandlerFactory.cc
  4400. * src/option_processing.cc
  4401. * src/usage_text.h
  4402. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4403. Fixed compile warning on linux-amd64
  4404. * src/FtpConnection.cc
  4405. * src/IteratableChunkChecksumValidator.cc
  4406. * src/MultiDiskAdaptor.cc
  4407. Fixed the bug that unit test fails on linux-amd64
  4408. * test/UtilTest.cc
  4409. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. Added --dht-file-path option to change the path to dht.dat, which is a
  4411. serialized DHT routing table.
  4412. * src/OptionHandlerFactory.cc
  4413. * src/option_processing.cc
  4414. * src/usage_text.h
  4415. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4416. Fixed possible underflow.
  4417. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4418. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4419. Fixed the bug that last character in URI is not encoded.
  4420. * src/Request.cc
  4421. * test/RequestTest.cc
  4422. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4423. Fixed the bug that referer header field contains fragment.
  4424. Now Request class removes fragment part of URI and encodes it
  4425. in Request::setUri() and setReferer().
  4426. * src/Request.h
  4427. * src/Request.cc
  4428. * test/RequestTest.cc
  4429. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4430. Added missing m4 macros.
  4431. * m4/cppunit.m4
  4432. * m4/libgcrypt.m4
  4433. * m4/libgnutls-extra.m4
  4434. * m4/libgnutls.m4
  4435. * m4/libxml2.m4
  4436. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4437. Fixed compile error with gcc-4.4(snapshot)
  4438. * src/File.cc
  4439. * src/FtpConnection.cc
  4440. * src/OptionHandlerImpl.h
  4441. * src/Util.cc
  4442. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Removed assert()
  4444. * src/SocketBuffer.cc (SocketBuffer::send)
  4445. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Changed the type of _numNewConnection to unsigned int.
  4447. * src/ActivePeerConnectionCommand.cc
  4448. * src/ActivePeerConnectionCommand.h
  4449. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4450. * Release 0.16.0
  4451. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4452. Updated doc
  4453. * README
  4454. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4456. translations. Thanks to all translators.
  4457. * po/bg.po
  4458. * po/de.po
  4459. * po/fr.po
  4460. * po/ja.po
  4461. * po/zh_CN.po
  4462. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4463. Bump up version number to 0.16.0.
  4464. * configure.ac
  4465. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4467. int32_t.
  4468. Changed the type of count to int32_t.
  4469. * src/Metalink2RequestGroup.cc
  4470. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4471. Added test for Time::elapsed(time_t).
  4472. * test/TimeTest.cc
  4473. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4474. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  4475. Util::difftv() should be used instead.
  4476. * src/TimeA2.cc
  4477. * src/TimeA2.h
  4478. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4479. Made socket for dht connections non-blocking
  4480. * src/DHTAbstractMessage.cc
  4481. * src/DHTAbstractMessage.h
  4482. * src/DHTConnection.h
  4483. * src/DHTConnectionImpl.cc
  4484. * src/DHTConnectionImpl.h
  4485. * src/DHTMessage.h
  4486. * src/DHTMessageDispatcherImpl.cc
  4487. * src/DHTMessageDispatcherImpl.h
  4488. * src/DHTUnknownMessage.cc
  4489. * src/DHTUnknownMessage.h
  4490. * src/SocketCore.cc
  4491. * src/SocketCore.h
  4492. * test/MockDHTMessage.h
  4493. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Changed the type of offset to int.
  4495. * src/ParameterizedStringParser.cc
  4496. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4497. Made getAsInt() return int32_t
  4498. * src/Option.h
  4499. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  4501. build.
  4502. * configure.ac
  4503. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4504. Use sqlite3_open if sqlite3_open_v2 is not available.
  4505. * src/Sqlite3MozCookieParser.cc
  4506. * src/Sqlite3MozCookieParser.h
  4507. * m4/sqlite3.m4
  4508. * test/Sqlite3MozCookieParserTest.cc
  4509. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4510. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  4511. * src/BtPieceMessage.cc
  4512. * src/DHTPeerAnnounceStorage.cc
  4513. * src/DefaultPieceStorage.cc
  4514. * src/DownloadCommand.cc
  4515. * src/DownloadEngine.cc
  4516. * src/FtpConnection.cc
  4517. * src/PeerConnection.cc
  4518. * src/PeerMessageUtil.cc
  4519. * src/RequestGroup.cc
  4520. * src/RequestGroupMan.cc
  4521. * src/SimpleBtMessage.cc
  4522. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4523. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  4524. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4525. * src/AbstractDiskWriter.cc
  4526. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4527. Don't set Request::supportsPersistentConnection() in HttpConnection
  4528. since this code is also used in AbstractProxyResponseCommand.
  4529. Moved those code to HttpResponse.
  4530. * src/HttpResponse.cc
  4531. * src/HttpResponse.h
  4532. * src/HttpConnection.cc
  4533. * src/HttpConnection.h
  4534. * src/HttpResponseCommand.cc
  4535. * test/HttpResponseTest.cc
  4536. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4537. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4538. The configuration is minimum: no torrent, no metalink, so there may be
  4539. other compile error on their code.
  4540. * src/a2netcompat.h
  4541. * src/File.cc
  4542. * src/File.h
  4543. * src/SocketCore.cc
  4544. * src/SocketCore.h
  4545. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4546. Made a socket of incoming peer non-blocking.
  4547. * src/PeerListenCommand.cc
  4548. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4549. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4550. whole message data is not sent in one send() call.
  4551. * src/BtPieceMessage.cc
  4552. * src/BtPieceMessage.h
  4553. * src/PeerConnection.cc
  4554. * src/PeerConnection.h
  4555. * src/SimpleBtMessage.cc
  4556. * src/SimpleBtMessage.h
  4557. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. Fixed the bug that aria2 downloads faster than max-download-limit when
  4559. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4560. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4561. , instead of sum of them.
  4562. * src/ActivePeerConnectionCommand.cc
  4563. * src/DefaultBtInteractive.cc
  4564. * src/DownloadCommand.cc
  4565. * src/PeerInteractionCommand.cc
  4566. * src/PeerReceiveHandshakeCommand.cc
  4567. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4568. Fixed the bug that HTTPS download fails.
  4569. * src/AbstractCommand.cc
  4570. * src/AbstractCommand.h
  4571. * src/DownloadCommand.cc
  4572. * src/FtpConnection.cc
  4573. * src/HttpConnection.cc
  4574. * src/HttpRequestCommand.cc
  4575. * src/HttpResponseCommand.cc
  4576. * src/HttpSkipResponseCommand.cc
  4577. * src/MSEHandshake.cc
  4578. * src/PeerConnection.cc
  4579. * src/SocketCore.cc
  4580. * src/SocketCore.h
  4581. Fixed the bug that aria2 doesn't download whole content body and cannot
  4582. reuse connection if chunked transfer encoding and gzip content encoding
  4583. are set.
  4584. * src/DownloadCommand.cc
  4585. * src/HttpSkipResponseCommand.cc
  4586. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4587. Updated man page.
  4588. * doc/aria2c.1.txt
  4589. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4590. When error occurred while aria2 was parsing an .aria2.conf file, print
  4591. the usage of the option that caused error.
  4592. * src/option_processing.cc
  4593. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Fixed compile error on OptionHandlerException
  4595. * src/Makefile.am
  4596. * src/OptionHandlerException.cc
  4597. * src/OptionHandlerException.h
  4598. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4599. Moved message of the error to OptionHandlerException.h
  4600. * src/NameMatchOptionHandler.h
  4601. * src/OptionHandlerException.h
  4602. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4603. When error occurs while aria2 is parsing an command-line option, print
  4604. the usage of the option.
  4605. * src/Makefile.am
  4606. * src/NameMatchOptionHandler.h
  4607. * src/OptionHandlerException.h
  4608. * src/option_processing.cc
  4609. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4610. Reverted previous change.
  4611. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4612. username is not in URI.
  4613. * src/HttpRequest.cc
  4614. * src/Request.cc
  4615. * test/HttpRequestTest.cc
  4616. * test/RequestTest.cc
  4617. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4618. Now colon is required for username and password in FTP URL, like:
  4619. ftp://username:password@host.
  4620. If colon is not there, aria2 don't parse it as a username. For example,
  4621. aria2 don't retrieve username from ftp://username@host.
  4622. This fix was made in order to login FTP server via non-transparent ftp
  4623. proxy.
  4624. * src/Request.cc
  4625. * test/RequestTest.cc
  4626. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4627. Use netrc for HTTP.
  4628. Now FTP user/password is sent in Authorization header when
  4629. --ftp-via-http-proxy=get is given.
  4630. * src/AuthConfigFactory.cc
  4631. * src/HttpRequest.cc
  4632. * src/HttpRequest.h
  4633. * src/NetrcAuthResolver.cc
  4634. * src/NetrcAuthResolver.h
  4635. * src/OptionHandlerFactory.cc
  4636. * src/option_processing.cc
  4637. * src/prefs.cc
  4638. * src/prefs.h
  4639. * test/AuthConfigFactoryTest.cc
  4640. * test/HttpRequestTest.cc
  4641. * test/NetrcAuthResolverTest.cc
  4642. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4643. Issue PWD command first and get working directory and use it as a prefix
  4644. for CWD command.
  4645. * src/DownloadEngine.cc
  4646. * src/DownloadEngine.h
  4647. * src/FtpConnection.cc
  4648. * src/FtpConnection.h
  4649. * src/FtpFinishDownloadCommand.cc
  4650. * src/FtpInitiateConnectionCommand.cc
  4651. * src/FtpNegotiationCommand.cc
  4652. * src/FtpNegotiationCommand.h
  4653. * test/FtpConnectionTest.cc
  4654. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4655. Removed default user/pass for FTP user/pass, since it should not have
  4656. precedence over netrc configuration by default.
  4657. * src/OptionHandlerFactory.cc
  4658. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. Added debug log for socket event.
  4660. * src/AbstractCommand.cc
  4661. * src/PeerAbstractCommand.cc
  4662. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4663. Log microseconds.
  4664. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4665. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4666. Replaced HelpItem.cc with OptionHandler.cc.
  4667. * po/POTFILES.in
  4668. Updated po files with 'make update-po'
  4669. * po/aria2c.pot
  4670. * po/*.po
  4671. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4672. Removed possible values from the text.
  4673. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4674. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4675. Removed unused preferences:
  4676. PREF_NO_PREALLOCATION
  4677. PREF_STDOUT_LOG
  4678. PREF_TRACKER_MAX_TRIES
  4679. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4680. PREF_MIN_SEGMENT_SIZE
  4681. * src/option_processing.cc
  4682. * src/prefs.cc
  4683. * src/prefs.h
  4684. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4685. Integrated HelpItem into OptionParser to ease the workload for adding
  4686. new options. Removed default value from usage text.
  4687. * src/HelpItem.cc: Removed.
  4688. * src/HelpItem.h: Removed.
  4689. * src/HelpItemFactory.cc: Removed.
  4690. * src/HelpItemFactory.h: Removed.
  4691. * src/Makefile.am
  4692. * src/Makefile.in
  4693. * src/NameMatchOptionHandler.h
  4694. * src/OptionHandler.cc
  4695. * src/OptionHandler.h
  4696. * src/OptionHandlerFactory.cc
  4697. * src/OptionHandlerImpl.h
  4698. * src/OptionParser.cc
  4699. * src/OptionParser.h
  4700. * src/TagContainer.cc: Removed.
  4701. * src/TagContainer.h: Removed.
  4702. * src/TaggedItem.cc: Removed.
  4703. * src/TaggedItem.h: Removed.
  4704. * src/main.cc
  4705. * src/option_processing.cc
  4706. * src/usage_text.h
  4707. * src/version_usage.cc
  4708. * test/HelpItemTest.cc: Removed.
  4709. * test/Makefile.am
  4710. * test/Makefile.in
  4711. * test/OptionHandlerTest.cc
  4712. * test/OptionParserTest.cc
  4713. * test/TagContainerTest.cc: Removed.
  4714. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. Moved `TransferStat stat = ...' to inside the `if' clause.
  4716. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4717. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. Fixed the bug that a block in a piece is requested when same block is
  4719. already requested to the same peer in end game mode.
  4720. * src/BtRequestFactory.h
  4721. * src/DefaultBtInteractive.cc
  4722. * src/DefaultBtRequestFactory.cc
  4723. * src/DefaultBtRequestFactory.h
  4724. * src/DefaultPieceStorage.cc
  4725. * src/DefaultPieceStorage.h
  4726. * src/PieceStorage.h
  4727. * src/UnknownLengthPieceStorage.cc
  4728. * src/UnknownLengthPieceStorage.h
  4729. * test/DefaultBtRequestFactoryTest.cc
  4730. * test/DefaultPieceStorageTest.cc
  4731. * test/MockBtRequestFactory.h
  4732. * test/MockPieceStorage.h
  4733. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4734. Removed _uploadLength and _downloadLength from PeerSessionResource
  4735. and use PeerStat::_sessionUploadLength and
  4736. PeerStat::_sessionDownloadLength.
  4737. * src/PeerSessionResource.cc
  4738. * src/PeerSessionResource.h
  4739. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. Fixed the bug that prefixLength of split bucket which doesn't include
  4741. local node ID is incremented.
  4742. * src/DHTBucket.cc
  4743. * src/DHTBucket.h
  4744. * test/DHTBucketTest.cc
  4745. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Added cookies.sqlite to EXTRA_DIST
  4747. * test/Makefile.am
  4748. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4749. Added Turkish translation. Updated French, German, Russian and
  4750. Simplified Chinese translations. Thanks to all translators.
  4751. * po/LINGUAS
  4752. * po/de.po
  4753. * po/fr.po
  4754. * po/ru.po
  4755. * po/tr.po
  4756. * po/zh_CN.po
  4757. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4758. Added deliminating text to the beginning of the log so that one can find
  4759. where the log starts easily.
  4760. * src/main.cc
  4761. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4762. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4763. to fix compile error when async DNS is not enabled by configuration.
  4764. * src/AbstractCommand.cc
  4765. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4766. If establishing conneciton to a server is failed, then mark error on
  4767. its ServerStat.
  4768. Added the cause of error to log when error event occurred.
  4769. Moved message string to message.h for translation.
  4770. * src/AbstractCommand.cc
  4771. * src/AbstractCommand.h
  4772. * src/FtpNegotiationCommand.cc
  4773. * src/HttpRequestCommand.cc
  4774. * src/PeerAbstractCommand.cc
  4775. * src/message.h
  4776. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Added the function to get error message from socket.
  4778. * src/SocketCore.cc
  4779. * src/SocketCore.h
  4780. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4781. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4782. * src/RequestGroupMan.cc
  4783. * src/RequestGroupMan.h
  4784. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4785. If error event is received in epoll, then abort download immediately.
  4786. * src/AbstractCommand.cc
  4787. * src/Command.cc
  4788. * src/Command.h
  4789. * src/DownloadEngine.cc
  4790. * src/PeerAbstractCommand.cc
  4791. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4792. Added usage message for --uri-selector, --server-stat-of,
  4793. --server-stat-in, --server-stat-timeout options.
  4794. * src/HelpItemFactory.cc
  4795. * src/usage_text.h
  4796. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4797. Added upper limit of FTP response buffer. The current implementation
  4798. uses 4096bytes as a limit.
  4799. * src/FtpConnection.cc
  4800. * src/FtpConnection.h
  4801. * test/FtpConnectionTest.cc
  4802. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4803. Use non-blocking socket for TCP communication to avoid possible
  4804. blocking due to buffer full.
  4805. * src/AbstractProxyRequestCommand.cc
  4806. * src/FtpConnection.cc
  4807. * src/FtpConnection.h
  4808. * src/FtpNegotiationCommand.cc
  4809. * src/FtpNegotiationCommand.h
  4810. * src/HttpConnection.cc
  4811. * src/HttpConnection.h
  4812. * src/HttpRequestCommand.cc
  4813. * src/InitiatorMSEHandshakeCommand.cc
  4814. * src/InitiatorMSEHandshakeCommand.h
  4815. * src/MSEHandshake.cc
  4816. * src/MSEHandshake.h
  4817. * src/Makefile.am
  4818. * src/PeerConnection.cc
  4819. * src/PeerConnection.h
  4820. * src/PeerInteractionCommand.cc
  4821. * src/PeerListenCommand.cc
  4822. * src/ReceiverMSEHandshakeCommand.cc
  4823. * src/ReceiverMSEHandshakeCommand.h
  4824. * src/SocketBuffer.cc
  4825. * src/SocketBuffer.h
  4826. * src/SocketCore.cc
  4827. * src/SocketCore.h
  4828. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Call setStatusRealtime() in constructor.
  4830. * src/RealtimeCommand.cc
  4831. * src/RealtimeCommand.h
  4832. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4833. Call Download::setNoWait(true) to execute newly created command without
  4834. a pause.
  4835. * src/AbstractCommand.cc
  4836. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4837. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4838. found' error from HTTP/FTP server NUM times without getting single
  4839. bytes of data, then force the download to fail.
  4840. Basically aria2 tris all URIs available. So if long list of URIs are
  4841. specified in Metalink, then aria2 will take a long time to fail
  4842. eventually if all URIs are outdated. This option eases this situation
  4843. to limit the number of servers to try.
  4844. * src/FtpNegotiationCommand.cc
  4845. * src/HelpItemFactory.cc
  4846. * src/HttpResponseCommand.cc
  4847. * src/OptionHandlerFactory.cc
  4848. * src/PeerStat.h
  4849. * src/RequestGroup.cc
  4850. * src/RequestGroup.h
  4851. * src/SegmentMan.cc
  4852. * src/SegmentMan.h
  4853. * src/option_processing.cc
  4854. * src/prefs.cc
  4855. * src/prefs.h
  4856. * src/usage_text.h
  4857. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4858. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4859. response even if more than one response is in it.
  4860. * src/FtpConnection.cc
  4861. * src/FtpConnection.h
  4862. * test/FtpConnectionTest.cc
  4863. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Merged from stable-0.15
  4865. * m4/libcares.m4
  4866. Use pkg-config
  4867. * m4/sqlite3.m4
  4868. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4869. Removed unnecessary if statement.
  4870. * src/DefaultPieceStorage.cc (initPieceStorage)
  4871. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Added --connect-timeout option to specify connect timeout in seconds.
  4873. This option is in effect for HTTP/FTP/proxy server. The timeout for
  4874. connecting to BitTorrent peer is not controlled by this option.
  4875. * src/AbstractProxyRequestCommand.cc
  4876. * src/FtpNegotiationCommand.cc
  4877. * src/HelpItemFactory.cc
  4878. * src/HttpRequestCommand.cc
  4879. * src/OptionHandlerFactory.cc
  4880. * src/option_processing.cc
  4881. * src/prefs.cc
  4882. * src/prefs.h
  4883. * src/usage_text.h
  4884. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4885. Added help message for -R option.
  4886. * src/HelpItemFactory.cc
  4887. * src/usage_text.h
  4888. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4889. Added the message that the time is in local time zone.
  4890. * src/RequestGroup.cc
  4891. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4892. Implemented the ability to get timestamp from remote FTP server using
  4893. MDTM command described in RFC3659.
  4894. * src/FtpConnection.cc
  4895. * src/FtpConnection.h
  4896. * src/FtpNegotiationCommand.cc
  4897. * src/FtpNegotiationCommand.h
  4898. * test/FtpConnectionTest.cc
  4899. * test/Makefile.am
  4900. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4901. Implemented the ability to get timestamp from remote HTTP server and
  4902. apply it to local file. To enable this feature, --remote-time option
  4903. is added. No usage text has been written yet.
  4904. If several servers returns difference timestamp, then aria2 uses latest
  4905. one.
  4906. * src/CopyDiskAdaptor.cc
  4907. * src/CopyDiskAdaptor.h
  4908. * src/DirectDiskAdaptor.cc
  4909. * src/DirectDiskAdaptor.h
  4910. * src/DiskAdaptor.h
  4911. * src/File.cc
  4912. * src/File.h
  4913. * src/HttpHeader.cc
  4914. * src/HttpHeader.h
  4915. * src/HttpResponse.cc
  4916. * src/HttpResponse.h
  4917. * src/HttpResponseCommand.cc
  4918. * src/HttpResponseCommand.h
  4919. * src/MultiDiskAdaptor.cc
  4920. * src/MultiDiskAdaptor.h
  4921. * src/OptionHandlerFactory.cc
  4922. * src/RequestGroup.cc
  4923. * src/RequestGroup.h
  4924. * src/RequestGroupMan.cc
  4925. * src/option_processing.cc
  4926. * src/prefs.cc
  4927. * src/prefs.h
  4928. * test/CopyDiskAdaptorTest.cc
  4929. * test/FileTest.cc
  4930. * test/Makefile.am
  4931. * test/Makefile.in
  4932. * test/MultiDiskAdaptorTest.cc
  4933. * test/TestUtil.cc
  4934. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4935. Fixed the bug that DiskWriterEntry is not created when its
  4936. FileEntry.isRequested() is false and it doesn't share a piece with
  4937. other FileEntries that are requested. This bug causes segmentation fault
  4938. in the end.
  4939. * src/MultiDiskAdaptor.cc
  4940. * src/MultiDiskAdaptor.h
  4941. * src/MultiFileAllocationIterator.cc
  4942. * test/MultiDiskAdaptorTest.cc
  4943. * test/MultiFileAllocationIteratorTest.cc
  4944. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4945. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  4946. called if the number of file entries are greater than max open files.
  4947. * src/AbstractSingleDiskAdaptor.cc
  4948. * src/AbstractSingleDiskAdaptor.h
  4949. * src/DiskAdaptor.h
  4950. * src/MultiDiskAdaptor.cc
  4951. * src/MultiDiskAdaptor.h
  4952. * test/MultiDiskAdaptorTest.cc
  4953. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4954. Added a constuctor that receives struct timeval.
  4955. Added operator<.
  4956. * src/TimeA2.cc
  4957. * src/TimeA2.h
  4958. * test/TimeTest.cc
  4959. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  4961. * src/CookieParser.cc
  4962. * test/CookieParserTest.cc
  4963. * test/HttpResponseTest.cc
  4964. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4965. Implmented the functions to parse date.
  4966. * src/TimeA2.cc
  4967. * src/TimeA2.h
  4968. * test/TimeTest.cc
  4969. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4970. Added "Firefox3 Cookie" feature to FeatureConfig
  4971. * src/FeatureConfig.cc
  4972. * src/FeatureConfig.h
  4973. * test/FeatureConfigTest.cc
  4974. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4975. Bump up version number to 0.16.0b
  4976. * configure.ac
  4977. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4978. Use pkg-config if is is available.
  4979. * m4/openssl.m4
  4980. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4981. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  4982. * src/BtAnnounce.h
  4983. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4984. If an error occurred with a URI, remove identical URI from remaining
  4985. URI list because it is likely that same error occurred in the end and it
  4986. is waste of time.
  4987. * src/AbstractCommand.cc
  4988. * src/RequestGroup.cc
  4989. * src/RequestGroup.h
  4990. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4991. Removed wrong comment.
  4992. * src/DefaultPeerStorage.cc
  4993. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  4995. Added return value of getpid() to argument of srand() to achieve more
  4996. randomized value.
  4997. * src/SimpleRandomizer.cc
  4998. * src/SimpleRandomizer.h
  4999. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5000. Contact tracker frequently when the number of connections are 0 and
  5001. download is not finished yet.
  5002. * src/ActivePeerConnectionCommand.cc
  5003. * src/BtAnnounce.h
  5004. * src/DefaultBtAnnounce.cc
  5005. * src/DefaultBtAnnounce.h
  5006. * test/MockBtAnnounce.h
  5007. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5008. Moved threshold values to UTPexExtensionMessage.
  5009. * src/DefaultBtInteractive.cc
  5010. * src/Peer.cc
  5011. * src/Peer.h
  5012. * src/UTPexExtensionMessage.cc
  5013. * src/UTPexExtensionMessage.h
  5014. * test/UTPexExtensionMessageTest.cc
  5015. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5016. Added _incoming member to Peer class and made it true if the peer
  5017. initiated connection. Don't add those peer to UTPex message.
  5018. If extended handshake is received, assign _incoming to false.
  5019. * src/DefaultBtInteractive.cc
  5020. * src/HandshakeExtensionMessage.cc
  5021. * src/Peer.cc
  5022. * src/Peer.h
  5023. * src/PeerListenCommand.cc
  5024. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5025. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5026. Encoding Decoder. Removed size threshold for turning off on the fly
  5027. inflation because resulting file may or may not be inflated depending
  5028. on the file size and I think it is not expected by users.
  5029. This change fixes segmentation fault when Metalink file contains gzipped
  5030. file and its filesize is provided.
  5031. * src/HttpResponseCommand.cc
  5032. * src/HttpResponseCommand.h
  5033. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5034. Made Cookie immutable.
  5035. * src/Cookie.cc
  5036. * src/Cookie.h
  5037. * src/CookieParser.cc
  5038. * src/CookieParser.h
  5039. * src/CookieStorage.cc
  5040. * test/CookieParserTest.cc
  5041. * test/CookieStorageTest.cc
  5042. * test/NsCookieParserTest.cc
  5043. * test/Sqlite3MozCookieParserTest.cc
  5044. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5045. Removed CookieBox, CookieBoxFactory.
  5046. * src/CookieBox.cc
  5047. * src/CookieBox.h
  5048. * src/CookieBoxFactory.cc
  5049. * src/CookieBoxFactory.h
  5050. * src/Makefile.am
  5051. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5052. Use CookieStorage class instead of CookieBox class.
  5053. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5054. * src/AbstractProxyRequestCommand.cc
  5055. * src/CookieStorage.cc
  5056. * src/DownloadEngine.cc
  5057. * src/DownloadEngine.h
  5058. * src/HttpConnection.cc
  5059. * src/HttpConnection.h
  5060. * src/HttpRequest.cc
  5061. * src/HttpRequest.h
  5062. * src/HttpRequestCommand.cc
  5063. * src/HttpResponse.cc
  5064. * src/HttpResponseCommand.cc
  5065. * src/HttpSkipResponseCommand.cc
  5066. * src/Makefile.am
  5067. * src/MultiUrlRequestInfo.cc
  5068. * src/Request.cc
  5069. * src/Request.h
  5070. * src/main.cc
  5071. * test/AllTest.cc
  5072. * test/CookieStorageTest.cc
  5073. * test/CookieTest.cc
  5074. * test/HttpRequestTest.cc
  5075. * test/HttpResponseTest.cc
  5076. * test/Makefile.am
  5077. * test/NsCookieParserTest.cc
  5078. * test/Sqlite3MozCookieParserTest.cc
  5079. * test/nscookietest.txt
  5080. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Updated
  5082. * test/Cookies.sqlite
  5083. * test/nscookietest.txt
  5084. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Added tests for CookieStorage::load()
  5086. * test/CookieStorageTest.cc
  5087. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. Added CookieStorage class which is based on RFC2109 and manages cookies
  5089. more strictly than CookieBox and CookieBoxFactory class.
  5090. * src/CookieStorage.cc
  5091. * src/CookieStorage.h
  5092. * src/Cookie.cc
  5093. * src/Cookie.h
  5094. * test/CookieStorageTest.cc
  5095. * test/CookieTest.cc
  5096. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5097. Fixed the bug that commands are created more than the number of pieces.
  5098. * src/RequestGroup.cc
  5099. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5100. Fixed infinite loop bug in FTP when SIZE command failed.
  5101. * src/FtpNegotiationCommand.cc
  5102. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5103. Removed DirectDiskAdaptorTest.h
  5104. * test/Makefile.am
  5105. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5106. Fixed chunk checksum validation cannot detect trailing garbage data.
  5107. BUG#2074141
  5108. * src/AbstractSingleDiskAdaptor.cc
  5109. * src/AbstractSingleDiskAdaptor.h
  5110. * src/CheckIntegrityEntry.cc
  5111. * src/CheckIntegrityEntry.h
  5112. * src/DiskAdaptor.h
  5113. * src/MultiDiskAdaptor.cc
  5114. * src/MultiDiskAdaptor.h
  5115. * src/RequestGroup.cc
  5116. * test/DirectDiskAdaptorTest.cc
  5117. * test/MultiDiskAdaptorTest.cc
  5118. * test/TestUtil.cc
  5119. * test/TestUtil.h
  5120. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5121. Bump up version number of dht.dat file to 3. In version 3 format, time
  5122. is stored in 64bit, network byte order.
  5123. New build can load old format(version 2) but it saves the file in new
  5124. format. It means once you used new build, your dht.dat becomes
  5125. incompatible with older build.
  5126. * src/DHTRoutingTableDeserializer.cc
  5127. * src/DHTRoutingTableSerializer.cc
  5128. * test/DHTRoutingTableSerializerTest.cc
  5129. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5130. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5131. * test/Makefile.am
  5132. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5133. Bump up version number of .aria2 control file to 0001.
  5134. New aria2 can still load version 0000 file but it saves the file in
  5135. version 0001 format. It means that new aria2 can resume download
  5136. started by old aria2 but the opposite is not true.
  5137. * src/DefaultBtProgressInfoFile.cc
  5138. * src/DefaultBtProgressInfoFile.h
  5139. * test/DefaultBtProgressInfoFileTest.cc
  5140. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. Added ntoh64 and hton64 as inline functions.
  5142. * src/Util.cc
  5143. * test/UtilTest.cc
  5144. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5145. Added sqlite3 depenency and Firefox3 cookie support.
  5146. * README
  5147. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5148. State that firefox3 cookie is supported explicitly in the usage.
  5149. * src/usage_text.h
  5150. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Externalized message.
  5152. * src/RequestGroupMan.cc
  5153. * src/message.h
  5154. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5155. Save temporary file first and rename to the destination on success.
  5156. Added test cases.
  5157. * src/RequestGroupMan.cc
  5158. * test/RequestGroupManTest.cc
  5159. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. Fixed the bug that the number of connected peer is exceeding the limit
  5161. (55 by default) in seeding mode.
  5162. Multiplied 0.8 to _maxUploadSpeedLimit.
  5163. * src/ActivePeerConnectionCommand.cc
  5164. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5165. Clear table item.
  5166. * src/Dictionary.cc
  5167. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5168. Fixed error handling of lseek.
  5169. * src/AbstractDiskWriter.cc
  5170. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5171. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5172. style cookie file.
  5173. * src/usage_text.h
  5174. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5176. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5177. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5178. * src/Util.cc
  5179. * src/Util.h
  5180. * src/CookieParser.cc
  5181. * test/UtilTest.cc
  5182. * test/CookieParserTest.cc
  5183. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Separate the implementation to load old mozilla format of cookie to
  5185. NsCookieParser class.
  5186. * src/CookieBoxFactory.cc
  5187. * src/CookieBoxFactory.h
  5188. * src/NsCookieParser.cc
  5189. * src/NsCookieParser.h
  5190. * test/NsCookieParserTest.cc
  5191. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Made parse() const
  5193. * src/Sqlite3MozCookieParser.cc
  5194. * src/Sqlite3MozCookieParser.h
  5195. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5196. Added firefox3 cookie support based on the patch submitted by
  5197. tizianomueller.
  5198. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5199. this functionality.
  5200. * configure.ac
  5201. * m4/sqlite3.m4
  5202. * src/CookieBoxFactory.cc
  5203. * src/CookieBoxFactory.h
  5204. * src/Makefile.am
  5205. * src/Makefile.in
  5206. * src/Sqlite3MozCookieParser.cc
  5207. * src/Sqlite3MozCookieParser.h
  5208. * src/main.cc
  5209. * test/CookieBoxFactoryTest.cc
  5210. * test/Makefile.am
  5211. * test/Makefile.in
  5212. * test/Sqlite3MozCookieParserTest.cc
  5213. * test/badcookies.sqlite
  5214. * test/cookies.sqlite
  5215. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Added Danish and Greek translations.
  5217. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5218. Great thanks to all translators.
  5219. * po/LINGUAS
  5220. * po/el.po
  5221. * po/da.po
  5222. * po/es.po
  5223. * po/ca.po
  5224. * po/nn.po
  5225. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5226. Fixed man page: --follow-bittorrent should be --follow-torrent
  5227. * doc/aria2c.1.txt
  5228. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. Fixed: numCommand is less than the value specified in -C option.
  5230. * src/RequestGroup.cc
  5231. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5232. Fixed occasional assertion failure in PieceSegment.
  5233. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5234. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5235. creation of duplicate segments and one of the segment was finished then
  5236. assertion failure was caused.
  5237. * src/SegmentMan.cc
  5238. * test/SegmentManTest.cc
  5239. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Added options to load/save the server's performance/status to a file
  5241. and the timeout to drop their data.
  5242. --server-stat-of=FILE specifies the file to which performance data
  5243. is saved.
  5244. --server-stat-if=FILE specifies the file to read previously saved
  5245. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5246. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5247. TIMEOUT is specified in seconds and the default value is 24hours.
  5248. * src/MultiUrlRequestInfo.cc
  5249. * src/OptionHandlerFactory.cc
  5250. * src/RequestGroupMan.cc
  5251. * src/RequestGroupMan.h
  5252. * src/ServerStatMan.cc
  5253. * src/ServerStatMan.h
  5254. * src/option_processing.cc
  5255. * src/prefs.cc
  5256. * src/prefs.h
  5257. * test/ServerStatManTest.cc
  5258. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5259. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5260. * src/ServerStatMan.cc
  5261. * src/ServerStatMan.h
  5262. * test/ServerStatManTest.cc
  5263. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5264. Implemented ServerStatMan::load(...) function and its test case.
  5265. * src/ServerStat.cc
  5266. * src/ServerStat.h
  5267. * src/ServerStatMan.cc
  5268. * test/ServerStatManTest.cc
  5269. * test/ServerStatTest.cc
  5270. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5271. Use time_t instead of int32_t. Use int64_t where milli second is
  5272. expected.
  5273. * src/TimeA2.cc
  5274. * src/TimeA2.h
  5275. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5276. Implemented ServerStatMan::save(...) function and its test case.
  5277. * src/ServerStat.cc
  5278. * src/ServerStat.h
  5279. * src/ServerStatMan.cc
  5280. * src/ServerStatMan.h
  5281. * test/ServerStatManTest.cc
  5282. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5283. Now aria2 uses name attribute in Metalink as local filename in
  5284. BitTorrent downloads. BUG#2033999
  5285. * src/BtContext.h
  5286. * src/BtDependency.cc
  5287. * src/DefaultBtContext.cc
  5288. * src/DefaultBtContext.h
  5289. * src/SingleFileDownloadContext.cc
  5290. * src/SingleFileDownloadContext.h
  5291. * test/BtDependencyTest.cc
  5292. * test/DefaultBtContextTest.cc
  5293. * test/MockBtContext.h
  5294. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5295. Added AC_C_BIGENDIAN
  5296. * src/configure.ac
  5297. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5298. Limited numCommand less than or equal to the number of piece.
  5299. * src/RequestGroup.cc
  5300. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5302. directive.
  5303. * test/DefaultPieceStorageTest.cc
  5304. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5305. Fixed memory leak in test code
  5306. * test/AnnounceListTest.cc
  5307. * test/DefaultPeerListProcessorTest.cc
  5308. * test/DefaultPeerStorageTest.cc
  5309. * test/MetaFileUtilTest.cc
  5310. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5311. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5312. * src/DefaultPieceStorage.cc
  5313. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5314. Initialized _directIOAllowed
  5315. * src/MultiDiskAdaptor.cc
  5316. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5317. Fixed memory leak
  5318. * src/GZipDecoder.cc
  5319. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5320. Fixed memory leak
  5321. * src/MetalinkParserStateMachine.cc
  5322. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5323. Fixed memory leak
  5324. * src/Dictionary.cc
  5325. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Fixed memory leak
  5327. * src/IteratableChunkChecksumValidator.h
  5328. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Fixed unmatched malloc/free.
  5330. * src/IteratableChunkChecksumValidator.cc
  5331. * src/IteratableChecksumValidator.cc
  5332. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5333. Removed max chunk size check. This change fixes BUG#2040169
  5334. * src/ChunkedDecoder.cc
  5335. * src/ChunkedDecoder.h
  5336. * test/ChunkedDecoderTest.cc
  5337. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5338. Implemented download speed based URI selection algorithm.
  5339. Introduced new option --uri-selector.
  5340. If --uri-selector=feedback is given, aria2 uses download speed observed
  5341. in the previous downloads and chooses fastest server in the URI list.
  5342. Currently at most 10 URIs are considered to introduce randomeness for
  5343. finding better servers. The speed is average download speed in the
  5344. downloads.
  5345. On the other hand, if --uri-selector=inorder is given, which is default,
  5346. URI is tried in order in URI list.
  5347. The usage text for the new option has not been written yet.
  5348. * src/AbstractCommand.cc
  5349. * src/DownloadCommand.cc
  5350. * src/DownloadEngine.cc
  5351. * src/DownloadEngineFactory.cc
  5352. * src/InOrderURISelector.cc
  5353. * src/InOrderURISelector.h
  5354. * src/OptionHandlerFactory.cc
  5355. * src/PeerStat.h
  5356. * src/RequestGroup.cc
  5357. * src/RequestGroup.h
  5358. * src/RequestGroupMan.cc
  5359. * src/RequestGroupMan.h
  5360. * src/SegmentMan.cc
  5361. * src/SegmentMan.h
  5362. * src/ServerStat.cc
  5363. * src/ServerStat.h
  5364. * src/ServerStatMan.cc
  5365. * src/ServerStatMan.h
  5366. * src/ServerStatURISelector.cc
  5367. * src/ServerStatURISelector.h
  5368. * src/URISelector.h
  5369. * src/option_processing.cc
  5370. * src/prefs.cc
  5371. * src/prefs.h
  5372. * test/InOrderURISelectorTest.cc
  5373. * test/RequestGroupManTest.cc
  5374. * test/ServerStatManTest.cc
  5375. * test/ServerStatURISelectorTest.cc
  5376. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5377. * Release 0.15.1+2
  5378. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Bump up version number to 0.15.1+2
  5380. * configure.ac
  5381. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5382. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5383. * m4/aria2_arg.m4
  5384. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. * Release 0.15.1+1
  5386. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Bump up version number to 0.15.1+1
  5388. * configure.ac
  5389. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Fixed the bug that causes segmentaion fault when resuming download
  5391. using metalink without size tag. Reproducible only using HTTP URI.
  5392. * src/HttpResponseCommand.cc
  5393. * src/FtpNegotiationCommand.cc
  5394. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5395. * Release 0.15.1
  5396. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. Updated Bulgarian and French translations, thanks to all translators.
  5398. * po/bg.po
  5399. * po/fr.po
  5400. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5401. Bump up version number to 0.15.1
  5402. * configure.ac
  5403. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5404. Avoid repeated call of gettimeofday() when calculating speed.
  5405. * src/SpeedCalc.cc
  5406. * src/SpeedCalc.h
  5407. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Removed writable check when socket's send buffer is full in BitTorrent
  5409. downloads to lower CPU usage.
  5410. * src/PeerInteractionCommand.cc
  5411. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5412. Fixed broken gzip inflation.
  5413. Turn off segmented downloading if gzip content is smaller than or equal
  5414. to 1MiB and inflate the data on the fly, because HTTP response header
  5415. doesn't contain the length of inflated file we can't determin where
  5416. the chunk of data should be written.
  5417. On the other hand, if gzip content is larger than 1MB, then turn off
  5418. on the fly inflation, because some servers returns "content-type: gzip"
  5419. for *.tgz, *.gz files.
  5420. * src/DownloadCommand.cc
  5421. * src/HttpResponseCommand.cc
  5422. * src/HttpResponseCommand.h
  5423. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5424. Applied tizianomueller's patch to fix compile error.
  5425. * test/BitfieldManTest.cc
  5426. * test/BtRequestMessageTest.cc
  5427. * test/DefaultBtContextTest.cc
  5428. * test/DefaultDiskWriterTest.cc
  5429. * test/DefaultPieceStorageTest.cc
  5430. * test/HttpHeaderProcessorTest.cc
  5431. * test/HttpResponseTest.cc
  5432. * test/Metalink2RequestGroupTest.cc
  5433. * test/MetalinkParserControllerTest.cc
  5434. * test/MetalinkProcessorTest.cc
  5435. * test/PeerSessionResourceTest.cc
  5436. * test/UtilTest.cc
  5437. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. * Release 0.15.0
  5439. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. Reordered src files in POTFILES.in so that usage text appears first.
  5441. * po/POTFILES.in
  5442. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5443. Bump up version number to 0.15.0
  5444. * configure.ac
  5445. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. Added Bulgarian translation.
  5447. Updated Catalan, Spanish, French and Japanese translations.
  5448. Thanks to all translators.
  5449. * po/LINGUAS
  5450. * po/bg.po
  5451. * po/ca.po
  5452. * po/es.po
  5453. * po/fr.po
  5454. * po/ja.po
  5455. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5456. Updated feature list. Added libz for dependency section.
  5457. Added a description about unit testing using CppUnit.
  5458. * README
  5459. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5460. Added a test for libz. Quoted where it is necessary.
  5461. * build_test.sh
  5462. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5463. Added GZip to `Enabled Features' list.
  5464. * src/FeatureConfig.cc
  5465. * src/FeatureConfig.h
  5466. * test/FeatureConfigTest.cc
  5467. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5468. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5469. the transfer has not yet started.
  5470. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5471. * src/SegmentMan.cc
  5472. * src/SegmentMan.h
  5473. * test/SegmentManTest.cc
  5474. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5475. Cache last calculated average download/upload speed.
  5476. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  5477. cached value.
  5478. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  5479. * src/PeerStat.h
  5480. * src/SpeedCalc.cc
  5481. * src/SpeedCalc.h
  5482. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5483. Call parseUrl directly.
  5484. * src/Request.cc (resetUrl)
  5485. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. Supported absolute/relative path in Location header field.
  5487. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  5488. * src/HttpHeader.cc
  5489. * src/HttpHeader.h
  5490. * src/HttpResponse.cc
  5491. * src/HttpSkipResponseCommand.cc
  5492. * src/Request.cc
  5493. * test/HttpHeaderTest.cc
  5494. * test/HttpResponseTest.cc
  5495. * test/RequestTest.cc
  5496. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Changed help text for --load-cookie option.
  5498. * doc/aria2c.1.txt
  5499. * src/usage_text.h
  5500. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5501. Regenerated test/Makefile.in to remove stale ChangeLog.
  5502. * test/Makefile.in
  5503. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5504. Updated po files.
  5505. * po/aria2c.pot
  5506. * po/*.po
  5507. * po/*.gmo
  5508. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5509. Bump up version number to 0.15.0b
  5510. * configure.ac
  5511. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. Externalize messages.
  5513. * src/RequestGroupMan.cc
  5514. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  5515. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5516. Use File::exists() instead of File::isFile() to allow non-regular file
  5517. such as block special files.
  5518. * src/AbstractDiskWriter.cc
  5519. * src/MultiDiskWriter.cc
  5520. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  5522. * src/gai_strerror.h
  5523. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5524. Fixed compile error. Thanks gknauf for the patch.
  5525. * src/asctime_r.c
  5526. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Included asctime_r.h from a2time.h.
  5528. * src/a2time.h
  5529. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5530. Added a message "aria2 doesn't verify signature" to log message when
  5531. signature file is saved.
  5532. * src/RequestGroupMan.cc
  5533. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Added the ability to save signature when download is completed if
  5535. signature is available. The filename of signature file is the path to
  5536. download file followed by ".sig". If it already exists, then signature
  5537. will not be saved.
  5538. * src/RequestGroupMan.cc
  5539. * src/Signature.cc
  5540. * test/SignatureTest.cc
  5541. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Updated the descriptions for --bt-seed-unverified.
  5543. * doc/aria2c.1
  5544. * doc/aria2c.1.html
  5545. * doc/aria2c.1.txt
  5546. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5548. that this is not going to verify files using piece hashes.
  5549. * src/HelpItemFactory.cc
  5550. * src/OptionHandlerFactory.cc
  5551. * src/RequestGroup.cc
  5552. * src/option_processing.cc
  5553. * src/prefs.cc
  5554. * src/prefs.h
  5555. * src/usage_text.h
  5556. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5557. Added the ability to retrieve signature from Metalink file.
  5558. A retrieved signature is stored in Signature class and it is held by
  5559. DownloadContext class. Note that aria2 doesn't verify signature.
  5560. * src/DownloadContext.cc
  5561. * src/DownloadContext.h
  5562. * src/Makefile.am
  5563. * src/Makefile.in
  5564. * src/Metalink2RequestGroup.cc
  5565. * src/MetalinkEntry.cc
  5566. * src/MetalinkEntry.h
  5567. * src/MetalinkParserController.cc
  5568. * src/MetalinkParserController.h
  5569. * src/MetalinkParserStateMachine.cc
  5570. * src/MetalinkParserStateMachine.h
  5571. * src/Signature.cc
  5572. * src/Signature.h
  5573. * src/SignatureMetalinkParserState.cc
  5574. * src/SignatureMetalinkParserState.h
  5575. * src/VerificationMetalinkParserState.cc
  5576. * src/VerificationMetalinkParserState.h
  5577. * test/Metalink2RequestGroupTest.cc
  5578. * test/MetalinkParserControllerTest.cc
  5579. * test/MetalinkProcessorTest.cc
  5580. * test/test.xml
  5581. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5582. Close DiskAdaptor after renaming file.
  5583. * src/RequestGroup.cc
  5584. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5585. Corrected indentation
  5586. * src/DefaultBtProgressInfoFile.cc
  5587. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Moved the calls of std::ios::exceptions() inside of try-catch block
  5589. because if an error occurred in constructor of std::fstream, then
  5590. exception is thrown immediately when std::ios::exceptions() is called
  5591. which results unhandled exception and aria2c aborts.
  5592. * src/DefaultBtProgressInfoFile.cc
  5593. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. Added the test for the previous change in DefaultBtContext.cc
  5595. * test/DefaultBtContextTest.cc
  5596. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5597. Fixed the bug that causes infinite loop when the number of pieces are
  5598. fewer than allowed fast set size which is 10 by default.
  5599. * src/DefaultBtContext.cc
  5600. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5601. Updated the descriptions for -j, -s. Added --bt-seed.
  5602. * doc/aria2c.1
  5603. * doc/aria2c.1.html
  5604. * doc/aria2c.1.txt
  5605. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5606. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5607. aria2 seeds previously downloaded files without validating piece hashs.
  5608. * src/HelpItemFactory.cc
  5609. * src/OptionHandlerFactory.cc
  5610. * src/RequestGroup.cc
  5611. * src/option_processing.cc
  5612. * src/prefs.cc
  5613. * src/prefs.h
  5614. * src/usage_text.h
  5615. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5616. Updated DESCRIPTION of man page.
  5617. * doc/aria2c.1
  5618. * doc/aria2c.1.html
  5619. * doc/aria2c.1.txt
  5620. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5621. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5622. Don't define `struct addrinfo' when __sun is defined.
  5623. * src/getaddrinfo.h
  5624. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5626. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5627. second argument is of type `struct _stati64'. Otherwise it is defined as
  5628. `struct stat'.
  5629. * src/AbstractDiskWriter.cc
  5630. * src/File.cc
  5631. * src/File.h
  5632. * src/a2io.h
  5633. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. Fixed the compile error in hurd-i386
  5635. See the original bug report:
  5636. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5637. * src/a2io.h
  5638. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5639. Code cleanup.
  5640. * src/PeerAbstractCommand.cc
  5641. * src/PeerAbstractCommand.h
  5642. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5643. Removed TransferEncoding.
  5644. * src/DownloadCommand.cc
  5645. * src/DownloadCommand.h
  5646. * src/HttpResponseCommand.cc
  5647. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Updated po files.
  5649. * po/aria2c.pot
  5650. * po/*.po
  5651. * po/*.gmo
  5652. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5653. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5654. * src/A2STR.cc
  5655. * src/A2STR.h
  5656. * src/ChunkedDecoder.cc
  5657. * src/ChunkedDecoder.h
  5658. * src/ChunkedEncoding.cc: Removed
  5659. * src/ChunkedEncoding.h: Removed
  5660. * src/DownloadCommand.cc
  5661. * src/DownloadCommand.h
  5662. * src/HttpDownloadCommand.cc
  5663. * src/HttpResponse.cc
  5664. * src/HttpResponse.h
  5665. * src/HttpResponseCommand.cc
  5666. * src/HttpSkipResponseCommand.cc
  5667. * src/HttpSkipResponseCommand.h
  5668. * src/Makefile.am
  5669. * src/TransferEncoding.h: Removed
  5670. * test/ChunkedDecoderTest.cc
  5671. * test/ChunkedEncodingTest.cc: Removed
  5672. * test/HttpResponseTest.cc
  5673. * test/Makefile.am
  5674. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5675. Use append instead of insert.
  5676. * src/GZipDecoder.cc
  5677. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Updated doc
  5679. * src/Decoder.h
  5680. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5681. Updated usage text for -s option.
  5682. * src/usage_text.h
  5683. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5684. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5685. * src/Request.cc
  5686. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5687. Cleaned up configure.ac.
  5688. * configure.ac
  5689. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5691. AC_ARG_ENABLE.
  5692. * configure.ac
  5693. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5694. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5695. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5696. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5697. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5698. fly and writes decoded data to a local disk.
  5699. * README
  5700. * README.html
  5701. * configure.ac
  5702. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5703. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5704. * m4/libz.m4
  5705. * src/Decoder.h
  5706. * src/DownloadCommand.cc
  5707. * src/DownloadCommand.h
  5708. * src/Exception.h
  5709. * src/GZipDecoder.cc
  5710. * src/GZipDecoder.h
  5711. * src/HttpHeader.cc
  5712. * src/HttpHeader.h
  5713. * src/HttpRequest.cc
  5714. * src/HttpRequest.h
  5715. * src/HttpResponse.cc
  5716. * src/HttpResponse.h
  5717. * src/HttpResponseCommand.cc
  5718. * src/Makefile.am
  5719. * test/GZipDecoderTest.cc
  5720. * test/HttpRequestTest.cc
  5721. * test/HttpResponseTest.cc
  5722. * test/Makefile.am
  5723. * test/Makefile.in
  5724. * test/gzip_decode_test.gz
  5725. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5726. Clarified usage of -j option.
  5727. * src/usage_text.h
  5728. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5729. Disabled getting size from the response of RETR.
  5730. If SIZE command failed, then disable resuming and segmented downloading.
  5731. * src/FtpConnection.cc
  5732. * src/FtpConnection.h
  5733. * src/FtpNegotiationCommand.cc
  5734. * src/FtpNegotiationCommand.h
  5735. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. Use digits to find first byte of file size, which makes the intention
  5737. of the code clearer.
  5738. * src/FtpConnection.cc
  5739. Don't call validateTotalLength() when size is 0.
  5740. * src/FtpNegotiationCommand.cc
  5741. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5742. Updated po files.
  5743. * po/aria2c.pot
  5744. * po/*.gmo
  5745. * po/*.po
  5746. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Clarified usage text for --split option.
  5748. * src/usage_text.h
  5749. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Bump up version number to 0.15.0dev. "dev" means "development"
  5751. version, which means I started the development of the next release!
  5752. * src/configure.ac
  5753. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. If FTP server returns negative response with REST raw command and
  5755. requested range is not 0, throw exception. If requested range is 0,
  5756. continue download a file from 0 byte.
  5757. * src/FtpNegotiationCommand.cc
  5758. * src/FtpNegotiationCommand.h
  5759. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5760. Supported FTP server which don't recognize SIZE raw command.
  5761. If SIZE raw command is failed, aria2 will try to get file size
  5762. from the response of RETR raw command. If both attempts are failed,
  5763. then resuming and segmented downloading are disabled.
  5764. * src/FtpConnection.cc
  5765. * src/FtpConnection.h
  5766. * src/FtpNegotiationCommand.cc
  5767. * src/FtpNegotiationCommand.h
  5768. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. * Release 0.14.0+1
  5770. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5771. Bump up version number to 0.14.0+1
  5772. * src/configure.ac
  5773. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5774. Fixed the code that refers static member variable from non-static
  5775. context.
  5776. * src/DefaultPeerStorage.cc
  5777. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. * Release 0.14.0
  5779. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5780. Added build test script
  5781. * build_test.sh
  5782. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5783. Updated ja.po
  5784. * src/ja.po
  5785. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5786. Bump up version number to 0.14.0
  5787. * src/configure.ac
  5788. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5789. Updated ja.po and fr.po. Great thanks for french translators and
  5790. Sebastien WILLEMIJNS.
  5791. * po/fr.po
  5792. * po/ja.po
  5793. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5794. Added configure option to enable/disable epoll support.
  5795. * configure.ac
  5796. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Updated man page.
  5798. * doc/aria2c.1.txt
  5799. * doc/aria2c.1
  5800. * doc/aria2c.1.html
  5801. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5802. Added missing default value '5' to the usage of --split option.
  5803. * src/HelpItemFactory.cc
  5804. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Filled up pieces based on the number of missing blocks, rather than
  5806. simplay the number of piece * block length.
  5807. * src/BtRequestFactory.h
  5808. * src/DefaultBtInteractive.cc
  5809. * src/DefaultBtInteractive.h
  5810. * src/DefaultBtRequestFactory.cc
  5811. * src/DefaultBtRequestFactory.h
  5812. * src/Piece.cc
  5813. * src/Piece.h
  5814. * test/BitfieldManTest.cc
  5815. * test/DefaultBtRequestFactoryTest.cc
  5816. * test/MockBtRequestFactory.h
  5817. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5818. Made _epEvents a member variable.
  5819. * src/DownloadEngine.cc
  5820. * src/DownloadEngine.h
  5821. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5822. Cancel download if http redirect is bounded more than 20 times.
  5823. * src/AbstractCommand.cc
  5824. * src/HttpSkipResponseCommand.cc
  5825. * src/Request.cc
  5826. * src/Request.h
  5827. * test/RequestTest.cc
  5828. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5829. Fixed unhandled exception(removed keyword `new').
  5830. * src/SocketCore.cc (initEPOLL)
  5831. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5832. Removed visit(const MetaEntry*)
  5833. * src/MetaEntryVisitor.h:
  5834. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5835. and made them virtual.
  5836. * src/BencodeVisitor.h
  5837. * src/BencodeVisitor.cc
  5838. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5839. Updated po files.
  5840. * po/aria2c.pot
  5841. * po/*.po
  5842. * po/*.gmo
  5843. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5844. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5845. the number of socket to watch out.
  5846. * src/PeerInteractionCommand.cc
  5847. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5848. When there is not enough space in disk when writing a chunk of data,
  5849. aria2 now prints the message to the console to warn user and aborts
  5850. its download. Not all downloads are canceled because some downloads
  5851. may use another disk or partition. BUG#1640332
  5852. * src/AbstractDiskWriter.cc
  5853. * src/PeerAbstractCommand.cc
  5854. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5855. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5856. setHaltRequested(true) to cancel download.
  5857. * src/PeerInteractionCommand.h
  5858. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5859. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5860. socket from int to sock_t as sockets are unsigned in Windows.
  5861. For AsyncNameResolver, DownloadEngine, I did additional modification
  5862. for the portion of the code changed according to epoll support.
  5863. I defined sock_t in a2netcompat.h to use sock_t without including
  5864. SocketCore.h.
  5865. * src/AsyncNameResolver.cc
  5866. * src/AsyncNameResolver.h
  5867. * src/DownloadEngine.cc
  5868. * src/DownloadEngine.h
  5869. * src/SocketCore.cc
  5870. * src/SocketCore.h
  5871. * src/a2netcompat.h
  5872. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5873. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  5874. changes in the patch were applied.
  5875. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  5876. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  5877. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  5878. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5879. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  5880. a2io.h and common.h were modified.
  5881. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  5882. MinGW.
  5883. * src/common.h: Changed off_t to 64 bit in MinGW.
  5884. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5885. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5886. only a2netcompat.h is modified.
  5887. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  5888. directives.
  5889. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5891. only gai_strerror.h is modified.
  5892. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  5893. winsock errors in MinGW.
  5894. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5895. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  5896. follow sources are applied.
  5897. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  5898. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  5899. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  5900. I included locale.h from Platform.cc.
  5901. * src/main.cc: Moved common setup/teardown code to Platform class.
  5902. * test/AllTest.cc: Use Platform class.
  5903. Set locale to C in AllTest.cc to prevent the messages to be localized.
  5904. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  5906. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  5907. * test/HttpRequestTest.cc: Casted to off_t where it should.
  5908. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5909. Applied Ross's aria2-0.13.2+1-mingw.patch and
  5910. aria2-0.13.2+1-mingw-2.patch.
  5911. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  5912. systems which don't have termious.h. I moved the directive inside of
  5913. if(isTTY) { ... clause so that line is wiped out without termious.h.
  5914. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  5915. anyway.
  5916. * src/asctime_r.h
  5917. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  5918. I added 2nd argument to the prototype declaration.
  5919. * src/StringFormat.cc: Get rid of vasprintf.
  5920. * src/getaddrinfo.h: Fixed constants.
  5921. * configure.ac: Added the check for asctime_r function.
  5922. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  5923. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5924. Added writable test for Socket when the sending message is in progress.
  5925. Usually the sending message is piece message. Without wriable check,
  5926. upload latency is dropped to more than 1sec.
  5927. * src/PeerInteractionCommand.cc
  5928. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5929. Create only requested files and files which shares a piece with
  5930. requested file in multi-torrent downloads. Directory structures are
  5931. also created in the same rule.
  5932. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  5933. DiskWriterEntry as in the previous implementation.
  5934. * src/MultiDiskWriter.cc
  5935. * src/MultiFileAllocationIterator.cc
  5936. * src/MultiFileAllocationIterator.h
  5937. * test/MultiFileAllocationIteratorTest.cc
  5938. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5939. Commented out -lprofiler
  5940. * src/Makefile.am
  5941. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5942. Bump up version number to 0.14.0b.
  5943. * src/configure.ac
  5944. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. Actively establish connection to peers in seeding, when peer cache
  5946. is not full and max upload speed limit is not reached.
  5947. * src/ActivePeerConnectionCommand.cc
  5948. * src/ActivePeerConnectionCommand.h
  5949. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5950. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  5951. to make room more fleshy, recently found peers.
  5952. Peer::_badConditionStartTime is not used anymore. Consider to remove
  5953. it.
  5954. * src/DefaultPeerStorage.cc
  5955. * test/DefaultPeerStorageTest.cc
  5956. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5957. Returns cached data only when the previous receiveHandshake() is called
  5958. with peek = true.
  5959. * src/PeerConnection.cc (receiveHandshake)
  5960. * src/PeerConnection.h (receiveHandshake)
  5961. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. Changed default value of -s option from 1 to 5.
  5963. Also max value of -s option is changed from 5 to 16.
  5964. * src/HelpItemFactory.cc
  5965. * src/OptionHandlerFactory.cc
  5966. * src/option_processing.cc
  5967. * src/usage_text.h
  5968. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5969. Changed -s options behavior. Now it means the number of connections
  5970. made simultaneously in each http/ftp download.
  5971. If 1 URL is specified, the behavior is the same with old implementation.
  5972. If -s N is given and more than N URLs are specified, first N URLs are
  5973. used and remaining URLs are used for backup. If less than N URLs are
  5974. specified, some of URLs are used more than once so that totally N
  5975. connections are made simultaneously.
  5976. * src/main.cc
  5977. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5978. Included missing iosfwd or ostream header.
  5979. * src/RequestGroupMan.cc
  5980. * src/TaggedItem.cc
  5981. * src/TaggedItem.h
  5982. * src/Util.cc
  5983. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5984. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  5985. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  5986. * src/HttpConnection.cc: Included missing sstream.
  5987. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Added --bt-max-open-files option.
  5989. * src/DefaultPieceStorage.cc
  5990. * src/HelpItemFactory.cc
  5991. * src/MultiDiskAdaptor.cc
  5992. * src/MultiDiskAdaptor.h
  5993. * src/OptionHandlerFactory.cc
  5994. * src/option_processing.cc
  5995. * src/prefs.cc
  5996. * src/prefs.h
  5997. * src/usage_text.h
  5998. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. Fixed the bug that aria2 aborts when a path to a directory is given
  6000. in command-line.
  6001. * src/ProtocolDetector.cc
  6002. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6003. Limited the number files opened in each BitTorrent download. The default
  6004. value is 100. The option to change this value will be added.
  6005. * src/MultiDiskAdaptor.cc
  6006. * src/MultiDiskAdaptor.h
  6007. * src/MultiFileAllocationIterator.cc
  6008. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6009. Fixed the bug that HTTP downloads don't start with old libraries.
  6010. * src/HttpHeaderProcessor.cc
  6011. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6012. Use empty() instead of size() > 0.
  6013. * src/HttpConnection.cc
  6014. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6015. Drop connection if the incoming peer ID is the same with localhost's
  6016. one. The previous implementation drops connection when incoming peer's
  6017. IP address is the same with localhost's one.
  6018. * src/PeerListenCommand.cc
  6019. * src/DefaultBtInteractive.cc
  6020. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6021. Returns cached data without checking whether socket is readable
  6022. if the cache is available.
  6023. * src/PeerConnection.cc (receiveHandshake)
  6024. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6025. Included stdint.h
  6026. * src/common.h
  6027. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Removed duplicate HAVE_GETTIMEOFDAY
  6029. * src/Makefile.am
  6030. * src/Makefile.in
  6031. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6032. Use interval as a minInterval when minInterval is not supplied.
  6033. * src/DefaultBtAnnounce.cc
  6034. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6036. attempt is failed, then 2nd attempt get kicked out more quickly.
  6037. And it is now static const member of DefaultBtAnnounce.
  6038. * src/DefaultBtAnnounce.h
  6039. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6041. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6042. * src/ActivePeerConnectionCommand.cc
  6043. * src/BtConstants.h
  6044. * src/BtRuntime.h
  6045. * src/DHTGetPeersCommand.cc
  6046. * src/DefaultBtAnnounce.cc
  6047. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6048. BtRuntime::MAX_PEERS.
  6049. * src/DefaultPeerStorage.h
  6050. * src/InitiatorMSEHandshakeCommand.cc
  6051. * src/PeerInitiateConnectionCommand.cc
  6052. * src/PeerInteractionCommand.cc
  6053. * src/PeerReceiveHandshakeCommand.cc
  6054. * src/TrackerWatcherCommand.cc
  6055. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Always Connect to _numNewConnection
  6057. * src/ActivePeerConnectionCommand.cc
  6058. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6059. Made `begin' unsigned int.
  6060. * src/GrowSegment.h
  6061. * src/Piece.cc
  6062. * src/Piece.h
  6063. * src/PiecedSegment.cc
  6064. * src/PiecedSegment.h
  6065. * src/Segment.h
  6066. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. Calculate piece hash when data is arrived if the data is arrived in
  6068. order. This removes additional read operation for hash calculation.
  6069. If the data is arrived in out of order, the hash is calucated when the
  6070. piece is completed. This is the same behavior as the old implementation.
  6071. * src/BtPieceMessage.cc
  6072. * src/DefaultBtProgressInfoFile.cc
  6073. * src/DefaultPieceStorage.cc
  6074. * src/DownloadCommand.cc
  6075. * src/DownloadCommand.h
  6076. * src/DownloadEngine.cc
  6077. * src/GrowSegment.cc
  6078. * src/GrowSegment.h
  6079. * src/Piece.cc
  6080. * src/Piece.h
  6081. * src/PiecedSegment.cc
  6082. * src/PiecedSegment.h
  6083. * src/Segment.h
  6084. * test/PieceTest.cc
  6085. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Try to keep the ordering of outgoing piece message.
  6087. * src/DefaultBtMessageDispatcher.cc
  6088. (DefaultBtMessageDispatcher::sendMessages)
  6089. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6090. Fixed busy loop when error/hup epoll events occur.
  6091. * src/AbstractCommand.cc
  6092. * src/PeerAbstractCommand.cc
  6093. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6094. Added --bt-request-peer-speed-limit option, which was a constant
  6095. SLOW_SPEED_THRESHOLD.
  6096. * src/ActivePeerConnectionCommand.cc
  6097. * src/ActivePeerConnectionCommand.h
  6098. * src/BtConstants.h
  6099. * src/HelpItemFactory.cc
  6100. * src/OptionHandlerFactory.cc
  6101. * src/PeerReceiveHandshakeCommand.cc
  6102. * src/option_processing.cc
  6103. * src/prefs.cc
  6104. * src/prefs.h
  6105. * src/usage_text.h
  6106. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6107. Removed repeated call of getTopDirPath(). Instead, call it once and
  6108. cache the result.
  6109. * src/MultiDiskAdaptor.cc
  6110. * src/MultiDiskAdaptor.h
  6111. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6112. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6113. Fixed compile error on debian etch.
  6114. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6115. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6116. it is undefined.
  6117. * src/Util.cc (ULLONG_MAX)
  6118. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6119. Added epoll support. Use epoll if it is available. If not, use select.
  6120. When async dns is enabled in compile time, epoll support is enabled
  6121. only when aria2 is built with c-ares. This condition statement is
  6122. defined in a2io.h.
  6123. Currently aria2 supports both c-ares and ares, but ares is maintained
  6124. for quite a while and debian already has c-ares package, ares support
  6125. will be dropped in the future version.
  6126. * configure.ac
  6127. * src/AbstractCommand.cc
  6128. * src/AsyncNameResolver.cc
  6129. * src/AsyncNameResolver.h
  6130. * src/Command.cc
  6131. * src/Command.h
  6132. * src/DownloadEngine.cc
  6133. * src/DownloadEngine.h
  6134. * src/PeerAbstractCommand.cc
  6135. * src/SocketCore.cc
  6136. * src/SocketCore.h
  6137. * src/a2io.h
  6138. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6139. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6140. directive.
  6141. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Do not do write operation to /dev/null file.
  6143. * src/LogFactory.cc
  6144. * src/SimpleLogger.cc
  6145. Replaced vasprintf with vsnprintf
  6146. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6147. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6148. * src/BtRequestMessage.cc
  6149. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6150. for segmentation fault caused by previous commit.
  6151. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6152. Reduced the usage of gettimeofday().
  6153. * src/DefaultBtMessageDispatcher.cc
  6154. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6155. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6156. * src/RequestSlot.cc
  6157. * src/RequestSlot.h
  6158. (RequestSlot::isTimeout)
  6159. Made RequestSlot have a reference to Piece object to avoid find
  6160. Piece repeatedly.
  6161. * src/DefaultBtMessageDispatcher.cc
  6162. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6163. * src/RequestSlot.cc
  6164. * src/RequestSlot.h
  6165. (RequestSlot::getPiece)
  6166. * test/DefaultBtMessageDispatcherTest.cc
  6167. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. * src/TimeA2.cc
  6169. * src/TimeA2.h
  6170. (Time::difference): New function.
  6171. (Time::elapsed): Done optimization.
  6172. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6173. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6174. directive.
  6175. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6176. * src/option_processing.cc: Added missing `defined' keyword to #if
  6177. directive.
  6178. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6179. Bump up version number to 0.13.2+1
  6180. * src/configure.ac
  6181. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Refactored broken outstanding piece handling.
  6183. * src/DefaultPieceStorage.cc
  6184. * src/DefaultPieceStorage.h
  6185. * src/Piece.cc
  6186. * src/Piece.h
  6187. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6188. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6189. name collision of static variable and predefined macro.
  6190. * src/BtContext.cc
  6191. * src/BtContext.h
  6192. * src/CookieBoxFactory.cc
  6193. * src/CookieBoxFactory.h
  6194. * src/CookieParser.cc
  6195. * src/CookieParser.h
  6196. * src/DefaultBtContext.cc
  6197. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. * src/RequestGroup.cc
  6199. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6200. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6201. * Release 0.13.2
  6202. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6203. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6204. * po/fr.po
  6205. * po/ja.po
  6206. * po/aria2c.pot
  6207. * po/*.po
  6208. * po/*.gmo
  6209. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6210. Bump up version number to 0.13.2
  6211. * src/configure.ac
  6212. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Refactord.
  6214. * src/RequestGroupMan.cc
  6215. (removeStoppedGroup)
  6216. (fillRequestGroupFromReserver)
  6217. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Fixed compile error on Ubuntu.
  6219. * src/BtPieceMessage.cc
  6220. * src/MessageDigestHelper.cc
  6221. * src/Util.cc
  6222. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6223. Fixed compile error when configured with --disable-bittorrent
  6224. * test/DownloadHandlerFactoryTest.cc
  6225. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Done make update-po
  6227. * po/aria2c.pot
  6228. * po/*.po
  6229. * po/*.gmo
  6230. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6231. Bump up version number to 0.13.2rc.
  6232. * src/configure.ac
  6233. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Made option name bold. Updated SYNOPSIS to make it more readable.
  6235. * doc/aria2c.1.txt
  6236. * doc/aria2c.1
  6237. * doc/aria2c.1.html
  6238. * src/version_usage.cc
  6239. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. Refactored. Use std::string instead of size and char*.
  6241. * Data.cc
  6242. * Data.h
  6243. * test/Data.cc
  6244. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Added trimSelf(). Rewritten trim() to use trimSelf().
  6246. * Util.cc
  6247. * Util.h
  6248. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6249. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6250. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6251. Fixed compile error when configured with --disable-metalink.
  6252. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6253. * test/FeatureConfigTest.cc
  6254. * test/DownloadHandlerFactoryTest.cc
  6255. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. Fixed compile error when configured with --without-gnutls
  6257. --without-openssl
  6258. * src/main.cc
  6259. * test/DefaultBtProgressInfoFileTest.cc
  6260. * test/SegmentManTest.cc
  6261. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6262. Fixed compile error with OpenSSL.
  6263. * src/IteratableChunkChecksumValidator.cc
  6264. * src/LibsslDHKeyExchange.h
  6265. * src/MessageDigestHelper.cc
  6266. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6267. Revert the default value of --max-concurrent-downloads to 5.
  6268. Revert the default value of --metalink-servers to 5.
  6269. Man pages was also updated.
  6270. * src/option_processing.cc
  6271. * doc/aria2c.1.txt
  6272. * doc/aria2c.1.html
  6273. * doc/aria2c.1
  6274. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6275. Returns const reference:
  6276. DownloadContext::getPieceHash, DownloadContext::getName,
  6277. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6278. BtContext::getInfoHashAsString,
  6279. * src/BtContext.h
  6280. * src/DefaultBtContext.cc
  6281. * src/DefaultBtContext.h
  6282. * src/DownloadContext.h
  6283. * src/SingleFileDownloadContext.h
  6284. * test/MockBtContext.h
  6285. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. * src/RequestGroup.h (getDir): Removed.
  6287. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6288. Returns const reference. The internal urlencode function was optimized
  6289. a little bit.
  6290. * src/Request.cc
  6291. * src/Request.h
  6292. * src/HttpRequest.cc
  6293. * src/HttpRequest.h
  6294. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Defined option name and possible values as std::string to reduce
  6296. temporary string object creation in runtime.
  6297. * src/HelpItemFactory.cc
  6298. * src/LogFactory.cc
  6299. * src/Option.cc
  6300. * src/OptionHandlerFactory.cc
  6301. * src/option_processing.cc
  6302. * src/prefs.cc
  6303. * src/prefs.h
  6304. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Return const reference.
  6306. * src/DownloadHandlerConstants.cc
  6307. * src/DownloadHandlerConstants.h
  6308. (getMetalinkExtensions)
  6309. (getMetalinkContentTypes)
  6310. (getBtExtensions)
  6311. (getBtContentTypes)
  6312. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. * src/HttpHeader.cc (get): Rewritten.
  6314. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Make HttpHeader::getFirst(...) return const reference.
  6316. * src/HttpHeader.cc
  6317. * src/HttpHeader.h
  6318. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6319. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6320. it with V_TRUE.
  6321. * src/DefaultPieceStorage.cc
  6322. * src/DownloadCommand.cc
  6323. * src/FtpNegotiationCommand.cc
  6324. * src/HttpRequest.cc
  6325. * src/InitiateConnectionCommand.cc
  6326. * src/RequestGroup.cc
  6327. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Made Option::get(...) return const reference of std::string.
  6329. * src/Option.cc
  6330. * src/Option.h
  6331. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. Replaced std:copy with insert.
  6333. * src/DefaultBtMessageDispatcher.cc
  6334. * src/DefaultPieceStorage.cc
  6335. * src/DownloadEngineFactory.cc
  6336. * src/RequestGroup.cc
  6337. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6338. Included SocketCore.h to fix compiler warning.
  6339. * src/InitiateConnectionCommand.cc
  6340. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6341. Put piece selection strategy algorithm to RarestPieceSelector class,
  6342. Added a switch to choose whether randomized selection so that unit
  6343. tests emit same results in, possibly, win32.
  6344. * src/DefaultPieceStorage.cc
  6345. * src/DefaultPieceStorage.h
  6346. * src/RarestPieceSelector.cc
  6347. * src/RarestPieceSelector.h
  6348. * test/DefaultPieceStorageTest.cc
  6349. * test/RarestPieceSelectorTest.cc
  6350. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6351. Don't pool connection if HTTP proxy is enabled.
  6352. * src/FtpFinishDownloadCommand.cc
  6353. * src/FtpNegotiationCommand.cc
  6354. * src/HttpSkipResponseCommand.cc
  6355. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6357. * src/AbstractCommand.cc
  6358. * src/AbstractCommand.h
  6359. * src/ActivePeerConnectionCommand.cc
  6360. * src/FtpInitiateConnectionCommand.cc
  6361. * src/HttpInitiateConnectionCommand.cc
  6362. * src/InitiateConnectionCommandFactory.cc
  6363. * src/PeerAbstractCommand.cc
  6364. * src/PeerAbstractCommand.h
  6365. * src/PeerInitiateConnectionCommand.cc
  6366. * src/TrackerWatcherCommand.cc
  6367. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6368. Sort RequestSlot in ascending order and manipulate them using
  6369. lower_bound.
  6370. * src/DefaultBtMessageDispatcher.cc
  6371. * src/DefaultBtMessageDispatcher.h
  6372. (getMessageQueue): Added const qualifier.
  6373. (getRequestSlots): Added const qualifier.
  6374. (sendMessages): Use empty() instead of size().
  6375. (doCancelSendingPieceAction): Use HandleEvent object.
  6376. (doAbortOutstandingRequestAction): Rewritten.
  6377. (doChokedAction): Rewritten.
  6378. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6379. (isOutstandingRequest): Rewritten.
  6380. (getOutstandingRequest): Rewritten.
  6381. (removeOutstandingRequest): Rewritten.
  6382. (addOutstandingRequest): Rewritten.
  6383. * src/RequestSlot.cc
  6384. * src/RequestSlot.h
  6385. (operator=): Rewritten.
  6386. (operator!=): New function.
  6387. (operator<): New function.
  6388. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6389. * src/DefaultBtRequestFactory.cc
  6390. (doChokedAction): Rewritten.
  6391. (removeCompletedPiece): Rewritten.
  6392. (removeTargetPiece): Rewritten.
  6393. (createRequestMessages): Added the debug log.
  6394. (createRequestMessagesOnEndGame: Added the debug log.
  6395. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6396. Added the debug log message.
  6397. * src/BtPieceMessage.cc (doReceivedAction)
  6398. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6399. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6400. used lower_bound to process them rather than linear search.
  6401. * src/DHTPeerAnnounceStorage.cc
  6402. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6404. peer has at least one completed piece.
  6405. * src/Peer.cc
  6406. * src/Peer.h
  6407. * src/PeerInteractionCommand.cc
  6408. * src/PeerSessionResource.cc
  6409. * src/PeerSessionResource.h
  6410. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6411. Removed unnecessary sorting
  6412. * src/DefaultPieceStorage (DefaultPieceStorage)
  6413. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6414. Rewritten the portion of the code that mangaes allowed fast indexes.
  6415. * src/PeerSessionResource.cc
  6416. * src/PeerSessionResource.h
  6417. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6418. Removed the invalid string including '\r' from ru.po and
  6419. did make update-po.
  6420. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. Added --log-level and --summary-interval to man page.
  6422. * doc/aria2c.1.txt
  6423. * doc/aria2c.1.html
  6424. * doc/aria2c.1
  6425. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. Added --log-level option to specify log level. Log messages under
  6427. the specified level are not output. Default value is `debug'.
  6428. * src/HelpItemFactory.cc
  6429. * src/LogFactory.cc
  6430. * src/LogFactory.h
  6431. * src/Logger.h
  6432. * src/OptionHandlerFactory.cc
  6433. * src/SimpleLogger.cc
  6434. * src/SimpleLogger.h
  6435. * src/main.cc
  6436. * src/option_processing.cc
  6437. * src/prefs.h
  6438. * src/usage_text.h
  6439. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. Print download progress summary of all parallel downloads in specified
  6441. interval, default 60 secs. While aria2 could download several files
  6442. in parallel (see -j option), it displayed just first download progress,
  6443. and the other downloads are hidden from the users. This new feature
  6444. prints all downloads currently in-progress to the console so that you
  6445. can check the status of all downloads. The interval can be adjusted
  6446. by --summary-interval option.
  6447. The progress readout is now cut so that all fits in the one line of
  6448. console.
  6449. * src/ConsoleStatCalc.cc
  6450. * src/ConsoleStatCalc.h
  6451. * src/HelpItemFactory.cc
  6452. * src/OptionHandlerFactory.cc
  6453. * src/RequestGroupMan.cc
  6454. * src/RequestGroupMan.h
  6455. * src/main.cc
  6456. * src/option_processing.cc
  6457. * src/prefs.h
  6458. * src/usage_text.h
  6459. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6460. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6461. * src/DownloadEngine.cc (DownloadEngine)
  6462. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6463. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6464. defined.
  6465. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6466. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6467. Use erase+lower_bound+insert instead of sort.
  6468. * src/DefaultPieceStorage.cc (addPieceStats)
  6469. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6470. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6471. * src/A2STR.cc
  6472. * src/A2STR.h
  6473. * src/OptionParser.cc (parse)
  6474. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6475. Defined fake filename `[tracker.announce]' as static const std::string.
  6476. * src/TrackerWatcherCommand.cc (createRequestGroup)
  6477. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6478. Defined default filename `index.html' as static const std::string
  6479. * src/SingleFileDownloadContext.cc
  6480. * src/SingleFileDownloadContext.h
  6481. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Defined "[MEMORY]" as static const std::string.
  6483. * src/MemoryBufferPreDownloadHandler.cc (execute)
  6484. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. Defined control file's version number as static const std::string.
  6486. * src/DefaultBtProgressInfoFile.cc
  6487. * src/DefaultBtProgressInfoFile.h
  6488. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6489. Use Request::METHOD_GET
  6490. * src/RequestGroup.cc (createNextCommandWithAdj)
  6491. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6492. Defined "OK", "ERR", "INPR" as static const std::string
  6493. * src/RequestGroupMan.cc (showDownloadResults)
  6494. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. Defined default client used in extended handshake as static const
  6496. std::string
  6497. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  6498. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6499. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  6500. * src/HttpConnection.cc (eraseConfidentialInfo)
  6501. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Defined default ftp user and password as static const std::string
  6503. * src/AuthConfigFactory.cc
  6504. * src/AuthConfigFactory.h
  6505. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Defined strings used in netrc as static const std::string
  6507. * src/Netrc.cc
  6508. * src/Netrc.h
  6509. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. Defined HTTP status as static const std::string
  6511. * src/AbstractProxyResponseCommand.cc
  6512. * src/HttpHeader.cc
  6513. * src/HttpHeader.h
  6514. * src/HttpResponse.cc
  6515. * src/HttpResponseCommand.cc
  6516. * src/HttpSkipResponseCommand.cc
  6517. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Defined "\r\n", "A", "I" as static const std::string
  6519. * src/A2STR.cc
  6520. * src/A2STR.h
  6521. * src/FtpConnection.cc
  6522. * src/FtpConnection.h
  6523. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Added COLON_C(".") and used it in Request::parseUrl()
  6525. * src/A2STR.cc
  6526. * src/A2STR.h
  6527. * src/Request.cc (parseUrl)
  6528. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6529. Changed the type of padName from `const std::string&' to `const char*'.
  6530. * src/MSEHandshake.cc (verifyPadLength)
  6531. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6532. Defined "sha1" as static const std::string.
  6533. * src/MetalinkParserController.cc
  6534. * src/MetalinkParserController.h
  6535. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6536. Defined message digest algorithm name as static const std::string
  6537. * src/DHTTokenTracker.cc
  6538. * src/DHTUtil.cc
  6539. * src/DefaultBtContext.cc
  6540. * src/MSEHandshake.cc
  6541. * src/MessageDigestHelper.cc
  6542. * src/Peer.cc
  6543. * src/messageDigest.cc
  6544. * src/messageDigest.h
  6545. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. Made string literals used in SAX parser static const std::string.
  6547. * src/FileMetalinkParserState.cc
  6548. * src/FileMetalinkParserState.h
  6549. * src/FilesMetalinkParserState.cc
  6550. * src/FilesMetalinkParserState.h
  6551. * src/InitialMetalinkParserState.cc
  6552. * src/InitialMetalinkParserState.h
  6553. * src/MetalinkMetalinkParserState.cc
  6554. * src/MetalinkMetalinkParserState.h
  6555. * src/PiecesMetalinkParserState.cc
  6556. * src/PiecesMetalinkParserState.h
  6557. * src/ResourcesMetalinkParserState.cc
  6558. * src/ResourcesMetalinkParserState.h
  6559. * src/VerificationMetalinkParserState.cc
  6560. * src/VerificationMetalinkParserState.h
  6561. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6563. * src/A2STR.cc
  6564. * src/A2STR.h
  6565. * src/File.cc
  6566. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6567. Defined static const std::string IP("ip"), PORT("port") and use them
  6568. instead of string literals.
  6569. * src/DefaultPeerListProcessor.cc
  6570. * src/DefaultPeerListProcessor.h
  6571. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6572. Made string literals for torrent file processing static const
  6573. std::string.
  6574. * src/BtContext.cc
  6575. * src/BtContext.h
  6576. * src/DefaultBtContext.cc
  6577. * src/DefaultBtContext.h
  6578. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6579. Made string literal for tracker response static const std::string
  6580. * src/BtAnnounce.cc
  6581. * src/BtAnnounce.h
  6582. * src/DefaultBtAnnounce.cc
  6583. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6584. Use DHTMessage::T instead of "t".
  6585. * src/DHTMessageTracker.cc (messageArrived)
  6586. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6587. Made keyName static const. Made trimmed charset static const
  6588. std::string.
  6589. * src/Util.cc (getContentDispositionFilename)
  6590. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Made USER_AGENT const. Made "/" static const std::string.
  6592. * src/A2STR.cc
  6593. * src/A2STR.h
  6594. * src/HttpRequest.cc
  6595. * src/HttpRequest.h
  6596. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Made string listeral to static const std::string:
  6598. "Content-Range", "Content-Length"
  6599. * src/HttpHeader.cc
  6600. * src/HttpHeader.h
  6601. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Made string listeral to static const std::string.
  6603. * src/HttpConnection.cc
  6604. * src/HttpHeader.cc
  6605. * src/HttpHeader.h
  6606. * src/HttpResponse.cc
  6607. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6608. Made string listeral to static const std::string.
  6609. * src/A2STR.cc
  6610. * src/A2STR.h
  6611. * src/SimpleLogger.cc
  6612. * src/SimpleLogger.h
  6613. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6614. Made string literal to static const std::string.
  6615. Rewritten CookieParser::setField.
  6616. * src/A2STR.cc
  6617. * src/A2STR.h
  6618. * src/CookieBoxFactory.cc
  6619. * src/CookieBoxFactory.h
  6620. * src/CookieParser.cc
  6621. * src/CookieParser.h
  6622. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Made string literal to static const std::string
  6624. * src/DHTAbstractMessage.cc
  6625. * src/DHTAnnouncePeerMessage.cc
  6626. * src/DHTAnnouncePeerMessage.h
  6627. * src/DHTAnnouncePeerReplyMessage.cc
  6628. * src/DHTAnnouncePeerReplyMessage.h
  6629. * src/DHTFindNodeMessage.cc
  6630. * src/DHTFindNodeMessage.h
  6631. * src/DHTFindNodeReplyMessage.cc
  6632. * src/DHTFindNodeReplyMessage.h
  6633. * src/DHTGetPeersMessage.cc
  6634. * src/DHTGetPeersMessage.h
  6635. * src/DHTGetPeersReplyMessage.cc
  6636. * src/DHTGetPeersReplyMessage.h
  6637. * src/DHTMessage.cc
  6638. * src/DHTMessage.h
  6639. * src/DHTMessageFactoryImpl.cc
  6640. * src/DHTMessageReceiver.cc
  6641. * src/DHTPingMessage.cc
  6642. * src/DHTPingMessage.h
  6643. * src/DHTPingReplyMessage.cc
  6644. * src/DHTPingReplyMessage.h
  6645. * src/DHTQueryMessage.cc
  6646. * src/DHTQueryMessage.h
  6647. * src/DHTResponseMessage.cc
  6648. * src/DHTResponseMessage.h
  6649. * src/DHTUnknownMessage.cc
  6650. * src/DHTUnknownMessage.h
  6651. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Made string literal to static const std::string
  6653. * src/BtChokeMessage.cc (toString)
  6654. * src/BtHaveAllMessage.cc (toString)
  6655. * src/BtHaveNoneMessage.cc (toString)
  6656. * src/BtInterestedMessage.cc (toString)
  6657. * src/BtNotInterestedMessage.cc (toString)
  6658. * src/BtUnchokeMessage.cc (toString)
  6659. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Replaced "" with static const variable A2STR::NIL.
  6661. Replaced string comparison against "" with std::string::empty().
  6662. Added PROTO_* to Request class and use them as a protocol string
  6663. constant.
  6664. Made "started", "stopped", "completed" static const variable in
  6665. AnnounceList class.
  6666. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6667. Updated translations. Great thanks to translators.
  6668. * po/ca.po
  6669. * po/de.po
  6670. * po/fr.po
  6671. * po/it.po
  6672. * po/ja.po
  6673. * po/ru.po
  6674. * po/zh_CN.po
  6675. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6676. Updated man page; categorized options and fixed typo.
  6677. * doc/aria2c.1.txt
  6678. * doc/aria2c.1.html
  6679. * doc/aria2c.1
  6680. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6681. Removed const ref
  6682. * src/MetalinkEntry.cc (AddProtocolPreference)
  6683. * src/RequestGroup.cc (FindServerHostByHostname)
  6684. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. Rewritten Accept-Features handling.
  6686. * src/HttpRequestCommand.cc (createHttpRequest)
  6687. * src/a2functional.h
  6688. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6689. Changed method signature:
  6690. DHTAbstractNodeLookupTask::toEntries
  6691. * src/DHTAbstractNodeLookupTask.cc
  6692. * src/DHTAbstractNodeLookupTask.h
  6693. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. Changed method signature:
  6695. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6696. * src/BtContext.h
  6697. * src/DefaultBtContext.cc
  6698. * src/DefaultBtContext.h
  6699. * src/DefaultBtInteractive.cc
  6700. * test/DefaultBtContextTest.cc
  6701. * test/MockBtContext.h
  6702. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6703. Changed method signature:
  6704. MultiFileAllocationIterator::makeDiskWriterEntries
  6705. * src/MultiFileAllocationIterator.cc
  6706. * src/MultiFileAllocationIterator.h
  6707. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. Changed method sinature:
  6709. MetalinkEntry::toFileEntry,
  6710. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6711. Metalinker::queryEntry
  6712. * src/Metalink2RequestGroup.cc
  6713. * src/MetalinkEntry.cc
  6714. * src/MetalinkEntry.h
  6715. * src/MetalinkHelper.cc
  6716. * src/MetalinkHelper.h
  6717. * src/Metalinker.cc
  6718. * src/Metalinker.h
  6719. * src/main.cc
  6720. * test/MetalinkHelperTest.cc
  6721. * test/MetalinkerTest.cc
  6722. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. Changed method sinature:
  6724. RequestGroup::getURIs
  6725. * src/RequestGroup.cc
  6726. * src/RequestGroup.h
  6727. * test/Metalink2RequestGroupTest.cc
  6728. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6729. Changed method signature:
  6730. PeerListProcessor::extractPeer
  6731. * src/CompactPeerListProcessor.cc
  6732. * src/CompactPeerListProcessor.h
  6733. * src/DefaultBtAnnounce.cc
  6734. * src/DefaultPeerListProcessor.cc
  6735. * src/DefaultPeerListProcessor.h
  6736. * src/DelegatingPeerListProcessor.cc
  6737. * src/DelegatingPeerListProcessor.h
  6738. * src/PeerListProcessor.h
  6739. * src/UTPexExtensionMessage.cc
  6740. * test/DefaultPeerListProcessorTest.cc
  6741. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. Changed method signature:
  6743. BtRequestFactory::createRequestMessages,
  6744. BtRequestFactory::createRequestMessagesOnEndGame
  6745. * src/BtRequestFactory.h
  6746. * src/DefaultBtInteractive.cc
  6747. * src/DefaultBtRequestFactory.cc
  6748. * src/DefaultBtRequestFactory.h
  6749. * test/DefaultBtRequestFactoryTest.cc
  6750. * test/MockBtRequestFactory.h
  6751. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Changed method signature:
  6753. PieceStorage::getInFlightPieces
  6754. * src/DefaultBtProgressInfoFile.cc
  6755. * src/DefaultPieceStorage.cc
  6756. * src/DefaultPieceStorage.h
  6757. * src/PieceStorage.h
  6758. * src/UnknownLengthPieceStorage.cc
  6759. * src/UnknownLengthPieceStorage.h
  6760. * test/DefaultBtProgressInfoFileTest.cc
  6761. * test/MockPieceStorage.h
  6762. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Changed method signature:
  6764. PostDownloadHandler::getNextRequestGroups
  6765. Metalink2RequestGroup::generate
  6766. RequestGroup::postDownloadProcessing
  6767. * src/BtPostDownloadHandler.cc
  6768. * src/BtPostDownloadHandler.h
  6769. * src/Metalink2RequestGroup.cc
  6770. * src/Metalink2RequestGroup.h
  6771. * src/MetalinkPostDownloadHandler.cc
  6772. * src/MetalinkPostDownloadHandler.h
  6773. * src/PostDownloadHandler.h
  6774. * src/RequestGroup.cc
  6775. * src/RequestGroup.h
  6776. * src/RequestGroupMan.cc
  6777. * src/main.cc
  6778. * test/BtPostDownloadHandlerTest.cc
  6779. * test/Metalink2RequestGroupTest.cc
  6780. * test/MetalinkPostDownloadHandlerTest.cc
  6781. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6782. Rewritten AccRequestGroup
  6783. * src/main.cc
  6784. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6785. Rewritten.
  6786. * src/TaggedItem.cc (toTagString)
  6787. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Rewritten Accept-Features handling.
  6789. * src/HttpRequestCommand.cc (createHttpRequest)
  6790. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Rewritten accept types handling.
  6792. * HttpRequest.cc (createRequest)
  6793. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. Rewritten
  6795. * src/FeatureConfig.cc (featureSummary)
  6796. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Changed method signature:
  6798. PeerStorage::getActivePeers
  6799. * src/DHTPeerAnnounceEntry.cc
  6800. * src/DefaultPeerStorage.cc
  6801. * src/DefaultPeerStorage.h
  6802. * src/PeerStorage.h
  6803. * test/DefaultPeerStorageTest.cc
  6804. * test/MockPeerStorage.h
  6805. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Changed method signature:
  6807. DHTPeerAnnounceStorage::getPeers,
  6808. DHTPeerAnnounceEntry::getPeers
  6809. * src/DHTGetPeersMessage.cc
  6810. * src/DHTPeerAnnounceEntry.cc
  6811. * src/DHTPeerAnnounceEntry.h
  6812. * src/DHTPeerAnnounceStorage.cc
  6813. * src/DHTPeerAnnounceStorage.h
  6814. * test/DHTAnnouncePeerMessageTest.cc
  6815. * test/DHTPeerAnnounceEntryTest.cc
  6816. * test/DHTPeerAnnounceStorageTest.cc
  6817. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. Changed method signature:
  6819. NameResolver::resolve
  6820. * src/DHTEntryPointNameResolveCommand.cc
  6821. * src/InitiateConnectionCommand.cc
  6822. * src/NameResolver.cc
  6823. * src/NameResolver.h
  6824. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. Changed method signature:
  6826. PieceStorage::getAdvertisedPieceIndexes
  6827. * src/DefaultBtInteractive.cc
  6828. * src/DefaultPieceStorage.cc
  6829. * src/DefaultPieceStorage.h
  6830. * src/PieceStorage.h
  6831. * src/UnknownLengthPieceStorage.h
  6832. * test/MockPieceStorage.h
  6833. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6834. Changed method signature:
  6835. SegmentMan::getInFlightSegment
  6836. * src/AbstractCommand.cc
  6837. * src/SegmentMan.cc
  6838. * src/SegmentMan.h
  6839. * test/SegmentManTest.cc
  6840. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Changed method signature:
  6842. DHTAbstractNodeLookupTask::getNodesFromMessage
  6843. * src/DHTAbstractNodeLookupTask.cc
  6844. * src/DHTAbstractNodeLookupTask.h
  6845. * src/DHTNodeLookupTask.cc
  6846. * src/DHTNodeLookupTask.h
  6847. * src/DHTPeerLookupTask.cc
  6848. * src/DHTPeerLookupTask.h
  6849. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6850. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6851. * src/AbstractCommand.cc
  6852. * src/BtCheckIntegrityEntry.cc
  6853. * src/BtCheckIntegrityEntry.h
  6854. * src/BtFileAllocationEntry.cc
  6855. * src/BtFileAllocationEntry.h
  6856. * src/BtSetup.cc
  6857. * src/BtSetup.h
  6858. * src/CheckIntegrityCommand.cc
  6859. * src/CheckIntegrityEntry.h
  6860. * src/ChecksumCheckIntegrityEntry.cc
  6861. * src/ChecksumCheckIntegrityEntry.h
  6862. * src/DHTSetup.cc
  6863. * src/DHTSetup.h
  6864. * src/DownloadEngine.cc
  6865. * src/FileAllocationCommand.cc
  6866. * src/FileAllocationEntry.h
  6867. * src/RequestGroup.cc
  6868. * src/RequestGroup.h
  6869. * src/RequestGroupMan.cc
  6870. * src/RequestGroupMan.h
  6871. * src/StreamCheckIntegrityEntry.cc
  6872. * src/StreamCheckIntegrityEntry.h
  6873. * src/StreamFileAllocationEntry.cc
  6874. * src/StreamFileAllocationEntry.h
  6875. * src/TrackerWatcherCommand.cc
  6876. * src/a2functional.h
  6877. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Changed method signature:
  6879. BNode::findClosestKNodes, BNode:: enumerateBucket,
  6880. DHTBucket::getGoodNodes,
  6881. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  6882. * src/BNode.cc
  6883. * src/BNode.h
  6884. * src/DHTAbstractNodeLookupTask.cc
  6885. * src/DHTAutoSaveCommand.cc
  6886. * src/DHTBucket.cc
  6887. * src/DHTBucket.h
  6888. * src/DHTBucketRefreshTask.cc
  6889. * src/DHTFindNodeMessage.cc
  6890. * src/DHTGetPeersMessage.cc
  6891. * src/DHTRoutingTable.cc
  6892. * src/DHTRoutingTable.h
  6893. * test/BNodeTest.cc
  6894. * test/DHTBucketTest.cc
  6895. * test/DHTRoutingTableTest.cc
  6896. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. In piece selection functions, Pass std::deque<...> by reference rather
  6898. than returning it.
  6899. * src/BitfieldMan.cc
  6900. * src/BitfieldMan.h
  6901. * src/DefaultBtRequestFactory.cc
  6902. * src/DefaultPieceStorage.cc
  6903. * src/Piece.cc
  6904. * src/Piece.h
  6905. * test/BitfieldManTest.cc
  6906. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. Implemented rarest piece first piece selection strategy.
  6908. * src/AbstractBtMessage.cc
  6909. * src/AbstractBtMessage.h
  6910. * src/BitfieldMan.cc
  6911. * src/BitfieldMan.h
  6912. * src/BtBitfieldMessage.cc
  6913. * src/BtHaveAllMessage.cc
  6914. * src/BtHaveMessage.cc
  6915. * src/DefaultPieceStorage.cc
  6916. * src/DefaultPieceStorage.h
  6917. * src/PeerInteractionCommand.cc
  6918. * src/PieceStorage.h
  6919. * src/UnknownLengthPieceStorage.h
  6920. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6921. Rewritten readData and writeData.
  6922. * src/MultiDiskAdaptor.cc
  6923. * src/MultiDiskAdaptor.h
  6924. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Move \n out of the message "Usage: ...".
  6926. * src/version_usage.cc
  6927. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Bump up version number to 0.13.2b.
  6929. * configure.ac
  6930. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. Added const qualifier to argument Exception& e.
  6932. * src/Logger.h
  6933. * src/SimpleLogger.cc
  6934. * src/SimpleLogger.h
  6935. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6936. Pool connection when CWD, SIZE command fails.
  6937. * src/FtpNegotiationCommand.cc
  6938. * src/FtpNegotiationCommand.h
  6939. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  6941. * src/HttpResponseCommand.cc
  6942. * src/HttpSkipResponseCommand.cc
  6943. * src/HttpSkipResponseCommand.h
  6944. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6945. Pool connection when a server returns 4xx, 5xx responses.
  6946. * src/HttpNullDownloadCommand.cc
  6947. * src/HttpNullDownloadCommand.h
  6948. * src/HttpResponse.cc
  6949. * src/HttpResponse.h
  6950. * src/HttpResponseCommand.cc
  6951. * src/HttpResponseCommand.h
  6952. * test/HttpResponseTest.cc
  6953. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6954. Print usage when no URL is specifed or bad command-line option is
  6955. specified.
  6956. * src/HelpItemFactory.cc
  6957. * src/help_tags.h
  6958. * src/option_processing.cc
  6959. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6960. Removed duplicate log message.
  6961. * src/AbstractCommand.cc (asyncResolveHostname)
  6962. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. Updated man page: --async-dns and --ftp-reuse-connection were added.
  6964. Changed -j option's default value from 5 to 1.
  6965. Added new examples using protocol auto detection feature.
  6966. Removed -T, -M usage where it can be omitted.
  6967. * doc/aria2c.1.txt
  6968. * doc/aria2c.1.html
  6969. * doc/aria2c.1.txt
  6970. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Updated command-line usage text, so that it tells users that they
  6972. can specify any number of torrent files and metalink files in
  6973. command-line.
  6974. * src/version_usage.cc
  6975. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Changed the default value of -j option to 1.
  6977. * src/HelpItemFactory.cc
  6978. * src/option_processing.cc
  6979. * src/usage_text.h
  6980. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6981. Added the ability to reuse connection in FTP and it is enabled by
  6982. default. It can be disabled by --ftp-reuse-connection=false option.
  6983. * src/Command.cc
  6984. * src/DownloadCommand.cc
  6985. * src/FtpDownloadCommand.cc
  6986. * src/FtpDownloadCommand.h
  6987. * src/FtpFinishDownloadCommand.cc
  6988. * src/FtpFinishDownloadCommand.h
  6989. * src/FtpInitiateConnectionCommand.cc
  6990. * src/FtpNegotiationCommand.cc
  6991. * src/FtpNegotiationCommand.h
  6992. * src/HelpItemFactory.cc
  6993. * src/Makefile.am
  6994. * src/Makefile.in
  6995. * src/OptionHandlerFactory.cc
  6996. * src/option_processing.cc
  6997. * src/prefs.h
  6998. * src/usage_text.h
  6999. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7000. Call Command::transitStatus() before calling Command::execute(),
  7001. so that the status change made in execute() is not cleared.
  7002. * src/DownloadEngine.cc
  7003. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Removed forward declaration of SocketCore class.
  7005. * src/HttpDownloadCommand.h
  7006. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7008. in InitiateConnectionCommandFactory. They should be set only when
  7009. the protocol is HTTP or HTTPS.
  7010. * src/InitiateConnectionCommandFactory.cc
  7011. * src/RequestGroup.cc
  7012. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7013. Fixed infinite loop in checksum checking.
  7014. * src/IteratableChecksumValidator.cc
  7015. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Set _supportsPersistentConnection to true by default.
  7017. * src/Request.cc
  7018. * src/RequestGroup.cc
  7019. * test/HttpRequestTest.cc
  7020. * test/RequestTest.cc
  7021. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7022. Added timeout to socket pool. The default timeout is 15 seconds,
  7023. which is the same value Apache uses.
  7024. * src/DownloadEngine.cc
  7025. * src/DownloadEngine.h
  7026. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7027. Fixed misuse of multimap::find()
  7028. * src/HttpHeader.cc
  7029. * test/HttpHeaderTest.cc
  7030. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7032. option.
  7033. The asynchronous DNS is not capable of IPv6 yet.
  7034. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7035. least for HTTP download.
  7036. * src/AbstractCommand.cc
  7037. * src/AbstractCommand.h
  7038. * src/AsyncNameResolver.cc
  7039. * src/AsyncNameResolver.h
  7040. * src/DHTEntryPointNameResolveCommand.cc
  7041. * src/DHTEntryPointNameResolveCommand.h
  7042. * src/DownloadEngine.cc
  7043. * src/DownloadEngine.h
  7044. * src/FtpInitiateConnectionCommand.cc
  7045. * src/FtpInitiateConnectionCommand.h
  7046. * src/HelpItemFactory.cc
  7047. * src/HttpInitiateConnectionCommand.cc
  7048. * src/HttpInitiateConnectionCommand.h
  7049. * src/InitiateConnectionCommand.cc
  7050. * src/InitiateConnectionCommand.h
  7051. * src/Makefile.am
  7052. * src/Makefile.in
  7053. * src/NameResolver.cc
  7054. * src/NameResolver.h
  7055. * src/OptionHandlerFactory.cc
  7056. * src/SocketCore.cc
  7057. * src/SocketCore.h
  7058. * src/Util.cc
  7059. * src/Util.h
  7060. * src/option_processing.cc
  7061. * src/prefs.h
  7062. * src/usage_text.h
  7063. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. Updated man page: --quiet, --header were added.
  7065. --metalink-servers and --enable-http-keep-alive option were updated.
  7066. * doc/aria2c.1
  7067. * doc/aria2c.1.html
  7068. * doc/aria2c.1.txt
  7069. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Enable HTTP keep-alive by default.
  7071. * src/HelpItemFactory.cc
  7072. * src/option_processing.cc
  7073. * src/usage_text.h
  7074. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Disable http keep-alive if the remote server is not HTTP/1.1.
  7076. * src/HttpConnection.cc
  7077. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Receive content body of 302 response so that the connection can be
  7079. reused later when http keep-alive is enabled.
  7080. * src/HttpNullDownloadCommand.cc
  7081. * src/HttpNullDownloadCommand.h
  7082. * src/HttpResponseCommand.cc
  7083. * src/HttpResponseCommand.h
  7084. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7085. const SharedHandle<Request> -> const SharedHandle<Request>&
  7086. * src/FtpDowndloadCommand.cc
  7087. * src/FtpDowndloadCommand.h
  7088. * src/HttpDownloadCommand.cc
  7089. * src/HttpDownloadCommand.h
  7090. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Fixed the bug that the control file(.aria2 file) is not renamed
  7092. according to tryAutoFileRenaming().
  7093. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7094. its control file exist, use them and continue download.
  7095. The old implementation didn't take into account of control file's
  7096. existence, so basically you couldn't continue download of renamed file.
  7097. * src/BtProgressInfoFile.h
  7098. * src/DefaultBtProgressInfoFile.cc
  7099. * src/DefaultBtProgressInfoFile.h
  7100. * src/NullProgressInfoFile.h
  7101. * src/RequestGroup.cc
  7102. * test/DefaultBtProgressInfoFileTest.cc
  7103. * test/MockBtProgressInfoFile.h
  7104. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Change the default value of --metalink-servers option from `5' to `1'.
  7106. * src/HelpItemFactory.cc
  7107. * src/option_processing.cc
  7108. * src/usage_text.h
  7109. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. Reimplemented transparent metalink using Accept request header.
  7111. * src/HttpRequest.cc
  7112. * src/HttpRequest.h
  7113. * src/HttpRequestCommand.cc
  7114. * src/Metalink2RequestGroup.cc
  7115. * src/RequestGroup.cc
  7116. * src/RequestGroup.h
  7117. * test/HttpRequestTest.cc
  7118. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Bump up version number to 0.13.2a
  7120. * configure.ac
  7121. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Updated configure.ac using the result of autoscan.
  7123. * configure.ac
  7124. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. Fixed compilation error without gcrypt/openssl.
  7126. * src/DownloadCommand.cc
  7127. * src/DownloadCommand.h
  7128. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Reorganized version information so that it can be displayed in a
  7130. standard terminal screen without scrolling.
  7131. Removed http, ftp from Configuration section, because they are always
  7132. enabled.
  7133. * src/FeatureConfig.cc
  7134. * src/FeatureConfig.h
  7135. * src/main.cc
  7136. * src/messageDigest.cc
  7137. * src/messageDigest.h
  7138. * src/version_usage.cc
  7139. * test/FeatureConfigTest.cc
  7140. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Masked user ID in log.
  7142. * src/FtpConnection.cc (sendUser)
  7143. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7144. Removed query part from filename in HTTP download. The query part means
  7145. the substring after "?" in URL. Firefox seems do the same thing.
  7146. A query part is sometimes very long and not suitable to filename,
  7147. so I think it is better to remove it from filename.
  7148. * src/HttpRequest.cc
  7149. * src/HttpRequest.h
  7150. * src/Request.cc
  7151. * src/Request.h
  7152. * test/HttpRequestTest.cc
  7153. * test/RequestTest.cc
  7154. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7155. Rewritten Exception class. Throw exception object, not its pointer and
  7156. catch by reference, so that remove problematic delete operator for
  7157. catched exception.
  7158. * src/Exception.cc
  7159. * src/Exception.h
  7160. * test/ExceptionTest.cc
  7161. * src/*: All files throwing/catching exception.
  7162. * test/*: All files throwing/catching exception.
  7163. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7164. Now auto protocol detection is enabled without -Z option.
  7165. But there is a important difference between with/without -Z optoin.
  7166. For example, if you type:
  7167. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7168. then, aria2 interprets there are 3 request groups:
  7169. (1) http://host/file, http://mirror/file <-- multi-source download
  7170. (2) file1.torrent
  7171. (3) file2.metalink
  7172. On the other hand, if you invoke above command with -Z option, it is
  7173. interpreted as 4 request groups:
  7174. (1) http://host/file
  7175. (2) file1.torrent
  7176. (3) file2.metalink
  7177. (4) http://mirror/file
  7178. I think usually user don't mix multi-source URLs and torrent files, so
  7179. there is no big problem here.
  7180. * src/main.cc
  7181. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7182. Fixed the bug that causes segmentaion fault when reading XML containing
  7183. unescapsed character like '&'.
  7184. Also a modification was made which avoids adding unnecessary
  7185. characters stack and appending unused string.
  7186. * src/ExpatMetalinkProcessor.cc
  7187. * src/FileMetalinkParserState.h
  7188. * src/FilesMetalinkParserState.h
  7189. * src/FinMetalinkParserState.h
  7190. * src/HashMetalinkParserState.h
  7191. * src/InitialMetalinkParserState.h
  7192. * src/LanguageMetalinkParserState.h
  7193. * src/MetalinkMetalinkParserState.h
  7194. * src/MetalinkParserState.h
  7195. * src/MetalinkParserStateMachine.cc
  7196. * src/MetalinkParserStateMachine.h
  7197. * src/OSMetalinkParserState.h
  7198. * src/PieceHashMetalinkParserState.h
  7199. * src/PiecesMetalinkParserState.h
  7200. * src/ResourcesMetalinkParserState.h
  7201. * src/SizeMetalinkParserState.h
  7202. * src/SkipTagMetalinkParserState.h
  7203. * src/URLMetalinkParserState.h
  7204. * src/VerificationMetalinkParserState.h
  7205. * src/VersionMetalinkParserState.h
  7206. * src/XML2SAXMetalinkProcessor.cc
  7207. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. Added StringFormat class, which internally calls vasprintf.
  7209. operator<< is defined for this class, so it can be used with iostream
  7210. classes nicely. SimpleLogger and following functions are rewritten
  7211. using StringFormat class.
  7212. Besides, now Logger class's methods are non-const, many classes
  7213. that has a const Logger* as a member variable are modified to remove
  7214. const qualifier from the variable declaration.
  7215. * src/HelpItemFactory.cc
  7216. * src/Request.cc
  7217. * src/SimpleLogger.cc
  7218. * src/StringFormat.cc
  7219. * src/StringFormat.h
  7220. * src/Util.cc
  7221. * src/option_processing.cc
  7222. * src/version_usage.cc
  7223. * test/StringFormatTest.cc
  7224. * src/*.h: The classes that has const Logger* as a member variable.
  7225. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7227. failed. Also fixed memory link when exception is thrown there.
  7228. * src/main.cc (AccRequestGroup)
  7229. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7230. Added build-in "Accept-Features" support. For now only "metalink" is
  7231. used in this header field.
  7232. This "metalink" value is removed from the list when connecting URLs
  7233. fed by metalink file to avoid loop in "transparent" metlaink.
  7234. * src/HttpRequest.cc
  7235. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7236. header is also held in this variable. Also renamed setUserHeaders as
  7237. addHeader and it was rewritten to add header not just to clear the old
  7238. value.
  7239. * src/HttpRequestCommand.cc
  7240. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7241. from "Accept-Features" list.
  7242. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7243. default.
  7244. * src/RequestGroup.h
  7245. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7246. * src/a2functional.h: Included <string> because Concat class depends on
  7247. it.
  7248. * test/HttpRequestTest.cc
  7249. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7250. Added comment
  7251. * src/RequestGroup.cc (createNextCommand)
  7252. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7253. Capitalized METHOD_GET and METHOD_HEAD
  7254. * src/Request.cc
  7255. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7256. Added getDownloadResults() method
  7257. * src/RequestGroupMan.cc
  7258. * src/RequestGroupMan.h
  7259. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7260. Fixed the bug that aria2 exits when commands is empty() but
  7261. _routineCommands are not.
  7262. * src/DownloadEngine.cc
  7263. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Use the default value pulled from Option object in HelpItemFactory.
  7265. except options whose defualt value is embedded in a usage text.
  7266. * src/HelpItemFactory.cc
  7267. * src/HelpItemFactory.h
  7268. * src/option_processing.cc
  7269. * src/version_usage.cc
  7270. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Added --quiet option to make aria2 quiet (no console output).
  7272. --quiet option is tagged with ADVANCED.
  7273. * src/HelpItemFactory.cc
  7274. * src/LogFactory.cc
  7275. * src/LogFactory.h
  7276. * src/MultiUrlRequestInfo.cc
  7277. * src/MultiUrlRequestInfo.h
  7278. * src/NullStatCalc.h: New class. This class prints nothing.
  7279. * src/OptionHandlerFactory.cc
  7280. * src/main.cc
  7281. * src/option_processing.cc
  7282. * src/prefs.h
  7283. * src/usage_text.h
  7284. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7285. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7286. * src/HelpItemFactory.cc (createHelpItems):
  7287. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7288. Fixed compilation error in ExpatMetalinkProcessor.cc
  7289. * src/ExpatMetalinkProcessor.cc
  7290. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Reuse socket if the origin server supports HTTP keep-alive and
  7292. --enable-http-keep-alive or --enable-http-pipelining is given.
  7293. The current implementation doesn't reuse the connections established
  7294. against proxy server.
  7295. * src/AbstractCommand.cc
  7296. * src/DownloadEngine.cc
  7297. * src/DownloadEngine.h
  7298. * src/HttpDownloadCommand.cc
  7299. * src/HttpInitiateConnectionCommand.cc
  7300. * src/HttpResponseCommand.cc
  7301. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7302. Rewritten HTTP keep-alive and pipelining routine.
  7303. * src/AbstractCommand.cc
  7304. * src/HttpConnection.cc
  7305. * src/HttpDownloadCommand.cc
  7306. * src/HttpRequest.cc
  7307. * src/HttpRequestCommand.cc
  7308. * src/HttpResponseCommand.cc
  7309. * src/Request.cc
  7310. * src/Request.h
  7311. * src/RequestGroup.cc
  7312. * test/HttpRequestTest.cc
  7313. * test/HttpResponseTest.cc
  7314. * test/RequestTest.cc
  7315. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7316. Added missing setUserHeaders call
  7317. * src/HttpRequestCommand.cc
  7318. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7320. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7321. waste of time because it is more likey false.
  7322. * src/FileAllocationDispatcherCommand.cc (execute)
  7323. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7324. Now HTTP status and version are a member variable of HttpHeader.
  7325. HTTP status is processed as a string, not integer.
  7326. * src/AbstractProxyResponseCommand.cc
  7327. * src/HttpConnection.cc
  7328. * src/HttpHeader.cc
  7329. * src/HttpHeader.h
  7330. * src/HttpHeaderProcessor.cc
  7331. * src/HttpHeaderProcessor.h
  7332. * src/HttpResponse.cc
  7333. * src/HttpResponse.h
  7334. * test/HttpHeaderProcessorTest.cc
  7335. * test/HttpResponseTest.cc
  7336. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7337. Added --header option. You can specify any number of additional HTTP headers
  7338. like:
  7339. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7340. Unlike other commad-line option, you can use --header option multiple times.
  7341. * src/HelpItemFactory.cc
  7342. * src/HttpRequest.{cc, h}
  7343. * src/HttpRequestCommand.cc
  7344. * src/OptionHandlerFactory.cc
  7345. * src/OptionHandlerImpl.h
  7346. * src/option_processing.cc
  7347. * src/prefs.h
  7348. * src/usage_text.h
  7349. * test/HttpRequestTest.cc (testUserHeaders)
  7350. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Eliminates the time lag between sequential downloads and commands in
  7352. the same RequestGroup.
  7353. In old implementation, aria2 occasionally waits 1 seconds before
  7354. executing next command or RequestGroup.
  7355. This is really a waste of time, and new implementation eliminates
  7356. this unnecessary time lag.
  7357. * src/AbstractCommand.cc
  7358. * src/AutoSaveCommand.cc
  7359. * src/CheckIntegrityCommand.cc
  7360. * src/Command.{cc, h}
  7361. * src/DownloadEngine.{cc, h}
  7362. * src/DownloadEngineFactory.cc
  7363. * src/FileAllocationCommand.cc
  7364. * src/FileAllocationDispatcherCommand.cc
  7365. * src/FillRequestGroupCommand.cc
  7366. * src/FtpInitiateConnectionCommand.cc
  7367. * src/HaveEraseCommand.cc
  7368. * src/HttpInitiateConnectionCommand.cc
  7369. * src/HttpResponseCommand.cc
  7370. * src/RealtimeCommand.cc
  7371. * src/RequestGroup.cc
  7372. * src/RequestGroupMan.cc
  7373. * src/StreamFileAllocationEntry.cc
  7374. * src/TimeBasedCommand.{cc, h}
  7375. * src/TimedHaltCommand.cc
  7376. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7377. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7378. keyword explicit and SharedHandle's default constructor initializes
  7379. its internal obj to null, old implementation initializes it using
  7380. obj's default constructor.
  7381. To assign null, write SharedHandle<T> x(...); x.reset();
  7382. TODO: test/SharedHandleTest.cc needs more tests.
  7383. * src/SharedHandle.h
  7384. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Fixed type in man page.
  7386. * doc/aria2c.1.txt
  7387. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7389. * src/SimpleLogger.{cc, h}
  7390. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Implemented auto protocol detection.
  7392. Now you can do:
  7393. aria2c -Z http://host/file file1.torrent file2.metalink
  7394. (Note: -Z option is required for auto protcol detection.)
  7395. Then aria2c downloads 3 files simultaneously:
  7396. 1. http://host/file
  7397. 2. file1.torrent <-- read local torrent file
  7398. 3. file2.metalink <-- read local Metalink file.
  7399. Same thing goes with -i option. Assume your uris.txt contans:
  7400. http://host/file
  7401. file1.torrent
  7402. file2.metalink
  7403. Then you can do: aria2c -i uris.txt
  7404. (Note: -Z option is not needed if -i option is given.)
  7405. * src/main.cc
  7406. * src/ProtocolDetector.{cc, h}
  7407. * test/ProtocolDetectorTest.cc
  7408. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7410. installed
  7411. * src/ARC4Encryptor.h
  7412. * src/ARC4Decryptor.h
  7413. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Renamed argument from 'errno' to 'err', since errno is confused with
  7415. errno defined in errno.h.
  7416. * src/LibgcryptARC4Decryptor.h
  7417. * src/LibgcryptARC4Context.h
  7418. * src/LibgcryptDHKeyExchange.h
  7419. * src/LibgcryptARC4Encryptor.h
  7420. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Rewritten choking algorithm.
  7422. * src/PeerChokeCommand.{cc, h}
  7423. * src/BtInterestedMessage.cc
  7424. * src/PeerSessionResource.{cc, h}
  7425. * src/DefaultPeerStorage.{cc, h}
  7426. * src/BtNotInterestedMessage.cc
  7427. * src/DefaultBtMessageDispatcher.{cc, h}
  7428. * src/BtMessageDispatcher.h
  7429. * src/Peer.{cc, h}
  7430. * src/BtLeecherStateChoke.{cc, h}
  7431. * src/BtSetup.cc
  7432. * src/BtSeederStateChoke.{cc, h}
  7433. * src/PeerStorage.h
  7434. * test/MockPeerStorage.h
  7435. * test/MockBtMessageDispatcher.h
  7436. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Fixed compilation error on x84-64 platform.
  7438. * src/AuthConfig.cc: Included ostream.
  7439. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7440. Rewritten getBasename() and getDirname(), without standard library
  7441. basename(), dirname().
  7442. * src/File.cc
  7443. * test/FileTest.cc
  7444. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Added Simplified Chinese translation. Also updated the following
  7446. translations: Polish, Dutch, German. Great thanks to all translators.
  7447. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Suppress content-range error when 'Content-Range' response header
  7449. doesn't contains bytes-unit specifier 'bytes'
  7450. * src/HttpHeader.cc (getRange)
  7451. * test/HttpHeaderTest.cc
  7452. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. Fixed compilation error with g++-4.3
  7454. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Added missing include files for MinGW
  7456. * test/HttpHeaderProcessorTest.cc
  7457. * test/DHTRoutingTableSerializerTest.cc
  7458. * test/DHTRoutingTableDeserializerTest.cc
  7459. * test/UriListParserTest.cc
  7460. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7461. Now download line is printed nicely with no garbage at the end of
  7462. line. I use ioctl to get the columns of terminal.
  7463. If stdout is redirected to another device, instead of carriage return,
  7464. end of line '\n' character is used. This is feature request#1909659
  7465. * src/ConsoleStatCalc.cc (calculateStat)
  7466. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Included a2time.h
  7468. * src/DHTMessageDispatcher.h
  7469. * src/DHTMessageEntry.h
  7470. * src/DHTReplaceNodeTask.h
  7471. * src/DHTMessageTracker.h
  7472. * src/Util.h
  7473. * src/CookieBox.h
  7474. * src/SocketCore.h
  7475. * src/DefaultBtMessageDispatcher.h
  7476. * src/SocketCore.cc
  7477. * src/Util.cc
  7478. * src/DHTPingTask.h
  7479. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7480. Fixed high memory footprint when DHT is enabled.
  7481. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  7482. queued than it is processed and the queue is getting longer. As a
  7483. consequence, momory usage is increased.
  7484. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  7485. replacement cache in DHTBucket which is described in Kademlia paper.
  7486. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  7487. DHTReplaceNodeTask.
  7488. * src/DHTBucket.{h, cc}
  7489. (cacheNode): New function.
  7490. (getCachedNodes): New function.
  7491. (dropNode): Push back cached node to _nodes.
  7492. * test/DHTBucketTest.cc
  7493. (testCacheNode): New test
  7494. (testDropNode): New test
  7495. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7496. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  7497. the unused 4KB memory when ssl is not used.
  7498. * src/SocketCore.cc
  7499. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. Added summary log for peer announce storage.
  7501. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  7502. Removed cast
  7503. * src/DefaultPeerStorage.cc (addPeer)
  7504. Log exception message
  7505. * src/DHTMessageTracker.cc (handleTimeout)
  7506. Fixed casting
  7507. * test/HttpRequestTest.cc
  7508. * test/MetalinkProcessorTest.cc
  7509. * test/PieceTest.cc
  7510. * test/MetalinkEntryTest.cc
  7511. * test/SequenceTest.cc
  7512. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. * src/ParameterizedStringParser.cc (createLoop):
  7514. Removed unused variable sstep.
  7515. * src/AlphaNumberDecorator.h (decode): Rewritten.
  7516. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. * src/Util.{h, cc}
  7518. (parseUInt): New function.
  7519. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  7520. The actual range is uint32_t.
  7521. * test/UtilTest.cc
  7522. * src/ParameterizedStringParser.cc:
  7523. Use Util::parseUInt() for loop variables.
  7524. * test/ParameterizedStringParserTest.cc
  7525. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7526. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7527. Rewritten the functions for binding port.
  7528. * src/DHTConnectionImpl.{h, cc}
  7529. * src/PeerListenCommand.{h, cc}
  7530. * src/DHTSetup.cc
  7531. * src/BtSetup.cc
  7532. * test/DHTConnectionImplTest.cc
  7533. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7534. type cleanup for allmost all remaining files.
  7535. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7536. Type clarification
  7537. * src/PeerSessionResource.{h, cc}
  7538. * src/DefaultPieceStorage.{h, cc}
  7539. * src/Peer.{h, cc}
  7540. * test/PeerSessionResourceTest.cc
  7541. Use div function
  7542. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7543. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Type clarification
  7545. * src/DefaultPeerStorage.{h, cc}
  7546. * test/DefaultPeerStorageTest.cc
  7547. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. Type clarification: size_t for length or size, uint64_t for file
  7549. length, off_t for file offset.
  7550. * src/DefaultBtProgressInfoFile.cc
  7551. * src/DefaultBtContext.{h, cc}
  7552. * src/DefaultBtInteractive.cc
  7553. * src/DownloadCommand.{h, cc}
  7554. * src/IteratableChunkChecksumValidator.{h, cc}
  7555. * src/SegmentMan.{h, cc}
  7556. * src/SingleFileDownloadContext.{h, cc}
  7557. * src/IteratableChecksumValidator.{h, cc}
  7558. * src/BtContext.h
  7559. * src/IteratableValidator.h
  7560. * src/DownloadContext.h
  7561. * test/SingleFileDownloadContextTest.cc
  7562. * test/DefaultBtContextTest.cc
  7563. * test/MockBtContext.h
  7564. * test/Metalink2RequestGroupTest.cc
  7565. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Type clarification: size_t for length or size, uint64_t for file
  7567. length, off_t for file offset.
  7568. * src/PiecedSegment.cc
  7569. * src/GrowSegment.h
  7570. * src/DefaultBtRequestFactory.h
  7571. * src/DefaultBtProgressInfoFile.cc
  7572. * src/UnknownLengthPieceStorage.h
  7573. * src/DefaultPieceStorage.cc
  7574. * src/UnknownLengthPieceStorage.cc
  7575. * src/DefaultBtInteractive.cc
  7576. * src/GrowSegment.cc
  7577. * src/BitfieldMan.h
  7578. * src/DownloadCommand.cc
  7579. * src/BtRequestFactory.h
  7580. * src/PiecedSegment.h
  7581. * src/DefaultPieceStorage.h
  7582. * src/Piece.cc
  7583. * src/DefaultBtRequestFactory.cc
  7584. * src/PieceStorage.h
  7585. * src/Segment.h
  7586. * src/Piece.h
  7587. * src/BitfieldMan.cc
  7588. * src/Util.cc
  7589. * test/DefaultBtProgressInfoFileTest.cc
  7590. * test/DefaultPieceStorageTest.cc
  7591. * test/MockPieceStorage.h
  7592. * test/BtRequestMessageTest.cc
  7593. * test/DefaultBtMessageDispatcherTest.cc
  7594. * test/BitfieldManTest.cc
  7595. * test/GrowSegmentTest.cc
  7596. * test/PieceTest.cc
  7597. * test/SegmentTest.cc
  7598. * test/SegmentManTest.cc
  7599. * test/DefaultBtRequestFactoryTest.cc
  7600. * test/MockBtRequestFactory.h
  7601. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7602. Fixed compilation error with --disable-nls
  7603. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7604. in gettext.h causes the problem.
  7605. * src/common.h
  7606. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Removed subPiece related functions.
  7608. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7609. * src/DefaultPieceStorage.{h, cc}
  7610. * test/PieceTest.cc
  7611. * test/DefaultPieceStorageTest.cc
  7612. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7613. Use unsigned char for data store.
  7614. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Bump up version number to 0.13.0+1
  7616. * configure.ac
  7617. * Release 0.13.0+1
  7618. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. Changed inactive connection timeout to 120.
  7620. To accept more mulually interested peers, disconnect peer when there
  7621. is no interest between us after certain time passed.
  7622. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7623. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7625. when compiled with async DNS support.
  7626. * src/DownloadEngine.cc
  7627. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7628. value '10' will be a little bit short when some DNS servers are
  7629. offline and several DNS servers are tried. It should be configured
  7630. by command-line option.
  7631. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Merged Ross's mingw patch.
  7633. * src/DHTRoutingTableDeserializer.cc
  7634. * src/DHTRoutingTableSerializer.cc
  7635. * src/Platform.{h, cc}
  7636. * src/timegm.h
  7637. * src/gettimeofday.h
  7638. * src/getaddrinfo.h
  7639. * src/SocketCore.h
  7640. * src/common.h
  7641. * src/inet_aton.h
  7642. * src/DownloadEngine.h
  7643. * src/gai_strerror.h
  7644. * src/a2netcompat.h
  7645. * configure.ac
  7646. * configure
  7647. * aclocal.m4
  7648. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7649. Included missing iostream.
  7650. * test/AllTest.cc
  7651. * test/BtDependencyTest.cc
  7652. * test/BtExtendedMessageTest.cc
  7653. * test/DHTConnectionImplTest.cc
  7654. * test/DHTMessageFactoryImplTest.cc
  7655. * test/DHTMessageTrackerEntryTest.cc
  7656. * test/DHTNodeTest.cc
  7657. * test/DHTRoutingTableSerializerTest.cc
  7658. * test/DefaultBtAnnounceTest.cc
  7659. * test/DefaultBtContextTest.cc
  7660. * test/DefaultBtMessageFactoryTest.cc
  7661. * test/DefaultExtensionMessageFactoryTest.cc
  7662. * test/HandshakeExtensionMessageTest.cc
  7663. * test/HttpResponseTest.cc
  7664. * test/MetalinkProcessorTest.cc
  7665. * test/MultiFileAllocationIteratorTest.cc
  7666. * test/SocketCoreTest.cc
  7667. * test/UTPexExtensionMessageTest.cc
  7668. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7669. Reorganized includes.
  7670. * src/NameResolver.cc
  7671. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. Fixed compilation error without ares/c-ares
  7673. * src/NameResolver.h:
  7674. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7675. Added a test for large file.
  7676. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7677. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Fixed the bug that file size is ignored if size > INT32_MAX
  7679. * src/SizeMetalinkParserState.cc (endElement):
  7680. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Bump up version number to 0.13.0
  7682. * configure.ac
  7683. * Release 0.13.0
  7684. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7685. Updated Makfefile.am to make 'make dist' work.
  7686. Now packaged filename is aria2c-VERSION.tar.bz2.
  7687. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7688. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7689. Large file support is now configured by configure script.
  7690. * configure.ac
  7691. Removed unsused source files
  7692. * src/
  7693. * test/
  7694. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7695. Peer.h and BtContext.h respectively.
  7696. * src/Peer.h
  7697. * src/BtContext.h
  7698. Updated translations.
  7699. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7700. translations. Great thanks to all translators!;)
  7701. * po/*.{po, gmo}
  7702. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7704. statically declared sha1 MessageDigestContext.
  7705. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7706. initialization of short-lived MessageDigestContext.
  7707. * src/MessageDigestHelper.{h, cc}
  7708. * src/main.cc
  7709. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7710. the initialization of MessageDigestContext every time in validating
  7711. chunk checksum.
  7712. * src/DownloadCommand.{h, cc}
  7713. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. Add a file descriptor which connected to fast peer(latency<1500) to
  7715. select(). This change reduced CPU load.
  7716. * src/PeerInteractionCommand.cc
  7717. * src/DefaultBtInteractive.{h, cc}
  7718. * src/BtInteractive.h
  7719. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7720. Fixed the previous insufficient fix for possible busy loop.
  7721. * src/MSEHandshake.cc (identifyHandshakeType)
  7722. Removed unused functions.
  7723. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7724. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. Fixed possible busy loop if first 20 bytes are not received for a few
  7726. minutes.
  7727. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7728. * src/ReceiverMSEHandshakeCommand.cc
  7729. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Fixed compilation error
  7731. * src/ExpatMetalinkProcessor.cc
  7732. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7734. * src/DHTBucket.cc
  7735. Removed unnecessary cast.
  7736. * src/HandshakeExtensionMessage.cc
  7737. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7738. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7739. is missing.
  7740. * src/OptionHandlerFactory.cc
  7741. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7742. Fixed the bug that HAVE message is not sent for a piece they are
  7743. downloaded fom http/ftp server before any BitTorrent handshake is done
  7744. with peers.
  7745. * src/DefaultBtInteractive.cc
  7746. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7748. * src/Makefile.am
  7749. * src/Makefile.in
  7750. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7751. Updated README. Added html version of README and man page.
  7752. * README
  7753. * README.html
  7754. * readme2html: Shell script to generate README.html from README using
  7755. asciidoc.
  7756. * doc/aria2c.1.html
  7757. * doc/makeman: Added the line to generate aria2c.1.html
  7758. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Fixed offset calculation.
  7760. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7761. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7762. Rewritten itos and uitos using template. llitos and ullitos are
  7763. replaced with itos and uitos respectively.
  7764. * src/Util.{h, cc}
  7765. * test/UtilTest.cc
  7766. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7768. of the number of bytes required for storing public key and shared
  7769. secret.
  7770. * src/LibgcryptDHKeyExchange.h
  7771. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7772. * src/MSEHandshake.cc
  7773. * test/DHKeyExchangeTest.cc
  7774. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Removed since they are not used.
  7776. * src/Xml2MetalinkProcessor.{h, cc}
  7777. * src/Socket.cc
  7778. * src/SegmentSplitter.{h, cc}
  7779. * test/Xml2MetalinkProcessorTest.cc
  7780. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Fixed the bug that prevents aria2 from stopping other than by pressing
  7782. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7783. option. aria2 doesn't stop even after --seed-time is satisfied and
  7784. continues to output blank lines in the console.
  7785. * src/ReceiverMSEHandshakeCommand.cc
  7786. * src/PeerReceiveHandshakeCommand.cc
  7787. * src/PeerListenCommand.cc
  7788. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7789. Bump up version number to 0.13.0rc
  7790. * configure.ac
  7791. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7792. Updated man page and some usage text.
  7793. * doc/aria2c.1.txt
  7794. * src/usage_text.h
  7795. * po/*.{po, gmo}
  7796. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. Updated translations. Added Finnish and Hebrew translations.
  7798. Great thanks to all translators!
  7799. * po/*.{po, gmo}
  7800. * po/LINGUAS
  7801. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7802. Log more detailed information about each message.
  7803. * src/DHTQueryMessage.{h, cc}
  7804. * src/DHTGetPeersMessage.{h, cc}
  7805. * src/DHTFindNodeReplyMessage.{h, cc}
  7806. * src/DHTGetPeersReplyMessage.{h, cc}
  7807. * src/DHTAnnouncePeerMessage.{h, cc}
  7808. * src/DHTResponseMessage.{h, cc}
  7809. * src/DHTFindNodeMessage.{h, cc}
  7810. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. Use constants defined in prefs.h
  7812. * src/option_processing.cc
  7813. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7814. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7815. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7816. Make room for future enchancements for IPv6 addresses.
  7817. Bump up version number of dht.dat file format to 2.
  7818. Not compatible with previous version.
  7819. * src/DHTRoutingTableSerializer.cc
  7820. * src/DHTRoutingTableDeserializer.cc
  7821. * test/DHTRoutingTableSerializerTest.cc
  7822. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Added handling for the return values from
  7824. PeerMessageUtil::createcompact().
  7825. * src/DefaultBtContext.cc (computeFastSet):
  7826. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7827. Fixed abort when peer's ip address is IPv4-mapped address.
  7828. * src/DefaultBtContext.cc (computeFastSet)
  7829. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7830. cannot handle IPv4-mapped addresses.
  7831. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7832. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Proper return value handling for OpenSSL functions.
  7834. * src/LibsslDHKeyExchange.h
  7835. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7836. Random bytes generation using libgcrypt and OpenSSL.
  7837. * src/DHTUtil.{h, cc}
  7838. * test/DHTUtilTest.cc
  7839. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7841. received.
  7842. * src/DHTMessageReceiver.cc (receiveMessage)
  7843. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Fixed the bug that a return code is always 0. BUG#1897704
  7845. If error occurred during the download or there exist unfinished
  7846. downloads, aria2 returns with code 1.
  7847. * src/RequestGroupMan.{h, cc}
  7848. * src/MultiUrlRequestInfo.{h, cc}
  7849. * src/main.cc
  7850. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7851. IPv6 support for SocketCore class.
  7852. TODO: In SocketCore::establishConnection(), this is insufficient to
  7853. determin the failure of connect() here because the socket is
  7854. non-blocking state. The next addresses should be tried after select().
  7855. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7856. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7857. instead which address family independent.
  7858. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7859. information in a compact peer format which is for IPv4 only.
  7860. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7861. this is a spec of BitTorrent protocol.
  7862. * src/SocketCore.{h, cc}
  7863. * src/PeerMessageUtil.cc
  7864. * test/SocketCoreTest.cc
  7865. * test/PeerMessageUtilTest.cc
  7866. * test/DHTConnectionImplTest.cc
  7867. Handle IPv4-mapped addresses.
  7868. * src/DHTNode.cc: Now identity is determined by node id.
  7869. * src/DHTMessageTrackerEntry.cc
  7870. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  7871. should handle it.
  7872. * src/DHTRoutingTableDeserializer.cc
  7873. * src/DHTMessageFactoryImpl.cc
  7874. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7875. Change the unit of --stop option from a minute to a second.
  7876. * src/usage_text.h
  7877. * src/DownloadEngineFactory.cc
  7878. * src/OptionHandlerFactory.cc
  7879. * src/message.h
  7880. * src/TimedHaltCommand.cc
  7881. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7882. Make listening socket non-block mode.
  7883. * src/FtpConnection.cc
  7884. * src/FtpNegotiationCommand.{h, cc}
  7885. * src/PeerListenCommand.cc
  7886. Fixed the bug that cause slow ftp negotiation.
  7887. * src/FtpNegotiationCommand.{h, cc}
  7888. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7889. Added basic tag to --enable-dht, --dht-listen-port option.
  7890. * src/HelpItemFactory.cc (createHelpItems)
  7891. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Updated text.
  7893. * src/usage_text.h
  7894. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  7896. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7897. Determin _threadtholdSpeed in each constructor for
  7898. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  7899. * src/ActivePeerConnectionCommand.{h, cc}
  7900. * src/PeerReceiveHandshakeCommand.{h, cc}
  7901. * src/BtSetup.cc
  7902. * src/BtConstants.h
  7903. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. Added --bt-min-crypto-level and --bt-require-crypto options.
  7905. * src/OptionHandlerFactory.cc
  7906. * src/MSEHandshake.cc
  7907. * src/HelpItemFactory.cc
  7908. * src/option_processing.cc
  7909. * src/ReceiverMSEHandshakeCommand.cc
  7910. * src/prefs.h
  7911. * src/DefaultBtAnnounce.cc
  7912. * src/InitiatorMSEHandshakeCommand.cc
  7913. * src/usage_text.h
  7914. * test/MSEHandshakeTest.cc
  7915. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. Bump version number to 0.13.0b
  7917. * configure.ac
  7918. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Updated doc.
  7920. * src/MessageDigestHelper.h:
  7921. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Use raw message digest as a token instead of its hexadecimal
  7923. representation.
  7924. * src/DHTTokenTracker.cc (generateToken)
  7925. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7926. Added Message Stream Encryption(MSE) support.
  7927. Currently, aria2 accepts incoming connections with Obfuscation Header
  7928. and legacy BitTorrent Header and establishes connections with
  7929. Obfuscation Header first and if failed then retry with legacy
  7930. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  7931. choose ARC4. The new option to change the default behavior is planned.
  7932. For tracker extension, "supportcrypto=1" is added statically.
  7933. * src/PeerInitiateConnectionCommand.{h, cc}
  7934. * src/PeerConnection.{h, cc}
  7935. * src/HandleRegistry.h
  7936. * src/SocketCore.h
  7937. * src/PeerReceiveHandshakeCommand.{h, cc}
  7938. * src/BtRegistry.{h, cc}
  7939. * src/PeerListenCommand.cc
  7940. * src/InitiatorMSEHandshakeCommand.{h, cc}
  7941. * src/ReceiverMSEHandshakeCommand.{h, cc}
  7942. * src/MSEHandshake.{h, cc}
  7943. * src/ARC4Encryptor.h
  7944. * src/ARC4Decryptor.h
  7945. * src/LibgcryptARC4Encryptor.h
  7946. * src/LibgcryptARC4Decryptor.h
  7947. * src/LibgcryptARC4Context.h
  7948. * src/LibsslARC4Encryptor.h
  7949. * src/LibsslARC4Decryptor.h
  7950. * src/LibsslARC4Context.h
  7951. * src/DHKeyExchange.h
  7952. * src/LibgcryptDHKeyExchange.h
  7953. * src/LibsslDHKeyExchange.h
  7954. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  7955. * test/DefaultBtAnnounceTest.cc
  7956. * test/ARC4Test.cc
  7957. * test/DHKeyExchangeTest.cc
  7958. Removed prepareForRetry() because it is not used.
  7959. * src/PeerAbstractCommand.{h, cc}
  7960. * src/PeerInteractionCommand.{h, cc}
  7961. * src/PeerInitiateConnectionCommand.{h, cc}
  7962. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7963. Added the ability to load nodes from torrent file. These nodes are
  7964. added to the routing table when downloading that torrent.
  7965. * src/BtContext.h
  7966. * src/DefaultBtContext.{h, cc}
  7967. * src/DHTSetup.cc
  7968. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  7969. hostname and port pair, and resolves all of them.
  7970. * src/NameResolver.{h, cc}: Added reset().
  7971. * src/RequestGroup.cc
  7972. * test/DefaultBtContextTest.cc
  7973. * test/MockBtContext.h
  7974. Removed assert() from DefaultBtContext and throw exception instead.
  7975. * src/DefaultBtContext.cc
  7976. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. Fixed segmentation fault bug when exiting if dht is disabled.
  7978. * src/RequestGroup.cc
  7979. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Fixed typo in log message and define the message in message.h
  7981. * src/TimedHaltCommand.cc
  7982. * src/message.h
  7983. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7984. Included RecoverableException.h to fix compilation error.
  7985. * test/DHTMessageFactoryImplTest.cc
  7986. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  7988. * test/DHTPingMessageTest.cc
  7989. * test/DHTGetPeersMessageTest.cc
  7990. * test/DHTFindNodeMessageTest.cc
  7991. * test/DHTAnnouncePeerMessageTest.cc
  7992. * test/MockDHTMessage.h
  7993. * test/MockDHTMessageFactory.h
  7994. * test/MockDHTMessageDispatcher.h: New class.
  7995. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  7997. virtual.
  7998. * src/DHTMessageDispatcher.h
  7999. * src/DHTMessageDispatcherImpl.{h, cc}
  8000. * src/DHTSetup.cc
  8001. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. Adding handling of DHT error message. Just log error message and
  8003. throw exception.
  8004. * src/DHTMessageFactoryImpl.cc
  8005. * test/DHTMessageFactoryImplTest.cc
  8006. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Added handling of dynamic cast failure.
  8008. * src/DHTNodeLookupTask.cc
  8009. * src/DHTPeerLookupTask.cc
  8010. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. Added the ability to stop aria2 itself when given time has passed
  8012. from start. Use --stop option to specify time in minutes.
  8013. When 0 is given, this feature is disabled.
  8014. * src/OptionHandlerFactory.cc
  8015. * src/TimeBasedCommand.h: Make _interval protected scope.
  8016. * src/HelpItemFactory.cc
  8017. * src/option_processing.cc
  8018. * src/prefs.h
  8019. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8020. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8021. Without this modification, the result list shows "ERR" when aria2 is
  8022. stopped by --stop option. It should be "INPR".
  8023. * src/DownloadEngine.{h, cc}
  8024. * src/DownloadEngineFactory.cc
  8025. * src/usage_text.h
  8026. * src/TimedHaltCommand.{h, cc}: New class.
  8027. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8028. Bootstrap through node added by port message.
  8029. Currently bootstrap is executed if the number of buckets in routing
  8030. table is 1.
  8031. * src/BtPortMessage.{h, cc}
  8032. * src/DefaultBtMessageFactory.{h, cc}
  8033. * src/PeerInteractionCommand.cc
  8034. * test/BtPortMessageTest.cc
  8035. * test/MockDHTTask.h
  8036. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8037. Extract the Peer class's member variables, which are only needed after
  8038. PeerInteractionCommand, into PeerSessionResource class.
  8039. This class is instantiated in PeerInteractionCommand class's ctor and
  8040. released in its dtor.
  8041. This will make Peer class lightweight and uses less memory for peers
  8042. which are not connected and wait in the queue.
  8043. * src/PeerChokeCommand.cc
  8044. * src/PeerSessionResource.{h, cc}
  8045. * src/PeerInteractionCommand.cc
  8046. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8047. * src/DefaultBtInteractive.cc
  8048. * src/BtPieceMessage.cc
  8049. * src/BtInterestedMessage.cc
  8050. * src/BtUnchokeMessage.cc
  8051. * src/DefaultPeerStorage.{h, cc}
  8052. * src/PeerInitiateConnectionCommand.cc
  8053. * src/ActivePeerConnectionCommand.cc
  8054. * src/BtNotInterestedMessage.cc
  8055. * src/DefaultBtMessageDispatcher.cc
  8056. * src/BtChokeMessage.cc
  8057. * src/BtRequestMessage.cc
  8058. * src/Peer.{h, cc}
  8059. * src/BtRegistry.h
  8060. * src/TrackerWatcherCommand.cc
  8061. * src/PeerReceiveHandshakeCommand.cc
  8062. * test/BtExtendedMessageTest.cc
  8063. * test/BtAllowedFastMessageTest.cc
  8064. * test/BtCancelMessageTest.cc
  8065. * test/DefaultPieceStorageTest.cc
  8066. * test/BtBitfieldMessageTest.cc
  8067. * test/BtHaveMessageTest.cc
  8068. * test/BtNotInterestedMessageTest.cc
  8069. * test/BtRequestMessageTest.cc
  8070. * test/PeerSessionResourceTest.cc
  8071. * test/DefaultBtMessageDispatcherTest.cc
  8072. * test/PeerTest.cc
  8073. * test/BtInterestedMessageTest.cc
  8074. * test/BtRejectMessageTest.cc
  8075. * test/BtChokeMessageTest.cc
  8076. * test/DefaultPeerStorageTest.cc
  8077. * test/BtHaveNoneMessageTest.cc
  8078. * test/BtHaveAllMessageTest.cc
  8079. * test/DefaultExtensionMessageFactoryTest.cc
  8080. * test/BtUnchokeMessageTest.cc
  8081. * test/DefaultBtMessageFactoryTest.cc
  8082. * test/HandshakeExtensionMessageTest.cc
  8083. * test/UTPexExtensionMessageTest.cc
  8084. * test/DefaultBtRequestFactoryTest.cc
  8085. * test/BtPieceMessageTest.cc
  8086. Removed typedef PeerStats.
  8087. * src/PeerStat.h
  8088. * src/SegmentMan.cc
  8089. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8090. Added std namespace to copy, remove_copy, back_inserter,
  8091. front_inserter.
  8092. * src/RequestGroupMan.cc
  8093. * src/DefaultPieceStorage.cc
  8094. * src/StreamFileAllocationEntry.cc
  8095. * src/BtFileAllocationEntry.cc
  8096. * src/RequestGroup.cc
  8097. * src/MetalinkEntry.cc
  8098. * src/DelegatingPeerListProcessor.cc
  8099. * src/DefaultBtRequestFactory.cc
  8100. * src/DefaultBtMessageDispatcher.cc
  8101. * src/version_usage.cc: Included <algorithm>
  8102. * src/main.cc
  8103. * src/MetalinkParserController.cc
  8104. * src/DefaultBtContext.cc
  8105. * src/DownloadEngineFactory.cc
  8106. * src/a2algo.h
  8107. Removed.
  8108. * test/StreamUriListParserTest.cc
  8109. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8111. ActivePeerConnectionCommand when it is given and
  8112. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8113. * src/ActivePeerConnectionCommand.{h, cc}
  8114. * src/BtSetup.cc
  8115. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Only add socket to DownloadEngine's select routine when peer or
  8117. localhost is unchoked and interested. This lowers CPU usage a
  8118. little bit.
  8119. * src/PeerInteractionCommand.cc
  8120. * src/PeerAbstractCommand.{h, cc}
  8121. * src/BtInteractive.h
  8122. * src/DefaultBtInteractive.{h, cc}
  8123. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8124. Revert previous change because get_peers message is needed for
  8125. announce_peer anyway.
  8126. * src/DHTGetPeersCommand.cc
  8127. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Request peers thought DHT only when download hasn't finished.
  8129. * src/DHTGetPeersCommand.cc
  8130. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8131. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8132. * src/DHTBucketRefreshTask.{h, cc}
  8133. * src/DHTSetup.cc
  8134. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8135. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8136. standard classes.
  8137. Included string.h where mem* function are used.
  8138. Added namespace aria2.
  8139. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. Create directory before saving DHT routing table.
  8141. Now ios::failure is now handled properly.
  8142. * src/DHTAutoSaveCommand.cc
  8143. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Removed unnecessary cerr.
  8145. * src/DownloadEngine.cc
  8146. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. Catch exception inside DHTMessageReceiver::receiveMessage().
  8148. Log unknown message.
  8149. * src/DHTMessageReceiver.{h, cc}
  8150. * src/DHTMessageFactory.h
  8151. * src/DHTMessageFactoryImpl.{h, cc}
  8152. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8153. * src/DHTInteractionCommand.cc
  8154. * src/DHTUnknownMessage.{h, cc}
  8155. * test/DHTUnknownMessageTest.cc
  8156. * test/MockDHTMessageFactory.h
  8157. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Commented out ip address comparison because a host can have multiple
  8159. ip addresses and it is hard to predict the hostname is resolved into
  8160. which one.
  8161. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8162. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. * po/Makefile.in: Removed since this is generated by configure.
  8164. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Fixed compiler warning about redefinition of SIZE_MAX.
  8166. Use common.h instead of config.h directly here.
  8167. * src/Platform.{h, cc}
  8168. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8169. here.
  8170. * common.h
  8171. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8172. Updated gettext related files.
  8173. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8174. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8175. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Added DHT functionality, compatible with mainline.
  8177. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8178. You may need to specify entry point to DHT network using
  8179. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8180. Use --dht-listen-port to specify port number. Make sure that your
  8181. firewall configuration can pass through UDP traffic to the port.
  8182. The routing table is saved in $HOME/.aria2/dht.dat.
  8183. * src/DHT*
  8184. * src/BNode.{h, cc}
  8185. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8186. particular torrent.
  8187. * src/Data.cc: Rewritten ctor.
  8188. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8189. --dht-entry-point.
  8190. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8191. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8192. ends, remove BtContext from DHTPeerAnnounceStorage.
  8193. * src/BtPortMessage.{h, cc}: Rewritten.
  8194. * src/message.h
  8195. * src/OptionHandlerImpl.cc
  8196. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8197. --dht-entry-point.
  8198. * src/Dictionary.{h, cc} (remove): New function.
  8199. * src/prefs.h
  8200. * src/DefaultBtMessageFactory.h
  8201. * src/BtHandshakeMessage.cc
  8202. * src/ActivePeerConnectionCommand.cc
  8203. * src/SocketCore.{h, cc}: Added datagram socket support.
  8204. * src/DefaultBtMessageFactory.cc
  8205. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8206. Create DHT commands.
  8207. * src/BtMessageFactory.h
  8208. * src/PeerMessageUtil.{h, cc}
  8209. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8210. Fixed the bug that log file is not written when configuration file doesn't exist.
  8211. This is caused by using Logger class before LogFactory is not configured.
  8212. BUG #1875079
  8213. * src/option_processing.cc
  8214. Warning message "configuration doesn't exist" is only printed when --conf is
  8215. given.
  8216. * src/option_processing.cc
  8217. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8219. ShaVisitor is now deprecated and slated to be removed.
  8220. * src/DefaultBtContext.cc
  8221. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. Externalize message to message.h
  8223. * src/Platform.cc
  8224. * src/message.h
  8225. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Set default domain and default path to cookie.
  8227. * src/HttpResponse.cc
  8228. * src/CookieBox.{h, cc}
  8229. * src/CookieParser.{h, cc}
  8230. * test/CookieParserTest.cc
  8231. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8232. Added --no-conf and --conf-path command-line option.
  8233. --no-conf option disables loading aria2.conf file.
  8234. --conf-path option changes the configuration file path. The default
  8235. file path is $HOME/.aria2/aria2.conf
  8236. Added a warning message when the configuration file is not found.
  8237. * src/HelpItemFactory.cc
  8238. * src/option_processing.cc
  8239. * src/prefs.h
  8240. * src/usage_text.h
  8241. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Added the message to inform users that other help categories are
  8243. available in -h option.
  8244. * src/version_usage.cc
  8245. * src/TagContainer.{h, cc}
  8246. * test/TagContainerTest.cc
  8247. * src/TaggedItem.{h, cc}
  8248. * test/TaggedItemTest.cc
  8249. * src/HelpItem.h
  8250. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8252. from PiecedSegment's ctor.
  8253. Previously Piece::getAllMissingBlockIndexes() is called from
  8254. PiecedSegment() but it is rather expensive since only first element is
  8255. used.
  8256. * src/PiecedSegment.cc
  8257. * src/Piece.{h, cc}
  8258. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8260. each time these functions are called.
  8261. * src/BitfieldMan.{h, cc}
  8262. * test/BitfieldManTest.cc
  8263. * src/array_fun.h
  8264. * test/array_funTest.cc
  8265. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8266. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8267. filtered. Removed unnecessary cast to int32_t.
  8268. * src/BitfieldMan.{h, cc}
  8269. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8271. payload length(4bytes) are received. This happens because lenbufLength
  8272. is not updated in this particular case and successive call of
  8273. receiveMessage() overwrites payload length with bytes recieved which
  8274. are payload body.
  8275. * src/PeerConnection.{h, cc}
  8276. * src/message.h
  8277. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8279. peer if there are peers that have same ipaddr and port.
  8280. I've experiened segmentation fault and "pure virtual function was
  8281. called" error.
  8282. * src/Peer.h
  8283. * test/PeerTest.cc
  8284. * src/DefaultPeerStorage.cc
  8285. * test/DefaultPeerStorageTest.cc
  8286. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8287. Removed a call to isPowerOf() because it is no longer necessary here
  8288. and a request block is not always power of 2.
  8289. BUG#1866924
  8290. * src/PeerMessageUtil.cc (checkLength)
  8291. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Fixed the bug that always first found Segment is removed from
  8293. usedSegmentEntries. Removed unused functions.
  8294. * src/SegmentMan.{h, cc}
  8295. * test/SegmentManTest.cc
  8296. Fixed the bug that ServerHost is not removed.
  8297. * src/RequestGroup.cc
  8298. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Fixed the bug that SegmentMan::completeSegment() is not called
  8300. even if Segment is complete when --lowest-speed-limit is enabled.
  8301. BUG#1864525
  8302. * src/DownloadCommand.{h, cc}
  8303. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Fixed: hash algorithm 'sha1' is always used.
  8305. * src/DownloadCommand.cc (validatePieceHash)
  8306. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Added --enable-peer-exchange command-line option.
  8308. * src/OptionHandlerFactory.cc
  8309. * src/HelpItemFactory.cc
  8310. * src/option_processing.cc
  8311. * src/usage_text.h
  8312. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8313. Move extension from BtRuntime to ExtensionMessageFactory, because
  8314. extension can be specified per peer, not per torrent.
  8315. * src/DefaultBtInteractive.cc
  8316. * src/BtRuntime.h
  8317. * src/ExtendedMessagingAware.h
  8318. * src/ExtensionMessageFactory.h
  8319. * src/DefaultExtensionMessageFactory.cc
  8320. * test/DefaultExtensionMessageFactoryTest.cc
  8321. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Added categorized option help. Specify category using --help option.
  8323. Also added the ability to search options in forward match.
  8324. * src/HelpItem.{h, cc}
  8325. * test/HelpItemTest.cc
  8326. * src/HelpItemFactory.{h, cc}
  8327. * src/TagContainer.{h, cc}
  8328. * test/TagContainerTest.cc
  8329. * src/option_processing.cc
  8330. * src/prefs.h
  8331. * src/TaggedItem.{h, cc}
  8332. * test/TaggedItemTest.cc
  8333. * src/version_usage.cc
  8334. * src/help_tags.h
  8335. * src/usage_text.h
  8336. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Fixed segmentation fault when bad torrent metainfo is parsed.
  8338. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8339. and then throw exception or skip it.
  8340. * src/DefaultBtContext.{h, cc}
  8341. * test/DefaultBtContextTest.cc
  8342. * src/AnnounceList.cc
  8343. * src/CompactPeerListProcessor.cc
  8344. * src/message.h
  8345. * src/DefaultBtAnnounce.{h, cc}
  8346. * test/DefaultBtAnnounceTest.cc
  8347. * src/BencodeVisitor.cc
  8348. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Added missing "B"(=Byte). So now the message looks like this:
  8350. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8351. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8352. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Show the seed ratio after torrent downloads.
  8354. For example, after torrent download completed and --seed-time and
  8355. --seed-ratio conditions are fulfilled, following message is printed
  8356. right after "Download complete: .....":
  8357. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8358. * src/RequestGroupMan.cc
  8359. * src/RequestGroup.{h, cc}
  8360. * src/message.h
  8361. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Remove a defunct control file. A defunct control file means that while
  8363. it exists, but the corresponding download file is missing.
  8364. After its removal, a download restarts from the beginning.
  8365. * src/RequestGroup.cc
  8366. * src/message.h
  8367. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Allocate bitfield in Peer when it is really used. More specifically,
  8369. bitfield in Peer is allocated after the connection is established and
  8370. deallocated when the connection is dropped.
  8371. Since 2 parameters(piece length and total length) was removed from the
  8372. constructor of Peer class, many test classes were modified accordingly.
  8373. See svn log for more detailed information.
  8374. * src/PeerInteractionCommand.cc
  8375. * src/CompactPeerListProcessor.cc
  8376. * src/Peer.cc
  8377. * src/DefaultPeerListProcessor.cc
  8378. * src/PeerListenCommand.cc
  8379. * src/PeerReceiveHandshakeCommand.cc
  8380. Fixed memory leak
  8381. * src/Piece.cc
  8382. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8383. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8384. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8385. command-line options.
  8386. * src/option_processing.cc
  8387. * src/ActivePeerConnectionCommand.cc
  8388. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8389. Send have message to peer if it already has the piece.
  8390. * src/BtHaveMessage.{h, cc}
  8391. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8393. port.
  8394. * src/DefaultPeerStorage.{h, cc}
  8395. * test/DefaultPeerStorageTest.cc
  8396. * src/HandshakeExtensionMessage.cc
  8397. * test/HandshakeExtensionMessageTest.cc
  8398. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8399. * src/PeerStorage.h
  8400. * test/MockPeerStorage.h
  8401. * src/PeerListenCommand.cc
  8402. * src/PeerReceiveHandshakeCommand.cc
  8403. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Added --metalink-enable-unique-protocol option.
  8405. * src/Metalink2RequestGroup.cc
  8406. * src/option_processing.cc
  8407. * src/prefs.h
  8408. * src/version_usage.cc
  8409. * doc/aria2c.1.txt
  8410. * doc/aria2c.1
  8411. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8412. Allow a peer in incomingPeer to be added peers.
  8413. * src/DefaultPeerStorage.cc
  8414. * test/DefaultPeerStorageTest.cc
  8415. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8416. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8417. I could reproduce this bug in following procedure:
  8418. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8419. 2. Restart aria2.
  8420. 3. You see the download stopped around 99%.
  8421. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8422. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8423. If timeout is reached, then _nextCommand is unused and it may contains
  8424. segments and they won't be canceled. Actually, timeout is not needed
  8425. here because if the server dropped connection, then retry is made.
  8426. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Added uTorrent compatible Peer Exchange.
  8428. * src/BencodeVisitor.{h, cc}
  8429. * test/BencodeVisitorTest.cc
  8430. * src/BtConstants.h
  8431. * src/BtContext.h: Added 'private' flag.
  8432. * src/BtExtendedMessage.{h, cc}
  8433. * test/BtExtendedMessageTest.cc
  8434. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8435. reserved field.
  8436. * test/BtHandshakeMessageTest.cc
  8437. * src/BtMessageFactory.h
  8438. * src/BtRegistry.h
  8439. * src/BtRuntime.h: This class holds default extension message IDs for
  8440. aria2. By default, aria2 uses ID 8 for ut_pex.
  8441. * src/DefaultBtContext.cc
  8442. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8443. When it is true, aria2 enables ut_pex. This value is set by
  8444. PeerInteractionCommand.
  8445. * src/DefaultBtMessageFactory.{h, cc}
  8446. * test/DefaultBtMessageFactoryTest.cc
  8447. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8448. handling to DefaultBtInteractive class.
  8449. * src/DefaultExtensionMessageFactory.{h, cc}
  8450. * test/DefaultExtensionMessageFactoryTest.cc
  8451. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8452. the container(peers and incomingPeers. The equality is determined by
  8453. Peer::id).
  8454. * test/DefaultPeerStorageTest.cc
  8455. * src/ExtensionMessage.h
  8456. * test/MockExtensionMessage.h
  8457. * src/ExtensionMessageFactory.h
  8458. * test/MockExtensionMessageFactory.h
  8459. * src/HandshakeExtensionMessage.{h, cc}
  8460. * test/HandshakeExtensionMessageTest.cc
  8461. * src/MetaEntry.h
  8462. * src/Peer.{h, cc}
  8463. * src/PeerInteractionCommand.cc
  8464. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8465. addIncomingPeer.
  8466. * src/PeerMessageUtil.{h, cc}
  8467. * src/PeerObject.h
  8468. * src/UTPexExtensionMessage.{h, cc}
  8469. * test/UTPexExtensionMessageTest.cc
  8470. * src/message.h
  8471. * src/prefs.h
  8472. Fixed the bug that returns incomplete data when it contains null
  8473. character. A convenient constructor was also added.
  8474. * src/Data.{h, cc}
  8475. Rewritten.
  8476. * src/CompactPeerListProcessor.cc
  8477. Fixed typos.
  8478. * src/message.h
  8479. * src/MetaFileUtil.cc
  8480. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8481. Added "Status Legend" label to the explanation text of 'stat' in
  8482. download result and moved it to the last. BUG#1848214
  8483. * src/RequestGroupMan.cc
  8484. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  8486. * src/Makefie.am
  8487. * test/Makefile.am
  8488. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Fixed the bug that prevents aria2 from loading cookie file when expire
  8490. value is greater than 2^31-1. BUG#1851066
  8491. * src/CookieBoxFactory.cc
  8492. * test/CookieBoxFactoryTest.cc
  8493. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. Fixed possible memory leak when an exception is thrown.
  8495. * src/XML2SAXMetalinkProcessor.cc
  8496. Added Expat support. If both libxml2 and Expat are installed, then
  8497. libxml2 is used by default.
  8498. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  8499. ExpatMetalinkProcessor according to the configuration.
  8500. * src/ExpatMetalinkProcessor.{h, cc}
  8501. * src/main.cc: Removed libxml2 specific header and init/free function.
  8502. * src/MetalinkProcessorFactory.{h, cc}
  8503. * src/MetalinkHelper.cc
  8504. * src/Metalinker.h: Removed unnecessary libxml2 header.
  8505. * src/MetalinkProcessor.h
  8506. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  8507. MetalinkProcessorTest is used instead.
  8508. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  8509. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  8510. MetalinkProcessorFactory::newInstance().
  8511. * m4/libexpat.m4
  8512. * configure.ac: Added configuration options for libexpat.
  8513. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8514. Disabled -s option in metalink download.
  8515. * src/Metalink2RequestGroup.cc
  8516. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. If several protocols are available for a mirror in metalink file,
  8518. aria2 now use one of them. --metalink-preferred-protocol option was
  8519. added to specify the preference of protocol.
  8520. * src/AbstractCommand.cc
  8521. * src/OptionHandlerFactory.cc
  8522. * src/ServerHost.{h, cc}
  8523. * src/Metalink2RequestGroup.cc
  8524. * src/RequestGroup.{h, cc}
  8525. * test/RequestGroupTest.cc
  8526. * src/option_processing.cc
  8527. * src/prefs.h
  8528. * src/HttpResponseCommand.cc
  8529. * src/MetalinkResource.{h, cc}
  8530. * src/FtpNegotiationCommand.cc
  8531. * src/MetalinkEntry.{h, cc}
  8532. * src/MetalinkEntryTest.cc
  8533. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Code cleanup and added debug log.
  8535. * src/PeerConnection.cc
  8536. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Compiler error fix: applied the patch by Tiziano Mueller
  8538. * src/RequestGroup.cc
  8539. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8541. in stopped and completed event.
  8542. * src/AnnounceList.{h, cc}
  8543. * test/AnnounceListTest.cc
  8544. * src/DefaultBtAnnounce.cc
  8545. * test/DefaultBtAnnounceTest.cc
  8546. Sorted URLs.
  8547. * test/Metalink2RequestGroupTest.cc
  8548. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Removed unnecessary string copy. Updated doc and corrected indentation.
  8550. * src/Base64.cc
  8551. Fixed compilation warnings
  8552. * test/DataTest.cc
  8553. * test/HttpRequestTest.cc
  8554. * test/MetaFileUtilTest.cc
  8555. * test/RequestTest.cc
  8556. * Release 0.12.0
  8557. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Updated translations
  8559. * po/{de,fr,ja,nl,ru}.po
  8560. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8561. translations. Many thanks to translators.
  8562. * po/{ca,es,it,pt_BR,sv}.po
  8563. * po/LINGUAS
  8564. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. Added a notice about URL
  8566. * src/version_usage.cc
  8567. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8568. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8569. aria2 repeatedly sends stopped request when tracker returns error code.
  8570. * src/AnnounceList.cc
  8571. * test/AnnounceListTest.cc
  8572. * src/AnnounceTier.h
  8573. Added a message when ctrl-c is hit.
  8574. Now second ctrl-c is also handled in signal handler.
  8575. * src/RequestGroupMan.{h, cc}
  8576. * src/RequestGroup.{h, cc}
  8577. * src/MultiUrlRequestInfo.cc
  8578. * src/DownloadEngine.cc
  8579. * src/TrackerWatcherCommand.cc
  8580. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. Code cleanup
  8582. * src/Base64.cc (encode)
  8583. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Changed Direct/IO enable/disable procesure in file allocation routine.
  8585. * src/SingleFileAllocationIterator.cc
  8586. (SingleFileAllocationIterator):
  8587. Disable directIO if offset is not multiple of 512.
  8588. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8589. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8590. Enable created SingleFileAllocationIterator's directIO.
  8591. * src/FileAllocationEntry.cc
  8592. (FileAllocationEntry): Enable directIO here.
  8593. (~FileAllocationEntry): Disable directIO here.
  8594. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8596. * src/Peer.{h, cc}
  8597. * src/DefaultPieceStorage.cc
  8598. * test/DefaultPieceStorageTest.cc
  8599. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. Rewritten direct I/O support routine
  8601. * src/SingleFileAllocationIterator.cc
  8602. * src/MultiDiskAdaptor.{h, cc}
  8603. * src/ByteArrayDiskWriter.h
  8604. * src/AbstractSingleDiskAdaptor.h
  8605. * src/AbstractDiskWriter.cc
  8606. * src/DefaultPieceStorage.cc
  8607. * src/DiskWriter.h
  8608. * src/BinaryStream.h
  8609. * src/IteratableChunkChecksumValidator.cc
  8610. * src/IteratableChecksumValidator.cc
  8611. * src/CheckIntegrityEntry.cc
  8612. * src/FileAllocationEntry.cc
  8613. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. Fixed typo
  8615. * src/version_usage.cc
  8616. Updated doc
  8617. * doc/aria2c.1.txt
  8618. * doc/aria2c.1
  8619. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. Fixed compile error without message digest support.
  8621. * src/FileMetalinkParserState.cc
  8622. * src/MetalinkParserController.{h, cc}
  8623. * test/XML2SAXMetalinkProcessorTest.cc
  8624. * test/MetalinkParserControllerTest.cc
  8625. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Enable direct I/O support in checksum checking.
  8627. * src/IteratableChunkChecksumValidator.{h, cc}
  8628. * test/IteratableChunkChecksumValidatorTest.cc
  8629. * src/CheckIntegrityEntry.cc
  8630. * src/PieceHashCheckIntegrityEntry.cc
  8631. * src/IteratableChecksumValidator.{h, cc}
  8632. * src/BtCheckIntegrityEntry.cc: Added doc.
  8633. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8634. Added --allow-piece-length-change option.
  8635. * src/DefaultBtProgressInfoFile.cc
  8636. * test/DefaultBtProgressInfoFileTest.cc
  8637. * src/OptionHandlerFactory.cc
  8638. * src/option_processing.cc
  8639. * src/prefs.h
  8640. * src/version_usage.cc
  8641. * doc/aria2c.1.txt
  8642. * doc/aria2c.1
  8643. Fixed: duplicated result entry appears when exception is thrown in
  8644. RequestGroup::createInitiateConnectionCommand().
  8645. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8646. Add RequestGroup to _requestGroup after RequetGroup::
  8647. createInitiateConnectionCommand() succeeds.
  8648. Externalized message
  8649. * src/XML2SAXMetalinkProcessor.cc
  8650. * src/message.h
  8651. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. Forced download abort when received negative response from http/ftp
  8653. server.
  8654. * src/HttpResponseCommand.cc
  8655. * src/FtpNegotiationCommand.cc
  8656. * src/HttpResponse.cc
  8657. * src/FtpConnection.cc
  8658. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8659. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8660. the predecessor, Xml2MetalinkParser class.
  8661. I tested them against 94KB metalink file with 1234 chunk checksums.
  8662. The new one parsed it in 22msec, while it took 6000msec with old one.
  8663. * src/XML2SAXMetalinkProcessor.{h, cc}
  8664. * test/XML2SAXMetalinkProcessorTest.cc
  8665. * src/MetalinkParserController.{h, cc}
  8666. * test/MetalinkParserControllerTest.cc
  8667. * src/MetalinkParserState.h: Also added 16 subclasses.
  8668. * src/main.cc
  8669. * src/Metalink2RequestGroup.cc
  8670. * src/MetalinkHelper.cc
  8671. * src/MetalinkEntry.cc
  8672. * src/ChunkChecksum.h
  8673. Rewritten Base64 class for better performance.
  8674. * src/Base64.{h, cc}
  8675. * test/Base64Test.cc
  8676. * src/HttpRequest.cc
  8677. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Fixed the bug#1841757: aria2 will connect to server to only get
  8679. file size.
  8680. * src/StreamFileAllocationEntry.cc
  8681. * src/option_processing.cc
  8682. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8683. downloads.
  8684. * src/FtpNegotiationCommand.cc
  8685. Suppressed wrong message when finding PreDownloadHandler
  8686. * src/RequestGroup.cc
  8687. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Updated usage
  8689. * src/version_usage.cc
  8690. Updated man page
  8691. * doc/aria2c.1.txt
  8692. * doc/aria2c.1
  8693. Updated po files
  8694. * po/aria2c.pot
  8695. * po/*.po
  8696. * po/*.gmo
  8697. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8698. Eliminated g++-4.2 warning
  8699. * src/DownloadHandlerConstants.{h, cc}
  8700. * src/Util.cc
  8701. * test/MetaFileUtilTest.cc
  8702. * test/PStringBuildVisitorTest.cc
  8703. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8704. * src/RequestGroup.cc
  8705. * src/BtCheckIntegrityEntry.cc
  8706. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. Fixed a2io.h
  8708. * src/a2io.h
  8709. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8710. Added direct I/O support. The current implementation uses O_DIRECT,
  8711. which is not posix standard and is tested on linux 2.6.21.
  8712. Currently only file allocation uses direct I/O.
  8713. * src/SingleFileAllocationIterator.{h, cc}
  8714. * test/SingleFileAllocationIteratorTest.cc
  8715. * src/MultiFileAllocationIterator.{h, cc}
  8716. * test/MultiFileAllocationIteratorTest.cc
  8717. * src/BinaryStream.h
  8718. * src/DiskWriter.h
  8719. * src/AbstractDiskWriter.{h, cc}
  8720. * src/ByteArrayDiskWriter.h
  8721. * src/DiskAdaptor.h
  8722. * src/AbstractSingleDiskAdaptor.{h, cc}
  8723. * src/MultiDiskAdaptor.{h, cc}
  8724. * src/FileAllocationEntry.cc
  8725. * src/Util.{h, cc}
  8726. * src/OptionHandlerFactory.cc
  8727. * src/prefs.h
  8728. * src/version_usage.cc
  8729. * src/option_processing.cc
  8730. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8731. handleException.
  8732. * src/MultiFileAllocationIterator.cc
  8733. Added EINTR handling
  8734. * src/SocketCore.cc
  8735. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8736. Updated usage
  8737. * src/version_usage.cc
  8738. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8739. Applied Ross's patch for MinGW port.
  8740. * src/DownloadEngine.h
  8741. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8742. Set Content-Type to SingleFileDownloadContext when http response is
  8743. received.
  8744. * src/HttpResponseCommand.cc
  8745. * src/HttpResponse.{h, cc}
  8746. * test/HttpResponseTest.cc
  8747. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Rewritten to add content-type support.
  8749. * src/DownloadHandler.{h, cc}
  8750. * src/BtPostDownloadHandler.{h, cc}
  8751. * test/BtPostDownloadHandlerTest.cc
  8752. * src/MetalinkPostDownloadHandler.{h, cc}
  8753. * test/MetalinkPostDownloadHandlerTest.cc
  8754. * src/PostDownloadHandler.{h, cc}
  8755. * src/DownloadHandlerConstants.{h, cc}
  8756. * src/RequestGroup.cc
  8757. * src/HttpResponseCommand.cc
  8758. * src/FtpNegotiationCommand.cc
  8759. * src/SingleFileDownloadContext.{h, cc}
  8760. * src/RequestGroup.h
  8761. * src/RequestGroupCriteria.h
  8762. * src/ContentTypeRequestGroupCriteria.h
  8763. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8764. If it is give, metalink/torrent file is not written to the disk, but
  8765. just is kept in memory. Parsing is occurred on memory.
  8766. * src/MetalinkHelper.{h, cc}
  8767. * src/MetalinkProcessor.h
  8768. * src/Xml2MetalinkProcessor.{h, cc}
  8769. * test/Xml2MetalinkProcessorTest.cc
  8770. * src/DownloadHandlerFactory.{h, cc}
  8771. * test/DownloadHandlerFactoryTest.cc
  8772. * src/PreDownloadHandler.{h, cc}
  8773. * src/OptionHandlerFactory.cc
  8774. * src/DefaultBtContext.{h, cc}
  8775. * test/DefaultBtContextTest.cc
  8776. * src/version_usage.cc
  8777. * src/Metalink2RequestGroup.{h, cc}
  8778. * src/RequestGroup.{h, cc}
  8779. * src/a2functional.h
  8780. * test/a2functionalTest.cc
  8781. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8782. * src/OptionHandlerImpl.h
  8783. * src/prefs.h
  8784. * src/Util.{h, cc}
  8785. * test/UtilTest.cc
  8786. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8787. memory usage.
  8788. * src/RequestGroupMan.{h, cc}
  8789. * src/DownloadEngine.cc
  8790. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8791. WeakHandle to SharedHandle because WeakHandle could be null.
  8792. * src/RequestGroup.{h, cc}
  8793. * src/DownloadEngineFactory.cc
  8794. * src/DownloadResult.h
  8795. Set totalLength after download finished
  8796. * src/UnknownLengthPieceStorage.{h, cc}
  8797. Keep torrent file specified in metalink in memory.
  8798. * src/Metalink2RequestGroup.cc
  8799. * src/BtDependency.cc
  8800. * src/TrueRequestGroupCriteria.h
  8801. Fixed the bug: seekg is used where seekp should be used.
  8802. * src/ByteArrayDiskWriter.cc
  8803. * test/ByteArraydiskWriterTest.cc
  8804. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Fixed syntax error
  8806. * test/SequenceTest.cc
  8807. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8808. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8809. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8810. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8811. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8812. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Added the check to see whether ares_host_callback accepts timeouts
  8814. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8815. * src/NameResolver.{h, cc}
  8816. * m4/libcares.m4
  8817. * configure.ac: Set C++ for language choice.
  8818. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8819. Fixed: compilation fails without c-ares/ares
  8820. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8821. Generate http/ftp commands only when download is incomplete.
  8822. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8823. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Corrected typo. Examples are removed since they are available in man
  8825. page.
  8826. * src/version_usage.cc
  8827. Updated man page.
  8828. * doc/aria2c.1
  8829. * doc/aria2c.1.txt
  8830. * doc/makeman: Commented out sed command.
  8831. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. Throw DlAbortEx when a remote file is not found.
  8833. * src/HttpResponse.cc
  8834. * src/FtpNegotiationCommand.cc
  8835. * src/message.h
  8836. Overwrite an existing file if --allow-overwrite=true is given.
  8837. * src/RequestGroup.cc
  8838. Removed unused functions
  8839. * src/AbstractCommand.h
  8840. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Removed 'extern' from 'extern typedef ...' in src/*.h
  8842. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Updated usage
  8844. * src/version_usage.cc
  8845. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8846. Trim announce URL
  8847. * src/DefaultBtContext.cc
  8848. * test/ShaVisitorTest.cc
  8849. Trim argument s. Give trimed s to exception constructor.
  8850. * src/Util.cc (parseInt)(parseLLInt)
  8851. * test/UtilTest.cc
  8852. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. Set precision back to 1.
  8854. * src/ConsoleStatCalc.cc (calculateStat)
  8855. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8856. Replaced strtol with Util::parseInt
  8857. * src/ChunkedEncoding.cc
  8858. * src/HttpConnection.cc
  8859. * src/CookieBoxFactory.cc
  8860. * src/ParameterizedStringParser.cc
  8861. * src/Util.cc
  8862. * test/UtilTest.cc
  8863. * test/OptionHandlerTest.cc
  8864. * src/Request.cc
  8865. Throw exception when empty string is given. The message for exception
  8866. changed.
  8867. * src/Util.cc (parseInt)(parseLLInt)
  8868. * src/message.h
  8869. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Set precision to 2 because share ratio is rounded into 1.0 if precision
  8871. set to 1.
  8872. * src/ConsoleStatCalc.cc (calculateStat)
  8873. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Preallocate non-requested file which is adjacent forward to requested
  8875. file('requested' files means the files given in --select-file option)
  8876. if they share a same piece.
  8877. This fixes long pause in the file system which doesn't support sparse
  8878. files like FAT32 while downloading.
  8879. * src/MultiFileAllocationIterator.{h, cc}
  8880. * test/MultiFileAllocationIteratorTest.cc
  8881. * src/FileEntry.{h, cc}
  8882. Removed unused _option.
  8883. * src/MultiDiskAdaptor.h
  8884. * test/MultiDiskAdaptorTest.cc
  8885. * src/DefaultPieceStorage.cc
  8886. Set the default value of --seed-ratio to 1.0.
  8887. If 0.0 is given, then seeding continues regardless of share ratio.
  8888. * src/version_usage.cc
  8889. * src/option_processing.cc
  8890. * src/BtSetup.cc
  8891. * doc/aria2c.1.txt
  8892. * doc/aria2c.1
  8893. Fixed: Selective download is not working in BitTorrent
  8894. * src/RequestGroup.cc
  8895. Introduced Sequence class. Use this instead of Util::unfoldRange()
  8896. * src/PieceStorage.h
  8897. * test/MockPieceStorage.h
  8898. * src/UnknownLengthPieceStorage.h
  8899. * src/DefaultPieceStorage.{h, cc}
  8900. * src/Metalink2RequestGroup.cc
  8901. * src/RequestGroup.cc
  8902. * src/Sequence.h
  8903. * test/SequenceTest.cc
  8904. * src/IntSequence.h
  8905. * src/message.h
  8906. * src/Util.{h, cc}
  8907. * test/UtilTest.cc
  8908. Added new function 'parse' to catch exception thrown by subclass's
  8909. parseArg
  8910. * src/OptionHandler.h
  8911. * src/OptionParser.cc
  8912. * src/NameMatchOptionHandler.h
  8913. * src/OptionHandlerImpl.h
  8914. * test/OptionHandlerTest.cc
  8915. Added IntegerRangeOptionHandler. Used for --listen-port and
  8916. --select-file. Now --listen-port accepts range of port.
  8917. * src/OptionHandlerFactory.cc
  8918. * src/version_usage.cc
  8919. * src/OptionHandlerImpl.h
  8920. * src/option_processing.cc
  8921. * src/BtSetup.cc
  8922. * src/PeerListenCommand.{h, cc}
  8923. * doc/aria2c.1.txt
  8924. * doc/aria2c.1
  8925. Implemented operator< for Exception class to provide easy way to print
  8926. exception stack trace.
  8927. * src/Exception.{h, cc}
  8928. * src/main.cc
  8929. * src/option_processing.cc
  8930. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8931. * src/version_usage.cc
  8932. (showVersion): Reworked.
  8933. (showUsage): Added examples.
  8934. Removed Hint for total length and file name.
  8935. * src/Metalink2RequestGroup.cc
  8936. * src/RequestGroup.{h, cc}
  8937. * src/HttpResponseCommand.cc
  8938. * src/FtpNegotiationCommand.cc
  8939. Now --follow-torrent and --follow-metalink option work properly.
  8940. * src/RequestGroup.cc
  8941. Updated man page
  8942. * doc/aria2c.1.txt
  8943. * doc/aria2c.1
  8944. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Removed.
  8946. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  8947. Use Segment::operator==()
  8948. * src/HttpConnection.cc
  8949. * src/Segment.h
  8950. Updated usage
  8951. * src/version_usage.cc
  8952. Added EINTR treatment.
  8953. * src/SocketCore.cc
  8954. * src/AbstractDiskWriter.cc
  8955. Rewritten.
  8956. * src/Util.cc (rangedFileCopy)
  8957. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Fixed typo.
  8959. * src/version_usage.cc
  8960. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8961. Implemented. Now -c option works fine.
  8962. * src/DefaultPieceStorage.cc (markPiecesDone)
  8963. * test/DefaultPieceStorageTest.cc
  8964. Removed.
  8965. * src/SegmentMan.{h, cc}
  8966. (markAllPiecesDone)
  8967. (markPieceDone)
  8968. Synchronized po files with
  8969. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  8970. * src/fr.po
  8971. * src/ru.po
  8972. * src/de.po
  8973. * src/ja.po
  8974. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8975. Added ifdef and some modifications to compile without BitTorrent,
  8976. Metalink, MessageDigest
  8977. support.
  8978. * src/PieceHashCheckIntegrityEntry.cc
  8979. * src/MetalinkEntry.h
  8980. * src/version_usage.cc
  8981. * src/main.cc
  8982. * src/DownloadEngine.{h, cc}
  8983. * src/Metalink2RequestGroup.cc
  8984. * src/Peer.cc
  8985. * src/RequestGroup.cc
  8986. * src/MetalinkHelper.cc
  8987. * test/DefaultPieceStorageTest.cc
  8988. * test/MetalinkPostDownloadHandlerTest.cc
  8989. * test/Metalink2RequestGroupTest.cc
  8990. Hide TOTAL SPD when all downloads complete.
  8991. * src/ConsoleStatCalc.cc
  8992. Log target system information.
  8993. * src/main.cc
  8994. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8995. Now --metalink-location accepts a comma-deliminated list of locations.
  8996. * src/MetalinkEntry.{h, cc}
  8997. * test/MetalinkEntryTest.cc
  8998. * src/version_usage.cc
  8999. * src/Metalink2RequestGroup.cc
  9000. * src/Xml2MetalinkProcessor.cc
  9001. * test/Xml2MetalinkProcessorTest.cc
  9002. * doc/aria2c.1.txt
  9003. * doc/aria2c.1
  9004. * src/Util.cc (toUpper)(toLower): Rewritten.
  9005. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. Added the ability to detect duplicate download entry which is about to
  9007. download the same file other RequestGroup is downloading.
  9008. * src/RequestGroup.cc
  9009. * src/HttpResponseCommand.cc
  9010. * src/FtpNegotiationCommand.cc
  9011. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9012. Recalculates download progress when loading a control file,
  9013. if the piece length of DownloadContext is different from the one saved
  9014. in the control file. Currently in-flight pieces are ignored.
  9015. * src/DefaultBtProgressInfoFile.cc
  9016. * test/DefaultBtProgressInfoFileTest.cc
  9017. * src/Util.{h, cc}
  9018. * test/UtilTest.cc
  9019. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Do not rotate tiers in announce-list.
  9021. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9022. AnnounceList::allTiersFailed() used instead to detect whether all
  9023. tiers are tried and failed.
  9024. * test/DefaultBtAnnounceTest.cc
  9025. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9026. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9027. * test/AnnounceListTest.cc
  9028. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9029. clause. Catch RecoverableException instead of DlRetryEx instead.
  9030. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9031. Implemented checksum validation feature(1 checksum for each file)
  9032. The validation takes place after the download.
  9033. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9034. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9035. * src/CheckIntegrityCommand.cc: Changed log message.
  9036. * src/Metalink2RequestGroup.cc: Set checksum to
  9037. SingleFileDownloadContext.
  9038. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9039. PieceHashCheckIntegrity class.
  9040. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9041. PieceHashCheckIntegrity class.
  9042. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9043. * src/IteratableValidator.h: New class.
  9044. * src/message.h
  9045. * src/CheckIntegrityEntry.{h, cc}
  9046. * src/IteratableChunkChecksumValidator.{h, cc}
  9047. * src/SingleFileDownloadContext.h
  9048. * src/DownloadCommand.cc
  9049. --allow-overwrite=true is no longer needed to check file integrity
  9050. before download in BitTorrent download.
  9051. * src/RequestGroup.cc (getInitialCommand)
  9052. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9053. throws exception.
  9054. * src/RequestGroupMan.cc (getInitialCommands)
  9055. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. urlencode the given url inside Request::parseUrl(...)
  9057. * src/Request.{h, cc}
  9058. * src/Util.{h, cc}
  9059. * test/RequestTest.cc
  9060. Removed #!metalink3! notation support because it is deleted from
  9061. the metalink specification.
  9062. * src/Request.{h, cc}
  9063. * test/RequestTest.cc
  9064. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9065. Don't connect server before checking file integrity at startup, if
  9066. filesize and output file path are known.
  9067. * src/AbstractCommand.cc
  9068. * src/StreamFileAllocationEntry.cc
  9069. * src/Metalink2RequestGroup.cc
  9070. * src/RequestGroup.{h, cc}
  9071. * src/HttpResponseCommand.cc
  9072. * src/FtpNegotiationCommand.cc
  9073. Added DownloadFailureException. If it is thrown, RequestGroup should
  9074. halt.
  9075. * src/AbstractCommand.cc
  9076. * src/DownloadFailureException.h
  9077. * src/RequestGroup.cc
  9078. Catch RecoverableException, instead of DlAbortEx.
  9079. * src/RequestGroupMan.cc
  9080. * src/FillRequestGroupCommand.cc
  9081. * src/MetaFileUtil.cc
  9082. * src/IteratableChunkChecksumValidator.cc
  9083. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9084. getGID())
  9085. * src/CheckIntegrityCommand.cc
  9086. * src/message.h
  9087. Print gid instead of idx.
  9088. * src/RequestGroupMan.cc
  9089. Removed exception throwers declaration.
  9090. * src/DirectDiskAdaptor.{h, cc}
  9091. * src/SocketCore.{h, cc}
  9092. * src/MultiDiskAdaptor.{h, cc}
  9093. * src/HttpConnection.{h, cc}
  9094. * src/HttpResponse.{h, cc}
  9095. * src/DiskAdaptor.{h, cc}
  9096. * src/CopyDiskAdaptor.{h, cc}
  9097. * src/MultiDiskAdaptor.{h, cc}
  9098. * src/HttpHeaderProcessor.{h, cc}
  9099. * src/AbstractSingleDiskAdaptor.{h, cc}
  9100. * src/Util.{h, cc}
  9101. * test/UtilTest.cc
  9102. * src/DefaultDiskWriter.{h, cc}
  9103. * src/FtpConnection.{h, cc}
  9104. * src/AbstractDiskWriter.{h, cc}
  9105. Removed duplicate code.
  9106. * src/StreamCheckIntegrityEntry.cc
  9107. Removed unnecessary include.
  9108. * src/DiskWriter.h
  9109. Included Exception.h
  9110. * src/option_processing.cc
  9111. Included 2 files and added doc
  9112. * src/TrackerWatcherCommand.cc
  9113. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9114. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Changed CheckIntegrityEntry interface so that it can define
  9116. the action when all the chunk checksums are valid.
  9117. * src/CheckIntegrityEntry.h
  9118. * src/StreamCheckIntegrityEntry.{h, cc}
  9119. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9120. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9121. to exit rather than doing seeding. So, it would be good to toggle this
  9122. behavior.
  9123. * src/CheckIntegrityCommand.cc
  9124. * src/AbstractCommand.cc
  9125. * src/RequestGroup.cc
  9126. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9127. Reflect the download length of in-flight pieces.
  9128. It makes the download length readout more precise.
  9129. * src/DefaultPieceStorage.{h, cc}
  9130. * test/DefaultPieceStorageTest.cc
  9131. * src/a2functional.h
  9132. * test/a2functionalTest.cc
  9133. Lower CPU load when --max-download-limit is used.
  9134. There is up and down in speed indicator when enabling
  9135. http-pipelining but a download goes well. I think the problem is that
  9136. because http-pipelining is enabled, DownloadCommand is created for
  9137. each segment and in its constructor, PeerStat::downloadStart() is
  9138. called. In PeerStat::downloadStart(), speed calculation object is
  9139. reseted, which makes download speed zero.
  9140. * src/DownloadCommand.cc
  9141. Rewritten using accumulate.
  9142. * src/RequestGroupMan.cc (calculateStat)
  9143. Code clearnup.
  9144. * src/FtpNegotiationCommand.cc
  9145. * src/HttpResponseCommand.cc
  9146. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9147. Fixed: Can not resume: aria2 reports download already finished.
  9148. * src/AbstractCommand.{h, cc}
  9149. * src/HttpResponseCommand.cc
  9150. * src/FtpNegotiateCommand.cc
  9151. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Now a file is stored in the directory specified in .metalnk file
  9153. (file[@name]).
  9154. * src/Metalink2RequestGroup.cc
  9155. Create the directory structure when opening the file if it doesn't
  9156. exist.
  9157. * src/AbstractDiskWriter.cc
  9158. * src/Util.{h, cc}
  9159. * src/File.h
  9160. * test/UtilTest.cc
  9161. Removed file name comparison
  9162. * src/Metalink2RequestGroup.cc
  9163. * src/HttpResponseCommand.cc
  9164. Rewritten using Util::mkdirs()
  9165. * src/FileEntry.cc (setupDir)
  9166. * test/FileEntryTest.cc
  9167. Updated doc
  9168. * src/SingleFileDownloadContext.h
  9169. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9170. Now SleepCommand dispatches nextCommand when halt is requested.
  9171. It avoids a possible long wait after hitting CTRL-C.
  9172. * src/SleepCommand.{h, cc}
  9173. * src/RequestGroupAware.{h, cc}
  9174. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9175. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9176. to open listen port, then remove the port number from the tracker
  9177. request.
  9178. * src/DefaultBtAnnounce.cc
  9179. * test/DefaultBtAnnounceTest.cc
  9180. * test/MockPieceStorage.h
  9181. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9182. them more testable.
  9183. * src/DefaultBtAnnounce.{h, cc}
  9184. * src/DefaultBtContext.{h, cc}
  9185. * src/Util.{h, cc}
  9186. * test/DefaultBtAnnounceTest.cc
  9187. * test/DefaultBtContextTest.cc
  9188. * test/UtilTest.cc
  9189. Added 'B' to upload bytes readout.
  9190. * src/ConsoleStatCalc.cc
  9191. Now the listen port for BitTorrent download is opened when it is
  9192. needed.
  9193. * src/DownloadEngineFactory.cc
  9194. * src/BtSetup.{h, cc}
  9195. * src/PeerListenCommand.{h, cc}
  9196. Now an exception thrown while parsing tracker response is now logged.
  9197. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9198. called, which means no retry is made in this case, assuming a tracker
  9199. has a problem.
  9200. * src/TrackerWatcherCommand.cc
  9201. Fixed: downloading a file whose length is unkown fails.
  9202. * src/DownloadCommand.cc
  9203. Simplified prepareForNextSegment()
  9204. * src/DownloadCommand.cc
  9205. Updated
  9206. * po/POTFILES.in
  9207. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9208. Re-implemented a file listing for Metalink, which was dropped while
  9209. http/ftp/torrent integration was being implemented.
  9210. * src/MetalinkHelper.{h, cc}: New class.
  9211. * test/MetalinkHelperTest.cc
  9212. * src/main.cc
  9213. * src/Metalink2RequestGroup.cc
  9214. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Added the ability to display the detailed torrent file information.
  9216. Now -S option gives not only a file listing, but also total download
  9217. length, info hash, announce URI, piece length, the number of pieces,
  9218. and mode(single or multi-torrent).
  9219. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9220. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9221. KiB)
  9222. * test/UtilTest.cc
  9223. * src/main.cc
  9224. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. Added ftp://USER:PASSWD@Servername automatic parsing.
  9226. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9227. _password. Recognize username and password in URI.
  9228. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9229. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9230. * src/RequestFactory.{h, cc}: Removed.
  9231. * src/AuthConfigFactory.{h, cc}: New class.
  9232. * src/FtpConnection.cc: Use AuthConfigFactory.
  9233. * src/HttpRequest.cc: Use AuthConfigFactory.
  9234. * test/HttpRequestTest.cc: Updated.
  9235. * test/RequestTest.cc: Updated.
  9236. * test/AuthConfigFactoryTest.cc: New class.
  9237. * test/RequestFactoryTest.cc: Removed.
  9238. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. Use RequestGroup::allDownloadFinished() to decide whether the control
  9240. file should be removed or saved.
  9241. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9242. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9243. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Use File::renameTo()
  9245. * src/DefaultBtProgressInfoFile.cc
  9246. Added --no-file-allocation-limit command-line option.
  9247. * src/version_usage.cc
  9248. * src/option_processing.cc
  9249. * src/OptionHandlerFactory.cc
  9250. * src/RequestGroup.{h, cc}
  9251. * src/BtCheckIntegrityEntry.cc
  9252. * src/StreamCheckIntegrityEntry.cc
  9253. * src/prefs.h
  9254. * doc/aria2c.1.txt
  9255. * doc/aria2c.1
  9256. Now prealloc is the default value for --file-allocation option.
  9257. * src/version_usage.cc
  9258. * src/option_processing.cc
  9259. * doc/aria2c.1.txt
  9260. * doc/aria2c.1
  9261. Don't URL-encode user-agent.
  9262. * src/HttpRequest.cc
  9263. Updated translations
  9264. * po/LINGUAS: Added nl for Dutch translation.
  9265. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9266. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9267. * po/POTFILES.in: Updated.
  9268. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9269. Added the ability to recognize url-list in a torrent file.
  9270. The retrieved URLs are attached to the corresponding FileEntry.
  9271. * src/DefaultBtContext.{h, cc}
  9272. * src/FileEntry.{h, cc}
  9273. * test/DefaultBtContextTest.cc
  9274. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9275. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9276. after the download finishes.
  9277. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9278. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9279. the data smaller than block length.
  9280. A block length can be specified by constructor's argument.
  9281. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9282. Get a missing piece in the range of given FileEntry. This function is
  9283. not used in the program yet.
  9284. * src/Util.h: Added some macros.
  9285. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9286. Added HTTP/1.1 keep alive and pipelining support.
  9287. See --enable-http-keep-alive and --enable-http-pipelining option.
  9288. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9289. Segment.
  9290. * src/HttpDownloadCommand.{h, cc}
  9291. * src/OptionHandlerFactory.cc
  9292. * src/HttpConnection.{h, cc}
  9293. * src/version_usage.cc
  9294. * src/HttpInitiateConnectionCommand.cc
  9295. * src/FtpInitiateConnectionCommand.cc
  9296. * src/Segment.h
  9297. * src/HttpRequestCommand.{h, cc}
  9298. * src/option_processing.cc
  9299. * src/prefs.h
  9300. * src/HttpResponseCommand.cc
  9301. * src/SegmentMan.{h, cc}
  9302. * src/FtpNegotiateCommand.cc
  9303. * src/HttpProxyResponseCommand.cc
  9304. * src/Request.cc
  9305. * src/HttpRequest.cc
  9306. * src/DownloadCommand.cc
  9307. * test/HttpRequestTest.cc
  9308. * test/RequestTest.cc
  9309. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9310. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9311. finished.
  9312. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9313. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9314. catching it inside the method.
  9315. When no file entry is found in a metalink without querying user
  9316. preferences, throw the exception with the error message that suggests
  9317. metalink file is probably broken.
  9318. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9319. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9320. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9321. processed.
  9322. * src/RequestGroupMan.cc (removeStoppedGroup)
  9323. Added debug message.
  9324. * src/BtPostDownloadHandler.cc
  9325. * src/MetalinkPostDownloadHandler.cc
  9326. * src/PostDownloadHandler.{h, cc}
  9327. * src/RequestGroup.cc
  9328. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9329. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9330. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9331. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9332. stops and there are any unfinished or in-progress downloads.
  9333. Added the legend of "stat".
  9334. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Throw exception when chunck checksum verification fails.
  9336. * src/DownloadCommand.cc (validatePieceHash): New function.
  9337. * src/PiecedSegment.{h, cc} (clear): New function.
  9338. * src/GrowSegment.{h, cc} (clear): New function.
  9339. * src/Segment.h (clear): New function.
  9340. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9341. * test/SegmentTest.cc
  9342. * test/GrowSegmentTest.cc
  9343. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Do not send referer when redirected.
  9345. * src/Request.cc (redirectUrl)
  9346. * test/RequestTest.cc
  9347. * test/HttpRequestTest.cc
  9348. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9349. Implemented BitTorrent/http/ftp integrated download.
  9350. I've rewritten lots of files and now some headers have forward
  9351. class declarations to reduce compile time.
  9352. The implementation is extremely alpha stage, I recommend to use this
  9353. for testing purpose only.
  9354. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9355. Fixed the compilation error on 64bit platform.
  9356. * test/HttpHeaderProcessorTest.cc
  9357. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Merged Ross's patch that fixes compilation problem in MinGW
  9359. * test/DefaultBtProgressInfoFileTest.cc
  9360. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9361. Updated fr.po by sebone
  9362. * po/fr.po
  9363. Updated man page.
  9364. * doc/aria2c.1.txt
  9365. * Release 0.11.3
  9366. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9368. failure in Metalink.
  9369. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9370. Automatically save *.aria2 control file of http/ftp download in every
  9371. 60 seconds.
  9372. * src/AutoSaveCommand.{h, cc}: New class.
  9373. * src/TimeBasedCommand.{h, cc}: New class.
  9374. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9375. Disable parameterized URI support by default. Added -P option to
  9376. enable the feature.
  9377. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9378. * src/OptionHandlerFactory.cc
  9379. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9380. Updated Japanese translation.
  9381. * po/ja.po
  9382. Updated man page.
  9383. * doc/aria2c.1.txt
  9384. * Release 0.11.3-rc
  9385. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9387. it is successful, then renamed to *.aria2.
  9388. This prevents *.aria2 file from being truncated or corrupted when
  9389. file system becomes out of space.
  9390. * src/DefaultBtProgressInfoFile.cc (save)
  9391. * src/SegmentMan.cc (save)
  9392. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9393. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9394. Reduced the fragmentation of bitfield in http/ftp download.
  9395. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9396. * test/BitfieldManTest.cc
  9397. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9398. Added the ability to disable segmented download in .metalink.
  9399. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9400. 'url' tag.
  9401. * src/MetalinkEntry.{h, cc}
  9402. * src/RequestResource.{h, cc}
  9403. * src/MetalinkRequestInfo.cc
  9404. * src/Xml2MetalinkProcessor.cc
  9405. * test/Xml2MetalinkProcessorTest.cc
  9406. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9407. Added parameterized URI support.
  9408. * src/main.cc: -Z option added.
  9409. * src/OptionHandlerFactory.cc
  9410. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9411. * src/PStringDatum.h: New class.
  9412. * src/PStringSegment.{h,cc}: New class.
  9413. * src/PStringNumLoop.h: New class.
  9414. * src/PStringSelect.h: New class.
  9415. * src/NumberDecorator.h: New class.
  9416. * src/FixedWidthNumberDecorator.h: New class.
  9417. * src/AlphaNumberDecorator.h: New class.
  9418. * src/PStringVisitor.h: New class.
  9419. * src/PStringBuildVisitor.{h,cc}: New class.
  9420. * src/ParameterizedStringParser.{h,cc}: New class.
  9421. * src/Util.{h,cc}
  9422. (isNumber): New function.
  9423. (isLowercase): New function.
  9424. (isUppercase): New function.
  9425. (alphaToNum): New function.
  9426. * test/ParameterizedStringParserTest.cc: New class.
  9427. * test/AlphaNumberDecoratorTest.cc: New class.
  9428. * test/PStringBuildVisitorTest.cc: New class.
  9429. * test/UtilTest.cc
  9430. (testIsNumber): New function.
  9431. (testIsLowercase): New function.
  9432. (testIsUppercase): New function.
  9433. (testAlphaToNum): New function.
  9434. Added '\n' after the error message
  9435. * src/RequestInfo.h (printDownloadAbortMessage)
  9436. Added auto file renaming feature in http(s)/ftp download.
  9437. * src/main.cc: Added --auto-file-renaming command-line option.
  9438. * src/OptionHandlerFactory.cc
  9439. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9440. * src/RequestGroup.{h, cc}
  9441. (shouldCancelDownloadForSafety): Rewritten
  9442. (tryAutoFileRenaming): New function.
  9443. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9444. * src/HttpResponseCommand.cc
  9445. (executeInternal): Removed the call to RequestGroupMan::
  9446. isSameFileBeingDownloaded()
  9447. * src/FtpNegotiateCommand.cc
  9448. (recvSize): Removed the call to RequestGroupMan::
  9449. isSameFileBeingDownloaded()
  9450. * test/RequestGroupTest.cc: New class.
  9451. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9453. IO.
  9454. * src/DefaultBtProgressInfoFile.cc
  9455. * src/MetaFileUtil.cc
  9456. * src/SimpleLogger.cc
  9457. * src/SegmentMan.cc
  9458. * src/Util.cc
  9459. * src/Platform.cc
  9460. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9462. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9464. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9465. Fixed the bug that prevents file allocation is not done when
  9466. dowloading multi-torrent file.
  9467. * src/AbstractDiskWriter.cc (openFile)
  9468. Increase the maximum number of -j option from 15 to 45.
  9469. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9470. Added fr.po, thanks to Charles Landemaine.
  9471. * po/fr.po
  9472. * po/LINGUAS
  9473. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9474. gcc 3.4.4 support:
  9475. * src/DefaultBtContext.cc: int32_t -> int
  9476. * src/main.cc: int -> int32_t, int32_t -> int
  9477. * src/messageDigest.h: uint32_t -> unsigned int
  9478. * src/NameResolver.h: int32_t -> int
  9479. * src/PeerConnection.cc: int -> int32_t
  9480. * src/SpeedCalc.cc: int32_t -> int
  9481. * src/TrackerUpdateCommand.h: int -> int32_t
  9482. * src/Util.cc: int32_t -> int
  9483. * src/Util.h: int32_t -> int
  9484. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  9485. * test/AnnounceListTest.cc: int -> int32_t
  9486. * test/ChunkedEncodingTest.cc: int -> int32_t
  9487. * test/DataTest.cc: int -> int32_t
  9488. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  9489. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  9490. * test/DefaultPieceStorageTest.cc: int -> int32_t
  9491. * test/FeatureConfigTest.cc: int -> int32_t
  9492. * test/MetalinkEntryTest.cc: int -> int32_t
  9493. * test/MockBtRequestFactory.h: int -> int32_t
  9494. * test/MockPieceStorage.h: int -> int32_t
  9495. * test/OptionTest.cc: int -> int32_t
  9496. * test/RequestTest.cc: int -> int32_t
  9497. * test/SegmentManTest.cc: int -> int32_t
  9498. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  9499. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9500. Move sleep functions to Util class:
  9501. * src/Util.cc
  9502. (sleep): New function.
  9503. (usleep): New function.
  9504. * src/DownloadCommand.cc: sleep -> Util::sleep
  9505. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  9506. MinGW build enhancements. The following files are added:
  9507. * src/timegm.{c,h}
  9508. Changes to support the above new files:
  9509. * configure.ac
  9510. * src/Makefile.am
  9511. * src/a2time.h
  9512. * src/Util.cc:
  9513. * src/strptime.c: Added support for %Z option.
  9514. Fixed MinGW non-blocking bug.
  9515. * src/SocketCore.cc
  9516. * src/HttpRequestCommand.cc
  9517. Miscellenous build fixes/enhancements.
  9518. * configure.ac: Added summary report.
  9519. * src/Platform.h: Tweaked #include's.
  9520. * src/a2netcompat.h: Tweaked #include's.
  9521. * src/strptime.h: Tweaked #include's.
  9522. * src/gai_strerror.c: Tweaked #include's.
  9523. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  9524. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9525. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9526. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9527. Increased the initial connection size in BitTorrent download to 40.
  9528. * src/BtRuntime.h
  9529. Added the usage message of --peer-id-prefix option.
  9530. * src/main.cc
  9531. * Release 0.11.2
  9532. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. MessageDigestHelper is introduced in order to simplify the use
  9534. of message digest. Removed repeated code.
  9535. The message digest algorithm is now specified by string, like "sha1",
  9536. "md5".
  9537. * src/messageDigest.{h, cc}
  9538. * src/MessageDigestHelper.{h, cc}: New class.
  9539. * src/DefaultPieceStorage.cc
  9540. * src/DefaultBtContext.{h, cc}
  9541. (computeFastSet): New function.
  9542. (setInfoHash): Added for unit testing.
  9543. (setNumPieces): Added for unit testing.
  9544. * src/DefaultBtInteractive.cc
  9545. * src/BtPieceMessage.cc
  9546. * src/Peer.cc
  9547. * src/Checksum.h
  9548. * src/message.h
  9549. * src/IteratableChecksumValidator.h
  9550. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9551. inside it.
  9552. * src/SegmentMan.{h, cc}
  9553. (checkIntegrity): Removed.
  9554. * src/IteratableChunkChecksumValidator.{h, cc}
  9555. * src/Util.h
  9556. (sha1Sum): Removed.
  9557. (simpleMessageDigest): Removed.
  9558. (fileChecksum): Removed.
  9559. (computeFastSet): Removed.
  9560. * src/ShaVisitor.cc
  9561. * src/ChunkChecksum.h
  9562. * src/DownloadCommand.cc
  9563. Removed messageDigest virtual functions.
  9564. * src/MultiDiskAdaptor.{h, cc}
  9565. * src/DiskAdaptor.h
  9566. * src/ByteArrayDiskWriter.h
  9567. * src/DiskWriter.h
  9568. * src/DiskAdaptorWriter.h
  9569. * src/AbstractSingleDiskAdaptor.{h, cc}
  9570. * src/AbstractDiskWriter.{h, cc}
  9571. Fixed comilation error when message digest is disabled.
  9572. * src/MetalinkEntry.{h, cc}
  9573. * src/MetalinkRequestInfo.cc
  9574. Removed srandom and random.
  9575. * src/SimpleRandomizer.h
  9576. Added size() virtual function to DiskAdaptor
  9577. * src/MultiDiskAdaptor.h
  9578. Fixed the bug that causes that files are not opened correctly in
  9579. multi-file torrent.
  9580. * src/TorrentRequestInfo.cc
  9581. * src/MultiDiskAdaptor.cc
  9582. Added SHA256 support
  9583. * src/messageDigest.cc
  9584. * src/Xml2MetalinkProcessor.cc
  9585. Show supported message digest algorithms
  9586. * src/main.cc
  9587. Updated contact info.
  9588. * src/main.cc
  9589. Applied Ross's patch
  9590. * src/a2netcompat.h
  9591. * src/main.cc
  9592. Fixed the bug that prevents a remote metalink from not being processed
  9593. even if '-o foo.metalink' is specified.
  9594. * src/MetalinkRequestInfo.cc
  9595. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Merged Dan's patch:
  9597. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9598. Use va_copy to avoid core dump on amd64:
  9599. * src/SimpleLogger.cc
  9600. Updated contact info.
  9601. * src/main.cc
  9602. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9603. digest is not available.
  9604. * src/MetalinkEntry.h
  9605. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9606. Make a2netcompat.h include a2io.h to fix compilation error:
  9607. * src/a2netcompat.h
  9608. * src/SocketCore.cc: Removed include of a2io.h
  9609. * src/Util.cc: Removed include of a2io.h
  9610. Gather time related functions to a2time.h:
  9611. * src/a2time.h: New file.
  9612. * src/DefaultPeerStorage.cc
  9613. * src/SimpleLogger.cc
  9614. * src/Util.{h, cc}
  9615. * src/SimpleRandomizer.h
  9616. * src/TimeA2.{h,cc}
  9617. * src/DownloadCommand.cc
  9618. * src/main.cc
  9619. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9620. a2netcompat.h:
  9621. * src/NameResolver.cc
  9622. Fixed compilation error without openssl:
  9623. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9624. Added default block to suppress compiler warnings:
  9625. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9626. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9627. MinGW build enhancements. The following files are added:
  9628. * src/gai_strerror.{c,h}
  9629. * src/gettimeofday.{c,h}
  9630. Changes to support the above new files:
  9631. * configure.ac
  9632. * src/Makefile.am
  9633. * src/a2netcompat.h
  9634. * src/TimeA2.cc
  9635. * src/DefaultPeerStorage.cc
  9636. * src/NameResolver.cc: removed mingw_strerror() function.
  9637. * src/SocketCore.cc: removed mingw_strerror() function.
  9638. Miscellaneous MinGW build fixes.
  9639. * src/a2io.h: Use _lseeki64() instead of lseek()
  9640. * src/common.h
  9641. * src/DefaultFileAllocator.cc
  9642. * src/GlowFileAllocator.cc
  9643. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9644. * src/NameResolver.cc
  9645. (callback): Changed int32_t to int.
  9646. (resolve): Changed int32_t to int.
  9647. * src/Platform.cc
  9648. * src/Platform.h
  9649. * test/MultiDiskWriterTest.cc
  9650. * test/PeerMessageUtilTest.cc
  9651. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9652. Other enhancements and fixes.
  9653. * src/HttpRequestCommand.cc
  9654. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9655. * src/SocketCore.cc:
  9656. (error): New function to abstract errno/WSAGetLastError().
  9657. (errorMsg): New function to abstract errno/WSAGetLastError().
  9658. (initiateSecureConnection): Added more detailed error reporting.
  9659. * src/SocketCore.h: Added private variable blocking, to allow
  9660. proper handling of OpenSSL psuedo-errors.
  9661. * src/message.h
  9662. (EX_SSL_INIT_FAILURE)
  9663. (EX_SSL_IO_ERROR)
  9664. (EX_SSL_PROTOCOL_ERROR)
  9665. (EX_SSL_UNKNOWN_ERROR)
  9666. (EX_SSL_CONNECT_ERROR)
  9667. (EX_SOCKET_BLOCKING)
  9668. (EX_SOCKET_NONBLOCKING)
  9669. (EX_SOCKET_UNKNOWN_ERROR)
  9670. * src/Util.cc
  9671. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9672. reserved name.
  9673. (httpGMT): Fixed typo.
  9674. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9675. Merged Ross's win32 patch(manually)
  9676. In the course of merging, following files are added.
  9677. * src/strptime.{h,c}
  9678. * src/libgen.{h,c}
  9679. * src/inet_aton.{h,c}
  9680. * src/Platform.{h,cc}
  9681. * src/localtime_r.{h,c}
  9682. * src/getaddrinfo.{h,c}
  9683. I've gethered network related things, and put them to following file:
  9684. * src/a2netcompat.h
  9685. Also io related things are put to following file:
  9686. * src/a2io.h
  9687. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9688. * src/message.h
  9689. (MSG_ALLOCATION_COMPLETED)
  9690. (EX_TOO_LARGE_FILE)
  9691. (EX_SIZE_MISMATCH)
  9692. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9693. (EX_INVALID_CHUNK_CHECKSUM)
  9694. (EX_INVALID_RANGE_HEADER)
  9695. * src/FileAllocationCommand.cc
  9696. * src/HttpResponse.cc
  9697. * src/RequestGroup.cc
  9698. * src/MultiDiskAdaptor.cc
  9699. * src/OptionHandlerImpl.h
  9700. * src/HttpResponseCommand.cc
  9701. * src/FtpNegotiateCommand.cc
  9702. * src/IteratableChecksumValidator.cc
  9703. * src/SegmentMan.cc
  9704. * src/ChunkChecksumValidator.cc
  9705. Added Randomizer::getRandomNumber(long int)
  9706. * src/Randomizer.h (getRandomNumber)
  9707. * src/SimpleRandomizer.h (getRandomNumber)
  9708. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9709. * src/Util.cc (randomAlpha): Use this new function.
  9710. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9711. Converted int's to in32_t. long long int's are also converted to
  9712. int64_t
  9713. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9714. Fixed the bug that prevents cookies from being sent to the server
  9715. if the domain of cookie is FQDN and starts with ".".
  9716. * src/Cookie.cc (match)
  9717. To add the ability to change peer id.
  9718. * src/DefaultBtContext.h
  9719. (_peerIdPrefix): New variable
  9720. (setPeerIdPrefix): New function.
  9721. * src/torrentRequestInfo.cc
  9722. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9723. DefaultBtContext.
  9724. * src/main.cc (main): Added peer-id-prefix command-line option.
  9725. The usage message is not added yet.
  9726. * src/DefaultBtContext.cc
  9727. (generatePeerId): Use _peerIdPrefix.
  9728. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9729. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9730. Fixed the bug that prevents filename in content-disposition from
  9731. being retrieved when filename is not quoted.
  9732. * src/Util.cc (getContentDispositionFilename)
  9733. Fixed the bug that causes infinate loop and memory leak when file open
  9734. operation failed.
  9735. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9736. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9737. Fixed the bug that causes segfault when all URIs specified are
  9738. unsupported.
  9739. * src/RequestGroupMan.cc (getInitialCommands)
  9740. Check if RequestGroup::createNextCommand() returns empty list of
  9741. commands.
  9742. * src/RequestGroup.cc (createNextCommand)
  9743. Change log level from info to error so that users can notice that
  9744. an error occurred.
  9745. Fixed the bug that causes segfault when a zero-sized file is
  9746. downloaded.
  9747. * src/BitfieldMan.cc (isAllBitSet)
  9748. Return true if bitfieldLength is 0.
  9749. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. * src/main.cc
  9751. (showUsage): Added 3 usage examples for metalink download.
  9752. Replace MetalinkChunkChecksum with ChunkChecksum.
  9753. * src/MetalinkChunkChecksum.h: Removed.
  9754. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9755. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9756. * src/Xml2MetalinkProcessor.cc
  9757. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9758. * src/MetalinkRequestInfo.cc (execute)
  9759. * Release 0.11.1
  9760. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9761. Reads URIs from stdin when "-i -" is specified.
  9762. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9763. * src/UriListParser.h, src/UriListParser.cc: New class.
  9764. * src/StreamUriListParser.h: New class.
  9765. * src/FileUriListParser.h: New class.
  9766. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9767. instead of UriFileListParser.
  9768. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Made console readout more readable.
  9770. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9771. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Fix the bug that causes -s option not to work.
  9773. * src/main.cc (main)
  9774. * src/a2algo.h: New file.
  9775. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9776. Create directory structure specified in metalink file.
  9777. * src/RequestGroup.h, src/RequestGroup.cc
  9778. (initAndOpenFile): Create a directory to store files if it does not
  9779. exist.
  9780. (getDir): New function.
  9781. Added ETA and download speed for an individual file to readout.
  9782. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9783. * src/RequestGroup.h
  9784. (calculateDownloadSpeed): New function.
  9785. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9786. Made -S option work with metalink file and provided selective download
  9787. to metalink.
  9788. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9789. (filename): Removed.
  9790. (file): New variable.
  9791. (size): Removed.
  9792. (operator=): Updated.
  9793. (getPath): New function.
  9794. (getLength): New function.
  9795. (toFileEntry): New function.
  9796. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9797. (execute): Use toStream.
  9798. (showFileEntry): Removed.
  9799. * src/MetalinkRequestInfo.h
  9800. (targetFiles): New variable.
  9801. (setTargetFiles): New variable.
  9802. * src/MetalinkRequestInfo.cc
  9803. (execute): Added the ability to print file information included in
  9804. a metalink file.
  9805. Added selective download mode to metalink.
  9806. * src/main.cc
  9807. (showUsage): Updated to denote that -S and --select-file options are
  9808. applicable to metalink.
  9809. * src/FileEntry.h
  9810. (operator=): New function.
  9811. (getBasename): New function.
  9812. (getDirname): New function.
  9813. * src/Util.h, src/Util.cc
  9814. (toStream): New function.
  9815. * src/Xml2MetalinkProcessor.cc: Updated.
  9816. Made aria2 work with metalink with directory structure.
  9817. * src/File.h, src/File.cc
  9818. (getBasename): New function.
  9819. (getDirname): New function.
  9820. * src/RequestGroup.h, src/RequestGroup.cc
  9821. (_topDir): New variable.
  9822. (setTopDir): New function.
  9823. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9824. Rewrote HTTP header parsing with stringstream.
  9825. * src/HttpConnection.h, src/HttpConnection.cc
  9826. (HttpRequestEntry): New class.
  9827. (headerBuf): Removed.
  9828. (headerBufLength): Removed.
  9829. (outstandingHttpRequests): Now its element type is
  9830. HttpRequestEntryHandle.
  9831. (findEndOfHeader): Removed.
  9832. (receiveResponse): Rewritten.
  9833. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9834. Updated doc for -j option to notice that it should be used with -i
  9835. option.
  9836. * src/main.cc (showUsage)
  9837. Removed unused classes.
  9838. * src/RequestInfo.h
  9839. (FileInfo): Removed.
  9840. (checksum): Removed.
  9841. (fileInfo): Removed.
  9842. (setChecksum): Removed.
  9843. (getChecksum): Removed.
  9844. (getFileInfo): Removed.
  9845. Use ISO units.
  9846. * src/ConsoleDownloadEngine.cc
  9847. * src/TorrentConsoleDownloadEngine.cc
  9848. * src/Util.cc (abbrevSize)
  9849. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Added the default listening ports to the help message.
  9851. * src/main.cc (showUsage)
  9852. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9853. Reduce the number of calls to gettimeofday to lower CPU load.
  9854. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9855. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9856. * src/Peer.h (calculateUploadSpeed): New function.
  9857. (calculateDownloadSpeed): New function.
  9858. * src/DefaultPeerStorage.cc
  9859. (CalculateStat): Added _now variable.
  9860. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9861. and Peer::calculateUploadSpeed(const struct timeval&)
  9862. Drop connection if no request or piece message is exchanged in
  9863. a certain interval.
  9864. * src/DefaultBtInteractive.h
  9865. (btRuntime): New variable.
  9866. (inactiveCheckPoint): New variable.
  9867. (checkActiveInteraction): New function.
  9868. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  9869. request or piece message is received.
  9870. (checkActiveInteraction): New function.
  9871. (doInteractionProcessing): Call checkActiveInteraction.
  9872. Fixed the bug that causes remote Metalink and Torrent files are not
  9873. processed.
  9874. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  9875. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Changed format of log file.
  9877. * src/SimpleLogger.cc
  9878. * Release 0.11.0
  9879. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. * src/AbstractCommand.cc
  9881. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  9882. MSG_MAX_TRY from error to info.
  9883. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  9884. * src/message.h
  9885. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  9886. (MSG_DOWNLOAD_ABORTED): Added %s.
  9887. (MSG_RESTARTING_DOWNLOAD): Added %s.
  9888. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  9889. * src/PeerAbstractCommand.cc
  9890. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  9891. * src/Request.h
  9892. (cookieBox): Made ShardHandle.
  9893. * src/RequestGroup.h, src/RequestGroup.cc
  9894. (createNextCommandWithAdj): New function.
  9895. * src/FileAllocationCommand.cc
  9896. (executeInternal): Use createNextCommandWithAdj().
  9897. * src/CheckIntegrityCommand.cc
  9898. (executeInternal): Use createNextCommandWithAdj().
  9899. Added --load-cookies command-option.
  9900. * src/OptionHandlerFactory.cc
  9901. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  9902. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  9903. Now aria2 can handle cookie's expiration date.
  9904. * src/Cookie.h (expires): Changed its type to time_t.
  9905. * src/main.cc: Added --load-cookies command-line option.
  9906. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  9907. * src/Util.h, src/Util.cc (httpGMT): New function.
  9908. * src/Request.cc (Request): Initialize cookieBox using
  9909. CookieBoxFactory.
  9910. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  9911. * src/CookieParser.h, src/CookieParser.cc: New class.
  9912. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  9913. * src/HttpResponseCommand.cc
  9914. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  9915. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  9916. download.
  9917. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9918. Added -j command-line option.
  9919. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9920. * src/main.cc
  9921. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  9922. Rewritten using stringstream.
  9923. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  9924. Rewritten using stringstream.
  9925. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9926. Make download size shown in MB, KB.
  9927. * src/ConsoleDownloadEngine.h (sendStatistics)
  9928. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  9929. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9930. Accept incoming connections if download rate is low.
  9931. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  9932. (_lowestSpeedLimit): New variable.
  9933. (setLowestSpeedLimit): New function.
  9934. (execute): Accept incoming connections if download rate is low.
  9935. MAX_PEERS is ignored in this case.
  9936. Disable PREF_OUT in multiple concurrent download:
  9937. * src/RequestGroup.h, src/RequestGroup.cc
  9938. (setUserDefinedFilename): New function.
  9939. * src/DownloadEngineFactory.cc
  9940. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  9941. concurrent download.
  9942. * src/DefaultSegmentManFactory.cc
  9943. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  9944. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9945. RequestGroup::getNextCommand() was renamed to createNextCommand().
  9946. Added its overloaded method.
  9947. * src/RequestGroup.h
  9948. (_numConcurrentCommand): New variable.
  9949. (setNumConcurrentCommand): New function.
  9950. * src/RequestGroup.cc
  9951. Abort download if same file is being downloaded concurrently.
  9952. * src/RequestGroup.h, src/RequestGroupMan.cc
  9953. (isSameFileBeingDownloaded): New function.
  9954. * src/HttpResponseCommand.cc (executeInternal)
  9955. * src/FtpNegotiateCommand.cc (recvSize)
  9956. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  9957. * main.cc: Added help message for -i option.
  9958. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9959. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  9960. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  9961. * src/MetalinkEntry.h
  9962. (checksum): Changed to ChecksumHandle
  9963. * src/MetalinkRequestInfo.cc
  9964. (checksum): Changed to ChecksumHandle
  9965. * src/File.cc
  9966. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  9967. * src/common.h
  9968. (DIR_OPEN_MODE): New definition
  9969. * src/RequestGroup.cc
  9970. (prepareForNextAction): Added an argument.
  9971. * src/message.h
  9972. (MSG_GOOD_CHECKSUM): New definition
  9973. (MSG_BAD_CHECKSUM): New definition
  9974. * src/HttpResponseCommand.cc
  9975. (handleDefaultEncoding): Continue download sequence in new
  9976. non-segmented download.
  9977. * src/FileAllocationEntry.h
  9978. (_nextDownloadCommand): New variable.
  9979. * src/DownloadCommand.cc
  9980. (prepareForNextSegment): Create ChecksumCommand if checksum is
  9981. available.
  9982. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  9983. * src/IteratableChecksumValidator.h,
  9984. src/IteratableChecksumValidator.cc: New class.
  9985. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  9986. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9987. Change file mode to 666:
  9988. * src/common.h (OPEN_MODE): New definition.
  9989. * src/File.cc
  9990. * src/Util.cc
  9991. * src/Directry.cc
  9992. * src/AbstractDiskWriter.cc
  9993. Change the level of log message "download aborted" to debug:
  9994. * src/PeerAbstractCommand.cc (execute)
  9995. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  9996. * src/TrackerWatcherCommand.cc
  9997. (createCommand): Sleep some seconds after request failed.
  9998. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  9999. then abort tracker request.
  10000. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10001. * Added the simultaneous download feature.
  10002. * src/main.cc: Print "Exception caught: " when exception is caught.
  10003. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10004. * src/ActivePeerConnectionCommand.cc
  10005. * src/PeerInteractionCommand.cc
  10006. * src/BtRuntime.h
  10007. (cuidCounter): Removed.
  10008. (getNewCuid): Removed.
  10009. * src/DownloadEngineFactory.cc
  10010. * src/PeerListenCommand.cc
  10011. * src/TrackerUpdateCommand.cc
  10012. * src/PeerInitiateConnectionCommand.cc
  10013. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. * src/PeerAbstractCommand.cc
  10015. (onAbort): Call PeerStorage::returnPeer()
  10016. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10017. (incomingPeers): New variable.
  10018. (addIncomingPeer): New function.
  10019. (returnPeer): New function.
  10020. (onErasingPeer): New function.
  10021. (addPeer): push_back -> push_front
  10022. (getActivePeers): Rewritten.
  10023. (calculateStat): Rewritten.
  10024. * src/PeerStorage.h
  10025. (TransferStat::copy): New function.
  10026. (TransferStat::TransferStat): New function.
  10027. (TransferStat::operator=): New function.
  10028. (addIncomingPeer): New function.
  10029. (returnPeer): New function.
  10030. * src/PeerListenCommand.cc
  10031. (execute): Use PeerStorage::addIncomingPeer() instead of
  10032. Peer::addPeer().
  10033. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10034. Connect to a peer actively when download speed is lower than specified
  10035. speed in torrent download:
  10036. * src/ActivePeerConnectionCommand.h: New class.
  10037. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10038. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10039. * src/main.cc: Fixed the bug that prevents download if .netrc
  10040. doesn't exist.
  10041. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10042. To cache resolved hostname:
  10043. * src/AbstractCommand.h, src/AbstractCommand.cc
  10044. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10045. Added dns cache.
  10046. * src/FtpInitiateConnectionCommand.cc
  10047. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10048. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10049. NameResolver working without ares.
  10050. * src/TorrentRequestInfo.cc
  10051. (execute): Don't cache dns in torrent download.
  10052. * src/HttpInitiateConnectionCommand.cc
  10053. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10054. * src/DNSCache.h: New class.
  10055. * src/UrlRequestInfo.cc
  10056. (execute): Use dns cache.
  10057. In http request, suppress port number in http request header if port
  10058. is 80 or 443:
  10059. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10060. request header if port is 80 or 443.
  10061. (createProxyRequest): Allways send port number.
  10062. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. To add the command-line option which disables netrc support:
  10064. * src/OptionHandlerFactory.cc
  10065. (createOptionHandlers): Added PREF_NO_NETRC.
  10066. * src/main.cc: Added -n option.
  10067. * src/prefs.h (PREF_NO_NETRC): New definition.
  10068. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10069. V_TRUE.
  10070. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10071. is V_FALSE. This may get configurable in the future release.
  10072. To clear peer's error status by time basis:
  10073. * src/PeerAbstractCommand.cc
  10074. (onAbort): Call Peer::startBadCondition().
  10075. * src/Peer.h, src/Peer.cc
  10076. (error): Removed.
  10077. (_badConditionStartTime): New variable.
  10078. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10079. (startBadCondition): New function.
  10080. (isGood): New function.
  10081. * src/DefaultPeerStorage.cc
  10082. (addPeer): Use Peer::isGood().
  10083. (FindFinePeer): Use Peer::isGood().
  10084. Always include port number in http request header:
  10085. * src/HttpRequest.cc (getHostText): Always include port number in
  10086. http request header.
  10087. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10088. To the ability to read options from a config file:
  10089. * src/main.cc: Command-line parameter validation is delegated to
  10090. OptionHandler class.
  10091. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10092. * src/Option.h, src/Option.cc (clear): New function.
  10093. * src/OptionParser.h, src/OptionParser.cc: New class.
  10094. * src/OptionHandler.h: New class.
  10095. * src/NameMatchOptionHandler.h: New class.
  10096. * src/OptionHandlerImpl.h: New classes.
  10097. * src/prefs.h: '_' -> '-'
  10098. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10099. (FTP_PASV): New definition.
  10100. * src/Util.h, src/Util.cc (getRealSize): New function.
  10101. To disable netrc support if .netrc file does not have correct
  10102. permissions:
  10103. * src/File.h, src/File.cc (mode): New function.
  10104. To prevent confidential information to be logged:
  10105. * src/HttpConnection.h, src/HttpConnection.cc
  10106. (eraseConfidentialInfo): New function.
  10107. (sendRequest): Call eraseConfidentialInfo().
  10108. (sendProxyRequest): Call eraseConfidentialInfo().
  10109. * src/main.cc: Validate permissions of .netrc file.
  10110. To add --user-agent command-line option:
  10111. * src/main.cc: Added new command line option: --user-agent
  10112. * src/prefs.h (PREF_USER_AGENT): New definition.
  10113. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10114. parameter to HttpRequest object.
  10115. * src/AbstractProxyRequestCommand.cc
  10116. (executeInternal): Set user-agent option parameter to HttpRequest
  10117. object.
  10118. Marged the patches from Dan Fandrich.
  10119. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. Use filename and size from Metalink file instead of sending HEAD
  10121. request:
  10122. * src/UrlRequestInfo.h
  10123. (_filename): New variable.
  10124. (_totalLength): New variable.
  10125. (setTotalLength): New variable.
  10126. (setFilename): New variable.
  10127. * src/MetalinkRequestInfo.cc
  10128. (execute): Set filename and size to UrlRequestInfo
  10129. * src/UrlRequestInfo.cc
  10130. (execute): Use filename and size from Metalink instead of seding
  10131. HEAD request to servers.
  10132. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10133. To add the ability to resume downloading a partially downloaded file
  10134. which is downloaded from the beginning:
  10135. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10136. takes this role.
  10137. * src/main.cc: Added -c option.
  10138. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10139. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10140. * src/prefs.h (PREF_CONTINUE): New definition.
  10141. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10142. * src/DefaultDiskWriter.cc
  10143. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10144. * src/AbstractDiskWriter.h
  10145. (glowFileAllocator): New variable.
  10146. * src/AbstractDiskWriter.cc
  10147. (openExistingFile): Now preallocate file space from the end of the
  10148. existing file if totalLength argument is specified and grater than 0.
  10149. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10150. to download exists in local, continue the download of the file.
  10151. --allow-overwrite=true is assumed in this context.
  10152. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10153. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10154. Throw exception if --check-integrity=true is specified but chunk
  10155. checksums are not provided:
  10156. * src/UrlRequestInfo.cc
  10157. Do not print URLs to stdout:
  10158. * src/UrlRequestInfo.cc
  10159. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10160. * src/Request.h: Use AuthResolver to get authentication information.
  10161. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10162. set to RequestFactory object.
  10163. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10164. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10165. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10166. create Request object.
  10167. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10168. To integrate Netrc into exsiting classes:
  10169. * src/Request.h
  10170. (_userDefinedAuthConfig): New variable.
  10171. (findNetrcAuthenticator): New function.
  10172. (segment): Removed.
  10173. (setUserDefinedAuthConfig): New function.
  10174. (resolveHttpAuthConfigItem): New function.
  10175. (resolveFtpAuthConfigItem): New function.
  10176. (resolveHttpProxyAuthConfigItem): New function.
  10177. * src/HttpRequest.h
  10178. (authConfig): Removed.
  10179. (proxyAuthConfig): Removed.
  10180. (setAuthConfig): Removed.
  10181. (setProxyAuthConfig): Removed.
  10182. * src/UrlRequest.h
  10183. (getHeadResult): Added a parameter: authConfigHandle
  10184. * src/common.h
  10185. (SingletonHolder.h): New include.
  10186. * src/main.cc
  10187. (Netrc.h): New include.
  10188. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10189. Added initial value of PREF_NETRC_PATH.
  10190. Added the initialization of netrc.
  10191. * src/AuthConfig.h: New class.
  10192. * src/prefs.h
  10193. (PREF_NETRC_PATH): New definition.
  10194. * src/HttpAuthConfig.h: Removed.
  10195. * src/Netrc.cc
  10196. (getRequiredNextToken): New function.
  10197. (skipMacdef): New function.
  10198. (parse): Rewritten.
  10199. * src/Netrc.h
  10200. (getRequiredNextToken): New function.
  10201. (skipMacdef): New function.
  10202. * src/Util.h, src/Util.cc
  10203. (getHomeDir): New function.
  10204. * src/TrackerWatcherComand.cc
  10205. (createRequestCommand): Use AuthConfig.
  10206. * src/FtpConnection.cc
  10207. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10208. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10209. * src/Request.cc
  10210. (findNetrcAuthenticator): New function.
  10211. (resolveHttpAuthConfigItem): New function.
  10212. (resolveFtpAuthConfigItem): New function.
  10213. (resolveHttpProxyAuthConfigItem): New function.
  10214. * src/UrlRequestInfo.cc: Use AuthConfig.
  10215. * src/HttpRequest.cc
  10216. (createRequest): Use authConfig.
  10217. (getProxyAuthString): Use authConfig.
  10218. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10219. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10220. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10221. To reduce overhead to find commands whose socket is either
  10222. readable or writable in the download engine loop:
  10223. * src/Command.h, src/Command.cc
  10224. (STATUS): New enum.
  10225. (status): New variable.
  10226. (statusMatch): New function.
  10227. (setStatusActive): New function.
  10228. (setStatusInactive): New function.
  10229. * src/DownloadEngine.h, src/DownloadEngine.cc
  10230. (executeCommand): New function.
  10231. (run): Simplified.
  10232. (waitData): Call Command::setStatusActive() when command's socket is
  10233. readable or writable.
  10234. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10235. To handle Segment as SegmentHandle:
  10236. * src/AbstractCommand.cc (execute): Rewritten.
  10237. * src/SegmentMan.h: Segment -> SegmentHandle
  10238. Introducded HttpResponse class, HttpRequest class to improve code
  10239. extensiveness and make it clear:
  10240. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10241. HttpResponse class.
  10242. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10243. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10244. * src/HttpConnection.cc: Contruction of http request were moved to
  10245. HttpRequest class.
  10246. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10247. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10248. * src/HttpAuthConfig.h: New class.
  10249. * src/Range.h: New class.
  10250. To make FtpTunnel{Request, Response}Command and
  10251. HttpProxy{Request, Response}Command derived from
  10252. AbstractProxy{Request, Response}Command:
  10253. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10254. Derived from AbstractProxyRequestCommand class.
  10255. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10256. Derived from AbstractProxyResponseCommand class.
  10257. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10258. Derived from AbstractProxyRequestCommand class.
  10259. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10260. Derived from AbstractProxyResponseCommand class.
  10261. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10262. : New class.
  10263. * src/AbstractProxyResponseCommand.h,
  10264. src/AbstractProxyResponseCommand.cc: New class.
  10265. To add netrc support:
  10266. * src/Netrc.h, src/Netrc.cc: New class.
  10267. * src/Util.h, src/Util.cc (split): New function.
  10268. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10269. "Content-Range" header instead of "Range" header.
  10270. * src/HttpHeader.h
  10271. (getStatus): Removed.
  10272. (setStatus): Removed.
  10273. * src/Segment.h
  10274. (getPositionToWrite): New function.
  10275. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10276. * src/HttpHeader.h
  10277. (Range.h): New include.
  10278. (status): New variable.
  10279. (HttpHeader): Initialized status with 0.
  10280. (getStatus): New function.
  10281. (setStatus): New function.
  10282. (getRange): New function.
  10283. (HttpHeaderHandle): New function.
  10284. * src/HttpHeader.cc
  10285. (getRange): New function.
  10286. * src/Request.h
  10287. (RequestWeakHandle): New definition.
  10288. * src/HttpConnection.h
  10289. (HttpConnectionHandle): New type definition.
  10290. * src/HttpConnection.cc
  10291. (receiveResponse): Set HTTP status to headers.
  10292. * src/main.cc
  10293. (showUsage): Fixed typo.
  10294. * src/Segment.h
  10295. (SegmentHandle): New type definition.
  10296. * src/BitfieldMan.h
  10297. (getMissingUnusedLength): New function.
  10298. * src/BitfieldMan.cc
  10299. (getMissingUnusedLength): New function.
  10300. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10301. To fix static initialization order problem:
  10302. * src/BitfieldManFactory.h
  10303. (defaultRandomizer): Removed.
  10304. (factory): New variable.
  10305. (getNewFactory): Removed.
  10306. (getFactoryInstance): New function.
  10307. (setDefaultRandomizer): Rewritten.
  10308. (getDefaultRandomizer): Rewritten.
  10309. * src/BitfieldManFactory.cc
  10310. (defaultRandomizer): Removed.
  10311. (factory): Initialized to 0.
  10312. (BitfieldManFactory): Initialized randomizer to 0.
  10313. * src/DefaultPieceStorage.cc
  10314. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10315. * src/Peer.cc
  10316. (Peer): getNewFactory() -> getFactoryInstance()
  10317. * src/SegmentMan.cc
  10318. (initBitfield): getNewFactory() -> getFactoryInstance()
  10319. * src/Piece.cc
  10320. (Piece): getNewFactory() -> getFactoryInstance()
  10321. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10322. To fix the bug that causes crash on Max OS X:
  10323. * src/SimpleRandomizer.h
  10324. (getInstance): Create new instance if the static variable is null.
  10325. * src/SimpleRandomizer.cc
  10326. (randomizer): Initialized to 0.
  10327. * src/BitfieldManFactory.h
  10328. (getNewFactory): Removed the call to setRandomizer().
  10329. To fix the miscalculation of the range of checksum:
  10330. * src/BitfieldMan.h
  10331. (isBitSetOffsetRange): New function.
  10332. * src/BitfieldMan.cc
  10333. (isBitSetOffsetRange): New function.
  10334. * src/SegmentMan.cc
  10335. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10336. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10337. * Release 0.10.1
  10338. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10339. To lower CPU usage in BitTorrent download when --max-upload-limit
  10340. command-line option specified:
  10341. * src/DefaultBtMessageDispatcher.cc
  10342. (sendMessages): Calculate uploading speed only when current message
  10343. is uploading data and is not sent yet.
  10344. * src/DefaultPeerStorage.h
  10345. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10346. * src/HttpResponseCommand.cc
  10347. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10348. This fixes compile error in Soralis 10.
  10349. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10350. To fix segfault in Metalink download:
  10351. * src/UrlRequestInfo.h
  10352. (filename): Removed.
  10353. (totalLength): Removed.
  10354. (setTotalLength): Removed.
  10355. (setFilename): Removed.
  10356. * src/MetalinkRequestInfo.cc
  10357. (execute): Do not set filename and totalLength to reqInfo.
  10358. Set chunk checksum to reqInfo if it is not null.
  10359. * src/HttpResponseCommand.cc
  10360. (executeInternal): Fixed filename in log.
  10361. (handleDefaultEncoding): Removed the call to initBitfield() and
  10362. markAllPiecesDone().
  10363. (handleOtherEncoding): Added HEAD method handling.
  10364. * src/FtpNegotiateCommand.cc
  10365. (executeInternal): Added SEQ_HEAD_OK handling.
  10366. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10367. return false.
  10368. * src/FtpNegotiateCommand.h
  10369. (SEQ_HEAD_OK): New definition.
  10370. * src/SegmentMan.cc
  10371. (initBitfield): Delete bitfield.
  10372. (isChunkChecksumValidationReady): Fixed the condition.
  10373. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10374. works fine.
  10375. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. * src/Xml2MetalinkProcessor.h
  10377. (xpathExists): New function.
  10378. * src/Xml2MetalinkProcessor.cc
  10379. (xpathExists): New function.
  10380. Not to send HEAD request if filename and size are available in Metalink
  10381. file:
  10382. * src/UrlRequestInfo.h
  10383. (filename): New variable.
  10384. (totalLength): New variable.
  10385. (setTotalLength): New function.
  10386. (setFilename): New function.
  10387. * src/MetalinkRequestInfo.cc
  10388. (execute): Set filename and size to UrlRequestInfo.
  10389. * src/MetalinkEntry.cc
  10390. (MetalinkEntry): Initialize size with 0.
  10391. * src/UrlRequestInfo.cc
  10392. (execute): Set filename and size to SegmentMan.
  10393. Not to download rest of the files after selected files are downloaded
  10394. in BitTorrent:
  10395. * src/PieceStorage.h
  10396. (allDownloadFinished): New function.
  10397. * src/DefaultBtAnnounce.cc
  10398. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10399. downloadFinished.
  10400. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10401. * src/DefaultPieceStorage.cc
  10402. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10403. Commented out the call to finishSelectiveDownloadingMode().
  10404. (downloadFinished): Call isFilteredAllBitSet() instead of
  10405. isAllBitSet().
  10406. (allDownloadFinished): New function.
  10407. * src/DefaultBtInteractive.cc
  10408. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10409. downloadFinished().
  10410. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10411. * src/TorrentDownloadEngine.cc
  10412. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10413. * src/BitfieldMan.h
  10414. (isFilteredAllBitSet): New function.
  10415. * src/ShareRatioSeedCriteria.h
  10416. (PieceStorage.h): New include.
  10417. (pieceStorage): New variable.
  10418. (evaluate):
  10419. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10420. * src/BitfieldMan.cc
  10421. (isFilteredAllBitSet): New function.
  10422. (isAllBitSet): Filter is not took into account.
  10423. Rename --force-truncate as --allow-overwrite:
  10424. * src/TorrentRequestInfo.cc
  10425. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10426. * src/main.cc
  10427. (showUsage): --force-truncate -> --allow-overwrite
  10428. * src/message.h
  10429. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10430. * src/prefs.h
  10431. (PREF_FORCE_TRUNCATE): Removed.
  10432. (PREF_ALLOW_OVERWRITE): New definition.
  10433. * src/SegmentMan.cc
  10434. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10435. * src/MetalinkRequestInfo.cc
  10436. (execute): Queueing message are now logged in info level.
  10437. * src/common.h
  10438. (LONG_LONG_MAX): Removed.
  10439. (LONG_LONG_MIN): Removed.
  10440. * src/HttpResponseCommand.cc
  10441. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10442. * src/FtpNegotiateCommand.cc
  10443. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10444. * src/main.cc
  10445. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10446. command-line option.
  10447. (main): Added --check-integriy and --realtime-chunk-checksum
  10448. command-line option.
  10449. --force-truncate -> --allow-overwrite
  10450. Set initial value of --check-integrity option to false.
  10451. Don't show usage when error occurs while persing command-line options.
  10452. Removed deprecated --upload-limit option.
  10453. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10454. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10455. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10456. * src/BtAllowedFastMessage.cc:
  10457. * src/BtBitfieldMessage.cc
  10458. * src/BtCancelMessage.cc
  10459. * src/BtChokeMessage.cc
  10460. * src/BtHaveAllMessage.cc
  10461. * src/BtHaveMessage.cc
  10462. * src/BtHaveNoneMessage.cc
  10463. * src/BtInterestedMessage.cc
  10464. * src/BtNotInterestedMessage.cc
  10465. * src/BtPieceMessage.cc
  10466. * src/BtPortMessage.cc
  10467. * src/BtRejectMessage.cc
  10468. * src/BtRequestMessage.cc
  10469. * src/BtSuggestPieceMessage.cc
  10470. * src/BtUnchokeMessage.cc
  10471. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10472. files are affected.
  10473. * src/ChunkChecksumValidator.cc
  10474. * src/SegmentMan.cc
  10475. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. To add chunk checksum validation:
  10477. * src/MetalinkEntry.h
  10478. (MetalinkChunkChecksum.h): New include.
  10479. (chunkChecksum): New variable.
  10480. * src/Request.h
  10481. (method): New variable.
  10482. (setMethod): New function.
  10483. (getMethod): New function.
  10484. (METHOD_GET): New static constant.
  10485. (METHOD_HEAD): New static constant.
  10486. * src/Xml2MetalinkProcessor.h
  10487. (getPieceHash): New function.
  10488. * src/PieceStorage.h
  10489. (markAllPiecesDone): New function.
  10490. (checkIntegrity): New function.
  10491. * src/FileAllocator.h
  10492. (NullFileAllocationMonitor.h): New include.
  10493. (FileAllocator): Initialize fileAllocationMonitor with new
  10494. NullFileAllocationMonitor().
  10495. * src/MultiDiskAdaptor.h
  10496. (messageDigest.h): Remove include.
  10497. (ctx): Removed.
  10498. (hashUpdate): Added ctx.
  10499. (MultiDiskAdaptor): Removed ctx.
  10500. (sha1Sum): Renamed as messageDigest.
  10501. (messageDigest): New function.
  10502. * src/UrlRequestInfo.h
  10503. (HeadResult): New class.
  10504. (digestAlgo): New variable.
  10505. (chunkChecksumLength): New variable.
  10506. (chunkChecksums): New variable.
  10507. (getHeadResult): New function.
  10508. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  10509. (setDigestAlgo): New function.
  10510. (setChunkChecksumLength): New function.
  10511. (setChunkChecksums): New function.
  10512. * src/DefaultPieceStorage.cc
  10513. (DiskAdaptorWriter.h): New include.
  10514. (ChunkChecksumValidator.h): New include.
  10515. (markAllPiecesDone): New function.
  10516. (checkIntegrity): New function.
  10517. * src/DefaultBtContext.h
  10518. (getPieceHashes): New function.
  10519. * src/TorrentRequestInfo.cc
  10520. (execute): Try to validate chunk checksum if file already exists and
  10521. .aria2 file doesn't there and user allows aria2 to overwrite it.
  10522. * src/messageDigest.h
  10523. (~MessageDigestContext): Added digestFree().
  10524. * src/MetalinkRequestInfo.cc
  10525. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10526. * src/DiskAdaptor.h
  10527. (messageDigest.h): New include.
  10528. (sha1Sum): Renamed as messageDigest.
  10529. (messageDigest): New function.
  10530. * src/DownloadCommand.h
  10531. (PeerStat.h): New include.
  10532. (maxDownloadSpeedLimit): New variable.
  10533. (startupIdleTime): New variable.
  10534. (lowestDownloadSpeedLimit): New variable.
  10535. (peerStat): New variable.
  10536. (setMaxDownloadSpeedLimit): New function.
  10537. (setStartupIdleTime): New function.
  10538. (setLowestDownloadSPeedLimit): New function.
  10539. * src/BtContext.h
  10540. (getPieceHashes): New function.
  10541. * src/main.cc
  10542. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10543. option to true for testing purpose.
  10544. * src/BtPieceMessage.cc
  10545. (checkPieceHash): Use messageDigest
  10546. * src/DownloadEngine.cc
  10547. (SetDescriptor): Removed.
  10548. (AccumulateActiveCommand): Removed.
  10549. (waitData): Rewritten.
  10550. (updateFdSet): Rewritten.
  10551. * src/MultiDiskAdaptor.cc
  10552. (hashUpdate): Added ctx.
  10553. (sha1Sum): Renamed as messageDigest.
  10554. (messageDigest): New function.
  10555. * src/BitfieldMan.h
  10556. (isBitRangeSet): New function.
  10557. (unsetBitRange): New function.
  10558. * src/ByteArrayDiskWriter.h
  10559. (sha1Sum): Renamed as messageDigest.
  10560. (messageDigest): New function.
  10561. * src/ConsoleDownloadEngine.cc
  10562. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10563. * src/DiskWriter.h
  10564. (messageDigest.h): New include.
  10565. (sha1Sum): Renamed as messageDigest.
  10566. (messageDigest): New function.
  10567. * src/ChunkChecksumValidator.h: New class.
  10568. * src/DiskAdaptorWriter.h: New class.
  10569. * src/prefs.h
  10570. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10571. (PREF_CHECK_INTEGRITY): New definition.
  10572. * src/HttpResponseCommand.cc
  10573. (handleDefaultEncoding): Added method "HEAD" handling.
  10574. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10575. (handleOtherEncoding):
  10576. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10577. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10578. startupIdleTime, lowestDownloadSpeedLimit to command.
  10579. * src/SegmentMan.h
  10580. (getSegmentEntryByIndex): New function.
  10581. (getSegmentEntryByCuid): New function.
  10582. (getSegmentEntryIteratorByCuid): New function.
  10583. (diskWriter): DiskWriter -> DiskWriterHandle
  10584. (pieceHashes): New variable.
  10585. (chunkHashLength): New variable.
  10586. (digestAlgo): New variable.
  10587. (FindPeerStat): Removed.
  10588. (getPeerStat): Rewritten.
  10589. (markAllPiecesDone): New function.
  10590. (checkIntegrity): New function.
  10591. (tryChunkChecksumValidation): New function.
  10592. (isChunkChecksumValidationReady): New function.
  10593. * src/BitfieldMan.cc
  10594. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10595. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10596. blocks to 0.
  10597. (isBitRangeSet): New function.
  10598. (unsetBitRange): New function.
  10599. * src/FtpNegotiateCommand.cc
  10600. (executeInternal): Set maxDownloadSpeedLimit,
  10601. startupIdleTime, lowestDownloadSpeedLimit to command.
  10602. (recvSize): Added method "HEAD" handling.
  10603. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10604. * src/AbstractSingleDiskAdaptor.cc
  10605. (sha1Sum): Renamed as messageDigest.
  10606. (messageDigest): New function.
  10607. * src/AbstractSingleDiskAdaptor.h
  10608. (sha1Sum): Renamed as messageDigest.
  10609. (messageDigest): New function.
  10610. * src/Util.h
  10611. (indexRange): New function.
  10612. * src/MetalinkEntry.cc
  10613. (MetalinkEntry): Initialized chunkChecksum to 0.
  10614. * src/ShaVisitor.cc
  10615. (~ShaVisitor): Removed the call to ctx.digestFree().
  10616. * src/SegmentMan.cc
  10617. (ChunkChecksumValidator.h): New include.
  10618. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10619. to DIGEST_ALGO_SHA1.
  10620. (~SegmentMan): Removed diskWriter.
  10621. (FindSegmentEntryByIndex): Removed.
  10622. (FindSegmentEntryByCuid): Removed.
  10623. (checkoutSegment): Rewritten.
  10624. (findSlowerSegmentEntry): Rewritten.
  10625. (getSegment): Rewritten.
  10626. (updateSegment): Rewritten.
  10627. (completeSegment): Rewritten.
  10628. (markAllPiecesDone): New function.
  10629. (checkIntegrity): New function.
  10630. (isChunkChecksumValidationReady): New function.
  10631. (tryChunkChecksumValidation): New function.
  10632. * src/Xml2MetalinkProcessor.cc
  10633. (getEntry): Get size and set it to entry.
  10634. Get chunk checksum and set it to entry.
  10635. (getPieceHash): New function.
  10636. * src/Util.cc
  10637. (sha1Sum): Removed ctx.digestFree()
  10638. (fileChecksum): Removed ctx.digestFree()
  10639. (indexRange): New function.
  10640. * src/Request.cc
  10641. (METHOD_GET): New variable.
  10642. (METHOD_HEAD): New variable.
  10643. (Request): Added method.
  10644. * src/UrlRequestInfo.cc
  10645. (FatalException.h): New include.
  10646. (message.h): New include.
  10647. (operator<<): Added operator<< for class HeadResult.
  10648. (getHeadResult): New function.
  10649. (execute): Get filename and size in separate download engine.
  10650. * src/ChunkChecksumValidator.cc: New class.
  10651. * src/DownloadCommand.cc:
  10652. (DownloadCommand): Added peerStat.
  10653. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10654. the value from Option.
  10655. The buffer size is now 16KB.
  10656. Use peerStat member instead of getting it from SegmentMan.
  10657. Use startupIdleTime member instead of gettingit from Option.
  10658. Added chunk checksum validation.
  10659. * src/AbstractDiskWriter.cc
  10660. (AbstractDiskWriter): Removed ctx.
  10661. (~AbstractDiskWriter): Removed ctx.digestFree()
  10662. (writeDataInternal): Returns the return value of write.
  10663. (readDataInternal): Returns the return value of read.
  10664. (sha1Sum): Renamed as messageDigest
  10665. (messageDigest): New function.
  10666. * src/AbstractDiwkWriter.h
  10667. (messageDigest.h): Removed include.
  10668. (ctx): Removed.
  10669. (sha1Sum): Renamed as messageDigest
  10670. (messageDigest): New function.
  10671. * src/DefaultPieceStorage.h
  10672. (markAllPiecesDone): New function.
  10673. (checkIntegrity): New function.
  10674. * src/NullFileAllocationMonitor.h: New class.
  10675. * src/MetalinkChunkChecksum.h: New class.
  10676. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10677. To decrease CPU usage in bittorrent download, calculation results in
  10678. BitfieldMan were cached and realtime fetching PeerObject was removed
  10679. with WeakHandle introduced. Option values are set to the objects
  10680. by setter before download begins.
  10681. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10682. * src/DefaultBtRequestFactory.h
  10683. (dispatcher): BtMessageDispatcherHandle ->
  10684. BtMessageDispatcherWeakHandle.
  10685. (messageFactory): New variable.
  10686. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10687. BtMessageDispatcherWeakHandle.
  10688. (setBtMessageFactory): New function.
  10689. * src/DefaultBtMessageDispatcher.cc:
  10690. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10691. from Option.
  10692. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10693. feating the value from Option.
  10694. Use messageFactory member.
  10695. * src/PeerInteractionCommand.cc
  10696. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10697. Add reverse dependencies to factory object.
  10698. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10699. dispatcher.
  10700. Set messageFactory to receiver.
  10701. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10702. btInteractive.
  10703. Set receiver to peerObject.
  10704. Set maxDownloadSpeedLimit to this.
  10705. (executeInternal): Use maxDownloadSpeedLimit member.
  10706. * src/BtChokeMessage.cc
  10707. (doReceivedAction): Use dispatcher, requestFactory member.
  10708. (onSendComplete): Use dispatcher member.
  10709. * src/PeerInteractionCommand.h
  10710. (maxDownloadSpeedLimit): New variable.
  10711. * src/DefaultBtMessageReceiver.h
  10712. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10713. (dispatcher):
  10714. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10715. (messageFactory): New variable.
  10716. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10717. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10718. (setDispatcher):
  10719. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10720. (setBtMessageFactory): New function.
  10721. * src/DefaultBtInteractive.cc
  10722. (initiateHandshake): Use messageFactory member.
  10723. (addBitfieldMessageToQueue): Use messageFactory member.
  10724. (addAllowedFastMessageToQueue): Use messageFactory member.
  10725. (decideChoking): Use messageFactory member.
  10726. (checkHave): Use messageFactory member.
  10727. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10728. (receiveMessages): Use maxDownloadSpeedLimit member.
  10729. (decideInterest): Use messageFactory member.
  10730. * src/BtRequestMessage.cc
  10731. (doReceivedAction): Use messageFactory, dispatcher member.
  10732. (onQueued): Use dispatcher member.
  10733. * src/BtPieceMessage.cc
  10734. (doReceivedAction): Use dispatcher member.
  10735. (send): Use peerConnection member.
  10736. (onWrongPiece): Use requestFactory member.
  10737. (handleChokingEvent): Use messageFactory, dispatcher member.
  10738. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10739. * src/BtMessageDispatcher.h
  10740. (BtMessageDispatcherWeakHandle): New type definition.
  10741. * src/SimpleBtMessage.cc
  10742. (send): Use peerConnection member.
  10743. * src/BtRejectMessage.cc
  10744. (doReceivedAction): Use dispatcher member.
  10745. * src/DefaultBtMessageDispatcher.h
  10746. (Option.h): Removed include.
  10747. (messageFactory): New variable.
  10748. (option): Removed.
  10749. (maxUploadSpeedLimit): New variable.
  10750. (requestTimeout): New variable.
  10751. (DefaultBtMessageDispatcher): Removed option.
  10752. Added maxUploadSpeedLimit, requestTimeout.
  10753. (setOption): Removed.
  10754. (getOption): Removed.
  10755. (setMaxUploadSpeedLimit): New function.
  10756. (setRequestTimeout): New function.
  10757. (setBtMessageFactory): New function.
  10758. * src/DefaultBtInteractive.h
  10759. (btMessageReceiver):
  10760. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10761. (dispatcher):
  10762. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10763. (btRequestFactory):
  10764. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10765. (peerConnection):
  10766. PeerConnectionHandle -> PeerConnectionWeakHandle
  10767. (messageFactory): New variable.
  10768. (option): Removed.
  10769. (keepAliveInterval): New variable.
  10770. (maxDownloadSpeedLimit): New variable.
  10771. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10772. (setBtMessageReceiver):
  10773. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10774. (setDispatcher):
  10775. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10776. (setBtRequestFactory):
  10777. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10778. (setPeerConnection):
  10779. PeerConnectionHandle -> PeerConnectionWeakHandle
  10780. (setOption): Removed.
  10781. (setKeepAliveInterval): New function.
  10782. (setMaxDownloadSpeedLimit): New function.
  10783. (setBtMessageFactory): New function.
  10784. * src/BitfieldMan.h
  10785. (cachedNumMissingBlock): New variable.
  10786. (cachedNumFilteredBlock): New variable.
  10787. (cachedCompletedLength): New variable.
  10788. (cachedFilteredComletedLength): New variable.
  10789. (cachedFilteredTotalLength): New variable.
  10790. (countMissingBlockNow): New function.
  10791. (countFilteredBlockNow): New function.
  10792. (getFilteredTotalLengthNow): New function.
  10793. (getCompletedLengthNow): New function.
  10794. (getFilteredCompletedLengthNow): New function.
  10795. (updateCache): New function.
  10796. * src/AbstractBtMessage.h
  10797. (BtMessageDispatcher.h): New include.
  10798. (PeerConnection.h): New include.
  10799. (BtRequestFactory.h): New include
  10800. (BtMessageFactory.h): New include.
  10801. (dispatcher): New variable.
  10802. (messageFactory): New variable.
  10803. (peerConnection: New variable.
  10804. (setBtMessageDispatcher): New function.
  10805. (setPeerConnection): New function.
  10806. (setBtMessageFactory): New function.
  10807. (setBtRequestFactory): New function.
  10808. * src/DefaultBtMessageFactory.cc
  10809. (setCommonProperty): Set dispatcher, requestFactory, this,
  10810. peerConnection to msg.
  10811. * src/BtRegistry.h
  10812. (BT_MESSAGE_RECEIVER): New macro.
  10813. * src/PeerConnection.h
  10814. (PeerConnectionWeakHandle): New type definition.
  10815. * src/BtMessageFactory.h
  10816. (BtMessageFactoryWeakHandle): New type definition.
  10817. * src/BitfieldMan.cc
  10818. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10819. cachedCompletedLength, cachedFilteredComletedLength,
  10820. cachedFilteredTotalLength.
  10821. Call updateCache().
  10822. (countMissingBlock): Return cachedNumMissingBlock.
  10823. (countMissingBlockNow): New function.
  10824. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10825. (countFilteredBlockNow): New function.
  10826. (setBit): Call updateCache().
  10827. (unsetBit): Call updateCache().
  10828. (setBitfield): Call updateCache().
  10829. (clearAllBit): Call updateCache().
  10830. (setAllBit): Use setBitInternal instead of setBit.
  10831. Call updateCache().
  10832. (addFilter): Call updateCache().
  10833. (enableFilter): Call updateCache().
  10834. (disableFilter): Call updateCache().
  10835. (clearFilter): Call updateCache().
  10836. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10837. (getFilteredTotalLengthNow): New function.
  10838. (getCompletedLength): Return cachedCompletedLength.
  10839. (getCompletedLengthNow): New function.
  10840. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10841. (getFilteredCompletedLengthNow): New function.
  10842. (updateCache): New function.
  10843. * src/BtMessageReceiver.h
  10844. (BtMessageReceiverWeakHandle): New type definition.
  10845. * src/DefaultBtMessageReceiver.cc
  10846. (receiveHandshake): Use messageFactory member.
  10847. (sendHandshake): Use messageFactory member.
  10848. (receiveMessage): Use messageFactory member.
  10849. * src/DefaultBtMessageFactory.h
  10850. (dispatcher): New variable.
  10851. (requestFactory): New variable.
  10852. (peerConnection): New variablle.
  10853. (setBtMessageDispatcher): New function.
  10854. (setBtRequestFactory): New function.
  10855. (setPeerConnection): New function.
  10856. * src/SharedHandle.h
  10857. (RefCount): New class.
  10858. (WeakHandle): New class.
  10859. * src/PeerObject.h
  10860. (BtMessageReceiver.h): New include.
  10861. (PeerObject): Added btMessageReceiver.
  10862. (btMessageReceiver): New variable.
  10863. * src/Util.cc
  10864. (countBit): Simplified.
  10865. * src/BtCancelMessage.cc
  10866. (doReceivedAction): Use dispatcher member.
  10867. * src/BtRequestFactory.h
  10868. (BtRequestFactoryWeakHandle): New type definition.
  10869. * src/PeerStorage.h
  10870. (downloadSpeed): int -> uint32_t
  10871. (uploadSpeed): int -> uint32_t
  10872. (sessionDownloadLength): long long int -> uint64_t
  10873. (sessionUploadLength): long long int -> uint64_t
  10874. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10875. To add RecoverableException, FatalException:
  10876. * src/AbstractCommand.cc
  10877. (onAbort): Exception -> RecoverableException
  10878. * src/PeerAbstractCommand.h
  10879. (RecoverableException.h): New include.
  10880. (onAbort): Exception -> RecoverableException.
  10881. * src/PeerInteractionCommand.cc
  10882. (onAbort): Exception -> RecoverableException.
  10883. * src/PeerAbstractCommand.cc
  10884. (execute): Exception -> RecoverableException.
  10885. (onAbort): Exception -> RecoverableException.
  10886. * src/TorrentRequestInfo.cc
  10887. (execute): Exception -> RecoverableException.
  10888. * src/MetalinkRequestInfo.cc
  10889. (execute): Exception -> RecoverableException.
  10890. * src/MetaFileUtil.cc: RecoverableException.
  10891. * src/AbstractCommand.h
  10892. (onAbort): Exception -> RecoverableException.
  10893. * src/DlRetryEx.h: Exception -> RecoverableException.
  10894. * src/DlAbortEx.h: Exception -> RecoverableException.
  10895. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  10896. * src/Util.cc: Exception -> RecoverableException.
  10897. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  10898. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  10899. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  10900. To make ID static const int
  10901. * src/BtInterestedMessage.h
  10902. (ID_t): Removed.
  10903. (ID): New variable.
  10904. (getId): Made non-const.
  10905. * src/BtPieceMessage.h
  10906. (ID_t): Removed.
  10907. (ID): New variable.
  10908. (getId): Made non-const.
  10909. * src/BtChokeMessage.h
  10910. (ID_t): Removed.
  10911. (ID): New variable.
  10912. (getId): Made non-const.
  10913. * src/BtHaveAllMessage.h
  10914. (ID_t): Removed.
  10915. (ID): New variable.
  10916. (getId): Made non-const.
  10917. * src/BtKeepAliveMessage.h
  10918. (ID_t): Removed.
  10919. (ID): New variable.
  10920. (getId): Made non-const.
  10921. * src/BtHandshakeMessage.h
  10922. (ID): New variable.
  10923. (getId): Made non-const.
  10924. * src/BtSuggestPieceMessage.h
  10925. (ID_t): Removed.
  10926. (ID): New variable.
  10927. (getId): Made non-const.
  10928. * src/BtPortMessage.h
  10929. (ID_t): Removed.
  10930. (ID): New variable.
  10931. (getId): Made non-const.
  10932. * src/AbstractBtMessage.h
  10933. (id): Removed.
  10934. (AbstractBtMessage): Removed id.
  10935. (getId): Removed.
  10936. * src/BtHaveMessage.h
  10937. (ID_t): Removed.
  10938. (ID): New variable.
  10939. (getId): Made non-const.
  10940. * src/BtAllowedFastMessage.h
  10941. (ID_t): Removed.
  10942. (ID): New variable.
  10943. (getId): Made non-const.
  10944. * src/BtCancelMessage.h
  10945. (ID_t): Removed.
  10946. (ID): New variable.
  10947. (getId): Made non-const.
  10948. * src/BtNotInterestedMessage.h
  10949. (ID_t): Removed.
  10950. (ID): New variable.
  10951. (getId): Made non-const.
  10952. * src/BtChokeMessage.h
  10953. (ID_t): Removed.
  10954. (ID): New variable.
  10955. (getId): Made non-const.
  10956. * src/BtRejectMessage.h
  10957. (ID_t): Removed.
  10958. (ID): New variable.
  10959. (getId): Made non-const.
  10960. * src/BtBitfieldMessage.h
  10961. (ID_t): Removed.
  10962. (ID): New variable.
  10963. (getId): Made non-const.
  10964. * src/BtUnchokeMessage.h
  10965. (ID_t): Removed.
  10966. (ID): New variable.
  10967. (getId): Made non-const.
  10968. * src/BtRequestMessage.h
  10969. (ID_t): Removed.
  10970. (ID): New variable.
  10971. (getId): Made non-const.
  10972. * src/BtHaveMessage.h
  10973. (ID_t): Removed.
  10974. (ID): New variable.
  10975. (getId): Made non-const.
  10976. To add --force-truncate command-line option and a check whether
  10977. the file already exists:
  10978. * src/DirectDiskAdaptor.h
  10979. (getFilePath): Made virtual public.
  10980. * src/MultiDiskAdaptor.h
  10981. (File.h): New include.
  10982. (DiskWriterEntry::fileEntry): Made private.
  10983. (DiskWriterEntry::fileExists): New function.
  10984. (DiskWriterEntry::getFileEntry): New function.
  10985. (fileExists): New function.
  10986. (getFilePath): New function.
  10987. * src/TorrentRequestInfo.cc
  10988. (FatalException.h): New include.
  10989. (message.h): New include.
  10990. (RecoverableException.h): New include.
  10991. (execute): Added a check whether file is already exists or not.
  10992. * src/DiskAdaptor.h
  10993. (fileExists): New function.
  10994. (getFilePath): New function.
  10995. * src/main.cc
  10996. (showUsage): Added an explanation of --force-truncate command-line
  10997. option.
  10998. (main): Added --force-truncate command-line option.
  10999. * src/Exception.h
  11000. (setMsg): buf[256] -> buf[1024]
  11001. * src/CopyDiskWriter.h
  11002. (getFilePath): Made public virtual.
  11003. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11004. (fileExists): New function.
  11005. * src/DownloadEngineFactory.cc
  11006. (newTorrentConsoleEngine): Don't open file here.
  11007. * src/message.h
  11008. (EX_FILE_ALREADY_EXISTS): New definition.
  11009. * src/prefs.h
  11010. (PREF_FOECE_TRUNCATE): New definition.
  11011. * src/HttpResponseCommand.cc
  11012. (handleDefaultEncoding): Added a check whether the file already exists.
  11013. * src/SegmentMan.h
  11014. (fileExists): New function.
  11015. (shouldCancelDownloadForSafety): New function.
  11016. * src/FtpNegotiateCommand.cc
  11017. (recvSize): Added a check whether the file already exists.
  11018. * src/AbstractSingleDiskAdaptor.cc
  11019. (File.h): New include.
  11020. (fileExists): New function.
  11021. * src/AbstractSingleDiskAdaptor.h
  11022. (getFilePath): Removed.
  11023. (fileExists): New function.
  11024. * src/SegmentMan.cc
  11025. (fileExists): New function.
  11026. (shouldCancelDownloadForSafety): New function.
  11027. To fix regression bug in torrent downloading:
  11028. * src/DefaultBtRequestFactory.cc
  11029. (doChokedAction): New function.
  11030. * src/DefaultBtRequestFactory.h
  11031. (doChokedAction): New function.
  11032. * src/DefaultBtMessageDispatcher.cc
  11033. (doChokedAction): Do not delete request if its target is in allowed
  11034. fast set.
  11035. * src/DefaultBtInteractive.cc
  11036. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11037. (sendKeepAlive): Send keep alive message even if the outgoing message
  11038. queue is not empty.
  11039. (decideInterest): Simplified the code.
  11040. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11041. it is already called when BtChokeMessage is received from a peer.
  11042. * src/BtRequestFactory.h
  11043. (doChokedAction): New function.
  11044. To clean up code:
  11045. * src/PeerInteractionCommand.h
  11046. (executeInternal): Added virtual keyword explicitly.
  11047. (prepareForRetry): Added virtual keyword explicitly.
  11048. (prepareForNextPeer): Added virtual keyword explicitly.
  11049. (onAbort): Added virtual keyword explicitly.
  11050. * src/RequestSlot.cc
  11051. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11052. * src/BtPieceMessage.cc
  11053. (doReceivedAction): Added a debug log of piece's bitfield.
  11054. * src/Piece.h
  11055. (getBitfieldLength): New function.
  11056. * src/ByteArrayDiskWriter.cc
  11057. (clear): Added buf = 0 to avoid double free corruption.
  11058. * src/FileAllocator.cc
  11059. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11060. Added cp.reset().
  11061. * src/BitfieldMan.h
  11062. (operator=): Rewritten.
  11063. * src/BitfieldMan.cc
  11064. (BitfieldMan): Initialized bitfield, useBitfield.
  11065. * src/PeerConnection.cc
  11066. (receiveMessage): Added a call to socket->readable() after getting
  11067. message length to avoid possible EOF.
  11068. * src/Util.cc
  11069. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11070. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11071. To add an ability to pre-allocate file space:
  11072. * src/DirectDiskAdaptor.h: Rewritten.
  11073. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11074. * src/MultiDiskAdaptor.h: Rewritten.
  11075. * src/DefaultPieceStorage.cc
  11076. (MultiDiskWriter.h): Removed include.
  11077. (PreAllocationDiskWriter.h): Removed include.
  11078. (FileAllocationMonitor.h): New include.
  11079. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11080. (initStorage): Rewritten.
  11081. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11082. * src/FileAllocator.h: New class.
  11083. * src/FileAllocator.cc: New class.
  11084. * src/FileAllocationMonitor.h: New class.
  11085. * src/FileAllocationMonitor.cc: New class.
  11086. * src/ConsoleFileAllocationMonitor.h: New class.
  11087. * src/ConsoleFileAllocationMonitor.cc: New class.
  11088. * src/AbstractSingleDiskAdaptor.h: New class.
  11089. * src/AbstractSingleDiskAdaptor.cc: New class.
  11090. * src/DiskAdaptor.h
  11091. (Directory.h): Removed include.
  11092. (DiskWriter.h): Removed include.
  11093. (FileEntry.h): Removed include.
  11094. (diskWriter): Removed.
  11095. (DiskAdaptor): Removed diskWriter.
  11096. (openFile): Made pure virtual.
  11097. (closeFile): Made pure virtual.
  11098. (openExistingFile): Made pure virtual.
  11099. (initAndOpenFile): Made pure virtual.
  11100. (writeData): Made pure virtual.
  11101. (readData): Made pure virtual.
  11102. (sha1Sum): Made pure virtual.
  11103. (getStoreDir): Returns const reference of storeDir.
  11104. (DiskAdaptorHandle): New type definition.
  11105. * src/main.cc
  11106. (ConsoleFileAllocationMonitor.h): New include.
  11107. (showUsage): Added default value description of -s option.
  11108. Added the description of --file-allocation option.
  11109. (main): Set default value of --file-allocation option to 'none'.
  11110. Added --file-allocation command-line option.
  11111. Setup FileAllocationMonitorFactory.
  11112. * src/FtpInitiateConnectionCommand.cc
  11113. (executeInternal): Removed diskWriter related processing, which was
  11114. moved to FtpNegotiationCommand.cc.
  11115. * src/DirectDiskAdaptor.cc
  11116. (getFilePath): Made non-const.
  11117. * src/CopyDiskAdaptor.h
  11118. (DiskAdaptor.h): Removed include.
  11119. (DiskWriter.h): Removed include.
  11120. (AbstractSingleDiskAdaptor.h): New include.
  11121. (getFilePath): Made non-const. Added virtual keyword.
  11122. (CopyDiskAdaptor): Removed diskWriter.
  11123. (getTempFile): Returns const reference.
  11124. (CopyDiskAdaptorHandle): New type definition.
  11125. * src/ByteArrayDiskWriter.cc
  11126. (clear): Simplified.
  11127. (initAndOpenFile): Rewritten.
  11128. (openFile): Call initAndOpenFile()
  11129. * src/MultiDiskAdaptor.cc: Rewritten.
  11130. * src/DownloadEngineFactory.cc
  11131. (FileAllocator.h): New include.
  11132. (FileAllocationMonitor.h): New include.
  11133. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11134. create DefaultDiskWriter with file allocator.
  11135. * src/DiskWriter.h
  11136. (initAndOpenFile): Added totalLength argument.
  11137. (openFile): Added totalLength argument.
  11138. * src/prefs.h
  11139. (PREF_FILE_ALLOCATION): New definition.
  11140. (V_PREALLOC): New definition.
  11141. (V_NONE): New definition.
  11142. * src/HttpResponseCommand.cc
  11143. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11144. size.
  11145. * src/FtpNegotiateCommand.cc
  11146. (Util.h): New include.
  11147. (recvSize): Open file here.
  11148. * src/Util.h
  11149. (ullitos): New function.
  11150. * src/CopyDiskWriter.h
  11151. (getFilePath): Made non-const.
  11152. * src/DefaultDiskWriter.h
  11153. (Option.h): New include.
  11154. (totalLength): Removed.
  11155. (DefaultDiskWriter): Removed totalLength.
  11156. (initAndOpenFile): Added totalLength argument.
  11157. (DefaultDiskWriterHandle): New type definition.
  11158. (createNewDiskWriter): New function.
  11159. * src/Util.cc
  11160. (ullitos): New function.
  11161. * src/DefaultDiskWriter.cc
  11162. (message.h): New include.
  11163. (FileAllocator.h): New include.
  11164. (prefs.h): New include.
  11165. (Util.h): New include.
  11166. (DefaultDiskWriter): Removed totalLength.
  11167. (initAndOpenFile): Added file allocation.
  11168. (createNewDiskWriter): New function. Just for temporary solution.
  11169. It will be rewritten later.
  11170. * src/DiskAdaptor.cc
  11171. (DiskAdaptor): Removed diskWriter.
  11172. * src/AbstractDiskWriter.cc
  11173. (LogFactory.h): New include.
  11174. (AbstractDiskWriter): Added fileAllocator, logger.
  11175. (openFile): Added totalLength argument.
  11176. * src/AbstractDiskWriter.h
  11177. (FileAllocator.h): New include.
  11178. (Logger.h): New include.
  11179. (fileAllocator): New variable.
  11180. (logger): New variable.
  11181. (openFile): Added totalLength argument. Added virtual keyword
  11182. explicitly.
  11183. (openExistingFile): Added totalLength argument. Added virtual keyword
  11184. explicitly.
  11185. (closeFile): Added virtual keyword explicitly.
  11186. (sha1Sum): Added virtual keyword explicitly.
  11187. (writeData): Added virtual keyword explicitly.
  11188. (readData): Added virtual keyword explicitly.
  11189. (setFileAllocator): New function.
  11190. * src/DefaultPieceStorage.h
  11191. (FileAllocator.h): New include.
  11192. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11193. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11194. * src/FileProgressMonitor.h: New class.
  11195. To compile aria2 on PC-BSD:
  11196. * src/DefaultBtContext.cc
  11197. (libgen.h): New include.
  11198. To fix memory leak:
  11199. * src/Exception.h
  11200. (~Exception): Delete cause. Fixed memory leak.
  11201. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11202. Rewritten a portion of bittorrent implementation:
  11203. * src/BtMessageValidator.h: New class.
  11204. * src/BtBitfieldMessageValidator.h: New class.
  11205. * src/BtHandshakeMessageValidator.h: New class.
  11206. * src/BtRequestMessageValidator.h: New class.
  11207. * src/BtSuggestPieceMessageValidator.h: New class.
  11208. * src/BtAllowedFastMessageValidator.h: New class.
  11209. * src/BtRejectMessageValidator.h: New class.
  11210. * src/BtCancelMessageValidator.h: New class.
  11211. * src/BtPieceMessageValidator.h: New class.
  11212. * src/BtHaveMessageValidator.h: New class.
  11213. * src/BtEventListener.h: New class.
  11214. * src/AbstractBtEventListener.h: New class.
  11215. * src/BtEvent.h: New class.
  11216. * src/BtChokingEvent.h: New class.
  11217. * src/BtChokedEvent.h: New class.
  11218. * src/BtCancelSendingPieceEvent.h: New class.
  11219. * src/BtAbortOutstandingRequestEvent.h: New class.
  11220. * src/Randomizer.h: New class.
  11221. * src/SimpleRandomizer.h: New class.
  11222. * src/BtMessage.h: New class.
  11223. * src/AbstractBtMessage.h: New class.
  11224. * src/SimpleBtMessage.h: New class.
  11225. * src/BtHaveMessage.h: New class.
  11226. * src/BtInterestedMessage.h: New class.
  11227. * src/BtAllowedFastMessage.h: New class.
  11228. * src/BtUnchokeMessage.h: New class.
  11229. * src/BtCancelMessage.h: New class.
  11230. * src/BtNotInterestedMessage.h: New class.
  11231. * src/BtChokeMessage.h: New class.
  11232. * src/BtHaveNoneMessage.h: New class.
  11233. * src/BtHandshakeMessage.h: New class.
  11234. * src/BtSuggestPieceMessage.h: New class.
  11235. * src/BtHaveMessage.h: New class.
  11236. * src/BtPieceMessage.h: New class.
  11237. * src/BtHaveAllMessage.h: New class.
  11238. * src/BtKeepAliveMessage.h: New class.
  11239. * src/BtPortMessage.h: New class.
  11240. * src/BtRejectMessage.h: New class.
  11241. * src/BtBitfieldMessage.h: New class.
  11242. * src/BtRequestMessage.h: New class.
  11243. * src/DefaultBtRequestFactory.h: New class.
  11244. * src/DefaultBtMessageReceiver.h: New class.
  11245. * src/BtInteractive.h: New class.
  11246. * src/BtMessageDispatcher.h: New class.
  11247. * src/DefaultBtMessageDispatcher.h: New class.
  11248. * src/DefaultBtInteractive.h: New class.
  11249. * src/BitfieldManFactory.h: New class.
  11250. * src/HandleRegistry.h: New class.
  11251. * src/BtMessageFactory.h: New class.
  11252. * src/BtMessageReceiver.h: New class.
  11253. * src/DefaultBtMessageFactory.h: New class.
  11254. * src/PeerObject.h: New class.
  11255. * src/BtRequestFactory.h: New class.
  11256. * src/SuggestPieceMessage.h: Removed.
  11257. * src/PortMessage.h: Removed.
  11258. * src/SuggestPieceMessage.h: Removed.
  11259. * src/KeepAliveMessage.h: Removed.
  11260. * src/HandshakeMessage.h: Removed.
  11261. * src/PeerInteraction.h: Removed.
  11262. * src/UnchokeMessage.h: Removed.
  11263. * src/PieceMessage.h: Removed.
  11264. * src/RequestMessage.h: Removed.
  11265. * src/InterestedMessage.h: Removed.
  11266. * src/HaveMessage.h: Removed.
  11267. * src/CancelMessage.h: Removed.
  11268. * src/RejectMessage.h: Removed.
  11269. * src/AllowedFastMessage.h: Removed.
  11270. * src/HaveNoneMessage.h: Removed.
  11271. * src/SimplePeerMessage.h: Removed.
  11272. * src/HaveAllMessage.h: Removed.
  11273. * src/BitfieldMessage.h: Removed.
  11274. * src/PeerMessageFactory.h: Removed.
  11275. * src/NotInterestedMessage.h: Removed.
  11276. * src/ChokeMessage.h: Removed.
  11277. * src/PeerMessage.h: Removed.
  11278. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11279. To know root cause of exception:
  11280. * src/Exception.h
  11281. (cause): New variable.
  11282. (Exception): Added a parameter.
  11283. (getMsg): Return const reference to msg.
  11284. (getCause): New function.
  11285. * src/DlRetryEx.h
  11286. (DlRetryEx): Added a parameter 'cause'.
  11287. Added an overloaded constructor.
  11288. (DlAbortEx): Added a parameter 'cause'.
  11289. Added an overloaded constructor.
  11290. * src/SimpleLogger.cc
  11291. (writeLog): Log nested exception messages recursively.
  11292. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11293. * src/DefaultBtProgressInfoFile.cc
  11294. (load): Fixed memory leak when the infohash doesn't match.
  11295. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11296. * src/DefaultPeerStorage.cc
  11297. (calculateStat): Simplified the code by combining 2 loops into 1.
  11298. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11299. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11300. for BitTorrent download:
  11301. * src/PeerAbstractCommand.cc
  11302. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11303. * src/main.cc:
  11304. (timeoutSpecified): Removed.
  11305. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11306. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11307. * src/TorrentRequestInfo.cc
  11308. (timeoutSpecified): Removed.
  11309. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11310. timeout value.
  11311. * src/prefs.h
  11312. (PREF_BT_TIMEOUT): New definition.
  11313. Delete unused variables:
  11314. * src/TorrentRequestInfo.cc
  11315. (requestInfo): Removed.
  11316. Move setSignalHander to Util::setGlobalSignalHandler:
  11317. * src/TorrentRequestInfo.cc:
  11318. setSignalHander -> Util::setGlobalSignalHandler
  11319. * src/main.cc
  11320. (setSignalHander): Removed.
  11321. (main): setSignalHander -> Util::setGlobalSignalHandler
  11322. * src/Util.h
  11323. (setGlobalSignalHandler): New function.
  11324. * src/Util.cc
  11325. (setGlobalSignalHandler): New function.
  11326. * src/UrlRequestInfo.cc:
  11327. setSignalHander -> Util::setGlobalSignalHandler
  11328. Reset peer status in order to exit gracefully:
  11329. * src/PeerAbstractCommand.cc
  11330. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11331. To fix the bug that causes the number of bytes uploaded is not saved
  11332. to .aria2 file:
  11333. * src/DefaultPeerStorage.h
  11334. (removedPeerSessionDownloadLength): New variable.
  11335. (removedPeerSessionUploadLength): New variable.
  11336. * src/DefaultPeerStorage.cc
  11337. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11338. removedPeerSessionUploadLength(0).
  11339. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11340. through all peers, and then add removedPeerSessionDownloadLength(
  11341. removedPeerSessionUploadLength) to it.
  11342. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11343. (to) the peer to removedPeerSessionDownloadLength
  11344. (removedPeerSessionUploadLength).
  11345. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11346. To add Metalink location option:
  11347. * src/MetalinkRequestInfo.cc
  11348. (execute): Call MetalinkEntry::setLocationPreference()
  11349. * src/main.cc
  11350. (showUsage): Added the help message for --metalink-location option.
  11351. (main): Added --metalink-location option.
  11352. * src/prefs.h
  11353. (PREF_METALINK_LOCATION): New definition.
  11354. * src/MetalinkEntry.cc
  11355. (AddLocationPreference): New function object.
  11356. (setLocationPreference): New function.
  11357. * src/Xml2MetalinkProcessor.cc
  11358. (getResource): Set location attribute to MetalinkResource
  11359. To show URLs to download
  11360. * src/UrlRequestInfo.h
  11361. (printUrls): New function.
  11362. To add multiple <file> Metalink support:
  11363. * src/MetalinkEntry.h
  11364. (MetalinkResources): Removed.
  11365. (setLocationPreference): New function.
  11366. (MetalinkEntryHandle): New type definition.
  11367. (MetalinkEntries): New type definition.
  11368. * src/Xml2MetalinkProcessor.h
  11369. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11370. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11371. (parseFile): Metalinker* -> MetalinkerHandle
  11372. * src/UrlRequestInfo.h
  11373. (execute): RequestInfo* -> RequestInfos
  11374. * src/MetalinkRequestInfo.cc
  11375. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11376. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11377. (execute): RequestInfo* -> RequestInfos
  11378. Added multiple <file> support. Print filename when it is queued.
  11379. * src/MetalinkRequestInfo.h
  11380. (execute): RequestInfo* -> RequestInfos
  11381. (getDownloadEngine): Removed.
  11382. * src/RequestInfo.h
  11383. (RequestInfoHandle): New type definition.
  11384. (RequestInfos): New type definition.
  11385. (execute): RequestInfo* -> RequestInfos
  11386. (getDownloadEngine): Removed.
  11387. * src/MetalinkResource.h
  11388. (MetalinkResourceHandle): New type definition.
  11389. (MetalinkResources): New type definition.
  11390. * src/MetalinkEntry.cc
  11391. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11392. because the element is now of type MetalinkResourceHandle.
  11393. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11394. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11395. (dropUnsupportedResource): Removed the deletion of the elements of
  11396. resources because the element is now of type MetalinkResourceHandle.
  11397. * src/Xml2MetalinkProcessor.cc
  11398. (parseFile): Metalinker* -> MetalinkerHandle
  11399. MetalinkEntry* -> MetalinkEntryHandle
  11400. Removed try-catch block.
  11401. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11402. MetalinkResource* -> MetalinkResourceHandle
  11403. Removed try-catch block.
  11404. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11405. Free result by using xmlXPathFreeObject()
  11406. * src/Metalinker.cc
  11407. (~Metalinker): Removed the deletion of entries.
  11408. MetalinkEntry* -> MetalinkEntryHandle
  11409. (queryEntry): Add multiple <file> Metalink support.
  11410. * src/Metalinker.h
  11411. (MetalinkEntries): Removed.
  11412. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11413. * src/MetalinkProcessor.h
  11414. (parseFile): Metalinker* -> MetalinkerHandle
  11415. Bug fixes:
  11416. * src/PeerChokeCommand.cc
  11417. (execute): cat01->cat02
  11418. * src/DefaultPieceStorage.cc
  11419. (DefaultPieceStorage): Added diskAdaptor(0)
  11420. * src/TrackerWatcherComand.cc:
  11421. (execute): Use btAnnounce->noMoreAnnounce()
  11422. to determin whether the function returns true or not.
  11423. * src/TrackerUpdateCommand.cc:
  11424. (execute): Use btAnnounce->noMoreAnnounce()
  11425. to determin whether the function returns true or not.
  11426. * src/FtpConnection.cc
  11427. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11428. This is the fix of the busy loop bug.
  11429. * src/DownloadCommand.cc
  11430. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11431. cached PeerStat.
  11432. The value of "name" entry in torrent file is now set by
  11433. *DiskAdaptor::setTopDir(...) methods.
  11434. * src/MultiDiskAdaptor.h
  11435. (topDir): New variable.
  11436. (setTopDir): New function.
  11437. (getTopDir): New function.
  11438. * src/MultiDiskAdaptor.cc
  11439. (getFilePath): Concat storDir, "/" and topDir.
  11440. (mkdir): Use getFilePath() to get the directory path for output.
  11441. * src/DefaultPieceStorage.cc
  11442. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11443. CopyDiskAdaptor.
  11444. * src/CopyDiskAdaptor.h
  11445. (topDir): New variable.
  11446. (setTopDir): New function.
  11447. (getTopDir): New function.
  11448. * src/CopyDiskAdaptor.cc
  11449. (fixFilename): Updated.
  11450. Misc
  11451. * src/UrlRequestInfo.h
  11452. (e): Removed.
  11453. (UrlRequestInfo): Removed e.
  11454. (getDownloadEngine): Removed.
  11455. * src/UrlRequestInfo.cc
  11456. (handler): Rewritten.
  11457. (printUrls): New function.
  11458. (execute): Call printUrls().
  11459. * src/HandshakeMessage.cc
  11460. (check): peerinteraction->getBtContext() -> btContext
  11461. * src/PeerInteraction.h
  11462. (getBtContext): Removed.
  11463. * src/TorrentRequestInfo.h
  11464. (execute): RequestInfo* -> RequestInfos
  11465. (getDownloadEngine): Removed.
  11466. * src/TorrentRequestInfo.cc
  11467. (haltRequested): Removed.
  11468. (btHaltRequested): New variable.
  11469. (torrentHandler): haltRequested -> btHaltRequested
  11470. (execute): RequestInfo* -> RequestInfos
  11471. * src/TorrentConsoleDownloadEngine.cc
  11472. (afterEachIteration): haltRequested -> btHaltRequested.
  11473. * src/ConsoleDownloadEngine.h
  11474. (initStatistics): Added virtual.
  11475. (calculateStatistics): Added virtual.
  11476. (onEndOfRun): Added virtual.
  11477. (afterEachIteration): Added virtual.
  11478. * src/ConsoleDownloadEngine.cc
  11479. (haltRequested): New variable.
  11480. (afterEachIteration): New function.
  11481. * src/main.cc
  11482. (requestInfo): Removed.
  11483. * src/SegmentMan.cc
  11484. (findSlowerSegmentEntry): Refactored.
  11485. * Release 0.9.0
  11486. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11487. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  11488. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  11489. * src/TorrentMan.h: Removed.
  11490. * src/TorrentMan.cc: Removed.
  11491. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  11492. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  11493. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  11494. * src/PeerAbstractCommand.cc: Use btRuntime.
  11495. * src/BtContextAwareCommand.h: New class.
  11496. * src/FileEntry.h: Added accessor methods for following variables.
  11497. (path): Made private.
  11498. (length): Made private.
  11499. (offset): Made private.
  11500. (extracted): Made private.
  11501. (requested): Made private.
  11502. (FileEntries): New definition.
  11503. (FileEntryHandle): New definition.
  11504. * src/FileEntry.cc: New file.
  11505. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  11506. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  11507. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  11508. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  11509. * src/PieceStorage.h: New file.
  11510. * src/PeerInteractionCommand.h: Use btContext.
  11511. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  11512. btRuntime.
  11513. * src/DefaultBtProgressInfoFile.h: New file.
  11514. * src/DefaultBtProgressInfoFile.cc: New file.
  11515. * src/File.cc
  11516. (Util.h): New include.
  11517. (mkdirs): New function.
  11518. * src/MultiDiskAdaptor.h
  11519. (mkdir): New function.
  11520. * src/PeerListProcessor.h
  11521. (Peers): Removed.
  11522. * src/PeerInteraction.h
  11523. (torrentMan): Removed.
  11524. (btContext): New variable.
  11525. (peerStorage): New variable.
  11526. (pieceStorage): New variable.
  11527. (btAnnounce): New variable.
  11528. (getTorrentMan): Removed.
  11529. (getBtContext): New function.
  11530. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11531. btAnnounce.
  11532. * src/HandshakeMessage.h
  11533. (TorrentMan.h): Removed.
  11534. * src/HandshakeMessage.cc: Use btContext.
  11535. * src/DefaultBtAnnounce.cc: New file.
  11536. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11537. * src/DefaultPieceStorage.cc: New file.
  11538. * src/DefaultBtContext.h: New file.
  11539. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11540. Use the accessor methods of FileEntry.
  11541. * src/CookieBox.cc: Updated to use Util::slice().
  11542. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11543. * src/common.h (SharedHandle.h): New include.
  11544. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11545. pieceStorage.
  11546. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11547. * src/DiskAdaptor.h
  11548. (topDir): Removed.
  11549. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11550. (setTopDir): Removed.
  11551. (getTopDir): Removed.
  11552. * src/BtContext.h: New file.
  11553. * src/DefaultPeerStorage.h: New file.
  11554. * src/PieceMessage.h (TorrentMan.h): Removed.
  11555. * src/RequestMessage.h (TorrentMan.h): Removed.
  11556. * src/TorrentDownloadEngine.h
  11557. (uploadLength): New variable.
  11558. (btContext): New variable.
  11559. (btRuntime): New variable.
  11560. (pieceStorage): New variable.
  11561. (peerStorage): New variable.
  11562. (btAnnounce): New variable.
  11563. (btProgressInfoFile): New variable.
  11564. (torrentMan): Removed.
  11565. (setBtContext): New function.
  11566. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11567. peerStorage, btAnnounce, btProgressInfoFile.
  11568. * src/Piece.h
  11569. (toString): New function.
  11570. (Pieces): New type definition.
  11571. * src/Peer.h
  11572. (active): New variable.
  11573. (Peer): Added active.
  11574. (activate): Set active to true.
  11575. (deactivate): Set active to false.
  11576. (isActive): New function.
  11577. (Peers): New type definition.
  11578. * src/DirectDiskAdaptor.cc
  11579. (getFilePath): Use the accessor methods of FileEntry.
  11580. * src/TorrentConsoleDownloadEngine.h
  11581. (afterEachIteration): New function.
  11582. * src/TorrentConsoleDownloadEngine.cc
  11583. (haltRequested): New variable.
  11584. (sendStatistics): Use pieceStorage, btRuntime.
  11585. (afterEachIteration): New function.
  11586. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11587. * src/Directry.h
  11588. (Directory): New function.
  11589. (DirectoryHandle): New type definition.
  11590. * src/BtProgressInfoFile.h: New file.
  11591. * src/RequestMessage.cc: Use pieceStorage.
  11592. * src/BtRuntime.h: New file.
  11593. * src/DefaultBtContext.cc: New file.
  11594. * src/BitfieldMan.h
  11595. (getCompletedLength): New function(private).
  11596. (getCompletedLength): New function.
  11597. (getFilteredCompletedLength): New function.
  11598. * src/BitfieldMan.h
  11599. (getCompletedLength): New function(private).
  11600. (getCompletedLength): New function.
  11601. (getFilteredCompletedLength): New function.
  11602. * src/MultiDiskAdaptor.cc
  11603. (mkdir): New function.
  11604. (openFile): Call mkdir().
  11605. (initAndOpenFile): Call mkdir().
  11606. * src/CancelMessage.h
  11607. (TorrentMan.h): Removed.
  11608. * src/RejectMessage.h
  11609. (TorrentMan.h): Removed.
  11610. * src/DownloadEngineFactory.cc
  11611. (DefaultPieceStorage.h): New include.
  11612. (DefaultPeerStorage.h): New include.
  11613. (DefaultBtAnnounce.h): New include.
  11614. (DefaultBtProgressInfoFile.h): New include.
  11615. (newTorrentConsoleEngine): Rewritten.
  11616. * src/ShareRatioSeedCriteria.h
  11617. (torrentMan): Removed.
  11618. (btContext): New variable.
  11619. (peerStorage): New variable.
  11620. (btRuntime): New variable.
  11621. (evaluate): Use btContext, btRuntime, peerStorage.
  11622. * src/AnnounceTier.h: New file.
  11623. * src/BtAnnounce.h: New file.
  11624. * src/BtRegistry.h: New file.
  11625. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11626. * src/PeerConnection.h (TorrentMan.h): Removed.
  11627. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11628. * src/Util.h
  11629. (slice): Added an argument.
  11630. * src/Util.cc
  11631. (slice): Added an argument to control whether trim is made or not.
  11632. * src/PeerStorage.h: New file.
  11633. * src/BtRegistry.cc: New file.
  11634. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11635. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11636. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11637. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11638. * src/TorrentRequestInfo.h
  11639. (e): Removed.
  11640. (showFileEntry): Added an argument.
  11641. (getDownloadEngine): Return 0.
  11642. * src/DefaultBtAnnounce.h: New file.
  11643. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11644. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11645. * src/PeerMessageFactory.h
  11646. (btContext): New variable.
  11647. (pieceStorage): New variable.
  11648. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11649. btAnnounce.
  11650. * src/DiskAdaptor.cc
  11651. (DiskAdaptor): Removed topDir.
  11652. (~DiskAdaptor): Removed topDir.
  11653. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11654. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11655. * src/File.h (mkdirs): New function.
  11656. * src/DefaultPeerStorage): New file.
  11657. * src/DownloadEngineFactory.h
  11658. (newTorrentConsoleEngine): Use btContext.
  11659. * src/BtContextAwareCommand.cc: New file.
  11660. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11661. * src/PeerMessage.h
  11662. (btContext): New variable.
  11663. (peerStorage): New variable.
  11664. (pieceStorage): New variable.
  11665. (setBtContext): New function.
  11666. * src/Directry.cc
  11667. (Directory): New function.
  11668. (createDir): Do nothing if name.size() == 0.
  11669. * src/AnnounceList.h
  11670. (AnnounceTier): Removed.
  11671. (AnnounceTiers): Removed.
  11672. * src/DefaultPieceStorage.h: New file.
  11673. * src/Piece.cc (toString): New function.
  11674. To fix typo:
  11675. * src/main.cc (showVersion): Fixed typo.
  11676. To fix compile warning:
  11677. * src/DelegatingPeerListProcessor.cc
  11678. (canHandle): Added "return false".
  11679. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11680. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11681. make the process of announce request testable.
  11682. * src/TrackerWatcherCommand.h
  11683. (TimeA2.h): Removed.
  11684. (interval): Removed.
  11685. (checkPoint): Removed.
  11686. (createRequestCommand): Added an argument 'url'.
  11687. (TrackerWatherCommand): Removed interval.
  11688. (createCommand): New function.
  11689. * src/DownloadEngineFactory.cc
  11690. (newTorrentConsoleEngine): Updated according to the changes in
  11691. TrackerWatherCommand.
  11692. * src/TorrentMan.cc
  11693. (DelegatingPeerListProcessor.h): New includes.
  11694. (TorrentMan): Added the initialization of announceInterval.
  11695. (isStoppedAnnounceReady): New function.
  11696. (isCompletedAnnounceReady): New function.
  11697. (isDefaultAnnounceReady): New function.
  11698. (isAnnounceReady): New function.
  11699. (getAnnounceUrl): New function.
  11700. (announceStart): New function.
  11701. (announceFailure): New function.
  11702. (announceSuccess): New function.
  11703. (isAllAnnounceFailed): New function.
  11704. (resetAnnounce): New function.
  11705. (processAnnounceResponse): New function.
  11706. (needMorePeerConnection): New function.
  11707. (noMoreAnnounce): New function.
  11708. * src/TrackerUpdateCommand.h
  11709. (getTrackerResponse): int->size_t
  11710. * src/TorrentMan.h
  11711. (isStoppedAnnounceReady): New function.
  11712. (isCompletedAnnounceReady): New function.
  11713. (isDefaultAnnounceReady): New function.
  11714. (announceInterval): New variable.
  11715. (isAnnounceReady): New function.
  11716. (getAnnounceUrl): New function.
  11717. (announceStart): New function.
  11718. (announceFailure): New function.
  11719. (announceSuccess): New function.
  11720. (isAllAnnounceFailed): New function.
  11721. (resetAnnounce): New function.
  11722. (processAnnounceResponse): New function.
  11723. (needMorePeerConnection): New function.
  11724. (noMoreAnnounce): New function.
  11725. * src/TrackerWatcherCommand.cc
  11726. (TrackerWatherCommand): Removed interval and checkPoint.
  11727. (execute): Rewritten.
  11728. (createCommand): New function.
  11729. (createRequestCommand): Rewritten.
  11730. * src/TrackerUpdateCommand.cc
  11731. (MetaFileUtil.h): Removed.
  11732. (DelegatingPeerListProcessor.h): Removed.
  11733. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11734. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11735. Request -> RequestHandle:
  11736. * src/HttpResponseCommand.h: Request->RequestHandle
  11737. * src/AbstractCommand.cc: Request->RequestHandle
  11738. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11739. * src/HttpRequestCommand.cc: Request->RequestHandle
  11740. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11741. * src/AbstractCommand.h: Request->RequestHandle
  11742. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11743. * src/HttpResponseCommand.cc: Request->RequestHandle
  11744. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11745. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11746. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11747. * src/HttpConnection.h: Request->RequestHandle
  11748. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11749. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11750. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11751. * src/DownloadCommand.h: Request->RequestHandle
  11752. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11753. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11754. * src/HttpRequestCommand.h: Request->RequestHandle
  11755. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11756. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11757. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11758. * src/HttpDownloadCommand.h: Request->RequestHandle
  11759. * src/FtpConnection.cc: Request->RequestHandle
  11760. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11761. * src/UrlRequestInfo.cc: Request->RequestHandle
  11762. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11763. * src/HttpConnection.h: Request->RequestHandle
  11764. * src/DownloadCommand.cc: Request->RequestHandle
  11765. * src/FtpConnection.h: Request->RequestHandle
  11766. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11767. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11768. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11769. * src/Request.h
  11770. (SharedHandle.h): New include.
  11771. (RequestHandle): New type definition.
  11772. (Requests): Redefined.
  11773. To add MULTITRACKER support:
  11774. * src/TrackerWatcherCommand.h
  11775. (createRequestCommand): New function.
  11776. * src/DownloadEngineFactory.cc
  11777. (newTorrentConsoleEngine): Removed req.
  11778. * src/prefs.h
  11779. (PREF_TRACKER_MAX_TRIES): New definition.
  11780. * src/TorrentMan.cc
  11781. (TorrentMan): Removed req. Added trackerNumTry.
  11782. (~TorrentMan): Removed req.
  11783. (setupInternal1): Added announceList.
  11784. * src/TorrentRequestInfo.cc
  11785. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11786. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11787. * src/main.cc
  11788. (main): Added PREF_TRACKER_MAX_TRIES.
  11789. * src/TorrentMan.h
  11790. (Request.h): Removed.
  11791. (AnnounceList.h): New include.
  11792. (trackerNumTry): New variable.
  11793. (req): Removed.
  11794. (announceList): New variable.
  11795. * src/TrackerWatcherCommand.cc
  11796. (execute): Rewritten.
  11797. (createRequestCommand): New function.
  11798. * src/TrackerUpdateCommand.cc
  11799. (execute): Updated with the use of AnnounceList.
  11800. * src/AnnounceList.cc: New class.
  11801. * src/AnnounceList.h: New class.
  11802. To fix typo:
  11803. * src/prefs.h
  11804. (PREF_MAX_TRIES): max_try->max_tries
  11805. To not to decode "+" as space in URL decode:
  11806. * src/Util.cc
  11807. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11808. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11809. To add timeout to async name resolution:
  11810. * src/AbstractCommand.h
  11811. (nameResolveFinished): New function. This is not elegant way. It needs
  11812. to be more refined.
  11813. (nameResolverCheck): New variable.
  11814. * src/AbstractCommand.cc
  11815. (AbstractCommand): Added nameResolverCheck.
  11816. (execute): Added the check whether the name resolution has finished.
  11817. (setNameResolverCheck): Set nameResolverCheck to true.
  11818. (disableNameResolverCheck): Set nameResolverCheck to false.
  11819. (nameResolverFinished): New function.
  11820. * src/FtpInitiateConnectionCommand.h
  11821. (nameResolverFinished): New function.
  11822. * src/FtpInitiateConnectionCommand.cc
  11823. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11824. * src/HttpInitiateConnectionCommand.h
  11825. (nameResolverFinished): New function.
  11826. * src/HttpInitiateConnectionCommand.cc
  11827. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11828. * src/prefs.h
  11829. (PREF_DNS_TIMEOUT): New definition.
  11830. * src/main.cc
  11831. (main): Added PREF_DNS_TIMEOUT.
  11832. To add the support for a non-compact response from a tracker:
  11833. * src/PeerListProcessor.h: New class.
  11834. * src/DefaultPeerListProcessor.h: New class.
  11835. * src/DefaultPeerListProcessor.cc: New class.
  11836. * src/CompactPeerListProcessor.h: New class.
  11837. * src/CompactPeerListProcessor.cc: New class.
  11838. * src/DelegatingPeerListProcessor.h: New class.
  11839. * src/DelegatingPeerListProcessor.cc: New class.
  11840. * src/TorrentMan.cc
  11841. (addPeer): New function(overload).
  11842. (addPeer): Delete unused peers only when new peer is added.
  11843. * src/TorrentMan.h
  11844. (PeerListProcessor.h): Included.
  11845. (Peers): Removed.
  11846. (addPeer): New function(overload).
  11847. * src/TrackerUpdateCommand.cc
  11848. (netinet/in.h): Removed.
  11849. (DelegatingPeerListProcessor.h): Included.
  11850. (execute): Updated to use DelegatingPeerListProcessor.
  11851. To fix the memory leak in TorrentMan::peers:
  11852. * src/PeerAbstractCommand.cc
  11853. (onAbort): Added peer->resetStatus().
  11854. * src/Peer.h
  11855. (resetStatus): Made public.
  11856. To improve the precision of the speed calculation:
  11857. * src/SpeedCalc.h
  11858. (nextInterval): New variable.
  11859. * src/SpeedCalc.cc
  11860. (reset): Added nextInterval.
  11861. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11862. (changeSw): Set nextInterval to 15 seconds relative to the current
  11863. instant time.
  11864. * src/main.cc
  11865. (showVersion): Updated.
  11866. (showUsage): Updated.
  11867. * Release 0.8.1
  11868. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11869. * src/main.cc
  11870. (showUsage): Commented out --min-segment-size option.
  11871. (main): Commented out --min-segment-size option.
  11872. * Release 0.8.0
  11873. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11874. * src/*.{h,cc}:
  11875. Added an exception to the license which allows linking with OpenSSL.
  11876. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11877. * src/AbstractCommand.cc
  11878. (execute): Check whether the download has finished before checking
  11879. socket status.
  11880. Return true if peerStat->getStatus() == REQUEST_IDLE.
  11881. Do not exit even if no segment is available.
  11882. * src/prefs.h
  11883. (PREF_STARTUP_IDLE_TIME): New definition.
  11884. * src/PeerInteractionCommand.cc
  11885. (executeInternal): Removed max speed limit. Because it performs bad.
  11886. (receiveMessages): Added max speed limit. This was better than above,
  11887. but still a little bit to be desired. Sometimes the download speed
  11888. became much faster than I specified.
  11889. * src/SpeedCalc.h
  11890. (start): New variable.
  11891. (accumulatedLength): New variable.
  11892. (getAvgSpeed): New function.
  11893. * src/SpeedCalc.cc
  11894. (reset): Added start, accumulatedLength.
  11895. (update): Added calculation of an average speed.
  11896. (getAvgSpeed): New function.
  11897. * src/DownloadCommand.h
  11898. (sw): Removed.
  11899. * src/main.cc
  11900. (main): Added PREF_STARTUP_IDLE_TIME.
  11901. * src/PeerStat.h
  11902. (STATUS): Added REQUEST_IDLE.
  11903. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  11904. (getAvgDownloadSpeed): New function
  11905. (requestIdle): New function.
  11906. * src/SegmentMan.h
  11907. (SegmentEntryHandle): New type definition.
  11908. (SegmentEntries): Now holds SegmentEntryHandle.
  11909. (findSlowerSegmentEntry): New funtion.
  11910. * src/SegmentMan.cc
  11911. (save): Updated according to the changes in SegmentEntries.
  11912. (read): Updated according to the changes in SegmentEntries.
  11913. (FindSegmentEntryByIndex): Updated according to the changes in
  11914. SegmentEntries.
  11915. (FindSegmentEntryByCuid): Updated according to the changes in
  11916. SegmentEntries.
  11917. (checkoutSegment): Updated according to the changes in SegmentEntries.
  11918. (onNullBitfield): Updated according to the changes in SegmentEntries.
  11919. Renamed uitr as itr.
  11920. (findSlowerSegmentEntry): New function.
  11921. (getSegment): Updated according to the changes in SegmentEntries.
  11922. Added the feature that cancels the segment with slow server and fast
  11923. one takes it over.
  11924. (cancelSegment): Updated according to the changes in SegmentEntries.
  11925. (getDownloadLength): Updated according to the changes in
  11926. SegmentEntries.
  11927. (init): Assigned 0 to bitfield after deleting it.
  11928. * src/DownloadCommand.cc
  11929. (STARTUP_IDLE_TIME): Removed.
  11930. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  11931. * src/PeerChokeCommand.cc
  11932. (optUnchokingPeer): Updated according to the changes in Peer.
  11933. (ResetDelta): Removed.
  11934. (UploadFaster): Updated according to the changes in Peer.
  11935. (DownloadFaster): Updated according to the changes in Peer.
  11936. (execute): I clarify the meaning of "upload" and "download" here.
  11937. "upload" means the transfer from localhost to remote host.
  11938. "download" means the transfer from remote host to localhost.
  11939. Based on this rule, I swapped orderByUploadRate and
  11940. orderByDownloadRate.
  11941. * src/PeerInteractionCommand.cc
  11942. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  11943. (executeInternal): Removed the argument of
  11944. peerInteraction->sendMessages().
  11945. (receiveMessages): Rewritten download speed limit.
  11946. (sendKeepAlive): Removed peerInteraction->sendMessages().
  11947. * src/HttpResponseCommand.cc
  11948. (handleDefaultEncoding): If file size is unknown in torrent request,
  11949. do not call segmentMan->initBitfield() here.
  11950. Disabled persistent connection feature in torrent request.
  11951. * src/UrlRequestInfo.h
  11952. (UrlRequestInfo): Removed const qualifier from option.
  11953. * src/TorrentMan.h
  11954. (TransferStat): New class.
  11955. (deltaDownloadLength): Removed.
  11956. (deltaUploadLength): Removed.
  11957. (addDeltaDownloadLength): Removed.
  11958. (getDeltaDownloadLength): Removed.
  11959. (resetDeltaDownloadLength): Removed.
  11960. (addDeltaUploadLength): Removed.
  11961. (getDeltaUploadLength): Removed.
  11962. (resetDeltaUploadLength): Removed.
  11963. (addActivePeer): Added peer->activate().
  11964. (deleteActivePeer): Added peer->deactivate().
  11965. (calculateStat): New function.
  11966. * src/TorrentMan.cc
  11967. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  11968. (calculateStat): New function.
  11969. * src/PeerInteraction.h
  11970. (uploadLimit): Removed.
  11971. (option): New variable.
  11972. (setUploadLimit): Removed.
  11973. (getUploadSpeed): Removed.
  11974. (sendMessages): Removed the argument "currentUploadSpeed".
  11975. * src/PeerInteraction.cc
  11976. (prefs.h): Included.
  11977. (PeerInteraction): Removed uploadLimit. Added option.
  11978. (sendMessages): Rewritten upload speed limit.
  11979. (sendHandshake): Removed the argument from sendMessages().
  11980. (sendBitfield): Removed the argument from sendMessages().
  11981. * src/PeerAbstractCommand.cc
  11982. (execute): Commented out the portion of upload limit.
  11983. (onAbort): Removed peer->resetStatus().
  11984. * src/TorrentRequestInfo.cc
  11985. (timeoutSpecified): Declared extern.
  11986. (execute): Set timeout to 180 if timeout is not specified by.
  11987. command-line.
  11988. * src/PieceMessage.cc
  11989. (receivedAction): Added peer->updateDownloadLength().
  11990. Removed peer->addPeerUpload().
  11991. Removed torrentMan->addDeltaDownloadLength().
  11992. (send): Added peer->updateUploadLength().
  11993. Removed peer->addPeerDownload().
  11994. Removed torrentMan->addDeltaUploadLength().
  11995. * src/main.cc
  11996. (timeoutSpecified): New variable.
  11997. (main): Set timeoutSpecified to false.
  11998. If the command-line option "--upload-limit" is specified, then
  11999. timeoutSpecified is set to true. This option will remain in the next
  12000. release, but be deprecated in the future release.
  12001. * src/TorrentRequestInfo.h
  12002. (TorrentRequestInfo): Removed const qualifier from op.
  12003. * src/PeerStat.h
  12004. (uploadSpeed): New variable.
  12005. (PeerStat): Added default value to cuid.
  12006. (calculateUploadSpeed): New function.
  12007. (updateUploadLength): New function.
  12008. (getMaxUploadSpeed): New function.
  12009. (getAvgUploadSpeed): New function.
  12010. (reset): Added uploadSpeed. Set status to IDLE.
  12011. * src/TorrentDownloadEngine.h
  12012. (cp): Declared as Time.
  12013. (sessionDownloadLengthArray): Removed.
  12014. (sessionUploadLengthArray): Removed.
  12015. (currentCp): Removed.
  12016. (lastCalcStat): New variable
  12017. (lastElapsed): Removed.
  12018. (sessionDownloadLength): Removed.
  12019. (calculateStat): New function.
  12020. * src/TorrentDownloadEngine.cc
  12021. (initStatistics): Removed lastElapsed, cp[],
  12022. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12023. currentCp, sessionDownloadLength.
  12024. Added cp.reset() and lastCalcStat.reset().
  12025. (calculateSpeed): Changed the name of the argument.
  12026. (calculateStatistics): Rewritten.
  12027. (calculateStat): New function.
  12028. * src/Peer.h
  12029. (PeerStat.h): Included.
  12030. (peerUpload): Removed.
  12031. (peerDownload): Removed.
  12032. (peerStat): New variable.
  12033. (sessionUploadLength): New variable.
  12034. (sessionDownloadLength): New variable.
  12035. (deltaUpload): Removed.
  12036. (deltaDownload): Removed.
  12037. (resetStatus): Made private.
  12038. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12039. Removed peerUpload, peerDownload.
  12040. (updateUploadLength): New function.
  12041. (addDeltaUpload): Removed.
  12042. (updateDownloadLength): New function.
  12043. (resetDeltaUpload): Removed.
  12044. (getDeltaUpload): Removed.
  12045. (addDeltaDownload): Removed.
  12046. (calculateUploadSpeed): New function.
  12047. (resetDeltaDownload): Removed.
  12048. (getDeltaDownload): Removed.
  12049. (calculateDownloadSpeed): New function.
  12050. (getSessionUploadLength): New function.
  12051. (getSessionDownloadLength): New function.
  12052. (activate): New function.
  12053. (deactivate): New function.
  12054. (addPeerUpload): Removed.
  12055. (setPeerUpload): Removed.
  12056. (getPeerUpload): Removed.
  12057. (addPeerDownload): Removed.
  12058. (setPeerDownload): Removed.
  12059. (getPeerDownload): Removed.
  12060. * src/Peer.cc
  12061. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12062. * src/MetalinkRequestInfo.h
  12063. (MetalinkRequestInfo): Removed const qualifier from op.
  12064. * src/RequestInfo.h
  12065. (op): Removed const qualifier.
  12066. (RequestInfo): Removed const qualifier from op.
  12067. * src/prefs.h
  12068. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12069. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12070. * src/PeerInteractionCommand.cc
  12071. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12072. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12073. * src/PeerInteraction.cc
  12074. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12075. * src/main.cc
  12076. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12077. Added the description of "--max-download-limit" option.
  12078. Removed the description of "--upload-limit" option.
  12079. Added the description of "--max-upload-limit" option.
  12080. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12081. Added "--max-download-limit" option and "--max-upload-limit" option.
  12082. Added the warning message if "--upload-limit" option is used.
  12083. * src/DownloadCommand.cc
  12084. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12085. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. To rewrite segment download mechanism for HTTP/FTP download.
  12087. Use BitfieldMan to manage segment download.
  12088. * src/HttpResponseCommand.h
  12089. (executeInternal): Pass the reference of segment.
  12090. * src/AbstractCommand.cc
  12091. (prepareForRetry): Call segmentMan->cancelSegment here.
  12092. (onAbort): Call segmentMan->cancelSegment here.
  12093. * src/HttpDownloadCommand.cc
  12094. (prepareForNextSegment): New function.
  12095. * src/DownloadEngineFactory.cc
  12096. (newConsoleEngine): Removed splitter.
  12097. (newTorrentConsoleEngine): Removed splitter.
  12098. * src/Request.h
  12099. (segment): Renamed from seg.
  12100. * src/FtpInitiateConnectionCommand.h
  12101. (executeInternal): Pass the reference of segment.
  12102. * src/AbstractCommand.h
  12103. (executeInternal): Pass the reference of segment.
  12104. * src/pref.h
  12105. (PREF_SEGMENT_SIZE): New definition.
  12106. * src/HttpProxyRequestCommand.h
  12107. (executeInternal): Pass the reference of segment.
  12108. * src/HttpResponseCommand.cc
  12109. (checkResponse): Allowed status 206 when a request range starts 0.
  12110. (handleDefaultEncoding): Rewritten the code related to Segment.
  12111. (handleOtherEncoding): Rewritten the code related to Segment.
  12112. * src/SegmentMan.h
  12113. (SegmentEntry): New class.
  12114. (SegmentEntries): New type definition.
  12115. (bitfield): New variable.
  12116. (usedSegmentEntries): New variable.
  12117. (onNullBitfield): New function.
  12118. (checkoutSegment): New function.
  12119. (segments): Removed.
  12120. (splitter): Removed.
  12121. (unregisterId): Removed.
  12122. (getSegment): New function(overload)
  12123. (getDownloadedSize): Removed.
  12124. (cancelSegment): New function.
  12125. (completeSegment): New function.
  12126. (initBitfield): New function.
  12127. (hasSegment): New function.
  12128. (getDownloadLength): New function.
  12129. * src/BitfieldMan.h
  12130. (getStartIndex): New function.
  12131. (getEndIndex): New function.
  12132. (getMissingUnusedIndex): New function(overload).
  12133. (getSparseMissingUnusedIndex): New function.
  12134. * src/BitfieldMan.cc
  12135. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12136. (getMissingUnusedIndex): New function(overload).
  12137. (Range): New class.
  12138. (getStartIndex): New function.
  12139. (getEndIndex): New function.
  12140. (getSparseMissingUnusedIndex): New function.
  12141. (isBitSetInternal): Return false if the given index is less than 0.
  12142. * src/HttpInitiateConnectionCommand.h
  12143. (executeInternal): Pass the reference of segment.
  12144. * src/FtpNegotiateCommand.h
  12145. (executeInternal): Pass the reference of segment.
  12146. * src/FtpNegotiateCommand.cc
  12147. (recvSize): Initialize bitfield here.
  12148. * src/FtpTunnelResponseCommand.h
  12149. (executeInternal): Pass the reference of segment.
  12150. * src/HttpConnection.cc
  12151. (createRequest): Rewritten range header processing.
  12152. * src/DownloadCommand.h
  12153. (executeInternal): Pass the reference of segment.
  12154. (prepareForRetry): Removed.
  12155. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12156. function.
  12157. * src/main.cc
  12158. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12159. * src/SegmentMan.cc
  12160. (SegmentMan): Added bitfield. Removed splitter.
  12161. (~SegmentMan): Added bitfield. Removed splitter.
  12162. (unregisterId): Removed.
  12163. (getSegment): Rewritten.
  12164. (updateSegment): Rewritten.
  12165. (save): Rewritten.
  12166. (read): Rewritten.
  12167. (finished): Rewritten.
  12168. (getDownloadedSize): Removed.
  12169. (initBitfield): New function.
  12170. (FindSegmentEntryByIndex): New function object.
  12171. (FindSegmentEntryByCuid): New function object.
  12172. (checkoutSegment): New function.
  12173. (onNullBitfield): New function.
  12174. (getSegment): New function(overload).
  12175. (CancelSegment): New function object.
  12176. (cancelSegment): New function.
  12177. (completeSegment): New function.
  12178. (hasSegment): New function.
  12179. (getDownloadLength): New function.
  12180. * src/FtpInitiateConnectionCommand.cc
  12181. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12182. * src/Segment.h: Rewritten.
  12183. * src/Segment.cc (operator<<): New function.
  12184. * src/HttpDownloadCommand.h
  12185. (prepareForNextSegment): New function.
  12186. * src/Request.cc
  12187. (resetUrl): Made segment null.
  12188. * src/DownloadEngine.cc
  12189. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12190. * src/HttpProxyRequestCommand.h
  12191. (executeInternal): Pass the reference of segment.
  12192. * src/DownloadCommand.cc
  12193. (executeInternal): Rewritten the code related to Segment.
  12194. (prepareForRetry): Removed.
  12195. (prepareForNextSegment): Rewritten.
  12196. * src/FtpTunnelResponseCommand.h
  12197. (executeInternal): Pass the reference of segment.
  12198. To add HTTP 1.1 persistent connection support(experimental)
  12199. * src/HttpRequestCommand.cc
  12200. (executeInternal): Disable keep alive if it is disabled by
  12201. configuration.
  12202. * src/Request.h
  12203. (keepAlive): New variable.
  12204. (isKeepAlive): New function.
  12205. (setKeepAlive): New function.
  12206. * src/pref.h
  12207. (PREF_HTTP_KEEP_ALIVE): New definition.
  12208. * src/HttpResponseCommand.cc
  12209. (executeInternal): Check the remote server supports keep alive.
  12210. * src/HttpConnection.cc
  12211. (createRequest): Send "Connection: close" only if keep alive is
  12212. disabled.
  12213. * src/main.cc
  12214. (main):
  12215. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12216. To add max download speed limit:
  12217. * src/pref.h
  12218. (PREF_MAX_SPEED_LIMIT): New definition.
  12219. * src/PeerInteractionCommand.cc
  12220. (executeInternal): Added max download speed limit. Not tested yet.
  12221. * src/SegmentMan.h
  12222. (PeerStats): New type definition.
  12223. (peerStats): New variable.
  12224. (registerPeerStat): New function.
  12225. (FindPeerStat): New function object.
  12226. (getPeerStat): New function.
  12227. (calculateDownloadSpeed): New function.
  12228. * src/SpeedCalc.h: New class.
  12229. * src/SpeedCalc.cc: New class.
  12230. * src/main.cc
  12231. (main):
  12232. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12233. download speed is not restricted).
  12234. * src/PeerStat.h: New class.
  12235. * src/SegmentMan.cc
  12236. (registerPeerStat): New function.
  12237. (calculateDownloadSpeed): New function.
  12238. * src/DownloadCommand.cc
  12239. (STARTUP_IDLE_TIME): New definition.
  12240. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12241. downloadStart.
  12242. (~DownloadCommand): Call peerStat->downloadStop.
  12243. (executeInternal): Added download speed limitter. Rewritten lowest
  12244. speed limitter.
  12245. * src/HttpConnection.cc
  12246. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12247. * src/AbstractCommand.cc
  12248. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12249. Added hostname to the error message.
  12250. * src/ConsoleDownloadEngine.cc
  12251. (calculateStatistics): Initialize psize with dlSize.
  12252. * src/PieceMessage.cc
  12253. (receivedAction): Do not call peerInteraction->abortPiece here.
  12254. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12255. * src/BitfieldMan.h
  12256. (clearAllUseBit): New function.
  12257. (setAllUseBit): New function.
  12258. * src/BitfieldMan.cc
  12259. (clearAllBit): Do not clear useBitfield here.
  12260. (clearAllUseBit): New function.
  12261. (setAllUseBit): New function.
  12262. * src/Piece.cc
  12263. (clearAllBlock): Call bitfield->clearAllUseBit().
  12264. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12265. To make filename URL-decoded:
  12266. * src/HttpResponseCommand.h: Updated doc.
  12267. * src/HttpResponseCommand.cc
  12268. (determinFilename): Made filename URL-decoded.
  12269. * src/FtpInitiateConnectionCommand.cc
  12270. (executeInternal): Made filename URL-decoded.
  12271. * src/Util.h (urldecode): New function.
  12272. * src/Util.cc (urldecode): New function.
  12273. To fix a bug that caused assertion failure in ares_strerror:
  12274. * src/NameResolver.cc (callback): Fixed the bug.
  12275. * Release 0.7.3
  12276. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12277. To add --seed-time and --seed-ratio command-line option:
  12278. * src/Option.h (getAsDouble): New function.
  12279. * src/Option.cc (getAsDouble): New function.
  12280. * src/SeedCheckCommand.h: New class.
  12281. * src/SeedCheckCommand.cc: New class.
  12282. * src/DownloadEngineFactory.cc
  12283. (SeedCheckCommand.h): Included.
  12284. (UnionSeedCriteria.h): Included.
  12285. (TimeSeedCriteria.h): Included.
  12286. (ShareRatioSeedCriteria.h): Included.
  12287. (newTorrentConsoleEngine): Added the processing of seed option.
  12288. * src/SeedCriteria.h: New class.
  12289. * src/ShareRatioSeedCriteria.h: New class.
  12290. * src/TimeSeedCriteria.h: New class.
  12291. * src/UnionSeedCriteria.h: New class.
  12292. * src/prefs.h
  12293. (PREF_SEED_TIME): New definition.
  12294. (PREF_SEED_RATIO): New definition.
  12295. * src/main.cc
  12296. (showUsage): Added --seed-time and --seed-ratio option.
  12297. (main): Added --seed-time and --seed-ratio option.
  12298. Made default log file name "/dev/null".
  12299. * src/SharedHandle.h
  12300. (SharedHandle): Copy constructor. Made it assignable from the
  12301. SharedHandle of the subclasses.
  12302. (operator=): Made it assignable from the SharedHandle of the
  12303. subclasses.
  12304. (getRefCount): New function.
  12305. To add notice log level and the switch to write log to stdout. This
  12306. switch is configurable per log level.
  12307. * src/Logger.h
  12308. (notice): New function.
  12309. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12310. constant.
  12311. * src/LogFactory.cc
  12312. (getInstance): The use of NullLogger was removed. A log message with
  12313. notice log level was made written to stdout along with log file.
  12314. * src/NullLogger.h
  12315. (notice): New function.
  12316. * src/SimpleLogger.h
  12317. (writeHeader): Added the 'file' argument.
  12318. (writeLog): Added the 'file' argument.
  12319. (writeFile): New function.
  12320. (stdoutField): New variable.
  12321. (SimpleLogger): Removed the default constructor.
  12322. (SimpleLogger): Made the default value of logfile 0.
  12323. (debug): Added 'virtual' keyword.
  12324. (info): Added 'virtual' keyword.
  12325. (warn): Added 'virtual' keyword.
  12326. (error): Added 'virtual' keyword.
  12327. (notice): New function.
  12328. (setStdout): New function.
  12329. * src/SimpleLogger.cc
  12330. (WRITE_LOG): Replaced writeLog with writeFile.
  12331. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12332. (SimpleLogger): Removed the default constructor.
  12333. (setStdout): New function.
  12334. (writeLog): Added the handling of NOTICE log level.
  12335. (writeFile): New function.
  12336. (notice): New function.
  12337. * src/TorrentMan.h: Updated doc.
  12338. * src/BitfieldMan.h: Updated doc.
  12339. * src/TrackerWatcherCommand.cc
  12340. (execute): Return true if error occurred in the request to the tracker
  12341. and halt is requested.
  12342. * src/TrackerUpdateCommand.cc
  12343. (execute): Return true if error occurred in the request to the tracker
  12344. and halt is requested.
  12345. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12346. DownloadEngine:
  12347. * src/TorrentConsoleDownloadEngine.h
  12348. (onSelectiveDownloadingCompletes): Removed.
  12349. * src/TorrentConsoleDownloadEngine.cc
  12350. (onSelectiveDownloadingCompletes): Removed.
  12351. * src/TorrentDownloadEngine.h
  12352. (onEndOfRun): Added 'virtual' keyword.
  12353. (afterEachIteration): Removed.
  12354. (onSelectiveDownloadingCompletes): Removed.
  12355. * src/TorrentDownloadEngine.cc
  12356. (onEndOfRun): Removed filenameFixed.
  12357. (afterEachIteration): Removed.
  12358. * src/TorrentMan.cc
  12359. (completePiece): Call onDownloadComplete here.
  12360. (onDownloadComplete): Added 2 log messages.
  12361. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12362. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12363. * src/NameResolver.h: Added the prototype declaration of callback().
  12364. To support c-ares library:
  12365. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12366. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12367. * src/FtpInitiateConnectionCommand.h:
  12368. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12369. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12370. * src/HttpInitiateConnectionCommand.h:
  12371. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12372. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12373. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12374. #1542285 by tizianomueller)
  12375. * src/HttpInitiateConnectionCommand.cc:
  12376. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12377. * src/FtpInitiateConnectionCommand.cc:
  12378. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12379. * src/DownloadEngine.h:
  12380. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12381. * src/DownloadEngine.cc:
  12382. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12383. To fix the bug that causes compilation failure with metalink-support
  12384. disabled(bug#1543587):
  12385. * src/main.cc: Fixed with the patch by tizianomueller.
  12386. * Release 0.7.2
  12387. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12388. * src/main.cc
  12389. (main): Added a message to inform users that aria2 is starting to
  12390. verify checksum.
  12391. * src/RequestInfo.cc
  12392. (printDownloadAbortMessage): Added a message to inform users that
  12393. transfer can be resumed.
  12394. * src/FeatureConfig.cc
  12395. (FEATURE_ASYNC_DNS): New definition.
  12396. (FeatureConfig): Added aysnc DNS entry.
  12397. To replace CommandUuid with Command* in SocketEntry and
  12398. NameResolverEntry:
  12399. * src/DownloadEngine.h
  12400. (CommandUuids): Removed.
  12401. (SocketEntry::commandUuid): Removed.
  12402. (SocketEntry::command): New variable.
  12403. (SocketEntry::SocketEntry): Updated.
  12404. (SocketEntry::operator==): Updated.
  12405. (NameResolverEntry::commandUuid): Removed.
  12406. (NameResolverEntry::command): New variable.
  12407. (NameResolverEntry::NameResolverEntry): Updated.
  12408. (NameResolverEntry::operator==): Updated.
  12409. (waitData): Changed the argument type.
  12410. (addSocketForReadCheck): Changed the argument type.
  12411. (deleteSocketForReadCheck): Changed the argument type.
  12412. (addSocketForWriteCheck): Changed the argument type.
  12413. (deleteSocketForWriteCheck): Changed the argument type.
  12414. (addNameResolverCheck): Changed the argument type.
  12415. (deleteNameResolverCheck): Changed the argument type.
  12416. * src/DownloadEngine.cc
  12417. (FindCommand): Removed.
  12418. (run): Removed activeUuid. Added activeCommands instead.
  12419. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12420. (AccumulateActiveCommand): New function object.
  12421. (waitData): Use AccumulateActiveCommand.
  12422. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12423. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12424. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12425. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12426. (addNameResolverCheck): Use Command instead of CommandUuid.
  12427. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12428. * src/AbstractCommand.cc
  12429. (disableReadCheckSocket): Updated according to the changes in
  12430. DownloadEngine.
  12431. (setReadCheckSocket): Updated according to the changes in
  12432. DownloadEngine.
  12433. (disableWriteCheckSocket): Updated according to the changes in
  12434. DownloadEngine.
  12435. (setWriteCheckSocket): Updated according to the changes in
  12436. DownloadEngine.
  12437. (setNameResolverCheck): Updated according to the changes in
  12438. DownloadEngine.
  12439. (disableNameResolverCheck): Updated according to the changes in
  12440. DownloadEngine.
  12441. * src/AbstractCommand.cc
  12442. (disableReadCheckSocket): Updated according to the changes in
  12443. DownloadEngine.
  12444. (setReadCheckSocket): Updated according to the changes in
  12445. DownloadEngine.
  12446. (disableWriteCheckSocket): Updated according to the changes in
  12447. DownloadEngine.
  12448. (setWriteCheckSocket): Updated according to the changes in
  12449. DownloadEngine.
  12450. * release 0.7.1
  12451. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12452. To handle the case where some BitTorrent tracker requires all letters
  12453. except for [A-Za-z0-9] is URL encoded.
  12454. * src/Util.h
  12455. (torrentUrlencode): New function.
  12456. * src/Util.cc
  12457. (ctype.h): Included.
  12458. (torrentUrlencode): New function.
  12459. * src/TrackerWatcherCommand.cc
  12460. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12461. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12462. To add asynchronous DNS support(libares):
  12463. * src/AbstractCommand.h
  12464. (setNameResolverCheck): New function.
  12465. (disableNameResolverCheck): New function
  12466. (resolveHostname): New function.
  12467. * src/AbstractCommand.cc
  12468. (setNameResolverCheck): New function.
  12469. (disableNameResolverCheck): New function
  12470. (resolveHostname): New function.
  12471. * src/FtpInitiateConnectionCommand.h
  12472. (nameResolver): New function.
  12473. * src/FtpInitiateConnectionCommand.cc
  12474. (Util.h): Included.
  12475. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  12476. disableWriteCheckSocket.
  12477. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  12478. (executeInternal): Added async DNS support.
  12479. * src/HttpInitiateConnectionCommand.h
  12480. (nameResolver): New function.
  12481. * src/HttpInitiateConnectionCommand.cc
  12482. (DlRetryEx.h): Included.
  12483. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  12484. disableWriteCheckSocket.
  12485. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  12486. (executeInternal): Added async DNS support.
  12487. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  12488. by extern "C" declaration.
  12489. * src/NameResolver.cc: New class.
  12490. * src/Util.h:
  12491. (isNumberAndDotsNotation): New function
  12492. * src/Util.cc
  12493. (isNumberAndDotsNotation): New function.
  12494. * src/DownloadEngine.h
  12495. (NameResolver.h): Included.
  12496. (NameResolverEntry): New class.
  12497. (NameResolverEntries): New type definition.
  12498. (addNameResolverCheck): New function.
  12499. (deleteNameResolverCheck): New function.
  12500. * src/DownloadEngine.cc
  12501. (run): Initialize cp with 0.
  12502. (SetDescriptor::operator()): Added for NameResolverEntry.
  12503. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  12504. (waitData): Check nameResolver entries.
  12505. (updateFdSet): Update fds in nameResolver entries.
  12506. (addNameResolverCheck): New function.
  12507. (deleteNameResolverCheck): new function.
  12508. * src/PeerInteractionCommand.cc
  12509. (executeInternal): Fixed wrong socket handling.
  12510. * src/main.cc
  12511. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  12512. * src/Util.cc
  12513. (fileChecksum): Removed the call to ctx.digestReset().
  12514. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12515. * po/ru.po: Azamat sent me Russian translation.
  12516. * src/FtpNegotiateCommand.cc
  12517. (recvGreeting): Call disableWriteCheckSocket just after
  12518. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  12519. (recvRetr): Recognized status code 125 as a acceptable response code.
  12520. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  12521. case-insesitive filesystem(BUG#1531057).
  12522. * src/Time.h: Renamed as TimeA2.h.
  12523. * src/Time.cc: Renamed as TimeA2.cc.
  12524. * src/TimeA2.h: New class.
  12525. * src/TimeA2.cc: New class.
  12526. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12527. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12528. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12529. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12530. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12531. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12532. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12533. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12534. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12535. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12536. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12537. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12538. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12539. * release 0.7.0
  12540. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12541. * src/PeerChokeCommand.h
  12542. (PeerChokeCommand): Rearranged the arguments.
  12543. * src/PeerChokeCommand.cc
  12544. (PeerChokeCommand): Rearranged the arguments.
  12545. * src/MetalinkEntry.h
  12546. (Checksum.h): Included.
  12547. (md5): Removed.
  12548. (sha1): Removed.
  12549. (checksum): New variable.
  12550. (operator=): Updated.
  12551. (check): Removed.
  12552. * src/prefs.h
  12553. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12554. (PREF_FOLLOW_TORRENT): New definition.
  12555. (PREF_SELECT_FILE): New definition.
  12556. (PREF_FOLLOW_METALINK): New definition.
  12557. * src/MetalinkResource.h
  12558. (TYPE_HTTPS): Added to enum TYPE.
  12559. * src/TorrentMan.cc
  12560. (~TorrentMan): Rewritten.
  12561. * src/MultiDiskWriter.cc
  12562. (MultiDiskAdaptor): Updated according to the changes in
  12563. MessageDigestContext.
  12564. (~MultiDiskAdaptor): Updated according to the changes in
  12565. MessageDigestContext.
  12566. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12567. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12568. * src/Util.h
  12569. (fileChecksum): Updated according to the changes in
  12570. MessageDigestContext.
  12571. * src/Util.cc
  12572. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12573. (fileChecksum): Updated according to the changes in
  12574. MessageDigestContext.
  12575. * src/messageDigest.h: Rewritten.
  12576. * src/MetalinkEntry.cc
  12577. (check): Removed.
  12578. (Supported): Updated.
  12579. (dropUnsupportedResource): Fixed a memory leak.
  12580. * src/ShaVisitor.cc
  12581. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12582. (~ShaVisitor): Updated according to the changes in
  12583. MessageDigestContext.
  12584. (visit): Updated according to the changes in MessageDigestContext.
  12585. * src/main.cc
  12586. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12587. command-line option added.
  12588. * src/DownloadEngine.h
  12589. (SocketEntry): New class.
  12590. (SocketEntries): New definition.
  12591. (PairFind): Removed.
  12592. (SockCmdMap): Removed.
  12593. * src/DownloadEngine.cc
  12594. (DownloadEngine): Rewritten.
  12595. (~DownloadEngine): Rewritten.
  12596. (run): Renamed activeCommandUuids as activeUuids.
  12597. (SetDescriptor): Rewritten.
  12598. (AccumulateActiveCommandUuid): Removed.
  12599. (AccumulateActiveUuid): New function object.
  12600. (waitData): Rewritten.
  12601. (updateFdSet): Rewritten.
  12602. (addSocket): Rewritten.
  12603. (deleteSocket): Rewritten.
  12604. (addSocketForReadCheck): Rewritten.
  12605. (deleteSocketForReadCheck): Rewritten.
  12606. (addSocketForWriteCheck): Rewritten.
  12607. (deleteSocketForWriteCheck): Rewritten.
  12608. * src/Xml2MetalinkProcessor.cc
  12609. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12610. * src/DownloadCommand.cc
  12611. (executeInternal): Added the check routine for lowest speed limit.
  12612. * src/AbstractDiskWriter.cc
  12613. (AbstractDiskWriter): Updated according to the changes in
  12614. MessageDigestContext.
  12615. (~AbstractDiskWriter): Updated according to the changes in
  12616. MessageDigestContext.
  12617. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12618. * src/RequestInfo.h: New class.
  12619. * src/UrlRequestInfo.h: New class.
  12620. * src/UrlRequestInfo.cc: New class.
  12621. * src/TorrentRequestInfo.h: New class.
  12622. * src/TorrentRequestInfo.cc: New class.
  12623. * src/MetalinkRequestInfo.h: New class.
  12624. * src/MetalinkRequestInfo.cc: New class.
  12625. * src/Checksum.h: New class.
  12626. * src/DownloadEngineFactory.h: New class.
  12627. * src/DownloadEngineFactory.cc: New class.
  12628. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12629. * src/Option.h
  12630. (getAsBool): New function.
  12631. * src/Option.cc
  12632. (prefs.h): Included.
  12633. (defined): 0-length value is now recognized as undefined.
  12634. (getAsInt): Rewritten.
  12635. (getAsLLInt): Rewritten.
  12636. (getAsBool): New function.
  12637. * src/FeatureConfig.h: Rewritten.
  12638. * src/FeatureConfig.cc: Rewritten.
  12639. * src/prefs.h
  12640. (PREF_STDOUT_LOG): New definition.
  12641. (PREF_LOG): New definition.
  12642. (PREF_DIR): New definition.
  12643. (PREF_OUT): New definition.
  12644. (PREF_SPLIT): New definition.
  12645. (PREF_DAEMON): New definition.
  12646. (PREF_REFERER): New definition.
  12647. (PREF_TORRENT_FILE): New definition.
  12648. (PREF_LISTEN_PORT): New definition.
  12649. (PREF_METALINK_FILE): New definition.
  12650. (PREF_METALINK_VERSION): New definition.
  12651. (PREF_METALINK_LANGUAGE): New definition.
  12652. (PREF_METALINK_OS): New definition.
  12653. (PREF_METALINK_SERVERS): New definition.
  12654. * src/main.cc
  12655. (main): Following command-line parameters are now put into Option
  12656. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12657. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12658. metalinkLanguage, metalinkOs, metalinkServers
  12659. To fix the bug that aria2 can not handle http response header properly.
  12660. * src/HttpHeader.cc
  12661. (put): Made name lowercased.
  12662. (defined): Made name lowercased.
  12663. (getFirst): Made name lowercased.
  12664. (get): Made name lowercased.
  12665. (getFirstAsInt): Rewritten.
  12666. (getFirstAsLLInt): Rewritten.
  12667. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12668. * src/TorrentMan.h:
  12669. (advertisePiece): Updated doc.
  12670. (getAdvertisedPieceIndexes): Updated doc.
  12671. (removeAdvertisedPiece); New function.
  12672. * src/TorrentMan.cc
  12673. (FindElapsedHave): New function object.
  12674. (removeAdvertisedPiece): New function.
  12675. * src/HaveEraseCommand.h: New class.
  12676. * src/HaveEraseCommand.cc: New class.
  12677. * src/FeatureConfig.h: New class.
  12678. * src/FeatureConfig.cc: New class.
  12679. * src/Request.h
  12680. (defaultPorts): Removed.
  12681. * src/Request.cc
  12682. (FeatureConfig.h): Included.
  12683. (Request): Removed the statements related to defaultPorts.
  12684. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12685. A default port number is now retrieved from FeatureConfig.
  12686. * src/main.cc
  12687. (HaveEraseCommand.h): Included.
  12688. (showVersion): Added the output of feature list.
  12689. (main): Added HaveEraseCommand to command queue in BitTorrent
  12690. downloading.
  12691. * src/PeerInteractionCommand.h
  12692. (chokeCheckPoint): Commented out.
  12693. (periodicExecPoint): New variable.
  12694. * src/PeerInteractionCommand.cc
  12695. (executeInternal): Following methods are now called in at least every
  12696. 0.5 seconds to reduce CPU usage:
  12697. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12698. checkHave(), sendKeepAlive().
  12699. (checkLongTimePeerChoking): Commented out.
  12700. * src/BitfieldMan.h
  12701. (getNthBitIndex): Changed the method signature.
  12702. (getMissingIndexRandomly): Changed the method signature.
  12703. * src/BitfieldMan.cc
  12704. (getNthBitIndex): Rewritten
  12705. (getMissingIndexRandomly): Rewritten.
  12706. (hasMissingPiece): Rewritten.
  12707. (getMissingIndex): Refactored.
  12708. (getMissingUnusedIndex); Refactored.
  12709. (getMissingIndex): Refactored.
  12710. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12711. * src/PeerMessage.h
  12712. (Piece.h): Included.
  12713. (SharedHandle.h): Included.
  12714. (invalidate): New variable.
  12715. (uploading): New variable.
  12716. (isInvalidate): New function.
  12717. (isUploading): New function.
  12718. (onPush): New function.
  12719. (onChoked): New function.
  12720. (onCanceled): New function.
  12721. (onAbortPiece): New function.
  12722. (PeerMessageHandle): New type definition.
  12723. * src/PeerMessage.cc
  12724. (PeerMessage): Added the initialization for invalidate and uploading.
  12725. * src/CancelMessage.h
  12726. (CancelMessage): Rewritten.
  12727. * src/RejectMessage.h
  12728. (RejectMessage): Rewritten.
  12729. * src/Metalinker.h
  12730. (operator=): Defined.
  12731. * src/MetaEntry.h
  12732. (operator=): Defined.
  12733. * src/MetalinkResource.h
  12734. (operator=): Defined.
  12735. * src/AllowedFastMessage.h
  12736. (AllowedFastMessage): Rewritten.
  12737. * src/HandshakeMessage.h
  12738. (HandshakeMessage): New function(overload).
  12739. * src/HandshakeMessage.cc
  12740. (HandshakeMessage): Rewritten.
  12741. (init): New function.
  12742. * src/HaveMessage.h
  12743. (HaveMessage): Rewritten.
  12744. * src/Time.h
  12745. (operator=): Defined the function body here.
  12746. * src/Time.cc
  12747. (operator=): Removed.
  12748. * src/SocketCore.h
  12749. (operator==): Defined here.
  12750. (operator!=): Defined here.
  12751. (operator<): Defined here.
  12752. * src/SocketCore.cc
  12753. (operator==): Removed.
  12754. (operator<): Removed.
  12755. * src/BitfieldMan.h
  12756. (operator=): Defined the function body here.
  12757. * src/BitfieldMan.cc
  12758. (operator=): Removed.
  12759. * src/TorrentMan.h
  12760. (deleteErrorPeer): Removed.
  12761. (deleteUnusedPeer); New function.
  12762. * src/TorrentMan.cc
  12763. (addPeer): Call deleteUnusedPeer.
  12764. (deleteErrorPeer): Removed.
  12765. (deleteUnusedPeer): New function.
  12766. * src/PeerAbstractCommand.h
  12767. (setNoCheck): New function.
  12768. (noCheck): New variable.
  12769. * src/PeerAbstractCommand.cc
  12770. (PeerAbstractCommand): Added the initialization of noCheck.
  12771. (execute): Added a check for noCheck.
  12772. (setNoCheck): New function.
  12773. * src/Util.h
  12774. (stdio.h): Included.
  12775. * src/Util.cc
  12776. (unistd.h): Included.
  12777. * src/DefaultDiskWriter.cc
  12778. (unistd.h): Included.
  12779. * src/Peer.h
  12780. (operator==): Defined the function body here.
  12781. (operator!=): Defined the function body here.
  12782. * src/Peer.cc
  12783. (operator==): Removed.
  12784. (operator!=): Removed.
  12785. * src/Piece.h
  12786. (Piece): Defined the function body here(copy constructor).
  12787. (operator=): Defined the function body here.
  12788. (operator==): Defined the function body here.
  12789. * src/Piece.cc
  12790. (Piece): Removed(copy constructor).
  12791. (operator=): Removed.
  12792. (operator==): Removed.
  12793. * src/PeerMessageUtil.h
  12794. (ChokeMessage.h): Removed.
  12795. (UnchokeMessage.h): Removed.
  12796. (InterestedMessage.h): Removed.
  12797. (NotInterestedMessage.h): Removed.
  12798. (HaveMessage.h): Removed.
  12799. (BitfieldMessage.h): Removed.
  12800. (RequestMessage.h): Removed.
  12801. (CancelMessage.h): Removed.
  12802. (PieceMessage.h): Removed.
  12803. (HandshakeMessage.h): Removed.
  12804. (KeepAliveMessage.h): Removed.
  12805. (PortMessage.h): Removed.
  12806. (HaveAllMessage.h): Removed.
  12807. (HaveNoneMessage.h): Removed.
  12808. (PeerConnection.h): Removed.
  12809. (HandshakeMessage.h): Included.
  12810. * src/BitfieldMessage.h
  12811. (init): New function.
  12812. (BitfieldMessage): Rewritten.
  12813. (BitfieldMessage): New function(overload).
  12814. * src/RequestSlot.h
  12815. (operator=): Defined the function body here.
  12816. (operator==): Defined the function body here.
  12817. * src/RequestSlot.cc
  12818. (operator=): Removed.
  12819. (operator==): Removed.
  12820. To remove the dependency on the PeerMessage subclass from
  12821. PeerInteraction:
  12822. * src/PeerMessageFactory.h: New class.
  12823. * src/PeerMessageFactory.cc: New class.
  12824. * src/SimplePeerMessage.cc
  12825. (send): If invalidate is true then do nothing.
  12826. * src/PeerInteractionCommand.cc
  12827. (HandshakeMessage.h): Included.
  12828. (KeepAliveMessage.h): Included.
  12829. (ChokeMessage.h): Included.
  12830. (UnchokeMessage.h): Included.
  12831. (HaveMessage.h): Included.
  12832. (executeInternal): Call setNoCheck().
  12833. Removed setWriteCheckSocket(socket).
  12834. * src/PeerInteraction.h
  12835. (ChokeMessage.h): Removed.
  12836. (UnchokeMessage.h): Removed.
  12837. (InterestedMessage.h): Removed.
  12838. (NotInterestedMessage.h): Removed.
  12839. (HaveMessage.h): Removed.
  12840. (BitfieldMessage.h): Removed.
  12841. (RequestMessage.h): Removed.
  12842. (CancelMessage.h): Removed.
  12843. (PieceMessage.h): Removed.
  12844. (HandshakeMessage.h): Removed.
  12845. (KeepAliveMessage.h): Removed.
  12846. (PortMessage.h): Removed.
  12847. (HaveAllMessage.h): Removed.
  12848. (HaveNoneMessage.h): Removed.
  12849. (RejectMessage.h): Removed.
  12850. (AllowedFastMessage.h): Removed.
  12851. (SuggestPieceMessage.h): Removed.
  12852. (PeerMessageFactory.h): Included.
  12853. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12854. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12855. (PeerMessageFactory): New variable.
  12856. (createPeerMessage): Removed.
  12857. (createHandshakeMessage): Removed.
  12858. (setPeerMessageCommonProperty): Removed.
  12859. (addRequestSlot): New function.
  12860. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12861. (getPeerMessageFactory): New function.
  12862. (createRequestMessage): Removed.
  12863. (createCancelMessage): Removed.
  12864. (createPieceMessage): Removed.
  12865. (createHaveMessage): Removed.
  12866. (createChokeMessage): Removed.
  12867. (createUnchokeMessage): Removed.
  12868. (createInterestedMessage): Removed.
  12869. (createNotInterestedMessage): Removed.
  12870. (createBitfieldMessage): Removed.
  12871. (createKeepAliveMessage): Removed.
  12872. (createHaveAllMessage): Removed.
  12873. (createHaveNoneMessage): Removed.
  12874. (createRejectMessage): Removed.
  12875. (createAllowedFastMessage): Removed.
  12876. * src/PeerInteraction.cc
  12877. (PeerInteraction): Allocate PeerMessageFactory here.
  12878. (~PeerInteraction): Deallocate PeerMessageFactory here.
  12879. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  12880. PieceMessage::ID.
  12881. (addMessage): Simplified by using PeerMessage::onPush().
  12882. (addRequestSlot): New function.
  12883. (rejectAllPieceMessageInQueue): Simplified by using
  12884. PeerMessage::onChoked().
  12885. (rejectPieceMessageInQueue): Simplified by using
  12886. PeerMessage::onCanceled().
  12887. (abortPiece): Simplified by using PeerMessage::abortPiece().
  12888. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12889. (createHandshakeMessage): Removed.
  12890. (createPeerMessage): Removed.
  12891. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  12892. (setPeerMessageCommonProperty): Removed.
  12893. (createRequestMessage): Removed.
  12894. (createCancelMessage): Removed.
  12895. (createPieceMessage): Removed.
  12896. (createHaveMessage): Removed.
  12897. (createChokeMessage): Removed.
  12898. (createUnchokeMessage): Removed.
  12899. (createInterestedMessage): Removed.
  12900. (createNotInterestedMessage): Removed.
  12901. (createBitfieldMessage): Removed.
  12902. (createKeepAliveMessage): Removed.
  12903. (createHaveAllMessage): Removed.
  12904. (createHaveNoneMessage): Removed.
  12905. (createRejectMessage): Removed.
  12906. (createAllowedFastMessage): Removed.
  12907. * src/PieceMessage.h
  12908. (createRejectMessage): New function.
  12909. (PieceMessage): Rewritten.
  12910. (onChoked): New function.
  12911. (onCanceled): New function.
  12912. * src/PieceMessage.cc
  12913. (send): If invalidate is true then do nothing, just return.
  12914. (createRejectMessage): New function.
  12915. (onChoked): New function.
  12916. (onCanceled): New function.
  12917. * src/RequestMessage.h
  12918. (RequestMessage): Rewritten.
  12919. (onPush): New function.
  12920. (onAbortPiece): New function.
  12921. * src/RequestMessage.cc
  12922. (onPush): New function.
  12923. (onAbortPiece): New function.
  12924. Update fd_set when a socket is added or deleted in order to improve
  12925. performance:
  12926. * src/DownloadEngine.h
  12927. (rfdset): New variable.
  12928. (wfdset): New variable.
  12929. (updateFdSet): New function.
  12930. * src/DownloadEngine.cc
  12931. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  12932. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  12933. (waitData): Copy rfdset and wfdset.
  12934. (updateFdSet): New function.
  12935. (addSocket): Call updateFdSet.
  12936. (deleteSocket): Call updateFdSet.
  12937. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12938. To add the support for Metalink3.0 backward compatible links:
  12939. * src/Request.h
  12940. (SAFE_CHARS): Added '#'.
  12941. (METALINK_MARK): New definition.
  12942. * src/Request.cc
  12943. (parseUrl): Added the support for Metalink3.0 backward compatible
  12944. links.
  12945. etc
  12946. * src/PeerInteraction.cc
  12947. (MsgPushBack): Removed.
  12948. (sendMessages): Use STL copy and back_inserter.
  12949. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  12950. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  12951. * src/TorrentMan.h
  12952. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  12953. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12954. * src/SharedHandle.h: New class.
  12955. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  12956. * src/HttpResponseCommand.h
  12957. (HttpResponseCommand): Wrapped Socket.
  12958. * src/SocketCore.h
  12959. (operator==): New function.
  12960. (operator!=): New function.
  12961. (operator<): New function.
  12962. (getSockfd): New function.
  12963. (isOpen): New function.
  12964. (writeData): New function.
  12965. * src/SocketCore.cc
  12966. (operator==): New function.
  12967. (operator!=): New function.
  12968. (operator<): New function.
  12969. * src/AbstractCommand.h
  12970. (socket): Changed its type to SocketHandle.
  12971. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12972. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12973. (disableReadCheckSocket): New function.
  12974. (disableWriteCheckSocket): New function.
  12975. (readCheckTarget): Changed its type to SocketHandle.
  12976. (writeCheckTarget): Changed its type to SocketHandle.
  12977. (AbstractCommand): Replaced Socket with SocketHandle.
  12978. * src/AbstractCommand.cc
  12979. (AbstractCommand): Replaced Socket with SocketHandle.
  12980. (~AbstractCommand): Removed the deallocation for Socket object.
  12981. (disableReadCheckSocket): New function.
  12982. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12983. (disableWriteCheckSocket): New function.
  12984. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12985. * src/HttpDownloadCommand.cc
  12986. (DownloadCommand): Replaced Socket with SocketHandle.
  12987. * src/PeerAbstractCommand.h
  12988. (socket): Changed its type to SocketHandle.
  12989. (peer): Changed its type to PeerHandle.
  12990. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12991. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12992. (disableReadCheckSocket): New function.
  12993. (disableWriteCheckSocket): New function.
  12994. (readCheckTarget): Changed its type to SocketHandle.
  12995. (writeCheckTarget): Changed its type to SocketHandle.
  12996. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12997. Replaced Peer with PeerHandle.
  12998. * src/HttpRequestCommand.cc
  12999. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13000. Use disableReadCheckSocket.
  13001. * src/PeerInitiateConnectionCommand.h
  13002. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13003. * src/PeerChokeCommand.cc
  13004. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13005. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13006. (execute): Use PeerHandle.
  13007. * src/PeerConnection.h
  13008. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13009. (socket): Changed its type to SocketHandle.
  13010. (PeerConnection): Replaced Socket with SocketHandle.
  13011. * src/PeerConnection.cc
  13012. (PeerConnection): Replaced Socket with SocketHandle.
  13013. * src/PeerInteractionCommand.h
  13014. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13015. Replaced Peer with PeerHandle.
  13016. * src/PeerInteractionCommand.cc
  13017. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13018. Replaced Peer with PeerHandle.
  13019. (executeInternal): Use disableWriteCheckSocket.
  13020. Use HandshakeMessageHandle.
  13021. (receiveMessages): Use PeerMessageHandle.
  13022. (prepareForNextPeer): Use PeerHandle.
  13023. * src/HttpProxyRequestCommand.h
  13024. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13025. * src/HttpResponseCommand.cc
  13026. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13027. * src/TorrentMan.cc
  13028. (nullPeer): Added external reference.
  13029. (~TorrentMan): Removed the deallocation of the elements of peers.
  13030. (addPeer): Rewritten.
  13031. (isPeerAvailable): Use nullPeer.
  13032. (deleteOldpeers): Replaced with deleteErrorPeer.
  13033. (deleteErrorPeer): New function.
  13034. (getPeer): Use PeerHandle and nullPeer.
  13035. (hasMissingPiece): Replaced Peer with PeerHandle.
  13036. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13037. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13038. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13039. (getMissingPiece): Replaced Peer with PeerHandle.
  13040. * src/FtpNegotiateCommand.cc
  13041. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13042. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13043. (recvGreeting): Use disableWriteCheckSocket.
  13044. (recvPasv): Removed the allocation of Socket.
  13045. Use disableReadCheckSocket.
  13046. (sendRestPasv): Use disableWriteCheckSocket.
  13047. (recvRetr): Changed assertion.
  13048. * src/PeerInteraction.h
  13049. (SharedHandle.h): Included SharedHandle.h.
  13050. (PeerMessageHandle): New type definition.
  13051. (HandshakeMessageHandle): New type definition.
  13052. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13053. (peer): Changed its type to PeerHandle.
  13054. (createHandshakeMessage): Replaced HandshakeMessage with
  13055. HandshakeMessageHandle.
  13056. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13057. (PeerInteraction): Replaced Peer with PeerHandle.
  13058. Replaced Socket with SocketHandle.
  13059. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13060. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13061. (receiveHandshake): Replaced HandshakeMessage with
  13062. HandshakeMessageHandle.
  13063. * src/PeerInteraction.cc
  13064. (PeerInteraction): Replaced Peer with PeerHandle.
  13065. Replaced Socket with SocketHandle.
  13066. (~PeerInteraction): Removed the deallocation of the elements of
  13067. messageQueue.
  13068. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13069. (isSendingMessageInProgress): Replaced PeerMessage with
  13070. PeerMessageHandle.
  13071. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13072. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13073. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13074. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13075. (abortPiece): Use PeerMessageHandle.
  13076. (receiveHandshake): Replaced HandshakeMessage with
  13077. HandshakeMessageHandle. Removed try-catch block.
  13078. (createHandshakeMessage): Replaced HandshakeMessage with
  13079. HandshakeMessageHandle.
  13080. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13081. Removed try-catch block.
  13082. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13083. * src/HttpProxyResponseCommand.cc
  13084. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13085. * src/FtpTunnelResponseCommand.h
  13086. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13087. * src/HttpConnection.cc
  13088. (HttpConnection): Replaced Socket with SocketHandle.
  13089. * src/PeerAbstractCommand.cc
  13090. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13091. (~PeerAbstractCommand): Removed the deallocation of socket.
  13092. Use disableReadCheckSocket, disableWriteCheckSocket.
  13093. (disableReadCheckSocket): New function.
  13094. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13095. (disableWriteCheckSocket): New function.
  13096. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13097. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13098. * src/FtpTunnelRequestCommand.cc
  13099. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13100. (~FtpTunnelRequestCommand): Corrected indentation.
  13101. * src/DownloadCommand.h
  13102. (DownloadCommand): Replaced Socket with SocketHandle.
  13103. * src/PeerListenCommand.cc
  13104. (PeerListenCommand): Removed the initialization of socket.
  13105. (~PeerListenCommand): Removed the deallocation of socket.
  13106. (bindPort): Use SocketHandle.
  13107. (execute): Use SocketHandle and PeerHandle.
  13108. * src/FtpDowndloadCommand.cc
  13109. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13110. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13111. * src/main.cc
  13112. (main): Corrected indentation.
  13113. * src/HttpInitiateConnectionCommand.cc
  13114. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13115. (executeInternal): Removed the allocation of socket.
  13116. * src/HttpRequestCommand.h
  13117. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13118. * src/FtpNegotiationCommand.h
  13119. (dataSocket): Changed its type to SocketHandle.
  13120. (serverSocket): Changed its type to SocketHandle.
  13121. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13122. * src/TorrentMan.h
  13123. (MAX_PEER_UPDATE): Removed.
  13124. (MAX_PEERS): New definition.
  13125. (Peers): The element is now of type PeerHandle.
  13126. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13127. (getPeer): Replaced Peer with PeerHandle.
  13128. (deleteOldErrorPeers): Removed.
  13129. (deleteErrorPeer): New function.
  13130. (hasMissingPiece): Replaced Peer with PeerHandle.
  13131. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13132. (getMissingPiece): Replaced Peer with PeerHandle.
  13133. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13134. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13135. (addActivePeer): Replaced Peer with PeerHandle.
  13136. (deleteActivePeer): Replaced Peer with PeerHandle.
  13137. Added a check for the return value of find.
  13138. * src/FtpTunnelResponseCommand.cc
  13139. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13140. * src/FtpInitiateConnectionCommand.cc
  13141. (executeInternal): Removed the allocation of socket.
  13142. * src/DownloadEngine.h
  13143. (Sockets): An element is now of type SocketHandle.
  13144. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13145. (CommandUuids): New type definition.
  13146. (rsockets): Changed its type to SockCmdMap.
  13147. (wsockets): Changed its type to SockCmdMap.
  13148. (addSocket): Rewritten.
  13149. (deleteSocket): Rewritten.
  13150. (addSocketForReadCheck): Rewritten.
  13151. (deleteSocketForReadCheck): Rewritten.
  13152. (addSocketForWriteCheck): Rewritten.
  13153. (deleteSocketForWriteCheck): Rewritten.
  13154. (PairFind): New template class.
  13155. * src/HttpDownloadCommand.h
  13156. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13157. * src/FtpConnection.cc
  13158. (FtpConnection): Replaced Socket with SocketHandle.
  13159. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13160. block.
  13161. * src/InitiateConnectionCommandFactory.cc
  13162. (DlAbortEx.h): Included DlAbortEx.h.
  13163. (createInitiateConnectionCommand): Throw exception if the protocol of
  13164. requested URI is not supported.
  13165. * src/Peer.cc
  13166. (nullPeer): Changed its type to PeerHandle.
  13167. (operator==): New function.
  13168. (operator!=): New function.
  13169. * src/Peer.h
  13170. (SharedHandle.h): Included SharedHandle.h.
  13171. (operator==): New function.
  13172. (operator!=): New function.
  13173. (Peer): Added the default constructor.
  13174. Use resetStatus() to initialize member variables.
  13175. (nullPeer): Removed.
  13176. * src/TrackerUpdateCommand.cc
  13177. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13178. with MIN_PEERS.
  13179. * src/PeerListenCommand.h
  13180. (socket): Changed its type to SocketHandle.
  13181. * src/Command.h
  13182. (CommandUuid): New type definition.
  13183. (uuid): New variable.
  13184. (uuidGen): New variable.
  13185. (Command): Added the initialization of uuid.
  13186. (getUuid): New function.
  13187. * src/Socket.h
  13188. (Socket): Removed.
  13189. (SocketHandle): New type definition.
  13190. * src/DownloadEngine.h
  13191. (FindCommand): New function object.
  13192. (run): The portion of socket check was rewritten.
  13193. (SetDescriptor): New function object.
  13194. (AccumulateActiveCommandUuid): New function object.
  13195. (waitData): Rewritten.
  13196. (addSocket): Rewritten.
  13197. (deleteSocket): Rewritten.
  13198. (addSocketForReadCheck): Rewritten.
  13199. (addSocketForWriteCheck): Rewritten.
  13200. (deleteSocketForReadCheck): Rewritten.
  13201. (deleteSocketForWriteCheck): Rewritten.
  13202. * src/HttpProxyResponseCommand.h
  13203. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13204. * src/HttpConnection.h
  13205. (socket): Changed its type to SocketHandle.
  13206. (HttpConnection): Replaced Socket with SocketHandle.
  13207. * src/PeerInitiateConnectionCommand.cc
  13208. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13209. (executeInternal): Removed the allocation of socket.
  13210. (prepareForNextPeer): Use PeerHandle.
  13211. * src/PeerMessage.h
  13212. (peer): Changed its type to PeerHandle.
  13213. (getPeer): Replaced Peer with PeerHandle.
  13214. (setPeer): Replaced Peer with PeerHandle.
  13215. * src/DownloadCommand.cc
  13216. (DownloadCommand): Replaced Socket with SocketHandle.
  13217. * src/FtpConnection.h
  13218. (socket): Changed its type to SocketHandle.
  13219. (FtpConnection): Replaced Socket with SocketHandle.
  13220. (sendPort); Replaced Socket with SocketHandle.
  13221. * src/FtpDowndloadCommand.h
  13222. (ctrlSocket): Changed its type to SocketHandle.
  13223. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13224. * src/HttpProxyRequestCommand.cc
  13225. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13226. * src/FtpTunnelRequestCommand.h
  13227. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13228. etc
  13229. * src/PeerChokeCommand.h
  13230. (setAllPeerChoked): Removed.
  13231. (setAllPeerResetDelta): Removed.
  13232. * src/PeerChokeCommand.cc
  13233. (setAllPeerChoked): Removed.
  13234. (ChokePeer): New function object.
  13235. (setAllPeerResetDelta): Removed.
  13236. (ResetDelta): New function object.
  13237. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13238. (execute): Show download speed when the local node is a seeder.
  13239. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13240. using STL.
  13241. * src/TrackerWatcherCommand.h
  13242. (MIN_PEERS): Removed.
  13243. * src/TorrentMan.cc
  13244. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13245. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13246. To fix the bug that .aria2 file is not saved if downloading is stopped
  13247. by the errors:it results that aria2 can not resume downloading:
  13248. * src/main.cc
  13249. (normalDownload): Added the call to save().
  13250. (main): Added the deletion of the elements in 'reserved'.
  13251. To fix log:
  13252. * src/PeerInteraction.cc
  13253. (receiveHandshake): Fixed log.
  13254. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13255. To improve download performance in BitTorrent:
  13256. * src/TorrentMan.cc
  13257. (getPeer): Check the number of connections. Return nullPeer if
  13258. it is greater than MAX_PEER_UPDATE.
  13259. This code was originally here, but was removed in 0.5.1.
  13260. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13261. To improve the conditional compilation:
  13262. * src/MultiDiskWriter.h:
  13263. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13264. * src/MultiDiskWriter.cc:
  13265. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13266. * src/Util.h:
  13267. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13268. Added ENABLE_BITTORRENT around computeFastSet().
  13269. * src/Util.cc:
  13270. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13271. Added ENABLE_BITTORRENT around computeFastSet().
  13272. * src/messageDigest.h:
  13273. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13274. * src/ShaVisitor.h:
  13275. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13276. * src/ShaVisitor.cc:
  13277. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13278. * src/main.cc:
  13279. Added ENABLE_BITTORRENT around includes and blocks related to
  13280. BitTorrent.
  13281. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13282. digest support is not available.
  13283. * src/AbstractDiskWriter.h:
  13284. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13285. * src/AbstractDiskWriter.cc:
  13286. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13287. * src/MetalinkEntry.cc
  13288. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13289. support is not available.
  13290. To add command-line options for Metalink:
  13291. * src/main.cc:
  13292. Added metalink-version, metalink-language, metalink-os,
  13293. follow-metalink.
  13294. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13295. * src/main.cc: Use these definition.
  13296. * Release 0.6.0
  13297. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13298. To add Metalink support(http/ftp only):
  13299. * src/AbstractCommand.h
  13300. (tryReserved): New function.
  13301. * src/AbstractCommand.cc
  13302. (execute): Call tryReserved().
  13303. (tryReserved): New function.
  13304. * src/Request.h
  13305. (Requests): New type definition.
  13306. * src/SegmentMan.h
  13307. (reserved): New variable.
  13308. * src/Util.h
  13309. (fileChecksum): New function.
  13310. (toUpper): New function.
  13311. (toLower): New function.
  13312. * src/Util.cc
  13313. (messageDigest.h): Included.
  13314. (trim): Trim \r\n\t.
  13315. (fileChecksum): New function.
  13316. (toUpper): New function.
  13317. (toLower): New function.
  13318. * src/main.cc
  13319. (normalDownload): New function.
  13320. (main): Added 2 command-line options: metalink-file,
  13321. metalink-connection. Their usage has not been written yet.
  13322. * src/MetalinkProcessor.h: New class.
  13323. * src/Xml2MetalinkProcessor.h: New class.
  13324. * src/Xml2MetalinkProcessor.cc: New class.
  13325. * src/MetalinkEntry.h: New class.
  13326. * src/MetalinkEntry.cc: New class.
  13327. * src/MetalinkResource.h: New class.
  13328. * src/MetalinkResource.cc: New class.
  13329. To add md5 message digest checking:
  13330. * src/messageDigest.h: Rewritten.
  13331. * src/MultiDiskWriter.cc: Updated according to the changes in
  13332. messageDigest.h.
  13333. * src/ShaVisitor.cc: Updated according to the changes in
  13334. messageDigest.h.
  13335. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13336. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13337. messageDigest.h.
  13338. To fix a bug that causes segfault when the payload length in peer
  13339. message is less than 0:
  13340. * src/PeerConnection.cc:
  13341. (receiveMessage): Fixed the bug.
  13342. * src/PeerMessageUtil.cc
  13343. (checkLength): Throw an exception if length is less than or equals to
  13344. 0.
  13345. To add new interfaces to Base64 encoding/decoding:
  13346. * src/Base64.h
  13347. (part_encode): Changed the method signature.
  13348. (encode): New function(overload).
  13349. (decode): New function(overload).
  13350. * src/Base64.cc
  13351. (part_encode): Rewritten.
  13352. (encode): Rewritten.
  13353. (encode): New function(overload).
  13354. To prevent a peer to download same piece if there is an error in
  13355. checksum:
  13356. * src/PieceMessage.cc
  13357. (receivedAction): Call peerInteraction->abortPiece().
  13358. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13359. To fix the bug that causes same have message is sent many times to
  13360. a single peer.
  13361. * src/Time.cc
  13362. (isNewer): Use Util::difftv().
  13363. * src/Util.cc
  13364. (difftv): Added a cast to (long long int).
  13365. * src/TorrentMan.cc
  13366. (advertisePiece): Use push_front.
  13367. (getAdvertisedPieceIndexes): A performance improvement was made.
  13368. To fix the bug that sends tracker requests without a sleep interval
  13369. when the number of connections is less than 15.
  13370. * src/TrackerWatcherCommand.cc
  13371. (execute): Now the number of connections is not a factor to decide
  13372. whether or not a tracker request should be sent or not.
  13373. * src/Time.h
  13374. (setTimeInSec): New function.
  13375. * src/Time.cc
  13376. (setTimeInSec): New function.
  13377. etc.
  13378. * src/ChokeMessage.cc
  13379. (receivedAction): Removed peer->snubbing = false
  13380. * src/PeerConnection.h
  13381. (receiveHandshake): Updated doc.
  13382. * src/TorrentMan.h
  13383. (getAdvertisedPieceIndexes): Updated the method signature.
  13384. * src/TorrentMan.cc
  13385. (getAdvertisedPieceIndexes): Updated the method signature.
  13386. * src/Time.h
  13387. (getTimeInMicros): Added a cast to (long long int).
  13388. (getTimeInMillis): Added a cast to (long long int).
  13389. * Release 0.5.2
  13390. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13391. To make a listening socket non-block:
  13392. * src/SocketCore.h
  13393. (setNonBlockingMode): New function.
  13394. * src/SocketCore.cc
  13395. (setNonBlockingMode): New function.
  13396. (beginListen): Added a call to setNonBlockingMode().
  13397. (acceptConnection): Call setNonBlockingMode().
  13398. (setBlockingMode): Updated.
  13399. To handle tracker's NAT-checking:
  13400. * src/PeerConnection.cc
  13401. (receiveHandshake): 'msg' param is filled with received data and
  13402. its length is assigned to 'length' param, even if all handshake
  13403. message is not yet received.
  13404. * src/PeerInteractionCommand.cc
  13405. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13406. a new peer connects to localhost.
  13407. A call to peerInteraction->sendHandshake() was removed because
  13408. it is called from peerInteraction->receiveHandshake(true).
  13409. * src/PeerInteraction.h
  13410. (quickReplied): New variable.
  13411. (receiveHandshake): Added an argument.
  13412. * src/PeerInteraction.cc
  13413. (PeerInteraction): Added the initialization of quickReplied.
  13414. (receiveHandshake): Send handshake message as soon as the info hash
  13415. in a handshake message from a peer is correct.
  13416. To change the random part of peer id and key parameter:
  13417. * src/TorrentMan.h
  13418. (key): New variable.
  13419. * src/TorrentMan.cc
  13420. (setupInternal1): Use Util::randomAlpha() to generate random part
  13421. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13422. key is also generated by Util::randomAlpha() and it is now 8 character
  13423. long.
  13424. * src/Util.h
  13425. (randomAlpha): New function.
  13426. * src/Util.cc
  13427. (randomAlpha): New function.
  13428. * src/TrackerWatcherCommand.cc
  13429. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13430. Added no_peer_id=1.
  13431. Set snubbing flag to false when a choke message is received from a
  13432. snubbed peer.
  13433. * src/ChokeMessage.cc
  13434. (receivedAction): Set snubbing flag to false.
  13435. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13436. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13437. * src/SimpleLogger.h (writeHeader): New function.
  13438. * src/SimpleLogger.cc (writeHeader): New function.
  13439. (writeLog): Fixed the bug that causes segfaults if exception message
  13440. contains an unescaped "%" character.
  13441. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13442. when a tracker request fails.
  13443. * src/Request.cc (parseUrl): Query string is now handled properly.
  13444. * Release 0.5.1
  13445. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13446. To add Time class which represents a specific instant in time and
  13447. its precision is microseconds. Time checking procedures were rewritten
  13448. using this object.
  13449. * src/Time.h: New class.
  13450. * src/Time.cc: New class.
  13451. * src/AbstractCommand.h
  13452. (updateCheckPoint): Removed.
  13453. (isTimeoutDetected): Removed.
  13454. (checkPoint): Changed the type to Time.
  13455. (timeout): New variable.
  13456. (setTimeout): New function.
  13457. * src/AbstractCommand.cc
  13458. (AbstractCommand): Removed the initialization of checkPoint.
  13459. Added the initialization of timeout.
  13460. (updateCheckPoint): Removed.
  13461. (isTimeoutDetected): Removed.
  13462. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13463. * src/PeerChokeCommand.h
  13464. (checkPoint): Changed the type to Time.
  13465. * src/PeerChokeCommand.cc
  13466. (PeerChokeCommand): Removed the initialization of checkPoint.
  13467. (execute): Rewritten using Time object.
  13468. * src/TrackerWatcherCommand.h
  13469. (checkPoint): Changed the type to Time.
  13470. * src/TrackerWatcherCommand.cc
  13471. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13472. (execute): Rewritten.
  13473. * src/ConsoleDownloadEngine.h
  13474. (cp): Changed the type to Time.
  13475. (startup): Changed the type to Time.
  13476. * src/ConsoleDownloadEngine.cc
  13477. (initStatistics): Use cp.reset(), startup.reset().
  13478. (calculateStatistics): Rewritten using Time object.
  13479. * src/PeerAbstractCommand.h
  13480. (updateCheckPoint): Removed.
  13481. (isTimeoutDetected): Removed.
  13482. (checkPoint): Changed the type to Time.
  13483. * src/PeerAbstractCommand.cc
  13484. (PeerAbstractCommand): Removed the initialization of checkPoint.
  13485. (updateCheckPoint): Removed.
  13486. (isTimeoutDetected): Removed.
  13487. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13488. * src/PeerInteractionCommand.cc
  13489. (PeerInteractionCommand): Removed the initializations of struct
  13490. timeval variables.
  13491. * src/PeerInteractionCommand.h
  13492. (keepAliveCheckPoint): Changed the type to Time.
  13493. (chokeCheckPoint): Changed the type to Time.
  13494. (freqCheckPoint): Changed the type to Time.
  13495. (haveCheckTime): Changed the type to Time.
  13496. * src/PeerInteractionCommand.cc
  13497. (executeInternal): Rewritten using Time object.
  13498. (detectMessageFlooding): Rewritten using Time object.
  13499. (checkLongTimePeerChoking): Rewritten using Time object.
  13500. (sendKeepAlive): Rewritten using Time object.
  13501. (checkHave): Rewritten using Time object.
  13502. * src/SleepCommand.h
  13503. (checkPoint): Changed the type to Time.
  13504. * src/SleepCommand.cc
  13505. (SleepCommand): Removed the initialization of checkPoint.
  13506. (execute): Rewritten using Time object.
  13507. * src/TorrentAutoSaveCommand.h
  13508. (checkPoint): Changed the type to Time.
  13509. * src/TorrentAutoSaveCommand.cc
  13510. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  13511. (execute): Rewritten.
  13512. * src/DownloadCommand.h
  13513. (sw): Changed the type to Time.
  13514. * src/DownloadCommand.cc
  13515. (DownloadCommand): Removed the initialization of sw.
  13516. (executeInternal): Rewritten.
  13517. * src/RequestSlot.h
  13518. (dispatchedTime): Changed the type to Time.
  13519. * src/RequestSlot.cc
  13520. (RequestSlot): Removed the call to setDispatchedTime().
  13521. (setDispatchedTime): Rewirtten.
  13522. (isTimeout): Rewritten.
  13523. (getLatencyInMillis): Rewritten.
  13524. * src/TorrentDownloadEngine.h
  13525. (cp): Changed the type to Time[2].
  13526. (startup): Changed the type to Time.
  13527. * src/TorrentDownloadEngine.cc
  13528. (initStatistics): Rewritten.
  13529. (calculateStatistics): Rewritten.
  13530. * src/DownloadEngine.cc
  13531. (run): Rewritten.
  13532. To detect all attempts to connect to the tracker are failed:
  13533. * src/AbstractCommand.cc
  13534. (execute): Increment e->segmentMan->errors if a command aborted.
  13535. * src/SegmentMan.h
  13536. (errors): New variable.
  13537. * src/SegmentMan.cc
  13538. (SegmentMan): Added the initialization of errors.
  13539. (init): Added the initialization of errors.
  13540. * src/TrackerWatcherCommand.cc
  13541. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13542. request was failed.
  13543. To handle snubbed peers:
  13544. * src/PeerChokeCommand.cc
  13545. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13546. (execute): Snubbed peers don't get unchoked.
  13547. * src/PeerInteraction.h
  13548. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13549. * src/PeerInteraction.cc
  13550. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13551. back the requested 16k block in 60 seconds.
  13552. * src/PieceMessage.cc
  13553. (receivedAction): A peer's snubbed state is cleard if it sends
  13554. the requested 16k block in 60 seconds.
  13555. * src/Peer.h
  13556. (snubbing): New variable.
  13557. * src/Peer.cc
  13558. (resetStatus): Added snubbed = false.
  13559. To fix the bug that causes have message is not sent:
  13560. * src/PeerInteractionCommand.cc
  13561. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13562. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13563. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13564. * src/TorrentMan.h
  13565. (HaveEntry): New class.
  13566. (advertisePiece): Rewritten.
  13567. (getAdvertisedPieceIndexes): Rewritten.
  13568. (Haves): Changed the type.
  13569. (getAdvertisedPieceIndexes): Added an argument.
  13570. Others:
  13571. * src/TorrentMan.h
  13572. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13573. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13574. * src/TorrentMan.cc
  13575. (getPeer): Don't check the number of connections here.
  13576. (setupInternal1): Changed peerId.
  13577. * src/PeerInteractionCommand.h
  13578. (KEEP_ALIVE_INTERVAL): New definition.
  13579. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13580. * src/main.cc
  13581. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13582. * src/DownloadEngine.h: Removed unnecessary header includes.
  13583. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13584. To fix the bug that causes segfaults if a tracker returns a zero-length
  13585. list as "peers":
  13586. * src/TrackerUpdateCommand.cc
  13587. (execute): Added a check to see wether the type of peers is Data*.
  13588. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13589. * Release 0.5.0
  13590. To fix compile issue with gcc3:
  13591. * src/CancelMessage.h
  13592. (ID): Renamed as ID_t
  13593. (ID_t): New enum.
  13594. * src/RejectMessage.h
  13595. (ID): Renamed as ID_t
  13596. (ID_t): New enum.
  13597. * src/SuggestPieceMessage.h
  13598. (ID): Renamed as ID_t
  13599. (ID_t): New enum.
  13600. * src/AllowedFastMessage.h
  13601. (ID): Renamed as ID_t
  13602. (ID_t): New enum.
  13603. * src/PortMessage.h
  13604. (ID): Renamed as ID_t
  13605. (ID_t): New enum.
  13606. * src/HaveNoneMessage.h
  13607. (ID): Renamed as ID_t
  13608. (ID_t): New enum.
  13609. * src/KeepAliveMessage.h
  13610. (ID): Renamed as ID_t
  13611. (ID_t): New enum.
  13612. * src/HaveAllMessage.h
  13613. (ID): Renamed as ID_t
  13614. (ID_t): New enum.
  13615. * src/UnchokeMessage.h
  13616. (ID): Renamed as ID_t
  13617. (ID_t): New enum.
  13618. * src/BitfieldMessage.h
  13619. (ID): Renamed as ID_t
  13620. (ID_t): New enum.
  13621. * src/PieceMessage.h
  13622. (ID): Renamed as ID_t
  13623. (ID_t): New enum.
  13624. * src/RequestMessage.h
  13625. (ID): Renamed as ID_t
  13626. (ID_t): New enum.
  13627. * src/NotInterestedMessage.h
  13628. (ID): Renamed as ID_t
  13629. (ID_t): New enum.
  13630. * src/ChokeMessage.h
  13631. (ID): Renamed as ID_t
  13632. (ID_t): New enum.
  13633. * src/InterestedMessage.h
  13634. (ID): Renamed as ID_t
  13635. (ID_t): New enum.
  13636. * src/HaveMessage.h
  13637. (ID): Renamed as ID_t
  13638. (ID_t): New enum.
  13639. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13640. * src/PeerAbstractCommand.h
  13641. (beforeSocketCheck): Removed.
  13642. * src/PeerAbstractCommand.cc
  13643. Modified in order to call executeInternal() even if socket check
  13644. and upload limit check fail.
  13645. * src/PeerInteractionCommand.h
  13646. (keepAlive): Removed.
  13647. (sendKeepAlive): New function.
  13648. (checkHave): New function.
  13649. (beforeSocketCheck): Removed.
  13650. * src/PeerInteractionCommand.cc
  13651. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13652. calls to checkHave() and sendKeepAlive().
  13653. (keepAlive): Renamed to sendKeepAlive().
  13654. (sendKeepAlive): New function.
  13655. (beforeSocketCheck): Removed.
  13656. (checkHave): New function.
  13657. * src/BitfieldMan.cc
  13658. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13659. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13660. 0.
  13661. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13662. * src/TorrentMan.h
  13663. (UsedPieces): Removed.
  13664. (Pieces): New type definition.
  13665. * src/Piece.h: Updated doc.
  13666. * src/Peer.h
  13667. (totalLength): Removed.
  13668. * src/Peer.cc
  13669. (updateLatency): Fixed the latency calculation.
  13670. * src/TorrentMan.cc
  13671. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13672. than or equal to MAX_PEER_LIST_SIZE.
  13673. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13674. then return false.
  13675. (deleteOldErrorPeers): Rewritten.
  13676. (deleteUsedPiece): Fixed the miss use of STL remove.
  13677. * src/PeerInteraction.h
  13678. (Pieces): Removed.
  13679. (deleteTimeoutRequestSlot): Removed.
  13680. (deleteCompletedRequestSlot): Removed.
  13681. (checkRequestSlot): New function.
  13682. * src/PeerInteraction.cc
  13683. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13684. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13685. (checkRequestSlot): New function.
  13686. * src/DownloadEngine.cc
  13687. (run): Clear activeSockets before calling waitData().
  13688. (waitData): Removed a call to activeSockets.clear().
  13689. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13690. To attempt to handle EINTR:
  13691. * src/SocketCore.cc
  13692. (isReadable): Added EINTR handling.
  13693. (isWritable): Added EINTR handling.
  13694. To improve the performance:
  13695. * src/AbstractCommand.cc
  13696. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13697. * src/PeerInteractionCommand.h
  13698. (receiveMessage): Renamed as receiveMessages().
  13699. (receiveMessages): New function.
  13700. * src/PeerInteractionCommand.cc
  13701. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13702. () function. detectMessageFlooding() is moved here.
  13703. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13704. (). The flooding detection for have message is comment out.
  13705. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13706. Util::difftv().
  13707. (receiveMessage): Renamed as receiveMessages().
  13708. (receiveMessages): New function.
  13709. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13710. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13711. * src/SleepCommand.cc
  13712. (execute): Use Util::difftvsec() instead of Util::difftv().
  13713. * src/BitfieldMan.h
  13714. (getNthBitIndex): New function.
  13715. (hasMissingPiece): New function.
  13716. (getAllMissingIndexes): New function.
  13717. * src/BitfieldMan.cc
  13718. (countSetBit): Rewritten.
  13719. (getNthBitIndex): New function.
  13720. (getMissingIndexRandomly): Rewritten.
  13721. (hasMissingPiece): New function.
  13722. (getAllMissingIndexes): New function.
  13723. * src/TorrentMan.cc
  13724. (hasMissingPiece): New function.
  13725. (deleteUsedPiece): Rewritten using STL.
  13726. * src/PeerInteraction.cc
  13727. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13728. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13729. (addRequests): Updated the number of pending requests.
  13730. * src/PeerAbstractCommand.cc
  13731. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13732. (execute): Returns true if TorrentMan::isHalt() is true.
  13733. Corrected the condition of upload limit checking.
  13734. * src/Util.h
  13735. (countBit): New function.
  13736. * src/Util.cc
  13737. (nbits): New variable.
  13738. (countBit): New function.
  13739. * src/DownloadEngine.h
  13740. (SockCmdMap): New type definition.
  13741. (waitData): Added an argument.
  13742. (addSocket): Added an argument.
  13743. (addSocketForReadCheck): Added an argument.
  13744. (addSocketForWriteCheck): Added an argument.
  13745. * src/DownloadEngine.cc
  13746. (run): Executes only commands whose sockets are ready to read or write.
  13747. All commands are executed in every 1 second.
  13748. (waitData): Calls select() again if it returned
  13749. EINTR.
  13750. (addSocket): Saves socket and command object pair to the map.
  13751. (deleteSocket): Deletes socket and command object pair from the map.
  13752. (addSocketForReadCheck): Added an argument.
  13753. (addSocketForWriteCheck): Added an argument.
  13754. * src/DownloadCommand.cc
  13755. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13756. To send "event=stopped" to the tracker when the application finishes:
  13757. * src/PeerChokeCommand.h
  13758. (checkPoint): New variable.
  13759. * src/PeerChokeCommand.cc
  13760. (PeerChokeCommand): Added the initialization of checkPoint.
  13761. (execute): The interval check is now done by checkPoint, not
  13762. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13763. * src/TorrentMan.h
  13764. (halt): New function.
  13765. (hasMissingPiece): New function.
  13766. (isHalt): New function.
  13767. (setHalt): New function.
  13768. * src/TorrentMan.cc
  13769. (TorrentMan): Added the initialization of halt.
  13770. * src/TorrentAutoSaveCommand.h
  13771. (checkPoint): New variable.
  13772. * src/PeerListenCommand.cc
  13773. (execute): Returns true if TorrentMan::isHalt() is true.
  13774. * src/main.cc
  13775. (setSignalHander): Added flags argument.
  13776. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13777. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13778. Removed printDownloadAbortMessage() after torrent downloading loop.
  13779. * src/TorrentAutoSaveCommand.cc
  13780. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13781. (execute): Returns true if TorrentMan::isHalt() is true.
  13782. The interval check is now done by checkPoint, not SleepCommand.
  13783. * src/TrackerWatcherCommand.cc
  13784. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13785. event=stopped.
  13786. * src/TrackerUpdateCommand.cc
  13787. (prepareForRetry): Do not use SleepCommand here.
  13788. (execute): Returns true if TorrentMan::isHalt() is true.
  13789. Others:
  13790. * src/TorrentMan.cc
  13791. (getMissingPieceIndex): Updated log message.
  13792. * src/PeerInteraction.cc
  13793. (createPeerMessag): Updated log message.
  13794. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13795. To add the ability to download several pieces in mix in a command and
  13796. increase the number of request slots according to request-cancel
  13797. latency:
  13798. * src/PeerInteractionCommand.cc
  13799. (executeInternal): The number of messages to be received at a time
  13800. is increased from 10 to 50.
  13801. * src/LogFactory
  13802. (getInstance): Added NullLogger.
  13803. * src/NullLogger.h: New class.
  13804. * src/BitfieldMan.h
  13805. (getMissingIndex): New function.
  13806. * src/BitfieldMan.cc
  13807. (getMissingIndex): New function.
  13808. * src/TorrentMan.h
  13809. (checkOutPiece): New function.
  13810. (getMissingPieceIndex): New function.
  13811. (getMissingFastPieceIndex): New function.
  13812. (getMissingFastPiece): New function.
  13813. * src/TorrentMan.cc
  13814. (updatePiece): Rewritten using STL.
  13815. (syncPiece): Rewritten using STL.
  13816. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13817. checkOutPiece().
  13818. (getMissingPieceIndex): New function.
  13819. (getMissingFastPieceIndex): New function.
  13820. (getMissingFastPiece): New function.
  13821. (checkOutPiece): New function.
  13822. * src/PeerInteraction.h
  13823. (Pieces): New type definition.
  13824. (piece): Removed.
  13825. (pieces): New variable.
  13826. (getNewPieceAndSendInterest): Added the "piece" argument.
  13827. (abortPiece): Added the "piece" argument.
  13828. (abortAllPieces): New function.
  13829. (isInRequestSlot): New function.
  13830. (hasDownloadPiece): Added the "index" argument.
  13831. (setDownloadPiece): Removed.
  13832. (getDownloadPiece): Added the "index" argument.
  13833. (updatePiece): New function.
  13834. (createRequestMessage): Added the "index" argument.
  13835. * src/PeerInteraction.cc
  13836. (onChoked): Rewritten.
  13837. (abortPiece): Rewirtten.
  13838. (abortAllPieces): New function.
  13839. (deleteTimeoutRequestSlot): Rewritten.
  13840. Clarified code a little bit.
  13841. (deleteCompletedRequestSlot): Rewritten.
  13842. (isInRequestSlot): New function.
  13843. (syncPiece): Rewritten.
  13844. (updatePiece): New function.
  13845. (getNewPieceAndSendInterest): Rewritten.
  13846. (addRequests): Rewritten.
  13847. (getDownloadPiece): Rewritten.
  13848. (hasDownloadPiece): Rewritten.
  13849. (createRequestMessage): Added the "index" argument.
  13850. * src/common.h
  13851. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13852. (DIV_FLOOR): New definition.
  13853. * src/PieceMessage.cc
  13854. (receivedAction): Update request-piece latency here.
  13855. * src/RequestSlot.h
  13856. (getLatencyInMillis): New function.
  13857. * src/RequestSlot.cc
  13858. (isTimeout): Rewritten using getLatencyInMillis.
  13859. (getLatencyInMillis): New function.
  13860. * src/Piece.h
  13861. (operator==): New function.
  13862. (getMissingBlockIndex): New function.
  13863. * src/Piece.cc
  13864. (operator==): New function.
  13865. (getMissingBlockIndex): New function.
  13866. * src/Peer.h
  13867. (DEFAULT_LATENCY): New definition.
  13868. (latency): New variable.
  13869. (updateLatency): New function.
  13870. (getLatency): New function.
  13871. * src/Peer.cc
  13872. (resetStatus): Reset latecy.
  13873. (updateLatency): New function.
  13874. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13875. * src/SocketCore.cc
  13876. (isReadable): Added secure to the condition.
  13877. * src/HttpConnection.cc
  13878. (receiveResponse): Fixed a bug that causes no response header
  13879. exception.
  13880. * src/Peer.h
  13881. (getFastSet): Fixed the return value type.
  13882. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13883. To remove a wait from download loop:
  13884. * src/DownloadEngine.cc
  13885. (run): Comment out shortSleep.
  13886. To rewrite the message handling:
  13887. * src/SimplePeerMessage.h: New class.
  13888. * src/SimplePeerMessage.cc: New class.
  13889. * src/CancelMessage.h: Derived from SimplePeerMessage.
  13890. (msg): New variable.
  13891. (create): New function.
  13892. (send): Removed.
  13893. (getMessage): New function.
  13894. (getMessageLength): New function.
  13895. * src/CancelMessage.cc
  13896. (create): New function.
  13897. (receivedAction): Replaced deleteRequestMessageInQueue with
  13898. rejectPieceMessageInQueue.
  13899. (send): Removed.
  13900. (getMessage): New function.
  13901. (getMessageLength): New function.
  13902. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  13903. (msg): New variable.
  13904. (msgLength): New variable.
  13905. (~BitfieldMessage): Deleted msg.
  13906. (send): Removed.
  13907. (getMessage): New function.
  13908. (getMessageLength): New function.
  13909. * src/BitfieldMessage.cc
  13910. (create): New function.
  13911. (send): Removed.
  13912. (getMessage): New function.
  13913. (getMessageLength): New function.
  13914. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  13915. (msg): New variable.
  13916. (sendPredicate): New function.
  13917. (onSendComplete): New function.
  13918. (send): Removed.
  13919. (getMessage): New function.
  13920. (getMessageLength): New function.
  13921. (create): New function.
  13922. * src/ChokeMessage.cc
  13923. (create): New function.
  13924. (send): Removed.
  13925. (sendPredicate): New function.
  13926. (getMessage): New function.
  13927. (getMessageLength): New function.
  13928. (onSendComplete): New function.
  13929. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  13930. (msg): New variable.
  13931. (send): Removed.
  13932. (getMessage): New function.
  13933. (getMessageLength): New function.
  13934. * src/KeepAliveMessage.cc
  13935. (send): Removed.
  13936. (getMessage): New function.
  13937. (getMessageLength): New function.
  13938. * src/PortMessage.h
  13939. (create): New function.
  13940. (receivedAction): Updated log message.
  13941. * src/PortMessage.cc: New file.
  13942. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  13943. (msg): New variable.
  13944. (sendPredicate): New function.
  13945. (onSendComplete): New function.
  13946. (create): New function.
  13947. (send): Removed.
  13948. (getMessage): New function.
  13949. (getMessageLength): New function.
  13950. * src/UnchokeMessage.cc
  13951. (create): New function.
  13952. (send): Removed.
  13953. (sendPredicate): New function.
  13954. (getMessage): New function.
  13955. (getMessageLength): New function.
  13956. (onSendComplete): New function.
  13957. * src/PieceMessage.h
  13958. (leftPieceDataLength): Removed.
  13959. (leftDataLength): New variable.
  13960. (headerSend): New variable.
  13961. (pendingCount): New variable.
  13962. (msgHeader): New variable.
  13963. (sendPieceData): New function.
  13964. (incrementPendingCount): New function.
  13965. (isPendingCountMax): New function.
  13966. (create): New function.
  13967. (getMessageHeader): New function.
  13968. (getMessageHeaderLength): New function.
  13969. * src/PieceMessage.cc
  13970. (create): New function.
  13971. (getMessageHeader): New function.
  13972. (getMessageHeaderLength): New function.
  13973. (send): Rewritten.
  13974. (sendPieceData): New function.
  13975. * src/HaveMessage.h: Derived from SimplePeerMessage.
  13976. (msg): New variable.
  13977. (create): New function.
  13978. (getMessage): New function.
  13979. (getMessageLength): New function.
  13980. * src/HaveMessage.cc
  13981. (create): New function.
  13982. (send): Removed.
  13983. (sendPieceData): New function.
  13984. (getMessage): New function.
  13985. (getMessageLength): New function.
  13986. * src/RequestMessage.h: Derived from SimplePeerMessage.
  13987. (msg): New variable.
  13988. (create): New function.
  13989. (send): Removed.
  13990. (getMessage): New function.
  13991. (getMessageLength): New function.
  13992. * src/RequestMessage.cc
  13993. (create): New function.
  13994. (receivedAction): Added the handling of fast extension.
  13995. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  13996. (send): Removed.
  13997. (getMessage): New function.
  13998. (getMessageLength): New function.
  13999. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14000. (msg): New variable.
  14001. (sendPredicate): New function.
  14002. (onSendComplete): New function.
  14003. (create): New function.
  14004. (getMessage): New function.
  14005. (getMessageLength): New function.
  14006. * src/InterestedMessage.cc
  14007. (create): New function.
  14008. (send): Removed.
  14009. (sendPieceData): New function.
  14010. (getMessage): New function.
  14011. (getMessageLength): New function.
  14012. (onSendComplete): New function.
  14013. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14014. (msg): New variable.
  14015. (sendPieceData): New function.
  14016. (onSendComplete): New function.
  14017. (create): New function.
  14018. (send): Removed.
  14019. (getMessage): New function.
  14020. (getMessageLength): New function.
  14021. * src/NotInterestedMessage.cc
  14022. (create): New function.
  14023. (send): Removed.
  14024. (sendPredicate): New function.
  14025. (getMessage): New function.
  14026. (getMessageLength): New function.
  14027. (onSendComplete): New function.
  14028. * src/AllowedFastMessage.h: New class.
  14029. * src/AllowedFastMessage.cc: New class.
  14030. * src/RejectMessage.h: New class.
  14031. * src/RejectMessage.cc: New class.
  14032. * src/SuggestPieceMessage.h: New class.
  14033. * src/SuggestPieceMessage.cc: New class.
  14034. * src/HaveAllMessage.h: New class.
  14035. * src/HaveAllMessage.cc: New class.
  14036. * src/HaveNoneMessage.h: New class.
  14037. * src/HaveNoneMessage.cc: New class.
  14038. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14039. (msg): New variable.
  14040. (reserved): New variable.
  14041. (create): New function.
  14042. (getId): New function.
  14043. (receivedAction): New function.
  14044. (getMessage): New function.
  14045. (getMessageLength): New function.
  14046. (isFastExtensionSupported): New function.
  14047. * src/HandshakeMessage.cc
  14048. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14049. (create): New function.
  14050. (getMessage): New function.
  14051. (getMessageLength): New function.
  14052. (toString): Added the output of reserved field.
  14053. (check): Added const qualifier.
  14054. (isFastExtensionSupported): New function.
  14055. * src/PeerMessageUtil.h
  14056. (createChokeMessage): Removed.
  14057. (createUnchokeMessage): Removed.
  14058. (createInterestedMessage): Removed.
  14059. (createNotInterestedMessage): Removed.
  14060. (createHaveMessage): Removed.
  14061. (createBitfieldMessage): Removed.
  14062. (createRequestMessage): Removed.
  14063. (createCancelMessage): Removed.
  14064. (createPieceMessage): Removed.
  14065. (createPortMessage): Removed.
  14066. (createChokeMessage): Removed.
  14067. (createUnchokeMessage): Removed.
  14068. (createInterestedMessage): Removed.
  14069. (createNotInterestedMessage): Removed.
  14070. (createHaveMessage): Removed.
  14071. (createBitfieldMessage): Removed.
  14072. (createRequestMessage): Removed.
  14073. (createCancelMessage): Removed.
  14074. (createPieceMessage): Removed.
  14075. (createKeepAliveMessage): Removed.
  14076. (createHandshakeMessage): Removed.
  14077. (setIntParam): New function.
  14078. (createPeerMessageString): New function.
  14079. * src/PeerMessageUtil.cc
  14080. (createChokeMessage): Removed.
  14081. (createUnchokeMessage): Removed.
  14082. (createInterestedMessage): Removed.
  14083. (createNotInterestedMessage): Removed.
  14084. (createHaveMessage): Removed.
  14085. (createBitfieldMessage): Removed.
  14086. (createRequestMessage): Removed.
  14087. (createCancelMessage): Removed.
  14088. (createPieceMessage): Removed.
  14089. (createPortMessage): Removed.
  14090. (createRequestMessage): Removed.
  14091. (createCancelMessage): Removed.
  14092. (createPieceMessage): Removed.
  14093. (createHaveMessage): Removed.
  14094. (createChokeMessage): Removed.
  14095. (createUnchokeMessage): Removed.
  14096. (createInterestedMessage): Removed.
  14097. (createNotInterestedMessage): Removed.
  14098. (createBitfieldMessage): Removed.
  14099. (createKeepAliveMessage): Removed.
  14100. (createHandshakeMessage): Removed.
  14101. (setIntParam): New function.
  14102. (createPeerMessageString): New function.
  14103. * src/PeerConnection.h
  14104. (peer): Removed.
  14105. (torrentMan): Removed.
  14106. (createNLengthMessage): Removed.
  14107. (setIntParam): Removed.
  14108. (writeOutgoingMessageLog): Removed all overloaded functions.
  14109. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14110. (sendMessage): New function.
  14111. (sendHandshake): Removed.
  14112. (sendKeepAlive): Removed.
  14113. (sendChoke): Removed.
  14114. (sendUnchoke): Removed.
  14115. (sendInterested): Removed.
  14116. (sendNotInterested): Removed.
  14117. (sendHave): Removed.
  14118. (sendBitfield): Removed.
  14119. (sendRequest): Removed.
  14120. (sendPiece): Removed.
  14121. (sendPieceHeader): Removed.
  14122. (sendPieceData): Removed.
  14123. (sendCancel): Removed.
  14124. (getPeer): Removed.
  14125. * src/PeerConnection.cc
  14126. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14127. (sendHandshake): Removed.
  14128. (sendKeepAlive): Removed.
  14129. (createNLengthMessage): Removed.
  14130. (setIntParam): Removed.
  14131. (writeOutgoingMessageLog): Removed all overloaded functions.
  14132. (sendChoke): Removed.
  14133. (sendUnchoke): Removed.
  14134. (sendInterested): Removed.
  14135. (sendNotInterested): Removed.
  14136. (sendHave): Removed.
  14137. (sendBitfield): Removed.
  14138. (sendRequest): Removed.
  14139. (sendPiece): Removed.
  14140. (sendPieceHeader): Removed.
  14141. (sendPieceData): Removed.
  14142. (sendMessage): New function.
  14143. (sendCancel): Removed.
  14144. * src/PeerInteractionCommand.cc
  14145. (PeerInteractionCommand): Call setUploadLimit.
  14146. (executeInternal): Call setUploadLimit.
  14147. Added the handling of "inProgress" state of handshake message.
  14148. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14149. sendNow().
  14150. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14151. sendNow().
  14152. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14153. * src/TorrentMan.h
  14154. (PEER_ID_LENGTH): New definition.
  14155. (hasAllPieces): New function.
  14156. * src/TorrentMan.cc
  14157. (getMissingPiece): Added the handling of fast extension.
  14158. (cancelPiece): Call updatePiece().
  14159. (hasAllPieces): New function.
  14160. * src/PeerInteraction.h
  14161. (fastSet): New variable.
  14162. (getNewPieceAndSendInterest): Changed the return type to void.
  14163. (send): Renamed as sendMessages.
  14164. (deleteAllRequestSlot): Removed.
  14165. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14166. (cancelAllRequest): Removed all overloaded functions.
  14167. (deleteAllRequestSlot): Removed.
  14168. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14169. (rejectPieceMessageInQueue): New function.
  14170. (rejectAllPieceMessageInQueue): New function.
  14171. (onChoked): New function.
  14172. (isSendingMessageInProgress): New function.
  14173. (getCorrespondingRequestSlot): Changed its arguments.
  14174. (isInFastSet): New function.
  14175. (addFastSetIndex): New function.
  14176. (addRequests): New function.
  14177. (sendNow): Removed.
  14178. (trySendNow): Removed.
  14179. (sendBitfield): New function.
  14180. (sendAllowdFast): New function.
  14181. (createHaveAllMessage): New function.
  14182. (createHaveNoneMessage): New function.
  14183. (createRejectMessage): New function.
  14184. (createAllowedFastMessage): New function.
  14185. * src/PeerInteraction.cc
  14186. (send): Renamed as sendMessages.
  14187. (sendMessages): New function.
  14188. (MsgPushBack): New class.
  14189. (isSendingMessageInProgress): New function.
  14190. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14191. (rejectAllPieceMessageInQueue): New function.
  14192. Added the handling of fast extension.
  14193. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14194. (rejectPieceMessageInQueue): New function.
  14195. Added the handling of fast extension.
  14196. (deleteRequestSlot): Replaced for loop with std::find.
  14197. (onChoked): New function.
  14198. (deleteAllRequestSlot): Removed.
  14199. (abortPiece): Rewirtten.
  14200. (deleteTimeoutRequestSlot): Updated log messages.
  14201. (getCorrespondingRequestSlot): Changed its arguments.
  14202. (cancelAllRequest): Removed all overloaded functions.
  14203. (receiveHandshake): Added the check to see whether an incoming peer
  14204. supports fast extension.
  14205. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14206. PeerMessageUtil.
  14207. (createPeerMessage): Use create() of each message class instead of
  14208. PeerMessageUtil.
  14209. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14210. AllowedFastMessage were added.
  14211. (getNewPieceAndSendInterest): Changed its return value type to void.
  14212. Added the handling of fast extension.
  14213. (addRequests): New function.
  14214. (sendNow): Removed.
  14215. (sendHandshake): Rewritten.
  14216. (trySendNow): Removed.
  14217. (sendBitfield): New function.
  14218. (sendAllowdFast): New function.
  14219. (isInFastSet): New function.
  14220. (addFastSetIndex): New function.
  14221. (createRequestMessage): Use RequestMessage::create instead of
  14222. PeerMessageUtil.
  14223. (createCancelMessage): Use CancelMessage::create instead of
  14224. PeerMessageUtil.
  14225. (createPieceMessage): Use PieceMessage::create instead of
  14226. PeerMessageUtil.
  14227. (createHaveMessage): Use HaveMessage::create instead of
  14228. PeerMessageUtil.
  14229. (createChokeMessage): Use ChokeMessage::create instead of
  14230. PeerMessageUtil.
  14231. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14232. PeerMessageUtil.
  14233. (createInterestedMessage): Use InterestedMessage::create instead of
  14234. PeerMessageUtil.
  14235. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14236. of PeerMessageUtil.
  14237. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14238. PeerMessageUtil.
  14239. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14240. PeerMessageUtil.
  14241. (createHaveAllMessage): New function.
  14242. (createHaveNoneMessage): New function.
  14243. (createRejectMessage): New function.
  14244. (createAllowedFastMessage: New function.
  14245. * src/Util.h
  14246. (sha1Sum): New function.
  14247. (computeFastSet): New function.
  14248. * src/Util.cc
  14249. (sha1Sum): New function.
  14250. (computeFastSet): New function.
  14251. * src/Peer.h
  14252. (fastExtensionEnabled): New variable.
  14253. (fastSet): New variable.
  14254. (setAllBitfield): New function.
  14255. (setFastExtensionEnabled): New function.
  14256. (isFastExtensionEnabled): New function.
  14257. (addFastSetIndex): New function.
  14258. (getFastSet): New function.
  14259. (isInFastSet): New function.
  14260. (countFastSet): New function.
  14261. * src/Peer.cc
  14262. (isInFastSet): New function.
  14263. (addFastSetIndex): New function.
  14264. (setAllBitfield): New function.
  14265. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14266. sockets.
  14267. * src/PeerAbstractCommand.cc
  14268. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14269. and uploadLimit.
  14270. (execute): Changed the procedure of checking sockets. The upload speed
  14271. checking were added.
  14272. (setUploadLimit): New function.
  14273. (setUploadLimitCheck): New function.
  14274. * src/PeerAbstractCommand.h
  14275. (setUploadLimit): New function.
  14276. (setUploadLimitCheck): New function.
  14277. (uploadLimit): New variable.
  14278. (uploadLimitCheck): New variable.
  14279. To contact a tracker regularly:
  14280. * src/TrackerWatcherCommand.h (interval): New variable.
  14281. (checkPoint): New variable.
  14282. (TrackerWatcherCommand): Added interval argument.
  14283. * src/TrackerWatcherCommand.cc
  14284. (TrackerWatcherCommand): Initialized checkPoint.
  14285. (execute): Now a tracker is contacted in every specified period.
  14286. If peer list is not needed, send request with numwant=0.
  14287. * src/TrackerUpdateCommand.cc
  14288. (execute): Updated log messages.
  14289. * src/DownloadEngine.cc
  14290. (~DownloadEngine): Removed two asserts.
  14291. (waitData): Uncommented wfds. May be a bug fix.
  14292. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14293. * src/PeerInteractionCommand.h
  14294. (checkInactiveConnection): Removed.
  14295. * src/PeerInteractionCommand.cc
  14296. (executeInternal): Removed following function calls:
  14297. detectMessageFlooding(), checkLongTimePeerChoking and
  14298. checkInactiveConnection().
  14299. (checkInactiveConnection): Removed.
  14300. (detectMessageFlooding): Removed function call to
  14301. checkInactiveConnection().
  14302. * src/PeerMessageUtil.h
  14303. (createChokeMessage): New function. Overload.
  14304. (createUnchokeMessage): New function. Overload.
  14305. (createInterestedMessage): New function. Overload.
  14306. (createNotInterestedMessage): New function. Overload.
  14307. (createHaveMessage): New function. Overload.
  14308. (createBitfieldMessage): New function. Overload.
  14309. (createRequestMessage): New function. Overload.
  14310. (createCancelMessage): New function. Overload.
  14311. (createPieceMessage): New function. Overload.
  14312. (createKeepAliveMessage): New function. Overload.
  14313. * src/PeerMessageUtil.cc
  14314. (createChokeMessage): New function. Overload.
  14315. (createUnchokeMessage): New function. Overload.
  14316. (createInterestedMessage): New function. Overload.
  14317. (createNotInterestedMessage): New function. Overload.
  14318. (createHaveMessage): New function. Overload.
  14319. (createBitfieldMessage): New function. Overload.
  14320. (createRequestMessage): New function. Overload.
  14321. (createCancelMessage): New function. Overload.
  14322. (createPieceMessage): New function. Overload.
  14323. (createKeepAliveMessage): New function. Overload.
  14324. * src/SendMessageQueue.cc
  14325. (createRequestMessage): Use PeerMessageUtil.
  14326. (createCancelMessage): Use PeerMessageUtil.
  14327. (createPieceMessage): Use PeerMessageUtil.
  14328. (createHaveMessage): Use PeerMessageUtil.
  14329. (createChokeMessage): Use PeerMessageUtil.
  14330. (createUnchokeMessage): Use PeerMessageUtil.
  14331. (createInterestedMessage): Use PeerMessageUtil.
  14332. (createNotInterestedMessage): Use PeerMessageUtil.
  14333. (createBitfieldMessage): Use PeerMessageUtil.
  14334. (createKeepAliveMessage): Use PeerMessageUtil.
  14335. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14336. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14337. * src/PeerInteraction.h: New class.
  14338. * src/PeerInteraction.cc: New class.
  14339. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14340. Each peer message has its own class.
  14341. * src/PendingMessages.h: Removed.
  14342. * src/PendingMessages.cc: Removed. The sending process was moved to
  14343. each message class.
  14344. * src/RequestSlotMan.h: Removed.
  14345. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14346. SendMessageQueue.
  14347. * src/RequestMessage.h: New class.
  14348. * src/RequestMessage.cc: New class.
  14349. * src/CancelMessage.h: New class.
  14350. * src/CancelMessage.cc: New class.
  14351. * src/BitfieldMessage.h: New class.
  14352. * src/BitfieldMessage.cc: New class.
  14353. * src/ChokeMessage.h: New class.
  14354. * src/ChokeMessage.cc: New class.
  14355. * src/KeepAliveMessage.h: New class.
  14356. * src/KeepAliveMessage.cc: New class.
  14357. * src/PortMessage.h: New class.
  14358. * src/UnchokeMessage.h: New class.
  14359. * src/UnchokeMessage.cc: New class.
  14360. * src/PieceMessage.h: New class.
  14361. * src/PieceMessage.cc: New class.
  14362. * src/HaveMessage.h: New class.
  14363. * src/HaveMessage.cc: New class.
  14364. * src/BitfieldMessage.h: New class.
  14365. * src/BitfieldMessage.cc: New class.
  14366. * src/NotInterestedMessage.h: New class.
  14367. * src/NotInterestedMessage.cc: New class.
  14368. * src/InterestedMessage.h: New class.
  14369. * src/InterestedMessage.cc: New class.
  14370. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14371. (getSendMessageQueue): New function.
  14372. (setSendMessageQueue): New function.
  14373. * src/HandshakeMessage.cc: New class.
  14374. * src/PeerConnection.h (receiveMessage): Changed return value and
  14375. arguments.
  14376. (receiveHandshake): Changed return value and arguments.
  14377. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14378. here.
  14379. (receiveHandshake): Do not create handshake class here.
  14380. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14381. (piece): Removed.
  14382. (syncPiece): Removed.
  14383. (sendInterest): Removed.
  14384. (sendMessages): Removed.
  14385. (createRequestPendingMessage): Removed.
  14386. (checkPieceHash): Removed.
  14387. (erasePieceOnDisk): Removed.
  14388. (getNewPieceAndSendInterest): Removed.
  14389. (onGotNewPice): Removed.
  14390. (onGotWrongPiece): Removed.
  14391. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14392. Removed peerConnection, piece.
  14393. (~PeerInteractionCommand): Removed peerConnection.
  14394. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14395. (syncPiece): Moved to SendMessageQueue.
  14396. (decideChoking): Removed PendingMessage.
  14397. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14398. The action after receiving peer message was moved to each message
  14399. class.
  14400. (onGotNewPice): Moved to SendMessageQueue.
  14401. (onGotWrongPiece): Moved to SendMessageQueue.
  14402. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14403. (sendInterest): Moved to SendMessageQueue.
  14404. (createRequestPendingMessage): Removed.
  14405. (sendMessages): Moved to SendMessageQueue.
  14406. (onAbort): Use SendMessageQueue::abortPiece()
  14407. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14408. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14409. (checkPieceHash): Moved to SendMessageQueue.
  14410. (erasePieceOnDisk): Moved to SendMessageQueue.
  14411. * src/PeerMessageUtil.h
  14412. (createBitfieldMessage): Removed.
  14413. (createHaveMessage): Changed return value and arguments.
  14414. (createBitfieldMessage): Changed return value and arguments.
  14415. (createRequestCancelMessage): Removed.
  14416. (createPieceMessage): Changed return value and arguments.
  14417. (getShortIntParam): New function.
  14418. (checkIndex): Changed arguments.
  14419. (checkBegin): Changed arguments.
  14420. (checkLength): Changed arguments.
  14421. (checkPieceOffset): Removed.
  14422. (checkRange): New function.
  14423. (checkBitfield): Changed arguments.
  14424. (createPeerMessage): Removed.
  14425. (checkIntegrity): Removed.
  14426. (createHandshakeMessage): Changed arguments.
  14427. (createChokeMessage): New function.
  14428. (createUnchokeMessage): New function.
  14429. (createInterestedMessage): New function.
  14430. (createNotInterestedMessage): New function.
  14431. (createRequestMessage): New function.
  14432. (createCancelMessage): New function.
  14433. (createPortMessage): New function.
  14434. * src/PeerMessageUtil.cc
  14435. (createBitfieldMessage): Removed.
  14436. (createHaveMessage): Changed return value and arguments.
  14437. (createBitfieldMessage): Changed return value and arguments.
  14438. (createRequestCancelMessage): Removed.
  14439. (createPieceMessage): Changed return value and arguments.
  14440. (getShortIntParam): New function.
  14441. (checkIndex): Changed arguments.
  14442. (checkBegin): Changed arguments.
  14443. (checkLength): Changed arguments.
  14444. (checkPieceOffset): Removed.
  14445. (checkRange): New function.
  14446. (checkBitfield): Changed arguments.
  14447. (createPeerMessage): Removed.
  14448. (checkIntegrity): Removed.
  14449. (createHandshakeMessage): Changed arguments.
  14450. (createChokeMessage): New function.
  14451. (createUnchokeMessage): New function.
  14452. (createInterestedMessage): New function.
  14453. (createNotInterestedMessage): New function.
  14454. (createRequestMessage): New function.
  14455. (createCancelMessage): New function.
  14456. (createPortMessage): New function.
  14457. * src/PeerMessage.h
  14458. (id): Removed.
  14459. (index): Removed.
  14460. (begin): Removed.
  14461. (length): Removed.
  14462. (bitfield): Removed.
  14463. (bitfieldLength): Removed.
  14464. (block): Removed.
  14465. (blockLength): Removed.
  14466. (inProgress): New variable.
  14467. (cuid): New variable.
  14468. (peer): New variable.
  14469. (sendMessageQueue): New variable.
  14470. (logger): New variable.
  14471. (setBitfield): Removed.
  14472. (getBitfield): Removed.
  14473. (setBlock): Removed.
  14474. (getBlock): Removed.
  14475. (getBitfieldLength): Removed.
  14476. (getBlockLength): Removed.
  14477. (isInProgress): New function.
  14478. (toString): Made pure virtual.
  14479. (check): New function.
  14480. (send): New function.
  14481. (receivedAction): New function.
  14482. (getId): Made pure virtual.
  14483. (setId): Removed.
  14484. (getIndex): Removed.
  14485. (setIndex): Removed.
  14486. (getBegin): Removed.
  14487. (setBegin): Removed.
  14488. (getLength): Removed.
  14489. (setLength): Removed.
  14490. (getCuid): New function.
  14491. (setCuid): New function.
  14492. (getPeer): New function.
  14493. (setPeer): New function.
  14494. (getSendMessageQueue): New function.
  14495. (setSendMessageQueue): New function.
  14496. (ID): Removed.
  14497. * src/PeerMessage.cc
  14498. (setBitfield): Removed.
  14499. (setBlock): Removed.
  14500. (toString): Removed.
  14501. * src/TorrentMan.h
  14502. (getPieceLength): New function.
  14503. (getPieceLength): New function.
  14504. * src/SendMessageQueue.h
  14505. (REQUEST_TIME_OUT): New definition.
  14506. (RequestSlots): New definition.
  14507. (MessageQueue): New definition.
  14508. (requestSlotMan): Removed.
  14509. (pendingMessages): Removed.
  14510. (requestSlots): New variable.
  14511. (messageQueue): New variable.
  14512. (torrentMan): New variable.
  14513. (peerConnection): New variable.
  14514. (peer): New variable.
  14515. (piece): New variable.
  14516. (getNewPieceAndSendInterest): New function.
  14517. (createPeerMessage): New function.
  14518. (createHandshakeMessage): New function.
  14519. (send): Made private.
  14520. (setPeerMessageCommonProperty): New function.
  14521. (deleteAllRequestSlot): New function.
  14522. (deleteRequestMessageInQueue): New function.
  14523. (cancelAllRequest): Made private.
  14524. (cancelAllRequest): Made private.
  14525. (countRequestSlot): Made private.
  14526. (addPendingMessage): Removed.
  14527. (deletePendingPieceMessage): Removed.
  14528. (deletePendingRequestMessage): Removed.
  14529. (addMessage): New function.
  14530. (deletePieceMessageInQueue): New function.
  14531. (deleteTimeoutRequestSlot): Changed argument.
  14532. (deleteCompletedRequestSlot): Changed argument.
  14533. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14534. (getCorrespondingRequestSlot): New function.
  14535. (countPendingMessage): Removed.
  14536. (countMessageInQueue): New function.
  14537. (getTorrentMan): New function.
  14538. (getPeerConnection): New function.
  14539. (hasDownloadPiece): New function.
  14540. (getDownloadPiece): New function.
  14541. (setDownloadPiece): New function.
  14542. (syncPiece): New function.
  14543. (sendMessages): New function.
  14544. (sendNow): New function.
  14545. (trySendNow): New function.
  14546. (abortPiece): New function.
  14547. (sendHandshake): New function.
  14548. (receiveMessage): New function.
  14549. (receiveHandshake): New function.
  14550. (createRequestMessage): New function.
  14551. (createCancelMessage): New function.
  14552. (createPieceMessage): New function.
  14553. (createHaveMessage): New function.
  14554. (createChokeMessage): New function.
  14555. (createUnchokeMessage): New function.
  14556. (createInterestedMessage): New function.
  14557. (createNotInterestedMessage): New function.
  14558. (createBitfieldMessage): New function.
  14559. (createKeepAliveMessage): New function.
  14560. * src/SendMessageQueue.cc
  14561. (SendMessageQueue): Removed requestSlotMan.
  14562. Instantiated peerConnection here.
  14563. (~SendMessageQueue): Removed requestSlotMan.
  14564. Added deletion of peerConnection and the contents of messageQueue.
  14565. (send): Updated according to the change of messageQueue.
  14566. (addPendingMessage): Renamed to addMessage.
  14567. (addMessage): New function.
  14568. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14569. (deletePieceMessageInQueue): New function.
  14570. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14571. (deleteRequestMessageInQueue): New function.
  14572. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14573. here.
  14574. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14575. (...) was moved here.
  14576. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14577. moved here.
  14578. (deleteCompletedRequestSlot):
  14579. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14580. (getCorrespondingRequestSlot):
  14581. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14582. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14583. (countPendingMessage): Renamed to countMessageInQueue.
  14584. (countMessageInQueue): New function.
  14585. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14586. (receiveHandshake): New function.
  14587. (createHandshakeMessage): New function.
  14588. (receiveMessage): New function.
  14589. (createPeerMessage): New function.
  14590. (syncPiece): New function.
  14591. (getNewPieceAndSendInterest): New function.
  14592. (sendMessages): New function.
  14593. (sendNow): New function.
  14594. (trySendNow): New function.
  14595. (sendHandshake): New function.
  14596. (abortPiece): New function.
  14597. (getDownloadPiece): New function.
  14598. (getPeerMessageCommonProperty): New function.
  14599. (createRequestMessage): New function.
  14600. (createCancelMessage): New function.
  14601. (createPieceMessage): New function.
  14602. (createHaveMessage): New function.
  14603. (createChokeMessage): New function.
  14604. (createUnchokeMessage): New function.
  14605. (createInterestedMessage): New function.
  14606. (createNotInterestedMessage): New function.
  14607. (createBitfieldMessage): New function.
  14608. (createKeepAliveMessage): New function.
  14609. To add simple Content-Disposition support:
  14610. * src/HttpResponseCommand.h (determinFilename): New function.
  14611. * src/HttpResponseCommand.cc (executeInternal):
  14612. Use determinFilename(headers) instead of req->getFile() when comparing
  14613. filename.
  14614. (determinFilename): New function.
  14615. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14616. req->getFile().
  14617. (handleOtherEncoding): Use determinFilename(headers) instead of
  14618. req->getFile().
  14619. * src/Util.h (getContentDispositionFilename): New function.
  14620. * src/Util.cc (getContentDispositionFilename): New function.
  14621. * src/LogFactory.h (release): New function.
  14622. * src/LogFactory.cc (release): New function.
  14623. To fix a bug that causes out-of-bound exception when HTTP status
  14624. line is wrong:
  14625. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14626. size.
  14627. * src/common.h (Deleter): New class.
  14628. * src/SegmentMan.cc
  14629. (~SegmentMan): Added deletion of splitter and diskWriter.
  14630. * src/DownloadEngine.h
  14631. (Commands): Use deque.
  14632. (clearQueue): New function.
  14633. * src/DownloadEngine.cc
  14634. (~DownloadEngine): Added deletion of segmentMan.
  14635. (cleanQueue): New function.
  14636. * src/TorrentDownloadEngine.h
  14637. (TorrentDownloadEngine): The implementation was moved to
  14638. TorrentDownloadEngine.cc.
  14639. (~TorrentDownloadEngine): The implementation was moved to
  14640. TorrentDownloadEngine.cc.
  14641. * src/TorrentDownloadEngine.cc
  14642. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14643. * src/main.cc
  14644. (clearRequest): Removed.
  14645. (handler): Added deletion of e.
  14646. (torrentHandler): Added deletion of te.
  14647. (main): Do not share splitter.
  14648. Use Deleter instead of clearRequest.
  14649. Deletion of classes were updated.
  14650. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14651. * src/main.cc (main): Fixed typo.
  14652. * src/message.h: Fixed typo.
  14653. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14654. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14655. To add --select-file command-line option:
  14656. * src/Util.cc
  14657. (unfoldRange): New function.
  14658. (getNum): New function.
  14659. (unfoldSubRange): New function
  14660. * src/main.cc
  14661. (showUsage): Added help message.
  14662. (main): Added --select-file command-line option. Updated the layout of
  14663. file listing.
  14664. * src/common.h
  14665. (Integers): New definition.
  14666. * src/SocketCore.cc
  14667. (writeData): Removed timeout argument.
  14668. (readData): Removed timeout argument.
  14669. (peekData): Removed timeout argument.
  14670. * src/Socket.cc
  14671. (writeData): Removed timeout argument.
  14672. (readData): Removed timeout argument.
  14673. (peekData): Removed timeout argument.
  14674. * Release 0.4.1
  14675. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14676. To deploy upload rate based choking algorithm:
  14677. * src/PeerInteractionCommand.cc
  14678. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14679. peer currently used.
  14680. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14681. download completes. Simplified.
  14682. (receiveMessage): Updated.
  14683. * src/TorrentMan.h
  14684. (activePeers): New variable.
  14685. (addActivePeer): New function.
  14686. (getActivePeers): New function.
  14687. (deleteActivePeer): New function.
  14688. * src/TorrentMan.cc
  14689. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14690. * src/PeerAbstractCommand.cc
  14691. (onAbort): Use peer->resetStatus().
  14692. * src/main.cc
  14693. (PeerChokeCommand.h): Included.
  14694. (main): Added the instance of ChokingCommand to the command queue.
  14695. * src/Peer.h
  14696. (amChoking): Renamed from amChocking
  14697. (chokingRequired): New variable.
  14698. (optUnchoking): New variable.
  14699. (deltaUpload): New variable.
  14700. (deltaDownload): New variable.
  14701. (addDeltaUpload): New function.
  14702. (resetDeltaUpload): New function.
  14703. (addDeltaDownload): New function.
  14704. (resetDeltaDownload): New function.
  14705. (addPeerUpload): Added a call to addDeltaUpload.
  14706. (addPeerDownload): Added a call to addDeltaDownload.
  14707. * src/Peer.cc
  14708. (shouldBeChoking): Renamed from shouldChoke.
  14709. (resetStatus): New function.
  14710. * src/PeerChokeCommand.h: New class.
  14711. * src/PeerChokeCommand.cc: New class.
  14712. To add lazy upload speed limiter:
  14713. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14714. statistics calculation to TorrentDownloadEngine.
  14715. * src/TorrentConsoleDownloadEngine.cc
  14716. (sendStatistics): Renamed from printStatistics.
  14717. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14718. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14719. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14720. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14721. calculation.
  14722. (sendStatistics): New function as pure virtual function.
  14723. (getUploadSpeed): New function.
  14724. * src/TorrentDownloadEngine.cc
  14725. (initStatistics): New function.
  14726. (calculateSpeed): New function.
  14727. (calculateStatistics): New function.
  14728. * src/SendMessageQueue.h
  14729. (uploadLength): New variable.
  14730. (send): Added an argument.
  14731. (setUploadLimit): New function.
  14732. (getUploadLimit): New function.
  14733. * src/SendMessageQueue.cc
  14734. (send): Added upload speed limiter.
  14735. * src/prefs.h
  14736. (PREF_UPLOAD_LIMIT): New definition.
  14737. * src/PeerInteractionCommand.cc
  14738. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14739. * src/main.cc
  14740. (main): Added --upload-limit option
  14741. For bug fixes:
  14742. * src/main.cc
  14743. (showUsage): Corrected --listen-port help
  14744. Other changes:
  14745. * src/TorrentMan.cc
  14746. (getPeer): Return nullPeer if connection is grather than
  14747. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14748. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14749. To add some useful information to the exception message:
  14750. * src/SocketCore.cc : Updated messages.
  14751. * src/SegmentMan.cc :
  14752. * src/TorrentMan.cc : Updated messages.
  14753. * src/MultiDiskWriter.cc : Updated messages.
  14754. * src/Util.cc : Updated messages.
  14755. * src/AbstractDiskWriter.cc : Updated messages.
  14756. * src/PreAllocationDiskWriter.cc : Updated messages.
  14757. * src/message.cc : Added new messages. Updated some messages.
  14758. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14759. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14760. Updated threshold from 30 to 15.
  14761. * src/AbstractDiskWriter.h (filename): New variable.
  14762. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14763. (createFile): Assigned filename.
  14764. * src/main.cc: Updated the help message for http-auth-scheme.
  14765. * Release 0.4.0
  14766. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14767. To add TrackerUpdateCommand with which replaces
  14768. CompactTrackerResponseProcessor:
  14769. * src/TrackerWatcherCommand.h (req): Removed.
  14770. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14771. if the number of peer connections are less than 30.
  14772. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14773. * src/SegmentMan.h (diskWriter): New function.
  14774. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14775. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14776. (main): Use TrackerUpdateCommand.
  14777. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14778. (req): New variable.
  14779. (setTrackerResponseProcessor): Removed.
  14780. (getTrackerResponseProcessor): Removed.
  14781. (processTrackerResponse): Removed.
  14782. * src/DownloadEngine.h (diskWriter): Removed.
  14783. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14784. to torrentMan->processTrackerResponse().
  14785. To add Util::expandBuffer:
  14786. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14787. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14788. * src/Util.h (expandBuffer): New function.
  14789. To fix the bug that causes segmentation fault when "-l ." is specified
  14790. in command-line option:
  14791. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14792. (openFile): New function.
  14793. (closeFile): New function.
  14794. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14795. (~SimpleLogger): Call closeFile();
  14796. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14797. * src/main.cc (main): Added a check to see logger is configured
  14798. properly.
  14799. To enable HTTP authentication without specifying "--http-auth-scheme"
  14800. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14801. * src/HttpConnection.cc (createRequest): Send Authorization header
  14802. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14803. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14804. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14805. * src/Peer.cc (shouldChoke): Updated algorithm.
  14806. * src/message.h (EX_AUTH_FAILED): New definition.
  14807. (EX_FILE_OPEN): New definition.
  14808. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14809. if status == 401.
  14810. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14811. if req->isTorrent == true.
  14812. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14813. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14814. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14815. (createFile): Updated message.
  14816. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14817. To add a readout of estimated remaining time to normal HTTP/FTP
  14818. downloads:
  14819. * src/ConsoleDownloadEngine.h (startup): New variable.
  14820. (startupLength): New variable.
  14821. (isStartupLengthSet): New variable.
  14822. (avgSpeed): New variable.
  14823. (eta): New variable.
  14824. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14825. estimated remaining time.
  14826. (initStatistics): Initialized newly added variables.
  14827. (calculateStatistics): Calculate average speed and estimated remaining
  14828. time.
  14829. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14830. * src/TrackerDownloadCommand.h: Removed.
  14831. * src/TrackerDownloadCommand.cc: Removed.
  14832. * src/TrackerInitCommand.h: Removed.
  14833. * src/TrackerInitCommand.cc: Removed.
  14834. * src/TrackerUpdateCommand.h: Removed.
  14835. * src/TrackerUpdateCommand.cc: Removed.
  14836. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14837. url written in TrackerInitCommand was moved here. Do not create
  14838. tracker request command if torrentMan->trackers != 0.
  14839. * src/CompactTrackerResponseProcessor.h: New class.
  14840. * src/CompactTrackerResponseProcessor.cc: New class.
  14841. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14842. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14843. Decoupled TorrentDownloadEngine from this.
  14844. * src/SegmentMan.h (init): New function.
  14845. * src/SegmentMan.cc (init): New function.
  14846. * src/TorrentMan.h (responseProcessor): New variable.
  14847. (trackers): New variable.
  14848. (setTrackerResponseProcessor): New function.
  14849. (getTrackerResponseProcessor): New function.
  14850. (processTrackerResponse): New function.
  14851. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14852. (processTrackerResponse): New function.
  14853. * src/main.cc (main): Use ByteArrayDiskWriter and
  14854. CompactTrackerResponseProcessor.
  14855. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14856. processTrackerResponse().
  14857. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14858. readout.
  14859. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14860. which indicates download has completed.
  14861. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14862. (closeFile): fd >= 0, not fd > 0
  14863. * src/main.cc (main): Added short cut for show-files.
  14864. Added short cut for torrent-file.
  14865. Added new command-line option listen-port.
  14866. Updated i18n messages.
  14867. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14868. To add LogFactory which creates singleton logger:
  14869. * src/LogFactory.h: New class.
  14870. * src/LogFactory.cc: New class.
  14871. * src/Command.h (logger): New variable.
  14872. (Constructor): Use LogFactory.
  14873. * src/AbstractCommand.cc: Use Command::logger
  14874. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  14875. Use LogFactory.
  14876. * src/SegmentSplitter.h : Made logger protected.
  14877. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  14878. * src/SegmentMan.cc (Constructor): Use LogFactory.
  14879. * src/DownloadEngine.h : Made logger protected.
  14880. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  14881. * src/PeerInteractionCommand.cc : Use Command::logger.
  14882. * src/HttpResponseCommand.cc : Use Command::logger.
  14883. * src/SegmentMan.h : Made logger private.
  14884. * src/TorrentMan.h : Made logger private.
  14885. * src/TorrentMan.cc : Use LogFactory.
  14886. * src/FtpNegotiateCommand.cc : Use Command::logger.
  14887. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  14888. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  14889. Use LogFactory.
  14890. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  14891. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  14892. Use LogFactory.
  14893. * src/DownloadCommand.cc : Use Command::logger.
  14894. * src/PeerAbstractCommand.cc : Use Command::logger.
  14895. * src/PeerListenCommand.cc : Use Command::logger.
  14896. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  14897. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  14898. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  14899. * src/TrackerWatcherCommand.cc : Use Command::logger.
  14900. * src/TrackerUpdateCommand.cc : Use Command::logger.
  14901. * src/TrackerDownloadCommand.cc : Use Command::logger.
  14902. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  14903. Use LogFactory.
  14904. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  14905. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  14906. Use LogFactory.
  14907. * src/main.cc (main): Use LogFactory.
  14908. * src/DiskAdaptor.h (logger): New variable.
  14909. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  14910. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  14911. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14912. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  14913. parameter to a tracker request.
  14914. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  14915. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  14916. * src/main.cc (setSignalHander): New function.
  14917. (main): Added a handler for SIGTERM.
  14918. (handler): Updated message.
  14919. (torrentHandler): Updated message.
  14920. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14921. * src/TorrentConsoleDownloadEngine.cc
  14922. (onPartialDownloadingCompletes): Renamed as
  14923. onSelectiveDownloadingCompletes.
  14924. (onSelectiveDownloadingCompletes): Updated message.
  14925. To add DiskAdaptor which abstract DiskWriter family:
  14926. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  14927. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  14928. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  14929. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  14930. MultiDiskAdaptor.h.
  14931. (readFileEntry): Changed its arguments.
  14932. (setup): setupDiskWriter is merged into this function.
  14933. (setupDiskWriter): Removed.
  14934. (setFileFilter): New function.
  14935. (readFileEntryFromMetaInfoFile): Updated according to the changes
  14936. made in readFileEntry.
  14937. (getFilePath): Removed.
  14938. (getTempFilePath): Removed.
  14939. (getSegmentFilePath): Updated due to the removal of getFilePath.
  14940. (fixFilename): Removed.
  14941. (copySingleFile): Removed.
  14942. (splitMultiFile): Removed.
  14943. (deleteTempFile): Removed.
  14944. (setFileEntriesToDownload): Removed.
  14945. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  14946. (isSelectiveDownloadingMode): New function.
  14947. (setAllMultiFileRequestedState): Removed.
  14948. (finishPartialDownloadingMode): Renamed as
  14949. finishSelectiveDownloadingMode.
  14950. (finishSelectiveDownloadingMode): New function.
  14951. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  14952. (getSelectedTotalLength): New function.
  14953. (onDownloadComplete): Use diskAdaptor.
  14954. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  14955. (Range): Removed.
  14956. (setMultiFileEntries): Renamed as setFileEntries.
  14957. (setFileEntries): New function.
  14958. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  14959. (pieceLength): New variable.
  14960. * src/main.cc (printDownloadCompeleteMessage): New function.
  14961. (torrentHandler): Use diskAdaptor instead of diskWriter.
  14962. (main): Renamed torrent-show-files to show-files.
  14963. Rewritten file contents listing.
  14964. * src/TorrentMan.h (FileEntry): Removed.
  14965. (multiFileTopDir): Removed.
  14966. (multiFileEntries): Removed.
  14967. (diskWriter): Removed.
  14968. (diskAdaptor): New variable.
  14969. * src/DefaultDiskWriter.h (totalLength): New variable.
  14970. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  14971. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  14972. diskWriter.
  14973. * src/TorrentConsoleDownloadEngine.h
  14974. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  14975. (partialTotalLength): Renamed as selectedTotalLength.
  14976. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  14977. openExistingFile, otherwise call initAndOpenFile.
  14978. (closeFile): fd > 0, not fd != 0.
  14979. * src/DirectDiskAdaptor.h: New class.
  14980. * src/DirectDiskAdaptor.cc: New class.
  14981. * src/MultiDiskAdaptor.h: New class.
  14982. * src/MultiDiskAdaptor.cc: New class.
  14983. * src/CopyDiskAdaptor.h: New class.
  14984. * src/CopyDiskAdaptor.cc: New class.
  14985. * src/DiskAdaptor.h: New class.
  14986. * src/DiskAdaptor.cc: New class.
  14987. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  14988. (PREF_SHOW_FILES): New definition.
  14989. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14990. To add the ability to download multi torrent into respective files
  14991. directly:
  14992. * src/DiskWriter.h (openFile): New function.
  14993. (seek): Removed.
  14994. * src/MultiDiskWriter.h: New class.
  14995. * src/MultiDiskWriter.cc: New class.
  14996. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  14997. protected.
  14998. (openFile): New function.
  14999. * src/AbstractDiskWriter.cc (openFile): New function.
  15000. * src/prefs.h (V_FALSE): New definition.
  15001. (PREF_DIRECT_FILE_MAPPING): New definition.
  15002. * src/TorrentMan.h (setupDiskWriter): New function.
  15003. (setAllMultiFileRequestedState): New function.
  15004. (onDownloadComplete): New function.
  15005. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15006. (setupDiskWriter): New function.
  15007. (getFilePath): Updated.
  15008. (getTempFilePath): Updated.
  15009. (getSegmentFilePath): Updated.
  15010. (fixFilename): Updated.
  15011. (deleteTempFile): Updated.
  15012. (setAllMultiFileRequestedState): New function.
  15013. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15014. (finishPartialDownloadingMode): Reset requested flags.
  15015. (onDownloadComplete): New function.
  15016. * src/main.cc: Added --direct-file-mapping option.
  15017. Use TorrentMan::setupDiskWriter().
  15018. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15019. onDownloadComplete().
  15020. To fix ETA bug:
  15021. * src/Util.h (difftvsec): New function.
  15022. * src/Util.cc (difftvsec): New function.
  15023. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15024. type of "elapsed" instead of long long int.
  15025. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15026. The updates of statistics takes place every 1 seconds.
  15027. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15028. (calculateSpeed): Changed its argument signature.
  15029. * src/PeerMessage.cc (toString): Fixed message.
  15030. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15031. To print ETA:
  15032. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15033. completion handling when dealing with
  15034. TorrentMan::isPartialDownloadingMode() == true.
  15035. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15036. New function.
  15037. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15038. (sessionDownloadLength): New variable.
  15039. (avgSpeed): New variable.
  15040. (eta): New variable.
  15041. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15042. new variables: eta, avgSpeed, startup.
  15043. (calculateSpeed): Calculate average speed and ETA.
  15044. (printStatistics): Added ETA.
  15045. * src/Util.h (secfmt): New function.
  15046. * src/Util.cc (secfmt): New function.
  15047. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15048. To detect "keep alive" flooding:
  15049. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15050. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15051. variable: keepAliveCount.
  15052. (detectMessageFlooding): Added "keep alive" flooding detection.
  15053. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15054. received.
  15055. To add the ability to download only specified files in multi-file
  15056. torrent:
  15057. * src/BitfieldMan.h (filterBitfield): New variable.
  15058. (filterEnabled): New variable.
  15059. (setFilterBit): New function.
  15060. (enableFilter): New function.
  15061. (disableFilter): New function.
  15062. (isFilterEnabled): New function.
  15063. (getFilteredTotalLength): New function.
  15064. (getCompletedLength): New function.
  15065. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15066. filterBitfield, filterEnabled.
  15067. (CopyConstructor): Added filterBitfield and filterEnabled.
  15068. (operator==): Added filterBitfield and filterEnabled.
  15069. (Destructor): Added filterBitfield.
  15070. (getMissingIndex): Use filterBitfield.
  15071. (getMissingUnusedIndex): Use filterBitfield.
  15072. (getFirstMissingUnusedIndex): Use filterBitfield.
  15073. (getFirstMissingUnusedIndex): Use filterBitfield.
  15074. (getAllMissingIndexes): Use filterBitfield.
  15075. (countMissingBlock): Use filterBitfield.
  15076. (countBlock): Use filterBitfield.
  15077. (setBitInternal): Added new argument on.
  15078. (setUseBit): Use setBitInternal.
  15079. (unsetUseBit): Use setBitInternal.
  15080. (setBit): Use setBitInternal.
  15081. (unsetBit): Use setBitInternal.
  15082. (isAllBitSet): Use filterBitfield.
  15083. (setFilterBit): New function.
  15084. (addFilter): New function.
  15085. (enableFilter): New function.
  15086. (disableFilter): New function.
  15087. (clearFilter): New function.
  15088. (isFilterEnabled): New function.
  15089. (getFilteredTotalLength): New function.
  15090. (getCompletedLength): New function.
  15091. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15092. Initalized newly added variables.
  15093. [FileEntry](offset): New variable.
  15094. [FileEntry](extracted): New variable.
  15095. [FileEntry](requested): New variable.
  15096. (readFileEntry): New function.
  15097. (option): New variable.
  15098. (splitMultiFile): Removed const qualifier.
  15099. (fixFilename): Removed const qualifier.
  15100. (readFileEntryFromMetaInfoFile): New function.
  15101. (finishPartialDownloadingMode): New function.
  15102. (isPartialDownloadingMode): New function.
  15103. (setFileEntriesToDownload): New function.
  15104. (getCompletedLength): New function.
  15105. (getPartialTotalLength): New function.
  15106. * src/TorrentMan.cc (readFileEntry): New function.
  15107. (setup): Use readFileEntry. If no-preallocation option is specified,
  15108. use DefaultDiskWriter.
  15109. (readFileEntryFromMetaInfoFile): New function.
  15110. (fixFilename): Removed const qualifier.
  15111. (splitMultiFile): Removed const qualifier.
  15112. (setFileEntriesToDownload): New function.
  15113. (isPartialDownloadingMode): New function.
  15114. (finishPartialDownloadingMode): New function.
  15115. (getCompletedLength): New function.
  15116. (getPartialTotalLength): New function.
  15117. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15118. New variable.
  15119. (partialTotalLength): New variable.
  15120. (downloadLength): New variable.
  15121. (totalLength): New variable.
  15122. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15123. Added log.
  15124. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15125. partialTotalLength, downloadLength, totalLength.
  15126. (calculate): Calculate downloadLength and totalLength.
  15127. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15128. * src/main.cc (addCommand): Changed argument signature.
  15129. (main): Added new variable: args. Added new option "torrent-show-files"
  15130. "no-preallocation". Usage is not updated yet.
  15131. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15132. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15133. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15134. Attempt to add the ability to listing file entries in a .torrent file.
  15135. This feature is not yet complete.
  15136. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15137. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15138. (getName): New function.
  15139. * src/TorrentMan.h (getMultiFileEntries): New function.
  15140. (getName): New function.
  15141. * src/main.cc (main): Use above 2 funtion.
  15142. * Release 0.3.2
  15143. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15144. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15145. (detectMessageFlooding): Updated threshold value.
  15146. (checkLongTimePeerChoking): Updated timeout value.
  15147. (getNewPieceAndSendInterest): Added debug log.
  15148. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15149. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15150. (getPeer): Updated.
  15151. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15152. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15153. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15154. is localhost.
  15155. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15156. * src/PendingMessage.cc (processMessage): Not to send piece message
  15157. if peer is not interested in the pieces localhost has.
  15158. * src/Peer.cc (shouldChoke): Updated.
  15159. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15160. * src/Util.cc (isPowerOf): New function.
  15161. * src/Util.h (isPowerOf): New function.
  15162. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15163. whether or not it is power of 2.
  15164. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15165. Added new class SendMessageQueue that includes PendingMessages and
  15166. RequestSlotMan.
  15167. * src/SendMessageQueue.h: New class.
  15168. * src/SendMessageQueue.cc: New class.
  15169. * src/PendingMessage.h: Added new member variable blockIndex and its
  15170. accessors.
  15171. (createRequestMessage): Updated.
  15172. * src/PendingMessage.cc (createRequestMessage): Updated.
  15173. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15174. SendMessageQueue.
  15175. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15176. (receiveMessage): Updated with SendMessageQueue.
  15177. (deletePendingPieceMessage): Removed.
  15178. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15179. (sendInterest): Updated with SendMessageQueue.
  15180. (createRequestPendingMessage): Updated with SendMessageQueue.
  15181. (sendMessages): Updated with SendMessageQueue.
  15182. (onAbort): Updated with SendMessageQueue.
  15183. (keepAlive): Updated with SendMessageQueue.
  15184. (beforeSocketCheck): Updated SendMessageQueue.
  15185. * src/PeerInteractionCommand (sendMessages): Shuffle
  15186. missingBLockIndexes before using it.
  15187. Added its own timeout for peer connection.
  15188. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15189. setter.
  15190. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15191. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15192. Added setTimeout() call.
  15193. (executeInternal): Added setTimeout() call.
  15194. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15195. Added timeout.
  15196. (isTimeoutDetected): Updated.
  15197. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15198. option.
  15199. Added *simple* message flooding checker.
  15200. * src/PeerInteractionCommand.cc (executeInternal):
  15201. Added detectMessageFlooding() call.
  15202. (detectMessageFlooding): New function.
  15203. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15204. (beforeSocketCheck): Added detectMessageFlooding() call.
  15205. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15206. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15207. Removed deletePendingPieceMessage(), getRequestSlot(),
  15208. deleteRequestSlot(), deleteAllRequestSlot().
  15209. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15210. Added checkLongTimePeerChoking() call.
  15211. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15212. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15213. if duplicate == false.
  15214. The parameter "uploaded" and "downloaded" in the tracker request are
  15215. the size since the client sent the "started" event to the tracker.
  15216. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15217. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15218. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15219. getSessionDownloadedSize(), getSessionUploadedSize().
  15220. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15221. getSessionUploadedSize() instead of getDownloadedSize(),
  15222. getUploadedSize().
  15223. * src/PendingMessage.cc (processMessage): Do not send request message
  15224. if the peer is choking the client.
  15225. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15226. less than interval.
  15227. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15228. * configure.in: Added gnutls support. Added several CPP macros.
  15229. * m4/openssl.m4: Added.
  15230. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15231. readData(), peekData(). Added gnutls support.
  15232. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15233. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15234. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15235. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15236. Instead, added a check for whether setup method has executed
  15237. successfully.
  15238. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15239. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15240. * src/Makefile.am: Updated.
  15241. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15242. using whether OpenSSL or gcrypt, depending on the result of configure
  15243. script.
  15244. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15245. messageDigest.h.
  15246. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15247. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15248. Fixed memory leak.
  15249. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15250. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15251. Removed instantiation of TrackerInitCommand. Instead,
  15252. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15253. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15254. ENABLE_SSL.
  15255. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15256. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15257. If a piece is already acquired by another command, delete the request
  15258. slots for the piece.
  15259. * src/TrackerUpdateCommand.cc (execute):
  15260. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15261. Added a check whether peer list is null.
  15262. Fixed the bug that causes sending completed event to the tracker
  15263. several times.
  15264. * src/TrackerInitCommand.cc (execute):
  15265. Fixed the bug that causes sending completed event to the tracker
  15266. several times.
  15267. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15268. by using messageDigest.h.
  15269. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15270. * PeerConnection.cc: Replaced log message "keep-alive" with
  15271. "keep alive".
  15272. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15273. localhost long time.
  15274. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15275. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15276. at most 100 failure entry from the list. If with duplicate = false,
  15277. MAX_PEER_LIST is not checked.
  15278. * PeerListenCommand.cc: Fixed the argument order of log message.
  15279. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15280. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15281. Added warn().
  15282. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15283. Implemented warn().
  15284. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15285. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15286. * Request.h: Added AFTER_COMPLETED event.
  15287. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15288. instead of downloaded size and progress(%) after download completes.
  15289. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15290. message to the peer if it is interested in what localhost has
  15291. downloaded.
  15292. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15293. destination instead of just renaming it.
  15294. * TorrentMan.cc: Added deleteTempFile().
  15295. * PeerAbstractCommand.cc: do not stop execution after download
  15296. completes. This makes localhost a seeder.
  15297. * Util.{h,cc}: Added fileCopy().
  15298. * PeerListenCommand.cc: do not stop execution after download completes.
  15299. This makes localhost a seeder.
  15300. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15301. Added TorrentMan::deleteTempFile() to torrentHandler.
  15302. Initialized the variable dir as ".".
  15303. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15304. Deleted renameSingleFile().
  15305. Added copySingleFile(), deleteTempFile().
  15306. * DownloadEngine.h: Added virtual function afterEachIteration().
  15307. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15308. in onEndOfRun() to afterEachIteration().
  15309. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15310. true.
  15311. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15312. In rangedFileCopy(), added try-catch block to properly close file
  15313. descriptors.
  15314. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15315. Added afterEachIteration(), isFilenameFixed().
  15316. * Peer.cc: Changed choking strategy.
  15317. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15318. * TrackerInitCommand.cc: Send completed event only once.
  15319. * DownloadEngine.cc: Added a call to afterEachIteration().
  15320. * TrackerUpdateCommand.cc: Do not stop execution after download
  15321. completes.
  15322. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15323. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15324. received from a tracker.
  15325. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15326. Decreased the number of failure peers to delete to 0(just comment out
  15327. the line).
  15328. * Release 0.3.1
  15329. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15330. * PeerInteractionCommand.cc: added a call to
  15331. TorrentMan::unadvertisePiece in Destructor.
  15332. * PeerInteractionCommand.cc: make have message sent immediately
  15333. if the size of pending message queue is zero.
  15334. * TorrentMan.cc: set the maximum size of peer list to 250.
  15335. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15336. to deque.
  15337. * Util.cc: fixed rangedFileCopy.
  15338. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15339. to Constructor. Also, moved digest cleanup to Destructor.
  15340. * MetaFileUtil.cc: fixed memory leak
  15341. * replaced std::vector with std::deque.
  15342. * AbstractCommand.cc: casted timeout value to long long int.
  15343. * ChunkedEncoding.cc: fixed memory leak.
  15344. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15345. * SleepCommand.cc: casted timeout value to long long int.
  15346. * Data.cc: fixed memory leak.
  15347. * Data.cc: fixed toLLInt().
  15348. * BitfieldMan.cc: fixed memory leak.
  15349. * TorrentMan.cc: initialized storeDir to ".".
  15350. * TorrentMan.cc: fixed memory leak.
  15351. * TorrentMan.cc: corrected file paths of splitted files.
  15352. * PeerAbstractCommand.cc: casted timeout to long long int.
  15353. * main.cc: added delete(req) and delete(te->diskWriter).
  15354. * RequestSlot.cc: casted timeout value to long long int.
  15355. * Request.cc: fixed memory leak.
  15356. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15357. have the piece.
  15358. * Peer.{h,cc}: added hasPiece(int index).
  15359. * main.cc: corrected addCommand.
  15360. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15361. * BitTorrent protocol support added.
  15362. * Release 0.3.0
  15363. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15364. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15365. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15366. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15367. decoding did not work properly.
  15368. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15369. * DownloadEngine.h: included sys/time.h
  15370. * DownloadEngine.cc: remove sys/time.h
  15371. * Makefile.am (SUBDIRS): Add intl.
  15372. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15373. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15374. * main.cc: correct help message for --http-auth-scheme.
  15375. * main.cc: changed e-mail address for bug reports.
  15376. * ja.po: added japanese translation.
  15377. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15378. * SimpleLogger.cc: flush log file instead of stdout.
  15379. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15380. * main.cc: Fixed command-line option: max-tries
  15381. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15382. does not equal to seg.sp.
  15383. * DownloadCommand.cc: If EOF is got from the server and the total size
  15384. of file is not zero, then throw DlRetryEx.
  15385. * main.cc: Set the minium value of min-segment-size to 1024.
  15386. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15387. fails because of a regression since 0.2.0 release.
  15388. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15389. * HttpConnection.cc:
  15390. * common.h: defined the user agent name as macro
  15391. * DownloadEngine.{h, cc}:
  15392. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15393. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15394. * main.cc: Download complete/abort message is now generated by main.
  15395. * Makefile.am (SUBDIRS): Add m4.
  15396. (ACLOCAL_AMFLAGS): New variable.
  15397. (EXTRA_DIST): New variable.
  15398. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15399. * gettext: added gettext functionality
  15400. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15401. * AbstractCommand.cc:
  15402. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15403. unregister its cuid from SegmentMan.
  15404. * DownloadEngine.cc: .aria2 file was written when a downloading
  15405. failed with errors.
  15406. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15407. Added "User-Agent" header to CONNECT proxy request.
  15408. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15409. properly.
  15410. * Logger.h:
  15411. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15412. * ChunkedEncoding.cc: Added #include directive for strings.h
  15413. * Release 0.2.1
  15414. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15415. * Util.{h,cc}: added startsWith().
  15416. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15417. Util::endsWith().
  15418. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15419. * common.h: added #include directive of limit.h.
  15420. * DownloadEngine.cc: added #include directive of sys/time.h and
  15421. algorithm.
  15422. * Exception.h: added #include directive of stdio.h.
  15423. * AbstractCommand.h: added #include directive of sys/time.h.
  15424. * DownloadCommand.h: added #include directive of sys/time.h.
  15425. * *.h: added #include directive of common.h to all base classes.
  15426. subclasses' one was removed.
  15427. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15428. does not define these macros.
  15429. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15430. * Release 0.2.0
  15431. * main.cc:
  15432. * HttpInitiateConnectionCommand.{h,cc}:
  15433. * prefs.h:
  15434. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15435. We can now use GET command in http proxy.
  15436. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15437. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15438. that splits slowest segment of SegmentMan::commands vector.
  15439. This is the default split algorithm of aria2.
  15440. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15441. that splits first segment of SegmentMan::commands vector.
  15442. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15443. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15444. * Segment.h:
  15445. * SegmentMan.cc: Added speed field to Segment.h
  15446. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15447. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15448. * message.h: Change file size related %d to %lld.
  15449. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15450. * FtpInitiateConnectionCommand.{h,cc}:
  15451. * FtpNegotiationCommand.{h,cc}:
  15452. * FtpDownloadCommand.{h,cc}:
  15453. * FtpConnection.{h,cc}: Added FTP support
  15454. * SimpleLogger.cc: Log message now includes time information.
  15455. * main.cc: The value of --http-auth-scheme option is chagned from
  15456. 'BASIC' to 'basic'
  15457. * main.cc: Added --timeout command-line option.
  15458. * main.cc: Added --min-segment-size command-line option.
  15459. * main.cc: Added --max-retries command-line option.
  15460. * prefs.h: option string constants are now defined in prefs.h
  15461. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15462. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15463. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15464. with version 0.1.0's one.
  15465. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15466. * configure.in: Added --enable-ssl option to configure script.
  15467. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15468. cannot permit absoluteURI as Request-URI.
  15469. * HttpConnection.cc: Added Referer support.
  15470. * main.cc: Added referer command-line option.
  15471. * main.cc: Added rety-wait command-line option.
  15472. * Exception.h: Fixed formating bug in Exception::setMsg()
  15473. * SocketCore.{h,cc}:
  15474. * Socket.{h, cc}:
  15475. * Request.cc:
  15476. * InitiateConnectionCommandFactory.cc:
  15477. * HttpRequestCommand.cc: Added HTTPS support.
  15478. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  15479. for SocketCore.
  15480. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  15481. size is wrong
  15482. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  15483. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  15484. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  15485. * Release 0.1.0