ChangeLog 611 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563
  1. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Updated wiki page URI.
  3. * README
  4. * doc/aria2c.1.txt
  5. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Added README.txt for xmlrpc directory.
  7. * doc/Makefile.am
  8. * doc/xmlrpc/README.txt
  9. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Bump up version number to 1.6.0.
  11. * configure.ac
  12. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Added XML-RPC client scripts written in ruby.
  14. * doc/Makefile.am
  15. * doc/xmlrpc/aria2mon
  16. * doc/xmlrpc/aria2rpc
  17. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Added support for IPv6 literal address in URI. Now aria2 can
  19. handle URI such as http://[::1]/
  20. * src/HttpRequest.cc
  21. * src/HttpRequest.h
  22. * src/Request.cc
  23. * src/Request.h
  24. * test/HttpRequestTest.cc
  25. * test/OptionHandlerTest.cc
  26. * test/RequestTest.cc
  27. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Fixed the bug that HTTP request header for XML-RPC request is not
  29. parsed properly.
  30. * src/HttpHeader.cc
  31. * src/HttpHeaderProcessor.cc
  32. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Fixed the bug that XML-RPC authorization might be done before HTTP
  34. request header is fully received.
  35. * src/HttpServerCommand.cc
  36. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Documented --xml-rpc-listen-all option in man page.
  38. * doc/aria2c.1.txt
  39. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Added --xml-rpc-listen-all option. If true is given to this
  41. option, aria2 listens incoming XML-RPC requests on all network
  42. interfaces. If false is given, listens only on local loopback
  43. interface. The default value is false.
  44. * src/HttpListenCommand.cc
  45. * src/OptionHandlerFactory.cc
  46. * src/SocketCore.cc
  47. * src/SocketCore.h
  48. * src/prefs.cc
  49. * src/prefs.h
  50. * src/usage_text.h
  51. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. * Release 1.5.2
  53. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Updated Ukrainian and Russian translations. Thanks to all
  55. translators.
  56. * po/ru.po
  57. * po/uk.po
  58. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Bump up version number to 1.5.2
  60. * configure.ac
  61. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Get comment, comment.utf-8, created by and creation date from
  63. .torrent file and print them in -S output.
  64. * src/bittorrent_helper.cc
  65. * src/bittorrent_helper.h
  66. * test/BittorrentHelperTest.cc
  67. * test/test.torrent
  68. * test/utf8.torrent
  69. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Show exact file size along in -S option output.
  71. * src/Util.h
  72. * src/bittorrent_helper.cc
  73. * test/UtilTest.cc
  74. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Avoided unnecessary memory allocation in
  76. BitfieldMan::getCompletedLength().
  77. * src/BitfieldMan.cc
  78. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Fixed the bug that download fails if
  80. SocketCore::establishConnection() throws exception and aria2
  81. doesn't try another address.
  82. * src/AbstractCommand.cc
  83. * src/InitiateConnectionCommand.cc
  84. * src/message.h
  85. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  87. detected properly.
  88. * m4/sqlite3.m4
  89. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  91. because it causes compile error if PARAMS macro is defined.
  92. * src/XmlRpcElements.cc
  93. * src/XmlRpcElements.h
  94. * src/XmlRpcRequestParserStateImpl.cc
  95. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. * Release 1.5.1
  97. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Bump up version number to 1.5.1
  99. * configure.ac
  100. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Fixed compile error without BitTorrent support
  102. * src/DefaultBtProgressInfoFile.cc
  103. * src/DownloadEngine.cc
  104. * src/DownloadEngine.h
  105. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Added missing '=' in Download Results
  107. * src/RequestGroupMan.cc
  108. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Fixed compiler warning
  110. * src/DefaultBtProgressInfoFile.cc
  111. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Fixed compiler warning on 32bit systems.
  113. * src/DownloadCommand.cc
  114. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Call flush from ServerStatMan::save()
  116. * src/ServerStatMan.cc
  117. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Check stream status after file is opened.
  119. * src/CookieStorage.cc
  120. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Rewritten Signature::save()
  122. * src/Signature.cc
  123. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Rewritten RequestGroupMan::saveServerStat()
  125. * src/RequestGroupMan.cc
  126. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Rewritten stream error handling
  128. * src/DHTAutoSaveCommand.cc
  129. * src/DHTRoutingTableDeserializer.cc
  130. * src/DHTRoutingTableSerializer.cc
  131. * src/DHTSetup.cc
  132. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Check stream status after file is opened.
  134. * src/DefaultBtProgressInfoFile.cc
  135. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Rewritten stream error handling
  137. * src/DefaultBtProgressInfoFile.cc
  138. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Make sure that stream is closed before renaming file. Unit test
  140. fails on mingw32 in the previous implementation.
  141. * src/CookieStorage.cc
  142. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Fixed the unit test error without sqlite3
  144. * test/CookieStorageTest.cc
  145. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Fixed the undefined reference error
  147. * test/HttpResponseTest.cc
  148. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. * Release 1.5.0
  150. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  152. Ukrainian translations. Thanks to all translators.
  153. * po/ru.po
  154. * po/it.po
  155. * po/da.po
  156. * po/bg.po
  157. * po/ja.po
  158. * po/uk.po
  159. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Added missing src/Logger.cc
  161. * src/Logger.cc
  162. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  163. Rewritten Logger to avoiding constly virtual call.
  164. * src/LogFactory.cc
  165. * src/LogFactory.h
  166. * src/Logger.h
  167. * src/Makefile.am
  168. * src/Makefile.in
  169. * src/NullLogger.h: Removed.
  170. * src/SimpleLogger.cc
  171. * src/SimpleLogger.h
  172. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Updated doc
  174. * src/main.cc
  175. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Updated debug log message
  177. * src/AbstractCommand.cc
  178. * src/message.h
  179. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  180. Avoid to create zombie process when commands specified in
  181. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  182. X and NetBSD.
  183. * src/main.cc
  184. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Fixed typo
  186. * src/usage_text.h
  187. * doc/aria2c.1.txt
  188. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Documented 'errorCode' of tellStatus in man page.
  190. * doc/aria2c.1.txt
  191. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  193. This key is only available for stopped/completed downloads and its
  194. value is the error code defined in EXIT STATUS in man page.
  195. * src/XmlRpcMethodImpl.cc
  196. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Fixed the bug that session download length is not updated when
  198. PeerStat is not fastest one.
  199. * src/SegmentMan.cc
  200. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Updated doc.
  202. * doc/aria2c.1.txt
  203. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Updated doc.
  205. * src/AbstractCommand.cc
  206. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Handle the case when DownloadContext has no FileEntry.
  208. * src/XmlRpcMethodImpl.cc
  209. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Handle the situation where struct option.name is char *.
  211. * configure.ac
  212. * src/OptionParser.cc
  213. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Code cleanup
  215. * src/AbstractCommand.cc
  216. * src/DownloadCommand.cc
  217. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Use option of each download to create AuthConfig instead of global
  219. option.
  220. * src/AuthConfigFactory.cc
  221. * src/AuthConfigFactory.h
  222. * src/FtpNegotiationCommand.cc
  223. * src/HttpRequest.cc
  224. * src/HttpRequest.h
  225. * src/HttpRequestCommand.cc
  226. * src/HttpSkipResponseCommand.cc
  227. * src/MultiUrlRequestInfo.cc
  228. * test/AuthConfigFactoryTest.cc
  229. * test/FtpConnectionTest.cc
  230. * test/HttpRequestTest.cc
  231. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Don't call prepareForRetry(1) if all segments are ignored in
  233. SegmentMan.
  234. * src/AbstractCommand.cc
  235. * src/BitfieldMan.cc
  236. * src/BitfieldMan.h
  237. * src/SegmentMan.cc
  238. * src/SegmentMan.h
  239. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  240. Removed FileEntry::getAssociatedUris()
  241. * src/FileEntry.h
  242. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Updated doc: TODO1.5 -> TODO
  244. * src/FileEntry.cc
  245. * src/HttpResponseCommand.cc
  246. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Added assertion fileEntries.size() == 1 if BitTorrent is not
  248. involved.
  249. * src/RequestGroup.cc
  250. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Eliminated duplicated filterBitfield initialization code.
  252. * src/BitfieldMan.cc
  253. * src/BitfieldMan.h
  254. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  256. relatively naive approach, though). For DownloadFailureException,
  257. we handle the case when req is null properly.
  258. * src/AbstractCommand.cc
  259. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Added function returning suffix of control file to
  261. DefaultBtProgressInfoFile.
  262. * src/DefaultBtProgressInfoFile.cc
  263. * src/DefaultBtProgressInfoFile.h
  264. * src/RequestGroup.cc
  265. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Documented getVersion in man page.
  267. * doc/aria2c.1.txt
  268. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Documented type of offset and num for tellWaiting xml-rpc method.
  270. * doc/aria2c.1.txt
  271. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Implemented getVersion xml-rpc method. This method returns struct
  273. which has 2 key-value pairs: "version" key is associated to the
  274. version of aria2, such as "1.5.0". "enabledFeatures" key is
  275. associated to the list of enabled features, such as "Async DNS",
  276. "BitTorrent".
  277. * src/FeatureConfig.h
  278. * src/XmlRpcMethodFactory.cc
  279. * src/XmlRpcMethodImpl.cc
  280. * src/XmlRpcMethodImpl.h
  281. * test/XmlRpcMethodTest.cc
  282. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Removed TLS1.1 protocol support when aria2 is built with gnutls
  284. for compatibility issue.
  285. * src/SocketCore.cc
  286. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Fixed compile error with openSSL
  288. * src/bittorrent_helper.cc
  289. * src/messageDigest.h
  290. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Removed bad code: setting certificate type priority to key
  292. exchange priority.
  293. * src/SocketCore.cc
  294. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Disconnect seeder if client is also in seed state.
  296. * src/BtBitfieldMessage.cc
  297. * src/BtHaveAllMessage.cc
  298. * src/BtHaveMessage.cc
  299. * src/message.h
  300. * test/BtBitfieldMessageTest.cc
  301. * test/BtHaveAllMessageTest.cc
  302. * test/BtHaveMessageTest.cc
  303. * test/MockPieceStorage.h
  304. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Keep CreateRequestCommand in queue when no segment is available so
  306. that they can pick up pieces which slow BitTorrent peers are
  307. downloading.
  308. * src/AbstractCommand.cc
  309. * src/CreateRequestCommand.cc
  310. * src/CreateRequestCommand.h
  311. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. --bt-stop-timeout now only checks download speed.
  313. * src/BtStopDownloadCommand.cc
  314. * src/BtStopDownloadCommand.h
  315. * src/BtSetup.cc
  316. * src/usage_text.h
  317. * doc/aria2c.1.txt
  318. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Fixed compile error regarding BUFSIZE.
  320. * src/DownloadCommand.cc
  321. * src/DownloadCommand.h
  322. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  323. Documented tellWaiting xml-rpc method in man page.
  324. * doc/aria2c.1.txt
  325. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Bump up version number to 1.5.0
  327. * configure.ac
  328. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Removed resolved TODO1.5
  330. * src/AbstractCommand.cc
  331. * src/DownloadCommand.cc
  332. * src/RequestGroup.cc
  333. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Release pooled and in-flight Request objectsand URIResult objects
  335. in FileEntry after download completed.
  336. * src/DownloadContext.cc
  337. * src/DownloadContext.h
  338. * src/FileEntry.cc
  339. * src/FileEntry.h
  340. * src/RequestGroup.cc
  341. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  342. Set manual and source attribute in aria2c.1.txt
  343. * doc/aria2c.1.txt
  344. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  345. Documented that the default value of --use-head is 'false' in man
  346. page.
  347. * doc/aria2c.1.txt
  348. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Added bt-stop-timeout option to -i list.
  350. * doc/aria2c.1.txt
  351. * src/download_helper.cc
  352. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Fixed typo
  354. * doc/aria2c.1.txt
  355. * src/usage_text.h
  356. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Removed peer-id-prefix option from -i list.
  358. * doc/aria2c.1.txt
  359. * src/download_helper.cc
  360. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Fixed typo
  362. * doc/aria2c.1.txt
  363. * src/usage_text.h
  364. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Documented --bt-stop-timeout option in man page.
  366. * doc/aria2c.1.txt
  367. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Updated README regarding multi-file torrent web-seeding.
  369. * doc/README.txt
  370. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Updated man page regarding multi-file torrent web-seeding.
  372. * doc/aria2c.1.txt
  373. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Updated doc
  375. * src/version_usage.cc
  376. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Winsock select() doesn't work if no socket is in FD_SET. To
  378. overcome this problem, a dummy socket is added to FD_SET and it is
  379. given to select().
  380. * src/SelectEventPoll.cc
  381. * src/SelectEventPoll.h
  382. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Disabled --use-head option by default because --use-head=true
  384. causes problems on some web sites.
  385. * src/OptionHandlerFactory.cc
  386. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Print URL List in -S option for torrent.
  388. * src/bittorrent_helper.cc
  389. * src/bittorrent_helper.h
  390. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Allocate buffer in ctor of DownloadCommand.
  392. * src/DownloadCommand.cc
  393. * src/DownloadCommand.h
  394. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Removed DiskAdaptor::onDownloadComplete()
  396. * src/DirectDiskAdaptor.cc
  397. * src/DirectDiskAdaptor.h
  398. * src/DiskAdaptor.h
  399. * src/MultiDiskAdaptor.cc
  400. * src/MultiDiskAdaptor.h
  401. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Committed missing BtStopDownloadCommand.{cc,h}
  403. * src/BtStopDownloadCommand.cc
  404. * src/BtStopDownloadCommand.h
  405. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  407. download if the download speed is 0 and the number of seeder is 0
  408. in consecutive SEC seconds. By default, this function is disabled.
  409. * src/BtSetup.cc
  410. * src/Makefile.am
  411. * src/OptionHandlerFactory.cc
  412. * src/prefs.cc
  413. * src/prefs.h
  414. * src/usage_text.h
  415. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Removed the call to DiskAdaptor::onDownloadComplete() from
  417. BtCheckIntegrityEntry and DefaultPieceStorage.
  418. * src/BtCheckIntegrityEntry.cc
  419. * src/DefaultPieceStorage.cc
  420. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Commented out throw statements when number of piece is 0 to
  422. download 0 length torrent.
  423. * src/bittorrent_helper.cc
  424. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. Call RequestGroup::createNextCommandWithAdj() from
  426. BtFileAllocationEntry if at least one FileEntry has URI. The
  427. static function hasAssociatedUri in RequestGroup.cc is renamed as
  428. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  429. * src/BtFileAllocationEntry.cc
  430. * src/FileEntry.h
  431. * src/RequestGroup.cc
  432. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Generate peer ID after SimpleRandomizer is initialized.
  434. * src/main.cc
  435. * src/option_processing.cc
  436. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Removed unused method argument.
  438. * src/CreateRequestCommand.cc
  439. * src/RequestGroup.cc
  440. * src/RequestGroup.h
  441. * src/RequestGroupMan.cc
  442. * src/TrackerWatcherCommand.cc
  443. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Made URI reusing function work.
  445. * src/CreateRequestCommand.cc
  446. * src/FileEntry.cc
  447. * src/FileEntry.h
  448. * test/FileEntryTest.cc
  449. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  450. Add formerly fastest PeerStat's sessionDownloadLength to new
  451. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  452. bytes in a session.
  453. * src/PeerStat.cc
  454. * src/SegmentMan.cc
  455. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. If pipelining is enabled, we can always pool socket.
  457. * src/HttpDownloadCommand.cc
  458. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  459. In a single file download, file size becomes known just after
  460. downloading, set total length to FileEntry object when download
  461. completed.
  462. * src/DownloadCommand.cc
  463. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Use std::vector::reserve() for fileEntries and pieceHashes in
  465. bittorrent_helper
  466. * src/bittorrent_helper.cc
  467. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  468. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  469. Removed hidden option PREF_RESET_URI.
  470. * src/AbstractCommand.cc
  471. * src/OptionHandlerFactory.cc
  472. * src/prefs.cc
  473. * src/prefs.h
  474. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Removed unused variable/function.
  476. * src/PeerStat.h
  477. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  478. Show first URL in Download Results if file path is not available.
  479. * src/FileEntry.h
  480. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Throw exception if file path doesn't exist in FTP URL.
  482. * src/InitiateConnectionCommandFactory.cc
  483. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  485. * src/BitfieldMan.cc
  486. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  487. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  488. of PeerStat in SegmentMan. peerStats is used for calculating
  489. download speed. Therefore all active PeerStats should be in
  490. there. Another one is _fastestPeerStats and it only contains
  491. fastest PeerStat for each hostname/protocol pair. They are used
  492. for updating ServerStat.
  493. * src/DownloadCommand.cc
  494. * src/Request.h
  495. * src/RequestGroupMan.cc
  496. * src/SegmentMan.cc
  497. * src/SegmentMan.h
  498. * test/SegmentManTest.cc
  499. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Try all available addresses returned by DNS until it gets
  501. connected in HTTP(S)/FTP download
  502. * src/AbstractCommand.cc
  503. * src/AbstractCommand.h
  504. * src/AbstractProxyRequestCommand.cc
  505. * src/AbstractProxyRequestCommand.h
  506. * src/DNSCache.h
  507. * src/DownloadEngine.cc
  508. * src/DownloadEngine.h
  509. * src/FtpInitiateConnectionCommand.cc
  510. * src/FtpInitiateConnectionCommand.h
  511. * src/FtpNegotiationCommand.cc
  512. * src/FtpNegotiationCommand.h
  513. * src/HttpInitiateConnectionCommand.cc
  514. * src/HttpInitiateConnectionCommand.h
  515. * src/HttpRequestCommand.cc
  516. * src/HttpRequestCommand.h
  517. * src/InitiateConnectionCommand.cc
  518. * src/InitiateConnectionCommand.h
  519. * test/DNSCacheTest.cc
  520. * test/Makefile.am
  521. * test/SimpleDNSCacheTest.cc
  522. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Updated doc
  524. * src/download_helper.cc
  525. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  526. Refactored fieldMan ctor.
  527. * src/BitfieldMan.cc
  528. * src/BitfieldMan.h
  529. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Don't print "No files to download." message if -S is given.
  531. * src/main.cc
  532. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Set referer and method to newly created Request object.
  534. * src/CreateRequestCommand.cc
  535. * src/FileEntry.cc
  536. * src/FileEntry.h
  537. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Removed ctor of AbstractCommand which doesn't take FileEntry.
  539. * src/AbstractCommand.cc
  540. * src/AbstractCommand.h
  541. * src/CreateRequestCommand.cc
  542. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. Get proxy download working
  544. * src/AbstractProxyRequestCommand.cc
  545. * src/AbstractProxyRequestCommand.h
  546. * src/AbstractProxyResponseCommand.cc
  547. * src/AbstractProxyResponseCommand.h
  548. * src/FtpInitiateConnectionCommand.cc
  549. * src/FtpTunnelRequestCommand.cc
  550. * src/FtpTunnelRequestCommand.h
  551. * src/FtpTunnelResponseCommand.cc
  552. * src/FtpTunnelResponseCommand.h
  553. * src/HttpInitiateConnectionCommand.cc
  554. * src/HttpProxyRequestCommand.cc
  555. * src/HttpProxyRequestCommand.h
  556. * src/HttpProxyResponseCommand.cc
  557. * src/HttpProxyResponseCommand.h
  558. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Use SegmentMan::getSegment(cuid) for single file download.
  560. * src/AbstractCommand.cc
  561. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  562. Fixed bufSize calculation
  563. * src/DownloadCommand.cc
  564. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Don't append "/" if base URI ends with "/".
  566. * src/bittorrent_helper.cc
  567. * test/url-list-multiFile.torrent
  568. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. HTTP pipelining is now working. Fixed Segmention fault in
  570. BitfieldMan's copy ctor.
  571. * src/AbstractCommand.cc
  572. * src/BitfieldMan.cc
  573. * src/BitfieldMan.h
  574. * src/DownloadCommand.cc
  575. * src/HttpDownloadCommand.cc
  576. * src/HttpRequest.cc
  577. * src/SegmentMan.cc
  578. * src/SegmentMan.h
  579. * test/BitfieldManTest.cc
  580. * test/SegmentManTest.cc
  581. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Removed ServerHost. Same functionality is implemented using
  583. FileEntry's in-flight Request objects.
  584. * src/AbstractCommand.cc
  585. * src/BtDependency.cc
  586. * src/CreateRequestCommand.cc
  587. * src/FileEntry.cc
  588. * src/FileEntry.h
  589. * src/FtpNegotiationCommand.cc
  590. * src/HttpResponseCommand.cc
  591. * src/Makefile.am
  592. * src/Metalink2RequestGroup.cc
  593. * src/RequestGroup.cc
  594. * src/RequestGroup.h
  595. * src/ServerHost.cc: Removed
  596. * src/ServerHost.h: Removed
  597. * test/BtDependencyTest.cc
  598. * test/FileEntryTest.cc
  599. * test/RequestGroupTest.cc
  600. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Rewritten PeerStat handling. In the previous implementation,
  602. faster command tries to find slower command. In this new
  603. implementation, slower command tries to find faster command.
  604. PeerStat is now created in each HTTP/FTP request to get download
  605. rate correctly. If the download range is small, the download rate
  606. tends to small and this will occur at the later stage of download.
  607. * src/AbstractCommand.cc
  608. * src/DownloadCommand.cc
  609. * src/FileEntry.cc
  610. * src/FileEntry.h
  611. * src/Request.cc
  612. * src/Request.h
  613. * src/RequestGroup.h
  614. * src/RequestGroupMan.cc
  615. * src/SegmentMan.cc
  616. * src/SegmentMan.h
  617. * test/SegmentManTest.cc
  618. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Removed _uris from RequestGroup. All functions that refer to _uris
  620. were moved to FileEntry. Exit status code are now defined in
  621. DownloadResultCode.h.
  622. * src/AbstractCommand.cc
  623. * src/AdaptiveURISelector.cc
  624. * src/AdaptiveURISelector.h
  625. * src/AutoSaveCommand.cc
  626. * src/BtPostDownloadHandler.cc
  627. * src/CheckIntegrityDispatcherCommand.cc
  628. * src/CookieStorage.cc
  629. * src/DHTAutoSaveCommand.cc
  630. * src/DHTBucketRefreshCommand.cc
  631. * src/DHTEntryPointNameResolveCommand.cc
  632. * src/DHTInteractionCommand.cc
  633. * src/DHTPeerAnnounceCommand.cc
  634. * src/DHTTokenUpdateCommand.cc
  635. * src/DlAbortEx.h
  636. * src/DlRetryEx.h
  637. * src/DownloadCommand.cc
  638. * src/DownloadContext.h
  639. * src/DownloadFailureException.h
  640. * src/DownloadResult.h
  641. * src/DownloadResultCode.h
  642. * src/FeedbackURISelector.cc
  643. * src/FeedbackURISelector.h
  644. * src/FileEntry.cc
  645. * src/FileEntry.h
  646. * src/FtpNegotiationCommand.cc
  647. * src/HttpListenCommand.cc
  648. * src/HttpResponseCommand.cc
  649. * src/HttpServerResponseCommand.cc
  650. * src/HttpSkipResponseCommand.cc
  651. * src/InOrderURISelector.cc
  652. * src/InOrderURISelector.h
  653. * src/Makefile.am
  654. * src/Makefile.in
  655. * src/Metalink2RequestGroup.cc
  656. * src/MultiUrlRequestInfo.cc
  657. * src/MultiUrlRequestInfo.h
  658. * src/OptionHandlerFactory.cc
  659. * src/PeerListenCommand.cc
  660. * src/RecoverableException.h
  661. * src/RequestGroup.cc
  662. * src/RequestGroup.h
  663. * src/RequestGroupMan.cc
  664. * src/RequestGroupMan.h
  665. * src/TimedHaltCommand.cc
  666. * src/TrackerWatcherCommand.cc
  667. * src/URIResult.cc
  668. * src/URIResult.h
  669. * src/URISelector.h
  670. * src/XmlRpcMethodImpl.cc
  671. * src/bittorrent_helper.cc
  672. * src/bittorrent_helper.h
  673. * src/download_helper.cc
  674. * src/main.cc
  675. * src/option_processing.cc
  676. * test/BtDependencyTest.cc
  677. * test/BtPostDownloadHandlerTest.cc
  678. * test/CookieStorageTest.cc
  679. * test/DefaultBtMessageDispatcherTest.cc
  680. * test/DownloadHandlerFactoryTest.cc
  681. * test/DownloadHelperTest.cc
  682. * test/FeedbackURISelectorTest.cc
  683. * test/FileEntryTest.cc
  684. * test/InOrderURISelectorTest.cc
  685. * test/Metalink2RequestGroupTest.cc
  686. * test/MetalinkPostDownloadHandlerTest.cc
  687. * test/RequestGroupManTest.cc
  688. * test/RequestGroupTest.cc
  689. * test/XmlRpcMethodTest.cc
  690. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Removed MockBtContext.h
  692. * test/Makefile.am
  693. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Removed _currentRequest from StreamCheckIntegrityEntry and
  695. StreamFileAllocationEntry.
  696. * src/AbstractCommand.cc
  697. * src/HttpResponseCommand.cc
  698. * src/RequestGroup.cc
  699. * src/StreamCheckIntegrityEntry.cc
  700. * src/StreamCheckIntegrityEntry.h
  701. * src/StreamFileAllocationEntry.cc
  702. * src/StreamFileAllocationEntry.h
  703. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Rewritten DownloadContext and removed SingleFileDownloadContext
  705. and BtContext and its derived classes. BitTorrent specific
  706. attributes are now set by DownloadContext::setAttribute() with key
  707. bittorrent::BITTORRENT.
  708. * src/AbstractBtMessage.cc
  709. * src/AbstractBtMessage.h
  710. * src/AbstractCommand.cc
  711. * src/AbstractCommand.h
  712. * src/AbstractProxyRequestCommand.cc
  713. * src/AbstractProxyResponseCommand.cc
  714. * src/ActivePeerConnectionCommand.cc
  715. * src/ActivePeerConnectionCommand.h
  716. * src/AnnounceList.cc
  717. * src/BtCheckIntegrityEntry.cc
  718. * src/BtConstants.h
  719. * src/BtContext.h: Removed
  720. * src/BtDependency.cc
  721. * src/BtExtendedMessage.cc
  722. * src/BtPieceMessage.cc
  723. * src/BtPieceMessage.h
  724. * src/BtPostDownloadHandler.cc
  725. * src/BtRegistry.cc
  726. * src/BtRegistry.h
  727. * src/BtSetup.cc
  728. * src/CheckIntegrityCommand.cc
  729. * src/CheckIntegrityEntry.cc
  730. * src/ChecksumCheckIntegrityEntry.cc
  731. * src/ConsoleStatCalc.cc
  732. * src/ContentTypeRequestGroupCriteria.cc
  733. * src/DHTGetPeersCommand.cc
  734. * src/DHTGetPeersCommand.h
  735. * src/DHTPeerLookupTask.cc
  736. * src/DHTPeerLookupTask.h
  737. * src/DHTTaskFactory.h
  738. * src/DHTTaskFactoryImpl.cc
  739. * src/DHTTaskFactoryImpl.h
  740. * src/DefaultBtAnnounce.cc
  741. * src/DefaultBtAnnounce.h
  742. * src/DefaultBtContext.cc: Removed
  743. * src/DefaultBtContext.h: Removed
  744. * src/DefaultBtInteractive.cc
  745. * src/DefaultBtInteractive.h
  746. * src/DefaultBtMessageDispatcher.cc
  747. * src/DefaultBtMessageDispatcher.h
  748. * src/DefaultBtMessageFactory.cc
  749. * src/DefaultBtMessageFactory.h
  750. * src/DefaultBtMessageReceiver.cc
  751. * src/DefaultBtMessageReceiver.h
  752. * src/DefaultBtProgressInfoFile.cc
  753. * src/DefaultBtRequestFactory.cc
  754. * src/DefaultBtRequestFactory.h
  755. * src/DefaultExtensionMessageFactory.cc
  756. * src/DefaultExtensionMessageFactory.h
  757. * src/DefaultPeerStorage.cc
  758. * src/DefaultPeerStorage.h
  759. * src/DefaultPieceStorage.cc
  760. * src/DefaultSegmentManFactory.cc
  761. * src/DiskAdaptor.cc
  762. * src/DiskAdaptor.h
  763. * src/DownloadContext.cc
  764. * src/DownloadContext.h
  765. * src/DownloadEngine.cc
  766. * src/DownloadEngineFactory.cc
  767. * src/DownloadHandler.cc
  768. * src/DownloadResult.h
  769. * src/FileAllocationCommand.cc
  770. * src/FileAllocationDispatcherCommand.cc
  771. * src/FileAllocationEntry.cc
  772. * src/FileEntry.h
  773. * src/FillRequestGroupCommand.cc
  774. * src/FtpDownloadCommand.cc
  775. * src/FtpFinishDownloadCommand.cc
  776. * src/FtpInitiateConnectionCommand.cc
  777. * src/FtpNegotiationCommand.cc
  778. * src/FtpTunnelRequestCommand.cc
  779. * src/FtpTunnelResponseCommand.cc
  780. * src/HandshakeExtensionMessage.cc
  781. * src/HandshakeExtensionMessage.h
  782. * src/HaveEraseCommand.cc
  783. * src/HttpDownloadCommand.cc
  784. * src/HttpInitiateConnectionCommand.cc
  785. * src/HttpProxyRequestCommand.cc
  786. * src/HttpProxyResponseCommand.cc
  787. * src/HttpRequest.cc
  788. * src/HttpRequest.h
  789. * src/HttpRequestCommand.cc
  790. * src/HttpResponseCommand.cc
  791. * src/HttpServerBodyCommand.cc
  792. * src/HttpServerCommand.cc
  793. * src/HttpSkipResponseCommand.cc
  794. * src/InitiateConnectionCommandFactory.cc
  795. * src/InitiatorMSEHandshakeCommand.cc
  796. * src/InitiatorMSEHandshakeCommand.h
  797. * src/IteratableChecksumValidator.cc
  798. * src/IteratableChecksumValidator.h
  799. * src/IteratableChunkChecksumValidator.cc
  800. * src/MSEHandshake.cc
  801. * src/MSEHandshake.h
  802. * src/Makefile.am
  803. * src/Makefile.in
  804. * src/Metalink2RequestGroup.cc
  805. * src/MetalinkPostDownloadHandler.cc
  806. * src/MultiDiskAdaptor.cc
  807. * src/MultiDiskAdaptor.h
  808. * src/MultiFileAllocationIterator.cc
  809. * src/MultiUrlRequestInfo.cc
  810. * src/PeerChokeCommand.cc
  811. * src/PeerChokeCommand.h
  812. * src/PeerInitiateConnectionCommand.cc
  813. * src/PeerInitiateConnectionCommand.h
  814. * src/PeerInteractionCommand.cc
  815. * src/PeerInteractionCommand.h
  816. * src/PeerReceiveHandshakeCommand.cc
  817. * src/PieceHashCheckIntegrityEntry.cc
  818. * src/RealtimeCommand.cc
  819. * src/ReceiverMSEHandshakeCommand.cc
  820. * src/RequestGroup.cc
  821. * src/RequestGroup.h
  822. * src/RequestGroupEntry.cc
  823. * src/RequestGroupMan.cc
  824. * src/SeedCheckCommand.cc
  825. * src/SeedCheckCommand.h
  826. * src/SegmentMan.cc
  827. * src/ShareRatioSeedCriteria.h
  828. * src/SingleFileDownloadContext.cc: Removed
  829. * src/SingleFileDownloadContext.h: Removed
  830. * src/SleepCommand.cc
  831. * src/StreamCheckIntegrityEntry.cc
  832. * src/TrackerWatcherCommand.cc
  833. * src/TrackerWatcherCommand.h
  834. * src/UnknownLengthPieceStorage.cc
  835. * src/Util.cc
  836. * src/Util.h
  837. * src/XmlRpcMethodImpl.cc
  838. * src/bittorrent_helper.cc
  839. * src/bittorrent_helper.h
  840. * src/download_helper.cc
  841. * src/main.cc
  842. * src/option_processing.cc
  843. * test/BitfieldManTest.cc
  844. * test/BittorrentHelperTest.cc
  845. * test/BtCancelMessageTest.cc
  846. * test/BtChokeMessageTest.cc
  847. * test/BtDependencyTest.cc
  848. * test/BtPieceMessageTest.cc
  849. * test/BtPostDownloadHandlerTest.cc
  850. * test/BtRegistryTest.cc
  851. * test/BtRejectMessageTest.cc
  852. * test/BtRequestMessageTest.cc
  853. * test/DHTPeerAnnounceStorageTest.cc
  854. * test/DefaultBtAnnounceTest.cc
  855. * test/DefaultBtContextTest.cc: Removed
  856. * test/DefaultBtMessageDispatcherTest.cc
  857. * test/DefaultBtMessageFactoryTest.cc
  858. * test/DefaultBtProgressInfoFileTest.cc
  859. * test/DefaultBtRequestFactoryTest.cc
  860. * test/DefaultExtensionMessageFactoryTest.cc
  861. * test/DefaultPeerStorageTest.cc
  862. * test/DefaultPieceStorageTest.cc
  863. * test/DirectDiskAdaptorTest.cc
  864. * test/DownloadContextTest.cc
  865. * test/DownloadHandlerFactoryTest.cc
  866. * test/DownloadHelperTest.cc
  867. * test/HandshakeExtensionMessageTest.cc
  868. * test/HttpRequestTest.cc
  869. * test/HttpResponseTest.cc
  870. * test/IteratableChecksumValidatorTest.cc
  871. * test/IteratableChunkChecksumValidatorTest.cc
  872. * test/MSEHandshakeTest.cc
  873. * test/Makefile.am
  874. * test/Makefile.in
  875. * test/Metalink2RequestGroupTest.cc
  876. * test/MetalinkPostDownloadHandlerTest.cc
  877. * test/MockBtContext.h: Removed
  878. * test/MockDHTTaskFactory.h
  879. * test/MockDownloadContext.h: Removed
  880. * test/MockPieceStorage.h
  881. * test/MultiDiskAdaptorTest.cc
  882. * test/MultiFileAllocationIteratorTest.cc
  883. * test/RequestGroupManTest.cc
  884. * test/RequestGroupTest.cc
  885. * test/SegmentManTest.cc
  886. * test/ShareRatioSeedCriteriaTest.cc
  887. * test/SingleFileDownloadContextTest.cc: Removed
  888. * test/UtilTest.cc
  889. * test/XmlRpcMethodTest.cc
  890. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Added experimental support of WEB-Seeding for multi-file torrent.
  892. Due to fundamental changes in file handling in HTTP/FTP code, many
  893. functions are not working: PeerStat, ServerHost, proxy..etc
  894. * src/AbstractCommand.cc
  895. * src/AbstractCommand.h
  896. * src/BitfieldMan.cc
  897. * src/BitfieldMan.h
  898. * src/CreateRequestCommand.cc
  899. * src/CreateRequestCommand.h
  900. * src/DefaultPieceStorage.cc
  901. * src/DefaultPieceStorage.h
  902. * src/DownloadCommand.cc
  903. * src/DownloadCommand.h
  904. * src/DownloadContext.cc
  905. * src/DownloadContext.h
  906. * src/FileEntry.cc
  907. * src/FileEntry.h
  908. * src/FtpDownloadCommand.cc
  909. * src/FtpDownloadCommand.h
  910. * src/FtpFinishDownloadCommand.cc
  911. * src/FtpFinishDownloadCommand.h
  912. * src/FtpInitiateConnectionCommand.cc
  913. * src/FtpInitiateConnectionCommand.h
  914. * src/FtpNegotiationCommand.cc
  915. * src/FtpNegotiationCommand.h
  916. * src/FtpTunnelResponseCommand.cc
  917. * src/HttpDownloadCommand.cc
  918. * src/HttpDownloadCommand.h
  919. * src/HttpInitiateConnectionCommand.cc
  920. * src/HttpInitiateConnectionCommand.h
  921. * src/HttpProxyResponseCommand.cc
  922. * src/HttpRequest.cc
  923. * src/HttpRequest.h
  924. * src/HttpRequestCommand.cc
  925. * src/HttpRequestCommand.h
  926. * src/HttpResponseCommand.cc
  927. * src/HttpResponseCommand.h
  928. * src/HttpSkipResponseCommand.cc
  929. * src/HttpSkipResponseCommand.h
  930. * src/InitiateConnectionCommand.cc
  931. * src/InitiateConnectionCommand.h
  932. * src/InitiateConnectionCommandFactory.cc
  933. * src/InitiateConnectionCommandFactory.h
  934. * src/Makefile.am
  935. * src/PieceStorage.h
  936. * src/RequestGroup.cc
  937. * src/RequestGroup.h
  938. * src/RequestGroupMan.cc
  939. * src/SegmentMan.cc
  940. * src/SegmentMan.h
  941. * src/SingleFileDownloadContext.h
  942. * src/StreamFileAllocationEntry.cc
  943. * src/TrackerWatcherCommand.cc
  944. * src/UnknownLengthPieceStorage.cc
  945. * src/UnknownLengthPieceStorage.h
  946. * src/array_fun.h
  947. * src/bitfield.h
  948. * src/download_helper.cc
  949. * test/DownloadContextTest.cc
  950. * test/Makefile.am
  951. * test/MockDownloadContext.h
  952. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Added tellWaiting XML-RPC method.
  954. * src/SingleFileDownloadContext.cc
  955. * src/XmlRpcMethodFactory.cc
  956. * src/XmlRpcMethodImpl.cc
  957. * src/XmlRpcMethodImpl.h
  958. * test/XmlRpcMethodTest.cc
  959. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Updated CookieStorageTest
  961. * test/CookieStorageTest.cc
  962. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  964. handle excepion inside these functions.
  965. * src/LibgnutlsTLSContext.cc
  966. * src/LibgnutlsTLSContext.h
  967. * src/LibsslTLSContext.cc
  968. * src/LibsslTLSContext.h
  969. * src/MultiUrlRequestInfo.cc
  970. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Added comment
  972. * src/RequestGroup.cc
  973. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. In CookieStorage::load() and saveNsFormat(), handle exception
  975. inside the functions. When saving Cookies, first write temporary
  976. file and after successful writes, then renames it to final
  977. destination.
  978. * src/CookieStorage.cc
  979. * src/CookieStorage.h
  980. * src/MultiUrlRequestInfo.cc
  981. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. The default value of --dir option is the absolute path to the
  983. current directory. If getcwd() is failed, then it is ".", which is
  984. the same value with old implementation. This change is necessary
  985. because after daemon() call, the current working directory is
  986. changed to /.
  987. * src/File.cc
  988. * src/File.h
  989. * src/OptionHandlerFactory.cc
  990. * src/option_processing.cc
  991. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Call daemon() with arguments(0,0), which means daemon() changes
  993. current working directory to / and redirects stdin, stdout and
  994. stderr to /dev/null.
  995. * src/option_processing.cc
  996. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  997. Small performance optimizations.
  998. * src/RequestGroupMan.cc
  999. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1001. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1002. * src/RequestGroupMan.cc
  1003. * src/RequestGroupMan.h
  1004. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1006. setNoWiat(true) if newly created command calls
  1007. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1008. * src/HttpListenCommand.cc
  1009. * src/HttpServerBodyCommand.cc
  1010. * src/HttpServerCommand.cc
  1011. * src/HttpServerResponseCommand.cc
  1012. * src/InitiateConnectionCommand.cc
  1013. * src/RequestGroup.cc
  1014. * src/StreamFileAllocationEntry.cc
  1015. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Removed include vector
  1017. * src/BtRegistry.h
  1018. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Rewritten BtRegistry
  1020. * src/BtRegistry.cc
  1021. * src/BtRegistry.h
  1022. * src/BtSetup.cc
  1023. * src/ConsoleStatCalc.cc
  1024. * src/PeerInteractionCommand.cc
  1025. * src/PeerReceiveHandshakeCommand.cc
  1026. * src/ReceiverMSEHandshakeCommand.cc
  1027. * src/RequestGroup.cc
  1028. * src/XmlRpcMethodImpl.cc
  1029. * test/BtRegistryTest.cc
  1030. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1032. * src/DefaultBtProgressInfoFile.cc
  1033. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Throw an exception if position is less than 0.
  1035. * src/XmlRpcMethodImpl.cc
  1036. * test/XmlRpcMethodTest.cc
  1037. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Use writeFilePath() in ConsoleStatCalc.cc
  1039. * src/ConsoleStatCalc.cc
  1040. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Receive the return value as const reference from
  1042. DownloadContext::getFileEntries().
  1043. * src/DefaultPieceStorage.cc
  1044. * src/RequestGroupMan.cc
  1045. * src/XmlRpcMethodImpl.cc
  1046. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. DownloadContext now has _fileEntries so that
  1048. DownloadContext::getFileEntries() can returns its const reference.
  1049. * src/DefaultBtContext.cc
  1050. * src/DefaultBtContext.h
  1051. * src/DownloadContext.cc
  1052. * src/DownloadContext.h
  1053. * src/SingleFileDownloadContext.cc
  1054. * src/SingleFileDownloadContext.h
  1055. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1057. writeFilePath() function template from RequestGroupMan.cc to
  1058. FileEntry.h
  1059. * src/FileEntry.h
  1060. * src/RequestGroupMan.cc
  1061. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Documented 'position' parameter is starting from 0 in man page.
  1063. * doc/aria2c.1.txt
  1064. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Updated doc.
  1066. * src/MSEHandshake.cc
  1067. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Removed _acceptFeatures and its accessor functions from
  1069. RequestGroup since they are not used practically.
  1070. * src/HttpRequestCommand.cc
  1071. * src/RequestGroup.cc
  1072. * src/RequestGroup.h
  1073. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Removed member _maxTries from RequestGroup class to avoid
  1075. duplicate option value. Those classes who refer this variable
  1076. should use option value of PREF_MAX_TRIES directly.
  1077. * src/AbstractCommand.cc
  1078. * src/RequestGroup.cc
  1079. * src/RequestGroup.h
  1080. * src/TrackerWatcherCommand.cc
  1081. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. * Release 1.4.1
  1083. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1084. Fixed compiler warnings on netbsd
  1085. * src/DHTConnectionImpl.cc
  1086. * src/PeerListenCommand.cc
  1087. * src/PeerSessionResource.cc
  1088. * src/SegmentMan.cc
  1089. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Updated Ukrainian translation. Thanks to all translators.
  1091. * po/uk.po
  1092. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Bump up version number to 1.4.1.
  1094. * configure.ac
  1095. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Added unit tests for strjoin, strconcat and strappend.
  1097. * test/a2functionalTest.cc
  1098. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Rewritten strconcat and strappend using operator+ instead of
  1100. append().
  1101. * src/a2functional.h
  1102. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1104. is enabled.
  1105. * src/Makefile.am
  1106. * test/Makefile.am
  1107. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Added countSeeder() function which counts seeder in the given
  1109. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1110. * src/ConsoleStatCalc.cc
  1111. * src/Peer.h
  1112. * src/XmlRpcMethodImpl.cc
  1113. * test/PeerTest.cc
  1114. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Documented missing seeder in getPeers xml-rpc method.
  1116. Documented uploadLength and numSeeders.
  1117. * doc/aria2c.1.txt
  1118. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1119. Added uploadLength and numSeeders to the response of tellStatus
  1120. xml-rpc method. Assert that PeerStorage instance is not null
  1121. instead of checking if statement. It should be non-null in this
  1122. context.
  1123. * src/XmlRpcMethodImpl.cc
  1124. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1126. * src/XmlRpcResponse.cc
  1127. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Avoid intermediate object during string concatenation.
  1129. * src/HttpRequest.cc
  1130. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Added strjoin function template. Use it in pathJoin()
  1132. * src/Util.h
  1133. * src/a2functional.h
  1134. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1135. Avoid intermediate object during string concatenation. Replaced
  1136. post-increment unary operator with pre-increment one in for loop.
  1137. * src/AdaptiveURISelector.cc
  1138. * src/AnnounceList.cc
  1139. * src/AuthConfig.h
  1140. * src/BtBitfieldMessage.cc
  1141. * src/BtExtendedMessage.cc
  1142. * src/BtHandshakeMessage.cc
  1143. * src/BtPieceMessage.cc
  1144. * src/BtPortMessage.cc
  1145. * src/Cookie.cc
  1146. * src/DHTAnnouncePeerMessage.cc
  1147. * src/DHTAutoSaveCommand.cc
  1148. * src/DHTGetPeersReplyMessage.cc
  1149. * src/DHTNode.cc
  1150. * src/DHTQueryMessage.cc
  1151. * src/DHTResponseMessage.cc
  1152. * src/DHTUnknownMessage.cc
  1153. * src/DefaultBtAnnounce.cc
  1154. * src/DefaultBtContext.cc
  1155. * src/DefaultBtInteractive.cc
  1156. * src/DefaultBtProgressInfoFile.cc
  1157. * src/DefaultPeerStorage.cc
  1158. * src/DownloadEngine.cc
  1159. * src/FeatureConfig.cc
  1160. * src/File.cc
  1161. * src/FtpConnection.cc
  1162. * src/FtpNegotiationCommand.cc
  1163. * src/HandshakeExtensionMessage.cc
  1164. * src/HttpConnection.cc
  1165. * src/HttpRequest.cc
  1166. * src/HttpResponseCommand.cc
  1167. * src/HttpServer.cc
  1168. * src/IndexBtMessage.cc
  1169. * src/Metalink2RequestGroup.cc
  1170. * src/OptionHandlerImpl.h
  1171. * src/PStringBuildVisitor.cc
  1172. * src/Peer.cc
  1173. * src/PeerListenCommand.cc
  1174. * src/Piece.cc
  1175. * src/RangeBtMessage.cc
  1176. * src/Request.cc
  1177. * src/Request.h
  1178. * src/RequestGroup.cc
  1179. * src/RequestGroupMan.cc
  1180. * src/ServerStat.cc
  1181. * src/ServerStatMan.cc
  1182. * src/UTPexExtensionMessage.cc
  1183. * src/Util.cc
  1184. * src/a2functional.h
  1185. * src/download_helper.cc
  1186. * src/messageDigest.cc
  1187. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Unchoke a peer randomly at first and second choke round in seed
  1189. state.
  1190. * src/BtSeederStateChoke.cc
  1191. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1192. Added (sock_t) to quiet compiler warnings in MinGW
  1193. * src/SocketCore.cc
  1194. * src/SocketCore.h
  1195. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1197. * src/EpollEventPoll.h
  1198. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1199. Added fork() emulation using CreateProcess() in MinGW
  1200. * src/RequestGroupMan.cc
  1201. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. * Release 1.4.0
  1203. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Added utf8.torrent to EXTRA_DIST
  1205. * test/Makefile.am
  1206. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Fixed docs of aria2.addMetalink xml-rpc method.
  1208. * doc/aria2c.1.txt
  1209. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1210. Added Slovak translation. Updated Ukrainian and Brazilian
  1211. Portuguese translation. Thanks to all translators.
  1212. * po/sk.po
  1213. * po/uk.po
  1214. * po/pt_BR.po
  1215. * po/LINGUAS
  1216. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Added test case for XmlRpcProcessor to fail to parse malformed
  1218. document.
  1219. * test/XmlRpcRequestProcessorTest.cc
  1220. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Removed *.gmo files in po because they are generated on 'make
  1222. dist'
  1223. * po/*.gmo
  1224. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Documented max-concurrent-downloads of changeGlobalOption method
  1226. in man page.
  1227. * doc/aria2c.1.txt
  1228. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Added max-concurrent-downloads option to changeGlobalOption
  1230. xml-rpc method. Rewritten loop conditional in
  1231. RequestGroupMan::fillRequestGroupFromReserver().
  1232. * src/RequestGroupMan.cc
  1233. * src/RequestGroupMan.h
  1234. * src/XmlRpcMethod.cc
  1235. * src/XmlRpcMethodImpl.cc
  1236. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Documented position parameter in man page.
  1238. * doc/aria2c.1.txt
  1239. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Added 'position' parameter to addUri, addTorrent and addMetalink
  1241. xml-rpc method.
  1242. * src/RequestGroupMan.cc
  1243. * src/RequestGroupMan.h
  1244. * src/XmlRpcMethodImpl.cc
  1245. * test/XmlRpcMethodTest.cc
  1246. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Removed Peer.cc from compile source list when --disable-bittorrent
  1248. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1249. takes Peer.
  1250. * src/DefaultPieceStorage.cc
  1251. * src/DefaultPieceStorage.h
  1252. * src/Makefile.am
  1253. * src/PieceStorage.h
  1254. * src/UnknownLengthPieceStorage.cc
  1255. * src/UnknownLengthPieceStorage.h
  1256. * test/MockPieceStorage.h
  1257. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Implemented getter methods in header files to give them more
  1259. chance of optimization.
  1260. Return const reference for SharadHandle if possible.
  1261. * src/AbstractAuthResolver.cc
  1262. * src/AbstractAuthResolver.h
  1263. * src/AbstractBtMessage.cc
  1264. * src/AbstractBtMessage.h
  1265. * src/AbstractSingleDiskAdaptor.cc
  1266. * src/AbstractSingleDiskAdaptor.h
  1267. * src/AsyncNameResolver.cc
  1268. * src/AsyncNameResolver.h
  1269. * src/BNode.cc
  1270. * src/BNode.h
  1271. * src/BitfieldMan.cc
  1272. * src/BitfieldMan.h
  1273. * src/BtAbortOutstandingRequestEvent.h
  1274. * src/BtExtendedMessage.cc
  1275. * src/BtExtendedMessage.h
  1276. * src/BtSeederStateChoke.cc
  1277. * src/BtSeederStateChoke.h
  1278. * src/Cookie.cc
  1279. * src/Cookie.h
  1280. * src/DHTBucket.cc
  1281. * src/DHTBucket.h
  1282. * src/DHTConnectionImpl.cc
  1283. * src/DHTConnectionImpl.h
  1284. * src/DHTFindNodeReplyMessage.cc
  1285. * src/DHTFindNodeReplyMessage.h
  1286. * src/DHTGetPeersReplyMessage.cc
  1287. * src/DHTGetPeersReplyMessage.h
  1288. * src/DHTInteractionCommand.cc
  1289. * src/DHTMessage.cc
  1290. * src/DHTMessage.h
  1291. * src/DHTMessageDispatcherImpl.cc
  1292. * src/DHTMessageEntry.cc
  1293. * src/DHTMessageReceiver.cc
  1294. * src/DHTMessageReceiver.h
  1295. * src/DHTMessageTrackerEntry.cc
  1296. * src/DHTMessageTrackerEntry.h
  1297. * src/DHTPeerAnnounceEntry.cc
  1298. * src/DHTPeerAnnounceEntry.h
  1299. * src/DHTPeerLookupTask.cc
  1300. * src/DHTPeerLookupTask.h
  1301. * src/DHTRoutingTableDeserializer.cc
  1302. * src/DHTRoutingTableDeserializer.h
  1303. * src/DefaultBtAnnounce.cc
  1304. * src/DefaultBtAnnounce.h
  1305. * src/DefaultBtMessageDispatcher.cc
  1306. * src/DefaultBtMessageDispatcher.h
  1307. * src/DefaultBtRequestFactory.cc
  1308. * src/DefaultBtRequestFactory.h
  1309. * src/DiskAdaptor.cc
  1310. * src/DiskAdaptor.h
  1311. * src/DownloadContext.cc
  1312. * src/DownloadContext.h
  1313. * src/DownloadEngine.cc
  1314. * src/DownloadEngine.h
  1315. * src/EpollEventPoll.cc
  1316. * src/EpollEventPoll.h
  1317. * src/FtpConnection.cc
  1318. * src/FtpConnection.h
  1319. * src/HttpConnection.cc
  1320. * src/HttpConnection.h
  1321. * src/HttpHeader.cc
  1322. * src/HttpHeader.h
  1323. * src/HttpRequest.cc
  1324. * src/HttpRequest.h
  1325. * src/HttpResponse.cc
  1326. * src/HttpResponse.h
  1327. * src/LibsslTLSContext.cc
  1328. * src/LibsslTLSContext.h
  1329. * src/MSEHandshake.cc
  1330. * src/MSEHandshake.h
  1331. * src/MetalinkEntry.cc
  1332. * src/MetalinkEntry.h
  1333. * src/MetalinkParserController.cc
  1334. * src/MetalinkParserController.h
  1335. * src/MetalinkParserStateMachine.cc
  1336. * src/MetalinkParserStateMachine.h
  1337. * src/MultiDiskAdaptor.cc
  1338. * src/MultiDiskAdaptor.h
  1339. * src/NetrcAuthResolver.cc
  1340. * src/NetrcAuthResolver.h
  1341. * src/Peer.cc
  1342. * src/Peer.h
  1343. * src/PeerSessionResource.cc
  1344. * src/PeerSessionResource.h
  1345. * src/Piece.cc
  1346. * src/Piece.h
  1347. * src/PieceStatMan.cc
  1348. * src/PieceStatMan.h
  1349. * src/Request.cc
  1350. * src/Request.h
  1351. * src/RequestGroup.cc
  1352. * src/RequestGroup.h
  1353. * src/RequestGroupMan.cc
  1354. * src/RequestGroupMan.h
  1355. * src/RequestSlot.cc
  1356. * src/RequestSlot.h
  1357. * src/SegmentMan.cc
  1358. * src/SegmentMan.h
  1359. * src/SelectEventPoll.cc
  1360. * src/SelectEventPoll.h
  1361. * src/ServerStat.cc
  1362. * src/ServerStat.h
  1363. * src/Signature.cc
  1364. * src/Signature.h
  1365. * src/URIResult.cc
  1366. * src/URIResult.h
  1367. * src/UTPexExtensionMessage.cc
  1368. * src/UTPexExtensionMessage.h
  1369. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Fixed compile error without BitTorrent and Metalink support.
  1371. * src/XmlRpcMethod.cc
  1372. * src/XmlRpcMethodFactory.cc
  1373. * src/XmlRpcMethodImpl.cc
  1374. * src/XmlRpcMethodImpl.h
  1375. * test/XmlRpcMethodTest.cc
  1376. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Rewritten the help message for --allow-overwrite option.
  1378. * doc/aria2c.1.txt
  1379. * src/usage_text.h
  1380. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Fixed typo
  1382. * doc/aria2c.1.txt
  1383. * src/usage_text.h
  1384. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Updated README for 1.4.0 release. Use new table syntax of
  1386. asciidoc.
  1387. * README
  1388. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Documented --xml-rpc-max-request-size option in man page.
  1390. * doc/aria2c.1.txt
  1391. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Moved C_* constants from BtContext to DefaultBtContext.
  1393. * src/BtContext.cc: Removed.
  1394. * src/BtContext.h
  1395. * src/DefaultBtContext.cc
  1396. * src/DefaultBtContext.h
  1397. * src/Makefile.am
  1398. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1400. path key respectively when persing .torrent file.
  1401. * src/BtContext.cc
  1402. * src/BtContext.h
  1403. * src/DefaultBtContext.cc
  1404. * test/DefaultBtContextTest.cc
  1405. * test/utf8.torrent
  1406. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Added --xml-rpc-max-request-size option to limit the size of
  1408. XML-RPC request.
  1409. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Documented XML-RPC API in man page.
  1411. * doc/aria2c.1.txt
  1412. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1414. will break strict-aliasing rules
  1415. * src/PeerConnection.cc
  1416. * test/DHTRoutingTableSerializerTest.cc
  1417. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1419. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1420. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1421. PKG_CHECK_MODULES macro uses latter name.
  1422. * m4/sqlite3.m4
  1423. * src/Makefile.am
  1424. * test/Makefile.am
  1425. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Fixed typo
  1427. * configure.ac
  1428. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1429. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1430. presence of libgnutls using pkg-config first. If it fails, fall
  1431. back to old macro libgnutls.m4.
  1432. * configure.ac
  1433. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Use s itself instead of !s.bad()
  1435. * src/CookieStorage.cc
  1436. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Documented --on-download-* option and --save-cookies option in man
  1438. page.
  1439. * doc/aria2c.1.txt
  1440. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Set possible values for --load-cookie option to "/path/to/file".
  1442. * src/OptionHandlerFactory.cc
  1443. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Added --save-cookies option.
  1445. * src/Cookie.cc
  1446. * src/Cookie.h
  1447. * src/CookieStorage.cc
  1448. * src/CookieStorage.h
  1449. * src/MultiUrlRequestInfo.cc
  1450. * src/OptionHandlerFactory.cc
  1451. * src/prefs.cc
  1452. * src/prefs.h
  1453. * src/usage_text.h
  1454. * test/CookieStorageTest.cc
  1455. * test/CookieTest.cc
  1456. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Removed tellAll XML-RPC command because its reponse tends to be
  1458. big if stopped/waiting downloads pile up.
  1459. * src/XmlRpcMethodFactory.cc
  1460. * src/XmlRpcMethodImpl.cc
  1461. * src/XmlRpcMethodImpl.h
  1462. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Added the ability to execute command when download starts and
  1464. stops. You can also specify command for particular cases such as
  1465. complete/error download. Added --on-download-start,
  1466. --on-download-stop, --on-download-complete and --on-download-error
  1467. option.
  1468. * src/OptionHandlerFactory.cc
  1469. * src/RequestGroupMan.cc
  1470. * src/prefs.cc
  1471. * src/prefs.h
  1472. * src/usage_text.h
  1473. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Fixed test error
  1475. * test/BencodeTest.cc
  1476. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Added unit tests.
  1478. * test/XmlRpcMethodTest.cc
  1479. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. Made exception message more verbose.
  1481. * src/bencode.cc
  1482. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1484. space in console readout. Also they are now shown in MiB/s if
  1485. speed > 1024KiB/s.
  1486. * src/ConsoleStatCalc.cc
  1487. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Added SEED to console output, which represents the number of
  1489. seeders currently the client is connecting to.
  1490. * src/ConsoleStatCalc.cc
  1491. * src/ConsoleStatCalc.h
  1492. * src/DownloadEngine.cc
  1493. * src/NullStatCalc.h
  1494. * src/StatCalc.h
  1495. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Added source filename(__FILE__) and line number(__LINE__) to
  1497. exception message.
  1498. * src/AbstractCommand.cc
  1499. * src/AbstractDiskWriter.cc
  1500. * src/AbstractProxyResponseCommand.cc
  1501. * src/BDE.h
  1502. * src/BtAllowedFastMessage.cc
  1503. * src/BtHandshakeMessageValidator.h
  1504. * src/BtHaveAllMessage.cc
  1505. * src/BtHaveNoneMessage.cc
  1506. * src/BtPieceMessage.cc
  1507. * src/BtRejectMessage.cc
  1508. * src/ChunkedDecoder.cc
  1509. * src/CookieStorage.cc
  1510. * src/DHTAnnouncePeerMessage.cc
  1511. * src/DHTEntryPointNameResolveCommand.cc
  1512. * src/DHTMessageFactoryImpl.cc
  1513. * src/DHTMessageTracker.cc
  1514. * src/DHTRoutingTableDeserializer.cc
  1515. * src/DHTRoutingTableSerializer.cc
  1516. * src/DHTSetup.cc
  1517. * src/DHTTokenTracker.cc
  1518. * src/DefaultBtAnnounce.cc
  1519. * src/DefaultBtContext.cc
  1520. * src/DefaultBtInteractive.cc
  1521. * src/DefaultBtMessageFactory.cc
  1522. * src/DefaultBtProgressInfoFile.cc
  1523. * src/DefaultExtensionMessageFactory.cc
  1524. * src/DlAbortEx.h
  1525. * src/DlRetryEx.h
  1526. * src/DownloadCommand.cc
  1527. * src/DownloadEngineFactory.cc
  1528. * src/DownloadFailureException.h
  1529. * src/Exception.cc
  1530. * src/Exception.h
  1531. * src/ExpatMetalinkProcessor.cc
  1532. * src/ExpatXmlRpcRequestProcessor.cc
  1533. * src/FallocFileAllocationIterator.cc
  1534. * src/FatalException.h
  1535. * src/FtpConnection.cc
  1536. * src/FtpFinishDownloadCommand.cc
  1537. * src/FtpInitiateConnectionCommand.cc
  1538. * src/FtpNegotiationCommand.cc
  1539. * src/GZipDecoder.cc
  1540. * src/HandshakeExtensionMessage.cc
  1541. * src/HttpConnection.cc
  1542. * src/HttpHeaderProcessor.cc
  1543. * src/HttpInitiateConnectionCommand.cc
  1544. * src/HttpResponse.cc
  1545. * src/HttpResponseCommand.cc
  1546. * src/HttpServer.cc
  1547. * src/HttpSkipResponseCommand.cc
  1548. * src/InitiateConnectionCommandFactory.cc
  1549. * src/IteratableChunkChecksumValidator.cc
  1550. * src/LibgcryptARC4Context.h
  1551. * src/LibgcryptARC4Decryptor.h
  1552. * src/LibgcryptARC4Encryptor.h
  1553. * src/LibgcryptDHKeyExchange.h
  1554. * src/LibgnutlsTLSContext.cc
  1555. * src/LibsslARC4Context.h
  1556. * src/LibsslARC4Decryptor.h
  1557. * src/LibsslARC4Encryptor.h
  1558. * src/LibsslDHKeyExchange.h
  1559. * src/LibsslTLSContext.cc
  1560. * src/MSEHandshake.cc
  1561. * src/MessageDigestHelper.cc
  1562. * src/MetalinkHelper.cc
  1563. * src/MultiDiskAdaptor.cc
  1564. * src/NameMatchOptionHandler.h
  1565. * src/NameResolver.cc
  1566. * src/Netrc.cc
  1567. * src/NsCookieParser.cc
  1568. * src/OptionHandlerException.cc
  1569. * src/OptionHandlerException.h
  1570. * src/OptionHandlerImpl.h
  1571. * src/OptionParser.cc
  1572. * src/ParameterizedStringParser.cc
  1573. * src/PeerAbstractCommand.cc
  1574. * src/PeerConnection.cc
  1575. * src/PeerMessageUtil.cc
  1576. * src/PeerReceiveHandshakeCommand.cc
  1577. * src/Platform.cc
  1578. * src/ReceiverMSEHandshakeCommand.cc
  1579. * src/RecoverableException.h
  1580. * src/RequestGroup.cc
  1581. * src/SimpleLogger.cc
  1582. * src/SocketCore.cc
  1583. * src/Sqlite3MozCookieParser.cc
  1584. * src/UTPexExtensionMessage.cc
  1585. * src/Util.cc
  1586. * src/XML2SAXMetalinkProcessor.cc
  1587. * src/Xml2XmlRpcRequestProcessor.cc
  1588. * src/XmlRpcMethodImpl.cc
  1589. * src/bencode.cc
  1590. * src/download_helper.cc
  1591. * src/messageDigest.h
  1592. * test/ExceptionTest.cc
  1593. * test/TestUtil.cc
  1594. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Bump up version number to 1.4.0
  1596. * configure.ac
  1597. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Added 2files.metalink to EXTRA_DIST
  1599. * test/Makefile.am
  1600. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1601. Added missing 2files.metalink
  1602. * test/2files.metalink
  1603. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1604. Show "[MEMORY]" prefix before filename in download summary if it
  1605. is downloaded into memory.
  1606. * src/DownloadResult.h
  1607. * src/RequestGroup.cc
  1608. * src/RequestGroupMan.cc
  1609. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1611. * src/ExpatXmlRpcRequestProcessor.cc
  1612. * src/Xml2XmlRpcRequestProcessor.cc
  1613. * src/message.h
  1614. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1615. Defined const BDEs to avoid duplicate instantiation.
  1616. Defined MSG_GID_NOT_PROVIDED.
  1617. * src/XmlRpcMethodImpl.cc
  1618. * src/message.h
  1619. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Code cleanup
  1621. * src/Xml2XmlRpcRequestProcessor.cc
  1622. * src/Xml2XmlRpcRequestProcessor.h
  1623. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Defined ENABLE_XML_RPC
  1625. * configure.ac
  1626. * configure
  1627. * config.h.in
  1628. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1629. Added ExpatXmlRpcRequestProcessor
  1630. * src/ExpatXmlRpcRequestProcessor.cc
  1631. * src/ExpatXmlRpcRequestProcessor.h
  1632. * src/Makefile.am
  1633. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Added tests for addTorrent and addMetalink command.
  1635. * test/TestUtil.cc
  1636. * test/TestUtil.h
  1637. * test/XmlRpcMethodTest.cc
  1638. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Corrected the description of --file-allocation option.
  1640. * doc/aria2c.1.txt
  1641. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1642. Added tellAll command.
  1643. * src/XmlRpcMethodFactory.cc
  1644. * src/XmlRpcMethodImpl.cc
  1645. * src/XmlRpcMethodImpl.h
  1646. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1648. * src/XmlRpcMethodImpl.cc
  1649. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Added changeGlobalOption command. Currently,
  1651. max-overall-download-limit and max-overall-upload-limit option are
  1652. available.
  1653. * src/RequestGroupMan.h
  1654. * src/XmlRpcMethod.cc
  1655. * src/XmlRpcMethod.h
  1656. * src/XmlRpcMethodFactory.cc
  1657. * src/XmlRpcMethodImpl.cc
  1658. * src/XmlRpcMethodImpl.h
  1659. * test/XmlRpcMethodTest.cc
  1660. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Added changeOption command. Currently, max-download-limit,
  1662. max-upload-limit option are available in this command.
  1663. * src/RequestGroup.h
  1664. * src/XmlRpcMethod.cc
  1665. * src/XmlRpcMethod.h
  1666. * src/XmlRpcMethodFactory.cc
  1667. * src/XmlRpcMethodImpl.cc
  1668. * src/XmlRpcMethodImpl.h
  1669. * test/XmlRpcMethodTest.cc
  1670. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Added purgeDownloadResult command.
  1672. * src/RequestGroupMan.cc
  1673. * src/RequestGroupMan.h
  1674. * src/XmlRpcMethodFactory.cc
  1675. * src/XmlRpcMethodImpl.cc
  1676. * src/XmlRpcMethodImpl.h
  1677. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Refactored.
  1679. * src/XmlRpcMethod.cc
  1680. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1682. XmlRpcResponse.
  1683. * src/HttpServerBodyCommand.cc
  1684. * src/Makefile.am
  1685. * src/XmlRpcMethod.cc
  1686. * src/XmlRpcMethod.h
  1687. * src/XmlRpcMethodImpl.cc
  1688. * src/XmlRpcResponse.cc
  1689. * src/XmlRpcResponse.h
  1690. * test/XmlRpcMethodTest.cc
  1691. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. In XML-RPC option struct, header and index-out option can take
  1693. array as value.
  1694. * src/XmlRpcMethod.cc
  1695. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Removed unused option member from PeerConnection.
  1697. * src/InitiatorMSEHandshakeCommand.cc
  1698. * src/PeerConnection.cc
  1699. * src/PeerConnection.h
  1700. * src/PeerInteractionCommand.cc
  1701. * src/PeerReceiveHandshakeCommand.cc
  1702. * src/ReceiverMSEHandshakeCommand.cc
  1703. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Added "seeder" key to getPeers response.
  1705. * src/XmlRpcMethodImpl.cc
  1706. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1707. Added addMetalink XML-RPC command.
  1708. * src/XmlRpcMethodFactory.cc
  1709. * src/XmlRpcMethodImpl.cc
  1710. * src/XmlRpcMethodImpl.h
  1711. * src/download_helper.cc
  1712. * src/download_helper.h
  1713. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Fixed the bug that POU peers are never choked in seeding.
  1715. * src/BtSeederStateChoke.cc
  1716. * src/BtSeederStateChoke.h
  1717. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Added web-seeding URI handling in addTorrent command.
  1719. * src/XmlRpcMethodImpl.cc
  1720. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1721. Added "length" key to getFiles response.
  1722. * src/XmlRpcMethodImpl.cc
  1723. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Moved --no-netrc option from ftp option section to http/ftp option
  1725. section.
  1726. * doc/aria2c.1.txt
  1727. * src/OptionHandlerFactory.cc
  1728. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Removed garbage "\" character before '
  1730. * doc/aria2c.1.txt
  1731. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1732. Removed garbage "\" character before http.
  1733. * doc/aria2c.1.txt
  1734. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Documented additional options that can be specified in -i list.
  1736. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1737. and --xml-rpc-passwd. Removed --enable-http-server and
  1738. --http-server-listen-port.
  1739. * doc/aria2c.1.txt
  1740. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1742. * src/DefaultPeerStorage.cc
  1743. * src/DefaultPeerStorage.h
  1744. * src/PeerStorage.h
  1745. * src/XmlRpcMethodImpl.cc
  1746. * test/MockPeerStorage.h
  1747. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Put a call to Socket::isReadable() in try block.
  1749. * src/HttpServerBodyCommand.cc
  1750. * src/HttpServerCommand.cc
  1751. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1752. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1753. exception , so it is now in try block.
  1754. * src/HttpServerResponseCommand.cc
  1755. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Added "amChoking" and "peerChoking" key in getPeers response.
  1757. * src/XmlRpcMethodImpl.cc
  1758. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Added test case for zero-length filter.
  1760. * test/BitfieldManTest.cc
  1761. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. getFiles command now returns file data for finished/stopped
  1763. downloads.
  1764. * src/XmlRpcMethodImpl.cc
  1765. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. DownloadResult now has the list of FileEntry. The download
  1767. summary displays the path of first selected file and the number of
  1768. remaining files for multi-file torrent.
  1769. * src/DownloadResult.h
  1770. * src/RequestGroup.cc
  1771. * src/RequestGroupMan.cc
  1772. * test/RequestGroupTest.cc
  1773. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Fixed segmentation fault error when no file is selected in
  1775. multi-file torrent.
  1776. * src/BitfieldMan.cc
  1777. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Escaped <,>,& character in XML-RPC response.
  1779. * src/XmlRpcMethod.cc
  1780. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Throw DlAbortEx instead of FatalException during parsing options
  1782. because we don't want for aria2 to quit when bad option is passed
  1783. via XML-RPC.
  1784. * src/OptionHandlerException.cc
  1785. * src/OptionHandlerException.h
  1786. * src/OptionHandlerImpl.h
  1787. * src/OptionParser.cc
  1788. * src/OptionParser.h
  1789. * src/PStringSegment.cc
  1790. * src/ParameterizedStringParser.cc
  1791. * src/download_helper.cc
  1792. * test/ParameterizedStringParserTest.cc
  1793. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1794. Selecting files are now done in
  1795. DefaultBtContext::setFileFileter().
  1796. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1797. functions are removed because they are no longer used. Creating
  1798. filter in BitfieldMan is done in new funtion
  1799. PieceStorage::setupFileFilter()
  1800. * src/BtContext.cc
  1801. * src/BtContext.h
  1802. * src/DefaultBtContext.cc
  1803. * src/DefaultBtContext.h
  1804. * src/DefaultPieceStorage.cc
  1805. * src/DefaultPieceStorage.h
  1806. * src/DiskAdaptor.cc
  1807. * src/DiskAdaptor.h
  1808. * src/PieceStorage.h
  1809. * src/RequestGroup.cc
  1810. * src/UnknownLengthPieceStorage.h
  1811. * src/XmlRpcMethodImpl.cc
  1812. * test/DefaultBtContextTest.cc
  1813. * test/MockBtContext.h
  1814. * test/MockPieceStorage.h
  1815. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1816. Fixed compile error on Mac OS X
  1817. * src/HttpServer.cc
  1818. * src/XmlRpcMethod.h
  1819. * src/XmlRpcMethodImpl.cc
  1820. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. Use std::binary_search instead of std::find
  1822. * src/DefaultPieceStorage.cc
  1823. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1824. Removed unnecessary BDE() call; leave them to implicit conversion.
  1825. * src/XmlRpcMethodImpl.cc
  1826. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Return connections and gid in string
  1828. * src/XmlRpcMethodImpl.cc
  1829. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Renamed addURI as addUri
  1831. * src/XmlRpcMethodFactory.cc
  1832. * src/XmlRpcMethodImpl.cc
  1833. * src/XmlRpcMethodImpl.h
  1834. * test/XmlRpcMethodTest.cc
  1835. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Renamed addTorrentFile as addTorrent
  1837. * src/XmlRpcMethodFactory.cc
  1838. * src/XmlRpcMethodImpl.cc
  1839. * src/XmlRpcMethodImpl.h
  1840. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. The information for files, URIs, peers are removed from the
  1842. reponse of TellaActive, TellStatus command because they tend to be
  1843. large. Instead they can be retrieved by the dedicated commands:
  1844. getFiles, getUris and getPeers respectively.
  1845. * src/XmlRpcMethodFactory.cc
  1846. * src/XmlRpcMethodImpl.cc
  1847. * src/XmlRpcMethodImpl.h
  1848. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1849. Removed --max-overall-upload-limit and
  1850. --max-overall-download-limit option from listRequestOptions.
  1851. * src/download_helper.cc
  1852. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Log incoming host in HttpListenCommand.
  1854. * src/HttpListenCommand.cc
  1855. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1857. --xml-rpc-passwd option.
  1858. * src/HttpServer.cc
  1859. * src/HttpServer.h
  1860. * src/HttpServerCommand.cc
  1861. * src/OptionHandlerFactory.cc
  1862. * src/prefs.cc
  1863. * src/prefs.h
  1864. * src/usage_text.h
  1865. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1867. processing 0 length request.
  1868. * src/HttpServerBodyCommand.cc
  1869. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Removed --enable-http-server and --http-server-listen-port
  1871. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1872. instead. The original feature for --enable-http-server that
  1873. reports download progress in HTML was officially removed. Persist
  1874. XML-RPC connection if client supports keep-alive.
  1875. * src/DownloadEngineFactory.cc
  1876. * src/HttpServerCommand.cc
  1877. * src/HttpServerResponseCommand.cc
  1878. * src/Makefile.am
  1879. * src/Makefile.in
  1880. * src/OptionHandlerFactory.cc
  1881. * src/RequestGroupMan.cc
  1882. * src/main.cc
  1883. * src/option_processing.cc
  1884. * src/prefs.cc
  1885. * src/prefs.h
  1886. * src/usage_text.h
  1887. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Added "uris" key to the response of tellStatus command. Added
  1889. "connections" key to the response of tellStatus and tellActive
  1890. command.
  1891. * src/XmlRpcMethodImpl.cc
  1892. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1893. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1894. Added TellStatusXmlRpcMethod. Remove command can now remove
  1895. waiting RequestGroup.
  1896. * src/RequestGroupMan.cc
  1897. * src/RequestGroupMan.h
  1898. * src/XmlRpcMethodFactory.cc
  1899. * src/XmlRpcMethodImpl.cc
  1900. * src/XmlRpcMethodImpl.h
  1901. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1902. Initialized _peerId
  1903. * src/Peer.cc
  1904. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Return fault structure for error. FailXmlRpcMethod is renamed as
  1906. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1907. in non-torrent download. Return single param value.
  1908. * src/XmlRpcMethod.cc
  1909. * src/XmlRpcMethodFactory.cc
  1910. * src/XmlRpcMethodImpl.cc
  1911. * src/XmlRpcMethodImpl.h
  1912. * test/XmlRpcMethodTest.cc
  1913. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1915. command.
  1916. * src/RequestGroup.cc
  1917. * src/RequestGroup.h
  1918. * src/RequestGroupMan.cc
  1919. * src/XmlRpcMethodImpl.cc
  1920. * test/RequestGroupTest.cc
  1921. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. Added more options that can be specified in -i list and xml-rpc
  1923. add* command.
  1924. * src/download_helper.h
  1925. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. The available options in -i list should be listed in
  1927. listRequestOptions().
  1928. * src/download_helper.cc
  1929. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1931. command.
  1932. * src/XmlRpcMethodImpl.cc
  1933. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Now RequestGroup has its own copy of Option object. This will help
  1935. to give custom option for each RequestGroup.
  1936. addTorrentFile command now takes options.
  1937. * src/AbstractCommand.cc
  1938. * src/AbstractCommand.h
  1939. * src/AbstractProxyRequestCommand.cc
  1940. * src/ActivePeerConnectionCommand.cc
  1941. * src/ActivePeerConnectionCommand.h
  1942. * src/AdaptiveURISelector.cc
  1943. * src/BtCheckIntegrityEntry.cc
  1944. * src/BtDependency.cc
  1945. * src/BtDependency.h
  1946. * src/BtFileAllocationEntry.cc
  1947. * src/BtPostDownloadHandler.cc
  1948. * src/CheckIntegrityEntry.cc
  1949. * src/DownloadCommand.cc
  1950. * src/FtpDownloadCommand.cc
  1951. * src/FtpFinishDownloadCommand.cc
  1952. * src/FtpInitiateConnectionCommand.cc
  1953. * src/FtpNegotiationCommand.cc
  1954. * src/HttpInitiateConnectionCommand.cc
  1955. * src/HttpRequestCommand.cc
  1956. * src/HttpResponseCommand.cc
  1957. * src/HttpSkipResponseCommand.cc
  1958. * src/InitiateConnectionCommand.cc
  1959. * src/InitiateConnectionCommandFactory.cc
  1960. * src/InitiatorMSEHandshakeCommand.cc
  1961. * src/InitiatorMSEHandshakeCommand.h
  1962. * src/Metalink2RequestGroup.cc
  1963. * src/Metalink2RequestGroup.h
  1964. * src/MetalinkPostDownloadHandler.cc
  1965. * src/MultiUrlRequestInfo.cc
  1966. * src/MultiUrlRequestInfo.h
  1967. * src/PeerAbstractCommand.cc
  1968. * src/PeerInteractionCommand.cc
  1969. * src/PeerInteractionCommand.h
  1970. * src/PeerReceiveHandshakeCommand.cc
  1971. * src/PeerReceiveHandshakeCommand.h
  1972. * src/RequestGroup.cc
  1973. * src/RequestGroup.h
  1974. * src/TrackerWatcherCommand.cc
  1975. * src/TrackerWatcherCommand.h
  1976. * src/XmlRpcMethod.cc
  1977. * src/XmlRpcMethod.h
  1978. * src/XmlRpcMethodImpl.cc
  1979. * src/download_helper.cc
  1980. * src/download_helper.h
  1981. * src/main.cc
  1982. * test/BtDependencyTest.cc
  1983. * test/BtPostDownloadHandlerTest.cc
  1984. * test/DefaultBtMessageDispatcherTest.cc
  1985. * test/DownloadHandlerFactoryTest.cc
  1986. * test/DownloadHelperTest.cc
  1987. * test/Metalink2RequestGroupTest.cc
  1988. * test/MetalinkPostDownloadHandlerTest.cc
  1989. * test/RequestGroupManTest.cc
  1990. * test/RequestGroupTest.cc
  1991. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Added tellActiveStatus xml-rpc command which reports download
  1993. status of active downloads.
  1994. * src/XmlRpcMethodFactory.cc
  1995. * src/XmlRpcMethodImpl.cc
  1996. * src/XmlRpcMethodImpl.h
  1997. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Added addTorrentFile xml-rpc command which receives uploaded
  1999. torrent file and add download for it.
  2000. * src/RequestGroupMan.cc
  2001. * src/XmlRpcMethodFactory.cc
  2002. * src/XmlRpcMethodImpl.cc
  2003. * src/XmlRpcMethodImpl.h
  2004. * src/download_helper.cc
  2005. * src/download_helper.h
  2006. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Added remove xml-rpc command which removes specified download.
  2008. There is a known issue: the removed unfinished downloads are
  2009. reported ERR when aria2 exits. They should be reported as INPR.
  2010. * src/RequestGroupMan.cc
  2011. * src/RequestGroupMan.h
  2012. * src/XmlRpcMethodFactory.cc
  2013. * src/XmlRpcMethodImpl.cc
  2014. * src/XmlRpcMethodImpl.h
  2015. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2016. If --enable-http-server is enabled, don't stop aria2 when all
  2017. download finished and don't quit when no files to download at
  2018. start up.
  2019. * src/RequestGroupMan.cc
  2020. * src/main.cc
  2021. * src/option_processing.cc
  2022. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Added missing AM_CONDITIONAL
  2024. * configure.ac
  2025. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Added xml-rpc functionality. Currently only addURI commad is
  2027. supported. To enable xml-rpc, run aria2 with
  2028. --enable-http-server. This option name is temporal and will be
  2029. changed. The feature that reports download progress in html format
  2030. is temporarily disabled.
  2031. * src/HttpServer.cc
  2032. * src/HttpServer.h
  2033. * src/HttpServerBodyCommand.cc
  2034. * src/HttpServerBodyCommand.h
  2035. * src/HttpServerCommand.cc
  2036. * src/HttpServerResponseCommand.cc
  2037. * src/Makefile.am
  2038. * src/OptionParser.cc
  2039. * src/OptionParser.h
  2040. * src/RequestGroupMan.cc
  2041. * src/RequestGroupMan.h
  2042. * src/XmlRpcMethod.cc
  2043. * src/XmlRpcMethod.h
  2044. * src/XmlRpcMethodFactory.cc
  2045. * src/XmlRpcMethodFactory.h
  2046. * src/XmlRpcMethodImpl.cc
  2047. * src/XmlRpcMethodImpl.h
  2048. * src/download_helper.cc
  2049. * src/download_helper.h
  2050. * test/Makefile.am
  2051. * test/XmlRpcMethodTest.cc
  2052. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2053. Added xml-rpc request parser. The supported value types are:
  2054. i4/int, string, double, struct, array, base64. Currently only
  2055. libxml2 version is provided.
  2056. * src/Xml2XmlRpcRequestProcessor.cc
  2057. * src/Xml2XmlRpcRequestProcessor.h
  2058. * src/XmlRpcElements.cc
  2059. * src/XmlRpcElements.h
  2060. * src/XmlRpcRequest.h
  2061. * src/XmlRpcRequestParserController.cc
  2062. * src/XmlRpcRequestParserController.h
  2063. * src/XmlRpcRequestParserState.h
  2064. * src/XmlRpcRequestParserStateImpl.cc
  2065. * src/XmlRpcRequestParserStateImpl.h
  2066. * src/XmlRpcRequestParserStateMachine.cc
  2067. * src/XmlRpcRequestParserStateMachine.h
  2068. * src/XmlRpcRequestProcessor.h
  2069. * test/XmlRpcRequestParserControllerTest.cc
  2070. * test/XmlRpcRequestProcessorTest.cc
  2071. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. * Release 1.3.3
  2073. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Fixed compile error since r1202.
  2075. * src/ExpatMetalinkProcessor.cc
  2076. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Updated Ukrainian, Russian and Simplified Chinese
  2078. translations. Thanks to all translators.
  2079. * po/ru.po
  2080. * po/uk.po
  2081. * po/zh_CN.po
  2082. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Pass reference of Option object instead of pointer.
  2084. * src/download_helper.cc
  2085. * src/download_helper.h
  2086. * src/main.cc
  2087. * test/DownloadHelperTest.cc
  2088. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2090. from option directly. Instead, get them from RequestGroup.
  2091. * src/ActivePeerConnectionCommand.cc
  2092. * src/ActivePeerConnectionCommand.h
  2093. * src/PeerReceiveHandshakeCommand.cc
  2094. * src/RequestGroup.h
  2095. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2096. Removed unused uploadLimitCheck and uploadLimit from
  2097. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2098. PeerInteractionCommand.
  2099. * src/PeerAbstractCommand.cc
  2100. * src/PeerAbstractCommand.h
  2101. * src/PeerInteractionCommand.cc
  2102. * src/PeerInteractionCommand.h
  2103. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Fixed broken file renaming feature since r1202.
  2105. * src/FtpNegotiationCommand.cc
  2106. * src/FtpNegotiationCommand.h
  2107. * src/HttpResponseCommand.cc
  2108. * src/RequestGroup.cc
  2109. * src/RequestGroup.h
  2110. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2111. Removed unused debug log
  2112. * src/SocketCore.cc
  2113. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Generated configure and Makefile.in using autoconf 2.63 and
  2115. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2116. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2117. * configure.ac
  2118. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Moved piece statistics stuff to new PieceStatMan class.
  2120. Refactored PieceSelector interface.
  2121. * src/DefaultPieceStorage.cc
  2122. * src/DefaultPieceStorage.h
  2123. * src/LongestSequencePieceSelector.cc
  2124. * src/LongestSequencePieceSelector.h
  2125. * src/Makefile.am
  2126. * src/PieceSelector.h
  2127. * src/PieceStatMan.cc
  2128. * src/PieceStatMan.h
  2129. * src/RarestPieceSelector.cc
  2130. * src/RarestPieceSelector.h
  2131. * src/RequestGroup.cc
  2132. * test/DefaultPieceStorageTest.cc
  2133. * test/InOrderPieceSelector.h
  2134. * test/Makefile.am
  2135. * test/PieceStatManTest.cc
  2136. * test/RarestPieceSelectorTest.cc
  2137. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Added static member _protocolFamily to SocketCore. By default,
  2139. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2140. address. Sometime SocketCore::bind() and
  2141. SocketCore::establishConnection() use difference protocl family
  2142. and latter cannot connect to former. To avoid this situation, we
  2143. limit protocol family to AF_INET for unit tests.
  2144. * src/SocketCore.cc
  2145. * src/SocketCore.h
  2146. * test/AllTest.cc
  2147. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Avoid std::bad_alloc for negative bencode string length.
  2149. * src/bencode.cc
  2150. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Supported segmented downloading with chunked transfer encoding and
  2152. content-length.
  2153. * src/DownloadCommand.cc
  2154. * src/HttpResponseCommand.cc
  2155. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2156. Bump up version number to 1.3.3
  2157. * configure.ac
  2158. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2160. from 4096 to 65536 (for insanely large ftp login banners)
  2161. * src/FtpConnection.h
  2162. * test/FtpConnectionTest.cc
  2163. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2164. In DefaultBtContext::getActualBasePath(), return first
  2165. FileEntry::getPath() for single file torrent.
  2166. * src/DefaultBtContext.cc
  2167. * test/DefaultBtContextTest.cc
  2168. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2170. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2171. Removed _directIOAllowed member from DiskWriter.
  2172. * src/AbstractDiskWriter.cc
  2173. * src/AbstractDiskWriter.h
  2174. * src/AbstractSingleDiskAdaptor.cc
  2175. * src/AbstractSingleDiskAdaptor.h
  2176. * src/BinaryStream.h
  2177. * src/ByteArrayDiskWriter.h
  2178. * src/DefaultPieceStorage.cc
  2179. * src/DiskWriter.h
  2180. * src/MultiDiskAdaptor.cc
  2181. * src/MultiDiskAdaptor.h
  2182. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2183. Now the constructor of AbstractDiskWriter takes filename as an
  2184. argument and filename argument is removed from openFile(),
  2185. initAndOpenFile(), openExistingFile() interface. storeDir member
  2186. and its accessor functions are removed from DiskAdaptor because it
  2187. is not used anymore. size() member function of DefaultDiskWriter,
  2188. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2189. opening file.
  2190. * src/AbstractDiskWriter.cc
  2191. * src/AbstractDiskWriter.h
  2192. * src/AbstractSingleDiskAdaptor.cc
  2193. * src/AbstractSingleDiskAdaptor.h
  2194. * src/ByteArrayDiskWriter.cc
  2195. * src/ByteArrayDiskWriter.h
  2196. * src/ByteArrayDiskWriterFactory.cc
  2197. * src/ByteArrayDiskWriterFactory.h
  2198. * src/DefaultDiskWriter.cc
  2199. * src/DefaultDiskWriter.h
  2200. * src/DefaultDiskWriterFactory.cc
  2201. * src/DefaultDiskWriterFactory.h
  2202. * src/DefaultPieceStorage.cc
  2203. * src/DirectDiskAdaptor.cc
  2204. * src/DirectDiskAdaptor.h
  2205. * src/DiskAdaptor.h
  2206. * src/DiskWriter.h
  2207. * src/DiskWriterFactory.h
  2208. * src/MessageDigestHelper.cc
  2209. * src/MultiDiskAdaptor.cc
  2210. * src/RequestGroup.cc
  2211. * src/UnknownLengthPieceStorage.cc
  2212. * src/Util.cc
  2213. * test/DefaultDiskWriterTest.cc
  2214. * test/DirectDiskAdaptorTest.cc
  2215. * test/FallocFileAllocationIteratorTest.cc
  2216. * test/MessageDigestHelperTest.cc
  2217. * test/MetalinkProcessorTest.cc
  2218. * test/MultiDiskAdaptorTest.cc
  2219. * test/MultiFileAllocationIteratorTest.cc
  2220. * test/SingleFileAllocationIteratorTest.cc
  2221. * test/UtilTest.cc
  2222. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Fixed the bug that aria2 aborts when --select-file is used. This
  2224. bug was introduced in r1199.
  2225. * src/MultiDiskAdaptor.cc
  2226. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Code cleanup
  2228. * test/MockPieceStorage.cc
  2229. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Fixed the bug that read-only file with wrong file size will cause
  2231. error because it cannot be truncated to the correct size. Now if
  2232. file size is different than the expected one, re-open file in
  2233. writable mode.
  2234. * src/AbstractSingleDiskAdaptor.cc
  2235. * src/AbstractSingleDiskAdaptor.h
  2236. * src/BtCheckIntegrityEntry.cc
  2237. * src/DiskAdaptor.h
  2238. * src/MultiDiskAdaptor.h
  2239. * src/RequestGroup.cc
  2240. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Fixed the bug that with --check-integrity option aria2 reports
  2242. downloaded file size is 0 even if some parts of file is correctly
  2243. downloaded. This bug is reproducible for the download that a file
  2244. includes last piece is missing. This bug doesn't reveal for
  2245. single-torrent with file allocation on.
  2246. * src/IteratableChecksumValidator.cc
  2247. * test/IteratableChecksumValidatorTest.cc
  2248. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2249. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2250. * src/RequestGroupMan.cc
  2251. * src/AdaptiveURISelector.cc
  2252. * src/AdaptiveURISelector.h
  2253. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2254. * Release 1.3.2
  2255. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2256. Updated README
  2257. * README
  2258. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Updated Ukrainian translations. Thanks to Alexander10.
  2260. * po/uk.po
  2261. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Code cleanup
  2263. * src/MetalinkParserStateMachine.cc
  2264. * src/MetalinkParserStateMachine.h
  2265. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2267. and expat simultaneously, MetalinkProcessor is now not base class
  2268. and it is directly implemented in XML2SAXMetalinkProcessor and
  2269. ExpatMetalinkProcessor.
  2270. * src/ExpatMetalinkProcessor.cc
  2271. * src/ExpatMetalinkProcessor.h
  2272. * src/Makefile.am
  2273. * src/MetalinkHelper.cc
  2274. * src/MetalinkProcessor.h
  2275. * src/MetalinkProcessorFactory.cc: Removed.
  2276. * src/MetalinkProcessorFactory.h: Removed
  2277. * src/XML2SAXMetalinkProcessor.cc
  2278. * src/XML2SAXMetalinkProcessor.h
  2279. * test/MetalinkProcessorTest.cc
  2280. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Bump up version number to 1.3.2
  2282. * configure.ac
  2283. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Added missing file.
  2285. * test/Makefile.am
  2286. * test/url-list-singleFileEndsWithSlash.torrent
  2287. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2289. request.
  2290. * src/AnnounceList.cc
  2291. * src/AnnounceList.h
  2292. * src/BDE.cc: Added
  2293. * src/BDE.h: Added
  2294. * src/DHTAbstractMessage.cc
  2295. * src/DHTAbstractMessage.h
  2296. * src/DHTAnnouncePeerMessage.cc
  2297. * src/DHTAnnouncePeerMessage.h
  2298. * src/DHTAnnouncePeerReplyMessage.cc
  2299. * src/DHTAnnouncePeerReplyMessage.h
  2300. * src/DHTFindNodeMessage.cc
  2301. * src/DHTFindNodeMessage.h
  2302. * src/DHTFindNodeReplyMessage.cc
  2303. * src/DHTFindNodeReplyMessage.h
  2304. * src/DHTGetPeersMessage.cc
  2305. * src/DHTGetPeersMessage.h
  2306. * src/DHTGetPeersReplyMessage.cc
  2307. * src/DHTGetPeersReplyMessage.h
  2308. * src/DHTMessageFactory.h
  2309. * src/DHTMessageFactoryImpl.cc
  2310. * src/DHTMessageFactoryImpl.h
  2311. * src/DHTMessageReceiver.cc
  2312. * src/DHTMessageTracker.cc
  2313. * src/DHTMessageTracker.h
  2314. * src/DHTPingMessage.cc
  2315. * src/DHTPingMessage.h
  2316. * src/DHTPingReplyMessage.cc
  2317. * src/DHTPingReplyMessage.h
  2318. * src/DHTQueryMessage.cc
  2319. * src/DHTQueryMessage.h
  2320. * src/DHTResponseMessage.cc
  2321. * src/DHTResponseMessage.h
  2322. * src/DefaultBtAnnounce.cc
  2323. * src/DefaultBtContext.cc
  2324. * src/DefaultBtContext.h
  2325. * src/HandshakeExtensionMessage.cc
  2326. * src/Makefile.am
  2327. * src/PeerListProcessor.h
  2328. * src/UTPexExtensionMessage.cc
  2329. * src/bencode.cc
  2330. * src/bencode.h
  2331. * test/AnnounceListTest.cc
  2332. * test/BDETest.cc: Added
  2333. * test/BencodeTest.cc
  2334. * test/DHTAnnouncePeerMessageTest.cc
  2335. * test/DHTAnnouncePeerReplyMessageTest.cc
  2336. * test/DHTFindNodeMessageTest.cc
  2337. * test/DHTFindNodeReplyMessageTest.cc
  2338. * test/DHTGetPeersMessageTest.cc
  2339. * test/DHTGetPeersReplyMessageTest.cc
  2340. * test/DHTMessageFactoryImplTest.cc
  2341. * test/DHTMessageTrackerTest.cc
  2342. * test/DHTPingMessageTest.cc
  2343. * test/DHTPingReplyMessageTest.cc
  2344. * test/Makefile.am
  2345. * test/MockDHTMessageFactory.h
  2346. * test/PeerListProcessorTest.cc
  2347. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2348. Use url-list (web-seeding) only for single-file torrent. This is
  2349. basically the same behavior with Metalink file with torrent and
  2350. URIs.
  2351. * src/RequestGroup.cc
  2352. * src/DefaultBtContext.cc
  2353. * test/DefaultBtContextTest.cc
  2354. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2355. Rewritten expr
  2356. * src/array_fun.h
  2357. * test/array_funTest.cc
  2358. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2360. * src/DefaultBtMessageDispatcher.cc
  2361. * src/a2algo.h
  2362. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2363. Removed ExtendedMessagingAware. Instead of using inheritance,
  2364. added ExtensionMessageRegistry and it is passed to
  2365. DefaultExtensionMessageFactory.
  2366. * src/DefaultBtInteractive.cc
  2367. * src/DefaultBtInteractive.h
  2368. * src/DefaultExtensionMessageFactory.cc
  2369. * src/DefaultExtensionMessageFactory.h
  2370. * src/ExtendedMessagingAware.h: Removed.
  2371. * src/ExtensionMessageFactory.h
  2372. * src/ExtensionMessageRegistry.h: Added.
  2373. * src/Makefile.am
  2374. * src/PeerInteractionCommand.cc
  2375. * test/DefaultExtensionMessageFactoryTest.cc
  2376. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2377. Fixed typo in log messages
  2378. * src/MSEHandshake.cc
  2379. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2380. Fixed the bug that prevents torrent download from finishing. The
  2381. bug doesn't reveal for all torrents. The torrents affected this
  2382. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2383. of pieces.
  2384. * src/bitfield.h
  2385. * test/bitfieldTest.cc
  2386. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Code cleanup
  2388. * src/PeerListProcessor.h
  2389. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Removed RequestGroupAware
  2391. * src/AbstractCommand.cc
  2392. * src/AbstractCommand.h
  2393. * src/ActivePeerConnectionCommand.cc
  2394. * src/ActivePeerConnectionCommand.h
  2395. * src/DHTGetPeersCommand.cc
  2396. * src/DHTGetPeersCommand.h
  2397. * src/InitiatorMSEHandshakeCommand.cc
  2398. * src/InitiatorMSEHandshakeCommand.h
  2399. * src/Makefile.am
  2400. * src/PeerInitiateConnectionCommand.cc
  2401. * src/PeerInitiateConnectionCommand.h
  2402. * src/PeerInteractionCommand.cc
  2403. * src/PeerInteractionCommand.h
  2404. * src/RealtimeCommand.cc
  2405. * src/RealtimeCommand.h
  2406. * src/RequestGroupAware.cc: Removed
  2407. * src/RequestGroupAware.h: Removed
  2408. * src/SeedCheckCommand.cc
  2409. * src/SeedCheckCommand.h
  2410. * src/SleepCommand.cc
  2411. * src/TrackerWatcherCommand.cc
  2412. * src/TrackerWatcherCommand.h
  2413. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. Rewritten PeerListProcessor
  2415. * src/PeerListProcessor.h
  2416. * src/CompactPeerListProcessor.h: Removed
  2417. * src/CompactPeerListProcessor.cc: Removed
  2418. * src/DelegatingPeerListProcessor.cc: Removed.
  2419. * src/DefaultBtAnnounce.cc
  2420. * src/Makefile.am
  2421. * src/UTPexExtensionMessage.cc
  2422. * src/DefaultPeerListProcessor.h: Removed.
  2423. * src/DefaultPeerListProcessor.cc: Removed.
  2424. * src/DelegatingPeerListProcessor.h: Removed.
  2425. * test/Makefile.am
  2426. * test/PeerListProcessorTest.cc
  2427. * test/DefaultPeerListProcessorTest.cc: Removed.
  2428. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2429. Rewritten RequestGroupMan::calculateStat()
  2430. * src/RequestGroupMan.cc
  2431. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Removed unnecessary virtual destructor for Request class.
  2433. * src/Request.cc
  2434. * src/Request.h
  2435. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Avoid dynamic_pointer_cast.
  2437. * src/DHTGetPeersCommand.cc
  2438. * src/DHTGetPeersCommand.h
  2439. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2440. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2441. BtEvent.
  2442. * src/AbstractBtEventListener.h: Removed.
  2443. * src/AbstractBtMessage.cc
  2444. * src/AbstractBtMessage.h
  2445. * src/BtAbortOutstandingRequestEvent.h
  2446. * src/BtCancelSendingPieceEvent.h
  2447. * src/BtChokedEvent.h: Removed.
  2448. * src/BtChokingEvent.h
  2449. * src/BtEvent.h: Removed
  2450. * src/BtEventListener.h: Removed.
  2451. * src/BtMessage.h
  2452. * src/BtPieceMessage.cc
  2453. * src/BtPieceMessage.h
  2454. * src/BtRequestMessage.cc
  2455. * src/BtRequestMessage.h
  2456. * src/DefaultBtMessageDispatcher.cc
  2457. * src/Makefile.am
  2458. * src/a2functional.h
  2459. * test/BtPieceMessageTest.cc
  2460. * test/BtRequestMessageTest.cc
  2461. * test/DefaultBtMessageDispatcherTest.cc
  2462. * test/MockBtMessage.h
  2463. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2464. Code cleanup
  2465. * src/RequestGroupMan.cc
  2466. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Code cleanup
  2468. * src/DownloadCommand.cc
  2469. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2471. byte.
  2472. * src/DownloadCommand.cc
  2473. * src/bitfield.h
  2474. * test/bitfieldTest.cc
  2475. Fixed the bug that causes infinite loop if broken web server
  2476. returns chunked response without last "0" chunk-size marker and
  2477. closes connection.
  2478. * src/DownloadCommand.cc
  2479. Instantiate properly configured HttpDownloadCommand for
  2480. non-resumable downlaods.
  2481. * src/HttpResponseCommand.cc
  2482. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2483. Rewritten array operation functions.
  2484. * src/BitfieldMan.cc
  2485. * src/array_fun.h
  2486. * test/array_funTest.cc
  2487. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Removed unused variable 'query'
  2489. * src/Request.cc
  2490. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2491. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2492. accidentally set to false in r1162.
  2493. * configure.ac
  2494. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Code cleanup
  2496. * src/BNode.cc
  2497. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Increase prefixLength for the bucket which doesn't own local node
  2499. ID when splitting bucket.
  2500. * src/DHTBucket.cc
  2501. * test/DHTBucketTest.cc
  2502. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. * Release 1.3.1
  2504. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2505. Bump up version number to 1.3.1
  2506. * configure.ac
  2507. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2508. Removed unused variable checkPoint. Also removed include directive
  2509. for TimeA2.h.
  2510. * src/SeedCheckCommand.h
  2511. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Fixed the bug that upload limit exceeds the value specified in
  2513. --seed-ratio option depending on the timing of the execution of
  2514. SeedCheckCommand.
  2515. * src/SeedCheckCommand.cc
  2516. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2517. Fixed the bug that removed peer's session upload/download length
  2518. are counted twice in _cachedTransferStat before it is
  2519. re-calculated. This affected the calculation of shara ratio,
  2520. resulting aria2 wrongly determines that specified share ratio is
  2521. reached. Also fixed the typo in calculateStatFor function name.
  2522. * src/BtSetup.cc
  2523. * src/DefaultPeerStorage.cc
  2524. * src/ShareRatioSeedCriteria.h
  2525. * test/ShareRatioSeedCriteriaTest.cc
  2526. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. * Release 1.3.0
  2528. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2530. Nynorsk translations. Thanks to all translators.
  2531. * po/es.po
  2532. * po/ja.po
  2533. * po/nn.po
  2534. * po/ru.po
  2535. * po/uk.po
  2536. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Rewritten isInRange()
  2538. * src/DHTBucket.cc
  2539. * test/DHTBucketTest.cc
  2540. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Fixed typo
  2542. * doc/aria2c.1.txt
  2543. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2545. malloc/realloc is not used.
  2546. * src/configure.ac
  2547. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2549. char* bitfield instead of stl container for efficiency.
  2550. PieceSelector::select now takes this
  2551. bitfield. RarestPieceSelector::select now also performs
  2552. efficiently for this change. bitfield namespace is introduced and
  2553. it has several helper functions to handle basic bitfield
  2554. operations such as test, count set bits, etc.
  2555. * src/BitfieldMan.cc
  2556. * src/BitfieldMan.h
  2557. * src/DefaultBtRequestFactory.cc
  2558. * src/DefaultPieceStorage.cc
  2559. * src/DefaultPieceStorage.h
  2560. * src/LongestSequencePieceSelector.cc
  2561. * src/LongestSequencePieceSelector.h
  2562. * src/Makefile.am
  2563. * src/Piece.cc
  2564. * src/Piece.h
  2565. * src/PieceSelector.h
  2566. * src/RarestPieceSelector.cc
  2567. * src/RarestPieceSelector.h
  2568. * src/Util.cc
  2569. * src/Util.h
  2570. * src/bitfield.h
  2571. * test/BitfieldManTest.cc
  2572. * test/LongestSequencePieceSelectorTest.cc
  2573. * test/Makefile.am
  2574. * test/RarestPieceSelectorTest.cc
  2575. * test/UtilTest.cc
  2576. * test/bitfieldTest.cc
  2577. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Made accepted socket non-block.
  2579. * src/FtpNegotiationCommand.cc
  2580. * src/HttpListenCommand.cc
  2581. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2582. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2583. * src/AbstractSingleDiskAdaptor.cc
  2584. * src/DefaultPieceStorage.cc
  2585. * src/DiskAdaptor.h
  2586. * src/DiskAdaptor.h
  2587. * src/MultiFileAllocationIterator.cc
  2588. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Run
  2590. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2591. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2592. it doesn't need to be called every time when
  2593. DefaultBtInteractive::doInteractionProcessing() is called.
  2594. * src/DefaultBtInteractive.cc
  2595. * src/DefaultBtInteractive.h
  2596. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2597. Documented 'falloc' in man page.
  2598. * doc/aria2c.1.txt
  2599. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Updated doc
  2601. * src/usage_text.h
  2602. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2604. allocation mode uses posix_fallocate() system call to allocate
  2605. file on disk. If you are using newer file systems such as ext4
  2606. (with extents support), btrfs or xfs, 'falloc' is your best
  2607. choice. It allocates large(few GiB) files almost instantly. Don't
  2608. use 'falloc' with legacy file systems such as ext3 because it
  2609. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2610. until allocation finishes. 'falloc' may not be available if your
  2611. system doesn't have posix_fallocate() system call.
  2612. * configure.ac
  2613. * src/AbstractDiskWriter.cc
  2614. * src/AbstractDiskWriter.h
  2615. * src/AbstractSingleDiskAdaptor.cc
  2616. * src/BinaryStream.h
  2617. * src/BtCheckIntegrityEntry.cc
  2618. * src/ByteArrayDiskWriter.h
  2619. * src/CheckIntegrityEntry.cc
  2620. * src/CheckIntegrityEntry.h
  2621. * src/DefaultPieceStorage.cc
  2622. * src/DiskAdaptor.cc
  2623. * src/DiskAdaptor.h
  2624. * src/DiskWriter.h
  2625. * src/FallocFileAllocationIterator.cc
  2626. * src/FallocFileAllocationIterator.h
  2627. * src/FileAllocationEntry.cc
  2628. * src/FileAllocationEntry.h
  2629. * src/Makefile.am
  2630. * src/MultiFileAllocationIterator.cc
  2631. * src/MultiFileAllocationIterator.h
  2632. * src/OptionHandlerFactory.cc
  2633. * src/RequestGroup.cc
  2634. * src/StreamCheckIntegrityEntry.cc
  2635. * src/prefs.cc
  2636. * src/prefs.h
  2637. * src/usage_text.h
  2638. * test/FallocFileAllocationIteratorTest.cc
  2639. * test/Makefile.am
  2640. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. Removed duplicate enableDirectIO() call.
  2642. * src/MultiFileAllocationIterator.cc
  2643. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2645. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2646. cost of std::rotate().
  2647. * src/RarestPieceSelector.cc
  2648. * src/RarestPieceSelector.h
  2649. * test/RarestPieceSelectorTest.cc
  2650. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Updated usage doc for --bt-tracker-interval option.
  2652. * src/usage_text.h
  2653. * doc/aria2c.1.txt
  2654. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Documented --bt-tracker-interval option in man page.
  2656. * doc/aria2c.1.txt
  2657. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Added an option to specify the interval between tracker requests.
  2659. If non-zero value is specified, aria2 uses it and ignores the
  2660. interval value in the response of tracker. If zero is specified,
  2661. aria2 determines the inteval value based on the tarcker response
  2662. and download progress.
  2663. * src/DefaultBtAnnounce.cc
  2664. * src/DefaultBtAnnounce.h
  2665. * src/OptionHandlerFactory.cc
  2666. * src/RequestGroup.cc
  2667. * src/prefs.cc
  2668. * src/prefs.h
  2669. * src/usage_text.h
  2670. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2671. Added operator+=, operator-=, operator-
  2672. * src/TransferStat.cc
  2673. * src/TransferStat.h
  2674. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2675. Refactored RarestPieceSelector to reduce CPU load, especially for
  2676. addPieceStats.
  2677. * src/RarestPieceSelector.cc
  2678. * src/RarestPieceSelector.h
  2679. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2681. getAllMissingBlockIndexes to reduce a call to
  2682. array_function_base::operator[].
  2683. * src/BitfieldMan.cc
  2684. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2685. Cached TransferStat/download speed to avoid to sum them up in each
  2686. call.
  2687. * src/DefaultPeerStorage.cc
  2688. * src/DefaultPeerStorage.h
  2689. * src/SegmentMan.cc
  2690. * src/SegmentMan.h
  2691. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Typedefed cuid_t as int32_t in Command.h
  2693. * src/CUIDCounter.h
  2694. * src/Command.cc
  2695. * src/Command.h
  2696. * src/DownloadEngine.cc
  2697. * src/DownloadEngine.h
  2698. * src/PeerStat.h
  2699. * src/SegmentMan.cc
  2700. * src/SegmentMan.h
  2701. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2702. Reduced the number of calls to PeerStorage::calculateStat() and
  2703. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2704. transfer rate.
  2705. * src/DefaultBtInteractive.cc
  2706. * src/DefaultBtMessageDispatcher.cc
  2707. * src/DefaultPeerStorage.cc
  2708. * src/DefaultPeerStorage.h
  2709. * src/DownloadCommand.cc
  2710. * src/DownloadEngine.cc
  2711. * src/PeerStorage.h
  2712. * src/SegmentMan.cc
  2713. * src/SegmentMan.h
  2714. * test/MockPeerStorage.h
  2715. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Prepended _dir+"/" after joining path elements in torrent file.
  2717. * src/DefaultBtContext.cc
  2718. * test/DefaultBtContextTest.cc
  2719. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. Added missing IndexBtMessageValidator.h
  2721. * src/Makefile.am
  2722. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2723. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2724. Chinese translations. Thank you for contributing our project.
  2725. * po/id.po
  2726. * po/it.po
  2727. * po/ru.po
  2728. * po/uk.po
  2729. * po/zh_CN.po
  2730. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Updated README
  2732. * README
  2733. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. Bump up version number to 1.3.0
  2735. * configure.ac
  2736. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Updated doc
  2738. * src/DefaultBtContext.h
  2739. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Slice/joinPath for name of single torrent.
  2741. * src/DefaultBtContext.cc
  2742. * test/DefaultBtContextTest.cc
  2743. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Updated man page: Documented --dry-run and --index-out
  2745. options. Changed the default value of --uri-selector and
  2746. --http-auth-challenge options. Removed --direct-file-mapping
  2747. option. Added example for --index-out
  2748. * doc/aria2c.1.txt
  2749. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Updated TEXT_DRY_RUN
  2751. * src/usage_text.h
  2752. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Changed the default value of --uri-selector option from 'inorder'
  2754. to 'feedback'
  2755. * src/OptionHandlerFactory.cc
  2756. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2757. Included current URI in exception message.
  2758. * src/AbstractCommand.cc
  2759. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Renamed ServerStatURISelector as FeedbackURISelector.
  2761. * src/FeedbackURISelector.cc
  2762. * src/FeedbackURISelector.h
  2763. * src/Makefile.am
  2764. * src/RequestGroupMan.cc
  2765. * src/ServerStatURISelector.cc
  2766. * src/ServerStatURISelector.h
  2767. * test/FeedbackURISelectorTest.cc
  2768. * test/Makefile.am
  2769. * test/ServerStatURISelectorTest.cc
  2770. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2772. all URIs are tested and their timeout is not reached.
  2773. * src/AdaptiveURISelector.cc
  2774. * src/AdaptiveURISelector.h
  2775. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. Changed the default value of --http-auth-challenge option to false.
  2777. * src/OptionHandlerFactory.cc
  2778. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Reuse URIs when all unused URIs run out.
  2780. * src/OptionHandlerFactory.cc
  2781. * src/RequestGroup.cc
  2782. * src/prefs.cc
  2783. * src/prefs.h
  2784. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2786. and BtRejectMessage are derived from RangeBtMessage class.
  2787. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2788. derived from IndexBtMessage class. BtChokeMessage,
  2789. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2790. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2791. ZeroBtMessage class.
  2792. * src/AbstractBtMessage.cc
  2793. * src/AbstractBtMessage.h
  2794. * src/BtAllowedFastMessage.cc
  2795. * src/BtAllowedFastMessage.h
  2796. * src/BtAllowedFastMessageValidator.h: Removed
  2797. * src/BtBitfieldMessage.cc
  2798. * src/BtBitfieldMessage.h
  2799. * src/BtCancelMessage.cc
  2800. * src/BtCancelMessage.h
  2801. * src/BtCancelMessageValidator.h: Removed
  2802. * src/BtChokeMessage.cc
  2803. * src/BtChokeMessage.h
  2804. * src/BtExtendedMessage.cc
  2805. * src/BtExtendedMessage.h
  2806. * src/BtHandshakeMessage.cc
  2807. * src/BtHandshakeMessage.h
  2808. * src/BtHaveAllMessage.cc
  2809. * src/BtHaveAllMessage.h
  2810. * src/BtHaveMessage.cc
  2811. * src/BtHaveMessage.h
  2812. * src/BtHaveMessageValidator.h: Removed
  2813. * src/BtHaveNoneMessage.cc
  2814. * src/BtHaveNoneMessage.h
  2815. * src/BtInterestedMessage.cc
  2816. * src/BtInterestedMessage.h
  2817. * src/BtKeepAliveMessage.cc
  2818. * src/BtKeepAliveMessage.h
  2819. * src/BtNotInterestedMessage.cc
  2820. * src/BtNotInterestedMessage.h
  2821. * src/BtPieceMessage.cc
  2822. * src/BtPieceMessage.h
  2823. * src/BtPortMessage.cc
  2824. * src/BtPortMessage.h
  2825. * src/BtRejectMessage.cc
  2826. * src/BtRejectMessage.h
  2827. * src/BtRejectMessageValidator.h: Removed
  2828. * src/BtRequestMessage.cc
  2829. * src/BtRequestMessage.h
  2830. * src/BtRequestMessageValidator.h: Removed
  2831. * src/BtSuggestPieceMessage.cc
  2832. * src/BtSuggestPieceMessage.h
  2833. * src/BtSuggestPieceMessageValidator.h: Removed
  2834. * src/BtUnchokeMessage.cc
  2835. * src/BtUnchokeMessage.h
  2836. * src/DefaultBtMessageFactory.cc
  2837. * src/IndexBtMessage.cc
  2838. * src/IndexBtMessage.h
  2839. * src/IndexBtMessageValidator.h
  2840. * src/Makefile.am
  2841. * src/PeerMessageUtil.cc
  2842. * src/PeerMessageUtil.h
  2843. * src/RangeBtMessage.cc
  2844. * src/RangeBtMessage.h
  2845. * src/RangeBtMessageValidator.h
  2846. * src/SimpleBtMessage.cc
  2847. * src/SimpleBtMessage.h
  2848. * src/ZeroBtMessage.cc
  2849. * src/ZeroBtMessage.h
  2850. * test/BtRequestMessageTest.cc
  2851. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. Reverted usage_text.h to r1093 to avoid to lose translated
  2853. messages.
  2854. * src/usage_text.h
  2855. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2857. declared as non-const previously is now const and defined in class
  2858. definition.
  2859. * src/AbstractBtMessage.cc
  2860. * src/AbstractBtMessage.h
  2861. * src/BtAllowedFastMessage.cc
  2862. * src/BtAllowedFastMessage.h
  2863. * src/BtBitfieldMessage.h
  2864. * src/BtCancelMessage.cc
  2865. * src/BtCancelMessage.h
  2866. * src/BtChokeMessage.cc
  2867. * src/BtChokeMessage.h
  2868. * src/BtExtendedMessage.cc
  2869. * src/BtExtendedMessage.h
  2870. * src/BtHandshakeMessage.cc
  2871. * src/BtHandshakeMessage.h
  2872. * src/BtHaveAllMessage.cc
  2873. * src/BtHaveAllMessage.h
  2874. * src/BtHaveMessage.cc
  2875. * src/BtHaveMessage.h
  2876. * src/BtHaveNoneMessage.cc
  2877. * src/BtHaveNoneMessage.h
  2878. * src/BtInterestedMessage.cc
  2879. * src/BtInterestedMessage.h
  2880. * src/BtKeepAliveMessage.cc
  2881. * src/BtKeepAliveMessage.h
  2882. * src/BtMessage.h
  2883. * src/BtNotInterestedMessage.cc
  2884. * src/BtNotInterestedMessage.h
  2885. * src/BtPieceMessage.h
  2886. * src/BtPortMessage.cc
  2887. * src/BtPortMessage.h
  2888. * src/BtRejectMessage.cc
  2889. * src/BtRejectMessage.h
  2890. * src/BtRequestMessage.cc
  2891. * src/BtRequestMessage.h
  2892. * src/BtSuggestPieceMessage.cc
  2893. * src/BtSuggestPieceMessage.h
  2894. * src/BtUnchokeMessage.cc
  2895. * src/BtUnchokeMessage.h
  2896. * src/SimpleBtMessage.cc
  2897. * src/SimpleBtMessage.h
  2898. * test/MockBtMessage.h
  2899. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2900. Use FileEntry::exists()
  2901. * src/MultiDiskAdaptor.cc
  2902. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Added exists()
  2904. * src/FileEntry.cc
  2905. * src/FileEntry.h
  2906. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2907. Added missing prefix dir.
  2908. * src/download_helper.cc
  2909. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2911. * src/CopyDiskAdaptor.cc: Removed
  2912. * src/CopyDiskAdaptor.h: Removed
  2913. * src/DefaultPieceStorage.cc
  2914. * src/Makefile.am
  2915. * src/OptionHandlerFactory.cc
  2916. * src/prefs.cc
  2917. * src/prefs.h
  2918. * src/usage_text.h
  2919. * test/CopyDiskAdaptorTest.cc: Removed
  2920. * test/Makefile.am
  2921. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Rewritten isSameFileBeingDownloaded()
  2923. * src/RequestGroupMan.cc
  2924. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Removed getName() from DownloadContext. getName() is declared in
  2926. BtContext.
  2927. * src/BtContext.h
  2928. * src/DownloadContext.h
  2929. * src/SingleFileDownloadContext.cc
  2930. * src/SingleFileDownloadContext.h
  2931. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2932. in AbstractSingleDiskAdaptor.
  2933. * src/AbstractSingleDiskAdaptor.h
  2934. * src/DiskAdaptor.h
  2935. * src/MultiDiskAdaptor.h
  2936. * src/RequestGroup.cc
  2937. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2938. MultiDiskAdaptor.
  2939. * src/DefaultPieceStorage.cc
  2940. * src/MultiDiskAdaptor.cc
  2941. * src/MultiDiskAdaptor.h
  2942. * test/MultiDiskAdaptorTest.cc
  2943. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2944. FileEntry::getPath() contains store(top level) directory to
  2945. simplify path handling operation. In the previous implementation,
  2946. store directory is concatenated to FileEntry::getPath() in
  2947. DownloadContext.
  2948. * src/BtDependency.cc
  2949. * src/BtPostDownloadHandler.cc
  2950. * src/CopyDiskAdaptor.cc
  2951. * src/DefaultBtContext.cc
  2952. * src/DirectDiskAdaptor.cc
  2953. * src/FileEntry.cc
  2954. * src/FileEntry.h
  2955. * src/FtpNegotiationCommand.cc
  2956. * src/HttpResponse.cc
  2957. * src/HttpResponseCommand.cc
  2958. * src/Metalink2RequestGroup.cc
  2959. * src/MultiDiskAdaptor.cc
  2960. * src/MultiDiskAdaptor.h
  2961. * src/MultiFileAllocationIterator.cc
  2962. * src/RequestGroup.cc
  2963. * src/SingleFileDownloadContext.cc
  2964. * src/SingleFileDownloadContext.h
  2965. * src/download_helper.cc
  2966. * test/BtDependencyTest.cc
  2967. * test/CopyDiskAdaptorTest.cc
  2968. * test/DefaultBtContextTest.cc
  2969. * test/DefaultBtProgressInfoFileTest.cc
  2970. * test/DirectDiskAdaptorTest.cc
  2971. * test/DownloadHelperTest.cc
  2972. * test/FileEntryTest.cc
  2973. * test/MultiDiskAdaptorTest.cc
  2974. * test/MultiFileAllocationIteratorTest.cc
  2975. * test/RequestGroupTest.cc
  2976. * test/SingleFileDownloadContextTest.cc
  2977. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Fixed compiler warning
  2979. * src/download_helper.cc
  2980. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2981. Throw exception if same infohash torrent is now downloading.
  2982. * src/RequestGroup.cc
  2983. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2984. Added --dry-run option. In this mode, aria2 just checks whether
  2985. the remote file is available and doesn't download data. This
  2986. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2987. are canceled in this mode.
  2988. * src/FtpNegotiationCommand.cc
  2989. * src/HttpResponseCommand.cc
  2990. * src/HttpResponseCommand.h
  2991. * src/OptionHandlerFactory.cc
  2992. * src/RequestGroup.cc
  2993. * src/RequestGroupMan.cc
  2994. * src/prefs.cc
  2995. * src/prefs.h
  2996. * src/usage_text.h
  2997. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2998. Fixed compiler waring
  2999. * test/UriListParserTest.cc
  3000. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3001. Parse options in -i list using OptionParser.
  3002. * src/UriListParser.cc
  3003. * src/UriListParser.h
  3004. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3005. Don't reset URI in retry to avoid additional round trips because
  3006. of redirects.
  3007. * src/AbstractCommand.cc
  3008. * src/OptionHandlerFactory.cc
  3009. * src/prefs.cc
  3010. * src/prefs.h
  3011. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3012. Declared hide() in OptionHandler.
  3013. * src/NameMatchOptionHandler.h
  3014. * src/OptionHandler.h
  3015. * src/OptionHandlerImpl.h
  3016. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Updated doc
  3018. * src/Peer.h
  3019. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Added log message in setStatusInternal()
  3021. * src/ServerStat.cc
  3022. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3023. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3024. effectively exclude failed server.
  3025. * src/AbstractCommand.cc
  3026. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3027. Added --index-out option to specify each file path for torrent.
  3028. Here index shown in --show-files option is used to specify which
  3029. file path should be altered. For example, to change the file path
  3030. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3031. option multiple times: --index-out=1=aria2.tar.bz2
  3032. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3033. available. This option can be specified in -i list.
  3034. * src/DefaultBtContext.cc
  3035. * src/DefaultBtContext.h
  3036. * src/MultiDiskAdaptor.cc
  3037. * src/MultiDiskAdaptor.h
  3038. * src/MultiFileAllocationIterator.cc
  3039. * src/OptionHandlerFactory.cc
  3040. * src/OptionHandlerImpl.h
  3041. * src/Util.cc
  3042. * src/Util.h
  3043. * src/download_helper.cc
  3044. * src/prefs.cc
  3045. * src/prefs.h
  3046. * src/usage_text.h
  3047. * test/DefaultBtContextTest.cc
  3048. * test/MultiDiskAdaptorTest.cc
  3049. * test/MultiFileAllocationIteratorTest.cc
  3050. * test/UtilTest.cc
  3051. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Use Util::pathJoin()
  3053. * src/MetalinkParserController.cc
  3054. * test/test.xml
  3055. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3056. Use Util::pathJoin()
  3057. * src/DefaultBtContext.cc
  3058. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. Added Util::pathJoin()
  3060. * src/Util.h
  3061. * test/UtilTest.cc
  3062. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3063. Applied basename function to remove directory element in
  3064. content-disposition value.
  3065. Return empty string if content-disposition value is ".." or ".".
  3066. * src/Util.cc
  3067. * test/UtilTest.cc
  3068. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Added --max-overall-download-limit in man page.
  3070. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3071. * doc/aria2c.1.txt
  3072. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3073. Added --max-overall-download-limit option. Now --max-upload-limit
  3074. option is not ignored when --max-overall-upload-limit option has
  3075. non-zero value. aria2 checks download(upload) speed in the order:
  3076. first checks overall speed limit and if it is not exceeded, then
  3077. checks speed limit per download. Thus you can specify both
  3078. value. For example, set --max-overall-download-limit=1M and
  3079. --max-download-limit=500K to prevent from one download from eating
  3080. all overall speed limit.
  3081. * src/DefaultBtInteractive.cc
  3082. * src/DefaultBtInteractive.h
  3083. * src/DefaultBtMessageDispatcher.cc
  3084. * src/DefaultBtMessageDispatcher.h
  3085. * src/DownloadCommand.cc
  3086. * src/DownloadCommand.h
  3087. * src/FtpNegotiationCommand.cc
  3088. * src/HttpResponseCommand.cc
  3089. * src/OptionHandlerFactory.cc
  3090. * src/PeerInteractionCommand.cc
  3091. * src/RequestGroup.cc
  3092. * src/RequestGroup.h
  3093. * src/RequestGroupMan.cc
  3094. * src/RequestGroupMan.h
  3095. * src/prefs.cc
  3096. * src/prefs.h
  3097. * src/usage_text.h
  3098. * test/DefaultBtMessageDispatcherTest.cc
  3099. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3100. Documented select-file option in Input File section.
  3101. Documented --http-auth-challenge option.
  3102. * doc/aria2c.1.txt
  3103. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3104. Now select-file can be specified in the uri list(-i list).
  3105. * src/BtContext.cc
  3106. * src/BtContext.h
  3107. * src/RequestGroup.cc
  3108. * src/Sequence.h
  3109. * src/download_helper.cc
  3110. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Made the upper value of --max-concurrent-downloads options unlimited.
  3112. * src/OptionHandlerFactory.cc
  3113. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3114. Fixed the bug that disk writer is not created even if it shares
  3115. same piece with the preceding file if the length of previous file
  3116. is 0.
  3117. * src/MultiDiskAdaptor.cc
  3118. * test/MultiDiskAdaptorTest.cc
  3119. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3120. In BitTorrent, Open files in read-only mode for hash check. After
  3121. that, re-open file in read/write mode only when the download is
  3122. not finished.
  3123. * src/AbstractDiskWriter.cc
  3124. * src/AbstractDiskWriter.h
  3125. * src/AbstractSingleDiskAdaptor.cc
  3126. * src/AbstractSingleDiskAdaptor.h
  3127. * src/BtCheckIntegrityEntry.cc
  3128. * src/DiskAdaptor.h
  3129. * src/DiskWriter.h
  3130. * src/MultiDiskAdaptor.cc
  3131. * src/MultiDiskAdaptor.h
  3132. * src/RequestGroup.cc
  3133. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3134. Added --http-auth-challenge option. If it is set to true(by
  3135. default), aria2 sends HTTP authorization header only when it is
  3136. requested by the server. If false is set, then authorization
  3137. header is always sent to the server. This is useful for servers
  3138. that don't respond 401 code when authentication is required.
  3139. There is an exception: if username and password are embedded in
  3140. URI, authorization header is always sent to the server regardless
  3141. of this option.
  3142. * src/AuthConfigFactory.cc
  3143. * src/HttpSkipResponseCommand.cc
  3144. * src/OptionHandlerFactory.cc
  3145. * src/prefs.cc
  3146. * src/prefs.h
  3147. * src/usage_text.h
  3148. * test/AuthConfigFactoryTest.cc
  3149. * test/HttpRequestTest.cc
  3150. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3151. * Release 1.2.0
  3152. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3154. Thanks to all translators.
  3155. * po/es.po
  3156. * po/ja.po
  3157. * po/ru.po
  3158. * po/uk.po
  3159. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Call deleteSocketForReadCheck() before socket is closed.
  3161. * src/HttpListenCommand.cc
  3162. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3163. Defined virtual destructor for BObject.
  3164. * src/bencode.h
  3165. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Rewritten BDE to make it efficient.
  3167. * src/bencode.cc
  3168. * src/bencode.h
  3169. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Removed function throw list.
  3171. * src/bencode.cc
  3172. * src/bencode.h
  3173. * test/BencodeTest.cc
  3174. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3175. Enclosed all URLs in double quotes in command-line examples.
  3176. * doc/aria2c.1.txt
  3177. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Updated reference/see also section.
  3179. * README
  3180. * doc/aria2c.1.txt
  3181. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3182. Reorganized man page based on man man-pages.
  3183. * doc/aria2c.1.txt
  3184. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3185. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3186. because same documents are available in man page. Added
  3187. References section.
  3188. * README
  3189. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3190. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3191. PERFORMANCE PROFILE section.
  3192. * doc/aria2c.1.txt
  3193. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3194. Rewritten the section for configuration file.
  3195. * README
  3196. * doc/aria2c.1.txt
  3197. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3198. Fixed the segmentation fault during execution of choking algorithm
  3199. in leecher state because of broken compare operator
  3200. implementation.
  3201. * src/BtLeecherStateChoke.cc
  3202. * src/BtLeecherStateChoke.h
  3203. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3204. Open file in binary mode.
  3205. * src/CookieStorage.cc
  3206. * src/DHTSetup.cc
  3207. * src/DHTUtil.cc
  3208. * src/Netrc.cc
  3209. * src/NsCookieParser.cc
  3210. * src/ProtocolDetector.cc
  3211. * src/RequestGroupMan.cc
  3212. * src/Signature.cc
  3213. * src/bencode.cc
  3214. * src/download_helper.cc
  3215. * src/option_processing.cc
  3216. * test/CookieParserTest.cc
  3217. * test/DefaultBtProgressInfoFileTest.cc
  3218. * test/FileTest.cc
  3219. * test/GZipDecoderTest.cc
  3220. * test/RequestGroupManTest.cc
  3221. * test/SignatureTest.cc
  3222. * test/SingleFileAllocationIteratorTest.cc
  3223. * test/UriListParserTest.cc
  3224. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Removed operator[] because it is ambiguous with built-in []
  3226. operator.
  3227. * src/array_fun.h
  3228. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Fixed compile error
  3230. * src/OptionParser.cc
  3231. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Added missing call to arrayWrapperConst
  3233. * test/array_funTest.cc
  3234. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3235. Use array_wrapper instead of array_ptr.
  3236. * src/DHTRoutingTableDeserializer.cc
  3237. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3238. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3239. * src/array_fun.h
  3240. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3241. Added array_wrapper template.
  3242. * src/array_fun.h
  3243. * test/array_funTest.cc
  3244. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Use operator T* of array_ptr.
  3246. * src/OptionParser.cc
  3247. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Use localhost instead of 127.0.0.1
  3249. * test/FtpConnectionTest.cc
  3250. * test/MSEHandshakeTest.cc
  3251. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3252. Added operator T*
  3253. * src/array_fun.h
  3254. * test/array_funTest.cc
  3255. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Use dynamically allocated char array to detect memory access
  3257. violation.
  3258. * src/DHTRoutingTableDeserializer.cc
  3259. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3260. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3261. defined.
  3262. * src/PeerMessageUtil.cc
  3263. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3264. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3265. * configure.ac
  3266. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3267. Added a check to see struct sockaddr_in has sin_len member.
  3268. * configure.ac
  3269. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3270. Fixed buffer overrun.
  3271. * src/DHTRoutingTableDeserializer.cc
  3272. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3273. Added LL for long long int constant.
  3274. * test/FtpConnectionTest.cc
  3275. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3276. Casted to unsigned int to suppress compiler warning on netbsd.
  3277. * src/BtRuntime.h
  3278. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3279. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3280. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3281. type time_t.
  3282. * src/SimpleLogger.cc
  3283. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3284. Added test for FtpConnection::receiveSizeResponse().
  3285. * test/FtpConnectionTest.cc
  3286. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3287. Fix epoll error on the old kernel 2.6.8 or ealier.
  3288. * src/EpollEventPoll.cc
  3289. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3290. Use Util::parseLLInt instead of sscanf for portability. The
  3291. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3292. * src/FtpConnection.cc
  3293. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3294. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3295. block. It should not filter anything.
  3296. * src/BitfieldMan.cc
  3297. * src/ConsoleStatCalc.cc
  3298. * test/BitfieldManTest.cc
  3299. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Fixed the bug that the boolean options that don't take arguments
  3301. don't work.
  3302. * src/OptionHandlerImpl.h
  3303. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3304. Fixed broken selected file BitTorrent download.
  3305. * src/MultiDiskAdaptor.cc
  3306. * test/MultiDiskAdaptorTest.cc
  3307. * test/MultiFileAllocationIteratorTest.cc
  3308. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3309. Fixed #define guard for EpollEventPoll
  3310. * src/EpollEventPoll.h
  3311. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3312. Wait 2 seconds. 1 second is sometimes not enough.
  3313. * test/TimeSeedCriteriaTest.cc
  3314. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3315. Use localhost instead of 127.0.0.1.
  3316. * test/DHTConnectionImplTest.cc
  3317. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Suppressed compiler warning.
  3319. * src/AdaptiveURISelector.cc
  3320. * src/DefaultPieceStorage.cc
  3321. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3322. Defined virtual destructor.
  3323. * src/MetalinkParserState.h
  3324. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Give NULL for second argument of getaddrinfo instead of "0".
  3326. * src/NameResolver.cc
  3327. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3329. included strptime doesn't parse data for this format.
  3330. * src/FtpConnection.cc
  3331. * test/FtpConnectionTest.cc
  3332. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3333. Removed tests giving -1 for unsigned argument.
  3334. * test/SingleFileDownloadContextTest.cc
  3335. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3336. Don't use sha256 in tests because it might not be supported by the
  3337. SSL library.
  3338. * test/MetalinkProcessorTest.cc
  3339. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3340. Removed tests giving -1 for unsigned argument.
  3341. * test/AlphaNumberDecoratorTest
  3342. * test/BitfieldManTest.cc
  3343. * test/DefaultBtContextTest.cc
  3344. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3345. Fixed compile error without libcares when epoll is available.
  3346. * src/EpollEventPoll.cc
  3347. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3348. Included fstream instead of iostream.
  3349. * test/SignatureTest.cc
  3350. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3351. Removed #include <algorithm>
  3352. * test/RequestGroupTest.cc
  3353. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3354. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3355. using RequestGroup::extractURIResult().
  3356. * src/AdaptiveURISelector.cc
  3357. * src/RequestGroup.cc
  3358. * src/RequestGroup.h
  3359. * test/RequestGroupTest.cc
  3360. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3361. Added tests for array_ptr.
  3362. * test/array_funTest.cc
  3363. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3364. Don't send ip parameter to a tracker if ip parameter is empty
  3365. string.
  3366. * src/DefaultBtAnnounce.cc
  3367. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3368. Adjusted line feed.
  3369. * src/version_usage.cc
  3370. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Print tags, possible values when OptionHandlerException is caught.
  3372. * src/option_processing.cc
  3373. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Changed the message for FatalException.
  3375. * src/OptionParser.cc
  3376. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3377. Documented --bt-external-ip option in man page. Updated man pages
  3378. for --proxy-method option.
  3379. * doc/aria2c.1.txt
  3380. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3381. Use GET method for FTP via HTTP proxy.
  3382. * src/FtpInitiateConnectionCommand.cc
  3383. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3384. Changed the default value of --proxy-method option from 'tunnel'
  3385. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3386. option.
  3387. * src/AbstractCommand.cc
  3388. * src/AbstractCommand.h
  3389. * src/FtpInitiateConnectionCommand.cc
  3390. * src/HttpDownloadCommand.cc
  3391. * src/HttpInitiateConnectionCommand.cc
  3392. * src/HttpInitiateConnectionCommand.h
  3393. * src/OptionHandlerFactory.cc
  3394. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3395. Initialized _logger
  3396. * src/SelectEventPoll.cc
  3397. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3398. Defined a copy constructor for the same type.
  3399. * src/SharedHandle.h
  3400. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3401. Added OptionParser::parseArg() which internally uses getopt_long
  3402. to parse command-line options. All command-line options are now
  3403. configured by OptionHandler. No manual editing of struct option*
  3404. is required any more.
  3405. * src/NameMatchOptionHandler.h
  3406. * src/OptionHandler.h
  3407. * src/OptionHandlerFactory.cc
  3408. * src/OptionHandlerImpl.h
  3409. * src/OptionParser.cc
  3410. * src/OptionParser.h
  3411. * src/array_fun.h
  3412. * src/main.cc
  3413. * src/option_processing.cc
  3414. * test/OptionHandlerTest.cc
  3415. * test/OptionParserTest.cc
  3416. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3417. Fixed configure error with --disable-epoll
  3418. * configure.ac
  3419. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3420. Fixed compile error when HAVE_EPOLL is not defined.
  3421. Fixed linker error on bigendian systems.
  3422. * src/SocketCore.cc
  3423. * src/SocketCore.h
  3424. * test/DefaultBtProgressInfoFileTest.cc
  3425. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3426. Added --bt-external-ip option. You can specify the external IP
  3427. address to report to a BitTorrent tracker. Although this function
  3428. is named 'external', it can accept any kind of IP addresses.
  3429. * src/DefaultBtAnnounce.cc
  3430. * src/OptionHandlerFactory.cc
  3431. * src/option_processing.cc
  3432. * src/prefs.cc
  3433. * src/prefs.h
  3434. * src/usage_text.h
  3435. * test/DefaultBtAnnounceTest.cc
  3436. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3437. Extracted the algorithm to find the longest incremental sequence
  3438. as max_sequence template.
  3439. * src/LongestSequencePieceSelector.cc
  3440. * src/a2algo.h
  3441. * test/Makefile.am
  3442. * test/a2algoTest.cc
  3443. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3444. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3445. * src/usage_text.h
  3446. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3447. Updated doc for --uri-selector, --http-server-listen-port and
  3448. --enable-http-server option. Documented --event-poll option.
  3449. * doc/aria2c.1.txt
  3450. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3451. Updated doc for --enable-http-server.
  3452. * src/usage_text.h
  3453. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3454. Documented --http-server-listen-port and --enable-http-server in
  3455. man page.
  3456. * doc/aria2c.1.txt
  3457. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3459. translations. Thanks to all translators.
  3460. * po/es.po
  3461. * po/id.po
  3462. * po/it.po
  3463. * po/ru.po
  3464. * po/uk.po
  3465. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3466. Bump up version number to 1.2.0
  3467. * configure.ac
  3468. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. BtContext::getAnnounceTiers() now returns const reference.
  3470. * src/BtContext.h
  3471. * src/DefaultBtContext.cc
  3472. * src/DefaultBtContext.h
  3473. * test/MockBtContext.h
  3474. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3475. Change the number of retries for tracker request based on the
  3476. number of available tracker in a torrent file.
  3477. * src/TrackerWatcherCommand.cc
  3478. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3479. Added _maxTries property to RequestGroup and assign the option
  3480. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3481. RequestGroup::getMaxTries() instead of
  3482. Option::getAsInt(PREF_MAX_TRIES).
  3483. * src/AbstractCommand.cc
  3484. * src/RequestGroup.cc
  3485. * src/RequestGroup.h
  3486. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3487. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3488. Mandriva. I modified the patch: make RequestGroup have the
  3489. timeout value and AdaptiveURISelector directly modifies that
  3490. value.
  3491. * src/AbstractCommand.cc
  3492. * src/AdaptiveURISelector.cc
  3493. * src/AdaptiveURISelector.h
  3494. * src/FtpNegotiationCommand.cc
  3495. * src/RequestGroup.cc
  3496. * src/RequestGroup.h
  3497. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3498. Fixed compiler warning
  3499. * test/IteratableChecksumValidatorTest.cc
  3500. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3501. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3502. integrated downloads. This PieceSelector subclass finds the
  3503. longest continuous sequence in the available missing pieces and
  3504. selects the last index of such sequence. This makes HTTP/FTP
  3505. connections less interrupted by the pieces obtained by BitTorrent
  3506. peers.
  3507. * src/DefaultPieceStorage.cc
  3508. * src/DefaultPieceStorage.h
  3509. * src/LongestSequencePieceSelector.cc
  3510. * src/LongestSequencePieceSelector.h
  3511. * src/Makefile.am
  3512. * src/PieceSelector.h
  3513. * src/RarestPieceSelector.h
  3514. * src/RequestGroup.cc
  3515. * test/BtDependencyTest.cc
  3516. * test/DefaultPieceStorageTest.cc
  3517. * test/IteratableChecksumValidatorTest.cc
  3518. * test/LongestSequencePieceSelectorTest.cc
  3519. * test/Makefile.am
  3520. * test/SegmentManTest.cc
  3521. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Fixed the bug that the average speed is wrong in
  3523. http/ftp/BitTorrent integrated download. Only the download bytes
  3524. in BitTorrent were considered.
  3525. * src/RequestGroup.cc
  3526. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3527. Choose port for BitTorrent/DHT randomly from the specified range.
  3528. * src/DHTConnectionImpl.cc
  3529. * src/PeerListenCommand.cc
  3530. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3531. Send HTTP Authorization header only if it is requested by the
  3532. server(response 401). There are some exceptions. The authorization
  3533. header for proxy is always sent if it is available without request
  3534. by the server. If username/password is specified in the URI, it
  3535. is immediately sent to the server without request by the server.
  3536. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3537. SharedHandle<AuthConfig>().
  3538. NetrcAuthResolver::resolveAuthConfig() returns
  3539. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3540. * src/AbstractAuthResolver.cc
  3541. * src/AbstractProxyRequestCommand.cc
  3542. * src/AuthConfigFactory.cc
  3543. * src/AuthConfigFactory.h
  3544. * src/HttpConnection.cc
  3545. * src/HttpRequest.cc
  3546. * src/HttpRequest.h
  3547. * src/HttpResponse.cc
  3548. * src/HttpResponseCommand.cc
  3549. * src/HttpSkipResponseCommand.cc
  3550. * test/AuthConfigFactoryTest.cc
  3551. * test/HttpRequestTest.cc
  3552. * test/HttpResponseTest.cc
  3553. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3554. Remove leading "--" from help keyword and a substring after "="
  3555. from help keyword, so that one can query options by '-h--max-' or
  3556. '-hmax-peers=10'.
  3557. * src/option_processing.cc
  3558. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Rewritten PStringVisitor and its implementation.
  3560. * src/PStringBuildVisitor.cc
  3561. * src/PStringBuildVisitor.h
  3562. * src/PStringDatum.h
  3563. * src/PStringNumLoop.h
  3564. * src/PStringSegment.cc
  3565. * src/PStringSegment.h
  3566. * src/PStringSelect.h
  3567. * src/PStringVisitor.h
  3568. * src/download_helper.cc
  3569. * test/PStringBuildVisitorTest.cc
  3570. * test/ParameterizedStringParserTest.cc
  3571. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3572. Persist connection between the built-in HTTP server and a client
  3573. if a client supports keep-alive. Fixed the bug that aria2 exits
  3574. when the HTTP server receives EOF from a client.
  3575. * src/HttpServer.cc
  3576. * src/HttpServer.h
  3577. * src/HttpServerCommand.cc
  3578. * src/HttpServerCommand.h
  3579. * src/HttpServerResponseCommand.cc
  3580. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Added experimental built-in HTTP server. Currently, when a client
  3582. accesses to the server, it responds with the current download
  3583. progress. By default, it is disabled. To enable the server, give
  3584. --enable-http-server option. To change the default port number
  3585. for the server to listen to, use --http-server-listen-port option.
  3586. The response HTML is very simple and refreshes it self each 1
  3587. second. Because of this refresh, you see flicker in normal web
  3588. browser such as Firefox. I recommend to use console-based browser
  3589. such as elinks, w3m. To connect to the server, run 'elinks
  3590. http://localhost:6800/' while running aria2. Please replace port
  3591. number '6800'(which is default) with your preference.
  3592. * src/DownloadEngineFactory.cc
  3593. * src/HttpHeader.cc
  3594. * src/HttpHeader.h
  3595. * src/HttpHeaderProcessor.cc
  3596. * src/HttpHeaderProcessor.h
  3597. * src/HttpListenCommand.cc
  3598. * src/HttpListenCommand.h
  3599. * src/HttpServer.cc
  3600. * src/HttpServer.h
  3601. * src/HttpServerCommand.cc
  3602. * src/HttpServerCommand.h
  3603. * src/HttpServerResponseCommand.cc
  3604. * src/HttpServerResponseCommand.h
  3605. * src/Makefile.am
  3606. * src/OptionHandlerFactory.cc
  3607. * src/Util.cc
  3608. * src/Util.h
  3609. * src/help_tags.h
  3610. * src/option_processing.cc
  3611. * src/prefs.cc
  3612. * src/prefs.h
  3613. * src/usage_text.h
  3614. * test/HttpHeaderProcessorTest.cc
  3615. * test/UtilTest.cc
  3616. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3617. Removed.
  3618. * src/CheckIntegrityMan.cc
  3619. * src/FileAllocationMan.cc
  3620. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3621. Made (piece) hash check sequential for each RequestGroup because
  3622. simultaneous hash check is slower than sequential execution.
  3623. * src/CheckIntegrityCommand.cc
  3624. * src/CheckIntegrityDispatcherCommand.cc
  3625. * src/CheckIntegrityDispatcherCommand.h
  3626. * src/CheckIntegrityMan.h
  3627. * src/ConsoleStatCalc.cc
  3628. * src/DownloadCommand.cc
  3629. * src/DownloadEngine.cc
  3630. * src/DownloadEngine.h
  3631. * src/DownloadEngineFactory.cc
  3632. * src/Makefile.am
  3633. * src/Makefile.in
  3634. * src/RequestGroup.cc
  3635. * src/StatCalc.h
  3636. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3638. SequentialDispatcherCommand.
  3639. * src/FileAllocationDispatcherCommand.cc
  3640. * src/SequentialDispatcherCommand.h
  3641. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3642. Rewritten FileAllocationDispatcherCommand using brand new
  3643. SequentialDispatcherCommand.
  3644. * src/DownloadEngineFactory.cc
  3645. * src/FileAllocationCommand.cc
  3646. * src/FileAllocationDispatcherCommand.cc
  3647. * src/FileAllocationDispatcherCommand.h
  3648. * src/Makefile.am
  3649. * src/SequentialDispatcherCommand.h
  3650. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3651. Replaced FileAllocationMan with
  3652. SequentialPicker<FileAllocationEntry>.
  3653. * src/BtCheckIntegrityEntry.cc
  3654. * src/ConsoleStatCalc.cc
  3655. * src/DownloadEngine.cc
  3656. * src/DownloadEngine.h
  3657. * src/DownloadEngineFactory.cc
  3658. * src/FileAllocationCommand.cc
  3659. * src/FileAllocationDispatcherCommand.cc
  3660. * src/FileAllocationMan.h
  3661. * src/Makefile.am
  3662. * src/SequentialPicker.h
  3663. * src/StatCalc.h
  3664. * src/StreamCheckIntegrityEntry.cc
  3665. * test/Makefile.am
  3666. * test/SequentialPickerTest.cc
  3667. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Added doc for adaptive URI selector.
  3669. * doc/aria2c.1.txt
  3670. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Added doc for adaptive URI selector.
  3672. * src/usage_text.h
  3673. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Added doc for --bt-max-peers option.
  3675. * doc/aria2c.1.txt
  3676. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3677. Added doc for --bt-hash-check-seed option.
  3678. * doc/aria2c.1.txt
  3679. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3680. Documented exit codes.
  3681. * doc/aria2c.1.txt
  3682. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3683. Added --bt-max-peers option to specify the maximum number of peers
  3684. per torrent. 0 means unlimited number of peers.
  3685. * src/ActivePeerConnectionCommand.cc
  3686. * src/BtRuntime.h
  3687. * src/DefaultPeerStorage.cc
  3688. * src/DefaultPeerStorage.h
  3689. * src/OptionHandlerFactory.cc
  3690. * src/RequestGroup.cc
  3691. * src/option_processing.cc
  3692. * src/prefs.cc
  3693. * src/prefs.h
  3694. * src/usage_text.h
  3695. * test/DefaultPeerStorageTest.cc
  3696. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3697. Added --bt-hash-check-seed option. If true is given to this
  3698. option, after hash check using --check-integrity option and file
  3699. is complete, continue to seed file. If you want to check file and
  3700. download it only when it is damaged or incomplete, set this option
  3701. to false. This option has effect only on BitTorrent download.
  3702. The default value is true(This is the same behavior with the
  3703. previous release).
  3704. * src/BtCheckIntegrityEntry.cc
  3705. * src/OptionHandlerFactory.cc
  3706. * src/option_processing.cc
  3707. * src/prefs.cc
  3708. * src/prefs.h
  3709. * src/usage_text.h
  3710. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3711. Updated copyright year.
  3712. * src/version_usage.cc
  3713. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3714. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3715. * doc/aria2c.1.txt
  3716. * src/usage_text.h
  3717. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. Made the max value of split option unlimited.
  3719. * doc/aria2c.1.txt
  3720. * src/OptionHandlerFactory.cc
  3721. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3722. Fixed compile warning/error.
  3723. * src/DownloadResult.h
  3724. * src/HttpDownloadCommand.cc
  3725. * src/ServerStat.cc
  3726. * test/RequestGroupTest.cc
  3727. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3728. Added --event-poll option to select the method for polling events.
  3729. The available methods are "select" and "epoll". "epoll" is
  3730. available on Linux only. The earlier release has the compile
  3731. option to choose from these methods.
  3732. * configure.ac
  3733. * src/RequestGroupMan.cc
  3734. * src/OptionHandlerFactory.cc
  3735. * src/EpollEventPoll.h
  3736. * src/StreamFileAllocationEntry.cc
  3737. * src/a2io.h
  3738. * src/SelectEventPoll.h
  3739. * src/option_processing.cc
  3740. * src/prefs.h
  3741. * src/EpollEventPoll.cc
  3742. * src/EventPoll.h
  3743. * src/SocketCore.h
  3744. * src/Makefile.am
  3745. * src/main.cc
  3746. * src/DownloadEngine.h
  3747. * src/SelectEventPoll.cc
  3748. * src/DownloadEngine.cc
  3749. * src/SocketCore.cc
  3750. * src/DownloadEngineFactory.cc
  3751. * src/Makefile.in
  3752. * src/prefs.cc
  3753. * src/usage_text.h
  3754. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3755. Included RecoverableException.h from main.cc
  3756. * src/main.cc
  3757. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3759. now returns last error encountered in the HTTP/FTP downloads as a
  3760. exit status value. If all downloads finished successfully, aria2
  3761. returns 0. The error code is defined in src/DownloadResult.h.
  3762. The error occurred in the download currently in progress is not
  3763. reported as a last error. If no error has encountered but there
  3764. are in progress or waiting downloads, aria2 returns 7.
  3765. * src/AbstractCommand.cc
  3766. * src/DlAbortEx.h
  3767. * src/DlRetryEx.h
  3768. * src/DownloadCommand.cc
  3769. * src/DownloadFailureException.h
  3770. * src/DownloadResult.h
  3771. * src/FtpNegotiationCommand.cc
  3772. * src/HttpSkipResponseCommand.cc
  3773. * src/Makefile.am
  3774. * src/MultiUrlRequestInfo.cc
  3775. * src/MultiUrlRequestInfo.h
  3776. * src/RecoverableException.h
  3777. * src/RequestGroup.cc
  3778. * src/RequestGroup.h
  3779. * src/RequestGroupMan.cc
  3780. * src/RequestGroupMan.h
  3781. * src/URIResult.cc
  3782. * src/URIResult.h
  3783. * src/main.cc
  3784. * src/option_processing.cc
  3785. * test/RequestGroupTest.cc
  3786. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3787. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3788. patch adds AdaptiveURISelector, which selects one of the bests
  3789. mirrors for first and reserved connections. For supplementary
  3790. ones, it returns mirrors which has not been tested yet, and if
  3791. each of them already tested, returns mirrors which has to be
  3792. tested again. Otherwise, it doesn't return anymore mirrors.
  3793. * src/AdaptiveURISelector.cc
  3794. * src/AdaptiveURISelector.h
  3795. * src/FtpNegotiationCommand.cc
  3796. * src/HttpResponseCommand.cc
  3797. * src/Makefile.am
  3798. * src/Makefile.in
  3799. * src/OptionHandlerFactory.cc
  3800. * src/RequestGroup.cc
  3801. * src/RequestGroup.h
  3802. * src/RequestGroupMan.cc
  3803. * src/ServerStat.cc
  3804. * src/ServerStat.h
  3805. * src/ServerStatMan.cc
  3806. * src/SpeedCalc.cc
  3807. * src/URISelector.h
  3808. * src/prefs.cc
  3809. * src/prefs.h
  3810. * test/RequestGroupManTest.cc
  3811. * test/ServerStatManTest.cc
  3812. * test/ServerStatTest.cc
  3813. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3814. Fixed unit test error.
  3815. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3816. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3817. * Release 1.1.2
  3818. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Updated Russian translation. Thanks to the translators.
  3820. * po/ru.po
  3821. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. Added the description of --use-head option to man page.
  3823. * doc/aria2c.1.txt
  3824. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3825. Bump up version number to 1.1.2
  3826. * configure.ac
  3827. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3828. Added --use-head option to toggle whether HEAD method should be
  3829. used in the first HTTP request. By default aria2 uses HEAD method
  3830. as the first request. When the server doesn't recognize HEAD, then
  3831. give aria2 --use-head=false to force aria2 to use GET method
  3832. instead.
  3833. * src/OptionHandlerFactory.cc
  3834. * src/RequestGroupMan.cc
  3835. * src/option_processing.cc
  3836. * src/prefs.cc
  3837. * src/prefs.h
  3838. * src/usage_text.h
  3839. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3840. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3841. message is received before CHOKE message. The old implementation
  3842. doen't clear the use-bit of the piece when recieved REJECT
  3843. message.
  3844. * src/DefaultBtMessageDispatcher.cc
  3845. * test/DefaultBtMessageDispatcherTest.cc
  3846. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. * Release 1.1.1
  3848. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3849. Bump up version number to 1.1.1.
  3850. * configure.ac
  3851. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3852. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3853. is printed repeatedly.
  3854. * src/ConsoleStatCalc.cc
  3855. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3856. * Release 1.1.0
  3857. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3858. Added ifdef clause for conditional compilation.
  3859. * src/main.cc
  3860. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3862. translations. Thanks to all translators.
  3863. * po/ja.po
  3864. * po/ru.po
  3865. * po/uk.po
  3866. * po/zh_CN.po
  3867. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. Added the preceding ">>> " before the message "Printing the
  3869. contents of file..." to make the output more readable.
  3870. * src/main.cc
  3871. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. Added try-catch block in the loop in showFiles() to continue the
  3873. operation even if the exception occurred in one file.
  3874. * src/main.cc (showFiles)
  3875. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3876. Made messages in showFiles() translatable.
  3877. * po/aria2.pot
  3878. * src/main.cc
  3879. * src/message.h
  3880. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Print the contents of Torrent/Metalink files are printed without
  3882. -T/-M options.
  3883. * src/main.cc
  3884. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3885. Escaped '--' with '\--'
  3886. * README
  3887. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3888. Updated "How to build" section in README. Mentioned about
  3889. --with-ca-bundle compile option.
  3890. * README
  3891. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3892. Bump up version number to 1.1.0.
  3893. * configure.ac
  3894. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3895. Added a note for --dht-listen-port option.
  3896. * doc/aria2c.1.txt
  3897. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3898. Update doc for --realtime-chunk-checksum option.
  3899. * doc/aria2c.1.txt
  3900. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3901. Update doc for --realtime-chunk-checksum option.
  3902. * src/usage_text.h
  3903. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Updated French, Japanese, Russian and Ukrainian translations.
  3905. Thanks to all translators.
  3906. * po/fr.po
  3907. * po/ja.po
  3908. * po/ru.po
  3909. * po/uk.po
  3910. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3911. Renamed aria2c.pot to aria2.pot
  3912. * po/aria2.pot
  3913. * po/aria2c.pot: Removed.
  3914. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Removed MetaEntry.h
  3916. * src/Makefile.am
  3917. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. Rename file by appending digits if a local file exists and its
  3919. file size is larger than that of remote file with --continue
  3920. option. The old implementation just throws exception in such case.
  3921. * src/RequestGroup.cc
  3922. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Fixed the bug that download progress summary is not printed in the
  3924. interval specified by the option.
  3925. * src/ConsoleStatCalc.cc
  3926. * src/ConsoleStatCalc.h
  3927. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Fixed compiler warning
  3929. * src/Cookie.cc
  3930. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Fixed the cookie implementation based on RFC2965.
  3932. Now if a value in domain field is not started with dot, then
  3933. prepend dot. That means a cookie with domain=sf.net is sent to
  3934. wiki.sf.net.
  3935. * src/Cookie.cc
  3936. * test/CookieParserTest.cc
  3937. * test/CookieStorageTest.cc
  3938. * test/CookieTest.cc
  3939. * test/NsCookieParserTest.cc
  3940. * test/Sqlite3MozCookieParserTest.cc
  3941. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3942. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3943. is enabled and the server doesn't support keep-alive.
  3944. * src/AbstractCommand.cc
  3945. * src/DownloadCommand.cc
  3946. * src/HttpDownloadCommand.cc
  3947. * src/HttpDownloadCommand.h
  3948. * src/HttpResponseCommand.cc
  3949. * src/Request.cc
  3950. * src/Request.h
  3951. * test/RequestTest.cc
  3952. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3953. Removed Dictionary/List/Data and its related classes.
  3954. * src/BencodeVisitor.cc: Removed.
  3955. * src/BencodeVisitor.h: Removed.
  3956. * src/Data.cc: Removed.
  3957. * src/Data.h: Removed.
  3958. * src/Dictionary.cc: Removed.
  3959. * src/Dictionary.h: Removed.
  3960. * src/List.cc: Removed.
  3961. * src/List.h: Removed.
  3962. * src/Makefile.am
  3963. * src/MetaEntry.h: Removed.
  3964. * src/MetaEntryVisitor.h: Removed.
  3965. * src/MetaFileUtil.cc: Removed.
  3966. * src/MetaFileUtil.h: Removed.
  3967. * test/BencodeVisitorTest.cc: Removed.
  3968. * test/DataTest.cc: Removed.
  3969. * test/DictionaryTest.cc: Removed.
  3970. * test/ListTest.cc: Removed.
  3971. * test/Makefile.am
  3972. * test/MetaFileUtilTest.cc: Removed.
  3973. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3974. Removed include of MetaEntry.h
  3975. * test/DHTMessageTrackerEntryTest.cc
  3976. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Use BDE instead of Dictionary/List/Data.
  3978. * src/AnnounceList.cc
  3979. * src/AnnounceList.h
  3980. * test/AnnounceListTest.cc
  3981. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3982. Use BDE instead of Dictionary/List/Data.
  3983. * src/DHTAbstractMessage.cc
  3984. * src/DHTAbstractMessage.h
  3985. * src/DHTAnnouncePeerMessage.cc
  3986. * src/DHTAnnouncePeerMessage.h
  3987. * src/DHTAnnouncePeerReplyMessage.cc
  3988. * src/DHTAnnouncePeerReplyMessage.h
  3989. * src/DHTFindNodeMessage.cc
  3990. * src/DHTFindNodeMessage.h
  3991. * src/DHTFindNodeReplyMessage.cc
  3992. * src/DHTFindNodeReplyMessage.h
  3993. * src/DHTGetPeersMessage.cc
  3994. * src/DHTGetPeersMessage.h
  3995. * src/DHTGetPeersReplyMessage.cc
  3996. * src/DHTGetPeersReplyMessage.h
  3997. * src/DHTMessageFactory.h
  3998. * src/DHTMessageFactoryImpl.cc
  3999. * src/DHTMessageFactoryImpl.h
  4000. * src/DHTMessageReceiver.cc
  4001. * src/DHTMessageTracker.cc
  4002. * src/DHTMessageTracker.h
  4003. * src/DHTPingMessage.cc
  4004. * src/DHTPingMessage.h
  4005. * src/DHTPingReplyMessage.cc
  4006. * src/DHTPingReplyMessage.h
  4007. * src/DHTQueryMessage.cc
  4008. * src/DHTQueryMessage.h
  4009. * src/DHTResponseMessage.cc
  4010. * src/DHTResponseMessage.h
  4011. * test/DHTAnnouncePeerMessageTest.cc
  4012. * test/DHTAnnouncePeerReplyMessageTest.cc
  4013. * test/DHTFindNodeMessageTest.cc
  4014. * test/DHTFindNodeReplyMessageTest.cc
  4015. * test/DHTGetPeersMessageTest.cc
  4016. * test/DHTGetPeersReplyMessageTest.cc
  4017. * test/DHTMessageFactoryImplTest.cc
  4018. * test/DHTMessageTrackerTest.cc
  4019. * test/DHTPingMessageTest.cc
  4020. * test/DHTPingReplyMessageTest.cc
  4021. * test/MockDHTMessageFactory.h
  4022. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4023. Added tests the case where length < 0 is specified.
  4024. * test/BencodeTest.cc
  4025. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4026. Fixed memory leak in decoderawstring()
  4027. * src/bencode.cc
  4028. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4029. Added missing #ifdef guard. Added uc() function for String and
  4030. removeKey() for Dict.
  4031. * src/bencode.cc
  4032. * src/bencode.h
  4033. * test/BencodeTest.cc
  4034. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4035. Use BDE instead of Dictionary/List/Data.
  4036. * src/HandshakeExtensionMessage.cc
  4037. * src/HandshakeExtensionMessage.h
  4038. * test/HandshakeExtensionMessageTest.cc
  4039. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Added --max-overall-upload-limit option. This option limits the
  4041. overall upload speed. Stated in help message that the existing
  4042. --max-upload-limit option limits the upload speed per each
  4043. torrent. Man page is also updated.
  4044. * doc/aria2c.1.txt
  4045. * src/DefaultBtMessageDispatcher.cc
  4046. * src/DefaultBtMessageDispatcher.h
  4047. * src/OptionHandlerFactory.cc
  4048. * src/PeerInteractionCommand.cc
  4049. * src/option_processing.cc
  4050. * src/prefs.cc
  4051. * src/prefs.h
  4052. * src/usage_text.h
  4053. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4054. Use BDE instead of Dictionary/List/Data classes.
  4055. * src/CompactPeerListProcessor.cc
  4056. * src/CompactPeerListProcessor.h
  4057. * src/DefaultBtAnnounce.cc
  4058. * src/DefaultBtContext.cc
  4059. * src/DefaultBtContext.h
  4060. * src/DefaultPeerListProcessor.cc
  4061. * src/DefaultPeerListProcessor.h
  4062. * src/DelegatingPeerListProcessor.cc
  4063. * src/DelegatingPeerListProcessor.h
  4064. * src/PeerListProcessor.h
  4065. * src/UTPexExtensionMessage.cc
  4066. * src/Util.h
  4067. * src/message.h
  4068. * test/DefaultBtContextTest.cc
  4069. * test/DefaultPeerListProcessorTest.cc
  4070. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4071. Added bencode helper functions and BDE class.
  4072. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4073. * src/Makefile.am
  4074. * src/bencode.cc
  4075. * src/bencode.h
  4076. * test/BencodeTest.cc
  4077. * test/Makefile.am
  4078. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4079. Fixed the bug that bad URI is sent to the tracker when the announe
  4080. URI in torrent file includes query.
  4081. * src/DefaultBtAnnounce.cc
  4082. * test/DefaultBtAnnounceTest.cc
  4083. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4084. Added Option::blank().
  4085. Use !Option::blank(name) instead of Option::defined(name) for
  4086. the options that take filename.
  4087. * src/MultiUrlRequestInfo.cc
  4088. * src/Option.cc
  4089. * src/Option.h
  4090. * src/main.cc
  4091. * src/option_processing.cc
  4092. * test/OptionTest.cc
  4093. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Documented the default value of --check-certificate option in man
  4095. page.
  4096. * doc/aria2c.1.txt
  4097. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4098. Enabled --check-certificate by default. Added compile
  4099. time(configure) option --with-ca-bundle to specify CA bundle.
  4100. Warn if --check-certificate=true and --ca-certificate is not
  4101. specified or loading CA certificate is failed.
  4102. * configure.ac
  4103. * src/MultiUrlRequestInfo.cc
  4104. * src/OptionHandlerFactory.cc
  4105. * src/message.h
  4106. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4107. Mentioned https tag in help option.
  4108. * doc/aria2c.1.txt
  4109. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4110. Added `https' tag to help option category. Added https tag to
  4111. --ca-certificate, --certificate, --check-certificate and
  4112. --private-key option.
  4113. * src/OptionHandlerFactory.cc
  4114. * src/help_tags.h
  4115. * src/option_processing.cc
  4116. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4117. Changed the package name from `aria2c' to `aria2' in order to fix
  4118. the packaging issue in Debian and Fedora. The name of the
  4119. executable is not changed.
  4120. * configure.ac
  4121. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Fixed typos
  4123. * src/usage_text.h
  4124. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Fixed typos and updated doc.
  4126. * README
  4127. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4128. Fixed typos
  4129. * doc/aria2c.1.txt
  4130. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4131. Fixed typos
  4132. * src/usage_text.h
  4133. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4134. Print a message when no files to download.
  4135. * src/download_helper.cc
  4136. * src/main.cc
  4137. * src/message.h
  4138. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4139. RFC3986 complied Percent-Encoding(urlencode).
  4140. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4141. ones.
  4142. * src/Request.cc
  4143. * src/Util.cc
  4144. * src/Util.h
  4145. * test/BtHandshakeMessageTest.cc
  4146. * test/DefaultBtAnnounceTest.cc
  4147. * test/DefaultBtContextTest.cc
  4148. * test/RequestTest.cc
  4149. * test/UtilTest.cc
  4150. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4151. Fixed the bug that prevents aria2 from downloading 0-length files
  4152. via HTTP/FTP.
  4153. * src/DefaultBtContext.cc
  4154. * src/DefaultBtContext.h
  4155. * src/DownloadContext.h
  4156. * src/FtpNegotiationCommand.cc
  4157. * src/HttpResponseCommand.cc
  4158. * src/HttpResponseCommand.h
  4159. * src/RequestGroup.cc
  4160. * src/SingleFileDownloadContext.cc
  4161. * src/SingleFileDownloadContext.h
  4162. * test/BtPostDownloadHandlerTest.cc
  4163. * test/MetalinkPostDownloadHandlerTest.cc
  4164. * test/MockBtContext.h
  4165. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4166. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4167. * src/option_processing.cc
  4168. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4169. Applied aria2-1.0.1-mingw.patch.
  4170. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4171. mingw.
  4172. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4173. * src/SocketCore.cc
  4174. * src/a2netcompat.h
  4175. * test/SocketCoreTest.cc
  4176. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4177. * Release 1.0.1
  4178. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4179. Updated Ukrainian and Norwegian Nynorsk translations.
  4180. Thanks to all translators.
  4181. * po/nn.po
  4182. * po/uk.po
  4183. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4184. Don't show download result when -S option is used.
  4185. * src/main.cc
  4186. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4187. Bump up version number to 1.0.1
  4188. * configure.ac
  4189. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4190. Closed files after the test cases in MultiDiskWriterTest::
  4191. testResetDiskWriterEntries(). This will fix the unit test error
  4192. in mingw32 build.
  4193. * test/MultiDiskWriterTest.cc
  4194. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4195. Use HEAD method to get file size from HTTP server for segmented
  4196. downloading.
  4197. The request to the BitTorrent Tracker always uses GET method because
  4198. the response of the tracker is small and it doesn't need segmented
  4199. download.
  4200. * src/FtpNegotiationCommand.cc
  4201. * src/HttpRequest.cc
  4202. * src/HttpResponseCommand.cc
  4203. * src/HttpSkipResponseCommand.cc
  4204. * src/RequestGroup.cc
  4205. * src/RequestGroup.h
  4206. * src/TrackerWatcherCommand.cc
  4207. * test/HttpRequestTest.cc
  4208. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4209. Fixed the bug that causes floating exception when -T option is used and
  4210. no URIs are given.
  4211. * src/download_helper.cc
  4212. * test/DownloadHelperTest.cc
  4213. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4214. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4215. errors in MinGW:
  4216. Closed file after saving server stats (RequestGroupMan.cc)
  4217. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4218. Ignored case & handled 2-digit years (strptime.c)
  4219. Added missing suseconds_t definition (a2time.h)
  4220. Fixed socket CLOSE() define (SocketCore.cc)
  4221. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4222. Changed utime() test values from x000 to x00000 as MinGW failed on
  4223. values less than timezone offset from Unix epoch
  4224. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4225. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4226. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4227. handle negative dates (CookieParserTest.cc)
  4228. * src/a2time.h
  4229. * src/FtpConnection.cc
  4230. * src/RequestGroupMan.cc
  4231. * src/SocketCore.cc
  4232. * src/strptime.c
  4233. * test/CookieParserTest.cc
  4234. * test/CopyDiskAdaptorTest.cc
  4235. * test/FileTest.cc
  4236. * test/FtpConnectionTest.cc
  4237. * test/MultiDiskAdaptorTest.cc
  4238. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4239. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4240. * doc/aria2c.1.txt
  4241. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4242. * Release 1.0.0
  4243. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Added '~' to reserved characters.
  4245. * src/Util.cc
  4246. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4247. Do not urlencode Request::url in setUrl() because we want unmodified
  4248. URL using Request::getUrl()
  4249. * src/Request.cc
  4250. * src/Request.h
  4251. * test/RequestTest.cc
  4252. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4253. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4254. Thanks to all translators.
  4255. * po/bg.po
  4256. * po/fr.po
  4257. * po/ja.po
  4258. * po/ru.po
  4259. * po/uk.po
  4260. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4261. Bump up version number to 1.0.0
  4262. * configure.ac
  4263. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4264. Added nosqlite3 build to build_test.sh.
  4265. Renamed noxml as expat.
  4266. * build_test.sh
  4267. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4268. Updated INPUT FILE section.
  4269. * doc/aria2c.1.txt
  4270. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4271. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4272. on big endian systems because test .aria2 files are made for little
  4273. endian systems.
  4274. * test/DefaultBtProgressInfoFileTest.cc
  4275. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4276. Dropped ares support.
  4277. * README
  4278. * configure.ac
  4279. * m4/libares.m4: Removed.
  4280. * src/AsyncNameResolver.cc
  4281. * src/Makefile.am
  4282. * test/Makefile.am
  4283. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4284. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4285. Removed const qualifier from DiskWriter::size().
  4286. * src/AbstractDiskWriter.cc
  4287. * src/AbstractDiskWriter.h
  4288. * src/ByteArrayDiskWriter.cc
  4289. * src/ByteArrayDiskWriter.h
  4290. * src/DiskWriter.h
  4291. * test/ByteArrayDiskWriterTest.cc
  4292. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4293. Fixed the bug that causes segmentation fault/bus error during executing
  4294. choking algorithm while seeding. This is caused by improper
  4295. implementation of compare function which returns inconsistent results
  4296. depending on the timing of last unchoke.
  4297. * src/BtSeederStateChoke.cc
  4298. * src/BtSeederStateChoke.h
  4299. * src/DefaultPeerStorage.cc
  4300. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4301. Removed TODO
  4302. * TODO
  4303. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4304. Added a section that explains how to pass argument to options that
  4305. takes optional arguments with its short form.
  4306. * doc/aria2c.1.txt
  4307. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4308. Added -u for the short form of --max-upload-limit option.
  4309. * doc/aria2c.1.txt
  4310. * src/option_processing.cc
  4311. * src/usage_text.h
  4312. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4313. Added -V for the short form of --check-integrity option.
  4314. Now the argument of --check-integrity option is optional:
  4315. if it is omitted, it is evaluated as true.
  4316. * doc/aria2c.1.txt
  4317. * src/option_processing.cc
  4318. * src/usage_text.h
  4319. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4320. Made the default value of --ftp-pasv option set to true and it can take
  4321. true/false values.
  4322. * src/OptionHandlerFactory.cc
  4323. * src/option_processing.cc
  4324. * src/usage_text.h
  4325. * doc/aria2c.1.txt
  4326. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4327. Given custom random number generator to std::random_shuffle.
  4328. * src/AnnounceList.cc
  4329. * src/BtLeecherStateChoke.cc
  4330. * src/BtSeederStateChoke.cc
  4331. * src/DefaultBtRequestFactory.cc
  4332. * src/MetalinkEntry.cc
  4333. * src/RarestPieceSelector.cc
  4334. * src/SimpleRandomizer.cc
  4335. * src/SimpleRandomizer.h
  4336. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Now the default value of --enable-direct-io is true.
  4338. * src/OptionHandlerFactory.cc
  4339. * doc/aria2c.1.txt
  4340. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4341. Erase peer before executing onReturningPeer and onErasingPeer
  4342. because choking algorithm called from onReturningPeer doesn't
  4343. like erasing peer in the active peer list.
  4344. * src/DefaultPeerStorage.cc
  4345. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4346. Instead of creating special filename in createDownloadResult() if
  4347. inMemoryDownload() is true, now it is done in getFilePath().
  4348. * src/RequestGroup.cc
  4349. * test/RequestGroupTest.cc
  4350. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4351. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4352. processed in memory. This is the fix for previous comment out.
  4353. * src/MemoryBufferPreDownloadHandler.cc
  4354. * src/RequestGroup.cc
  4355. * src/RequestGroup.h
  4356. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4357. Commented out the code which sets virtual directory path "[MEMORY]"
  4358. propagate directory to store to following RequestGroup.
  4359. * src/MemoryBufferPreDownloadHandler.cc
  4360. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4361. Bump up version number to 1.0.0b
  4362. * configure.ac
  4363. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4364. Added input_uris.txt to EXTRA_DIST
  4365. * test/Makefile.am
  4366. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4367. Removed PeerObject.h from Makefile.am
  4368. * src/Makefile.am
  4369. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4370. Avoid slow seeding
  4371. * src/PeerInteractionCommand.cc
  4372. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4373. Updated usage for -i option.
  4374. * src/usage_text.h (TEXT_INPUT_FILE)
  4375. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4376. Added INPUT FILE section to man page.
  4377. Escaped fake URLs.
  4378. * doc/aria2c.1.txt
  4379. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. Fixed wrong note position for -o option.
  4381. * doc/aria2c.1.txt
  4382. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4383. Fixed compile error without SSL/XML library.
  4384. * src/DefaultBtProgressInfoFile.cc
  4385. * src/DefaultBtProgressInfoFile.h
  4386. * src/FileMetalinkParserState.cc
  4387. * src/RequestGroup.h
  4388. * src/SocketCore.cc
  4389. * src/SocketCore.h
  4390. * src/VerificationMetalinkParserState.cc
  4391. * src/download_helper.h
  4392. * src/main.cc
  4393. * test/DefaultBtProgressInfoFileTest.cc
  4394. * test/DownloadHelperTest.cc
  4395. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4396. Rewritten URI handling functions. They are now provided as a testable
  4397. functions.
  4398. * src/Makefile.am
  4399. * src/RequestGroup.cc
  4400. * src/RequestGroup.h
  4401. * src/download_helper.cc
  4402. * src/download_helper.h
  4403. * src/main.cc
  4404. * test/DownloadHelperTest.cc
  4405. * test/Makefile.am
  4406. * test/input_uris.txt
  4407. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4408. Quickly terminate commands when ctrl-c is pressed.
  4409. * src/DownloadEngine.cc
  4410. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4411. Quickly terminate idle commands when download finished.
  4412. * src/AbstractCommand.cc
  4413. * src/DownloadCommand.cc
  4414. * src/DownloadEngine.cc
  4415. * src/DownloadEngine.h
  4416. * src/SleepCommand.cc
  4417. * src/SleepCommand.h
  4418. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4419. Added the ability to specify output filename and directory in input
  4420. file.
  4421. Additional parameters are added in the following line of URIs
  4422. with proceeding white space(s), 1 parameter in 1 line.
  4423. The parameter names are the same with the command-line option name
  4424. without proceeding "--". Not all the options are available here:
  4425. at the moment, 'dir' and 'out' options are avialable.
  4426. Please note that out option has no effect against Metalink or BitTorrent
  4427. downloads.
  4428. Example input file:
  4429. http://host/foo-1.1.tar.bz2
  4430. out=foo.tar.bz2
  4431. dir=/tmp/downloads
  4432. http://host/thundermonkey-2.0.tar.bz2
  4433. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4434. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4435. thundermonkey-2.0.tar.bz2 is saved as
  4436. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4437. * src/BtPostDownloadHandler.cc
  4438. * src/Metalink2RequestGroup.cc
  4439. * src/Metalink2RequestGroup.h
  4440. * src/MetalinkPostDownloadHandler.cc
  4441. * src/UriListParser.cc
  4442. * src/UriListParser.h
  4443. * src/main.cc
  4444. * test/Metalink2RequestGroupTest.cc
  4445. * test/UriListParserTest.cc
  4446. * test/filelist1.txt
  4447. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4448. Fixed error when SSL library is not found.
  4449. * configure.ac
  4450. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4451. Cross referenced among -s, -C and -j options.
  4452. Updated usage of -C and -s options.
  4453. * src/usage_text.h
  4454. * doc/aria2c.1.txt
  4455. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Fixed bad cast in 32bit platforms.
  4457. * test/DefaultPieceStorageTest.cc
  4458. (DefaultPieceStorageTest::testGetCompletedLength)
  4459. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Fixed unit test fails on 32bit platforms.
  4461. * test/CookieParserTest.cc
  4462. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Show an average download speed in Download results.
  4464. * src/BtFileAllocationEntry.cc
  4465. * src/DefaultPieceStorage.cc
  4466. * src/DownloadContext.cc
  4467. * src/DownloadContext.h
  4468. * src/DownloadResult.h
  4469. * src/RequestGroup.cc
  4470. * src/RequestGroupMan.cc
  4471. * src/StreamFileAllocationEntry.cc
  4472. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4473. Fixed the bug that metalink file is not processed if Content-Type
  4474. field has a paramter.
  4475. * src/HttpResponse.cc
  4476. * src/HttpResponse.h
  4477. * test/HttpResponseTest.cc
  4478. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4479. Removed unused code.
  4480. * src/DefaultBtAnnounce.cc
  4481. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4483. the value larger than DefaultPieceStorage::getTotalLength() when
  4484. in flight pieces are involved.
  4485. * src/DefaultPieceStorage.cc
  4486. * test/DefaultPieceStorageTest.cc
  4487. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Bump up version number to 1.0.0a.
  4489. * configure.ac
  4490. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Updated configure.ac
  4492. * configure.ac
  4493. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4494. Added usege for proxy.
  4495. * doc/aria2c.1.txt
  4496. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4497. Added usage for --ca-certificate, --certificate, --private-key and
  4498. --check-certificate options.
  4499. * doc/aria2c.1.txt
  4500. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4501. Updated man page
  4502. * doc/aria2c.1.txt
  4503. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4504. Added --no-proxy option. It receives comman separated hostname or
  4505. domains to which proxy should not be used.
  4506. aria2 honors the environment variable no_proxy to override no-proxy
  4507. value in configuration file. The user can override the environment
  4508. variable no_proxy with --no-proxy command-line option.
  4509. * src/AbstractCommand.cc
  4510. * src/OptionHandlerFactory.cc
  4511. * src/option_processing.cc
  4512. * src/prefs.cc
  4513. * src/prefs.h
  4514. * src/usage_text.h
  4515. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4516. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4517. The CA certificates are specified in --ca-certificate option.
  4518. By default, the verification is disabled. Use --check-certificate
  4519. option to enable it.
  4520. * src/HttpRequestCommand.cc
  4521. * src/LibgnutlsTLSContext.cc
  4522. * src/LibgnutlsTLSContext.h
  4523. * src/LibsslTLSContext.cc
  4524. * src/LibsslTLSContext.h
  4525. * src/MultiUrlRequestInfo.cc
  4526. * src/OptionHandlerFactory.cc
  4527. * src/SocketCore.cc
  4528. * src/SocketCore.h
  4529. * src/a2functional.h
  4530. * src/message.h
  4531. * src/option_processing.cc
  4532. * src/prefs.cc
  4533. * src/prefs.h
  4534. * src/usage_text.h
  4535. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. Added client certificate authentication for SSL/TLS.
  4537. Currently a private key must be decrypted for use with aria2.
  4538. If a user accidentally gives encrypted file to aria2 then following
  4539. thing happens:
  4540. If encrypted private key is given to aria2, it behaves differently
  4541. depending on the ssl library it uses. If aria2 built with openssl then
  4542. openssl prompts the user for password. If aria2 build with gnutls then
  4543. aria2 exists with error at start up.
  4544. * src/DownloadEngineFactory.cc
  4545. * src/MultiUrlRequestInfo.cc
  4546. * src/OptionHandlerFactory.cc
  4547. * src/option_processing.cc
  4548. * src/prefs.cc
  4549. * src/prefs.h
  4550. * src/usage_text.h
  4551. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4552. Introduced TLSContext that holds TLS related data that can be shared
  4553. with multiple SSL connections.
  4554. * src/DownloadEngineFactory.cc
  4555. * src/LibgnutlsTLSContext.cc
  4556. * src/LibgnutlsTLSContext.h
  4557. * src/LibsslTLSContext.cc
  4558. * src/LibsslTLSContext.h
  4559. * src/Makefile.am
  4560. * src/SocketCore.cc
  4561. * src/SocketCore.h
  4562. * src/TLSContext.h
  4563. * src/message.h
  4564. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. Fixed the bug that the DiskWriter of the first FileEntry whose
  4566. `needsFileAllocation' property is false is not created
  4567. even if it shares a piece with next FileEntry which `requested' property
  4568. is true.
  4569. Fixed the bug that zero-length file is not created if pre file
  4570. allocation is not done.
  4571. * src/MultiDiskAdaptor.cc
  4572. * src/MultiDiskAdaptor.h
  4573. * test/MultiDiskAdaptorTest.cc
  4574. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4575. Added the ability to pool proxy connection.
  4576. The conneciton in FTP with proxy-method=GET is not pooled.
  4577. Proxy-Connection header will not be sent when sending CONNECT method.
  4578. * src/DownloadEngine.cc
  4579. * src/DownloadEngine.h
  4580. * src/FtpFinishDownloadCommand.cc
  4581. * src/FtpInitiateConnectionCommand.cc
  4582. * src/FtpNegotiationCommand.cc
  4583. * src/HttpDownloadCommand.cc
  4584. * src/HttpInitiateConnectionCommand.cc
  4585. * src/HttpRequest.cc
  4586. * src/HttpRequest.h
  4587. * src/HttpResponse.cc
  4588. * src/HttpSkipResponseCommand.cc
  4589. * test/HttpRequestTest.cc
  4590. * test/HttpResponseTest.cc
  4591. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4592. Handle date before epoch.
  4593. To create *bad* Time object, call Time::null().
  4594. * src/CookieParser.cc
  4595. * src/FtpConnection.cc
  4596. * src/FtpConnection.h
  4597. * src/FtpNegotiationCommand.cc
  4598. * src/RequestGroup.cc
  4599. * src/TimeA2.cc
  4600. * src/TimeA2.h
  4601. * test/CookieParserTest.cc
  4602. * test/FtpConnectionTest.cc
  4603. * test/TimeTest.cc
  4604. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Added support for following envrionment variables: http_proxy,
  4606. https_proxy, ftp_proxy and all_proxy.
  4607. Each variable is equivalent to the aria2 option whose name is the
  4608. variable name with '_' replaced with '-'.
  4609. They overrides options specified in aria2.conf file.
  4610. The envrionment variables can be overrode using command-line option.
  4611. * src/option_processing.cc
  4612. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4613. Renamed --http-proxy-method as --proxy-method.
  4614. * src/AbstractCommand.cc
  4615. * src/FtpInitiateConnectionCommand.cc
  4616. * src/HttpInitiateConnectionCommand.cc
  4617. * src/OptionHandlerFactory.cc
  4618. * src/option_processing.cc
  4619. * src/prefs.cc
  4620. * src/prefs.h
  4621. * src/usage_text.h
  4622. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4623. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4624. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4625. Above 3 options and --http-proxy option can handle proxy in URL format
  4626. like: http://user:passwd@host:port.
  4627. If a proxy requires user/password, they must be specified in a URL.
  4628. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4629. instead.
  4630. * src/AbstractCommand.cc
  4631. * src/AbstractCommand.h
  4632. * src/AbstractProxyRequestCommand.cc
  4633. * src/AbstractProxyRequestCommand.h
  4634. * src/AuthConfigFactory.cc
  4635. * src/AuthConfigFactory.h
  4636. * src/FtpFinishDownloadCommand.cc
  4637. * src/FtpInitiateConnectionCommand.cc
  4638. * src/FtpInitiateConnectionCommand.h
  4639. * src/FtpNegotiationCommand.cc
  4640. * src/FtpTunnelRequestCommand.cc
  4641. * src/FtpTunnelRequestCommand.h
  4642. * src/HttpDownloadCommand.cc
  4643. * src/HttpInitiateConnectionCommand.cc
  4644. * src/HttpInitiateConnectionCommand.h
  4645. * src/HttpProxyRequestCommand.cc
  4646. * src/HttpProxyRequestCommand.h
  4647. * src/HttpRequest.cc
  4648. * src/HttpRequest.h
  4649. * src/HttpRequestCommand.cc
  4650. * src/HttpRequestCommand.h
  4651. * src/HttpSkipResponseCommand.cc
  4652. * src/InitiateConnectionCommand.cc
  4653. * src/InitiateConnectionCommand.h
  4654. * src/OptionHandlerFactory.cc
  4655. * src/OptionHandlerImpl.h
  4656. * src/Request.cc
  4657. * src/option_processing.cc
  4658. * src/prefs.cc
  4659. * src/prefs.h
  4660. * src/usage_text.h
  4661. * test/AuthConfigFactoryTest.cc
  4662. * test/HttpRequestTest.cc
  4663. * test/OptionHandlerTest.cc
  4664. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4665. Execute choking algorithm when unchoked and interested peer is
  4666. disconected.
  4667. * src/DefaultPeerStorage.cc
  4668. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4669. Added testcase for BtNotInterestedMessage from unchoked peer.
  4670. * test/BtNotInterestedMessageTest.cc
  4671. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4672. Execute choking algorithm when BtInterestedMessage arrives from
  4673. unchoked peer.
  4674. * src/BtInterestedMessage.cc
  4675. * src/BtInterestedMessage.h
  4676. * src/DefaultBtMessageFactory.cc
  4677. * test/BtInterestedMessageTest.cc
  4678. * test/MockPeerStorage.h
  4679. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4680. AuthConfigFactory is now part of DownloadEngine.
  4681. * src/AbstractProxyRequestCommand.cc
  4682. * src/AuthConfigFactory.h
  4683. * src/DownloadEngine.cc
  4684. * src/DownloadEngine.h
  4685. * src/FtpConnection.cc
  4686. * src/FtpConnection.h
  4687. * src/FtpNegotiationCommand.cc
  4688. * src/HttpConnection.cc
  4689. * src/HttpRequest.cc
  4690. * src/HttpRequest.h
  4691. * src/HttpRequestCommand.cc
  4692. * src/HttpResponse.cc
  4693. * src/HttpResponseCommand.cc
  4694. * src/HttpSkipResponseCommand.cc
  4695. * src/MultiUrlRequestInfo.cc
  4696. * src/main.cc
  4697. * test/FtpConnectionTest.cc
  4698. * test/HttpRequestTest.cc
  4699. * test/HttpResponseTest.cc
  4700. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4701. Corrected catched exception type.
  4702. * src/ServerStatMan.cc
  4703. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4704. DNSCache is now part of DownloadEngine.
  4705. * src/DNSCache.h
  4706. * src/DownloadEngine.cc
  4707. * src/DownloadEngine.h
  4708. * src/InitiateConnectionCommand.cc
  4709. * src/MultiUrlRequestInfo.cc
  4710. * test/Makefile.am
  4711. * test/Makefile.in
  4712. * test/SimpleDNSCacheTest.cc
  4713. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4715. DownloadEngine.
  4716. * src/ActivePeerConnectionCommand.cc
  4717. * src/BtSetup.cc
  4718. * src/CUIDCounter.h
  4719. * src/DHTSetup.cc
  4720. * src/DownloadCommand.cc
  4721. * src/DownloadEngine.cc
  4722. * src/DownloadEngine.h
  4723. * src/DownloadEngineFactory.cc
  4724. * src/FileAllocationDispatcherCommand.cc
  4725. * src/InitiatorMSEHandshakeCommand.cc
  4726. * src/PeerInitiateConnectionCommand.cc
  4727. * src/PeerInteractionCommand.cc
  4728. * src/PeerListenCommand.cc
  4729. * src/RequestGroup.cc
  4730. * src/StreamFileAllocationEntry.cc
  4731. * src/TrackerWatcherCommand.cc
  4732. * src/main.cc
  4733. * test/RequestGroupManTest.cc
  4734. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. Implemented commented code in BtSeederStateChoke
  4736. * src/BtSeederStateChoke.cc
  4737. * src/Peer.cc
  4738. * src/Peer.h
  4739. * src/PeerInteractionCommand.cc
  4740. * src/PeerSessionResource.cc
  4741. * src/PeerSessionResource.h
  4742. * test/MockBtMessageDispatcher.h
  4743. * test/PeerSessionResourceTest.cc
  4744. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4745. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4746. its object.
  4747. * src/AbstractBtMessage.cc
  4748. * src/ActivePeerConnectionCommand.cc
  4749. * src/ActivePeerConnectionCommand.h
  4750. * src/BtContextAwareCommand.cc
  4751. * src/BtContextAwareCommand.h
  4752. * src/BtExtendedMessage.cc
  4753. * src/BtExtendedMessage.h
  4754. * src/BtInterestedMessage.cc
  4755. * src/BtInterestedMessage.h
  4756. * src/BtNotInterestedMessage.cc
  4757. * src/BtNotInterestedMessage.h
  4758. * src/BtRegistry.cc
  4759. * src/BtRegistry.h
  4760. * src/BtSeederStateChoke.cc
  4761. * src/BtSetup.cc
  4762. * src/DHTGetPeersCommand.cc
  4763. * src/DHTGetPeersCommand.h
  4764. * src/DHTPeerAnnounceEntry.cc
  4765. * src/DHTPeerAnnounceEntry.h
  4766. * src/DHTPeerAnnounceStorage.cc
  4767. * src/DHTPeerAnnounceStorage.h
  4768. * src/DHTPeerLookupTask.cc
  4769. * src/DHTPeerLookupTask.h
  4770. * src/DHTSetup.cc
  4771. * src/DHTSetup.h
  4772. * src/DHTTaskFactory.h
  4773. * src/DHTTaskFactoryImpl.cc
  4774. * src/DHTTaskFactoryImpl.h
  4775. * src/DefaultBtAnnounce.cc
  4776. * src/DefaultBtInteractive.cc
  4777. * src/DefaultBtInteractive.h
  4778. * src/DefaultBtMessageDispatcher.cc
  4779. * src/DefaultBtMessageDispatcher.h
  4780. * src/DefaultBtMessageFactory.cc
  4781. * src/DefaultBtMessageFactory.h
  4782. * src/DefaultBtMessageReceiver.cc
  4783. * src/DefaultBtProgressInfoFile.cc
  4784. * src/DefaultBtProgressInfoFile.h
  4785. * src/DefaultBtRequestFactory.cc
  4786. * src/DefaultBtRequestFactory.h
  4787. * src/DefaultExtensionMessageFactory.cc
  4788. * src/DefaultExtensionMessageFactory.h
  4789. * src/DefaultPeerStorage.cc
  4790. * src/DefaultPeerStorage.h
  4791. * src/DownloadEngine.cc
  4792. * src/DownloadEngine.h
  4793. * src/InitiatorMSEHandshakeCommand.cc
  4794. * src/InitiatorMSEHandshakeCommand.h
  4795. * src/MSEHandshake.cc
  4796. * src/MSEHandshake.h
  4797. * src/Makefile.am
  4798. * src/Makefile.in
  4799. * src/PeerChokeCommand.cc
  4800. * src/PeerChokeCommand.h
  4801. * src/PeerInitiateConnectionCommand.cc
  4802. * src/PeerInitiateConnectionCommand.h
  4803. * src/PeerInteractionCommand.cc
  4804. * src/PeerInteractionCommand.h
  4805. * src/PeerObject.h
  4806. * src/PeerReceiveHandshakeCommand.cc
  4807. * src/PeerReceiveHandshakeCommand.h
  4808. * src/ReceiverMSEHandshakeCommand.cc
  4809. * src/RequestGroup.cc
  4810. * src/RequestGroup.h
  4811. * src/RequestGroupMan.cc
  4812. * src/RequestGroupMan.h
  4813. * src/SeedCheckCommand.cc
  4814. * src/SeedCheckCommand.h
  4815. * src/ShareRatioSeedCriteria.h
  4816. * src/SimpleBtMessage.cc
  4817. * src/TrackerWatcherCommand.cc
  4818. * src/TrackerWatcherCommand.h
  4819. * src/UTPexExtensionMessage.cc
  4820. * src/UTPexExtensionMessage.h
  4821. * test/BtCancelMessageTest.cc
  4822. * test/BtChokeMessageTest.cc
  4823. * test/BtExtendedMessageTest.cc
  4824. * test/BtInterestedMessageTest.cc
  4825. * test/BtNotInterestedMessageTest.cc
  4826. * test/BtPieceMessageTest.cc
  4827. * test/BtPortMessageTest.cc
  4828. * test/BtRegistryTest.cc
  4829. * test/BtRejectMessageTest.cc
  4830. * test/BtRequestMessageTest.cc
  4831. * test/DHTPeerAnnounceEntryTest.cc
  4832. * test/DHTPeerAnnounceStorageTest.cc
  4833. * test/DefaultBtMessageDispatcherTest.cc
  4834. * test/DefaultBtMessageFactoryTest.cc
  4835. * test/DefaultBtProgressInfoFileTest.cc
  4836. * test/DefaultBtRequestFactoryTest.cc
  4837. * test/DefaultExtensionMessageFactoryTest.cc
  4838. * test/MSEHandshakeTest.cc
  4839. * test/MockDHTTaskFactory.h
  4840. * test/ShareRatioSeedCriteriaTest.cc
  4841. * test/UTPexExtensionMessageTest.cc
  4842. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4843. Fixed compiler warning.
  4844. * test/UtilTest.cc
  4845. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4846. Treat Cookie object as session cookie if expiry = 0 is given.
  4847. With this change, you can specify session scoped cookies in an external
  4848. file setting expiry value to 0.
  4849. * src/Cookie.cc
  4850. * src/Cookie.h
  4851. * test/CookieParserTest.cc
  4852. * test/CookieStorageTest.cc
  4853. * test/CookieTest.cc
  4854. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4855. Changed signature of DHTMessageFactory::createResponseMessage().
  4856. Removed unused validateIDMatch.
  4857. * src/DHTMessageFactory.h
  4858. * src/DHTMessageFactoryImpl.cc
  4859. * src/DHTMessageFactoryImpl.h
  4860. * src/DHTMessageTracker.cc
  4861. * test/DHTMessageFactoryImplTest.cc
  4862. * test/MockDHTMessageFactory.h
  4863. Dropped DHT message coming from same ID of localhost.
  4864. * src/DHTMessageReceiver.cc
  4865. Rejected adding node whose ID is the same as localhost's.
  4866. * src/DHTRoutingTable.cc
  4867. * test/BtPortMessageTest.cc
  4868. * test/DHTRoutingTableTest.cc
  4869. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4870. Pool connection when redirection occurs with Content-Length = 0.
  4871. * src/HttpSkipResponseCommand.cc
  4872. * src/HttpSkipResponseCommand.h
  4873. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. Fixed the bug that causes time out when redirection occurs with
  4875. content-length 0.
  4876. * src/HttpResponseCommand.cc
  4877. * src/HttpSkipResponseCommand.cc
  4878. * src/HttpSkipResponseCommand.h
  4879. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4880. Now each status legends is shown only when it appears in Download
  4881. Result. If Download Result has no item, then status legend will not
  4882. be printed.
  4883. * src/RequestGroupMan.cc
  4884. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4885. Removed duplicate creation of OptionHandlers.
  4886. * src/option_processing.cc
  4887. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4888. Fixed the bug that causes segmentation fault when accessing files which
  4889. don't exist or are not included in --select-file option while
  4890. validating chunk checksum.
  4891. * src/MultiDiskAdaptor.cc
  4892. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4893. Fixed compiler warning.
  4894. * test/UtilTest.cc
  4895. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4897. * src/IteratableChecksumValidator.cc
  4898. * src/IteratableChunkChecksumValidator.cc
  4899. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. * Release 0.16.2
  4901. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4902. Added Serbian translation. Updated Ukrainian translation.
  4903. Thanks to all translators.
  4904. * po/sr.po
  4905. * po/uk.po
  4906. * po/LINGUAS
  4907. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Bump up version number to 0.16.2
  4909. * configure.ac
  4910. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. Added length equality test to operator== to drop a piece message
  4912. whose length does not match to the requested one.
  4913. * src/RequestSlot.cc
  4914. * test/DefaultBtMessageDispatcherTest.cc
  4915. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4916. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4917. recieved.
  4918. In this fix, if a request larger than 16KiB length is received, aria2
  4919. disconnects the peer.
  4920. * src/BtConstants.h
  4921. * src/PeerMessageUtil.cc
  4922. * src/PeerMessageUtil.h
  4923. * test/BtRequestMessageTest.cc
  4924. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4925. * Release 0.16.1
  4926. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4927. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4928. * doc/aria2c.1.txt
  4929. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4930. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4931. Updated French, Simplified Chinese and Japanese translations.
  4932. Thanks to all translators.
  4933. en@quot and en@boldquot are also added.
  4934. * po/LINGUAS
  4935. * po/fr.po
  4936. * po/ja.po
  4937. * po/uk.po
  4938. * po/vi.po
  4939. * po/zh_CN.po
  4940. * po/zh_TW.po
  4941. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Bump up version number to 0.16.1.
  4943. * configure.ac
  4944. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4945. Updated README.
  4946. * README
  4947. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4949. not to replace '--' with em dash character.
  4950. * doc/aria2c.1.txt
  4951. * doc/makeman
  4952. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4954. every SEC seconds.
  4955. * src/DownloadEngineFactory.cc
  4956. * src/OptionHandlerFactory.cc
  4957. * src/option_processing.cc
  4958. * src/usage_text.h
  4959. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Fixed compile warning on linux-amd64
  4961. * src/FtpConnection.cc
  4962. * src/IteratableChunkChecksumValidator.cc
  4963. * src/MultiDiskAdaptor.cc
  4964. Fixed the bug that unit test fails on linux-amd64
  4965. * test/UtilTest.cc
  4966. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4967. Added --dht-file-path option to change the path to dht.dat, which is a
  4968. serialized DHT routing table.
  4969. * src/OptionHandlerFactory.cc
  4970. * src/option_processing.cc
  4971. * src/usage_text.h
  4972. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4973. Fixed possible underflow.
  4974. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4975. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. Fixed the bug that last character in URI is not encoded.
  4977. * src/Request.cc
  4978. * test/RequestTest.cc
  4979. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4980. Fixed the bug that referer header field contains fragment.
  4981. Now Request class removes fragment part of URI and encodes it
  4982. in Request::setUri() and setReferer().
  4983. * src/Request.h
  4984. * src/Request.cc
  4985. * test/RequestTest.cc
  4986. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4987. Added missing m4 macros.
  4988. * m4/cppunit.m4
  4989. * m4/libgcrypt.m4
  4990. * m4/libgnutls-extra.m4
  4991. * m4/libgnutls.m4
  4992. * m4/libxml2.m4
  4993. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. Fixed compile error with gcc-4.4(snapshot)
  4995. * src/File.cc
  4996. * src/FtpConnection.cc
  4997. * src/OptionHandlerImpl.h
  4998. * src/Util.cc
  4999. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5000. Removed assert()
  5001. * src/SocketBuffer.cc (SocketBuffer::send)
  5002. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. Changed the type of _numNewConnection to unsigned int.
  5004. * src/ActivePeerConnectionCommand.cc
  5005. * src/ActivePeerConnectionCommand.h
  5006. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. * Release 0.16.0
  5008. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5009. Updated doc
  5010. * README
  5011. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5012. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5013. translations. Thanks to all translators.
  5014. * po/bg.po
  5015. * po/de.po
  5016. * po/fr.po
  5017. * po/ja.po
  5018. * po/zh_CN.po
  5019. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5020. Bump up version number to 0.16.0.
  5021. * configure.ac
  5022. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5023. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5024. int32_t.
  5025. Changed the type of count to int32_t.
  5026. * src/Metalink2RequestGroup.cc
  5027. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5028. Added test for Time::elapsed(time_t).
  5029. * test/TimeTest.cc
  5030. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5031. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5032. Util::difftv() should be used instead.
  5033. * src/TimeA2.cc
  5034. * src/TimeA2.h
  5035. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5036. Made socket for dht connections non-blocking
  5037. * src/DHTAbstractMessage.cc
  5038. * src/DHTAbstractMessage.h
  5039. * src/DHTConnection.h
  5040. * src/DHTConnectionImpl.cc
  5041. * src/DHTConnectionImpl.h
  5042. * src/DHTMessage.h
  5043. * src/DHTMessageDispatcherImpl.cc
  5044. * src/DHTMessageDispatcherImpl.h
  5045. * src/DHTUnknownMessage.cc
  5046. * src/DHTUnknownMessage.h
  5047. * src/SocketCore.cc
  5048. * src/SocketCore.h
  5049. * test/MockDHTMessage.h
  5050. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5051. Changed the type of offset to int.
  5052. * src/ParameterizedStringParser.cc
  5053. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5054. Made getAsInt() return int32_t
  5055. * src/Option.h
  5056. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5058. build.
  5059. * configure.ac
  5060. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. Use sqlite3_open if sqlite3_open_v2 is not available.
  5062. * src/Sqlite3MozCookieParser.cc
  5063. * src/Sqlite3MozCookieParser.h
  5064. * m4/sqlite3.m4
  5065. * test/Sqlite3MozCookieParserTest.cc
  5066. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5067. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5068. * src/BtPieceMessage.cc
  5069. * src/DHTPeerAnnounceStorage.cc
  5070. * src/DefaultPieceStorage.cc
  5071. * src/DownloadCommand.cc
  5072. * src/DownloadEngine.cc
  5073. * src/FtpConnection.cc
  5074. * src/PeerConnection.cc
  5075. * src/PeerMessageUtil.cc
  5076. * src/RequestGroup.cc
  5077. * src/RequestGroupMan.cc
  5078. * src/SimpleBtMessage.cc
  5079. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5081. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5082. * src/AbstractDiskWriter.cc
  5083. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5084. Don't set Request::supportsPersistentConnection() in HttpConnection
  5085. since this code is also used in AbstractProxyResponseCommand.
  5086. Moved those code to HttpResponse.
  5087. * src/HttpResponse.cc
  5088. * src/HttpResponse.h
  5089. * src/HttpConnection.cc
  5090. * src/HttpConnection.h
  5091. * src/HttpResponseCommand.cc
  5092. * test/HttpResponseTest.cc
  5093. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5094. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5095. The configuration is minimum: no torrent, no metalink, so there may be
  5096. other compile error on their code.
  5097. * src/a2netcompat.h
  5098. * src/File.cc
  5099. * src/File.h
  5100. * src/SocketCore.cc
  5101. * src/SocketCore.h
  5102. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5103. Made a socket of incoming peer non-blocking.
  5104. * src/PeerListenCommand.cc
  5105. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5106. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5107. whole message data is not sent in one send() call.
  5108. * src/BtPieceMessage.cc
  5109. * src/BtPieceMessage.h
  5110. * src/PeerConnection.cc
  5111. * src/PeerConnection.h
  5112. * src/SimpleBtMessage.cc
  5113. * src/SimpleBtMessage.h
  5114. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5115. Fixed the bug that aria2 downloads faster than max-download-limit when
  5116. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5117. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5118. , instead of sum of them.
  5119. * src/ActivePeerConnectionCommand.cc
  5120. * src/DefaultBtInteractive.cc
  5121. * src/DownloadCommand.cc
  5122. * src/PeerInteractionCommand.cc
  5123. * src/PeerReceiveHandshakeCommand.cc
  5124. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5125. Fixed the bug that HTTPS download fails.
  5126. * src/AbstractCommand.cc
  5127. * src/AbstractCommand.h
  5128. * src/DownloadCommand.cc
  5129. * src/FtpConnection.cc
  5130. * src/HttpConnection.cc
  5131. * src/HttpRequestCommand.cc
  5132. * src/HttpResponseCommand.cc
  5133. * src/HttpSkipResponseCommand.cc
  5134. * src/MSEHandshake.cc
  5135. * src/PeerConnection.cc
  5136. * src/SocketCore.cc
  5137. * src/SocketCore.h
  5138. Fixed the bug that aria2 doesn't download whole content body and cannot
  5139. reuse connection if chunked transfer encoding and gzip content encoding
  5140. are set.
  5141. * src/DownloadCommand.cc
  5142. * src/HttpSkipResponseCommand.cc
  5143. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Updated man page.
  5145. * doc/aria2c.1.txt
  5146. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. When error occurred while aria2 was parsing an .aria2.conf file, print
  5148. the usage of the option that caused error.
  5149. * src/option_processing.cc
  5150. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Fixed compile error on OptionHandlerException
  5152. * src/Makefile.am
  5153. * src/OptionHandlerException.cc
  5154. * src/OptionHandlerException.h
  5155. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Moved message of the error to OptionHandlerException.h
  5157. * src/NameMatchOptionHandler.h
  5158. * src/OptionHandlerException.h
  5159. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. When error occurs while aria2 is parsing an command-line option, print
  5161. the usage of the option.
  5162. * src/Makefile.am
  5163. * src/NameMatchOptionHandler.h
  5164. * src/OptionHandlerException.h
  5165. * src/option_processing.cc
  5166. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5167. Reverted previous change.
  5168. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5169. username is not in URI.
  5170. * src/HttpRequest.cc
  5171. * src/Request.cc
  5172. * test/HttpRequestTest.cc
  5173. * test/RequestTest.cc
  5174. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. Now colon is required for username and password in FTP URL, like:
  5176. ftp://username:password@host.
  5177. If colon is not there, aria2 don't parse it as a username. For example,
  5178. aria2 don't retrieve username from ftp://username@host.
  5179. This fix was made in order to login FTP server via non-transparent ftp
  5180. proxy.
  5181. * src/Request.cc
  5182. * test/RequestTest.cc
  5183. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Use netrc for HTTP.
  5185. Now FTP user/password is sent in Authorization header when
  5186. --ftp-via-http-proxy=get is given.
  5187. * src/AuthConfigFactory.cc
  5188. * src/HttpRequest.cc
  5189. * src/HttpRequest.h
  5190. * src/NetrcAuthResolver.cc
  5191. * src/NetrcAuthResolver.h
  5192. * src/OptionHandlerFactory.cc
  5193. * src/option_processing.cc
  5194. * src/prefs.cc
  5195. * src/prefs.h
  5196. * test/AuthConfigFactoryTest.cc
  5197. * test/HttpRequestTest.cc
  5198. * test/NetrcAuthResolverTest.cc
  5199. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. Issue PWD command first and get working directory and use it as a prefix
  5201. for CWD command.
  5202. * src/DownloadEngine.cc
  5203. * src/DownloadEngine.h
  5204. * src/FtpConnection.cc
  5205. * src/FtpConnection.h
  5206. * src/FtpFinishDownloadCommand.cc
  5207. * src/FtpInitiateConnectionCommand.cc
  5208. * src/FtpNegotiationCommand.cc
  5209. * src/FtpNegotiationCommand.h
  5210. * test/FtpConnectionTest.cc
  5211. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5212. Removed default user/pass for FTP user/pass, since it should not have
  5213. precedence over netrc configuration by default.
  5214. * src/OptionHandlerFactory.cc
  5215. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Added debug log for socket event.
  5217. * src/AbstractCommand.cc
  5218. * src/PeerAbstractCommand.cc
  5219. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5220. Log microseconds.
  5221. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5222. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5223. Replaced HelpItem.cc with OptionHandler.cc.
  5224. * po/POTFILES.in
  5225. Updated po files with 'make update-po'
  5226. * po/aria2c.pot
  5227. * po/*.po
  5228. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. Removed possible values from the text.
  5230. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5231. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5232. Removed unused preferences:
  5233. PREF_NO_PREALLOCATION
  5234. PREF_STDOUT_LOG
  5235. PREF_TRACKER_MAX_TRIES
  5236. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5237. PREF_MIN_SEGMENT_SIZE
  5238. * src/option_processing.cc
  5239. * src/prefs.cc
  5240. * src/prefs.h
  5241. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5242. Integrated HelpItem into OptionParser to ease the workload for adding
  5243. new options. Removed default value from usage text.
  5244. * src/HelpItem.cc: Removed.
  5245. * src/HelpItem.h: Removed.
  5246. * src/HelpItemFactory.cc: Removed.
  5247. * src/HelpItemFactory.h: Removed.
  5248. * src/Makefile.am
  5249. * src/Makefile.in
  5250. * src/NameMatchOptionHandler.h
  5251. * src/OptionHandler.cc
  5252. * src/OptionHandler.h
  5253. * src/OptionHandlerFactory.cc
  5254. * src/OptionHandlerImpl.h
  5255. * src/OptionParser.cc
  5256. * src/OptionParser.h
  5257. * src/TagContainer.cc: Removed.
  5258. * src/TagContainer.h: Removed.
  5259. * src/TaggedItem.cc: Removed.
  5260. * src/TaggedItem.h: Removed.
  5261. * src/main.cc
  5262. * src/option_processing.cc
  5263. * src/usage_text.h
  5264. * src/version_usage.cc
  5265. * test/HelpItemTest.cc: Removed.
  5266. * test/Makefile.am
  5267. * test/Makefile.in
  5268. * test/OptionHandlerTest.cc
  5269. * test/OptionParserTest.cc
  5270. * test/TagContainerTest.cc: Removed.
  5271. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Moved `TransferStat stat = ...' to inside the `if' clause.
  5273. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5274. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Fixed the bug that a block in a piece is requested when same block is
  5276. already requested to the same peer in end game mode.
  5277. * src/BtRequestFactory.h
  5278. * src/DefaultBtInteractive.cc
  5279. * src/DefaultBtRequestFactory.cc
  5280. * src/DefaultBtRequestFactory.h
  5281. * src/DefaultPieceStorage.cc
  5282. * src/DefaultPieceStorage.h
  5283. * src/PieceStorage.h
  5284. * src/UnknownLengthPieceStorage.cc
  5285. * src/UnknownLengthPieceStorage.h
  5286. * test/DefaultBtRequestFactoryTest.cc
  5287. * test/DefaultPieceStorageTest.cc
  5288. * test/MockBtRequestFactory.h
  5289. * test/MockPieceStorage.h
  5290. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5291. Removed _uploadLength and _downloadLength from PeerSessionResource
  5292. and use PeerStat::_sessionUploadLength and
  5293. PeerStat::_sessionDownloadLength.
  5294. * src/PeerSessionResource.cc
  5295. * src/PeerSessionResource.h
  5296. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Fixed the bug that prefixLength of split bucket which doesn't include
  5298. local node ID is incremented.
  5299. * src/DHTBucket.cc
  5300. * src/DHTBucket.h
  5301. * test/DHTBucketTest.cc
  5302. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5303. Added cookies.sqlite to EXTRA_DIST
  5304. * test/Makefile.am
  5305. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5306. Added Turkish translation. Updated French, German, Russian and
  5307. Simplified Chinese translations. Thanks to all translators.
  5308. * po/LINGUAS
  5309. * po/de.po
  5310. * po/fr.po
  5311. * po/ru.po
  5312. * po/tr.po
  5313. * po/zh_CN.po
  5314. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5315. Added deliminating text to the beginning of the log so that one can find
  5316. where the log starts easily.
  5317. * src/main.cc
  5318. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5320. to fix compile error when async DNS is not enabled by configuration.
  5321. * src/AbstractCommand.cc
  5322. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5323. If establishing conneciton to a server is failed, then mark error on
  5324. its ServerStat.
  5325. Added the cause of error to log when error event occurred.
  5326. Moved message string to message.h for translation.
  5327. * src/AbstractCommand.cc
  5328. * src/AbstractCommand.h
  5329. * src/FtpNegotiationCommand.cc
  5330. * src/HttpRequestCommand.cc
  5331. * src/PeerAbstractCommand.cc
  5332. * src/message.h
  5333. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. Added the function to get error message from socket.
  5335. * src/SocketCore.cc
  5336. * src/SocketCore.h
  5337. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5338. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5339. * src/RequestGroupMan.cc
  5340. * src/RequestGroupMan.h
  5341. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5342. If error event is received in epoll, then abort download immediately.
  5343. * src/AbstractCommand.cc
  5344. * src/Command.cc
  5345. * src/Command.h
  5346. * src/DownloadEngine.cc
  5347. * src/PeerAbstractCommand.cc
  5348. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Added usage message for --uri-selector, --server-stat-of,
  5350. --server-stat-in, --server-stat-timeout options.
  5351. * src/HelpItemFactory.cc
  5352. * src/usage_text.h
  5353. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5354. Added upper limit of FTP response buffer. The current implementation
  5355. uses 4096bytes as a limit.
  5356. * src/FtpConnection.cc
  5357. * src/FtpConnection.h
  5358. * test/FtpConnectionTest.cc
  5359. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5360. Use non-blocking socket for TCP communication to avoid possible
  5361. blocking due to buffer full.
  5362. * src/AbstractProxyRequestCommand.cc
  5363. * src/FtpConnection.cc
  5364. * src/FtpConnection.h
  5365. * src/FtpNegotiationCommand.cc
  5366. * src/FtpNegotiationCommand.h
  5367. * src/HttpConnection.cc
  5368. * src/HttpConnection.h
  5369. * src/HttpRequestCommand.cc
  5370. * src/InitiatorMSEHandshakeCommand.cc
  5371. * src/InitiatorMSEHandshakeCommand.h
  5372. * src/MSEHandshake.cc
  5373. * src/MSEHandshake.h
  5374. * src/Makefile.am
  5375. * src/PeerConnection.cc
  5376. * src/PeerConnection.h
  5377. * src/PeerInteractionCommand.cc
  5378. * src/PeerListenCommand.cc
  5379. * src/ReceiverMSEHandshakeCommand.cc
  5380. * src/ReceiverMSEHandshakeCommand.h
  5381. * src/SocketBuffer.cc
  5382. * src/SocketBuffer.h
  5383. * src/SocketCore.cc
  5384. * src/SocketCore.h
  5385. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5386. Call setStatusRealtime() in constructor.
  5387. * src/RealtimeCommand.cc
  5388. * src/RealtimeCommand.h
  5389. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Call Download::setNoWait(true) to execute newly created command without
  5391. a pause.
  5392. * src/AbstractCommand.cc
  5393. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5394. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5395. found' error from HTTP/FTP server NUM times without getting single
  5396. bytes of data, then force the download to fail.
  5397. Basically aria2 tris all URIs available. So if long list of URIs are
  5398. specified in Metalink, then aria2 will take a long time to fail
  5399. eventually if all URIs are outdated. This option eases this situation
  5400. to limit the number of servers to try.
  5401. * src/FtpNegotiationCommand.cc
  5402. * src/HelpItemFactory.cc
  5403. * src/HttpResponseCommand.cc
  5404. * src/OptionHandlerFactory.cc
  5405. * src/PeerStat.h
  5406. * src/RequestGroup.cc
  5407. * src/RequestGroup.h
  5408. * src/SegmentMan.cc
  5409. * src/SegmentMan.h
  5410. * src/option_processing.cc
  5411. * src/prefs.cc
  5412. * src/prefs.h
  5413. * src/usage_text.h
  5414. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5415. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5416. response even if more than one response is in it.
  5417. * src/FtpConnection.cc
  5418. * src/FtpConnection.h
  5419. * test/FtpConnectionTest.cc
  5420. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5421. Merged from stable-0.15
  5422. * m4/libcares.m4
  5423. Use pkg-config
  5424. * m4/sqlite3.m4
  5425. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5426. Removed unnecessary if statement.
  5427. * src/DefaultPieceStorage.cc (initPieceStorage)
  5428. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5429. Added --connect-timeout option to specify connect timeout in seconds.
  5430. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5431. connecting to BitTorrent peer is not controlled by this option.
  5432. * src/AbstractProxyRequestCommand.cc
  5433. * src/FtpNegotiationCommand.cc
  5434. * src/HelpItemFactory.cc
  5435. * src/HttpRequestCommand.cc
  5436. * src/OptionHandlerFactory.cc
  5437. * src/option_processing.cc
  5438. * src/prefs.cc
  5439. * src/prefs.h
  5440. * src/usage_text.h
  5441. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5442. Added help message for -R option.
  5443. * src/HelpItemFactory.cc
  5444. * src/usage_text.h
  5445. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. Added the message that the time is in local time zone.
  5447. * src/RequestGroup.cc
  5448. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5449. Implemented the ability to get timestamp from remote FTP server using
  5450. MDTM command described in RFC3659.
  5451. * src/FtpConnection.cc
  5452. * src/FtpConnection.h
  5453. * src/FtpNegotiationCommand.cc
  5454. * src/FtpNegotiationCommand.h
  5455. * test/FtpConnectionTest.cc
  5456. * test/Makefile.am
  5457. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. Implemented the ability to get timestamp from remote HTTP server and
  5459. apply it to local file. To enable this feature, --remote-time option
  5460. is added. No usage text has been written yet.
  5461. If several servers returns difference timestamp, then aria2 uses latest
  5462. one.
  5463. * src/CopyDiskAdaptor.cc
  5464. * src/CopyDiskAdaptor.h
  5465. * src/DirectDiskAdaptor.cc
  5466. * src/DirectDiskAdaptor.h
  5467. * src/DiskAdaptor.h
  5468. * src/File.cc
  5469. * src/File.h
  5470. * src/HttpHeader.cc
  5471. * src/HttpHeader.h
  5472. * src/HttpResponse.cc
  5473. * src/HttpResponse.h
  5474. * src/HttpResponseCommand.cc
  5475. * src/HttpResponseCommand.h
  5476. * src/MultiDiskAdaptor.cc
  5477. * src/MultiDiskAdaptor.h
  5478. * src/OptionHandlerFactory.cc
  5479. * src/RequestGroup.cc
  5480. * src/RequestGroup.h
  5481. * src/RequestGroupMan.cc
  5482. * src/option_processing.cc
  5483. * src/prefs.cc
  5484. * src/prefs.h
  5485. * test/CopyDiskAdaptorTest.cc
  5486. * test/FileTest.cc
  5487. * test/Makefile.am
  5488. * test/Makefile.in
  5489. * test/MultiDiskAdaptorTest.cc
  5490. * test/TestUtil.cc
  5491. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5492. Fixed the bug that DiskWriterEntry is not created when its
  5493. FileEntry.isRequested() is false and it doesn't share a piece with
  5494. other FileEntries that are requested. This bug causes segmentation fault
  5495. in the end.
  5496. * src/MultiDiskAdaptor.cc
  5497. * src/MultiDiskAdaptor.h
  5498. * src/MultiFileAllocationIterator.cc
  5499. * test/MultiDiskAdaptorTest.cc
  5500. * test/MultiFileAllocationIteratorTest.cc
  5501. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5502. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5503. called if the number of file entries are greater than max open files.
  5504. * src/AbstractSingleDiskAdaptor.cc
  5505. * src/AbstractSingleDiskAdaptor.h
  5506. * src/DiskAdaptor.h
  5507. * src/MultiDiskAdaptor.cc
  5508. * src/MultiDiskAdaptor.h
  5509. * test/MultiDiskAdaptorTest.cc
  5510. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. Added a constuctor that receives struct timeval.
  5512. Added operator<.
  5513. * src/TimeA2.cc
  5514. * src/TimeA2.h
  5515. * test/TimeTest.cc
  5516. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5518. * src/CookieParser.cc
  5519. * test/CookieParserTest.cc
  5520. * test/HttpResponseTest.cc
  5521. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5522. Implmented the functions to parse date.
  5523. * src/TimeA2.cc
  5524. * src/TimeA2.h
  5525. * test/TimeTest.cc
  5526. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Added "Firefox3 Cookie" feature to FeatureConfig
  5528. * src/FeatureConfig.cc
  5529. * src/FeatureConfig.h
  5530. * test/FeatureConfigTest.cc
  5531. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5532. Bump up version number to 0.16.0b
  5533. * configure.ac
  5534. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. Use pkg-config if is is available.
  5536. * m4/openssl.m4
  5537. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5539. * src/BtAnnounce.h
  5540. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5541. If an error occurred with a URI, remove identical URI from remaining
  5542. URI list because it is likely that same error occurred in the end and it
  5543. is waste of time.
  5544. * src/AbstractCommand.cc
  5545. * src/RequestGroup.cc
  5546. * src/RequestGroup.h
  5547. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5548. Removed wrong comment.
  5549. * src/DefaultPeerStorage.cc
  5550. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5551. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5552. Added return value of getpid() to argument of srand() to achieve more
  5553. randomized value.
  5554. * src/SimpleRandomizer.cc
  5555. * src/SimpleRandomizer.h
  5556. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5557. Contact tracker frequently when the number of connections are 0 and
  5558. download is not finished yet.
  5559. * src/ActivePeerConnectionCommand.cc
  5560. * src/BtAnnounce.h
  5561. * src/DefaultBtAnnounce.cc
  5562. * src/DefaultBtAnnounce.h
  5563. * test/MockBtAnnounce.h
  5564. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5565. Moved threshold values to UTPexExtensionMessage.
  5566. * src/DefaultBtInteractive.cc
  5567. * src/Peer.cc
  5568. * src/Peer.h
  5569. * src/UTPexExtensionMessage.cc
  5570. * src/UTPexExtensionMessage.h
  5571. * test/UTPexExtensionMessageTest.cc
  5572. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5573. Added _incoming member to Peer class and made it true if the peer
  5574. initiated connection. Don't add those peer to UTPex message.
  5575. If extended handshake is received, assign _incoming to false.
  5576. * src/DefaultBtInteractive.cc
  5577. * src/HandshakeExtensionMessage.cc
  5578. * src/Peer.cc
  5579. * src/Peer.h
  5580. * src/PeerListenCommand.cc
  5581. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5582. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5583. Encoding Decoder. Removed size threshold for turning off on the fly
  5584. inflation because resulting file may or may not be inflated depending
  5585. on the file size and I think it is not expected by users.
  5586. This change fixes segmentation fault when Metalink file contains gzipped
  5587. file and its filesize is provided.
  5588. * src/HttpResponseCommand.cc
  5589. * src/HttpResponseCommand.h
  5590. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5591. Made Cookie immutable.
  5592. * src/Cookie.cc
  5593. * src/Cookie.h
  5594. * src/CookieParser.cc
  5595. * src/CookieParser.h
  5596. * src/CookieStorage.cc
  5597. * test/CookieParserTest.cc
  5598. * test/CookieStorageTest.cc
  5599. * test/NsCookieParserTest.cc
  5600. * test/Sqlite3MozCookieParserTest.cc
  5601. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5602. Removed CookieBox, CookieBoxFactory.
  5603. * src/CookieBox.cc
  5604. * src/CookieBox.h
  5605. * src/CookieBoxFactory.cc
  5606. * src/CookieBoxFactory.h
  5607. * src/Makefile.am
  5608. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Use CookieStorage class instead of CookieBox class.
  5610. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5611. * src/AbstractProxyRequestCommand.cc
  5612. * src/CookieStorage.cc
  5613. * src/DownloadEngine.cc
  5614. * src/DownloadEngine.h
  5615. * src/HttpConnection.cc
  5616. * src/HttpConnection.h
  5617. * src/HttpRequest.cc
  5618. * src/HttpRequest.h
  5619. * src/HttpRequestCommand.cc
  5620. * src/HttpResponse.cc
  5621. * src/HttpResponseCommand.cc
  5622. * src/HttpSkipResponseCommand.cc
  5623. * src/Makefile.am
  5624. * src/MultiUrlRequestInfo.cc
  5625. * src/Request.cc
  5626. * src/Request.h
  5627. * src/main.cc
  5628. * test/AllTest.cc
  5629. * test/CookieStorageTest.cc
  5630. * test/CookieTest.cc
  5631. * test/HttpRequestTest.cc
  5632. * test/HttpResponseTest.cc
  5633. * test/Makefile.am
  5634. * test/NsCookieParserTest.cc
  5635. * test/Sqlite3MozCookieParserTest.cc
  5636. * test/nscookietest.txt
  5637. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5638. Updated
  5639. * test/Cookies.sqlite
  5640. * test/nscookietest.txt
  5641. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. Added tests for CookieStorage::load()
  5643. * test/CookieStorageTest.cc
  5644. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5645. Added CookieStorage class which is based on RFC2109 and manages cookies
  5646. more strictly than CookieBox and CookieBoxFactory class.
  5647. * src/CookieStorage.cc
  5648. * src/CookieStorage.h
  5649. * src/Cookie.cc
  5650. * src/Cookie.h
  5651. * test/CookieStorageTest.cc
  5652. * test/CookieTest.cc
  5653. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Fixed the bug that commands are created more than the number of pieces.
  5655. * src/RequestGroup.cc
  5656. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5657. Fixed infinite loop bug in FTP when SIZE command failed.
  5658. * src/FtpNegotiationCommand.cc
  5659. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5660. Removed DirectDiskAdaptorTest.h
  5661. * test/Makefile.am
  5662. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Fixed chunk checksum validation cannot detect trailing garbage data.
  5664. BUG#2074141
  5665. * src/AbstractSingleDiskAdaptor.cc
  5666. * src/AbstractSingleDiskAdaptor.h
  5667. * src/CheckIntegrityEntry.cc
  5668. * src/CheckIntegrityEntry.h
  5669. * src/DiskAdaptor.h
  5670. * src/MultiDiskAdaptor.cc
  5671. * src/MultiDiskAdaptor.h
  5672. * src/RequestGroup.cc
  5673. * test/DirectDiskAdaptorTest.cc
  5674. * test/MultiDiskAdaptorTest.cc
  5675. * test/TestUtil.cc
  5676. * test/TestUtil.h
  5677. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Bump up version number of dht.dat file to 3. In version 3 format, time
  5679. is stored in 64bit, network byte order.
  5680. New build can load old format(version 2) but it saves the file in new
  5681. format. It means once you used new build, your dht.dat becomes
  5682. incompatible with older build.
  5683. * src/DHTRoutingTableDeserializer.cc
  5684. * src/DHTRoutingTableSerializer.cc
  5685. * test/DHTRoutingTableSerializerTest.cc
  5686. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5687. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5688. * test/Makefile.am
  5689. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Bump up version number of .aria2 control file to 0001.
  5691. New aria2 can still load version 0000 file but it saves the file in
  5692. version 0001 format. It means that new aria2 can resume download
  5693. started by old aria2 but the opposite is not true.
  5694. * src/DefaultBtProgressInfoFile.cc
  5695. * src/DefaultBtProgressInfoFile.h
  5696. * test/DefaultBtProgressInfoFileTest.cc
  5697. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5698. Added ntoh64 and hton64 as inline functions.
  5699. * src/Util.cc
  5700. * test/UtilTest.cc
  5701. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5702. Added sqlite3 depenency and Firefox3 cookie support.
  5703. * README
  5704. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. State that firefox3 cookie is supported explicitly in the usage.
  5706. * src/usage_text.h
  5707. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Externalized message.
  5709. * src/RequestGroupMan.cc
  5710. * src/message.h
  5711. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. Save temporary file first and rename to the destination on success.
  5713. Added test cases.
  5714. * src/RequestGroupMan.cc
  5715. * test/RequestGroupManTest.cc
  5716. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5717. Fixed the bug that the number of connected peer is exceeding the limit
  5718. (55 by default) in seeding mode.
  5719. Multiplied 0.8 to _maxUploadSpeedLimit.
  5720. * src/ActivePeerConnectionCommand.cc
  5721. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Clear table item.
  5723. * src/Dictionary.cc
  5724. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. Fixed error handling of lseek.
  5726. * src/AbstractDiskWriter.cc
  5727. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5729. style cookie file.
  5730. * src/usage_text.h
  5731. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5732. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5733. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5734. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5735. * src/Util.cc
  5736. * src/Util.h
  5737. * src/CookieParser.cc
  5738. * test/UtilTest.cc
  5739. * test/CookieParserTest.cc
  5740. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Separate the implementation to load old mozilla format of cookie to
  5742. NsCookieParser class.
  5743. * src/CookieBoxFactory.cc
  5744. * src/CookieBoxFactory.h
  5745. * src/NsCookieParser.cc
  5746. * src/NsCookieParser.h
  5747. * test/NsCookieParserTest.cc
  5748. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Made parse() const
  5750. * src/Sqlite3MozCookieParser.cc
  5751. * src/Sqlite3MozCookieParser.h
  5752. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5753. Added firefox3 cookie support based on the patch submitted by
  5754. tizianomueller.
  5755. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5756. this functionality.
  5757. * configure.ac
  5758. * m4/sqlite3.m4
  5759. * src/CookieBoxFactory.cc
  5760. * src/CookieBoxFactory.h
  5761. * src/Makefile.am
  5762. * src/Makefile.in
  5763. * src/Sqlite3MozCookieParser.cc
  5764. * src/Sqlite3MozCookieParser.h
  5765. * src/main.cc
  5766. * test/CookieBoxFactoryTest.cc
  5767. * test/Makefile.am
  5768. * test/Makefile.in
  5769. * test/Sqlite3MozCookieParserTest.cc
  5770. * test/badcookies.sqlite
  5771. * test/cookies.sqlite
  5772. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Added Danish and Greek translations.
  5774. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5775. Great thanks to all translators.
  5776. * po/LINGUAS
  5777. * po/el.po
  5778. * po/da.po
  5779. * po/es.po
  5780. * po/ca.po
  5781. * po/nn.po
  5782. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5783. Fixed man page: --follow-bittorrent should be --follow-torrent
  5784. * doc/aria2c.1.txt
  5785. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5786. Fixed: numCommand is less than the value specified in -C option.
  5787. * src/RequestGroup.cc
  5788. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5789. Fixed occasional assertion failure in PieceSegment.
  5790. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5791. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5792. creation of duplicate segments and one of the segment was finished then
  5793. assertion failure was caused.
  5794. * src/SegmentMan.cc
  5795. * test/SegmentManTest.cc
  5796. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Added options to load/save the server's performance/status to a file
  5798. and the timeout to drop their data.
  5799. --server-stat-of=FILE specifies the file to which performance data
  5800. is saved.
  5801. --server-stat-if=FILE specifies the file to read previously saved
  5802. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5803. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5804. TIMEOUT is specified in seconds and the default value is 24hours.
  5805. * src/MultiUrlRequestInfo.cc
  5806. * src/OptionHandlerFactory.cc
  5807. * src/RequestGroupMan.cc
  5808. * src/RequestGroupMan.h
  5809. * src/ServerStatMan.cc
  5810. * src/ServerStatMan.h
  5811. * src/option_processing.cc
  5812. * src/prefs.cc
  5813. * src/prefs.h
  5814. * test/ServerStatManTest.cc
  5815. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5817. * src/ServerStatMan.cc
  5818. * src/ServerStatMan.h
  5819. * test/ServerStatManTest.cc
  5820. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Implemented ServerStatMan::load(...) function and its test case.
  5822. * src/ServerStat.cc
  5823. * src/ServerStat.h
  5824. * src/ServerStatMan.cc
  5825. * test/ServerStatManTest.cc
  5826. * test/ServerStatTest.cc
  5827. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5828. Use time_t instead of int32_t. Use int64_t where milli second is
  5829. expected.
  5830. * src/TimeA2.cc
  5831. * src/TimeA2.h
  5832. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5833. Implemented ServerStatMan::save(...) function and its test case.
  5834. * src/ServerStat.cc
  5835. * src/ServerStat.h
  5836. * src/ServerStatMan.cc
  5837. * src/ServerStatMan.h
  5838. * test/ServerStatManTest.cc
  5839. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5840. Now aria2 uses name attribute in Metalink as local filename in
  5841. BitTorrent downloads. BUG#2033999
  5842. * src/BtContext.h
  5843. * src/BtDependency.cc
  5844. * src/DefaultBtContext.cc
  5845. * src/DefaultBtContext.h
  5846. * src/SingleFileDownloadContext.cc
  5847. * src/SingleFileDownloadContext.h
  5848. * test/BtDependencyTest.cc
  5849. * test/DefaultBtContextTest.cc
  5850. * test/MockBtContext.h
  5851. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Added AC_C_BIGENDIAN
  5853. * src/configure.ac
  5854. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5855. Limited numCommand less than or equal to the number of piece.
  5856. * src/RequestGroup.cc
  5857. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5858. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5859. directive.
  5860. * test/DefaultPieceStorageTest.cc
  5861. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. Fixed memory leak in test code
  5863. * test/AnnounceListTest.cc
  5864. * test/DefaultPeerListProcessorTest.cc
  5865. * test/DefaultPeerStorageTest.cc
  5866. * test/MetaFileUtilTest.cc
  5867. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5868. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5869. * src/DefaultPieceStorage.cc
  5870. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5871. Initialized _directIOAllowed
  5872. * src/MultiDiskAdaptor.cc
  5873. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5874. Fixed memory leak
  5875. * src/GZipDecoder.cc
  5876. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5877. Fixed memory leak
  5878. * src/MetalinkParserStateMachine.cc
  5879. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Fixed memory leak
  5881. * src/Dictionary.cc
  5882. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5883. Fixed memory leak
  5884. * src/IteratableChunkChecksumValidator.h
  5885. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Fixed unmatched malloc/free.
  5887. * src/IteratableChunkChecksumValidator.cc
  5888. * src/IteratableChecksumValidator.cc
  5889. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Removed max chunk size check. This change fixes BUG#2040169
  5891. * src/ChunkedDecoder.cc
  5892. * src/ChunkedDecoder.h
  5893. * test/ChunkedDecoderTest.cc
  5894. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5895. Implemented download speed based URI selection algorithm.
  5896. Introduced new option --uri-selector.
  5897. If --uri-selector=feedback is given, aria2 uses download speed observed
  5898. in the previous downloads and chooses fastest server in the URI list.
  5899. Currently at most 10 URIs are considered to introduce randomeness for
  5900. finding better servers. The speed is average download speed in the
  5901. downloads.
  5902. On the other hand, if --uri-selector=inorder is given, which is default,
  5903. URI is tried in order in URI list.
  5904. The usage text for the new option has not been written yet.
  5905. * src/AbstractCommand.cc
  5906. * src/DownloadCommand.cc
  5907. * src/DownloadEngine.cc
  5908. * src/DownloadEngineFactory.cc
  5909. * src/InOrderURISelector.cc
  5910. * src/InOrderURISelector.h
  5911. * src/OptionHandlerFactory.cc
  5912. * src/PeerStat.h
  5913. * src/RequestGroup.cc
  5914. * src/RequestGroup.h
  5915. * src/RequestGroupMan.cc
  5916. * src/RequestGroupMan.h
  5917. * src/SegmentMan.cc
  5918. * src/SegmentMan.h
  5919. * src/ServerStat.cc
  5920. * src/ServerStat.h
  5921. * src/ServerStatMan.cc
  5922. * src/ServerStatMan.h
  5923. * src/ServerStatURISelector.cc
  5924. * src/ServerStatURISelector.h
  5925. * src/URISelector.h
  5926. * src/option_processing.cc
  5927. * src/prefs.cc
  5928. * src/prefs.h
  5929. * test/InOrderURISelectorTest.cc
  5930. * test/RequestGroupManTest.cc
  5931. * test/ServerStatManTest.cc
  5932. * test/ServerStatURISelectorTest.cc
  5933. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5934. * Release 0.15.1+2
  5935. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. Bump up version number to 0.15.1+2
  5937. * configure.ac
  5938. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5939. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5940. * m4/aria2_arg.m4
  5941. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5942. * Release 0.15.1+1
  5943. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Bump up version number to 0.15.1+1
  5945. * configure.ac
  5946. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5947. Fixed the bug that causes segmentaion fault when resuming download
  5948. using metalink without size tag. Reproducible only using HTTP URI.
  5949. * src/HttpResponseCommand.cc
  5950. * src/FtpNegotiationCommand.cc
  5951. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. * Release 0.15.1
  5953. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5954. Updated Bulgarian and French translations, thanks to all translators.
  5955. * po/bg.po
  5956. * po/fr.po
  5957. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5958. Bump up version number to 0.15.1
  5959. * configure.ac
  5960. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5961. Avoid repeated call of gettimeofday() when calculating speed.
  5962. * src/SpeedCalc.cc
  5963. * src/SpeedCalc.h
  5964. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. Removed writable check when socket's send buffer is full in BitTorrent
  5966. downloads to lower CPU usage.
  5967. * src/PeerInteractionCommand.cc
  5968. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5969. Fixed broken gzip inflation.
  5970. Turn off segmented downloading if gzip content is smaller than or equal
  5971. to 1MiB and inflate the data on the fly, because HTTP response header
  5972. doesn't contain the length of inflated file we can't determin where
  5973. the chunk of data should be written.
  5974. On the other hand, if gzip content is larger than 1MB, then turn off
  5975. on the fly inflation, because some servers returns "content-type: gzip"
  5976. for *.tgz, *.gz files.
  5977. * src/DownloadCommand.cc
  5978. * src/HttpResponseCommand.cc
  5979. * src/HttpResponseCommand.h
  5980. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5981. Applied tizianomueller's patch to fix compile error.
  5982. * test/BitfieldManTest.cc
  5983. * test/BtRequestMessageTest.cc
  5984. * test/DefaultBtContextTest.cc
  5985. * test/DefaultDiskWriterTest.cc
  5986. * test/DefaultPieceStorageTest.cc
  5987. * test/HttpHeaderProcessorTest.cc
  5988. * test/HttpResponseTest.cc
  5989. * test/Metalink2RequestGroupTest.cc
  5990. * test/MetalinkParserControllerTest.cc
  5991. * test/MetalinkProcessorTest.cc
  5992. * test/PeerSessionResourceTest.cc
  5993. * test/UtilTest.cc
  5994. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. * Release 0.15.0
  5996. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5997. Reordered src files in POTFILES.in so that usage text appears first.
  5998. * po/POTFILES.in
  5999. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Bump up version number to 0.15.0
  6001. * configure.ac
  6002. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6003. Added Bulgarian translation.
  6004. Updated Catalan, Spanish, French and Japanese translations.
  6005. Thanks to all translators.
  6006. * po/LINGUAS
  6007. * po/bg.po
  6008. * po/ca.po
  6009. * po/es.po
  6010. * po/fr.po
  6011. * po/ja.po
  6012. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6013. Updated feature list. Added libz for dependency section.
  6014. Added a description about unit testing using CppUnit.
  6015. * README
  6016. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6017. Added a test for libz. Quoted where it is necessary.
  6018. * build_test.sh
  6019. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6020. Added GZip to `Enabled Features' list.
  6021. * src/FeatureConfig.cc
  6022. * src/FeatureConfig.h
  6023. * test/FeatureConfigTest.cc
  6024. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6025. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6026. the transfer has not yet started.
  6027. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6028. * src/SegmentMan.cc
  6029. * src/SegmentMan.h
  6030. * test/SegmentManTest.cc
  6031. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6032. Cache last calculated average download/upload speed.
  6033. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6034. cached value.
  6035. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6036. * src/PeerStat.h
  6037. * src/SpeedCalc.cc
  6038. * src/SpeedCalc.h
  6039. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Call parseUrl directly.
  6041. * src/Request.cc (resetUrl)
  6042. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6043. Supported absolute/relative path in Location header field.
  6044. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6045. * src/HttpHeader.cc
  6046. * src/HttpHeader.h
  6047. * src/HttpResponse.cc
  6048. * src/HttpSkipResponseCommand.cc
  6049. * src/Request.cc
  6050. * test/HttpHeaderTest.cc
  6051. * test/HttpResponseTest.cc
  6052. * test/RequestTest.cc
  6053. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6054. Changed help text for --load-cookie option.
  6055. * doc/aria2c.1.txt
  6056. * src/usage_text.h
  6057. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6058. Regenerated test/Makefile.in to remove stale ChangeLog.
  6059. * test/Makefile.in
  6060. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6061. Updated po files.
  6062. * po/aria2c.pot
  6063. * po/*.po
  6064. * po/*.gmo
  6065. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6066. Bump up version number to 0.15.0b
  6067. * configure.ac
  6068. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6069. Externalize messages.
  6070. * src/RequestGroupMan.cc
  6071. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6072. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6073. Use File::exists() instead of File::isFile() to allow non-regular file
  6074. such as block special files.
  6075. * src/AbstractDiskWriter.cc
  6076. * src/MultiDiskWriter.cc
  6077. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6078. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6079. * src/gai_strerror.h
  6080. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. Fixed compile error. Thanks gknauf for the patch.
  6082. * src/asctime_r.c
  6083. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6084. Included asctime_r.h from a2time.h.
  6085. * src/a2time.h
  6086. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6087. Added a message "aria2 doesn't verify signature" to log message when
  6088. signature file is saved.
  6089. * src/RequestGroupMan.cc
  6090. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Added the ability to save signature when download is completed if
  6092. signature is available. The filename of signature file is the path to
  6093. download file followed by ".sig". If it already exists, then signature
  6094. will not be saved.
  6095. * src/RequestGroupMan.cc
  6096. * src/Signature.cc
  6097. * test/SignatureTest.cc
  6098. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6099. Updated the descriptions for --bt-seed-unverified.
  6100. * doc/aria2c.1
  6101. * doc/aria2c.1.html
  6102. * doc/aria2c.1.txt
  6103. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6104. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6105. that this is not going to verify files using piece hashes.
  6106. * src/HelpItemFactory.cc
  6107. * src/OptionHandlerFactory.cc
  6108. * src/RequestGroup.cc
  6109. * src/option_processing.cc
  6110. * src/prefs.cc
  6111. * src/prefs.h
  6112. * src/usage_text.h
  6113. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6114. Added the ability to retrieve signature from Metalink file.
  6115. A retrieved signature is stored in Signature class and it is held by
  6116. DownloadContext class. Note that aria2 doesn't verify signature.
  6117. * src/DownloadContext.cc
  6118. * src/DownloadContext.h
  6119. * src/Makefile.am
  6120. * src/Makefile.in
  6121. * src/Metalink2RequestGroup.cc
  6122. * src/MetalinkEntry.cc
  6123. * src/MetalinkEntry.h
  6124. * src/MetalinkParserController.cc
  6125. * src/MetalinkParserController.h
  6126. * src/MetalinkParserStateMachine.cc
  6127. * src/MetalinkParserStateMachine.h
  6128. * src/Signature.cc
  6129. * src/Signature.h
  6130. * src/SignatureMetalinkParserState.cc
  6131. * src/SignatureMetalinkParserState.h
  6132. * src/VerificationMetalinkParserState.cc
  6133. * src/VerificationMetalinkParserState.h
  6134. * test/Metalink2RequestGroupTest.cc
  6135. * test/MetalinkParserControllerTest.cc
  6136. * test/MetalinkProcessorTest.cc
  6137. * test/test.xml
  6138. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6139. Close DiskAdaptor after renaming file.
  6140. * src/RequestGroup.cc
  6141. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Corrected indentation
  6143. * src/DefaultBtProgressInfoFile.cc
  6144. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Moved the calls of std::ios::exceptions() inside of try-catch block
  6146. because if an error occurred in constructor of std::fstream, then
  6147. exception is thrown immediately when std::ios::exceptions() is called
  6148. which results unhandled exception and aria2c aborts.
  6149. * src/DefaultBtProgressInfoFile.cc
  6150. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6151. Added the test for the previous change in DefaultBtContext.cc
  6152. * test/DefaultBtContextTest.cc
  6153. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6154. Fixed the bug that causes infinite loop when the number of pieces are
  6155. fewer than allowed fast set size which is 10 by default.
  6156. * src/DefaultBtContext.cc
  6157. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6158. Updated the descriptions for -j, -s. Added --bt-seed.
  6159. * doc/aria2c.1
  6160. * doc/aria2c.1.html
  6161. * doc/aria2c.1.txt
  6162. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6164. aria2 seeds previously downloaded files without validating piece hashs.
  6165. * src/HelpItemFactory.cc
  6166. * src/OptionHandlerFactory.cc
  6167. * src/RequestGroup.cc
  6168. * src/option_processing.cc
  6169. * src/prefs.cc
  6170. * src/prefs.h
  6171. * src/usage_text.h
  6172. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6173. Updated DESCRIPTION of man page.
  6174. * doc/aria2c.1
  6175. * doc/aria2c.1.html
  6176. * doc/aria2c.1.txt
  6177. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6179. Don't define `struct addrinfo' when __sun is defined.
  6180. * src/getaddrinfo.h
  6181. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6183. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6184. second argument is of type `struct _stati64'. Otherwise it is defined as
  6185. `struct stat'.
  6186. * src/AbstractDiskWriter.cc
  6187. * src/File.cc
  6188. * src/File.h
  6189. * src/a2io.h
  6190. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6191. Fixed the compile error in hurd-i386
  6192. See the original bug report:
  6193. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6194. * src/a2io.h
  6195. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Code cleanup.
  6197. * src/PeerAbstractCommand.cc
  6198. * src/PeerAbstractCommand.h
  6199. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6200. Removed TransferEncoding.
  6201. * src/DownloadCommand.cc
  6202. * src/DownloadCommand.h
  6203. * src/HttpResponseCommand.cc
  6204. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Updated po files.
  6206. * po/aria2c.pot
  6207. * po/*.po
  6208. * po/*.gmo
  6209. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6210. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6211. * src/A2STR.cc
  6212. * src/A2STR.h
  6213. * src/ChunkedDecoder.cc
  6214. * src/ChunkedDecoder.h
  6215. * src/ChunkedEncoding.cc: Removed
  6216. * src/ChunkedEncoding.h: Removed
  6217. * src/DownloadCommand.cc
  6218. * src/DownloadCommand.h
  6219. * src/HttpDownloadCommand.cc
  6220. * src/HttpResponse.cc
  6221. * src/HttpResponse.h
  6222. * src/HttpResponseCommand.cc
  6223. * src/HttpSkipResponseCommand.cc
  6224. * src/HttpSkipResponseCommand.h
  6225. * src/Makefile.am
  6226. * src/TransferEncoding.h: Removed
  6227. * test/ChunkedDecoderTest.cc
  6228. * test/ChunkedEncodingTest.cc: Removed
  6229. * test/HttpResponseTest.cc
  6230. * test/Makefile.am
  6231. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Use append instead of insert.
  6233. * src/GZipDecoder.cc
  6234. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6235. Updated doc
  6236. * src/Decoder.h
  6237. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6238. Updated usage text for -s option.
  6239. * src/usage_text.h
  6240. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6241. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6242. * src/Request.cc
  6243. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6244. Cleaned up configure.ac.
  6245. * configure.ac
  6246. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6248. AC_ARG_ENABLE.
  6249. * configure.ac
  6250. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6251. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6252. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6253. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6254. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6255. fly and writes decoded data to a local disk.
  6256. * README
  6257. * README.html
  6258. * configure.ac
  6259. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6260. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6261. * m4/libz.m4
  6262. * src/Decoder.h
  6263. * src/DownloadCommand.cc
  6264. * src/DownloadCommand.h
  6265. * src/Exception.h
  6266. * src/GZipDecoder.cc
  6267. * src/GZipDecoder.h
  6268. * src/HttpHeader.cc
  6269. * src/HttpHeader.h
  6270. * src/HttpRequest.cc
  6271. * src/HttpRequest.h
  6272. * src/HttpResponse.cc
  6273. * src/HttpResponse.h
  6274. * src/HttpResponseCommand.cc
  6275. * src/Makefile.am
  6276. * test/GZipDecoderTest.cc
  6277. * test/HttpRequestTest.cc
  6278. * test/HttpResponseTest.cc
  6279. * test/Makefile.am
  6280. * test/Makefile.in
  6281. * test/gzip_decode_test.gz
  6282. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6283. Clarified usage of -j option.
  6284. * src/usage_text.h
  6285. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. Disabled getting size from the response of RETR.
  6287. If SIZE command failed, then disable resuming and segmented downloading.
  6288. * src/FtpConnection.cc
  6289. * src/FtpConnection.h
  6290. * src/FtpNegotiationCommand.cc
  6291. * src/FtpNegotiationCommand.h
  6292. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6293. Use digits to find first byte of file size, which makes the intention
  6294. of the code clearer.
  6295. * src/FtpConnection.cc
  6296. Don't call validateTotalLength() when size is 0.
  6297. * src/FtpNegotiationCommand.cc
  6298. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Updated po files.
  6300. * po/aria2c.pot
  6301. * po/*.gmo
  6302. * po/*.po
  6303. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6304. Clarified usage text for --split option.
  6305. * src/usage_text.h
  6306. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6307. Bump up version number to 0.15.0dev. "dev" means "development"
  6308. version, which means I started the development of the next release!
  6309. * src/configure.ac
  6310. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6311. If FTP server returns negative response with REST raw command and
  6312. requested range is not 0, throw exception. If requested range is 0,
  6313. continue download a file from 0 byte.
  6314. * src/FtpNegotiationCommand.cc
  6315. * src/FtpNegotiationCommand.h
  6316. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6317. Supported FTP server which don't recognize SIZE raw command.
  6318. If SIZE raw command is failed, aria2 will try to get file size
  6319. from the response of RETR raw command. If both attempts are failed,
  6320. then resuming and segmented downloading are disabled.
  6321. * src/FtpConnection.cc
  6322. * src/FtpConnection.h
  6323. * src/FtpNegotiationCommand.cc
  6324. * src/FtpNegotiationCommand.h
  6325. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. * Release 0.14.0+1
  6327. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Bump up version number to 0.14.0+1
  6329. * src/configure.ac
  6330. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Fixed the code that refers static member variable from non-static
  6332. context.
  6333. * src/DefaultPeerStorage.cc
  6334. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. * Release 0.14.0
  6336. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Added build test script
  6338. * build_test.sh
  6339. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Updated ja.po
  6341. * src/ja.po
  6342. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6343. Bump up version number to 0.14.0
  6344. * src/configure.ac
  6345. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Updated ja.po and fr.po. Great thanks for french translators and
  6347. Sebastien WILLEMIJNS.
  6348. * po/fr.po
  6349. * po/ja.po
  6350. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6351. Added configure option to enable/disable epoll support.
  6352. * configure.ac
  6353. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. Updated man page.
  6355. * doc/aria2c.1.txt
  6356. * doc/aria2c.1
  6357. * doc/aria2c.1.html
  6358. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6359. Added missing default value '5' to the usage of --split option.
  6360. * src/HelpItemFactory.cc
  6361. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. Filled up pieces based on the number of missing blocks, rather than
  6363. simplay the number of piece * block length.
  6364. * src/BtRequestFactory.h
  6365. * src/DefaultBtInteractive.cc
  6366. * src/DefaultBtInteractive.h
  6367. * src/DefaultBtRequestFactory.cc
  6368. * src/DefaultBtRequestFactory.h
  6369. * src/Piece.cc
  6370. * src/Piece.h
  6371. * test/BitfieldManTest.cc
  6372. * test/DefaultBtRequestFactoryTest.cc
  6373. * test/MockBtRequestFactory.h
  6374. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6375. Made _epEvents a member variable.
  6376. * src/DownloadEngine.cc
  6377. * src/DownloadEngine.h
  6378. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6379. Cancel download if http redirect is bounded more than 20 times.
  6380. * src/AbstractCommand.cc
  6381. * src/HttpSkipResponseCommand.cc
  6382. * src/Request.cc
  6383. * src/Request.h
  6384. * test/RequestTest.cc
  6385. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6386. Fixed unhandled exception(removed keyword `new').
  6387. * src/SocketCore.cc (initEPOLL)
  6388. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6389. Removed visit(const MetaEntry*)
  6390. * src/MetaEntryVisitor.h:
  6391. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6392. and made them virtual.
  6393. * src/BencodeVisitor.h
  6394. * src/BencodeVisitor.cc
  6395. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6396. Updated po files.
  6397. * po/aria2c.pot
  6398. * po/*.po
  6399. * po/*.gmo
  6400. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6402. the number of socket to watch out.
  6403. * src/PeerInteractionCommand.cc
  6404. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6405. When there is not enough space in disk when writing a chunk of data,
  6406. aria2 now prints the message to the console to warn user and aborts
  6407. its download. Not all downloads are canceled because some downloads
  6408. may use another disk or partition. BUG#1640332
  6409. * src/AbstractDiskWriter.cc
  6410. * src/PeerAbstractCommand.cc
  6411. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6412. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6413. setHaltRequested(true) to cancel download.
  6414. * src/PeerInteractionCommand.h
  6415. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6416. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6417. socket from int to sock_t as sockets are unsigned in Windows.
  6418. For AsyncNameResolver, DownloadEngine, I did additional modification
  6419. for the portion of the code changed according to epoll support.
  6420. I defined sock_t in a2netcompat.h to use sock_t without including
  6421. SocketCore.h.
  6422. * src/AsyncNameResolver.cc
  6423. * src/AsyncNameResolver.h
  6424. * src/DownloadEngine.cc
  6425. * src/DownloadEngine.h
  6426. * src/SocketCore.cc
  6427. * src/SocketCore.h
  6428. * src/a2netcompat.h
  6429. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6430. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6431. changes in the patch were applied.
  6432. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6433. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6434. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6435. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6436. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6437. a2io.h and common.h were modified.
  6438. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6439. MinGW.
  6440. * src/common.h: Changed off_t to 64 bit in MinGW.
  6441. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6442. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6443. only a2netcompat.h is modified.
  6444. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6445. directives.
  6446. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6448. only gai_strerror.h is modified.
  6449. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6450. winsock errors in MinGW.
  6451. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6453. follow sources are applied.
  6454. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6455. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6456. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6457. I included locale.h from Platform.cc.
  6458. * src/main.cc: Moved common setup/teardown code to Platform class.
  6459. * test/AllTest.cc: Use Platform class.
  6460. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6461. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6463. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6464. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6465. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6466. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6467. aria2-0.13.2+1-mingw-2.patch.
  6468. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6469. systems which don't have termious.h. I moved the directive inside of
  6470. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6471. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6472. anyway.
  6473. * src/asctime_r.h
  6474. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6475. I added 2nd argument to the prototype declaration.
  6476. * src/StringFormat.cc: Get rid of vasprintf.
  6477. * src/getaddrinfo.h: Fixed constants.
  6478. * configure.ac: Added the check for asctime_r function.
  6479. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6480. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6481. Added writable test for Socket when the sending message is in progress.
  6482. Usually the sending message is piece message. Without wriable check,
  6483. upload latency is dropped to more than 1sec.
  6484. * src/PeerInteractionCommand.cc
  6485. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6486. Create only requested files and files which shares a piece with
  6487. requested file in multi-torrent downloads. Directory structures are
  6488. also created in the same rule.
  6489. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6490. DiskWriterEntry as in the previous implementation.
  6491. * src/MultiDiskWriter.cc
  6492. * src/MultiFileAllocationIterator.cc
  6493. * src/MultiFileAllocationIterator.h
  6494. * test/MultiFileAllocationIteratorTest.cc
  6495. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6496. Commented out -lprofiler
  6497. * src/Makefile.am
  6498. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6499. Bump up version number to 0.14.0b.
  6500. * src/configure.ac
  6501. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Actively establish connection to peers in seeding, when peer cache
  6503. is not full and max upload speed limit is not reached.
  6504. * src/ActivePeerConnectionCommand.cc
  6505. * src/ActivePeerConnectionCommand.h
  6506. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6507. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6508. to make room more fleshy, recently found peers.
  6509. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6510. it.
  6511. * src/DefaultPeerStorage.cc
  6512. * test/DefaultPeerStorageTest.cc
  6513. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6514. Returns cached data only when the previous receiveHandshake() is called
  6515. with peek = true.
  6516. * src/PeerConnection.cc (receiveHandshake)
  6517. * src/PeerConnection.h (receiveHandshake)
  6518. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6519. Changed default value of -s option from 1 to 5.
  6520. Also max value of -s option is changed from 5 to 16.
  6521. * src/HelpItemFactory.cc
  6522. * src/OptionHandlerFactory.cc
  6523. * src/option_processing.cc
  6524. * src/usage_text.h
  6525. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6526. Changed -s options behavior. Now it means the number of connections
  6527. made simultaneously in each http/ftp download.
  6528. If 1 URL is specified, the behavior is the same with old implementation.
  6529. If -s N is given and more than N URLs are specified, first N URLs are
  6530. used and remaining URLs are used for backup. If less than N URLs are
  6531. specified, some of URLs are used more than once so that totally N
  6532. connections are made simultaneously.
  6533. * src/main.cc
  6534. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Included missing iosfwd or ostream header.
  6536. * src/RequestGroupMan.cc
  6537. * src/TaggedItem.cc
  6538. * src/TaggedItem.h
  6539. * src/Util.cc
  6540. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6542. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6543. * src/HttpConnection.cc: Included missing sstream.
  6544. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Added --bt-max-open-files option.
  6546. * src/DefaultPieceStorage.cc
  6547. * src/HelpItemFactory.cc
  6548. * src/MultiDiskAdaptor.cc
  6549. * src/MultiDiskAdaptor.h
  6550. * src/OptionHandlerFactory.cc
  6551. * src/option_processing.cc
  6552. * src/prefs.cc
  6553. * src/prefs.h
  6554. * src/usage_text.h
  6555. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Fixed the bug that aria2 aborts when a path to a directory is given
  6557. in command-line.
  6558. * src/ProtocolDetector.cc
  6559. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. Limited the number files opened in each BitTorrent download. The default
  6561. value is 100. The option to change this value will be added.
  6562. * src/MultiDiskAdaptor.cc
  6563. * src/MultiDiskAdaptor.h
  6564. * src/MultiFileAllocationIterator.cc
  6565. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Fixed the bug that HTTP downloads don't start with old libraries.
  6567. * src/HttpHeaderProcessor.cc
  6568. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6569. Use empty() instead of size() > 0.
  6570. * src/HttpConnection.cc
  6571. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6572. Drop connection if the incoming peer ID is the same with localhost's
  6573. one. The previous implementation drops connection when incoming peer's
  6574. IP address is the same with localhost's one.
  6575. * src/PeerListenCommand.cc
  6576. * src/DefaultBtInteractive.cc
  6577. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Returns cached data without checking whether socket is readable
  6579. if the cache is available.
  6580. * src/PeerConnection.cc (receiveHandshake)
  6581. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6582. Included stdint.h
  6583. * src/common.h
  6584. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6585. Removed duplicate HAVE_GETTIMEOFDAY
  6586. * src/Makefile.am
  6587. * src/Makefile.in
  6588. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Use interval as a minInterval when minInterval is not supplied.
  6590. * src/DefaultBtAnnounce.cc
  6591. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6593. attempt is failed, then 2nd attempt get kicked out more quickly.
  6594. And it is now static const member of DefaultBtAnnounce.
  6595. * src/DefaultBtAnnounce.h
  6596. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6598. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6599. * src/ActivePeerConnectionCommand.cc
  6600. * src/BtConstants.h
  6601. * src/BtRuntime.h
  6602. * src/DHTGetPeersCommand.cc
  6603. * src/DefaultBtAnnounce.cc
  6604. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6605. BtRuntime::MAX_PEERS.
  6606. * src/DefaultPeerStorage.h
  6607. * src/InitiatorMSEHandshakeCommand.cc
  6608. * src/PeerInitiateConnectionCommand.cc
  6609. * src/PeerInteractionCommand.cc
  6610. * src/PeerReceiveHandshakeCommand.cc
  6611. * src/TrackerWatcherCommand.cc
  6612. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6613. Always Connect to _numNewConnection
  6614. * src/ActivePeerConnectionCommand.cc
  6615. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Made `begin' unsigned int.
  6617. * src/GrowSegment.h
  6618. * src/Piece.cc
  6619. * src/Piece.h
  6620. * src/PiecedSegment.cc
  6621. * src/PiecedSegment.h
  6622. * src/Segment.h
  6623. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6624. Calculate piece hash when data is arrived if the data is arrived in
  6625. order. This removes additional read operation for hash calculation.
  6626. If the data is arrived in out of order, the hash is calucated when the
  6627. piece is completed. This is the same behavior as the old implementation.
  6628. * src/BtPieceMessage.cc
  6629. * src/DefaultBtProgressInfoFile.cc
  6630. * src/DefaultPieceStorage.cc
  6631. * src/DownloadCommand.cc
  6632. * src/DownloadCommand.h
  6633. * src/DownloadEngine.cc
  6634. * src/GrowSegment.cc
  6635. * src/GrowSegment.h
  6636. * src/Piece.cc
  6637. * src/Piece.h
  6638. * src/PiecedSegment.cc
  6639. * src/PiecedSegment.h
  6640. * src/Segment.h
  6641. * test/PieceTest.cc
  6642. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Try to keep the ordering of outgoing piece message.
  6644. * src/DefaultBtMessageDispatcher.cc
  6645. (DefaultBtMessageDispatcher::sendMessages)
  6646. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6647. Fixed busy loop when error/hup epoll events occur.
  6648. * src/AbstractCommand.cc
  6649. * src/PeerAbstractCommand.cc
  6650. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Added --bt-request-peer-speed-limit option, which was a constant
  6652. SLOW_SPEED_THRESHOLD.
  6653. * src/ActivePeerConnectionCommand.cc
  6654. * src/ActivePeerConnectionCommand.h
  6655. * src/BtConstants.h
  6656. * src/HelpItemFactory.cc
  6657. * src/OptionHandlerFactory.cc
  6658. * src/PeerReceiveHandshakeCommand.cc
  6659. * src/option_processing.cc
  6660. * src/prefs.cc
  6661. * src/prefs.h
  6662. * src/usage_text.h
  6663. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Removed repeated call of getTopDirPath(). Instead, call it once and
  6665. cache the result.
  6666. * src/MultiDiskAdaptor.cc
  6667. * src/MultiDiskAdaptor.h
  6668. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6669. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6670. Fixed compile error on debian etch.
  6671. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6672. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6673. it is undefined.
  6674. * src/Util.cc (ULLONG_MAX)
  6675. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6676. Added epoll support. Use epoll if it is available. If not, use select.
  6677. When async dns is enabled in compile time, epoll support is enabled
  6678. only when aria2 is built with c-ares. This condition statement is
  6679. defined in a2io.h.
  6680. Currently aria2 supports both c-ares and ares, but ares is maintained
  6681. for quite a while and debian already has c-ares package, ares support
  6682. will be dropped in the future version.
  6683. * configure.ac
  6684. * src/AbstractCommand.cc
  6685. * src/AsyncNameResolver.cc
  6686. * src/AsyncNameResolver.h
  6687. * src/Command.cc
  6688. * src/Command.h
  6689. * src/DownloadEngine.cc
  6690. * src/DownloadEngine.h
  6691. * src/PeerAbstractCommand.cc
  6692. * src/SocketCore.cc
  6693. * src/SocketCore.h
  6694. * src/a2io.h
  6695. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6696. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6697. directive.
  6698. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6699. Do not do write operation to /dev/null file.
  6700. * src/LogFactory.cc
  6701. * src/SimpleLogger.cc
  6702. Replaced vasprintf with vsnprintf
  6703. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6704. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. * src/BtRequestMessage.cc
  6706. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6707. for segmentation fault caused by previous commit.
  6708. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Reduced the usage of gettimeofday().
  6710. * src/DefaultBtMessageDispatcher.cc
  6711. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6712. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6713. * src/RequestSlot.cc
  6714. * src/RequestSlot.h
  6715. (RequestSlot::isTimeout)
  6716. Made RequestSlot have a reference to Piece object to avoid find
  6717. Piece repeatedly.
  6718. * src/DefaultBtMessageDispatcher.cc
  6719. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6720. * src/RequestSlot.cc
  6721. * src/RequestSlot.h
  6722. (RequestSlot::getPiece)
  6723. * test/DefaultBtMessageDispatcherTest.cc
  6724. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. * src/TimeA2.cc
  6726. * src/TimeA2.h
  6727. (Time::difference): New function.
  6728. (Time::elapsed): Done optimization.
  6729. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6731. directive.
  6732. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6733. * src/option_processing.cc: Added missing `defined' keyword to #if
  6734. directive.
  6735. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Bump up version number to 0.13.2+1
  6737. * src/configure.ac
  6738. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6739. Refactored broken outstanding piece handling.
  6740. * src/DefaultPieceStorage.cc
  6741. * src/DefaultPieceStorage.h
  6742. * src/Piece.cc
  6743. * src/Piece.h
  6744. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6746. name collision of static variable and predefined macro.
  6747. * src/BtContext.cc
  6748. * src/BtContext.h
  6749. * src/CookieBoxFactory.cc
  6750. * src/CookieBoxFactory.h
  6751. * src/CookieParser.cc
  6752. * src/CookieParser.h
  6753. * src/DefaultBtContext.cc
  6754. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6755. * src/RequestGroup.cc
  6756. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6757. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6758. * Release 0.13.2
  6759. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6761. * po/fr.po
  6762. * po/ja.po
  6763. * po/aria2c.pot
  6764. * po/*.po
  6765. * po/*.gmo
  6766. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6767. Bump up version number to 0.13.2
  6768. * src/configure.ac
  6769. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6770. Refactord.
  6771. * src/RequestGroupMan.cc
  6772. (removeStoppedGroup)
  6773. (fillRequestGroupFromReserver)
  6774. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Fixed compile error on Ubuntu.
  6776. * src/BtPieceMessage.cc
  6777. * src/MessageDigestHelper.cc
  6778. * src/Util.cc
  6779. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6780. Fixed compile error when configured with --disable-bittorrent
  6781. * test/DownloadHandlerFactoryTest.cc
  6782. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6783. Done make update-po
  6784. * po/aria2c.pot
  6785. * po/*.po
  6786. * po/*.gmo
  6787. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Bump up version number to 0.13.2rc.
  6789. * src/configure.ac
  6790. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Made option name bold. Updated SYNOPSIS to make it more readable.
  6792. * doc/aria2c.1.txt
  6793. * doc/aria2c.1
  6794. * doc/aria2c.1.html
  6795. * src/version_usage.cc
  6796. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Refactored. Use std::string instead of size and char*.
  6798. * Data.cc
  6799. * Data.h
  6800. * test/Data.cc
  6801. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. Added trimSelf(). Rewritten trim() to use trimSelf().
  6803. * Util.cc
  6804. * Util.h
  6805. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6807. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6808. Fixed compile error when configured with --disable-metalink.
  6809. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6810. * test/FeatureConfigTest.cc
  6811. * test/DownloadHandlerFactoryTest.cc
  6812. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6813. Fixed compile error when configured with --without-gnutls
  6814. --without-openssl
  6815. * src/main.cc
  6816. * test/DefaultBtProgressInfoFileTest.cc
  6817. * test/SegmentManTest.cc
  6818. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6819. Fixed compile error with OpenSSL.
  6820. * src/IteratableChunkChecksumValidator.cc
  6821. * src/LibsslDHKeyExchange.h
  6822. * src/MessageDigestHelper.cc
  6823. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6824. Revert the default value of --max-concurrent-downloads to 5.
  6825. Revert the default value of --metalink-servers to 5.
  6826. Man pages was also updated.
  6827. * src/option_processing.cc
  6828. * doc/aria2c.1.txt
  6829. * doc/aria2c.1.html
  6830. * doc/aria2c.1
  6831. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6832. Returns const reference:
  6833. DownloadContext::getPieceHash, DownloadContext::getName,
  6834. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6835. BtContext::getInfoHashAsString,
  6836. * src/BtContext.h
  6837. * src/DefaultBtContext.cc
  6838. * src/DefaultBtContext.h
  6839. * src/DownloadContext.h
  6840. * src/SingleFileDownloadContext.h
  6841. * test/MockBtContext.h
  6842. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6843. * src/RequestGroup.h (getDir): Removed.
  6844. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Returns const reference. The internal urlencode function was optimized
  6846. a little bit.
  6847. * src/Request.cc
  6848. * src/Request.h
  6849. * src/HttpRequest.cc
  6850. * src/HttpRequest.h
  6851. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6852. Defined option name and possible values as std::string to reduce
  6853. temporary string object creation in runtime.
  6854. * src/HelpItemFactory.cc
  6855. * src/LogFactory.cc
  6856. * src/Option.cc
  6857. * src/OptionHandlerFactory.cc
  6858. * src/option_processing.cc
  6859. * src/prefs.cc
  6860. * src/prefs.h
  6861. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6862. Return const reference.
  6863. * src/DownloadHandlerConstants.cc
  6864. * src/DownloadHandlerConstants.h
  6865. (getMetalinkExtensions)
  6866. (getMetalinkContentTypes)
  6867. (getBtExtensions)
  6868. (getBtContentTypes)
  6869. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. * src/HttpHeader.cc (get): Rewritten.
  6871. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Make HttpHeader::getFirst(...) return const reference.
  6873. * src/HttpHeader.cc
  6874. * src/HttpHeader.h
  6875. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6877. it with V_TRUE.
  6878. * src/DefaultPieceStorage.cc
  6879. * src/DownloadCommand.cc
  6880. * src/FtpNegotiationCommand.cc
  6881. * src/HttpRequest.cc
  6882. * src/InitiateConnectionCommand.cc
  6883. * src/RequestGroup.cc
  6884. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Made Option::get(...) return const reference of std::string.
  6886. * src/Option.cc
  6887. * src/Option.h
  6888. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Replaced std:copy with insert.
  6890. * src/DefaultBtMessageDispatcher.cc
  6891. * src/DefaultPieceStorage.cc
  6892. * src/DownloadEngineFactory.cc
  6893. * src/RequestGroup.cc
  6894. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6895. Included SocketCore.h to fix compiler warning.
  6896. * src/InitiateConnectionCommand.cc
  6897. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6898. Put piece selection strategy algorithm to RarestPieceSelector class,
  6899. Added a switch to choose whether randomized selection so that unit
  6900. tests emit same results in, possibly, win32.
  6901. * src/DefaultPieceStorage.cc
  6902. * src/DefaultPieceStorage.h
  6903. * src/RarestPieceSelector.cc
  6904. * src/RarestPieceSelector.h
  6905. * test/DefaultPieceStorageTest.cc
  6906. * test/RarestPieceSelectorTest.cc
  6907. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6908. Don't pool connection if HTTP proxy is enabled.
  6909. * src/FtpFinishDownloadCommand.cc
  6910. * src/FtpNegotiationCommand.cc
  6911. * src/HttpSkipResponseCommand.cc
  6912. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6914. * src/AbstractCommand.cc
  6915. * src/AbstractCommand.h
  6916. * src/ActivePeerConnectionCommand.cc
  6917. * src/FtpInitiateConnectionCommand.cc
  6918. * src/HttpInitiateConnectionCommand.cc
  6919. * src/InitiateConnectionCommandFactory.cc
  6920. * src/PeerAbstractCommand.cc
  6921. * src/PeerAbstractCommand.h
  6922. * src/PeerInitiateConnectionCommand.cc
  6923. * src/TrackerWatcherCommand.cc
  6924. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Sort RequestSlot in ascending order and manipulate them using
  6926. lower_bound.
  6927. * src/DefaultBtMessageDispatcher.cc
  6928. * src/DefaultBtMessageDispatcher.h
  6929. (getMessageQueue): Added const qualifier.
  6930. (getRequestSlots): Added const qualifier.
  6931. (sendMessages): Use empty() instead of size().
  6932. (doCancelSendingPieceAction): Use HandleEvent object.
  6933. (doAbortOutstandingRequestAction): Rewritten.
  6934. (doChokedAction): Rewritten.
  6935. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6936. (isOutstandingRequest): Rewritten.
  6937. (getOutstandingRequest): Rewritten.
  6938. (removeOutstandingRequest): Rewritten.
  6939. (addOutstandingRequest): Rewritten.
  6940. * src/RequestSlot.cc
  6941. * src/RequestSlot.h
  6942. (operator=): Rewritten.
  6943. (operator!=): New function.
  6944. (operator<): New function.
  6945. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6946. * src/DefaultBtRequestFactory.cc
  6947. (doChokedAction): Rewritten.
  6948. (removeCompletedPiece): Rewritten.
  6949. (removeTargetPiece): Rewritten.
  6950. (createRequestMessages): Added the debug log.
  6951. (createRequestMessagesOnEndGame: Added the debug log.
  6952. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Added the debug log message.
  6954. * src/BtPieceMessage.cc (doReceivedAction)
  6955. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6957. used lower_bound to process them rather than linear search.
  6958. * src/DHTPeerAnnounceStorage.cc
  6959. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6960. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6961. peer has at least one completed piece.
  6962. * src/Peer.cc
  6963. * src/Peer.h
  6964. * src/PeerInteractionCommand.cc
  6965. * src/PeerSessionResource.cc
  6966. * src/PeerSessionResource.h
  6967. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6968. Removed unnecessary sorting
  6969. * src/DefaultPieceStorage (DefaultPieceStorage)
  6970. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Rewritten the portion of the code that mangaes allowed fast indexes.
  6972. * src/PeerSessionResource.cc
  6973. * src/PeerSessionResource.h
  6974. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Removed the invalid string including '\r' from ru.po and
  6976. did make update-po.
  6977. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6978. Added --log-level and --summary-interval to man page.
  6979. * doc/aria2c.1.txt
  6980. * doc/aria2c.1.html
  6981. * doc/aria2c.1
  6982. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Added --log-level option to specify log level. Log messages under
  6984. the specified level are not output. Default value is `debug'.
  6985. * src/HelpItemFactory.cc
  6986. * src/LogFactory.cc
  6987. * src/LogFactory.h
  6988. * src/Logger.h
  6989. * src/OptionHandlerFactory.cc
  6990. * src/SimpleLogger.cc
  6991. * src/SimpleLogger.h
  6992. * src/main.cc
  6993. * src/option_processing.cc
  6994. * src/prefs.h
  6995. * src/usage_text.h
  6996. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6997. Print download progress summary of all parallel downloads in specified
  6998. interval, default 60 secs. While aria2 could download several files
  6999. in parallel (see -j option), it displayed just first download progress,
  7000. and the other downloads are hidden from the users. This new feature
  7001. prints all downloads currently in-progress to the console so that you
  7002. can check the status of all downloads. The interval can be adjusted
  7003. by --summary-interval option.
  7004. The progress readout is now cut so that all fits in the one line of
  7005. console.
  7006. * src/ConsoleStatCalc.cc
  7007. * src/ConsoleStatCalc.h
  7008. * src/HelpItemFactory.cc
  7009. * src/OptionHandlerFactory.cc
  7010. * src/RequestGroupMan.cc
  7011. * src/RequestGroupMan.h
  7012. * src/main.cc
  7013. * src/option_processing.cc
  7014. * src/prefs.h
  7015. * src/usage_text.h
  7016. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7017. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7018. * src/DownloadEngine.cc (DownloadEngine)
  7019. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7020. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7021. defined.
  7022. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7023. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Use erase+lower_bound+insert instead of sort.
  7025. * src/DefaultPieceStorage.cc (addPieceStats)
  7026. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7027. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7028. * src/A2STR.cc
  7029. * src/A2STR.h
  7030. * src/OptionParser.cc (parse)
  7031. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7032. Defined fake filename `[tracker.announce]' as static const std::string.
  7033. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7034. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. Defined default filename `index.html' as static const std::string
  7036. * src/SingleFileDownloadContext.cc
  7037. * src/SingleFileDownloadContext.h
  7038. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7039. Defined "[MEMORY]" as static const std::string.
  7040. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7041. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Defined control file's version number as static const std::string.
  7043. * src/DefaultBtProgressInfoFile.cc
  7044. * src/DefaultBtProgressInfoFile.h
  7045. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Use Request::METHOD_GET
  7047. * src/RequestGroup.cc (createNextCommandWithAdj)
  7048. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Defined "OK", "ERR", "INPR" as static const std::string
  7050. * src/RequestGroupMan.cc (showDownloadResults)
  7051. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Defined default client used in extended handshake as static const
  7053. std::string
  7054. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7055. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7057. * src/HttpConnection.cc (eraseConfidentialInfo)
  7058. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Defined default ftp user and password as static const std::string
  7060. * src/AuthConfigFactory.cc
  7061. * src/AuthConfigFactory.h
  7062. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7063. Defined strings used in netrc as static const std::string
  7064. * src/Netrc.cc
  7065. * src/Netrc.h
  7066. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Defined HTTP status as static const std::string
  7068. * src/AbstractProxyResponseCommand.cc
  7069. * src/HttpHeader.cc
  7070. * src/HttpHeader.h
  7071. * src/HttpResponse.cc
  7072. * src/HttpResponseCommand.cc
  7073. * src/HttpSkipResponseCommand.cc
  7074. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Defined "\r\n", "A", "I" as static const std::string
  7076. * src/A2STR.cc
  7077. * src/A2STR.h
  7078. * src/FtpConnection.cc
  7079. * src/FtpConnection.h
  7080. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7081. Added COLON_C(".") and used it in Request::parseUrl()
  7082. * src/A2STR.cc
  7083. * src/A2STR.h
  7084. * src/Request.cc (parseUrl)
  7085. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Changed the type of padName from `const std::string&' to `const char*'.
  7087. * src/MSEHandshake.cc (verifyPadLength)
  7088. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Defined "sha1" as static const std::string.
  7090. * src/MetalinkParserController.cc
  7091. * src/MetalinkParserController.h
  7092. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Defined message digest algorithm name as static const std::string
  7094. * src/DHTTokenTracker.cc
  7095. * src/DHTUtil.cc
  7096. * src/DefaultBtContext.cc
  7097. * src/MSEHandshake.cc
  7098. * src/MessageDigestHelper.cc
  7099. * src/Peer.cc
  7100. * src/messageDigest.cc
  7101. * src/messageDigest.h
  7102. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7103. Made string literals used in SAX parser static const std::string.
  7104. * src/FileMetalinkParserState.cc
  7105. * src/FileMetalinkParserState.h
  7106. * src/FilesMetalinkParserState.cc
  7107. * src/FilesMetalinkParserState.h
  7108. * src/InitialMetalinkParserState.cc
  7109. * src/InitialMetalinkParserState.h
  7110. * src/MetalinkMetalinkParserState.cc
  7111. * src/MetalinkMetalinkParserState.h
  7112. * src/PiecesMetalinkParserState.cc
  7113. * src/PiecesMetalinkParserState.h
  7114. * src/ResourcesMetalinkParserState.cc
  7115. * src/ResourcesMetalinkParserState.h
  7116. * src/VerificationMetalinkParserState.cc
  7117. * src/VerificationMetalinkParserState.h
  7118. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7120. * src/A2STR.cc
  7121. * src/A2STR.h
  7122. * src/File.cc
  7123. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7124. Defined static const std::string IP("ip"), PORT("port") and use them
  7125. instead of string literals.
  7126. * src/DefaultPeerListProcessor.cc
  7127. * src/DefaultPeerListProcessor.h
  7128. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Made string literals for torrent file processing static const
  7130. std::string.
  7131. * src/BtContext.cc
  7132. * src/BtContext.h
  7133. * src/DefaultBtContext.cc
  7134. * src/DefaultBtContext.h
  7135. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7136. Made string literal for tracker response static const std::string
  7137. * src/BtAnnounce.cc
  7138. * src/BtAnnounce.h
  7139. * src/DefaultBtAnnounce.cc
  7140. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Use DHTMessage::T instead of "t".
  7142. * src/DHTMessageTracker.cc (messageArrived)
  7143. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7144. Made keyName static const. Made trimmed charset static const
  7145. std::string.
  7146. * src/Util.cc (getContentDispositionFilename)
  7147. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Made USER_AGENT const. Made "/" static const std::string.
  7149. * src/A2STR.cc
  7150. * src/A2STR.h
  7151. * src/HttpRequest.cc
  7152. * src/HttpRequest.h
  7153. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Made string listeral to static const std::string:
  7155. "Content-Range", "Content-Length"
  7156. * src/HttpHeader.cc
  7157. * src/HttpHeader.h
  7158. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Made string listeral to static const std::string.
  7160. * src/HttpConnection.cc
  7161. * src/HttpHeader.cc
  7162. * src/HttpHeader.h
  7163. * src/HttpResponse.cc
  7164. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. Made string listeral to static const std::string.
  7166. * src/A2STR.cc
  7167. * src/A2STR.h
  7168. * src/SimpleLogger.cc
  7169. * src/SimpleLogger.h
  7170. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7171. Made string literal to static const std::string.
  7172. Rewritten CookieParser::setField.
  7173. * src/A2STR.cc
  7174. * src/A2STR.h
  7175. * src/CookieBoxFactory.cc
  7176. * src/CookieBoxFactory.h
  7177. * src/CookieParser.cc
  7178. * src/CookieParser.h
  7179. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Made string literal to static const std::string
  7181. * src/DHTAbstractMessage.cc
  7182. * src/DHTAnnouncePeerMessage.cc
  7183. * src/DHTAnnouncePeerMessage.h
  7184. * src/DHTAnnouncePeerReplyMessage.cc
  7185. * src/DHTAnnouncePeerReplyMessage.h
  7186. * src/DHTFindNodeMessage.cc
  7187. * src/DHTFindNodeMessage.h
  7188. * src/DHTFindNodeReplyMessage.cc
  7189. * src/DHTFindNodeReplyMessage.h
  7190. * src/DHTGetPeersMessage.cc
  7191. * src/DHTGetPeersMessage.h
  7192. * src/DHTGetPeersReplyMessage.cc
  7193. * src/DHTGetPeersReplyMessage.h
  7194. * src/DHTMessage.cc
  7195. * src/DHTMessage.h
  7196. * src/DHTMessageFactoryImpl.cc
  7197. * src/DHTMessageReceiver.cc
  7198. * src/DHTPingMessage.cc
  7199. * src/DHTPingMessage.h
  7200. * src/DHTPingReplyMessage.cc
  7201. * src/DHTPingReplyMessage.h
  7202. * src/DHTQueryMessage.cc
  7203. * src/DHTQueryMessage.h
  7204. * src/DHTResponseMessage.cc
  7205. * src/DHTResponseMessage.h
  7206. * src/DHTUnknownMessage.cc
  7207. * src/DHTUnknownMessage.h
  7208. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Made string literal to static const std::string
  7210. * src/BtChokeMessage.cc (toString)
  7211. * src/BtHaveAllMessage.cc (toString)
  7212. * src/BtHaveNoneMessage.cc (toString)
  7213. * src/BtInterestedMessage.cc (toString)
  7214. * src/BtNotInterestedMessage.cc (toString)
  7215. * src/BtUnchokeMessage.cc (toString)
  7216. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7217. Replaced "" with static const variable A2STR::NIL.
  7218. Replaced string comparison against "" with std::string::empty().
  7219. Added PROTO_* to Request class and use them as a protocol string
  7220. constant.
  7221. Made "started", "stopped", "completed" static const variable in
  7222. AnnounceList class.
  7223. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7224. Updated translations. Great thanks to translators.
  7225. * po/ca.po
  7226. * po/de.po
  7227. * po/fr.po
  7228. * po/it.po
  7229. * po/ja.po
  7230. * po/ru.po
  7231. * po/zh_CN.po
  7232. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7233. Updated man page; categorized options and fixed typo.
  7234. * doc/aria2c.1.txt
  7235. * doc/aria2c.1.html
  7236. * doc/aria2c.1
  7237. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7238. Removed const ref
  7239. * src/MetalinkEntry.cc (AddProtocolPreference)
  7240. * src/RequestGroup.cc (FindServerHostByHostname)
  7241. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. Rewritten Accept-Features handling.
  7243. * src/HttpRequestCommand.cc (createHttpRequest)
  7244. * src/a2functional.h
  7245. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Changed method signature:
  7247. DHTAbstractNodeLookupTask::toEntries
  7248. * src/DHTAbstractNodeLookupTask.cc
  7249. * src/DHTAbstractNodeLookupTask.h
  7250. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7251. Changed method signature:
  7252. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7253. * src/BtContext.h
  7254. * src/DefaultBtContext.cc
  7255. * src/DefaultBtContext.h
  7256. * src/DefaultBtInteractive.cc
  7257. * test/DefaultBtContextTest.cc
  7258. * test/MockBtContext.h
  7259. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7260. Changed method signature:
  7261. MultiFileAllocationIterator::makeDiskWriterEntries
  7262. * src/MultiFileAllocationIterator.cc
  7263. * src/MultiFileAllocationIterator.h
  7264. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7265. Changed method sinature:
  7266. MetalinkEntry::toFileEntry,
  7267. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7268. Metalinker::queryEntry
  7269. * src/Metalink2RequestGroup.cc
  7270. * src/MetalinkEntry.cc
  7271. * src/MetalinkEntry.h
  7272. * src/MetalinkHelper.cc
  7273. * src/MetalinkHelper.h
  7274. * src/Metalinker.cc
  7275. * src/Metalinker.h
  7276. * src/main.cc
  7277. * test/MetalinkHelperTest.cc
  7278. * test/MetalinkerTest.cc
  7279. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7280. Changed method sinature:
  7281. RequestGroup::getURIs
  7282. * src/RequestGroup.cc
  7283. * src/RequestGroup.h
  7284. * test/Metalink2RequestGroupTest.cc
  7285. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Changed method signature:
  7287. PeerListProcessor::extractPeer
  7288. * src/CompactPeerListProcessor.cc
  7289. * src/CompactPeerListProcessor.h
  7290. * src/DefaultBtAnnounce.cc
  7291. * src/DefaultPeerListProcessor.cc
  7292. * src/DefaultPeerListProcessor.h
  7293. * src/DelegatingPeerListProcessor.cc
  7294. * src/DelegatingPeerListProcessor.h
  7295. * src/PeerListProcessor.h
  7296. * src/UTPexExtensionMessage.cc
  7297. * test/DefaultPeerListProcessorTest.cc
  7298. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7299. Changed method signature:
  7300. BtRequestFactory::createRequestMessages,
  7301. BtRequestFactory::createRequestMessagesOnEndGame
  7302. * src/BtRequestFactory.h
  7303. * src/DefaultBtInteractive.cc
  7304. * src/DefaultBtRequestFactory.cc
  7305. * src/DefaultBtRequestFactory.h
  7306. * test/DefaultBtRequestFactoryTest.cc
  7307. * test/MockBtRequestFactory.h
  7308. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Changed method signature:
  7310. PieceStorage::getInFlightPieces
  7311. * src/DefaultBtProgressInfoFile.cc
  7312. * src/DefaultPieceStorage.cc
  7313. * src/DefaultPieceStorage.h
  7314. * src/PieceStorage.h
  7315. * src/UnknownLengthPieceStorage.cc
  7316. * src/UnknownLengthPieceStorage.h
  7317. * test/DefaultBtProgressInfoFileTest.cc
  7318. * test/MockPieceStorage.h
  7319. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. Changed method signature:
  7321. PostDownloadHandler::getNextRequestGroups
  7322. Metalink2RequestGroup::generate
  7323. RequestGroup::postDownloadProcessing
  7324. * src/BtPostDownloadHandler.cc
  7325. * src/BtPostDownloadHandler.h
  7326. * src/Metalink2RequestGroup.cc
  7327. * src/Metalink2RequestGroup.h
  7328. * src/MetalinkPostDownloadHandler.cc
  7329. * src/MetalinkPostDownloadHandler.h
  7330. * src/PostDownloadHandler.h
  7331. * src/RequestGroup.cc
  7332. * src/RequestGroup.h
  7333. * src/RequestGroupMan.cc
  7334. * src/main.cc
  7335. * test/BtPostDownloadHandlerTest.cc
  7336. * test/Metalink2RequestGroupTest.cc
  7337. * test/MetalinkPostDownloadHandlerTest.cc
  7338. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. Rewritten AccRequestGroup
  7340. * src/main.cc
  7341. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Rewritten.
  7343. * src/TaggedItem.cc (toTagString)
  7344. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Rewritten Accept-Features handling.
  7346. * src/HttpRequestCommand.cc (createHttpRequest)
  7347. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Rewritten accept types handling.
  7349. * HttpRequest.cc (createRequest)
  7350. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Rewritten
  7352. * src/FeatureConfig.cc (featureSummary)
  7353. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Changed method signature:
  7355. PeerStorage::getActivePeers
  7356. * src/DHTPeerAnnounceEntry.cc
  7357. * src/DefaultPeerStorage.cc
  7358. * src/DefaultPeerStorage.h
  7359. * src/PeerStorage.h
  7360. * test/DefaultPeerStorageTest.cc
  7361. * test/MockPeerStorage.h
  7362. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Changed method signature:
  7364. DHTPeerAnnounceStorage::getPeers,
  7365. DHTPeerAnnounceEntry::getPeers
  7366. * src/DHTGetPeersMessage.cc
  7367. * src/DHTPeerAnnounceEntry.cc
  7368. * src/DHTPeerAnnounceEntry.h
  7369. * src/DHTPeerAnnounceStorage.cc
  7370. * src/DHTPeerAnnounceStorage.h
  7371. * test/DHTAnnouncePeerMessageTest.cc
  7372. * test/DHTPeerAnnounceEntryTest.cc
  7373. * test/DHTPeerAnnounceStorageTest.cc
  7374. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7375. Changed method signature:
  7376. NameResolver::resolve
  7377. * src/DHTEntryPointNameResolveCommand.cc
  7378. * src/InitiateConnectionCommand.cc
  7379. * src/NameResolver.cc
  7380. * src/NameResolver.h
  7381. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7382. Changed method signature:
  7383. PieceStorage::getAdvertisedPieceIndexes
  7384. * src/DefaultBtInteractive.cc
  7385. * src/DefaultPieceStorage.cc
  7386. * src/DefaultPieceStorage.h
  7387. * src/PieceStorage.h
  7388. * src/UnknownLengthPieceStorage.h
  7389. * test/MockPieceStorage.h
  7390. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Changed method signature:
  7392. SegmentMan::getInFlightSegment
  7393. * src/AbstractCommand.cc
  7394. * src/SegmentMan.cc
  7395. * src/SegmentMan.h
  7396. * test/SegmentManTest.cc
  7397. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Changed method signature:
  7399. DHTAbstractNodeLookupTask::getNodesFromMessage
  7400. * src/DHTAbstractNodeLookupTask.cc
  7401. * src/DHTAbstractNodeLookupTask.h
  7402. * src/DHTNodeLookupTask.cc
  7403. * src/DHTNodeLookupTask.h
  7404. * src/DHTPeerLookupTask.cc
  7405. * src/DHTPeerLookupTask.h
  7406. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7408. * src/AbstractCommand.cc
  7409. * src/BtCheckIntegrityEntry.cc
  7410. * src/BtCheckIntegrityEntry.h
  7411. * src/BtFileAllocationEntry.cc
  7412. * src/BtFileAllocationEntry.h
  7413. * src/BtSetup.cc
  7414. * src/BtSetup.h
  7415. * src/CheckIntegrityCommand.cc
  7416. * src/CheckIntegrityEntry.h
  7417. * src/ChecksumCheckIntegrityEntry.cc
  7418. * src/ChecksumCheckIntegrityEntry.h
  7419. * src/DHTSetup.cc
  7420. * src/DHTSetup.h
  7421. * src/DownloadEngine.cc
  7422. * src/FileAllocationCommand.cc
  7423. * src/FileAllocationEntry.h
  7424. * src/RequestGroup.cc
  7425. * src/RequestGroup.h
  7426. * src/RequestGroupMan.cc
  7427. * src/RequestGroupMan.h
  7428. * src/StreamCheckIntegrityEntry.cc
  7429. * src/StreamCheckIntegrityEntry.h
  7430. * src/StreamFileAllocationEntry.cc
  7431. * src/StreamFileAllocationEntry.h
  7432. * src/TrackerWatcherCommand.cc
  7433. * src/a2functional.h
  7434. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7435. Changed method signature:
  7436. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7437. DHTBucket::getGoodNodes,
  7438. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7439. * src/BNode.cc
  7440. * src/BNode.h
  7441. * src/DHTAbstractNodeLookupTask.cc
  7442. * src/DHTAutoSaveCommand.cc
  7443. * src/DHTBucket.cc
  7444. * src/DHTBucket.h
  7445. * src/DHTBucketRefreshTask.cc
  7446. * src/DHTFindNodeMessage.cc
  7447. * src/DHTGetPeersMessage.cc
  7448. * src/DHTRoutingTable.cc
  7449. * src/DHTRoutingTable.h
  7450. * test/BNodeTest.cc
  7451. * test/DHTBucketTest.cc
  7452. * test/DHTRoutingTableTest.cc
  7453. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7454. In piece selection functions, Pass std::deque<...> by reference rather
  7455. than returning it.
  7456. * src/BitfieldMan.cc
  7457. * src/BitfieldMan.h
  7458. * src/DefaultBtRequestFactory.cc
  7459. * src/DefaultPieceStorage.cc
  7460. * src/Piece.cc
  7461. * src/Piece.h
  7462. * test/BitfieldManTest.cc
  7463. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7464. Implemented rarest piece first piece selection strategy.
  7465. * src/AbstractBtMessage.cc
  7466. * src/AbstractBtMessage.h
  7467. * src/BitfieldMan.cc
  7468. * src/BitfieldMan.h
  7469. * src/BtBitfieldMessage.cc
  7470. * src/BtHaveAllMessage.cc
  7471. * src/BtHaveMessage.cc
  7472. * src/DefaultPieceStorage.cc
  7473. * src/DefaultPieceStorage.h
  7474. * src/PeerInteractionCommand.cc
  7475. * src/PieceStorage.h
  7476. * src/UnknownLengthPieceStorage.h
  7477. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Rewritten readData and writeData.
  7479. * src/MultiDiskAdaptor.cc
  7480. * src/MultiDiskAdaptor.h
  7481. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. Move \n out of the message "Usage: ...".
  7483. * src/version_usage.cc
  7484. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7485. Bump up version number to 0.13.2b.
  7486. * configure.ac
  7487. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Added const qualifier to argument Exception& e.
  7489. * src/Logger.h
  7490. * src/SimpleLogger.cc
  7491. * src/SimpleLogger.h
  7492. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. Pool connection when CWD, SIZE command fails.
  7494. * src/FtpNegotiationCommand.cc
  7495. * src/FtpNegotiationCommand.h
  7496. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7498. * src/HttpResponseCommand.cc
  7499. * src/HttpSkipResponseCommand.cc
  7500. * src/HttpSkipResponseCommand.h
  7501. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7502. Pool connection when a server returns 4xx, 5xx responses.
  7503. * src/HttpNullDownloadCommand.cc
  7504. * src/HttpNullDownloadCommand.h
  7505. * src/HttpResponse.cc
  7506. * src/HttpResponse.h
  7507. * src/HttpResponseCommand.cc
  7508. * src/HttpResponseCommand.h
  7509. * test/HttpResponseTest.cc
  7510. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7511. Print usage when no URL is specifed or bad command-line option is
  7512. specified.
  7513. * src/HelpItemFactory.cc
  7514. * src/help_tags.h
  7515. * src/option_processing.cc
  7516. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Removed duplicate log message.
  7518. * src/AbstractCommand.cc (asyncResolveHostname)
  7519. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7520. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7521. Changed -j option's default value from 5 to 1.
  7522. Added new examples using protocol auto detection feature.
  7523. Removed -T, -M usage where it can be omitted.
  7524. * doc/aria2c.1.txt
  7525. * doc/aria2c.1.html
  7526. * doc/aria2c.1.txt
  7527. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Updated command-line usage text, so that it tells users that they
  7529. can specify any number of torrent files and metalink files in
  7530. command-line.
  7531. * src/version_usage.cc
  7532. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Changed the default value of -j option to 1.
  7534. * src/HelpItemFactory.cc
  7535. * src/option_processing.cc
  7536. * src/usage_text.h
  7537. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7538. Added the ability to reuse connection in FTP and it is enabled by
  7539. default. It can be disabled by --ftp-reuse-connection=false option.
  7540. * src/Command.cc
  7541. * src/DownloadCommand.cc
  7542. * src/FtpDownloadCommand.cc
  7543. * src/FtpDownloadCommand.h
  7544. * src/FtpFinishDownloadCommand.cc
  7545. * src/FtpFinishDownloadCommand.h
  7546. * src/FtpInitiateConnectionCommand.cc
  7547. * src/FtpNegotiationCommand.cc
  7548. * src/FtpNegotiationCommand.h
  7549. * src/HelpItemFactory.cc
  7550. * src/Makefile.am
  7551. * src/Makefile.in
  7552. * src/OptionHandlerFactory.cc
  7553. * src/option_processing.cc
  7554. * src/prefs.h
  7555. * src/usage_text.h
  7556. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7557. Call Command::transitStatus() before calling Command::execute(),
  7558. so that the status change made in execute() is not cleared.
  7559. * src/DownloadEngine.cc
  7560. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7561. Removed forward declaration of SocketCore class.
  7562. * src/HttpDownloadCommand.h
  7563. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7564. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7565. in InitiateConnectionCommandFactory. They should be set only when
  7566. the protocol is HTTP or HTTPS.
  7567. * src/InitiateConnectionCommandFactory.cc
  7568. * src/RequestGroup.cc
  7569. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7570. Fixed infinite loop in checksum checking.
  7571. * src/IteratableChecksumValidator.cc
  7572. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7573. Set _supportsPersistentConnection to true by default.
  7574. * src/Request.cc
  7575. * src/RequestGroup.cc
  7576. * test/HttpRequestTest.cc
  7577. * test/RequestTest.cc
  7578. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7579. Added timeout to socket pool. The default timeout is 15 seconds,
  7580. which is the same value Apache uses.
  7581. * src/DownloadEngine.cc
  7582. * src/DownloadEngine.h
  7583. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. Fixed misuse of multimap::find()
  7585. * src/HttpHeader.cc
  7586. * test/HttpHeaderTest.cc
  7587. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7588. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7589. option.
  7590. The asynchronous DNS is not capable of IPv6 yet.
  7591. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7592. least for HTTP download.
  7593. * src/AbstractCommand.cc
  7594. * src/AbstractCommand.h
  7595. * src/AsyncNameResolver.cc
  7596. * src/AsyncNameResolver.h
  7597. * src/DHTEntryPointNameResolveCommand.cc
  7598. * src/DHTEntryPointNameResolveCommand.h
  7599. * src/DownloadEngine.cc
  7600. * src/DownloadEngine.h
  7601. * src/FtpInitiateConnectionCommand.cc
  7602. * src/FtpInitiateConnectionCommand.h
  7603. * src/HelpItemFactory.cc
  7604. * src/HttpInitiateConnectionCommand.cc
  7605. * src/HttpInitiateConnectionCommand.h
  7606. * src/InitiateConnectionCommand.cc
  7607. * src/InitiateConnectionCommand.h
  7608. * src/Makefile.am
  7609. * src/Makefile.in
  7610. * src/NameResolver.cc
  7611. * src/NameResolver.h
  7612. * src/OptionHandlerFactory.cc
  7613. * src/SocketCore.cc
  7614. * src/SocketCore.h
  7615. * src/Util.cc
  7616. * src/Util.h
  7617. * src/option_processing.cc
  7618. * src/prefs.h
  7619. * src/usage_text.h
  7620. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Updated man page: --quiet, --header were added.
  7622. --metalink-servers and --enable-http-keep-alive option were updated.
  7623. * doc/aria2c.1
  7624. * doc/aria2c.1.html
  7625. * doc/aria2c.1.txt
  7626. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7627. Enable HTTP keep-alive by default.
  7628. * src/HelpItemFactory.cc
  7629. * src/option_processing.cc
  7630. * src/usage_text.h
  7631. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Disable http keep-alive if the remote server is not HTTP/1.1.
  7633. * src/HttpConnection.cc
  7634. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7635. Receive content body of 302 response so that the connection can be
  7636. reused later when http keep-alive is enabled.
  7637. * src/HttpNullDownloadCommand.cc
  7638. * src/HttpNullDownloadCommand.h
  7639. * src/HttpResponseCommand.cc
  7640. * src/HttpResponseCommand.h
  7641. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7642. const SharedHandle<Request> -> const SharedHandle<Request>&
  7643. * src/FtpDowndloadCommand.cc
  7644. * src/FtpDowndloadCommand.h
  7645. * src/HttpDownloadCommand.cc
  7646. * src/HttpDownloadCommand.h
  7647. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. Fixed the bug that the control file(.aria2 file) is not renamed
  7649. according to tryAutoFileRenaming().
  7650. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7651. its control file exist, use them and continue download.
  7652. The old implementation didn't take into account of control file's
  7653. existence, so basically you couldn't continue download of renamed file.
  7654. * src/BtProgressInfoFile.h
  7655. * src/DefaultBtProgressInfoFile.cc
  7656. * src/DefaultBtProgressInfoFile.h
  7657. * src/NullProgressInfoFile.h
  7658. * src/RequestGroup.cc
  7659. * test/DefaultBtProgressInfoFileTest.cc
  7660. * test/MockBtProgressInfoFile.h
  7661. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7662. Change the default value of --metalink-servers option from `5' to `1'.
  7663. * src/HelpItemFactory.cc
  7664. * src/option_processing.cc
  7665. * src/usage_text.h
  7666. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7667. Reimplemented transparent metalink using Accept request header.
  7668. * src/HttpRequest.cc
  7669. * src/HttpRequest.h
  7670. * src/HttpRequestCommand.cc
  7671. * src/Metalink2RequestGroup.cc
  7672. * src/RequestGroup.cc
  7673. * src/RequestGroup.h
  7674. * test/HttpRequestTest.cc
  7675. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Bump up version number to 0.13.2a
  7677. * configure.ac
  7678. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7679. Updated configure.ac using the result of autoscan.
  7680. * configure.ac
  7681. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Fixed compilation error without gcrypt/openssl.
  7683. * src/DownloadCommand.cc
  7684. * src/DownloadCommand.h
  7685. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Reorganized version information so that it can be displayed in a
  7687. standard terminal screen without scrolling.
  7688. Removed http, ftp from Configuration section, because they are always
  7689. enabled.
  7690. * src/FeatureConfig.cc
  7691. * src/FeatureConfig.h
  7692. * src/main.cc
  7693. * src/messageDigest.cc
  7694. * src/messageDigest.h
  7695. * src/version_usage.cc
  7696. * test/FeatureConfigTest.cc
  7697. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7698. Masked user ID in log.
  7699. * src/FtpConnection.cc (sendUser)
  7700. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Removed query part from filename in HTTP download. The query part means
  7702. the substring after "?" in URL. Firefox seems do the same thing.
  7703. A query part is sometimes very long and not suitable to filename,
  7704. so I think it is better to remove it from filename.
  7705. * src/HttpRequest.cc
  7706. * src/HttpRequest.h
  7707. * src/Request.cc
  7708. * src/Request.h
  7709. * test/HttpRequestTest.cc
  7710. * test/RequestTest.cc
  7711. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7712. Rewritten Exception class. Throw exception object, not its pointer and
  7713. catch by reference, so that remove problematic delete operator for
  7714. catched exception.
  7715. * src/Exception.cc
  7716. * src/Exception.h
  7717. * test/ExceptionTest.cc
  7718. * src/*: All files throwing/catching exception.
  7719. * test/*: All files throwing/catching exception.
  7720. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Now auto protocol detection is enabled without -Z option.
  7722. But there is a important difference between with/without -Z optoin.
  7723. For example, if you type:
  7724. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7725. then, aria2 interprets there are 3 request groups:
  7726. (1) http://host/file, http://mirror/file <-- multi-source download
  7727. (2) file1.torrent
  7728. (3) file2.metalink
  7729. On the other hand, if you invoke above command with -Z option, it is
  7730. interpreted as 4 request groups:
  7731. (1) http://host/file
  7732. (2) file1.torrent
  7733. (3) file2.metalink
  7734. (4) http://mirror/file
  7735. I think usually user don't mix multi-source URLs and torrent files, so
  7736. there is no big problem here.
  7737. * src/main.cc
  7738. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7739. Fixed the bug that causes segmentaion fault when reading XML containing
  7740. unescapsed character like '&'.
  7741. Also a modification was made which avoids adding unnecessary
  7742. characters stack and appending unused string.
  7743. * src/ExpatMetalinkProcessor.cc
  7744. * src/FileMetalinkParserState.h
  7745. * src/FilesMetalinkParserState.h
  7746. * src/FinMetalinkParserState.h
  7747. * src/HashMetalinkParserState.h
  7748. * src/InitialMetalinkParserState.h
  7749. * src/LanguageMetalinkParserState.h
  7750. * src/MetalinkMetalinkParserState.h
  7751. * src/MetalinkParserState.h
  7752. * src/MetalinkParserStateMachine.cc
  7753. * src/MetalinkParserStateMachine.h
  7754. * src/OSMetalinkParserState.h
  7755. * src/PieceHashMetalinkParserState.h
  7756. * src/PiecesMetalinkParserState.h
  7757. * src/ResourcesMetalinkParserState.h
  7758. * src/SizeMetalinkParserState.h
  7759. * src/SkipTagMetalinkParserState.h
  7760. * src/URLMetalinkParserState.h
  7761. * src/VerificationMetalinkParserState.h
  7762. * src/VersionMetalinkParserState.h
  7763. * src/XML2SAXMetalinkProcessor.cc
  7764. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7765. Added StringFormat class, which internally calls vasprintf.
  7766. operator<< is defined for this class, so it can be used with iostream
  7767. classes nicely. SimpleLogger and following functions are rewritten
  7768. using StringFormat class.
  7769. Besides, now Logger class's methods are non-const, many classes
  7770. that has a const Logger* as a member variable are modified to remove
  7771. const qualifier from the variable declaration.
  7772. * src/HelpItemFactory.cc
  7773. * src/Request.cc
  7774. * src/SimpleLogger.cc
  7775. * src/StringFormat.cc
  7776. * src/StringFormat.h
  7777. * src/Util.cc
  7778. * src/option_processing.cc
  7779. * src/version_usage.cc
  7780. * test/StringFormatTest.cc
  7781. * src/*.h: The classes that has const Logger* as a member variable.
  7782. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7784. failed. Also fixed memory link when exception is thrown there.
  7785. * src/main.cc (AccRequestGroup)
  7786. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Added build-in "Accept-Features" support. For now only "metalink" is
  7788. used in this header field.
  7789. This "metalink" value is removed from the list when connecting URLs
  7790. fed by metalink file to avoid loop in "transparent" metlaink.
  7791. * src/HttpRequest.cc
  7792. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7793. header is also held in this variable. Also renamed setUserHeaders as
  7794. addHeader and it was rewritten to add header not just to clear the old
  7795. value.
  7796. * src/HttpRequestCommand.cc
  7797. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7798. from "Accept-Features" list.
  7799. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7800. default.
  7801. * src/RequestGroup.h
  7802. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7803. * src/a2functional.h: Included <string> because Concat class depends on
  7804. it.
  7805. * test/HttpRequestTest.cc
  7806. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. Added comment
  7808. * src/RequestGroup.cc (createNextCommand)
  7809. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7810. Capitalized METHOD_GET and METHOD_HEAD
  7811. * src/Request.cc
  7812. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Added getDownloadResults() method
  7814. * src/RequestGroupMan.cc
  7815. * src/RequestGroupMan.h
  7816. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7817. Fixed the bug that aria2 exits when commands is empty() but
  7818. _routineCommands are not.
  7819. * src/DownloadEngine.cc
  7820. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7821. Use the default value pulled from Option object in HelpItemFactory.
  7822. except options whose defualt value is embedded in a usage text.
  7823. * src/HelpItemFactory.cc
  7824. * src/HelpItemFactory.h
  7825. * src/option_processing.cc
  7826. * src/version_usage.cc
  7827. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Added --quiet option to make aria2 quiet (no console output).
  7829. --quiet option is tagged with ADVANCED.
  7830. * src/HelpItemFactory.cc
  7831. * src/LogFactory.cc
  7832. * src/LogFactory.h
  7833. * src/MultiUrlRequestInfo.cc
  7834. * src/MultiUrlRequestInfo.h
  7835. * src/NullStatCalc.h: New class. This class prints nothing.
  7836. * src/OptionHandlerFactory.cc
  7837. * src/main.cc
  7838. * src/option_processing.cc
  7839. * src/prefs.h
  7840. * src/usage_text.h
  7841. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7843. * src/HelpItemFactory.cc (createHelpItems):
  7844. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Fixed compilation error in ExpatMetalinkProcessor.cc
  7846. * src/ExpatMetalinkProcessor.cc
  7847. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Reuse socket if the origin server supports HTTP keep-alive and
  7849. --enable-http-keep-alive or --enable-http-pipelining is given.
  7850. The current implementation doesn't reuse the connections established
  7851. against proxy server.
  7852. * src/AbstractCommand.cc
  7853. * src/DownloadEngine.cc
  7854. * src/DownloadEngine.h
  7855. * src/HttpDownloadCommand.cc
  7856. * src/HttpInitiateConnectionCommand.cc
  7857. * src/HttpResponseCommand.cc
  7858. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Rewritten HTTP keep-alive and pipelining routine.
  7860. * src/AbstractCommand.cc
  7861. * src/HttpConnection.cc
  7862. * src/HttpDownloadCommand.cc
  7863. * src/HttpRequest.cc
  7864. * src/HttpRequestCommand.cc
  7865. * src/HttpResponseCommand.cc
  7866. * src/Request.cc
  7867. * src/Request.h
  7868. * src/RequestGroup.cc
  7869. * test/HttpRequestTest.cc
  7870. * test/HttpResponseTest.cc
  7871. * test/RequestTest.cc
  7872. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7873. Added missing setUserHeaders call
  7874. * src/HttpRequestCommand.cc
  7875. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7877. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7878. waste of time because it is more likey false.
  7879. * src/FileAllocationDispatcherCommand.cc (execute)
  7880. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Now HTTP status and version are a member variable of HttpHeader.
  7882. HTTP status is processed as a string, not integer.
  7883. * src/AbstractProxyResponseCommand.cc
  7884. * src/HttpConnection.cc
  7885. * src/HttpHeader.cc
  7886. * src/HttpHeader.h
  7887. * src/HttpHeaderProcessor.cc
  7888. * src/HttpHeaderProcessor.h
  7889. * src/HttpResponse.cc
  7890. * src/HttpResponse.h
  7891. * test/HttpHeaderProcessorTest.cc
  7892. * test/HttpResponseTest.cc
  7893. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Added --header option. You can specify any number of additional HTTP headers
  7895. like:
  7896. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7897. Unlike other commad-line option, you can use --header option multiple times.
  7898. * src/HelpItemFactory.cc
  7899. * src/HttpRequest.{cc, h}
  7900. * src/HttpRequestCommand.cc
  7901. * src/OptionHandlerFactory.cc
  7902. * src/OptionHandlerImpl.h
  7903. * src/option_processing.cc
  7904. * src/prefs.h
  7905. * src/usage_text.h
  7906. * test/HttpRequestTest.cc (testUserHeaders)
  7907. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Eliminates the time lag between sequential downloads and commands in
  7909. the same RequestGroup.
  7910. In old implementation, aria2 occasionally waits 1 seconds before
  7911. executing next command or RequestGroup.
  7912. This is really a waste of time, and new implementation eliminates
  7913. this unnecessary time lag.
  7914. * src/AbstractCommand.cc
  7915. * src/AutoSaveCommand.cc
  7916. * src/CheckIntegrityCommand.cc
  7917. * src/Command.{cc, h}
  7918. * src/DownloadEngine.{cc, h}
  7919. * src/DownloadEngineFactory.cc
  7920. * src/FileAllocationCommand.cc
  7921. * src/FileAllocationDispatcherCommand.cc
  7922. * src/FillRequestGroupCommand.cc
  7923. * src/FtpInitiateConnectionCommand.cc
  7924. * src/HaveEraseCommand.cc
  7925. * src/HttpInitiateConnectionCommand.cc
  7926. * src/HttpResponseCommand.cc
  7927. * src/RealtimeCommand.cc
  7928. * src/RequestGroup.cc
  7929. * src/RequestGroupMan.cc
  7930. * src/StreamFileAllocationEntry.cc
  7931. * src/TimeBasedCommand.{cc, h}
  7932. * src/TimedHaltCommand.cc
  7933. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7935. keyword explicit and SharedHandle's default constructor initializes
  7936. its internal obj to null, old implementation initializes it using
  7937. obj's default constructor.
  7938. To assign null, write SharedHandle<T> x(...); x.reset();
  7939. TODO: test/SharedHandleTest.cc needs more tests.
  7940. * src/SharedHandle.h
  7941. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. Fixed type in man page.
  7943. * doc/aria2c.1.txt
  7944. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7946. * src/SimpleLogger.{cc, h}
  7947. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Implemented auto protocol detection.
  7949. Now you can do:
  7950. aria2c -Z http://host/file file1.torrent file2.metalink
  7951. (Note: -Z option is required for auto protcol detection.)
  7952. Then aria2c downloads 3 files simultaneously:
  7953. 1. http://host/file
  7954. 2. file1.torrent <-- read local torrent file
  7955. 3. file2.metalink <-- read local Metalink file.
  7956. Same thing goes with -i option. Assume your uris.txt contans:
  7957. http://host/file
  7958. file1.torrent
  7959. file2.metalink
  7960. Then you can do: aria2c -i uris.txt
  7961. (Note: -Z option is not needed if -i option is given.)
  7962. * src/main.cc
  7963. * src/ProtocolDetector.{cc, h}
  7964. * test/ProtocolDetectorTest.cc
  7965. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7967. installed
  7968. * src/ARC4Encryptor.h
  7969. * src/ARC4Decryptor.h
  7970. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7971. Renamed argument from 'errno' to 'err', since errno is confused with
  7972. errno defined in errno.h.
  7973. * src/LibgcryptARC4Decryptor.h
  7974. * src/LibgcryptARC4Context.h
  7975. * src/LibgcryptDHKeyExchange.h
  7976. * src/LibgcryptARC4Encryptor.h
  7977. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7978. Rewritten choking algorithm.
  7979. * src/PeerChokeCommand.{cc, h}
  7980. * src/BtInterestedMessage.cc
  7981. * src/PeerSessionResource.{cc, h}
  7982. * src/DefaultPeerStorage.{cc, h}
  7983. * src/BtNotInterestedMessage.cc
  7984. * src/DefaultBtMessageDispatcher.{cc, h}
  7985. * src/BtMessageDispatcher.h
  7986. * src/Peer.{cc, h}
  7987. * src/BtLeecherStateChoke.{cc, h}
  7988. * src/BtSetup.cc
  7989. * src/BtSeederStateChoke.{cc, h}
  7990. * src/PeerStorage.h
  7991. * test/MockPeerStorage.h
  7992. * test/MockBtMessageDispatcher.h
  7993. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. Fixed compilation error on x84-64 platform.
  7995. * src/AuthConfig.cc: Included ostream.
  7996. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7997. Rewritten getBasename() and getDirname(), without standard library
  7998. basename(), dirname().
  7999. * src/File.cc
  8000. * test/FileTest.cc
  8001. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. Added Simplified Chinese translation. Also updated the following
  8003. translations: Polish, Dutch, German. Great thanks to all translators.
  8004. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. Suppress content-range error when 'Content-Range' response header
  8006. doesn't contains bytes-unit specifier 'bytes'
  8007. * src/HttpHeader.cc (getRange)
  8008. * test/HttpHeaderTest.cc
  8009. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8010. Fixed compilation error with g++-4.3
  8011. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. Added missing include files for MinGW
  8013. * test/HttpHeaderProcessorTest.cc
  8014. * test/DHTRoutingTableSerializerTest.cc
  8015. * test/DHTRoutingTableDeserializerTest.cc
  8016. * test/UriListParserTest.cc
  8017. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8018. Now download line is printed nicely with no garbage at the end of
  8019. line. I use ioctl to get the columns of terminal.
  8020. If stdout is redirected to another device, instead of carriage return,
  8021. end of line '\n' character is used. This is feature request#1909659
  8022. * src/ConsoleStatCalc.cc (calculateStat)
  8023. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8024. Included a2time.h
  8025. * src/DHTMessageDispatcher.h
  8026. * src/DHTMessageEntry.h
  8027. * src/DHTReplaceNodeTask.h
  8028. * src/DHTMessageTracker.h
  8029. * src/Util.h
  8030. * src/CookieBox.h
  8031. * src/SocketCore.h
  8032. * src/DefaultBtMessageDispatcher.h
  8033. * src/SocketCore.cc
  8034. * src/Util.cc
  8035. * src/DHTPingTask.h
  8036. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8037. Fixed high memory footprint when DHT is enabled.
  8038. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8039. queued than it is processed and the queue is getting longer. As a
  8040. consequence, momory usage is increased.
  8041. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8042. replacement cache in DHTBucket which is described in Kademlia paper.
  8043. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8044. DHTReplaceNodeTask.
  8045. * src/DHTBucket.{h, cc}
  8046. (cacheNode): New function.
  8047. (getCachedNodes): New function.
  8048. (dropNode): Push back cached node to _nodes.
  8049. * test/DHTBucketTest.cc
  8050. (testCacheNode): New test
  8051. (testDropNode): New test
  8052. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8054. the unused 4KB memory when ssl is not used.
  8055. * src/SocketCore.cc
  8056. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8057. Added summary log for peer announce storage.
  8058. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8059. Removed cast
  8060. * src/DefaultPeerStorage.cc (addPeer)
  8061. Log exception message
  8062. * src/DHTMessageTracker.cc (handleTimeout)
  8063. Fixed casting
  8064. * test/HttpRequestTest.cc
  8065. * test/MetalinkProcessorTest.cc
  8066. * test/PieceTest.cc
  8067. * test/MetalinkEntryTest.cc
  8068. * test/SequenceTest.cc
  8069. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. * src/ParameterizedStringParser.cc (createLoop):
  8071. Removed unused variable sstep.
  8072. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8073. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8074. * src/Util.{h, cc}
  8075. (parseUInt): New function.
  8076. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8077. The actual range is uint32_t.
  8078. * test/UtilTest.cc
  8079. * src/ParameterizedStringParser.cc:
  8080. Use Util::parseUInt() for loop variables.
  8081. * test/ParameterizedStringParserTest.cc
  8082. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8083. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8084. Rewritten the functions for binding port.
  8085. * src/DHTConnectionImpl.{h, cc}
  8086. * src/PeerListenCommand.{h, cc}
  8087. * src/DHTSetup.cc
  8088. * src/BtSetup.cc
  8089. * test/DHTConnectionImplTest.cc
  8090. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. type cleanup for allmost all remaining files.
  8092. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8093. Type clarification
  8094. * src/PeerSessionResource.{h, cc}
  8095. * src/DefaultPieceStorage.{h, cc}
  8096. * src/Peer.{h, cc}
  8097. * test/PeerSessionResourceTest.cc
  8098. Use div function
  8099. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8100. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. Type clarification
  8102. * src/DefaultPeerStorage.{h, cc}
  8103. * test/DefaultPeerStorageTest.cc
  8104. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. Type clarification: size_t for length or size, uint64_t for file
  8106. length, off_t for file offset.
  8107. * src/DefaultBtProgressInfoFile.cc
  8108. * src/DefaultBtContext.{h, cc}
  8109. * src/DefaultBtInteractive.cc
  8110. * src/DownloadCommand.{h, cc}
  8111. * src/IteratableChunkChecksumValidator.{h, cc}
  8112. * src/SegmentMan.{h, cc}
  8113. * src/SingleFileDownloadContext.{h, cc}
  8114. * src/IteratableChecksumValidator.{h, cc}
  8115. * src/BtContext.h
  8116. * src/IteratableValidator.h
  8117. * src/DownloadContext.h
  8118. * test/SingleFileDownloadContextTest.cc
  8119. * test/DefaultBtContextTest.cc
  8120. * test/MockBtContext.h
  8121. * test/Metalink2RequestGroupTest.cc
  8122. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Type clarification: size_t for length or size, uint64_t for file
  8124. length, off_t for file offset.
  8125. * src/PiecedSegment.cc
  8126. * src/GrowSegment.h
  8127. * src/DefaultBtRequestFactory.h
  8128. * src/DefaultBtProgressInfoFile.cc
  8129. * src/UnknownLengthPieceStorage.h
  8130. * src/DefaultPieceStorage.cc
  8131. * src/UnknownLengthPieceStorage.cc
  8132. * src/DefaultBtInteractive.cc
  8133. * src/GrowSegment.cc
  8134. * src/BitfieldMan.h
  8135. * src/DownloadCommand.cc
  8136. * src/BtRequestFactory.h
  8137. * src/PiecedSegment.h
  8138. * src/DefaultPieceStorage.h
  8139. * src/Piece.cc
  8140. * src/DefaultBtRequestFactory.cc
  8141. * src/PieceStorage.h
  8142. * src/Segment.h
  8143. * src/Piece.h
  8144. * src/BitfieldMan.cc
  8145. * src/Util.cc
  8146. * test/DefaultBtProgressInfoFileTest.cc
  8147. * test/DefaultPieceStorageTest.cc
  8148. * test/MockPieceStorage.h
  8149. * test/BtRequestMessageTest.cc
  8150. * test/DefaultBtMessageDispatcherTest.cc
  8151. * test/BitfieldManTest.cc
  8152. * test/GrowSegmentTest.cc
  8153. * test/PieceTest.cc
  8154. * test/SegmentTest.cc
  8155. * test/SegmentManTest.cc
  8156. * test/DefaultBtRequestFactoryTest.cc
  8157. * test/MockBtRequestFactory.h
  8158. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Fixed compilation error with --disable-nls
  8160. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8161. in gettext.h causes the problem.
  8162. * src/common.h
  8163. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. Removed subPiece related functions.
  8165. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8166. * src/DefaultPieceStorage.{h, cc}
  8167. * test/PieceTest.cc
  8168. * test/DefaultPieceStorageTest.cc
  8169. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. Use unsigned char for data store.
  8171. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. Bump up version number to 0.13.0+1
  8173. * configure.ac
  8174. * Release 0.13.0+1
  8175. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Changed inactive connection timeout to 120.
  8177. To accept more mulually interested peers, disconnect peer when there
  8178. is no interest between us after certain time passed.
  8179. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8180. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8182. when compiled with async DNS support.
  8183. * src/DownloadEngine.cc
  8184. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8185. value '10' will be a little bit short when some DNS servers are
  8186. offline and several DNS servers are tried. It should be configured
  8187. by command-line option.
  8188. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Merged Ross's mingw patch.
  8190. * src/DHTRoutingTableDeserializer.cc
  8191. * src/DHTRoutingTableSerializer.cc
  8192. * src/Platform.{h, cc}
  8193. * src/timegm.h
  8194. * src/gettimeofday.h
  8195. * src/getaddrinfo.h
  8196. * src/SocketCore.h
  8197. * src/common.h
  8198. * src/inet_aton.h
  8199. * src/DownloadEngine.h
  8200. * src/gai_strerror.h
  8201. * src/a2netcompat.h
  8202. * configure.ac
  8203. * configure
  8204. * aclocal.m4
  8205. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8206. Included missing iostream.
  8207. * test/AllTest.cc
  8208. * test/BtDependencyTest.cc
  8209. * test/BtExtendedMessageTest.cc
  8210. * test/DHTConnectionImplTest.cc
  8211. * test/DHTMessageFactoryImplTest.cc
  8212. * test/DHTMessageTrackerEntryTest.cc
  8213. * test/DHTNodeTest.cc
  8214. * test/DHTRoutingTableSerializerTest.cc
  8215. * test/DefaultBtAnnounceTest.cc
  8216. * test/DefaultBtContextTest.cc
  8217. * test/DefaultBtMessageFactoryTest.cc
  8218. * test/DefaultExtensionMessageFactoryTest.cc
  8219. * test/HandshakeExtensionMessageTest.cc
  8220. * test/HttpResponseTest.cc
  8221. * test/MetalinkProcessorTest.cc
  8222. * test/MultiFileAllocationIteratorTest.cc
  8223. * test/SocketCoreTest.cc
  8224. * test/UTPexExtensionMessageTest.cc
  8225. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Reorganized includes.
  8227. * src/NameResolver.cc
  8228. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Fixed compilation error without ares/c-ares
  8230. * src/NameResolver.h:
  8231. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8232. Added a test for large file.
  8233. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8234. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Fixed the bug that file size is ignored if size > INT32_MAX
  8236. * src/SizeMetalinkParserState.cc (endElement):
  8237. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8238. Bump up version number to 0.13.0
  8239. * configure.ac
  8240. * Release 0.13.0
  8241. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Updated Makfefile.am to make 'make dist' work.
  8243. Now packaged filename is aria2c-VERSION.tar.bz2.
  8244. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8245. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8246. Large file support is now configured by configure script.
  8247. * configure.ac
  8248. Removed unsused source files
  8249. * src/
  8250. * test/
  8251. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8252. Peer.h and BtContext.h respectively.
  8253. * src/Peer.h
  8254. * src/BtContext.h
  8255. Updated translations.
  8256. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8257. translations. Great thanks to all translators!;)
  8258. * po/*.{po, gmo}
  8259. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8260. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8261. statically declared sha1 MessageDigestContext.
  8262. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8263. initialization of short-lived MessageDigestContext.
  8264. * src/MessageDigestHelper.{h, cc}
  8265. * src/main.cc
  8266. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8267. the initialization of MessageDigestContext every time in validating
  8268. chunk checksum.
  8269. * src/DownloadCommand.{h, cc}
  8270. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8271. Add a file descriptor which connected to fast peer(latency<1500) to
  8272. select(). This change reduced CPU load.
  8273. * src/PeerInteractionCommand.cc
  8274. * src/DefaultBtInteractive.{h, cc}
  8275. * src/BtInteractive.h
  8276. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8277. Fixed the previous insufficient fix for possible busy loop.
  8278. * src/MSEHandshake.cc (identifyHandshakeType)
  8279. Removed unused functions.
  8280. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8281. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. Fixed possible busy loop if first 20 bytes are not received for a few
  8283. minutes.
  8284. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8285. * src/ReceiverMSEHandshakeCommand.cc
  8286. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8287. Fixed compilation error
  8288. * src/ExpatMetalinkProcessor.cc
  8289. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8291. * src/DHTBucket.cc
  8292. Removed unnecessary cast.
  8293. * src/HandshakeExtensionMessage.cc
  8294. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8296. is missing.
  8297. * src/OptionHandlerFactory.cc
  8298. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Fixed the bug that HAVE message is not sent for a piece they are
  8300. downloaded fom http/ftp server before any BitTorrent handshake is done
  8301. with peers.
  8302. * src/DefaultBtInteractive.cc
  8303. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8305. * src/Makefile.am
  8306. * src/Makefile.in
  8307. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. Updated README. Added html version of README and man page.
  8309. * README
  8310. * README.html
  8311. * readme2html: Shell script to generate README.html from README using
  8312. asciidoc.
  8313. * doc/aria2c.1.html
  8314. * doc/makeman: Added the line to generate aria2c.1.html
  8315. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. Fixed offset calculation.
  8317. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8318. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8319. Rewritten itos and uitos using template. llitos and ullitos are
  8320. replaced with itos and uitos respectively.
  8321. * src/Util.{h, cc}
  8322. * test/UtilTest.cc
  8323. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8325. of the number of bytes required for storing public key and shared
  8326. secret.
  8327. * src/LibgcryptDHKeyExchange.h
  8328. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8329. * src/MSEHandshake.cc
  8330. * test/DHKeyExchangeTest.cc
  8331. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8332. Removed since they are not used.
  8333. * src/Xml2MetalinkProcessor.{h, cc}
  8334. * src/Socket.cc
  8335. * src/SegmentSplitter.{h, cc}
  8336. * test/Xml2MetalinkProcessorTest.cc
  8337. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8338. Fixed the bug that prevents aria2 from stopping other than by pressing
  8339. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8340. option. aria2 doesn't stop even after --seed-time is satisfied and
  8341. continues to output blank lines in the console.
  8342. * src/ReceiverMSEHandshakeCommand.cc
  8343. * src/PeerReceiveHandshakeCommand.cc
  8344. * src/PeerListenCommand.cc
  8345. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8346. Bump up version number to 0.13.0rc
  8347. * configure.ac
  8348. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Updated man page and some usage text.
  8350. * doc/aria2c.1.txt
  8351. * src/usage_text.h
  8352. * po/*.{po, gmo}
  8353. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8354. Updated translations. Added Finnish and Hebrew translations.
  8355. Great thanks to all translators!
  8356. * po/*.{po, gmo}
  8357. * po/LINGUAS
  8358. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8359. Log more detailed information about each message.
  8360. * src/DHTQueryMessage.{h, cc}
  8361. * src/DHTGetPeersMessage.{h, cc}
  8362. * src/DHTFindNodeReplyMessage.{h, cc}
  8363. * src/DHTGetPeersReplyMessage.{h, cc}
  8364. * src/DHTAnnouncePeerMessage.{h, cc}
  8365. * src/DHTResponseMessage.{h, cc}
  8366. * src/DHTFindNodeMessage.{h, cc}
  8367. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Use constants defined in prefs.h
  8369. * src/option_processing.cc
  8370. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8372. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8373. Make room for future enchancements for IPv6 addresses.
  8374. Bump up version number of dht.dat file format to 2.
  8375. Not compatible with previous version.
  8376. * src/DHTRoutingTableSerializer.cc
  8377. * src/DHTRoutingTableDeserializer.cc
  8378. * test/DHTRoutingTableSerializerTest.cc
  8379. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8380. Added handling for the return values from
  8381. PeerMessageUtil::createcompact().
  8382. * src/DefaultBtContext.cc (computeFastSet):
  8383. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Fixed abort when peer's ip address is IPv4-mapped address.
  8385. * src/DefaultBtContext.cc (computeFastSet)
  8386. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8387. cannot handle IPv4-mapped addresses.
  8388. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8389. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8390. Proper return value handling for OpenSSL functions.
  8391. * src/LibsslDHKeyExchange.h
  8392. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Random bytes generation using libgcrypt and OpenSSL.
  8394. * src/DHTUtil.{h, cc}
  8395. * test/DHTUtilTest.cc
  8396. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8398. received.
  8399. * src/DHTMessageReceiver.cc (receiveMessage)
  8400. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8401. Fixed the bug that a return code is always 0. BUG#1897704
  8402. If error occurred during the download or there exist unfinished
  8403. downloads, aria2 returns with code 1.
  8404. * src/RequestGroupMan.{h, cc}
  8405. * src/MultiUrlRequestInfo.{h, cc}
  8406. * src/main.cc
  8407. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. IPv6 support for SocketCore class.
  8409. TODO: In SocketCore::establishConnection(), this is insufficient to
  8410. determin the failure of connect() here because the socket is
  8411. non-blocking state. The next addresses should be tried after select().
  8412. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8413. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8414. instead which address family independent.
  8415. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8416. information in a compact peer format which is for IPv4 only.
  8417. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8418. this is a spec of BitTorrent protocol.
  8419. * src/SocketCore.{h, cc}
  8420. * src/PeerMessageUtil.cc
  8421. * test/SocketCoreTest.cc
  8422. * test/PeerMessageUtilTest.cc
  8423. * test/DHTConnectionImplTest.cc
  8424. Handle IPv4-mapped addresses.
  8425. * src/DHTNode.cc: Now identity is determined by node id.
  8426. * src/DHTMessageTrackerEntry.cc
  8427. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8428. should handle it.
  8429. * src/DHTRoutingTableDeserializer.cc
  8430. * src/DHTMessageFactoryImpl.cc
  8431. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Change the unit of --stop option from a minute to a second.
  8433. * src/usage_text.h
  8434. * src/DownloadEngineFactory.cc
  8435. * src/OptionHandlerFactory.cc
  8436. * src/message.h
  8437. * src/TimedHaltCommand.cc
  8438. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8439. Make listening socket non-block mode.
  8440. * src/FtpConnection.cc
  8441. * src/FtpNegotiationCommand.{h, cc}
  8442. * src/PeerListenCommand.cc
  8443. Fixed the bug that cause slow ftp negotiation.
  8444. * src/FtpNegotiationCommand.{h, cc}
  8445. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8446. Added basic tag to --enable-dht, --dht-listen-port option.
  8447. * src/HelpItemFactory.cc (createHelpItems)
  8448. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Updated text.
  8450. * src/usage_text.h
  8451. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8453. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Determin _threadtholdSpeed in each constructor for
  8455. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8456. * src/ActivePeerConnectionCommand.{h, cc}
  8457. * src/PeerReceiveHandshakeCommand.{h, cc}
  8458. * src/BtSetup.cc
  8459. * src/BtConstants.h
  8460. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. Added --bt-min-crypto-level and --bt-require-crypto options.
  8462. * src/OptionHandlerFactory.cc
  8463. * src/MSEHandshake.cc
  8464. * src/HelpItemFactory.cc
  8465. * src/option_processing.cc
  8466. * src/ReceiverMSEHandshakeCommand.cc
  8467. * src/prefs.h
  8468. * src/DefaultBtAnnounce.cc
  8469. * src/InitiatorMSEHandshakeCommand.cc
  8470. * src/usage_text.h
  8471. * test/MSEHandshakeTest.cc
  8472. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8473. Bump version number to 0.13.0b
  8474. * configure.ac
  8475. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8476. Updated doc.
  8477. * src/MessageDigestHelper.h:
  8478. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Use raw message digest as a token instead of its hexadecimal
  8480. representation.
  8481. * src/DHTTokenTracker.cc (generateToken)
  8482. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Added Message Stream Encryption(MSE) support.
  8484. Currently, aria2 accepts incoming connections with Obfuscation Header
  8485. and legacy BitTorrent Header and establishes connections with
  8486. Obfuscation Header first and if failed then retry with legacy
  8487. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8488. choose ARC4. The new option to change the default behavior is planned.
  8489. For tracker extension, "supportcrypto=1" is added statically.
  8490. * src/PeerInitiateConnectionCommand.{h, cc}
  8491. * src/PeerConnection.{h, cc}
  8492. * src/HandleRegistry.h
  8493. * src/SocketCore.h
  8494. * src/PeerReceiveHandshakeCommand.{h, cc}
  8495. * src/BtRegistry.{h, cc}
  8496. * src/PeerListenCommand.cc
  8497. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8498. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8499. * src/MSEHandshake.{h, cc}
  8500. * src/ARC4Encryptor.h
  8501. * src/ARC4Decryptor.h
  8502. * src/LibgcryptARC4Encryptor.h
  8503. * src/LibgcryptARC4Decryptor.h
  8504. * src/LibgcryptARC4Context.h
  8505. * src/LibsslARC4Encryptor.h
  8506. * src/LibsslARC4Decryptor.h
  8507. * src/LibsslARC4Context.h
  8508. * src/DHKeyExchange.h
  8509. * src/LibgcryptDHKeyExchange.h
  8510. * src/LibsslDHKeyExchange.h
  8511. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8512. * test/DefaultBtAnnounceTest.cc
  8513. * test/ARC4Test.cc
  8514. * test/DHKeyExchangeTest.cc
  8515. Removed prepareForRetry() because it is not used.
  8516. * src/PeerAbstractCommand.{h, cc}
  8517. * src/PeerInteractionCommand.{h, cc}
  8518. * src/PeerInitiateConnectionCommand.{h, cc}
  8519. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8520. Added the ability to load nodes from torrent file. These nodes are
  8521. added to the routing table when downloading that torrent.
  8522. * src/BtContext.h
  8523. * src/DefaultBtContext.{h, cc}
  8524. * src/DHTSetup.cc
  8525. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8526. hostname and port pair, and resolves all of them.
  8527. * src/NameResolver.{h, cc}: Added reset().
  8528. * src/RequestGroup.cc
  8529. * test/DefaultBtContextTest.cc
  8530. * test/MockBtContext.h
  8531. Removed assert() from DefaultBtContext and throw exception instead.
  8532. * src/DefaultBtContext.cc
  8533. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Fixed segmentation fault bug when exiting if dht is disabled.
  8535. * src/RequestGroup.cc
  8536. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Fixed typo in log message and define the message in message.h
  8538. * src/TimedHaltCommand.cc
  8539. * src/message.h
  8540. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8541. Included RecoverableException.h to fix compilation error.
  8542. * test/DHTMessageFactoryImplTest.cc
  8543. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8545. * test/DHTPingMessageTest.cc
  8546. * test/DHTGetPeersMessageTest.cc
  8547. * test/DHTFindNodeMessageTest.cc
  8548. * test/DHTAnnouncePeerMessageTest.cc
  8549. * test/MockDHTMessage.h
  8550. * test/MockDHTMessageFactory.h
  8551. * test/MockDHTMessageDispatcher.h: New class.
  8552. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8554. virtual.
  8555. * src/DHTMessageDispatcher.h
  8556. * src/DHTMessageDispatcherImpl.{h, cc}
  8557. * src/DHTSetup.cc
  8558. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. Adding handling of DHT error message. Just log error message and
  8560. throw exception.
  8561. * src/DHTMessageFactoryImpl.cc
  8562. * test/DHTMessageFactoryImplTest.cc
  8563. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8564. Added handling of dynamic cast failure.
  8565. * src/DHTNodeLookupTask.cc
  8566. * src/DHTPeerLookupTask.cc
  8567. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. Added the ability to stop aria2 itself when given time has passed
  8569. from start. Use --stop option to specify time in minutes.
  8570. When 0 is given, this feature is disabled.
  8571. * src/OptionHandlerFactory.cc
  8572. * src/TimeBasedCommand.h: Make _interval protected scope.
  8573. * src/HelpItemFactory.cc
  8574. * src/option_processing.cc
  8575. * src/prefs.h
  8576. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8577. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8578. Without this modification, the result list shows "ERR" when aria2 is
  8579. stopped by --stop option. It should be "INPR".
  8580. * src/DownloadEngine.{h, cc}
  8581. * src/DownloadEngineFactory.cc
  8582. * src/usage_text.h
  8583. * src/TimedHaltCommand.{h, cc}: New class.
  8584. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8585. Bootstrap through node added by port message.
  8586. Currently bootstrap is executed if the number of buckets in routing
  8587. table is 1.
  8588. * src/BtPortMessage.{h, cc}
  8589. * src/DefaultBtMessageFactory.{h, cc}
  8590. * src/PeerInteractionCommand.cc
  8591. * test/BtPortMessageTest.cc
  8592. * test/MockDHTTask.h
  8593. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Extract the Peer class's member variables, which are only needed after
  8595. PeerInteractionCommand, into PeerSessionResource class.
  8596. This class is instantiated in PeerInteractionCommand class's ctor and
  8597. released in its dtor.
  8598. This will make Peer class lightweight and uses less memory for peers
  8599. which are not connected and wait in the queue.
  8600. * src/PeerChokeCommand.cc
  8601. * src/PeerSessionResource.{h, cc}
  8602. * src/PeerInteractionCommand.cc
  8603. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8604. * src/DefaultBtInteractive.cc
  8605. * src/BtPieceMessage.cc
  8606. * src/BtInterestedMessage.cc
  8607. * src/BtUnchokeMessage.cc
  8608. * src/DefaultPeerStorage.{h, cc}
  8609. * src/PeerInitiateConnectionCommand.cc
  8610. * src/ActivePeerConnectionCommand.cc
  8611. * src/BtNotInterestedMessage.cc
  8612. * src/DefaultBtMessageDispatcher.cc
  8613. * src/BtChokeMessage.cc
  8614. * src/BtRequestMessage.cc
  8615. * src/Peer.{h, cc}
  8616. * src/BtRegistry.h
  8617. * src/TrackerWatcherCommand.cc
  8618. * src/PeerReceiveHandshakeCommand.cc
  8619. * test/BtExtendedMessageTest.cc
  8620. * test/BtAllowedFastMessageTest.cc
  8621. * test/BtCancelMessageTest.cc
  8622. * test/DefaultPieceStorageTest.cc
  8623. * test/BtBitfieldMessageTest.cc
  8624. * test/BtHaveMessageTest.cc
  8625. * test/BtNotInterestedMessageTest.cc
  8626. * test/BtRequestMessageTest.cc
  8627. * test/PeerSessionResourceTest.cc
  8628. * test/DefaultBtMessageDispatcherTest.cc
  8629. * test/PeerTest.cc
  8630. * test/BtInterestedMessageTest.cc
  8631. * test/BtRejectMessageTest.cc
  8632. * test/BtChokeMessageTest.cc
  8633. * test/DefaultPeerStorageTest.cc
  8634. * test/BtHaveNoneMessageTest.cc
  8635. * test/BtHaveAllMessageTest.cc
  8636. * test/DefaultExtensionMessageFactoryTest.cc
  8637. * test/BtUnchokeMessageTest.cc
  8638. * test/DefaultBtMessageFactoryTest.cc
  8639. * test/HandshakeExtensionMessageTest.cc
  8640. * test/UTPexExtensionMessageTest.cc
  8641. * test/DefaultBtRequestFactoryTest.cc
  8642. * test/BtPieceMessageTest.cc
  8643. Removed typedef PeerStats.
  8644. * src/PeerStat.h
  8645. * src/SegmentMan.cc
  8646. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Added std namespace to copy, remove_copy, back_inserter,
  8648. front_inserter.
  8649. * src/RequestGroupMan.cc
  8650. * src/DefaultPieceStorage.cc
  8651. * src/StreamFileAllocationEntry.cc
  8652. * src/BtFileAllocationEntry.cc
  8653. * src/RequestGroup.cc
  8654. * src/MetalinkEntry.cc
  8655. * src/DelegatingPeerListProcessor.cc
  8656. * src/DefaultBtRequestFactory.cc
  8657. * src/DefaultBtMessageDispatcher.cc
  8658. * src/version_usage.cc: Included <algorithm>
  8659. * src/main.cc
  8660. * src/MetalinkParserController.cc
  8661. * src/DefaultBtContext.cc
  8662. * src/DownloadEngineFactory.cc
  8663. * src/a2algo.h
  8664. Removed.
  8665. * test/StreamUriListParserTest.cc
  8666. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8668. ActivePeerConnectionCommand when it is given and
  8669. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8670. * src/ActivePeerConnectionCommand.{h, cc}
  8671. * src/BtSetup.cc
  8672. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. Only add socket to DownloadEngine's select routine when peer or
  8674. localhost is unchoked and interested. This lowers CPU usage a
  8675. little bit.
  8676. * src/PeerInteractionCommand.cc
  8677. * src/PeerAbstractCommand.{h, cc}
  8678. * src/BtInteractive.h
  8679. * src/DefaultBtInteractive.{h, cc}
  8680. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Revert previous change because get_peers message is needed for
  8682. announce_peer anyway.
  8683. * src/DHTGetPeersCommand.cc
  8684. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Request peers thought DHT only when download hasn't finished.
  8686. * src/DHTGetPeersCommand.cc
  8687. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8689. * src/DHTBucketRefreshTask.{h, cc}
  8690. * src/DHTSetup.cc
  8691. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8693. standard classes.
  8694. Included string.h where mem* function are used.
  8695. Added namespace aria2.
  8696. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Create directory before saving DHT routing table.
  8698. Now ios::failure is now handled properly.
  8699. * src/DHTAutoSaveCommand.cc
  8700. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8701. Removed unnecessary cerr.
  8702. * src/DownloadEngine.cc
  8703. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8704. Catch exception inside DHTMessageReceiver::receiveMessage().
  8705. Log unknown message.
  8706. * src/DHTMessageReceiver.{h, cc}
  8707. * src/DHTMessageFactory.h
  8708. * src/DHTMessageFactoryImpl.{h, cc}
  8709. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8710. * src/DHTInteractionCommand.cc
  8711. * src/DHTUnknownMessage.{h, cc}
  8712. * test/DHTUnknownMessageTest.cc
  8713. * test/MockDHTMessageFactory.h
  8714. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Commented out ip address comparison because a host can have multiple
  8716. ip addresses and it is hard to predict the hostname is resolved into
  8717. which one.
  8718. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8719. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8720. * po/Makefile.in: Removed since this is generated by configure.
  8721. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Fixed compiler warning about redefinition of SIZE_MAX.
  8723. Use common.h instead of config.h directly here.
  8724. * src/Platform.{h, cc}
  8725. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8726. here.
  8727. * common.h
  8728. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8729. Updated gettext related files.
  8730. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8731. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8732. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8733. Added DHT functionality, compatible with mainline.
  8734. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8735. You may need to specify entry point to DHT network using
  8736. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8737. Use --dht-listen-port to specify port number. Make sure that your
  8738. firewall configuration can pass through UDP traffic to the port.
  8739. The routing table is saved in $HOME/.aria2/dht.dat.
  8740. * src/DHT*
  8741. * src/BNode.{h, cc}
  8742. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8743. particular torrent.
  8744. * src/Data.cc: Rewritten ctor.
  8745. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8746. --dht-entry-point.
  8747. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8748. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8749. ends, remove BtContext from DHTPeerAnnounceStorage.
  8750. * src/BtPortMessage.{h, cc}: Rewritten.
  8751. * src/message.h
  8752. * src/OptionHandlerImpl.cc
  8753. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8754. --dht-entry-point.
  8755. * src/Dictionary.{h, cc} (remove): New function.
  8756. * src/prefs.h
  8757. * src/DefaultBtMessageFactory.h
  8758. * src/BtHandshakeMessage.cc
  8759. * src/ActivePeerConnectionCommand.cc
  8760. * src/SocketCore.{h, cc}: Added datagram socket support.
  8761. * src/DefaultBtMessageFactory.cc
  8762. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8763. Create DHT commands.
  8764. * src/BtMessageFactory.h
  8765. * src/PeerMessageUtil.{h, cc}
  8766. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. Fixed the bug that log file is not written when configuration file doesn't exist.
  8768. This is caused by using Logger class before LogFactory is not configured.
  8769. BUG #1875079
  8770. * src/option_processing.cc
  8771. Warning message "configuration doesn't exist" is only printed when --conf is
  8772. given.
  8773. * src/option_processing.cc
  8774. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8775. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8776. ShaVisitor is now deprecated and slated to be removed.
  8777. * src/DefaultBtContext.cc
  8778. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Externalize message to message.h
  8780. * src/Platform.cc
  8781. * src/message.h
  8782. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. Set default domain and default path to cookie.
  8784. * src/HttpResponse.cc
  8785. * src/CookieBox.{h, cc}
  8786. * src/CookieParser.{h, cc}
  8787. * test/CookieParserTest.cc
  8788. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8789. Added --no-conf and --conf-path command-line option.
  8790. --no-conf option disables loading aria2.conf file.
  8791. --conf-path option changes the configuration file path. The default
  8792. file path is $HOME/.aria2/aria2.conf
  8793. Added a warning message when the configuration file is not found.
  8794. * src/HelpItemFactory.cc
  8795. * src/option_processing.cc
  8796. * src/prefs.h
  8797. * src/usage_text.h
  8798. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Added the message to inform users that other help categories are
  8800. available in -h option.
  8801. * src/version_usage.cc
  8802. * src/TagContainer.{h, cc}
  8803. * test/TagContainerTest.cc
  8804. * src/TaggedItem.{h, cc}
  8805. * test/TaggedItemTest.cc
  8806. * src/HelpItem.h
  8807. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8808. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8809. from PiecedSegment's ctor.
  8810. Previously Piece::getAllMissingBlockIndexes() is called from
  8811. PiecedSegment() but it is rather expensive since only first element is
  8812. used.
  8813. * src/PiecedSegment.cc
  8814. * src/Piece.{h, cc}
  8815. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8816. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8817. each time these functions are called.
  8818. * src/BitfieldMan.{h, cc}
  8819. * test/BitfieldManTest.cc
  8820. * src/array_fun.h
  8821. * test/array_funTest.cc
  8822. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8823. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8824. filtered. Removed unnecessary cast to int32_t.
  8825. * src/BitfieldMan.{h, cc}
  8826. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8828. payload length(4bytes) are received. This happens because lenbufLength
  8829. is not updated in this particular case and successive call of
  8830. receiveMessage() overwrites payload length with bytes recieved which
  8831. are payload body.
  8832. * src/PeerConnection.{h, cc}
  8833. * src/message.h
  8834. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8836. peer if there are peers that have same ipaddr and port.
  8837. I've experiened segmentation fault and "pure virtual function was
  8838. called" error.
  8839. * src/Peer.h
  8840. * test/PeerTest.cc
  8841. * src/DefaultPeerStorage.cc
  8842. * test/DefaultPeerStorageTest.cc
  8843. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Removed a call to isPowerOf() because it is no longer necessary here
  8845. and a request block is not always power of 2.
  8846. BUG#1866924
  8847. * src/PeerMessageUtil.cc (checkLength)
  8848. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8849. Fixed the bug that always first found Segment is removed from
  8850. usedSegmentEntries. Removed unused functions.
  8851. * src/SegmentMan.{h, cc}
  8852. * test/SegmentManTest.cc
  8853. Fixed the bug that ServerHost is not removed.
  8854. * src/RequestGroup.cc
  8855. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8856. Fixed the bug that SegmentMan::completeSegment() is not called
  8857. even if Segment is complete when --lowest-speed-limit is enabled.
  8858. BUG#1864525
  8859. * src/DownloadCommand.{h, cc}
  8860. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Fixed: hash algorithm 'sha1' is always used.
  8862. * src/DownloadCommand.cc (validatePieceHash)
  8863. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Added --enable-peer-exchange command-line option.
  8865. * src/OptionHandlerFactory.cc
  8866. * src/HelpItemFactory.cc
  8867. * src/option_processing.cc
  8868. * src/usage_text.h
  8869. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Move extension from BtRuntime to ExtensionMessageFactory, because
  8871. extension can be specified per peer, not per torrent.
  8872. * src/DefaultBtInteractive.cc
  8873. * src/BtRuntime.h
  8874. * src/ExtendedMessagingAware.h
  8875. * src/ExtensionMessageFactory.h
  8876. * src/DefaultExtensionMessageFactory.cc
  8877. * test/DefaultExtensionMessageFactoryTest.cc
  8878. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Added categorized option help. Specify category using --help option.
  8880. Also added the ability to search options in forward match.
  8881. * src/HelpItem.{h, cc}
  8882. * test/HelpItemTest.cc
  8883. * src/HelpItemFactory.{h, cc}
  8884. * src/TagContainer.{h, cc}
  8885. * test/TagContainerTest.cc
  8886. * src/option_processing.cc
  8887. * src/prefs.h
  8888. * src/TaggedItem.{h, cc}
  8889. * test/TaggedItemTest.cc
  8890. * src/version_usage.cc
  8891. * src/help_tags.h
  8892. * src/usage_text.h
  8893. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Fixed segmentation fault when bad torrent metainfo is parsed.
  8895. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8896. and then throw exception or skip it.
  8897. * src/DefaultBtContext.{h, cc}
  8898. * test/DefaultBtContextTest.cc
  8899. * src/AnnounceList.cc
  8900. * src/CompactPeerListProcessor.cc
  8901. * src/message.h
  8902. * src/DefaultBtAnnounce.{h, cc}
  8903. * test/DefaultBtAnnounceTest.cc
  8904. * src/BencodeVisitor.cc
  8905. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8906. Added missing "B"(=Byte). So now the message looks like this:
  8907. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8908. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8909. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8910. Show the seed ratio after torrent downloads.
  8911. For example, after torrent download completed and --seed-time and
  8912. --seed-ratio conditions are fulfilled, following message is printed
  8913. right after "Download complete: .....":
  8914. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8915. * src/RequestGroupMan.cc
  8916. * src/RequestGroup.{h, cc}
  8917. * src/message.h
  8918. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Remove a defunct control file. A defunct control file means that while
  8920. it exists, but the corresponding download file is missing.
  8921. After its removal, a download restarts from the beginning.
  8922. * src/RequestGroup.cc
  8923. * src/message.h
  8924. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. Allocate bitfield in Peer when it is really used. More specifically,
  8926. bitfield in Peer is allocated after the connection is established and
  8927. deallocated when the connection is dropped.
  8928. Since 2 parameters(piece length and total length) was removed from the
  8929. constructor of Peer class, many test classes were modified accordingly.
  8930. See svn log for more detailed information.
  8931. * src/PeerInteractionCommand.cc
  8932. * src/CompactPeerListProcessor.cc
  8933. * src/Peer.cc
  8934. * src/DefaultPeerListProcessor.cc
  8935. * src/PeerListenCommand.cc
  8936. * src/PeerReceiveHandshakeCommand.cc
  8937. Fixed memory leak
  8938. * src/Piece.cc
  8939. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8940. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8941. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8942. command-line options.
  8943. * src/option_processing.cc
  8944. * src/ActivePeerConnectionCommand.cc
  8945. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Send have message to peer if it already has the piece.
  8947. * src/BtHaveMessage.{h, cc}
  8948. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8950. port.
  8951. * src/DefaultPeerStorage.{h, cc}
  8952. * test/DefaultPeerStorageTest.cc
  8953. * src/HandshakeExtensionMessage.cc
  8954. * test/HandshakeExtensionMessageTest.cc
  8955. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8956. * src/PeerStorage.h
  8957. * test/MockPeerStorage.h
  8958. * src/PeerListenCommand.cc
  8959. * src/PeerReceiveHandshakeCommand.cc
  8960. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8961. Added --metalink-enable-unique-protocol option.
  8962. * src/Metalink2RequestGroup.cc
  8963. * src/option_processing.cc
  8964. * src/prefs.h
  8965. * src/version_usage.cc
  8966. * doc/aria2c.1.txt
  8967. * doc/aria2c.1
  8968. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Allow a peer in incomingPeer to be added peers.
  8970. * src/DefaultPeerStorage.cc
  8971. * test/DefaultPeerStorageTest.cc
  8972. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8974. I could reproduce this bug in following procedure:
  8975. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8976. 2. Restart aria2.
  8977. 3. You see the download stopped around 99%.
  8978. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8979. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8980. If timeout is reached, then _nextCommand is unused and it may contains
  8981. segments and they won't be canceled. Actually, timeout is not needed
  8982. here because if the server dropped connection, then retry is made.
  8983. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8984. Added uTorrent compatible Peer Exchange.
  8985. * src/BencodeVisitor.{h, cc}
  8986. * test/BencodeVisitorTest.cc
  8987. * src/BtConstants.h
  8988. * src/BtContext.h: Added 'private' flag.
  8989. * src/BtExtendedMessage.{h, cc}
  8990. * test/BtExtendedMessageTest.cc
  8991. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8992. reserved field.
  8993. * test/BtHandshakeMessageTest.cc
  8994. * src/BtMessageFactory.h
  8995. * src/BtRegistry.h
  8996. * src/BtRuntime.h: This class holds default extension message IDs for
  8997. aria2. By default, aria2 uses ID 8 for ut_pex.
  8998. * src/DefaultBtContext.cc
  8999. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9000. When it is true, aria2 enables ut_pex. This value is set by
  9001. PeerInteractionCommand.
  9002. * src/DefaultBtMessageFactory.{h, cc}
  9003. * test/DefaultBtMessageFactoryTest.cc
  9004. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9005. handling to DefaultBtInteractive class.
  9006. * src/DefaultExtensionMessageFactory.{h, cc}
  9007. * test/DefaultExtensionMessageFactoryTest.cc
  9008. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9009. the container(peers and incomingPeers. The equality is determined by
  9010. Peer::id).
  9011. * test/DefaultPeerStorageTest.cc
  9012. * src/ExtensionMessage.h
  9013. * test/MockExtensionMessage.h
  9014. * src/ExtensionMessageFactory.h
  9015. * test/MockExtensionMessageFactory.h
  9016. * src/HandshakeExtensionMessage.{h, cc}
  9017. * test/HandshakeExtensionMessageTest.cc
  9018. * src/MetaEntry.h
  9019. * src/Peer.{h, cc}
  9020. * src/PeerInteractionCommand.cc
  9021. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9022. addIncomingPeer.
  9023. * src/PeerMessageUtil.{h, cc}
  9024. * src/PeerObject.h
  9025. * src/UTPexExtensionMessage.{h, cc}
  9026. * test/UTPexExtensionMessageTest.cc
  9027. * src/message.h
  9028. * src/prefs.h
  9029. Fixed the bug that returns incomplete data when it contains null
  9030. character. A convenient constructor was also added.
  9031. * src/Data.{h, cc}
  9032. Rewritten.
  9033. * src/CompactPeerListProcessor.cc
  9034. Fixed typos.
  9035. * src/message.h
  9036. * src/MetaFileUtil.cc
  9037. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Added "Status Legend" label to the explanation text of 'stat' in
  9039. download result and moved it to the last. BUG#1848214
  9040. * src/RequestGroupMan.cc
  9041. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9043. * src/Makefie.am
  9044. * test/Makefile.am
  9045. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9046. Fixed the bug that prevents aria2 from loading cookie file when expire
  9047. value is greater than 2^31-1. BUG#1851066
  9048. * src/CookieBoxFactory.cc
  9049. * test/CookieBoxFactoryTest.cc
  9050. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Fixed possible memory leak when an exception is thrown.
  9052. * src/XML2SAXMetalinkProcessor.cc
  9053. Added Expat support. If both libxml2 and Expat are installed, then
  9054. libxml2 is used by default.
  9055. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9056. ExpatMetalinkProcessor according to the configuration.
  9057. * src/ExpatMetalinkProcessor.{h, cc}
  9058. * src/main.cc: Removed libxml2 specific header and init/free function.
  9059. * src/MetalinkProcessorFactory.{h, cc}
  9060. * src/MetalinkHelper.cc
  9061. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9062. * src/MetalinkProcessor.h
  9063. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9064. MetalinkProcessorTest is used instead.
  9065. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9066. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9067. MetalinkProcessorFactory::newInstance().
  9068. * m4/libexpat.m4
  9069. * configure.ac: Added configuration options for libexpat.
  9070. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9071. Disabled -s option in metalink download.
  9072. * src/Metalink2RequestGroup.cc
  9073. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. If several protocols are available for a mirror in metalink file,
  9075. aria2 now use one of them. --metalink-preferred-protocol option was
  9076. added to specify the preference of protocol.
  9077. * src/AbstractCommand.cc
  9078. * src/OptionHandlerFactory.cc
  9079. * src/ServerHost.{h, cc}
  9080. * src/Metalink2RequestGroup.cc
  9081. * src/RequestGroup.{h, cc}
  9082. * test/RequestGroupTest.cc
  9083. * src/option_processing.cc
  9084. * src/prefs.h
  9085. * src/HttpResponseCommand.cc
  9086. * src/MetalinkResource.{h, cc}
  9087. * src/FtpNegotiationCommand.cc
  9088. * src/MetalinkEntry.{h, cc}
  9089. * src/MetalinkEntryTest.cc
  9090. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9091. Code cleanup and added debug log.
  9092. * src/PeerConnection.cc
  9093. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. Compiler error fix: applied the patch by Tiziano Mueller
  9095. * src/RequestGroup.cc
  9096. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9098. in stopped and completed event.
  9099. * src/AnnounceList.{h, cc}
  9100. * test/AnnounceListTest.cc
  9101. * src/DefaultBtAnnounce.cc
  9102. * test/DefaultBtAnnounceTest.cc
  9103. Sorted URLs.
  9104. * test/Metalink2RequestGroupTest.cc
  9105. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. Removed unnecessary string copy. Updated doc and corrected indentation.
  9107. * src/Base64.cc
  9108. Fixed compilation warnings
  9109. * test/DataTest.cc
  9110. * test/HttpRequestTest.cc
  9111. * test/MetaFileUtilTest.cc
  9112. * test/RequestTest.cc
  9113. * Release 0.12.0
  9114. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Updated translations
  9116. * po/{de,fr,ja,nl,ru}.po
  9117. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9118. translations. Many thanks to translators.
  9119. * po/{ca,es,it,pt_BR,sv}.po
  9120. * po/LINGUAS
  9121. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9122. Added a notice about URL
  9123. * src/version_usage.cc
  9124. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9125. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9126. aria2 repeatedly sends stopped request when tracker returns error code.
  9127. * src/AnnounceList.cc
  9128. * test/AnnounceListTest.cc
  9129. * src/AnnounceTier.h
  9130. Added a message when ctrl-c is hit.
  9131. Now second ctrl-c is also handled in signal handler.
  9132. * src/RequestGroupMan.{h, cc}
  9133. * src/RequestGroup.{h, cc}
  9134. * src/MultiUrlRequestInfo.cc
  9135. * src/DownloadEngine.cc
  9136. * src/TrackerWatcherCommand.cc
  9137. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9138. Code cleanup
  9139. * src/Base64.cc (encode)
  9140. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9141. Changed Direct/IO enable/disable procesure in file allocation routine.
  9142. * src/SingleFileAllocationIterator.cc
  9143. (SingleFileAllocationIterator):
  9144. Disable directIO if offset is not multiple of 512.
  9145. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9146. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9147. Enable created SingleFileAllocationIterator's directIO.
  9148. * src/FileAllocationEntry.cc
  9149. (FileAllocationEntry): Enable directIO here.
  9150. (~FileAllocationEntry): Disable directIO here.
  9151. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9153. * src/Peer.{h, cc}
  9154. * src/DefaultPieceStorage.cc
  9155. * test/DefaultPieceStorageTest.cc
  9156. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Rewritten direct I/O support routine
  9158. * src/SingleFileAllocationIterator.cc
  9159. * src/MultiDiskAdaptor.{h, cc}
  9160. * src/ByteArrayDiskWriter.h
  9161. * src/AbstractSingleDiskAdaptor.h
  9162. * src/AbstractDiskWriter.cc
  9163. * src/DefaultPieceStorage.cc
  9164. * src/DiskWriter.h
  9165. * src/BinaryStream.h
  9166. * src/IteratableChunkChecksumValidator.cc
  9167. * src/IteratableChecksumValidator.cc
  9168. * src/CheckIntegrityEntry.cc
  9169. * src/FileAllocationEntry.cc
  9170. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. Fixed typo
  9172. * src/version_usage.cc
  9173. Updated doc
  9174. * doc/aria2c.1.txt
  9175. * doc/aria2c.1
  9176. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9177. Fixed compile error without message digest support.
  9178. * src/FileMetalinkParserState.cc
  9179. * src/MetalinkParserController.{h, cc}
  9180. * test/XML2SAXMetalinkProcessorTest.cc
  9181. * test/MetalinkParserControllerTest.cc
  9182. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9183. Enable direct I/O support in checksum checking.
  9184. * src/IteratableChunkChecksumValidator.{h, cc}
  9185. * test/IteratableChunkChecksumValidatorTest.cc
  9186. * src/CheckIntegrityEntry.cc
  9187. * src/PieceHashCheckIntegrityEntry.cc
  9188. * src/IteratableChecksumValidator.{h, cc}
  9189. * src/BtCheckIntegrityEntry.cc: Added doc.
  9190. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9191. Added --allow-piece-length-change option.
  9192. * src/DefaultBtProgressInfoFile.cc
  9193. * test/DefaultBtProgressInfoFileTest.cc
  9194. * src/OptionHandlerFactory.cc
  9195. * src/option_processing.cc
  9196. * src/prefs.h
  9197. * src/version_usage.cc
  9198. * doc/aria2c.1.txt
  9199. * doc/aria2c.1
  9200. Fixed: duplicated result entry appears when exception is thrown in
  9201. RequestGroup::createInitiateConnectionCommand().
  9202. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9203. Add RequestGroup to _requestGroup after RequetGroup::
  9204. createInitiateConnectionCommand() succeeds.
  9205. Externalized message
  9206. * src/XML2SAXMetalinkProcessor.cc
  9207. * src/message.h
  9208. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. Forced download abort when received negative response from http/ftp
  9210. server.
  9211. * src/HttpResponseCommand.cc
  9212. * src/FtpNegotiationCommand.cc
  9213. * src/HttpResponse.cc
  9214. * src/FtpConnection.cc
  9215. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9216. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9217. the predecessor, Xml2MetalinkParser class.
  9218. I tested them against 94KB metalink file with 1234 chunk checksums.
  9219. The new one parsed it in 22msec, while it took 6000msec with old one.
  9220. * src/XML2SAXMetalinkProcessor.{h, cc}
  9221. * test/XML2SAXMetalinkProcessorTest.cc
  9222. * src/MetalinkParserController.{h, cc}
  9223. * test/MetalinkParserControllerTest.cc
  9224. * src/MetalinkParserState.h: Also added 16 subclasses.
  9225. * src/main.cc
  9226. * src/Metalink2RequestGroup.cc
  9227. * src/MetalinkHelper.cc
  9228. * src/MetalinkEntry.cc
  9229. * src/ChunkChecksum.h
  9230. Rewritten Base64 class for better performance.
  9231. * src/Base64.{h, cc}
  9232. * test/Base64Test.cc
  9233. * src/HttpRequest.cc
  9234. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9235. Fixed the bug#1841757: aria2 will connect to server to only get
  9236. file size.
  9237. * src/StreamFileAllocationEntry.cc
  9238. * src/option_processing.cc
  9239. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9240. downloads.
  9241. * src/FtpNegotiationCommand.cc
  9242. Suppressed wrong message when finding PreDownloadHandler
  9243. * src/RequestGroup.cc
  9244. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. Updated usage
  9246. * src/version_usage.cc
  9247. Updated man page
  9248. * doc/aria2c.1.txt
  9249. * doc/aria2c.1
  9250. Updated po files
  9251. * po/aria2c.pot
  9252. * po/*.po
  9253. * po/*.gmo
  9254. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9255. Eliminated g++-4.2 warning
  9256. * src/DownloadHandlerConstants.{h, cc}
  9257. * src/Util.cc
  9258. * test/MetaFileUtilTest.cc
  9259. * test/PStringBuildVisitorTest.cc
  9260. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9261. * src/RequestGroup.cc
  9262. * src/BtCheckIntegrityEntry.cc
  9263. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9264. Fixed a2io.h
  9265. * src/a2io.h
  9266. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9267. Added direct I/O support. The current implementation uses O_DIRECT,
  9268. which is not posix standard and is tested on linux 2.6.21.
  9269. Currently only file allocation uses direct I/O.
  9270. * src/SingleFileAllocationIterator.{h, cc}
  9271. * test/SingleFileAllocationIteratorTest.cc
  9272. * src/MultiFileAllocationIterator.{h, cc}
  9273. * test/MultiFileAllocationIteratorTest.cc
  9274. * src/BinaryStream.h
  9275. * src/DiskWriter.h
  9276. * src/AbstractDiskWriter.{h, cc}
  9277. * src/ByteArrayDiskWriter.h
  9278. * src/DiskAdaptor.h
  9279. * src/AbstractSingleDiskAdaptor.{h, cc}
  9280. * src/MultiDiskAdaptor.{h, cc}
  9281. * src/FileAllocationEntry.cc
  9282. * src/Util.{h, cc}
  9283. * src/OptionHandlerFactory.cc
  9284. * src/prefs.h
  9285. * src/version_usage.cc
  9286. * src/option_processing.cc
  9287. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9288. handleException.
  9289. * src/MultiFileAllocationIterator.cc
  9290. Added EINTR handling
  9291. * src/SocketCore.cc
  9292. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Updated usage
  9294. * src/version_usage.cc
  9295. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Applied Ross's patch for MinGW port.
  9297. * src/DownloadEngine.h
  9298. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Set Content-Type to SingleFileDownloadContext when http response is
  9300. received.
  9301. * src/HttpResponseCommand.cc
  9302. * src/HttpResponse.{h, cc}
  9303. * test/HttpResponseTest.cc
  9304. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9305. Rewritten to add content-type support.
  9306. * src/DownloadHandler.{h, cc}
  9307. * src/BtPostDownloadHandler.{h, cc}
  9308. * test/BtPostDownloadHandlerTest.cc
  9309. * src/MetalinkPostDownloadHandler.{h, cc}
  9310. * test/MetalinkPostDownloadHandlerTest.cc
  9311. * src/PostDownloadHandler.{h, cc}
  9312. * src/DownloadHandlerConstants.{h, cc}
  9313. * src/RequestGroup.cc
  9314. * src/HttpResponseCommand.cc
  9315. * src/FtpNegotiationCommand.cc
  9316. * src/SingleFileDownloadContext.{h, cc}
  9317. * src/RequestGroup.h
  9318. * src/RequestGroupCriteria.h
  9319. * src/ContentTypeRequestGroupCriteria.h
  9320. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9321. If it is give, metalink/torrent file is not written to the disk, but
  9322. just is kept in memory. Parsing is occurred on memory.
  9323. * src/MetalinkHelper.{h, cc}
  9324. * src/MetalinkProcessor.h
  9325. * src/Xml2MetalinkProcessor.{h, cc}
  9326. * test/Xml2MetalinkProcessorTest.cc
  9327. * src/DownloadHandlerFactory.{h, cc}
  9328. * test/DownloadHandlerFactoryTest.cc
  9329. * src/PreDownloadHandler.{h, cc}
  9330. * src/OptionHandlerFactory.cc
  9331. * src/DefaultBtContext.{h, cc}
  9332. * test/DefaultBtContextTest.cc
  9333. * src/version_usage.cc
  9334. * src/Metalink2RequestGroup.{h, cc}
  9335. * src/RequestGroup.{h, cc}
  9336. * src/a2functional.h
  9337. * test/a2functionalTest.cc
  9338. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9339. * src/OptionHandlerImpl.h
  9340. * src/prefs.h
  9341. * src/Util.{h, cc}
  9342. * test/UtilTest.cc
  9343. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9344. memory usage.
  9345. * src/RequestGroupMan.{h, cc}
  9346. * src/DownloadEngine.cc
  9347. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9348. WeakHandle to SharedHandle because WeakHandle could be null.
  9349. * src/RequestGroup.{h, cc}
  9350. * src/DownloadEngineFactory.cc
  9351. * src/DownloadResult.h
  9352. Set totalLength after download finished
  9353. * src/UnknownLengthPieceStorage.{h, cc}
  9354. Keep torrent file specified in metalink in memory.
  9355. * src/Metalink2RequestGroup.cc
  9356. * src/BtDependency.cc
  9357. * src/TrueRequestGroupCriteria.h
  9358. Fixed the bug: seekg is used where seekp should be used.
  9359. * src/ByteArrayDiskWriter.cc
  9360. * test/ByteArraydiskWriterTest.cc
  9361. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9362. Fixed syntax error
  9363. * test/SequenceTest.cc
  9364. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9366. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9367. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9368. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9369. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9370. Added the check to see whether ares_host_callback accepts timeouts
  9371. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9372. * src/NameResolver.{h, cc}
  9373. * m4/libcares.m4
  9374. * configure.ac: Set C++ for language choice.
  9375. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Fixed: compilation fails without c-ares/ares
  9377. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9378. Generate http/ftp commands only when download is incomplete.
  9379. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9380. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9381. Corrected typo. Examples are removed since they are available in man
  9382. page.
  9383. * src/version_usage.cc
  9384. Updated man page.
  9385. * doc/aria2c.1
  9386. * doc/aria2c.1.txt
  9387. * doc/makeman: Commented out sed command.
  9388. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9389. Throw DlAbortEx when a remote file is not found.
  9390. * src/HttpResponse.cc
  9391. * src/FtpNegotiationCommand.cc
  9392. * src/message.h
  9393. Overwrite an existing file if --allow-overwrite=true is given.
  9394. * src/RequestGroup.cc
  9395. Removed unused functions
  9396. * src/AbstractCommand.h
  9397. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9398. Removed 'extern' from 'extern typedef ...' in src/*.h
  9399. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9400. Updated usage
  9401. * src/version_usage.cc
  9402. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. Trim announce URL
  9404. * src/DefaultBtContext.cc
  9405. * test/ShaVisitorTest.cc
  9406. Trim argument s. Give trimed s to exception constructor.
  9407. * src/Util.cc (parseInt)(parseLLInt)
  9408. * test/UtilTest.cc
  9409. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Set precision back to 1.
  9411. * src/ConsoleStatCalc.cc (calculateStat)
  9412. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9413. Replaced strtol with Util::parseInt
  9414. * src/ChunkedEncoding.cc
  9415. * src/HttpConnection.cc
  9416. * src/CookieBoxFactory.cc
  9417. * src/ParameterizedStringParser.cc
  9418. * src/Util.cc
  9419. * test/UtilTest.cc
  9420. * test/OptionHandlerTest.cc
  9421. * src/Request.cc
  9422. Throw exception when empty string is given. The message for exception
  9423. changed.
  9424. * src/Util.cc (parseInt)(parseLLInt)
  9425. * src/message.h
  9426. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9427. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9428. set to 1.
  9429. * src/ConsoleStatCalc.cc (calculateStat)
  9430. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9431. Preallocate non-requested file which is adjacent forward to requested
  9432. file('requested' files means the files given in --select-file option)
  9433. if they share a same piece.
  9434. This fixes long pause in the file system which doesn't support sparse
  9435. files like FAT32 while downloading.
  9436. * src/MultiFileAllocationIterator.{h, cc}
  9437. * test/MultiFileAllocationIteratorTest.cc
  9438. * src/FileEntry.{h, cc}
  9439. Removed unused _option.
  9440. * src/MultiDiskAdaptor.h
  9441. * test/MultiDiskAdaptorTest.cc
  9442. * src/DefaultPieceStorage.cc
  9443. Set the default value of --seed-ratio to 1.0.
  9444. If 0.0 is given, then seeding continues regardless of share ratio.
  9445. * src/version_usage.cc
  9446. * src/option_processing.cc
  9447. * src/BtSetup.cc
  9448. * doc/aria2c.1.txt
  9449. * doc/aria2c.1
  9450. Fixed: Selective download is not working in BitTorrent
  9451. * src/RequestGroup.cc
  9452. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9453. * src/PieceStorage.h
  9454. * test/MockPieceStorage.h
  9455. * src/UnknownLengthPieceStorage.h
  9456. * src/DefaultPieceStorage.{h, cc}
  9457. * src/Metalink2RequestGroup.cc
  9458. * src/RequestGroup.cc
  9459. * src/Sequence.h
  9460. * test/SequenceTest.cc
  9461. * src/IntSequence.h
  9462. * src/message.h
  9463. * src/Util.{h, cc}
  9464. * test/UtilTest.cc
  9465. Added new function 'parse' to catch exception thrown by subclass's
  9466. parseArg
  9467. * src/OptionHandler.h
  9468. * src/OptionParser.cc
  9469. * src/NameMatchOptionHandler.h
  9470. * src/OptionHandlerImpl.h
  9471. * test/OptionHandlerTest.cc
  9472. Added IntegerRangeOptionHandler. Used for --listen-port and
  9473. --select-file. Now --listen-port accepts range of port.
  9474. * src/OptionHandlerFactory.cc
  9475. * src/version_usage.cc
  9476. * src/OptionHandlerImpl.h
  9477. * src/option_processing.cc
  9478. * src/BtSetup.cc
  9479. * src/PeerListenCommand.{h, cc}
  9480. * doc/aria2c.1.txt
  9481. * doc/aria2c.1
  9482. Implemented operator< for Exception class to provide easy way to print
  9483. exception stack trace.
  9484. * src/Exception.{h, cc}
  9485. * src/main.cc
  9486. * src/option_processing.cc
  9487. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9488. * src/version_usage.cc
  9489. (showVersion): Reworked.
  9490. (showUsage): Added examples.
  9491. Removed Hint for total length and file name.
  9492. * src/Metalink2RequestGroup.cc
  9493. * src/RequestGroup.{h, cc}
  9494. * src/HttpResponseCommand.cc
  9495. * src/FtpNegotiationCommand.cc
  9496. Now --follow-torrent and --follow-metalink option work properly.
  9497. * src/RequestGroup.cc
  9498. Updated man page
  9499. * doc/aria2c.1.txt
  9500. * doc/aria2c.1
  9501. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9502. Removed.
  9503. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9504. Use Segment::operator==()
  9505. * src/HttpConnection.cc
  9506. * src/Segment.h
  9507. Updated usage
  9508. * src/version_usage.cc
  9509. Added EINTR treatment.
  9510. * src/SocketCore.cc
  9511. * src/AbstractDiskWriter.cc
  9512. Rewritten.
  9513. * src/Util.cc (rangedFileCopy)
  9514. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Fixed typo.
  9516. * src/version_usage.cc
  9517. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Implemented. Now -c option works fine.
  9519. * src/DefaultPieceStorage.cc (markPiecesDone)
  9520. * test/DefaultPieceStorageTest.cc
  9521. Removed.
  9522. * src/SegmentMan.{h, cc}
  9523. (markAllPiecesDone)
  9524. (markPieceDone)
  9525. Synchronized po files with
  9526. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9527. * src/fr.po
  9528. * src/ru.po
  9529. * src/de.po
  9530. * src/ja.po
  9531. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Added ifdef and some modifications to compile without BitTorrent,
  9533. Metalink, MessageDigest
  9534. support.
  9535. * src/PieceHashCheckIntegrityEntry.cc
  9536. * src/MetalinkEntry.h
  9537. * src/version_usage.cc
  9538. * src/main.cc
  9539. * src/DownloadEngine.{h, cc}
  9540. * src/Metalink2RequestGroup.cc
  9541. * src/Peer.cc
  9542. * src/RequestGroup.cc
  9543. * src/MetalinkHelper.cc
  9544. * test/DefaultPieceStorageTest.cc
  9545. * test/MetalinkPostDownloadHandlerTest.cc
  9546. * test/Metalink2RequestGroupTest.cc
  9547. Hide TOTAL SPD when all downloads complete.
  9548. * src/ConsoleStatCalc.cc
  9549. Log target system information.
  9550. * src/main.cc
  9551. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Now --metalink-location accepts a comma-deliminated list of locations.
  9553. * src/MetalinkEntry.{h, cc}
  9554. * test/MetalinkEntryTest.cc
  9555. * src/version_usage.cc
  9556. * src/Metalink2RequestGroup.cc
  9557. * src/Xml2MetalinkProcessor.cc
  9558. * test/Xml2MetalinkProcessorTest.cc
  9559. * doc/aria2c.1.txt
  9560. * doc/aria2c.1
  9561. * src/Util.cc (toUpper)(toLower): Rewritten.
  9562. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. Added the ability to detect duplicate download entry which is about to
  9564. download the same file other RequestGroup is downloading.
  9565. * src/RequestGroup.cc
  9566. * src/HttpResponseCommand.cc
  9567. * src/FtpNegotiationCommand.cc
  9568. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9569. Recalculates download progress when loading a control file,
  9570. if the piece length of DownloadContext is different from the one saved
  9571. in the control file. Currently in-flight pieces are ignored.
  9572. * src/DefaultBtProgressInfoFile.cc
  9573. * test/DefaultBtProgressInfoFileTest.cc
  9574. * src/Util.{h, cc}
  9575. * test/UtilTest.cc
  9576. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9577. Do not rotate tiers in announce-list.
  9578. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9579. AnnounceList::allTiersFailed() used instead to detect whether all
  9580. tiers are tried and failed.
  9581. * test/DefaultBtAnnounceTest.cc
  9582. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9583. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9584. * test/AnnounceListTest.cc
  9585. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9586. clause. Catch RecoverableException instead of DlRetryEx instead.
  9587. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Implemented checksum validation feature(1 checksum for each file)
  9589. The validation takes place after the download.
  9590. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9591. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9592. * src/CheckIntegrityCommand.cc: Changed log message.
  9593. * src/Metalink2RequestGroup.cc: Set checksum to
  9594. SingleFileDownloadContext.
  9595. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9596. PieceHashCheckIntegrity class.
  9597. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9598. PieceHashCheckIntegrity class.
  9599. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9600. * src/IteratableValidator.h: New class.
  9601. * src/message.h
  9602. * src/CheckIntegrityEntry.{h, cc}
  9603. * src/IteratableChunkChecksumValidator.{h, cc}
  9604. * src/SingleFileDownloadContext.h
  9605. * src/DownloadCommand.cc
  9606. --allow-overwrite=true is no longer needed to check file integrity
  9607. before download in BitTorrent download.
  9608. * src/RequestGroup.cc (getInitialCommand)
  9609. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9610. throws exception.
  9611. * src/RequestGroupMan.cc (getInitialCommands)
  9612. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9613. urlencode the given url inside Request::parseUrl(...)
  9614. * src/Request.{h, cc}
  9615. * src/Util.{h, cc}
  9616. * test/RequestTest.cc
  9617. Removed #!metalink3! notation support because it is deleted from
  9618. the metalink specification.
  9619. * src/Request.{h, cc}
  9620. * test/RequestTest.cc
  9621. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9622. Don't connect server before checking file integrity at startup, if
  9623. filesize and output file path are known.
  9624. * src/AbstractCommand.cc
  9625. * src/StreamFileAllocationEntry.cc
  9626. * src/Metalink2RequestGroup.cc
  9627. * src/RequestGroup.{h, cc}
  9628. * src/HttpResponseCommand.cc
  9629. * src/FtpNegotiationCommand.cc
  9630. Added DownloadFailureException. If it is thrown, RequestGroup should
  9631. halt.
  9632. * src/AbstractCommand.cc
  9633. * src/DownloadFailureException.h
  9634. * src/RequestGroup.cc
  9635. Catch RecoverableException, instead of DlAbortEx.
  9636. * src/RequestGroupMan.cc
  9637. * src/FillRequestGroupCommand.cc
  9638. * src/MetaFileUtil.cc
  9639. * src/IteratableChunkChecksumValidator.cc
  9640. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9641. getGID())
  9642. * src/CheckIntegrityCommand.cc
  9643. * src/message.h
  9644. Print gid instead of idx.
  9645. * src/RequestGroupMan.cc
  9646. Removed exception throwers declaration.
  9647. * src/DirectDiskAdaptor.{h, cc}
  9648. * src/SocketCore.{h, cc}
  9649. * src/MultiDiskAdaptor.{h, cc}
  9650. * src/HttpConnection.{h, cc}
  9651. * src/HttpResponse.{h, cc}
  9652. * src/DiskAdaptor.{h, cc}
  9653. * src/CopyDiskAdaptor.{h, cc}
  9654. * src/MultiDiskAdaptor.{h, cc}
  9655. * src/HttpHeaderProcessor.{h, cc}
  9656. * src/AbstractSingleDiskAdaptor.{h, cc}
  9657. * src/Util.{h, cc}
  9658. * test/UtilTest.cc
  9659. * src/DefaultDiskWriter.{h, cc}
  9660. * src/FtpConnection.{h, cc}
  9661. * src/AbstractDiskWriter.{h, cc}
  9662. Removed duplicate code.
  9663. * src/StreamCheckIntegrityEntry.cc
  9664. Removed unnecessary include.
  9665. * src/DiskWriter.h
  9666. Included Exception.h
  9667. * src/option_processing.cc
  9668. Included 2 files and added doc
  9669. * src/TrackerWatcherCommand.cc
  9670. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9671. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9672. Changed CheckIntegrityEntry interface so that it can define
  9673. the action when all the chunk checksums are valid.
  9674. * src/CheckIntegrityEntry.h
  9675. * src/StreamCheckIntegrityEntry.{h, cc}
  9676. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9677. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9678. to exit rather than doing seeding. So, it would be good to toggle this
  9679. behavior.
  9680. * src/CheckIntegrityCommand.cc
  9681. * src/AbstractCommand.cc
  9682. * src/RequestGroup.cc
  9683. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Reflect the download length of in-flight pieces.
  9685. It makes the download length readout more precise.
  9686. * src/DefaultPieceStorage.{h, cc}
  9687. * test/DefaultPieceStorageTest.cc
  9688. * src/a2functional.h
  9689. * test/a2functionalTest.cc
  9690. Lower CPU load when --max-download-limit is used.
  9691. There is up and down in speed indicator when enabling
  9692. http-pipelining but a download goes well. I think the problem is that
  9693. because http-pipelining is enabled, DownloadCommand is created for
  9694. each segment and in its constructor, PeerStat::downloadStart() is
  9695. called. In PeerStat::downloadStart(), speed calculation object is
  9696. reseted, which makes download speed zero.
  9697. * src/DownloadCommand.cc
  9698. Rewritten using accumulate.
  9699. * src/RequestGroupMan.cc (calculateStat)
  9700. Code clearnup.
  9701. * src/FtpNegotiationCommand.cc
  9702. * src/HttpResponseCommand.cc
  9703. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9704. Fixed: Can not resume: aria2 reports download already finished.
  9705. * src/AbstractCommand.{h, cc}
  9706. * src/HttpResponseCommand.cc
  9707. * src/FtpNegotiateCommand.cc
  9708. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9709. Now a file is stored in the directory specified in .metalnk file
  9710. (file[@name]).
  9711. * src/Metalink2RequestGroup.cc
  9712. Create the directory structure when opening the file if it doesn't
  9713. exist.
  9714. * src/AbstractDiskWriter.cc
  9715. * src/Util.{h, cc}
  9716. * src/File.h
  9717. * test/UtilTest.cc
  9718. Removed file name comparison
  9719. * src/Metalink2RequestGroup.cc
  9720. * src/HttpResponseCommand.cc
  9721. Rewritten using Util::mkdirs()
  9722. * src/FileEntry.cc (setupDir)
  9723. * test/FileEntryTest.cc
  9724. Updated doc
  9725. * src/SingleFileDownloadContext.h
  9726. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9727. Now SleepCommand dispatches nextCommand when halt is requested.
  9728. It avoids a possible long wait after hitting CTRL-C.
  9729. * src/SleepCommand.{h, cc}
  9730. * src/RequestGroupAware.{h, cc}
  9731. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9732. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9733. to open listen port, then remove the port number from the tracker
  9734. request.
  9735. * src/DefaultBtAnnounce.cc
  9736. * test/DefaultBtAnnounceTest.cc
  9737. * test/MockPieceStorage.h
  9738. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9739. them more testable.
  9740. * src/DefaultBtAnnounce.{h, cc}
  9741. * src/DefaultBtContext.{h, cc}
  9742. * src/Util.{h, cc}
  9743. * test/DefaultBtAnnounceTest.cc
  9744. * test/DefaultBtContextTest.cc
  9745. * test/UtilTest.cc
  9746. Added 'B' to upload bytes readout.
  9747. * src/ConsoleStatCalc.cc
  9748. Now the listen port for BitTorrent download is opened when it is
  9749. needed.
  9750. * src/DownloadEngineFactory.cc
  9751. * src/BtSetup.{h, cc}
  9752. * src/PeerListenCommand.{h, cc}
  9753. Now an exception thrown while parsing tracker response is now logged.
  9754. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9755. called, which means no retry is made in this case, assuming a tracker
  9756. has a problem.
  9757. * src/TrackerWatcherCommand.cc
  9758. Fixed: downloading a file whose length is unkown fails.
  9759. * src/DownloadCommand.cc
  9760. Simplified prepareForNextSegment()
  9761. * src/DownloadCommand.cc
  9762. Updated
  9763. * po/POTFILES.in
  9764. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Re-implemented a file listing for Metalink, which was dropped while
  9766. http/ftp/torrent integration was being implemented.
  9767. * src/MetalinkHelper.{h, cc}: New class.
  9768. * test/MetalinkHelperTest.cc
  9769. * src/main.cc
  9770. * src/Metalink2RequestGroup.cc
  9771. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Added the ability to display the detailed torrent file information.
  9773. Now -S option gives not only a file listing, but also total download
  9774. length, info hash, announce URI, piece length, the number of pieces,
  9775. and mode(single or multi-torrent).
  9776. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9777. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9778. KiB)
  9779. * test/UtilTest.cc
  9780. * src/main.cc
  9781. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9782. Added ftp://USER:PASSWD@Servername automatic parsing.
  9783. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9784. _password. Recognize username and password in URI.
  9785. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9786. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9787. * src/RequestFactory.{h, cc}: Removed.
  9788. * src/AuthConfigFactory.{h, cc}: New class.
  9789. * src/FtpConnection.cc: Use AuthConfigFactory.
  9790. * src/HttpRequest.cc: Use AuthConfigFactory.
  9791. * test/HttpRequestTest.cc: Updated.
  9792. * test/RequestTest.cc: Updated.
  9793. * test/AuthConfigFactoryTest.cc: New class.
  9794. * test/RequestFactoryTest.cc: Removed.
  9795. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9796. Use RequestGroup::allDownloadFinished() to decide whether the control
  9797. file should be removed or saved.
  9798. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9799. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9800. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9801. Use File::renameTo()
  9802. * src/DefaultBtProgressInfoFile.cc
  9803. Added --no-file-allocation-limit command-line option.
  9804. * src/version_usage.cc
  9805. * src/option_processing.cc
  9806. * src/OptionHandlerFactory.cc
  9807. * src/RequestGroup.{h, cc}
  9808. * src/BtCheckIntegrityEntry.cc
  9809. * src/StreamCheckIntegrityEntry.cc
  9810. * src/prefs.h
  9811. * doc/aria2c.1.txt
  9812. * doc/aria2c.1
  9813. Now prealloc is the default value for --file-allocation option.
  9814. * src/version_usage.cc
  9815. * src/option_processing.cc
  9816. * doc/aria2c.1.txt
  9817. * doc/aria2c.1
  9818. Don't URL-encode user-agent.
  9819. * src/HttpRequest.cc
  9820. Updated translations
  9821. * po/LINGUAS: Added nl for Dutch translation.
  9822. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9823. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9824. * po/POTFILES.in: Updated.
  9825. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9826. Added the ability to recognize url-list in a torrent file.
  9827. The retrieved URLs are attached to the corresponding FileEntry.
  9828. * src/DefaultBtContext.{h, cc}
  9829. * src/FileEntry.{h, cc}
  9830. * test/DefaultBtContextTest.cc
  9831. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9833. after the download finishes.
  9834. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9836. the data smaller than block length.
  9837. A block length can be specified by constructor's argument.
  9838. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9839. Get a missing piece in the range of given FileEntry. This function is
  9840. not used in the program yet.
  9841. * src/Util.h: Added some macros.
  9842. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. Added HTTP/1.1 keep alive and pipelining support.
  9844. See --enable-http-keep-alive and --enable-http-pipelining option.
  9845. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9846. Segment.
  9847. * src/HttpDownloadCommand.{h, cc}
  9848. * src/OptionHandlerFactory.cc
  9849. * src/HttpConnection.{h, cc}
  9850. * src/version_usage.cc
  9851. * src/HttpInitiateConnectionCommand.cc
  9852. * src/FtpInitiateConnectionCommand.cc
  9853. * src/Segment.h
  9854. * src/HttpRequestCommand.{h, cc}
  9855. * src/option_processing.cc
  9856. * src/prefs.h
  9857. * src/HttpResponseCommand.cc
  9858. * src/SegmentMan.{h, cc}
  9859. * src/FtpNegotiateCommand.cc
  9860. * src/HttpProxyResponseCommand.cc
  9861. * src/Request.cc
  9862. * src/HttpRequest.cc
  9863. * src/DownloadCommand.cc
  9864. * test/HttpRequestTest.cc
  9865. * test/RequestTest.cc
  9866. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9867. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9868. finished.
  9869. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9871. catching it inside the method.
  9872. When no file entry is found in a metalink without querying user
  9873. preferences, throw the exception with the error message that suggests
  9874. metalink file is probably broken.
  9875. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9876. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9877. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9878. processed.
  9879. * src/RequestGroupMan.cc (removeStoppedGroup)
  9880. Added debug message.
  9881. * src/BtPostDownloadHandler.cc
  9882. * src/MetalinkPostDownloadHandler.cc
  9883. * src/PostDownloadHandler.{h, cc}
  9884. * src/RequestGroup.cc
  9885. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9887. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9888. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9889. stops and there are any unfinished or in-progress downloads.
  9890. Added the legend of "stat".
  9891. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. Throw exception when chunck checksum verification fails.
  9893. * src/DownloadCommand.cc (validatePieceHash): New function.
  9894. * src/PiecedSegment.{h, cc} (clear): New function.
  9895. * src/GrowSegment.{h, cc} (clear): New function.
  9896. * src/Segment.h (clear): New function.
  9897. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9898. * test/SegmentTest.cc
  9899. * test/GrowSegmentTest.cc
  9900. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Do not send referer when redirected.
  9902. * src/Request.cc (redirectUrl)
  9903. * test/RequestTest.cc
  9904. * test/HttpRequestTest.cc
  9905. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9906. Implemented BitTorrent/http/ftp integrated download.
  9907. I've rewritten lots of files and now some headers have forward
  9908. class declarations to reduce compile time.
  9909. The implementation is extremely alpha stage, I recommend to use this
  9910. for testing purpose only.
  9911. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9912. Fixed the compilation error on 64bit platform.
  9913. * test/HttpHeaderProcessorTest.cc
  9914. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9915. Merged Ross's patch that fixes compilation problem in MinGW
  9916. * test/DefaultBtProgressInfoFileTest.cc
  9917. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9918. Updated fr.po by sebone
  9919. * po/fr.po
  9920. Updated man page.
  9921. * doc/aria2c.1.txt
  9922. * Release 0.11.3
  9923. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9924. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9925. failure in Metalink.
  9926. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Automatically save *.aria2 control file of http/ftp download in every
  9928. 60 seconds.
  9929. * src/AutoSaveCommand.{h, cc}: New class.
  9930. * src/TimeBasedCommand.{h, cc}: New class.
  9931. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9932. Disable parameterized URI support by default. Added -P option to
  9933. enable the feature.
  9934. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9935. * src/OptionHandlerFactory.cc
  9936. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9937. Updated Japanese translation.
  9938. * po/ja.po
  9939. Updated man page.
  9940. * doc/aria2c.1.txt
  9941. * Release 0.11.3-rc
  9942. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9943. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9944. it is successful, then renamed to *.aria2.
  9945. This prevents *.aria2 file from being truncated or corrupted when
  9946. file system becomes out of space.
  9947. * src/DefaultBtProgressInfoFile.cc (save)
  9948. * src/SegmentMan.cc (save)
  9949. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9950. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9951. Reduced the fragmentation of bitfield in http/ftp download.
  9952. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9953. * test/BitfieldManTest.cc
  9954. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9955. Added the ability to disable segmented download in .metalink.
  9956. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9957. 'url' tag.
  9958. * src/MetalinkEntry.{h, cc}
  9959. * src/RequestResource.{h, cc}
  9960. * src/MetalinkRequestInfo.cc
  9961. * src/Xml2MetalinkProcessor.cc
  9962. * test/Xml2MetalinkProcessorTest.cc
  9963. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9964. Added parameterized URI support.
  9965. * src/main.cc: -Z option added.
  9966. * src/OptionHandlerFactory.cc
  9967. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9968. * src/PStringDatum.h: New class.
  9969. * src/PStringSegment.{h,cc}: New class.
  9970. * src/PStringNumLoop.h: New class.
  9971. * src/PStringSelect.h: New class.
  9972. * src/NumberDecorator.h: New class.
  9973. * src/FixedWidthNumberDecorator.h: New class.
  9974. * src/AlphaNumberDecorator.h: New class.
  9975. * src/PStringVisitor.h: New class.
  9976. * src/PStringBuildVisitor.{h,cc}: New class.
  9977. * src/ParameterizedStringParser.{h,cc}: New class.
  9978. * src/Util.{h,cc}
  9979. (isNumber): New function.
  9980. (isLowercase): New function.
  9981. (isUppercase): New function.
  9982. (alphaToNum): New function.
  9983. * test/ParameterizedStringParserTest.cc: New class.
  9984. * test/AlphaNumberDecoratorTest.cc: New class.
  9985. * test/PStringBuildVisitorTest.cc: New class.
  9986. * test/UtilTest.cc
  9987. (testIsNumber): New function.
  9988. (testIsLowercase): New function.
  9989. (testIsUppercase): New function.
  9990. (testAlphaToNum): New function.
  9991. Added '\n' after the error message
  9992. * src/RequestInfo.h (printDownloadAbortMessage)
  9993. Added auto file renaming feature in http(s)/ftp download.
  9994. * src/main.cc: Added --auto-file-renaming command-line option.
  9995. * src/OptionHandlerFactory.cc
  9996. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9997. * src/RequestGroup.{h, cc}
  9998. (shouldCancelDownloadForSafety): Rewritten
  9999. (tryAutoFileRenaming): New function.
  10000. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10001. * src/HttpResponseCommand.cc
  10002. (executeInternal): Removed the call to RequestGroupMan::
  10003. isSameFileBeingDownloaded()
  10004. * src/FtpNegotiateCommand.cc
  10005. (recvSize): Removed the call to RequestGroupMan::
  10006. isSameFileBeingDownloaded()
  10007. * test/RequestGroupTest.cc: New class.
  10008. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10009. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10010. IO.
  10011. * src/DefaultBtProgressInfoFile.cc
  10012. * src/MetaFileUtil.cc
  10013. * src/SimpleLogger.cc
  10014. * src/SegmentMan.cc
  10015. * src/Util.cc
  10016. * src/Platform.cc
  10017. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10019. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10020. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10021. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10022. Fixed the bug that prevents file allocation is not done when
  10023. dowloading multi-torrent file.
  10024. * src/AbstractDiskWriter.cc (openFile)
  10025. Increase the maximum number of -j option from 15 to 45.
  10026. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10027. Added fr.po, thanks to Charles Landemaine.
  10028. * po/fr.po
  10029. * po/LINGUAS
  10030. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10031. gcc 3.4.4 support:
  10032. * src/DefaultBtContext.cc: int32_t -> int
  10033. * src/main.cc: int -> int32_t, int32_t -> int
  10034. * src/messageDigest.h: uint32_t -> unsigned int
  10035. * src/NameResolver.h: int32_t -> int
  10036. * src/PeerConnection.cc: int -> int32_t
  10037. * src/SpeedCalc.cc: int32_t -> int
  10038. * src/TrackerUpdateCommand.h: int -> int32_t
  10039. * src/Util.cc: int32_t -> int
  10040. * src/Util.h: int32_t -> int
  10041. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10042. * test/AnnounceListTest.cc: int -> int32_t
  10043. * test/ChunkedEncodingTest.cc: int -> int32_t
  10044. * test/DataTest.cc: int -> int32_t
  10045. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10046. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10047. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10048. * test/FeatureConfigTest.cc: int -> int32_t
  10049. * test/MetalinkEntryTest.cc: int -> int32_t
  10050. * test/MockBtRequestFactory.h: int -> int32_t
  10051. * test/MockPieceStorage.h: int -> int32_t
  10052. * test/OptionTest.cc: int -> int32_t
  10053. * test/RequestTest.cc: int -> int32_t
  10054. * test/SegmentManTest.cc: int -> int32_t
  10055. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10056. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10057. Move sleep functions to Util class:
  10058. * src/Util.cc
  10059. (sleep): New function.
  10060. (usleep): New function.
  10061. * src/DownloadCommand.cc: sleep -> Util::sleep
  10062. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10063. MinGW build enhancements. The following files are added:
  10064. * src/timegm.{c,h}
  10065. Changes to support the above new files:
  10066. * configure.ac
  10067. * src/Makefile.am
  10068. * src/a2time.h
  10069. * src/Util.cc:
  10070. * src/strptime.c: Added support for %Z option.
  10071. Fixed MinGW non-blocking bug.
  10072. * src/SocketCore.cc
  10073. * src/HttpRequestCommand.cc
  10074. Miscellenous build fixes/enhancements.
  10075. * configure.ac: Added summary report.
  10076. * src/Platform.h: Tweaked #include's.
  10077. * src/a2netcompat.h: Tweaked #include's.
  10078. * src/strptime.h: Tweaked #include's.
  10079. * src/gai_strerror.c: Tweaked #include's.
  10080. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10081. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10082. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10083. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10084. Increased the initial connection size in BitTorrent download to 40.
  10085. * src/BtRuntime.h
  10086. Added the usage message of --peer-id-prefix option.
  10087. * src/main.cc
  10088. * Release 0.11.2
  10089. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10090. MessageDigestHelper is introduced in order to simplify the use
  10091. of message digest. Removed repeated code.
  10092. The message digest algorithm is now specified by string, like "sha1",
  10093. "md5".
  10094. * src/messageDigest.{h, cc}
  10095. * src/MessageDigestHelper.{h, cc}: New class.
  10096. * src/DefaultPieceStorage.cc
  10097. * src/DefaultBtContext.{h, cc}
  10098. (computeFastSet): New function.
  10099. (setInfoHash): Added for unit testing.
  10100. (setNumPieces): Added for unit testing.
  10101. * src/DefaultBtInteractive.cc
  10102. * src/BtPieceMessage.cc
  10103. * src/Peer.cc
  10104. * src/Checksum.h
  10105. * src/message.h
  10106. * src/IteratableChecksumValidator.h
  10107. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10108. inside it.
  10109. * src/SegmentMan.{h, cc}
  10110. (checkIntegrity): Removed.
  10111. * src/IteratableChunkChecksumValidator.{h, cc}
  10112. * src/Util.h
  10113. (sha1Sum): Removed.
  10114. (simpleMessageDigest): Removed.
  10115. (fileChecksum): Removed.
  10116. (computeFastSet): Removed.
  10117. * src/ShaVisitor.cc
  10118. * src/ChunkChecksum.h
  10119. * src/DownloadCommand.cc
  10120. Removed messageDigest virtual functions.
  10121. * src/MultiDiskAdaptor.{h, cc}
  10122. * src/DiskAdaptor.h
  10123. * src/ByteArrayDiskWriter.h
  10124. * src/DiskWriter.h
  10125. * src/DiskAdaptorWriter.h
  10126. * src/AbstractSingleDiskAdaptor.{h, cc}
  10127. * src/AbstractDiskWriter.{h, cc}
  10128. Fixed comilation error when message digest is disabled.
  10129. * src/MetalinkEntry.{h, cc}
  10130. * src/MetalinkRequestInfo.cc
  10131. Removed srandom and random.
  10132. * src/SimpleRandomizer.h
  10133. Added size() virtual function to DiskAdaptor
  10134. * src/MultiDiskAdaptor.h
  10135. Fixed the bug that causes that files are not opened correctly in
  10136. multi-file torrent.
  10137. * src/TorrentRequestInfo.cc
  10138. * src/MultiDiskAdaptor.cc
  10139. Added SHA256 support
  10140. * src/messageDigest.cc
  10141. * src/Xml2MetalinkProcessor.cc
  10142. Show supported message digest algorithms
  10143. * src/main.cc
  10144. Updated contact info.
  10145. * src/main.cc
  10146. Applied Ross's patch
  10147. * src/a2netcompat.h
  10148. * src/main.cc
  10149. Fixed the bug that prevents a remote metalink from not being processed
  10150. even if '-o foo.metalink' is specified.
  10151. * src/MetalinkRequestInfo.cc
  10152. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10153. Merged Dan's patch:
  10154. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10155. Use va_copy to avoid core dump on amd64:
  10156. * src/SimpleLogger.cc
  10157. Updated contact info.
  10158. * src/main.cc
  10159. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10160. digest is not available.
  10161. * src/MetalinkEntry.h
  10162. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Make a2netcompat.h include a2io.h to fix compilation error:
  10164. * src/a2netcompat.h
  10165. * src/SocketCore.cc: Removed include of a2io.h
  10166. * src/Util.cc: Removed include of a2io.h
  10167. Gather time related functions to a2time.h:
  10168. * src/a2time.h: New file.
  10169. * src/DefaultPeerStorage.cc
  10170. * src/SimpleLogger.cc
  10171. * src/Util.{h, cc}
  10172. * src/SimpleRandomizer.h
  10173. * src/TimeA2.{h,cc}
  10174. * src/DownloadCommand.cc
  10175. * src/main.cc
  10176. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10177. a2netcompat.h:
  10178. * src/NameResolver.cc
  10179. Fixed compilation error without openssl:
  10180. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10181. Added default block to suppress compiler warnings:
  10182. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10183. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10184. MinGW build enhancements. The following files are added:
  10185. * src/gai_strerror.{c,h}
  10186. * src/gettimeofday.{c,h}
  10187. Changes to support the above new files:
  10188. * configure.ac
  10189. * src/Makefile.am
  10190. * src/a2netcompat.h
  10191. * src/TimeA2.cc
  10192. * src/DefaultPeerStorage.cc
  10193. * src/NameResolver.cc: removed mingw_strerror() function.
  10194. * src/SocketCore.cc: removed mingw_strerror() function.
  10195. Miscellaneous MinGW build fixes.
  10196. * src/a2io.h: Use _lseeki64() instead of lseek()
  10197. * src/common.h
  10198. * src/DefaultFileAllocator.cc
  10199. * src/GlowFileAllocator.cc
  10200. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10201. * src/NameResolver.cc
  10202. (callback): Changed int32_t to int.
  10203. (resolve): Changed int32_t to int.
  10204. * src/Platform.cc
  10205. * src/Platform.h
  10206. * test/MultiDiskWriterTest.cc
  10207. * test/PeerMessageUtilTest.cc
  10208. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10209. Other enhancements and fixes.
  10210. * src/HttpRequestCommand.cc
  10211. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10212. * src/SocketCore.cc:
  10213. (error): New function to abstract errno/WSAGetLastError().
  10214. (errorMsg): New function to abstract errno/WSAGetLastError().
  10215. (initiateSecureConnection): Added more detailed error reporting.
  10216. * src/SocketCore.h: Added private variable blocking, to allow
  10217. proper handling of OpenSSL psuedo-errors.
  10218. * src/message.h
  10219. (EX_SSL_INIT_FAILURE)
  10220. (EX_SSL_IO_ERROR)
  10221. (EX_SSL_PROTOCOL_ERROR)
  10222. (EX_SSL_UNKNOWN_ERROR)
  10223. (EX_SSL_CONNECT_ERROR)
  10224. (EX_SOCKET_BLOCKING)
  10225. (EX_SOCKET_NONBLOCKING)
  10226. (EX_SOCKET_UNKNOWN_ERROR)
  10227. * src/Util.cc
  10228. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10229. reserved name.
  10230. (httpGMT): Fixed typo.
  10231. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10232. Merged Ross's win32 patch(manually)
  10233. In the course of merging, following files are added.
  10234. * src/strptime.{h,c}
  10235. * src/libgen.{h,c}
  10236. * src/inet_aton.{h,c}
  10237. * src/Platform.{h,cc}
  10238. * src/localtime_r.{h,c}
  10239. * src/getaddrinfo.{h,c}
  10240. I've gethered network related things, and put them to following file:
  10241. * src/a2netcompat.h
  10242. Also io related things are put to following file:
  10243. * src/a2io.h
  10244. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10245. * src/message.h
  10246. (MSG_ALLOCATION_COMPLETED)
  10247. (EX_TOO_LARGE_FILE)
  10248. (EX_SIZE_MISMATCH)
  10249. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10250. (EX_INVALID_CHUNK_CHECKSUM)
  10251. (EX_INVALID_RANGE_HEADER)
  10252. * src/FileAllocationCommand.cc
  10253. * src/HttpResponse.cc
  10254. * src/RequestGroup.cc
  10255. * src/MultiDiskAdaptor.cc
  10256. * src/OptionHandlerImpl.h
  10257. * src/HttpResponseCommand.cc
  10258. * src/FtpNegotiateCommand.cc
  10259. * src/IteratableChecksumValidator.cc
  10260. * src/SegmentMan.cc
  10261. * src/ChunkChecksumValidator.cc
  10262. Added Randomizer::getRandomNumber(long int)
  10263. * src/Randomizer.h (getRandomNumber)
  10264. * src/SimpleRandomizer.h (getRandomNumber)
  10265. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10266. * src/Util.cc (randomAlpha): Use this new function.
  10267. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10268. Converted int's to in32_t. long long int's are also converted to
  10269. int64_t
  10270. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10271. Fixed the bug that prevents cookies from being sent to the server
  10272. if the domain of cookie is FQDN and starts with ".".
  10273. * src/Cookie.cc (match)
  10274. To add the ability to change peer id.
  10275. * src/DefaultBtContext.h
  10276. (_peerIdPrefix): New variable
  10277. (setPeerIdPrefix): New function.
  10278. * src/torrentRequestInfo.cc
  10279. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10280. DefaultBtContext.
  10281. * src/main.cc (main): Added peer-id-prefix command-line option.
  10282. The usage message is not added yet.
  10283. * src/DefaultBtContext.cc
  10284. (generatePeerId): Use _peerIdPrefix.
  10285. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10286. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10287. Fixed the bug that prevents filename in content-disposition from
  10288. being retrieved when filename is not quoted.
  10289. * src/Util.cc (getContentDispositionFilename)
  10290. Fixed the bug that causes infinate loop and memory leak when file open
  10291. operation failed.
  10292. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10293. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. Fixed the bug that causes segfault when all URIs specified are
  10295. unsupported.
  10296. * src/RequestGroupMan.cc (getInitialCommands)
  10297. Check if RequestGroup::createNextCommand() returns empty list of
  10298. commands.
  10299. * src/RequestGroup.cc (createNextCommand)
  10300. Change log level from info to error so that users can notice that
  10301. an error occurred.
  10302. Fixed the bug that causes segfault when a zero-sized file is
  10303. downloaded.
  10304. * src/BitfieldMan.cc (isAllBitSet)
  10305. Return true if bitfieldLength is 0.
  10306. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10307. * src/main.cc
  10308. (showUsage): Added 3 usage examples for metalink download.
  10309. Replace MetalinkChunkChecksum with ChunkChecksum.
  10310. * src/MetalinkChunkChecksum.h: Removed.
  10311. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10312. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10313. * src/Xml2MetalinkProcessor.cc
  10314. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10315. * src/MetalinkRequestInfo.cc (execute)
  10316. * Release 0.11.1
  10317. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10318. Reads URIs from stdin when "-i -" is specified.
  10319. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10320. * src/UriListParser.h, src/UriListParser.cc: New class.
  10321. * src/StreamUriListParser.h: New class.
  10322. * src/FileUriListParser.h: New class.
  10323. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10324. instead of UriFileListParser.
  10325. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10326. Made console readout more readable.
  10327. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10328. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10329. Fix the bug that causes -s option not to work.
  10330. * src/main.cc (main)
  10331. * src/a2algo.h: New file.
  10332. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10333. Create directory structure specified in metalink file.
  10334. * src/RequestGroup.h, src/RequestGroup.cc
  10335. (initAndOpenFile): Create a directory to store files if it does not
  10336. exist.
  10337. (getDir): New function.
  10338. Added ETA and download speed for an individual file to readout.
  10339. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10340. * src/RequestGroup.h
  10341. (calculateDownloadSpeed): New function.
  10342. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. Made -S option work with metalink file and provided selective download
  10344. to metalink.
  10345. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10346. (filename): Removed.
  10347. (file): New variable.
  10348. (size): Removed.
  10349. (operator=): Updated.
  10350. (getPath): New function.
  10351. (getLength): New function.
  10352. (toFileEntry): New function.
  10353. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10354. (execute): Use toStream.
  10355. (showFileEntry): Removed.
  10356. * src/MetalinkRequestInfo.h
  10357. (targetFiles): New variable.
  10358. (setTargetFiles): New variable.
  10359. * src/MetalinkRequestInfo.cc
  10360. (execute): Added the ability to print file information included in
  10361. a metalink file.
  10362. Added selective download mode to metalink.
  10363. * src/main.cc
  10364. (showUsage): Updated to denote that -S and --select-file options are
  10365. applicable to metalink.
  10366. * src/FileEntry.h
  10367. (operator=): New function.
  10368. (getBasename): New function.
  10369. (getDirname): New function.
  10370. * src/Util.h, src/Util.cc
  10371. (toStream): New function.
  10372. * src/Xml2MetalinkProcessor.cc: Updated.
  10373. Made aria2 work with metalink with directory structure.
  10374. * src/File.h, src/File.cc
  10375. (getBasename): New function.
  10376. (getDirname): New function.
  10377. * src/RequestGroup.h, src/RequestGroup.cc
  10378. (_topDir): New variable.
  10379. (setTopDir): New function.
  10380. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10381. Rewrote HTTP header parsing with stringstream.
  10382. * src/HttpConnection.h, src/HttpConnection.cc
  10383. (HttpRequestEntry): New class.
  10384. (headerBuf): Removed.
  10385. (headerBufLength): Removed.
  10386. (outstandingHttpRequests): Now its element type is
  10387. HttpRequestEntryHandle.
  10388. (findEndOfHeader): Removed.
  10389. (receiveResponse): Rewritten.
  10390. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10391. Updated doc for -j option to notice that it should be used with -i
  10392. option.
  10393. * src/main.cc (showUsage)
  10394. Removed unused classes.
  10395. * src/RequestInfo.h
  10396. (FileInfo): Removed.
  10397. (checksum): Removed.
  10398. (fileInfo): Removed.
  10399. (setChecksum): Removed.
  10400. (getChecksum): Removed.
  10401. (getFileInfo): Removed.
  10402. Use ISO units.
  10403. * src/ConsoleDownloadEngine.cc
  10404. * src/TorrentConsoleDownloadEngine.cc
  10405. * src/Util.cc (abbrevSize)
  10406. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Added the default listening ports to the help message.
  10408. * src/main.cc (showUsage)
  10409. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. Reduce the number of calls to gettimeofday to lower CPU load.
  10411. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10412. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10413. * src/Peer.h (calculateUploadSpeed): New function.
  10414. (calculateDownloadSpeed): New function.
  10415. * src/DefaultPeerStorage.cc
  10416. (CalculateStat): Added _now variable.
  10417. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10418. and Peer::calculateUploadSpeed(const struct timeval&)
  10419. Drop connection if no request or piece message is exchanged in
  10420. a certain interval.
  10421. * src/DefaultBtInteractive.h
  10422. (btRuntime): New variable.
  10423. (inactiveCheckPoint): New variable.
  10424. (checkActiveInteraction): New function.
  10425. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10426. request or piece message is received.
  10427. (checkActiveInteraction): New function.
  10428. (doInteractionProcessing): Call checkActiveInteraction.
  10429. Fixed the bug that causes remote Metalink and Torrent files are not
  10430. processed.
  10431. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10432. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10433. Changed format of log file.
  10434. * src/SimpleLogger.cc
  10435. * Release 0.11.0
  10436. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. * src/AbstractCommand.cc
  10438. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10439. MSG_MAX_TRY from error to info.
  10440. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10441. * src/message.h
  10442. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10443. (MSG_DOWNLOAD_ABORTED): Added %s.
  10444. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10445. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10446. * src/PeerAbstractCommand.cc
  10447. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10448. * src/Request.h
  10449. (cookieBox): Made ShardHandle.
  10450. * src/RequestGroup.h, src/RequestGroup.cc
  10451. (createNextCommandWithAdj): New function.
  10452. * src/FileAllocationCommand.cc
  10453. (executeInternal): Use createNextCommandWithAdj().
  10454. * src/CheckIntegrityCommand.cc
  10455. (executeInternal): Use createNextCommandWithAdj().
  10456. Added --load-cookies command-option.
  10457. * src/OptionHandlerFactory.cc
  10458. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10459. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10460. Now aria2 can handle cookie's expiration date.
  10461. * src/Cookie.h (expires): Changed its type to time_t.
  10462. * src/main.cc: Added --load-cookies command-line option.
  10463. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10464. * src/Util.h, src/Util.cc (httpGMT): New function.
  10465. * src/Request.cc (Request): Initialize cookieBox using
  10466. CookieBoxFactory.
  10467. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10468. * src/CookieParser.h, src/CookieParser.cc: New class.
  10469. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10470. * src/HttpResponseCommand.cc
  10471. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10472. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10473. download.
  10474. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. Added -j command-line option.
  10476. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10477. * src/main.cc
  10478. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10479. Rewritten using stringstream.
  10480. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10481. Rewritten using stringstream.
  10482. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10483. Make download size shown in MB, KB.
  10484. * src/ConsoleDownloadEngine.h (sendStatistics)
  10485. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10486. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10487. Accept incoming connections if download rate is low.
  10488. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10489. (_lowestSpeedLimit): New variable.
  10490. (setLowestSpeedLimit): New function.
  10491. (execute): Accept incoming connections if download rate is low.
  10492. MAX_PEERS is ignored in this case.
  10493. Disable PREF_OUT in multiple concurrent download:
  10494. * src/RequestGroup.h, src/RequestGroup.cc
  10495. (setUserDefinedFilename): New function.
  10496. * src/DownloadEngineFactory.cc
  10497. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10498. concurrent download.
  10499. * src/DefaultSegmentManFactory.cc
  10500. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10501. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10502. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10503. Added its overloaded method.
  10504. * src/RequestGroup.h
  10505. (_numConcurrentCommand): New variable.
  10506. (setNumConcurrentCommand): New function.
  10507. * src/RequestGroup.cc
  10508. Abort download if same file is being downloaded concurrently.
  10509. * src/RequestGroup.h, src/RequestGroupMan.cc
  10510. (isSameFileBeingDownloaded): New function.
  10511. * src/HttpResponseCommand.cc (executeInternal)
  10512. * src/FtpNegotiateCommand.cc (recvSize)
  10513. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10514. * main.cc: Added help message for -i option.
  10515. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10516. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10517. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10518. * src/MetalinkEntry.h
  10519. (checksum): Changed to ChecksumHandle
  10520. * src/MetalinkRequestInfo.cc
  10521. (checksum): Changed to ChecksumHandle
  10522. * src/File.cc
  10523. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10524. * src/common.h
  10525. (DIR_OPEN_MODE): New definition
  10526. * src/RequestGroup.cc
  10527. (prepareForNextAction): Added an argument.
  10528. * src/message.h
  10529. (MSG_GOOD_CHECKSUM): New definition
  10530. (MSG_BAD_CHECKSUM): New definition
  10531. * src/HttpResponseCommand.cc
  10532. (handleDefaultEncoding): Continue download sequence in new
  10533. non-segmented download.
  10534. * src/FileAllocationEntry.h
  10535. (_nextDownloadCommand): New variable.
  10536. * src/DownloadCommand.cc
  10537. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10538. available.
  10539. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10540. * src/IteratableChecksumValidator.h,
  10541. src/IteratableChecksumValidator.cc: New class.
  10542. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10543. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10544. Change file mode to 666:
  10545. * src/common.h (OPEN_MODE): New definition.
  10546. * src/File.cc
  10547. * src/Util.cc
  10548. * src/Directry.cc
  10549. * src/AbstractDiskWriter.cc
  10550. Change the level of log message "download aborted" to debug:
  10551. * src/PeerAbstractCommand.cc (execute)
  10552. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10553. * src/TrackerWatcherCommand.cc
  10554. (createCommand): Sleep some seconds after request failed.
  10555. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10556. then abort tracker request.
  10557. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10558. * Added the simultaneous download feature.
  10559. * src/main.cc: Print "Exception caught: " when exception is caught.
  10560. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10561. * src/ActivePeerConnectionCommand.cc
  10562. * src/PeerInteractionCommand.cc
  10563. * src/BtRuntime.h
  10564. (cuidCounter): Removed.
  10565. (getNewCuid): Removed.
  10566. * src/DownloadEngineFactory.cc
  10567. * src/PeerListenCommand.cc
  10568. * src/TrackerUpdateCommand.cc
  10569. * src/PeerInitiateConnectionCommand.cc
  10570. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10571. * src/PeerAbstractCommand.cc
  10572. (onAbort): Call PeerStorage::returnPeer()
  10573. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10574. (incomingPeers): New variable.
  10575. (addIncomingPeer): New function.
  10576. (returnPeer): New function.
  10577. (onErasingPeer): New function.
  10578. (addPeer): push_back -> push_front
  10579. (getActivePeers): Rewritten.
  10580. (calculateStat): Rewritten.
  10581. * src/PeerStorage.h
  10582. (TransferStat::copy): New function.
  10583. (TransferStat::TransferStat): New function.
  10584. (TransferStat::operator=): New function.
  10585. (addIncomingPeer): New function.
  10586. (returnPeer): New function.
  10587. * src/PeerListenCommand.cc
  10588. (execute): Use PeerStorage::addIncomingPeer() instead of
  10589. Peer::addPeer().
  10590. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. Connect to a peer actively when download speed is lower than specified
  10592. speed in torrent download:
  10593. * src/ActivePeerConnectionCommand.h: New class.
  10594. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10596. * src/main.cc: Fixed the bug that prevents download if .netrc
  10597. doesn't exist.
  10598. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10599. To cache resolved hostname:
  10600. * src/AbstractCommand.h, src/AbstractCommand.cc
  10601. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10602. Added dns cache.
  10603. * src/FtpInitiateConnectionCommand.cc
  10604. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10605. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10606. NameResolver working without ares.
  10607. * src/TorrentRequestInfo.cc
  10608. (execute): Don't cache dns in torrent download.
  10609. * src/HttpInitiateConnectionCommand.cc
  10610. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10611. * src/DNSCache.h: New class.
  10612. * src/UrlRequestInfo.cc
  10613. (execute): Use dns cache.
  10614. In http request, suppress port number in http request header if port
  10615. is 80 or 443:
  10616. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10617. request header if port is 80 or 443.
  10618. (createProxyRequest): Allways send port number.
  10619. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10620. To add the command-line option which disables netrc support:
  10621. * src/OptionHandlerFactory.cc
  10622. (createOptionHandlers): Added PREF_NO_NETRC.
  10623. * src/main.cc: Added -n option.
  10624. * src/prefs.h (PREF_NO_NETRC): New definition.
  10625. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10626. V_TRUE.
  10627. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10628. is V_FALSE. This may get configurable in the future release.
  10629. To clear peer's error status by time basis:
  10630. * src/PeerAbstractCommand.cc
  10631. (onAbort): Call Peer::startBadCondition().
  10632. * src/Peer.h, src/Peer.cc
  10633. (error): Removed.
  10634. (_badConditionStartTime): New variable.
  10635. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10636. (startBadCondition): New function.
  10637. (isGood): New function.
  10638. * src/DefaultPeerStorage.cc
  10639. (addPeer): Use Peer::isGood().
  10640. (FindFinePeer): Use Peer::isGood().
  10641. Always include port number in http request header:
  10642. * src/HttpRequest.cc (getHostText): Always include port number in
  10643. http request header.
  10644. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. To the ability to read options from a config file:
  10646. * src/main.cc: Command-line parameter validation is delegated to
  10647. OptionHandler class.
  10648. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10649. * src/Option.h, src/Option.cc (clear): New function.
  10650. * src/OptionParser.h, src/OptionParser.cc: New class.
  10651. * src/OptionHandler.h: New class.
  10652. * src/NameMatchOptionHandler.h: New class.
  10653. * src/OptionHandlerImpl.h: New classes.
  10654. * src/prefs.h: '_' -> '-'
  10655. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10656. (FTP_PASV): New definition.
  10657. * src/Util.h, src/Util.cc (getRealSize): New function.
  10658. To disable netrc support if .netrc file does not have correct
  10659. permissions:
  10660. * src/File.h, src/File.cc (mode): New function.
  10661. To prevent confidential information to be logged:
  10662. * src/HttpConnection.h, src/HttpConnection.cc
  10663. (eraseConfidentialInfo): New function.
  10664. (sendRequest): Call eraseConfidentialInfo().
  10665. (sendProxyRequest): Call eraseConfidentialInfo().
  10666. * src/main.cc: Validate permissions of .netrc file.
  10667. To add --user-agent command-line option:
  10668. * src/main.cc: Added new command line option: --user-agent
  10669. * src/prefs.h (PREF_USER_AGENT): New definition.
  10670. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10671. parameter to HttpRequest object.
  10672. * src/AbstractProxyRequestCommand.cc
  10673. (executeInternal): Set user-agent option parameter to HttpRequest
  10674. object.
  10675. Marged the patches from Dan Fandrich.
  10676. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10677. Use filename and size from Metalink file instead of sending HEAD
  10678. request:
  10679. * src/UrlRequestInfo.h
  10680. (_filename): New variable.
  10681. (_totalLength): New variable.
  10682. (setTotalLength): New variable.
  10683. (setFilename): New variable.
  10684. * src/MetalinkRequestInfo.cc
  10685. (execute): Set filename and size to UrlRequestInfo
  10686. * src/UrlRequestInfo.cc
  10687. (execute): Use filename and size from Metalink instead of seding
  10688. HEAD request to servers.
  10689. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10690. To add the ability to resume downloading a partially downloaded file
  10691. which is downloaded from the beginning:
  10692. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10693. takes this role.
  10694. * src/main.cc: Added -c option.
  10695. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10696. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10697. * src/prefs.h (PREF_CONTINUE): New definition.
  10698. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10699. * src/DefaultDiskWriter.cc
  10700. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10701. * src/AbstractDiskWriter.h
  10702. (glowFileAllocator): New variable.
  10703. * src/AbstractDiskWriter.cc
  10704. (openExistingFile): Now preallocate file space from the end of the
  10705. existing file if totalLength argument is specified and grater than 0.
  10706. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10707. to download exists in local, continue the download of the file.
  10708. --allow-overwrite=true is assumed in this context.
  10709. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10710. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10711. Throw exception if --check-integrity=true is specified but chunk
  10712. checksums are not provided:
  10713. * src/UrlRequestInfo.cc
  10714. Do not print URLs to stdout:
  10715. * src/UrlRequestInfo.cc
  10716. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10717. * src/Request.h: Use AuthResolver to get authentication information.
  10718. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10719. set to RequestFactory object.
  10720. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10721. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10722. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10723. create Request object.
  10724. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10725. To integrate Netrc into exsiting classes:
  10726. * src/Request.h
  10727. (_userDefinedAuthConfig): New variable.
  10728. (findNetrcAuthenticator): New function.
  10729. (segment): Removed.
  10730. (setUserDefinedAuthConfig): New function.
  10731. (resolveHttpAuthConfigItem): New function.
  10732. (resolveFtpAuthConfigItem): New function.
  10733. (resolveHttpProxyAuthConfigItem): New function.
  10734. * src/HttpRequest.h
  10735. (authConfig): Removed.
  10736. (proxyAuthConfig): Removed.
  10737. (setAuthConfig): Removed.
  10738. (setProxyAuthConfig): Removed.
  10739. * src/UrlRequest.h
  10740. (getHeadResult): Added a parameter: authConfigHandle
  10741. * src/common.h
  10742. (SingletonHolder.h): New include.
  10743. * src/main.cc
  10744. (Netrc.h): New include.
  10745. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10746. Added initial value of PREF_NETRC_PATH.
  10747. Added the initialization of netrc.
  10748. * src/AuthConfig.h: New class.
  10749. * src/prefs.h
  10750. (PREF_NETRC_PATH): New definition.
  10751. * src/HttpAuthConfig.h: Removed.
  10752. * src/Netrc.cc
  10753. (getRequiredNextToken): New function.
  10754. (skipMacdef): New function.
  10755. (parse): Rewritten.
  10756. * src/Netrc.h
  10757. (getRequiredNextToken): New function.
  10758. (skipMacdef): New function.
  10759. * src/Util.h, src/Util.cc
  10760. (getHomeDir): New function.
  10761. * src/TrackerWatcherComand.cc
  10762. (createRequestCommand): Use AuthConfig.
  10763. * src/FtpConnection.cc
  10764. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10765. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10766. * src/Request.cc
  10767. (findNetrcAuthenticator): New function.
  10768. (resolveHttpAuthConfigItem): New function.
  10769. (resolveFtpAuthConfigItem): New function.
  10770. (resolveHttpProxyAuthConfigItem): New function.
  10771. * src/UrlRequestInfo.cc: Use AuthConfig.
  10772. * src/HttpRequest.cc
  10773. (createRequest): Use authConfig.
  10774. (getProxyAuthString): Use authConfig.
  10775. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10776. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10777. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. To reduce overhead to find commands whose socket is either
  10779. readable or writable in the download engine loop:
  10780. * src/Command.h, src/Command.cc
  10781. (STATUS): New enum.
  10782. (status): New variable.
  10783. (statusMatch): New function.
  10784. (setStatusActive): New function.
  10785. (setStatusInactive): New function.
  10786. * src/DownloadEngine.h, src/DownloadEngine.cc
  10787. (executeCommand): New function.
  10788. (run): Simplified.
  10789. (waitData): Call Command::setStatusActive() when command's socket is
  10790. readable or writable.
  10791. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10792. To handle Segment as SegmentHandle:
  10793. * src/AbstractCommand.cc (execute): Rewritten.
  10794. * src/SegmentMan.h: Segment -> SegmentHandle
  10795. Introducded HttpResponse class, HttpRequest class to improve code
  10796. extensiveness and make it clear:
  10797. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10798. HttpResponse class.
  10799. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10800. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10801. * src/HttpConnection.cc: Contruction of http request were moved to
  10802. HttpRequest class.
  10803. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10804. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10805. * src/HttpAuthConfig.h: New class.
  10806. * src/Range.h: New class.
  10807. To make FtpTunnel{Request, Response}Command and
  10808. HttpProxy{Request, Response}Command derived from
  10809. AbstractProxy{Request, Response}Command:
  10810. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10811. Derived from AbstractProxyRequestCommand class.
  10812. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10813. Derived from AbstractProxyResponseCommand class.
  10814. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10815. Derived from AbstractProxyRequestCommand class.
  10816. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10817. Derived from AbstractProxyResponseCommand class.
  10818. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10819. : New class.
  10820. * src/AbstractProxyResponseCommand.h,
  10821. src/AbstractProxyResponseCommand.cc: New class.
  10822. To add netrc support:
  10823. * src/Netrc.h, src/Netrc.cc: New class.
  10824. * src/Util.h, src/Util.cc (split): New function.
  10825. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10826. "Content-Range" header instead of "Range" header.
  10827. * src/HttpHeader.h
  10828. (getStatus): Removed.
  10829. (setStatus): Removed.
  10830. * src/Segment.h
  10831. (getPositionToWrite): New function.
  10832. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10833. * src/HttpHeader.h
  10834. (Range.h): New include.
  10835. (status): New variable.
  10836. (HttpHeader): Initialized status with 0.
  10837. (getStatus): New function.
  10838. (setStatus): New function.
  10839. (getRange): New function.
  10840. (HttpHeaderHandle): New function.
  10841. * src/HttpHeader.cc
  10842. (getRange): New function.
  10843. * src/Request.h
  10844. (RequestWeakHandle): New definition.
  10845. * src/HttpConnection.h
  10846. (HttpConnectionHandle): New type definition.
  10847. * src/HttpConnection.cc
  10848. (receiveResponse): Set HTTP status to headers.
  10849. * src/main.cc
  10850. (showUsage): Fixed typo.
  10851. * src/Segment.h
  10852. (SegmentHandle): New type definition.
  10853. * src/BitfieldMan.h
  10854. (getMissingUnusedLength): New function.
  10855. * src/BitfieldMan.cc
  10856. (getMissingUnusedLength): New function.
  10857. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10858. To fix static initialization order problem:
  10859. * src/BitfieldManFactory.h
  10860. (defaultRandomizer): Removed.
  10861. (factory): New variable.
  10862. (getNewFactory): Removed.
  10863. (getFactoryInstance): New function.
  10864. (setDefaultRandomizer): Rewritten.
  10865. (getDefaultRandomizer): Rewritten.
  10866. * src/BitfieldManFactory.cc
  10867. (defaultRandomizer): Removed.
  10868. (factory): Initialized to 0.
  10869. (BitfieldManFactory): Initialized randomizer to 0.
  10870. * src/DefaultPieceStorage.cc
  10871. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10872. * src/Peer.cc
  10873. (Peer): getNewFactory() -> getFactoryInstance()
  10874. * src/SegmentMan.cc
  10875. (initBitfield): getNewFactory() -> getFactoryInstance()
  10876. * src/Piece.cc
  10877. (Piece): getNewFactory() -> getFactoryInstance()
  10878. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10879. To fix the bug that causes crash on Max OS X:
  10880. * src/SimpleRandomizer.h
  10881. (getInstance): Create new instance if the static variable is null.
  10882. * src/SimpleRandomizer.cc
  10883. (randomizer): Initialized to 0.
  10884. * src/BitfieldManFactory.h
  10885. (getNewFactory): Removed the call to setRandomizer().
  10886. To fix the miscalculation of the range of checksum:
  10887. * src/BitfieldMan.h
  10888. (isBitSetOffsetRange): New function.
  10889. * src/BitfieldMan.cc
  10890. (isBitSetOffsetRange): New function.
  10891. * src/SegmentMan.cc
  10892. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10893. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10894. * Release 0.10.1
  10895. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10896. To lower CPU usage in BitTorrent download when --max-upload-limit
  10897. command-line option specified:
  10898. * src/DefaultBtMessageDispatcher.cc
  10899. (sendMessages): Calculate uploading speed only when current message
  10900. is uploading data and is not sent yet.
  10901. * src/DefaultPeerStorage.h
  10902. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10903. * src/HttpResponseCommand.cc
  10904. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10905. This fixes compile error in Soralis 10.
  10906. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10907. To fix segfault in Metalink download:
  10908. * src/UrlRequestInfo.h
  10909. (filename): Removed.
  10910. (totalLength): Removed.
  10911. (setTotalLength): Removed.
  10912. (setFilename): Removed.
  10913. * src/MetalinkRequestInfo.cc
  10914. (execute): Do not set filename and totalLength to reqInfo.
  10915. Set chunk checksum to reqInfo if it is not null.
  10916. * src/HttpResponseCommand.cc
  10917. (executeInternal): Fixed filename in log.
  10918. (handleDefaultEncoding): Removed the call to initBitfield() and
  10919. markAllPiecesDone().
  10920. (handleOtherEncoding): Added HEAD method handling.
  10921. * src/FtpNegotiateCommand.cc
  10922. (executeInternal): Added SEQ_HEAD_OK handling.
  10923. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10924. return false.
  10925. * src/FtpNegotiateCommand.h
  10926. (SEQ_HEAD_OK): New definition.
  10927. * src/SegmentMan.cc
  10928. (initBitfield): Delete bitfield.
  10929. (isChunkChecksumValidationReady): Fixed the condition.
  10930. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10931. works fine.
  10932. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10933. * src/Xml2MetalinkProcessor.h
  10934. (xpathExists): New function.
  10935. * src/Xml2MetalinkProcessor.cc
  10936. (xpathExists): New function.
  10937. Not to send HEAD request if filename and size are available in Metalink
  10938. file:
  10939. * src/UrlRequestInfo.h
  10940. (filename): New variable.
  10941. (totalLength): New variable.
  10942. (setTotalLength): New function.
  10943. (setFilename): New function.
  10944. * src/MetalinkRequestInfo.cc
  10945. (execute): Set filename and size to UrlRequestInfo.
  10946. * src/MetalinkEntry.cc
  10947. (MetalinkEntry): Initialize size with 0.
  10948. * src/UrlRequestInfo.cc
  10949. (execute): Set filename and size to SegmentMan.
  10950. Not to download rest of the files after selected files are downloaded
  10951. in BitTorrent:
  10952. * src/PieceStorage.h
  10953. (allDownloadFinished): New function.
  10954. * src/DefaultBtAnnounce.cc
  10955. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10956. downloadFinished.
  10957. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10958. * src/DefaultPieceStorage.cc
  10959. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10960. Commented out the call to finishSelectiveDownloadingMode().
  10961. (downloadFinished): Call isFilteredAllBitSet() instead of
  10962. isAllBitSet().
  10963. (allDownloadFinished): New function.
  10964. * src/DefaultBtInteractive.cc
  10965. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10966. downloadFinished().
  10967. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10968. * src/TorrentDownloadEngine.cc
  10969. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10970. * src/BitfieldMan.h
  10971. (isFilteredAllBitSet): New function.
  10972. * src/ShareRatioSeedCriteria.h
  10973. (PieceStorage.h): New include.
  10974. (pieceStorage): New variable.
  10975. (evaluate):
  10976. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10977. * src/BitfieldMan.cc
  10978. (isFilteredAllBitSet): New function.
  10979. (isAllBitSet): Filter is not took into account.
  10980. Rename --force-truncate as --allow-overwrite:
  10981. * src/TorrentRequestInfo.cc
  10982. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10983. * src/main.cc
  10984. (showUsage): --force-truncate -> --allow-overwrite
  10985. * src/message.h
  10986. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10987. * src/prefs.h
  10988. (PREF_FORCE_TRUNCATE): Removed.
  10989. (PREF_ALLOW_OVERWRITE): New definition.
  10990. * src/SegmentMan.cc
  10991. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10992. * src/MetalinkRequestInfo.cc
  10993. (execute): Queueing message are now logged in info level.
  10994. * src/common.h
  10995. (LONG_LONG_MAX): Removed.
  10996. (LONG_LONG_MIN): Removed.
  10997. * src/HttpResponseCommand.cc
  10998. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10999. * src/FtpNegotiateCommand.cc
  11000. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11001. * src/main.cc
  11002. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11003. command-line option.
  11004. (main): Added --check-integriy and --realtime-chunk-checksum
  11005. command-line option.
  11006. --force-truncate -> --allow-overwrite
  11007. Set initial value of --check-integrity option to false.
  11008. Don't show usage when error occurs while persing command-line options.
  11009. Removed deprecated --upload-limit option.
  11010. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11011. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11012. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11013. * src/BtAllowedFastMessage.cc:
  11014. * src/BtBitfieldMessage.cc
  11015. * src/BtCancelMessage.cc
  11016. * src/BtChokeMessage.cc
  11017. * src/BtHaveAllMessage.cc
  11018. * src/BtHaveMessage.cc
  11019. * src/BtHaveNoneMessage.cc
  11020. * src/BtInterestedMessage.cc
  11021. * src/BtNotInterestedMessage.cc
  11022. * src/BtPieceMessage.cc
  11023. * src/BtPortMessage.cc
  11024. * src/BtRejectMessage.cc
  11025. * src/BtRequestMessage.cc
  11026. * src/BtSuggestPieceMessage.cc
  11027. * src/BtUnchokeMessage.cc
  11028. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11029. files are affected.
  11030. * src/ChunkChecksumValidator.cc
  11031. * src/SegmentMan.cc
  11032. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11033. To add chunk checksum validation:
  11034. * src/MetalinkEntry.h
  11035. (MetalinkChunkChecksum.h): New include.
  11036. (chunkChecksum): New variable.
  11037. * src/Request.h
  11038. (method): New variable.
  11039. (setMethod): New function.
  11040. (getMethod): New function.
  11041. (METHOD_GET): New static constant.
  11042. (METHOD_HEAD): New static constant.
  11043. * src/Xml2MetalinkProcessor.h
  11044. (getPieceHash): New function.
  11045. * src/PieceStorage.h
  11046. (markAllPiecesDone): New function.
  11047. (checkIntegrity): New function.
  11048. * src/FileAllocator.h
  11049. (NullFileAllocationMonitor.h): New include.
  11050. (FileAllocator): Initialize fileAllocationMonitor with new
  11051. NullFileAllocationMonitor().
  11052. * src/MultiDiskAdaptor.h
  11053. (messageDigest.h): Remove include.
  11054. (ctx): Removed.
  11055. (hashUpdate): Added ctx.
  11056. (MultiDiskAdaptor): Removed ctx.
  11057. (sha1Sum): Renamed as messageDigest.
  11058. (messageDigest): New function.
  11059. * src/UrlRequestInfo.h
  11060. (HeadResult): New class.
  11061. (digestAlgo): New variable.
  11062. (chunkChecksumLength): New variable.
  11063. (chunkChecksums): New variable.
  11064. (getHeadResult): New function.
  11065. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11066. (setDigestAlgo): New function.
  11067. (setChunkChecksumLength): New function.
  11068. (setChunkChecksums): New function.
  11069. * src/DefaultPieceStorage.cc
  11070. (DiskAdaptorWriter.h): New include.
  11071. (ChunkChecksumValidator.h): New include.
  11072. (markAllPiecesDone): New function.
  11073. (checkIntegrity): New function.
  11074. * src/DefaultBtContext.h
  11075. (getPieceHashes): New function.
  11076. * src/TorrentRequestInfo.cc
  11077. (execute): Try to validate chunk checksum if file already exists and
  11078. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11079. * src/messageDigest.h
  11080. (~MessageDigestContext): Added digestFree().
  11081. * src/MetalinkRequestInfo.cc
  11082. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11083. * src/DiskAdaptor.h
  11084. (messageDigest.h): New include.
  11085. (sha1Sum): Renamed as messageDigest.
  11086. (messageDigest): New function.
  11087. * src/DownloadCommand.h
  11088. (PeerStat.h): New include.
  11089. (maxDownloadSpeedLimit): New variable.
  11090. (startupIdleTime): New variable.
  11091. (lowestDownloadSpeedLimit): New variable.
  11092. (peerStat): New variable.
  11093. (setMaxDownloadSpeedLimit): New function.
  11094. (setStartupIdleTime): New function.
  11095. (setLowestDownloadSPeedLimit): New function.
  11096. * src/BtContext.h
  11097. (getPieceHashes): New function.
  11098. * src/main.cc
  11099. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11100. option to true for testing purpose.
  11101. * src/BtPieceMessage.cc
  11102. (checkPieceHash): Use messageDigest
  11103. * src/DownloadEngine.cc
  11104. (SetDescriptor): Removed.
  11105. (AccumulateActiveCommand): Removed.
  11106. (waitData): Rewritten.
  11107. (updateFdSet): Rewritten.
  11108. * src/MultiDiskAdaptor.cc
  11109. (hashUpdate): Added ctx.
  11110. (sha1Sum): Renamed as messageDigest.
  11111. (messageDigest): New function.
  11112. * src/BitfieldMan.h
  11113. (isBitRangeSet): New function.
  11114. (unsetBitRange): New function.
  11115. * src/ByteArrayDiskWriter.h
  11116. (sha1Sum): Renamed as messageDigest.
  11117. (messageDigest): New function.
  11118. * src/ConsoleDownloadEngine.cc
  11119. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11120. * src/DiskWriter.h
  11121. (messageDigest.h): New include.
  11122. (sha1Sum): Renamed as messageDigest.
  11123. (messageDigest): New function.
  11124. * src/ChunkChecksumValidator.h: New class.
  11125. * src/DiskAdaptorWriter.h: New class.
  11126. * src/prefs.h
  11127. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11128. (PREF_CHECK_INTEGRITY): New definition.
  11129. * src/HttpResponseCommand.cc
  11130. (handleDefaultEncoding): Added method "HEAD" handling.
  11131. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11132. (handleOtherEncoding):
  11133. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11134. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11135. startupIdleTime, lowestDownloadSpeedLimit to command.
  11136. * src/SegmentMan.h
  11137. (getSegmentEntryByIndex): New function.
  11138. (getSegmentEntryByCuid): New function.
  11139. (getSegmentEntryIteratorByCuid): New function.
  11140. (diskWriter): DiskWriter -> DiskWriterHandle
  11141. (pieceHashes): New variable.
  11142. (chunkHashLength): New variable.
  11143. (digestAlgo): New variable.
  11144. (FindPeerStat): Removed.
  11145. (getPeerStat): Rewritten.
  11146. (markAllPiecesDone): New function.
  11147. (checkIntegrity): New function.
  11148. (tryChunkChecksumValidation): New function.
  11149. (isChunkChecksumValidationReady): New function.
  11150. * src/BitfieldMan.cc
  11151. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11152. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11153. blocks to 0.
  11154. (isBitRangeSet): New function.
  11155. (unsetBitRange): New function.
  11156. * src/FtpNegotiateCommand.cc
  11157. (executeInternal): Set maxDownloadSpeedLimit,
  11158. startupIdleTime, lowestDownloadSpeedLimit to command.
  11159. (recvSize): Added method "HEAD" handling.
  11160. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11161. * src/AbstractSingleDiskAdaptor.cc
  11162. (sha1Sum): Renamed as messageDigest.
  11163. (messageDigest): New function.
  11164. * src/AbstractSingleDiskAdaptor.h
  11165. (sha1Sum): Renamed as messageDigest.
  11166. (messageDigest): New function.
  11167. * src/Util.h
  11168. (indexRange): New function.
  11169. * src/MetalinkEntry.cc
  11170. (MetalinkEntry): Initialized chunkChecksum to 0.
  11171. * src/ShaVisitor.cc
  11172. (~ShaVisitor): Removed the call to ctx.digestFree().
  11173. * src/SegmentMan.cc
  11174. (ChunkChecksumValidator.h): New include.
  11175. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11176. to DIGEST_ALGO_SHA1.
  11177. (~SegmentMan): Removed diskWriter.
  11178. (FindSegmentEntryByIndex): Removed.
  11179. (FindSegmentEntryByCuid): Removed.
  11180. (checkoutSegment): Rewritten.
  11181. (findSlowerSegmentEntry): Rewritten.
  11182. (getSegment): Rewritten.
  11183. (updateSegment): Rewritten.
  11184. (completeSegment): Rewritten.
  11185. (markAllPiecesDone): New function.
  11186. (checkIntegrity): New function.
  11187. (isChunkChecksumValidationReady): New function.
  11188. (tryChunkChecksumValidation): New function.
  11189. * src/Xml2MetalinkProcessor.cc
  11190. (getEntry): Get size and set it to entry.
  11191. Get chunk checksum and set it to entry.
  11192. (getPieceHash): New function.
  11193. * src/Util.cc
  11194. (sha1Sum): Removed ctx.digestFree()
  11195. (fileChecksum): Removed ctx.digestFree()
  11196. (indexRange): New function.
  11197. * src/Request.cc
  11198. (METHOD_GET): New variable.
  11199. (METHOD_HEAD): New variable.
  11200. (Request): Added method.
  11201. * src/UrlRequestInfo.cc
  11202. (FatalException.h): New include.
  11203. (message.h): New include.
  11204. (operator<<): Added operator<< for class HeadResult.
  11205. (getHeadResult): New function.
  11206. (execute): Get filename and size in separate download engine.
  11207. * src/ChunkChecksumValidator.cc: New class.
  11208. * src/DownloadCommand.cc:
  11209. (DownloadCommand): Added peerStat.
  11210. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11211. the value from Option.
  11212. The buffer size is now 16KB.
  11213. Use peerStat member instead of getting it from SegmentMan.
  11214. Use startupIdleTime member instead of gettingit from Option.
  11215. Added chunk checksum validation.
  11216. * src/AbstractDiskWriter.cc
  11217. (AbstractDiskWriter): Removed ctx.
  11218. (~AbstractDiskWriter): Removed ctx.digestFree()
  11219. (writeDataInternal): Returns the return value of write.
  11220. (readDataInternal): Returns the return value of read.
  11221. (sha1Sum): Renamed as messageDigest
  11222. (messageDigest): New function.
  11223. * src/AbstractDiwkWriter.h
  11224. (messageDigest.h): Removed include.
  11225. (ctx): Removed.
  11226. (sha1Sum): Renamed as messageDigest
  11227. (messageDigest): New function.
  11228. * src/DefaultPieceStorage.h
  11229. (markAllPiecesDone): New function.
  11230. (checkIntegrity): New function.
  11231. * src/NullFileAllocationMonitor.h: New class.
  11232. * src/MetalinkChunkChecksum.h: New class.
  11233. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11234. To decrease CPU usage in bittorrent download, calculation results in
  11235. BitfieldMan were cached and realtime fetching PeerObject was removed
  11236. with WeakHandle introduced. Option values are set to the objects
  11237. by setter before download begins.
  11238. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11239. * src/DefaultBtRequestFactory.h
  11240. (dispatcher): BtMessageDispatcherHandle ->
  11241. BtMessageDispatcherWeakHandle.
  11242. (messageFactory): New variable.
  11243. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11244. BtMessageDispatcherWeakHandle.
  11245. (setBtMessageFactory): New function.
  11246. * src/DefaultBtMessageDispatcher.cc:
  11247. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11248. from Option.
  11249. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11250. feating the value from Option.
  11251. Use messageFactory member.
  11252. * src/PeerInteractionCommand.cc
  11253. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11254. Add reverse dependencies to factory object.
  11255. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11256. dispatcher.
  11257. Set messageFactory to receiver.
  11258. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11259. btInteractive.
  11260. Set receiver to peerObject.
  11261. Set maxDownloadSpeedLimit to this.
  11262. (executeInternal): Use maxDownloadSpeedLimit member.
  11263. * src/BtChokeMessage.cc
  11264. (doReceivedAction): Use dispatcher, requestFactory member.
  11265. (onSendComplete): Use dispatcher member.
  11266. * src/PeerInteractionCommand.h
  11267. (maxDownloadSpeedLimit): New variable.
  11268. * src/DefaultBtMessageReceiver.h
  11269. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11270. (dispatcher):
  11271. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11272. (messageFactory): New variable.
  11273. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11274. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11275. (setDispatcher):
  11276. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11277. (setBtMessageFactory): New function.
  11278. * src/DefaultBtInteractive.cc
  11279. (initiateHandshake): Use messageFactory member.
  11280. (addBitfieldMessageToQueue): Use messageFactory member.
  11281. (addAllowedFastMessageToQueue): Use messageFactory member.
  11282. (decideChoking): Use messageFactory member.
  11283. (checkHave): Use messageFactory member.
  11284. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11285. (receiveMessages): Use maxDownloadSpeedLimit member.
  11286. (decideInterest): Use messageFactory member.
  11287. * src/BtRequestMessage.cc
  11288. (doReceivedAction): Use messageFactory, dispatcher member.
  11289. (onQueued): Use dispatcher member.
  11290. * src/BtPieceMessage.cc
  11291. (doReceivedAction): Use dispatcher member.
  11292. (send): Use peerConnection member.
  11293. (onWrongPiece): Use requestFactory member.
  11294. (handleChokingEvent): Use messageFactory, dispatcher member.
  11295. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11296. * src/BtMessageDispatcher.h
  11297. (BtMessageDispatcherWeakHandle): New type definition.
  11298. * src/SimpleBtMessage.cc
  11299. (send): Use peerConnection member.
  11300. * src/BtRejectMessage.cc
  11301. (doReceivedAction): Use dispatcher member.
  11302. * src/DefaultBtMessageDispatcher.h
  11303. (Option.h): Removed include.
  11304. (messageFactory): New variable.
  11305. (option): Removed.
  11306. (maxUploadSpeedLimit): New variable.
  11307. (requestTimeout): New variable.
  11308. (DefaultBtMessageDispatcher): Removed option.
  11309. Added maxUploadSpeedLimit, requestTimeout.
  11310. (setOption): Removed.
  11311. (getOption): Removed.
  11312. (setMaxUploadSpeedLimit): New function.
  11313. (setRequestTimeout): New function.
  11314. (setBtMessageFactory): New function.
  11315. * src/DefaultBtInteractive.h
  11316. (btMessageReceiver):
  11317. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11318. (dispatcher):
  11319. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11320. (btRequestFactory):
  11321. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11322. (peerConnection):
  11323. PeerConnectionHandle -> PeerConnectionWeakHandle
  11324. (messageFactory): New variable.
  11325. (option): Removed.
  11326. (keepAliveInterval): New variable.
  11327. (maxDownloadSpeedLimit): New variable.
  11328. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11329. (setBtMessageReceiver):
  11330. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11331. (setDispatcher):
  11332. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11333. (setBtRequestFactory):
  11334. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11335. (setPeerConnection):
  11336. PeerConnectionHandle -> PeerConnectionWeakHandle
  11337. (setOption): Removed.
  11338. (setKeepAliveInterval): New function.
  11339. (setMaxDownloadSpeedLimit): New function.
  11340. (setBtMessageFactory): New function.
  11341. * src/BitfieldMan.h
  11342. (cachedNumMissingBlock): New variable.
  11343. (cachedNumFilteredBlock): New variable.
  11344. (cachedCompletedLength): New variable.
  11345. (cachedFilteredComletedLength): New variable.
  11346. (cachedFilteredTotalLength): New variable.
  11347. (countMissingBlockNow): New function.
  11348. (countFilteredBlockNow): New function.
  11349. (getFilteredTotalLengthNow): New function.
  11350. (getCompletedLengthNow): New function.
  11351. (getFilteredCompletedLengthNow): New function.
  11352. (updateCache): New function.
  11353. * src/AbstractBtMessage.h
  11354. (BtMessageDispatcher.h): New include.
  11355. (PeerConnection.h): New include.
  11356. (BtRequestFactory.h): New include
  11357. (BtMessageFactory.h): New include.
  11358. (dispatcher): New variable.
  11359. (messageFactory): New variable.
  11360. (peerConnection: New variable.
  11361. (setBtMessageDispatcher): New function.
  11362. (setPeerConnection): New function.
  11363. (setBtMessageFactory): New function.
  11364. (setBtRequestFactory): New function.
  11365. * src/DefaultBtMessageFactory.cc
  11366. (setCommonProperty): Set dispatcher, requestFactory, this,
  11367. peerConnection to msg.
  11368. * src/BtRegistry.h
  11369. (BT_MESSAGE_RECEIVER): New macro.
  11370. * src/PeerConnection.h
  11371. (PeerConnectionWeakHandle): New type definition.
  11372. * src/BtMessageFactory.h
  11373. (BtMessageFactoryWeakHandle): New type definition.
  11374. * src/BitfieldMan.cc
  11375. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11376. cachedCompletedLength, cachedFilteredComletedLength,
  11377. cachedFilteredTotalLength.
  11378. Call updateCache().
  11379. (countMissingBlock): Return cachedNumMissingBlock.
  11380. (countMissingBlockNow): New function.
  11381. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11382. (countFilteredBlockNow): New function.
  11383. (setBit): Call updateCache().
  11384. (unsetBit): Call updateCache().
  11385. (setBitfield): Call updateCache().
  11386. (clearAllBit): Call updateCache().
  11387. (setAllBit): Use setBitInternal instead of setBit.
  11388. Call updateCache().
  11389. (addFilter): Call updateCache().
  11390. (enableFilter): Call updateCache().
  11391. (disableFilter): Call updateCache().
  11392. (clearFilter): Call updateCache().
  11393. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11394. (getFilteredTotalLengthNow): New function.
  11395. (getCompletedLength): Return cachedCompletedLength.
  11396. (getCompletedLengthNow): New function.
  11397. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11398. (getFilteredCompletedLengthNow): New function.
  11399. (updateCache): New function.
  11400. * src/BtMessageReceiver.h
  11401. (BtMessageReceiverWeakHandle): New type definition.
  11402. * src/DefaultBtMessageReceiver.cc
  11403. (receiveHandshake): Use messageFactory member.
  11404. (sendHandshake): Use messageFactory member.
  11405. (receiveMessage): Use messageFactory member.
  11406. * src/DefaultBtMessageFactory.h
  11407. (dispatcher): New variable.
  11408. (requestFactory): New variable.
  11409. (peerConnection): New variablle.
  11410. (setBtMessageDispatcher): New function.
  11411. (setBtRequestFactory): New function.
  11412. (setPeerConnection): New function.
  11413. * src/SharedHandle.h
  11414. (RefCount): New class.
  11415. (WeakHandle): New class.
  11416. * src/PeerObject.h
  11417. (BtMessageReceiver.h): New include.
  11418. (PeerObject): Added btMessageReceiver.
  11419. (btMessageReceiver): New variable.
  11420. * src/Util.cc
  11421. (countBit): Simplified.
  11422. * src/BtCancelMessage.cc
  11423. (doReceivedAction): Use dispatcher member.
  11424. * src/BtRequestFactory.h
  11425. (BtRequestFactoryWeakHandle): New type definition.
  11426. * src/PeerStorage.h
  11427. (downloadSpeed): int -> uint32_t
  11428. (uploadSpeed): int -> uint32_t
  11429. (sessionDownloadLength): long long int -> uint64_t
  11430. (sessionUploadLength): long long int -> uint64_t
  11431. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11432. To add RecoverableException, FatalException:
  11433. * src/AbstractCommand.cc
  11434. (onAbort): Exception -> RecoverableException
  11435. * src/PeerAbstractCommand.h
  11436. (RecoverableException.h): New include.
  11437. (onAbort): Exception -> RecoverableException.
  11438. * src/PeerInteractionCommand.cc
  11439. (onAbort): Exception -> RecoverableException.
  11440. * src/PeerAbstractCommand.cc
  11441. (execute): Exception -> RecoverableException.
  11442. (onAbort): Exception -> RecoverableException.
  11443. * src/TorrentRequestInfo.cc
  11444. (execute): Exception -> RecoverableException.
  11445. * src/MetalinkRequestInfo.cc
  11446. (execute): Exception -> RecoverableException.
  11447. * src/MetaFileUtil.cc: RecoverableException.
  11448. * src/AbstractCommand.h
  11449. (onAbort): Exception -> RecoverableException.
  11450. * src/DlRetryEx.h: Exception -> RecoverableException.
  11451. * src/DlAbortEx.h: Exception -> RecoverableException.
  11452. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11453. * src/Util.cc: Exception -> RecoverableException.
  11454. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11455. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11456. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11457. To make ID static const int
  11458. * src/BtInterestedMessage.h
  11459. (ID_t): Removed.
  11460. (ID): New variable.
  11461. (getId): Made non-const.
  11462. * src/BtPieceMessage.h
  11463. (ID_t): Removed.
  11464. (ID): New variable.
  11465. (getId): Made non-const.
  11466. * src/BtChokeMessage.h
  11467. (ID_t): Removed.
  11468. (ID): New variable.
  11469. (getId): Made non-const.
  11470. * src/BtHaveAllMessage.h
  11471. (ID_t): Removed.
  11472. (ID): New variable.
  11473. (getId): Made non-const.
  11474. * src/BtKeepAliveMessage.h
  11475. (ID_t): Removed.
  11476. (ID): New variable.
  11477. (getId): Made non-const.
  11478. * src/BtHandshakeMessage.h
  11479. (ID): New variable.
  11480. (getId): Made non-const.
  11481. * src/BtSuggestPieceMessage.h
  11482. (ID_t): Removed.
  11483. (ID): New variable.
  11484. (getId): Made non-const.
  11485. * src/BtPortMessage.h
  11486. (ID_t): Removed.
  11487. (ID): New variable.
  11488. (getId): Made non-const.
  11489. * src/AbstractBtMessage.h
  11490. (id): Removed.
  11491. (AbstractBtMessage): Removed id.
  11492. (getId): Removed.
  11493. * src/BtHaveMessage.h
  11494. (ID_t): Removed.
  11495. (ID): New variable.
  11496. (getId): Made non-const.
  11497. * src/BtAllowedFastMessage.h
  11498. (ID_t): Removed.
  11499. (ID): New variable.
  11500. (getId): Made non-const.
  11501. * src/BtCancelMessage.h
  11502. (ID_t): Removed.
  11503. (ID): New variable.
  11504. (getId): Made non-const.
  11505. * src/BtNotInterestedMessage.h
  11506. (ID_t): Removed.
  11507. (ID): New variable.
  11508. (getId): Made non-const.
  11509. * src/BtChokeMessage.h
  11510. (ID_t): Removed.
  11511. (ID): New variable.
  11512. (getId): Made non-const.
  11513. * src/BtRejectMessage.h
  11514. (ID_t): Removed.
  11515. (ID): New variable.
  11516. (getId): Made non-const.
  11517. * src/BtBitfieldMessage.h
  11518. (ID_t): Removed.
  11519. (ID): New variable.
  11520. (getId): Made non-const.
  11521. * src/BtUnchokeMessage.h
  11522. (ID_t): Removed.
  11523. (ID): New variable.
  11524. (getId): Made non-const.
  11525. * src/BtRequestMessage.h
  11526. (ID_t): Removed.
  11527. (ID): New variable.
  11528. (getId): Made non-const.
  11529. * src/BtHaveMessage.h
  11530. (ID_t): Removed.
  11531. (ID): New variable.
  11532. (getId): Made non-const.
  11533. To add --force-truncate command-line option and a check whether
  11534. the file already exists:
  11535. * src/DirectDiskAdaptor.h
  11536. (getFilePath): Made virtual public.
  11537. * src/MultiDiskAdaptor.h
  11538. (File.h): New include.
  11539. (DiskWriterEntry::fileEntry): Made private.
  11540. (DiskWriterEntry::fileExists): New function.
  11541. (DiskWriterEntry::getFileEntry): New function.
  11542. (fileExists): New function.
  11543. (getFilePath): New function.
  11544. * src/TorrentRequestInfo.cc
  11545. (FatalException.h): New include.
  11546. (message.h): New include.
  11547. (RecoverableException.h): New include.
  11548. (execute): Added a check whether file is already exists or not.
  11549. * src/DiskAdaptor.h
  11550. (fileExists): New function.
  11551. (getFilePath): New function.
  11552. * src/main.cc
  11553. (showUsage): Added an explanation of --force-truncate command-line
  11554. option.
  11555. (main): Added --force-truncate command-line option.
  11556. * src/Exception.h
  11557. (setMsg): buf[256] -> buf[1024]
  11558. * src/CopyDiskWriter.h
  11559. (getFilePath): Made public virtual.
  11560. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11561. (fileExists): New function.
  11562. * src/DownloadEngineFactory.cc
  11563. (newTorrentConsoleEngine): Don't open file here.
  11564. * src/message.h
  11565. (EX_FILE_ALREADY_EXISTS): New definition.
  11566. * src/prefs.h
  11567. (PREF_FOECE_TRUNCATE): New definition.
  11568. * src/HttpResponseCommand.cc
  11569. (handleDefaultEncoding): Added a check whether the file already exists.
  11570. * src/SegmentMan.h
  11571. (fileExists): New function.
  11572. (shouldCancelDownloadForSafety): New function.
  11573. * src/FtpNegotiateCommand.cc
  11574. (recvSize): Added a check whether the file already exists.
  11575. * src/AbstractSingleDiskAdaptor.cc
  11576. (File.h): New include.
  11577. (fileExists): New function.
  11578. * src/AbstractSingleDiskAdaptor.h
  11579. (getFilePath): Removed.
  11580. (fileExists): New function.
  11581. * src/SegmentMan.cc
  11582. (fileExists): New function.
  11583. (shouldCancelDownloadForSafety): New function.
  11584. To fix regression bug in torrent downloading:
  11585. * src/DefaultBtRequestFactory.cc
  11586. (doChokedAction): New function.
  11587. * src/DefaultBtRequestFactory.h
  11588. (doChokedAction): New function.
  11589. * src/DefaultBtMessageDispatcher.cc
  11590. (doChokedAction): Do not delete request if its target is in allowed
  11591. fast set.
  11592. * src/DefaultBtInteractive.cc
  11593. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11594. (sendKeepAlive): Send keep alive message even if the outgoing message
  11595. queue is not empty.
  11596. (decideInterest): Simplified the code.
  11597. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11598. it is already called when BtChokeMessage is received from a peer.
  11599. * src/BtRequestFactory.h
  11600. (doChokedAction): New function.
  11601. To clean up code:
  11602. * src/PeerInteractionCommand.h
  11603. (executeInternal): Added virtual keyword explicitly.
  11604. (prepareForRetry): Added virtual keyword explicitly.
  11605. (prepareForNextPeer): Added virtual keyword explicitly.
  11606. (onAbort): Added virtual keyword explicitly.
  11607. * src/RequestSlot.cc
  11608. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11609. * src/BtPieceMessage.cc
  11610. (doReceivedAction): Added a debug log of piece's bitfield.
  11611. * src/Piece.h
  11612. (getBitfieldLength): New function.
  11613. * src/ByteArrayDiskWriter.cc
  11614. (clear): Added buf = 0 to avoid double free corruption.
  11615. * src/FileAllocator.cc
  11616. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11617. Added cp.reset().
  11618. * src/BitfieldMan.h
  11619. (operator=): Rewritten.
  11620. * src/BitfieldMan.cc
  11621. (BitfieldMan): Initialized bitfield, useBitfield.
  11622. * src/PeerConnection.cc
  11623. (receiveMessage): Added a call to socket->readable() after getting
  11624. message length to avoid possible EOF.
  11625. * src/Util.cc
  11626. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11627. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11628. To add an ability to pre-allocate file space:
  11629. * src/DirectDiskAdaptor.h: Rewritten.
  11630. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11631. * src/MultiDiskAdaptor.h: Rewritten.
  11632. * src/DefaultPieceStorage.cc
  11633. (MultiDiskWriter.h): Removed include.
  11634. (PreAllocationDiskWriter.h): Removed include.
  11635. (FileAllocationMonitor.h): New include.
  11636. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11637. (initStorage): Rewritten.
  11638. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11639. * src/FileAllocator.h: New class.
  11640. * src/FileAllocator.cc: New class.
  11641. * src/FileAllocationMonitor.h: New class.
  11642. * src/FileAllocationMonitor.cc: New class.
  11643. * src/ConsoleFileAllocationMonitor.h: New class.
  11644. * src/ConsoleFileAllocationMonitor.cc: New class.
  11645. * src/AbstractSingleDiskAdaptor.h: New class.
  11646. * src/AbstractSingleDiskAdaptor.cc: New class.
  11647. * src/DiskAdaptor.h
  11648. (Directory.h): Removed include.
  11649. (DiskWriter.h): Removed include.
  11650. (FileEntry.h): Removed include.
  11651. (diskWriter): Removed.
  11652. (DiskAdaptor): Removed diskWriter.
  11653. (openFile): Made pure virtual.
  11654. (closeFile): Made pure virtual.
  11655. (openExistingFile): Made pure virtual.
  11656. (initAndOpenFile): Made pure virtual.
  11657. (writeData): Made pure virtual.
  11658. (readData): Made pure virtual.
  11659. (sha1Sum): Made pure virtual.
  11660. (getStoreDir): Returns const reference of storeDir.
  11661. (DiskAdaptorHandle): New type definition.
  11662. * src/main.cc
  11663. (ConsoleFileAllocationMonitor.h): New include.
  11664. (showUsage): Added default value description of -s option.
  11665. Added the description of --file-allocation option.
  11666. (main): Set default value of --file-allocation option to 'none'.
  11667. Added --file-allocation command-line option.
  11668. Setup FileAllocationMonitorFactory.
  11669. * src/FtpInitiateConnectionCommand.cc
  11670. (executeInternal): Removed diskWriter related processing, which was
  11671. moved to FtpNegotiationCommand.cc.
  11672. * src/DirectDiskAdaptor.cc
  11673. (getFilePath): Made non-const.
  11674. * src/CopyDiskAdaptor.h
  11675. (DiskAdaptor.h): Removed include.
  11676. (DiskWriter.h): Removed include.
  11677. (AbstractSingleDiskAdaptor.h): New include.
  11678. (getFilePath): Made non-const. Added virtual keyword.
  11679. (CopyDiskAdaptor): Removed diskWriter.
  11680. (getTempFile): Returns const reference.
  11681. (CopyDiskAdaptorHandle): New type definition.
  11682. * src/ByteArrayDiskWriter.cc
  11683. (clear): Simplified.
  11684. (initAndOpenFile): Rewritten.
  11685. (openFile): Call initAndOpenFile()
  11686. * src/MultiDiskAdaptor.cc: Rewritten.
  11687. * src/DownloadEngineFactory.cc
  11688. (FileAllocator.h): New include.
  11689. (FileAllocationMonitor.h): New include.
  11690. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11691. create DefaultDiskWriter with file allocator.
  11692. * src/DiskWriter.h
  11693. (initAndOpenFile): Added totalLength argument.
  11694. (openFile): Added totalLength argument.
  11695. * src/prefs.h
  11696. (PREF_FILE_ALLOCATION): New definition.
  11697. (V_PREALLOC): New definition.
  11698. (V_NONE): New definition.
  11699. * src/HttpResponseCommand.cc
  11700. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11701. size.
  11702. * src/FtpNegotiateCommand.cc
  11703. (Util.h): New include.
  11704. (recvSize): Open file here.
  11705. * src/Util.h
  11706. (ullitos): New function.
  11707. * src/CopyDiskWriter.h
  11708. (getFilePath): Made non-const.
  11709. * src/DefaultDiskWriter.h
  11710. (Option.h): New include.
  11711. (totalLength): Removed.
  11712. (DefaultDiskWriter): Removed totalLength.
  11713. (initAndOpenFile): Added totalLength argument.
  11714. (DefaultDiskWriterHandle): New type definition.
  11715. (createNewDiskWriter): New function.
  11716. * src/Util.cc
  11717. (ullitos): New function.
  11718. * src/DefaultDiskWriter.cc
  11719. (message.h): New include.
  11720. (FileAllocator.h): New include.
  11721. (prefs.h): New include.
  11722. (Util.h): New include.
  11723. (DefaultDiskWriter): Removed totalLength.
  11724. (initAndOpenFile): Added file allocation.
  11725. (createNewDiskWriter): New function. Just for temporary solution.
  11726. It will be rewritten later.
  11727. * src/DiskAdaptor.cc
  11728. (DiskAdaptor): Removed diskWriter.
  11729. * src/AbstractDiskWriter.cc
  11730. (LogFactory.h): New include.
  11731. (AbstractDiskWriter): Added fileAllocator, logger.
  11732. (openFile): Added totalLength argument.
  11733. * src/AbstractDiskWriter.h
  11734. (FileAllocator.h): New include.
  11735. (Logger.h): New include.
  11736. (fileAllocator): New variable.
  11737. (logger): New variable.
  11738. (openFile): Added totalLength argument. Added virtual keyword
  11739. explicitly.
  11740. (openExistingFile): Added totalLength argument. Added virtual keyword
  11741. explicitly.
  11742. (closeFile): Added virtual keyword explicitly.
  11743. (sha1Sum): Added virtual keyword explicitly.
  11744. (writeData): Added virtual keyword explicitly.
  11745. (readData): Added virtual keyword explicitly.
  11746. (setFileAllocator): New function.
  11747. * src/DefaultPieceStorage.h
  11748. (FileAllocator.h): New include.
  11749. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11750. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11751. * src/FileProgressMonitor.h: New class.
  11752. To compile aria2 on PC-BSD:
  11753. * src/DefaultBtContext.cc
  11754. (libgen.h): New include.
  11755. To fix memory leak:
  11756. * src/Exception.h
  11757. (~Exception): Delete cause. Fixed memory leak.
  11758. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11759. Rewritten a portion of bittorrent implementation:
  11760. * src/BtMessageValidator.h: New class.
  11761. * src/BtBitfieldMessageValidator.h: New class.
  11762. * src/BtHandshakeMessageValidator.h: New class.
  11763. * src/BtRequestMessageValidator.h: New class.
  11764. * src/BtSuggestPieceMessageValidator.h: New class.
  11765. * src/BtAllowedFastMessageValidator.h: New class.
  11766. * src/BtRejectMessageValidator.h: New class.
  11767. * src/BtCancelMessageValidator.h: New class.
  11768. * src/BtPieceMessageValidator.h: New class.
  11769. * src/BtHaveMessageValidator.h: New class.
  11770. * src/BtEventListener.h: New class.
  11771. * src/AbstractBtEventListener.h: New class.
  11772. * src/BtEvent.h: New class.
  11773. * src/BtChokingEvent.h: New class.
  11774. * src/BtChokedEvent.h: New class.
  11775. * src/BtCancelSendingPieceEvent.h: New class.
  11776. * src/BtAbortOutstandingRequestEvent.h: New class.
  11777. * src/Randomizer.h: New class.
  11778. * src/SimpleRandomizer.h: New class.
  11779. * src/BtMessage.h: New class.
  11780. * src/AbstractBtMessage.h: New class.
  11781. * src/SimpleBtMessage.h: New class.
  11782. * src/BtHaveMessage.h: New class.
  11783. * src/BtInterestedMessage.h: New class.
  11784. * src/BtAllowedFastMessage.h: New class.
  11785. * src/BtUnchokeMessage.h: New class.
  11786. * src/BtCancelMessage.h: New class.
  11787. * src/BtNotInterestedMessage.h: New class.
  11788. * src/BtChokeMessage.h: New class.
  11789. * src/BtHaveNoneMessage.h: New class.
  11790. * src/BtHandshakeMessage.h: New class.
  11791. * src/BtSuggestPieceMessage.h: New class.
  11792. * src/BtHaveMessage.h: New class.
  11793. * src/BtPieceMessage.h: New class.
  11794. * src/BtHaveAllMessage.h: New class.
  11795. * src/BtKeepAliveMessage.h: New class.
  11796. * src/BtPortMessage.h: New class.
  11797. * src/BtRejectMessage.h: New class.
  11798. * src/BtBitfieldMessage.h: New class.
  11799. * src/BtRequestMessage.h: New class.
  11800. * src/DefaultBtRequestFactory.h: New class.
  11801. * src/DefaultBtMessageReceiver.h: New class.
  11802. * src/BtInteractive.h: New class.
  11803. * src/BtMessageDispatcher.h: New class.
  11804. * src/DefaultBtMessageDispatcher.h: New class.
  11805. * src/DefaultBtInteractive.h: New class.
  11806. * src/BitfieldManFactory.h: New class.
  11807. * src/HandleRegistry.h: New class.
  11808. * src/BtMessageFactory.h: New class.
  11809. * src/BtMessageReceiver.h: New class.
  11810. * src/DefaultBtMessageFactory.h: New class.
  11811. * src/PeerObject.h: New class.
  11812. * src/BtRequestFactory.h: New class.
  11813. * src/SuggestPieceMessage.h: Removed.
  11814. * src/PortMessage.h: Removed.
  11815. * src/SuggestPieceMessage.h: Removed.
  11816. * src/KeepAliveMessage.h: Removed.
  11817. * src/HandshakeMessage.h: Removed.
  11818. * src/PeerInteraction.h: Removed.
  11819. * src/UnchokeMessage.h: Removed.
  11820. * src/PieceMessage.h: Removed.
  11821. * src/RequestMessage.h: Removed.
  11822. * src/InterestedMessage.h: Removed.
  11823. * src/HaveMessage.h: Removed.
  11824. * src/CancelMessage.h: Removed.
  11825. * src/RejectMessage.h: Removed.
  11826. * src/AllowedFastMessage.h: Removed.
  11827. * src/HaveNoneMessage.h: Removed.
  11828. * src/SimplePeerMessage.h: Removed.
  11829. * src/HaveAllMessage.h: Removed.
  11830. * src/BitfieldMessage.h: Removed.
  11831. * src/PeerMessageFactory.h: Removed.
  11832. * src/NotInterestedMessage.h: Removed.
  11833. * src/ChokeMessage.h: Removed.
  11834. * src/PeerMessage.h: Removed.
  11835. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11836. To know root cause of exception:
  11837. * src/Exception.h
  11838. (cause): New variable.
  11839. (Exception): Added a parameter.
  11840. (getMsg): Return const reference to msg.
  11841. (getCause): New function.
  11842. * src/DlRetryEx.h
  11843. (DlRetryEx): Added a parameter 'cause'.
  11844. Added an overloaded constructor.
  11845. (DlAbortEx): Added a parameter 'cause'.
  11846. Added an overloaded constructor.
  11847. * src/SimpleLogger.cc
  11848. (writeLog): Log nested exception messages recursively.
  11849. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11850. * src/DefaultBtProgressInfoFile.cc
  11851. (load): Fixed memory leak when the infohash doesn't match.
  11852. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11853. * src/DefaultPeerStorage.cc
  11854. (calculateStat): Simplified the code by combining 2 loops into 1.
  11855. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11856. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11857. for BitTorrent download:
  11858. * src/PeerAbstractCommand.cc
  11859. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11860. * src/main.cc:
  11861. (timeoutSpecified): Removed.
  11862. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11863. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11864. * src/TorrentRequestInfo.cc
  11865. (timeoutSpecified): Removed.
  11866. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11867. timeout value.
  11868. * src/prefs.h
  11869. (PREF_BT_TIMEOUT): New definition.
  11870. Delete unused variables:
  11871. * src/TorrentRequestInfo.cc
  11872. (requestInfo): Removed.
  11873. Move setSignalHander to Util::setGlobalSignalHandler:
  11874. * src/TorrentRequestInfo.cc:
  11875. setSignalHander -> Util::setGlobalSignalHandler
  11876. * src/main.cc
  11877. (setSignalHander): Removed.
  11878. (main): setSignalHander -> Util::setGlobalSignalHandler
  11879. * src/Util.h
  11880. (setGlobalSignalHandler): New function.
  11881. * src/Util.cc
  11882. (setGlobalSignalHandler): New function.
  11883. * src/UrlRequestInfo.cc:
  11884. setSignalHander -> Util::setGlobalSignalHandler
  11885. Reset peer status in order to exit gracefully:
  11886. * src/PeerAbstractCommand.cc
  11887. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11888. To fix the bug that causes the number of bytes uploaded is not saved
  11889. to .aria2 file:
  11890. * src/DefaultPeerStorage.h
  11891. (removedPeerSessionDownloadLength): New variable.
  11892. (removedPeerSessionUploadLength): New variable.
  11893. * src/DefaultPeerStorage.cc
  11894. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11895. removedPeerSessionUploadLength(0).
  11896. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11897. through all peers, and then add removedPeerSessionDownloadLength(
  11898. removedPeerSessionUploadLength) to it.
  11899. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11900. (to) the peer to removedPeerSessionDownloadLength
  11901. (removedPeerSessionUploadLength).
  11902. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11903. To add Metalink location option:
  11904. * src/MetalinkRequestInfo.cc
  11905. (execute): Call MetalinkEntry::setLocationPreference()
  11906. * src/main.cc
  11907. (showUsage): Added the help message for --metalink-location option.
  11908. (main): Added --metalink-location option.
  11909. * src/prefs.h
  11910. (PREF_METALINK_LOCATION): New definition.
  11911. * src/MetalinkEntry.cc
  11912. (AddLocationPreference): New function object.
  11913. (setLocationPreference): New function.
  11914. * src/Xml2MetalinkProcessor.cc
  11915. (getResource): Set location attribute to MetalinkResource
  11916. To show URLs to download
  11917. * src/UrlRequestInfo.h
  11918. (printUrls): New function.
  11919. To add multiple <file> Metalink support:
  11920. * src/MetalinkEntry.h
  11921. (MetalinkResources): Removed.
  11922. (setLocationPreference): New function.
  11923. (MetalinkEntryHandle): New type definition.
  11924. (MetalinkEntries): New type definition.
  11925. * src/Xml2MetalinkProcessor.h
  11926. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11927. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11928. (parseFile): Metalinker* -> MetalinkerHandle
  11929. * src/UrlRequestInfo.h
  11930. (execute): RequestInfo* -> RequestInfos
  11931. * src/MetalinkRequestInfo.cc
  11932. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11933. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11934. (execute): RequestInfo* -> RequestInfos
  11935. Added multiple <file> support. Print filename when it is queued.
  11936. * src/MetalinkRequestInfo.h
  11937. (execute): RequestInfo* -> RequestInfos
  11938. (getDownloadEngine): Removed.
  11939. * src/RequestInfo.h
  11940. (RequestInfoHandle): New type definition.
  11941. (RequestInfos): New type definition.
  11942. (execute): RequestInfo* -> RequestInfos
  11943. (getDownloadEngine): Removed.
  11944. * src/MetalinkResource.h
  11945. (MetalinkResourceHandle): New type definition.
  11946. (MetalinkResources): New type definition.
  11947. * src/MetalinkEntry.cc
  11948. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11949. because the element is now of type MetalinkResourceHandle.
  11950. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11951. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11952. (dropUnsupportedResource): Removed the deletion of the elements of
  11953. resources because the element is now of type MetalinkResourceHandle.
  11954. * src/Xml2MetalinkProcessor.cc
  11955. (parseFile): Metalinker* -> MetalinkerHandle
  11956. MetalinkEntry* -> MetalinkEntryHandle
  11957. Removed try-catch block.
  11958. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11959. MetalinkResource* -> MetalinkResourceHandle
  11960. Removed try-catch block.
  11961. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11962. Free result by using xmlXPathFreeObject()
  11963. * src/Metalinker.cc
  11964. (~Metalinker): Removed the deletion of entries.
  11965. MetalinkEntry* -> MetalinkEntryHandle
  11966. (queryEntry): Add multiple <file> Metalink support.
  11967. * src/Metalinker.h
  11968. (MetalinkEntries): Removed.
  11969. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11970. * src/MetalinkProcessor.h
  11971. (parseFile): Metalinker* -> MetalinkerHandle
  11972. Bug fixes:
  11973. * src/PeerChokeCommand.cc
  11974. (execute): cat01->cat02
  11975. * src/DefaultPieceStorage.cc
  11976. (DefaultPieceStorage): Added diskAdaptor(0)
  11977. * src/TrackerWatcherComand.cc:
  11978. (execute): Use btAnnounce->noMoreAnnounce()
  11979. to determin whether the function returns true or not.
  11980. * src/TrackerUpdateCommand.cc:
  11981. (execute): Use btAnnounce->noMoreAnnounce()
  11982. to determin whether the function returns true or not.
  11983. * src/FtpConnection.cc
  11984. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11985. This is the fix of the busy loop bug.
  11986. * src/DownloadCommand.cc
  11987. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11988. cached PeerStat.
  11989. The value of "name" entry in torrent file is now set by
  11990. *DiskAdaptor::setTopDir(...) methods.
  11991. * src/MultiDiskAdaptor.h
  11992. (topDir): New variable.
  11993. (setTopDir): New function.
  11994. (getTopDir): New function.
  11995. * src/MultiDiskAdaptor.cc
  11996. (getFilePath): Concat storDir, "/" and topDir.
  11997. (mkdir): Use getFilePath() to get the directory path for output.
  11998. * src/DefaultPieceStorage.cc
  11999. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12000. CopyDiskAdaptor.
  12001. * src/CopyDiskAdaptor.h
  12002. (topDir): New variable.
  12003. (setTopDir): New function.
  12004. (getTopDir): New function.
  12005. * src/CopyDiskAdaptor.cc
  12006. (fixFilename): Updated.
  12007. Misc
  12008. * src/UrlRequestInfo.h
  12009. (e): Removed.
  12010. (UrlRequestInfo): Removed e.
  12011. (getDownloadEngine): Removed.
  12012. * src/UrlRequestInfo.cc
  12013. (handler): Rewritten.
  12014. (printUrls): New function.
  12015. (execute): Call printUrls().
  12016. * src/HandshakeMessage.cc
  12017. (check): peerinteraction->getBtContext() -> btContext
  12018. * src/PeerInteraction.h
  12019. (getBtContext): Removed.
  12020. * src/TorrentRequestInfo.h
  12021. (execute): RequestInfo* -> RequestInfos
  12022. (getDownloadEngine): Removed.
  12023. * src/TorrentRequestInfo.cc
  12024. (haltRequested): Removed.
  12025. (btHaltRequested): New variable.
  12026. (torrentHandler): haltRequested -> btHaltRequested
  12027. (execute): RequestInfo* -> RequestInfos
  12028. * src/TorrentConsoleDownloadEngine.cc
  12029. (afterEachIteration): haltRequested -> btHaltRequested.
  12030. * src/ConsoleDownloadEngine.h
  12031. (initStatistics): Added virtual.
  12032. (calculateStatistics): Added virtual.
  12033. (onEndOfRun): Added virtual.
  12034. (afterEachIteration): Added virtual.
  12035. * src/ConsoleDownloadEngine.cc
  12036. (haltRequested): New variable.
  12037. (afterEachIteration): New function.
  12038. * src/main.cc
  12039. (requestInfo): Removed.
  12040. * src/SegmentMan.cc
  12041. (findSlowerSegmentEntry): Refactored.
  12042. * Release 0.9.0
  12043. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12044. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12045. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12046. * src/TorrentMan.h: Removed.
  12047. * src/TorrentMan.cc: Removed.
  12048. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12049. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12050. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12051. * src/PeerAbstractCommand.cc: Use btRuntime.
  12052. * src/BtContextAwareCommand.h: New class.
  12053. * src/FileEntry.h: Added accessor methods for following variables.
  12054. (path): Made private.
  12055. (length): Made private.
  12056. (offset): Made private.
  12057. (extracted): Made private.
  12058. (requested): Made private.
  12059. (FileEntries): New definition.
  12060. (FileEntryHandle): New definition.
  12061. * src/FileEntry.cc: New file.
  12062. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12063. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12064. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12065. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12066. * src/PieceStorage.h: New file.
  12067. * src/PeerInteractionCommand.h: Use btContext.
  12068. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12069. btRuntime.
  12070. * src/DefaultBtProgressInfoFile.h: New file.
  12071. * src/DefaultBtProgressInfoFile.cc: New file.
  12072. * src/File.cc
  12073. (Util.h): New include.
  12074. (mkdirs): New function.
  12075. * src/MultiDiskAdaptor.h
  12076. (mkdir): New function.
  12077. * src/PeerListProcessor.h
  12078. (Peers): Removed.
  12079. * src/PeerInteraction.h
  12080. (torrentMan): Removed.
  12081. (btContext): New variable.
  12082. (peerStorage): New variable.
  12083. (pieceStorage): New variable.
  12084. (btAnnounce): New variable.
  12085. (getTorrentMan): Removed.
  12086. (getBtContext): New function.
  12087. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12088. btAnnounce.
  12089. * src/HandshakeMessage.h
  12090. (TorrentMan.h): Removed.
  12091. * src/HandshakeMessage.cc: Use btContext.
  12092. * src/DefaultBtAnnounce.cc: New file.
  12093. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12094. * src/DefaultPieceStorage.cc: New file.
  12095. * src/DefaultBtContext.h: New file.
  12096. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12097. Use the accessor methods of FileEntry.
  12098. * src/CookieBox.cc: Updated to use Util::slice().
  12099. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12100. * src/common.h (SharedHandle.h): New include.
  12101. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12102. pieceStorage.
  12103. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12104. * src/DiskAdaptor.h
  12105. (topDir): Removed.
  12106. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12107. (setTopDir): Removed.
  12108. (getTopDir): Removed.
  12109. * src/BtContext.h: New file.
  12110. * src/DefaultPeerStorage.h: New file.
  12111. * src/PieceMessage.h (TorrentMan.h): Removed.
  12112. * src/RequestMessage.h (TorrentMan.h): Removed.
  12113. * src/TorrentDownloadEngine.h
  12114. (uploadLength): New variable.
  12115. (btContext): New variable.
  12116. (btRuntime): New variable.
  12117. (pieceStorage): New variable.
  12118. (peerStorage): New variable.
  12119. (btAnnounce): New variable.
  12120. (btProgressInfoFile): New variable.
  12121. (torrentMan): Removed.
  12122. (setBtContext): New function.
  12123. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12124. peerStorage, btAnnounce, btProgressInfoFile.
  12125. * src/Piece.h
  12126. (toString): New function.
  12127. (Pieces): New type definition.
  12128. * src/Peer.h
  12129. (active): New variable.
  12130. (Peer): Added active.
  12131. (activate): Set active to true.
  12132. (deactivate): Set active to false.
  12133. (isActive): New function.
  12134. (Peers): New type definition.
  12135. * src/DirectDiskAdaptor.cc
  12136. (getFilePath): Use the accessor methods of FileEntry.
  12137. * src/TorrentConsoleDownloadEngine.h
  12138. (afterEachIteration): New function.
  12139. * src/TorrentConsoleDownloadEngine.cc
  12140. (haltRequested): New variable.
  12141. (sendStatistics): Use pieceStorage, btRuntime.
  12142. (afterEachIteration): New function.
  12143. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12144. * src/Directry.h
  12145. (Directory): New function.
  12146. (DirectoryHandle): New type definition.
  12147. * src/BtProgressInfoFile.h: New file.
  12148. * src/RequestMessage.cc: Use pieceStorage.
  12149. * src/BtRuntime.h: New file.
  12150. * src/DefaultBtContext.cc: New file.
  12151. * src/BitfieldMan.h
  12152. (getCompletedLength): New function(private).
  12153. (getCompletedLength): New function.
  12154. (getFilteredCompletedLength): New function.
  12155. * src/BitfieldMan.h
  12156. (getCompletedLength): New function(private).
  12157. (getCompletedLength): New function.
  12158. (getFilteredCompletedLength): New function.
  12159. * src/MultiDiskAdaptor.cc
  12160. (mkdir): New function.
  12161. (openFile): Call mkdir().
  12162. (initAndOpenFile): Call mkdir().
  12163. * src/CancelMessage.h
  12164. (TorrentMan.h): Removed.
  12165. * src/RejectMessage.h
  12166. (TorrentMan.h): Removed.
  12167. * src/DownloadEngineFactory.cc
  12168. (DefaultPieceStorage.h): New include.
  12169. (DefaultPeerStorage.h): New include.
  12170. (DefaultBtAnnounce.h): New include.
  12171. (DefaultBtProgressInfoFile.h): New include.
  12172. (newTorrentConsoleEngine): Rewritten.
  12173. * src/ShareRatioSeedCriteria.h
  12174. (torrentMan): Removed.
  12175. (btContext): New variable.
  12176. (peerStorage): New variable.
  12177. (btRuntime): New variable.
  12178. (evaluate): Use btContext, btRuntime, peerStorage.
  12179. * src/AnnounceTier.h: New file.
  12180. * src/BtAnnounce.h: New file.
  12181. * src/BtRegistry.h: New file.
  12182. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12183. * src/PeerConnection.h (TorrentMan.h): Removed.
  12184. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12185. * src/Util.h
  12186. (slice): Added an argument.
  12187. * src/Util.cc
  12188. (slice): Added an argument to control whether trim is made or not.
  12189. * src/PeerStorage.h: New file.
  12190. * src/BtRegistry.cc: New file.
  12191. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12192. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12193. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12194. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12195. * src/TorrentRequestInfo.h
  12196. (e): Removed.
  12197. (showFileEntry): Added an argument.
  12198. (getDownloadEngine): Return 0.
  12199. * src/DefaultBtAnnounce.h: New file.
  12200. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12201. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12202. * src/PeerMessageFactory.h
  12203. (btContext): New variable.
  12204. (pieceStorage): New variable.
  12205. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12206. btAnnounce.
  12207. * src/DiskAdaptor.cc
  12208. (DiskAdaptor): Removed topDir.
  12209. (~DiskAdaptor): Removed topDir.
  12210. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12211. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12212. * src/File.h (mkdirs): New function.
  12213. * src/DefaultPeerStorage): New file.
  12214. * src/DownloadEngineFactory.h
  12215. (newTorrentConsoleEngine): Use btContext.
  12216. * src/BtContextAwareCommand.cc: New file.
  12217. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12218. * src/PeerMessage.h
  12219. (btContext): New variable.
  12220. (peerStorage): New variable.
  12221. (pieceStorage): New variable.
  12222. (setBtContext): New function.
  12223. * src/Directry.cc
  12224. (Directory): New function.
  12225. (createDir): Do nothing if name.size() == 0.
  12226. * src/AnnounceList.h
  12227. (AnnounceTier): Removed.
  12228. (AnnounceTiers): Removed.
  12229. * src/DefaultPieceStorage.h: New file.
  12230. * src/Piece.cc (toString): New function.
  12231. To fix typo:
  12232. * src/main.cc (showVersion): Fixed typo.
  12233. To fix compile warning:
  12234. * src/DelegatingPeerListProcessor.cc
  12235. (canHandle): Added "return false".
  12236. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12237. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12238. make the process of announce request testable.
  12239. * src/TrackerWatcherCommand.h
  12240. (TimeA2.h): Removed.
  12241. (interval): Removed.
  12242. (checkPoint): Removed.
  12243. (createRequestCommand): Added an argument 'url'.
  12244. (TrackerWatherCommand): Removed interval.
  12245. (createCommand): New function.
  12246. * src/DownloadEngineFactory.cc
  12247. (newTorrentConsoleEngine): Updated according to the changes in
  12248. TrackerWatherCommand.
  12249. * src/TorrentMan.cc
  12250. (DelegatingPeerListProcessor.h): New includes.
  12251. (TorrentMan): Added the initialization of announceInterval.
  12252. (isStoppedAnnounceReady): New function.
  12253. (isCompletedAnnounceReady): New function.
  12254. (isDefaultAnnounceReady): New function.
  12255. (isAnnounceReady): New function.
  12256. (getAnnounceUrl): New function.
  12257. (announceStart): New function.
  12258. (announceFailure): New function.
  12259. (announceSuccess): New function.
  12260. (isAllAnnounceFailed): New function.
  12261. (resetAnnounce): New function.
  12262. (processAnnounceResponse): New function.
  12263. (needMorePeerConnection): New function.
  12264. (noMoreAnnounce): New function.
  12265. * src/TrackerUpdateCommand.h
  12266. (getTrackerResponse): int->size_t
  12267. * src/TorrentMan.h
  12268. (isStoppedAnnounceReady): New function.
  12269. (isCompletedAnnounceReady): New function.
  12270. (isDefaultAnnounceReady): New function.
  12271. (announceInterval): New variable.
  12272. (isAnnounceReady): New function.
  12273. (getAnnounceUrl): New function.
  12274. (announceStart): New function.
  12275. (announceFailure): New function.
  12276. (announceSuccess): New function.
  12277. (isAllAnnounceFailed): New function.
  12278. (resetAnnounce): New function.
  12279. (processAnnounceResponse): New function.
  12280. (needMorePeerConnection): New function.
  12281. (noMoreAnnounce): New function.
  12282. * src/TrackerWatcherCommand.cc
  12283. (TrackerWatherCommand): Removed interval and checkPoint.
  12284. (execute): Rewritten.
  12285. (createCommand): New function.
  12286. (createRequestCommand): Rewritten.
  12287. * src/TrackerUpdateCommand.cc
  12288. (MetaFileUtil.h): Removed.
  12289. (DelegatingPeerListProcessor.h): Removed.
  12290. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12291. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12292. Request -> RequestHandle:
  12293. * src/HttpResponseCommand.h: Request->RequestHandle
  12294. * src/AbstractCommand.cc: Request->RequestHandle
  12295. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12296. * src/HttpRequestCommand.cc: Request->RequestHandle
  12297. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12298. * src/AbstractCommand.h: Request->RequestHandle
  12299. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12300. * src/HttpResponseCommand.cc: Request->RequestHandle
  12301. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12302. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12303. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12304. * src/HttpConnection.h: Request->RequestHandle
  12305. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12306. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12307. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12308. * src/DownloadCommand.h: Request->RequestHandle
  12309. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12310. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12311. * src/HttpRequestCommand.h: Request->RequestHandle
  12312. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12313. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12314. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12315. * src/HttpDownloadCommand.h: Request->RequestHandle
  12316. * src/FtpConnection.cc: Request->RequestHandle
  12317. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12318. * src/UrlRequestInfo.cc: Request->RequestHandle
  12319. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12320. * src/HttpConnection.h: Request->RequestHandle
  12321. * src/DownloadCommand.cc: Request->RequestHandle
  12322. * src/FtpConnection.h: Request->RequestHandle
  12323. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12324. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12325. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12326. * src/Request.h
  12327. (SharedHandle.h): New include.
  12328. (RequestHandle): New type definition.
  12329. (Requests): Redefined.
  12330. To add MULTITRACKER support:
  12331. * src/TrackerWatcherCommand.h
  12332. (createRequestCommand): New function.
  12333. * src/DownloadEngineFactory.cc
  12334. (newTorrentConsoleEngine): Removed req.
  12335. * src/prefs.h
  12336. (PREF_TRACKER_MAX_TRIES): New definition.
  12337. * src/TorrentMan.cc
  12338. (TorrentMan): Removed req. Added trackerNumTry.
  12339. (~TorrentMan): Removed req.
  12340. (setupInternal1): Added announceList.
  12341. * src/TorrentRequestInfo.cc
  12342. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12343. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12344. * src/main.cc
  12345. (main): Added PREF_TRACKER_MAX_TRIES.
  12346. * src/TorrentMan.h
  12347. (Request.h): Removed.
  12348. (AnnounceList.h): New include.
  12349. (trackerNumTry): New variable.
  12350. (req): Removed.
  12351. (announceList): New variable.
  12352. * src/TrackerWatcherCommand.cc
  12353. (execute): Rewritten.
  12354. (createRequestCommand): New function.
  12355. * src/TrackerUpdateCommand.cc
  12356. (execute): Updated with the use of AnnounceList.
  12357. * src/AnnounceList.cc: New class.
  12358. * src/AnnounceList.h: New class.
  12359. To fix typo:
  12360. * src/prefs.h
  12361. (PREF_MAX_TRIES): max_try->max_tries
  12362. To not to decode "+" as space in URL decode:
  12363. * src/Util.cc
  12364. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12365. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12366. To add timeout to async name resolution:
  12367. * src/AbstractCommand.h
  12368. (nameResolveFinished): New function. This is not elegant way. It needs
  12369. to be more refined.
  12370. (nameResolverCheck): New variable.
  12371. * src/AbstractCommand.cc
  12372. (AbstractCommand): Added nameResolverCheck.
  12373. (execute): Added the check whether the name resolution has finished.
  12374. (setNameResolverCheck): Set nameResolverCheck to true.
  12375. (disableNameResolverCheck): Set nameResolverCheck to false.
  12376. (nameResolverFinished): New function.
  12377. * src/FtpInitiateConnectionCommand.h
  12378. (nameResolverFinished): New function.
  12379. * src/FtpInitiateConnectionCommand.cc
  12380. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12381. * src/HttpInitiateConnectionCommand.h
  12382. (nameResolverFinished): New function.
  12383. * src/HttpInitiateConnectionCommand.cc
  12384. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12385. * src/prefs.h
  12386. (PREF_DNS_TIMEOUT): New definition.
  12387. * src/main.cc
  12388. (main): Added PREF_DNS_TIMEOUT.
  12389. To add the support for a non-compact response from a tracker:
  12390. * src/PeerListProcessor.h: New class.
  12391. * src/DefaultPeerListProcessor.h: New class.
  12392. * src/DefaultPeerListProcessor.cc: New class.
  12393. * src/CompactPeerListProcessor.h: New class.
  12394. * src/CompactPeerListProcessor.cc: New class.
  12395. * src/DelegatingPeerListProcessor.h: New class.
  12396. * src/DelegatingPeerListProcessor.cc: New class.
  12397. * src/TorrentMan.cc
  12398. (addPeer): New function(overload).
  12399. (addPeer): Delete unused peers only when new peer is added.
  12400. * src/TorrentMan.h
  12401. (PeerListProcessor.h): Included.
  12402. (Peers): Removed.
  12403. (addPeer): New function(overload).
  12404. * src/TrackerUpdateCommand.cc
  12405. (netinet/in.h): Removed.
  12406. (DelegatingPeerListProcessor.h): Included.
  12407. (execute): Updated to use DelegatingPeerListProcessor.
  12408. To fix the memory leak in TorrentMan::peers:
  12409. * src/PeerAbstractCommand.cc
  12410. (onAbort): Added peer->resetStatus().
  12411. * src/Peer.h
  12412. (resetStatus): Made public.
  12413. To improve the precision of the speed calculation:
  12414. * src/SpeedCalc.h
  12415. (nextInterval): New variable.
  12416. * src/SpeedCalc.cc
  12417. (reset): Added nextInterval.
  12418. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12419. (changeSw): Set nextInterval to 15 seconds relative to the current
  12420. instant time.
  12421. * src/main.cc
  12422. (showVersion): Updated.
  12423. (showUsage): Updated.
  12424. * Release 0.8.1
  12425. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12426. * src/main.cc
  12427. (showUsage): Commented out --min-segment-size option.
  12428. (main): Commented out --min-segment-size option.
  12429. * Release 0.8.0
  12430. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12431. * src/*.{h,cc}:
  12432. Added an exception to the license which allows linking with OpenSSL.
  12433. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12434. * src/AbstractCommand.cc
  12435. (execute): Check whether the download has finished before checking
  12436. socket status.
  12437. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12438. Do not exit even if no segment is available.
  12439. * src/prefs.h
  12440. (PREF_STARTUP_IDLE_TIME): New definition.
  12441. * src/PeerInteractionCommand.cc
  12442. (executeInternal): Removed max speed limit. Because it performs bad.
  12443. (receiveMessages): Added max speed limit. This was better than above,
  12444. but still a little bit to be desired. Sometimes the download speed
  12445. became much faster than I specified.
  12446. * src/SpeedCalc.h
  12447. (start): New variable.
  12448. (accumulatedLength): New variable.
  12449. (getAvgSpeed): New function.
  12450. * src/SpeedCalc.cc
  12451. (reset): Added start, accumulatedLength.
  12452. (update): Added calculation of an average speed.
  12453. (getAvgSpeed): New function.
  12454. * src/DownloadCommand.h
  12455. (sw): Removed.
  12456. * src/main.cc
  12457. (main): Added PREF_STARTUP_IDLE_TIME.
  12458. * src/PeerStat.h
  12459. (STATUS): Added REQUEST_IDLE.
  12460. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12461. (getAvgDownloadSpeed): New function
  12462. (requestIdle): New function.
  12463. * src/SegmentMan.h
  12464. (SegmentEntryHandle): New type definition.
  12465. (SegmentEntries): Now holds SegmentEntryHandle.
  12466. (findSlowerSegmentEntry): New funtion.
  12467. * src/SegmentMan.cc
  12468. (save): Updated according to the changes in SegmentEntries.
  12469. (read): Updated according to the changes in SegmentEntries.
  12470. (FindSegmentEntryByIndex): Updated according to the changes in
  12471. SegmentEntries.
  12472. (FindSegmentEntryByCuid): Updated according to the changes in
  12473. SegmentEntries.
  12474. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12475. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12476. Renamed uitr as itr.
  12477. (findSlowerSegmentEntry): New function.
  12478. (getSegment): Updated according to the changes in SegmentEntries.
  12479. Added the feature that cancels the segment with slow server and fast
  12480. one takes it over.
  12481. (cancelSegment): Updated according to the changes in SegmentEntries.
  12482. (getDownloadLength): Updated according to the changes in
  12483. SegmentEntries.
  12484. (init): Assigned 0 to bitfield after deleting it.
  12485. * src/DownloadCommand.cc
  12486. (STARTUP_IDLE_TIME): Removed.
  12487. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12488. * src/PeerChokeCommand.cc
  12489. (optUnchokingPeer): Updated according to the changes in Peer.
  12490. (ResetDelta): Removed.
  12491. (UploadFaster): Updated according to the changes in Peer.
  12492. (DownloadFaster): Updated according to the changes in Peer.
  12493. (execute): I clarify the meaning of "upload" and "download" here.
  12494. "upload" means the transfer from localhost to remote host.
  12495. "download" means the transfer from remote host to localhost.
  12496. Based on this rule, I swapped orderByUploadRate and
  12497. orderByDownloadRate.
  12498. * src/PeerInteractionCommand.cc
  12499. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12500. (executeInternal): Removed the argument of
  12501. peerInteraction->sendMessages().
  12502. (receiveMessages): Rewritten download speed limit.
  12503. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12504. * src/HttpResponseCommand.cc
  12505. (handleDefaultEncoding): If file size is unknown in torrent request,
  12506. do not call segmentMan->initBitfield() here.
  12507. Disabled persistent connection feature in torrent request.
  12508. * src/UrlRequestInfo.h
  12509. (UrlRequestInfo): Removed const qualifier from option.
  12510. * src/TorrentMan.h
  12511. (TransferStat): New class.
  12512. (deltaDownloadLength): Removed.
  12513. (deltaUploadLength): Removed.
  12514. (addDeltaDownloadLength): Removed.
  12515. (getDeltaDownloadLength): Removed.
  12516. (resetDeltaDownloadLength): Removed.
  12517. (addDeltaUploadLength): Removed.
  12518. (getDeltaUploadLength): Removed.
  12519. (resetDeltaUploadLength): Removed.
  12520. (addActivePeer): Added peer->activate().
  12521. (deleteActivePeer): Added peer->deactivate().
  12522. (calculateStat): New function.
  12523. * src/TorrentMan.cc
  12524. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12525. (calculateStat): New function.
  12526. * src/PeerInteraction.h
  12527. (uploadLimit): Removed.
  12528. (option): New variable.
  12529. (setUploadLimit): Removed.
  12530. (getUploadSpeed): Removed.
  12531. (sendMessages): Removed the argument "currentUploadSpeed".
  12532. * src/PeerInteraction.cc
  12533. (prefs.h): Included.
  12534. (PeerInteraction): Removed uploadLimit. Added option.
  12535. (sendMessages): Rewritten upload speed limit.
  12536. (sendHandshake): Removed the argument from sendMessages().
  12537. (sendBitfield): Removed the argument from sendMessages().
  12538. * src/PeerAbstractCommand.cc
  12539. (execute): Commented out the portion of upload limit.
  12540. (onAbort): Removed peer->resetStatus().
  12541. * src/TorrentRequestInfo.cc
  12542. (timeoutSpecified): Declared extern.
  12543. (execute): Set timeout to 180 if timeout is not specified by.
  12544. command-line.
  12545. * src/PieceMessage.cc
  12546. (receivedAction): Added peer->updateDownloadLength().
  12547. Removed peer->addPeerUpload().
  12548. Removed torrentMan->addDeltaDownloadLength().
  12549. (send): Added peer->updateUploadLength().
  12550. Removed peer->addPeerDownload().
  12551. Removed torrentMan->addDeltaUploadLength().
  12552. * src/main.cc
  12553. (timeoutSpecified): New variable.
  12554. (main): Set timeoutSpecified to false.
  12555. If the command-line option "--upload-limit" is specified, then
  12556. timeoutSpecified is set to true. This option will remain in the next
  12557. release, but be deprecated in the future release.
  12558. * src/TorrentRequestInfo.h
  12559. (TorrentRequestInfo): Removed const qualifier from op.
  12560. * src/PeerStat.h
  12561. (uploadSpeed): New variable.
  12562. (PeerStat): Added default value to cuid.
  12563. (calculateUploadSpeed): New function.
  12564. (updateUploadLength): New function.
  12565. (getMaxUploadSpeed): New function.
  12566. (getAvgUploadSpeed): New function.
  12567. (reset): Added uploadSpeed. Set status to IDLE.
  12568. * src/TorrentDownloadEngine.h
  12569. (cp): Declared as Time.
  12570. (sessionDownloadLengthArray): Removed.
  12571. (sessionUploadLengthArray): Removed.
  12572. (currentCp): Removed.
  12573. (lastCalcStat): New variable
  12574. (lastElapsed): Removed.
  12575. (sessionDownloadLength): Removed.
  12576. (calculateStat): New function.
  12577. * src/TorrentDownloadEngine.cc
  12578. (initStatistics): Removed lastElapsed, cp[],
  12579. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12580. currentCp, sessionDownloadLength.
  12581. Added cp.reset() and lastCalcStat.reset().
  12582. (calculateSpeed): Changed the name of the argument.
  12583. (calculateStatistics): Rewritten.
  12584. (calculateStat): New function.
  12585. * src/Peer.h
  12586. (PeerStat.h): Included.
  12587. (peerUpload): Removed.
  12588. (peerDownload): Removed.
  12589. (peerStat): New variable.
  12590. (sessionUploadLength): New variable.
  12591. (sessionDownloadLength): New variable.
  12592. (deltaUpload): Removed.
  12593. (deltaDownload): Removed.
  12594. (resetStatus): Made private.
  12595. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12596. Removed peerUpload, peerDownload.
  12597. (updateUploadLength): New function.
  12598. (addDeltaUpload): Removed.
  12599. (updateDownloadLength): New function.
  12600. (resetDeltaUpload): Removed.
  12601. (getDeltaUpload): Removed.
  12602. (addDeltaDownload): Removed.
  12603. (calculateUploadSpeed): New function.
  12604. (resetDeltaDownload): Removed.
  12605. (getDeltaDownload): Removed.
  12606. (calculateDownloadSpeed): New function.
  12607. (getSessionUploadLength): New function.
  12608. (getSessionDownloadLength): New function.
  12609. (activate): New function.
  12610. (deactivate): New function.
  12611. (addPeerUpload): Removed.
  12612. (setPeerUpload): Removed.
  12613. (getPeerUpload): Removed.
  12614. (addPeerDownload): Removed.
  12615. (setPeerDownload): Removed.
  12616. (getPeerDownload): Removed.
  12617. * src/Peer.cc
  12618. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12619. * src/MetalinkRequestInfo.h
  12620. (MetalinkRequestInfo): Removed const qualifier from op.
  12621. * src/RequestInfo.h
  12622. (op): Removed const qualifier.
  12623. (RequestInfo): Removed const qualifier from op.
  12624. * src/prefs.h
  12625. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12626. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12627. * src/PeerInteractionCommand.cc
  12628. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12629. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12630. * src/PeerInteraction.cc
  12631. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12632. * src/main.cc
  12633. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12634. Added the description of "--max-download-limit" option.
  12635. Removed the description of "--upload-limit" option.
  12636. Added the description of "--max-upload-limit" option.
  12637. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12638. Added "--max-download-limit" option and "--max-upload-limit" option.
  12639. Added the warning message if "--upload-limit" option is used.
  12640. * src/DownloadCommand.cc
  12641. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12642. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12643. To rewrite segment download mechanism for HTTP/FTP download.
  12644. Use BitfieldMan to manage segment download.
  12645. * src/HttpResponseCommand.h
  12646. (executeInternal): Pass the reference of segment.
  12647. * src/AbstractCommand.cc
  12648. (prepareForRetry): Call segmentMan->cancelSegment here.
  12649. (onAbort): Call segmentMan->cancelSegment here.
  12650. * src/HttpDownloadCommand.cc
  12651. (prepareForNextSegment): New function.
  12652. * src/DownloadEngineFactory.cc
  12653. (newConsoleEngine): Removed splitter.
  12654. (newTorrentConsoleEngine): Removed splitter.
  12655. * src/Request.h
  12656. (segment): Renamed from seg.
  12657. * src/FtpInitiateConnectionCommand.h
  12658. (executeInternal): Pass the reference of segment.
  12659. * src/AbstractCommand.h
  12660. (executeInternal): Pass the reference of segment.
  12661. * src/pref.h
  12662. (PREF_SEGMENT_SIZE): New definition.
  12663. * src/HttpProxyRequestCommand.h
  12664. (executeInternal): Pass the reference of segment.
  12665. * src/HttpResponseCommand.cc
  12666. (checkResponse): Allowed status 206 when a request range starts 0.
  12667. (handleDefaultEncoding): Rewritten the code related to Segment.
  12668. (handleOtherEncoding): Rewritten the code related to Segment.
  12669. * src/SegmentMan.h
  12670. (SegmentEntry): New class.
  12671. (SegmentEntries): New type definition.
  12672. (bitfield): New variable.
  12673. (usedSegmentEntries): New variable.
  12674. (onNullBitfield): New function.
  12675. (checkoutSegment): New function.
  12676. (segments): Removed.
  12677. (splitter): Removed.
  12678. (unregisterId): Removed.
  12679. (getSegment): New function(overload)
  12680. (getDownloadedSize): Removed.
  12681. (cancelSegment): New function.
  12682. (completeSegment): New function.
  12683. (initBitfield): New function.
  12684. (hasSegment): New function.
  12685. (getDownloadLength): New function.
  12686. * src/BitfieldMan.h
  12687. (getStartIndex): New function.
  12688. (getEndIndex): New function.
  12689. (getMissingUnusedIndex): New function(overload).
  12690. (getSparseMissingUnusedIndex): New function.
  12691. * src/BitfieldMan.cc
  12692. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12693. (getMissingUnusedIndex): New function(overload).
  12694. (Range): New class.
  12695. (getStartIndex): New function.
  12696. (getEndIndex): New function.
  12697. (getSparseMissingUnusedIndex): New function.
  12698. (isBitSetInternal): Return false if the given index is less than 0.
  12699. * src/HttpInitiateConnectionCommand.h
  12700. (executeInternal): Pass the reference of segment.
  12701. * src/FtpNegotiateCommand.h
  12702. (executeInternal): Pass the reference of segment.
  12703. * src/FtpNegotiateCommand.cc
  12704. (recvSize): Initialize bitfield here.
  12705. * src/FtpTunnelResponseCommand.h
  12706. (executeInternal): Pass the reference of segment.
  12707. * src/HttpConnection.cc
  12708. (createRequest): Rewritten range header processing.
  12709. * src/DownloadCommand.h
  12710. (executeInternal): Pass the reference of segment.
  12711. (prepareForRetry): Removed.
  12712. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12713. function.
  12714. * src/main.cc
  12715. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12716. * src/SegmentMan.cc
  12717. (SegmentMan): Added bitfield. Removed splitter.
  12718. (~SegmentMan): Added bitfield. Removed splitter.
  12719. (unregisterId): Removed.
  12720. (getSegment): Rewritten.
  12721. (updateSegment): Rewritten.
  12722. (save): Rewritten.
  12723. (read): Rewritten.
  12724. (finished): Rewritten.
  12725. (getDownloadedSize): Removed.
  12726. (initBitfield): New function.
  12727. (FindSegmentEntryByIndex): New function object.
  12728. (FindSegmentEntryByCuid): New function object.
  12729. (checkoutSegment): New function.
  12730. (onNullBitfield): New function.
  12731. (getSegment): New function(overload).
  12732. (CancelSegment): New function object.
  12733. (cancelSegment): New function.
  12734. (completeSegment): New function.
  12735. (hasSegment): New function.
  12736. (getDownloadLength): New function.
  12737. * src/FtpInitiateConnectionCommand.cc
  12738. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12739. * src/Segment.h: Rewritten.
  12740. * src/Segment.cc (operator<<): New function.
  12741. * src/HttpDownloadCommand.h
  12742. (prepareForNextSegment): New function.
  12743. * src/Request.cc
  12744. (resetUrl): Made segment null.
  12745. * src/DownloadEngine.cc
  12746. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12747. * src/HttpProxyRequestCommand.h
  12748. (executeInternal): Pass the reference of segment.
  12749. * src/DownloadCommand.cc
  12750. (executeInternal): Rewritten the code related to Segment.
  12751. (prepareForRetry): Removed.
  12752. (prepareForNextSegment): Rewritten.
  12753. * src/FtpTunnelResponseCommand.h
  12754. (executeInternal): Pass the reference of segment.
  12755. To add HTTP 1.1 persistent connection support(experimental)
  12756. * src/HttpRequestCommand.cc
  12757. (executeInternal): Disable keep alive if it is disabled by
  12758. configuration.
  12759. * src/Request.h
  12760. (keepAlive): New variable.
  12761. (isKeepAlive): New function.
  12762. (setKeepAlive): New function.
  12763. * src/pref.h
  12764. (PREF_HTTP_KEEP_ALIVE): New definition.
  12765. * src/HttpResponseCommand.cc
  12766. (executeInternal): Check the remote server supports keep alive.
  12767. * src/HttpConnection.cc
  12768. (createRequest): Send "Connection: close" only if keep alive is
  12769. disabled.
  12770. * src/main.cc
  12771. (main):
  12772. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12773. To add max download speed limit:
  12774. * src/pref.h
  12775. (PREF_MAX_SPEED_LIMIT): New definition.
  12776. * src/PeerInteractionCommand.cc
  12777. (executeInternal): Added max download speed limit. Not tested yet.
  12778. * src/SegmentMan.h
  12779. (PeerStats): New type definition.
  12780. (peerStats): New variable.
  12781. (registerPeerStat): New function.
  12782. (FindPeerStat): New function object.
  12783. (getPeerStat): New function.
  12784. (calculateDownloadSpeed): New function.
  12785. * src/SpeedCalc.h: New class.
  12786. * src/SpeedCalc.cc: New class.
  12787. * src/main.cc
  12788. (main):
  12789. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12790. download speed is not restricted).
  12791. * src/PeerStat.h: New class.
  12792. * src/SegmentMan.cc
  12793. (registerPeerStat): New function.
  12794. (calculateDownloadSpeed): New function.
  12795. * src/DownloadCommand.cc
  12796. (STARTUP_IDLE_TIME): New definition.
  12797. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12798. downloadStart.
  12799. (~DownloadCommand): Call peerStat->downloadStop.
  12800. (executeInternal): Added download speed limitter. Rewritten lowest
  12801. speed limitter.
  12802. * src/HttpConnection.cc
  12803. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12804. * src/AbstractCommand.cc
  12805. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12806. Added hostname to the error message.
  12807. * src/ConsoleDownloadEngine.cc
  12808. (calculateStatistics): Initialize psize with dlSize.
  12809. * src/PieceMessage.cc
  12810. (receivedAction): Do not call peerInteraction->abortPiece here.
  12811. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12812. * src/BitfieldMan.h
  12813. (clearAllUseBit): New function.
  12814. (setAllUseBit): New function.
  12815. * src/BitfieldMan.cc
  12816. (clearAllBit): Do not clear useBitfield here.
  12817. (clearAllUseBit): New function.
  12818. (setAllUseBit): New function.
  12819. * src/Piece.cc
  12820. (clearAllBlock): Call bitfield->clearAllUseBit().
  12821. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12822. To make filename URL-decoded:
  12823. * src/HttpResponseCommand.h: Updated doc.
  12824. * src/HttpResponseCommand.cc
  12825. (determinFilename): Made filename URL-decoded.
  12826. * src/FtpInitiateConnectionCommand.cc
  12827. (executeInternal): Made filename URL-decoded.
  12828. * src/Util.h (urldecode): New function.
  12829. * src/Util.cc (urldecode): New function.
  12830. To fix a bug that caused assertion failure in ares_strerror:
  12831. * src/NameResolver.cc (callback): Fixed the bug.
  12832. * Release 0.7.3
  12833. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12834. To add --seed-time and --seed-ratio command-line option:
  12835. * src/Option.h (getAsDouble): New function.
  12836. * src/Option.cc (getAsDouble): New function.
  12837. * src/SeedCheckCommand.h: New class.
  12838. * src/SeedCheckCommand.cc: New class.
  12839. * src/DownloadEngineFactory.cc
  12840. (SeedCheckCommand.h): Included.
  12841. (UnionSeedCriteria.h): Included.
  12842. (TimeSeedCriteria.h): Included.
  12843. (ShareRatioSeedCriteria.h): Included.
  12844. (newTorrentConsoleEngine): Added the processing of seed option.
  12845. * src/SeedCriteria.h: New class.
  12846. * src/ShareRatioSeedCriteria.h: New class.
  12847. * src/TimeSeedCriteria.h: New class.
  12848. * src/UnionSeedCriteria.h: New class.
  12849. * src/prefs.h
  12850. (PREF_SEED_TIME): New definition.
  12851. (PREF_SEED_RATIO): New definition.
  12852. * src/main.cc
  12853. (showUsage): Added --seed-time and --seed-ratio option.
  12854. (main): Added --seed-time and --seed-ratio option.
  12855. Made default log file name "/dev/null".
  12856. * src/SharedHandle.h
  12857. (SharedHandle): Copy constructor. Made it assignable from the
  12858. SharedHandle of the subclasses.
  12859. (operator=): Made it assignable from the SharedHandle of the
  12860. subclasses.
  12861. (getRefCount): New function.
  12862. To add notice log level and the switch to write log to stdout. This
  12863. switch is configurable per log level.
  12864. * src/Logger.h
  12865. (notice): New function.
  12866. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12867. constant.
  12868. * src/LogFactory.cc
  12869. (getInstance): The use of NullLogger was removed. A log message with
  12870. notice log level was made written to stdout along with log file.
  12871. * src/NullLogger.h
  12872. (notice): New function.
  12873. * src/SimpleLogger.h
  12874. (writeHeader): Added the 'file' argument.
  12875. (writeLog): Added the 'file' argument.
  12876. (writeFile): New function.
  12877. (stdoutField): New variable.
  12878. (SimpleLogger): Removed the default constructor.
  12879. (SimpleLogger): Made the default value of logfile 0.
  12880. (debug): Added 'virtual' keyword.
  12881. (info): Added 'virtual' keyword.
  12882. (warn): Added 'virtual' keyword.
  12883. (error): Added 'virtual' keyword.
  12884. (notice): New function.
  12885. (setStdout): New function.
  12886. * src/SimpleLogger.cc
  12887. (WRITE_LOG): Replaced writeLog with writeFile.
  12888. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12889. (SimpleLogger): Removed the default constructor.
  12890. (setStdout): New function.
  12891. (writeLog): Added the handling of NOTICE log level.
  12892. (writeFile): New function.
  12893. (notice): New function.
  12894. * src/TorrentMan.h: Updated doc.
  12895. * src/BitfieldMan.h: Updated doc.
  12896. * src/TrackerWatcherCommand.cc
  12897. (execute): Return true if error occurred in the request to the tracker
  12898. and halt is requested.
  12899. * src/TrackerUpdateCommand.cc
  12900. (execute): Return true if error occurred in the request to the tracker
  12901. and halt is requested.
  12902. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12903. DownloadEngine:
  12904. * src/TorrentConsoleDownloadEngine.h
  12905. (onSelectiveDownloadingCompletes): Removed.
  12906. * src/TorrentConsoleDownloadEngine.cc
  12907. (onSelectiveDownloadingCompletes): Removed.
  12908. * src/TorrentDownloadEngine.h
  12909. (onEndOfRun): Added 'virtual' keyword.
  12910. (afterEachIteration): Removed.
  12911. (onSelectiveDownloadingCompletes): Removed.
  12912. * src/TorrentDownloadEngine.cc
  12913. (onEndOfRun): Removed filenameFixed.
  12914. (afterEachIteration): Removed.
  12915. * src/TorrentMan.cc
  12916. (completePiece): Call onDownloadComplete here.
  12917. (onDownloadComplete): Added 2 log messages.
  12918. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12919. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12920. * src/NameResolver.h: Added the prototype declaration of callback().
  12921. To support c-ares library:
  12922. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12923. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12924. * src/FtpInitiateConnectionCommand.h:
  12925. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12926. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12927. * src/HttpInitiateConnectionCommand.h:
  12928. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12929. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12930. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12931. #1542285 by tizianomueller)
  12932. * src/HttpInitiateConnectionCommand.cc:
  12933. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12934. * src/FtpInitiateConnectionCommand.cc:
  12935. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12936. * src/DownloadEngine.h:
  12937. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12938. * src/DownloadEngine.cc:
  12939. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12940. To fix the bug that causes compilation failure with metalink-support
  12941. disabled(bug#1543587):
  12942. * src/main.cc: Fixed with the patch by tizianomueller.
  12943. * Release 0.7.2
  12944. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12945. * src/main.cc
  12946. (main): Added a message to inform users that aria2 is starting to
  12947. verify checksum.
  12948. * src/RequestInfo.cc
  12949. (printDownloadAbortMessage): Added a message to inform users that
  12950. transfer can be resumed.
  12951. * src/FeatureConfig.cc
  12952. (FEATURE_ASYNC_DNS): New definition.
  12953. (FeatureConfig): Added aysnc DNS entry.
  12954. To replace CommandUuid with Command* in SocketEntry and
  12955. NameResolverEntry:
  12956. * src/DownloadEngine.h
  12957. (CommandUuids): Removed.
  12958. (SocketEntry::commandUuid): Removed.
  12959. (SocketEntry::command): New variable.
  12960. (SocketEntry::SocketEntry): Updated.
  12961. (SocketEntry::operator==): Updated.
  12962. (NameResolverEntry::commandUuid): Removed.
  12963. (NameResolverEntry::command): New variable.
  12964. (NameResolverEntry::NameResolverEntry): Updated.
  12965. (NameResolverEntry::operator==): Updated.
  12966. (waitData): Changed the argument type.
  12967. (addSocketForReadCheck): Changed the argument type.
  12968. (deleteSocketForReadCheck): Changed the argument type.
  12969. (addSocketForWriteCheck): Changed the argument type.
  12970. (deleteSocketForWriteCheck): Changed the argument type.
  12971. (addNameResolverCheck): Changed the argument type.
  12972. (deleteNameResolverCheck): Changed the argument type.
  12973. * src/DownloadEngine.cc
  12974. (FindCommand): Removed.
  12975. (run): Removed activeUuid. Added activeCommands instead.
  12976. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12977. (AccumulateActiveCommand): New function object.
  12978. (waitData): Use AccumulateActiveCommand.
  12979. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12980. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12981. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12982. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12983. (addNameResolverCheck): Use Command instead of CommandUuid.
  12984. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12985. * src/AbstractCommand.cc
  12986. (disableReadCheckSocket): Updated according to the changes in
  12987. DownloadEngine.
  12988. (setReadCheckSocket): Updated according to the changes in
  12989. DownloadEngine.
  12990. (disableWriteCheckSocket): Updated according to the changes in
  12991. DownloadEngine.
  12992. (setWriteCheckSocket): Updated according to the changes in
  12993. DownloadEngine.
  12994. (setNameResolverCheck): Updated according to the changes in
  12995. DownloadEngine.
  12996. (disableNameResolverCheck): Updated according to the changes in
  12997. DownloadEngine.
  12998. * src/AbstractCommand.cc
  12999. (disableReadCheckSocket): Updated according to the changes in
  13000. DownloadEngine.
  13001. (setReadCheckSocket): Updated according to the changes in
  13002. DownloadEngine.
  13003. (disableWriteCheckSocket): Updated according to the changes in
  13004. DownloadEngine.
  13005. (setWriteCheckSocket): Updated according to the changes in
  13006. DownloadEngine.
  13007. * release 0.7.1
  13008. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13009. To handle the case where some BitTorrent tracker requires all letters
  13010. except for [A-Za-z0-9] is URL encoded.
  13011. * src/Util.h
  13012. (torrentUrlencode): New function.
  13013. * src/Util.cc
  13014. (ctype.h): Included.
  13015. (torrentUrlencode): New function.
  13016. * src/TrackerWatcherCommand.cc
  13017. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13018. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13019. To add asynchronous DNS support(libares):
  13020. * src/AbstractCommand.h
  13021. (setNameResolverCheck): New function.
  13022. (disableNameResolverCheck): New function
  13023. (resolveHostname): New function.
  13024. * src/AbstractCommand.cc
  13025. (setNameResolverCheck): New function.
  13026. (disableNameResolverCheck): New function
  13027. (resolveHostname): New function.
  13028. * src/FtpInitiateConnectionCommand.h
  13029. (nameResolver): New function.
  13030. * src/FtpInitiateConnectionCommand.cc
  13031. (Util.h): Included.
  13032. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13033. disableWriteCheckSocket.
  13034. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13035. (executeInternal): Added async DNS support.
  13036. * src/HttpInitiateConnectionCommand.h
  13037. (nameResolver): New function.
  13038. * src/HttpInitiateConnectionCommand.cc
  13039. (DlRetryEx.h): Included.
  13040. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13041. disableWriteCheckSocket.
  13042. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13043. (executeInternal): Added async DNS support.
  13044. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13045. by extern "C" declaration.
  13046. * src/NameResolver.cc: New class.
  13047. * src/Util.h:
  13048. (isNumberAndDotsNotation): New function
  13049. * src/Util.cc
  13050. (isNumberAndDotsNotation): New function.
  13051. * src/DownloadEngine.h
  13052. (NameResolver.h): Included.
  13053. (NameResolverEntry): New class.
  13054. (NameResolverEntries): New type definition.
  13055. (addNameResolverCheck): New function.
  13056. (deleteNameResolverCheck): New function.
  13057. * src/DownloadEngine.cc
  13058. (run): Initialize cp with 0.
  13059. (SetDescriptor::operator()): Added for NameResolverEntry.
  13060. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13061. (waitData): Check nameResolver entries.
  13062. (updateFdSet): Update fds in nameResolver entries.
  13063. (addNameResolverCheck): New function.
  13064. (deleteNameResolverCheck): new function.
  13065. * src/PeerInteractionCommand.cc
  13066. (executeInternal): Fixed wrong socket handling.
  13067. * src/main.cc
  13068. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13069. * src/Util.cc
  13070. (fileChecksum): Removed the call to ctx.digestReset().
  13071. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13072. * po/ru.po: Azamat sent me Russian translation.
  13073. * src/FtpNegotiateCommand.cc
  13074. (recvGreeting): Call disableWriteCheckSocket just after
  13075. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13076. (recvRetr): Recognized status code 125 as a acceptable response code.
  13077. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13078. case-insesitive filesystem(BUG#1531057).
  13079. * src/Time.h: Renamed as TimeA2.h.
  13080. * src/Time.cc: Renamed as TimeA2.cc.
  13081. * src/TimeA2.h: New class.
  13082. * src/TimeA2.cc: New class.
  13083. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13084. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13085. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13086. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13087. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13088. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13089. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13090. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13091. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13092. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13093. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13094. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13095. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13096. * release 0.7.0
  13097. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13098. * src/PeerChokeCommand.h
  13099. (PeerChokeCommand): Rearranged the arguments.
  13100. * src/PeerChokeCommand.cc
  13101. (PeerChokeCommand): Rearranged the arguments.
  13102. * src/MetalinkEntry.h
  13103. (Checksum.h): Included.
  13104. (md5): Removed.
  13105. (sha1): Removed.
  13106. (checksum): New variable.
  13107. (operator=): Updated.
  13108. (check): Removed.
  13109. * src/prefs.h
  13110. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13111. (PREF_FOLLOW_TORRENT): New definition.
  13112. (PREF_SELECT_FILE): New definition.
  13113. (PREF_FOLLOW_METALINK): New definition.
  13114. * src/MetalinkResource.h
  13115. (TYPE_HTTPS): Added to enum TYPE.
  13116. * src/TorrentMan.cc
  13117. (~TorrentMan): Rewritten.
  13118. * src/MultiDiskWriter.cc
  13119. (MultiDiskAdaptor): Updated according to the changes in
  13120. MessageDigestContext.
  13121. (~MultiDiskAdaptor): Updated according to the changes in
  13122. MessageDigestContext.
  13123. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13124. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13125. * src/Util.h
  13126. (fileChecksum): Updated according to the changes in
  13127. MessageDigestContext.
  13128. * src/Util.cc
  13129. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13130. (fileChecksum): Updated according to the changes in
  13131. MessageDigestContext.
  13132. * src/messageDigest.h: Rewritten.
  13133. * src/MetalinkEntry.cc
  13134. (check): Removed.
  13135. (Supported): Updated.
  13136. (dropUnsupportedResource): Fixed a memory leak.
  13137. * src/ShaVisitor.cc
  13138. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13139. (~ShaVisitor): Updated according to the changes in
  13140. MessageDigestContext.
  13141. (visit): Updated according to the changes in MessageDigestContext.
  13142. * src/main.cc
  13143. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13144. command-line option added.
  13145. * src/DownloadEngine.h
  13146. (SocketEntry): New class.
  13147. (SocketEntries): New definition.
  13148. (PairFind): Removed.
  13149. (SockCmdMap): Removed.
  13150. * src/DownloadEngine.cc
  13151. (DownloadEngine): Rewritten.
  13152. (~DownloadEngine): Rewritten.
  13153. (run): Renamed activeCommandUuids as activeUuids.
  13154. (SetDescriptor): Rewritten.
  13155. (AccumulateActiveCommandUuid): Removed.
  13156. (AccumulateActiveUuid): New function object.
  13157. (waitData): Rewritten.
  13158. (updateFdSet): Rewritten.
  13159. (addSocket): Rewritten.
  13160. (deleteSocket): Rewritten.
  13161. (addSocketForReadCheck): Rewritten.
  13162. (deleteSocketForReadCheck): Rewritten.
  13163. (addSocketForWriteCheck): Rewritten.
  13164. (deleteSocketForWriteCheck): Rewritten.
  13165. * src/Xml2MetalinkProcessor.cc
  13166. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13167. * src/DownloadCommand.cc
  13168. (executeInternal): Added the check routine for lowest speed limit.
  13169. * src/AbstractDiskWriter.cc
  13170. (AbstractDiskWriter): Updated according to the changes in
  13171. MessageDigestContext.
  13172. (~AbstractDiskWriter): Updated according to the changes in
  13173. MessageDigestContext.
  13174. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13175. * src/RequestInfo.h: New class.
  13176. * src/UrlRequestInfo.h: New class.
  13177. * src/UrlRequestInfo.cc: New class.
  13178. * src/TorrentRequestInfo.h: New class.
  13179. * src/TorrentRequestInfo.cc: New class.
  13180. * src/MetalinkRequestInfo.h: New class.
  13181. * src/MetalinkRequestInfo.cc: New class.
  13182. * src/Checksum.h: New class.
  13183. * src/DownloadEngineFactory.h: New class.
  13184. * src/DownloadEngineFactory.cc: New class.
  13185. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13186. * src/Option.h
  13187. (getAsBool): New function.
  13188. * src/Option.cc
  13189. (prefs.h): Included.
  13190. (defined): 0-length value is now recognized as undefined.
  13191. (getAsInt): Rewritten.
  13192. (getAsLLInt): Rewritten.
  13193. (getAsBool): New function.
  13194. * src/FeatureConfig.h: Rewritten.
  13195. * src/FeatureConfig.cc: Rewritten.
  13196. * src/prefs.h
  13197. (PREF_STDOUT_LOG): New definition.
  13198. (PREF_LOG): New definition.
  13199. (PREF_DIR): New definition.
  13200. (PREF_OUT): New definition.
  13201. (PREF_SPLIT): New definition.
  13202. (PREF_DAEMON): New definition.
  13203. (PREF_REFERER): New definition.
  13204. (PREF_TORRENT_FILE): New definition.
  13205. (PREF_LISTEN_PORT): New definition.
  13206. (PREF_METALINK_FILE): New definition.
  13207. (PREF_METALINK_VERSION): New definition.
  13208. (PREF_METALINK_LANGUAGE): New definition.
  13209. (PREF_METALINK_OS): New definition.
  13210. (PREF_METALINK_SERVERS): New definition.
  13211. * src/main.cc
  13212. (main): Following command-line parameters are now put into Option
  13213. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13214. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13215. metalinkLanguage, metalinkOs, metalinkServers
  13216. To fix the bug that aria2 can not handle http response header properly.
  13217. * src/HttpHeader.cc
  13218. (put): Made name lowercased.
  13219. (defined): Made name lowercased.
  13220. (getFirst): Made name lowercased.
  13221. (get): Made name lowercased.
  13222. (getFirstAsInt): Rewritten.
  13223. (getFirstAsLLInt): Rewritten.
  13224. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13225. * src/TorrentMan.h:
  13226. (advertisePiece): Updated doc.
  13227. (getAdvertisedPieceIndexes): Updated doc.
  13228. (removeAdvertisedPiece); New function.
  13229. * src/TorrentMan.cc
  13230. (FindElapsedHave): New function object.
  13231. (removeAdvertisedPiece): New function.
  13232. * src/HaveEraseCommand.h: New class.
  13233. * src/HaveEraseCommand.cc: New class.
  13234. * src/FeatureConfig.h: New class.
  13235. * src/FeatureConfig.cc: New class.
  13236. * src/Request.h
  13237. (defaultPorts): Removed.
  13238. * src/Request.cc
  13239. (FeatureConfig.h): Included.
  13240. (Request): Removed the statements related to defaultPorts.
  13241. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13242. A default port number is now retrieved from FeatureConfig.
  13243. * src/main.cc
  13244. (HaveEraseCommand.h): Included.
  13245. (showVersion): Added the output of feature list.
  13246. (main): Added HaveEraseCommand to command queue in BitTorrent
  13247. downloading.
  13248. * src/PeerInteractionCommand.h
  13249. (chokeCheckPoint): Commented out.
  13250. (periodicExecPoint): New variable.
  13251. * src/PeerInteractionCommand.cc
  13252. (executeInternal): Following methods are now called in at least every
  13253. 0.5 seconds to reduce CPU usage:
  13254. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13255. checkHave(), sendKeepAlive().
  13256. (checkLongTimePeerChoking): Commented out.
  13257. * src/BitfieldMan.h
  13258. (getNthBitIndex): Changed the method signature.
  13259. (getMissingIndexRandomly): Changed the method signature.
  13260. * src/BitfieldMan.cc
  13261. (getNthBitIndex): Rewritten
  13262. (getMissingIndexRandomly): Rewritten.
  13263. (hasMissingPiece): Rewritten.
  13264. (getMissingIndex): Refactored.
  13265. (getMissingUnusedIndex); Refactored.
  13266. (getMissingIndex): Refactored.
  13267. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13268. * src/PeerMessage.h
  13269. (Piece.h): Included.
  13270. (SharedHandle.h): Included.
  13271. (invalidate): New variable.
  13272. (uploading): New variable.
  13273. (isInvalidate): New function.
  13274. (isUploading): New function.
  13275. (onPush): New function.
  13276. (onChoked): New function.
  13277. (onCanceled): New function.
  13278. (onAbortPiece): New function.
  13279. (PeerMessageHandle): New type definition.
  13280. * src/PeerMessage.cc
  13281. (PeerMessage): Added the initialization for invalidate and uploading.
  13282. * src/CancelMessage.h
  13283. (CancelMessage): Rewritten.
  13284. * src/RejectMessage.h
  13285. (RejectMessage): Rewritten.
  13286. * src/Metalinker.h
  13287. (operator=): Defined.
  13288. * src/MetaEntry.h
  13289. (operator=): Defined.
  13290. * src/MetalinkResource.h
  13291. (operator=): Defined.
  13292. * src/AllowedFastMessage.h
  13293. (AllowedFastMessage): Rewritten.
  13294. * src/HandshakeMessage.h
  13295. (HandshakeMessage): New function(overload).
  13296. * src/HandshakeMessage.cc
  13297. (HandshakeMessage): Rewritten.
  13298. (init): New function.
  13299. * src/HaveMessage.h
  13300. (HaveMessage): Rewritten.
  13301. * src/Time.h
  13302. (operator=): Defined the function body here.
  13303. * src/Time.cc
  13304. (operator=): Removed.
  13305. * src/SocketCore.h
  13306. (operator==): Defined here.
  13307. (operator!=): Defined here.
  13308. (operator<): Defined here.
  13309. * src/SocketCore.cc
  13310. (operator==): Removed.
  13311. (operator<): Removed.
  13312. * src/BitfieldMan.h
  13313. (operator=): Defined the function body here.
  13314. * src/BitfieldMan.cc
  13315. (operator=): Removed.
  13316. * src/TorrentMan.h
  13317. (deleteErrorPeer): Removed.
  13318. (deleteUnusedPeer); New function.
  13319. * src/TorrentMan.cc
  13320. (addPeer): Call deleteUnusedPeer.
  13321. (deleteErrorPeer): Removed.
  13322. (deleteUnusedPeer): New function.
  13323. * src/PeerAbstractCommand.h
  13324. (setNoCheck): New function.
  13325. (noCheck): New variable.
  13326. * src/PeerAbstractCommand.cc
  13327. (PeerAbstractCommand): Added the initialization of noCheck.
  13328. (execute): Added a check for noCheck.
  13329. (setNoCheck): New function.
  13330. * src/Util.h
  13331. (stdio.h): Included.
  13332. * src/Util.cc
  13333. (unistd.h): Included.
  13334. * src/DefaultDiskWriter.cc
  13335. (unistd.h): Included.
  13336. * src/Peer.h
  13337. (operator==): Defined the function body here.
  13338. (operator!=): Defined the function body here.
  13339. * src/Peer.cc
  13340. (operator==): Removed.
  13341. (operator!=): Removed.
  13342. * src/Piece.h
  13343. (Piece): Defined the function body here(copy constructor).
  13344. (operator=): Defined the function body here.
  13345. (operator==): Defined the function body here.
  13346. * src/Piece.cc
  13347. (Piece): Removed(copy constructor).
  13348. (operator=): Removed.
  13349. (operator==): Removed.
  13350. * src/PeerMessageUtil.h
  13351. (ChokeMessage.h): Removed.
  13352. (UnchokeMessage.h): Removed.
  13353. (InterestedMessage.h): Removed.
  13354. (NotInterestedMessage.h): Removed.
  13355. (HaveMessage.h): Removed.
  13356. (BitfieldMessage.h): Removed.
  13357. (RequestMessage.h): Removed.
  13358. (CancelMessage.h): Removed.
  13359. (PieceMessage.h): Removed.
  13360. (HandshakeMessage.h): Removed.
  13361. (KeepAliveMessage.h): Removed.
  13362. (PortMessage.h): Removed.
  13363. (HaveAllMessage.h): Removed.
  13364. (HaveNoneMessage.h): Removed.
  13365. (PeerConnection.h): Removed.
  13366. (HandshakeMessage.h): Included.
  13367. * src/BitfieldMessage.h
  13368. (init): New function.
  13369. (BitfieldMessage): Rewritten.
  13370. (BitfieldMessage): New function(overload).
  13371. * src/RequestSlot.h
  13372. (operator=): Defined the function body here.
  13373. (operator==): Defined the function body here.
  13374. * src/RequestSlot.cc
  13375. (operator=): Removed.
  13376. (operator==): Removed.
  13377. To remove the dependency on the PeerMessage subclass from
  13378. PeerInteraction:
  13379. * src/PeerMessageFactory.h: New class.
  13380. * src/PeerMessageFactory.cc: New class.
  13381. * src/SimplePeerMessage.cc
  13382. (send): If invalidate is true then do nothing.
  13383. * src/PeerInteractionCommand.cc
  13384. (HandshakeMessage.h): Included.
  13385. (KeepAliveMessage.h): Included.
  13386. (ChokeMessage.h): Included.
  13387. (UnchokeMessage.h): Included.
  13388. (HaveMessage.h): Included.
  13389. (executeInternal): Call setNoCheck().
  13390. Removed setWriteCheckSocket(socket).
  13391. * src/PeerInteraction.h
  13392. (ChokeMessage.h): Removed.
  13393. (UnchokeMessage.h): Removed.
  13394. (InterestedMessage.h): Removed.
  13395. (NotInterestedMessage.h): Removed.
  13396. (HaveMessage.h): Removed.
  13397. (BitfieldMessage.h): Removed.
  13398. (RequestMessage.h): Removed.
  13399. (CancelMessage.h): Removed.
  13400. (PieceMessage.h): Removed.
  13401. (HandshakeMessage.h): Removed.
  13402. (KeepAliveMessage.h): Removed.
  13403. (PortMessage.h): Removed.
  13404. (HaveAllMessage.h): Removed.
  13405. (HaveNoneMessage.h): Removed.
  13406. (RejectMessage.h): Removed.
  13407. (AllowedFastMessage.h): Removed.
  13408. (SuggestPieceMessage.h): Removed.
  13409. (PeerMessageFactory.h): Included.
  13410. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13411. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13412. (PeerMessageFactory): New variable.
  13413. (createPeerMessage): Removed.
  13414. (createHandshakeMessage): Removed.
  13415. (setPeerMessageCommonProperty): Removed.
  13416. (addRequestSlot): New function.
  13417. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13418. (getPeerMessageFactory): New function.
  13419. (createRequestMessage): Removed.
  13420. (createCancelMessage): Removed.
  13421. (createPieceMessage): Removed.
  13422. (createHaveMessage): Removed.
  13423. (createChokeMessage): Removed.
  13424. (createUnchokeMessage): Removed.
  13425. (createInterestedMessage): Removed.
  13426. (createNotInterestedMessage): Removed.
  13427. (createBitfieldMessage): Removed.
  13428. (createKeepAliveMessage): Removed.
  13429. (createHaveAllMessage): Removed.
  13430. (createHaveNoneMessage): Removed.
  13431. (createRejectMessage): Removed.
  13432. (createAllowedFastMessage): Removed.
  13433. * src/PeerInteraction.cc
  13434. (PeerInteraction): Allocate PeerMessageFactory here.
  13435. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13436. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13437. PieceMessage::ID.
  13438. (addMessage): Simplified by using PeerMessage::onPush().
  13439. (addRequestSlot): New function.
  13440. (rejectAllPieceMessageInQueue): Simplified by using
  13441. PeerMessage::onChoked().
  13442. (rejectPieceMessageInQueue): Simplified by using
  13443. PeerMessage::onCanceled().
  13444. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13445. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13446. (createHandshakeMessage): Removed.
  13447. (createPeerMessage): Removed.
  13448. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13449. (setPeerMessageCommonProperty): Removed.
  13450. (createRequestMessage): Removed.
  13451. (createCancelMessage): Removed.
  13452. (createPieceMessage): Removed.
  13453. (createHaveMessage): Removed.
  13454. (createChokeMessage): Removed.
  13455. (createUnchokeMessage): Removed.
  13456. (createInterestedMessage): Removed.
  13457. (createNotInterestedMessage): Removed.
  13458. (createBitfieldMessage): Removed.
  13459. (createKeepAliveMessage): Removed.
  13460. (createHaveAllMessage): Removed.
  13461. (createHaveNoneMessage): Removed.
  13462. (createRejectMessage): Removed.
  13463. (createAllowedFastMessage): Removed.
  13464. * src/PieceMessage.h
  13465. (createRejectMessage): New function.
  13466. (PieceMessage): Rewritten.
  13467. (onChoked): New function.
  13468. (onCanceled): New function.
  13469. * src/PieceMessage.cc
  13470. (send): If invalidate is true then do nothing, just return.
  13471. (createRejectMessage): New function.
  13472. (onChoked): New function.
  13473. (onCanceled): New function.
  13474. * src/RequestMessage.h
  13475. (RequestMessage): Rewritten.
  13476. (onPush): New function.
  13477. (onAbortPiece): New function.
  13478. * src/RequestMessage.cc
  13479. (onPush): New function.
  13480. (onAbortPiece): New function.
  13481. Update fd_set when a socket is added or deleted in order to improve
  13482. performance:
  13483. * src/DownloadEngine.h
  13484. (rfdset): New variable.
  13485. (wfdset): New variable.
  13486. (updateFdSet): New function.
  13487. * src/DownloadEngine.cc
  13488. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13489. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13490. (waitData): Copy rfdset and wfdset.
  13491. (updateFdSet): New function.
  13492. (addSocket): Call updateFdSet.
  13493. (deleteSocket): Call updateFdSet.
  13494. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13495. To add the support for Metalink3.0 backward compatible links:
  13496. * src/Request.h
  13497. (SAFE_CHARS): Added '#'.
  13498. (METALINK_MARK): New definition.
  13499. * src/Request.cc
  13500. (parseUrl): Added the support for Metalink3.0 backward compatible
  13501. links.
  13502. etc
  13503. * src/PeerInteraction.cc
  13504. (MsgPushBack): Removed.
  13505. (sendMessages): Use STL copy and back_inserter.
  13506. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13507. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13508. * src/TorrentMan.h
  13509. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13510. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13511. * src/SharedHandle.h: New class.
  13512. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13513. * src/HttpResponseCommand.h
  13514. (HttpResponseCommand): Wrapped Socket.
  13515. * src/SocketCore.h
  13516. (operator==): New function.
  13517. (operator!=): New function.
  13518. (operator<): New function.
  13519. (getSockfd): New function.
  13520. (isOpen): New function.
  13521. (writeData): New function.
  13522. * src/SocketCore.cc
  13523. (operator==): New function.
  13524. (operator!=): New function.
  13525. (operator<): New function.
  13526. * src/AbstractCommand.h
  13527. (socket): Changed its type to SocketHandle.
  13528. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13529. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13530. (disableReadCheckSocket): New function.
  13531. (disableWriteCheckSocket): New function.
  13532. (readCheckTarget): Changed its type to SocketHandle.
  13533. (writeCheckTarget): Changed its type to SocketHandle.
  13534. (AbstractCommand): Replaced Socket with SocketHandle.
  13535. * src/AbstractCommand.cc
  13536. (AbstractCommand): Replaced Socket with SocketHandle.
  13537. (~AbstractCommand): Removed the deallocation for Socket object.
  13538. (disableReadCheckSocket): New function.
  13539. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13540. (disableWriteCheckSocket): New function.
  13541. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13542. * src/HttpDownloadCommand.cc
  13543. (DownloadCommand): Replaced Socket with SocketHandle.
  13544. * src/PeerAbstractCommand.h
  13545. (socket): Changed its type to SocketHandle.
  13546. (peer): Changed its type to PeerHandle.
  13547. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13548. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13549. (disableReadCheckSocket): New function.
  13550. (disableWriteCheckSocket): New function.
  13551. (readCheckTarget): Changed its type to SocketHandle.
  13552. (writeCheckTarget): Changed its type to SocketHandle.
  13553. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13554. Replaced Peer with PeerHandle.
  13555. * src/HttpRequestCommand.cc
  13556. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13557. Use disableReadCheckSocket.
  13558. * src/PeerInitiateConnectionCommand.h
  13559. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13560. * src/PeerChokeCommand.cc
  13561. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13562. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13563. (execute): Use PeerHandle.
  13564. * src/PeerConnection.h
  13565. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13566. (socket): Changed its type to SocketHandle.
  13567. (PeerConnection): Replaced Socket with SocketHandle.
  13568. * src/PeerConnection.cc
  13569. (PeerConnection): Replaced Socket with SocketHandle.
  13570. * src/PeerInteractionCommand.h
  13571. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13572. Replaced Peer with PeerHandle.
  13573. * src/PeerInteractionCommand.cc
  13574. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13575. Replaced Peer with PeerHandle.
  13576. (executeInternal): Use disableWriteCheckSocket.
  13577. Use HandshakeMessageHandle.
  13578. (receiveMessages): Use PeerMessageHandle.
  13579. (prepareForNextPeer): Use PeerHandle.
  13580. * src/HttpProxyRequestCommand.h
  13581. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13582. * src/HttpResponseCommand.cc
  13583. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13584. * src/TorrentMan.cc
  13585. (nullPeer): Added external reference.
  13586. (~TorrentMan): Removed the deallocation of the elements of peers.
  13587. (addPeer): Rewritten.
  13588. (isPeerAvailable): Use nullPeer.
  13589. (deleteOldpeers): Replaced with deleteErrorPeer.
  13590. (deleteErrorPeer): New function.
  13591. (getPeer): Use PeerHandle and nullPeer.
  13592. (hasMissingPiece): Replaced Peer with PeerHandle.
  13593. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13594. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13595. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13596. (getMissingPiece): Replaced Peer with PeerHandle.
  13597. * src/FtpNegotiateCommand.cc
  13598. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13599. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13600. (recvGreeting): Use disableWriteCheckSocket.
  13601. (recvPasv): Removed the allocation of Socket.
  13602. Use disableReadCheckSocket.
  13603. (sendRestPasv): Use disableWriteCheckSocket.
  13604. (recvRetr): Changed assertion.
  13605. * src/PeerInteraction.h
  13606. (SharedHandle.h): Included SharedHandle.h.
  13607. (PeerMessageHandle): New type definition.
  13608. (HandshakeMessageHandle): New type definition.
  13609. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13610. (peer): Changed its type to PeerHandle.
  13611. (createHandshakeMessage): Replaced HandshakeMessage with
  13612. HandshakeMessageHandle.
  13613. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13614. (PeerInteraction): Replaced Peer with PeerHandle.
  13615. Replaced Socket with SocketHandle.
  13616. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13617. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13618. (receiveHandshake): Replaced HandshakeMessage with
  13619. HandshakeMessageHandle.
  13620. * src/PeerInteraction.cc
  13621. (PeerInteraction): Replaced Peer with PeerHandle.
  13622. Replaced Socket with SocketHandle.
  13623. (~PeerInteraction): Removed the deallocation of the elements of
  13624. messageQueue.
  13625. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13626. (isSendingMessageInProgress): Replaced PeerMessage with
  13627. PeerMessageHandle.
  13628. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13629. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13630. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13631. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13632. (abortPiece): Use PeerMessageHandle.
  13633. (receiveHandshake): Replaced HandshakeMessage with
  13634. HandshakeMessageHandle. Removed try-catch block.
  13635. (createHandshakeMessage): Replaced HandshakeMessage with
  13636. HandshakeMessageHandle.
  13637. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13638. Removed try-catch block.
  13639. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13640. * src/HttpProxyResponseCommand.cc
  13641. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13642. * src/FtpTunnelResponseCommand.h
  13643. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13644. * src/HttpConnection.cc
  13645. (HttpConnection): Replaced Socket with SocketHandle.
  13646. * src/PeerAbstractCommand.cc
  13647. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13648. (~PeerAbstractCommand): Removed the deallocation of socket.
  13649. Use disableReadCheckSocket, disableWriteCheckSocket.
  13650. (disableReadCheckSocket): New function.
  13651. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13652. (disableWriteCheckSocket): New function.
  13653. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13654. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13655. * src/FtpTunnelRequestCommand.cc
  13656. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13657. (~FtpTunnelRequestCommand): Corrected indentation.
  13658. * src/DownloadCommand.h
  13659. (DownloadCommand): Replaced Socket with SocketHandle.
  13660. * src/PeerListenCommand.cc
  13661. (PeerListenCommand): Removed the initialization of socket.
  13662. (~PeerListenCommand): Removed the deallocation of socket.
  13663. (bindPort): Use SocketHandle.
  13664. (execute): Use SocketHandle and PeerHandle.
  13665. * src/FtpDowndloadCommand.cc
  13666. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13667. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13668. * src/main.cc
  13669. (main): Corrected indentation.
  13670. * src/HttpInitiateConnectionCommand.cc
  13671. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13672. (executeInternal): Removed the allocation of socket.
  13673. * src/HttpRequestCommand.h
  13674. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13675. * src/FtpNegotiationCommand.h
  13676. (dataSocket): Changed its type to SocketHandle.
  13677. (serverSocket): Changed its type to SocketHandle.
  13678. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13679. * src/TorrentMan.h
  13680. (MAX_PEER_UPDATE): Removed.
  13681. (MAX_PEERS): New definition.
  13682. (Peers): The element is now of type PeerHandle.
  13683. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13684. (getPeer): Replaced Peer with PeerHandle.
  13685. (deleteOldErrorPeers): Removed.
  13686. (deleteErrorPeer): New function.
  13687. (hasMissingPiece): Replaced Peer with PeerHandle.
  13688. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13689. (getMissingPiece): Replaced Peer with PeerHandle.
  13690. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13691. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13692. (addActivePeer): Replaced Peer with PeerHandle.
  13693. (deleteActivePeer): Replaced Peer with PeerHandle.
  13694. Added a check for the return value of find.
  13695. * src/FtpTunnelResponseCommand.cc
  13696. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13697. * src/FtpInitiateConnectionCommand.cc
  13698. (executeInternal): Removed the allocation of socket.
  13699. * src/DownloadEngine.h
  13700. (Sockets): An element is now of type SocketHandle.
  13701. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13702. (CommandUuids): New type definition.
  13703. (rsockets): Changed its type to SockCmdMap.
  13704. (wsockets): Changed its type to SockCmdMap.
  13705. (addSocket): Rewritten.
  13706. (deleteSocket): Rewritten.
  13707. (addSocketForReadCheck): Rewritten.
  13708. (deleteSocketForReadCheck): Rewritten.
  13709. (addSocketForWriteCheck): Rewritten.
  13710. (deleteSocketForWriteCheck): Rewritten.
  13711. (PairFind): New template class.
  13712. * src/HttpDownloadCommand.h
  13713. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13714. * src/FtpConnection.cc
  13715. (FtpConnection): Replaced Socket with SocketHandle.
  13716. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13717. block.
  13718. * src/InitiateConnectionCommandFactory.cc
  13719. (DlAbortEx.h): Included DlAbortEx.h.
  13720. (createInitiateConnectionCommand): Throw exception if the protocol of
  13721. requested URI is not supported.
  13722. * src/Peer.cc
  13723. (nullPeer): Changed its type to PeerHandle.
  13724. (operator==): New function.
  13725. (operator!=): New function.
  13726. * src/Peer.h
  13727. (SharedHandle.h): Included SharedHandle.h.
  13728. (operator==): New function.
  13729. (operator!=): New function.
  13730. (Peer): Added the default constructor.
  13731. Use resetStatus() to initialize member variables.
  13732. (nullPeer): Removed.
  13733. * src/TrackerUpdateCommand.cc
  13734. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13735. with MIN_PEERS.
  13736. * src/PeerListenCommand.h
  13737. (socket): Changed its type to SocketHandle.
  13738. * src/Command.h
  13739. (CommandUuid): New type definition.
  13740. (uuid): New variable.
  13741. (uuidGen): New variable.
  13742. (Command): Added the initialization of uuid.
  13743. (getUuid): New function.
  13744. * src/Socket.h
  13745. (Socket): Removed.
  13746. (SocketHandle): New type definition.
  13747. * src/DownloadEngine.h
  13748. (FindCommand): New function object.
  13749. (run): The portion of socket check was rewritten.
  13750. (SetDescriptor): New function object.
  13751. (AccumulateActiveCommandUuid): New function object.
  13752. (waitData): Rewritten.
  13753. (addSocket): Rewritten.
  13754. (deleteSocket): Rewritten.
  13755. (addSocketForReadCheck): Rewritten.
  13756. (addSocketForWriteCheck): Rewritten.
  13757. (deleteSocketForReadCheck): Rewritten.
  13758. (deleteSocketForWriteCheck): Rewritten.
  13759. * src/HttpProxyResponseCommand.h
  13760. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13761. * src/HttpConnection.h
  13762. (socket): Changed its type to SocketHandle.
  13763. (HttpConnection): Replaced Socket with SocketHandle.
  13764. * src/PeerInitiateConnectionCommand.cc
  13765. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13766. (executeInternal): Removed the allocation of socket.
  13767. (prepareForNextPeer): Use PeerHandle.
  13768. * src/PeerMessage.h
  13769. (peer): Changed its type to PeerHandle.
  13770. (getPeer): Replaced Peer with PeerHandle.
  13771. (setPeer): Replaced Peer with PeerHandle.
  13772. * src/DownloadCommand.cc
  13773. (DownloadCommand): Replaced Socket with SocketHandle.
  13774. * src/FtpConnection.h
  13775. (socket): Changed its type to SocketHandle.
  13776. (FtpConnection): Replaced Socket with SocketHandle.
  13777. (sendPort); Replaced Socket with SocketHandle.
  13778. * src/FtpDowndloadCommand.h
  13779. (ctrlSocket): Changed its type to SocketHandle.
  13780. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13781. * src/HttpProxyRequestCommand.cc
  13782. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13783. * src/FtpTunnelRequestCommand.h
  13784. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13785. etc
  13786. * src/PeerChokeCommand.h
  13787. (setAllPeerChoked): Removed.
  13788. (setAllPeerResetDelta): Removed.
  13789. * src/PeerChokeCommand.cc
  13790. (setAllPeerChoked): Removed.
  13791. (ChokePeer): New function object.
  13792. (setAllPeerResetDelta): Removed.
  13793. (ResetDelta): New function object.
  13794. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13795. (execute): Show download speed when the local node is a seeder.
  13796. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13797. using STL.
  13798. * src/TrackerWatcherCommand.h
  13799. (MIN_PEERS): Removed.
  13800. * src/TorrentMan.cc
  13801. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13802. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13803. To fix the bug that .aria2 file is not saved if downloading is stopped
  13804. by the errors:it results that aria2 can not resume downloading:
  13805. * src/main.cc
  13806. (normalDownload): Added the call to save().
  13807. (main): Added the deletion of the elements in 'reserved'.
  13808. To fix log:
  13809. * src/PeerInteraction.cc
  13810. (receiveHandshake): Fixed log.
  13811. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13812. To improve download performance in BitTorrent:
  13813. * src/TorrentMan.cc
  13814. (getPeer): Check the number of connections. Return nullPeer if
  13815. it is greater than MAX_PEER_UPDATE.
  13816. This code was originally here, but was removed in 0.5.1.
  13817. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13818. To improve the conditional compilation:
  13819. * src/MultiDiskWriter.h:
  13820. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13821. * src/MultiDiskWriter.cc:
  13822. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13823. * src/Util.h:
  13824. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13825. Added ENABLE_BITTORRENT around computeFastSet().
  13826. * src/Util.cc:
  13827. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13828. Added ENABLE_BITTORRENT around computeFastSet().
  13829. * src/messageDigest.h:
  13830. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13831. * src/ShaVisitor.h:
  13832. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13833. * src/ShaVisitor.cc:
  13834. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13835. * src/main.cc:
  13836. Added ENABLE_BITTORRENT around includes and blocks related to
  13837. BitTorrent.
  13838. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13839. digest support is not available.
  13840. * src/AbstractDiskWriter.h:
  13841. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13842. * src/AbstractDiskWriter.cc:
  13843. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13844. * src/MetalinkEntry.cc
  13845. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13846. support is not available.
  13847. To add command-line options for Metalink:
  13848. * src/main.cc:
  13849. Added metalink-version, metalink-language, metalink-os,
  13850. follow-metalink.
  13851. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13852. * src/main.cc: Use these definition.
  13853. * Release 0.6.0
  13854. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13855. To add Metalink support(http/ftp only):
  13856. * src/AbstractCommand.h
  13857. (tryReserved): New function.
  13858. * src/AbstractCommand.cc
  13859. (execute): Call tryReserved().
  13860. (tryReserved): New function.
  13861. * src/Request.h
  13862. (Requests): New type definition.
  13863. * src/SegmentMan.h
  13864. (reserved): New variable.
  13865. * src/Util.h
  13866. (fileChecksum): New function.
  13867. (toUpper): New function.
  13868. (toLower): New function.
  13869. * src/Util.cc
  13870. (messageDigest.h): Included.
  13871. (trim): Trim \r\n\t.
  13872. (fileChecksum): New function.
  13873. (toUpper): New function.
  13874. (toLower): New function.
  13875. * src/main.cc
  13876. (normalDownload): New function.
  13877. (main): Added 2 command-line options: metalink-file,
  13878. metalink-connection. Their usage has not been written yet.
  13879. * src/MetalinkProcessor.h: New class.
  13880. * src/Xml2MetalinkProcessor.h: New class.
  13881. * src/Xml2MetalinkProcessor.cc: New class.
  13882. * src/MetalinkEntry.h: New class.
  13883. * src/MetalinkEntry.cc: New class.
  13884. * src/MetalinkResource.h: New class.
  13885. * src/MetalinkResource.cc: New class.
  13886. To add md5 message digest checking:
  13887. * src/messageDigest.h: Rewritten.
  13888. * src/MultiDiskWriter.cc: Updated according to the changes in
  13889. messageDigest.h.
  13890. * src/ShaVisitor.cc: Updated according to the changes in
  13891. messageDigest.h.
  13892. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13893. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13894. messageDigest.h.
  13895. To fix a bug that causes segfault when the payload length in peer
  13896. message is less than 0:
  13897. * src/PeerConnection.cc:
  13898. (receiveMessage): Fixed the bug.
  13899. * src/PeerMessageUtil.cc
  13900. (checkLength): Throw an exception if length is less than or equals to
  13901. 0.
  13902. To add new interfaces to Base64 encoding/decoding:
  13903. * src/Base64.h
  13904. (part_encode): Changed the method signature.
  13905. (encode): New function(overload).
  13906. (decode): New function(overload).
  13907. * src/Base64.cc
  13908. (part_encode): Rewritten.
  13909. (encode): Rewritten.
  13910. (encode): New function(overload).
  13911. To prevent a peer to download same piece if there is an error in
  13912. checksum:
  13913. * src/PieceMessage.cc
  13914. (receivedAction): Call peerInteraction->abortPiece().
  13915. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13916. To fix the bug that causes same have message is sent many times to
  13917. a single peer.
  13918. * src/Time.cc
  13919. (isNewer): Use Util::difftv().
  13920. * src/Util.cc
  13921. (difftv): Added a cast to (long long int).
  13922. * src/TorrentMan.cc
  13923. (advertisePiece): Use push_front.
  13924. (getAdvertisedPieceIndexes): A performance improvement was made.
  13925. To fix the bug that sends tracker requests without a sleep interval
  13926. when the number of connections is less than 15.
  13927. * src/TrackerWatcherCommand.cc
  13928. (execute): Now the number of connections is not a factor to decide
  13929. whether or not a tracker request should be sent or not.
  13930. * src/Time.h
  13931. (setTimeInSec): New function.
  13932. * src/Time.cc
  13933. (setTimeInSec): New function.
  13934. etc.
  13935. * src/ChokeMessage.cc
  13936. (receivedAction): Removed peer->snubbing = false
  13937. * src/PeerConnection.h
  13938. (receiveHandshake): Updated doc.
  13939. * src/TorrentMan.h
  13940. (getAdvertisedPieceIndexes): Updated the method signature.
  13941. * src/TorrentMan.cc
  13942. (getAdvertisedPieceIndexes): Updated the method signature.
  13943. * src/Time.h
  13944. (getTimeInMicros): Added a cast to (long long int).
  13945. (getTimeInMillis): Added a cast to (long long int).
  13946. * Release 0.5.2
  13947. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13948. To make a listening socket non-block:
  13949. * src/SocketCore.h
  13950. (setNonBlockingMode): New function.
  13951. * src/SocketCore.cc
  13952. (setNonBlockingMode): New function.
  13953. (beginListen): Added a call to setNonBlockingMode().
  13954. (acceptConnection): Call setNonBlockingMode().
  13955. (setBlockingMode): Updated.
  13956. To handle tracker's NAT-checking:
  13957. * src/PeerConnection.cc
  13958. (receiveHandshake): 'msg' param is filled with received data and
  13959. its length is assigned to 'length' param, even if all handshake
  13960. message is not yet received.
  13961. * src/PeerInteractionCommand.cc
  13962. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13963. a new peer connects to localhost.
  13964. A call to peerInteraction->sendHandshake() was removed because
  13965. it is called from peerInteraction->receiveHandshake(true).
  13966. * src/PeerInteraction.h
  13967. (quickReplied): New variable.
  13968. (receiveHandshake): Added an argument.
  13969. * src/PeerInteraction.cc
  13970. (PeerInteraction): Added the initialization of quickReplied.
  13971. (receiveHandshake): Send handshake message as soon as the info hash
  13972. in a handshake message from a peer is correct.
  13973. To change the random part of peer id and key parameter:
  13974. * src/TorrentMan.h
  13975. (key): New variable.
  13976. * src/TorrentMan.cc
  13977. (setupInternal1): Use Util::randomAlpha() to generate random part
  13978. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13979. key is also generated by Util::randomAlpha() and it is now 8 character
  13980. long.
  13981. * src/Util.h
  13982. (randomAlpha): New function.
  13983. * src/Util.cc
  13984. (randomAlpha): New function.
  13985. * src/TrackerWatcherCommand.cc
  13986. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13987. Added no_peer_id=1.
  13988. Set snubbing flag to false when a choke message is received from a
  13989. snubbed peer.
  13990. * src/ChokeMessage.cc
  13991. (receivedAction): Set snubbing flag to false.
  13992. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13993. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13994. * src/SimpleLogger.h (writeHeader): New function.
  13995. * src/SimpleLogger.cc (writeHeader): New function.
  13996. (writeLog): Fixed the bug that causes segfaults if exception message
  13997. contains an unescaped "%" character.
  13998. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13999. when a tracker request fails.
  14000. * src/Request.cc (parseUrl): Query string is now handled properly.
  14001. * Release 0.5.1
  14002. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14003. To add Time class which represents a specific instant in time and
  14004. its precision is microseconds. Time checking procedures were rewritten
  14005. using this object.
  14006. * src/Time.h: New class.
  14007. * src/Time.cc: New class.
  14008. * src/AbstractCommand.h
  14009. (updateCheckPoint): Removed.
  14010. (isTimeoutDetected): Removed.
  14011. (checkPoint): Changed the type to Time.
  14012. (timeout): New variable.
  14013. (setTimeout): New function.
  14014. * src/AbstractCommand.cc
  14015. (AbstractCommand): Removed the initialization of checkPoint.
  14016. Added the initialization of timeout.
  14017. (updateCheckPoint): Removed.
  14018. (isTimeoutDetected): Removed.
  14019. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14020. * src/PeerChokeCommand.h
  14021. (checkPoint): Changed the type to Time.
  14022. * src/PeerChokeCommand.cc
  14023. (PeerChokeCommand): Removed the initialization of checkPoint.
  14024. (execute): Rewritten using Time object.
  14025. * src/TrackerWatcherCommand.h
  14026. (checkPoint): Changed the type to Time.
  14027. * src/TrackerWatcherCommand.cc
  14028. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14029. (execute): Rewritten.
  14030. * src/ConsoleDownloadEngine.h
  14031. (cp): Changed the type to Time.
  14032. (startup): Changed the type to Time.
  14033. * src/ConsoleDownloadEngine.cc
  14034. (initStatistics): Use cp.reset(), startup.reset().
  14035. (calculateStatistics): Rewritten using Time object.
  14036. * src/PeerAbstractCommand.h
  14037. (updateCheckPoint): Removed.
  14038. (isTimeoutDetected): Removed.
  14039. (checkPoint): Changed the type to Time.
  14040. * src/PeerAbstractCommand.cc
  14041. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14042. (updateCheckPoint): Removed.
  14043. (isTimeoutDetected): Removed.
  14044. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14045. * src/PeerInteractionCommand.cc
  14046. (PeerInteractionCommand): Removed the initializations of struct
  14047. timeval variables.
  14048. * src/PeerInteractionCommand.h
  14049. (keepAliveCheckPoint): Changed the type to Time.
  14050. (chokeCheckPoint): Changed the type to Time.
  14051. (freqCheckPoint): Changed the type to Time.
  14052. (haveCheckTime): Changed the type to Time.
  14053. * src/PeerInteractionCommand.cc
  14054. (executeInternal): Rewritten using Time object.
  14055. (detectMessageFlooding): Rewritten using Time object.
  14056. (checkLongTimePeerChoking): Rewritten using Time object.
  14057. (sendKeepAlive): Rewritten using Time object.
  14058. (checkHave): Rewritten using Time object.
  14059. * src/SleepCommand.h
  14060. (checkPoint): Changed the type to Time.
  14061. * src/SleepCommand.cc
  14062. (SleepCommand): Removed the initialization of checkPoint.
  14063. (execute): Rewritten using Time object.
  14064. * src/TorrentAutoSaveCommand.h
  14065. (checkPoint): Changed the type to Time.
  14066. * src/TorrentAutoSaveCommand.cc
  14067. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14068. (execute): Rewritten.
  14069. * src/DownloadCommand.h
  14070. (sw): Changed the type to Time.
  14071. * src/DownloadCommand.cc
  14072. (DownloadCommand): Removed the initialization of sw.
  14073. (executeInternal): Rewritten.
  14074. * src/RequestSlot.h
  14075. (dispatchedTime): Changed the type to Time.
  14076. * src/RequestSlot.cc
  14077. (RequestSlot): Removed the call to setDispatchedTime().
  14078. (setDispatchedTime): Rewirtten.
  14079. (isTimeout): Rewritten.
  14080. (getLatencyInMillis): Rewritten.
  14081. * src/TorrentDownloadEngine.h
  14082. (cp): Changed the type to Time[2].
  14083. (startup): Changed the type to Time.
  14084. * src/TorrentDownloadEngine.cc
  14085. (initStatistics): Rewritten.
  14086. (calculateStatistics): Rewritten.
  14087. * src/DownloadEngine.cc
  14088. (run): Rewritten.
  14089. To detect all attempts to connect to the tracker are failed:
  14090. * src/AbstractCommand.cc
  14091. (execute): Increment e->segmentMan->errors if a command aborted.
  14092. * src/SegmentMan.h
  14093. (errors): New variable.
  14094. * src/SegmentMan.cc
  14095. (SegmentMan): Added the initialization of errors.
  14096. (init): Added the initialization of errors.
  14097. * src/TrackerWatcherCommand.cc
  14098. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14099. request was failed.
  14100. To handle snubbed peers:
  14101. * src/PeerChokeCommand.cc
  14102. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14103. (execute): Snubbed peers don't get unchoked.
  14104. * src/PeerInteraction.h
  14105. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14106. * src/PeerInteraction.cc
  14107. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14108. back the requested 16k block in 60 seconds.
  14109. * src/PieceMessage.cc
  14110. (receivedAction): A peer's snubbed state is cleard if it sends
  14111. the requested 16k block in 60 seconds.
  14112. * src/Peer.h
  14113. (snubbing): New variable.
  14114. * src/Peer.cc
  14115. (resetStatus): Added snubbed = false.
  14116. To fix the bug that causes have message is not sent:
  14117. * src/PeerInteractionCommand.cc
  14118. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14119. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14120. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14121. * src/TorrentMan.h
  14122. (HaveEntry): New class.
  14123. (advertisePiece): Rewritten.
  14124. (getAdvertisedPieceIndexes): Rewritten.
  14125. (Haves): Changed the type.
  14126. (getAdvertisedPieceIndexes): Added an argument.
  14127. Others:
  14128. * src/TorrentMan.h
  14129. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14130. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14131. * src/TorrentMan.cc
  14132. (getPeer): Don't check the number of connections here.
  14133. (setupInternal1): Changed peerId.
  14134. * src/PeerInteractionCommand.h
  14135. (KEEP_ALIVE_INTERVAL): New definition.
  14136. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14137. * src/main.cc
  14138. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14139. * src/DownloadEngine.h: Removed unnecessary header includes.
  14140. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14141. To fix the bug that causes segfaults if a tracker returns a zero-length
  14142. list as "peers":
  14143. * src/TrackerUpdateCommand.cc
  14144. (execute): Added a check to see wether the type of peers is Data*.
  14145. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14146. * Release 0.5.0
  14147. To fix compile issue with gcc3:
  14148. * src/CancelMessage.h
  14149. (ID): Renamed as ID_t
  14150. (ID_t): New enum.
  14151. * src/RejectMessage.h
  14152. (ID): Renamed as ID_t
  14153. (ID_t): New enum.
  14154. * src/SuggestPieceMessage.h
  14155. (ID): Renamed as ID_t
  14156. (ID_t): New enum.
  14157. * src/AllowedFastMessage.h
  14158. (ID): Renamed as ID_t
  14159. (ID_t): New enum.
  14160. * src/PortMessage.h
  14161. (ID): Renamed as ID_t
  14162. (ID_t): New enum.
  14163. * src/HaveNoneMessage.h
  14164. (ID): Renamed as ID_t
  14165. (ID_t): New enum.
  14166. * src/KeepAliveMessage.h
  14167. (ID): Renamed as ID_t
  14168. (ID_t): New enum.
  14169. * src/HaveAllMessage.h
  14170. (ID): Renamed as ID_t
  14171. (ID_t): New enum.
  14172. * src/UnchokeMessage.h
  14173. (ID): Renamed as ID_t
  14174. (ID_t): New enum.
  14175. * src/BitfieldMessage.h
  14176. (ID): Renamed as ID_t
  14177. (ID_t): New enum.
  14178. * src/PieceMessage.h
  14179. (ID): Renamed as ID_t
  14180. (ID_t): New enum.
  14181. * src/RequestMessage.h
  14182. (ID): Renamed as ID_t
  14183. (ID_t): New enum.
  14184. * src/NotInterestedMessage.h
  14185. (ID): Renamed as ID_t
  14186. (ID_t): New enum.
  14187. * src/ChokeMessage.h
  14188. (ID): Renamed as ID_t
  14189. (ID_t): New enum.
  14190. * src/InterestedMessage.h
  14191. (ID): Renamed as ID_t
  14192. (ID_t): New enum.
  14193. * src/HaveMessage.h
  14194. (ID): Renamed as ID_t
  14195. (ID_t): New enum.
  14196. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14197. * src/PeerAbstractCommand.h
  14198. (beforeSocketCheck): Removed.
  14199. * src/PeerAbstractCommand.cc
  14200. Modified in order to call executeInternal() even if socket check
  14201. and upload limit check fail.
  14202. * src/PeerInteractionCommand.h
  14203. (keepAlive): Removed.
  14204. (sendKeepAlive): New function.
  14205. (checkHave): New function.
  14206. (beforeSocketCheck): Removed.
  14207. * src/PeerInteractionCommand.cc
  14208. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14209. calls to checkHave() and sendKeepAlive().
  14210. (keepAlive): Renamed to sendKeepAlive().
  14211. (sendKeepAlive): New function.
  14212. (beforeSocketCheck): Removed.
  14213. (checkHave): New function.
  14214. * src/BitfieldMan.cc
  14215. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14216. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14217. 0.
  14218. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14219. * src/TorrentMan.h
  14220. (UsedPieces): Removed.
  14221. (Pieces): New type definition.
  14222. * src/Piece.h: Updated doc.
  14223. * src/Peer.h
  14224. (totalLength): Removed.
  14225. * src/Peer.cc
  14226. (updateLatency): Fixed the latency calculation.
  14227. * src/TorrentMan.cc
  14228. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14229. than or equal to MAX_PEER_LIST_SIZE.
  14230. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14231. then return false.
  14232. (deleteOldErrorPeers): Rewritten.
  14233. (deleteUsedPiece): Fixed the miss use of STL remove.
  14234. * src/PeerInteraction.h
  14235. (Pieces): Removed.
  14236. (deleteTimeoutRequestSlot): Removed.
  14237. (deleteCompletedRequestSlot): Removed.
  14238. (checkRequestSlot): New function.
  14239. * src/PeerInteraction.cc
  14240. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14241. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14242. (checkRequestSlot): New function.
  14243. * src/DownloadEngine.cc
  14244. (run): Clear activeSockets before calling waitData().
  14245. (waitData): Removed a call to activeSockets.clear().
  14246. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14247. To attempt to handle EINTR:
  14248. * src/SocketCore.cc
  14249. (isReadable): Added EINTR handling.
  14250. (isWritable): Added EINTR handling.
  14251. To improve the performance:
  14252. * src/AbstractCommand.cc
  14253. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14254. * src/PeerInteractionCommand.h
  14255. (receiveMessage): Renamed as receiveMessages().
  14256. (receiveMessages): New function.
  14257. * src/PeerInteractionCommand.cc
  14258. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14259. () function. detectMessageFlooding() is moved here.
  14260. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14261. (). The flooding detection for have message is comment out.
  14262. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14263. Util::difftv().
  14264. (receiveMessage): Renamed as receiveMessages().
  14265. (receiveMessages): New function.
  14266. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14267. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14268. * src/SleepCommand.cc
  14269. (execute): Use Util::difftvsec() instead of Util::difftv().
  14270. * src/BitfieldMan.h
  14271. (getNthBitIndex): New function.
  14272. (hasMissingPiece): New function.
  14273. (getAllMissingIndexes): New function.
  14274. * src/BitfieldMan.cc
  14275. (countSetBit): Rewritten.
  14276. (getNthBitIndex): New function.
  14277. (getMissingIndexRandomly): Rewritten.
  14278. (hasMissingPiece): New function.
  14279. (getAllMissingIndexes): New function.
  14280. * src/TorrentMan.cc
  14281. (hasMissingPiece): New function.
  14282. (deleteUsedPiece): Rewritten using STL.
  14283. * src/PeerInteraction.cc
  14284. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14285. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14286. (addRequests): Updated the number of pending requests.
  14287. * src/PeerAbstractCommand.cc
  14288. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14289. (execute): Returns true if TorrentMan::isHalt() is true.
  14290. Corrected the condition of upload limit checking.
  14291. * src/Util.h
  14292. (countBit): New function.
  14293. * src/Util.cc
  14294. (nbits): New variable.
  14295. (countBit): New function.
  14296. * src/DownloadEngine.h
  14297. (SockCmdMap): New type definition.
  14298. (waitData): Added an argument.
  14299. (addSocket): Added an argument.
  14300. (addSocketForReadCheck): Added an argument.
  14301. (addSocketForWriteCheck): Added an argument.
  14302. * src/DownloadEngine.cc
  14303. (run): Executes only commands whose sockets are ready to read or write.
  14304. All commands are executed in every 1 second.
  14305. (waitData): Calls select() again if it returned
  14306. EINTR.
  14307. (addSocket): Saves socket and command object pair to the map.
  14308. (deleteSocket): Deletes socket and command object pair from the map.
  14309. (addSocketForReadCheck): Added an argument.
  14310. (addSocketForWriteCheck): Added an argument.
  14311. * src/DownloadCommand.cc
  14312. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14313. To send "event=stopped" to the tracker when the application finishes:
  14314. * src/PeerChokeCommand.h
  14315. (checkPoint): New variable.
  14316. * src/PeerChokeCommand.cc
  14317. (PeerChokeCommand): Added the initialization of checkPoint.
  14318. (execute): The interval check is now done by checkPoint, not
  14319. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14320. * src/TorrentMan.h
  14321. (halt): New function.
  14322. (hasMissingPiece): New function.
  14323. (isHalt): New function.
  14324. (setHalt): New function.
  14325. * src/TorrentMan.cc
  14326. (TorrentMan): Added the initialization of halt.
  14327. * src/TorrentAutoSaveCommand.h
  14328. (checkPoint): New variable.
  14329. * src/PeerListenCommand.cc
  14330. (execute): Returns true if TorrentMan::isHalt() is true.
  14331. * src/main.cc
  14332. (setSignalHander): Added flags argument.
  14333. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14334. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14335. Removed printDownloadAbortMessage() after torrent downloading loop.
  14336. * src/TorrentAutoSaveCommand.cc
  14337. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14338. (execute): Returns true if TorrentMan::isHalt() is true.
  14339. The interval check is now done by checkPoint, not SleepCommand.
  14340. * src/TrackerWatcherCommand.cc
  14341. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14342. event=stopped.
  14343. * src/TrackerUpdateCommand.cc
  14344. (prepareForRetry): Do not use SleepCommand here.
  14345. (execute): Returns true if TorrentMan::isHalt() is true.
  14346. Others:
  14347. * src/TorrentMan.cc
  14348. (getMissingPieceIndex): Updated log message.
  14349. * src/PeerInteraction.cc
  14350. (createPeerMessag): Updated log message.
  14351. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14352. To add the ability to download several pieces in mix in a command and
  14353. increase the number of request slots according to request-cancel
  14354. latency:
  14355. * src/PeerInteractionCommand.cc
  14356. (executeInternal): The number of messages to be received at a time
  14357. is increased from 10 to 50.
  14358. * src/LogFactory
  14359. (getInstance): Added NullLogger.
  14360. * src/NullLogger.h: New class.
  14361. * src/BitfieldMan.h
  14362. (getMissingIndex): New function.
  14363. * src/BitfieldMan.cc
  14364. (getMissingIndex): New function.
  14365. * src/TorrentMan.h
  14366. (checkOutPiece): New function.
  14367. (getMissingPieceIndex): New function.
  14368. (getMissingFastPieceIndex): New function.
  14369. (getMissingFastPiece): New function.
  14370. * src/TorrentMan.cc
  14371. (updatePiece): Rewritten using STL.
  14372. (syncPiece): Rewritten using STL.
  14373. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14374. checkOutPiece().
  14375. (getMissingPieceIndex): New function.
  14376. (getMissingFastPieceIndex): New function.
  14377. (getMissingFastPiece): New function.
  14378. (checkOutPiece): New function.
  14379. * src/PeerInteraction.h
  14380. (Pieces): New type definition.
  14381. (piece): Removed.
  14382. (pieces): New variable.
  14383. (getNewPieceAndSendInterest): Added the "piece" argument.
  14384. (abortPiece): Added the "piece" argument.
  14385. (abortAllPieces): New function.
  14386. (isInRequestSlot): New function.
  14387. (hasDownloadPiece): Added the "index" argument.
  14388. (setDownloadPiece): Removed.
  14389. (getDownloadPiece): Added the "index" argument.
  14390. (updatePiece): New function.
  14391. (createRequestMessage): Added the "index" argument.
  14392. * src/PeerInteraction.cc
  14393. (onChoked): Rewritten.
  14394. (abortPiece): Rewirtten.
  14395. (abortAllPieces): New function.
  14396. (deleteTimeoutRequestSlot): Rewritten.
  14397. Clarified code a little bit.
  14398. (deleteCompletedRequestSlot): Rewritten.
  14399. (isInRequestSlot): New function.
  14400. (syncPiece): Rewritten.
  14401. (updatePiece): New function.
  14402. (getNewPieceAndSendInterest): Rewritten.
  14403. (addRequests): Rewritten.
  14404. (getDownloadPiece): Rewritten.
  14405. (hasDownloadPiece): Rewritten.
  14406. (createRequestMessage): Added the "index" argument.
  14407. * src/common.h
  14408. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14409. (DIV_FLOOR): New definition.
  14410. * src/PieceMessage.cc
  14411. (receivedAction): Update request-piece latency here.
  14412. * src/RequestSlot.h
  14413. (getLatencyInMillis): New function.
  14414. * src/RequestSlot.cc
  14415. (isTimeout): Rewritten using getLatencyInMillis.
  14416. (getLatencyInMillis): New function.
  14417. * src/Piece.h
  14418. (operator==): New function.
  14419. (getMissingBlockIndex): New function.
  14420. * src/Piece.cc
  14421. (operator==): New function.
  14422. (getMissingBlockIndex): New function.
  14423. * src/Peer.h
  14424. (DEFAULT_LATENCY): New definition.
  14425. (latency): New variable.
  14426. (updateLatency): New function.
  14427. (getLatency): New function.
  14428. * src/Peer.cc
  14429. (resetStatus): Reset latecy.
  14430. (updateLatency): New function.
  14431. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14432. * src/SocketCore.cc
  14433. (isReadable): Added secure to the condition.
  14434. * src/HttpConnection.cc
  14435. (receiveResponse): Fixed a bug that causes no response header
  14436. exception.
  14437. * src/Peer.h
  14438. (getFastSet): Fixed the return value type.
  14439. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14440. To remove a wait from download loop:
  14441. * src/DownloadEngine.cc
  14442. (run): Comment out shortSleep.
  14443. To rewrite the message handling:
  14444. * src/SimplePeerMessage.h: New class.
  14445. * src/SimplePeerMessage.cc: New class.
  14446. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14447. (msg): New variable.
  14448. (create): New function.
  14449. (send): Removed.
  14450. (getMessage): New function.
  14451. (getMessageLength): New function.
  14452. * src/CancelMessage.cc
  14453. (create): New function.
  14454. (receivedAction): Replaced deleteRequestMessageInQueue with
  14455. rejectPieceMessageInQueue.
  14456. (send): Removed.
  14457. (getMessage): New function.
  14458. (getMessageLength): New function.
  14459. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14460. (msg): New variable.
  14461. (msgLength): New variable.
  14462. (~BitfieldMessage): Deleted msg.
  14463. (send): Removed.
  14464. (getMessage): New function.
  14465. (getMessageLength): New function.
  14466. * src/BitfieldMessage.cc
  14467. (create): New function.
  14468. (send): Removed.
  14469. (getMessage): New function.
  14470. (getMessageLength): New function.
  14471. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14472. (msg): New variable.
  14473. (sendPredicate): New function.
  14474. (onSendComplete): New function.
  14475. (send): Removed.
  14476. (getMessage): New function.
  14477. (getMessageLength): New function.
  14478. (create): New function.
  14479. * src/ChokeMessage.cc
  14480. (create): New function.
  14481. (send): Removed.
  14482. (sendPredicate): New function.
  14483. (getMessage): New function.
  14484. (getMessageLength): New function.
  14485. (onSendComplete): New function.
  14486. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14487. (msg): New variable.
  14488. (send): Removed.
  14489. (getMessage): New function.
  14490. (getMessageLength): New function.
  14491. * src/KeepAliveMessage.cc
  14492. (send): Removed.
  14493. (getMessage): New function.
  14494. (getMessageLength): New function.
  14495. * src/PortMessage.h
  14496. (create): New function.
  14497. (receivedAction): Updated log message.
  14498. * src/PortMessage.cc: New file.
  14499. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14500. (msg): New variable.
  14501. (sendPredicate): New function.
  14502. (onSendComplete): New function.
  14503. (create): New function.
  14504. (send): Removed.
  14505. (getMessage): New function.
  14506. (getMessageLength): New function.
  14507. * src/UnchokeMessage.cc
  14508. (create): New function.
  14509. (send): Removed.
  14510. (sendPredicate): New function.
  14511. (getMessage): New function.
  14512. (getMessageLength): New function.
  14513. (onSendComplete): New function.
  14514. * src/PieceMessage.h
  14515. (leftPieceDataLength): Removed.
  14516. (leftDataLength): New variable.
  14517. (headerSend): New variable.
  14518. (pendingCount): New variable.
  14519. (msgHeader): New variable.
  14520. (sendPieceData): New function.
  14521. (incrementPendingCount): New function.
  14522. (isPendingCountMax): New function.
  14523. (create): New function.
  14524. (getMessageHeader): New function.
  14525. (getMessageHeaderLength): New function.
  14526. * src/PieceMessage.cc
  14527. (create): New function.
  14528. (getMessageHeader): New function.
  14529. (getMessageHeaderLength): New function.
  14530. (send): Rewritten.
  14531. (sendPieceData): New function.
  14532. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14533. (msg): New variable.
  14534. (create): New function.
  14535. (getMessage): New function.
  14536. (getMessageLength): New function.
  14537. * src/HaveMessage.cc
  14538. (create): New function.
  14539. (send): Removed.
  14540. (sendPieceData): New function.
  14541. (getMessage): New function.
  14542. (getMessageLength): New function.
  14543. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14544. (msg): New variable.
  14545. (create): New function.
  14546. (send): Removed.
  14547. (getMessage): New function.
  14548. (getMessageLength): New function.
  14549. * src/RequestMessage.cc
  14550. (create): New function.
  14551. (receivedAction): Added the handling of fast extension.
  14552. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14553. (send): Removed.
  14554. (getMessage): New function.
  14555. (getMessageLength): New function.
  14556. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14557. (msg): New variable.
  14558. (sendPredicate): New function.
  14559. (onSendComplete): New function.
  14560. (create): New function.
  14561. (getMessage): New function.
  14562. (getMessageLength): New function.
  14563. * src/InterestedMessage.cc
  14564. (create): New function.
  14565. (send): Removed.
  14566. (sendPieceData): New function.
  14567. (getMessage): New function.
  14568. (getMessageLength): New function.
  14569. (onSendComplete): New function.
  14570. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14571. (msg): New variable.
  14572. (sendPieceData): New function.
  14573. (onSendComplete): New function.
  14574. (create): New function.
  14575. (send): Removed.
  14576. (getMessage): New function.
  14577. (getMessageLength): New function.
  14578. * src/NotInterestedMessage.cc
  14579. (create): New function.
  14580. (send): Removed.
  14581. (sendPredicate): New function.
  14582. (getMessage): New function.
  14583. (getMessageLength): New function.
  14584. (onSendComplete): New function.
  14585. * src/AllowedFastMessage.h: New class.
  14586. * src/AllowedFastMessage.cc: New class.
  14587. * src/RejectMessage.h: New class.
  14588. * src/RejectMessage.cc: New class.
  14589. * src/SuggestPieceMessage.h: New class.
  14590. * src/SuggestPieceMessage.cc: New class.
  14591. * src/HaveAllMessage.h: New class.
  14592. * src/HaveAllMessage.cc: New class.
  14593. * src/HaveNoneMessage.h: New class.
  14594. * src/HaveNoneMessage.cc: New class.
  14595. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14596. (msg): New variable.
  14597. (reserved): New variable.
  14598. (create): New function.
  14599. (getId): New function.
  14600. (receivedAction): New function.
  14601. (getMessage): New function.
  14602. (getMessageLength): New function.
  14603. (isFastExtensionSupported): New function.
  14604. * src/HandshakeMessage.cc
  14605. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14606. (create): New function.
  14607. (getMessage): New function.
  14608. (getMessageLength): New function.
  14609. (toString): Added the output of reserved field.
  14610. (check): Added const qualifier.
  14611. (isFastExtensionSupported): New function.
  14612. * src/PeerMessageUtil.h
  14613. (createChokeMessage): Removed.
  14614. (createUnchokeMessage): Removed.
  14615. (createInterestedMessage): Removed.
  14616. (createNotInterestedMessage): Removed.
  14617. (createHaveMessage): Removed.
  14618. (createBitfieldMessage): Removed.
  14619. (createRequestMessage): Removed.
  14620. (createCancelMessage): Removed.
  14621. (createPieceMessage): Removed.
  14622. (createPortMessage): Removed.
  14623. (createChokeMessage): Removed.
  14624. (createUnchokeMessage): Removed.
  14625. (createInterestedMessage): Removed.
  14626. (createNotInterestedMessage): Removed.
  14627. (createHaveMessage): Removed.
  14628. (createBitfieldMessage): Removed.
  14629. (createRequestMessage): Removed.
  14630. (createCancelMessage): Removed.
  14631. (createPieceMessage): Removed.
  14632. (createKeepAliveMessage): Removed.
  14633. (createHandshakeMessage): Removed.
  14634. (setIntParam): New function.
  14635. (createPeerMessageString): New function.
  14636. * src/PeerMessageUtil.cc
  14637. (createChokeMessage): Removed.
  14638. (createUnchokeMessage): Removed.
  14639. (createInterestedMessage): Removed.
  14640. (createNotInterestedMessage): Removed.
  14641. (createHaveMessage): Removed.
  14642. (createBitfieldMessage): Removed.
  14643. (createRequestMessage): Removed.
  14644. (createCancelMessage): Removed.
  14645. (createPieceMessage): Removed.
  14646. (createPortMessage): Removed.
  14647. (createRequestMessage): Removed.
  14648. (createCancelMessage): Removed.
  14649. (createPieceMessage): Removed.
  14650. (createHaveMessage): Removed.
  14651. (createChokeMessage): Removed.
  14652. (createUnchokeMessage): Removed.
  14653. (createInterestedMessage): Removed.
  14654. (createNotInterestedMessage): Removed.
  14655. (createBitfieldMessage): Removed.
  14656. (createKeepAliveMessage): Removed.
  14657. (createHandshakeMessage): Removed.
  14658. (setIntParam): New function.
  14659. (createPeerMessageString): New function.
  14660. * src/PeerConnection.h
  14661. (peer): Removed.
  14662. (torrentMan): Removed.
  14663. (createNLengthMessage): Removed.
  14664. (setIntParam): Removed.
  14665. (writeOutgoingMessageLog): Removed all overloaded functions.
  14666. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14667. (sendMessage): New function.
  14668. (sendHandshake): Removed.
  14669. (sendKeepAlive): Removed.
  14670. (sendChoke): Removed.
  14671. (sendUnchoke): Removed.
  14672. (sendInterested): Removed.
  14673. (sendNotInterested): Removed.
  14674. (sendHave): Removed.
  14675. (sendBitfield): Removed.
  14676. (sendRequest): Removed.
  14677. (sendPiece): Removed.
  14678. (sendPieceHeader): Removed.
  14679. (sendPieceData): Removed.
  14680. (sendCancel): Removed.
  14681. (getPeer): Removed.
  14682. * src/PeerConnection.cc
  14683. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14684. (sendHandshake): Removed.
  14685. (sendKeepAlive): Removed.
  14686. (createNLengthMessage): Removed.
  14687. (setIntParam): Removed.
  14688. (writeOutgoingMessageLog): Removed all overloaded functions.
  14689. (sendChoke): Removed.
  14690. (sendUnchoke): Removed.
  14691. (sendInterested): Removed.
  14692. (sendNotInterested): Removed.
  14693. (sendHave): Removed.
  14694. (sendBitfield): Removed.
  14695. (sendRequest): Removed.
  14696. (sendPiece): Removed.
  14697. (sendPieceHeader): Removed.
  14698. (sendPieceData): Removed.
  14699. (sendMessage): New function.
  14700. (sendCancel): Removed.
  14701. * src/PeerInteractionCommand.cc
  14702. (PeerInteractionCommand): Call setUploadLimit.
  14703. (executeInternal): Call setUploadLimit.
  14704. Added the handling of "inProgress" state of handshake message.
  14705. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14706. sendNow().
  14707. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14708. sendNow().
  14709. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14710. * src/TorrentMan.h
  14711. (PEER_ID_LENGTH): New definition.
  14712. (hasAllPieces): New function.
  14713. * src/TorrentMan.cc
  14714. (getMissingPiece): Added the handling of fast extension.
  14715. (cancelPiece): Call updatePiece().
  14716. (hasAllPieces): New function.
  14717. * src/PeerInteraction.h
  14718. (fastSet): New variable.
  14719. (getNewPieceAndSendInterest): Changed the return type to void.
  14720. (send): Renamed as sendMessages.
  14721. (deleteAllRequestSlot): Removed.
  14722. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14723. (cancelAllRequest): Removed all overloaded functions.
  14724. (deleteAllRequestSlot): Removed.
  14725. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14726. (rejectPieceMessageInQueue): New function.
  14727. (rejectAllPieceMessageInQueue): New function.
  14728. (onChoked): New function.
  14729. (isSendingMessageInProgress): New function.
  14730. (getCorrespondingRequestSlot): Changed its arguments.
  14731. (isInFastSet): New function.
  14732. (addFastSetIndex): New function.
  14733. (addRequests): New function.
  14734. (sendNow): Removed.
  14735. (trySendNow): Removed.
  14736. (sendBitfield): New function.
  14737. (sendAllowdFast): New function.
  14738. (createHaveAllMessage): New function.
  14739. (createHaveNoneMessage): New function.
  14740. (createRejectMessage): New function.
  14741. (createAllowedFastMessage): New function.
  14742. * src/PeerInteraction.cc
  14743. (send): Renamed as sendMessages.
  14744. (sendMessages): New function.
  14745. (MsgPushBack): New class.
  14746. (isSendingMessageInProgress): New function.
  14747. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14748. (rejectAllPieceMessageInQueue): New function.
  14749. Added the handling of fast extension.
  14750. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14751. (rejectPieceMessageInQueue): New function.
  14752. Added the handling of fast extension.
  14753. (deleteRequestSlot): Replaced for loop with std::find.
  14754. (onChoked): New function.
  14755. (deleteAllRequestSlot): Removed.
  14756. (abortPiece): Rewirtten.
  14757. (deleteTimeoutRequestSlot): Updated log messages.
  14758. (getCorrespondingRequestSlot): Changed its arguments.
  14759. (cancelAllRequest): Removed all overloaded functions.
  14760. (receiveHandshake): Added the check to see whether an incoming peer
  14761. supports fast extension.
  14762. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14763. PeerMessageUtil.
  14764. (createPeerMessage): Use create() of each message class instead of
  14765. PeerMessageUtil.
  14766. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14767. AllowedFastMessage were added.
  14768. (getNewPieceAndSendInterest): Changed its return value type to void.
  14769. Added the handling of fast extension.
  14770. (addRequests): New function.
  14771. (sendNow): Removed.
  14772. (sendHandshake): Rewritten.
  14773. (trySendNow): Removed.
  14774. (sendBitfield): New function.
  14775. (sendAllowdFast): New function.
  14776. (isInFastSet): New function.
  14777. (addFastSetIndex): New function.
  14778. (createRequestMessage): Use RequestMessage::create instead of
  14779. PeerMessageUtil.
  14780. (createCancelMessage): Use CancelMessage::create instead of
  14781. PeerMessageUtil.
  14782. (createPieceMessage): Use PieceMessage::create instead of
  14783. PeerMessageUtil.
  14784. (createHaveMessage): Use HaveMessage::create instead of
  14785. PeerMessageUtil.
  14786. (createChokeMessage): Use ChokeMessage::create instead of
  14787. PeerMessageUtil.
  14788. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14789. PeerMessageUtil.
  14790. (createInterestedMessage): Use InterestedMessage::create instead of
  14791. PeerMessageUtil.
  14792. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14793. of PeerMessageUtil.
  14794. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14795. PeerMessageUtil.
  14796. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14797. PeerMessageUtil.
  14798. (createHaveAllMessage): New function.
  14799. (createHaveNoneMessage): New function.
  14800. (createRejectMessage): New function.
  14801. (createAllowedFastMessage: New function.
  14802. * src/Util.h
  14803. (sha1Sum): New function.
  14804. (computeFastSet): New function.
  14805. * src/Util.cc
  14806. (sha1Sum): New function.
  14807. (computeFastSet): New function.
  14808. * src/Peer.h
  14809. (fastExtensionEnabled): New variable.
  14810. (fastSet): New variable.
  14811. (setAllBitfield): New function.
  14812. (setFastExtensionEnabled): New function.
  14813. (isFastExtensionEnabled): New function.
  14814. (addFastSetIndex): New function.
  14815. (getFastSet): New function.
  14816. (isInFastSet): New function.
  14817. (countFastSet): New function.
  14818. * src/Peer.cc
  14819. (isInFastSet): New function.
  14820. (addFastSetIndex): New function.
  14821. (setAllBitfield): New function.
  14822. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14823. sockets.
  14824. * src/PeerAbstractCommand.cc
  14825. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14826. and uploadLimit.
  14827. (execute): Changed the procedure of checking sockets. The upload speed
  14828. checking were added.
  14829. (setUploadLimit): New function.
  14830. (setUploadLimitCheck): New function.
  14831. * src/PeerAbstractCommand.h
  14832. (setUploadLimit): New function.
  14833. (setUploadLimitCheck): New function.
  14834. (uploadLimit): New variable.
  14835. (uploadLimitCheck): New variable.
  14836. To contact a tracker regularly:
  14837. * src/TrackerWatcherCommand.h (interval): New variable.
  14838. (checkPoint): New variable.
  14839. (TrackerWatcherCommand): Added interval argument.
  14840. * src/TrackerWatcherCommand.cc
  14841. (TrackerWatcherCommand): Initialized checkPoint.
  14842. (execute): Now a tracker is contacted in every specified period.
  14843. If peer list is not needed, send request with numwant=0.
  14844. * src/TrackerUpdateCommand.cc
  14845. (execute): Updated log messages.
  14846. * src/DownloadEngine.cc
  14847. (~DownloadEngine): Removed two asserts.
  14848. (waitData): Uncommented wfds. May be a bug fix.
  14849. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14850. * src/PeerInteractionCommand.h
  14851. (checkInactiveConnection): Removed.
  14852. * src/PeerInteractionCommand.cc
  14853. (executeInternal): Removed following function calls:
  14854. detectMessageFlooding(), checkLongTimePeerChoking and
  14855. checkInactiveConnection().
  14856. (checkInactiveConnection): Removed.
  14857. (detectMessageFlooding): Removed function call to
  14858. checkInactiveConnection().
  14859. * src/PeerMessageUtil.h
  14860. (createChokeMessage): New function. Overload.
  14861. (createUnchokeMessage): New function. Overload.
  14862. (createInterestedMessage): New function. Overload.
  14863. (createNotInterestedMessage): New function. Overload.
  14864. (createHaveMessage): New function. Overload.
  14865. (createBitfieldMessage): New function. Overload.
  14866. (createRequestMessage): New function. Overload.
  14867. (createCancelMessage): New function. Overload.
  14868. (createPieceMessage): New function. Overload.
  14869. (createKeepAliveMessage): New function. Overload.
  14870. * src/PeerMessageUtil.cc
  14871. (createChokeMessage): New function. Overload.
  14872. (createUnchokeMessage): New function. Overload.
  14873. (createInterestedMessage): New function. Overload.
  14874. (createNotInterestedMessage): New function. Overload.
  14875. (createHaveMessage): New function. Overload.
  14876. (createBitfieldMessage): New function. Overload.
  14877. (createRequestMessage): New function. Overload.
  14878. (createCancelMessage): New function. Overload.
  14879. (createPieceMessage): New function. Overload.
  14880. (createKeepAliveMessage): New function. Overload.
  14881. * src/SendMessageQueue.cc
  14882. (createRequestMessage): Use PeerMessageUtil.
  14883. (createCancelMessage): Use PeerMessageUtil.
  14884. (createPieceMessage): Use PeerMessageUtil.
  14885. (createHaveMessage): Use PeerMessageUtil.
  14886. (createChokeMessage): Use PeerMessageUtil.
  14887. (createUnchokeMessage): Use PeerMessageUtil.
  14888. (createInterestedMessage): Use PeerMessageUtil.
  14889. (createNotInterestedMessage): Use PeerMessageUtil.
  14890. (createBitfieldMessage): Use PeerMessageUtil.
  14891. (createKeepAliveMessage): Use PeerMessageUtil.
  14892. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14893. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14894. * src/PeerInteraction.h: New class.
  14895. * src/PeerInteraction.cc: New class.
  14896. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14897. Each peer message has its own class.
  14898. * src/PendingMessages.h: Removed.
  14899. * src/PendingMessages.cc: Removed. The sending process was moved to
  14900. each message class.
  14901. * src/RequestSlotMan.h: Removed.
  14902. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14903. SendMessageQueue.
  14904. * src/RequestMessage.h: New class.
  14905. * src/RequestMessage.cc: New class.
  14906. * src/CancelMessage.h: New class.
  14907. * src/CancelMessage.cc: New class.
  14908. * src/BitfieldMessage.h: New class.
  14909. * src/BitfieldMessage.cc: New class.
  14910. * src/ChokeMessage.h: New class.
  14911. * src/ChokeMessage.cc: New class.
  14912. * src/KeepAliveMessage.h: New class.
  14913. * src/KeepAliveMessage.cc: New class.
  14914. * src/PortMessage.h: New class.
  14915. * src/UnchokeMessage.h: New class.
  14916. * src/UnchokeMessage.cc: New class.
  14917. * src/PieceMessage.h: New class.
  14918. * src/PieceMessage.cc: New class.
  14919. * src/HaveMessage.h: New class.
  14920. * src/HaveMessage.cc: New class.
  14921. * src/BitfieldMessage.h: New class.
  14922. * src/BitfieldMessage.cc: New class.
  14923. * src/NotInterestedMessage.h: New class.
  14924. * src/NotInterestedMessage.cc: New class.
  14925. * src/InterestedMessage.h: New class.
  14926. * src/InterestedMessage.cc: New class.
  14927. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14928. (getSendMessageQueue): New function.
  14929. (setSendMessageQueue): New function.
  14930. * src/HandshakeMessage.cc: New class.
  14931. * src/PeerConnection.h (receiveMessage): Changed return value and
  14932. arguments.
  14933. (receiveHandshake): Changed return value and arguments.
  14934. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14935. here.
  14936. (receiveHandshake): Do not create handshake class here.
  14937. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14938. (piece): Removed.
  14939. (syncPiece): Removed.
  14940. (sendInterest): Removed.
  14941. (sendMessages): Removed.
  14942. (createRequestPendingMessage): Removed.
  14943. (checkPieceHash): Removed.
  14944. (erasePieceOnDisk): Removed.
  14945. (getNewPieceAndSendInterest): Removed.
  14946. (onGotNewPice): Removed.
  14947. (onGotWrongPiece): Removed.
  14948. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14949. Removed peerConnection, piece.
  14950. (~PeerInteractionCommand): Removed peerConnection.
  14951. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14952. (syncPiece): Moved to SendMessageQueue.
  14953. (decideChoking): Removed PendingMessage.
  14954. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14955. The action after receiving peer message was moved to each message
  14956. class.
  14957. (onGotNewPice): Moved to SendMessageQueue.
  14958. (onGotWrongPiece): Moved to SendMessageQueue.
  14959. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14960. (sendInterest): Moved to SendMessageQueue.
  14961. (createRequestPendingMessage): Removed.
  14962. (sendMessages): Moved to SendMessageQueue.
  14963. (onAbort): Use SendMessageQueue::abortPiece()
  14964. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14965. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14966. (checkPieceHash): Moved to SendMessageQueue.
  14967. (erasePieceOnDisk): Moved to SendMessageQueue.
  14968. * src/PeerMessageUtil.h
  14969. (createBitfieldMessage): Removed.
  14970. (createHaveMessage): Changed return value and arguments.
  14971. (createBitfieldMessage): Changed return value and arguments.
  14972. (createRequestCancelMessage): Removed.
  14973. (createPieceMessage): Changed return value and arguments.
  14974. (getShortIntParam): New function.
  14975. (checkIndex): Changed arguments.
  14976. (checkBegin): Changed arguments.
  14977. (checkLength): Changed arguments.
  14978. (checkPieceOffset): Removed.
  14979. (checkRange): New function.
  14980. (checkBitfield): Changed arguments.
  14981. (createPeerMessage): Removed.
  14982. (checkIntegrity): Removed.
  14983. (createHandshakeMessage): Changed arguments.
  14984. (createChokeMessage): New function.
  14985. (createUnchokeMessage): New function.
  14986. (createInterestedMessage): New function.
  14987. (createNotInterestedMessage): New function.
  14988. (createRequestMessage): New function.
  14989. (createCancelMessage): New function.
  14990. (createPortMessage): New function.
  14991. * src/PeerMessageUtil.cc
  14992. (createBitfieldMessage): Removed.
  14993. (createHaveMessage): Changed return value and arguments.
  14994. (createBitfieldMessage): Changed return value and arguments.
  14995. (createRequestCancelMessage): Removed.
  14996. (createPieceMessage): Changed return value and arguments.
  14997. (getShortIntParam): New function.
  14998. (checkIndex): Changed arguments.
  14999. (checkBegin): Changed arguments.
  15000. (checkLength): Changed arguments.
  15001. (checkPieceOffset): Removed.
  15002. (checkRange): New function.
  15003. (checkBitfield): Changed arguments.
  15004. (createPeerMessage): Removed.
  15005. (checkIntegrity): Removed.
  15006. (createHandshakeMessage): Changed arguments.
  15007. (createChokeMessage): New function.
  15008. (createUnchokeMessage): New function.
  15009. (createInterestedMessage): New function.
  15010. (createNotInterestedMessage): New function.
  15011. (createRequestMessage): New function.
  15012. (createCancelMessage): New function.
  15013. (createPortMessage): New function.
  15014. * src/PeerMessage.h
  15015. (id): Removed.
  15016. (index): Removed.
  15017. (begin): Removed.
  15018. (length): Removed.
  15019. (bitfield): Removed.
  15020. (bitfieldLength): Removed.
  15021. (block): Removed.
  15022. (blockLength): Removed.
  15023. (inProgress): New variable.
  15024. (cuid): New variable.
  15025. (peer): New variable.
  15026. (sendMessageQueue): New variable.
  15027. (logger): New variable.
  15028. (setBitfield): Removed.
  15029. (getBitfield): Removed.
  15030. (setBlock): Removed.
  15031. (getBlock): Removed.
  15032. (getBitfieldLength): Removed.
  15033. (getBlockLength): Removed.
  15034. (isInProgress): New function.
  15035. (toString): Made pure virtual.
  15036. (check): New function.
  15037. (send): New function.
  15038. (receivedAction): New function.
  15039. (getId): Made pure virtual.
  15040. (setId): Removed.
  15041. (getIndex): Removed.
  15042. (setIndex): Removed.
  15043. (getBegin): Removed.
  15044. (setBegin): Removed.
  15045. (getLength): Removed.
  15046. (setLength): Removed.
  15047. (getCuid): New function.
  15048. (setCuid): New function.
  15049. (getPeer): New function.
  15050. (setPeer): New function.
  15051. (getSendMessageQueue): New function.
  15052. (setSendMessageQueue): New function.
  15053. (ID): Removed.
  15054. * src/PeerMessage.cc
  15055. (setBitfield): Removed.
  15056. (setBlock): Removed.
  15057. (toString): Removed.
  15058. * src/TorrentMan.h
  15059. (getPieceLength): New function.
  15060. (getPieceLength): New function.
  15061. * src/SendMessageQueue.h
  15062. (REQUEST_TIME_OUT): New definition.
  15063. (RequestSlots): New definition.
  15064. (MessageQueue): New definition.
  15065. (requestSlotMan): Removed.
  15066. (pendingMessages): Removed.
  15067. (requestSlots): New variable.
  15068. (messageQueue): New variable.
  15069. (torrentMan): New variable.
  15070. (peerConnection): New variable.
  15071. (peer): New variable.
  15072. (piece): New variable.
  15073. (getNewPieceAndSendInterest): New function.
  15074. (createPeerMessage): New function.
  15075. (createHandshakeMessage): New function.
  15076. (send): Made private.
  15077. (setPeerMessageCommonProperty): New function.
  15078. (deleteAllRequestSlot): New function.
  15079. (deleteRequestMessageInQueue): New function.
  15080. (cancelAllRequest): Made private.
  15081. (cancelAllRequest): Made private.
  15082. (countRequestSlot): Made private.
  15083. (addPendingMessage): Removed.
  15084. (deletePendingPieceMessage): Removed.
  15085. (deletePendingRequestMessage): Removed.
  15086. (addMessage): New function.
  15087. (deletePieceMessageInQueue): New function.
  15088. (deleteTimeoutRequestSlot): Changed argument.
  15089. (deleteCompletedRequestSlot): Changed argument.
  15090. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15091. (getCorrespondingRequestSlot): New function.
  15092. (countPendingMessage): Removed.
  15093. (countMessageInQueue): New function.
  15094. (getTorrentMan): New function.
  15095. (getPeerConnection): New function.
  15096. (hasDownloadPiece): New function.
  15097. (getDownloadPiece): New function.
  15098. (setDownloadPiece): New function.
  15099. (syncPiece): New function.
  15100. (sendMessages): New function.
  15101. (sendNow): New function.
  15102. (trySendNow): New function.
  15103. (abortPiece): New function.
  15104. (sendHandshake): New function.
  15105. (receiveMessage): New function.
  15106. (receiveHandshake): New function.
  15107. (createRequestMessage): New function.
  15108. (createCancelMessage): New function.
  15109. (createPieceMessage): New function.
  15110. (createHaveMessage): New function.
  15111. (createChokeMessage): New function.
  15112. (createUnchokeMessage): New function.
  15113. (createInterestedMessage): New function.
  15114. (createNotInterestedMessage): New function.
  15115. (createBitfieldMessage): New function.
  15116. (createKeepAliveMessage): New function.
  15117. * src/SendMessageQueue.cc
  15118. (SendMessageQueue): Removed requestSlotMan.
  15119. Instantiated peerConnection here.
  15120. (~SendMessageQueue): Removed requestSlotMan.
  15121. Added deletion of peerConnection and the contents of messageQueue.
  15122. (send): Updated according to the change of messageQueue.
  15123. (addPendingMessage): Renamed to addMessage.
  15124. (addMessage): New function.
  15125. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15126. (deletePieceMessageInQueue): New function.
  15127. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15128. (deleteRequestMessageInQueue): New function.
  15129. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15130. here.
  15131. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15132. (...) was moved here.
  15133. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15134. moved here.
  15135. (deleteCompletedRequestSlot):
  15136. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15137. (getCorrespondingRequestSlot):
  15138. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15139. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15140. (countPendingMessage): Renamed to countMessageInQueue.
  15141. (countMessageInQueue): New function.
  15142. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15143. (receiveHandshake): New function.
  15144. (createHandshakeMessage): New function.
  15145. (receiveMessage): New function.
  15146. (createPeerMessage): New function.
  15147. (syncPiece): New function.
  15148. (getNewPieceAndSendInterest): New function.
  15149. (sendMessages): New function.
  15150. (sendNow): New function.
  15151. (trySendNow): New function.
  15152. (sendHandshake): New function.
  15153. (abortPiece): New function.
  15154. (getDownloadPiece): New function.
  15155. (getPeerMessageCommonProperty): New function.
  15156. (createRequestMessage): New function.
  15157. (createCancelMessage): New function.
  15158. (createPieceMessage): New function.
  15159. (createHaveMessage): New function.
  15160. (createChokeMessage): New function.
  15161. (createUnchokeMessage): New function.
  15162. (createInterestedMessage): New function.
  15163. (createNotInterestedMessage): New function.
  15164. (createBitfieldMessage): New function.
  15165. (createKeepAliveMessage): New function.
  15166. To add simple Content-Disposition support:
  15167. * src/HttpResponseCommand.h (determinFilename): New function.
  15168. * src/HttpResponseCommand.cc (executeInternal):
  15169. Use determinFilename(headers) instead of req->getFile() when comparing
  15170. filename.
  15171. (determinFilename): New function.
  15172. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15173. req->getFile().
  15174. (handleOtherEncoding): Use determinFilename(headers) instead of
  15175. req->getFile().
  15176. * src/Util.h (getContentDispositionFilename): New function.
  15177. * src/Util.cc (getContentDispositionFilename): New function.
  15178. * src/LogFactory.h (release): New function.
  15179. * src/LogFactory.cc (release): New function.
  15180. To fix a bug that causes out-of-bound exception when HTTP status
  15181. line is wrong:
  15182. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15183. size.
  15184. * src/common.h (Deleter): New class.
  15185. * src/SegmentMan.cc
  15186. (~SegmentMan): Added deletion of splitter and diskWriter.
  15187. * src/DownloadEngine.h
  15188. (Commands): Use deque.
  15189. (clearQueue): New function.
  15190. * src/DownloadEngine.cc
  15191. (~DownloadEngine): Added deletion of segmentMan.
  15192. (cleanQueue): New function.
  15193. * src/TorrentDownloadEngine.h
  15194. (TorrentDownloadEngine): The implementation was moved to
  15195. TorrentDownloadEngine.cc.
  15196. (~TorrentDownloadEngine): The implementation was moved to
  15197. TorrentDownloadEngine.cc.
  15198. * src/TorrentDownloadEngine.cc
  15199. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15200. * src/main.cc
  15201. (clearRequest): Removed.
  15202. (handler): Added deletion of e.
  15203. (torrentHandler): Added deletion of te.
  15204. (main): Do not share splitter.
  15205. Use Deleter instead of clearRequest.
  15206. Deletion of classes were updated.
  15207. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15208. * src/main.cc (main): Fixed typo.
  15209. * src/message.h: Fixed typo.
  15210. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15211. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15212. To add --select-file command-line option:
  15213. * src/Util.cc
  15214. (unfoldRange): New function.
  15215. (getNum): New function.
  15216. (unfoldSubRange): New function
  15217. * src/main.cc
  15218. (showUsage): Added help message.
  15219. (main): Added --select-file command-line option. Updated the layout of
  15220. file listing.
  15221. * src/common.h
  15222. (Integers): New definition.
  15223. * src/SocketCore.cc
  15224. (writeData): Removed timeout argument.
  15225. (readData): Removed timeout argument.
  15226. (peekData): Removed timeout argument.
  15227. * src/Socket.cc
  15228. (writeData): Removed timeout argument.
  15229. (readData): Removed timeout argument.
  15230. (peekData): Removed timeout argument.
  15231. * Release 0.4.1
  15232. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15233. To deploy upload rate based choking algorithm:
  15234. * src/PeerInteractionCommand.cc
  15235. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15236. peer currently used.
  15237. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15238. download completes. Simplified.
  15239. (receiveMessage): Updated.
  15240. * src/TorrentMan.h
  15241. (activePeers): New variable.
  15242. (addActivePeer): New function.
  15243. (getActivePeers): New function.
  15244. (deleteActivePeer): New function.
  15245. * src/TorrentMan.cc
  15246. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15247. * src/PeerAbstractCommand.cc
  15248. (onAbort): Use peer->resetStatus().
  15249. * src/main.cc
  15250. (PeerChokeCommand.h): Included.
  15251. (main): Added the instance of ChokingCommand to the command queue.
  15252. * src/Peer.h
  15253. (amChoking): Renamed from amChocking
  15254. (chokingRequired): New variable.
  15255. (optUnchoking): New variable.
  15256. (deltaUpload): New variable.
  15257. (deltaDownload): New variable.
  15258. (addDeltaUpload): New function.
  15259. (resetDeltaUpload): New function.
  15260. (addDeltaDownload): New function.
  15261. (resetDeltaDownload): New function.
  15262. (addPeerUpload): Added a call to addDeltaUpload.
  15263. (addPeerDownload): Added a call to addDeltaDownload.
  15264. * src/Peer.cc
  15265. (shouldBeChoking): Renamed from shouldChoke.
  15266. (resetStatus): New function.
  15267. * src/PeerChokeCommand.h: New class.
  15268. * src/PeerChokeCommand.cc: New class.
  15269. To add lazy upload speed limiter:
  15270. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15271. statistics calculation to TorrentDownloadEngine.
  15272. * src/TorrentConsoleDownloadEngine.cc
  15273. (sendStatistics): Renamed from printStatistics.
  15274. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15275. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15276. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15277. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15278. calculation.
  15279. (sendStatistics): New function as pure virtual function.
  15280. (getUploadSpeed): New function.
  15281. * src/TorrentDownloadEngine.cc
  15282. (initStatistics): New function.
  15283. (calculateSpeed): New function.
  15284. (calculateStatistics): New function.
  15285. * src/SendMessageQueue.h
  15286. (uploadLength): New variable.
  15287. (send): Added an argument.
  15288. (setUploadLimit): New function.
  15289. (getUploadLimit): New function.
  15290. * src/SendMessageQueue.cc
  15291. (send): Added upload speed limiter.
  15292. * src/prefs.h
  15293. (PREF_UPLOAD_LIMIT): New definition.
  15294. * src/PeerInteractionCommand.cc
  15295. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15296. * src/main.cc
  15297. (main): Added --upload-limit option
  15298. For bug fixes:
  15299. * src/main.cc
  15300. (showUsage): Corrected --listen-port help
  15301. Other changes:
  15302. * src/TorrentMan.cc
  15303. (getPeer): Return nullPeer if connection is grather than
  15304. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15305. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15306. To add some useful information to the exception message:
  15307. * src/SocketCore.cc : Updated messages.
  15308. * src/SegmentMan.cc :
  15309. * src/TorrentMan.cc : Updated messages.
  15310. * src/MultiDiskWriter.cc : Updated messages.
  15311. * src/Util.cc : Updated messages.
  15312. * src/AbstractDiskWriter.cc : Updated messages.
  15313. * src/PreAllocationDiskWriter.cc : Updated messages.
  15314. * src/message.cc : Added new messages. Updated some messages.
  15315. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15316. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15317. Updated threshold from 30 to 15.
  15318. * src/AbstractDiskWriter.h (filename): New variable.
  15319. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15320. (createFile): Assigned filename.
  15321. * src/main.cc: Updated the help message for http-auth-scheme.
  15322. * Release 0.4.0
  15323. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15324. To add TrackerUpdateCommand with which replaces
  15325. CompactTrackerResponseProcessor:
  15326. * src/TrackerWatcherCommand.h (req): Removed.
  15327. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15328. if the number of peer connections are less than 30.
  15329. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15330. * src/SegmentMan.h (diskWriter): New function.
  15331. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15332. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15333. (main): Use TrackerUpdateCommand.
  15334. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15335. (req): New variable.
  15336. (setTrackerResponseProcessor): Removed.
  15337. (getTrackerResponseProcessor): Removed.
  15338. (processTrackerResponse): Removed.
  15339. * src/DownloadEngine.h (diskWriter): Removed.
  15340. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15341. to torrentMan->processTrackerResponse().
  15342. To add Util::expandBuffer:
  15343. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15344. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15345. * src/Util.h (expandBuffer): New function.
  15346. To fix the bug that causes segmentation fault when "-l ." is specified
  15347. in command-line option:
  15348. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15349. (openFile): New function.
  15350. (closeFile): New function.
  15351. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15352. (~SimpleLogger): Call closeFile();
  15353. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15354. * src/main.cc (main): Added a check to see logger is configured
  15355. properly.
  15356. To enable HTTP authentication without specifying "--http-auth-scheme"
  15357. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15358. * src/HttpConnection.cc (createRequest): Send Authorization header
  15359. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15360. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15361. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15362. * src/Peer.cc (shouldChoke): Updated algorithm.
  15363. * src/message.h (EX_AUTH_FAILED): New definition.
  15364. (EX_FILE_OPEN): New definition.
  15365. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15366. if status == 401.
  15367. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15368. if req->isTorrent == true.
  15369. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15370. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15371. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15372. (createFile): Updated message.
  15373. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15374. To add a readout of estimated remaining time to normal HTTP/FTP
  15375. downloads:
  15376. * src/ConsoleDownloadEngine.h (startup): New variable.
  15377. (startupLength): New variable.
  15378. (isStartupLengthSet): New variable.
  15379. (avgSpeed): New variable.
  15380. (eta): New variable.
  15381. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15382. estimated remaining time.
  15383. (initStatistics): Initialized newly added variables.
  15384. (calculateStatistics): Calculate average speed and estimated remaining
  15385. time.
  15386. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15387. * src/TrackerDownloadCommand.h: Removed.
  15388. * src/TrackerDownloadCommand.cc: Removed.
  15389. * src/TrackerInitCommand.h: Removed.
  15390. * src/TrackerInitCommand.cc: Removed.
  15391. * src/TrackerUpdateCommand.h: Removed.
  15392. * src/TrackerUpdateCommand.cc: Removed.
  15393. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15394. url written in TrackerInitCommand was moved here. Do not create
  15395. tracker request command if torrentMan->trackers != 0.
  15396. * src/CompactTrackerResponseProcessor.h: New class.
  15397. * src/CompactTrackerResponseProcessor.cc: New class.
  15398. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15399. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15400. Decoupled TorrentDownloadEngine from this.
  15401. * src/SegmentMan.h (init): New function.
  15402. * src/SegmentMan.cc (init): New function.
  15403. * src/TorrentMan.h (responseProcessor): New variable.
  15404. (trackers): New variable.
  15405. (setTrackerResponseProcessor): New function.
  15406. (getTrackerResponseProcessor): New function.
  15407. (processTrackerResponse): New function.
  15408. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15409. (processTrackerResponse): New function.
  15410. * src/main.cc (main): Use ByteArrayDiskWriter and
  15411. CompactTrackerResponseProcessor.
  15412. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15413. processTrackerResponse().
  15414. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15415. readout.
  15416. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15417. which indicates download has completed.
  15418. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15419. (closeFile): fd >= 0, not fd > 0
  15420. * src/main.cc (main): Added short cut for show-files.
  15421. Added short cut for torrent-file.
  15422. Added new command-line option listen-port.
  15423. Updated i18n messages.
  15424. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15425. To add LogFactory which creates singleton logger:
  15426. * src/LogFactory.h: New class.
  15427. * src/LogFactory.cc: New class.
  15428. * src/Command.h (logger): New variable.
  15429. (Constructor): Use LogFactory.
  15430. * src/AbstractCommand.cc: Use Command::logger
  15431. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15432. Use LogFactory.
  15433. * src/SegmentSplitter.h : Made logger protected.
  15434. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15435. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15436. * src/DownloadEngine.h : Made logger protected.
  15437. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15438. * src/PeerInteractionCommand.cc : Use Command::logger.
  15439. * src/HttpResponseCommand.cc : Use Command::logger.
  15440. * src/SegmentMan.h : Made logger private.
  15441. * src/TorrentMan.h : Made logger private.
  15442. * src/TorrentMan.cc : Use LogFactory.
  15443. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15444. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15445. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15446. Use LogFactory.
  15447. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15448. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15449. Use LogFactory.
  15450. * src/DownloadCommand.cc : Use Command::logger.
  15451. * src/PeerAbstractCommand.cc : Use Command::logger.
  15452. * src/PeerListenCommand.cc : Use Command::logger.
  15453. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15454. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15455. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15456. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15457. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15458. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15459. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15460. Use LogFactory.
  15461. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15462. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15463. Use LogFactory.
  15464. * src/main.cc (main): Use LogFactory.
  15465. * src/DiskAdaptor.h (logger): New variable.
  15466. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15467. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15468. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15469. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15470. parameter to a tracker request.
  15471. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15472. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15473. * src/main.cc (setSignalHander): New function.
  15474. (main): Added a handler for SIGTERM.
  15475. (handler): Updated message.
  15476. (torrentHandler): Updated message.
  15477. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15478. * src/TorrentConsoleDownloadEngine.cc
  15479. (onPartialDownloadingCompletes): Renamed as
  15480. onSelectiveDownloadingCompletes.
  15481. (onSelectiveDownloadingCompletes): Updated message.
  15482. To add DiskAdaptor which abstract DiskWriter family:
  15483. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15484. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15485. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15486. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15487. MultiDiskAdaptor.h.
  15488. (readFileEntry): Changed its arguments.
  15489. (setup): setupDiskWriter is merged into this function.
  15490. (setupDiskWriter): Removed.
  15491. (setFileFilter): New function.
  15492. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15493. made in readFileEntry.
  15494. (getFilePath): Removed.
  15495. (getTempFilePath): Removed.
  15496. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15497. (fixFilename): Removed.
  15498. (copySingleFile): Removed.
  15499. (splitMultiFile): Removed.
  15500. (deleteTempFile): Removed.
  15501. (setFileEntriesToDownload): Removed.
  15502. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15503. (isSelectiveDownloadingMode): New function.
  15504. (setAllMultiFileRequestedState): Removed.
  15505. (finishPartialDownloadingMode): Renamed as
  15506. finishSelectiveDownloadingMode.
  15507. (finishSelectiveDownloadingMode): New function.
  15508. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15509. (getSelectedTotalLength): New function.
  15510. (onDownloadComplete): Use diskAdaptor.
  15511. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15512. (Range): Removed.
  15513. (setMultiFileEntries): Renamed as setFileEntries.
  15514. (setFileEntries): New function.
  15515. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15516. (pieceLength): New variable.
  15517. * src/main.cc (printDownloadCompeleteMessage): New function.
  15518. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15519. (main): Renamed torrent-show-files to show-files.
  15520. Rewritten file contents listing.
  15521. * src/TorrentMan.h (FileEntry): Removed.
  15522. (multiFileTopDir): Removed.
  15523. (multiFileEntries): Removed.
  15524. (diskWriter): Removed.
  15525. (diskAdaptor): New variable.
  15526. * src/DefaultDiskWriter.h (totalLength): New variable.
  15527. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15528. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15529. diskWriter.
  15530. * src/TorrentConsoleDownloadEngine.h
  15531. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15532. (partialTotalLength): Renamed as selectedTotalLength.
  15533. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15534. openExistingFile, otherwise call initAndOpenFile.
  15535. (closeFile): fd > 0, not fd != 0.
  15536. * src/DirectDiskAdaptor.h: New class.
  15537. * src/DirectDiskAdaptor.cc: New class.
  15538. * src/MultiDiskAdaptor.h: New class.
  15539. * src/MultiDiskAdaptor.cc: New class.
  15540. * src/CopyDiskAdaptor.h: New class.
  15541. * src/CopyDiskAdaptor.cc: New class.
  15542. * src/DiskAdaptor.h: New class.
  15543. * src/DiskAdaptor.cc: New class.
  15544. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15545. (PREF_SHOW_FILES): New definition.
  15546. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15547. To add the ability to download multi torrent into respective files
  15548. directly:
  15549. * src/DiskWriter.h (openFile): New function.
  15550. (seek): Removed.
  15551. * src/MultiDiskWriter.h: New class.
  15552. * src/MultiDiskWriter.cc: New class.
  15553. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15554. protected.
  15555. (openFile): New function.
  15556. * src/AbstractDiskWriter.cc (openFile): New function.
  15557. * src/prefs.h (V_FALSE): New definition.
  15558. (PREF_DIRECT_FILE_MAPPING): New definition.
  15559. * src/TorrentMan.h (setupDiskWriter): New function.
  15560. (setAllMultiFileRequestedState): New function.
  15561. (onDownloadComplete): New function.
  15562. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15563. (setupDiskWriter): New function.
  15564. (getFilePath): Updated.
  15565. (getTempFilePath): Updated.
  15566. (getSegmentFilePath): Updated.
  15567. (fixFilename): Updated.
  15568. (deleteTempFile): Updated.
  15569. (setAllMultiFileRequestedState): New function.
  15570. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15571. (finishPartialDownloadingMode): Reset requested flags.
  15572. (onDownloadComplete): New function.
  15573. * src/main.cc: Added --direct-file-mapping option.
  15574. Use TorrentMan::setupDiskWriter().
  15575. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15576. onDownloadComplete().
  15577. To fix ETA bug:
  15578. * src/Util.h (difftvsec): New function.
  15579. * src/Util.cc (difftvsec): New function.
  15580. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15581. type of "elapsed" instead of long long int.
  15582. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15583. The updates of statistics takes place every 1 seconds.
  15584. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15585. (calculateSpeed): Changed its argument signature.
  15586. * src/PeerMessage.cc (toString): Fixed message.
  15587. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15588. To print ETA:
  15589. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15590. completion handling when dealing with
  15591. TorrentMan::isPartialDownloadingMode() == true.
  15592. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15593. New function.
  15594. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15595. (sessionDownloadLength): New variable.
  15596. (avgSpeed): New variable.
  15597. (eta): New variable.
  15598. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15599. new variables: eta, avgSpeed, startup.
  15600. (calculateSpeed): Calculate average speed and ETA.
  15601. (printStatistics): Added ETA.
  15602. * src/Util.h (secfmt): New function.
  15603. * src/Util.cc (secfmt): New function.
  15604. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15605. To detect "keep alive" flooding:
  15606. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15607. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15608. variable: keepAliveCount.
  15609. (detectMessageFlooding): Added "keep alive" flooding detection.
  15610. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15611. received.
  15612. To add the ability to download only specified files in multi-file
  15613. torrent:
  15614. * src/BitfieldMan.h (filterBitfield): New variable.
  15615. (filterEnabled): New variable.
  15616. (setFilterBit): New function.
  15617. (enableFilter): New function.
  15618. (disableFilter): New function.
  15619. (isFilterEnabled): New function.
  15620. (getFilteredTotalLength): New function.
  15621. (getCompletedLength): New function.
  15622. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15623. filterBitfield, filterEnabled.
  15624. (CopyConstructor): Added filterBitfield and filterEnabled.
  15625. (operator==): Added filterBitfield and filterEnabled.
  15626. (Destructor): Added filterBitfield.
  15627. (getMissingIndex): Use filterBitfield.
  15628. (getMissingUnusedIndex): Use filterBitfield.
  15629. (getFirstMissingUnusedIndex): Use filterBitfield.
  15630. (getFirstMissingUnusedIndex): Use filterBitfield.
  15631. (getAllMissingIndexes): Use filterBitfield.
  15632. (countMissingBlock): Use filterBitfield.
  15633. (countBlock): Use filterBitfield.
  15634. (setBitInternal): Added new argument on.
  15635. (setUseBit): Use setBitInternal.
  15636. (unsetUseBit): Use setBitInternal.
  15637. (setBit): Use setBitInternal.
  15638. (unsetBit): Use setBitInternal.
  15639. (isAllBitSet): Use filterBitfield.
  15640. (setFilterBit): New function.
  15641. (addFilter): New function.
  15642. (enableFilter): New function.
  15643. (disableFilter): New function.
  15644. (clearFilter): New function.
  15645. (isFilterEnabled): New function.
  15646. (getFilteredTotalLength): New function.
  15647. (getCompletedLength): New function.
  15648. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15649. Initalized newly added variables.
  15650. [FileEntry](offset): New variable.
  15651. [FileEntry](extracted): New variable.
  15652. [FileEntry](requested): New variable.
  15653. (readFileEntry): New function.
  15654. (option): New variable.
  15655. (splitMultiFile): Removed const qualifier.
  15656. (fixFilename): Removed const qualifier.
  15657. (readFileEntryFromMetaInfoFile): New function.
  15658. (finishPartialDownloadingMode): New function.
  15659. (isPartialDownloadingMode): New function.
  15660. (setFileEntriesToDownload): New function.
  15661. (getCompletedLength): New function.
  15662. (getPartialTotalLength): New function.
  15663. * src/TorrentMan.cc (readFileEntry): New function.
  15664. (setup): Use readFileEntry. If no-preallocation option is specified,
  15665. use DefaultDiskWriter.
  15666. (readFileEntryFromMetaInfoFile): New function.
  15667. (fixFilename): Removed const qualifier.
  15668. (splitMultiFile): Removed const qualifier.
  15669. (setFileEntriesToDownload): New function.
  15670. (isPartialDownloadingMode): New function.
  15671. (finishPartialDownloadingMode): New function.
  15672. (getCompletedLength): New function.
  15673. (getPartialTotalLength): New function.
  15674. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15675. New variable.
  15676. (partialTotalLength): New variable.
  15677. (downloadLength): New variable.
  15678. (totalLength): New variable.
  15679. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15680. Added log.
  15681. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15682. partialTotalLength, downloadLength, totalLength.
  15683. (calculate): Calculate downloadLength and totalLength.
  15684. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15685. * src/main.cc (addCommand): Changed argument signature.
  15686. (main): Added new variable: args. Added new option "torrent-show-files"
  15687. "no-preallocation". Usage is not updated yet.
  15688. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15689. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15690. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15691. Attempt to add the ability to listing file entries in a .torrent file.
  15692. This feature is not yet complete.
  15693. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15694. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15695. (getName): New function.
  15696. * src/TorrentMan.h (getMultiFileEntries): New function.
  15697. (getName): New function.
  15698. * src/main.cc (main): Use above 2 funtion.
  15699. * Release 0.3.2
  15700. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15701. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15702. (detectMessageFlooding): Updated threshold value.
  15703. (checkLongTimePeerChoking): Updated timeout value.
  15704. (getNewPieceAndSendInterest): Added debug log.
  15705. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15706. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15707. (getPeer): Updated.
  15708. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15709. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15710. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15711. is localhost.
  15712. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15713. * src/PendingMessage.cc (processMessage): Not to send piece message
  15714. if peer is not interested in the pieces localhost has.
  15715. * src/Peer.cc (shouldChoke): Updated.
  15716. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15717. * src/Util.cc (isPowerOf): New function.
  15718. * src/Util.h (isPowerOf): New function.
  15719. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15720. whether or not it is power of 2.
  15721. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15722. Added new class SendMessageQueue that includes PendingMessages and
  15723. RequestSlotMan.
  15724. * src/SendMessageQueue.h: New class.
  15725. * src/SendMessageQueue.cc: New class.
  15726. * src/PendingMessage.h: Added new member variable blockIndex and its
  15727. accessors.
  15728. (createRequestMessage): Updated.
  15729. * src/PendingMessage.cc (createRequestMessage): Updated.
  15730. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15731. SendMessageQueue.
  15732. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15733. (receiveMessage): Updated with SendMessageQueue.
  15734. (deletePendingPieceMessage): Removed.
  15735. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15736. (sendInterest): Updated with SendMessageQueue.
  15737. (createRequestPendingMessage): Updated with SendMessageQueue.
  15738. (sendMessages): Updated with SendMessageQueue.
  15739. (onAbort): Updated with SendMessageQueue.
  15740. (keepAlive): Updated with SendMessageQueue.
  15741. (beforeSocketCheck): Updated SendMessageQueue.
  15742. * src/PeerInteractionCommand (sendMessages): Shuffle
  15743. missingBLockIndexes before using it.
  15744. Added its own timeout for peer connection.
  15745. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15746. setter.
  15747. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15748. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15749. Added setTimeout() call.
  15750. (executeInternal): Added setTimeout() call.
  15751. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15752. Added timeout.
  15753. (isTimeoutDetected): Updated.
  15754. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15755. option.
  15756. Added *simple* message flooding checker.
  15757. * src/PeerInteractionCommand.cc (executeInternal):
  15758. Added detectMessageFlooding() call.
  15759. (detectMessageFlooding): New function.
  15760. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15761. (beforeSocketCheck): Added detectMessageFlooding() call.
  15762. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15763. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15764. Removed deletePendingPieceMessage(), getRequestSlot(),
  15765. deleteRequestSlot(), deleteAllRequestSlot().
  15766. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15767. Added checkLongTimePeerChoking() call.
  15768. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15769. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15770. if duplicate == false.
  15771. The parameter "uploaded" and "downloaded" in the tracker request are
  15772. the size since the client sent the "started" event to the tracker.
  15773. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15774. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15775. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15776. getSessionDownloadedSize(), getSessionUploadedSize().
  15777. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15778. getSessionUploadedSize() instead of getDownloadedSize(),
  15779. getUploadedSize().
  15780. * src/PendingMessage.cc (processMessage): Do not send request message
  15781. if the peer is choking the client.
  15782. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15783. less than interval.
  15784. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15785. * configure.in: Added gnutls support. Added several CPP macros.
  15786. * m4/openssl.m4: Added.
  15787. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15788. readData(), peekData(). Added gnutls support.
  15789. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15790. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15791. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15792. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15793. Instead, added a check for whether setup method has executed
  15794. successfully.
  15795. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15796. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15797. * src/Makefile.am: Updated.
  15798. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15799. using whether OpenSSL or gcrypt, depending on the result of configure
  15800. script.
  15801. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15802. messageDigest.h.
  15803. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15804. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15805. Fixed memory leak.
  15806. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15807. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15808. Removed instantiation of TrackerInitCommand. Instead,
  15809. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15810. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15811. ENABLE_SSL.
  15812. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15813. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15814. If a piece is already acquired by another command, delete the request
  15815. slots for the piece.
  15816. * src/TrackerUpdateCommand.cc (execute):
  15817. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15818. Added a check whether peer list is null.
  15819. Fixed the bug that causes sending completed event to the tracker
  15820. several times.
  15821. * src/TrackerInitCommand.cc (execute):
  15822. Fixed the bug that causes sending completed event to the tracker
  15823. several times.
  15824. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15825. by using messageDigest.h.
  15826. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15827. * PeerConnection.cc: Replaced log message "keep-alive" with
  15828. "keep alive".
  15829. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15830. localhost long time.
  15831. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15832. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15833. at most 100 failure entry from the list. If with duplicate = false,
  15834. MAX_PEER_LIST is not checked.
  15835. * PeerListenCommand.cc: Fixed the argument order of log message.
  15836. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15837. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15838. Added warn().
  15839. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15840. Implemented warn().
  15841. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15842. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15843. * Request.h: Added AFTER_COMPLETED event.
  15844. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15845. instead of downloaded size and progress(%) after download completes.
  15846. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15847. message to the peer if it is interested in what localhost has
  15848. downloaded.
  15849. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15850. destination instead of just renaming it.
  15851. * TorrentMan.cc: Added deleteTempFile().
  15852. * PeerAbstractCommand.cc: do not stop execution after download
  15853. completes. This makes localhost a seeder.
  15854. * Util.{h,cc}: Added fileCopy().
  15855. * PeerListenCommand.cc: do not stop execution after download completes.
  15856. This makes localhost a seeder.
  15857. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15858. Added TorrentMan::deleteTempFile() to torrentHandler.
  15859. Initialized the variable dir as ".".
  15860. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15861. Deleted renameSingleFile().
  15862. Added copySingleFile(), deleteTempFile().
  15863. * DownloadEngine.h: Added virtual function afterEachIteration().
  15864. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15865. in onEndOfRun() to afterEachIteration().
  15866. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15867. true.
  15868. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15869. In rangedFileCopy(), added try-catch block to properly close file
  15870. descriptors.
  15871. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15872. Added afterEachIteration(), isFilenameFixed().
  15873. * Peer.cc: Changed choking strategy.
  15874. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15875. * TrackerInitCommand.cc: Send completed event only once.
  15876. * DownloadEngine.cc: Added a call to afterEachIteration().
  15877. * TrackerUpdateCommand.cc: Do not stop execution after download
  15878. completes.
  15879. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15880. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15881. received from a tracker.
  15882. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15883. Decreased the number of failure peers to delete to 0(just comment out
  15884. the line).
  15885. * Release 0.3.1
  15886. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15887. * PeerInteractionCommand.cc: added a call to
  15888. TorrentMan::unadvertisePiece in Destructor.
  15889. * PeerInteractionCommand.cc: make have message sent immediately
  15890. if the size of pending message queue is zero.
  15891. * TorrentMan.cc: set the maximum size of peer list to 250.
  15892. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15893. to deque.
  15894. * Util.cc: fixed rangedFileCopy.
  15895. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15896. to Constructor. Also, moved digest cleanup to Destructor.
  15897. * MetaFileUtil.cc: fixed memory leak
  15898. * replaced std::vector with std::deque.
  15899. * AbstractCommand.cc: casted timeout value to long long int.
  15900. * ChunkedEncoding.cc: fixed memory leak.
  15901. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15902. * SleepCommand.cc: casted timeout value to long long int.
  15903. * Data.cc: fixed memory leak.
  15904. * Data.cc: fixed toLLInt().
  15905. * BitfieldMan.cc: fixed memory leak.
  15906. * TorrentMan.cc: initialized storeDir to ".".
  15907. * TorrentMan.cc: fixed memory leak.
  15908. * TorrentMan.cc: corrected file paths of splitted files.
  15909. * PeerAbstractCommand.cc: casted timeout to long long int.
  15910. * main.cc: added delete(req) and delete(te->diskWriter).
  15911. * RequestSlot.cc: casted timeout value to long long int.
  15912. * Request.cc: fixed memory leak.
  15913. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15914. have the piece.
  15915. * Peer.{h,cc}: added hasPiece(int index).
  15916. * main.cc: corrected addCommand.
  15917. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15918. * BitTorrent protocol support added.
  15919. * Release 0.3.0
  15920. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15921. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15922. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15923. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15924. decoding did not work properly.
  15925. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15926. * DownloadEngine.h: included sys/time.h
  15927. * DownloadEngine.cc: remove sys/time.h
  15928. * Makefile.am (SUBDIRS): Add intl.
  15929. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15930. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15931. * main.cc: correct help message for --http-auth-scheme.
  15932. * main.cc: changed e-mail address for bug reports.
  15933. * ja.po: added japanese translation.
  15934. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15935. * SimpleLogger.cc: flush log file instead of stdout.
  15936. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15937. * main.cc: Fixed command-line option: max-tries
  15938. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15939. does not equal to seg.sp.
  15940. * DownloadCommand.cc: If EOF is got from the server and the total size
  15941. of file is not zero, then throw DlRetryEx.
  15942. * main.cc: Set the minium value of min-segment-size to 1024.
  15943. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15944. fails because of a regression since 0.2.0 release.
  15945. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15946. * HttpConnection.cc:
  15947. * common.h: defined the user agent name as macro
  15948. * DownloadEngine.{h, cc}:
  15949. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15950. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15951. * main.cc: Download complete/abort message is now generated by main.
  15952. * Makefile.am (SUBDIRS): Add m4.
  15953. (ACLOCAL_AMFLAGS): New variable.
  15954. (EXTRA_DIST): New variable.
  15955. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15956. * gettext: added gettext functionality
  15957. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15958. * AbstractCommand.cc:
  15959. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15960. unregister its cuid from SegmentMan.
  15961. * DownloadEngine.cc: .aria2 file was written when a downloading
  15962. failed with errors.
  15963. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15964. Added "User-Agent" header to CONNECT proxy request.
  15965. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15966. properly.
  15967. * Logger.h:
  15968. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15969. * ChunkedEncoding.cc: Added #include directive for strings.h
  15970. * Release 0.2.1
  15971. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15972. * Util.{h,cc}: added startsWith().
  15973. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15974. Util::endsWith().
  15975. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15976. * common.h: added #include directive of limit.h.
  15977. * DownloadEngine.cc: added #include directive of sys/time.h and
  15978. algorithm.
  15979. * Exception.h: added #include directive of stdio.h.
  15980. * AbstractCommand.h: added #include directive of sys/time.h.
  15981. * DownloadCommand.h: added #include directive of sys/time.h.
  15982. * *.h: added #include directive of common.h to all base classes.
  15983. subclasses' one was removed.
  15984. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15985. does not define these macros.
  15986. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15987. * Release 0.2.0
  15988. * main.cc:
  15989. * HttpInitiateConnectionCommand.{h,cc}:
  15990. * prefs.h:
  15991. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15992. We can now use GET command in http proxy.
  15993. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15994. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15995. that splits slowest segment of SegmentMan::commands vector.
  15996. This is the default split algorithm of aria2.
  15997. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15998. that splits first segment of SegmentMan::commands vector.
  15999. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16000. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16001. * Segment.h:
  16002. * SegmentMan.cc: Added speed field to Segment.h
  16003. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16004. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16005. * message.h: Change file size related %d to %lld.
  16006. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16007. * FtpInitiateConnectionCommand.{h,cc}:
  16008. * FtpNegotiationCommand.{h,cc}:
  16009. * FtpDownloadCommand.{h,cc}:
  16010. * FtpConnection.{h,cc}: Added FTP support
  16011. * SimpleLogger.cc: Log message now includes time information.
  16012. * main.cc: The value of --http-auth-scheme option is chagned from
  16013. 'BASIC' to 'basic'
  16014. * main.cc: Added --timeout command-line option.
  16015. * main.cc: Added --min-segment-size command-line option.
  16016. * main.cc: Added --max-retries command-line option.
  16017. * prefs.h: option string constants are now defined in prefs.h
  16018. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16019. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16020. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16021. with version 0.1.0's one.
  16022. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16023. * configure.in: Added --enable-ssl option to configure script.
  16024. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16025. cannot permit absoluteURI as Request-URI.
  16026. * HttpConnection.cc: Added Referer support.
  16027. * main.cc: Added referer command-line option.
  16028. * main.cc: Added rety-wait command-line option.
  16029. * Exception.h: Fixed formating bug in Exception::setMsg()
  16030. * SocketCore.{h,cc}:
  16031. * Socket.{h, cc}:
  16032. * Request.cc:
  16033. * InitiateConnectionCommandFactory.cc:
  16034. * HttpRequestCommand.cc: Added HTTPS support.
  16035. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16036. for SocketCore.
  16037. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16038. size is wrong
  16039. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16040. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16041. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16042. * Release 0.1.0