ChangeLog 626 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053
  1. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Quoted localedir
  3. * src/Makefile.am
  4. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  6. utime. Check header for utime.h.
  7. * configure.ac
  8. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  10. * configure.ac
  11. * src/daemon.cc
  12. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Don't set localedir manually. Leave it to autoconf.
  14. * configure.ac
  15. * src/Makefile.am
  16. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Added --install to ACLOCAL_AMFLAGS.
  18. Removed m4 from SUBDIRS.
  19. Updated automake 1.11 and autoconf 2.64.
  20. Replaced some obsolute macros with new one.
  21. * Makefile.am
  22. * configure.ac
  23. * m4/aria2_arg.m4
  24. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Removed Makefile.am in m4 directory.
  26. * configure.ac
  27. * m4/ChangeLog
  28. * m4/Makefile.am
  29. * m4/Makefile.in
  30. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Removed unused m4 macros.
  32. * m4/intldir.m4
  33. * m4/inttypes.m4
  34. * m4/isc-posix.m4
  35. * m4/libgnutls-extra.m4
  36. * m4/ulonglong.m4
  37. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Fixed the bug that causes segmentation fault if
  39. req->getCurrentUrl() contains printf formatting characters such as
  40. %d. The statement that causes this bug is useless and removed.
  41. * src/AbstractCommand.cc
  42. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. * Release 1.6.1
  44. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Updated Simplified Chinese translation. Thanks to translators.
  46. * po/zh_CN.po
  47. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  48. Updated translation template
  49. * po
  50. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Bump up version number to 1.6.1
  52. * configure.ac
  53. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Changed interval from 120 to 60 for dropping inactive peer.
  55. * src/DefaultBtInteractive.cc
  56. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  57. Updated man page for --user-agent and --peer-id-prefix option.
  58. * doc/aria2c.1.txt
  59. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. Code clean up
  61. * src/BtPostDownloadHandler.cc
  62. * src/ContentTypeRequestGroupCriteria.cc
  63. * src/ContentTypeRequestGroupCriteria.h
  64. * src/DownloadHandlerConstants.cc
  65. * src/DownloadHandlerConstants.h
  66. * src/DownloadHandlerFactory.cc
  67. * src/MetalinkPostDownloadHandler.cc
  68. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  69. Don't save control file when aria2 exists while checking piece
  70. hash(behavior of -V option). If control file doesn't exist when
  71. aria2 launched, the completed length in saved control file will be
  72. 0 byte and this confuses user. disableSaveControlFile() is called
  73. in RequestGroup::processCheckIntegrityEntry().
  74. enableSaveControlFile() will be called after hash checking is
  75. done. See CheckIntegrityCommand.
  76. * src/CheckIntegrityCommand.cc
  77. * src/RequestGroup.cc
  78. * src/RequestGroup.h
  79. * src/RequestGroupMan.cc
  80. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Included version number in Peer ID and client version. Peer ID
  82. now starts with "aria2/VERSION-", where VERSION is
  83. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  84. * src/DefaultBtInteractive.cc
  85. * src/OptionHandlerFactory.cc
  86. * src/bittorrent_helper.cc
  87. * src/bittorrent_helper.h
  88. * src/main.cc
  89. * src/usage_text.h
  90. * test/BittorrentHelperTest.cc
  91. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Fixed memory leak.
  93. * src/DownloadCommand.cc
  94. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Removed server, port, user and passwd key from options before
  96. XMLRPC::Client.call since they are not options of aria2.
  97. * doc/xmlrpc/aria2mon
  98. * doc/xmlrpc/aria2rpc
  99. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Included version number in user-agent string.
  101. * src/OptionHandlerFactory.cc
  102. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Fixed the bug that the option values changed by XML-RPC
  104. method(changeOption and changeGlobalOption) are overwritten to the
  105. previous value by the next these request which doesn't contain
  106. that option value. Supporse max-download-limit is initially 0. You
  107. changed this value to 100K by changeOption. Then you issue
  108. changeOption request to change max-upload-limit to 50K. This
  109. second request doesn't contain xml-download-limit, so it is back
  110. to initial value, 0. Another improvement is that exception is
  111. thrown when changeOption and changeGlobalOption request contains
  112. option name which doesn't allowed in each request.
  113. * src/DownloadEngine.h
  114. * src/XmlRpcMethod.cc
  115. * src/XmlRpcMethod.h
  116. * src/XmlRpcMethodImpl.cc
  117. * src/download_helper.cc
  118. * src/download_helper.h
  119. * test/XmlRpcMethodTest.cc
  120. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Added missing MetalinkParserStateImpl.{cc,h}
  122. * src/MetalinkParserStateImpl.cc
  123. * src/MetalinkParserStateImpl.h
  124. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Put all MetalinkParserState subclasses into
  126. MetalinkParserStateImpl.cc. Use stack to track element structure.
  127. * src/FileMetalinkParserState.cc: Removed
  128. * src/FileMetalinkParserState.h: Removed
  129. * src/FilesMetalinkParserState.cc: Removed
  130. * src/FilesMetalinkParserState.h: Removed
  131. * src/FinMetalinkParserState.cc: Removed
  132. * src/FinMetalinkParserState.h: Removed
  133. * src/HashMetalinkParserState.cc: Removed
  134. * src/HashMetalinkParserState.h: Removed
  135. * src/InitialMetalinkParserState.cc: Removed
  136. * src/InitialMetalinkParserState.h: Removed
  137. * src/LanguageMetalinkParserState.cc: Removed
  138. * src/LanguageMetalinkParserState.h: Removed
  139. * src/Makefile.am
  140. * src/MetalinkMetalinkParserState.cc: Removed
  141. * src/MetalinkMetalinkParserState.h: Removed
  142. * src/MetalinkParserState.h
  143. * src/MetalinkParserStateMachine.cc
  144. * src/MetalinkParserStateMachine.h
  145. * src/OSMetalinkParserState.cc: Removed
  146. * src/OSMetalinkParserState.h: Removed
  147. * src/PieceHashMetalinkParserState.cc: Removed
  148. * src/PieceHashMetalinkParserState.h: Removed
  149. * src/PiecesMetalinkParserState.cc: Removed
  150. * src/PiecesMetalinkParserState.h: Removed
  151. * src/ResourcesMetalinkParserState.cc: Removed
  152. * src/ResourcesMetalinkParserState.h: Removed
  153. * src/SignatureMetalinkParserState.cc: Removed
  154. * src/SignatureMetalinkParserState.h: Removed
  155. * src/SizeMetalinkParserState.cc: Removed
  156. * src/SizeMetalinkParserState.h: Removed
  157. * src/SkipTagMetalinkParserState.cc: Removed
  158. * src/SkipTagMetalinkParserState.h: Removed
  159. * src/URLMetalinkParserState.cc: Removed
  160. * src/URLMetalinkParserState.h: Removed
  161. * src/VerificationMetalinkParserState.cc: Removed
  162. * src/VerificationMetalinkParserState.h: Removed
  163. * src/VersionMetalinkParserState.cc: Removed
  164. * src/VersionMetalinkParserState.h: Removed
  165. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Move all functions in PeerMessageUtil to bittorrent_helper.
  167. * src/BtBitfieldMessage.cc
  168. * src/BtBitfieldMessageValidator.h
  169. * src/BtExtendedMessage.cc
  170. * src/BtHandshakeMessage.cc
  171. * src/BtHandshakeMessageValidator.h
  172. * src/BtPieceMessage.cc
  173. * src/BtPieceMessageValidator.h
  174. * src/BtPortMessage.cc
  175. * src/DHTFindNodeReplyMessage.cc
  176. * src/DHTGetPeersReplyMessage.cc
  177. * src/DHTMessageFactoryImpl.cc
  178. * src/DHTRoutingTableDeserializer.cc
  179. * src/DHTRoutingTableSerializer.cc
  180. * src/DHTTokenTracker.cc
  181. * src/DefaultBtMessageFactory.cc
  182. * src/IndexBtMessage.cc
  183. * src/IndexBtMessage.h
  184. * src/IndexBtMessageValidator.h
  185. * src/Makefile.am
  186. * src/PeerMessageUtil.cc: Removed.
  187. * src/PeerMessageUtil.h: Removed.
  188. * src/RangeBtMessage.cc
  189. * src/RangeBtMessage.h
  190. * src/RangeBtMessageValidator.h
  191. * src/UTPexExtensionMessage.cc
  192. * src/ZeroBtMessage.cc
  193. * src/ZeroBtMessage.h
  194. * src/bittorrent_helper.cc
  195. * src/bittorrent_helper.h
  196. * test/BittorrentHelperTest.cc
  197. * test/BtAllowedFastMessageTest.cc
  198. * test/BtBitfieldMessageTest.cc
  199. * test/BtCancelMessageTest.cc
  200. * test/BtChokeMessageTest.cc
  201. * test/BtExtendedMessageTest.cc
  202. * test/BtHandshakeMessageTest.cc
  203. * test/BtHaveAllMessageTest.cc
  204. * test/BtHaveMessageTest.cc
  205. * test/BtHaveNoneMessageTest.cc
  206. * test/BtInterestedMessageTest.cc
  207. * test/BtNotInterestedMessageTest.cc
  208. * test/BtPieceMessageTest.cc
  209. * test/BtPortMessageTest.cc
  210. * test/BtRejectMessageTest.cc
  211. * test/BtRequestMessageTest.cc
  212. * test/BtSuggestPieceMessageTest.cc
  213. * test/BtUnchokeMessageTest.cc
  214. * test/DHTFindNodeReplyMessageTest.cc
  215. * test/DHTGetPeersReplyMessageTest.cc
  216. * test/DHTMessageFactoryImplTest.cc
  217. * test/DHTRoutingTableDeserializerTest.cc
  218. * test/DHTRoutingTableSerializerTest.cc
  219. * test/DefaultBtMessageFactoryTest.cc
  220. * test/DefaultExtensionMessageFactoryTest.cc
  221. * test/Makefile.am
  222. * test/PeerListProcessorTest.cc
  223. * test/PeerMessageUtilTest.cc: Removed.
  224. * test/UTPexExtensionMessageTest.cc
  225. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Limit the size of values list when sending get_peers reply.
  227. * src/DHTGetPeersReplyMessage.cc
  228. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Updated banner
  230. * doc/xmlrpc/aria2rpc
  231. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Added missing help message for remove command.
  233. * doc/xmlrpc/aria2rpc
  234. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Generated configure and config.h.in
  236. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  237. Add check for fork(), which is missing on MinGW
  238. * src/daemon.cc
  239. * configure.ac
  240. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  242. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  243. Util::httpGMT().
  244. * src/Util.cc
  245. * src/Util.h
  246. * test/UtilTest.cc
  247. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  248. * Release 1.6.0
  249. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Fixed a path to xmlrpc/README.txt
  251. * doc/Makefile.am
  252. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Added XML-RPC in -v Configuration output.
  254. * src/FeatureConfig.cc
  255. * src/FeatureConfig.h
  256. * test/FeatureConfigTest.cc
  257. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Updated Bulgarian, Russian, Slovak and Japanese
  259. translations. Thanks to all translators.
  260. * po/bg.po
  261. * po/ja.po
  262. * po/ru.po
  263. * po/sk.po
  264. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Removed --retry-wait option from aria2rpc
  266. * doc/xmlrpc/aria2rpc
  267. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Removed --retry-wait option from man page.
  269. * doc/aria2c.1.txt
  270. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  271. Removed --retry-wait option since the current architecture doesn't
  272. allow sleep for particular URI.
  273. * src/AbstractCommand.cc
  274. * src/OptionHandlerFactory.cc
  275. * src/download_helper.cc
  276. * src/prefs.cc
  277. * src/prefs.h
  278. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Removed Retry-After header support. Since the current architecture
  280. doesn't allow sleep for particular URI.
  281. * src/HttpSkipResponseCommand.cc
  282. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Updated the help message for --daemon option.
  284. * doc/aria2c.1.txt
  285. * src/usage_text.h
  286. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Added our own daemon() function for systems which desn't have
  288. daemon(3).
  289. * configure.ac
  290. * src/Makefile.am
  291. * src/daemon.cc
  292. * src/daemon.h
  293. * src/option_processing.cc
  294. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Simplified File::getCurrentDir()
  296. * src/File.cc
  297. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Use exit() instead of _exit
  299. * src/RequestGroupMan.cc
  300. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Replaced "CATEGORY" with "TAGS".
  302. * src/usage_text.h
  303. * doc/aria2c.1.txt
  304. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Updated the help message for --help option.
  306. * src/usage_text.h
  307. * doc/aria2c.1.txt
  308. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Updated man page for added help tags.
  310. * doc/aria2c.1.txt
  311. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Added help category #file. Added #file tag to the options related
  313. to downloaded file.
  314. * src/OptionHandlerFactory.cc
  315. * src/help_tags.h
  316. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. Added help categories: #cookie and #hook. Added #https tag to
  318. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  319. * src/OptionHandlerFactory.cc
  320. * src/help_tags.h
  321. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Made MSG_NOT_FILE translatable.
  323. * src/message.h
  324. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Updated man page for --help option.
  326. * doc/aria2c.1.txt
  327. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Updated doc.
  329. * src/XmlRpcMethod.h
  330. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Help category now starts with "#" to distinguish a category from
  332. keyword search. For example, "http" categroy is now "#http". You
  333. can type "--help=#http" to get explanation of options related to
  334. http. If '#' is omitted, then the argument is treated as a keyword
  335. and aria2 searches options whose name includes the keyword and
  336. print matched ones. For example, "--help=http" will show options
  337. whose name includes "http".
  338. * src/OptionHandlerFactory.cc
  339. * src/help_tags.h
  340. * src/usage_text.h
  341. * src/version_usage.cc
  342. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Documented missing experimental tag and newly added xml-rpc tag in
  344. man page.
  345. * doc/aria2c.1.txt
  346. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Added xml-rpc help tag. Tagged xml-rpc related options with
  348. xml-rpc tag.
  349. * src/OptionHandlerFactory.cc
  350. * src/help_tags.h
  351. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Updated message when a path is not a file. Updated common message
  353. for wrong option.
  354. * src/OptionHandlerException.cc
  355. * src/message.h
  356. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Use File::isFile() instead of File::exists(). Updated message when
  358. a path is not a file.
  359. * src/OptionHandlerImpl.cc
  360. * src/message.h
  361. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Fixed the bug that server performence profile is not updated when
  363. aria2c was terminated by emergency shutdown.
  364. * src/TrackerWatcherCommand.cc
  365. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. Use LocalFilePathOptionHandler for -T and -M option.
  367. Updated message of MSG_FILE_NOT_EXIST.
  368. * src/OptionHandlerFactory.cc
  369. * src/message.h
  370. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Added LocalFilePathOptionHandler which check whether the specified
  372. file path does exist or not.
  373. * src/OptionHandlerImpl.cc
  374. * src/message.h
  375. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Updated wiki page URI.
  377. * README
  378. * doc/aria2c.1.txt
  379. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Added README.txt for xmlrpc directory.
  381. * doc/Makefile.am
  382. * doc/xmlrpc/README.txt
  383. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Bump up version number to 1.6.0.
  385. * configure.ac
  386. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Added XML-RPC client scripts written in ruby.
  388. * doc/Makefile.am
  389. * doc/xmlrpc/aria2mon
  390. * doc/xmlrpc/aria2rpc
  391. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Added support for IPv6 literal address in URI. Now aria2 can
  393. handle URI such as http://[::1]/
  394. * src/HttpRequest.cc
  395. * src/HttpRequest.h
  396. * src/Request.cc
  397. * src/Request.h
  398. * test/HttpRequestTest.cc
  399. * test/OptionHandlerTest.cc
  400. * test/RequestTest.cc
  401. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Fixed the bug that HTTP request header for XML-RPC request is not
  403. parsed properly.
  404. * src/HttpHeader.cc
  405. * src/HttpHeaderProcessor.cc
  406. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Fixed the bug that XML-RPC authorization might be done before HTTP
  408. request header is fully received.
  409. * src/HttpServerCommand.cc
  410. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Documented --xml-rpc-listen-all option in man page.
  412. * doc/aria2c.1.txt
  413. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Added --xml-rpc-listen-all option. If true is given to this
  415. option, aria2 listens incoming XML-RPC requests on all network
  416. interfaces. If false is given, listens only on local loopback
  417. interface. The default value is false.
  418. * src/HttpListenCommand.cc
  419. * src/OptionHandlerFactory.cc
  420. * src/SocketCore.cc
  421. * src/SocketCore.h
  422. * src/prefs.cc
  423. * src/prefs.h
  424. * src/usage_text.h
  425. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. * Release 1.5.2
  427. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. Updated Ukrainian and Russian translations. Thanks to all
  429. translators.
  430. * po/ru.po
  431. * po/uk.po
  432. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Bump up version number to 1.5.2
  434. * configure.ac
  435. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Get comment, comment.utf-8, created by and creation date from
  437. .torrent file and print them in -S output.
  438. * src/bittorrent_helper.cc
  439. * src/bittorrent_helper.h
  440. * test/BittorrentHelperTest.cc
  441. * test/test.torrent
  442. * test/utf8.torrent
  443. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Show exact file size along in -S option output.
  445. * src/Util.h
  446. * src/bittorrent_helper.cc
  447. * test/UtilTest.cc
  448. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Avoided unnecessary memory allocation in
  450. BitfieldMan::getCompletedLength().
  451. * src/BitfieldMan.cc
  452. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  453. Fixed the bug that download fails if
  454. SocketCore::establishConnection() throws exception and aria2
  455. doesn't try another address.
  456. * src/AbstractCommand.cc
  457. * src/InitiateConnectionCommand.cc
  458. * src/message.h
  459. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  461. detected properly.
  462. * m4/sqlite3.m4
  463. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  465. because it causes compile error if PARAMS macro is defined.
  466. * src/XmlRpcElements.cc
  467. * src/XmlRpcElements.h
  468. * src/XmlRpcRequestParserStateImpl.cc
  469. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. * Release 1.5.1
  471. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  472. Bump up version number to 1.5.1
  473. * configure.ac
  474. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Fixed compile error without BitTorrent support
  476. * src/DefaultBtProgressInfoFile.cc
  477. * src/DownloadEngine.cc
  478. * src/DownloadEngine.h
  479. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  480. Added missing '=' in Download Results
  481. * src/RequestGroupMan.cc
  482. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Fixed compiler warning
  484. * src/DefaultBtProgressInfoFile.cc
  485. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Fixed compiler warning on 32bit systems.
  487. * src/DownloadCommand.cc
  488. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Call flush from ServerStatMan::save()
  490. * src/ServerStatMan.cc
  491. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Check stream status after file is opened.
  493. * src/CookieStorage.cc
  494. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Rewritten Signature::save()
  496. * src/Signature.cc
  497. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Rewritten RequestGroupMan::saveServerStat()
  499. * src/RequestGroupMan.cc
  500. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Rewritten stream error handling
  502. * src/DHTAutoSaveCommand.cc
  503. * src/DHTRoutingTableDeserializer.cc
  504. * src/DHTRoutingTableSerializer.cc
  505. * src/DHTSetup.cc
  506. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Check stream status after file is opened.
  508. * src/DefaultBtProgressInfoFile.cc
  509. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Rewritten stream error handling
  511. * src/DefaultBtProgressInfoFile.cc
  512. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Make sure that stream is closed before renaming file. Unit test
  514. fails on mingw32 in the previous implementation.
  515. * src/CookieStorage.cc
  516. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Fixed the unit test error without sqlite3
  518. * test/CookieStorageTest.cc
  519. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Fixed the undefined reference error
  521. * test/HttpResponseTest.cc
  522. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. * Release 1.5.0
  524. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  526. Ukrainian translations. Thanks to all translators.
  527. * po/ru.po
  528. * po/it.po
  529. * po/da.po
  530. * po/bg.po
  531. * po/ja.po
  532. * po/uk.po
  533. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Added missing src/Logger.cc
  535. * src/Logger.cc
  536. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. Rewritten Logger to avoiding constly virtual call.
  538. * src/LogFactory.cc
  539. * src/LogFactory.h
  540. * src/Logger.h
  541. * src/Makefile.am
  542. * src/Makefile.in
  543. * src/NullLogger.h: Removed.
  544. * src/SimpleLogger.cc
  545. * src/SimpleLogger.h
  546. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Updated doc
  548. * src/main.cc
  549. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Updated debug log message
  551. * src/AbstractCommand.cc
  552. * src/message.h
  553. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Avoid to create zombie process when commands specified in
  555. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  556. X and NetBSD.
  557. * src/main.cc
  558. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Fixed typo
  560. * src/usage_text.h
  561. * doc/aria2c.1.txt
  562. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. Documented 'errorCode' of tellStatus in man page.
  564. * doc/aria2c.1.txt
  565. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  567. This key is only available for stopped/completed downloads and its
  568. value is the error code defined in EXIT STATUS in man page.
  569. * src/XmlRpcMethodImpl.cc
  570. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Fixed the bug that session download length is not updated when
  572. PeerStat is not fastest one.
  573. * src/SegmentMan.cc
  574. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Updated doc.
  576. * doc/aria2c.1.txt
  577. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Updated doc.
  579. * src/AbstractCommand.cc
  580. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  581. Handle the case when DownloadContext has no FileEntry.
  582. * src/XmlRpcMethodImpl.cc
  583. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  584. Handle the situation where struct option.name is char *.
  585. * configure.ac
  586. * src/OptionParser.cc
  587. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Code cleanup
  589. * src/AbstractCommand.cc
  590. * src/DownloadCommand.cc
  591. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Use option of each download to create AuthConfig instead of global
  593. option.
  594. * src/AuthConfigFactory.cc
  595. * src/AuthConfigFactory.h
  596. * src/FtpNegotiationCommand.cc
  597. * src/HttpRequest.cc
  598. * src/HttpRequest.h
  599. * src/HttpRequestCommand.cc
  600. * src/HttpSkipResponseCommand.cc
  601. * src/MultiUrlRequestInfo.cc
  602. * test/AuthConfigFactoryTest.cc
  603. * test/FtpConnectionTest.cc
  604. * test/HttpRequestTest.cc
  605. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Don't call prepareForRetry(1) if all segments are ignored in
  607. SegmentMan.
  608. * src/AbstractCommand.cc
  609. * src/BitfieldMan.cc
  610. * src/BitfieldMan.h
  611. * src/SegmentMan.cc
  612. * src/SegmentMan.h
  613. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Removed FileEntry::getAssociatedUris()
  615. * src/FileEntry.h
  616. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Updated doc: TODO1.5 -> TODO
  618. * src/FileEntry.cc
  619. * src/HttpResponseCommand.cc
  620. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Added assertion fileEntries.size() == 1 if BitTorrent is not
  622. involved.
  623. * src/RequestGroup.cc
  624. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  625. Eliminated duplicated filterBitfield initialization code.
  626. * src/BitfieldMan.cc
  627. * src/BitfieldMan.h
  628. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  629. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  630. relatively naive approach, though). For DownloadFailureException,
  631. we handle the case when req is null properly.
  632. * src/AbstractCommand.cc
  633. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Added function returning suffix of control file to
  635. DefaultBtProgressInfoFile.
  636. * src/DefaultBtProgressInfoFile.cc
  637. * src/DefaultBtProgressInfoFile.h
  638. * src/RequestGroup.cc
  639. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Documented getVersion in man page.
  641. * doc/aria2c.1.txt
  642. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Documented type of offset and num for tellWaiting xml-rpc method.
  644. * doc/aria2c.1.txt
  645. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  646. Implemented getVersion xml-rpc method. This method returns struct
  647. which has 2 key-value pairs: "version" key is associated to the
  648. version of aria2, such as "1.5.0". "enabledFeatures" key is
  649. associated to the list of enabled features, such as "Async DNS",
  650. "BitTorrent".
  651. * src/FeatureConfig.h
  652. * src/XmlRpcMethodFactory.cc
  653. * src/XmlRpcMethodImpl.cc
  654. * src/XmlRpcMethodImpl.h
  655. * test/XmlRpcMethodTest.cc
  656. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Removed TLS1.1 protocol support when aria2 is built with gnutls
  658. for compatibility issue.
  659. * src/SocketCore.cc
  660. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Fixed compile error with openSSL
  662. * src/bittorrent_helper.cc
  663. * src/messageDigest.h
  664. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Removed bad code: setting certificate type priority to key
  666. exchange priority.
  667. * src/SocketCore.cc
  668. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Disconnect seeder if client is also in seed state.
  670. * src/BtBitfieldMessage.cc
  671. * src/BtHaveAllMessage.cc
  672. * src/BtHaveMessage.cc
  673. * src/message.h
  674. * test/BtBitfieldMessageTest.cc
  675. * test/BtHaveAllMessageTest.cc
  676. * test/BtHaveMessageTest.cc
  677. * test/MockPieceStorage.h
  678. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Keep CreateRequestCommand in queue when no segment is available so
  680. that they can pick up pieces which slow BitTorrent peers are
  681. downloading.
  682. * src/AbstractCommand.cc
  683. * src/CreateRequestCommand.cc
  684. * src/CreateRequestCommand.h
  685. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  686. --bt-stop-timeout now only checks download speed.
  687. * src/BtStopDownloadCommand.cc
  688. * src/BtStopDownloadCommand.h
  689. * src/BtSetup.cc
  690. * src/usage_text.h
  691. * doc/aria2c.1.txt
  692. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Fixed compile error regarding BUFSIZE.
  694. * src/DownloadCommand.cc
  695. * src/DownloadCommand.h
  696. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Documented tellWaiting xml-rpc method in man page.
  698. * doc/aria2c.1.txt
  699. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  700. Bump up version number to 1.5.0
  701. * configure.ac
  702. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Removed resolved TODO1.5
  704. * src/AbstractCommand.cc
  705. * src/DownloadCommand.cc
  706. * src/RequestGroup.cc
  707. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Release pooled and in-flight Request objectsand URIResult objects
  709. in FileEntry after download completed.
  710. * src/DownloadContext.cc
  711. * src/DownloadContext.h
  712. * src/FileEntry.cc
  713. * src/FileEntry.h
  714. * src/RequestGroup.cc
  715. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Set manual and source attribute in aria2c.1.txt
  717. * doc/aria2c.1.txt
  718. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Documented that the default value of --use-head is 'false' in man
  720. page.
  721. * doc/aria2c.1.txt
  722. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Added bt-stop-timeout option to -i list.
  724. * doc/aria2c.1.txt
  725. * src/download_helper.cc
  726. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Fixed typo
  728. * doc/aria2c.1.txt
  729. * src/usage_text.h
  730. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Removed peer-id-prefix option from -i list.
  732. * doc/aria2c.1.txt
  733. * src/download_helper.cc
  734. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Fixed typo
  736. * doc/aria2c.1.txt
  737. * src/usage_text.h
  738. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  739. Documented --bt-stop-timeout option in man page.
  740. * doc/aria2c.1.txt
  741. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Updated README regarding multi-file torrent web-seeding.
  743. * doc/README.txt
  744. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Updated man page regarding multi-file torrent web-seeding.
  746. * doc/aria2c.1.txt
  747. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Updated doc
  749. * src/version_usage.cc
  750. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Winsock select() doesn't work if no socket is in FD_SET. To
  752. overcome this problem, a dummy socket is added to FD_SET and it is
  753. given to select().
  754. * src/SelectEventPoll.cc
  755. * src/SelectEventPoll.h
  756. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Disabled --use-head option by default because --use-head=true
  758. causes problems on some web sites.
  759. * src/OptionHandlerFactory.cc
  760. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Print URL List in -S option for torrent.
  762. * src/bittorrent_helper.cc
  763. * src/bittorrent_helper.h
  764. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Allocate buffer in ctor of DownloadCommand.
  766. * src/DownloadCommand.cc
  767. * src/DownloadCommand.h
  768. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Removed DiskAdaptor::onDownloadComplete()
  770. * src/DirectDiskAdaptor.cc
  771. * src/DirectDiskAdaptor.h
  772. * src/DiskAdaptor.h
  773. * src/MultiDiskAdaptor.cc
  774. * src/MultiDiskAdaptor.h
  775. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Committed missing BtStopDownloadCommand.{cc,h}
  777. * src/BtStopDownloadCommand.cc
  778. * src/BtStopDownloadCommand.h
  779. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  781. download if the download speed is 0 and the number of seeder is 0
  782. in consecutive SEC seconds. By default, this function is disabled.
  783. * src/BtSetup.cc
  784. * src/Makefile.am
  785. * src/OptionHandlerFactory.cc
  786. * src/prefs.cc
  787. * src/prefs.h
  788. * src/usage_text.h
  789. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Removed the call to DiskAdaptor::onDownloadComplete() from
  791. BtCheckIntegrityEntry and DefaultPieceStorage.
  792. * src/BtCheckIntegrityEntry.cc
  793. * src/DefaultPieceStorage.cc
  794. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  795. Commented out throw statements when number of piece is 0 to
  796. download 0 length torrent.
  797. * src/bittorrent_helper.cc
  798. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Call RequestGroup::createNextCommandWithAdj() from
  800. BtFileAllocationEntry if at least one FileEntry has URI. The
  801. static function hasAssociatedUri in RequestGroup.cc is renamed as
  802. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  803. * src/BtFileAllocationEntry.cc
  804. * src/FileEntry.h
  805. * src/RequestGroup.cc
  806. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Generate peer ID after SimpleRandomizer is initialized.
  808. * src/main.cc
  809. * src/option_processing.cc
  810. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Removed unused method argument.
  812. * src/CreateRequestCommand.cc
  813. * src/RequestGroup.cc
  814. * src/RequestGroup.h
  815. * src/RequestGroupMan.cc
  816. * src/TrackerWatcherCommand.cc
  817. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Made URI reusing function work.
  819. * src/CreateRequestCommand.cc
  820. * src/FileEntry.cc
  821. * src/FileEntry.h
  822. * test/FileEntryTest.cc
  823. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Add formerly fastest PeerStat's sessionDownloadLength to new
  825. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  826. bytes in a session.
  827. * src/PeerStat.cc
  828. * src/SegmentMan.cc
  829. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. If pipelining is enabled, we can always pool socket.
  831. * src/HttpDownloadCommand.cc
  832. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. In a single file download, file size becomes known just after
  834. downloading, set total length to FileEntry object when download
  835. completed.
  836. * src/DownloadCommand.cc
  837. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Use std::vector::reserve() for fileEntries and pieceHashes in
  839. bittorrent_helper
  840. * src/bittorrent_helper.cc
  841. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  843. Removed hidden option PREF_RESET_URI.
  844. * src/AbstractCommand.cc
  845. * src/OptionHandlerFactory.cc
  846. * src/prefs.cc
  847. * src/prefs.h
  848. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Removed unused variable/function.
  850. * src/PeerStat.h
  851. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Show first URL in Download Results if file path is not available.
  853. * src/FileEntry.h
  854. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Throw exception if file path doesn't exist in FTP URL.
  856. * src/InitiateConnectionCommandFactory.cc
  857. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  859. * src/BitfieldMan.cc
  860. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  862. of PeerStat in SegmentMan. peerStats is used for calculating
  863. download speed. Therefore all active PeerStats should be in
  864. there. Another one is _fastestPeerStats and it only contains
  865. fastest PeerStat for each hostname/protocol pair. They are used
  866. for updating ServerStat.
  867. * src/DownloadCommand.cc
  868. * src/Request.h
  869. * src/RequestGroupMan.cc
  870. * src/SegmentMan.cc
  871. * src/SegmentMan.h
  872. * test/SegmentManTest.cc
  873. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Try all available addresses returned by DNS until it gets
  875. connected in HTTP(S)/FTP download
  876. * src/AbstractCommand.cc
  877. * src/AbstractCommand.h
  878. * src/AbstractProxyRequestCommand.cc
  879. * src/AbstractProxyRequestCommand.h
  880. * src/DNSCache.h
  881. * src/DownloadEngine.cc
  882. * src/DownloadEngine.h
  883. * src/FtpInitiateConnectionCommand.cc
  884. * src/FtpInitiateConnectionCommand.h
  885. * src/FtpNegotiationCommand.cc
  886. * src/FtpNegotiationCommand.h
  887. * src/HttpInitiateConnectionCommand.cc
  888. * src/HttpInitiateConnectionCommand.h
  889. * src/HttpRequestCommand.cc
  890. * src/HttpRequestCommand.h
  891. * src/InitiateConnectionCommand.cc
  892. * src/InitiateConnectionCommand.h
  893. * test/DNSCacheTest.cc
  894. * test/Makefile.am
  895. * test/SimpleDNSCacheTest.cc
  896. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. Updated doc
  898. * src/download_helper.cc
  899. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  900. Refactored fieldMan ctor.
  901. * src/BitfieldMan.cc
  902. * src/BitfieldMan.h
  903. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Don't print "No files to download." message if -S is given.
  905. * src/main.cc
  906. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  907. Set referer and method to newly created Request object.
  908. * src/CreateRequestCommand.cc
  909. * src/FileEntry.cc
  910. * src/FileEntry.h
  911. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Removed ctor of AbstractCommand which doesn't take FileEntry.
  913. * src/AbstractCommand.cc
  914. * src/AbstractCommand.h
  915. * src/CreateRequestCommand.cc
  916. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Get proxy download working
  918. * src/AbstractProxyRequestCommand.cc
  919. * src/AbstractProxyRequestCommand.h
  920. * src/AbstractProxyResponseCommand.cc
  921. * src/AbstractProxyResponseCommand.h
  922. * src/FtpInitiateConnectionCommand.cc
  923. * src/FtpTunnelRequestCommand.cc
  924. * src/FtpTunnelRequestCommand.h
  925. * src/FtpTunnelResponseCommand.cc
  926. * src/FtpTunnelResponseCommand.h
  927. * src/HttpInitiateConnectionCommand.cc
  928. * src/HttpProxyRequestCommand.cc
  929. * src/HttpProxyRequestCommand.h
  930. * src/HttpProxyResponseCommand.cc
  931. * src/HttpProxyResponseCommand.h
  932. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Use SegmentMan::getSegment(cuid) for single file download.
  934. * src/AbstractCommand.cc
  935. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Fixed bufSize calculation
  937. * src/DownloadCommand.cc
  938. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Don't append "/" if base URI ends with "/".
  940. * src/bittorrent_helper.cc
  941. * test/url-list-multiFile.torrent
  942. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. HTTP pipelining is now working. Fixed Segmention fault in
  944. BitfieldMan's copy ctor.
  945. * src/AbstractCommand.cc
  946. * src/BitfieldMan.cc
  947. * src/BitfieldMan.h
  948. * src/DownloadCommand.cc
  949. * src/HttpDownloadCommand.cc
  950. * src/HttpRequest.cc
  951. * src/SegmentMan.cc
  952. * src/SegmentMan.h
  953. * test/BitfieldManTest.cc
  954. * test/SegmentManTest.cc
  955. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Removed ServerHost. Same functionality is implemented using
  957. FileEntry's in-flight Request objects.
  958. * src/AbstractCommand.cc
  959. * src/BtDependency.cc
  960. * src/CreateRequestCommand.cc
  961. * src/FileEntry.cc
  962. * src/FileEntry.h
  963. * src/FtpNegotiationCommand.cc
  964. * src/HttpResponseCommand.cc
  965. * src/Makefile.am
  966. * src/Metalink2RequestGroup.cc
  967. * src/RequestGroup.cc
  968. * src/RequestGroup.h
  969. * src/ServerHost.cc: Removed
  970. * src/ServerHost.h: Removed
  971. * test/BtDependencyTest.cc
  972. * test/FileEntryTest.cc
  973. * test/RequestGroupTest.cc
  974. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Rewritten PeerStat handling. In the previous implementation,
  976. faster command tries to find slower command. In this new
  977. implementation, slower command tries to find faster command.
  978. PeerStat is now created in each HTTP/FTP request to get download
  979. rate correctly. If the download range is small, the download rate
  980. tends to small and this will occur at the later stage of download.
  981. * src/AbstractCommand.cc
  982. * src/DownloadCommand.cc
  983. * src/FileEntry.cc
  984. * src/FileEntry.h
  985. * src/Request.cc
  986. * src/Request.h
  987. * src/RequestGroup.h
  988. * src/RequestGroupMan.cc
  989. * src/SegmentMan.cc
  990. * src/SegmentMan.h
  991. * test/SegmentManTest.cc
  992. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Removed _uris from RequestGroup. All functions that refer to _uris
  994. were moved to FileEntry. Exit status code are now defined in
  995. DownloadResultCode.h.
  996. * src/AbstractCommand.cc
  997. * src/AdaptiveURISelector.cc
  998. * src/AdaptiveURISelector.h
  999. * src/AutoSaveCommand.cc
  1000. * src/BtPostDownloadHandler.cc
  1001. * src/CheckIntegrityDispatcherCommand.cc
  1002. * src/CookieStorage.cc
  1003. * src/DHTAutoSaveCommand.cc
  1004. * src/DHTBucketRefreshCommand.cc
  1005. * src/DHTEntryPointNameResolveCommand.cc
  1006. * src/DHTInteractionCommand.cc
  1007. * src/DHTPeerAnnounceCommand.cc
  1008. * src/DHTTokenUpdateCommand.cc
  1009. * src/DlAbortEx.h
  1010. * src/DlRetryEx.h
  1011. * src/DownloadCommand.cc
  1012. * src/DownloadContext.h
  1013. * src/DownloadFailureException.h
  1014. * src/DownloadResult.h
  1015. * src/DownloadResultCode.h
  1016. * src/FeedbackURISelector.cc
  1017. * src/FeedbackURISelector.h
  1018. * src/FileEntry.cc
  1019. * src/FileEntry.h
  1020. * src/FtpNegotiationCommand.cc
  1021. * src/HttpListenCommand.cc
  1022. * src/HttpResponseCommand.cc
  1023. * src/HttpServerResponseCommand.cc
  1024. * src/HttpSkipResponseCommand.cc
  1025. * src/InOrderURISelector.cc
  1026. * src/InOrderURISelector.h
  1027. * src/Makefile.am
  1028. * src/Makefile.in
  1029. * src/Metalink2RequestGroup.cc
  1030. * src/MultiUrlRequestInfo.cc
  1031. * src/MultiUrlRequestInfo.h
  1032. * src/OptionHandlerFactory.cc
  1033. * src/PeerListenCommand.cc
  1034. * src/RecoverableException.h
  1035. * src/RequestGroup.cc
  1036. * src/RequestGroup.h
  1037. * src/RequestGroupMan.cc
  1038. * src/RequestGroupMan.h
  1039. * src/TimedHaltCommand.cc
  1040. * src/TrackerWatcherCommand.cc
  1041. * src/URIResult.cc
  1042. * src/URIResult.h
  1043. * src/URISelector.h
  1044. * src/XmlRpcMethodImpl.cc
  1045. * src/bittorrent_helper.cc
  1046. * src/bittorrent_helper.h
  1047. * src/download_helper.cc
  1048. * src/main.cc
  1049. * src/option_processing.cc
  1050. * test/BtDependencyTest.cc
  1051. * test/BtPostDownloadHandlerTest.cc
  1052. * test/CookieStorageTest.cc
  1053. * test/DefaultBtMessageDispatcherTest.cc
  1054. * test/DownloadHandlerFactoryTest.cc
  1055. * test/DownloadHelperTest.cc
  1056. * test/FeedbackURISelectorTest.cc
  1057. * test/FileEntryTest.cc
  1058. * test/InOrderURISelectorTest.cc
  1059. * test/Metalink2RequestGroupTest.cc
  1060. * test/MetalinkPostDownloadHandlerTest.cc
  1061. * test/RequestGroupManTest.cc
  1062. * test/RequestGroupTest.cc
  1063. * test/XmlRpcMethodTest.cc
  1064. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Removed MockBtContext.h
  1066. * test/Makefile.am
  1067. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Removed _currentRequest from StreamCheckIntegrityEntry and
  1069. StreamFileAllocationEntry.
  1070. * src/AbstractCommand.cc
  1071. * src/HttpResponseCommand.cc
  1072. * src/RequestGroup.cc
  1073. * src/StreamCheckIntegrityEntry.cc
  1074. * src/StreamCheckIntegrityEntry.h
  1075. * src/StreamFileAllocationEntry.cc
  1076. * src/StreamFileAllocationEntry.h
  1077. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1078. Rewritten DownloadContext and removed SingleFileDownloadContext
  1079. and BtContext and its derived classes. BitTorrent specific
  1080. attributes are now set by DownloadContext::setAttribute() with key
  1081. bittorrent::BITTORRENT.
  1082. * src/AbstractBtMessage.cc
  1083. * src/AbstractBtMessage.h
  1084. * src/AbstractCommand.cc
  1085. * src/AbstractCommand.h
  1086. * src/AbstractProxyRequestCommand.cc
  1087. * src/AbstractProxyResponseCommand.cc
  1088. * src/ActivePeerConnectionCommand.cc
  1089. * src/ActivePeerConnectionCommand.h
  1090. * src/AnnounceList.cc
  1091. * src/BtCheckIntegrityEntry.cc
  1092. * src/BtConstants.h
  1093. * src/BtContext.h: Removed
  1094. * src/BtDependency.cc
  1095. * src/BtExtendedMessage.cc
  1096. * src/BtPieceMessage.cc
  1097. * src/BtPieceMessage.h
  1098. * src/BtPostDownloadHandler.cc
  1099. * src/BtRegistry.cc
  1100. * src/BtRegistry.h
  1101. * src/BtSetup.cc
  1102. * src/CheckIntegrityCommand.cc
  1103. * src/CheckIntegrityEntry.cc
  1104. * src/ChecksumCheckIntegrityEntry.cc
  1105. * src/ConsoleStatCalc.cc
  1106. * src/ContentTypeRequestGroupCriteria.cc
  1107. * src/DHTGetPeersCommand.cc
  1108. * src/DHTGetPeersCommand.h
  1109. * src/DHTPeerLookupTask.cc
  1110. * src/DHTPeerLookupTask.h
  1111. * src/DHTTaskFactory.h
  1112. * src/DHTTaskFactoryImpl.cc
  1113. * src/DHTTaskFactoryImpl.h
  1114. * src/DefaultBtAnnounce.cc
  1115. * src/DefaultBtAnnounce.h
  1116. * src/DefaultBtContext.cc: Removed
  1117. * src/DefaultBtContext.h: Removed
  1118. * src/DefaultBtInteractive.cc
  1119. * src/DefaultBtInteractive.h
  1120. * src/DefaultBtMessageDispatcher.cc
  1121. * src/DefaultBtMessageDispatcher.h
  1122. * src/DefaultBtMessageFactory.cc
  1123. * src/DefaultBtMessageFactory.h
  1124. * src/DefaultBtMessageReceiver.cc
  1125. * src/DefaultBtMessageReceiver.h
  1126. * src/DefaultBtProgressInfoFile.cc
  1127. * src/DefaultBtRequestFactory.cc
  1128. * src/DefaultBtRequestFactory.h
  1129. * src/DefaultExtensionMessageFactory.cc
  1130. * src/DefaultExtensionMessageFactory.h
  1131. * src/DefaultPeerStorage.cc
  1132. * src/DefaultPeerStorage.h
  1133. * src/DefaultPieceStorage.cc
  1134. * src/DefaultSegmentManFactory.cc
  1135. * src/DiskAdaptor.cc
  1136. * src/DiskAdaptor.h
  1137. * src/DownloadContext.cc
  1138. * src/DownloadContext.h
  1139. * src/DownloadEngine.cc
  1140. * src/DownloadEngineFactory.cc
  1141. * src/DownloadHandler.cc
  1142. * src/DownloadResult.h
  1143. * src/FileAllocationCommand.cc
  1144. * src/FileAllocationDispatcherCommand.cc
  1145. * src/FileAllocationEntry.cc
  1146. * src/FileEntry.h
  1147. * src/FillRequestGroupCommand.cc
  1148. * src/FtpDownloadCommand.cc
  1149. * src/FtpFinishDownloadCommand.cc
  1150. * src/FtpInitiateConnectionCommand.cc
  1151. * src/FtpNegotiationCommand.cc
  1152. * src/FtpTunnelRequestCommand.cc
  1153. * src/FtpTunnelResponseCommand.cc
  1154. * src/HandshakeExtensionMessage.cc
  1155. * src/HandshakeExtensionMessage.h
  1156. * src/HaveEraseCommand.cc
  1157. * src/HttpDownloadCommand.cc
  1158. * src/HttpInitiateConnectionCommand.cc
  1159. * src/HttpProxyRequestCommand.cc
  1160. * src/HttpProxyResponseCommand.cc
  1161. * src/HttpRequest.cc
  1162. * src/HttpRequest.h
  1163. * src/HttpRequestCommand.cc
  1164. * src/HttpResponseCommand.cc
  1165. * src/HttpServerBodyCommand.cc
  1166. * src/HttpServerCommand.cc
  1167. * src/HttpSkipResponseCommand.cc
  1168. * src/InitiateConnectionCommandFactory.cc
  1169. * src/InitiatorMSEHandshakeCommand.cc
  1170. * src/InitiatorMSEHandshakeCommand.h
  1171. * src/IteratableChecksumValidator.cc
  1172. * src/IteratableChecksumValidator.h
  1173. * src/IteratableChunkChecksumValidator.cc
  1174. * src/MSEHandshake.cc
  1175. * src/MSEHandshake.h
  1176. * src/Makefile.am
  1177. * src/Makefile.in
  1178. * src/Metalink2RequestGroup.cc
  1179. * src/MetalinkPostDownloadHandler.cc
  1180. * src/MultiDiskAdaptor.cc
  1181. * src/MultiDiskAdaptor.h
  1182. * src/MultiFileAllocationIterator.cc
  1183. * src/MultiUrlRequestInfo.cc
  1184. * src/PeerChokeCommand.cc
  1185. * src/PeerChokeCommand.h
  1186. * src/PeerInitiateConnectionCommand.cc
  1187. * src/PeerInitiateConnectionCommand.h
  1188. * src/PeerInteractionCommand.cc
  1189. * src/PeerInteractionCommand.h
  1190. * src/PeerReceiveHandshakeCommand.cc
  1191. * src/PieceHashCheckIntegrityEntry.cc
  1192. * src/RealtimeCommand.cc
  1193. * src/ReceiverMSEHandshakeCommand.cc
  1194. * src/RequestGroup.cc
  1195. * src/RequestGroup.h
  1196. * src/RequestGroupEntry.cc
  1197. * src/RequestGroupMan.cc
  1198. * src/SeedCheckCommand.cc
  1199. * src/SeedCheckCommand.h
  1200. * src/SegmentMan.cc
  1201. * src/ShareRatioSeedCriteria.h
  1202. * src/SingleFileDownloadContext.cc: Removed
  1203. * src/SingleFileDownloadContext.h: Removed
  1204. * src/SleepCommand.cc
  1205. * src/StreamCheckIntegrityEntry.cc
  1206. * src/TrackerWatcherCommand.cc
  1207. * src/TrackerWatcherCommand.h
  1208. * src/UnknownLengthPieceStorage.cc
  1209. * src/Util.cc
  1210. * src/Util.h
  1211. * src/XmlRpcMethodImpl.cc
  1212. * src/bittorrent_helper.cc
  1213. * src/bittorrent_helper.h
  1214. * src/download_helper.cc
  1215. * src/main.cc
  1216. * src/option_processing.cc
  1217. * test/BitfieldManTest.cc
  1218. * test/BittorrentHelperTest.cc
  1219. * test/BtCancelMessageTest.cc
  1220. * test/BtChokeMessageTest.cc
  1221. * test/BtDependencyTest.cc
  1222. * test/BtPieceMessageTest.cc
  1223. * test/BtPostDownloadHandlerTest.cc
  1224. * test/BtRegistryTest.cc
  1225. * test/BtRejectMessageTest.cc
  1226. * test/BtRequestMessageTest.cc
  1227. * test/DHTPeerAnnounceStorageTest.cc
  1228. * test/DefaultBtAnnounceTest.cc
  1229. * test/DefaultBtContextTest.cc: Removed
  1230. * test/DefaultBtMessageDispatcherTest.cc
  1231. * test/DefaultBtMessageFactoryTest.cc
  1232. * test/DefaultBtProgressInfoFileTest.cc
  1233. * test/DefaultBtRequestFactoryTest.cc
  1234. * test/DefaultExtensionMessageFactoryTest.cc
  1235. * test/DefaultPeerStorageTest.cc
  1236. * test/DefaultPieceStorageTest.cc
  1237. * test/DirectDiskAdaptorTest.cc
  1238. * test/DownloadContextTest.cc
  1239. * test/DownloadHandlerFactoryTest.cc
  1240. * test/DownloadHelperTest.cc
  1241. * test/HandshakeExtensionMessageTest.cc
  1242. * test/HttpRequestTest.cc
  1243. * test/HttpResponseTest.cc
  1244. * test/IteratableChecksumValidatorTest.cc
  1245. * test/IteratableChunkChecksumValidatorTest.cc
  1246. * test/MSEHandshakeTest.cc
  1247. * test/Makefile.am
  1248. * test/Makefile.in
  1249. * test/Metalink2RequestGroupTest.cc
  1250. * test/MetalinkPostDownloadHandlerTest.cc
  1251. * test/MockBtContext.h: Removed
  1252. * test/MockDHTTaskFactory.h
  1253. * test/MockDownloadContext.h: Removed
  1254. * test/MockPieceStorage.h
  1255. * test/MultiDiskAdaptorTest.cc
  1256. * test/MultiFileAllocationIteratorTest.cc
  1257. * test/RequestGroupManTest.cc
  1258. * test/RequestGroupTest.cc
  1259. * test/SegmentManTest.cc
  1260. * test/ShareRatioSeedCriteriaTest.cc
  1261. * test/SingleFileDownloadContextTest.cc: Removed
  1262. * test/UtilTest.cc
  1263. * test/XmlRpcMethodTest.cc
  1264. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Added experimental support of WEB-Seeding for multi-file torrent.
  1266. Due to fundamental changes in file handling in HTTP/FTP code, many
  1267. functions are not working: PeerStat, ServerHost, proxy..etc
  1268. * src/AbstractCommand.cc
  1269. * src/AbstractCommand.h
  1270. * src/BitfieldMan.cc
  1271. * src/BitfieldMan.h
  1272. * src/CreateRequestCommand.cc
  1273. * src/CreateRequestCommand.h
  1274. * src/DefaultPieceStorage.cc
  1275. * src/DefaultPieceStorage.h
  1276. * src/DownloadCommand.cc
  1277. * src/DownloadCommand.h
  1278. * src/DownloadContext.cc
  1279. * src/DownloadContext.h
  1280. * src/FileEntry.cc
  1281. * src/FileEntry.h
  1282. * src/FtpDownloadCommand.cc
  1283. * src/FtpDownloadCommand.h
  1284. * src/FtpFinishDownloadCommand.cc
  1285. * src/FtpFinishDownloadCommand.h
  1286. * src/FtpInitiateConnectionCommand.cc
  1287. * src/FtpInitiateConnectionCommand.h
  1288. * src/FtpNegotiationCommand.cc
  1289. * src/FtpNegotiationCommand.h
  1290. * src/FtpTunnelResponseCommand.cc
  1291. * src/HttpDownloadCommand.cc
  1292. * src/HttpDownloadCommand.h
  1293. * src/HttpInitiateConnectionCommand.cc
  1294. * src/HttpInitiateConnectionCommand.h
  1295. * src/HttpProxyResponseCommand.cc
  1296. * src/HttpRequest.cc
  1297. * src/HttpRequest.h
  1298. * src/HttpRequestCommand.cc
  1299. * src/HttpRequestCommand.h
  1300. * src/HttpResponseCommand.cc
  1301. * src/HttpResponseCommand.h
  1302. * src/HttpSkipResponseCommand.cc
  1303. * src/HttpSkipResponseCommand.h
  1304. * src/InitiateConnectionCommand.cc
  1305. * src/InitiateConnectionCommand.h
  1306. * src/InitiateConnectionCommandFactory.cc
  1307. * src/InitiateConnectionCommandFactory.h
  1308. * src/Makefile.am
  1309. * src/PieceStorage.h
  1310. * src/RequestGroup.cc
  1311. * src/RequestGroup.h
  1312. * src/RequestGroupMan.cc
  1313. * src/SegmentMan.cc
  1314. * src/SegmentMan.h
  1315. * src/SingleFileDownloadContext.h
  1316. * src/StreamFileAllocationEntry.cc
  1317. * src/TrackerWatcherCommand.cc
  1318. * src/UnknownLengthPieceStorage.cc
  1319. * src/UnknownLengthPieceStorage.h
  1320. * src/array_fun.h
  1321. * src/bitfield.h
  1322. * src/download_helper.cc
  1323. * test/DownloadContextTest.cc
  1324. * test/Makefile.am
  1325. * test/MockDownloadContext.h
  1326. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Added tellWaiting XML-RPC method.
  1328. * src/SingleFileDownloadContext.cc
  1329. * src/XmlRpcMethodFactory.cc
  1330. * src/XmlRpcMethodImpl.cc
  1331. * src/XmlRpcMethodImpl.h
  1332. * test/XmlRpcMethodTest.cc
  1333. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Updated CookieStorageTest
  1335. * test/CookieStorageTest.cc
  1336. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1338. handle excepion inside these functions.
  1339. * src/LibgnutlsTLSContext.cc
  1340. * src/LibgnutlsTLSContext.h
  1341. * src/LibsslTLSContext.cc
  1342. * src/LibsslTLSContext.h
  1343. * src/MultiUrlRequestInfo.cc
  1344. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Added comment
  1346. * src/RequestGroup.cc
  1347. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. In CookieStorage::load() and saveNsFormat(), handle exception
  1349. inside the functions. When saving Cookies, first write temporary
  1350. file and after successful writes, then renames it to final
  1351. destination.
  1352. * src/CookieStorage.cc
  1353. * src/CookieStorage.h
  1354. * src/MultiUrlRequestInfo.cc
  1355. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1356. The default value of --dir option is the absolute path to the
  1357. current directory. If getcwd() is failed, then it is ".", which is
  1358. the same value with old implementation. This change is necessary
  1359. because after daemon() call, the current working directory is
  1360. changed to /.
  1361. * src/File.cc
  1362. * src/File.h
  1363. * src/OptionHandlerFactory.cc
  1364. * src/option_processing.cc
  1365. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Call daemon() with arguments(0,0), which means daemon() changes
  1367. current working directory to / and redirects stdin, stdout and
  1368. stderr to /dev/null.
  1369. * src/option_processing.cc
  1370. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. Small performance optimizations.
  1372. * src/RequestGroupMan.cc
  1373. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1375. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1376. * src/RequestGroupMan.cc
  1377. * src/RequestGroupMan.h
  1378. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1380. setNoWiat(true) if newly created command calls
  1381. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1382. * src/HttpListenCommand.cc
  1383. * src/HttpServerBodyCommand.cc
  1384. * src/HttpServerCommand.cc
  1385. * src/HttpServerResponseCommand.cc
  1386. * src/InitiateConnectionCommand.cc
  1387. * src/RequestGroup.cc
  1388. * src/StreamFileAllocationEntry.cc
  1389. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Removed include vector
  1391. * src/BtRegistry.h
  1392. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Rewritten BtRegistry
  1394. * src/BtRegistry.cc
  1395. * src/BtRegistry.h
  1396. * src/BtSetup.cc
  1397. * src/ConsoleStatCalc.cc
  1398. * src/PeerInteractionCommand.cc
  1399. * src/PeerReceiveHandshakeCommand.cc
  1400. * src/ReceiverMSEHandshakeCommand.cc
  1401. * src/RequestGroup.cc
  1402. * src/XmlRpcMethodImpl.cc
  1403. * test/BtRegistryTest.cc
  1404. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1406. * src/DefaultBtProgressInfoFile.cc
  1407. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Throw an exception if position is less than 0.
  1409. * src/XmlRpcMethodImpl.cc
  1410. * test/XmlRpcMethodTest.cc
  1411. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Use writeFilePath() in ConsoleStatCalc.cc
  1413. * src/ConsoleStatCalc.cc
  1414. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Receive the return value as const reference from
  1416. DownloadContext::getFileEntries().
  1417. * src/DefaultPieceStorage.cc
  1418. * src/RequestGroupMan.cc
  1419. * src/XmlRpcMethodImpl.cc
  1420. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. DownloadContext now has _fileEntries so that
  1422. DownloadContext::getFileEntries() can returns its const reference.
  1423. * src/DefaultBtContext.cc
  1424. * src/DefaultBtContext.h
  1425. * src/DownloadContext.cc
  1426. * src/DownloadContext.h
  1427. * src/SingleFileDownloadContext.cc
  1428. * src/SingleFileDownloadContext.h
  1429. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1431. writeFilePath() function template from RequestGroupMan.cc to
  1432. FileEntry.h
  1433. * src/FileEntry.h
  1434. * src/RequestGroupMan.cc
  1435. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Documented 'position' parameter is starting from 0 in man page.
  1437. * doc/aria2c.1.txt
  1438. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Updated doc.
  1440. * src/MSEHandshake.cc
  1441. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1442. Removed _acceptFeatures and its accessor functions from
  1443. RequestGroup since they are not used practically.
  1444. * src/HttpRequestCommand.cc
  1445. * src/RequestGroup.cc
  1446. * src/RequestGroup.h
  1447. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Removed member _maxTries from RequestGroup class to avoid
  1449. duplicate option value. Those classes who refer this variable
  1450. should use option value of PREF_MAX_TRIES directly.
  1451. * src/AbstractCommand.cc
  1452. * src/RequestGroup.cc
  1453. * src/RequestGroup.h
  1454. * src/TrackerWatcherCommand.cc
  1455. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. * Release 1.4.1
  1457. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Fixed compiler warnings on netbsd
  1459. * src/DHTConnectionImpl.cc
  1460. * src/PeerListenCommand.cc
  1461. * src/PeerSessionResource.cc
  1462. * src/SegmentMan.cc
  1463. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Updated Ukrainian translation. Thanks to all translators.
  1465. * po/uk.po
  1466. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Bump up version number to 1.4.1.
  1468. * configure.ac
  1469. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Added unit tests for strjoin, strconcat and strappend.
  1471. * test/a2functionalTest.cc
  1472. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Rewritten strconcat and strappend using operator+ instead of
  1474. append().
  1475. * src/a2functional.h
  1476. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1478. is enabled.
  1479. * src/Makefile.am
  1480. * test/Makefile.am
  1481. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Added countSeeder() function which counts seeder in the given
  1483. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1484. * src/ConsoleStatCalc.cc
  1485. * src/Peer.h
  1486. * src/XmlRpcMethodImpl.cc
  1487. * test/PeerTest.cc
  1488. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Documented missing seeder in getPeers xml-rpc method.
  1490. Documented uploadLength and numSeeders.
  1491. * doc/aria2c.1.txt
  1492. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1493. Added uploadLength and numSeeders to the response of tellStatus
  1494. xml-rpc method. Assert that PeerStorage instance is not null
  1495. instead of checking if statement. It should be non-null in this
  1496. context.
  1497. * src/XmlRpcMethodImpl.cc
  1498. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1500. * src/XmlRpcResponse.cc
  1501. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Avoid intermediate object during string concatenation.
  1503. * src/HttpRequest.cc
  1504. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Added strjoin function template. Use it in pathJoin()
  1506. * src/Util.h
  1507. * src/a2functional.h
  1508. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Avoid intermediate object during string concatenation. Replaced
  1510. post-increment unary operator with pre-increment one in for loop.
  1511. * src/AdaptiveURISelector.cc
  1512. * src/AnnounceList.cc
  1513. * src/AuthConfig.h
  1514. * src/BtBitfieldMessage.cc
  1515. * src/BtExtendedMessage.cc
  1516. * src/BtHandshakeMessage.cc
  1517. * src/BtPieceMessage.cc
  1518. * src/BtPortMessage.cc
  1519. * src/Cookie.cc
  1520. * src/DHTAnnouncePeerMessage.cc
  1521. * src/DHTAutoSaveCommand.cc
  1522. * src/DHTGetPeersReplyMessage.cc
  1523. * src/DHTNode.cc
  1524. * src/DHTQueryMessage.cc
  1525. * src/DHTResponseMessage.cc
  1526. * src/DHTUnknownMessage.cc
  1527. * src/DefaultBtAnnounce.cc
  1528. * src/DefaultBtContext.cc
  1529. * src/DefaultBtInteractive.cc
  1530. * src/DefaultBtProgressInfoFile.cc
  1531. * src/DefaultPeerStorage.cc
  1532. * src/DownloadEngine.cc
  1533. * src/FeatureConfig.cc
  1534. * src/File.cc
  1535. * src/FtpConnection.cc
  1536. * src/FtpNegotiationCommand.cc
  1537. * src/HandshakeExtensionMessage.cc
  1538. * src/HttpConnection.cc
  1539. * src/HttpRequest.cc
  1540. * src/HttpResponseCommand.cc
  1541. * src/HttpServer.cc
  1542. * src/IndexBtMessage.cc
  1543. * src/Metalink2RequestGroup.cc
  1544. * src/OptionHandlerImpl.h
  1545. * src/PStringBuildVisitor.cc
  1546. * src/Peer.cc
  1547. * src/PeerListenCommand.cc
  1548. * src/Piece.cc
  1549. * src/RangeBtMessage.cc
  1550. * src/Request.cc
  1551. * src/Request.h
  1552. * src/RequestGroup.cc
  1553. * src/RequestGroupMan.cc
  1554. * src/ServerStat.cc
  1555. * src/ServerStatMan.cc
  1556. * src/UTPexExtensionMessage.cc
  1557. * src/Util.cc
  1558. * src/a2functional.h
  1559. * src/download_helper.cc
  1560. * src/messageDigest.cc
  1561. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Unchoke a peer randomly at first and second choke round in seed
  1563. state.
  1564. * src/BtSeederStateChoke.cc
  1565. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1566. Added (sock_t) to quiet compiler warnings in MinGW
  1567. * src/SocketCore.cc
  1568. * src/SocketCore.h
  1569. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1571. * src/EpollEventPoll.h
  1572. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1573. Added fork() emulation using CreateProcess() in MinGW
  1574. * src/RequestGroupMan.cc
  1575. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. * Release 1.4.0
  1577. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1578. Added utf8.torrent to EXTRA_DIST
  1579. * test/Makefile.am
  1580. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1581. Fixed docs of aria2.addMetalink xml-rpc method.
  1582. * doc/aria2c.1.txt
  1583. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Added Slovak translation. Updated Ukrainian and Brazilian
  1585. Portuguese translation. Thanks to all translators.
  1586. * po/sk.po
  1587. * po/uk.po
  1588. * po/pt_BR.po
  1589. * po/LINGUAS
  1590. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Added test case for XmlRpcProcessor to fail to parse malformed
  1592. document.
  1593. * test/XmlRpcRequestProcessorTest.cc
  1594. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Removed *.gmo files in po because they are generated on 'make
  1596. dist'
  1597. * po/*.gmo
  1598. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Documented max-concurrent-downloads of changeGlobalOption method
  1600. in man page.
  1601. * doc/aria2c.1.txt
  1602. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Added max-concurrent-downloads option to changeGlobalOption
  1604. xml-rpc method. Rewritten loop conditional in
  1605. RequestGroupMan::fillRequestGroupFromReserver().
  1606. * src/RequestGroupMan.cc
  1607. * src/RequestGroupMan.h
  1608. * src/XmlRpcMethod.cc
  1609. * src/XmlRpcMethodImpl.cc
  1610. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Documented position parameter in man page.
  1612. * doc/aria2c.1.txt
  1613. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Added 'position' parameter to addUri, addTorrent and addMetalink
  1615. xml-rpc method.
  1616. * src/RequestGroupMan.cc
  1617. * src/RequestGroupMan.h
  1618. * src/XmlRpcMethodImpl.cc
  1619. * test/XmlRpcMethodTest.cc
  1620. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1621. Removed Peer.cc from compile source list when --disable-bittorrent
  1622. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1623. takes Peer.
  1624. * src/DefaultPieceStorage.cc
  1625. * src/DefaultPieceStorage.h
  1626. * src/Makefile.am
  1627. * src/PieceStorage.h
  1628. * src/UnknownLengthPieceStorage.cc
  1629. * src/UnknownLengthPieceStorage.h
  1630. * test/MockPieceStorage.h
  1631. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Implemented getter methods in header files to give them more
  1633. chance of optimization.
  1634. Return const reference for SharadHandle if possible.
  1635. * src/AbstractAuthResolver.cc
  1636. * src/AbstractAuthResolver.h
  1637. * src/AbstractBtMessage.cc
  1638. * src/AbstractBtMessage.h
  1639. * src/AbstractSingleDiskAdaptor.cc
  1640. * src/AbstractSingleDiskAdaptor.h
  1641. * src/AsyncNameResolver.cc
  1642. * src/AsyncNameResolver.h
  1643. * src/BNode.cc
  1644. * src/BNode.h
  1645. * src/BitfieldMan.cc
  1646. * src/BitfieldMan.h
  1647. * src/BtAbortOutstandingRequestEvent.h
  1648. * src/BtExtendedMessage.cc
  1649. * src/BtExtendedMessage.h
  1650. * src/BtSeederStateChoke.cc
  1651. * src/BtSeederStateChoke.h
  1652. * src/Cookie.cc
  1653. * src/Cookie.h
  1654. * src/DHTBucket.cc
  1655. * src/DHTBucket.h
  1656. * src/DHTConnectionImpl.cc
  1657. * src/DHTConnectionImpl.h
  1658. * src/DHTFindNodeReplyMessage.cc
  1659. * src/DHTFindNodeReplyMessage.h
  1660. * src/DHTGetPeersReplyMessage.cc
  1661. * src/DHTGetPeersReplyMessage.h
  1662. * src/DHTInteractionCommand.cc
  1663. * src/DHTMessage.cc
  1664. * src/DHTMessage.h
  1665. * src/DHTMessageDispatcherImpl.cc
  1666. * src/DHTMessageEntry.cc
  1667. * src/DHTMessageReceiver.cc
  1668. * src/DHTMessageReceiver.h
  1669. * src/DHTMessageTrackerEntry.cc
  1670. * src/DHTMessageTrackerEntry.h
  1671. * src/DHTPeerAnnounceEntry.cc
  1672. * src/DHTPeerAnnounceEntry.h
  1673. * src/DHTPeerLookupTask.cc
  1674. * src/DHTPeerLookupTask.h
  1675. * src/DHTRoutingTableDeserializer.cc
  1676. * src/DHTRoutingTableDeserializer.h
  1677. * src/DefaultBtAnnounce.cc
  1678. * src/DefaultBtAnnounce.h
  1679. * src/DefaultBtMessageDispatcher.cc
  1680. * src/DefaultBtMessageDispatcher.h
  1681. * src/DefaultBtRequestFactory.cc
  1682. * src/DefaultBtRequestFactory.h
  1683. * src/DiskAdaptor.cc
  1684. * src/DiskAdaptor.h
  1685. * src/DownloadContext.cc
  1686. * src/DownloadContext.h
  1687. * src/DownloadEngine.cc
  1688. * src/DownloadEngine.h
  1689. * src/EpollEventPoll.cc
  1690. * src/EpollEventPoll.h
  1691. * src/FtpConnection.cc
  1692. * src/FtpConnection.h
  1693. * src/HttpConnection.cc
  1694. * src/HttpConnection.h
  1695. * src/HttpHeader.cc
  1696. * src/HttpHeader.h
  1697. * src/HttpRequest.cc
  1698. * src/HttpRequest.h
  1699. * src/HttpResponse.cc
  1700. * src/HttpResponse.h
  1701. * src/LibsslTLSContext.cc
  1702. * src/LibsslTLSContext.h
  1703. * src/MSEHandshake.cc
  1704. * src/MSEHandshake.h
  1705. * src/MetalinkEntry.cc
  1706. * src/MetalinkEntry.h
  1707. * src/MetalinkParserController.cc
  1708. * src/MetalinkParserController.h
  1709. * src/MetalinkParserStateMachine.cc
  1710. * src/MetalinkParserStateMachine.h
  1711. * src/MultiDiskAdaptor.cc
  1712. * src/MultiDiskAdaptor.h
  1713. * src/NetrcAuthResolver.cc
  1714. * src/NetrcAuthResolver.h
  1715. * src/Peer.cc
  1716. * src/Peer.h
  1717. * src/PeerSessionResource.cc
  1718. * src/PeerSessionResource.h
  1719. * src/Piece.cc
  1720. * src/Piece.h
  1721. * src/PieceStatMan.cc
  1722. * src/PieceStatMan.h
  1723. * src/Request.cc
  1724. * src/Request.h
  1725. * src/RequestGroup.cc
  1726. * src/RequestGroup.h
  1727. * src/RequestGroupMan.cc
  1728. * src/RequestGroupMan.h
  1729. * src/RequestSlot.cc
  1730. * src/RequestSlot.h
  1731. * src/SegmentMan.cc
  1732. * src/SegmentMan.h
  1733. * src/SelectEventPoll.cc
  1734. * src/SelectEventPoll.h
  1735. * src/ServerStat.cc
  1736. * src/ServerStat.h
  1737. * src/Signature.cc
  1738. * src/Signature.h
  1739. * src/URIResult.cc
  1740. * src/URIResult.h
  1741. * src/UTPexExtensionMessage.cc
  1742. * src/UTPexExtensionMessage.h
  1743. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Fixed compile error without BitTorrent and Metalink support.
  1745. * src/XmlRpcMethod.cc
  1746. * src/XmlRpcMethodFactory.cc
  1747. * src/XmlRpcMethodImpl.cc
  1748. * src/XmlRpcMethodImpl.h
  1749. * test/XmlRpcMethodTest.cc
  1750. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1751. Rewritten the help message for --allow-overwrite option.
  1752. * doc/aria2c.1.txt
  1753. * src/usage_text.h
  1754. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. Fixed typo
  1756. * doc/aria2c.1.txt
  1757. * src/usage_text.h
  1758. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Updated README for 1.4.0 release. Use new table syntax of
  1760. asciidoc.
  1761. * README
  1762. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. Documented --xml-rpc-max-request-size option in man page.
  1764. * doc/aria2c.1.txt
  1765. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Moved C_* constants from BtContext to DefaultBtContext.
  1767. * src/BtContext.cc: Removed.
  1768. * src/BtContext.h
  1769. * src/DefaultBtContext.cc
  1770. * src/DefaultBtContext.h
  1771. * src/Makefile.am
  1772. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1774. path key respectively when persing .torrent file.
  1775. * src/BtContext.cc
  1776. * src/BtContext.h
  1777. * src/DefaultBtContext.cc
  1778. * test/DefaultBtContextTest.cc
  1779. * test/utf8.torrent
  1780. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Added --xml-rpc-max-request-size option to limit the size of
  1782. XML-RPC request.
  1783. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1784. Documented XML-RPC API in man page.
  1785. * doc/aria2c.1.txt
  1786. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1788. will break strict-aliasing rules
  1789. * src/PeerConnection.cc
  1790. * test/DHTRoutingTableSerializerTest.cc
  1791. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1792. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1793. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1794. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1795. PKG_CHECK_MODULES macro uses latter name.
  1796. * m4/sqlite3.m4
  1797. * src/Makefile.am
  1798. * test/Makefile.am
  1799. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Fixed typo
  1801. * configure.ac
  1802. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1804. presence of libgnutls using pkg-config first. If it fails, fall
  1805. back to old macro libgnutls.m4.
  1806. * configure.ac
  1807. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1808. Use s itself instead of !s.bad()
  1809. * src/CookieStorage.cc
  1810. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1811. Documented --on-download-* option and --save-cookies option in man
  1812. page.
  1813. * doc/aria2c.1.txt
  1814. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Set possible values for --load-cookie option to "/path/to/file".
  1816. * src/OptionHandlerFactory.cc
  1817. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Added --save-cookies option.
  1819. * src/Cookie.cc
  1820. * src/Cookie.h
  1821. * src/CookieStorage.cc
  1822. * src/CookieStorage.h
  1823. * src/MultiUrlRequestInfo.cc
  1824. * src/OptionHandlerFactory.cc
  1825. * src/prefs.cc
  1826. * src/prefs.h
  1827. * src/usage_text.h
  1828. * test/CookieStorageTest.cc
  1829. * test/CookieTest.cc
  1830. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. Removed tellAll XML-RPC command because its reponse tends to be
  1832. big if stopped/waiting downloads pile up.
  1833. * src/XmlRpcMethodFactory.cc
  1834. * src/XmlRpcMethodImpl.cc
  1835. * src/XmlRpcMethodImpl.h
  1836. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1837. Added the ability to execute command when download starts and
  1838. stops. You can also specify command for particular cases such as
  1839. complete/error download. Added --on-download-start,
  1840. --on-download-stop, --on-download-complete and --on-download-error
  1841. option.
  1842. * src/OptionHandlerFactory.cc
  1843. * src/RequestGroupMan.cc
  1844. * src/prefs.cc
  1845. * src/prefs.h
  1846. * src/usage_text.h
  1847. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Fixed test error
  1849. * test/BencodeTest.cc
  1850. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1851. Added unit tests.
  1852. * test/XmlRpcMethodTest.cc
  1853. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1854. Made exception message more verbose.
  1855. * src/bencode.cc
  1856. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1857. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1858. space in console readout. Also they are now shown in MiB/s if
  1859. speed > 1024KiB/s.
  1860. * src/ConsoleStatCalc.cc
  1861. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Added SEED to console output, which represents the number of
  1863. seeders currently the client is connecting to.
  1864. * src/ConsoleStatCalc.cc
  1865. * src/ConsoleStatCalc.h
  1866. * src/DownloadEngine.cc
  1867. * src/NullStatCalc.h
  1868. * src/StatCalc.h
  1869. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Added source filename(__FILE__) and line number(__LINE__) to
  1871. exception message.
  1872. * src/AbstractCommand.cc
  1873. * src/AbstractDiskWriter.cc
  1874. * src/AbstractProxyResponseCommand.cc
  1875. * src/BDE.h
  1876. * src/BtAllowedFastMessage.cc
  1877. * src/BtHandshakeMessageValidator.h
  1878. * src/BtHaveAllMessage.cc
  1879. * src/BtHaveNoneMessage.cc
  1880. * src/BtPieceMessage.cc
  1881. * src/BtRejectMessage.cc
  1882. * src/ChunkedDecoder.cc
  1883. * src/CookieStorage.cc
  1884. * src/DHTAnnouncePeerMessage.cc
  1885. * src/DHTEntryPointNameResolveCommand.cc
  1886. * src/DHTMessageFactoryImpl.cc
  1887. * src/DHTMessageTracker.cc
  1888. * src/DHTRoutingTableDeserializer.cc
  1889. * src/DHTRoutingTableSerializer.cc
  1890. * src/DHTSetup.cc
  1891. * src/DHTTokenTracker.cc
  1892. * src/DefaultBtAnnounce.cc
  1893. * src/DefaultBtContext.cc
  1894. * src/DefaultBtInteractive.cc
  1895. * src/DefaultBtMessageFactory.cc
  1896. * src/DefaultBtProgressInfoFile.cc
  1897. * src/DefaultExtensionMessageFactory.cc
  1898. * src/DlAbortEx.h
  1899. * src/DlRetryEx.h
  1900. * src/DownloadCommand.cc
  1901. * src/DownloadEngineFactory.cc
  1902. * src/DownloadFailureException.h
  1903. * src/Exception.cc
  1904. * src/Exception.h
  1905. * src/ExpatMetalinkProcessor.cc
  1906. * src/ExpatXmlRpcRequestProcessor.cc
  1907. * src/FallocFileAllocationIterator.cc
  1908. * src/FatalException.h
  1909. * src/FtpConnection.cc
  1910. * src/FtpFinishDownloadCommand.cc
  1911. * src/FtpInitiateConnectionCommand.cc
  1912. * src/FtpNegotiationCommand.cc
  1913. * src/GZipDecoder.cc
  1914. * src/HandshakeExtensionMessage.cc
  1915. * src/HttpConnection.cc
  1916. * src/HttpHeaderProcessor.cc
  1917. * src/HttpInitiateConnectionCommand.cc
  1918. * src/HttpResponse.cc
  1919. * src/HttpResponseCommand.cc
  1920. * src/HttpServer.cc
  1921. * src/HttpSkipResponseCommand.cc
  1922. * src/InitiateConnectionCommandFactory.cc
  1923. * src/IteratableChunkChecksumValidator.cc
  1924. * src/LibgcryptARC4Context.h
  1925. * src/LibgcryptARC4Decryptor.h
  1926. * src/LibgcryptARC4Encryptor.h
  1927. * src/LibgcryptDHKeyExchange.h
  1928. * src/LibgnutlsTLSContext.cc
  1929. * src/LibsslARC4Context.h
  1930. * src/LibsslARC4Decryptor.h
  1931. * src/LibsslARC4Encryptor.h
  1932. * src/LibsslDHKeyExchange.h
  1933. * src/LibsslTLSContext.cc
  1934. * src/MSEHandshake.cc
  1935. * src/MessageDigestHelper.cc
  1936. * src/MetalinkHelper.cc
  1937. * src/MultiDiskAdaptor.cc
  1938. * src/NameMatchOptionHandler.h
  1939. * src/NameResolver.cc
  1940. * src/Netrc.cc
  1941. * src/NsCookieParser.cc
  1942. * src/OptionHandlerException.cc
  1943. * src/OptionHandlerException.h
  1944. * src/OptionHandlerImpl.h
  1945. * src/OptionParser.cc
  1946. * src/ParameterizedStringParser.cc
  1947. * src/PeerAbstractCommand.cc
  1948. * src/PeerConnection.cc
  1949. * src/PeerMessageUtil.cc
  1950. * src/PeerReceiveHandshakeCommand.cc
  1951. * src/Platform.cc
  1952. * src/ReceiverMSEHandshakeCommand.cc
  1953. * src/RecoverableException.h
  1954. * src/RequestGroup.cc
  1955. * src/SimpleLogger.cc
  1956. * src/SocketCore.cc
  1957. * src/Sqlite3MozCookieParser.cc
  1958. * src/UTPexExtensionMessage.cc
  1959. * src/Util.cc
  1960. * src/XML2SAXMetalinkProcessor.cc
  1961. * src/Xml2XmlRpcRequestProcessor.cc
  1962. * src/XmlRpcMethodImpl.cc
  1963. * src/bencode.cc
  1964. * src/download_helper.cc
  1965. * src/messageDigest.h
  1966. * test/ExceptionTest.cc
  1967. * test/TestUtil.cc
  1968. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. Bump up version number to 1.4.0
  1970. * configure.ac
  1971. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. Added 2files.metalink to EXTRA_DIST
  1973. * test/Makefile.am
  1974. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1975. Added missing 2files.metalink
  1976. * test/2files.metalink
  1977. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1978. Show "[MEMORY]" prefix before filename in download summary if it
  1979. is downloaded into memory.
  1980. * src/DownloadResult.h
  1981. * src/RequestGroup.cc
  1982. * src/RequestGroupMan.cc
  1983. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1985. * src/ExpatXmlRpcRequestProcessor.cc
  1986. * src/Xml2XmlRpcRequestProcessor.cc
  1987. * src/message.h
  1988. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Defined const BDEs to avoid duplicate instantiation.
  1990. Defined MSG_GID_NOT_PROVIDED.
  1991. * src/XmlRpcMethodImpl.cc
  1992. * src/message.h
  1993. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. Code cleanup
  1995. * src/Xml2XmlRpcRequestProcessor.cc
  1996. * src/Xml2XmlRpcRequestProcessor.h
  1997. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Defined ENABLE_XML_RPC
  1999. * configure.ac
  2000. * configure
  2001. * config.h.in
  2002. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. Added ExpatXmlRpcRequestProcessor
  2004. * src/ExpatXmlRpcRequestProcessor.cc
  2005. * src/ExpatXmlRpcRequestProcessor.h
  2006. * src/Makefile.am
  2007. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2008. Added tests for addTorrent and addMetalink command.
  2009. * test/TestUtil.cc
  2010. * test/TestUtil.h
  2011. * test/XmlRpcMethodTest.cc
  2012. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2013. Corrected the description of --file-allocation option.
  2014. * doc/aria2c.1.txt
  2015. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2016. Added tellAll command.
  2017. * src/XmlRpcMethodFactory.cc
  2018. * src/XmlRpcMethodImpl.cc
  2019. * src/XmlRpcMethodImpl.h
  2020. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2022. * src/XmlRpcMethodImpl.cc
  2023. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Added changeGlobalOption command. Currently,
  2025. max-overall-download-limit and max-overall-upload-limit option are
  2026. available.
  2027. * src/RequestGroupMan.h
  2028. * src/XmlRpcMethod.cc
  2029. * src/XmlRpcMethod.h
  2030. * src/XmlRpcMethodFactory.cc
  2031. * src/XmlRpcMethodImpl.cc
  2032. * src/XmlRpcMethodImpl.h
  2033. * test/XmlRpcMethodTest.cc
  2034. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. Added changeOption command. Currently, max-download-limit,
  2036. max-upload-limit option are available in this command.
  2037. * src/RequestGroup.h
  2038. * src/XmlRpcMethod.cc
  2039. * src/XmlRpcMethod.h
  2040. * src/XmlRpcMethodFactory.cc
  2041. * src/XmlRpcMethodImpl.cc
  2042. * src/XmlRpcMethodImpl.h
  2043. * test/XmlRpcMethodTest.cc
  2044. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2045. Added purgeDownloadResult command.
  2046. * src/RequestGroupMan.cc
  2047. * src/RequestGroupMan.h
  2048. * src/XmlRpcMethodFactory.cc
  2049. * src/XmlRpcMethodImpl.cc
  2050. * src/XmlRpcMethodImpl.h
  2051. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Refactored.
  2053. * src/XmlRpcMethod.cc
  2054. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2056. XmlRpcResponse.
  2057. * src/HttpServerBodyCommand.cc
  2058. * src/Makefile.am
  2059. * src/XmlRpcMethod.cc
  2060. * src/XmlRpcMethod.h
  2061. * src/XmlRpcMethodImpl.cc
  2062. * src/XmlRpcResponse.cc
  2063. * src/XmlRpcResponse.h
  2064. * test/XmlRpcMethodTest.cc
  2065. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. In XML-RPC option struct, header and index-out option can take
  2067. array as value.
  2068. * src/XmlRpcMethod.cc
  2069. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Removed unused option member from PeerConnection.
  2071. * src/InitiatorMSEHandshakeCommand.cc
  2072. * src/PeerConnection.cc
  2073. * src/PeerConnection.h
  2074. * src/PeerInteractionCommand.cc
  2075. * src/PeerReceiveHandshakeCommand.cc
  2076. * src/ReceiverMSEHandshakeCommand.cc
  2077. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Added "seeder" key to getPeers response.
  2079. * src/XmlRpcMethodImpl.cc
  2080. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Added addMetalink XML-RPC command.
  2082. * src/XmlRpcMethodFactory.cc
  2083. * src/XmlRpcMethodImpl.cc
  2084. * src/XmlRpcMethodImpl.h
  2085. * src/download_helper.cc
  2086. * src/download_helper.h
  2087. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Fixed the bug that POU peers are never choked in seeding.
  2089. * src/BtSeederStateChoke.cc
  2090. * src/BtSeederStateChoke.h
  2091. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Added web-seeding URI handling in addTorrent command.
  2093. * src/XmlRpcMethodImpl.cc
  2094. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Added "length" key to getFiles response.
  2096. * src/XmlRpcMethodImpl.cc
  2097. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Moved --no-netrc option from ftp option section to http/ftp option
  2099. section.
  2100. * doc/aria2c.1.txt
  2101. * src/OptionHandlerFactory.cc
  2102. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Removed garbage "\" character before '
  2104. * doc/aria2c.1.txt
  2105. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2106. Removed garbage "\" character before http.
  2107. * doc/aria2c.1.txt
  2108. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Documented additional options that can be specified in -i list.
  2110. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2111. and --xml-rpc-passwd. Removed --enable-http-server and
  2112. --http-server-listen-port.
  2113. * doc/aria2c.1.txt
  2114. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2116. * src/DefaultPeerStorage.cc
  2117. * src/DefaultPeerStorage.h
  2118. * src/PeerStorage.h
  2119. * src/XmlRpcMethodImpl.cc
  2120. * test/MockPeerStorage.h
  2121. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Put a call to Socket::isReadable() in try block.
  2123. * src/HttpServerBodyCommand.cc
  2124. * src/HttpServerCommand.cc
  2125. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2127. exception , so it is now in try block.
  2128. * src/HttpServerResponseCommand.cc
  2129. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2130. Added "amChoking" and "peerChoking" key in getPeers response.
  2131. * src/XmlRpcMethodImpl.cc
  2132. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Added test case for zero-length filter.
  2134. * test/BitfieldManTest.cc
  2135. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. getFiles command now returns file data for finished/stopped
  2137. downloads.
  2138. * src/XmlRpcMethodImpl.cc
  2139. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. DownloadResult now has the list of FileEntry. The download
  2141. summary displays the path of first selected file and the number of
  2142. remaining files for multi-file torrent.
  2143. * src/DownloadResult.h
  2144. * src/RequestGroup.cc
  2145. * src/RequestGroupMan.cc
  2146. * test/RequestGroupTest.cc
  2147. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Fixed segmentation fault error when no file is selected in
  2149. multi-file torrent.
  2150. * src/BitfieldMan.cc
  2151. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Escaped <,>,& character in XML-RPC response.
  2153. * src/XmlRpcMethod.cc
  2154. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Throw DlAbortEx instead of FatalException during parsing options
  2156. because we don't want for aria2 to quit when bad option is passed
  2157. via XML-RPC.
  2158. * src/OptionHandlerException.cc
  2159. * src/OptionHandlerException.h
  2160. * src/OptionHandlerImpl.h
  2161. * src/OptionParser.cc
  2162. * src/OptionParser.h
  2163. * src/PStringSegment.cc
  2164. * src/ParameterizedStringParser.cc
  2165. * src/download_helper.cc
  2166. * test/ParameterizedStringParserTest.cc
  2167. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2168. Selecting files are now done in
  2169. DefaultBtContext::setFileFileter().
  2170. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2171. functions are removed because they are no longer used. Creating
  2172. filter in BitfieldMan is done in new funtion
  2173. PieceStorage::setupFileFilter()
  2174. * src/BtContext.cc
  2175. * src/BtContext.h
  2176. * src/DefaultBtContext.cc
  2177. * src/DefaultBtContext.h
  2178. * src/DefaultPieceStorage.cc
  2179. * src/DefaultPieceStorage.h
  2180. * src/DiskAdaptor.cc
  2181. * src/DiskAdaptor.h
  2182. * src/PieceStorage.h
  2183. * src/RequestGroup.cc
  2184. * src/UnknownLengthPieceStorage.h
  2185. * src/XmlRpcMethodImpl.cc
  2186. * test/DefaultBtContextTest.cc
  2187. * test/MockBtContext.h
  2188. * test/MockPieceStorage.h
  2189. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Fixed compile error on Mac OS X
  2191. * src/HttpServer.cc
  2192. * src/XmlRpcMethod.h
  2193. * src/XmlRpcMethodImpl.cc
  2194. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Use std::binary_search instead of std::find
  2196. * src/DefaultPieceStorage.cc
  2197. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2198. Removed unnecessary BDE() call; leave them to implicit conversion.
  2199. * src/XmlRpcMethodImpl.cc
  2200. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2201. Return connections and gid in string
  2202. * src/XmlRpcMethodImpl.cc
  2203. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2204. Renamed addURI as addUri
  2205. * src/XmlRpcMethodFactory.cc
  2206. * src/XmlRpcMethodImpl.cc
  2207. * src/XmlRpcMethodImpl.h
  2208. * test/XmlRpcMethodTest.cc
  2209. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2210. Renamed addTorrentFile as addTorrent
  2211. * src/XmlRpcMethodFactory.cc
  2212. * src/XmlRpcMethodImpl.cc
  2213. * src/XmlRpcMethodImpl.h
  2214. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. The information for files, URIs, peers are removed from the
  2216. reponse of TellaActive, TellStatus command because they tend to be
  2217. large. Instead they can be retrieved by the dedicated commands:
  2218. getFiles, getUris and getPeers respectively.
  2219. * src/XmlRpcMethodFactory.cc
  2220. * src/XmlRpcMethodImpl.cc
  2221. * src/XmlRpcMethodImpl.h
  2222. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Removed --max-overall-upload-limit and
  2224. --max-overall-download-limit option from listRequestOptions.
  2225. * src/download_helper.cc
  2226. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Log incoming host in HttpListenCommand.
  2228. * src/HttpListenCommand.cc
  2229. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2231. --xml-rpc-passwd option.
  2232. * src/HttpServer.cc
  2233. * src/HttpServer.h
  2234. * src/HttpServerCommand.cc
  2235. * src/OptionHandlerFactory.cc
  2236. * src/prefs.cc
  2237. * src/prefs.h
  2238. * src/usage_text.h
  2239. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2241. processing 0 length request.
  2242. * src/HttpServerBodyCommand.cc
  2243. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Removed --enable-http-server and --http-server-listen-port
  2245. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2246. instead. The original feature for --enable-http-server that
  2247. reports download progress in HTML was officially removed. Persist
  2248. XML-RPC connection if client supports keep-alive.
  2249. * src/DownloadEngineFactory.cc
  2250. * src/HttpServerCommand.cc
  2251. * src/HttpServerResponseCommand.cc
  2252. * src/Makefile.am
  2253. * src/Makefile.in
  2254. * src/OptionHandlerFactory.cc
  2255. * src/RequestGroupMan.cc
  2256. * src/main.cc
  2257. * src/option_processing.cc
  2258. * src/prefs.cc
  2259. * src/prefs.h
  2260. * src/usage_text.h
  2261. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Added "uris" key to the response of tellStatus command. Added
  2263. "connections" key to the response of tellStatus and tellActive
  2264. command.
  2265. * src/XmlRpcMethodImpl.cc
  2266. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2268. Added TellStatusXmlRpcMethod. Remove command can now remove
  2269. waiting RequestGroup.
  2270. * src/RequestGroupMan.cc
  2271. * src/RequestGroupMan.h
  2272. * src/XmlRpcMethodFactory.cc
  2273. * src/XmlRpcMethodImpl.cc
  2274. * src/XmlRpcMethodImpl.h
  2275. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. Initialized _peerId
  2277. * src/Peer.cc
  2278. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Return fault structure for error. FailXmlRpcMethod is renamed as
  2280. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2281. in non-torrent download. Return single param value.
  2282. * src/XmlRpcMethod.cc
  2283. * src/XmlRpcMethodFactory.cc
  2284. * src/XmlRpcMethodImpl.cc
  2285. * src/XmlRpcMethodImpl.h
  2286. * test/XmlRpcMethodTest.cc
  2287. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2289. command.
  2290. * src/RequestGroup.cc
  2291. * src/RequestGroup.h
  2292. * src/RequestGroupMan.cc
  2293. * src/XmlRpcMethodImpl.cc
  2294. * test/RequestGroupTest.cc
  2295. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Added more options that can be specified in -i list and xml-rpc
  2297. add* command.
  2298. * src/download_helper.h
  2299. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. The available options in -i list should be listed in
  2301. listRequestOptions().
  2302. * src/download_helper.cc
  2303. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2305. command.
  2306. * src/XmlRpcMethodImpl.cc
  2307. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Now RequestGroup has its own copy of Option object. This will help
  2309. to give custom option for each RequestGroup.
  2310. addTorrentFile command now takes options.
  2311. * src/AbstractCommand.cc
  2312. * src/AbstractCommand.h
  2313. * src/AbstractProxyRequestCommand.cc
  2314. * src/ActivePeerConnectionCommand.cc
  2315. * src/ActivePeerConnectionCommand.h
  2316. * src/AdaptiveURISelector.cc
  2317. * src/BtCheckIntegrityEntry.cc
  2318. * src/BtDependency.cc
  2319. * src/BtDependency.h
  2320. * src/BtFileAllocationEntry.cc
  2321. * src/BtPostDownloadHandler.cc
  2322. * src/CheckIntegrityEntry.cc
  2323. * src/DownloadCommand.cc
  2324. * src/FtpDownloadCommand.cc
  2325. * src/FtpFinishDownloadCommand.cc
  2326. * src/FtpInitiateConnectionCommand.cc
  2327. * src/FtpNegotiationCommand.cc
  2328. * src/HttpInitiateConnectionCommand.cc
  2329. * src/HttpRequestCommand.cc
  2330. * src/HttpResponseCommand.cc
  2331. * src/HttpSkipResponseCommand.cc
  2332. * src/InitiateConnectionCommand.cc
  2333. * src/InitiateConnectionCommandFactory.cc
  2334. * src/InitiatorMSEHandshakeCommand.cc
  2335. * src/InitiatorMSEHandshakeCommand.h
  2336. * src/Metalink2RequestGroup.cc
  2337. * src/Metalink2RequestGroup.h
  2338. * src/MetalinkPostDownloadHandler.cc
  2339. * src/MultiUrlRequestInfo.cc
  2340. * src/MultiUrlRequestInfo.h
  2341. * src/PeerAbstractCommand.cc
  2342. * src/PeerInteractionCommand.cc
  2343. * src/PeerInteractionCommand.h
  2344. * src/PeerReceiveHandshakeCommand.cc
  2345. * src/PeerReceiveHandshakeCommand.h
  2346. * src/RequestGroup.cc
  2347. * src/RequestGroup.h
  2348. * src/TrackerWatcherCommand.cc
  2349. * src/TrackerWatcherCommand.h
  2350. * src/XmlRpcMethod.cc
  2351. * src/XmlRpcMethod.h
  2352. * src/XmlRpcMethodImpl.cc
  2353. * src/download_helper.cc
  2354. * src/download_helper.h
  2355. * src/main.cc
  2356. * test/BtDependencyTest.cc
  2357. * test/BtPostDownloadHandlerTest.cc
  2358. * test/DefaultBtMessageDispatcherTest.cc
  2359. * test/DownloadHandlerFactoryTest.cc
  2360. * test/DownloadHelperTest.cc
  2361. * test/Metalink2RequestGroupTest.cc
  2362. * test/MetalinkPostDownloadHandlerTest.cc
  2363. * test/RequestGroupManTest.cc
  2364. * test/RequestGroupTest.cc
  2365. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2366. Added tellActiveStatus xml-rpc command which reports download
  2367. status of active downloads.
  2368. * src/XmlRpcMethodFactory.cc
  2369. * src/XmlRpcMethodImpl.cc
  2370. * src/XmlRpcMethodImpl.h
  2371. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Added addTorrentFile xml-rpc command which receives uploaded
  2373. torrent file and add download for it.
  2374. * src/RequestGroupMan.cc
  2375. * src/XmlRpcMethodFactory.cc
  2376. * src/XmlRpcMethodImpl.cc
  2377. * src/XmlRpcMethodImpl.h
  2378. * src/download_helper.cc
  2379. * src/download_helper.h
  2380. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Added remove xml-rpc command which removes specified download.
  2382. There is a known issue: the removed unfinished downloads are
  2383. reported ERR when aria2 exits. They should be reported as INPR.
  2384. * src/RequestGroupMan.cc
  2385. * src/RequestGroupMan.h
  2386. * src/XmlRpcMethodFactory.cc
  2387. * src/XmlRpcMethodImpl.cc
  2388. * src/XmlRpcMethodImpl.h
  2389. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. If --enable-http-server is enabled, don't stop aria2 when all
  2391. download finished and don't quit when no files to download at
  2392. start up.
  2393. * src/RequestGroupMan.cc
  2394. * src/main.cc
  2395. * src/option_processing.cc
  2396. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2397. Added missing AM_CONDITIONAL
  2398. * configure.ac
  2399. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2400. Added xml-rpc functionality. Currently only addURI commad is
  2401. supported. To enable xml-rpc, run aria2 with
  2402. --enable-http-server. This option name is temporal and will be
  2403. changed. The feature that reports download progress in html format
  2404. is temporarily disabled.
  2405. * src/HttpServer.cc
  2406. * src/HttpServer.h
  2407. * src/HttpServerBodyCommand.cc
  2408. * src/HttpServerBodyCommand.h
  2409. * src/HttpServerCommand.cc
  2410. * src/HttpServerResponseCommand.cc
  2411. * src/Makefile.am
  2412. * src/OptionParser.cc
  2413. * src/OptionParser.h
  2414. * src/RequestGroupMan.cc
  2415. * src/RequestGroupMan.h
  2416. * src/XmlRpcMethod.cc
  2417. * src/XmlRpcMethod.h
  2418. * src/XmlRpcMethodFactory.cc
  2419. * src/XmlRpcMethodFactory.h
  2420. * src/XmlRpcMethodImpl.cc
  2421. * src/XmlRpcMethodImpl.h
  2422. * src/download_helper.cc
  2423. * src/download_helper.h
  2424. * test/Makefile.am
  2425. * test/XmlRpcMethodTest.cc
  2426. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Added xml-rpc request parser. The supported value types are:
  2428. i4/int, string, double, struct, array, base64. Currently only
  2429. libxml2 version is provided.
  2430. * src/Xml2XmlRpcRequestProcessor.cc
  2431. * src/Xml2XmlRpcRequestProcessor.h
  2432. * src/XmlRpcElements.cc
  2433. * src/XmlRpcElements.h
  2434. * src/XmlRpcRequest.h
  2435. * src/XmlRpcRequestParserController.cc
  2436. * src/XmlRpcRequestParserController.h
  2437. * src/XmlRpcRequestParserState.h
  2438. * src/XmlRpcRequestParserStateImpl.cc
  2439. * src/XmlRpcRequestParserStateImpl.h
  2440. * src/XmlRpcRequestParserStateMachine.cc
  2441. * src/XmlRpcRequestParserStateMachine.h
  2442. * src/XmlRpcRequestProcessor.h
  2443. * test/XmlRpcRequestParserControllerTest.cc
  2444. * test/XmlRpcRequestProcessorTest.cc
  2445. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2446. * Release 1.3.3
  2447. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Fixed compile error since r1202.
  2449. * src/ExpatMetalinkProcessor.cc
  2450. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Updated Ukrainian, Russian and Simplified Chinese
  2452. translations. Thanks to all translators.
  2453. * po/ru.po
  2454. * po/uk.po
  2455. * po/zh_CN.po
  2456. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Pass reference of Option object instead of pointer.
  2458. * src/download_helper.cc
  2459. * src/download_helper.h
  2460. * src/main.cc
  2461. * test/DownloadHelperTest.cc
  2462. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2464. from option directly. Instead, get them from RequestGroup.
  2465. * src/ActivePeerConnectionCommand.cc
  2466. * src/ActivePeerConnectionCommand.h
  2467. * src/PeerReceiveHandshakeCommand.cc
  2468. * src/RequestGroup.h
  2469. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Removed unused uploadLimitCheck and uploadLimit from
  2471. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2472. PeerInteractionCommand.
  2473. * src/PeerAbstractCommand.cc
  2474. * src/PeerAbstractCommand.h
  2475. * src/PeerInteractionCommand.cc
  2476. * src/PeerInteractionCommand.h
  2477. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2478. Fixed broken file renaming feature since r1202.
  2479. * src/FtpNegotiationCommand.cc
  2480. * src/FtpNegotiationCommand.h
  2481. * src/HttpResponseCommand.cc
  2482. * src/RequestGroup.cc
  2483. * src/RequestGroup.h
  2484. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. Removed unused debug log
  2486. * src/SocketCore.cc
  2487. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Generated configure and Makefile.in using autoconf 2.63 and
  2489. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2490. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2491. * configure.ac
  2492. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2493. Moved piece statistics stuff to new PieceStatMan class.
  2494. Refactored PieceSelector interface.
  2495. * src/DefaultPieceStorage.cc
  2496. * src/DefaultPieceStorage.h
  2497. * src/LongestSequencePieceSelector.cc
  2498. * src/LongestSequencePieceSelector.h
  2499. * src/Makefile.am
  2500. * src/PieceSelector.h
  2501. * src/PieceStatMan.cc
  2502. * src/PieceStatMan.h
  2503. * src/RarestPieceSelector.cc
  2504. * src/RarestPieceSelector.h
  2505. * src/RequestGroup.cc
  2506. * test/DefaultPieceStorageTest.cc
  2507. * test/InOrderPieceSelector.h
  2508. * test/Makefile.am
  2509. * test/PieceStatManTest.cc
  2510. * test/RarestPieceSelectorTest.cc
  2511. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Added static member _protocolFamily to SocketCore. By default,
  2513. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2514. address. Sometime SocketCore::bind() and
  2515. SocketCore::establishConnection() use difference protocl family
  2516. and latter cannot connect to former. To avoid this situation, we
  2517. limit protocol family to AF_INET for unit tests.
  2518. * src/SocketCore.cc
  2519. * src/SocketCore.h
  2520. * test/AllTest.cc
  2521. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Avoid std::bad_alloc for negative bencode string length.
  2523. * src/bencode.cc
  2524. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Supported segmented downloading with chunked transfer encoding and
  2526. content-length.
  2527. * src/DownloadCommand.cc
  2528. * src/HttpResponseCommand.cc
  2529. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2530. Bump up version number to 1.3.3
  2531. * configure.ac
  2532. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2534. from 4096 to 65536 (for insanely large ftp login banners)
  2535. * src/FtpConnection.h
  2536. * test/FtpConnectionTest.cc
  2537. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2538. In DefaultBtContext::getActualBasePath(), return first
  2539. FileEntry::getPath() for single file torrent.
  2540. * src/DefaultBtContext.cc
  2541. * test/DefaultBtContextTest.cc
  2542. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2543. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2544. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2545. Removed _directIOAllowed member from DiskWriter.
  2546. * src/AbstractDiskWriter.cc
  2547. * src/AbstractDiskWriter.h
  2548. * src/AbstractSingleDiskAdaptor.cc
  2549. * src/AbstractSingleDiskAdaptor.h
  2550. * src/BinaryStream.h
  2551. * src/ByteArrayDiskWriter.h
  2552. * src/DefaultPieceStorage.cc
  2553. * src/DiskWriter.h
  2554. * src/MultiDiskAdaptor.cc
  2555. * src/MultiDiskAdaptor.h
  2556. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Now the constructor of AbstractDiskWriter takes filename as an
  2558. argument and filename argument is removed from openFile(),
  2559. initAndOpenFile(), openExistingFile() interface. storeDir member
  2560. and its accessor functions are removed from DiskAdaptor because it
  2561. is not used anymore. size() member function of DefaultDiskWriter,
  2562. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2563. opening file.
  2564. * src/AbstractDiskWriter.cc
  2565. * src/AbstractDiskWriter.h
  2566. * src/AbstractSingleDiskAdaptor.cc
  2567. * src/AbstractSingleDiskAdaptor.h
  2568. * src/ByteArrayDiskWriter.cc
  2569. * src/ByteArrayDiskWriter.h
  2570. * src/ByteArrayDiskWriterFactory.cc
  2571. * src/ByteArrayDiskWriterFactory.h
  2572. * src/DefaultDiskWriter.cc
  2573. * src/DefaultDiskWriter.h
  2574. * src/DefaultDiskWriterFactory.cc
  2575. * src/DefaultDiskWriterFactory.h
  2576. * src/DefaultPieceStorage.cc
  2577. * src/DirectDiskAdaptor.cc
  2578. * src/DirectDiskAdaptor.h
  2579. * src/DiskAdaptor.h
  2580. * src/DiskWriter.h
  2581. * src/DiskWriterFactory.h
  2582. * src/MessageDigestHelper.cc
  2583. * src/MultiDiskAdaptor.cc
  2584. * src/RequestGroup.cc
  2585. * src/UnknownLengthPieceStorage.cc
  2586. * src/Util.cc
  2587. * test/DefaultDiskWriterTest.cc
  2588. * test/DirectDiskAdaptorTest.cc
  2589. * test/FallocFileAllocationIteratorTest.cc
  2590. * test/MessageDigestHelperTest.cc
  2591. * test/MetalinkProcessorTest.cc
  2592. * test/MultiDiskAdaptorTest.cc
  2593. * test/MultiFileAllocationIteratorTest.cc
  2594. * test/SingleFileAllocationIteratorTest.cc
  2595. * test/UtilTest.cc
  2596. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2597. Fixed the bug that aria2 aborts when --select-file is used. This
  2598. bug was introduced in r1199.
  2599. * src/MultiDiskAdaptor.cc
  2600. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2601. Code cleanup
  2602. * test/MockPieceStorage.cc
  2603. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2604. Fixed the bug that read-only file with wrong file size will cause
  2605. error because it cannot be truncated to the correct size. Now if
  2606. file size is different than the expected one, re-open file in
  2607. writable mode.
  2608. * src/AbstractSingleDiskAdaptor.cc
  2609. * src/AbstractSingleDiskAdaptor.h
  2610. * src/BtCheckIntegrityEntry.cc
  2611. * src/DiskAdaptor.h
  2612. * src/MultiDiskAdaptor.h
  2613. * src/RequestGroup.cc
  2614. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. Fixed the bug that with --check-integrity option aria2 reports
  2616. downloaded file size is 0 even if some parts of file is correctly
  2617. downloaded. This bug is reproducible for the download that a file
  2618. includes last piece is missing. This bug doesn't reveal for
  2619. single-torrent with file allocation on.
  2620. * src/IteratableChecksumValidator.cc
  2621. * test/IteratableChecksumValidatorTest.cc
  2622. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2623. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2624. * src/RequestGroupMan.cc
  2625. * src/AdaptiveURISelector.cc
  2626. * src/AdaptiveURISelector.h
  2627. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. * Release 1.3.2
  2629. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2630. Updated README
  2631. * README
  2632. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Updated Ukrainian translations. Thanks to Alexander10.
  2634. * po/uk.po
  2635. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Code cleanup
  2637. * src/MetalinkParserStateMachine.cc
  2638. * src/MetalinkParserStateMachine.h
  2639. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2641. and expat simultaneously, MetalinkProcessor is now not base class
  2642. and it is directly implemented in XML2SAXMetalinkProcessor and
  2643. ExpatMetalinkProcessor.
  2644. * src/ExpatMetalinkProcessor.cc
  2645. * src/ExpatMetalinkProcessor.h
  2646. * src/Makefile.am
  2647. * src/MetalinkHelper.cc
  2648. * src/MetalinkProcessor.h
  2649. * src/MetalinkProcessorFactory.cc: Removed.
  2650. * src/MetalinkProcessorFactory.h: Removed
  2651. * src/XML2SAXMetalinkProcessor.cc
  2652. * src/XML2SAXMetalinkProcessor.h
  2653. * test/MetalinkProcessorTest.cc
  2654. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Bump up version number to 1.3.2
  2656. * configure.ac
  2657. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Added missing file.
  2659. * test/Makefile.am
  2660. * test/url-list-singleFileEndsWithSlash.torrent
  2661. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2662. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2663. request.
  2664. * src/AnnounceList.cc
  2665. * src/AnnounceList.h
  2666. * src/BDE.cc: Added
  2667. * src/BDE.h: Added
  2668. * src/DHTAbstractMessage.cc
  2669. * src/DHTAbstractMessage.h
  2670. * src/DHTAnnouncePeerMessage.cc
  2671. * src/DHTAnnouncePeerMessage.h
  2672. * src/DHTAnnouncePeerReplyMessage.cc
  2673. * src/DHTAnnouncePeerReplyMessage.h
  2674. * src/DHTFindNodeMessage.cc
  2675. * src/DHTFindNodeMessage.h
  2676. * src/DHTFindNodeReplyMessage.cc
  2677. * src/DHTFindNodeReplyMessage.h
  2678. * src/DHTGetPeersMessage.cc
  2679. * src/DHTGetPeersMessage.h
  2680. * src/DHTGetPeersReplyMessage.cc
  2681. * src/DHTGetPeersReplyMessage.h
  2682. * src/DHTMessageFactory.h
  2683. * src/DHTMessageFactoryImpl.cc
  2684. * src/DHTMessageFactoryImpl.h
  2685. * src/DHTMessageReceiver.cc
  2686. * src/DHTMessageTracker.cc
  2687. * src/DHTMessageTracker.h
  2688. * src/DHTPingMessage.cc
  2689. * src/DHTPingMessage.h
  2690. * src/DHTPingReplyMessage.cc
  2691. * src/DHTPingReplyMessage.h
  2692. * src/DHTQueryMessage.cc
  2693. * src/DHTQueryMessage.h
  2694. * src/DHTResponseMessage.cc
  2695. * src/DHTResponseMessage.h
  2696. * src/DefaultBtAnnounce.cc
  2697. * src/DefaultBtContext.cc
  2698. * src/DefaultBtContext.h
  2699. * src/HandshakeExtensionMessage.cc
  2700. * src/Makefile.am
  2701. * src/PeerListProcessor.h
  2702. * src/UTPexExtensionMessage.cc
  2703. * src/bencode.cc
  2704. * src/bencode.h
  2705. * test/AnnounceListTest.cc
  2706. * test/BDETest.cc: Added
  2707. * test/BencodeTest.cc
  2708. * test/DHTAnnouncePeerMessageTest.cc
  2709. * test/DHTAnnouncePeerReplyMessageTest.cc
  2710. * test/DHTFindNodeMessageTest.cc
  2711. * test/DHTFindNodeReplyMessageTest.cc
  2712. * test/DHTGetPeersMessageTest.cc
  2713. * test/DHTGetPeersReplyMessageTest.cc
  2714. * test/DHTMessageFactoryImplTest.cc
  2715. * test/DHTMessageTrackerTest.cc
  2716. * test/DHTPingMessageTest.cc
  2717. * test/DHTPingReplyMessageTest.cc
  2718. * test/Makefile.am
  2719. * test/MockDHTMessageFactory.h
  2720. * test/PeerListProcessorTest.cc
  2721. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Use url-list (web-seeding) only for single-file torrent. This is
  2723. basically the same behavior with Metalink file with torrent and
  2724. URIs.
  2725. * src/RequestGroup.cc
  2726. * src/DefaultBtContext.cc
  2727. * test/DefaultBtContextTest.cc
  2728. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Rewritten expr
  2730. * src/array_fun.h
  2731. * test/array_funTest.cc
  2732. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2734. * src/DefaultBtMessageDispatcher.cc
  2735. * src/a2algo.h
  2736. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Removed ExtendedMessagingAware. Instead of using inheritance,
  2738. added ExtensionMessageRegistry and it is passed to
  2739. DefaultExtensionMessageFactory.
  2740. * src/DefaultBtInteractive.cc
  2741. * src/DefaultBtInteractive.h
  2742. * src/DefaultExtensionMessageFactory.cc
  2743. * src/DefaultExtensionMessageFactory.h
  2744. * src/ExtendedMessagingAware.h: Removed.
  2745. * src/ExtensionMessageFactory.h
  2746. * src/ExtensionMessageRegistry.h: Added.
  2747. * src/Makefile.am
  2748. * src/PeerInteractionCommand.cc
  2749. * test/DefaultExtensionMessageFactoryTest.cc
  2750. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Fixed typo in log messages
  2752. * src/MSEHandshake.cc
  2753. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Fixed the bug that prevents torrent download from finishing. The
  2755. bug doesn't reveal for all torrents. The torrents affected this
  2756. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2757. of pieces.
  2758. * src/bitfield.h
  2759. * test/bitfieldTest.cc
  2760. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Code cleanup
  2762. * src/PeerListProcessor.h
  2763. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Removed RequestGroupAware
  2765. * src/AbstractCommand.cc
  2766. * src/AbstractCommand.h
  2767. * src/ActivePeerConnectionCommand.cc
  2768. * src/ActivePeerConnectionCommand.h
  2769. * src/DHTGetPeersCommand.cc
  2770. * src/DHTGetPeersCommand.h
  2771. * src/InitiatorMSEHandshakeCommand.cc
  2772. * src/InitiatorMSEHandshakeCommand.h
  2773. * src/Makefile.am
  2774. * src/PeerInitiateConnectionCommand.cc
  2775. * src/PeerInitiateConnectionCommand.h
  2776. * src/PeerInteractionCommand.cc
  2777. * src/PeerInteractionCommand.h
  2778. * src/RealtimeCommand.cc
  2779. * src/RealtimeCommand.h
  2780. * src/RequestGroupAware.cc: Removed
  2781. * src/RequestGroupAware.h: Removed
  2782. * src/SeedCheckCommand.cc
  2783. * src/SeedCheckCommand.h
  2784. * src/SleepCommand.cc
  2785. * src/TrackerWatcherCommand.cc
  2786. * src/TrackerWatcherCommand.h
  2787. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Rewritten PeerListProcessor
  2789. * src/PeerListProcessor.h
  2790. * src/CompactPeerListProcessor.h: Removed
  2791. * src/CompactPeerListProcessor.cc: Removed
  2792. * src/DelegatingPeerListProcessor.cc: Removed.
  2793. * src/DefaultBtAnnounce.cc
  2794. * src/Makefile.am
  2795. * src/UTPexExtensionMessage.cc
  2796. * src/DefaultPeerListProcessor.h: Removed.
  2797. * src/DefaultPeerListProcessor.cc: Removed.
  2798. * src/DelegatingPeerListProcessor.h: Removed.
  2799. * test/Makefile.am
  2800. * test/PeerListProcessorTest.cc
  2801. * test/DefaultPeerListProcessorTest.cc: Removed.
  2802. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Rewritten RequestGroupMan::calculateStat()
  2804. * src/RequestGroupMan.cc
  2805. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2806. Removed unnecessary virtual destructor for Request class.
  2807. * src/Request.cc
  2808. * src/Request.h
  2809. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Avoid dynamic_pointer_cast.
  2811. * src/DHTGetPeersCommand.cc
  2812. * src/DHTGetPeersCommand.h
  2813. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2815. BtEvent.
  2816. * src/AbstractBtEventListener.h: Removed.
  2817. * src/AbstractBtMessage.cc
  2818. * src/AbstractBtMessage.h
  2819. * src/BtAbortOutstandingRequestEvent.h
  2820. * src/BtCancelSendingPieceEvent.h
  2821. * src/BtChokedEvent.h: Removed.
  2822. * src/BtChokingEvent.h
  2823. * src/BtEvent.h: Removed
  2824. * src/BtEventListener.h: Removed.
  2825. * src/BtMessage.h
  2826. * src/BtPieceMessage.cc
  2827. * src/BtPieceMessage.h
  2828. * src/BtRequestMessage.cc
  2829. * src/BtRequestMessage.h
  2830. * src/DefaultBtMessageDispatcher.cc
  2831. * src/Makefile.am
  2832. * src/a2functional.h
  2833. * test/BtPieceMessageTest.cc
  2834. * test/BtRequestMessageTest.cc
  2835. * test/DefaultBtMessageDispatcherTest.cc
  2836. * test/MockBtMessage.h
  2837. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2838. Code cleanup
  2839. * src/RequestGroupMan.cc
  2840. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2841. Code cleanup
  2842. * src/DownloadCommand.cc
  2843. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2844. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2845. byte.
  2846. * src/DownloadCommand.cc
  2847. * src/bitfield.h
  2848. * test/bitfieldTest.cc
  2849. Fixed the bug that causes infinite loop if broken web server
  2850. returns chunked response without last "0" chunk-size marker and
  2851. closes connection.
  2852. * src/DownloadCommand.cc
  2853. Instantiate properly configured HttpDownloadCommand for
  2854. non-resumable downlaods.
  2855. * src/HttpResponseCommand.cc
  2856. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Rewritten array operation functions.
  2858. * src/BitfieldMan.cc
  2859. * src/array_fun.h
  2860. * test/array_funTest.cc
  2861. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Removed unused variable 'query'
  2863. * src/Request.cc
  2864. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2865. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2866. accidentally set to false in r1162.
  2867. * configure.ac
  2868. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Code cleanup
  2870. * src/BNode.cc
  2871. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2872. Increase prefixLength for the bucket which doesn't own local node
  2873. ID when splitting bucket.
  2874. * src/DHTBucket.cc
  2875. * test/DHTBucketTest.cc
  2876. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. * Release 1.3.1
  2878. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Bump up version number to 1.3.1
  2880. * configure.ac
  2881. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2882. Removed unused variable checkPoint. Also removed include directive
  2883. for TimeA2.h.
  2884. * src/SeedCheckCommand.h
  2885. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Fixed the bug that upload limit exceeds the value specified in
  2887. --seed-ratio option depending on the timing of the execution of
  2888. SeedCheckCommand.
  2889. * src/SeedCheckCommand.cc
  2890. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2891. Fixed the bug that removed peer's session upload/download length
  2892. are counted twice in _cachedTransferStat before it is
  2893. re-calculated. This affected the calculation of shara ratio,
  2894. resulting aria2 wrongly determines that specified share ratio is
  2895. reached. Also fixed the typo in calculateStatFor function name.
  2896. * src/BtSetup.cc
  2897. * src/DefaultPeerStorage.cc
  2898. * src/ShareRatioSeedCriteria.h
  2899. * test/ShareRatioSeedCriteriaTest.cc
  2900. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2901. * Release 1.3.0
  2902. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2904. Nynorsk translations. Thanks to all translators.
  2905. * po/es.po
  2906. * po/ja.po
  2907. * po/nn.po
  2908. * po/ru.po
  2909. * po/uk.po
  2910. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Rewritten isInRange()
  2912. * src/DHTBucket.cc
  2913. * test/DHTBucketTest.cc
  2914. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2915. Fixed typo
  2916. * doc/aria2c.1.txt
  2917. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2919. malloc/realloc is not used.
  2920. * src/configure.ac
  2921. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2923. char* bitfield instead of stl container for efficiency.
  2924. PieceSelector::select now takes this
  2925. bitfield. RarestPieceSelector::select now also performs
  2926. efficiently for this change. bitfield namespace is introduced and
  2927. it has several helper functions to handle basic bitfield
  2928. operations such as test, count set bits, etc.
  2929. * src/BitfieldMan.cc
  2930. * src/BitfieldMan.h
  2931. * src/DefaultBtRequestFactory.cc
  2932. * src/DefaultPieceStorage.cc
  2933. * src/DefaultPieceStorage.h
  2934. * src/LongestSequencePieceSelector.cc
  2935. * src/LongestSequencePieceSelector.h
  2936. * src/Makefile.am
  2937. * src/Piece.cc
  2938. * src/Piece.h
  2939. * src/PieceSelector.h
  2940. * src/RarestPieceSelector.cc
  2941. * src/RarestPieceSelector.h
  2942. * src/Util.cc
  2943. * src/Util.h
  2944. * src/bitfield.h
  2945. * test/BitfieldManTest.cc
  2946. * test/LongestSequencePieceSelectorTest.cc
  2947. * test/Makefile.am
  2948. * test/RarestPieceSelectorTest.cc
  2949. * test/UtilTest.cc
  2950. * test/bitfieldTest.cc
  2951. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2952. Made accepted socket non-block.
  2953. * src/FtpNegotiationCommand.cc
  2954. * src/HttpListenCommand.cc
  2955. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2957. * src/AbstractSingleDiskAdaptor.cc
  2958. * src/DefaultPieceStorage.cc
  2959. * src/DiskAdaptor.h
  2960. * src/DiskAdaptor.h
  2961. * src/MultiFileAllocationIterator.cc
  2962. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2963. Run
  2964. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2965. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2966. it doesn't need to be called every time when
  2967. DefaultBtInteractive::doInteractionProcessing() is called.
  2968. * src/DefaultBtInteractive.cc
  2969. * src/DefaultBtInteractive.h
  2970. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2971. Documented 'falloc' in man page.
  2972. * doc/aria2c.1.txt
  2973. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Updated doc
  2975. * src/usage_text.h
  2976. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2977. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2978. allocation mode uses posix_fallocate() system call to allocate
  2979. file on disk. If you are using newer file systems such as ext4
  2980. (with extents support), btrfs or xfs, 'falloc' is your best
  2981. choice. It allocates large(few GiB) files almost instantly. Don't
  2982. use 'falloc' with legacy file systems such as ext3 because it
  2983. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2984. until allocation finishes. 'falloc' may not be available if your
  2985. system doesn't have posix_fallocate() system call.
  2986. * configure.ac
  2987. * src/AbstractDiskWriter.cc
  2988. * src/AbstractDiskWriter.h
  2989. * src/AbstractSingleDiskAdaptor.cc
  2990. * src/BinaryStream.h
  2991. * src/BtCheckIntegrityEntry.cc
  2992. * src/ByteArrayDiskWriter.h
  2993. * src/CheckIntegrityEntry.cc
  2994. * src/CheckIntegrityEntry.h
  2995. * src/DefaultPieceStorage.cc
  2996. * src/DiskAdaptor.cc
  2997. * src/DiskAdaptor.h
  2998. * src/DiskWriter.h
  2999. * src/FallocFileAllocationIterator.cc
  3000. * src/FallocFileAllocationIterator.h
  3001. * src/FileAllocationEntry.cc
  3002. * src/FileAllocationEntry.h
  3003. * src/Makefile.am
  3004. * src/MultiFileAllocationIterator.cc
  3005. * src/MultiFileAllocationIterator.h
  3006. * src/OptionHandlerFactory.cc
  3007. * src/RequestGroup.cc
  3008. * src/StreamCheckIntegrityEntry.cc
  3009. * src/prefs.cc
  3010. * src/prefs.h
  3011. * src/usage_text.h
  3012. * test/FallocFileAllocationIteratorTest.cc
  3013. * test/Makefile.am
  3014. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Removed duplicate enableDirectIO() call.
  3016. * src/MultiFileAllocationIterator.cc
  3017. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3018. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3019. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3020. cost of std::rotate().
  3021. * src/RarestPieceSelector.cc
  3022. * src/RarestPieceSelector.h
  3023. * test/RarestPieceSelectorTest.cc
  3024. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Updated usage doc for --bt-tracker-interval option.
  3026. * src/usage_text.h
  3027. * doc/aria2c.1.txt
  3028. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3029. Documented --bt-tracker-interval option in man page.
  3030. * doc/aria2c.1.txt
  3031. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Added an option to specify the interval between tracker requests.
  3033. If non-zero value is specified, aria2 uses it and ignores the
  3034. interval value in the response of tracker. If zero is specified,
  3035. aria2 determines the inteval value based on the tarcker response
  3036. and download progress.
  3037. * src/DefaultBtAnnounce.cc
  3038. * src/DefaultBtAnnounce.h
  3039. * src/OptionHandlerFactory.cc
  3040. * src/RequestGroup.cc
  3041. * src/prefs.cc
  3042. * src/prefs.h
  3043. * src/usage_text.h
  3044. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3045. Added operator+=, operator-=, operator-
  3046. * src/TransferStat.cc
  3047. * src/TransferStat.h
  3048. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3049. Refactored RarestPieceSelector to reduce CPU load, especially for
  3050. addPieceStats.
  3051. * src/RarestPieceSelector.cc
  3052. * src/RarestPieceSelector.h
  3053. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3055. getAllMissingBlockIndexes to reduce a call to
  3056. array_function_base::operator[].
  3057. * src/BitfieldMan.cc
  3058. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. Cached TransferStat/download speed to avoid to sum them up in each
  3060. call.
  3061. * src/DefaultPeerStorage.cc
  3062. * src/DefaultPeerStorage.h
  3063. * src/SegmentMan.cc
  3064. * src/SegmentMan.h
  3065. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Typedefed cuid_t as int32_t in Command.h
  3067. * src/CUIDCounter.h
  3068. * src/Command.cc
  3069. * src/Command.h
  3070. * src/DownloadEngine.cc
  3071. * src/DownloadEngine.h
  3072. * src/PeerStat.h
  3073. * src/SegmentMan.cc
  3074. * src/SegmentMan.h
  3075. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3076. Reduced the number of calls to PeerStorage::calculateStat() and
  3077. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3078. transfer rate.
  3079. * src/DefaultBtInteractive.cc
  3080. * src/DefaultBtMessageDispatcher.cc
  3081. * src/DefaultPeerStorage.cc
  3082. * src/DefaultPeerStorage.h
  3083. * src/DownloadCommand.cc
  3084. * src/DownloadEngine.cc
  3085. * src/PeerStorage.h
  3086. * src/SegmentMan.cc
  3087. * src/SegmentMan.h
  3088. * test/MockPeerStorage.h
  3089. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3090. Prepended _dir+"/" after joining path elements in torrent file.
  3091. * src/DefaultBtContext.cc
  3092. * test/DefaultBtContextTest.cc
  3093. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3094. Added missing IndexBtMessageValidator.h
  3095. * src/Makefile.am
  3096. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3097. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3098. Chinese translations. Thank you for contributing our project.
  3099. * po/id.po
  3100. * po/it.po
  3101. * po/ru.po
  3102. * po/uk.po
  3103. * po/zh_CN.po
  3104. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3105. Updated README
  3106. * README
  3107. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3108. Bump up version number to 1.3.0
  3109. * configure.ac
  3110. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Updated doc
  3112. * src/DefaultBtContext.h
  3113. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3114. Slice/joinPath for name of single torrent.
  3115. * src/DefaultBtContext.cc
  3116. * test/DefaultBtContextTest.cc
  3117. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3118. Updated man page: Documented --dry-run and --index-out
  3119. options. Changed the default value of --uri-selector and
  3120. --http-auth-challenge options. Removed --direct-file-mapping
  3121. option. Added example for --index-out
  3122. * doc/aria2c.1.txt
  3123. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3124. Updated TEXT_DRY_RUN
  3125. * src/usage_text.h
  3126. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3127. Changed the default value of --uri-selector option from 'inorder'
  3128. to 'feedback'
  3129. * src/OptionHandlerFactory.cc
  3130. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3131. Included current URI in exception message.
  3132. * src/AbstractCommand.cc
  3133. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3134. Renamed ServerStatURISelector as FeedbackURISelector.
  3135. * src/FeedbackURISelector.cc
  3136. * src/FeedbackURISelector.h
  3137. * src/Makefile.am
  3138. * src/RequestGroupMan.cc
  3139. * src/ServerStatURISelector.cc
  3140. * src/ServerStatURISelector.h
  3141. * test/FeedbackURISelectorTest.cc
  3142. * test/Makefile.am
  3143. * test/ServerStatURISelectorTest.cc
  3144. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3146. all URIs are tested and their timeout is not reached.
  3147. * src/AdaptiveURISelector.cc
  3148. * src/AdaptiveURISelector.h
  3149. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3150. Changed the default value of --http-auth-challenge option to false.
  3151. * src/OptionHandlerFactory.cc
  3152. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Reuse URIs when all unused URIs run out.
  3154. * src/OptionHandlerFactory.cc
  3155. * src/RequestGroup.cc
  3156. * src/prefs.cc
  3157. * src/prefs.h
  3158. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3159. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3160. and BtRejectMessage are derived from RangeBtMessage class.
  3161. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3162. derived from IndexBtMessage class. BtChokeMessage,
  3163. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3164. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3165. ZeroBtMessage class.
  3166. * src/AbstractBtMessage.cc
  3167. * src/AbstractBtMessage.h
  3168. * src/BtAllowedFastMessage.cc
  3169. * src/BtAllowedFastMessage.h
  3170. * src/BtAllowedFastMessageValidator.h: Removed
  3171. * src/BtBitfieldMessage.cc
  3172. * src/BtBitfieldMessage.h
  3173. * src/BtCancelMessage.cc
  3174. * src/BtCancelMessage.h
  3175. * src/BtCancelMessageValidator.h: Removed
  3176. * src/BtChokeMessage.cc
  3177. * src/BtChokeMessage.h
  3178. * src/BtExtendedMessage.cc
  3179. * src/BtExtendedMessage.h
  3180. * src/BtHandshakeMessage.cc
  3181. * src/BtHandshakeMessage.h
  3182. * src/BtHaveAllMessage.cc
  3183. * src/BtHaveAllMessage.h
  3184. * src/BtHaveMessage.cc
  3185. * src/BtHaveMessage.h
  3186. * src/BtHaveMessageValidator.h: Removed
  3187. * src/BtHaveNoneMessage.cc
  3188. * src/BtHaveNoneMessage.h
  3189. * src/BtInterestedMessage.cc
  3190. * src/BtInterestedMessage.h
  3191. * src/BtKeepAliveMessage.cc
  3192. * src/BtKeepAliveMessage.h
  3193. * src/BtNotInterestedMessage.cc
  3194. * src/BtNotInterestedMessage.h
  3195. * src/BtPieceMessage.cc
  3196. * src/BtPieceMessage.h
  3197. * src/BtPortMessage.cc
  3198. * src/BtPortMessage.h
  3199. * src/BtRejectMessage.cc
  3200. * src/BtRejectMessage.h
  3201. * src/BtRejectMessageValidator.h: Removed
  3202. * src/BtRequestMessage.cc
  3203. * src/BtRequestMessage.h
  3204. * src/BtRequestMessageValidator.h: Removed
  3205. * src/BtSuggestPieceMessage.cc
  3206. * src/BtSuggestPieceMessage.h
  3207. * src/BtSuggestPieceMessageValidator.h: Removed
  3208. * src/BtUnchokeMessage.cc
  3209. * src/BtUnchokeMessage.h
  3210. * src/DefaultBtMessageFactory.cc
  3211. * src/IndexBtMessage.cc
  3212. * src/IndexBtMessage.h
  3213. * src/IndexBtMessageValidator.h
  3214. * src/Makefile.am
  3215. * src/PeerMessageUtil.cc
  3216. * src/PeerMessageUtil.h
  3217. * src/RangeBtMessage.cc
  3218. * src/RangeBtMessage.h
  3219. * src/RangeBtMessageValidator.h
  3220. * src/SimpleBtMessage.cc
  3221. * src/SimpleBtMessage.h
  3222. * src/ZeroBtMessage.cc
  3223. * src/ZeroBtMessage.h
  3224. * test/BtRequestMessageTest.cc
  3225. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. Reverted usage_text.h to r1093 to avoid to lose translated
  3227. messages.
  3228. * src/usage_text.h
  3229. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3230. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3231. declared as non-const previously is now const and defined in class
  3232. definition.
  3233. * src/AbstractBtMessage.cc
  3234. * src/AbstractBtMessage.h
  3235. * src/BtAllowedFastMessage.cc
  3236. * src/BtAllowedFastMessage.h
  3237. * src/BtBitfieldMessage.h
  3238. * src/BtCancelMessage.cc
  3239. * src/BtCancelMessage.h
  3240. * src/BtChokeMessage.cc
  3241. * src/BtChokeMessage.h
  3242. * src/BtExtendedMessage.cc
  3243. * src/BtExtendedMessage.h
  3244. * src/BtHandshakeMessage.cc
  3245. * src/BtHandshakeMessage.h
  3246. * src/BtHaveAllMessage.cc
  3247. * src/BtHaveAllMessage.h
  3248. * src/BtHaveMessage.cc
  3249. * src/BtHaveMessage.h
  3250. * src/BtHaveNoneMessage.cc
  3251. * src/BtHaveNoneMessage.h
  3252. * src/BtInterestedMessage.cc
  3253. * src/BtInterestedMessage.h
  3254. * src/BtKeepAliveMessage.cc
  3255. * src/BtKeepAliveMessage.h
  3256. * src/BtMessage.h
  3257. * src/BtNotInterestedMessage.cc
  3258. * src/BtNotInterestedMessage.h
  3259. * src/BtPieceMessage.h
  3260. * src/BtPortMessage.cc
  3261. * src/BtPortMessage.h
  3262. * src/BtRejectMessage.cc
  3263. * src/BtRejectMessage.h
  3264. * src/BtRequestMessage.cc
  3265. * src/BtRequestMessage.h
  3266. * src/BtSuggestPieceMessage.cc
  3267. * src/BtSuggestPieceMessage.h
  3268. * src/BtUnchokeMessage.cc
  3269. * src/BtUnchokeMessage.h
  3270. * src/SimpleBtMessage.cc
  3271. * src/SimpleBtMessage.h
  3272. * test/MockBtMessage.h
  3273. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3274. Use FileEntry::exists()
  3275. * src/MultiDiskAdaptor.cc
  3276. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3277. Added exists()
  3278. * src/FileEntry.cc
  3279. * src/FileEntry.h
  3280. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Added missing prefix dir.
  3282. * src/download_helper.cc
  3283. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3284. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3285. * src/CopyDiskAdaptor.cc: Removed
  3286. * src/CopyDiskAdaptor.h: Removed
  3287. * src/DefaultPieceStorage.cc
  3288. * src/Makefile.am
  3289. * src/OptionHandlerFactory.cc
  3290. * src/prefs.cc
  3291. * src/prefs.h
  3292. * src/usage_text.h
  3293. * test/CopyDiskAdaptorTest.cc: Removed
  3294. * test/Makefile.am
  3295. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3296. Rewritten isSameFileBeingDownloaded()
  3297. * src/RequestGroupMan.cc
  3298. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3299. Removed getName() from DownloadContext. getName() is declared in
  3300. BtContext.
  3301. * src/BtContext.h
  3302. * src/DownloadContext.h
  3303. * src/SingleFileDownloadContext.cc
  3304. * src/SingleFileDownloadContext.h
  3305. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3306. in AbstractSingleDiskAdaptor.
  3307. * src/AbstractSingleDiskAdaptor.h
  3308. * src/DiskAdaptor.h
  3309. * src/MultiDiskAdaptor.h
  3310. * src/RequestGroup.cc
  3311. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3312. MultiDiskAdaptor.
  3313. * src/DefaultPieceStorage.cc
  3314. * src/MultiDiskAdaptor.cc
  3315. * src/MultiDiskAdaptor.h
  3316. * test/MultiDiskAdaptorTest.cc
  3317. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. FileEntry::getPath() contains store(top level) directory to
  3319. simplify path handling operation. In the previous implementation,
  3320. store directory is concatenated to FileEntry::getPath() in
  3321. DownloadContext.
  3322. * src/BtDependency.cc
  3323. * src/BtPostDownloadHandler.cc
  3324. * src/CopyDiskAdaptor.cc
  3325. * src/DefaultBtContext.cc
  3326. * src/DirectDiskAdaptor.cc
  3327. * src/FileEntry.cc
  3328. * src/FileEntry.h
  3329. * src/FtpNegotiationCommand.cc
  3330. * src/HttpResponse.cc
  3331. * src/HttpResponseCommand.cc
  3332. * src/Metalink2RequestGroup.cc
  3333. * src/MultiDiskAdaptor.cc
  3334. * src/MultiDiskAdaptor.h
  3335. * src/MultiFileAllocationIterator.cc
  3336. * src/RequestGroup.cc
  3337. * src/SingleFileDownloadContext.cc
  3338. * src/SingleFileDownloadContext.h
  3339. * src/download_helper.cc
  3340. * test/BtDependencyTest.cc
  3341. * test/CopyDiskAdaptorTest.cc
  3342. * test/DefaultBtContextTest.cc
  3343. * test/DefaultBtProgressInfoFileTest.cc
  3344. * test/DirectDiskAdaptorTest.cc
  3345. * test/DownloadHelperTest.cc
  3346. * test/FileEntryTest.cc
  3347. * test/MultiDiskAdaptorTest.cc
  3348. * test/MultiFileAllocationIteratorTest.cc
  3349. * test/RequestGroupTest.cc
  3350. * test/SingleFileDownloadContextTest.cc
  3351. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3352. Fixed compiler warning
  3353. * src/download_helper.cc
  3354. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3355. Throw exception if same infohash torrent is now downloading.
  3356. * src/RequestGroup.cc
  3357. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3358. Added --dry-run option. In this mode, aria2 just checks whether
  3359. the remote file is available and doesn't download data. This
  3360. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3361. are canceled in this mode.
  3362. * src/FtpNegotiationCommand.cc
  3363. * src/HttpResponseCommand.cc
  3364. * src/HttpResponseCommand.h
  3365. * src/OptionHandlerFactory.cc
  3366. * src/RequestGroup.cc
  3367. * src/RequestGroupMan.cc
  3368. * src/prefs.cc
  3369. * src/prefs.h
  3370. * src/usage_text.h
  3371. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Fixed compiler waring
  3373. * test/UriListParserTest.cc
  3374. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3375. Parse options in -i list using OptionParser.
  3376. * src/UriListParser.cc
  3377. * src/UriListParser.h
  3378. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3379. Don't reset URI in retry to avoid additional round trips because
  3380. of redirects.
  3381. * src/AbstractCommand.cc
  3382. * src/OptionHandlerFactory.cc
  3383. * src/prefs.cc
  3384. * src/prefs.h
  3385. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3386. Declared hide() in OptionHandler.
  3387. * src/NameMatchOptionHandler.h
  3388. * src/OptionHandler.h
  3389. * src/OptionHandlerImpl.h
  3390. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3391. Updated doc
  3392. * src/Peer.h
  3393. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Added log message in setStatusInternal()
  3395. * src/ServerStat.cc
  3396. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3398. effectively exclude failed server.
  3399. * src/AbstractCommand.cc
  3400. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3401. Added --index-out option to specify each file path for torrent.
  3402. Here index shown in --show-files option is used to specify which
  3403. file path should be altered. For example, to change the file path
  3404. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3405. option multiple times: --index-out=1=aria2.tar.bz2
  3406. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3407. available. This option can be specified in -i list.
  3408. * src/DefaultBtContext.cc
  3409. * src/DefaultBtContext.h
  3410. * src/MultiDiskAdaptor.cc
  3411. * src/MultiDiskAdaptor.h
  3412. * src/MultiFileAllocationIterator.cc
  3413. * src/OptionHandlerFactory.cc
  3414. * src/OptionHandlerImpl.h
  3415. * src/Util.cc
  3416. * src/Util.h
  3417. * src/download_helper.cc
  3418. * src/prefs.cc
  3419. * src/prefs.h
  3420. * src/usage_text.h
  3421. * test/DefaultBtContextTest.cc
  3422. * test/MultiDiskAdaptorTest.cc
  3423. * test/MultiFileAllocationIteratorTest.cc
  3424. * test/UtilTest.cc
  3425. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3426. Use Util::pathJoin()
  3427. * src/MetalinkParserController.cc
  3428. * test/test.xml
  3429. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3430. Use Util::pathJoin()
  3431. * src/DefaultBtContext.cc
  3432. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3433. Added Util::pathJoin()
  3434. * src/Util.h
  3435. * test/UtilTest.cc
  3436. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3437. Applied basename function to remove directory element in
  3438. content-disposition value.
  3439. Return empty string if content-disposition value is ".." or ".".
  3440. * src/Util.cc
  3441. * test/UtilTest.cc
  3442. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Added --max-overall-download-limit in man page.
  3444. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3445. * doc/aria2c.1.txt
  3446. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3447. Added --max-overall-download-limit option. Now --max-upload-limit
  3448. option is not ignored when --max-overall-upload-limit option has
  3449. non-zero value. aria2 checks download(upload) speed in the order:
  3450. first checks overall speed limit and if it is not exceeded, then
  3451. checks speed limit per download. Thus you can specify both
  3452. value. For example, set --max-overall-download-limit=1M and
  3453. --max-download-limit=500K to prevent from one download from eating
  3454. all overall speed limit.
  3455. * src/DefaultBtInteractive.cc
  3456. * src/DefaultBtInteractive.h
  3457. * src/DefaultBtMessageDispatcher.cc
  3458. * src/DefaultBtMessageDispatcher.h
  3459. * src/DownloadCommand.cc
  3460. * src/DownloadCommand.h
  3461. * src/FtpNegotiationCommand.cc
  3462. * src/HttpResponseCommand.cc
  3463. * src/OptionHandlerFactory.cc
  3464. * src/PeerInteractionCommand.cc
  3465. * src/RequestGroup.cc
  3466. * src/RequestGroup.h
  3467. * src/RequestGroupMan.cc
  3468. * src/RequestGroupMan.h
  3469. * src/prefs.cc
  3470. * src/prefs.h
  3471. * src/usage_text.h
  3472. * test/DefaultBtMessageDispatcherTest.cc
  3473. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3474. Documented select-file option in Input File section.
  3475. Documented --http-auth-challenge option.
  3476. * doc/aria2c.1.txt
  3477. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3478. Now select-file can be specified in the uri list(-i list).
  3479. * src/BtContext.cc
  3480. * src/BtContext.h
  3481. * src/RequestGroup.cc
  3482. * src/Sequence.h
  3483. * src/download_helper.cc
  3484. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3485. Made the upper value of --max-concurrent-downloads options unlimited.
  3486. * src/OptionHandlerFactory.cc
  3487. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3488. Fixed the bug that disk writer is not created even if it shares
  3489. same piece with the preceding file if the length of previous file
  3490. is 0.
  3491. * src/MultiDiskAdaptor.cc
  3492. * test/MultiDiskAdaptorTest.cc
  3493. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. In BitTorrent, Open files in read-only mode for hash check. After
  3495. that, re-open file in read/write mode only when the download is
  3496. not finished.
  3497. * src/AbstractDiskWriter.cc
  3498. * src/AbstractDiskWriter.h
  3499. * src/AbstractSingleDiskAdaptor.cc
  3500. * src/AbstractSingleDiskAdaptor.h
  3501. * src/BtCheckIntegrityEntry.cc
  3502. * src/DiskAdaptor.h
  3503. * src/DiskWriter.h
  3504. * src/MultiDiskAdaptor.cc
  3505. * src/MultiDiskAdaptor.h
  3506. * src/RequestGroup.cc
  3507. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Added --http-auth-challenge option. If it is set to true(by
  3509. default), aria2 sends HTTP authorization header only when it is
  3510. requested by the server. If false is set, then authorization
  3511. header is always sent to the server. This is useful for servers
  3512. that don't respond 401 code when authentication is required.
  3513. There is an exception: if username and password are embedded in
  3514. URI, authorization header is always sent to the server regardless
  3515. of this option.
  3516. * src/AuthConfigFactory.cc
  3517. * src/HttpSkipResponseCommand.cc
  3518. * src/OptionHandlerFactory.cc
  3519. * src/prefs.cc
  3520. * src/prefs.h
  3521. * src/usage_text.h
  3522. * test/AuthConfigFactoryTest.cc
  3523. * test/HttpRequestTest.cc
  3524. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. * Release 1.2.0
  3526. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3527. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3528. Thanks to all translators.
  3529. * po/es.po
  3530. * po/ja.po
  3531. * po/ru.po
  3532. * po/uk.po
  3533. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Call deleteSocketForReadCheck() before socket is closed.
  3535. * src/HttpListenCommand.cc
  3536. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3537. Defined virtual destructor for BObject.
  3538. * src/bencode.h
  3539. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Rewritten BDE to make it efficient.
  3541. * src/bencode.cc
  3542. * src/bencode.h
  3543. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3544. Removed function throw list.
  3545. * src/bencode.cc
  3546. * src/bencode.h
  3547. * test/BencodeTest.cc
  3548. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Enclosed all URLs in double quotes in command-line examples.
  3550. * doc/aria2c.1.txt
  3551. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Updated reference/see also section.
  3553. * README
  3554. * doc/aria2c.1.txt
  3555. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3556. Reorganized man page based on man man-pages.
  3557. * doc/aria2c.1.txt
  3558. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3560. because same documents are available in man page. Added
  3561. References section.
  3562. * README
  3563. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3564. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3565. PERFORMANCE PROFILE section.
  3566. * doc/aria2c.1.txt
  3567. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3568. Rewritten the section for configuration file.
  3569. * README
  3570. * doc/aria2c.1.txt
  3571. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3572. Fixed the segmentation fault during execution of choking algorithm
  3573. in leecher state because of broken compare operator
  3574. implementation.
  3575. * src/BtLeecherStateChoke.cc
  3576. * src/BtLeecherStateChoke.h
  3577. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3578. Open file in binary mode.
  3579. * src/CookieStorage.cc
  3580. * src/DHTSetup.cc
  3581. * src/DHTUtil.cc
  3582. * src/Netrc.cc
  3583. * src/NsCookieParser.cc
  3584. * src/ProtocolDetector.cc
  3585. * src/RequestGroupMan.cc
  3586. * src/Signature.cc
  3587. * src/bencode.cc
  3588. * src/download_helper.cc
  3589. * src/option_processing.cc
  3590. * test/CookieParserTest.cc
  3591. * test/DefaultBtProgressInfoFileTest.cc
  3592. * test/FileTest.cc
  3593. * test/GZipDecoderTest.cc
  3594. * test/RequestGroupManTest.cc
  3595. * test/SignatureTest.cc
  3596. * test/SingleFileAllocationIteratorTest.cc
  3597. * test/UriListParserTest.cc
  3598. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3599. Removed operator[] because it is ambiguous with built-in []
  3600. operator.
  3601. * src/array_fun.h
  3602. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3603. Fixed compile error
  3604. * src/OptionParser.cc
  3605. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3606. Added missing call to arrayWrapperConst
  3607. * test/array_funTest.cc
  3608. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3609. Use array_wrapper instead of array_ptr.
  3610. * src/DHTRoutingTableDeserializer.cc
  3611. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3612. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3613. * src/array_fun.h
  3614. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. Added array_wrapper template.
  3616. * src/array_fun.h
  3617. * test/array_funTest.cc
  3618. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3619. Use operator T* of array_ptr.
  3620. * src/OptionParser.cc
  3621. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3622. Use localhost instead of 127.0.0.1
  3623. * test/FtpConnectionTest.cc
  3624. * test/MSEHandshakeTest.cc
  3625. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3626. Added operator T*
  3627. * src/array_fun.h
  3628. * test/array_funTest.cc
  3629. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3630. Use dynamically allocated char array to detect memory access
  3631. violation.
  3632. * src/DHTRoutingTableDeserializer.cc
  3633. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3635. defined.
  3636. * src/PeerMessageUtil.cc
  3637. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3638. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3639. * configure.ac
  3640. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3641. Added a check to see struct sockaddr_in has sin_len member.
  3642. * configure.ac
  3643. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3644. Fixed buffer overrun.
  3645. * src/DHTRoutingTableDeserializer.cc
  3646. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3647. Added LL for long long int constant.
  3648. * test/FtpConnectionTest.cc
  3649. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3650. Casted to unsigned int to suppress compiler warning on netbsd.
  3651. * src/BtRuntime.h
  3652. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3654. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3655. type time_t.
  3656. * src/SimpleLogger.cc
  3657. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3658. Added test for FtpConnection::receiveSizeResponse().
  3659. * test/FtpConnectionTest.cc
  3660. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Fix epoll error on the old kernel 2.6.8 or ealier.
  3662. * src/EpollEventPoll.cc
  3663. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Use Util::parseLLInt instead of sscanf for portability. The
  3665. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3666. * src/FtpConnection.cc
  3667. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3669. block. It should not filter anything.
  3670. * src/BitfieldMan.cc
  3671. * src/ConsoleStatCalc.cc
  3672. * test/BitfieldManTest.cc
  3673. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Fixed the bug that the boolean options that don't take arguments
  3675. don't work.
  3676. * src/OptionHandlerImpl.h
  3677. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3678. Fixed broken selected file BitTorrent download.
  3679. * src/MultiDiskAdaptor.cc
  3680. * test/MultiDiskAdaptorTest.cc
  3681. * test/MultiFileAllocationIteratorTest.cc
  3682. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3683. Fixed #define guard for EpollEventPoll
  3684. * src/EpollEventPoll.h
  3685. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3686. Wait 2 seconds. 1 second is sometimes not enough.
  3687. * test/TimeSeedCriteriaTest.cc
  3688. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3689. Use localhost instead of 127.0.0.1.
  3690. * test/DHTConnectionImplTest.cc
  3691. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3692. Suppressed compiler warning.
  3693. * src/AdaptiveURISelector.cc
  3694. * src/DefaultPieceStorage.cc
  3695. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3696. Defined virtual destructor.
  3697. * src/MetalinkParserState.h
  3698. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3699. Give NULL for second argument of getaddrinfo instead of "0".
  3700. * src/NameResolver.cc
  3701. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3702. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3703. included strptime doesn't parse data for this format.
  3704. * src/FtpConnection.cc
  3705. * test/FtpConnectionTest.cc
  3706. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3707. Removed tests giving -1 for unsigned argument.
  3708. * test/SingleFileDownloadContextTest.cc
  3709. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Don't use sha256 in tests because it might not be supported by the
  3711. SSL library.
  3712. * test/MetalinkProcessorTest.cc
  3713. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3714. Removed tests giving -1 for unsigned argument.
  3715. * test/AlphaNumberDecoratorTest
  3716. * test/BitfieldManTest.cc
  3717. * test/DefaultBtContextTest.cc
  3718. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3719. Fixed compile error without libcares when epoll is available.
  3720. * src/EpollEventPoll.cc
  3721. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3722. Included fstream instead of iostream.
  3723. * test/SignatureTest.cc
  3724. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3725. Removed #include <algorithm>
  3726. * test/RequestGroupTest.cc
  3727. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3728. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3729. using RequestGroup::extractURIResult().
  3730. * src/AdaptiveURISelector.cc
  3731. * src/RequestGroup.cc
  3732. * src/RequestGroup.h
  3733. * test/RequestGroupTest.cc
  3734. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Added tests for array_ptr.
  3736. * test/array_funTest.cc
  3737. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3738. Don't send ip parameter to a tracker if ip parameter is empty
  3739. string.
  3740. * src/DefaultBtAnnounce.cc
  3741. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3742. Adjusted line feed.
  3743. * src/version_usage.cc
  3744. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3745. Print tags, possible values when OptionHandlerException is caught.
  3746. * src/option_processing.cc
  3747. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3748. Changed the message for FatalException.
  3749. * src/OptionParser.cc
  3750. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3751. Documented --bt-external-ip option in man page. Updated man pages
  3752. for --proxy-method option.
  3753. * doc/aria2c.1.txt
  3754. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3755. Use GET method for FTP via HTTP proxy.
  3756. * src/FtpInitiateConnectionCommand.cc
  3757. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Changed the default value of --proxy-method option from 'tunnel'
  3759. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3760. option.
  3761. * src/AbstractCommand.cc
  3762. * src/AbstractCommand.h
  3763. * src/FtpInitiateConnectionCommand.cc
  3764. * src/HttpDownloadCommand.cc
  3765. * src/HttpInitiateConnectionCommand.cc
  3766. * src/HttpInitiateConnectionCommand.h
  3767. * src/OptionHandlerFactory.cc
  3768. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Initialized _logger
  3770. * src/SelectEventPoll.cc
  3771. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3772. Defined a copy constructor for the same type.
  3773. * src/SharedHandle.h
  3774. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Added OptionParser::parseArg() which internally uses getopt_long
  3776. to parse command-line options. All command-line options are now
  3777. configured by OptionHandler. No manual editing of struct option*
  3778. is required any more.
  3779. * src/NameMatchOptionHandler.h
  3780. * src/OptionHandler.h
  3781. * src/OptionHandlerFactory.cc
  3782. * src/OptionHandlerImpl.h
  3783. * src/OptionParser.cc
  3784. * src/OptionParser.h
  3785. * src/array_fun.h
  3786. * src/main.cc
  3787. * src/option_processing.cc
  3788. * test/OptionHandlerTest.cc
  3789. * test/OptionParserTest.cc
  3790. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3791. Fixed configure error with --disable-epoll
  3792. * configure.ac
  3793. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Fixed compile error when HAVE_EPOLL is not defined.
  3795. Fixed linker error on bigendian systems.
  3796. * src/SocketCore.cc
  3797. * src/SocketCore.h
  3798. * test/DefaultBtProgressInfoFileTest.cc
  3799. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Added --bt-external-ip option. You can specify the external IP
  3801. address to report to a BitTorrent tracker. Although this function
  3802. is named 'external', it can accept any kind of IP addresses.
  3803. * src/DefaultBtAnnounce.cc
  3804. * src/OptionHandlerFactory.cc
  3805. * src/option_processing.cc
  3806. * src/prefs.cc
  3807. * src/prefs.h
  3808. * src/usage_text.h
  3809. * test/DefaultBtAnnounceTest.cc
  3810. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. Extracted the algorithm to find the longest incremental sequence
  3812. as max_sequence template.
  3813. * src/LongestSequencePieceSelector.cc
  3814. * src/a2algo.h
  3815. * test/Makefile.am
  3816. * test/a2algoTest.cc
  3817. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3818. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3819. * src/usage_text.h
  3820. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3821. Updated doc for --uri-selector, --http-server-listen-port and
  3822. --enable-http-server option. Documented --event-poll option.
  3823. * doc/aria2c.1.txt
  3824. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3825. Updated doc for --enable-http-server.
  3826. * src/usage_text.h
  3827. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3828. Documented --http-server-listen-port and --enable-http-server in
  3829. man page.
  3830. * doc/aria2c.1.txt
  3831. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3833. translations. Thanks to all translators.
  3834. * po/es.po
  3835. * po/id.po
  3836. * po/it.po
  3837. * po/ru.po
  3838. * po/uk.po
  3839. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3840. Bump up version number to 1.2.0
  3841. * configure.ac
  3842. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3843. BtContext::getAnnounceTiers() now returns const reference.
  3844. * src/BtContext.h
  3845. * src/DefaultBtContext.cc
  3846. * src/DefaultBtContext.h
  3847. * test/MockBtContext.h
  3848. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3849. Change the number of retries for tracker request based on the
  3850. number of available tracker in a torrent file.
  3851. * src/TrackerWatcherCommand.cc
  3852. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3853. Added _maxTries property to RequestGroup and assign the option
  3854. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3855. RequestGroup::getMaxTries() instead of
  3856. Option::getAsInt(PREF_MAX_TRIES).
  3857. * src/AbstractCommand.cc
  3858. * src/RequestGroup.cc
  3859. * src/RequestGroup.h
  3860. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3862. Mandriva. I modified the patch: make RequestGroup have the
  3863. timeout value and AdaptiveURISelector directly modifies that
  3864. value.
  3865. * src/AbstractCommand.cc
  3866. * src/AdaptiveURISelector.cc
  3867. * src/AdaptiveURISelector.h
  3868. * src/FtpNegotiationCommand.cc
  3869. * src/RequestGroup.cc
  3870. * src/RequestGroup.h
  3871. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. Fixed compiler warning
  3873. * test/IteratableChecksumValidatorTest.cc
  3874. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3876. integrated downloads. This PieceSelector subclass finds the
  3877. longest continuous sequence in the available missing pieces and
  3878. selects the last index of such sequence. This makes HTTP/FTP
  3879. connections less interrupted by the pieces obtained by BitTorrent
  3880. peers.
  3881. * src/DefaultPieceStorage.cc
  3882. * src/DefaultPieceStorage.h
  3883. * src/LongestSequencePieceSelector.cc
  3884. * src/LongestSequencePieceSelector.h
  3885. * src/Makefile.am
  3886. * src/PieceSelector.h
  3887. * src/RarestPieceSelector.h
  3888. * src/RequestGroup.cc
  3889. * test/BtDependencyTest.cc
  3890. * test/DefaultPieceStorageTest.cc
  3891. * test/IteratableChecksumValidatorTest.cc
  3892. * test/LongestSequencePieceSelectorTest.cc
  3893. * test/Makefile.am
  3894. * test/SegmentManTest.cc
  3895. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3896. Fixed the bug that the average speed is wrong in
  3897. http/ftp/BitTorrent integrated download. Only the download bytes
  3898. in BitTorrent were considered.
  3899. * src/RequestGroup.cc
  3900. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3901. Choose port for BitTorrent/DHT randomly from the specified range.
  3902. * src/DHTConnectionImpl.cc
  3903. * src/PeerListenCommand.cc
  3904. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3905. Send HTTP Authorization header only if it is requested by the
  3906. server(response 401). There are some exceptions. The authorization
  3907. header for proxy is always sent if it is available without request
  3908. by the server. If username/password is specified in the URI, it
  3909. is immediately sent to the server without request by the server.
  3910. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3911. SharedHandle<AuthConfig>().
  3912. NetrcAuthResolver::resolveAuthConfig() returns
  3913. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3914. * src/AbstractAuthResolver.cc
  3915. * src/AbstractProxyRequestCommand.cc
  3916. * src/AuthConfigFactory.cc
  3917. * src/AuthConfigFactory.h
  3918. * src/HttpConnection.cc
  3919. * src/HttpRequest.cc
  3920. * src/HttpRequest.h
  3921. * src/HttpResponse.cc
  3922. * src/HttpResponseCommand.cc
  3923. * src/HttpSkipResponseCommand.cc
  3924. * test/AuthConfigFactoryTest.cc
  3925. * test/HttpRequestTest.cc
  3926. * test/HttpResponseTest.cc
  3927. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Remove leading "--" from help keyword and a substring after "="
  3929. from help keyword, so that one can query options by '-h--max-' or
  3930. '-hmax-peers=10'.
  3931. * src/option_processing.cc
  3932. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3933. Rewritten PStringVisitor and its implementation.
  3934. * src/PStringBuildVisitor.cc
  3935. * src/PStringBuildVisitor.h
  3936. * src/PStringDatum.h
  3937. * src/PStringNumLoop.h
  3938. * src/PStringSegment.cc
  3939. * src/PStringSegment.h
  3940. * src/PStringSelect.h
  3941. * src/PStringVisitor.h
  3942. * src/download_helper.cc
  3943. * test/PStringBuildVisitorTest.cc
  3944. * test/ParameterizedStringParserTest.cc
  3945. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Persist connection between the built-in HTTP server and a client
  3947. if a client supports keep-alive. Fixed the bug that aria2 exits
  3948. when the HTTP server receives EOF from a client.
  3949. * src/HttpServer.cc
  3950. * src/HttpServer.h
  3951. * src/HttpServerCommand.cc
  3952. * src/HttpServerCommand.h
  3953. * src/HttpServerResponseCommand.cc
  3954. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3955. Added experimental built-in HTTP server. Currently, when a client
  3956. accesses to the server, it responds with the current download
  3957. progress. By default, it is disabled. To enable the server, give
  3958. --enable-http-server option. To change the default port number
  3959. for the server to listen to, use --http-server-listen-port option.
  3960. The response HTML is very simple and refreshes it self each 1
  3961. second. Because of this refresh, you see flicker in normal web
  3962. browser such as Firefox. I recommend to use console-based browser
  3963. such as elinks, w3m. To connect to the server, run 'elinks
  3964. http://localhost:6800/' while running aria2. Please replace port
  3965. number '6800'(which is default) with your preference.
  3966. * src/DownloadEngineFactory.cc
  3967. * src/HttpHeader.cc
  3968. * src/HttpHeader.h
  3969. * src/HttpHeaderProcessor.cc
  3970. * src/HttpHeaderProcessor.h
  3971. * src/HttpListenCommand.cc
  3972. * src/HttpListenCommand.h
  3973. * src/HttpServer.cc
  3974. * src/HttpServer.h
  3975. * src/HttpServerCommand.cc
  3976. * src/HttpServerCommand.h
  3977. * src/HttpServerResponseCommand.cc
  3978. * src/HttpServerResponseCommand.h
  3979. * src/Makefile.am
  3980. * src/OptionHandlerFactory.cc
  3981. * src/Util.cc
  3982. * src/Util.h
  3983. * src/help_tags.h
  3984. * src/option_processing.cc
  3985. * src/prefs.cc
  3986. * src/prefs.h
  3987. * src/usage_text.h
  3988. * test/HttpHeaderProcessorTest.cc
  3989. * test/UtilTest.cc
  3990. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3991. Removed.
  3992. * src/CheckIntegrityMan.cc
  3993. * src/FileAllocationMan.cc
  3994. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3995. Made (piece) hash check sequential for each RequestGroup because
  3996. simultaneous hash check is slower than sequential execution.
  3997. * src/CheckIntegrityCommand.cc
  3998. * src/CheckIntegrityDispatcherCommand.cc
  3999. * src/CheckIntegrityDispatcherCommand.h
  4000. * src/CheckIntegrityMan.h
  4001. * src/ConsoleStatCalc.cc
  4002. * src/DownloadCommand.cc
  4003. * src/DownloadEngine.cc
  4004. * src/DownloadEngine.h
  4005. * src/DownloadEngineFactory.cc
  4006. * src/Makefile.am
  4007. * src/Makefile.in
  4008. * src/RequestGroup.cc
  4009. * src/StatCalc.h
  4010. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4011. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4012. SequentialDispatcherCommand.
  4013. * src/FileAllocationDispatcherCommand.cc
  4014. * src/SequentialDispatcherCommand.h
  4015. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4016. Rewritten FileAllocationDispatcherCommand using brand new
  4017. SequentialDispatcherCommand.
  4018. * src/DownloadEngineFactory.cc
  4019. * src/FileAllocationCommand.cc
  4020. * src/FileAllocationDispatcherCommand.cc
  4021. * src/FileAllocationDispatcherCommand.h
  4022. * src/Makefile.am
  4023. * src/SequentialDispatcherCommand.h
  4024. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4025. Replaced FileAllocationMan with
  4026. SequentialPicker<FileAllocationEntry>.
  4027. * src/BtCheckIntegrityEntry.cc
  4028. * src/ConsoleStatCalc.cc
  4029. * src/DownloadEngine.cc
  4030. * src/DownloadEngine.h
  4031. * src/DownloadEngineFactory.cc
  4032. * src/FileAllocationCommand.cc
  4033. * src/FileAllocationDispatcherCommand.cc
  4034. * src/FileAllocationMan.h
  4035. * src/Makefile.am
  4036. * src/SequentialPicker.h
  4037. * src/StatCalc.h
  4038. * src/StreamCheckIntegrityEntry.cc
  4039. * test/Makefile.am
  4040. * test/SequentialPickerTest.cc
  4041. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4042. Added doc for adaptive URI selector.
  4043. * doc/aria2c.1.txt
  4044. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4045. Added doc for adaptive URI selector.
  4046. * src/usage_text.h
  4047. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4048. Added doc for --bt-max-peers option.
  4049. * doc/aria2c.1.txt
  4050. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4051. Added doc for --bt-hash-check-seed option.
  4052. * doc/aria2c.1.txt
  4053. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4054. Documented exit codes.
  4055. * doc/aria2c.1.txt
  4056. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4057. Added --bt-max-peers option to specify the maximum number of peers
  4058. per torrent. 0 means unlimited number of peers.
  4059. * src/ActivePeerConnectionCommand.cc
  4060. * src/BtRuntime.h
  4061. * src/DefaultPeerStorage.cc
  4062. * src/DefaultPeerStorage.h
  4063. * src/OptionHandlerFactory.cc
  4064. * src/RequestGroup.cc
  4065. * src/option_processing.cc
  4066. * src/prefs.cc
  4067. * src/prefs.h
  4068. * src/usage_text.h
  4069. * test/DefaultPeerStorageTest.cc
  4070. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4071. Added --bt-hash-check-seed option. If true is given to this
  4072. option, after hash check using --check-integrity option and file
  4073. is complete, continue to seed file. If you want to check file and
  4074. download it only when it is damaged or incomplete, set this option
  4075. to false. This option has effect only on BitTorrent download.
  4076. The default value is true(This is the same behavior with the
  4077. previous release).
  4078. * src/BtCheckIntegrityEntry.cc
  4079. * src/OptionHandlerFactory.cc
  4080. * src/option_processing.cc
  4081. * src/prefs.cc
  4082. * src/prefs.h
  4083. * src/usage_text.h
  4084. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4085. Updated copyright year.
  4086. * src/version_usage.cc
  4087. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4088. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4089. * doc/aria2c.1.txt
  4090. * src/usage_text.h
  4091. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4092. Made the max value of split option unlimited.
  4093. * doc/aria2c.1.txt
  4094. * src/OptionHandlerFactory.cc
  4095. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4096. Fixed compile warning/error.
  4097. * src/DownloadResult.h
  4098. * src/HttpDownloadCommand.cc
  4099. * src/ServerStat.cc
  4100. * test/RequestGroupTest.cc
  4101. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4102. Added --event-poll option to select the method for polling events.
  4103. The available methods are "select" and "epoll". "epoll" is
  4104. available on Linux only. The earlier release has the compile
  4105. option to choose from these methods.
  4106. * configure.ac
  4107. * src/RequestGroupMan.cc
  4108. * src/OptionHandlerFactory.cc
  4109. * src/EpollEventPoll.h
  4110. * src/StreamFileAllocationEntry.cc
  4111. * src/a2io.h
  4112. * src/SelectEventPoll.h
  4113. * src/option_processing.cc
  4114. * src/prefs.h
  4115. * src/EpollEventPoll.cc
  4116. * src/EventPoll.h
  4117. * src/SocketCore.h
  4118. * src/Makefile.am
  4119. * src/main.cc
  4120. * src/DownloadEngine.h
  4121. * src/SelectEventPoll.cc
  4122. * src/DownloadEngine.cc
  4123. * src/SocketCore.cc
  4124. * src/DownloadEngineFactory.cc
  4125. * src/Makefile.in
  4126. * src/prefs.cc
  4127. * src/usage_text.h
  4128. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4129. Included RecoverableException.h from main.cc
  4130. * src/main.cc
  4131. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4132. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4133. now returns last error encountered in the HTTP/FTP downloads as a
  4134. exit status value. If all downloads finished successfully, aria2
  4135. returns 0. The error code is defined in src/DownloadResult.h.
  4136. The error occurred in the download currently in progress is not
  4137. reported as a last error. If no error has encountered but there
  4138. are in progress or waiting downloads, aria2 returns 7.
  4139. * src/AbstractCommand.cc
  4140. * src/DlAbortEx.h
  4141. * src/DlRetryEx.h
  4142. * src/DownloadCommand.cc
  4143. * src/DownloadFailureException.h
  4144. * src/DownloadResult.h
  4145. * src/FtpNegotiationCommand.cc
  4146. * src/HttpSkipResponseCommand.cc
  4147. * src/Makefile.am
  4148. * src/MultiUrlRequestInfo.cc
  4149. * src/MultiUrlRequestInfo.h
  4150. * src/RecoverableException.h
  4151. * src/RequestGroup.cc
  4152. * src/RequestGroup.h
  4153. * src/RequestGroupMan.cc
  4154. * src/RequestGroupMan.h
  4155. * src/URIResult.cc
  4156. * src/URIResult.h
  4157. * src/main.cc
  4158. * src/option_processing.cc
  4159. * test/RequestGroupTest.cc
  4160. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4161. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4162. patch adds AdaptiveURISelector, which selects one of the bests
  4163. mirrors for first and reserved connections. For supplementary
  4164. ones, it returns mirrors which has not been tested yet, and if
  4165. each of them already tested, returns mirrors which has to be
  4166. tested again. Otherwise, it doesn't return anymore mirrors.
  4167. * src/AdaptiveURISelector.cc
  4168. * src/AdaptiveURISelector.h
  4169. * src/FtpNegotiationCommand.cc
  4170. * src/HttpResponseCommand.cc
  4171. * src/Makefile.am
  4172. * src/Makefile.in
  4173. * src/OptionHandlerFactory.cc
  4174. * src/RequestGroup.cc
  4175. * src/RequestGroup.h
  4176. * src/RequestGroupMan.cc
  4177. * src/ServerStat.cc
  4178. * src/ServerStat.h
  4179. * src/ServerStatMan.cc
  4180. * src/SpeedCalc.cc
  4181. * src/URISelector.h
  4182. * src/prefs.cc
  4183. * src/prefs.h
  4184. * test/RequestGroupManTest.cc
  4185. * test/ServerStatManTest.cc
  4186. * test/ServerStatTest.cc
  4187. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4188. Fixed unit test error.
  4189. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4190. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. * Release 1.1.2
  4192. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4193. Updated Russian translation. Thanks to the translators.
  4194. * po/ru.po
  4195. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4196. Added the description of --use-head option to man page.
  4197. * doc/aria2c.1.txt
  4198. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4199. Bump up version number to 1.1.2
  4200. * configure.ac
  4201. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4202. Added --use-head option to toggle whether HEAD method should be
  4203. used in the first HTTP request. By default aria2 uses HEAD method
  4204. as the first request. When the server doesn't recognize HEAD, then
  4205. give aria2 --use-head=false to force aria2 to use GET method
  4206. instead.
  4207. * src/OptionHandlerFactory.cc
  4208. * src/RequestGroupMan.cc
  4209. * src/option_processing.cc
  4210. * src/prefs.cc
  4211. * src/prefs.h
  4212. * src/usage_text.h
  4213. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4214. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4215. message is received before CHOKE message. The old implementation
  4216. doen't clear the use-bit of the piece when recieved REJECT
  4217. message.
  4218. * src/DefaultBtMessageDispatcher.cc
  4219. * test/DefaultBtMessageDispatcherTest.cc
  4220. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4221. * Release 1.1.1
  4222. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4223. Bump up version number to 1.1.1.
  4224. * configure.ac
  4225. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4226. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4227. is printed repeatedly.
  4228. * src/ConsoleStatCalc.cc
  4229. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4230. * Release 1.1.0
  4231. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. Added ifdef clause for conditional compilation.
  4233. * src/main.cc
  4234. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4236. translations. Thanks to all translators.
  4237. * po/ja.po
  4238. * po/ru.po
  4239. * po/uk.po
  4240. * po/zh_CN.po
  4241. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4242. Added the preceding ">>> " before the message "Printing the
  4243. contents of file..." to make the output more readable.
  4244. * src/main.cc
  4245. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4246. Added try-catch block in the loop in showFiles() to continue the
  4247. operation even if the exception occurred in one file.
  4248. * src/main.cc (showFiles)
  4249. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4250. Made messages in showFiles() translatable.
  4251. * po/aria2.pot
  4252. * src/main.cc
  4253. * src/message.h
  4254. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4255. Print the contents of Torrent/Metalink files are printed without
  4256. -T/-M options.
  4257. * src/main.cc
  4258. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4259. Escaped '--' with '\--'
  4260. * README
  4261. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4262. Updated "How to build" section in README. Mentioned about
  4263. --with-ca-bundle compile option.
  4264. * README
  4265. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4266. Bump up version number to 1.1.0.
  4267. * configure.ac
  4268. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4269. Added a note for --dht-listen-port option.
  4270. * doc/aria2c.1.txt
  4271. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Update doc for --realtime-chunk-checksum option.
  4273. * doc/aria2c.1.txt
  4274. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4275. Update doc for --realtime-chunk-checksum option.
  4276. * src/usage_text.h
  4277. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4278. Updated French, Japanese, Russian and Ukrainian translations.
  4279. Thanks to all translators.
  4280. * po/fr.po
  4281. * po/ja.po
  4282. * po/ru.po
  4283. * po/uk.po
  4284. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4285. Renamed aria2c.pot to aria2.pot
  4286. * po/aria2.pot
  4287. * po/aria2c.pot: Removed.
  4288. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4289. Removed MetaEntry.h
  4290. * src/Makefile.am
  4291. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4292. Rename file by appending digits if a local file exists and its
  4293. file size is larger than that of remote file with --continue
  4294. option. The old implementation just throws exception in such case.
  4295. * src/RequestGroup.cc
  4296. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4297. Fixed the bug that download progress summary is not printed in the
  4298. interval specified by the option.
  4299. * src/ConsoleStatCalc.cc
  4300. * src/ConsoleStatCalc.h
  4301. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4302. Fixed compiler warning
  4303. * src/Cookie.cc
  4304. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4305. Fixed the cookie implementation based on RFC2965.
  4306. Now if a value in domain field is not started with dot, then
  4307. prepend dot. That means a cookie with domain=sf.net is sent to
  4308. wiki.sf.net.
  4309. * src/Cookie.cc
  4310. * test/CookieParserTest.cc
  4311. * test/CookieStorageTest.cc
  4312. * test/CookieTest.cc
  4313. * test/NsCookieParserTest.cc
  4314. * test/Sqlite3MozCookieParserTest.cc
  4315. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4316. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4317. is enabled and the server doesn't support keep-alive.
  4318. * src/AbstractCommand.cc
  4319. * src/DownloadCommand.cc
  4320. * src/HttpDownloadCommand.cc
  4321. * src/HttpDownloadCommand.h
  4322. * src/HttpResponseCommand.cc
  4323. * src/Request.cc
  4324. * src/Request.h
  4325. * test/RequestTest.cc
  4326. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4327. Removed Dictionary/List/Data and its related classes.
  4328. * src/BencodeVisitor.cc: Removed.
  4329. * src/BencodeVisitor.h: Removed.
  4330. * src/Data.cc: Removed.
  4331. * src/Data.h: Removed.
  4332. * src/Dictionary.cc: Removed.
  4333. * src/Dictionary.h: Removed.
  4334. * src/List.cc: Removed.
  4335. * src/List.h: Removed.
  4336. * src/Makefile.am
  4337. * src/MetaEntry.h: Removed.
  4338. * src/MetaEntryVisitor.h: Removed.
  4339. * src/MetaFileUtil.cc: Removed.
  4340. * src/MetaFileUtil.h: Removed.
  4341. * test/BencodeVisitorTest.cc: Removed.
  4342. * test/DataTest.cc: Removed.
  4343. * test/DictionaryTest.cc: Removed.
  4344. * test/ListTest.cc: Removed.
  4345. * test/Makefile.am
  4346. * test/MetaFileUtilTest.cc: Removed.
  4347. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4348. Removed include of MetaEntry.h
  4349. * test/DHTMessageTrackerEntryTest.cc
  4350. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4351. Use BDE instead of Dictionary/List/Data.
  4352. * src/AnnounceList.cc
  4353. * src/AnnounceList.h
  4354. * test/AnnounceListTest.cc
  4355. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4356. Use BDE instead of Dictionary/List/Data.
  4357. * src/DHTAbstractMessage.cc
  4358. * src/DHTAbstractMessage.h
  4359. * src/DHTAnnouncePeerMessage.cc
  4360. * src/DHTAnnouncePeerMessage.h
  4361. * src/DHTAnnouncePeerReplyMessage.cc
  4362. * src/DHTAnnouncePeerReplyMessage.h
  4363. * src/DHTFindNodeMessage.cc
  4364. * src/DHTFindNodeMessage.h
  4365. * src/DHTFindNodeReplyMessage.cc
  4366. * src/DHTFindNodeReplyMessage.h
  4367. * src/DHTGetPeersMessage.cc
  4368. * src/DHTGetPeersMessage.h
  4369. * src/DHTGetPeersReplyMessage.cc
  4370. * src/DHTGetPeersReplyMessage.h
  4371. * src/DHTMessageFactory.h
  4372. * src/DHTMessageFactoryImpl.cc
  4373. * src/DHTMessageFactoryImpl.h
  4374. * src/DHTMessageReceiver.cc
  4375. * src/DHTMessageTracker.cc
  4376. * src/DHTMessageTracker.h
  4377. * src/DHTPingMessage.cc
  4378. * src/DHTPingMessage.h
  4379. * src/DHTPingReplyMessage.cc
  4380. * src/DHTPingReplyMessage.h
  4381. * src/DHTQueryMessage.cc
  4382. * src/DHTQueryMessage.h
  4383. * src/DHTResponseMessage.cc
  4384. * src/DHTResponseMessage.h
  4385. * test/DHTAnnouncePeerMessageTest.cc
  4386. * test/DHTAnnouncePeerReplyMessageTest.cc
  4387. * test/DHTFindNodeMessageTest.cc
  4388. * test/DHTFindNodeReplyMessageTest.cc
  4389. * test/DHTGetPeersMessageTest.cc
  4390. * test/DHTGetPeersReplyMessageTest.cc
  4391. * test/DHTMessageFactoryImplTest.cc
  4392. * test/DHTMessageTrackerTest.cc
  4393. * test/DHTPingMessageTest.cc
  4394. * test/DHTPingReplyMessageTest.cc
  4395. * test/MockDHTMessageFactory.h
  4396. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4397. Added tests the case where length < 0 is specified.
  4398. * test/BencodeTest.cc
  4399. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4400. Fixed memory leak in decoderawstring()
  4401. * src/bencode.cc
  4402. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4403. Added missing #ifdef guard. Added uc() function for String and
  4404. removeKey() for Dict.
  4405. * src/bencode.cc
  4406. * src/bencode.h
  4407. * test/BencodeTest.cc
  4408. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4409. Use BDE instead of Dictionary/List/Data.
  4410. * src/HandshakeExtensionMessage.cc
  4411. * src/HandshakeExtensionMessage.h
  4412. * test/HandshakeExtensionMessageTest.cc
  4413. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4414. Added --max-overall-upload-limit option. This option limits the
  4415. overall upload speed. Stated in help message that the existing
  4416. --max-upload-limit option limits the upload speed per each
  4417. torrent. Man page is also updated.
  4418. * doc/aria2c.1.txt
  4419. * src/DefaultBtMessageDispatcher.cc
  4420. * src/DefaultBtMessageDispatcher.h
  4421. * src/OptionHandlerFactory.cc
  4422. * src/PeerInteractionCommand.cc
  4423. * src/option_processing.cc
  4424. * src/prefs.cc
  4425. * src/prefs.h
  4426. * src/usage_text.h
  4427. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4428. Use BDE instead of Dictionary/List/Data classes.
  4429. * src/CompactPeerListProcessor.cc
  4430. * src/CompactPeerListProcessor.h
  4431. * src/DefaultBtAnnounce.cc
  4432. * src/DefaultBtContext.cc
  4433. * src/DefaultBtContext.h
  4434. * src/DefaultPeerListProcessor.cc
  4435. * src/DefaultPeerListProcessor.h
  4436. * src/DelegatingPeerListProcessor.cc
  4437. * src/DelegatingPeerListProcessor.h
  4438. * src/PeerListProcessor.h
  4439. * src/UTPexExtensionMessage.cc
  4440. * src/Util.h
  4441. * src/message.h
  4442. * test/DefaultBtContextTest.cc
  4443. * test/DefaultPeerListProcessorTest.cc
  4444. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4445. Added bencode helper functions and BDE class.
  4446. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4447. * src/Makefile.am
  4448. * src/bencode.cc
  4449. * src/bencode.h
  4450. * test/BencodeTest.cc
  4451. * test/Makefile.am
  4452. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4453. Fixed the bug that bad URI is sent to the tracker when the announe
  4454. URI in torrent file includes query.
  4455. * src/DefaultBtAnnounce.cc
  4456. * test/DefaultBtAnnounceTest.cc
  4457. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4458. Added Option::blank().
  4459. Use !Option::blank(name) instead of Option::defined(name) for
  4460. the options that take filename.
  4461. * src/MultiUrlRequestInfo.cc
  4462. * src/Option.cc
  4463. * src/Option.h
  4464. * src/main.cc
  4465. * src/option_processing.cc
  4466. * test/OptionTest.cc
  4467. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4468. Documented the default value of --check-certificate option in man
  4469. page.
  4470. * doc/aria2c.1.txt
  4471. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4472. Enabled --check-certificate by default. Added compile
  4473. time(configure) option --with-ca-bundle to specify CA bundle.
  4474. Warn if --check-certificate=true and --ca-certificate is not
  4475. specified or loading CA certificate is failed.
  4476. * configure.ac
  4477. * src/MultiUrlRequestInfo.cc
  4478. * src/OptionHandlerFactory.cc
  4479. * src/message.h
  4480. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4481. Mentioned https tag in help option.
  4482. * doc/aria2c.1.txt
  4483. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4484. Added `https' tag to help option category. Added https tag to
  4485. --ca-certificate, --certificate, --check-certificate and
  4486. --private-key option.
  4487. * src/OptionHandlerFactory.cc
  4488. * src/help_tags.h
  4489. * src/option_processing.cc
  4490. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Changed the package name from `aria2c' to `aria2' in order to fix
  4492. the packaging issue in Debian and Fedora. The name of the
  4493. executable is not changed.
  4494. * configure.ac
  4495. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4496. Fixed typos
  4497. * src/usage_text.h
  4498. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4499. Fixed typos and updated doc.
  4500. * README
  4501. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Fixed typos
  4503. * doc/aria2c.1.txt
  4504. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4505. Fixed typos
  4506. * src/usage_text.h
  4507. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4508. Print a message when no files to download.
  4509. * src/download_helper.cc
  4510. * src/main.cc
  4511. * src/message.h
  4512. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4513. RFC3986 complied Percent-Encoding(urlencode).
  4514. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4515. ones.
  4516. * src/Request.cc
  4517. * src/Util.cc
  4518. * src/Util.h
  4519. * test/BtHandshakeMessageTest.cc
  4520. * test/DefaultBtAnnounceTest.cc
  4521. * test/DefaultBtContextTest.cc
  4522. * test/RequestTest.cc
  4523. * test/UtilTest.cc
  4524. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4525. Fixed the bug that prevents aria2 from downloading 0-length files
  4526. via HTTP/FTP.
  4527. * src/DefaultBtContext.cc
  4528. * src/DefaultBtContext.h
  4529. * src/DownloadContext.h
  4530. * src/FtpNegotiationCommand.cc
  4531. * src/HttpResponseCommand.cc
  4532. * src/HttpResponseCommand.h
  4533. * src/RequestGroup.cc
  4534. * src/SingleFileDownloadContext.cc
  4535. * src/SingleFileDownloadContext.h
  4536. * test/BtPostDownloadHandlerTest.cc
  4537. * test/MetalinkPostDownloadHandlerTest.cc
  4538. * test/MockBtContext.h
  4539. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4540. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4541. * src/option_processing.cc
  4542. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4543. Applied aria2-1.0.1-mingw.patch.
  4544. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4545. mingw.
  4546. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4547. * src/SocketCore.cc
  4548. * src/a2netcompat.h
  4549. * test/SocketCoreTest.cc
  4550. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4551. * Release 1.0.1
  4552. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4553. Updated Ukrainian and Norwegian Nynorsk translations.
  4554. Thanks to all translators.
  4555. * po/nn.po
  4556. * po/uk.po
  4557. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4558. Don't show download result when -S option is used.
  4559. * src/main.cc
  4560. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4561. Bump up version number to 1.0.1
  4562. * configure.ac
  4563. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4564. Closed files after the test cases in MultiDiskWriterTest::
  4565. testResetDiskWriterEntries(). This will fix the unit test error
  4566. in mingw32 build.
  4567. * test/MultiDiskWriterTest.cc
  4568. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4569. Use HEAD method to get file size from HTTP server for segmented
  4570. downloading.
  4571. The request to the BitTorrent Tracker always uses GET method because
  4572. the response of the tracker is small and it doesn't need segmented
  4573. download.
  4574. * src/FtpNegotiationCommand.cc
  4575. * src/HttpRequest.cc
  4576. * src/HttpResponseCommand.cc
  4577. * src/HttpSkipResponseCommand.cc
  4578. * src/RequestGroup.cc
  4579. * src/RequestGroup.h
  4580. * src/TrackerWatcherCommand.cc
  4581. * test/HttpRequestTest.cc
  4582. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4583. Fixed the bug that causes floating exception when -T option is used and
  4584. no URIs are given.
  4585. * src/download_helper.cc
  4586. * test/DownloadHelperTest.cc
  4587. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4588. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4589. errors in MinGW:
  4590. Closed file after saving server stats (RequestGroupMan.cc)
  4591. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4592. Ignored case & handled 2-digit years (strptime.c)
  4593. Added missing suseconds_t definition (a2time.h)
  4594. Fixed socket CLOSE() define (SocketCore.cc)
  4595. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4596. Changed utime() test values from x000 to x00000 as MinGW failed on
  4597. values less than timezone offset from Unix epoch
  4598. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4599. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4600. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4601. handle negative dates (CookieParserTest.cc)
  4602. * src/a2time.h
  4603. * src/FtpConnection.cc
  4604. * src/RequestGroupMan.cc
  4605. * src/SocketCore.cc
  4606. * src/strptime.c
  4607. * test/CookieParserTest.cc
  4608. * test/CopyDiskAdaptorTest.cc
  4609. * test/FileTest.cc
  4610. * test/FtpConnectionTest.cc
  4611. * test/MultiDiskAdaptorTest.cc
  4612. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4613. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4614. * doc/aria2c.1.txt
  4615. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. * Release 1.0.0
  4617. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4618. Added '~' to reserved characters.
  4619. * src/Util.cc
  4620. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Do not urlencode Request::url in setUrl() because we want unmodified
  4622. URL using Request::getUrl()
  4623. * src/Request.cc
  4624. * src/Request.h
  4625. * test/RequestTest.cc
  4626. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4627. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4628. Thanks to all translators.
  4629. * po/bg.po
  4630. * po/fr.po
  4631. * po/ja.po
  4632. * po/ru.po
  4633. * po/uk.po
  4634. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Bump up version number to 1.0.0
  4636. * configure.ac
  4637. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4638. Added nosqlite3 build to build_test.sh.
  4639. Renamed noxml as expat.
  4640. * build_test.sh
  4641. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4642. Updated INPUT FILE section.
  4643. * doc/aria2c.1.txt
  4644. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4645. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4646. on big endian systems because test .aria2 files are made for little
  4647. endian systems.
  4648. * test/DefaultBtProgressInfoFileTest.cc
  4649. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4650. Dropped ares support.
  4651. * README
  4652. * configure.ac
  4653. * m4/libares.m4: Removed.
  4654. * src/AsyncNameResolver.cc
  4655. * src/Makefile.am
  4656. * test/Makefile.am
  4657. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4658. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4659. Removed const qualifier from DiskWriter::size().
  4660. * src/AbstractDiskWriter.cc
  4661. * src/AbstractDiskWriter.h
  4662. * src/ByteArrayDiskWriter.cc
  4663. * src/ByteArrayDiskWriter.h
  4664. * src/DiskWriter.h
  4665. * test/ByteArrayDiskWriterTest.cc
  4666. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4667. Fixed the bug that causes segmentation fault/bus error during executing
  4668. choking algorithm while seeding. This is caused by improper
  4669. implementation of compare function which returns inconsistent results
  4670. depending on the timing of last unchoke.
  4671. * src/BtSeederStateChoke.cc
  4672. * src/BtSeederStateChoke.h
  4673. * src/DefaultPeerStorage.cc
  4674. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4675. Removed TODO
  4676. * TODO
  4677. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4678. Added a section that explains how to pass argument to options that
  4679. takes optional arguments with its short form.
  4680. * doc/aria2c.1.txt
  4681. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4682. Added -u for the short form of --max-upload-limit option.
  4683. * doc/aria2c.1.txt
  4684. * src/option_processing.cc
  4685. * src/usage_text.h
  4686. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4687. Added -V for the short form of --check-integrity option.
  4688. Now the argument of --check-integrity option is optional:
  4689. if it is omitted, it is evaluated as true.
  4690. * doc/aria2c.1.txt
  4691. * src/option_processing.cc
  4692. * src/usage_text.h
  4693. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4694. Made the default value of --ftp-pasv option set to true and it can take
  4695. true/false values.
  4696. * src/OptionHandlerFactory.cc
  4697. * src/option_processing.cc
  4698. * src/usage_text.h
  4699. * doc/aria2c.1.txt
  4700. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4701. Given custom random number generator to std::random_shuffle.
  4702. * src/AnnounceList.cc
  4703. * src/BtLeecherStateChoke.cc
  4704. * src/BtSeederStateChoke.cc
  4705. * src/DefaultBtRequestFactory.cc
  4706. * src/MetalinkEntry.cc
  4707. * src/RarestPieceSelector.cc
  4708. * src/SimpleRandomizer.cc
  4709. * src/SimpleRandomizer.h
  4710. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4711. Now the default value of --enable-direct-io is true.
  4712. * src/OptionHandlerFactory.cc
  4713. * doc/aria2c.1.txt
  4714. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4715. Erase peer before executing onReturningPeer and onErasingPeer
  4716. because choking algorithm called from onReturningPeer doesn't
  4717. like erasing peer in the active peer list.
  4718. * src/DefaultPeerStorage.cc
  4719. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4720. Instead of creating special filename in createDownloadResult() if
  4721. inMemoryDownload() is true, now it is done in getFilePath().
  4722. * src/RequestGroup.cc
  4723. * test/RequestGroupTest.cc
  4724. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4725. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4726. processed in memory. This is the fix for previous comment out.
  4727. * src/MemoryBufferPreDownloadHandler.cc
  4728. * src/RequestGroup.cc
  4729. * src/RequestGroup.h
  4730. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4731. Commented out the code which sets virtual directory path "[MEMORY]"
  4732. propagate directory to store to following RequestGroup.
  4733. * src/MemoryBufferPreDownloadHandler.cc
  4734. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4735. Bump up version number to 1.0.0b
  4736. * configure.ac
  4737. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4738. Added input_uris.txt to EXTRA_DIST
  4739. * test/Makefile.am
  4740. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4741. Removed PeerObject.h from Makefile.am
  4742. * src/Makefile.am
  4743. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4744. Avoid slow seeding
  4745. * src/PeerInteractionCommand.cc
  4746. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4747. Updated usage for -i option.
  4748. * src/usage_text.h (TEXT_INPUT_FILE)
  4749. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4750. Added INPUT FILE section to man page.
  4751. Escaped fake URLs.
  4752. * doc/aria2c.1.txt
  4753. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4754. Fixed wrong note position for -o option.
  4755. * doc/aria2c.1.txt
  4756. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4757. Fixed compile error without SSL/XML library.
  4758. * src/DefaultBtProgressInfoFile.cc
  4759. * src/DefaultBtProgressInfoFile.h
  4760. * src/FileMetalinkParserState.cc
  4761. * src/RequestGroup.h
  4762. * src/SocketCore.cc
  4763. * src/SocketCore.h
  4764. * src/VerificationMetalinkParserState.cc
  4765. * src/download_helper.h
  4766. * src/main.cc
  4767. * test/DefaultBtProgressInfoFileTest.cc
  4768. * test/DownloadHelperTest.cc
  4769. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4770. Rewritten URI handling functions. They are now provided as a testable
  4771. functions.
  4772. * src/Makefile.am
  4773. * src/RequestGroup.cc
  4774. * src/RequestGroup.h
  4775. * src/download_helper.cc
  4776. * src/download_helper.h
  4777. * src/main.cc
  4778. * test/DownloadHelperTest.cc
  4779. * test/Makefile.am
  4780. * test/input_uris.txt
  4781. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4782. Quickly terminate commands when ctrl-c is pressed.
  4783. * src/DownloadEngine.cc
  4784. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4785. Quickly terminate idle commands when download finished.
  4786. * src/AbstractCommand.cc
  4787. * src/DownloadCommand.cc
  4788. * src/DownloadEngine.cc
  4789. * src/DownloadEngine.h
  4790. * src/SleepCommand.cc
  4791. * src/SleepCommand.h
  4792. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4793. Added the ability to specify output filename and directory in input
  4794. file.
  4795. Additional parameters are added in the following line of URIs
  4796. with proceeding white space(s), 1 parameter in 1 line.
  4797. The parameter names are the same with the command-line option name
  4798. without proceeding "--". Not all the options are available here:
  4799. at the moment, 'dir' and 'out' options are avialable.
  4800. Please note that out option has no effect against Metalink or BitTorrent
  4801. downloads.
  4802. Example input file:
  4803. http://host/foo-1.1.tar.bz2
  4804. out=foo.tar.bz2
  4805. dir=/tmp/downloads
  4806. http://host/thundermonkey-2.0.tar.bz2
  4807. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4808. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4809. thundermonkey-2.0.tar.bz2 is saved as
  4810. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4811. * src/BtPostDownloadHandler.cc
  4812. * src/Metalink2RequestGroup.cc
  4813. * src/Metalink2RequestGroup.h
  4814. * src/MetalinkPostDownloadHandler.cc
  4815. * src/UriListParser.cc
  4816. * src/UriListParser.h
  4817. * src/main.cc
  4818. * test/Metalink2RequestGroupTest.cc
  4819. * test/UriListParserTest.cc
  4820. * test/filelist1.txt
  4821. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4822. Fixed error when SSL library is not found.
  4823. * configure.ac
  4824. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4825. Cross referenced among -s, -C and -j options.
  4826. Updated usage of -C and -s options.
  4827. * src/usage_text.h
  4828. * doc/aria2c.1.txt
  4829. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4830. Fixed bad cast in 32bit platforms.
  4831. * test/DefaultPieceStorageTest.cc
  4832. (DefaultPieceStorageTest::testGetCompletedLength)
  4833. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4834. Fixed unit test fails on 32bit platforms.
  4835. * test/CookieParserTest.cc
  4836. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4837. Show an average download speed in Download results.
  4838. * src/BtFileAllocationEntry.cc
  4839. * src/DefaultPieceStorage.cc
  4840. * src/DownloadContext.cc
  4841. * src/DownloadContext.h
  4842. * src/DownloadResult.h
  4843. * src/RequestGroup.cc
  4844. * src/RequestGroupMan.cc
  4845. * src/StreamFileAllocationEntry.cc
  4846. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4847. Fixed the bug that metalink file is not processed if Content-Type
  4848. field has a paramter.
  4849. * src/HttpResponse.cc
  4850. * src/HttpResponse.h
  4851. * test/HttpResponseTest.cc
  4852. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Removed unused code.
  4854. * src/DefaultBtAnnounce.cc
  4855. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4856. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4857. the value larger than DefaultPieceStorage::getTotalLength() when
  4858. in flight pieces are involved.
  4859. * src/DefaultPieceStorage.cc
  4860. * test/DefaultPieceStorageTest.cc
  4861. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4862. Bump up version number to 1.0.0a.
  4863. * configure.ac
  4864. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4865. Updated configure.ac
  4866. * configure.ac
  4867. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4868. Added usege for proxy.
  4869. * doc/aria2c.1.txt
  4870. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4871. Added usage for --ca-certificate, --certificate, --private-key and
  4872. --check-certificate options.
  4873. * doc/aria2c.1.txt
  4874. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4875. Updated man page
  4876. * doc/aria2c.1.txt
  4877. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4878. Added --no-proxy option. It receives comman separated hostname or
  4879. domains to which proxy should not be used.
  4880. aria2 honors the environment variable no_proxy to override no-proxy
  4881. value in configuration file. The user can override the environment
  4882. variable no_proxy with --no-proxy command-line option.
  4883. * src/AbstractCommand.cc
  4884. * src/OptionHandlerFactory.cc
  4885. * src/option_processing.cc
  4886. * src/prefs.cc
  4887. * src/prefs.h
  4888. * src/usage_text.h
  4889. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4890. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4891. The CA certificates are specified in --ca-certificate option.
  4892. By default, the verification is disabled. Use --check-certificate
  4893. option to enable it.
  4894. * src/HttpRequestCommand.cc
  4895. * src/LibgnutlsTLSContext.cc
  4896. * src/LibgnutlsTLSContext.h
  4897. * src/LibsslTLSContext.cc
  4898. * src/LibsslTLSContext.h
  4899. * src/MultiUrlRequestInfo.cc
  4900. * src/OptionHandlerFactory.cc
  4901. * src/SocketCore.cc
  4902. * src/SocketCore.h
  4903. * src/a2functional.h
  4904. * src/message.h
  4905. * src/option_processing.cc
  4906. * src/prefs.cc
  4907. * src/prefs.h
  4908. * src/usage_text.h
  4909. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4910. Added client certificate authentication for SSL/TLS.
  4911. Currently a private key must be decrypted for use with aria2.
  4912. If a user accidentally gives encrypted file to aria2 then following
  4913. thing happens:
  4914. If encrypted private key is given to aria2, it behaves differently
  4915. depending on the ssl library it uses. If aria2 built with openssl then
  4916. openssl prompts the user for password. If aria2 build with gnutls then
  4917. aria2 exists with error at start up.
  4918. * src/DownloadEngineFactory.cc
  4919. * src/MultiUrlRequestInfo.cc
  4920. * src/OptionHandlerFactory.cc
  4921. * src/option_processing.cc
  4922. * src/prefs.cc
  4923. * src/prefs.h
  4924. * src/usage_text.h
  4925. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4926. Introduced TLSContext that holds TLS related data that can be shared
  4927. with multiple SSL connections.
  4928. * src/DownloadEngineFactory.cc
  4929. * src/LibgnutlsTLSContext.cc
  4930. * src/LibgnutlsTLSContext.h
  4931. * src/LibsslTLSContext.cc
  4932. * src/LibsslTLSContext.h
  4933. * src/Makefile.am
  4934. * src/SocketCore.cc
  4935. * src/SocketCore.h
  4936. * src/TLSContext.h
  4937. * src/message.h
  4938. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4939. Fixed the bug that the DiskWriter of the first FileEntry whose
  4940. `needsFileAllocation' property is false is not created
  4941. even if it shares a piece with next FileEntry which `requested' property
  4942. is true.
  4943. Fixed the bug that zero-length file is not created if pre file
  4944. allocation is not done.
  4945. * src/MultiDiskAdaptor.cc
  4946. * src/MultiDiskAdaptor.h
  4947. * test/MultiDiskAdaptorTest.cc
  4948. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. Added the ability to pool proxy connection.
  4950. The conneciton in FTP with proxy-method=GET is not pooled.
  4951. Proxy-Connection header will not be sent when sending CONNECT method.
  4952. * src/DownloadEngine.cc
  4953. * src/DownloadEngine.h
  4954. * src/FtpFinishDownloadCommand.cc
  4955. * src/FtpInitiateConnectionCommand.cc
  4956. * src/FtpNegotiationCommand.cc
  4957. * src/HttpDownloadCommand.cc
  4958. * src/HttpInitiateConnectionCommand.cc
  4959. * src/HttpRequest.cc
  4960. * src/HttpRequest.h
  4961. * src/HttpResponse.cc
  4962. * src/HttpSkipResponseCommand.cc
  4963. * test/HttpRequestTest.cc
  4964. * test/HttpResponseTest.cc
  4965. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4966. Handle date before epoch.
  4967. To create *bad* Time object, call Time::null().
  4968. * src/CookieParser.cc
  4969. * src/FtpConnection.cc
  4970. * src/FtpConnection.h
  4971. * src/FtpNegotiationCommand.cc
  4972. * src/RequestGroup.cc
  4973. * src/TimeA2.cc
  4974. * src/TimeA2.h
  4975. * test/CookieParserTest.cc
  4976. * test/FtpConnectionTest.cc
  4977. * test/TimeTest.cc
  4978. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Added support for following envrionment variables: http_proxy,
  4980. https_proxy, ftp_proxy and all_proxy.
  4981. Each variable is equivalent to the aria2 option whose name is the
  4982. variable name with '_' replaced with '-'.
  4983. They overrides options specified in aria2.conf file.
  4984. The envrionment variables can be overrode using command-line option.
  4985. * src/option_processing.cc
  4986. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4987. Renamed --http-proxy-method as --proxy-method.
  4988. * src/AbstractCommand.cc
  4989. * src/FtpInitiateConnectionCommand.cc
  4990. * src/HttpInitiateConnectionCommand.cc
  4991. * src/OptionHandlerFactory.cc
  4992. * src/option_processing.cc
  4993. * src/prefs.cc
  4994. * src/prefs.h
  4995. * src/usage_text.h
  4996. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4997. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4998. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4999. Above 3 options and --http-proxy option can handle proxy in URL format
  5000. like: http://user:passwd@host:port.
  5001. If a proxy requires user/password, they must be specified in a URL.
  5002. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5003. instead.
  5004. * src/AbstractCommand.cc
  5005. * src/AbstractCommand.h
  5006. * src/AbstractProxyRequestCommand.cc
  5007. * src/AbstractProxyRequestCommand.h
  5008. * src/AuthConfigFactory.cc
  5009. * src/AuthConfigFactory.h
  5010. * src/FtpFinishDownloadCommand.cc
  5011. * src/FtpInitiateConnectionCommand.cc
  5012. * src/FtpInitiateConnectionCommand.h
  5013. * src/FtpNegotiationCommand.cc
  5014. * src/FtpTunnelRequestCommand.cc
  5015. * src/FtpTunnelRequestCommand.h
  5016. * src/HttpDownloadCommand.cc
  5017. * src/HttpInitiateConnectionCommand.cc
  5018. * src/HttpInitiateConnectionCommand.h
  5019. * src/HttpProxyRequestCommand.cc
  5020. * src/HttpProxyRequestCommand.h
  5021. * src/HttpRequest.cc
  5022. * src/HttpRequest.h
  5023. * src/HttpRequestCommand.cc
  5024. * src/HttpRequestCommand.h
  5025. * src/HttpSkipResponseCommand.cc
  5026. * src/InitiateConnectionCommand.cc
  5027. * src/InitiateConnectionCommand.h
  5028. * src/OptionHandlerFactory.cc
  5029. * src/OptionHandlerImpl.h
  5030. * src/Request.cc
  5031. * src/option_processing.cc
  5032. * src/prefs.cc
  5033. * src/prefs.h
  5034. * src/usage_text.h
  5035. * test/AuthConfigFactoryTest.cc
  5036. * test/HttpRequestTest.cc
  5037. * test/OptionHandlerTest.cc
  5038. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5039. Execute choking algorithm when unchoked and interested peer is
  5040. disconected.
  5041. * src/DefaultPeerStorage.cc
  5042. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5043. Added testcase for BtNotInterestedMessage from unchoked peer.
  5044. * test/BtNotInterestedMessageTest.cc
  5045. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5046. Execute choking algorithm when BtInterestedMessage arrives from
  5047. unchoked peer.
  5048. * src/BtInterestedMessage.cc
  5049. * src/BtInterestedMessage.h
  5050. * src/DefaultBtMessageFactory.cc
  5051. * test/BtInterestedMessageTest.cc
  5052. * test/MockPeerStorage.h
  5053. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5054. AuthConfigFactory is now part of DownloadEngine.
  5055. * src/AbstractProxyRequestCommand.cc
  5056. * src/AuthConfigFactory.h
  5057. * src/DownloadEngine.cc
  5058. * src/DownloadEngine.h
  5059. * src/FtpConnection.cc
  5060. * src/FtpConnection.h
  5061. * src/FtpNegotiationCommand.cc
  5062. * src/HttpConnection.cc
  5063. * src/HttpRequest.cc
  5064. * src/HttpRequest.h
  5065. * src/HttpRequestCommand.cc
  5066. * src/HttpResponse.cc
  5067. * src/HttpResponseCommand.cc
  5068. * src/HttpSkipResponseCommand.cc
  5069. * src/MultiUrlRequestInfo.cc
  5070. * src/main.cc
  5071. * test/FtpConnectionTest.cc
  5072. * test/HttpRequestTest.cc
  5073. * test/HttpResponseTest.cc
  5074. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. Corrected catched exception type.
  5076. * src/ServerStatMan.cc
  5077. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5078. DNSCache is now part of DownloadEngine.
  5079. * src/DNSCache.h
  5080. * src/DownloadEngine.cc
  5081. * src/DownloadEngine.h
  5082. * src/InitiateConnectionCommand.cc
  5083. * src/MultiUrlRequestInfo.cc
  5084. * test/Makefile.am
  5085. * test/Makefile.in
  5086. * test/SimpleDNSCacheTest.cc
  5087. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5089. DownloadEngine.
  5090. * src/ActivePeerConnectionCommand.cc
  5091. * src/BtSetup.cc
  5092. * src/CUIDCounter.h
  5093. * src/DHTSetup.cc
  5094. * src/DownloadCommand.cc
  5095. * src/DownloadEngine.cc
  5096. * src/DownloadEngine.h
  5097. * src/DownloadEngineFactory.cc
  5098. * src/FileAllocationDispatcherCommand.cc
  5099. * src/InitiatorMSEHandshakeCommand.cc
  5100. * src/PeerInitiateConnectionCommand.cc
  5101. * src/PeerInteractionCommand.cc
  5102. * src/PeerListenCommand.cc
  5103. * src/RequestGroup.cc
  5104. * src/StreamFileAllocationEntry.cc
  5105. * src/TrackerWatcherCommand.cc
  5106. * src/main.cc
  5107. * test/RequestGroupManTest.cc
  5108. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5109. Implemented commented code in BtSeederStateChoke
  5110. * src/BtSeederStateChoke.cc
  5111. * src/Peer.cc
  5112. * src/Peer.h
  5113. * src/PeerInteractionCommand.cc
  5114. * src/PeerSessionResource.cc
  5115. * src/PeerSessionResource.h
  5116. * test/MockBtMessageDispatcher.h
  5117. * test/PeerSessionResourceTest.cc
  5118. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5119. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5120. its object.
  5121. * src/AbstractBtMessage.cc
  5122. * src/ActivePeerConnectionCommand.cc
  5123. * src/ActivePeerConnectionCommand.h
  5124. * src/BtContextAwareCommand.cc
  5125. * src/BtContextAwareCommand.h
  5126. * src/BtExtendedMessage.cc
  5127. * src/BtExtendedMessage.h
  5128. * src/BtInterestedMessage.cc
  5129. * src/BtInterestedMessage.h
  5130. * src/BtNotInterestedMessage.cc
  5131. * src/BtNotInterestedMessage.h
  5132. * src/BtRegistry.cc
  5133. * src/BtRegistry.h
  5134. * src/BtSeederStateChoke.cc
  5135. * src/BtSetup.cc
  5136. * src/DHTGetPeersCommand.cc
  5137. * src/DHTGetPeersCommand.h
  5138. * src/DHTPeerAnnounceEntry.cc
  5139. * src/DHTPeerAnnounceEntry.h
  5140. * src/DHTPeerAnnounceStorage.cc
  5141. * src/DHTPeerAnnounceStorage.h
  5142. * src/DHTPeerLookupTask.cc
  5143. * src/DHTPeerLookupTask.h
  5144. * src/DHTSetup.cc
  5145. * src/DHTSetup.h
  5146. * src/DHTTaskFactory.h
  5147. * src/DHTTaskFactoryImpl.cc
  5148. * src/DHTTaskFactoryImpl.h
  5149. * src/DefaultBtAnnounce.cc
  5150. * src/DefaultBtInteractive.cc
  5151. * src/DefaultBtInteractive.h
  5152. * src/DefaultBtMessageDispatcher.cc
  5153. * src/DefaultBtMessageDispatcher.h
  5154. * src/DefaultBtMessageFactory.cc
  5155. * src/DefaultBtMessageFactory.h
  5156. * src/DefaultBtMessageReceiver.cc
  5157. * src/DefaultBtProgressInfoFile.cc
  5158. * src/DefaultBtProgressInfoFile.h
  5159. * src/DefaultBtRequestFactory.cc
  5160. * src/DefaultBtRequestFactory.h
  5161. * src/DefaultExtensionMessageFactory.cc
  5162. * src/DefaultExtensionMessageFactory.h
  5163. * src/DefaultPeerStorage.cc
  5164. * src/DefaultPeerStorage.h
  5165. * src/DownloadEngine.cc
  5166. * src/DownloadEngine.h
  5167. * src/InitiatorMSEHandshakeCommand.cc
  5168. * src/InitiatorMSEHandshakeCommand.h
  5169. * src/MSEHandshake.cc
  5170. * src/MSEHandshake.h
  5171. * src/Makefile.am
  5172. * src/Makefile.in
  5173. * src/PeerChokeCommand.cc
  5174. * src/PeerChokeCommand.h
  5175. * src/PeerInitiateConnectionCommand.cc
  5176. * src/PeerInitiateConnectionCommand.h
  5177. * src/PeerInteractionCommand.cc
  5178. * src/PeerInteractionCommand.h
  5179. * src/PeerObject.h
  5180. * src/PeerReceiveHandshakeCommand.cc
  5181. * src/PeerReceiveHandshakeCommand.h
  5182. * src/ReceiverMSEHandshakeCommand.cc
  5183. * src/RequestGroup.cc
  5184. * src/RequestGroup.h
  5185. * src/RequestGroupMan.cc
  5186. * src/RequestGroupMan.h
  5187. * src/SeedCheckCommand.cc
  5188. * src/SeedCheckCommand.h
  5189. * src/ShareRatioSeedCriteria.h
  5190. * src/SimpleBtMessage.cc
  5191. * src/TrackerWatcherCommand.cc
  5192. * src/TrackerWatcherCommand.h
  5193. * src/UTPexExtensionMessage.cc
  5194. * src/UTPexExtensionMessage.h
  5195. * test/BtCancelMessageTest.cc
  5196. * test/BtChokeMessageTest.cc
  5197. * test/BtExtendedMessageTest.cc
  5198. * test/BtInterestedMessageTest.cc
  5199. * test/BtNotInterestedMessageTest.cc
  5200. * test/BtPieceMessageTest.cc
  5201. * test/BtPortMessageTest.cc
  5202. * test/BtRegistryTest.cc
  5203. * test/BtRejectMessageTest.cc
  5204. * test/BtRequestMessageTest.cc
  5205. * test/DHTPeerAnnounceEntryTest.cc
  5206. * test/DHTPeerAnnounceStorageTest.cc
  5207. * test/DefaultBtMessageDispatcherTest.cc
  5208. * test/DefaultBtMessageFactoryTest.cc
  5209. * test/DefaultBtProgressInfoFileTest.cc
  5210. * test/DefaultBtRequestFactoryTest.cc
  5211. * test/DefaultExtensionMessageFactoryTest.cc
  5212. * test/MSEHandshakeTest.cc
  5213. * test/MockDHTTaskFactory.h
  5214. * test/ShareRatioSeedCriteriaTest.cc
  5215. * test/UTPexExtensionMessageTest.cc
  5216. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5217. Fixed compiler warning.
  5218. * test/UtilTest.cc
  5219. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5220. Treat Cookie object as session cookie if expiry = 0 is given.
  5221. With this change, you can specify session scoped cookies in an external
  5222. file setting expiry value to 0.
  5223. * src/Cookie.cc
  5224. * src/Cookie.h
  5225. * test/CookieParserTest.cc
  5226. * test/CookieStorageTest.cc
  5227. * test/CookieTest.cc
  5228. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. Changed signature of DHTMessageFactory::createResponseMessage().
  5230. Removed unused validateIDMatch.
  5231. * src/DHTMessageFactory.h
  5232. * src/DHTMessageFactoryImpl.cc
  5233. * src/DHTMessageFactoryImpl.h
  5234. * src/DHTMessageTracker.cc
  5235. * test/DHTMessageFactoryImplTest.cc
  5236. * test/MockDHTMessageFactory.h
  5237. Dropped DHT message coming from same ID of localhost.
  5238. * src/DHTMessageReceiver.cc
  5239. Rejected adding node whose ID is the same as localhost's.
  5240. * src/DHTRoutingTable.cc
  5241. * test/BtPortMessageTest.cc
  5242. * test/DHTRoutingTableTest.cc
  5243. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5244. Pool connection when redirection occurs with Content-Length = 0.
  5245. * src/HttpSkipResponseCommand.cc
  5246. * src/HttpSkipResponseCommand.h
  5247. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5248. Fixed the bug that causes time out when redirection occurs with
  5249. content-length 0.
  5250. * src/HttpResponseCommand.cc
  5251. * src/HttpSkipResponseCommand.cc
  5252. * src/HttpSkipResponseCommand.h
  5253. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5254. Now each status legends is shown only when it appears in Download
  5255. Result. If Download Result has no item, then status legend will not
  5256. be printed.
  5257. * src/RequestGroupMan.cc
  5258. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5259. Removed duplicate creation of OptionHandlers.
  5260. * src/option_processing.cc
  5261. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5262. Fixed the bug that causes segmentation fault when accessing files which
  5263. don't exist or are not included in --select-file option while
  5264. validating chunk checksum.
  5265. * src/MultiDiskAdaptor.cc
  5266. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Fixed compiler warning.
  5268. * test/UtilTest.cc
  5269. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5270. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5271. * src/IteratableChecksumValidator.cc
  5272. * src/IteratableChunkChecksumValidator.cc
  5273. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5274. * Release 0.16.2
  5275. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5276. Added Serbian translation. Updated Ukrainian translation.
  5277. Thanks to all translators.
  5278. * po/sr.po
  5279. * po/uk.po
  5280. * po/LINGUAS
  5281. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. Bump up version number to 0.16.2
  5283. * configure.ac
  5284. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5285. Added length equality test to operator== to drop a piece message
  5286. whose length does not match to the requested one.
  5287. * src/RequestSlot.cc
  5288. * test/DefaultBtMessageDispatcherTest.cc
  5289. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5290. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5291. recieved.
  5292. In this fix, if a request larger than 16KiB length is received, aria2
  5293. disconnects the peer.
  5294. * src/BtConstants.h
  5295. * src/PeerMessageUtil.cc
  5296. * src/PeerMessageUtil.h
  5297. * test/BtRequestMessageTest.cc
  5298. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5299. * Release 0.16.1
  5300. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5302. * doc/aria2c.1.txt
  5303. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5304. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5305. Updated French, Simplified Chinese and Japanese translations.
  5306. Thanks to all translators.
  5307. en@quot and en@boldquot are also added.
  5308. * po/LINGUAS
  5309. * po/fr.po
  5310. * po/ja.po
  5311. * po/uk.po
  5312. * po/vi.po
  5313. * po/zh_CN.po
  5314. * po/zh_TW.po
  5315. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5316. Bump up version number to 0.16.1.
  5317. * configure.ac
  5318. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Updated README.
  5320. * README
  5321. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5322. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5323. not to replace '--' with em dash character.
  5324. * doc/aria2c.1.txt
  5325. * doc/makeman
  5326. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5327. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5328. every SEC seconds.
  5329. * src/DownloadEngineFactory.cc
  5330. * src/OptionHandlerFactory.cc
  5331. * src/option_processing.cc
  5332. * src/usage_text.h
  5333. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. Fixed compile warning on linux-amd64
  5335. * src/FtpConnection.cc
  5336. * src/IteratableChunkChecksumValidator.cc
  5337. * src/MultiDiskAdaptor.cc
  5338. Fixed the bug that unit test fails on linux-amd64
  5339. * test/UtilTest.cc
  5340. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. Added --dht-file-path option to change the path to dht.dat, which is a
  5342. serialized DHT routing table.
  5343. * src/OptionHandlerFactory.cc
  5344. * src/option_processing.cc
  5345. * src/usage_text.h
  5346. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5347. Fixed possible underflow.
  5348. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5349. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5350. Fixed the bug that last character in URI is not encoded.
  5351. * src/Request.cc
  5352. * test/RequestTest.cc
  5353. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5354. Fixed the bug that referer header field contains fragment.
  5355. Now Request class removes fragment part of URI and encodes it
  5356. in Request::setUri() and setReferer().
  5357. * src/Request.h
  5358. * src/Request.cc
  5359. * test/RequestTest.cc
  5360. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5361. Added missing m4 macros.
  5362. * m4/cppunit.m4
  5363. * m4/libgcrypt.m4
  5364. * m4/libgnutls-extra.m4
  5365. * m4/libgnutls.m4
  5366. * m4/libxml2.m4
  5367. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5368. Fixed compile error with gcc-4.4(snapshot)
  5369. * src/File.cc
  5370. * src/FtpConnection.cc
  5371. * src/OptionHandlerImpl.h
  5372. * src/Util.cc
  5373. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5374. Removed assert()
  5375. * src/SocketBuffer.cc (SocketBuffer::send)
  5376. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5377. Changed the type of _numNewConnection to unsigned int.
  5378. * src/ActivePeerConnectionCommand.cc
  5379. * src/ActivePeerConnectionCommand.h
  5380. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5381. * Release 0.16.0
  5382. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5383. Updated doc
  5384. * README
  5385. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5386. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5387. translations. Thanks to all translators.
  5388. * po/bg.po
  5389. * po/de.po
  5390. * po/fr.po
  5391. * po/ja.po
  5392. * po/zh_CN.po
  5393. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5394. Bump up version number to 0.16.0.
  5395. * configure.ac
  5396. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5398. int32_t.
  5399. Changed the type of count to int32_t.
  5400. * src/Metalink2RequestGroup.cc
  5401. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Added test for Time::elapsed(time_t).
  5403. * test/TimeTest.cc
  5404. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5405. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5406. Util::difftv() should be used instead.
  5407. * src/TimeA2.cc
  5408. * src/TimeA2.h
  5409. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Made socket for dht connections non-blocking
  5411. * src/DHTAbstractMessage.cc
  5412. * src/DHTAbstractMessage.h
  5413. * src/DHTConnection.h
  5414. * src/DHTConnectionImpl.cc
  5415. * src/DHTConnectionImpl.h
  5416. * src/DHTMessage.h
  5417. * src/DHTMessageDispatcherImpl.cc
  5418. * src/DHTMessageDispatcherImpl.h
  5419. * src/DHTUnknownMessage.cc
  5420. * src/DHTUnknownMessage.h
  5421. * src/SocketCore.cc
  5422. * src/SocketCore.h
  5423. * test/MockDHTMessage.h
  5424. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5425. Changed the type of offset to int.
  5426. * src/ParameterizedStringParser.cc
  5427. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5428. Made getAsInt() return int32_t
  5429. * src/Option.h
  5430. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5431. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5432. build.
  5433. * configure.ac
  5434. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5435. Use sqlite3_open if sqlite3_open_v2 is not available.
  5436. * src/Sqlite3MozCookieParser.cc
  5437. * src/Sqlite3MozCookieParser.h
  5438. * m4/sqlite3.m4
  5439. * test/Sqlite3MozCookieParserTest.cc
  5440. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5442. * src/BtPieceMessage.cc
  5443. * src/DHTPeerAnnounceStorage.cc
  5444. * src/DefaultPieceStorage.cc
  5445. * src/DownloadCommand.cc
  5446. * src/DownloadEngine.cc
  5447. * src/FtpConnection.cc
  5448. * src/PeerConnection.cc
  5449. * src/PeerMessageUtil.cc
  5450. * src/RequestGroup.cc
  5451. * src/RequestGroupMan.cc
  5452. * src/SimpleBtMessage.cc
  5453. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5454. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5455. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5456. * src/AbstractDiskWriter.cc
  5457. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. Don't set Request::supportsPersistentConnection() in HttpConnection
  5459. since this code is also used in AbstractProxyResponseCommand.
  5460. Moved those code to HttpResponse.
  5461. * src/HttpResponse.cc
  5462. * src/HttpResponse.h
  5463. * src/HttpConnection.cc
  5464. * src/HttpConnection.h
  5465. * src/HttpResponseCommand.cc
  5466. * test/HttpResponseTest.cc
  5467. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5468. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5469. The configuration is minimum: no torrent, no metalink, so there may be
  5470. other compile error on their code.
  5471. * src/a2netcompat.h
  5472. * src/File.cc
  5473. * src/File.h
  5474. * src/SocketCore.cc
  5475. * src/SocketCore.h
  5476. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Made a socket of incoming peer non-blocking.
  5478. * src/PeerListenCommand.cc
  5479. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5480. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5481. whole message data is not sent in one send() call.
  5482. * src/BtPieceMessage.cc
  5483. * src/BtPieceMessage.h
  5484. * src/PeerConnection.cc
  5485. * src/PeerConnection.h
  5486. * src/SimpleBtMessage.cc
  5487. * src/SimpleBtMessage.h
  5488. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Fixed the bug that aria2 downloads faster than max-download-limit when
  5490. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5491. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5492. , instead of sum of them.
  5493. * src/ActivePeerConnectionCommand.cc
  5494. * src/DefaultBtInteractive.cc
  5495. * src/DownloadCommand.cc
  5496. * src/PeerInteractionCommand.cc
  5497. * src/PeerReceiveHandshakeCommand.cc
  5498. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5499. Fixed the bug that HTTPS download fails.
  5500. * src/AbstractCommand.cc
  5501. * src/AbstractCommand.h
  5502. * src/DownloadCommand.cc
  5503. * src/FtpConnection.cc
  5504. * src/HttpConnection.cc
  5505. * src/HttpRequestCommand.cc
  5506. * src/HttpResponseCommand.cc
  5507. * src/HttpSkipResponseCommand.cc
  5508. * src/MSEHandshake.cc
  5509. * src/PeerConnection.cc
  5510. * src/SocketCore.cc
  5511. * src/SocketCore.h
  5512. Fixed the bug that aria2 doesn't download whole content body and cannot
  5513. reuse connection if chunked transfer encoding and gzip content encoding
  5514. are set.
  5515. * src/DownloadCommand.cc
  5516. * src/HttpSkipResponseCommand.cc
  5517. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5518. Updated man page.
  5519. * doc/aria2c.1.txt
  5520. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. When error occurred while aria2 was parsing an .aria2.conf file, print
  5522. the usage of the option that caused error.
  5523. * src/option_processing.cc
  5524. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5525. Fixed compile error on OptionHandlerException
  5526. * src/Makefile.am
  5527. * src/OptionHandlerException.cc
  5528. * src/OptionHandlerException.h
  5529. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5530. Moved message of the error to OptionHandlerException.h
  5531. * src/NameMatchOptionHandler.h
  5532. * src/OptionHandlerException.h
  5533. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. When error occurs while aria2 is parsing an command-line option, print
  5535. the usage of the option.
  5536. * src/Makefile.am
  5537. * src/NameMatchOptionHandler.h
  5538. * src/OptionHandlerException.h
  5539. * src/option_processing.cc
  5540. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5541. Reverted previous change.
  5542. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5543. username is not in URI.
  5544. * src/HttpRequest.cc
  5545. * src/Request.cc
  5546. * test/HttpRequestTest.cc
  5547. * test/RequestTest.cc
  5548. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5549. Now colon is required for username and password in FTP URL, like:
  5550. ftp://username:password@host.
  5551. If colon is not there, aria2 don't parse it as a username. For example,
  5552. aria2 don't retrieve username from ftp://username@host.
  5553. This fix was made in order to login FTP server via non-transparent ftp
  5554. proxy.
  5555. * src/Request.cc
  5556. * test/RequestTest.cc
  5557. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5558. Use netrc for HTTP.
  5559. Now FTP user/password is sent in Authorization header when
  5560. --ftp-via-http-proxy=get is given.
  5561. * src/AuthConfigFactory.cc
  5562. * src/HttpRequest.cc
  5563. * src/HttpRequest.h
  5564. * src/NetrcAuthResolver.cc
  5565. * src/NetrcAuthResolver.h
  5566. * src/OptionHandlerFactory.cc
  5567. * src/option_processing.cc
  5568. * src/prefs.cc
  5569. * src/prefs.h
  5570. * test/AuthConfigFactoryTest.cc
  5571. * test/HttpRequestTest.cc
  5572. * test/NetrcAuthResolverTest.cc
  5573. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5574. Issue PWD command first and get working directory and use it as a prefix
  5575. for CWD command.
  5576. * src/DownloadEngine.cc
  5577. * src/DownloadEngine.h
  5578. * src/FtpConnection.cc
  5579. * src/FtpConnection.h
  5580. * src/FtpFinishDownloadCommand.cc
  5581. * src/FtpInitiateConnectionCommand.cc
  5582. * src/FtpNegotiationCommand.cc
  5583. * src/FtpNegotiationCommand.h
  5584. * test/FtpConnectionTest.cc
  5585. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5586. Removed default user/pass for FTP user/pass, since it should not have
  5587. precedence over netrc configuration by default.
  5588. * src/OptionHandlerFactory.cc
  5589. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5590. Added debug log for socket event.
  5591. * src/AbstractCommand.cc
  5592. * src/PeerAbstractCommand.cc
  5593. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. Log microseconds.
  5595. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5596. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5597. Replaced HelpItem.cc with OptionHandler.cc.
  5598. * po/POTFILES.in
  5599. Updated po files with 'make update-po'
  5600. * po/aria2c.pot
  5601. * po/*.po
  5602. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. Removed possible values from the text.
  5604. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5605. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5606. Removed unused preferences:
  5607. PREF_NO_PREALLOCATION
  5608. PREF_STDOUT_LOG
  5609. PREF_TRACKER_MAX_TRIES
  5610. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5611. PREF_MIN_SEGMENT_SIZE
  5612. * src/option_processing.cc
  5613. * src/prefs.cc
  5614. * src/prefs.h
  5615. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5616. Integrated HelpItem into OptionParser to ease the workload for adding
  5617. new options. Removed default value from usage text.
  5618. * src/HelpItem.cc: Removed.
  5619. * src/HelpItem.h: Removed.
  5620. * src/HelpItemFactory.cc: Removed.
  5621. * src/HelpItemFactory.h: Removed.
  5622. * src/Makefile.am
  5623. * src/Makefile.in
  5624. * src/NameMatchOptionHandler.h
  5625. * src/OptionHandler.cc
  5626. * src/OptionHandler.h
  5627. * src/OptionHandlerFactory.cc
  5628. * src/OptionHandlerImpl.h
  5629. * src/OptionParser.cc
  5630. * src/OptionParser.h
  5631. * src/TagContainer.cc: Removed.
  5632. * src/TagContainer.h: Removed.
  5633. * src/TaggedItem.cc: Removed.
  5634. * src/TaggedItem.h: Removed.
  5635. * src/main.cc
  5636. * src/option_processing.cc
  5637. * src/usage_text.h
  5638. * src/version_usage.cc
  5639. * test/HelpItemTest.cc: Removed.
  5640. * test/Makefile.am
  5641. * test/Makefile.in
  5642. * test/OptionHandlerTest.cc
  5643. * test/OptionParserTest.cc
  5644. * test/TagContainerTest.cc: Removed.
  5645. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. Moved `TransferStat stat = ...' to inside the `if' clause.
  5647. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5648. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5649. Fixed the bug that a block in a piece is requested when same block is
  5650. already requested to the same peer in end game mode.
  5651. * src/BtRequestFactory.h
  5652. * src/DefaultBtInteractive.cc
  5653. * src/DefaultBtRequestFactory.cc
  5654. * src/DefaultBtRequestFactory.h
  5655. * src/DefaultPieceStorage.cc
  5656. * src/DefaultPieceStorage.h
  5657. * src/PieceStorage.h
  5658. * src/UnknownLengthPieceStorage.cc
  5659. * src/UnknownLengthPieceStorage.h
  5660. * test/DefaultBtRequestFactoryTest.cc
  5661. * test/DefaultPieceStorageTest.cc
  5662. * test/MockBtRequestFactory.h
  5663. * test/MockPieceStorage.h
  5664. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5665. Removed _uploadLength and _downloadLength from PeerSessionResource
  5666. and use PeerStat::_sessionUploadLength and
  5667. PeerStat::_sessionDownloadLength.
  5668. * src/PeerSessionResource.cc
  5669. * src/PeerSessionResource.h
  5670. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Fixed the bug that prefixLength of split bucket which doesn't include
  5672. local node ID is incremented.
  5673. * src/DHTBucket.cc
  5674. * src/DHTBucket.h
  5675. * test/DHTBucketTest.cc
  5676. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Added cookies.sqlite to EXTRA_DIST
  5678. * test/Makefile.am
  5679. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5680. Added Turkish translation. Updated French, German, Russian and
  5681. Simplified Chinese translations. Thanks to all translators.
  5682. * po/LINGUAS
  5683. * po/de.po
  5684. * po/fr.po
  5685. * po/ru.po
  5686. * po/tr.po
  5687. * po/zh_CN.po
  5688. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5689. Added deliminating text to the beginning of the log so that one can find
  5690. where the log starts easily.
  5691. * src/main.cc
  5692. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5693. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5694. to fix compile error when async DNS is not enabled by configuration.
  5695. * src/AbstractCommand.cc
  5696. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5697. If establishing conneciton to a server is failed, then mark error on
  5698. its ServerStat.
  5699. Added the cause of error to log when error event occurred.
  5700. Moved message string to message.h for translation.
  5701. * src/AbstractCommand.cc
  5702. * src/AbstractCommand.h
  5703. * src/FtpNegotiationCommand.cc
  5704. * src/HttpRequestCommand.cc
  5705. * src/PeerAbstractCommand.cc
  5706. * src/message.h
  5707. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Added the function to get error message from socket.
  5709. * src/SocketCore.cc
  5710. * src/SocketCore.h
  5711. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5713. * src/RequestGroupMan.cc
  5714. * src/RequestGroupMan.h
  5715. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. If error event is received in epoll, then abort download immediately.
  5717. * src/AbstractCommand.cc
  5718. * src/Command.cc
  5719. * src/Command.h
  5720. * src/DownloadEngine.cc
  5721. * src/PeerAbstractCommand.cc
  5722. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5723. Added usage message for --uri-selector, --server-stat-of,
  5724. --server-stat-in, --server-stat-timeout options.
  5725. * src/HelpItemFactory.cc
  5726. * src/usage_text.h
  5727. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. Added upper limit of FTP response buffer. The current implementation
  5729. uses 4096bytes as a limit.
  5730. * src/FtpConnection.cc
  5731. * src/FtpConnection.h
  5732. * test/FtpConnectionTest.cc
  5733. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. Use non-blocking socket for TCP communication to avoid possible
  5735. blocking due to buffer full.
  5736. * src/AbstractProxyRequestCommand.cc
  5737. * src/FtpConnection.cc
  5738. * src/FtpConnection.h
  5739. * src/FtpNegotiationCommand.cc
  5740. * src/FtpNegotiationCommand.h
  5741. * src/HttpConnection.cc
  5742. * src/HttpConnection.h
  5743. * src/HttpRequestCommand.cc
  5744. * src/InitiatorMSEHandshakeCommand.cc
  5745. * src/InitiatorMSEHandshakeCommand.h
  5746. * src/MSEHandshake.cc
  5747. * src/MSEHandshake.h
  5748. * src/Makefile.am
  5749. * src/PeerConnection.cc
  5750. * src/PeerConnection.h
  5751. * src/PeerInteractionCommand.cc
  5752. * src/PeerListenCommand.cc
  5753. * src/ReceiverMSEHandshakeCommand.cc
  5754. * src/ReceiverMSEHandshakeCommand.h
  5755. * src/SocketBuffer.cc
  5756. * src/SocketBuffer.h
  5757. * src/SocketCore.cc
  5758. * src/SocketCore.h
  5759. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5760. Call setStatusRealtime() in constructor.
  5761. * src/RealtimeCommand.cc
  5762. * src/RealtimeCommand.h
  5763. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5764. Call Download::setNoWait(true) to execute newly created command without
  5765. a pause.
  5766. * src/AbstractCommand.cc
  5767. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5768. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5769. found' error from HTTP/FTP server NUM times without getting single
  5770. bytes of data, then force the download to fail.
  5771. Basically aria2 tris all URIs available. So if long list of URIs are
  5772. specified in Metalink, then aria2 will take a long time to fail
  5773. eventually if all URIs are outdated. This option eases this situation
  5774. to limit the number of servers to try.
  5775. * src/FtpNegotiationCommand.cc
  5776. * src/HelpItemFactory.cc
  5777. * src/HttpResponseCommand.cc
  5778. * src/OptionHandlerFactory.cc
  5779. * src/PeerStat.h
  5780. * src/RequestGroup.cc
  5781. * src/RequestGroup.h
  5782. * src/SegmentMan.cc
  5783. * src/SegmentMan.h
  5784. * src/option_processing.cc
  5785. * src/prefs.cc
  5786. * src/prefs.h
  5787. * src/usage_text.h
  5788. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5789. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5790. response even if more than one response is in it.
  5791. * src/FtpConnection.cc
  5792. * src/FtpConnection.h
  5793. * test/FtpConnectionTest.cc
  5794. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5795. Merged from stable-0.15
  5796. * m4/libcares.m4
  5797. Use pkg-config
  5798. * m4/sqlite3.m4
  5799. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5800. Removed unnecessary if statement.
  5801. * src/DefaultPieceStorage.cc (initPieceStorage)
  5802. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. Added --connect-timeout option to specify connect timeout in seconds.
  5804. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5805. connecting to BitTorrent peer is not controlled by this option.
  5806. * src/AbstractProxyRequestCommand.cc
  5807. * src/FtpNegotiationCommand.cc
  5808. * src/HelpItemFactory.cc
  5809. * src/HttpRequestCommand.cc
  5810. * src/OptionHandlerFactory.cc
  5811. * src/option_processing.cc
  5812. * src/prefs.cc
  5813. * src/prefs.h
  5814. * src/usage_text.h
  5815. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Added help message for -R option.
  5817. * src/HelpItemFactory.cc
  5818. * src/usage_text.h
  5819. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Added the message that the time is in local time zone.
  5821. * src/RequestGroup.cc
  5822. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5823. Implemented the ability to get timestamp from remote FTP server using
  5824. MDTM command described in RFC3659.
  5825. * src/FtpConnection.cc
  5826. * src/FtpConnection.h
  5827. * src/FtpNegotiationCommand.cc
  5828. * src/FtpNegotiationCommand.h
  5829. * test/FtpConnectionTest.cc
  5830. * test/Makefile.am
  5831. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5832. Implemented the ability to get timestamp from remote HTTP server and
  5833. apply it to local file. To enable this feature, --remote-time option
  5834. is added. No usage text has been written yet.
  5835. If several servers returns difference timestamp, then aria2 uses latest
  5836. one.
  5837. * src/CopyDiskAdaptor.cc
  5838. * src/CopyDiskAdaptor.h
  5839. * src/DirectDiskAdaptor.cc
  5840. * src/DirectDiskAdaptor.h
  5841. * src/DiskAdaptor.h
  5842. * src/File.cc
  5843. * src/File.h
  5844. * src/HttpHeader.cc
  5845. * src/HttpHeader.h
  5846. * src/HttpResponse.cc
  5847. * src/HttpResponse.h
  5848. * src/HttpResponseCommand.cc
  5849. * src/HttpResponseCommand.h
  5850. * src/MultiDiskAdaptor.cc
  5851. * src/MultiDiskAdaptor.h
  5852. * src/OptionHandlerFactory.cc
  5853. * src/RequestGroup.cc
  5854. * src/RequestGroup.h
  5855. * src/RequestGroupMan.cc
  5856. * src/option_processing.cc
  5857. * src/prefs.cc
  5858. * src/prefs.h
  5859. * test/CopyDiskAdaptorTest.cc
  5860. * test/FileTest.cc
  5861. * test/Makefile.am
  5862. * test/Makefile.in
  5863. * test/MultiDiskAdaptorTest.cc
  5864. * test/TestUtil.cc
  5865. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. Fixed the bug that DiskWriterEntry is not created when its
  5867. FileEntry.isRequested() is false and it doesn't share a piece with
  5868. other FileEntries that are requested. This bug causes segmentation fault
  5869. in the end.
  5870. * src/MultiDiskAdaptor.cc
  5871. * src/MultiDiskAdaptor.h
  5872. * src/MultiFileAllocationIterator.cc
  5873. * test/MultiDiskAdaptorTest.cc
  5874. * test/MultiFileAllocationIteratorTest.cc
  5875. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5876. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5877. called if the number of file entries are greater than max open files.
  5878. * src/AbstractSingleDiskAdaptor.cc
  5879. * src/AbstractSingleDiskAdaptor.h
  5880. * src/DiskAdaptor.h
  5881. * src/MultiDiskAdaptor.cc
  5882. * src/MultiDiskAdaptor.h
  5883. * test/MultiDiskAdaptorTest.cc
  5884. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5885. Added a constuctor that receives struct timeval.
  5886. Added operator<.
  5887. * src/TimeA2.cc
  5888. * src/TimeA2.h
  5889. * test/TimeTest.cc
  5890. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5891. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5892. * src/CookieParser.cc
  5893. * test/CookieParserTest.cc
  5894. * test/HttpResponseTest.cc
  5895. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5896. Implmented the functions to parse date.
  5897. * src/TimeA2.cc
  5898. * src/TimeA2.h
  5899. * test/TimeTest.cc
  5900. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5901. Added "Firefox3 Cookie" feature to FeatureConfig
  5902. * src/FeatureConfig.cc
  5903. * src/FeatureConfig.h
  5904. * test/FeatureConfigTest.cc
  5905. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. Bump up version number to 0.16.0b
  5907. * configure.ac
  5908. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5909. Use pkg-config if is is available.
  5910. * m4/openssl.m4
  5911. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5912. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5913. * src/BtAnnounce.h
  5914. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5915. If an error occurred with a URI, remove identical URI from remaining
  5916. URI list because it is likely that same error occurred in the end and it
  5917. is waste of time.
  5918. * src/AbstractCommand.cc
  5919. * src/RequestGroup.cc
  5920. * src/RequestGroup.h
  5921. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5922. Removed wrong comment.
  5923. * src/DefaultPeerStorage.cc
  5924. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5925. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5926. Added return value of getpid() to argument of srand() to achieve more
  5927. randomized value.
  5928. * src/SimpleRandomizer.cc
  5929. * src/SimpleRandomizer.h
  5930. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5931. Contact tracker frequently when the number of connections are 0 and
  5932. download is not finished yet.
  5933. * src/ActivePeerConnectionCommand.cc
  5934. * src/BtAnnounce.h
  5935. * src/DefaultBtAnnounce.cc
  5936. * src/DefaultBtAnnounce.h
  5937. * test/MockBtAnnounce.h
  5938. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5939. Moved threshold values to UTPexExtensionMessage.
  5940. * src/DefaultBtInteractive.cc
  5941. * src/Peer.cc
  5942. * src/Peer.h
  5943. * src/UTPexExtensionMessage.cc
  5944. * src/UTPexExtensionMessage.h
  5945. * test/UTPexExtensionMessageTest.cc
  5946. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5947. Added _incoming member to Peer class and made it true if the peer
  5948. initiated connection. Don't add those peer to UTPex message.
  5949. If extended handshake is received, assign _incoming to false.
  5950. * src/DefaultBtInteractive.cc
  5951. * src/HandshakeExtensionMessage.cc
  5952. * src/Peer.cc
  5953. * src/Peer.h
  5954. * src/PeerListenCommand.cc
  5955. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5957. Encoding Decoder. Removed size threshold for turning off on the fly
  5958. inflation because resulting file may or may not be inflated depending
  5959. on the file size and I think it is not expected by users.
  5960. This change fixes segmentation fault when Metalink file contains gzipped
  5961. file and its filesize is provided.
  5962. * src/HttpResponseCommand.cc
  5963. * src/HttpResponseCommand.h
  5964. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. Made Cookie immutable.
  5966. * src/Cookie.cc
  5967. * src/Cookie.h
  5968. * src/CookieParser.cc
  5969. * src/CookieParser.h
  5970. * src/CookieStorage.cc
  5971. * test/CookieParserTest.cc
  5972. * test/CookieStorageTest.cc
  5973. * test/NsCookieParserTest.cc
  5974. * test/Sqlite3MozCookieParserTest.cc
  5975. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5976. Removed CookieBox, CookieBoxFactory.
  5977. * src/CookieBox.cc
  5978. * src/CookieBox.h
  5979. * src/CookieBoxFactory.cc
  5980. * src/CookieBoxFactory.h
  5981. * src/Makefile.am
  5982. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5983. Use CookieStorage class instead of CookieBox class.
  5984. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5985. * src/AbstractProxyRequestCommand.cc
  5986. * src/CookieStorage.cc
  5987. * src/DownloadEngine.cc
  5988. * src/DownloadEngine.h
  5989. * src/HttpConnection.cc
  5990. * src/HttpConnection.h
  5991. * src/HttpRequest.cc
  5992. * src/HttpRequest.h
  5993. * src/HttpRequestCommand.cc
  5994. * src/HttpResponse.cc
  5995. * src/HttpResponseCommand.cc
  5996. * src/HttpSkipResponseCommand.cc
  5997. * src/Makefile.am
  5998. * src/MultiUrlRequestInfo.cc
  5999. * src/Request.cc
  6000. * src/Request.h
  6001. * src/main.cc
  6002. * test/AllTest.cc
  6003. * test/CookieStorageTest.cc
  6004. * test/CookieTest.cc
  6005. * test/HttpRequestTest.cc
  6006. * test/HttpResponseTest.cc
  6007. * test/Makefile.am
  6008. * test/NsCookieParserTest.cc
  6009. * test/Sqlite3MozCookieParserTest.cc
  6010. * test/nscookietest.txt
  6011. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6012. Updated
  6013. * test/Cookies.sqlite
  6014. * test/nscookietest.txt
  6015. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6016. Added tests for CookieStorage::load()
  6017. * test/CookieStorageTest.cc
  6018. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6019. Added CookieStorage class which is based on RFC2109 and manages cookies
  6020. more strictly than CookieBox and CookieBoxFactory class.
  6021. * src/CookieStorage.cc
  6022. * src/CookieStorage.h
  6023. * src/Cookie.cc
  6024. * src/Cookie.h
  6025. * test/CookieStorageTest.cc
  6026. * test/CookieTest.cc
  6027. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Fixed the bug that commands are created more than the number of pieces.
  6029. * src/RequestGroup.cc
  6030. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6031. Fixed infinite loop bug in FTP when SIZE command failed.
  6032. * src/FtpNegotiationCommand.cc
  6033. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6034. Removed DirectDiskAdaptorTest.h
  6035. * test/Makefile.am
  6036. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6037. Fixed chunk checksum validation cannot detect trailing garbage data.
  6038. BUG#2074141
  6039. * src/AbstractSingleDiskAdaptor.cc
  6040. * src/AbstractSingleDiskAdaptor.h
  6041. * src/CheckIntegrityEntry.cc
  6042. * src/CheckIntegrityEntry.h
  6043. * src/DiskAdaptor.h
  6044. * src/MultiDiskAdaptor.cc
  6045. * src/MultiDiskAdaptor.h
  6046. * src/RequestGroup.cc
  6047. * test/DirectDiskAdaptorTest.cc
  6048. * test/MultiDiskAdaptorTest.cc
  6049. * test/TestUtil.cc
  6050. * test/TestUtil.h
  6051. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6052. Bump up version number of dht.dat file to 3. In version 3 format, time
  6053. is stored in 64bit, network byte order.
  6054. New build can load old format(version 2) but it saves the file in new
  6055. format. It means once you used new build, your dht.dat becomes
  6056. incompatible with older build.
  6057. * src/DHTRoutingTableDeserializer.cc
  6058. * src/DHTRoutingTableSerializer.cc
  6059. * test/DHTRoutingTableSerializerTest.cc
  6060. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6061. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6062. * test/Makefile.am
  6063. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6064. Bump up version number of .aria2 control file to 0001.
  6065. New aria2 can still load version 0000 file but it saves the file in
  6066. version 0001 format. It means that new aria2 can resume download
  6067. started by old aria2 but the opposite is not true.
  6068. * src/DefaultBtProgressInfoFile.cc
  6069. * src/DefaultBtProgressInfoFile.h
  6070. * test/DefaultBtProgressInfoFileTest.cc
  6071. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6072. Added ntoh64 and hton64 as inline functions.
  6073. * src/Util.cc
  6074. * test/UtilTest.cc
  6075. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6076. Added sqlite3 depenency and Firefox3 cookie support.
  6077. * README
  6078. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. State that firefox3 cookie is supported explicitly in the usage.
  6080. * src/usage_text.h
  6081. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6082. Externalized message.
  6083. * src/RequestGroupMan.cc
  6084. * src/message.h
  6085. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Save temporary file first and rename to the destination on success.
  6087. Added test cases.
  6088. * src/RequestGroupMan.cc
  6089. * test/RequestGroupManTest.cc
  6090. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Fixed the bug that the number of connected peer is exceeding the limit
  6092. (55 by default) in seeding mode.
  6093. Multiplied 0.8 to _maxUploadSpeedLimit.
  6094. * src/ActivePeerConnectionCommand.cc
  6095. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6096. Clear table item.
  6097. * src/Dictionary.cc
  6098. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6099. Fixed error handling of lseek.
  6100. * src/AbstractDiskWriter.cc
  6101. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6102. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6103. style cookie file.
  6104. * src/usage_text.h
  6105. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6106. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6107. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6108. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6109. * src/Util.cc
  6110. * src/Util.h
  6111. * src/CookieParser.cc
  6112. * test/UtilTest.cc
  6113. * test/CookieParserTest.cc
  6114. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Separate the implementation to load old mozilla format of cookie to
  6116. NsCookieParser class.
  6117. * src/CookieBoxFactory.cc
  6118. * src/CookieBoxFactory.h
  6119. * src/NsCookieParser.cc
  6120. * src/NsCookieParser.h
  6121. * test/NsCookieParserTest.cc
  6122. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Made parse() const
  6124. * src/Sqlite3MozCookieParser.cc
  6125. * src/Sqlite3MozCookieParser.h
  6126. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Added firefox3 cookie support based on the patch submitted by
  6128. tizianomueller.
  6129. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6130. this functionality.
  6131. * configure.ac
  6132. * m4/sqlite3.m4
  6133. * src/CookieBoxFactory.cc
  6134. * src/CookieBoxFactory.h
  6135. * src/Makefile.am
  6136. * src/Makefile.in
  6137. * src/Sqlite3MozCookieParser.cc
  6138. * src/Sqlite3MozCookieParser.h
  6139. * src/main.cc
  6140. * test/CookieBoxFactoryTest.cc
  6141. * test/Makefile.am
  6142. * test/Makefile.in
  6143. * test/Sqlite3MozCookieParserTest.cc
  6144. * test/badcookies.sqlite
  6145. * test/cookies.sqlite
  6146. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Added Danish and Greek translations.
  6148. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6149. Great thanks to all translators.
  6150. * po/LINGUAS
  6151. * po/el.po
  6152. * po/da.po
  6153. * po/es.po
  6154. * po/ca.po
  6155. * po/nn.po
  6156. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Fixed man page: --follow-bittorrent should be --follow-torrent
  6158. * doc/aria2c.1.txt
  6159. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Fixed: numCommand is less than the value specified in -C option.
  6161. * src/RequestGroup.cc
  6162. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Fixed occasional assertion failure in PieceSegment.
  6164. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6165. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6166. creation of duplicate segments and one of the segment was finished then
  6167. assertion failure was caused.
  6168. * src/SegmentMan.cc
  6169. * test/SegmentManTest.cc
  6170. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. Added options to load/save the server's performance/status to a file
  6172. and the timeout to drop their data.
  6173. --server-stat-of=FILE specifies the file to which performance data
  6174. is saved.
  6175. --server-stat-if=FILE specifies the file to read previously saved
  6176. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6177. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6178. TIMEOUT is specified in seconds and the default value is 24hours.
  6179. * src/MultiUrlRequestInfo.cc
  6180. * src/OptionHandlerFactory.cc
  6181. * src/RequestGroupMan.cc
  6182. * src/RequestGroupMan.h
  6183. * src/ServerStatMan.cc
  6184. * src/ServerStatMan.h
  6185. * src/option_processing.cc
  6186. * src/prefs.cc
  6187. * src/prefs.h
  6188. * test/ServerStatManTest.cc
  6189. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6190. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6191. * src/ServerStatMan.cc
  6192. * src/ServerStatMan.h
  6193. * test/ServerStatManTest.cc
  6194. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Implemented ServerStatMan::load(...) function and its test case.
  6196. * src/ServerStat.cc
  6197. * src/ServerStat.h
  6198. * src/ServerStatMan.cc
  6199. * test/ServerStatManTest.cc
  6200. * test/ServerStatTest.cc
  6201. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Use time_t instead of int32_t. Use int64_t where milli second is
  6203. expected.
  6204. * src/TimeA2.cc
  6205. * src/TimeA2.h
  6206. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. Implemented ServerStatMan::save(...) function and its test case.
  6208. * src/ServerStat.cc
  6209. * src/ServerStat.h
  6210. * src/ServerStatMan.cc
  6211. * src/ServerStatMan.h
  6212. * test/ServerStatManTest.cc
  6213. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6214. Now aria2 uses name attribute in Metalink as local filename in
  6215. BitTorrent downloads. BUG#2033999
  6216. * src/BtContext.h
  6217. * src/BtDependency.cc
  6218. * src/DefaultBtContext.cc
  6219. * src/DefaultBtContext.h
  6220. * src/SingleFileDownloadContext.cc
  6221. * src/SingleFileDownloadContext.h
  6222. * test/BtDependencyTest.cc
  6223. * test/DefaultBtContextTest.cc
  6224. * test/MockBtContext.h
  6225. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Added AC_C_BIGENDIAN
  6227. * src/configure.ac
  6228. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. Limited numCommand less than or equal to the number of piece.
  6230. * src/RequestGroup.cc
  6231. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6233. directive.
  6234. * test/DefaultPieceStorageTest.cc
  6235. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6236. Fixed memory leak in test code
  6237. * test/AnnounceListTest.cc
  6238. * test/DefaultPeerListProcessorTest.cc
  6239. * test/DefaultPeerStorageTest.cc
  6240. * test/MetaFileUtilTest.cc
  6241. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6243. * src/DefaultPieceStorage.cc
  6244. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Initialized _directIOAllowed
  6246. * src/MultiDiskAdaptor.cc
  6247. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6248. Fixed memory leak
  6249. * src/GZipDecoder.cc
  6250. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6251. Fixed memory leak
  6252. * src/MetalinkParserStateMachine.cc
  6253. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. Fixed memory leak
  6255. * src/Dictionary.cc
  6256. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6257. Fixed memory leak
  6258. * src/IteratableChunkChecksumValidator.h
  6259. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6260. Fixed unmatched malloc/free.
  6261. * src/IteratableChunkChecksumValidator.cc
  6262. * src/IteratableChecksumValidator.cc
  6263. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6264. Removed max chunk size check. This change fixes BUG#2040169
  6265. * src/ChunkedDecoder.cc
  6266. * src/ChunkedDecoder.h
  6267. * test/ChunkedDecoderTest.cc
  6268. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6269. Implemented download speed based URI selection algorithm.
  6270. Introduced new option --uri-selector.
  6271. If --uri-selector=feedback is given, aria2 uses download speed observed
  6272. in the previous downloads and chooses fastest server in the URI list.
  6273. Currently at most 10 URIs are considered to introduce randomeness for
  6274. finding better servers. The speed is average download speed in the
  6275. downloads.
  6276. On the other hand, if --uri-selector=inorder is given, which is default,
  6277. URI is tried in order in URI list.
  6278. The usage text for the new option has not been written yet.
  6279. * src/AbstractCommand.cc
  6280. * src/DownloadCommand.cc
  6281. * src/DownloadEngine.cc
  6282. * src/DownloadEngineFactory.cc
  6283. * src/InOrderURISelector.cc
  6284. * src/InOrderURISelector.h
  6285. * src/OptionHandlerFactory.cc
  6286. * src/PeerStat.h
  6287. * src/RequestGroup.cc
  6288. * src/RequestGroup.h
  6289. * src/RequestGroupMan.cc
  6290. * src/RequestGroupMan.h
  6291. * src/SegmentMan.cc
  6292. * src/SegmentMan.h
  6293. * src/ServerStat.cc
  6294. * src/ServerStat.h
  6295. * src/ServerStatMan.cc
  6296. * src/ServerStatMan.h
  6297. * src/ServerStatURISelector.cc
  6298. * src/ServerStatURISelector.h
  6299. * src/URISelector.h
  6300. * src/option_processing.cc
  6301. * src/prefs.cc
  6302. * src/prefs.h
  6303. * test/InOrderURISelectorTest.cc
  6304. * test/RequestGroupManTest.cc
  6305. * test/ServerStatManTest.cc
  6306. * test/ServerStatURISelectorTest.cc
  6307. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. * Release 0.15.1+2
  6309. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. Bump up version number to 0.15.1+2
  6311. * configure.ac
  6312. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6314. * m4/aria2_arg.m4
  6315. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6316. * Release 0.15.1+1
  6317. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Bump up version number to 0.15.1+1
  6319. * configure.ac
  6320. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6321. Fixed the bug that causes segmentaion fault when resuming download
  6322. using metalink without size tag. Reproducible only using HTTP URI.
  6323. * src/HttpResponseCommand.cc
  6324. * src/FtpNegotiationCommand.cc
  6325. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. * Release 0.15.1
  6327. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Updated Bulgarian and French translations, thanks to all translators.
  6329. * po/bg.po
  6330. * po/fr.po
  6331. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. Bump up version number to 0.15.1
  6333. * configure.ac
  6334. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. Avoid repeated call of gettimeofday() when calculating speed.
  6336. * src/SpeedCalc.cc
  6337. * src/SpeedCalc.h
  6338. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Removed writable check when socket's send buffer is full in BitTorrent
  6340. downloads to lower CPU usage.
  6341. * src/PeerInteractionCommand.cc
  6342. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6343. Fixed broken gzip inflation.
  6344. Turn off segmented downloading if gzip content is smaller than or equal
  6345. to 1MiB and inflate the data on the fly, because HTTP response header
  6346. doesn't contain the length of inflated file we can't determin where
  6347. the chunk of data should be written.
  6348. On the other hand, if gzip content is larger than 1MB, then turn off
  6349. on the fly inflation, because some servers returns "content-type: gzip"
  6350. for *.tgz, *.gz files.
  6351. * src/DownloadCommand.cc
  6352. * src/HttpResponseCommand.cc
  6353. * src/HttpResponseCommand.h
  6354. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6355. Applied tizianomueller's patch to fix compile error.
  6356. * test/BitfieldManTest.cc
  6357. * test/BtRequestMessageTest.cc
  6358. * test/DefaultBtContextTest.cc
  6359. * test/DefaultDiskWriterTest.cc
  6360. * test/DefaultPieceStorageTest.cc
  6361. * test/HttpHeaderProcessorTest.cc
  6362. * test/HttpResponseTest.cc
  6363. * test/Metalink2RequestGroupTest.cc
  6364. * test/MetalinkParserControllerTest.cc
  6365. * test/MetalinkProcessorTest.cc
  6366. * test/PeerSessionResourceTest.cc
  6367. * test/UtilTest.cc
  6368. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6369. * Release 0.15.0
  6370. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6371. Reordered src files in POTFILES.in so that usage text appears first.
  6372. * po/POTFILES.in
  6373. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6374. Bump up version number to 0.15.0
  6375. * configure.ac
  6376. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Added Bulgarian translation.
  6378. Updated Catalan, Spanish, French and Japanese translations.
  6379. Thanks to all translators.
  6380. * po/LINGUAS
  6381. * po/bg.po
  6382. * po/ca.po
  6383. * po/es.po
  6384. * po/fr.po
  6385. * po/ja.po
  6386. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6387. Updated feature list. Added libz for dependency section.
  6388. Added a description about unit testing using CppUnit.
  6389. * README
  6390. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6391. Added a test for libz. Quoted where it is necessary.
  6392. * build_test.sh
  6393. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Added GZip to `Enabled Features' list.
  6395. * src/FeatureConfig.cc
  6396. * src/FeatureConfig.h
  6397. * test/FeatureConfigTest.cc
  6398. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6399. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6400. the transfer has not yet started.
  6401. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6402. * src/SegmentMan.cc
  6403. * src/SegmentMan.h
  6404. * test/SegmentManTest.cc
  6405. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6406. Cache last calculated average download/upload speed.
  6407. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6408. cached value.
  6409. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6410. * src/PeerStat.h
  6411. * src/SpeedCalc.cc
  6412. * src/SpeedCalc.h
  6413. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6414. Call parseUrl directly.
  6415. * src/Request.cc (resetUrl)
  6416. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6417. Supported absolute/relative path in Location header field.
  6418. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6419. * src/HttpHeader.cc
  6420. * src/HttpHeader.h
  6421. * src/HttpResponse.cc
  6422. * src/HttpSkipResponseCommand.cc
  6423. * src/Request.cc
  6424. * test/HttpHeaderTest.cc
  6425. * test/HttpResponseTest.cc
  6426. * test/RequestTest.cc
  6427. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6428. Changed help text for --load-cookie option.
  6429. * doc/aria2c.1.txt
  6430. * src/usage_text.h
  6431. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Regenerated test/Makefile.in to remove stale ChangeLog.
  6433. * test/Makefile.in
  6434. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. Updated po files.
  6436. * po/aria2c.pot
  6437. * po/*.po
  6438. * po/*.gmo
  6439. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. Bump up version number to 0.15.0b
  6441. * configure.ac
  6442. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Externalize messages.
  6444. * src/RequestGroupMan.cc
  6445. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6446. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. Use File::exists() instead of File::isFile() to allow non-regular file
  6448. such as block special files.
  6449. * src/AbstractDiskWriter.cc
  6450. * src/MultiDiskWriter.cc
  6451. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6453. * src/gai_strerror.h
  6454. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6455. Fixed compile error. Thanks gknauf for the patch.
  6456. * src/asctime_r.c
  6457. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Included asctime_r.h from a2time.h.
  6459. * src/a2time.h
  6460. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6461. Added a message "aria2 doesn't verify signature" to log message when
  6462. signature file is saved.
  6463. * src/RequestGroupMan.cc
  6464. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Added the ability to save signature when download is completed if
  6466. signature is available. The filename of signature file is the path to
  6467. download file followed by ".sig". If it already exists, then signature
  6468. will not be saved.
  6469. * src/RequestGroupMan.cc
  6470. * src/Signature.cc
  6471. * test/SignatureTest.cc
  6472. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6473. Updated the descriptions for --bt-seed-unverified.
  6474. * doc/aria2c.1
  6475. * doc/aria2c.1.html
  6476. * doc/aria2c.1.txt
  6477. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6478. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6479. that this is not going to verify files using piece hashes.
  6480. * src/HelpItemFactory.cc
  6481. * src/OptionHandlerFactory.cc
  6482. * src/RequestGroup.cc
  6483. * src/option_processing.cc
  6484. * src/prefs.cc
  6485. * src/prefs.h
  6486. * src/usage_text.h
  6487. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6488. Added the ability to retrieve signature from Metalink file.
  6489. A retrieved signature is stored in Signature class and it is held by
  6490. DownloadContext class. Note that aria2 doesn't verify signature.
  6491. * src/DownloadContext.cc
  6492. * src/DownloadContext.h
  6493. * src/Makefile.am
  6494. * src/Makefile.in
  6495. * src/Metalink2RequestGroup.cc
  6496. * src/MetalinkEntry.cc
  6497. * src/MetalinkEntry.h
  6498. * src/MetalinkParserController.cc
  6499. * src/MetalinkParserController.h
  6500. * src/MetalinkParserStateMachine.cc
  6501. * src/MetalinkParserStateMachine.h
  6502. * src/Signature.cc
  6503. * src/Signature.h
  6504. * src/SignatureMetalinkParserState.cc
  6505. * src/SignatureMetalinkParserState.h
  6506. * src/VerificationMetalinkParserState.cc
  6507. * src/VerificationMetalinkParserState.h
  6508. * test/Metalink2RequestGroupTest.cc
  6509. * test/MetalinkParserControllerTest.cc
  6510. * test/MetalinkProcessorTest.cc
  6511. * test/test.xml
  6512. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Close DiskAdaptor after renaming file.
  6514. * src/RequestGroup.cc
  6515. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Corrected indentation
  6517. * src/DefaultBtProgressInfoFile.cc
  6518. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6519. Moved the calls of std::ios::exceptions() inside of try-catch block
  6520. because if an error occurred in constructor of std::fstream, then
  6521. exception is thrown immediately when std::ios::exceptions() is called
  6522. which results unhandled exception and aria2c aborts.
  6523. * src/DefaultBtProgressInfoFile.cc
  6524. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6525. Added the test for the previous change in DefaultBtContext.cc
  6526. * test/DefaultBtContextTest.cc
  6527. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6528. Fixed the bug that causes infinite loop when the number of pieces are
  6529. fewer than allowed fast set size which is 10 by default.
  6530. * src/DefaultBtContext.cc
  6531. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6532. Updated the descriptions for -j, -s. Added --bt-seed.
  6533. * doc/aria2c.1
  6534. * doc/aria2c.1.html
  6535. * doc/aria2c.1.txt
  6536. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6538. aria2 seeds previously downloaded files without validating piece hashs.
  6539. * src/HelpItemFactory.cc
  6540. * src/OptionHandlerFactory.cc
  6541. * src/RequestGroup.cc
  6542. * src/option_processing.cc
  6543. * src/prefs.cc
  6544. * src/prefs.h
  6545. * src/usage_text.h
  6546. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. Updated DESCRIPTION of man page.
  6548. * doc/aria2c.1
  6549. * doc/aria2c.1.html
  6550. * doc/aria2c.1.txt
  6551. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6553. Don't define `struct addrinfo' when __sun is defined.
  6554. * src/getaddrinfo.h
  6555. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6557. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6558. second argument is of type `struct _stati64'. Otherwise it is defined as
  6559. `struct stat'.
  6560. * src/AbstractDiskWriter.cc
  6561. * src/File.cc
  6562. * src/File.h
  6563. * src/a2io.h
  6564. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6565. Fixed the compile error in hurd-i386
  6566. See the original bug report:
  6567. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6568. * src/a2io.h
  6569. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6570. Code cleanup.
  6571. * src/PeerAbstractCommand.cc
  6572. * src/PeerAbstractCommand.h
  6573. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6574. Removed TransferEncoding.
  6575. * src/DownloadCommand.cc
  6576. * src/DownloadCommand.h
  6577. * src/HttpResponseCommand.cc
  6578. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6579. Updated po files.
  6580. * po/aria2c.pot
  6581. * po/*.po
  6582. * po/*.gmo
  6583. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6584. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6585. * src/A2STR.cc
  6586. * src/A2STR.h
  6587. * src/ChunkedDecoder.cc
  6588. * src/ChunkedDecoder.h
  6589. * src/ChunkedEncoding.cc: Removed
  6590. * src/ChunkedEncoding.h: Removed
  6591. * src/DownloadCommand.cc
  6592. * src/DownloadCommand.h
  6593. * src/HttpDownloadCommand.cc
  6594. * src/HttpResponse.cc
  6595. * src/HttpResponse.h
  6596. * src/HttpResponseCommand.cc
  6597. * src/HttpSkipResponseCommand.cc
  6598. * src/HttpSkipResponseCommand.h
  6599. * src/Makefile.am
  6600. * src/TransferEncoding.h: Removed
  6601. * test/ChunkedDecoderTest.cc
  6602. * test/ChunkedEncodingTest.cc: Removed
  6603. * test/HttpResponseTest.cc
  6604. * test/Makefile.am
  6605. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. Use append instead of insert.
  6607. * src/GZipDecoder.cc
  6608. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6609. Updated doc
  6610. * src/Decoder.h
  6611. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Updated usage text for -s option.
  6613. * src/usage_text.h
  6614. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6615. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6616. * src/Request.cc
  6617. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6618. Cleaned up configure.ac.
  6619. * configure.ac
  6620. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6621. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6622. AC_ARG_ENABLE.
  6623. * configure.ac
  6624. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6626. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6627. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6628. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6629. fly and writes decoded data to a local disk.
  6630. * README
  6631. * README.html
  6632. * configure.ac
  6633. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6634. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6635. * m4/libz.m4
  6636. * src/Decoder.h
  6637. * src/DownloadCommand.cc
  6638. * src/DownloadCommand.h
  6639. * src/Exception.h
  6640. * src/GZipDecoder.cc
  6641. * src/GZipDecoder.h
  6642. * src/HttpHeader.cc
  6643. * src/HttpHeader.h
  6644. * src/HttpRequest.cc
  6645. * src/HttpRequest.h
  6646. * src/HttpResponse.cc
  6647. * src/HttpResponse.h
  6648. * src/HttpResponseCommand.cc
  6649. * src/Makefile.am
  6650. * test/GZipDecoderTest.cc
  6651. * test/HttpRequestTest.cc
  6652. * test/HttpResponseTest.cc
  6653. * test/Makefile.am
  6654. * test/Makefile.in
  6655. * test/gzip_decode_test.gz
  6656. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Clarified usage of -j option.
  6658. * src/usage_text.h
  6659. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Disabled getting size from the response of RETR.
  6661. If SIZE command failed, then disable resuming and segmented downloading.
  6662. * src/FtpConnection.cc
  6663. * src/FtpConnection.h
  6664. * src/FtpNegotiationCommand.cc
  6665. * src/FtpNegotiationCommand.h
  6666. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6667. Use digits to find first byte of file size, which makes the intention
  6668. of the code clearer.
  6669. * src/FtpConnection.cc
  6670. Don't call validateTotalLength() when size is 0.
  6671. * src/FtpNegotiationCommand.cc
  6672. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6673. Updated po files.
  6674. * po/aria2c.pot
  6675. * po/*.gmo
  6676. * po/*.po
  6677. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. Clarified usage text for --split option.
  6679. * src/usage_text.h
  6680. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6681. Bump up version number to 0.15.0dev. "dev" means "development"
  6682. version, which means I started the development of the next release!
  6683. * src/configure.ac
  6684. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. If FTP server returns negative response with REST raw command and
  6686. requested range is not 0, throw exception. If requested range is 0,
  6687. continue download a file from 0 byte.
  6688. * src/FtpNegotiationCommand.cc
  6689. * src/FtpNegotiationCommand.h
  6690. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6691. Supported FTP server which don't recognize SIZE raw command.
  6692. If SIZE raw command is failed, aria2 will try to get file size
  6693. from the response of RETR raw command. If both attempts are failed,
  6694. then resuming and segmented downloading are disabled.
  6695. * src/FtpConnection.cc
  6696. * src/FtpConnection.h
  6697. * src/FtpNegotiationCommand.cc
  6698. * src/FtpNegotiationCommand.h
  6699. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. * Release 0.14.0+1
  6701. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. Bump up version number to 0.14.0+1
  6703. * src/configure.ac
  6704. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Fixed the code that refers static member variable from non-static
  6706. context.
  6707. * src/DefaultPeerStorage.cc
  6708. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. * Release 0.14.0
  6710. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6711. Added build test script
  6712. * build_test.sh
  6713. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6714. Updated ja.po
  6715. * src/ja.po
  6716. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Bump up version number to 0.14.0
  6718. * src/configure.ac
  6719. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Updated ja.po and fr.po. Great thanks for french translators and
  6721. Sebastien WILLEMIJNS.
  6722. * po/fr.po
  6723. * po/ja.po
  6724. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Added configure option to enable/disable epoll support.
  6726. * configure.ac
  6727. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Updated man page.
  6729. * doc/aria2c.1.txt
  6730. * doc/aria2c.1
  6731. * doc/aria2c.1.html
  6732. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6733. Added missing default value '5' to the usage of --split option.
  6734. * src/HelpItemFactory.cc
  6735. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Filled up pieces based on the number of missing blocks, rather than
  6737. simplay the number of piece * block length.
  6738. * src/BtRequestFactory.h
  6739. * src/DefaultBtInteractive.cc
  6740. * src/DefaultBtInteractive.h
  6741. * src/DefaultBtRequestFactory.cc
  6742. * src/DefaultBtRequestFactory.h
  6743. * src/Piece.cc
  6744. * src/Piece.h
  6745. * test/BitfieldManTest.cc
  6746. * test/DefaultBtRequestFactoryTest.cc
  6747. * test/MockBtRequestFactory.h
  6748. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. Made _epEvents a member variable.
  6750. * src/DownloadEngine.cc
  6751. * src/DownloadEngine.h
  6752. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. Cancel download if http redirect is bounded more than 20 times.
  6754. * src/AbstractCommand.cc
  6755. * src/HttpSkipResponseCommand.cc
  6756. * src/Request.cc
  6757. * src/Request.h
  6758. * test/RequestTest.cc
  6759. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Fixed unhandled exception(removed keyword `new').
  6761. * src/SocketCore.cc (initEPOLL)
  6762. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Removed visit(const MetaEntry*)
  6764. * src/MetaEntryVisitor.h:
  6765. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6766. and made them virtual.
  6767. * src/BencodeVisitor.h
  6768. * src/BencodeVisitor.cc
  6769. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6770. Updated po files.
  6771. * po/aria2c.pot
  6772. * po/*.po
  6773. * po/*.gmo
  6774. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6776. the number of socket to watch out.
  6777. * src/PeerInteractionCommand.cc
  6778. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. When there is not enough space in disk when writing a chunk of data,
  6780. aria2 now prints the message to the console to warn user and aborts
  6781. its download. Not all downloads are canceled because some downloads
  6782. may use another disk or partition. BUG#1640332
  6783. * src/AbstractDiskWriter.cc
  6784. * src/PeerAbstractCommand.cc
  6785. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6786. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6787. setHaltRequested(true) to cancel download.
  6788. * src/PeerInteractionCommand.h
  6789. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6790. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6791. socket from int to sock_t as sockets are unsigned in Windows.
  6792. For AsyncNameResolver, DownloadEngine, I did additional modification
  6793. for the portion of the code changed according to epoll support.
  6794. I defined sock_t in a2netcompat.h to use sock_t without including
  6795. SocketCore.h.
  6796. * src/AsyncNameResolver.cc
  6797. * src/AsyncNameResolver.h
  6798. * src/DownloadEngine.cc
  6799. * src/DownloadEngine.h
  6800. * src/SocketCore.cc
  6801. * src/SocketCore.h
  6802. * src/a2netcompat.h
  6803. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6804. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6805. changes in the patch were applied.
  6806. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6807. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6808. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6809. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6810. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6811. a2io.h and common.h were modified.
  6812. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6813. MinGW.
  6814. * src/common.h: Changed off_t to 64 bit in MinGW.
  6815. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6816. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6817. only a2netcompat.h is modified.
  6818. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6819. directives.
  6820. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6822. only gai_strerror.h is modified.
  6823. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6824. winsock errors in MinGW.
  6825. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6826. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6827. follow sources are applied.
  6828. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6829. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6830. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6831. I included locale.h from Platform.cc.
  6832. * src/main.cc: Moved common setup/teardown code to Platform class.
  6833. * test/AllTest.cc: Use Platform class.
  6834. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6835. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6836. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6837. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6838. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6839. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6840. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6841. aria2-0.13.2+1-mingw-2.patch.
  6842. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6843. systems which don't have termious.h. I moved the directive inside of
  6844. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6845. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6846. anyway.
  6847. * src/asctime_r.h
  6848. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6849. I added 2nd argument to the prototype declaration.
  6850. * src/StringFormat.cc: Get rid of vasprintf.
  6851. * src/getaddrinfo.h: Fixed constants.
  6852. * configure.ac: Added the check for asctime_r function.
  6853. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6854. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6855. Added writable test for Socket when the sending message is in progress.
  6856. Usually the sending message is piece message. Without wriable check,
  6857. upload latency is dropped to more than 1sec.
  6858. * src/PeerInteractionCommand.cc
  6859. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Create only requested files and files which shares a piece with
  6861. requested file in multi-torrent downloads. Directory structures are
  6862. also created in the same rule.
  6863. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6864. DiskWriterEntry as in the previous implementation.
  6865. * src/MultiDiskWriter.cc
  6866. * src/MultiFileAllocationIterator.cc
  6867. * src/MultiFileAllocationIterator.h
  6868. * test/MultiFileAllocationIteratorTest.cc
  6869. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. Commented out -lprofiler
  6871. * src/Makefile.am
  6872. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Bump up version number to 0.14.0b.
  6874. * src/configure.ac
  6875. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Actively establish connection to peers in seeding, when peer cache
  6877. is not full and max upload speed limit is not reached.
  6878. * src/ActivePeerConnectionCommand.cc
  6879. * src/ActivePeerConnectionCommand.h
  6880. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6881. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6882. to make room more fleshy, recently found peers.
  6883. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6884. it.
  6885. * src/DefaultPeerStorage.cc
  6886. * test/DefaultPeerStorageTest.cc
  6887. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6888. Returns cached data only when the previous receiveHandshake() is called
  6889. with peek = true.
  6890. * src/PeerConnection.cc (receiveHandshake)
  6891. * src/PeerConnection.h (receiveHandshake)
  6892. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Changed default value of -s option from 1 to 5.
  6894. Also max value of -s option is changed from 5 to 16.
  6895. * src/HelpItemFactory.cc
  6896. * src/OptionHandlerFactory.cc
  6897. * src/option_processing.cc
  6898. * src/usage_text.h
  6899. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6900. Changed -s options behavior. Now it means the number of connections
  6901. made simultaneously in each http/ftp download.
  6902. If 1 URL is specified, the behavior is the same with old implementation.
  6903. If -s N is given and more than N URLs are specified, first N URLs are
  6904. used and remaining URLs are used for backup. If less than N URLs are
  6905. specified, some of URLs are used more than once so that totally N
  6906. connections are made simultaneously.
  6907. * src/main.cc
  6908. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6909. Included missing iosfwd or ostream header.
  6910. * src/RequestGroupMan.cc
  6911. * src/TaggedItem.cc
  6912. * src/TaggedItem.h
  6913. * src/Util.cc
  6914. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6915. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6916. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6917. * src/HttpConnection.cc: Included missing sstream.
  6918. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Added --bt-max-open-files option.
  6920. * src/DefaultPieceStorage.cc
  6921. * src/HelpItemFactory.cc
  6922. * src/MultiDiskAdaptor.cc
  6923. * src/MultiDiskAdaptor.h
  6924. * src/OptionHandlerFactory.cc
  6925. * src/option_processing.cc
  6926. * src/prefs.cc
  6927. * src/prefs.h
  6928. * src/usage_text.h
  6929. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6930. Fixed the bug that aria2 aborts when a path to a directory is given
  6931. in command-line.
  6932. * src/ProtocolDetector.cc
  6933. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6934. Limited the number files opened in each BitTorrent download. The default
  6935. value is 100. The option to change this value will be added.
  6936. * src/MultiDiskAdaptor.cc
  6937. * src/MultiDiskAdaptor.h
  6938. * src/MultiFileAllocationIterator.cc
  6939. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Fixed the bug that HTTP downloads don't start with old libraries.
  6941. * src/HttpHeaderProcessor.cc
  6942. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6943. Use empty() instead of size() > 0.
  6944. * src/HttpConnection.cc
  6945. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6946. Drop connection if the incoming peer ID is the same with localhost's
  6947. one. The previous implementation drops connection when incoming peer's
  6948. IP address is the same with localhost's one.
  6949. * src/PeerListenCommand.cc
  6950. * src/DefaultBtInteractive.cc
  6951. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Returns cached data without checking whether socket is readable
  6953. if the cache is available.
  6954. * src/PeerConnection.cc (receiveHandshake)
  6955. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Included stdint.h
  6957. * src/common.h
  6958. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Removed duplicate HAVE_GETTIMEOFDAY
  6960. * src/Makefile.am
  6961. * src/Makefile.in
  6962. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. Use interval as a minInterval when minInterval is not supplied.
  6964. * src/DefaultBtAnnounce.cc
  6965. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6966. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6967. attempt is failed, then 2nd attempt get kicked out more quickly.
  6968. And it is now static const member of DefaultBtAnnounce.
  6969. * src/DefaultBtAnnounce.h
  6970. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6972. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6973. * src/ActivePeerConnectionCommand.cc
  6974. * src/BtConstants.h
  6975. * src/BtRuntime.h
  6976. * src/DHTGetPeersCommand.cc
  6977. * src/DefaultBtAnnounce.cc
  6978. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6979. BtRuntime::MAX_PEERS.
  6980. * src/DefaultPeerStorage.h
  6981. * src/InitiatorMSEHandshakeCommand.cc
  6982. * src/PeerInitiateConnectionCommand.cc
  6983. * src/PeerInteractionCommand.cc
  6984. * src/PeerReceiveHandshakeCommand.cc
  6985. * src/TrackerWatcherCommand.cc
  6986. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6987. Always Connect to _numNewConnection
  6988. * src/ActivePeerConnectionCommand.cc
  6989. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6990. Made `begin' unsigned int.
  6991. * src/GrowSegment.h
  6992. * src/Piece.cc
  6993. * src/Piece.h
  6994. * src/PiecedSegment.cc
  6995. * src/PiecedSegment.h
  6996. * src/Segment.h
  6997. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Calculate piece hash when data is arrived if the data is arrived in
  6999. order. This removes additional read operation for hash calculation.
  7000. If the data is arrived in out of order, the hash is calucated when the
  7001. piece is completed. This is the same behavior as the old implementation.
  7002. * src/BtPieceMessage.cc
  7003. * src/DefaultBtProgressInfoFile.cc
  7004. * src/DefaultPieceStorage.cc
  7005. * src/DownloadCommand.cc
  7006. * src/DownloadCommand.h
  7007. * src/DownloadEngine.cc
  7008. * src/GrowSegment.cc
  7009. * src/GrowSegment.h
  7010. * src/Piece.cc
  7011. * src/Piece.h
  7012. * src/PiecedSegment.cc
  7013. * src/PiecedSegment.h
  7014. * src/Segment.h
  7015. * test/PieceTest.cc
  7016. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7017. Try to keep the ordering of outgoing piece message.
  7018. * src/DefaultBtMessageDispatcher.cc
  7019. (DefaultBtMessageDispatcher::sendMessages)
  7020. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Fixed busy loop when error/hup epoll events occur.
  7022. * src/AbstractCommand.cc
  7023. * src/PeerAbstractCommand.cc
  7024. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. Added --bt-request-peer-speed-limit option, which was a constant
  7026. SLOW_SPEED_THRESHOLD.
  7027. * src/ActivePeerConnectionCommand.cc
  7028. * src/ActivePeerConnectionCommand.h
  7029. * src/BtConstants.h
  7030. * src/HelpItemFactory.cc
  7031. * src/OptionHandlerFactory.cc
  7032. * src/PeerReceiveHandshakeCommand.cc
  7033. * src/option_processing.cc
  7034. * src/prefs.cc
  7035. * src/prefs.h
  7036. * src/usage_text.h
  7037. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7038. Removed repeated call of getTopDirPath(). Instead, call it once and
  7039. cache the result.
  7040. * src/MultiDiskAdaptor.cc
  7041. * src/MultiDiskAdaptor.h
  7042. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7043. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7044. Fixed compile error on debian etch.
  7045. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7046. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7047. it is undefined.
  7048. * src/Util.cc (ULLONG_MAX)
  7049. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. Added epoll support. Use epoll if it is available. If not, use select.
  7051. When async dns is enabled in compile time, epoll support is enabled
  7052. only when aria2 is built with c-ares. This condition statement is
  7053. defined in a2io.h.
  7054. Currently aria2 supports both c-ares and ares, but ares is maintained
  7055. for quite a while and debian already has c-ares package, ares support
  7056. will be dropped in the future version.
  7057. * configure.ac
  7058. * src/AbstractCommand.cc
  7059. * src/AsyncNameResolver.cc
  7060. * src/AsyncNameResolver.h
  7061. * src/Command.cc
  7062. * src/Command.h
  7063. * src/DownloadEngine.cc
  7064. * src/DownloadEngine.h
  7065. * src/PeerAbstractCommand.cc
  7066. * src/SocketCore.cc
  7067. * src/SocketCore.h
  7068. * src/a2io.h
  7069. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7071. directive.
  7072. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7073. Do not do write operation to /dev/null file.
  7074. * src/LogFactory.cc
  7075. * src/SimpleLogger.cc
  7076. Replaced vasprintf with vsnprintf
  7077. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7078. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. * src/BtRequestMessage.cc
  7080. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7081. for segmentation fault caused by previous commit.
  7082. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. Reduced the usage of gettimeofday().
  7084. * src/DefaultBtMessageDispatcher.cc
  7085. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7086. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7087. * src/RequestSlot.cc
  7088. * src/RequestSlot.h
  7089. (RequestSlot::isTimeout)
  7090. Made RequestSlot have a reference to Piece object to avoid find
  7091. Piece repeatedly.
  7092. * src/DefaultBtMessageDispatcher.cc
  7093. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7094. * src/RequestSlot.cc
  7095. * src/RequestSlot.h
  7096. (RequestSlot::getPiece)
  7097. * test/DefaultBtMessageDispatcherTest.cc
  7098. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. * src/TimeA2.cc
  7100. * src/TimeA2.h
  7101. (Time::difference): New function.
  7102. (Time::elapsed): Done optimization.
  7103. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7104. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7105. directive.
  7106. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7107. * src/option_processing.cc: Added missing `defined' keyword to #if
  7108. directive.
  7109. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. Bump up version number to 0.13.2+1
  7111. * src/configure.ac
  7112. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Refactored broken outstanding piece handling.
  7114. * src/DefaultPieceStorage.cc
  7115. * src/DefaultPieceStorage.h
  7116. * src/Piece.cc
  7117. * src/Piece.h
  7118. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7120. name collision of static variable and predefined macro.
  7121. * src/BtContext.cc
  7122. * src/BtContext.h
  7123. * src/CookieBoxFactory.cc
  7124. * src/CookieBoxFactory.h
  7125. * src/CookieParser.cc
  7126. * src/CookieParser.h
  7127. * src/DefaultBtContext.cc
  7128. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. * src/RequestGroup.cc
  7130. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7131. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. * Release 0.13.2
  7133. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7134. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7135. * po/fr.po
  7136. * po/ja.po
  7137. * po/aria2c.pot
  7138. * po/*.po
  7139. * po/*.gmo
  7140. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Bump up version number to 0.13.2
  7142. * src/configure.ac
  7143. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7144. Refactord.
  7145. * src/RequestGroupMan.cc
  7146. (removeStoppedGroup)
  7147. (fillRequestGroupFromReserver)
  7148. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Fixed compile error on Ubuntu.
  7150. * src/BtPieceMessage.cc
  7151. * src/MessageDigestHelper.cc
  7152. * src/Util.cc
  7153. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Fixed compile error when configured with --disable-bittorrent
  7155. * test/DownloadHandlerFactoryTest.cc
  7156. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Done make update-po
  7158. * po/aria2c.pot
  7159. * po/*.po
  7160. * po/*.gmo
  7161. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Bump up version number to 0.13.2rc.
  7163. * src/configure.ac
  7164. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. Made option name bold. Updated SYNOPSIS to make it more readable.
  7166. * doc/aria2c.1.txt
  7167. * doc/aria2c.1
  7168. * doc/aria2c.1.html
  7169. * src/version_usage.cc
  7170. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7171. Refactored. Use std::string instead of size and char*.
  7172. * Data.cc
  7173. * Data.h
  7174. * test/Data.cc
  7175. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Added trimSelf(). Rewritten trim() to use trimSelf().
  7177. * Util.cc
  7178. * Util.h
  7179. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7181. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7182. Fixed compile error when configured with --disable-metalink.
  7183. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7184. * test/FeatureConfigTest.cc
  7185. * test/DownloadHandlerFactoryTest.cc
  7186. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7187. Fixed compile error when configured with --without-gnutls
  7188. --without-openssl
  7189. * src/main.cc
  7190. * test/DefaultBtProgressInfoFileTest.cc
  7191. * test/SegmentManTest.cc
  7192. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Fixed compile error with OpenSSL.
  7194. * src/IteratableChunkChecksumValidator.cc
  7195. * src/LibsslDHKeyExchange.h
  7196. * src/MessageDigestHelper.cc
  7197. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Revert the default value of --max-concurrent-downloads to 5.
  7199. Revert the default value of --metalink-servers to 5.
  7200. Man pages was also updated.
  7201. * src/option_processing.cc
  7202. * doc/aria2c.1.txt
  7203. * doc/aria2c.1.html
  7204. * doc/aria2c.1
  7205. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. Returns const reference:
  7207. DownloadContext::getPieceHash, DownloadContext::getName,
  7208. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7209. BtContext::getInfoHashAsString,
  7210. * src/BtContext.h
  7211. * src/DefaultBtContext.cc
  7212. * src/DefaultBtContext.h
  7213. * src/DownloadContext.h
  7214. * src/SingleFileDownloadContext.h
  7215. * test/MockBtContext.h
  7216. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7217. * src/RequestGroup.h (getDir): Removed.
  7218. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7219. Returns const reference. The internal urlencode function was optimized
  7220. a little bit.
  7221. * src/Request.cc
  7222. * src/Request.h
  7223. * src/HttpRequest.cc
  7224. * src/HttpRequest.h
  7225. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Defined option name and possible values as std::string to reduce
  7227. temporary string object creation in runtime.
  7228. * src/HelpItemFactory.cc
  7229. * src/LogFactory.cc
  7230. * src/Option.cc
  7231. * src/OptionHandlerFactory.cc
  7232. * src/option_processing.cc
  7233. * src/prefs.cc
  7234. * src/prefs.h
  7235. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7236. Return const reference.
  7237. * src/DownloadHandlerConstants.cc
  7238. * src/DownloadHandlerConstants.h
  7239. (getMetalinkExtensions)
  7240. (getMetalinkContentTypes)
  7241. (getBtExtensions)
  7242. (getBtContentTypes)
  7243. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7244. * src/HttpHeader.cc (get): Rewritten.
  7245. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Make HttpHeader::getFirst(...) return const reference.
  7247. * src/HttpHeader.cc
  7248. * src/HttpHeader.h
  7249. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7250. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7251. it with V_TRUE.
  7252. * src/DefaultPieceStorage.cc
  7253. * src/DownloadCommand.cc
  7254. * src/FtpNegotiationCommand.cc
  7255. * src/HttpRequest.cc
  7256. * src/InitiateConnectionCommand.cc
  7257. * src/RequestGroup.cc
  7258. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Made Option::get(...) return const reference of std::string.
  7260. * src/Option.cc
  7261. * src/Option.h
  7262. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7263. Replaced std:copy with insert.
  7264. * src/DefaultBtMessageDispatcher.cc
  7265. * src/DefaultPieceStorage.cc
  7266. * src/DownloadEngineFactory.cc
  7267. * src/RequestGroup.cc
  7268. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Included SocketCore.h to fix compiler warning.
  7270. * src/InitiateConnectionCommand.cc
  7271. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Put piece selection strategy algorithm to RarestPieceSelector class,
  7273. Added a switch to choose whether randomized selection so that unit
  7274. tests emit same results in, possibly, win32.
  7275. * src/DefaultPieceStorage.cc
  7276. * src/DefaultPieceStorage.h
  7277. * src/RarestPieceSelector.cc
  7278. * src/RarestPieceSelector.h
  7279. * test/DefaultPieceStorageTest.cc
  7280. * test/RarestPieceSelectorTest.cc
  7281. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. Don't pool connection if HTTP proxy is enabled.
  7283. * src/FtpFinishDownloadCommand.cc
  7284. * src/FtpNegotiationCommand.cc
  7285. * src/HttpSkipResponseCommand.cc
  7286. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7288. * src/AbstractCommand.cc
  7289. * src/AbstractCommand.h
  7290. * src/ActivePeerConnectionCommand.cc
  7291. * src/FtpInitiateConnectionCommand.cc
  7292. * src/HttpInitiateConnectionCommand.cc
  7293. * src/InitiateConnectionCommandFactory.cc
  7294. * src/PeerAbstractCommand.cc
  7295. * src/PeerAbstractCommand.h
  7296. * src/PeerInitiateConnectionCommand.cc
  7297. * src/TrackerWatcherCommand.cc
  7298. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7299. Sort RequestSlot in ascending order and manipulate them using
  7300. lower_bound.
  7301. * src/DefaultBtMessageDispatcher.cc
  7302. * src/DefaultBtMessageDispatcher.h
  7303. (getMessageQueue): Added const qualifier.
  7304. (getRequestSlots): Added const qualifier.
  7305. (sendMessages): Use empty() instead of size().
  7306. (doCancelSendingPieceAction): Use HandleEvent object.
  7307. (doAbortOutstandingRequestAction): Rewritten.
  7308. (doChokedAction): Rewritten.
  7309. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7310. (isOutstandingRequest): Rewritten.
  7311. (getOutstandingRequest): Rewritten.
  7312. (removeOutstandingRequest): Rewritten.
  7313. (addOutstandingRequest): Rewritten.
  7314. * src/RequestSlot.cc
  7315. * src/RequestSlot.h
  7316. (operator=): Rewritten.
  7317. (operator!=): New function.
  7318. (operator<): New function.
  7319. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. * src/DefaultBtRequestFactory.cc
  7321. (doChokedAction): Rewritten.
  7322. (removeCompletedPiece): Rewritten.
  7323. (removeTargetPiece): Rewritten.
  7324. (createRequestMessages): Added the debug log.
  7325. (createRequestMessagesOnEndGame: Added the debug log.
  7326. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7327. Added the debug log message.
  7328. * src/BtPieceMessage.cc (doReceivedAction)
  7329. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7330. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7331. used lower_bound to process them rather than linear search.
  7332. * src/DHTPeerAnnounceStorage.cc
  7333. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7335. peer has at least one completed piece.
  7336. * src/Peer.cc
  7337. * src/Peer.h
  7338. * src/PeerInteractionCommand.cc
  7339. * src/PeerSessionResource.cc
  7340. * src/PeerSessionResource.h
  7341. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Removed unnecessary sorting
  7343. * src/DefaultPieceStorage (DefaultPieceStorage)
  7344. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Rewritten the portion of the code that mangaes allowed fast indexes.
  7346. * src/PeerSessionResource.cc
  7347. * src/PeerSessionResource.h
  7348. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. Removed the invalid string including '\r' from ru.po and
  7350. did make update-po.
  7351. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7352. Added --log-level and --summary-interval to man page.
  7353. * doc/aria2c.1.txt
  7354. * doc/aria2c.1.html
  7355. * doc/aria2c.1
  7356. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Added --log-level option to specify log level. Log messages under
  7358. the specified level are not output. Default value is `debug'.
  7359. * src/HelpItemFactory.cc
  7360. * src/LogFactory.cc
  7361. * src/LogFactory.h
  7362. * src/Logger.h
  7363. * src/OptionHandlerFactory.cc
  7364. * src/SimpleLogger.cc
  7365. * src/SimpleLogger.h
  7366. * src/main.cc
  7367. * src/option_processing.cc
  7368. * src/prefs.h
  7369. * src/usage_text.h
  7370. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Print download progress summary of all parallel downloads in specified
  7372. interval, default 60 secs. While aria2 could download several files
  7373. in parallel (see -j option), it displayed just first download progress,
  7374. and the other downloads are hidden from the users. This new feature
  7375. prints all downloads currently in-progress to the console so that you
  7376. can check the status of all downloads. The interval can be adjusted
  7377. by --summary-interval option.
  7378. The progress readout is now cut so that all fits in the one line of
  7379. console.
  7380. * src/ConsoleStatCalc.cc
  7381. * src/ConsoleStatCalc.h
  7382. * src/HelpItemFactory.cc
  7383. * src/OptionHandlerFactory.cc
  7384. * src/RequestGroupMan.cc
  7385. * src/RequestGroupMan.h
  7386. * src/main.cc
  7387. * src/option_processing.cc
  7388. * src/prefs.h
  7389. * src/usage_text.h
  7390. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7392. * src/DownloadEngine.cc (DownloadEngine)
  7393. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7395. defined.
  7396. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7397. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Use erase+lower_bound+insert instead of sort.
  7399. * src/DefaultPieceStorage.cc (addPieceStats)
  7400. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7401. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7402. * src/A2STR.cc
  7403. * src/A2STR.h
  7404. * src/OptionParser.cc (parse)
  7405. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Defined fake filename `[tracker.announce]' as static const std::string.
  7407. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7408. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Defined default filename `index.html' as static const std::string
  7410. * src/SingleFileDownloadContext.cc
  7411. * src/SingleFileDownloadContext.h
  7412. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. Defined "[MEMORY]" as static const std::string.
  7414. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7415. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Defined control file's version number as static const std::string.
  7417. * src/DefaultBtProgressInfoFile.cc
  7418. * src/DefaultBtProgressInfoFile.h
  7419. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7420. Use Request::METHOD_GET
  7421. * src/RequestGroup.cc (createNextCommandWithAdj)
  7422. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. Defined "OK", "ERR", "INPR" as static const std::string
  7424. * src/RequestGroupMan.cc (showDownloadResults)
  7425. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7426. Defined default client used in extended handshake as static const
  7427. std::string
  7428. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7429. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7431. * src/HttpConnection.cc (eraseConfidentialInfo)
  7432. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Defined default ftp user and password as static const std::string
  7434. * src/AuthConfigFactory.cc
  7435. * src/AuthConfigFactory.h
  7436. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Defined strings used in netrc as static const std::string
  7438. * src/Netrc.cc
  7439. * src/Netrc.h
  7440. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Defined HTTP status as static const std::string
  7442. * src/AbstractProxyResponseCommand.cc
  7443. * src/HttpHeader.cc
  7444. * src/HttpHeader.h
  7445. * src/HttpResponse.cc
  7446. * src/HttpResponseCommand.cc
  7447. * src/HttpSkipResponseCommand.cc
  7448. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7449. Defined "\r\n", "A", "I" as static const std::string
  7450. * src/A2STR.cc
  7451. * src/A2STR.h
  7452. * src/FtpConnection.cc
  7453. * src/FtpConnection.h
  7454. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Added COLON_C(".") and used it in Request::parseUrl()
  7456. * src/A2STR.cc
  7457. * src/A2STR.h
  7458. * src/Request.cc (parseUrl)
  7459. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. Changed the type of padName from `const std::string&' to `const char*'.
  7461. * src/MSEHandshake.cc (verifyPadLength)
  7462. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Defined "sha1" as static const std::string.
  7464. * src/MetalinkParserController.cc
  7465. * src/MetalinkParserController.h
  7466. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Defined message digest algorithm name as static const std::string
  7468. * src/DHTTokenTracker.cc
  7469. * src/DHTUtil.cc
  7470. * src/DefaultBtContext.cc
  7471. * src/MSEHandshake.cc
  7472. * src/MessageDigestHelper.cc
  7473. * src/Peer.cc
  7474. * src/messageDigest.cc
  7475. * src/messageDigest.h
  7476. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7477. Made string literals used in SAX parser static const std::string.
  7478. * src/FileMetalinkParserState.cc
  7479. * src/FileMetalinkParserState.h
  7480. * src/FilesMetalinkParserState.cc
  7481. * src/FilesMetalinkParserState.h
  7482. * src/InitialMetalinkParserState.cc
  7483. * src/InitialMetalinkParserState.h
  7484. * src/MetalinkMetalinkParserState.cc
  7485. * src/MetalinkMetalinkParserState.h
  7486. * src/PiecesMetalinkParserState.cc
  7487. * src/PiecesMetalinkParserState.h
  7488. * src/ResourcesMetalinkParserState.cc
  7489. * src/ResourcesMetalinkParserState.h
  7490. * src/VerificationMetalinkParserState.cc
  7491. * src/VerificationMetalinkParserState.h
  7492. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7494. * src/A2STR.cc
  7495. * src/A2STR.h
  7496. * src/File.cc
  7497. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. Defined static const std::string IP("ip"), PORT("port") and use them
  7499. instead of string literals.
  7500. * src/DefaultPeerListProcessor.cc
  7501. * src/DefaultPeerListProcessor.h
  7502. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. Made string literals for torrent file processing static const
  7504. std::string.
  7505. * src/BtContext.cc
  7506. * src/BtContext.h
  7507. * src/DefaultBtContext.cc
  7508. * src/DefaultBtContext.h
  7509. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Made string literal for tracker response static const std::string
  7511. * src/BtAnnounce.cc
  7512. * src/BtAnnounce.h
  7513. * src/DefaultBtAnnounce.cc
  7514. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7515. Use DHTMessage::T instead of "t".
  7516. * src/DHTMessageTracker.cc (messageArrived)
  7517. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7518. Made keyName static const. Made trimmed charset static const
  7519. std::string.
  7520. * src/Util.cc (getContentDispositionFilename)
  7521. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7522. Made USER_AGENT const. Made "/" static const std::string.
  7523. * src/A2STR.cc
  7524. * src/A2STR.h
  7525. * src/HttpRequest.cc
  7526. * src/HttpRequest.h
  7527. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Made string listeral to static const std::string:
  7529. "Content-Range", "Content-Length"
  7530. * src/HttpHeader.cc
  7531. * src/HttpHeader.h
  7532. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Made string listeral to static const std::string.
  7534. * src/HttpConnection.cc
  7535. * src/HttpHeader.cc
  7536. * src/HttpHeader.h
  7537. * src/HttpResponse.cc
  7538. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7539. Made string listeral to static const std::string.
  7540. * src/A2STR.cc
  7541. * src/A2STR.h
  7542. * src/SimpleLogger.cc
  7543. * src/SimpleLogger.h
  7544. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7545. Made string literal to static const std::string.
  7546. Rewritten CookieParser::setField.
  7547. * src/A2STR.cc
  7548. * src/A2STR.h
  7549. * src/CookieBoxFactory.cc
  7550. * src/CookieBoxFactory.h
  7551. * src/CookieParser.cc
  7552. * src/CookieParser.h
  7553. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7554. Made string literal to static const std::string
  7555. * src/DHTAbstractMessage.cc
  7556. * src/DHTAnnouncePeerMessage.cc
  7557. * src/DHTAnnouncePeerMessage.h
  7558. * src/DHTAnnouncePeerReplyMessage.cc
  7559. * src/DHTAnnouncePeerReplyMessage.h
  7560. * src/DHTFindNodeMessage.cc
  7561. * src/DHTFindNodeMessage.h
  7562. * src/DHTFindNodeReplyMessage.cc
  7563. * src/DHTFindNodeReplyMessage.h
  7564. * src/DHTGetPeersMessage.cc
  7565. * src/DHTGetPeersMessage.h
  7566. * src/DHTGetPeersReplyMessage.cc
  7567. * src/DHTGetPeersReplyMessage.h
  7568. * src/DHTMessage.cc
  7569. * src/DHTMessage.h
  7570. * src/DHTMessageFactoryImpl.cc
  7571. * src/DHTMessageReceiver.cc
  7572. * src/DHTPingMessage.cc
  7573. * src/DHTPingMessage.h
  7574. * src/DHTPingReplyMessage.cc
  7575. * src/DHTPingReplyMessage.h
  7576. * src/DHTQueryMessage.cc
  7577. * src/DHTQueryMessage.h
  7578. * src/DHTResponseMessage.cc
  7579. * src/DHTResponseMessage.h
  7580. * src/DHTUnknownMessage.cc
  7581. * src/DHTUnknownMessage.h
  7582. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7583. Made string literal to static const std::string
  7584. * src/BtChokeMessage.cc (toString)
  7585. * src/BtHaveAllMessage.cc (toString)
  7586. * src/BtHaveNoneMessage.cc (toString)
  7587. * src/BtInterestedMessage.cc (toString)
  7588. * src/BtNotInterestedMessage.cc (toString)
  7589. * src/BtUnchokeMessage.cc (toString)
  7590. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7591. Replaced "" with static const variable A2STR::NIL.
  7592. Replaced string comparison against "" with std::string::empty().
  7593. Added PROTO_* to Request class and use them as a protocol string
  7594. constant.
  7595. Made "started", "stopped", "completed" static const variable in
  7596. AnnounceList class.
  7597. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Updated translations. Great thanks to translators.
  7599. * po/ca.po
  7600. * po/de.po
  7601. * po/fr.po
  7602. * po/it.po
  7603. * po/ja.po
  7604. * po/ru.po
  7605. * po/zh_CN.po
  7606. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Updated man page; categorized options and fixed typo.
  7608. * doc/aria2c.1.txt
  7609. * doc/aria2c.1.html
  7610. * doc/aria2c.1
  7611. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Removed const ref
  7613. * src/MetalinkEntry.cc (AddProtocolPreference)
  7614. * src/RequestGroup.cc (FindServerHostByHostname)
  7615. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. Rewritten Accept-Features handling.
  7617. * src/HttpRequestCommand.cc (createHttpRequest)
  7618. * src/a2functional.h
  7619. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7620. Changed method signature:
  7621. DHTAbstractNodeLookupTask::toEntries
  7622. * src/DHTAbstractNodeLookupTask.cc
  7623. * src/DHTAbstractNodeLookupTask.h
  7624. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Changed method signature:
  7626. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7627. * src/BtContext.h
  7628. * src/DefaultBtContext.cc
  7629. * src/DefaultBtContext.h
  7630. * src/DefaultBtInteractive.cc
  7631. * test/DefaultBtContextTest.cc
  7632. * test/MockBtContext.h
  7633. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7634. Changed method signature:
  7635. MultiFileAllocationIterator::makeDiskWriterEntries
  7636. * src/MultiFileAllocationIterator.cc
  7637. * src/MultiFileAllocationIterator.h
  7638. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. Changed method sinature:
  7640. MetalinkEntry::toFileEntry,
  7641. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7642. Metalinker::queryEntry
  7643. * src/Metalink2RequestGroup.cc
  7644. * src/MetalinkEntry.cc
  7645. * src/MetalinkEntry.h
  7646. * src/MetalinkHelper.cc
  7647. * src/MetalinkHelper.h
  7648. * src/Metalinker.cc
  7649. * src/Metalinker.h
  7650. * src/main.cc
  7651. * test/MetalinkHelperTest.cc
  7652. * test/MetalinkerTest.cc
  7653. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. Changed method sinature:
  7655. RequestGroup::getURIs
  7656. * src/RequestGroup.cc
  7657. * src/RequestGroup.h
  7658. * test/Metalink2RequestGroupTest.cc
  7659. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Changed method signature:
  7661. PeerListProcessor::extractPeer
  7662. * src/CompactPeerListProcessor.cc
  7663. * src/CompactPeerListProcessor.h
  7664. * src/DefaultBtAnnounce.cc
  7665. * src/DefaultPeerListProcessor.cc
  7666. * src/DefaultPeerListProcessor.h
  7667. * src/DelegatingPeerListProcessor.cc
  7668. * src/DelegatingPeerListProcessor.h
  7669. * src/PeerListProcessor.h
  7670. * src/UTPexExtensionMessage.cc
  7671. * test/DefaultPeerListProcessorTest.cc
  7672. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7673. Changed method signature:
  7674. BtRequestFactory::createRequestMessages,
  7675. BtRequestFactory::createRequestMessagesOnEndGame
  7676. * src/BtRequestFactory.h
  7677. * src/DefaultBtInteractive.cc
  7678. * src/DefaultBtRequestFactory.cc
  7679. * src/DefaultBtRequestFactory.h
  7680. * test/DefaultBtRequestFactoryTest.cc
  7681. * test/MockBtRequestFactory.h
  7682. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7683. Changed method signature:
  7684. PieceStorage::getInFlightPieces
  7685. * src/DefaultBtProgressInfoFile.cc
  7686. * src/DefaultPieceStorage.cc
  7687. * src/DefaultPieceStorage.h
  7688. * src/PieceStorage.h
  7689. * src/UnknownLengthPieceStorage.cc
  7690. * src/UnknownLengthPieceStorage.h
  7691. * test/DefaultBtProgressInfoFileTest.cc
  7692. * test/MockPieceStorage.h
  7693. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Changed method signature:
  7695. PostDownloadHandler::getNextRequestGroups
  7696. Metalink2RequestGroup::generate
  7697. RequestGroup::postDownloadProcessing
  7698. * src/BtPostDownloadHandler.cc
  7699. * src/BtPostDownloadHandler.h
  7700. * src/Metalink2RequestGroup.cc
  7701. * src/Metalink2RequestGroup.h
  7702. * src/MetalinkPostDownloadHandler.cc
  7703. * src/MetalinkPostDownloadHandler.h
  7704. * src/PostDownloadHandler.h
  7705. * src/RequestGroup.cc
  7706. * src/RequestGroup.h
  7707. * src/RequestGroupMan.cc
  7708. * src/main.cc
  7709. * test/BtPostDownloadHandlerTest.cc
  7710. * test/Metalink2RequestGroupTest.cc
  7711. * test/MetalinkPostDownloadHandlerTest.cc
  7712. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Rewritten AccRequestGroup
  7714. * src/main.cc
  7715. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Rewritten.
  7717. * src/TaggedItem.cc (toTagString)
  7718. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. Rewritten Accept-Features handling.
  7720. * src/HttpRequestCommand.cc (createHttpRequest)
  7721. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Rewritten accept types handling.
  7723. * HttpRequest.cc (createRequest)
  7724. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. Rewritten
  7726. * src/FeatureConfig.cc (featureSummary)
  7727. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Changed method signature:
  7729. PeerStorage::getActivePeers
  7730. * src/DHTPeerAnnounceEntry.cc
  7731. * src/DefaultPeerStorage.cc
  7732. * src/DefaultPeerStorage.h
  7733. * src/PeerStorage.h
  7734. * test/DefaultPeerStorageTest.cc
  7735. * test/MockPeerStorage.h
  7736. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Changed method signature:
  7738. DHTPeerAnnounceStorage::getPeers,
  7739. DHTPeerAnnounceEntry::getPeers
  7740. * src/DHTGetPeersMessage.cc
  7741. * src/DHTPeerAnnounceEntry.cc
  7742. * src/DHTPeerAnnounceEntry.h
  7743. * src/DHTPeerAnnounceStorage.cc
  7744. * src/DHTPeerAnnounceStorage.h
  7745. * test/DHTAnnouncePeerMessageTest.cc
  7746. * test/DHTPeerAnnounceEntryTest.cc
  7747. * test/DHTPeerAnnounceStorageTest.cc
  7748. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7749. Changed method signature:
  7750. NameResolver::resolve
  7751. * src/DHTEntryPointNameResolveCommand.cc
  7752. * src/InitiateConnectionCommand.cc
  7753. * src/NameResolver.cc
  7754. * src/NameResolver.h
  7755. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7756. Changed method signature:
  7757. PieceStorage::getAdvertisedPieceIndexes
  7758. * src/DefaultBtInteractive.cc
  7759. * src/DefaultPieceStorage.cc
  7760. * src/DefaultPieceStorage.h
  7761. * src/PieceStorage.h
  7762. * src/UnknownLengthPieceStorage.h
  7763. * test/MockPieceStorage.h
  7764. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7765. Changed method signature:
  7766. SegmentMan::getInFlightSegment
  7767. * src/AbstractCommand.cc
  7768. * src/SegmentMan.cc
  7769. * src/SegmentMan.h
  7770. * test/SegmentManTest.cc
  7771. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Changed method signature:
  7773. DHTAbstractNodeLookupTask::getNodesFromMessage
  7774. * src/DHTAbstractNodeLookupTask.cc
  7775. * src/DHTAbstractNodeLookupTask.h
  7776. * src/DHTNodeLookupTask.cc
  7777. * src/DHTNodeLookupTask.h
  7778. * src/DHTPeerLookupTask.cc
  7779. * src/DHTPeerLookupTask.h
  7780. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7782. * src/AbstractCommand.cc
  7783. * src/BtCheckIntegrityEntry.cc
  7784. * src/BtCheckIntegrityEntry.h
  7785. * src/BtFileAllocationEntry.cc
  7786. * src/BtFileAllocationEntry.h
  7787. * src/BtSetup.cc
  7788. * src/BtSetup.h
  7789. * src/CheckIntegrityCommand.cc
  7790. * src/CheckIntegrityEntry.h
  7791. * src/ChecksumCheckIntegrityEntry.cc
  7792. * src/ChecksumCheckIntegrityEntry.h
  7793. * src/DHTSetup.cc
  7794. * src/DHTSetup.h
  7795. * src/DownloadEngine.cc
  7796. * src/FileAllocationCommand.cc
  7797. * src/FileAllocationEntry.h
  7798. * src/RequestGroup.cc
  7799. * src/RequestGroup.h
  7800. * src/RequestGroupMan.cc
  7801. * src/RequestGroupMan.h
  7802. * src/StreamCheckIntegrityEntry.cc
  7803. * src/StreamCheckIntegrityEntry.h
  7804. * src/StreamFileAllocationEntry.cc
  7805. * src/StreamFileAllocationEntry.h
  7806. * src/TrackerWatcherCommand.cc
  7807. * src/a2functional.h
  7808. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. Changed method signature:
  7810. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7811. DHTBucket::getGoodNodes,
  7812. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7813. * src/BNode.cc
  7814. * src/BNode.h
  7815. * src/DHTAbstractNodeLookupTask.cc
  7816. * src/DHTAutoSaveCommand.cc
  7817. * src/DHTBucket.cc
  7818. * src/DHTBucket.h
  7819. * src/DHTBucketRefreshTask.cc
  7820. * src/DHTFindNodeMessage.cc
  7821. * src/DHTGetPeersMessage.cc
  7822. * src/DHTRoutingTable.cc
  7823. * src/DHTRoutingTable.h
  7824. * test/BNodeTest.cc
  7825. * test/DHTBucketTest.cc
  7826. * test/DHTRoutingTableTest.cc
  7827. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. In piece selection functions, Pass std::deque<...> by reference rather
  7829. than returning it.
  7830. * src/BitfieldMan.cc
  7831. * src/BitfieldMan.h
  7832. * src/DefaultBtRequestFactory.cc
  7833. * src/DefaultPieceStorage.cc
  7834. * src/Piece.cc
  7835. * src/Piece.h
  7836. * test/BitfieldManTest.cc
  7837. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7838. Implemented rarest piece first piece selection strategy.
  7839. * src/AbstractBtMessage.cc
  7840. * src/AbstractBtMessage.h
  7841. * src/BitfieldMan.cc
  7842. * src/BitfieldMan.h
  7843. * src/BtBitfieldMessage.cc
  7844. * src/BtHaveAllMessage.cc
  7845. * src/BtHaveMessage.cc
  7846. * src/DefaultPieceStorage.cc
  7847. * src/DefaultPieceStorage.h
  7848. * src/PeerInteractionCommand.cc
  7849. * src/PieceStorage.h
  7850. * src/UnknownLengthPieceStorage.h
  7851. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Rewritten readData and writeData.
  7853. * src/MultiDiskAdaptor.cc
  7854. * src/MultiDiskAdaptor.h
  7855. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Move \n out of the message "Usage: ...".
  7857. * src/version_usage.cc
  7858. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Bump up version number to 0.13.2b.
  7860. * configure.ac
  7861. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. Added const qualifier to argument Exception& e.
  7863. * src/Logger.h
  7864. * src/SimpleLogger.cc
  7865. * src/SimpleLogger.h
  7866. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Pool connection when CWD, SIZE command fails.
  7868. * src/FtpNegotiationCommand.cc
  7869. * src/FtpNegotiationCommand.h
  7870. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7872. * src/HttpResponseCommand.cc
  7873. * src/HttpSkipResponseCommand.cc
  7874. * src/HttpSkipResponseCommand.h
  7875. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Pool connection when a server returns 4xx, 5xx responses.
  7877. * src/HttpNullDownloadCommand.cc
  7878. * src/HttpNullDownloadCommand.h
  7879. * src/HttpResponse.cc
  7880. * src/HttpResponse.h
  7881. * src/HttpResponseCommand.cc
  7882. * src/HttpResponseCommand.h
  7883. * test/HttpResponseTest.cc
  7884. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. Print usage when no URL is specifed or bad command-line option is
  7886. specified.
  7887. * src/HelpItemFactory.cc
  7888. * src/help_tags.h
  7889. * src/option_processing.cc
  7890. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Removed duplicate log message.
  7892. * src/AbstractCommand.cc (asyncResolveHostname)
  7893. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7895. Changed -j option's default value from 5 to 1.
  7896. Added new examples using protocol auto detection feature.
  7897. Removed -T, -M usage where it can be omitted.
  7898. * doc/aria2c.1.txt
  7899. * doc/aria2c.1.html
  7900. * doc/aria2c.1.txt
  7901. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Updated command-line usage text, so that it tells users that they
  7903. can specify any number of torrent files and metalink files in
  7904. command-line.
  7905. * src/version_usage.cc
  7906. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7907. Changed the default value of -j option to 1.
  7908. * src/HelpItemFactory.cc
  7909. * src/option_processing.cc
  7910. * src/usage_text.h
  7911. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Added the ability to reuse connection in FTP and it is enabled by
  7913. default. It can be disabled by --ftp-reuse-connection=false option.
  7914. * src/Command.cc
  7915. * src/DownloadCommand.cc
  7916. * src/FtpDownloadCommand.cc
  7917. * src/FtpDownloadCommand.h
  7918. * src/FtpFinishDownloadCommand.cc
  7919. * src/FtpFinishDownloadCommand.h
  7920. * src/FtpInitiateConnectionCommand.cc
  7921. * src/FtpNegotiationCommand.cc
  7922. * src/FtpNegotiationCommand.h
  7923. * src/HelpItemFactory.cc
  7924. * src/Makefile.am
  7925. * src/Makefile.in
  7926. * src/OptionHandlerFactory.cc
  7927. * src/option_processing.cc
  7928. * src/prefs.h
  7929. * src/usage_text.h
  7930. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Call Command::transitStatus() before calling Command::execute(),
  7932. so that the status change made in execute() is not cleared.
  7933. * src/DownloadEngine.cc
  7934. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Removed forward declaration of SocketCore class.
  7936. * src/HttpDownloadCommand.h
  7937. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7939. in InitiateConnectionCommandFactory. They should be set only when
  7940. the protocol is HTTP or HTTPS.
  7941. * src/InitiateConnectionCommandFactory.cc
  7942. * src/RequestGroup.cc
  7943. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7944. Fixed infinite loop in checksum checking.
  7945. * src/IteratableChecksumValidator.cc
  7946. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Set _supportsPersistentConnection to true by default.
  7948. * src/Request.cc
  7949. * src/RequestGroup.cc
  7950. * test/HttpRequestTest.cc
  7951. * test/RequestTest.cc
  7952. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Added timeout to socket pool. The default timeout is 15 seconds,
  7954. which is the same value Apache uses.
  7955. * src/DownloadEngine.cc
  7956. * src/DownloadEngine.h
  7957. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7958. Fixed misuse of multimap::find()
  7959. * src/HttpHeader.cc
  7960. * test/HttpHeaderTest.cc
  7961. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7963. option.
  7964. The asynchronous DNS is not capable of IPv6 yet.
  7965. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7966. least for HTTP download.
  7967. * src/AbstractCommand.cc
  7968. * src/AbstractCommand.h
  7969. * src/AsyncNameResolver.cc
  7970. * src/AsyncNameResolver.h
  7971. * src/DHTEntryPointNameResolveCommand.cc
  7972. * src/DHTEntryPointNameResolveCommand.h
  7973. * src/DownloadEngine.cc
  7974. * src/DownloadEngine.h
  7975. * src/FtpInitiateConnectionCommand.cc
  7976. * src/FtpInitiateConnectionCommand.h
  7977. * src/HelpItemFactory.cc
  7978. * src/HttpInitiateConnectionCommand.cc
  7979. * src/HttpInitiateConnectionCommand.h
  7980. * src/InitiateConnectionCommand.cc
  7981. * src/InitiateConnectionCommand.h
  7982. * src/Makefile.am
  7983. * src/Makefile.in
  7984. * src/NameResolver.cc
  7985. * src/NameResolver.h
  7986. * src/OptionHandlerFactory.cc
  7987. * src/SocketCore.cc
  7988. * src/SocketCore.h
  7989. * src/Util.cc
  7990. * src/Util.h
  7991. * src/option_processing.cc
  7992. * src/prefs.h
  7993. * src/usage_text.h
  7994. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7995. Updated man page: --quiet, --header were added.
  7996. --metalink-servers and --enable-http-keep-alive option were updated.
  7997. * doc/aria2c.1
  7998. * doc/aria2c.1.html
  7999. * doc/aria2c.1.txt
  8000. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Enable HTTP keep-alive by default.
  8002. * src/HelpItemFactory.cc
  8003. * src/option_processing.cc
  8004. * src/usage_text.h
  8005. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Disable http keep-alive if the remote server is not HTTP/1.1.
  8007. * src/HttpConnection.cc
  8008. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8009. Receive content body of 302 response so that the connection can be
  8010. reused later when http keep-alive is enabled.
  8011. * src/HttpNullDownloadCommand.cc
  8012. * src/HttpNullDownloadCommand.h
  8013. * src/HttpResponseCommand.cc
  8014. * src/HttpResponseCommand.h
  8015. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. const SharedHandle<Request> -> const SharedHandle<Request>&
  8017. * src/FtpDowndloadCommand.cc
  8018. * src/FtpDowndloadCommand.h
  8019. * src/HttpDownloadCommand.cc
  8020. * src/HttpDownloadCommand.h
  8021. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. Fixed the bug that the control file(.aria2 file) is not renamed
  8023. according to tryAutoFileRenaming().
  8024. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8025. its control file exist, use them and continue download.
  8026. The old implementation didn't take into account of control file's
  8027. existence, so basically you couldn't continue download of renamed file.
  8028. * src/BtProgressInfoFile.h
  8029. * src/DefaultBtProgressInfoFile.cc
  8030. * src/DefaultBtProgressInfoFile.h
  8031. * src/NullProgressInfoFile.h
  8032. * src/RequestGroup.cc
  8033. * test/DefaultBtProgressInfoFileTest.cc
  8034. * test/MockBtProgressInfoFile.h
  8035. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8036. Change the default value of --metalink-servers option from `5' to `1'.
  8037. * src/HelpItemFactory.cc
  8038. * src/option_processing.cc
  8039. * src/usage_text.h
  8040. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Reimplemented transparent metalink using Accept request header.
  8042. * src/HttpRequest.cc
  8043. * src/HttpRequest.h
  8044. * src/HttpRequestCommand.cc
  8045. * src/Metalink2RequestGroup.cc
  8046. * src/RequestGroup.cc
  8047. * src/RequestGroup.h
  8048. * test/HttpRequestTest.cc
  8049. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. Bump up version number to 0.13.2a
  8051. * configure.ac
  8052. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. Updated configure.ac using the result of autoscan.
  8054. * configure.ac
  8055. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Fixed compilation error without gcrypt/openssl.
  8057. * src/DownloadCommand.cc
  8058. * src/DownloadCommand.h
  8059. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Reorganized version information so that it can be displayed in a
  8061. standard terminal screen without scrolling.
  8062. Removed http, ftp from Configuration section, because they are always
  8063. enabled.
  8064. * src/FeatureConfig.cc
  8065. * src/FeatureConfig.h
  8066. * src/main.cc
  8067. * src/messageDigest.cc
  8068. * src/messageDigest.h
  8069. * src/version_usage.cc
  8070. * test/FeatureConfigTest.cc
  8071. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8072. Masked user ID in log.
  8073. * src/FtpConnection.cc (sendUser)
  8074. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Removed query part from filename in HTTP download. The query part means
  8076. the substring after "?" in URL. Firefox seems do the same thing.
  8077. A query part is sometimes very long and not suitable to filename,
  8078. so I think it is better to remove it from filename.
  8079. * src/HttpRequest.cc
  8080. * src/HttpRequest.h
  8081. * src/Request.cc
  8082. * src/Request.h
  8083. * test/HttpRequestTest.cc
  8084. * test/RequestTest.cc
  8085. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. Rewritten Exception class. Throw exception object, not its pointer and
  8087. catch by reference, so that remove problematic delete operator for
  8088. catched exception.
  8089. * src/Exception.cc
  8090. * src/Exception.h
  8091. * test/ExceptionTest.cc
  8092. * src/*: All files throwing/catching exception.
  8093. * test/*: All files throwing/catching exception.
  8094. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Now auto protocol detection is enabled without -Z option.
  8096. But there is a important difference between with/without -Z optoin.
  8097. For example, if you type:
  8098. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8099. then, aria2 interprets there are 3 request groups:
  8100. (1) http://host/file, http://mirror/file <-- multi-source download
  8101. (2) file1.torrent
  8102. (3) file2.metalink
  8103. On the other hand, if you invoke above command with -Z option, it is
  8104. interpreted as 4 request groups:
  8105. (1) http://host/file
  8106. (2) file1.torrent
  8107. (3) file2.metalink
  8108. (4) http://mirror/file
  8109. I think usually user don't mix multi-source URLs and torrent files, so
  8110. there is no big problem here.
  8111. * src/main.cc
  8112. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. Fixed the bug that causes segmentaion fault when reading XML containing
  8114. unescapsed character like '&'.
  8115. Also a modification was made which avoids adding unnecessary
  8116. characters stack and appending unused string.
  8117. * src/ExpatMetalinkProcessor.cc
  8118. * src/FileMetalinkParserState.h
  8119. * src/FilesMetalinkParserState.h
  8120. * src/FinMetalinkParserState.h
  8121. * src/HashMetalinkParserState.h
  8122. * src/InitialMetalinkParserState.h
  8123. * src/LanguageMetalinkParserState.h
  8124. * src/MetalinkMetalinkParserState.h
  8125. * src/MetalinkParserState.h
  8126. * src/MetalinkParserStateMachine.cc
  8127. * src/MetalinkParserStateMachine.h
  8128. * src/OSMetalinkParserState.h
  8129. * src/PieceHashMetalinkParserState.h
  8130. * src/PiecesMetalinkParserState.h
  8131. * src/ResourcesMetalinkParserState.h
  8132. * src/SizeMetalinkParserState.h
  8133. * src/SkipTagMetalinkParserState.h
  8134. * src/URLMetalinkParserState.h
  8135. * src/VerificationMetalinkParserState.h
  8136. * src/VersionMetalinkParserState.h
  8137. * src/XML2SAXMetalinkProcessor.cc
  8138. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Added StringFormat class, which internally calls vasprintf.
  8140. operator<< is defined for this class, so it can be used with iostream
  8141. classes nicely. SimpleLogger and following functions are rewritten
  8142. using StringFormat class.
  8143. Besides, now Logger class's methods are non-const, many classes
  8144. that has a const Logger* as a member variable are modified to remove
  8145. const qualifier from the variable declaration.
  8146. * src/HelpItemFactory.cc
  8147. * src/Request.cc
  8148. * src/SimpleLogger.cc
  8149. * src/StringFormat.cc
  8150. * src/StringFormat.h
  8151. * src/Util.cc
  8152. * src/option_processing.cc
  8153. * src/version_usage.cc
  8154. * test/StringFormatTest.cc
  8155. * src/*.h: The classes that has const Logger* as a member variable.
  8156. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8157. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8158. failed. Also fixed memory link when exception is thrown there.
  8159. * src/main.cc (AccRequestGroup)
  8160. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. Added build-in "Accept-Features" support. For now only "metalink" is
  8162. used in this header field.
  8163. This "metalink" value is removed from the list when connecting URLs
  8164. fed by metalink file to avoid loop in "transparent" metlaink.
  8165. * src/HttpRequest.cc
  8166. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8167. header is also held in this variable. Also renamed setUserHeaders as
  8168. addHeader and it was rewritten to add header not just to clear the old
  8169. value.
  8170. * src/HttpRequestCommand.cc
  8171. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8172. from "Accept-Features" list.
  8173. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8174. default.
  8175. * src/RequestGroup.h
  8176. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8177. * src/a2functional.h: Included <string> because Concat class depends on
  8178. it.
  8179. * test/HttpRequestTest.cc
  8180. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. Added comment
  8182. * src/RequestGroup.cc (createNextCommand)
  8183. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8184. Capitalized METHOD_GET and METHOD_HEAD
  8185. * src/Request.cc
  8186. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Added getDownloadResults() method
  8188. * src/RequestGroupMan.cc
  8189. * src/RequestGroupMan.h
  8190. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Fixed the bug that aria2 exits when commands is empty() but
  8192. _routineCommands are not.
  8193. * src/DownloadEngine.cc
  8194. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8195. Use the default value pulled from Option object in HelpItemFactory.
  8196. except options whose defualt value is embedded in a usage text.
  8197. * src/HelpItemFactory.cc
  8198. * src/HelpItemFactory.h
  8199. * src/option_processing.cc
  8200. * src/version_usage.cc
  8201. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Added --quiet option to make aria2 quiet (no console output).
  8203. --quiet option is tagged with ADVANCED.
  8204. * src/HelpItemFactory.cc
  8205. * src/LogFactory.cc
  8206. * src/LogFactory.h
  8207. * src/MultiUrlRequestInfo.cc
  8208. * src/MultiUrlRequestInfo.h
  8209. * src/NullStatCalc.h: New class. This class prints nothing.
  8210. * src/OptionHandlerFactory.cc
  8211. * src/main.cc
  8212. * src/option_processing.cc
  8213. * src/prefs.h
  8214. * src/usage_text.h
  8215. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8217. * src/HelpItemFactory.cc (createHelpItems):
  8218. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. Fixed compilation error in ExpatMetalinkProcessor.cc
  8220. * src/ExpatMetalinkProcessor.cc
  8221. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. Reuse socket if the origin server supports HTTP keep-alive and
  8223. --enable-http-keep-alive or --enable-http-pipelining is given.
  8224. The current implementation doesn't reuse the connections established
  8225. against proxy server.
  8226. * src/AbstractCommand.cc
  8227. * src/DownloadEngine.cc
  8228. * src/DownloadEngine.h
  8229. * src/HttpDownloadCommand.cc
  8230. * src/HttpInitiateConnectionCommand.cc
  8231. * src/HttpResponseCommand.cc
  8232. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Rewritten HTTP keep-alive and pipelining routine.
  8234. * src/AbstractCommand.cc
  8235. * src/HttpConnection.cc
  8236. * src/HttpDownloadCommand.cc
  8237. * src/HttpRequest.cc
  8238. * src/HttpRequestCommand.cc
  8239. * src/HttpResponseCommand.cc
  8240. * src/Request.cc
  8241. * src/Request.h
  8242. * src/RequestGroup.cc
  8243. * test/HttpRequestTest.cc
  8244. * test/HttpResponseTest.cc
  8245. * test/RequestTest.cc
  8246. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8247. Added missing setUserHeaders call
  8248. * src/HttpRequestCommand.cc
  8249. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8250. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8251. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8252. waste of time because it is more likey false.
  8253. * src/FileAllocationDispatcherCommand.cc (execute)
  8254. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8255. Now HTTP status and version are a member variable of HttpHeader.
  8256. HTTP status is processed as a string, not integer.
  8257. * src/AbstractProxyResponseCommand.cc
  8258. * src/HttpConnection.cc
  8259. * src/HttpHeader.cc
  8260. * src/HttpHeader.h
  8261. * src/HttpHeaderProcessor.cc
  8262. * src/HttpHeaderProcessor.h
  8263. * src/HttpResponse.cc
  8264. * src/HttpResponse.h
  8265. * test/HttpHeaderProcessorTest.cc
  8266. * test/HttpResponseTest.cc
  8267. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8268. Added --header option. You can specify any number of additional HTTP headers
  8269. like:
  8270. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8271. Unlike other commad-line option, you can use --header option multiple times.
  8272. * src/HelpItemFactory.cc
  8273. * src/HttpRequest.{cc, h}
  8274. * src/HttpRequestCommand.cc
  8275. * src/OptionHandlerFactory.cc
  8276. * src/OptionHandlerImpl.h
  8277. * src/option_processing.cc
  8278. * src/prefs.h
  8279. * src/usage_text.h
  8280. * test/HttpRequestTest.cc (testUserHeaders)
  8281. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. Eliminates the time lag between sequential downloads and commands in
  8283. the same RequestGroup.
  8284. In old implementation, aria2 occasionally waits 1 seconds before
  8285. executing next command or RequestGroup.
  8286. This is really a waste of time, and new implementation eliminates
  8287. this unnecessary time lag.
  8288. * src/AbstractCommand.cc
  8289. * src/AutoSaveCommand.cc
  8290. * src/CheckIntegrityCommand.cc
  8291. * src/Command.{cc, h}
  8292. * src/DownloadEngine.{cc, h}
  8293. * src/DownloadEngineFactory.cc
  8294. * src/FileAllocationCommand.cc
  8295. * src/FileAllocationDispatcherCommand.cc
  8296. * src/FillRequestGroupCommand.cc
  8297. * src/FtpInitiateConnectionCommand.cc
  8298. * src/HaveEraseCommand.cc
  8299. * src/HttpInitiateConnectionCommand.cc
  8300. * src/HttpResponseCommand.cc
  8301. * src/RealtimeCommand.cc
  8302. * src/RequestGroup.cc
  8303. * src/RequestGroupMan.cc
  8304. * src/StreamFileAllocationEntry.cc
  8305. * src/TimeBasedCommand.{cc, h}
  8306. * src/TimedHaltCommand.cc
  8307. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8309. keyword explicit and SharedHandle's default constructor initializes
  8310. its internal obj to null, old implementation initializes it using
  8311. obj's default constructor.
  8312. To assign null, write SharedHandle<T> x(...); x.reset();
  8313. TODO: test/SharedHandleTest.cc needs more tests.
  8314. * src/SharedHandle.h
  8315. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. Fixed type in man page.
  8317. * doc/aria2c.1.txt
  8318. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8319. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8320. * src/SimpleLogger.{cc, h}
  8321. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Implemented auto protocol detection.
  8323. Now you can do:
  8324. aria2c -Z http://host/file file1.torrent file2.metalink
  8325. (Note: -Z option is required for auto protcol detection.)
  8326. Then aria2c downloads 3 files simultaneously:
  8327. 1. http://host/file
  8328. 2. file1.torrent <-- read local torrent file
  8329. 3. file2.metalink <-- read local Metalink file.
  8330. Same thing goes with -i option. Assume your uris.txt contans:
  8331. http://host/file
  8332. file1.torrent
  8333. file2.metalink
  8334. Then you can do: aria2c -i uris.txt
  8335. (Note: -Z option is not needed if -i option is given.)
  8336. * src/main.cc
  8337. * src/ProtocolDetector.{cc, h}
  8338. * test/ProtocolDetectorTest.cc
  8339. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8340. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8341. installed
  8342. * src/ARC4Encryptor.h
  8343. * src/ARC4Decryptor.h
  8344. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8345. Renamed argument from 'errno' to 'err', since errno is confused with
  8346. errno defined in errno.h.
  8347. * src/LibgcryptARC4Decryptor.h
  8348. * src/LibgcryptARC4Context.h
  8349. * src/LibgcryptDHKeyExchange.h
  8350. * src/LibgcryptARC4Encryptor.h
  8351. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Rewritten choking algorithm.
  8353. * src/PeerChokeCommand.{cc, h}
  8354. * src/BtInterestedMessage.cc
  8355. * src/PeerSessionResource.{cc, h}
  8356. * src/DefaultPeerStorage.{cc, h}
  8357. * src/BtNotInterestedMessage.cc
  8358. * src/DefaultBtMessageDispatcher.{cc, h}
  8359. * src/BtMessageDispatcher.h
  8360. * src/Peer.{cc, h}
  8361. * src/BtLeecherStateChoke.{cc, h}
  8362. * src/BtSetup.cc
  8363. * src/BtSeederStateChoke.{cc, h}
  8364. * src/PeerStorage.h
  8365. * test/MockPeerStorage.h
  8366. * test/MockBtMessageDispatcher.h
  8367. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Fixed compilation error on x84-64 platform.
  8369. * src/AuthConfig.cc: Included ostream.
  8370. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. Rewritten getBasename() and getDirname(), without standard library
  8372. basename(), dirname().
  8373. * src/File.cc
  8374. * test/FileTest.cc
  8375. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. Added Simplified Chinese translation. Also updated the following
  8377. translations: Polish, Dutch, German. Great thanks to all translators.
  8378. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Suppress content-range error when 'Content-Range' response header
  8380. doesn't contains bytes-unit specifier 'bytes'
  8381. * src/HttpHeader.cc (getRange)
  8382. * test/HttpHeaderTest.cc
  8383. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Fixed compilation error with g++-4.3
  8385. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. Added missing include files for MinGW
  8387. * test/HttpHeaderProcessorTest.cc
  8388. * test/DHTRoutingTableSerializerTest.cc
  8389. * test/DHTRoutingTableDeserializerTest.cc
  8390. * test/UriListParserTest.cc
  8391. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. Now download line is printed nicely with no garbage at the end of
  8393. line. I use ioctl to get the columns of terminal.
  8394. If stdout is redirected to another device, instead of carriage return,
  8395. end of line '\n' character is used. This is feature request#1909659
  8396. * src/ConsoleStatCalc.cc (calculateStat)
  8397. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. Included a2time.h
  8399. * src/DHTMessageDispatcher.h
  8400. * src/DHTMessageEntry.h
  8401. * src/DHTReplaceNodeTask.h
  8402. * src/DHTMessageTracker.h
  8403. * src/Util.h
  8404. * src/CookieBox.h
  8405. * src/SocketCore.h
  8406. * src/DefaultBtMessageDispatcher.h
  8407. * src/SocketCore.cc
  8408. * src/Util.cc
  8409. * src/DHTPingTask.h
  8410. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Fixed high memory footprint when DHT is enabled.
  8412. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8413. queued than it is processed and the queue is getting longer. As a
  8414. consequence, momory usage is increased.
  8415. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8416. replacement cache in DHTBucket which is described in Kademlia paper.
  8417. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8418. DHTReplaceNodeTask.
  8419. * src/DHTBucket.{h, cc}
  8420. (cacheNode): New function.
  8421. (getCachedNodes): New function.
  8422. (dropNode): Push back cached node to _nodes.
  8423. * test/DHTBucketTest.cc
  8424. (testCacheNode): New test
  8425. (testDropNode): New test
  8426. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8428. the unused 4KB memory when ssl is not used.
  8429. * src/SocketCore.cc
  8430. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8431. Added summary log for peer announce storage.
  8432. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8433. Removed cast
  8434. * src/DefaultPeerStorage.cc (addPeer)
  8435. Log exception message
  8436. * src/DHTMessageTracker.cc (handleTimeout)
  8437. Fixed casting
  8438. * test/HttpRequestTest.cc
  8439. * test/MetalinkProcessorTest.cc
  8440. * test/PieceTest.cc
  8441. * test/MetalinkEntryTest.cc
  8442. * test/SequenceTest.cc
  8443. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8444. * src/ParameterizedStringParser.cc (createLoop):
  8445. Removed unused variable sstep.
  8446. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8447. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. * src/Util.{h, cc}
  8449. (parseUInt): New function.
  8450. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8451. The actual range is uint32_t.
  8452. * test/UtilTest.cc
  8453. * src/ParameterizedStringParser.cc:
  8454. Use Util::parseUInt() for loop variables.
  8455. * test/ParameterizedStringParserTest.cc
  8456. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8457. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8458. Rewritten the functions for binding port.
  8459. * src/DHTConnectionImpl.{h, cc}
  8460. * src/PeerListenCommand.{h, cc}
  8461. * src/DHTSetup.cc
  8462. * src/BtSetup.cc
  8463. * test/DHTConnectionImplTest.cc
  8464. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. type cleanup for allmost all remaining files.
  8466. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. Type clarification
  8468. * src/PeerSessionResource.{h, cc}
  8469. * src/DefaultPieceStorage.{h, cc}
  8470. * src/Peer.{h, cc}
  8471. * test/PeerSessionResourceTest.cc
  8472. Use div function
  8473. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8474. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Type clarification
  8476. * src/DefaultPeerStorage.{h, cc}
  8477. * test/DefaultPeerStorageTest.cc
  8478. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Type clarification: size_t for length or size, uint64_t for file
  8480. length, off_t for file offset.
  8481. * src/DefaultBtProgressInfoFile.cc
  8482. * src/DefaultBtContext.{h, cc}
  8483. * src/DefaultBtInteractive.cc
  8484. * src/DownloadCommand.{h, cc}
  8485. * src/IteratableChunkChecksumValidator.{h, cc}
  8486. * src/SegmentMan.{h, cc}
  8487. * src/SingleFileDownloadContext.{h, cc}
  8488. * src/IteratableChecksumValidator.{h, cc}
  8489. * src/BtContext.h
  8490. * src/IteratableValidator.h
  8491. * src/DownloadContext.h
  8492. * test/SingleFileDownloadContextTest.cc
  8493. * test/DefaultBtContextTest.cc
  8494. * test/MockBtContext.h
  8495. * test/Metalink2RequestGroupTest.cc
  8496. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Type clarification: size_t for length or size, uint64_t for file
  8498. length, off_t for file offset.
  8499. * src/PiecedSegment.cc
  8500. * src/GrowSegment.h
  8501. * src/DefaultBtRequestFactory.h
  8502. * src/DefaultBtProgressInfoFile.cc
  8503. * src/UnknownLengthPieceStorage.h
  8504. * src/DefaultPieceStorage.cc
  8505. * src/UnknownLengthPieceStorage.cc
  8506. * src/DefaultBtInteractive.cc
  8507. * src/GrowSegment.cc
  8508. * src/BitfieldMan.h
  8509. * src/DownloadCommand.cc
  8510. * src/BtRequestFactory.h
  8511. * src/PiecedSegment.h
  8512. * src/DefaultPieceStorage.h
  8513. * src/Piece.cc
  8514. * src/DefaultBtRequestFactory.cc
  8515. * src/PieceStorage.h
  8516. * src/Segment.h
  8517. * src/Piece.h
  8518. * src/BitfieldMan.cc
  8519. * src/Util.cc
  8520. * test/DefaultBtProgressInfoFileTest.cc
  8521. * test/DefaultPieceStorageTest.cc
  8522. * test/MockPieceStorage.h
  8523. * test/BtRequestMessageTest.cc
  8524. * test/DefaultBtMessageDispatcherTest.cc
  8525. * test/BitfieldManTest.cc
  8526. * test/GrowSegmentTest.cc
  8527. * test/PieceTest.cc
  8528. * test/SegmentTest.cc
  8529. * test/SegmentManTest.cc
  8530. * test/DefaultBtRequestFactoryTest.cc
  8531. * test/MockBtRequestFactory.h
  8532. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. Fixed compilation error with --disable-nls
  8534. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8535. in gettext.h causes the problem.
  8536. * src/common.h
  8537. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Removed subPiece related functions.
  8539. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8540. * src/DefaultPieceStorage.{h, cc}
  8541. * test/PieceTest.cc
  8542. * test/DefaultPieceStorageTest.cc
  8543. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Use unsigned char for data store.
  8545. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Bump up version number to 0.13.0+1
  8547. * configure.ac
  8548. * Release 0.13.0+1
  8549. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Changed inactive connection timeout to 120.
  8551. To accept more mulually interested peers, disconnect peer when there
  8552. is no interest between us after certain time passed.
  8553. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8554. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8556. when compiled with async DNS support.
  8557. * src/DownloadEngine.cc
  8558. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8559. value '10' will be a little bit short when some DNS servers are
  8560. offline and several DNS servers are tried. It should be configured
  8561. by command-line option.
  8562. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Merged Ross's mingw patch.
  8564. * src/DHTRoutingTableDeserializer.cc
  8565. * src/DHTRoutingTableSerializer.cc
  8566. * src/Platform.{h, cc}
  8567. * src/timegm.h
  8568. * src/gettimeofday.h
  8569. * src/getaddrinfo.h
  8570. * src/SocketCore.h
  8571. * src/common.h
  8572. * src/inet_aton.h
  8573. * src/DownloadEngine.h
  8574. * src/gai_strerror.h
  8575. * src/a2netcompat.h
  8576. * configure.ac
  8577. * configure
  8578. * aclocal.m4
  8579. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8580. Included missing iostream.
  8581. * test/AllTest.cc
  8582. * test/BtDependencyTest.cc
  8583. * test/BtExtendedMessageTest.cc
  8584. * test/DHTConnectionImplTest.cc
  8585. * test/DHTMessageFactoryImplTest.cc
  8586. * test/DHTMessageTrackerEntryTest.cc
  8587. * test/DHTNodeTest.cc
  8588. * test/DHTRoutingTableSerializerTest.cc
  8589. * test/DefaultBtAnnounceTest.cc
  8590. * test/DefaultBtContextTest.cc
  8591. * test/DefaultBtMessageFactoryTest.cc
  8592. * test/DefaultExtensionMessageFactoryTest.cc
  8593. * test/HandshakeExtensionMessageTest.cc
  8594. * test/HttpResponseTest.cc
  8595. * test/MetalinkProcessorTest.cc
  8596. * test/MultiFileAllocationIteratorTest.cc
  8597. * test/SocketCoreTest.cc
  8598. * test/UTPexExtensionMessageTest.cc
  8599. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. Reorganized includes.
  8601. * src/NameResolver.cc
  8602. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. Fixed compilation error without ares/c-ares
  8604. * src/NameResolver.h:
  8605. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8606. Added a test for large file.
  8607. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8608. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8609. Fixed the bug that file size is ignored if size > INT32_MAX
  8610. * src/SizeMetalinkParserState.cc (endElement):
  8611. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8612. Bump up version number to 0.13.0
  8613. * configure.ac
  8614. * Release 0.13.0
  8615. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Updated Makfefile.am to make 'make dist' work.
  8617. Now packaged filename is aria2c-VERSION.tar.bz2.
  8618. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8619. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8620. Large file support is now configured by configure script.
  8621. * configure.ac
  8622. Removed unsused source files
  8623. * src/
  8624. * test/
  8625. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8626. Peer.h and BtContext.h respectively.
  8627. * src/Peer.h
  8628. * src/BtContext.h
  8629. Updated translations.
  8630. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8631. translations. Great thanks to all translators!;)
  8632. * po/*.{po, gmo}
  8633. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8634. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8635. statically declared sha1 MessageDigestContext.
  8636. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8637. initialization of short-lived MessageDigestContext.
  8638. * src/MessageDigestHelper.{h, cc}
  8639. * src/main.cc
  8640. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8641. the initialization of MessageDigestContext every time in validating
  8642. chunk checksum.
  8643. * src/DownloadCommand.{h, cc}
  8644. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Add a file descriptor which connected to fast peer(latency<1500) to
  8646. select(). This change reduced CPU load.
  8647. * src/PeerInteractionCommand.cc
  8648. * src/DefaultBtInteractive.{h, cc}
  8649. * src/BtInteractive.h
  8650. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8651. Fixed the previous insufficient fix for possible busy loop.
  8652. * src/MSEHandshake.cc (identifyHandshakeType)
  8653. Removed unused functions.
  8654. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8655. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8656. Fixed possible busy loop if first 20 bytes are not received for a few
  8657. minutes.
  8658. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8659. * src/ReceiverMSEHandshakeCommand.cc
  8660. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Fixed compilation error
  8662. * src/ExpatMetalinkProcessor.cc
  8663. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8665. * src/DHTBucket.cc
  8666. Removed unnecessary cast.
  8667. * src/HandshakeExtensionMessage.cc
  8668. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8669. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8670. is missing.
  8671. * src/OptionHandlerFactory.cc
  8672. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. Fixed the bug that HAVE message is not sent for a piece they are
  8674. downloaded fom http/ftp server before any BitTorrent handshake is done
  8675. with peers.
  8676. * src/DefaultBtInteractive.cc
  8677. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8679. * src/Makefile.am
  8680. * src/Makefile.in
  8681. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. Updated README. Added html version of README and man page.
  8683. * README
  8684. * README.html
  8685. * readme2html: Shell script to generate README.html from README using
  8686. asciidoc.
  8687. * doc/aria2c.1.html
  8688. * doc/makeman: Added the line to generate aria2c.1.html
  8689. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8690. Fixed offset calculation.
  8691. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8692. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Rewritten itos and uitos using template. llitos and ullitos are
  8694. replaced with itos and uitos respectively.
  8695. * src/Util.{h, cc}
  8696. * test/UtilTest.cc
  8697. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8698. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8699. of the number of bytes required for storing public key and shared
  8700. secret.
  8701. * src/LibgcryptDHKeyExchange.h
  8702. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8703. * src/MSEHandshake.cc
  8704. * test/DHKeyExchangeTest.cc
  8705. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8706. Removed since they are not used.
  8707. * src/Xml2MetalinkProcessor.{h, cc}
  8708. * src/Socket.cc
  8709. * src/SegmentSplitter.{h, cc}
  8710. * test/Xml2MetalinkProcessorTest.cc
  8711. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8712. Fixed the bug that prevents aria2 from stopping other than by pressing
  8713. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8714. option. aria2 doesn't stop even after --seed-time is satisfied and
  8715. continues to output blank lines in the console.
  8716. * src/ReceiverMSEHandshakeCommand.cc
  8717. * src/PeerReceiveHandshakeCommand.cc
  8718. * src/PeerListenCommand.cc
  8719. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8720. Bump up version number to 0.13.0rc
  8721. * configure.ac
  8722. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8723. Updated man page and some usage text.
  8724. * doc/aria2c.1.txt
  8725. * src/usage_text.h
  8726. * po/*.{po, gmo}
  8727. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8728. Updated translations. Added Finnish and Hebrew translations.
  8729. Great thanks to all translators!
  8730. * po/*.{po, gmo}
  8731. * po/LINGUAS
  8732. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8733. Log more detailed information about each message.
  8734. * src/DHTQueryMessage.{h, cc}
  8735. * src/DHTGetPeersMessage.{h, cc}
  8736. * src/DHTFindNodeReplyMessage.{h, cc}
  8737. * src/DHTGetPeersReplyMessage.{h, cc}
  8738. * src/DHTAnnouncePeerMessage.{h, cc}
  8739. * src/DHTResponseMessage.{h, cc}
  8740. * src/DHTFindNodeMessage.{h, cc}
  8741. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8742. Use constants defined in prefs.h
  8743. * src/option_processing.cc
  8744. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8745. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8746. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8747. Make room for future enchancements for IPv6 addresses.
  8748. Bump up version number of dht.dat file format to 2.
  8749. Not compatible with previous version.
  8750. * src/DHTRoutingTableSerializer.cc
  8751. * src/DHTRoutingTableDeserializer.cc
  8752. * test/DHTRoutingTableSerializerTest.cc
  8753. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8754. Added handling for the return values from
  8755. PeerMessageUtil::createcompact().
  8756. * src/DefaultBtContext.cc (computeFastSet):
  8757. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8758. Fixed abort when peer's ip address is IPv4-mapped address.
  8759. * src/DefaultBtContext.cc (computeFastSet)
  8760. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8761. cannot handle IPv4-mapped addresses.
  8762. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8763. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8764. Proper return value handling for OpenSSL functions.
  8765. * src/LibsslDHKeyExchange.h
  8766. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. Random bytes generation using libgcrypt and OpenSSL.
  8768. * src/DHTUtil.{h, cc}
  8769. * test/DHTUtilTest.cc
  8770. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8772. received.
  8773. * src/DHTMessageReceiver.cc (receiveMessage)
  8774. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8775. Fixed the bug that a return code is always 0. BUG#1897704
  8776. If error occurred during the download or there exist unfinished
  8777. downloads, aria2 returns with code 1.
  8778. * src/RequestGroupMan.{h, cc}
  8779. * src/MultiUrlRequestInfo.{h, cc}
  8780. * src/main.cc
  8781. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. IPv6 support for SocketCore class.
  8783. TODO: In SocketCore::establishConnection(), this is insufficient to
  8784. determin the failure of connect() here because the socket is
  8785. non-blocking state. The next addresses should be tried after select().
  8786. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8787. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8788. instead which address family independent.
  8789. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8790. information in a compact peer format which is for IPv4 only.
  8791. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8792. this is a spec of BitTorrent protocol.
  8793. * src/SocketCore.{h, cc}
  8794. * src/PeerMessageUtil.cc
  8795. * test/SocketCoreTest.cc
  8796. * test/PeerMessageUtilTest.cc
  8797. * test/DHTConnectionImplTest.cc
  8798. Handle IPv4-mapped addresses.
  8799. * src/DHTNode.cc: Now identity is determined by node id.
  8800. * src/DHTMessageTrackerEntry.cc
  8801. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8802. should handle it.
  8803. * src/DHTRoutingTableDeserializer.cc
  8804. * src/DHTMessageFactoryImpl.cc
  8805. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8806. Change the unit of --stop option from a minute to a second.
  8807. * src/usage_text.h
  8808. * src/DownloadEngineFactory.cc
  8809. * src/OptionHandlerFactory.cc
  8810. * src/message.h
  8811. * src/TimedHaltCommand.cc
  8812. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Make listening socket non-block mode.
  8814. * src/FtpConnection.cc
  8815. * src/FtpNegotiationCommand.{h, cc}
  8816. * src/PeerListenCommand.cc
  8817. Fixed the bug that cause slow ftp negotiation.
  8818. * src/FtpNegotiationCommand.{h, cc}
  8819. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Added basic tag to --enable-dht, --dht-listen-port option.
  8821. * src/HelpItemFactory.cc (createHelpItems)
  8822. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. Updated text.
  8824. * src/usage_text.h
  8825. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8827. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. Determin _threadtholdSpeed in each constructor for
  8829. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8830. * src/ActivePeerConnectionCommand.{h, cc}
  8831. * src/PeerReceiveHandshakeCommand.{h, cc}
  8832. * src/BtSetup.cc
  8833. * src/BtConstants.h
  8834. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Added --bt-min-crypto-level and --bt-require-crypto options.
  8836. * src/OptionHandlerFactory.cc
  8837. * src/MSEHandshake.cc
  8838. * src/HelpItemFactory.cc
  8839. * src/option_processing.cc
  8840. * src/ReceiverMSEHandshakeCommand.cc
  8841. * src/prefs.h
  8842. * src/DefaultBtAnnounce.cc
  8843. * src/InitiatorMSEHandshakeCommand.cc
  8844. * src/usage_text.h
  8845. * test/MSEHandshakeTest.cc
  8846. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8847. Bump version number to 0.13.0b
  8848. * configure.ac
  8849. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. Updated doc.
  8851. * src/MessageDigestHelper.h:
  8852. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. Use raw message digest as a token instead of its hexadecimal
  8854. representation.
  8855. * src/DHTTokenTracker.cc (generateToken)
  8856. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Added Message Stream Encryption(MSE) support.
  8858. Currently, aria2 accepts incoming connections with Obfuscation Header
  8859. and legacy BitTorrent Header and establishes connections with
  8860. Obfuscation Header first and if failed then retry with legacy
  8861. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8862. choose ARC4. The new option to change the default behavior is planned.
  8863. For tracker extension, "supportcrypto=1" is added statically.
  8864. * src/PeerInitiateConnectionCommand.{h, cc}
  8865. * src/PeerConnection.{h, cc}
  8866. * src/HandleRegistry.h
  8867. * src/SocketCore.h
  8868. * src/PeerReceiveHandshakeCommand.{h, cc}
  8869. * src/BtRegistry.{h, cc}
  8870. * src/PeerListenCommand.cc
  8871. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8872. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8873. * src/MSEHandshake.{h, cc}
  8874. * src/ARC4Encryptor.h
  8875. * src/ARC4Decryptor.h
  8876. * src/LibgcryptARC4Encryptor.h
  8877. * src/LibgcryptARC4Decryptor.h
  8878. * src/LibgcryptARC4Context.h
  8879. * src/LibsslARC4Encryptor.h
  8880. * src/LibsslARC4Decryptor.h
  8881. * src/LibsslARC4Context.h
  8882. * src/DHKeyExchange.h
  8883. * src/LibgcryptDHKeyExchange.h
  8884. * src/LibsslDHKeyExchange.h
  8885. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8886. * test/DefaultBtAnnounceTest.cc
  8887. * test/ARC4Test.cc
  8888. * test/DHKeyExchangeTest.cc
  8889. Removed prepareForRetry() because it is not used.
  8890. * src/PeerAbstractCommand.{h, cc}
  8891. * src/PeerInteractionCommand.{h, cc}
  8892. * src/PeerInitiateConnectionCommand.{h, cc}
  8893. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Added the ability to load nodes from torrent file. These nodes are
  8895. added to the routing table when downloading that torrent.
  8896. * src/BtContext.h
  8897. * src/DefaultBtContext.{h, cc}
  8898. * src/DHTSetup.cc
  8899. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8900. hostname and port pair, and resolves all of them.
  8901. * src/NameResolver.{h, cc}: Added reset().
  8902. * src/RequestGroup.cc
  8903. * test/DefaultBtContextTest.cc
  8904. * test/MockBtContext.h
  8905. Removed assert() from DefaultBtContext and throw exception instead.
  8906. * src/DefaultBtContext.cc
  8907. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8908. Fixed segmentation fault bug when exiting if dht is disabled.
  8909. * src/RequestGroup.cc
  8910. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8911. Fixed typo in log message and define the message in message.h
  8912. * src/TimedHaltCommand.cc
  8913. * src/message.h
  8914. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Included RecoverableException.h to fix compilation error.
  8916. * test/DHTMessageFactoryImplTest.cc
  8917. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8918. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8919. * test/DHTPingMessageTest.cc
  8920. * test/DHTGetPeersMessageTest.cc
  8921. * test/DHTFindNodeMessageTest.cc
  8922. * test/DHTAnnouncePeerMessageTest.cc
  8923. * test/MockDHTMessage.h
  8924. * test/MockDHTMessageFactory.h
  8925. * test/MockDHTMessageDispatcher.h: New class.
  8926. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8928. virtual.
  8929. * src/DHTMessageDispatcher.h
  8930. * src/DHTMessageDispatcherImpl.{h, cc}
  8931. * src/DHTSetup.cc
  8932. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Adding handling of DHT error message. Just log error message and
  8934. throw exception.
  8935. * src/DHTMessageFactoryImpl.cc
  8936. * test/DHTMessageFactoryImplTest.cc
  8937. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Added handling of dynamic cast failure.
  8939. * src/DHTNodeLookupTask.cc
  8940. * src/DHTPeerLookupTask.cc
  8941. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Added the ability to stop aria2 itself when given time has passed
  8943. from start. Use --stop option to specify time in minutes.
  8944. When 0 is given, this feature is disabled.
  8945. * src/OptionHandlerFactory.cc
  8946. * src/TimeBasedCommand.h: Make _interval protected scope.
  8947. * src/HelpItemFactory.cc
  8948. * src/option_processing.cc
  8949. * src/prefs.h
  8950. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8951. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8952. Without this modification, the result list shows "ERR" when aria2 is
  8953. stopped by --stop option. It should be "INPR".
  8954. * src/DownloadEngine.{h, cc}
  8955. * src/DownloadEngineFactory.cc
  8956. * src/usage_text.h
  8957. * src/TimedHaltCommand.{h, cc}: New class.
  8958. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8959. Bootstrap through node added by port message.
  8960. Currently bootstrap is executed if the number of buckets in routing
  8961. table is 1.
  8962. * src/BtPortMessage.{h, cc}
  8963. * src/DefaultBtMessageFactory.{h, cc}
  8964. * src/PeerInteractionCommand.cc
  8965. * test/BtPortMessageTest.cc
  8966. * test/MockDHTTask.h
  8967. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Extract the Peer class's member variables, which are only needed after
  8969. PeerInteractionCommand, into PeerSessionResource class.
  8970. This class is instantiated in PeerInteractionCommand class's ctor and
  8971. released in its dtor.
  8972. This will make Peer class lightweight and uses less memory for peers
  8973. which are not connected and wait in the queue.
  8974. * src/PeerChokeCommand.cc
  8975. * src/PeerSessionResource.{h, cc}
  8976. * src/PeerInteractionCommand.cc
  8977. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8978. * src/DefaultBtInteractive.cc
  8979. * src/BtPieceMessage.cc
  8980. * src/BtInterestedMessage.cc
  8981. * src/BtUnchokeMessage.cc
  8982. * src/DefaultPeerStorage.{h, cc}
  8983. * src/PeerInitiateConnectionCommand.cc
  8984. * src/ActivePeerConnectionCommand.cc
  8985. * src/BtNotInterestedMessage.cc
  8986. * src/DefaultBtMessageDispatcher.cc
  8987. * src/BtChokeMessage.cc
  8988. * src/BtRequestMessage.cc
  8989. * src/Peer.{h, cc}
  8990. * src/BtRegistry.h
  8991. * src/TrackerWatcherCommand.cc
  8992. * src/PeerReceiveHandshakeCommand.cc
  8993. * test/BtExtendedMessageTest.cc
  8994. * test/BtAllowedFastMessageTest.cc
  8995. * test/BtCancelMessageTest.cc
  8996. * test/DefaultPieceStorageTest.cc
  8997. * test/BtBitfieldMessageTest.cc
  8998. * test/BtHaveMessageTest.cc
  8999. * test/BtNotInterestedMessageTest.cc
  9000. * test/BtRequestMessageTest.cc
  9001. * test/PeerSessionResourceTest.cc
  9002. * test/DefaultBtMessageDispatcherTest.cc
  9003. * test/PeerTest.cc
  9004. * test/BtInterestedMessageTest.cc
  9005. * test/BtRejectMessageTest.cc
  9006. * test/BtChokeMessageTest.cc
  9007. * test/DefaultPeerStorageTest.cc
  9008. * test/BtHaveNoneMessageTest.cc
  9009. * test/BtHaveAllMessageTest.cc
  9010. * test/DefaultExtensionMessageFactoryTest.cc
  9011. * test/BtUnchokeMessageTest.cc
  9012. * test/DefaultBtMessageFactoryTest.cc
  9013. * test/HandshakeExtensionMessageTest.cc
  9014. * test/UTPexExtensionMessageTest.cc
  9015. * test/DefaultBtRequestFactoryTest.cc
  9016. * test/BtPieceMessageTest.cc
  9017. Removed typedef PeerStats.
  9018. * src/PeerStat.h
  9019. * src/SegmentMan.cc
  9020. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9021. Added std namespace to copy, remove_copy, back_inserter,
  9022. front_inserter.
  9023. * src/RequestGroupMan.cc
  9024. * src/DefaultPieceStorage.cc
  9025. * src/StreamFileAllocationEntry.cc
  9026. * src/BtFileAllocationEntry.cc
  9027. * src/RequestGroup.cc
  9028. * src/MetalinkEntry.cc
  9029. * src/DelegatingPeerListProcessor.cc
  9030. * src/DefaultBtRequestFactory.cc
  9031. * src/DefaultBtMessageDispatcher.cc
  9032. * src/version_usage.cc: Included <algorithm>
  9033. * src/main.cc
  9034. * src/MetalinkParserController.cc
  9035. * src/DefaultBtContext.cc
  9036. * src/DownloadEngineFactory.cc
  9037. * src/a2algo.h
  9038. Removed.
  9039. * test/StreamUriListParserTest.cc
  9040. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9042. ActivePeerConnectionCommand when it is given and
  9043. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9044. * src/ActivePeerConnectionCommand.{h, cc}
  9045. * src/BtSetup.cc
  9046. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Only add socket to DownloadEngine's select routine when peer or
  9048. localhost is unchoked and interested. This lowers CPU usage a
  9049. little bit.
  9050. * src/PeerInteractionCommand.cc
  9051. * src/PeerAbstractCommand.{h, cc}
  9052. * src/BtInteractive.h
  9053. * src/DefaultBtInteractive.{h, cc}
  9054. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9055. Revert previous change because get_peers message is needed for
  9056. announce_peer anyway.
  9057. * src/DHTGetPeersCommand.cc
  9058. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9059. Request peers thought DHT only when download hasn't finished.
  9060. * src/DHTGetPeersCommand.cc
  9061. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9063. * src/DHTBucketRefreshTask.{h, cc}
  9064. * src/DHTSetup.cc
  9065. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9067. standard classes.
  9068. Included string.h where mem* function are used.
  9069. Added namespace aria2.
  9070. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9071. Create directory before saving DHT routing table.
  9072. Now ios::failure is now handled properly.
  9073. * src/DHTAutoSaveCommand.cc
  9074. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Removed unnecessary cerr.
  9076. * src/DownloadEngine.cc
  9077. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. Catch exception inside DHTMessageReceiver::receiveMessage().
  9079. Log unknown message.
  9080. * src/DHTMessageReceiver.{h, cc}
  9081. * src/DHTMessageFactory.h
  9082. * src/DHTMessageFactoryImpl.{h, cc}
  9083. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9084. * src/DHTInteractionCommand.cc
  9085. * src/DHTUnknownMessage.{h, cc}
  9086. * test/DHTUnknownMessageTest.cc
  9087. * test/MockDHTMessageFactory.h
  9088. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9089. Commented out ip address comparison because a host can have multiple
  9090. ip addresses and it is hard to predict the hostname is resolved into
  9091. which one.
  9092. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9093. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. * po/Makefile.in: Removed since this is generated by configure.
  9095. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Fixed compiler warning about redefinition of SIZE_MAX.
  9097. Use common.h instead of config.h directly here.
  9098. * src/Platform.{h, cc}
  9099. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9100. here.
  9101. * common.h
  9102. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9103. Updated gettext related files.
  9104. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9105. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9106. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. Added DHT functionality, compatible with mainline.
  9108. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9109. You may need to specify entry point to DHT network using
  9110. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9111. Use --dht-listen-port to specify port number. Make sure that your
  9112. firewall configuration can pass through UDP traffic to the port.
  9113. The routing table is saved in $HOME/.aria2/dht.dat.
  9114. * src/DHT*
  9115. * src/BNode.{h, cc}
  9116. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9117. particular torrent.
  9118. * src/Data.cc: Rewritten ctor.
  9119. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9120. --dht-entry-point.
  9121. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9122. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9123. ends, remove BtContext from DHTPeerAnnounceStorage.
  9124. * src/BtPortMessage.{h, cc}: Rewritten.
  9125. * src/message.h
  9126. * src/OptionHandlerImpl.cc
  9127. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9128. --dht-entry-point.
  9129. * src/Dictionary.{h, cc} (remove): New function.
  9130. * src/prefs.h
  9131. * src/DefaultBtMessageFactory.h
  9132. * src/BtHandshakeMessage.cc
  9133. * src/ActivePeerConnectionCommand.cc
  9134. * src/SocketCore.{h, cc}: Added datagram socket support.
  9135. * src/DefaultBtMessageFactory.cc
  9136. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9137. Create DHT commands.
  9138. * src/BtMessageFactory.h
  9139. * src/PeerMessageUtil.{h, cc}
  9140. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9141. Fixed the bug that log file is not written when configuration file doesn't exist.
  9142. This is caused by using Logger class before LogFactory is not configured.
  9143. BUG #1875079
  9144. * src/option_processing.cc
  9145. Warning message "configuration doesn't exist" is only printed when --conf is
  9146. given.
  9147. * src/option_processing.cc
  9148. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9150. ShaVisitor is now deprecated and slated to be removed.
  9151. * src/DefaultBtContext.cc
  9152. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. Externalize message to message.h
  9154. * src/Platform.cc
  9155. * src/message.h
  9156. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Set default domain and default path to cookie.
  9158. * src/HttpResponse.cc
  9159. * src/CookieBox.{h, cc}
  9160. * src/CookieParser.{h, cc}
  9161. * test/CookieParserTest.cc
  9162. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9163. Added --no-conf and --conf-path command-line option.
  9164. --no-conf option disables loading aria2.conf file.
  9165. --conf-path option changes the configuration file path. The default
  9166. file path is $HOME/.aria2/aria2.conf
  9167. Added a warning message when the configuration file is not found.
  9168. * src/HelpItemFactory.cc
  9169. * src/option_processing.cc
  9170. * src/prefs.h
  9171. * src/usage_text.h
  9172. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9173. Added the message to inform users that other help categories are
  9174. available in -h option.
  9175. * src/version_usage.cc
  9176. * src/TagContainer.{h, cc}
  9177. * test/TagContainerTest.cc
  9178. * src/TaggedItem.{h, cc}
  9179. * test/TaggedItemTest.cc
  9180. * src/HelpItem.h
  9181. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9183. from PiecedSegment's ctor.
  9184. Previously Piece::getAllMissingBlockIndexes() is called from
  9185. PiecedSegment() but it is rather expensive since only first element is
  9186. used.
  9187. * src/PiecedSegment.cc
  9188. * src/Piece.{h, cc}
  9189. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9191. each time these functions are called.
  9192. * src/BitfieldMan.{h, cc}
  9193. * test/BitfieldManTest.cc
  9194. * src/array_fun.h
  9195. * test/array_funTest.cc
  9196. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9197. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9198. filtered. Removed unnecessary cast to int32_t.
  9199. * src/BitfieldMan.{h, cc}
  9200. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9202. payload length(4bytes) are received. This happens because lenbufLength
  9203. is not updated in this particular case and successive call of
  9204. receiveMessage() overwrites payload length with bytes recieved which
  9205. are payload body.
  9206. * src/PeerConnection.{h, cc}
  9207. * src/message.h
  9208. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9210. peer if there are peers that have same ipaddr and port.
  9211. I've experiened segmentation fault and "pure virtual function was
  9212. called" error.
  9213. * src/Peer.h
  9214. * test/PeerTest.cc
  9215. * src/DefaultPeerStorage.cc
  9216. * test/DefaultPeerStorageTest.cc
  9217. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9218. Removed a call to isPowerOf() because it is no longer necessary here
  9219. and a request block is not always power of 2.
  9220. BUG#1866924
  9221. * src/PeerMessageUtil.cc (checkLength)
  9222. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9223. Fixed the bug that always first found Segment is removed from
  9224. usedSegmentEntries. Removed unused functions.
  9225. * src/SegmentMan.{h, cc}
  9226. * test/SegmentManTest.cc
  9227. Fixed the bug that ServerHost is not removed.
  9228. * src/RequestGroup.cc
  9229. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9230. Fixed the bug that SegmentMan::completeSegment() is not called
  9231. even if Segment is complete when --lowest-speed-limit is enabled.
  9232. BUG#1864525
  9233. * src/DownloadCommand.{h, cc}
  9234. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9235. Fixed: hash algorithm 'sha1' is always used.
  9236. * src/DownloadCommand.cc (validatePieceHash)
  9237. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9238. Added --enable-peer-exchange command-line option.
  9239. * src/OptionHandlerFactory.cc
  9240. * src/HelpItemFactory.cc
  9241. * src/option_processing.cc
  9242. * src/usage_text.h
  9243. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Move extension from BtRuntime to ExtensionMessageFactory, because
  9245. extension can be specified per peer, not per torrent.
  9246. * src/DefaultBtInteractive.cc
  9247. * src/BtRuntime.h
  9248. * src/ExtendedMessagingAware.h
  9249. * src/ExtensionMessageFactory.h
  9250. * src/DefaultExtensionMessageFactory.cc
  9251. * test/DefaultExtensionMessageFactoryTest.cc
  9252. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9253. Added categorized option help. Specify category using --help option.
  9254. Also added the ability to search options in forward match.
  9255. * src/HelpItem.{h, cc}
  9256. * test/HelpItemTest.cc
  9257. * src/HelpItemFactory.{h, cc}
  9258. * src/TagContainer.{h, cc}
  9259. * test/TagContainerTest.cc
  9260. * src/option_processing.cc
  9261. * src/prefs.h
  9262. * src/TaggedItem.{h, cc}
  9263. * test/TaggedItemTest.cc
  9264. * src/version_usage.cc
  9265. * src/help_tags.h
  9266. * src/usage_text.h
  9267. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. Fixed segmentation fault when bad torrent metainfo is parsed.
  9269. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9270. and then throw exception or skip it.
  9271. * src/DefaultBtContext.{h, cc}
  9272. * test/DefaultBtContextTest.cc
  9273. * src/AnnounceList.cc
  9274. * src/CompactPeerListProcessor.cc
  9275. * src/message.h
  9276. * src/DefaultBtAnnounce.{h, cc}
  9277. * test/DefaultBtAnnounceTest.cc
  9278. * src/BencodeVisitor.cc
  9279. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9280. Added missing "B"(=Byte). So now the message looks like this:
  9281. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9282. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9283. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Show the seed ratio after torrent downloads.
  9285. For example, after torrent download completed and --seed-time and
  9286. --seed-ratio conditions are fulfilled, following message is printed
  9287. right after "Download complete: .....":
  9288. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9289. * src/RequestGroupMan.cc
  9290. * src/RequestGroup.{h, cc}
  9291. * src/message.h
  9292. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Remove a defunct control file. A defunct control file means that while
  9294. it exists, but the corresponding download file is missing.
  9295. After its removal, a download restarts from the beginning.
  9296. * src/RequestGroup.cc
  9297. * src/message.h
  9298. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Allocate bitfield in Peer when it is really used. More specifically,
  9300. bitfield in Peer is allocated after the connection is established and
  9301. deallocated when the connection is dropped.
  9302. Since 2 parameters(piece length and total length) was removed from the
  9303. constructor of Peer class, many test classes were modified accordingly.
  9304. See svn log for more detailed information.
  9305. * src/PeerInteractionCommand.cc
  9306. * src/CompactPeerListProcessor.cc
  9307. * src/Peer.cc
  9308. * src/DefaultPeerListProcessor.cc
  9309. * src/PeerListenCommand.cc
  9310. * src/PeerReceiveHandshakeCommand.cc
  9311. Fixed memory leak
  9312. * src/Piece.cc
  9313. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9315. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9316. command-line options.
  9317. * src/option_processing.cc
  9318. * src/ActivePeerConnectionCommand.cc
  9319. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9320. Send have message to peer if it already has the piece.
  9321. * src/BtHaveMessage.{h, cc}
  9322. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9323. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9324. port.
  9325. * src/DefaultPeerStorage.{h, cc}
  9326. * test/DefaultPeerStorageTest.cc
  9327. * src/HandshakeExtensionMessage.cc
  9328. * test/HandshakeExtensionMessageTest.cc
  9329. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9330. * src/PeerStorage.h
  9331. * test/MockPeerStorage.h
  9332. * src/PeerListenCommand.cc
  9333. * src/PeerReceiveHandshakeCommand.cc
  9334. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Added --metalink-enable-unique-protocol option.
  9336. * src/Metalink2RequestGroup.cc
  9337. * src/option_processing.cc
  9338. * src/prefs.h
  9339. * src/version_usage.cc
  9340. * doc/aria2c.1.txt
  9341. * doc/aria2c.1
  9342. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Allow a peer in incomingPeer to be added peers.
  9344. * src/DefaultPeerStorage.cc
  9345. * test/DefaultPeerStorageTest.cc
  9346. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9348. I could reproduce this bug in following procedure:
  9349. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9350. 2. Restart aria2.
  9351. 3. You see the download stopped around 99%.
  9352. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9353. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9354. If timeout is reached, then _nextCommand is unused and it may contains
  9355. segments and they won't be canceled. Actually, timeout is not needed
  9356. here because if the server dropped connection, then retry is made.
  9357. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Added uTorrent compatible Peer Exchange.
  9359. * src/BencodeVisitor.{h, cc}
  9360. * test/BencodeVisitorTest.cc
  9361. * src/BtConstants.h
  9362. * src/BtContext.h: Added 'private' flag.
  9363. * src/BtExtendedMessage.{h, cc}
  9364. * test/BtExtendedMessageTest.cc
  9365. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9366. reserved field.
  9367. * test/BtHandshakeMessageTest.cc
  9368. * src/BtMessageFactory.h
  9369. * src/BtRegistry.h
  9370. * src/BtRuntime.h: This class holds default extension message IDs for
  9371. aria2. By default, aria2 uses ID 8 for ut_pex.
  9372. * src/DefaultBtContext.cc
  9373. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9374. When it is true, aria2 enables ut_pex. This value is set by
  9375. PeerInteractionCommand.
  9376. * src/DefaultBtMessageFactory.{h, cc}
  9377. * test/DefaultBtMessageFactoryTest.cc
  9378. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9379. handling to DefaultBtInteractive class.
  9380. * src/DefaultExtensionMessageFactory.{h, cc}
  9381. * test/DefaultExtensionMessageFactoryTest.cc
  9382. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9383. the container(peers and incomingPeers. The equality is determined by
  9384. Peer::id).
  9385. * test/DefaultPeerStorageTest.cc
  9386. * src/ExtensionMessage.h
  9387. * test/MockExtensionMessage.h
  9388. * src/ExtensionMessageFactory.h
  9389. * test/MockExtensionMessageFactory.h
  9390. * src/HandshakeExtensionMessage.{h, cc}
  9391. * test/HandshakeExtensionMessageTest.cc
  9392. * src/MetaEntry.h
  9393. * src/Peer.{h, cc}
  9394. * src/PeerInteractionCommand.cc
  9395. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9396. addIncomingPeer.
  9397. * src/PeerMessageUtil.{h, cc}
  9398. * src/PeerObject.h
  9399. * src/UTPexExtensionMessage.{h, cc}
  9400. * test/UTPexExtensionMessageTest.cc
  9401. * src/message.h
  9402. * src/prefs.h
  9403. Fixed the bug that returns incomplete data when it contains null
  9404. character. A convenient constructor was also added.
  9405. * src/Data.{h, cc}
  9406. Rewritten.
  9407. * src/CompactPeerListProcessor.cc
  9408. Fixed typos.
  9409. * src/message.h
  9410. * src/MetaFileUtil.cc
  9411. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9412. Added "Status Legend" label to the explanation text of 'stat' in
  9413. download result and moved it to the last. BUG#1848214
  9414. * src/RequestGroupMan.cc
  9415. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9416. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9417. * src/Makefie.am
  9418. * test/Makefile.am
  9419. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9420. Fixed the bug that prevents aria2 from loading cookie file when expire
  9421. value is greater than 2^31-1. BUG#1851066
  9422. * src/CookieBoxFactory.cc
  9423. * test/CookieBoxFactoryTest.cc
  9424. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9425. Fixed possible memory leak when an exception is thrown.
  9426. * src/XML2SAXMetalinkProcessor.cc
  9427. Added Expat support. If both libxml2 and Expat are installed, then
  9428. libxml2 is used by default.
  9429. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9430. ExpatMetalinkProcessor according to the configuration.
  9431. * src/ExpatMetalinkProcessor.{h, cc}
  9432. * src/main.cc: Removed libxml2 specific header and init/free function.
  9433. * src/MetalinkProcessorFactory.{h, cc}
  9434. * src/MetalinkHelper.cc
  9435. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9436. * src/MetalinkProcessor.h
  9437. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9438. MetalinkProcessorTest is used instead.
  9439. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9440. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9441. MetalinkProcessorFactory::newInstance().
  9442. * m4/libexpat.m4
  9443. * configure.ac: Added configuration options for libexpat.
  9444. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9445. Disabled -s option in metalink download.
  9446. * src/Metalink2RequestGroup.cc
  9447. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. If several protocols are available for a mirror in metalink file,
  9449. aria2 now use one of them. --metalink-preferred-protocol option was
  9450. added to specify the preference of protocol.
  9451. * src/AbstractCommand.cc
  9452. * src/OptionHandlerFactory.cc
  9453. * src/ServerHost.{h, cc}
  9454. * src/Metalink2RequestGroup.cc
  9455. * src/RequestGroup.{h, cc}
  9456. * test/RequestGroupTest.cc
  9457. * src/option_processing.cc
  9458. * src/prefs.h
  9459. * src/HttpResponseCommand.cc
  9460. * src/MetalinkResource.{h, cc}
  9461. * src/FtpNegotiationCommand.cc
  9462. * src/MetalinkEntry.{h, cc}
  9463. * src/MetalinkEntryTest.cc
  9464. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9465. Code cleanup and added debug log.
  9466. * src/PeerConnection.cc
  9467. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9468. Compiler error fix: applied the patch by Tiziano Mueller
  9469. * src/RequestGroup.cc
  9470. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9472. in stopped and completed event.
  9473. * src/AnnounceList.{h, cc}
  9474. * test/AnnounceListTest.cc
  9475. * src/DefaultBtAnnounce.cc
  9476. * test/DefaultBtAnnounceTest.cc
  9477. Sorted URLs.
  9478. * test/Metalink2RequestGroupTest.cc
  9479. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9480. Removed unnecessary string copy. Updated doc and corrected indentation.
  9481. * src/Base64.cc
  9482. Fixed compilation warnings
  9483. * test/DataTest.cc
  9484. * test/HttpRequestTest.cc
  9485. * test/MetaFileUtilTest.cc
  9486. * test/RequestTest.cc
  9487. * Release 0.12.0
  9488. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. Updated translations
  9490. * po/{de,fr,ja,nl,ru}.po
  9491. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9492. translations. Many thanks to translators.
  9493. * po/{ca,es,it,pt_BR,sv}.po
  9494. * po/LINGUAS
  9495. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9496. Added a notice about URL
  9497. * src/version_usage.cc
  9498. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9499. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9500. aria2 repeatedly sends stopped request when tracker returns error code.
  9501. * src/AnnounceList.cc
  9502. * test/AnnounceListTest.cc
  9503. * src/AnnounceTier.h
  9504. Added a message when ctrl-c is hit.
  9505. Now second ctrl-c is also handled in signal handler.
  9506. * src/RequestGroupMan.{h, cc}
  9507. * src/RequestGroup.{h, cc}
  9508. * src/MultiUrlRequestInfo.cc
  9509. * src/DownloadEngine.cc
  9510. * src/TrackerWatcherCommand.cc
  9511. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Code cleanup
  9513. * src/Base64.cc (encode)
  9514. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Changed Direct/IO enable/disable procesure in file allocation routine.
  9516. * src/SingleFileAllocationIterator.cc
  9517. (SingleFileAllocationIterator):
  9518. Disable directIO if offset is not multiple of 512.
  9519. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9520. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9521. Enable created SingleFileAllocationIterator's directIO.
  9522. * src/FileAllocationEntry.cc
  9523. (FileAllocationEntry): Enable directIO here.
  9524. (~FileAllocationEntry): Disable directIO here.
  9525. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9526. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9527. * src/Peer.{h, cc}
  9528. * src/DefaultPieceStorage.cc
  9529. * test/DefaultPieceStorageTest.cc
  9530. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9531. Rewritten direct I/O support routine
  9532. * src/SingleFileAllocationIterator.cc
  9533. * src/MultiDiskAdaptor.{h, cc}
  9534. * src/ByteArrayDiskWriter.h
  9535. * src/AbstractSingleDiskAdaptor.h
  9536. * src/AbstractDiskWriter.cc
  9537. * src/DefaultPieceStorage.cc
  9538. * src/DiskWriter.h
  9539. * src/BinaryStream.h
  9540. * src/IteratableChunkChecksumValidator.cc
  9541. * src/IteratableChecksumValidator.cc
  9542. * src/CheckIntegrityEntry.cc
  9543. * src/FileAllocationEntry.cc
  9544. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. Fixed typo
  9546. * src/version_usage.cc
  9547. Updated doc
  9548. * doc/aria2c.1.txt
  9549. * doc/aria2c.1
  9550. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9551. Fixed compile error without message digest support.
  9552. * src/FileMetalinkParserState.cc
  9553. * src/MetalinkParserController.{h, cc}
  9554. * test/XML2SAXMetalinkProcessorTest.cc
  9555. * test/MetalinkParserControllerTest.cc
  9556. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9557. Enable direct I/O support in checksum checking.
  9558. * src/IteratableChunkChecksumValidator.{h, cc}
  9559. * test/IteratableChunkChecksumValidatorTest.cc
  9560. * src/CheckIntegrityEntry.cc
  9561. * src/PieceHashCheckIntegrityEntry.cc
  9562. * src/IteratableChecksumValidator.{h, cc}
  9563. * src/BtCheckIntegrityEntry.cc: Added doc.
  9564. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9565. Added --allow-piece-length-change option.
  9566. * src/DefaultBtProgressInfoFile.cc
  9567. * test/DefaultBtProgressInfoFileTest.cc
  9568. * src/OptionHandlerFactory.cc
  9569. * src/option_processing.cc
  9570. * src/prefs.h
  9571. * src/version_usage.cc
  9572. * doc/aria2c.1.txt
  9573. * doc/aria2c.1
  9574. Fixed: duplicated result entry appears when exception is thrown in
  9575. RequestGroup::createInitiateConnectionCommand().
  9576. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9577. Add RequestGroup to _requestGroup after RequetGroup::
  9578. createInitiateConnectionCommand() succeeds.
  9579. Externalized message
  9580. * src/XML2SAXMetalinkProcessor.cc
  9581. * src/message.h
  9582. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Forced download abort when received negative response from http/ftp
  9584. server.
  9585. * src/HttpResponseCommand.cc
  9586. * src/FtpNegotiationCommand.cc
  9587. * src/HttpResponse.cc
  9588. * src/FtpConnection.cc
  9589. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9590. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9591. the predecessor, Xml2MetalinkParser class.
  9592. I tested them against 94KB metalink file with 1234 chunk checksums.
  9593. The new one parsed it in 22msec, while it took 6000msec with old one.
  9594. * src/XML2SAXMetalinkProcessor.{h, cc}
  9595. * test/XML2SAXMetalinkProcessorTest.cc
  9596. * src/MetalinkParserController.{h, cc}
  9597. * test/MetalinkParserControllerTest.cc
  9598. * src/MetalinkParserState.h: Also added 16 subclasses.
  9599. * src/main.cc
  9600. * src/Metalink2RequestGroup.cc
  9601. * src/MetalinkHelper.cc
  9602. * src/MetalinkEntry.cc
  9603. * src/ChunkChecksum.h
  9604. Rewritten Base64 class for better performance.
  9605. * src/Base64.{h, cc}
  9606. * test/Base64Test.cc
  9607. * src/HttpRequest.cc
  9608. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9609. Fixed the bug#1841757: aria2 will connect to server to only get
  9610. file size.
  9611. * src/StreamFileAllocationEntry.cc
  9612. * src/option_processing.cc
  9613. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9614. downloads.
  9615. * src/FtpNegotiationCommand.cc
  9616. Suppressed wrong message when finding PreDownloadHandler
  9617. * src/RequestGroup.cc
  9618. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9619. Updated usage
  9620. * src/version_usage.cc
  9621. Updated man page
  9622. * doc/aria2c.1.txt
  9623. * doc/aria2c.1
  9624. Updated po files
  9625. * po/aria2c.pot
  9626. * po/*.po
  9627. * po/*.gmo
  9628. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9629. Eliminated g++-4.2 warning
  9630. * src/DownloadHandlerConstants.{h, cc}
  9631. * src/Util.cc
  9632. * test/MetaFileUtilTest.cc
  9633. * test/PStringBuildVisitorTest.cc
  9634. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9635. * src/RequestGroup.cc
  9636. * src/BtCheckIntegrityEntry.cc
  9637. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. Fixed a2io.h
  9639. * src/a2io.h
  9640. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9641. Added direct I/O support. The current implementation uses O_DIRECT,
  9642. which is not posix standard and is tested on linux 2.6.21.
  9643. Currently only file allocation uses direct I/O.
  9644. * src/SingleFileAllocationIterator.{h, cc}
  9645. * test/SingleFileAllocationIteratorTest.cc
  9646. * src/MultiFileAllocationIterator.{h, cc}
  9647. * test/MultiFileAllocationIteratorTest.cc
  9648. * src/BinaryStream.h
  9649. * src/DiskWriter.h
  9650. * src/AbstractDiskWriter.{h, cc}
  9651. * src/ByteArrayDiskWriter.h
  9652. * src/DiskAdaptor.h
  9653. * src/AbstractSingleDiskAdaptor.{h, cc}
  9654. * src/MultiDiskAdaptor.{h, cc}
  9655. * src/FileAllocationEntry.cc
  9656. * src/Util.{h, cc}
  9657. * src/OptionHandlerFactory.cc
  9658. * src/prefs.h
  9659. * src/version_usage.cc
  9660. * src/option_processing.cc
  9661. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9662. handleException.
  9663. * src/MultiFileAllocationIterator.cc
  9664. Added EINTR handling
  9665. * src/SocketCore.cc
  9666. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9667. Updated usage
  9668. * src/version_usage.cc
  9669. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. Applied Ross's patch for MinGW port.
  9671. * src/DownloadEngine.h
  9672. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9673. Set Content-Type to SingleFileDownloadContext when http response is
  9674. received.
  9675. * src/HttpResponseCommand.cc
  9676. * src/HttpResponse.{h, cc}
  9677. * test/HttpResponseTest.cc
  9678. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9679. Rewritten to add content-type support.
  9680. * src/DownloadHandler.{h, cc}
  9681. * src/BtPostDownloadHandler.{h, cc}
  9682. * test/BtPostDownloadHandlerTest.cc
  9683. * src/MetalinkPostDownloadHandler.{h, cc}
  9684. * test/MetalinkPostDownloadHandlerTest.cc
  9685. * src/PostDownloadHandler.{h, cc}
  9686. * src/DownloadHandlerConstants.{h, cc}
  9687. * src/RequestGroup.cc
  9688. * src/HttpResponseCommand.cc
  9689. * src/FtpNegotiationCommand.cc
  9690. * src/SingleFileDownloadContext.{h, cc}
  9691. * src/RequestGroup.h
  9692. * src/RequestGroupCriteria.h
  9693. * src/ContentTypeRequestGroupCriteria.h
  9694. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9695. If it is give, metalink/torrent file is not written to the disk, but
  9696. just is kept in memory. Parsing is occurred on memory.
  9697. * src/MetalinkHelper.{h, cc}
  9698. * src/MetalinkProcessor.h
  9699. * src/Xml2MetalinkProcessor.{h, cc}
  9700. * test/Xml2MetalinkProcessorTest.cc
  9701. * src/DownloadHandlerFactory.{h, cc}
  9702. * test/DownloadHandlerFactoryTest.cc
  9703. * src/PreDownloadHandler.{h, cc}
  9704. * src/OptionHandlerFactory.cc
  9705. * src/DefaultBtContext.{h, cc}
  9706. * test/DefaultBtContextTest.cc
  9707. * src/version_usage.cc
  9708. * src/Metalink2RequestGroup.{h, cc}
  9709. * src/RequestGroup.{h, cc}
  9710. * src/a2functional.h
  9711. * test/a2functionalTest.cc
  9712. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9713. * src/OptionHandlerImpl.h
  9714. * src/prefs.h
  9715. * src/Util.{h, cc}
  9716. * test/UtilTest.cc
  9717. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9718. memory usage.
  9719. * src/RequestGroupMan.{h, cc}
  9720. * src/DownloadEngine.cc
  9721. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9722. WeakHandle to SharedHandle because WeakHandle could be null.
  9723. * src/RequestGroup.{h, cc}
  9724. * src/DownloadEngineFactory.cc
  9725. * src/DownloadResult.h
  9726. Set totalLength after download finished
  9727. * src/UnknownLengthPieceStorage.{h, cc}
  9728. Keep torrent file specified in metalink in memory.
  9729. * src/Metalink2RequestGroup.cc
  9730. * src/BtDependency.cc
  9731. * src/TrueRequestGroupCriteria.h
  9732. Fixed the bug: seekg is used where seekp should be used.
  9733. * src/ByteArrayDiskWriter.cc
  9734. * test/ByteArraydiskWriterTest.cc
  9735. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. Fixed syntax error
  9737. * test/SequenceTest.cc
  9738. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9739. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9740. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9741. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9742. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9743. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9744. Added the check to see whether ares_host_callback accepts timeouts
  9745. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9746. * src/NameResolver.{h, cc}
  9747. * m4/libcares.m4
  9748. * configure.ac: Set C++ for language choice.
  9749. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Fixed: compilation fails without c-ares/ares
  9751. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9752. Generate http/ftp commands only when download is incomplete.
  9753. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9754. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9755. Corrected typo. Examples are removed since they are available in man
  9756. page.
  9757. * src/version_usage.cc
  9758. Updated man page.
  9759. * doc/aria2c.1
  9760. * doc/aria2c.1.txt
  9761. * doc/makeman: Commented out sed command.
  9762. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. Throw DlAbortEx when a remote file is not found.
  9764. * src/HttpResponse.cc
  9765. * src/FtpNegotiationCommand.cc
  9766. * src/message.h
  9767. Overwrite an existing file if --allow-overwrite=true is given.
  9768. * src/RequestGroup.cc
  9769. Removed unused functions
  9770. * src/AbstractCommand.h
  9771. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Removed 'extern' from 'extern typedef ...' in src/*.h
  9773. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9774. Updated usage
  9775. * src/version_usage.cc
  9776. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9777. Trim announce URL
  9778. * src/DefaultBtContext.cc
  9779. * test/ShaVisitorTest.cc
  9780. Trim argument s. Give trimed s to exception constructor.
  9781. * src/Util.cc (parseInt)(parseLLInt)
  9782. * test/UtilTest.cc
  9783. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9784. Set precision back to 1.
  9785. * src/ConsoleStatCalc.cc (calculateStat)
  9786. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9787. Replaced strtol with Util::parseInt
  9788. * src/ChunkedEncoding.cc
  9789. * src/HttpConnection.cc
  9790. * src/CookieBoxFactory.cc
  9791. * src/ParameterizedStringParser.cc
  9792. * src/Util.cc
  9793. * test/UtilTest.cc
  9794. * test/OptionHandlerTest.cc
  9795. * src/Request.cc
  9796. Throw exception when empty string is given. The message for exception
  9797. changed.
  9798. * src/Util.cc (parseInt)(parseLLInt)
  9799. * src/message.h
  9800. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9801. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9802. set to 1.
  9803. * src/ConsoleStatCalc.cc (calculateStat)
  9804. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Preallocate non-requested file which is adjacent forward to requested
  9806. file('requested' files means the files given in --select-file option)
  9807. if they share a same piece.
  9808. This fixes long pause in the file system which doesn't support sparse
  9809. files like FAT32 while downloading.
  9810. * src/MultiFileAllocationIterator.{h, cc}
  9811. * test/MultiFileAllocationIteratorTest.cc
  9812. * src/FileEntry.{h, cc}
  9813. Removed unused _option.
  9814. * src/MultiDiskAdaptor.h
  9815. * test/MultiDiskAdaptorTest.cc
  9816. * src/DefaultPieceStorage.cc
  9817. Set the default value of --seed-ratio to 1.0.
  9818. If 0.0 is given, then seeding continues regardless of share ratio.
  9819. * src/version_usage.cc
  9820. * src/option_processing.cc
  9821. * src/BtSetup.cc
  9822. * doc/aria2c.1.txt
  9823. * doc/aria2c.1
  9824. Fixed: Selective download is not working in BitTorrent
  9825. * src/RequestGroup.cc
  9826. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9827. * src/PieceStorage.h
  9828. * test/MockPieceStorage.h
  9829. * src/UnknownLengthPieceStorage.h
  9830. * src/DefaultPieceStorage.{h, cc}
  9831. * src/Metalink2RequestGroup.cc
  9832. * src/RequestGroup.cc
  9833. * src/Sequence.h
  9834. * test/SequenceTest.cc
  9835. * src/IntSequence.h
  9836. * src/message.h
  9837. * src/Util.{h, cc}
  9838. * test/UtilTest.cc
  9839. Added new function 'parse' to catch exception thrown by subclass's
  9840. parseArg
  9841. * src/OptionHandler.h
  9842. * src/OptionParser.cc
  9843. * src/NameMatchOptionHandler.h
  9844. * src/OptionHandlerImpl.h
  9845. * test/OptionHandlerTest.cc
  9846. Added IntegerRangeOptionHandler. Used for --listen-port and
  9847. --select-file. Now --listen-port accepts range of port.
  9848. * src/OptionHandlerFactory.cc
  9849. * src/version_usage.cc
  9850. * src/OptionHandlerImpl.h
  9851. * src/option_processing.cc
  9852. * src/BtSetup.cc
  9853. * src/PeerListenCommand.{h, cc}
  9854. * doc/aria2c.1.txt
  9855. * doc/aria2c.1
  9856. Implemented operator< for Exception class to provide easy way to print
  9857. exception stack trace.
  9858. * src/Exception.{h, cc}
  9859. * src/main.cc
  9860. * src/option_processing.cc
  9861. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9862. * src/version_usage.cc
  9863. (showVersion): Reworked.
  9864. (showUsage): Added examples.
  9865. Removed Hint for total length and file name.
  9866. * src/Metalink2RequestGroup.cc
  9867. * src/RequestGroup.{h, cc}
  9868. * src/HttpResponseCommand.cc
  9869. * src/FtpNegotiationCommand.cc
  9870. Now --follow-torrent and --follow-metalink option work properly.
  9871. * src/RequestGroup.cc
  9872. Updated man page
  9873. * doc/aria2c.1.txt
  9874. * doc/aria2c.1
  9875. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Removed.
  9877. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9878. Use Segment::operator==()
  9879. * src/HttpConnection.cc
  9880. * src/Segment.h
  9881. Updated usage
  9882. * src/version_usage.cc
  9883. Added EINTR treatment.
  9884. * src/SocketCore.cc
  9885. * src/AbstractDiskWriter.cc
  9886. Rewritten.
  9887. * src/Util.cc (rangedFileCopy)
  9888. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Fixed typo.
  9890. * src/version_usage.cc
  9891. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. Implemented. Now -c option works fine.
  9893. * src/DefaultPieceStorage.cc (markPiecesDone)
  9894. * test/DefaultPieceStorageTest.cc
  9895. Removed.
  9896. * src/SegmentMan.{h, cc}
  9897. (markAllPiecesDone)
  9898. (markPieceDone)
  9899. Synchronized po files with
  9900. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9901. * src/fr.po
  9902. * src/ru.po
  9903. * src/de.po
  9904. * src/ja.po
  9905. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9906. Added ifdef and some modifications to compile without BitTorrent,
  9907. Metalink, MessageDigest
  9908. support.
  9909. * src/PieceHashCheckIntegrityEntry.cc
  9910. * src/MetalinkEntry.h
  9911. * src/version_usage.cc
  9912. * src/main.cc
  9913. * src/DownloadEngine.{h, cc}
  9914. * src/Metalink2RequestGroup.cc
  9915. * src/Peer.cc
  9916. * src/RequestGroup.cc
  9917. * src/MetalinkHelper.cc
  9918. * test/DefaultPieceStorageTest.cc
  9919. * test/MetalinkPostDownloadHandlerTest.cc
  9920. * test/Metalink2RequestGroupTest.cc
  9921. Hide TOTAL SPD when all downloads complete.
  9922. * src/ConsoleStatCalc.cc
  9923. Log target system information.
  9924. * src/main.cc
  9925. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9926. Now --metalink-location accepts a comma-deliminated list of locations.
  9927. * src/MetalinkEntry.{h, cc}
  9928. * test/MetalinkEntryTest.cc
  9929. * src/version_usage.cc
  9930. * src/Metalink2RequestGroup.cc
  9931. * src/Xml2MetalinkProcessor.cc
  9932. * test/Xml2MetalinkProcessorTest.cc
  9933. * doc/aria2c.1.txt
  9934. * doc/aria2c.1
  9935. * src/Util.cc (toUpper)(toLower): Rewritten.
  9936. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9937. Added the ability to detect duplicate download entry which is about to
  9938. download the same file other RequestGroup is downloading.
  9939. * src/RequestGroup.cc
  9940. * src/HttpResponseCommand.cc
  9941. * src/FtpNegotiationCommand.cc
  9942. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9943. Recalculates download progress when loading a control file,
  9944. if the piece length of DownloadContext is different from the one saved
  9945. in the control file. Currently in-flight pieces are ignored.
  9946. * src/DefaultBtProgressInfoFile.cc
  9947. * test/DefaultBtProgressInfoFileTest.cc
  9948. * src/Util.{h, cc}
  9949. * test/UtilTest.cc
  9950. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9951. Do not rotate tiers in announce-list.
  9952. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9953. AnnounceList::allTiersFailed() used instead to detect whether all
  9954. tiers are tried and failed.
  9955. * test/DefaultBtAnnounceTest.cc
  9956. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9957. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9958. * test/AnnounceListTest.cc
  9959. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9960. clause. Catch RecoverableException instead of DlRetryEx instead.
  9961. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9962. Implemented checksum validation feature(1 checksum for each file)
  9963. The validation takes place after the download.
  9964. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9965. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9966. * src/CheckIntegrityCommand.cc: Changed log message.
  9967. * src/Metalink2RequestGroup.cc: Set checksum to
  9968. SingleFileDownloadContext.
  9969. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9970. PieceHashCheckIntegrity class.
  9971. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9972. PieceHashCheckIntegrity class.
  9973. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9974. * src/IteratableValidator.h: New class.
  9975. * src/message.h
  9976. * src/CheckIntegrityEntry.{h, cc}
  9977. * src/IteratableChunkChecksumValidator.{h, cc}
  9978. * src/SingleFileDownloadContext.h
  9979. * src/DownloadCommand.cc
  9980. --allow-overwrite=true is no longer needed to check file integrity
  9981. before download in BitTorrent download.
  9982. * src/RequestGroup.cc (getInitialCommand)
  9983. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9984. throws exception.
  9985. * src/RequestGroupMan.cc (getInitialCommands)
  9986. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9987. urlencode the given url inside Request::parseUrl(...)
  9988. * src/Request.{h, cc}
  9989. * src/Util.{h, cc}
  9990. * test/RequestTest.cc
  9991. Removed #!metalink3! notation support because it is deleted from
  9992. the metalink specification.
  9993. * src/Request.{h, cc}
  9994. * test/RequestTest.cc
  9995. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9996. Don't connect server before checking file integrity at startup, if
  9997. filesize and output file path are known.
  9998. * src/AbstractCommand.cc
  9999. * src/StreamFileAllocationEntry.cc
  10000. * src/Metalink2RequestGroup.cc
  10001. * src/RequestGroup.{h, cc}
  10002. * src/HttpResponseCommand.cc
  10003. * src/FtpNegotiationCommand.cc
  10004. Added DownloadFailureException. If it is thrown, RequestGroup should
  10005. halt.
  10006. * src/AbstractCommand.cc
  10007. * src/DownloadFailureException.h
  10008. * src/RequestGroup.cc
  10009. Catch RecoverableException, instead of DlAbortEx.
  10010. * src/RequestGroupMan.cc
  10011. * src/FillRequestGroupCommand.cc
  10012. * src/MetaFileUtil.cc
  10013. * src/IteratableChunkChecksumValidator.cc
  10014. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10015. getGID())
  10016. * src/CheckIntegrityCommand.cc
  10017. * src/message.h
  10018. Print gid instead of idx.
  10019. * src/RequestGroupMan.cc
  10020. Removed exception throwers declaration.
  10021. * src/DirectDiskAdaptor.{h, cc}
  10022. * src/SocketCore.{h, cc}
  10023. * src/MultiDiskAdaptor.{h, cc}
  10024. * src/HttpConnection.{h, cc}
  10025. * src/HttpResponse.{h, cc}
  10026. * src/DiskAdaptor.{h, cc}
  10027. * src/CopyDiskAdaptor.{h, cc}
  10028. * src/MultiDiskAdaptor.{h, cc}
  10029. * src/HttpHeaderProcessor.{h, cc}
  10030. * src/AbstractSingleDiskAdaptor.{h, cc}
  10031. * src/Util.{h, cc}
  10032. * test/UtilTest.cc
  10033. * src/DefaultDiskWriter.{h, cc}
  10034. * src/FtpConnection.{h, cc}
  10035. * src/AbstractDiskWriter.{h, cc}
  10036. Removed duplicate code.
  10037. * src/StreamCheckIntegrityEntry.cc
  10038. Removed unnecessary include.
  10039. * src/DiskWriter.h
  10040. Included Exception.h
  10041. * src/option_processing.cc
  10042. Included 2 files and added doc
  10043. * src/TrackerWatcherCommand.cc
  10044. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10045. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10046. Changed CheckIntegrityEntry interface so that it can define
  10047. the action when all the chunk checksums are valid.
  10048. * src/CheckIntegrityEntry.h
  10049. * src/StreamCheckIntegrityEntry.{h, cc}
  10050. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10051. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10052. to exit rather than doing seeding. So, it would be good to toggle this
  10053. behavior.
  10054. * src/CheckIntegrityCommand.cc
  10055. * src/AbstractCommand.cc
  10056. * src/RequestGroup.cc
  10057. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10058. Reflect the download length of in-flight pieces.
  10059. It makes the download length readout more precise.
  10060. * src/DefaultPieceStorage.{h, cc}
  10061. * test/DefaultPieceStorageTest.cc
  10062. * src/a2functional.h
  10063. * test/a2functionalTest.cc
  10064. Lower CPU load when --max-download-limit is used.
  10065. There is up and down in speed indicator when enabling
  10066. http-pipelining but a download goes well. I think the problem is that
  10067. because http-pipelining is enabled, DownloadCommand is created for
  10068. each segment and in its constructor, PeerStat::downloadStart() is
  10069. called. In PeerStat::downloadStart(), speed calculation object is
  10070. reseted, which makes download speed zero.
  10071. * src/DownloadCommand.cc
  10072. Rewritten using accumulate.
  10073. * src/RequestGroupMan.cc (calculateStat)
  10074. Code clearnup.
  10075. * src/FtpNegotiationCommand.cc
  10076. * src/HttpResponseCommand.cc
  10077. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10078. Fixed: Can not resume: aria2 reports download already finished.
  10079. * src/AbstractCommand.{h, cc}
  10080. * src/HttpResponseCommand.cc
  10081. * src/FtpNegotiateCommand.cc
  10082. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10083. Now a file is stored in the directory specified in .metalnk file
  10084. (file[@name]).
  10085. * src/Metalink2RequestGroup.cc
  10086. Create the directory structure when opening the file if it doesn't
  10087. exist.
  10088. * src/AbstractDiskWriter.cc
  10089. * src/Util.{h, cc}
  10090. * src/File.h
  10091. * test/UtilTest.cc
  10092. Removed file name comparison
  10093. * src/Metalink2RequestGroup.cc
  10094. * src/HttpResponseCommand.cc
  10095. Rewritten using Util::mkdirs()
  10096. * src/FileEntry.cc (setupDir)
  10097. * test/FileEntryTest.cc
  10098. Updated doc
  10099. * src/SingleFileDownloadContext.h
  10100. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Now SleepCommand dispatches nextCommand when halt is requested.
  10102. It avoids a possible long wait after hitting CTRL-C.
  10103. * src/SleepCommand.{h, cc}
  10104. * src/RequestGroupAware.{h, cc}
  10105. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10106. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10107. to open listen port, then remove the port number from the tracker
  10108. request.
  10109. * src/DefaultBtAnnounce.cc
  10110. * test/DefaultBtAnnounceTest.cc
  10111. * test/MockPieceStorage.h
  10112. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10113. them more testable.
  10114. * src/DefaultBtAnnounce.{h, cc}
  10115. * src/DefaultBtContext.{h, cc}
  10116. * src/Util.{h, cc}
  10117. * test/DefaultBtAnnounceTest.cc
  10118. * test/DefaultBtContextTest.cc
  10119. * test/UtilTest.cc
  10120. Added 'B' to upload bytes readout.
  10121. * src/ConsoleStatCalc.cc
  10122. Now the listen port for BitTorrent download is opened when it is
  10123. needed.
  10124. * src/DownloadEngineFactory.cc
  10125. * src/BtSetup.{h, cc}
  10126. * src/PeerListenCommand.{h, cc}
  10127. Now an exception thrown while parsing tracker response is now logged.
  10128. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10129. called, which means no retry is made in this case, assuming a tracker
  10130. has a problem.
  10131. * src/TrackerWatcherCommand.cc
  10132. Fixed: downloading a file whose length is unkown fails.
  10133. * src/DownloadCommand.cc
  10134. Simplified prepareForNextSegment()
  10135. * src/DownloadCommand.cc
  10136. Updated
  10137. * po/POTFILES.in
  10138. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Re-implemented a file listing for Metalink, which was dropped while
  10140. http/ftp/torrent integration was being implemented.
  10141. * src/MetalinkHelper.{h, cc}: New class.
  10142. * test/MetalinkHelperTest.cc
  10143. * src/main.cc
  10144. * src/Metalink2RequestGroup.cc
  10145. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10146. Added the ability to display the detailed torrent file information.
  10147. Now -S option gives not only a file listing, but also total download
  10148. length, info hash, announce URI, piece length, the number of pieces,
  10149. and mode(single or multi-torrent).
  10150. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10151. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10152. KiB)
  10153. * test/UtilTest.cc
  10154. * src/main.cc
  10155. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Added ftp://USER:PASSWD@Servername automatic parsing.
  10157. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10158. _password. Recognize username and password in URI.
  10159. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10160. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10161. * src/RequestFactory.{h, cc}: Removed.
  10162. * src/AuthConfigFactory.{h, cc}: New class.
  10163. * src/FtpConnection.cc: Use AuthConfigFactory.
  10164. * src/HttpRequest.cc: Use AuthConfigFactory.
  10165. * test/HttpRequestTest.cc: Updated.
  10166. * test/RequestTest.cc: Updated.
  10167. * test/AuthConfigFactoryTest.cc: New class.
  10168. * test/RequestFactoryTest.cc: Removed.
  10169. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10170. Use RequestGroup::allDownloadFinished() to decide whether the control
  10171. file should be removed or saved.
  10172. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10173. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10174. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10175. Use File::renameTo()
  10176. * src/DefaultBtProgressInfoFile.cc
  10177. Added --no-file-allocation-limit command-line option.
  10178. * src/version_usage.cc
  10179. * src/option_processing.cc
  10180. * src/OptionHandlerFactory.cc
  10181. * src/RequestGroup.{h, cc}
  10182. * src/BtCheckIntegrityEntry.cc
  10183. * src/StreamCheckIntegrityEntry.cc
  10184. * src/prefs.h
  10185. * doc/aria2c.1.txt
  10186. * doc/aria2c.1
  10187. Now prealloc is the default value for --file-allocation option.
  10188. * src/version_usage.cc
  10189. * src/option_processing.cc
  10190. * doc/aria2c.1.txt
  10191. * doc/aria2c.1
  10192. Don't URL-encode user-agent.
  10193. * src/HttpRequest.cc
  10194. Updated translations
  10195. * po/LINGUAS: Added nl for Dutch translation.
  10196. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10197. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10198. * po/POTFILES.in: Updated.
  10199. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10200. Added the ability to recognize url-list in a torrent file.
  10201. The retrieved URLs are attached to the corresponding FileEntry.
  10202. * src/DefaultBtContext.{h, cc}
  10203. * src/FileEntry.{h, cc}
  10204. * test/DefaultBtContextTest.cc
  10205. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10206. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10207. after the download finishes.
  10208. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10210. the data smaller than block length.
  10211. A block length can be specified by constructor's argument.
  10212. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10213. Get a missing piece in the range of given FileEntry. This function is
  10214. not used in the program yet.
  10215. * src/Util.h: Added some macros.
  10216. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. Added HTTP/1.1 keep alive and pipelining support.
  10218. See --enable-http-keep-alive and --enable-http-pipelining option.
  10219. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10220. Segment.
  10221. * src/HttpDownloadCommand.{h, cc}
  10222. * src/OptionHandlerFactory.cc
  10223. * src/HttpConnection.{h, cc}
  10224. * src/version_usage.cc
  10225. * src/HttpInitiateConnectionCommand.cc
  10226. * src/FtpInitiateConnectionCommand.cc
  10227. * src/Segment.h
  10228. * src/HttpRequestCommand.{h, cc}
  10229. * src/option_processing.cc
  10230. * src/prefs.h
  10231. * src/HttpResponseCommand.cc
  10232. * src/SegmentMan.{h, cc}
  10233. * src/FtpNegotiateCommand.cc
  10234. * src/HttpProxyResponseCommand.cc
  10235. * src/Request.cc
  10236. * src/HttpRequest.cc
  10237. * src/DownloadCommand.cc
  10238. * test/HttpRequestTest.cc
  10239. * test/RequestTest.cc
  10240. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10241. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10242. finished.
  10243. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10244. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10245. catching it inside the method.
  10246. When no file entry is found in a metalink without querying user
  10247. preferences, throw the exception with the error message that suggests
  10248. metalink file is probably broken.
  10249. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10250. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10251. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10252. processed.
  10253. * src/RequestGroupMan.cc (removeStoppedGroup)
  10254. Added debug message.
  10255. * src/BtPostDownloadHandler.cc
  10256. * src/MetalinkPostDownloadHandler.cc
  10257. * src/PostDownloadHandler.{h, cc}
  10258. * src/RequestGroup.cc
  10259. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10260. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10261. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10263. stops and there are any unfinished or in-progress downloads.
  10264. Added the legend of "stat".
  10265. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10266. Throw exception when chunck checksum verification fails.
  10267. * src/DownloadCommand.cc (validatePieceHash): New function.
  10268. * src/PiecedSegment.{h, cc} (clear): New function.
  10269. * src/GrowSegment.{h, cc} (clear): New function.
  10270. * src/Segment.h (clear): New function.
  10271. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10272. * test/SegmentTest.cc
  10273. * test/GrowSegmentTest.cc
  10274. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10275. Do not send referer when redirected.
  10276. * src/Request.cc (redirectUrl)
  10277. * test/RequestTest.cc
  10278. * test/HttpRequestTest.cc
  10279. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. Implemented BitTorrent/http/ftp integrated download.
  10281. I've rewritten lots of files and now some headers have forward
  10282. class declarations to reduce compile time.
  10283. The implementation is extremely alpha stage, I recommend to use this
  10284. for testing purpose only.
  10285. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Fixed the compilation error on 64bit platform.
  10287. * test/HttpHeaderProcessorTest.cc
  10288. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Merged Ross's patch that fixes compilation problem in MinGW
  10290. * test/DefaultBtProgressInfoFileTest.cc
  10291. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10292. Updated fr.po by sebone
  10293. * po/fr.po
  10294. Updated man page.
  10295. * doc/aria2c.1.txt
  10296. * Release 0.11.3
  10297. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10298. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10299. failure in Metalink.
  10300. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10301. Automatically save *.aria2 control file of http/ftp download in every
  10302. 60 seconds.
  10303. * src/AutoSaveCommand.{h, cc}: New class.
  10304. * src/TimeBasedCommand.{h, cc}: New class.
  10305. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10306. Disable parameterized URI support by default. Added -P option to
  10307. enable the feature.
  10308. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10309. * src/OptionHandlerFactory.cc
  10310. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10311. Updated Japanese translation.
  10312. * po/ja.po
  10313. Updated man page.
  10314. * doc/aria2c.1.txt
  10315. * Release 0.11.3-rc
  10316. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10317. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10318. it is successful, then renamed to *.aria2.
  10319. This prevents *.aria2 file from being truncated or corrupted when
  10320. file system becomes out of space.
  10321. * src/DefaultBtProgressInfoFile.cc (save)
  10322. * src/SegmentMan.cc (save)
  10323. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10324. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10325. Reduced the fragmentation of bitfield in http/ftp download.
  10326. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10327. * test/BitfieldManTest.cc
  10328. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10329. Added the ability to disable segmented download in .metalink.
  10330. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10331. 'url' tag.
  10332. * src/MetalinkEntry.{h, cc}
  10333. * src/RequestResource.{h, cc}
  10334. * src/MetalinkRequestInfo.cc
  10335. * src/Xml2MetalinkProcessor.cc
  10336. * test/Xml2MetalinkProcessorTest.cc
  10337. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Added parameterized URI support.
  10339. * src/main.cc: -Z option added.
  10340. * src/OptionHandlerFactory.cc
  10341. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10342. * src/PStringDatum.h: New class.
  10343. * src/PStringSegment.{h,cc}: New class.
  10344. * src/PStringNumLoop.h: New class.
  10345. * src/PStringSelect.h: New class.
  10346. * src/NumberDecorator.h: New class.
  10347. * src/FixedWidthNumberDecorator.h: New class.
  10348. * src/AlphaNumberDecorator.h: New class.
  10349. * src/PStringVisitor.h: New class.
  10350. * src/PStringBuildVisitor.{h,cc}: New class.
  10351. * src/ParameterizedStringParser.{h,cc}: New class.
  10352. * src/Util.{h,cc}
  10353. (isNumber): New function.
  10354. (isLowercase): New function.
  10355. (isUppercase): New function.
  10356. (alphaToNum): New function.
  10357. * test/ParameterizedStringParserTest.cc: New class.
  10358. * test/AlphaNumberDecoratorTest.cc: New class.
  10359. * test/PStringBuildVisitorTest.cc: New class.
  10360. * test/UtilTest.cc
  10361. (testIsNumber): New function.
  10362. (testIsLowercase): New function.
  10363. (testIsUppercase): New function.
  10364. (testAlphaToNum): New function.
  10365. Added '\n' after the error message
  10366. * src/RequestInfo.h (printDownloadAbortMessage)
  10367. Added auto file renaming feature in http(s)/ftp download.
  10368. * src/main.cc: Added --auto-file-renaming command-line option.
  10369. * src/OptionHandlerFactory.cc
  10370. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10371. * src/RequestGroup.{h, cc}
  10372. (shouldCancelDownloadForSafety): Rewritten
  10373. (tryAutoFileRenaming): New function.
  10374. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10375. * src/HttpResponseCommand.cc
  10376. (executeInternal): Removed the call to RequestGroupMan::
  10377. isSameFileBeingDownloaded()
  10378. * src/FtpNegotiateCommand.cc
  10379. (recvSize): Removed the call to RequestGroupMan::
  10380. isSameFileBeingDownloaded()
  10381. * test/RequestGroupTest.cc: New class.
  10382. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10384. IO.
  10385. * src/DefaultBtProgressInfoFile.cc
  10386. * src/MetaFileUtil.cc
  10387. * src/SimpleLogger.cc
  10388. * src/SegmentMan.cc
  10389. * src/Util.cc
  10390. * src/Platform.cc
  10391. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10393. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10394. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10395. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10396. Fixed the bug that prevents file allocation is not done when
  10397. dowloading multi-torrent file.
  10398. * src/AbstractDiskWriter.cc (openFile)
  10399. Increase the maximum number of -j option from 15 to 45.
  10400. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10401. Added fr.po, thanks to Charles Landemaine.
  10402. * po/fr.po
  10403. * po/LINGUAS
  10404. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10405. gcc 3.4.4 support:
  10406. * src/DefaultBtContext.cc: int32_t -> int
  10407. * src/main.cc: int -> int32_t, int32_t -> int
  10408. * src/messageDigest.h: uint32_t -> unsigned int
  10409. * src/NameResolver.h: int32_t -> int
  10410. * src/PeerConnection.cc: int -> int32_t
  10411. * src/SpeedCalc.cc: int32_t -> int
  10412. * src/TrackerUpdateCommand.h: int -> int32_t
  10413. * src/Util.cc: int32_t -> int
  10414. * src/Util.h: int32_t -> int
  10415. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10416. * test/AnnounceListTest.cc: int -> int32_t
  10417. * test/ChunkedEncodingTest.cc: int -> int32_t
  10418. * test/DataTest.cc: int -> int32_t
  10419. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10420. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10421. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10422. * test/FeatureConfigTest.cc: int -> int32_t
  10423. * test/MetalinkEntryTest.cc: int -> int32_t
  10424. * test/MockBtRequestFactory.h: int -> int32_t
  10425. * test/MockPieceStorage.h: int -> int32_t
  10426. * test/OptionTest.cc: int -> int32_t
  10427. * test/RequestTest.cc: int -> int32_t
  10428. * test/SegmentManTest.cc: int -> int32_t
  10429. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10430. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10431. Move sleep functions to Util class:
  10432. * src/Util.cc
  10433. (sleep): New function.
  10434. (usleep): New function.
  10435. * src/DownloadCommand.cc: sleep -> Util::sleep
  10436. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10437. MinGW build enhancements. The following files are added:
  10438. * src/timegm.{c,h}
  10439. Changes to support the above new files:
  10440. * configure.ac
  10441. * src/Makefile.am
  10442. * src/a2time.h
  10443. * src/Util.cc:
  10444. * src/strptime.c: Added support for %Z option.
  10445. Fixed MinGW non-blocking bug.
  10446. * src/SocketCore.cc
  10447. * src/HttpRequestCommand.cc
  10448. Miscellenous build fixes/enhancements.
  10449. * configure.ac: Added summary report.
  10450. * src/Platform.h: Tweaked #include's.
  10451. * src/a2netcompat.h: Tweaked #include's.
  10452. * src/strptime.h: Tweaked #include's.
  10453. * src/gai_strerror.c: Tweaked #include's.
  10454. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10455. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10456. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10457. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10458. Increased the initial connection size in BitTorrent download to 40.
  10459. * src/BtRuntime.h
  10460. Added the usage message of --peer-id-prefix option.
  10461. * src/main.cc
  10462. * Release 0.11.2
  10463. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10464. MessageDigestHelper is introduced in order to simplify the use
  10465. of message digest. Removed repeated code.
  10466. The message digest algorithm is now specified by string, like "sha1",
  10467. "md5".
  10468. * src/messageDigest.{h, cc}
  10469. * src/MessageDigestHelper.{h, cc}: New class.
  10470. * src/DefaultPieceStorage.cc
  10471. * src/DefaultBtContext.{h, cc}
  10472. (computeFastSet): New function.
  10473. (setInfoHash): Added for unit testing.
  10474. (setNumPieces): Added for unit testing.
  10475. * src/DefaultBtInteractive.cc
  10476. * src/BtPieceMessage.cc
  10477. * src/Peer.cc
  10478. * src/Checksum.h
  10479. * src/message.h
  10480. * src/IteratableChecksumValidator.h
  10481. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10482. inside it.
  10483. * src/SegmentMan.{h, cc}
  10484. (checkIntegrity): Removed.
  10485. * src/IteratableChunkChecksumValidator.{h, cc}
  10486. * src/Util.h
  10487. (sha1Sum): Removed.
  10488. (simpleMessageDigest): Removed.
  10489. (fileChecksum): Removed.
  10490. (computeFastSet): Removed.
  10491. * src/ShaVisitor.cc
  10492. * src/ChunkChecksum.h
  10493. * src/DownloadCommand.cc
  10494. Removed messageDigest virtual functions.
  10495. * src/MultiDiskAdaptor.{h, cc}
  10496. * src/DiskAdaptor.h
  10497. * src/ByteArrayDiskWriter.h
  10498. * src/DiskWriter.h
  10499. * src/DiskAdaptorWriter.h
  10500. * src/AbstractSingleDiskAdaptor.{h, cc}
  10501. * src/AbstractDiskWriter.{h, cc}
  10502. Fixed comilation error when message digest is disabled.
  10503. * src/MetalinkEntry.{h, cc}
  10504. * src/MetalinkRequestInfo.cc
  10505. Removed srandom and random.
  10506. * src/SimpleRandomizer.h
  10507. Added size() virtual function to DiskAdaptor
  10508. * src/MultiDiskAdaptor.h
  10509. Fixed the bug that causes that files are not opened correctly in
  10510. multi-file torrent.
  10511. * src/TorrentRequestInfo.cc
  10512. * src/MultiDiskAdaptor.cc
  10513. Added SHA256 support
  10514. * src/messageDigest.cc
  10515. * src/Xml2MetalinkProcessor.cc
  10516. Show supported message digest algorithms
  10517. * src/main.cc
  10518. Updated contact info.
  10519. * src/main.cc
  10520. Applied Ross's patch
  10521. * src/a2netcompat.h
  10522. * src/main.cc
  10523. Fixed the bug that prevents a remote metalink from not being processed
  10524. even if '-o foo.metalink' is specified.
  10525. * src/MetalinkRequestInfo.cc
  10526. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Merged Dan's patch:
  10528. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10529. Use va_copy to avoid core dump on amd64:
  10530. * src/SimpleLogger.cc
  10531. Updated contact info.
  10532. * src/main.cc
  10533. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10534. digest is not available.
  10535. * src/MetalinkEntry.h
  10536. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10537. Make a2netcompat.h include a2io.h to fix compilation error:
  10538. * src/a2netcompat.h
  10539. * src/SocketCore.cc: Removed include of a2io.h
  10540. * src/Util.cc: Removed include of a2io.h
  10541. Gather time related functions to a2time.h:
  10542. * src/a2time.h: New file.
  10543. * src/DefaultPeerStorage.cc
  10544. * src/SimpleLogger.cc
  10545. * src/Util.{h, cc}
  10546. * src/SimpleRandomizer.h
  10547. * src/TimeA2.{h,cc}
  10548. * src/DownloadCommand.cc
  10549. * src/main.cc
  10550. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10551. a2netcompat.h:
  10552. * src/NameResolver.cc
  10553. Fixed compilation error without openssl:
  10554. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10555. Added default block to suppress compiler warnings:
  10556. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10557. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10558. MinGW build enhancements. The following files are added:
  10559. * src/gai_strerror.{c,h}
  10560. * src/gettimeofday.{c,h}
  10561. Changes to support the above new files:
  10562. * configure.ac
  10563. * src/Makefile.am
  10564. * src/a2netcompat.h
  10565. * src/TimeA2.cc
  10566. * src/DefaultPeerStorage.cc
  10567. * src/NameResolver.cc: removed mingw_strerror() function.
  10568. * src/SocketCore.cc: removed mingw_strerror() function.
  10569. Miscellaneous MinGW build fixes.
  10570. * src/a2io.h: Use _lseeki64() instead of lseek()
  10571. * src/common.h
  10572. * src/DefaultFileAllocator.cc
  10573. * src/GlowFileAllocator.cc
  10574. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10575. * src/NameResolver.cc
  10576. (callback): Changed int32_t to int.
  10577. (resolve): Changed int32_t to int.
  10578. * src/Platform.cc
  10579. * src/Platform.h
  10580. * test/MultiDiskWriterTest.cc
  10581. * test/PeerMessageUtilTest.cc
  10582. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10583. Other enhancements and fixes.
  10584. * src/HttpRequestCommand.cc
  10585. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10586. * src/SocketCore.cc:
  10587. (error): New function to abstract errno/WSAGetLastError().
  10588. (errorMsg): New function to abstract errno/WSAGetLastError().
  10589. (initiateSecureConnection): Added more detailed error reporting.
  10590. * src/SocketCore.h: Added private variable blocking, to allow
  10591. proper handling of OpenSSL psuedo-errors.
  10592. * src/message.h
  10593. (EX_SSL_INIT_FAILURE)
  10594. (EX_SSL_IO_ERROR)
  10595. (EX_SSL_PROTOCOL_ERROR)
  10596. (EX_SSL_UNKNOWN_ERROR)
  10597. (EX_SSL_CONNECT_ERROR)
  10598. (EX_SOCKET_BLOCKING)
  10599. (EX_SOCKET_NONBLOCKING)
  10600. (EX_SOCKET_UNKNOWN_ERROR)
  10601. * src/Util.cc
  10602. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10603. reserved name.
  10604. (httpGMT): Fixed typo.
  10605. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10606. Merged Ross's win32 patch(manually)
  10607. In the course of merging, following files are added.
  10608. * src/strptime.{h,c}
  10609. * src/libgen.{h,c}
  10610. * src/inet_aton.{h,c}
  10611. * src/Platform.{h,cc}
  10612. * src/localtime_r.{h,c}
  10613. * src/getaddrinfo.{h,c}
  10614. I've gethered network related things, and put them to following file:
  10615. * src/a2netcompat.h
  10616. Also io related things are put to following file:
  10617. * src/a2io.h
  10618. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10619. * src/message.h
  10620. (MSG_ALLOCATION_COMPLETED)
  10621. (EX_TOO_LARGE_FILE)
  10622. (EX_SIZE_MISMATCH)
  10623. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10624. (EX_INVALID_CHUNK_CHECKSUM)
  10625. (EX_INVALID_RANGE_HEADER)
  10626. * src/FileAllocationCommand.cc
  10627. * src/HttpResponse.cc
  10628. * src/RequestGroup.cc
  10629. * src/MultiDiskAdaptor.cc
  10630. * src/OptionHandlerImpl.h
  10631. * src/HttpResponseCommand.cc
  10632. * src/FtpNegotiateCommand.cc
  10633. * src/IteratableChecksumValidator.cc
  10634. * src/SegmentMan.cc
  10635. * src/ChunkChecksumValidator.cc
  10636. Added Randomizer::getRandomNumber(long int)
  10637. * src/Randomizer.h (getRandomNumber)
  10638. * src/SimpleRandomizer.h (getRandomNumber)
  10639. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10640. * src/Util.cc (randomAlpha): Use this new function.
  10641. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. Converted int's to in32_t. long long int's are also converted to
  10643. int64_t
  10644. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. Fixed the bug that prevents cookies from being sent to the server
  10646. if the domain of cookie is FQDN and starts with ".".
  10647. * src/Cookie.cc (match)
  10648. To add the ability to change peer id.
  10649. * src/DefaultBtContext.h
  10650. (_peerIdPrefix): New variable
  10651. (setPeerIdPrefix): New function.
  10652. * src/torrentRequestInfo.cc
  10653. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10654. DefaultBtContext.
  10655. * src/main.cc (main): Added peer-id-prefix command-line option.
  10656. The usage message is not added yet.
  10657. * src/DefaultBtContext.cc
  10658. (generatePeerId): Use _peerIdPrefix.
  10659. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10660. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10661. Fixed the bug that prevents filename in content-disposition from
  10662. being retrieved when filename is not quoted.
  10663. * src/Util.cc (getContentDispositionFilename)
  10664. Fixed the bug that causes infinate loop and memory leak when file open
  10665. operation failed.
  10666. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10667. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10668. Fixed the bug that causes segfault when all URIs specified are
  10669. unsupported.
  10670. * src/RequestGroupMan.cc (getInitialCommands)
  10671. Check if RequestGroup::createNextCommand() returns empty list of
  10672. commands.
  10673. * src/RequestGroup.cc (createNextCommand)
  10674. Change log level from info to error so that users can notice that
  10675. an error occurred.
  10676. Fixed the bug that causes segfault when a zero-sized file is
  10677. downloaded.
  10678. * src/BitfieldMan.cc (isAllBitSet)
  10679. Return true if bitfieldLength is 0.
  10680. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10681. * src/main.cc
  10682. (showUsage): Added 3 usage examples for metalink download.
  10683. Replace MetalinkChunkChecksum with ChunkChecksum.
  10684. * src/MetalinkChunkChecksum.h: Removed.
  10685. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10686. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10687. * src/Xml2MetalinkProcessor.cc
  10688. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10689. * src/MetalinkRequestInfo.cc (execute)
  10690. * Release 0.11.1
  10691. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10692. Reads URIs from stdin when "-i -" is specified.
  10693. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10694. * src/UriListParser.h, src/UriListParser.cc: New class.
  10695. * src/StreamUriListParser.h: New class.
  10696. * src/FileUriListParser.h: New class.
  10697. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10698. instead of UriFileListParser.
  10699. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10700. Made console readout more readable.
  10701. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10702. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10703. Fix the bug that causes -s option not to work.
  10704. * src/main.cc (main)
  10705. * src/a2algo.h: New file.
  10706. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10707. Create directory structure specified in metalink file.
  10708. * src/RequestGroup.h, src/RequestGroup.cc
  10709. (initAndOpenFile): Create a directory to store files if it does not
  10710. exist.
  10711. (getDir): New function.
  10712. Added ETA and download speed for an individual file to readout.
  10713. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10714. * src/RequestGroup.h
  10715. (calculateDownloadSpeed): New function.
  10716. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10717. Made -S option work with metalink file and provided selective download
  10718. to metalink.
  10719. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10720. (filename): Removed.
  10721. (file): New variable.
  10722. (size): Removed.
  10723. (operator=): Updated.
  10724. (getPath): New function.
  10725. (getLength): New function.
  10726. (toFileEntry): New function.
  10727. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10728. (execute): Use toStream.
  10729. (showFileEntry): Removed.
  10730. * src/MetalinkRequestInfo.h
  10731. (targetFiles): New variable.
  10732. (setTargetFiles): New variable.
  10733. * src/MetalinkRequestInfo.cc
  10734. (execute): Added the ability to print file information included in
  10735. a metalink file.
  10736. Added selective download mode to metalink.
  10737. * src/main.cc
  10738. (showUsage): Updated to denote that -S and --select-file options are
  10739. applicable to metalink.
  10740. * src/FileEntry.h
  10741. (operator=): New function.
  10742. (getBasename): New function.
  10743. (getDirname): New function.
  10744. * src/Util.h, src/Util.cc
  10745. (toStream): New function.
  10746. * src/Xml2MetalinkProcessor.cc: Updated.
  10747. Made aria2 work with metalink with directory structure.
  10748. * src/File.h, src/File.cc
  10749. (getBasename): New function.
  10750. (getDirname): New function.
  10751. * src/RequestGroup.h, src/RequestGroup.cc
  10752. (_topDir): New variable.
  10753. (setTopDir): New function.
  10754. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10755. Rewrote HTTP header parsing with stringstream.
  10756. * src/HttpConnection.h, src/HttpConnection.cc
  10757. (HttpRequestEntry): New class.
  10758. (headerBuf): Removed.
  10759. (headerBufLength): Removed.
  10760. (outstandingHttpRequests): Now its element type is
  10761. HttpRequestEntryHandle.
  10762. (findEndOfHeader): Removed.
  10763. (receiveResponse): Rewritten.
  10764. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10765. Updated doc for -j option to notice that it should be used with -i
  10766. option.
  10767. * src/main.cc (showUsage)
  10768. Removed unused classes.
  10769. * src/RequestInfo.h
  10770. (FileInfo): Removed.
  10771. (checksum): Removed.
  10772. (fileInfo): Removed.
  10773. (setChecksum): Removed.
  10774. (getChecksum): Removed.
  10775. (getFileInfo): Removed.
  10776. Use ISO units.
  10777. * src/ConsoleDownloadEngine.cc
  10778. * src/TorrentConsoleDownloadEngine.cc
  10779. * src/Util.cc (abbrevSize)
  10780. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10781. Added the default listening ports to the help message.
  10782. * src/main.cc (showUsage)
  10783. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10784. Reduce the number of calls to gettimeofday to lower CPU load.
  10785. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10786. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10787. * src/Peer.h (calculateUploadSpeed): New function.
  10788. (calculateDownloadSpeed): New function.
  10789. * src/DefaultPeerStorage.cc
  10790. (CalculateStat): Added _now variable.
  10791. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10792. and Peer::calculateUploadSpeed(const struct timeval&)
  10793. Drop connection if no request or piece message is exchanged in
  10794. a certain interval.
  10795. * src/DefaultBtInteractive.h
  10796. (btRuntime): New variable.
  10797. (inactiveCheckPoint): New variable.
  10798. (checkActiveInteraction): New function.
  10799. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10800. request or piece message is received.
  10801. (checkActiveInteraction): New function.
  10802. (doInteractionProcessing): Call checkActiveInteraction.
  10803. Fixed the bug that causes remote Metalink and Torrent files are not
  10804. processed.
  10805. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10806. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10807. Changed format of log file.
  10808. * src/SimpleLogger.cc
  10809. * Release 0.11.0
  10810. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10811. * src/AbstractCommand.cc
  10812. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10813. MSG_MAX_TRY from error to info.
  10814. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10815. * src/message.h
  10816. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10817. (MSG_DOWNLOAD_ABORTED): Added %s.
  10818. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10819. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10820. * src/PeerAbstractCommand.cc
  10821. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10822. * src/Request.h
  10823. (cookieBox): Made ShardHandle.
  10824. * src/RequestGroup.h, src/RequestGroup.cc
  10825. (createNextCommandWithAdj): New function.
  10826. * src/FileAllocationCommand.cc
  10827. (executeInternal): Use createNextCommandWithAdj().
  10828. * src/CheckIntegrityCommand.cc
  10829. (executeInternal): Use createNextCommandWithAdj().
  10830. Added --load-cookies command-option.
  10831. * src/OptionHandlerFactory.cc
  10832. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10833. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10834. Now aria2 can handle cookie's expiration date.
  10835. * src/Cookie.h (expires): Changed its type to time_t.
  10836. * src/main.cc: Added --load-cookies command-line option.
  10837. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10838. * src/Util.h, src/Util.cc (httpGMT): New function.
  10839. * src/Request.cc (Request): Initialize cookieBox using
  10840. CookieBoxFactory.
  10841. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10842. * src/CookieParser.h, src/CookieParser.cc: New class.
  10843. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10844. * src/HttpResponseCommand.cc
  10845. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10846. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10847. download.
  10848. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10849. Added -j command-line option.
  10850. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10851. * src/main.cc
  10852. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10853. Rewritten using stringstream.
  10854. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10855. Rewritten using stringstream.
  10856. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10857. Make download size shown in MB, KB.
  10858. * src/ConsoleDownloadEngine.h (sendStatistics)
  10859. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10860. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10861. Accept incoming connections if download rate is low.
  10862. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10863. (_lowestSpeedLimit): New variable.
  10864. (setLowestSpeedLimit): New function.
  10865. (execute): Accept incoming connections if download rate is low.
  10866. MAX_PEERS is ignored in this case.
  10867. Disable PREF_OUT in multiple concurrent download:
  10868. * src/RequestGroup.h, src/RequestGroup.cc
  10869. (setUserDefinedFilename): New function.
  10870. * src/DownloadEngineFactory.cc
  10871. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10872. concurrent download.
  10873. * src/DefaultSegmentManFactory.cc
  10874. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10875. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10876. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10877. Added its overloaded method.
  10878. * src/RequestGroup.h
  10879. (_numConcurrentCommand): New variable.
  10880. (setNumConcurrentCommand): New function.
  10881. * src/RequestGroup.cc
  10882. Abort download if same file is being downloaded concurrently.
  10883. * src/RequestGroup.h, src/RequestGroupMan.cc
  10884. (isSameFileBeingDownloaded): New function.
  10885. * src/HttpResponseCommand.cc (executeInternal)
  10886. * src/FtpNegotiateCommand.cc (recvSize)
  10887. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10888. * main.cc: Added help message for -i option.
  10889. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10890. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10891. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10892. * src/MetalinkEntry.h
  10893. (checksum): Changed to ChecksumHandle
  10894. * src/MetalinkRequestInfo.cc
  10895. (checksum): Changed to ChecksumHandle
  10896. * src/File.cc
  10897. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10898. * src/common.h
  10899. (DIR_OPEN_MODE): New definition
  10900. * src/RequestGroup.cc
  10901. (prepareForNextAction): Added an argument.
  10902. * src/message.h
  10903. (MSG_GOOD_CHECKSUM): New definition
  10904. (MSG_BAD_CHECKSUM): New definition
  10905. * src/HttpResponseCommand.cc
  10906. (handleDefaultEncoding): Continue download sequence in new
  10907. non-segmented download.
  10908. * src/FileAllocationEntry.h
  10909. (_nextDownloadCommand): New variable.
  10910. * src/DownloadCommand.cc
  10911. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10912. available.
  10913. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10914. * src/IteratableChecksumValidator.h,
  10915. src/IteratableChecksumValidator.cc: New class.
  10916. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10917. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10918. Change file mode to 666:
  10919. * src/common.h (OPEN_MODE): New definition.
  10920. * src/File.cc
  10921. * src/Util.cc
  10922. * src/Directry.cc
  10923. * src/AbstractDiskWriter.cc
  10924. Change the level of log message "download aborted" to debug:
  10925. * src/PeerAbstractCommand.cc (execute)
  10926. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10927. * src/TrackerWatcherCommand.cc
  10928. (createCommand): Sleep some seconds after request failed.
  10929. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10930. then abort tracker request.
  10931. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10932. * Added the simultaneous download feature.
  10933. * src/main.cc: Print "Exception caught: " when exception is caught.
  10934. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10935. * src/ActivePeerConnectionCommand.cc
  10936. * src/PeerInteractionCommand.cc
  10937. * src/BtRuntime.h
  10938. (cuidCounter): Removed.
  10939. (getNewCuid): Removed.
  10940. * src/DownloadEngineFactory.cc
  10941. * src/PeerListenCommand.cc
  10942. * src/TrackerUpdateCommand.cc
  10943. * src/PeerInitiateConnectionCommand.cc
  10944. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. * src/PeerAbstractCommand.cc
  10946. (onAbort): Call PeerStorage::returnPeer()
  10947. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10948. (incomingPeers): New variable.
  10949. (addIncomingPeer): New function.
  10950. (returnPeer): New function.
  10951. (onErasingPeer): New function.
  10952. (addPeer): push_back -> push_front
  10953. (getActivePeers): Rewritten.
  10954. (calculateStat): Rewritten.
  10955. * src/PeerStorage.h
  10956. (TransferStat::copy): New function.
  10957. (TransferStat::TransferStat): New function.
  10958. (TransferStat::operator=): New function.
  10959. (addIncomingPeer): New function.
  10960. (returnPeer): New function.
  10961. * src/PeerListenCommand.cc
  10962. (execute): Use PeerStorage::addIncomingPeer() instead of
  10963. Peer::addPeer().
  10964. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. Connect to a peer actively when download speed is lower than specified
  10966. speed in torrent download:
  10967. * src/ActivePeerConnectionCommand.h: New class.
  10968. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10969. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10970. * src/main.cc: Fixed the bug that prevents download if .netrc
  10971. doesn't exist.
  10972. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10973. To cache resolved hostname:
  10974. * src/AbstractCommand.h, src/AbstractCommand.cc
  10975. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10976. Added dns cache.
  10977. * src/FtpInitiateConnectionCommand.cc
  10978. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10979. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10980. NameResolver working without ares.
  10981. * src/TorrentRequestInfo.cc
  10982. (execute): Don't cache dns in torrent download.
  10983. * src/HttpInitiateConnectionCommand.cc
  10984. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10985. * src/DNSCache.h: New class.
  10986. * src/UrlRequestInfo.cc
  10987. (execute): Use dns cache.
  10988. In http request, suppress port number in http request header if port
  10989. is 80 or 443:
  10990. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10991. request header if port is 80 or 443.
  10992. (createProxyRequest): Allways send port number.
  10993. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10994. To add the command-line option which disables netrc support:
  10995. * src/OptionHandlerFactory.cc
  10996. (createOptionHandlers): Added PREF_NO_NETRC.
  10997. * src/main.cc: Added -n option.
  10998. * src/prefs.h (PREF_NO_NETRC): New definition.
  10999. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11000. V_TRUE.
  11001. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11002. is V_FALSE. This may get configurable in the future release.
  11003. To clear peer's error status by time basis:
  11004. * src/PeerAbstractCommand.cc
  11005. (onAbort): Call Peer::startBadCondition().
  11006. * src/Peer.h, src/Peer.cc
  11007. (error): Removed.
  11008. (_badConditionStartTime): New variable.
  11009. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11010. (startBadCondition): New function.
  11011. (isGood): New function.
  11012. * src/DefaultPeerStorage.cc
  11013. (addPeer): Use Peer::isGood().
  11014. (FindFinePeer): Use Peer::isGood().
  11015. Always include port number in http request header:
  11016. * src/HttpRequest.cc (getHostText): Always include port number in
  11017. http request header.
  11018. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11019. To the ability to read options from a config file:
  11020. * src/main.cc: Command-line parameter validation is delegated to
  11021. OptionHandler class.
  11022. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11023. * src/Option.h, src/Option.cc (clear): New function.
  11024. * src/OptionParser.h, src/OptionParser.cc: New class.
  11025. * src/OptionHandler.h: New class.
  11026. * src/NameMatchOptionHandler.h: New class.
  11027. * src/OptionHandlerImpl.h: New classes.
  11028. * src/prefs.h: '_' -> '-'
  11029. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11030. (FTP_PASV): New definition.
  11031. * src/Util.h, src/Util.cc (getRealSize): New function.
  11032. To disable netrc support if .netrc file does not have correct
  11033. permissions:
  11034. * src/File.h, src/File.cc (mode): New function.
  11035. To prevent confidential information to be logged:
  11036. * src/HttpConnection.h, src/HttpConnection.cc
  11037. (eraseConfidentialInfo): New function.
  11038. (sendRequest): Call eraseConfidentialInfo().
  11039. (sendProxyRequest): Call eraseConfidentialInfo().
  11040. * src/main.cc: Validate permissions of .netrc file.
  11041. To add --user-agent command-line option:
  11042. * src/main.cc: Added new command line option: --user-agent
  11043. * src/prefs.h (PREF_USER_AGENT): New definition.
  11044. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11045. parameter to HttpRequest object.
  11046. * src/AbstractProxyRequestCommand.cc
  11047. (executeInternal): Set user-agent option parameter to HttpRequest
  11048. object.
  11049. Marged the patches from Dan Fandrich.
  11050. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11051. Use filename and size from Metalink file instead of sending HEAD
  11052. request:
  11053. * src/UrlRequestInfo.h
  11054. (_filename): New variable.
  11055. (_totalLength): New variable.
  11056. (setTotalLength): New variable.
  11057. (setFilename): New variable.
  11058. * src/MetalinkRequestInfo.cc
  11059. (execute): Set filename and size to UrlRequestInfo
  11060. * src/UrlRequestInfo.cc
  11061. (execute): Use filename and size from Metalink instead of seding
  11062. HEAD request to servers.
  11063. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11064. To add the ability to resume downloading a partially downloaded file
  11065. which is downloaded from the beginning:
  11066. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11067. takes this role.
  11068. * src/main.cc: Added -c option.
  11069. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11070. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11071. * src/prefs.h (PREF_CONTINUE): New definition.
  11072. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11073. * src/DefaultDiskWriter.cc
  11074. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11075. * src/AbstractDiskWriter.h
  11076. (glowFileAllocator): New variable.
  11077. * src/AbstractDiskWriter.cc
  11078. (openExistingFile): Now preallocate file space from the end of the
  11079. existing file if totalLength argument is specified and grater than 0.
  11080. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11081. to download exists in local, continue the download of the file.
  11082. --allow-overwrite=true is assumed in this context.
  11083. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11084. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11085. Throw exception if --check-integrity=true is specified but chunk
  11086. checksums are not provided:
  11087. * src/UrlRequestInfo.cc
  11088. Do not print URLs to stdout:
  11089. * src/UrlRequestInfo.cc
  11090. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11091. * src/Request.h: Use AuthResolver to get authentication information.
  11092. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11093. set to RequestFactory object.
  11094. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11095. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11096. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11097. create Request object.
  11098. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11099. To integrate Netrc into exsiting classes:
  11100. * src/Request.h
  11101. (_userDefinedAuthConfig): New variable.
  11102. (findNetrcAuthenticator): New function.
  11103. (segment): Removed.
  11104. (setUserDefinedAuthConfig): New function.
  11105. (resolveHttpAuthConfigItem): New function.
  11106. (resolveFtpAuthConfigItem): New function.
  11107. (resolveHttpProxyAuthConfigItem): New function.
  11108. * src/HttpRequest.h
  11109. (authConfig): Removed.
  11110. (proxyAuthConfig): Removed.
  11111. (setAuthConfig): Removed.
  11112. (setProxyAuthConfig): Removed.
  11113. * src/UrlRequest.h
  11114. (getHeadResult): Added a parameter: authConfigHandle
  11115. * src/common.h
  11116. (SingletonHolder.h): New include.
  11117. * src/main.cc
  11118. (Netrc.h): New include.
  11119. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11120. Added initial value of PREF_NETRC_PATH.
  11121. Added the initialization of netrc.
  11122. * src/AuthConfig.h: New class.
  11123. * src/prefs.h
  11124. (PREF_NETRC_PATH): New definition.
  11125. * src/HttpAuthConfig.h: Removed.
  11126. * src/Netrc.cc
  11127. (getRequiredNextToken): New function.
  11128. (skipMacdef): New function.
  11129. (parse): Rewritten.
  11130. * src/Netrc.h
  11131. (getRequiredNextToken): New function.
  11132. (skipMacdef): New function.
  11133. * src/Util.h, src/Util.cc
  11134. (getHomeDir): New function.
  11135. * src/TrackerWatcherComand.cc
  11136. (createRequestCommand): Use AuthConfig.
  11137. * src/FtpConnection.cc
  11138. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11139. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11140. * src/Request.cc
  11141. (findNetrcAuthenticator): New function.
  11142. (resolveHttpAuthConfigItem): New function.
  11143. (resolveFtpAuthConfigItem): New function.
  11144. (resolveHttpProxyAuthConfigItem): New function.
  11145. * src/UrlRequestInfo.cc: Use AuthConfig.
  11146. * src/HttpRequest.cc
  11147. (createRequest): Use authConfig.
  11148. (getProxyAuthString): Use authConfig.
  11149. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11150. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11151. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11152. To reduce overhead to find commands whose socket is either
  11153. readable or writable in the download engine loop:
  11154. * src/Command.h, src/Command.cc
  11155. (STATUS): New enum.
  11156. (status): New variable.
  11157. (statusMatch): New function.
  11158. (setStatusActive): New function.
  11159. (setStatusInactive): New function.
  11160. * src/DownloadEngine.h, src/DownloadEngine.cc
  11161. (executeCommand): New function.
  11162. (run): Simplified.
  11163. (waitData): Call Command::setStatusActive() when command's socket is
  11164. readable or writable.
  11165. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11166. To handle Segment as SegmentHandle:
  11167. * src/AbstractCommand.cc (execute): Rewritten.
  11168. * src/SegmentMan.h: Segment -> SegmentHandle
  11169. Introducded HttpResponse class, HttpRequest class to improve code
  11170. extensiveness and make it clear:
  11171. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11172. HttpResponse class.
  11173. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11174. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11175. * src/HttpConnection.cc: Contruction of http request were moved to
  11176. HttpRequest class.
  11177. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11178. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11179. * src/HttpAuthConfig.h: New class.
  11180. * src/Range.h: New class.
  11181. To make FtpTunnel{Request, Response}Command and
  11182. HttpProxy{Request, Response}Command derived from
  11183. AbstractProxy{Request, Response}Command:
  11184. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11185. Derived from AbstractProxyRequestCommand class.
  11186. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11187. Derived from AbstractProxyResponseCommand class.
  11188. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11189. Derived from AbstractProxyRequestCommand class.
  11190. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11191. Derived from AbstractProxyResponseCommand class.
  11192. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11193. : New class.
  11194. * src/AbstractProxyResponseCommand.h,
  11195. src/AbstractProxyResponseCommand.cc: New class.
  11196. To add netrc support:
  11197. * src/Netrc.h, src/Netrc.cc: New class.
  11198. * src/Util.h, src/Util.cc (split): New function.
  11199. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11200. "Content-Range" header instead of "Range" header.
  11201. * src/HttpHeader.h
  11202. (getStatus): Removed.
  11203. (setStatus): Removed.
  11204. * src/Segment.h
  11205. (getPositionToWrite): New function.
  11206. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11207. * src/HttpHeader.h
  11208. (Range.h): New include.
  11209. (status): New variable.
  11210. (HttpHeader): Initialized status with 0.
  11211. (getStatus): New function.
  11212. (setStatus): New function.
  11213. (getRange): New function.
  11214. (HttpHeaderHandle): New function.
  11215. * src/HttpHeader.cc
  11216. (getRange): New function.
  11217. * src/Request.h
  11218. (RequestWeakHandle): New definition.
  11219. * src/HttpConnection.h
  11220. (HttpConnectionHandle): New type definition.
  11221. * src/HttpConnection.cc
  11222. (receiveResponse): Set HTTP status to headers.
  11223. * src/main.cc
  11224. (showUsage): Fixed typo.
  11225. * src/Segment.h
  11226. (SegmentHandle): New type definition.
  11227. * src/BitfieldMan.h
  11228. (getMissingUnusedLength): New function.
  11229. * src/BitfieldMan.cc
  11230. (getMissingUnusedLength): New function.
  11231. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11232. To fix static initialization order problem:
  11233. * src/BitfieldManFactory.h
  11234. (defaultRandomizer): Removed.
  11235. (factory): New variable.
  11236. (getNewFactory): Removed.
  11237. (getFactoryInstance): New function.
  11238. (setDefaultRandomizer): Rewritten.
  11239. (getDefaultRandomizer): Rewritten.
  11240. * src/BitfieldManFactory.cc
  11241. (defaultRandomizer): Removed.
  11242. (factory): Initialized to 0.
  11243. (BitfieldManFactory): Initialized randomizer to 0.
  11244. * src/DefaultPieceStorage.cc
  11245. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11246. * src/Peer.cc
  11247. (Peer): getNewFactory() -> getFactoryInstance()
  11248. * src/SegmentMan.cc
  11249. (initBitfield): getNewFactory() -> getFactoryInstance()
  11250. * src/Piece.cc
  11251. (Piece): getNewFactory() -> getFactoryInstance()
  11252. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11253. To fix the bug that causes crash on Max OS X:
  11254. * src/SimpleRandomizer.h
  11255. (getInstance): Create new instance if the static variable is null.
  11256. * src/SimpleRandomizer.cc
  11257. (randomizer): Initialized to 0.
  11258. * src/BitfieldManFactory.h
  11259. (getNewFactory): Removed the call to setRandomizer().
  11260. To fix the miscalculation of the range of checksum:
  11261. * src/BitfieldMan.h
  11262. (isBitSetOffsetRange): New function.
  11263. * src/BitfieldMan.cc
  11264. (isBitSetOffsetRange): New function.
  11265. * src/SegmentMan.cc
  11266. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11267. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11268. * Release 0.10.1
  11269. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11270. To lower CPU usage in BitTorrent download when --max-upload-limit
  11271. command-line option specified:
  11272. * src/DefaultBtMessageDispatcher.cc
  11273. (sendMessages): Calculate uploading speed only when current message
  11274. is uploading data and is not sent yet.
  11275. * src/DefaultPeerStorage.h
  11276. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11277. * src/HttpResponseCommand.cc
  11278. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11279. This fixes compile error in Soralis 10.
  11280. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11281. To fix segfault in Metalink download:
  11282. * src/UrlRequestInfo.h
  11283. (filename): Removed.
  11284. (totalLength): Removed.
  11285. (setTotalLength): Removed.
  11286. (setFilename): Removed.
  11287. * src/MetalinkRequestInfo.cc
  11288. (execute): Do not set filename and totalLength to reqInfo.
  11289. Set chunk checksum to reqInfo if it is not null.
  11290. * src/HttpResponseCommand.cc
  11291. (executeInternal): Fixed filename in log.
  11292. (handleDefaultEncoding): Removed the call to initBitfield() and
  11293. markAllPiecesDone().
  11294. (handleOtherEncoding): Added HEAD method handling.
  11295. * src/FtpNegotiateCommand.cc
  11296. (executeInternal): Added SEQ_HEAD_OK handling.
  11297. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11298. return false.
  11299. * src/FtpNegotiateCommand.h
  11300. (SEQ_HEAD_OK): New definition.
  11301. * src/SegmentMan.cc
  11302. (initBitfield): Delete bitfield.
  11303. (isChunkChecksumValidationReady): Fixed the condition.
  11304. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11305. works fine.
  11306. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11307. * src/Xml2MetalinkProcessor.h
  11308. (xpathExists): New function.
  11309. * src/Xml2MetalinkProcessor.cc
  11310. (xpathExists): New function.
  11311. Not to send HEAD request if filename and size are available in Metalink
  11312. file:
  11313. * src/UrlRequestInfo.h
  11314. (filename): New variable.
  11315. (totalLength): New variable.
  11316. (setTotalLength): New function.
  11317. (setFilename): New function.
  11318. * src/MetalinkRequestInfo.cc
  11319. (execute): Set filename and size to UrlRequestInfo.
  11320. * src/MetalinkEntry.cc
  11321. (MetalinkEntry): Initialize size with 0.
  11322. * src/UrlRequestInfo.cc
  11323. (execute): Set filename and size to SegmentMan.
  11324. Not to download rest of the files after selected files are downloaded
  11325. in BitTorrent:
  11326. * src/PieceStorage.h
  11327. (allDownloadFinished): New function.
  11328. * src/DefaultBtAnnounce.cc
  11329. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11330. downloadFinished.
  11331. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11332. * src/DefaultPieceStorage.cc
  11333. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11334. Commented out the call to finishSelectiveDownloadingMode().
  11335. (downloadFinished): Call isFilteredAllBitSet() instead of
  11336. isAllBitSet().
  11337. (allDownloadFinished): New function.
  11338. * src/DefaultBtInteractive.cc
  11339. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11340. downloadFinished().
  11341. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11342. * src/TorrentDownloadEngine.cc
  11343. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11344. * src/BitfieldMan.h
  11345. (isFilteredAllBitSet): New function.
  11346. * src/ShareRatioSeedCriteria.h
  11347. (PieceStorage.h): New include.
  11348. (pieceStorage): New variable.
  11349. (evaluate):
  11350. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11351. * src/BitfieldMan.cc
  11352. (isFilteredAllBitSet): New function.
  11353. (isAllBitSet): Filter is not took into account.
  11354. Rename --force-truncate as --allow-overwrite:
  11355. * src/TorrentRequestInfo.cc
  11356. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11357. * src/main.cc
  11358. (showUsage): --force-truncate -> --allow-overwrite
  11359. * src/message.h
  11360. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11361. * src/prefs.h
  11362. (PREF_FORCE_TRUNCATE): Removed.
  11363. (PREF_ALLOW_OVERWRITE): New definition.
  11364. * src/SegmentMan.cc
  11365. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11366. * src/MetalinkRequestInfo.cc
  11367. (execute): Queueing message are now logged in info level.
  11368. * src/common.h
  11369. (LONG_LONG_MAX): Removed.
  11370. (LONG_LONG_MIN): Removed.
  11371. * src/HttpResponseCommand.cc
  11372. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11373. * src/FtpNegotiateCommand.cc
  11374. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11375. * src/main.cc
  11376. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11377. command-line option.
  11378. (main): Added --check-integriy and --realtime-chunk-checksum
  11379. command-line option.
  11380. --force-truncate -> --allow-overwrite
  11381. Set initial value of --check-integrity option to false.
  11382. Don't show usage when error occurs while persing command-line options.
  11383. Removed deprecated --upload-limit option.
  11384. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11385. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11386. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11387. * src/BtAllowedFastMessage.cc:
  11388. * src/BtBitfieldMessage.cc
  11389. * src/BtCancelMessage.cc
  11390. * src/BtChokeMessage.cc
  11391. * src/BtHaveAllMessage.cc
  11392. * src/BtHaveMessage.cc
  11393. * src/BtHaveNoneMessage.cc
  11394. * src/BtInterestedMessage.cc
  11395. * src/BtNotInterestedMessage.cc
  11396. * src/BtPieceMessage.cc
  11397. * src/BtPortMessage.cc
  11398. * src/BtRejectMessage.cc
  11399. * src/BtRequestMessage.cc
  11400. * src/BtSuggestPieceMessage.cc
  11401. * src/BtUnchokeMessage.cc
  11402. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11403. files are affected.
  11404. * src/ChunkChecksumValidator.cc
  11405. * src/SegmentMan.cc
  11406. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11407. To add chunk checksum validation:
  11408. * src/MetalinkEntry.h
  11409. (MetalinkChunkChecksum.h): New include.
  11410. (chunkChecksum): New variable.
  11411. * src/Request.h
  11412. (method): New variable.
  11413. (setMethod): New function.
  11414. (getMethod): New function.
  11415. (METHOD_GET): New static constant.
  11416. (METHOD_HEAD): New static constant.
  11417. * src/Xml2MetalinkProcessor.h
  11418. (getPieceHash): New function.
  11419. * src/PieceStorage.h
  11420. (markAllPiecesDone): New function.
  11421. (checkIntegrity): New function.
  11422. * src/FileAllocator.h
  11423. (NullFileAllocationMonitor.h): New include.
  11424. (FileAllocator): Initialize fileAllocationMonitor with new
  11425. NullFileAllocationMonitor().
  11426. * src/MultiDiskAdaptor.h
  11427. (messageDigest.h): Remove include.
  11428. (ctx): Removed.
  11429. (hashUpdate): Added ctx.
  11430. (MultiDiskAdaptor): Removed ctx.
  11431. (sha1Sum): Renamed as messageDigest.
  11432. (messageDigest): New function.
  11433. * src/UrlRequestInfo.h
  11434. (HeadResult): New class.
  11435. (digestAlgo): New variable.
  11436. (chunkChecksumLength): New variable.
  11437. (chunkChecksums): New variable.
  11438. (getHeadResult): New function.
  11439. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11440. (setDigestAlgo): New function.
  11441. (setChunkChecksumLength): New function.
  11442. (setChunkChecksums): New function.
  11443. * src/DefaultPieceStorage.cc
  11444. (DiskAdaptorWriter.h): New include.
  11445. (ChunkChecksumValidator.h): New include.
  11446. (markAllPiecesDone): New function.
  11447. (checkIntegrity): New function.
  11448. * src/DefaultBtContext.h
  11449. (getPieceHashes): New function.
  11450. * src/TorrentRequestInfo.cc
  11451. (execute): Try to validate chunk checksum if file already exists and
  11452. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11453. * src/messageDigest.h
  11454. (~MessageDigestContext): Added digestFree().
  11455. * src/MetalinkRequestInfo.cc
  11456. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11457. * src/DiskAdaptor.h
  11458. (messageDigest.h): New include.
  11459. (sha1Sum): Renamed as messageDigest.
  11460. (messageDigest): New function.
  11461. * src/DownloadCommand.h
  11462. (PeerStat.h): New include.
  11463. (maxDownloadSpeedLimit): New variable.
  11464. (startupIdleTime): New variable.
  11465. (lowestDownloadSpeedLimit): New variable.
  11466. (peerStat): New variable.
  11467. (setMaxDownloadSpeedLimit): New function.
  11468. (setStartupIdleTime): New function.
  11469. (setLowestDownloadSPeedLimit): New function.
  11470. * src/BtContext.h
  11471. (getPieceHashes): New function.
  11472. * src/main.cc
  11473. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11474. option to true for testing purpose.
  11475. * src/BtPieceMessage.cc
  11476. (checkPieceHash): Use messageDigest
  11477. * src/DownloadEngine.cc
  11478. (SetDescriptor): Removed.
  11479. (AccumulateActiveCommand): Removed.
  11480. (waitData): Rewritten.
  11481. (updateFdSet): Rewritten.
  11482. * src/MultiDiskAdaptor.cc
  11483. (hashUpdate): Added ctx.
  11484. (sha1Sum): Renamed as messageDigest.
  11485. (messageDigest): New function.
  11486. * src/BitfieldMan.h
  11487. (isBitRangeSet): New function.
  11488. (unsetBitRange): New function.
  11489. * src/ByteArrayDiskWriter.h
  11490. (sha1Sum): Renamed as messageDigest.
  11491. (messageDigest): New function.
  11492. * src/ConsoleDownloadEngine.cc
  11493. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11494. * src/DiskWriter.h
  11495. (messageDigest.h): New include.
  11496. (sha1Sum): Renamed as messageDigest.
  11497. (messageDigest): New function.
  11498. * src/ChunkChecksumValidator.h: New class.
  11499. * src/DiskAdaptorWriter.h: New class.
  11500. * src/prefs.h
  11501. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11502. (PREF_CHECK_INTEGRITY): New definition.
  11503. * src/HttpResponseCommand.cc
  11504. (handleDefaultEncoding): Added method "HEAD" handling.
  11505. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11506. (handleOtherEncoding):
  11507. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11508. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11509. startupIdleTime, lowestDownloadSpeedLimit to command.
  11510. * src/SegmentMan.h
  11511. (getSegmentEntryByIndex): New function.
  11512. (getSegmentEntryByCuid): New function.
  11513. (getSegmentEntryIteratorByCuid): New function.
  11514. (diskWriter): DiskWriter -> DiskWriterHandle
  11515. (pieceHashes): New variable.
  11516. (chunkHashLength): New variable.
  11517. (digestAlgo): New variable.
  11518. (FindPeerStat): Removed.
  11519. (getPeerStat): Rewritten.
  11520. (markAllPiecesDone): New function.
  11521. (checkIntegrity): New function.
  11522. (tryChunkChecksumValidation): New function.
  11523. (isChunkChecksumValidationReady): New function.
  11524. * src/BitfieldMan.cc
  11525. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11526. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11527. blocks to 0.
  11528. (isBitRangeSet): New function.
  11529. (unsetBitRange): New function.
  11530. * src/FtpNegotiateCommand.cc
  11531. (executeInternal): Set maxDownloadSpeedLimit,
  11532. startupIdleTime, lowestDownloadSpeedLimit to command.
  11533. (recvSize): Added method "HEAD" handling.
  11534. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11535. * src/AbstractSingleDiskAdaptor.cc
  11536. (sha1Sum): Renamed as messageDigest.
  11537. (messageDigest): New function.
  11538. * src/AbstractSingleDiskAdaptor.h
  11539. (sha1Sum): Renamed as messageDigest.
  11540. (messageDigest): New function.
  11541. * src/Util.h
  11542. (indexRange): New function.
  11543. * src/MetalinkEntry.cc
  11544. (MetalinkEntry): Initialized chunkChecksum to 0.
  11545. * src/ShaVisitor.cc
  11546. (~ShaVisitor): Removed the call to ctx.digestFree().
  11547. * src/SegmentMan.cc
  11548. (ChunkChecksumValidator.h): New include.
  11549. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11550. to DIGEST_ALGO_SHA1.
  11551. (~SegmentMan): Removed diskWriter.
  11552. (FindSegmentEntryByIndex): Removed.
  11553. (FindSegmentEntryByCuid): Removed.
  11554. (checkoutSegment): Rewritten.
  11555. (findSlowerSegmentEntry): Rewritten.
  11556. (getSegment): Rewritten.
  11557. (updateSegment): Rewritten.
  11558. (completeSegment): Rewritten.
  11559. (markAllPiecesDone): New function.
  11560. (checkIntegrity): New function.
  11561. (isChunkChecksumValidationReady): New function.
  11562. (tryChunkChecksumValidation): New function.
  11563. * src/Xml2MetalinkProcessor.cc
  11564. (getEntry): Get size and set it to entry.
  11565. Get chunk checksum and set it to entry.
  11566. (getPieceHash): New function.
  11567. * src/Util.cc
  11568. (sha1Sum): Removed ctx.digestFree()
  11569. (fileChecksum): Removed ctx.digestFree()
  11570. (indexRange): New function.
  11571. * src/Request.cc
  11572. (METHOD_GET): New variable.
  11573. (METHOD_HEAD): New variable.
  11574. (Request): Added method.
  11575. * src/UrlRequestInfo.cc
  11576. (FatalException.h): New include.
  11577. (message.h): New include.
  11578. (operator<<): Added operator<< for class HeadResult.
  11579. (getHeadResult): New function.
  11580. (execute): Get filename and size in separate download engine.
  11581. * src/ChunkChecksumValidator.cc: New class.
  11582. * src/DownloadCommand.cc:
  11583. (DownloadCommand): Added peerStat.
  11584. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11585. the value from Option.
  11586. The buffer size is now 16KB.
  11587. Use peerStat member instead of getting it from SegmentMan.
  11588. Use startupIdleTime member instead of gettingit from Option.
  11589. Added chunk checksum validation.
  11590. * src/AbstractDiskWriter.cc
  11591. (AbstractDiskWriter): Removed ctx.
  11592. (~AbstractDiskWriter): Removed ctx.digestFree()
  11593. (writeDataInternal): Returns the return value of write.
  11594. (readDataInternal): Returns the return value of read.
  11595. (sha1Sum): Renamed as messageDigest
  11596. (messageDigest): New function.
  11597. * src/AbstractDiwkWriter.h
  11598. (messageDigest.h): Removed include.
  11599. (ctx): Removed.
  11600. (sha1Sum): Renamed as messageDigest
  11601. (messageDigest): New function.
  11602. * src/DefaultPieceStorage.h
  11603. (markAllPiecesDone): New function.
  11604. (checkIntegrity): New function.
  11605. * src/NullFileAllocationMonitor.h: New class.
  11606. * src/MetalinkChunkChecksum.h: New class.
  11607. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11608. To decrease CPU usage in bittorrent download, calculation results in
  11609. BitfieldMan were cached and realtime fetching PeerObject was removed
  11610. with WeakHandle introduced. Option values are set to the objects
  11611. by setter before download begins.
  11612. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11613. * src/DefaultBtRequestFactory.h
  11614. (dispatcher): BtMessageDispatcherHandle ->
  11615. BtMessageDispatcherWeakHandle.
  11616. (messageFactory): New variable.
  11617. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11618. BtMessageDispatcherWeakHandle.
  11619. (setBtMessageFactory): New function.
  11620. * src/DefaultBtMessageDispatcher.cc:
  11621. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11622. from Option.
  11623. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11624. feating the value from Option.
  11625. Use messageFactory member.
  11626. * src/PeerInteractionCommand.cc
  11627. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11628. Add reverse dependencies to factory object.
  11629. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11630. dispatcher.
  11631. Set messageFactory to receiver.
  11632. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11633. btInteractive.
  11634. Set receiver to peerObject.
  11635. Set maxDownloadSpeedLimit to this.
  11636. (executeInternal): Use maxDownloadSpeedLimit member.
  11637. * src/BtChokeMessage.cc
  11638. (doReceivedAction): Use dispatcher, requestFactory member.
  11639. (onSendComplete): Use dispatcher member.
  11640. * src/PeerInteractionCommand.h
  11641. (maxDownloadSpeedLimit): New variable.
  11642. * src/DefaultBtMessageReceiver.h
  11643. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11644. (dispatcher):
  11645. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11646. (messageFactory): New variable.
  11647. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11648. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11649. (setDispatcher):
  11650. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11651. (setBtMessageFactory): New function.
  11652. * src/DefaultBtInteractive.cc
  11653. (initiateHandshake): Use messageFactory member.
  11654. (addBitfieldMessageToQueue): Use messageFactory member.
  11655. (addAllowedFastMessageToQueue): Use messageFactory member.
  11656. (decideChoking): Use messageFactory member.
  11657. (checkHave): Use messageFactory member.
  11658. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11659. (receiveMessages): Use maxDownloadSpeedLimit member.
  11660. (decideInterest): Use messageFactory member.
  11661. * src/BtRequestMessage.cc
  11662. (doReceivedAction): Use messageFactory, dispatcher member.
  11663. (onQueued): Use dispatcher member.
  11664. * src/BtPieceMessage.cc
  11665. (doReceivedAction): Use dispatcher member.
  11666. (send): Use peerConnection member.
  11667. (onWrongPiece): Use requestFactory member.
  11668. (handleChokingEvent): Use messageFactory, dispatcher member.
  11669. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11670. * src/BtMessageDispatcher.h
  11671. (BtMessageDispatcherWeakHandle): New type definition.
  11672. * src/SimpleBtMessage.cc
  11673. (send): Use peerConnection member.
  11674. * src/BtRejectMessage.cc
  11675. (doReceivedAction): Use dispatcher member.
  11676. * src/DefaultBtMessageDispatcher.h
  11677. (Option.h): Removed include.
  11678. (messageFactory): New variable.
  11679. (option): Removed.
  11680. (maxUploadSpeedLimit): New variable.
  11681. (requestTimeout): New variable.
  11682. (DefaultBtMessageDispatcher): Removed option.
  11683. Added maxUploadSpeedLimit, requestTimeout.
  11684. (setOption): Removed.
  11685. (getOption): Removed.
  11686. (setMaxUploadSpeedLimit): New function.
  11687. (setRequestTimeout): New function.
  11688. (setBtMessageFactory): New function.
  11689. * src/DefaultBtInteractive.h
  11690. (btMessageReceiver):
  11691. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11692. (dispatcher):
  11693. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11694. (btRequestFactory):
  11695. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11696. (peerConnection):
  11697. PeerConnectionHandle -> PeerConnectionWeakHandle
  11698. (messageFactory): New variable.
  11699. (option): Removed.
  11700. (keepAliveInterval): New variable.
  11701. (maxDownloadSpeedLimit): New variable.
  11702. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11703. (setBtMessageReceiver):
  11704. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11705. (setDispatcher):
  11706. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11707. (setBtRequestFactory):
  11708. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11709. (setPeerConnection):
  11710. PeerConnectionHandle -> PeerConnectionWeakHandle
  11711. (setOption): Removed.
  11712. (setKeepAliveInterval): New function.
  11713. (setMaxDownloadSpeedLimit): New function.
  11714. (setBtMessageFactory): New function.
  11715. * src/BitfieldMan.h
  11716. (cachedNumMissingBlock): New variable.
  11717. (cachedNumFilteredBlock): New variable.
  11718. (cachedCompletedLength): New variable.
  11719. (cachedFilteredComletedLength): New variable.
  11720. (cachedFilteredTotalLength): New variable.
  11721. (countMissingBlockNow): New function.
  11722. (countFilteredBlockNow): New function.
  11723. (getFilteredTotalLengthNow): New function.
  11724. (getCompletedLengthNow): New function.
  11725. (getFilteredCompletedLengthNow): New function.
  11726. (updateCache): New function.
  11727. * src/AbstractBtMessage.h
  11728. (BtMessageDispatcher.h): New include.
  11729. (PeerConnection.h): New include.
  11730. (BtRequestFactory.h): New include
  11731. (BtMessageFactory.h): New include.
  11732. (dispatcher): New variable.
  11733. (messageFactory): New variable.
  11734. (peerConnection: New variable.
  11735. (setBtMessageDispatcher): New function.
  11736. (setPeerConnection): New function.
  11737. (setBtMessageFactory): New function.
  11738. (setBtRequestFactory): New function.
  11739. * src/DefaultBtMessageFactory.cc
  11740. (setCommonProperty): Set dispatcher, requestFactory, this,
  11741. peerConnection to msg.
  11742. * src/BtRegistry.h
  11743. (BT_MESSAGE_RECEIVER): New macro.
  11744. * src/PeerConnection.h
  11745. (PeerConnectionWeakHandle): New type definition.
  11746. * src/BtMessageFactory.h
  11747. (BtMessageFactoryWeakHandle): New type definition.
  11748. * src/BitfieldMan.cc
  11749. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11750. cachedCompletedLength, cachedFilteredComletedLength,
  11751. cachedFilteredTotalLength.
  11752. Call updateCache().
  11753. (countMissingBlock): Return cachedNumMissingBlock.
  11754. (countMissingBlockNow): New function.
  11755. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11756. (countFilteredBlockNow): New function.
  11757. (setBit): Call updateCache().
  11758. (unsetBit): Call updateCache().
  11759. (setBitfield): Call updateCache().
  11760. (clearAllBit): Call updateCache().
  11761. (setAllBit): Use setBitInternal instead of setBit.
  11762. Call updateCache().
  11763. (addFilter): Call updateCache().
  11764. (enableFilter): Call updateCache().
  11765. (disableFilter): Call updateCache().
  11766. (clearFilter): Call updateCache().
  11767. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11768. (getFilteredTotalLengthNow): New function.
  11769. (getCompletedLength): Return cachedCompletedLength.
  11770. (getCompletedLengthNow): New function.
  11771. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11772. (getFilteredCompletedLengthNow): New function.
  11773. (updateCache): New function.
  11774. * src/BtMessageReceiver.h
  11775. (BtMessageReceiverWeakHandle): New type definition.
  11776. * src/DefaultBtMessageReceiver.cc
  11777. (receiveHandshake): Use messageFactory member.
  11778. (sendHandshake): Use messageFactory member.
  11779. (receiveMessage): Use messageFactory member.
  11780. * src/DefaultBtMessageFactory.h
  11781. (dispatcher): New variable.
  11782. (requestFactory): New variable.
  11783. (peerConnection): New variablle.
  11784. (setBtMessageDispatcher): New function.
  11785. (setBtRequestFactory): New function.
  11786. (setPeerConnection): New function.
  11787. * src/SharedHandle.h
  11788. (RefCount): New class.
  11789. (WeakHandle): New class.
  11790. * src/PeerObject.h
  11791. (BtMessageReceiver.h): New include.
  11792. (PeerObject): Added btMessageReceiver.
  11793. (btMessageReceiver): New variable.
  11794. * src/Util.cc
  11795. (countBit): Simplified.
  11796. * src/BtCancelMessage.cc
  11797. (doReceivedAction): Use dispatcher member.
  11798. * src/BtRequestFactory.h
  11799. (BtRequestFactoryWeakHandle): New type definition.
  11800. * src/PeerStorage.h
  11801. (downloadSpeed): int -> uint32_t
  11802. (uploadSpeed): int -> uint32_t
  11803. (sessionDownloadLength): long long int -> uint64_t
  11804. (sessionUploadLength): long long int -> uint64_t
  11805. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11806. To add RecoverableException, FatalException:
  11807. * src/AbstractCommand.cc
  11808. (onAbort): Exception -> RecoverableException
  11809. * src/PeerAbstractCommand.h
  11810. (RecoverableException.h): New include.
  11811. (onAbort): Exception -> RecoverableException.
  11812. * src/PeerInteractionCommand.cc
  11813. (onAbort): Exception -> RecoverableException.
  11814. * src/PeerAbstractCommand.cc
  11815. (execute): Exception -> RecoverableException.
  11816. (onAbort): Exception -> RecoverableException.
  11817. * src/TorrentRequestInfo.cc
  11818. (execute): Exception -> RecoverableException.
  11819. * src/MetalinkRequestInfo.cc
  11820. (execute): Exception -> RecoverableException.
  11821. * src/MetaFileUtil.cc: RecoverableException.
  11822. * src/AbstractCommand.h
  11823. (onAbort): Exception -> RecoverableException.
  11824. * src/DlRetryEx.h: Exception -> RecoverableException.
  11825. * src/DlAbortEx.h: Exception -> RecoverableException.
  11826. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11827. * src/Util.cc: Exception -> RecoverableException.
  11828. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11829. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11830. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11831. To make ID static const int
  11832. * src/BtInterestedMessage.h
  11833. (ID_t): Removed.
  11834. (ID): New variable.
  11835. (getId): Made non-const.
  11836. * src/BtPieceMessage.h
  11837. (ID_t): Removed.
  11838. (ID): New variable.
  11839. (getId): Made non-const.
  11840. * src/BtChokeMessage.h
  11841. (ID_t): Removed.
  11842. (ID): New variable.
  11843. (getId): Made non-const.
  11844. * src/BtHaveAllMessage.h
  11845. (ID_t): Removed.
  11846. (ID): New variable.
  11847. (getId): Made non-const.
  11848. * src/BtKeepAliveMessage.h
  11849. (ID_t): Removed.
  11850. (ID): New variable.
  11851. (getId): Made non-const.
  11852. * src/BtHandshakeMessage.h
  11853. (ID): New variable.
  11854. (getId): Made non-const.
  11855. * src/BtSuggestPieceMessage.h
  11856. (ID_t): Removed.
  11857. (ID): New variable.
  11858. (getId): Made non-const.
  11859. * src/BtPortMessage.h
  11860. (ID_t): Removed.
  11861. (ID): New variable.
  11862. (getId): Made non-const.
  11863. * src/AbstractBtMessage.h
  11864. (id): Removed.
  11865. (AbstractBtMessage): Removed id.
  11866. (getId): Removed.
  11867. * src/BtHaveMessage.h
  11868. (ID_t): Removed.
  11869. (ID): New variable.
  11870. (getId): Made non-const.
  11871. * src/BtAllowedFastMessage.h
  11872. (ID_t): Removed.
  11873. (ID): New variable.
  11874. (getId): Made non-const.
  11875. * src/BtCancelMessage.h
  11876. (ID_t): Removed.
  11877. (ID): New variable.
  11878. (getId): Made non-const.
  11879. * src/BtNotInterestedMessage.h
  11880. (ID_t): Removed.
  11881. (ID): New variable.
  11882. (getId): Made non-const.
  11883. * src/BtChokeMessage.h
  11884. (ID_t): Removed.
  11885. (ID): New variable.
  11886. (getId): Made non-const.
  11887. * src/BtRejectMessage.h
  11888. (ID_t): Removed.
  11889. (ID): New variable.
  11890. (getId): Made non-const.
  11891. * src/BtBitfieldMessage.h
  11892. (ID_t): Removed.
  11893. (ID): New variable.
  11894. (getId): Made non-const.
  11895. * src/BtUnchokeMessage.h
  11896. (ID_t): Removed.
  11897. (ID): New variable.
  11898. (getId): Made non-const.
  11899. * src/BtRequestMessage.h
  11900. (ID_t): Removed.
  11901. (ID): New variable.
  11902. (getId): Made non-const.
  11903. * src/BtHaveMessage.h
  11904. (ID_t): Removed.
  11905. (ID): New variable.
  11906. (getId): Made non-const.
  11907. To add --force-truncate command-line option and a check whether
  11908. the file already exists:
  11909. * src/DirectDiskAdaptor.h
  11910. (getFilePath): Made virtual public.
  11911. * src/MultiDiskAdaptor.h
  11912. (File.h): New include.
  11913. (DiskWriterEntry::fileEntry): Made private.
  11914. (DiskWriterEntry::fileExists): New function.
  11915. (DiskWriterEntry::getFileEntry): New function.
  11916. (fileExists): New function.
  11917. (getFilePath): New function.
  11918. * src/TorrentRequestInfo.cc
  11919. (FatalException.h): New include.
  11920. (message.h): New include.
  11921. (RecoverableException.h): New include.
  11922. (execute): Added a check whether file is already exists or not.
  11923. * src/DiskAdaptor.h
  11924. (fileExists): New function.
  11925. (getFilePath): New function.
  11926. * src/main.cc
  11927. (showUsage): Added an explanation of --force-truncate command-line
  11928. option.
  11929. (main): Added --force-truncate command-line option.
  11930. * src/Exception.h
  11931. (setMsg): buf[256] -> buf[1024]
  11932. * src/CopyDiskWriter.h
  11933. (getFilePath): Made public virtual.
  11934. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11935. (fileExists): New function.
  11936. * src/DownloadEngineFactory.cc
  11937. (newTorrentConsoleEngine): Don't open file here.
  11938. * src/message.h
  11939. (EX_FILE_ALREADY_EXISTS): New definition.
  11940. * src/prefs.h
  11941. (PREF_FOECE_TRUNCATE): New definition.
  11942. * src/HttpResponseCommand.cc
  11943. (handleDefaultEncoding): Added a check whether the file already exists.
  11944. * src/SegmentMan.h
  11945. (fileExists): New function.
  11946. (shouldCancelDownloadForSafety): New function.
  11947. * src/FtpNegotiateCommand.cc
  11948. (recvSize): Added a check whether the file already exists.
  11949. * src/AbstractSingleDiskAdaptor.cc
  11950. (File.h): New include.
  11951. (fileExists): New function.
  11952. * src/AbstractSingleDiskAdaptor.h
  11953. (getFilePath): Removed.
  11954. (fileExists): New function.
  11955. * src/SegmentMan.cc
  11956. (fileExists): New function.
  11957. (shouldCancelDownloadForSafety): New function.
  11958. To fix regression bug in torrent downloading:
  11959. * src/DefaultBtRequestFactory.cc
  11960. (doChokedAction): New function.
  11961. * src/DefaultBtRequestFactory.h
  11962. (doChokedAction): New function.
  11963. * src/DefaultBtMessageDispatcher.cc
  11964. (doChokedAction): Do not delete request if its target is in allowed
  11965. fast set.
  11966. * src/DefaultBtInteractive.cc
  11967. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11968. (sendKeepAlive): Send keep alive message even if the outgoing message
  11969. queue is not empty.
  11970. (decideInterest): Simplified the code.
  11971. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11972. it is already called when BtChokeMessage is received from a peer.
  11973. * src/BtRequestFactory.h
  11974. (doChokedAction): New function.
  11975. To clean up code:
  11976. * src/PeerInteractionCommand.h
  11977. (executeInternal): Added virtual keyword explicitly.
  11978. (prepareForRetry): Added virtual keyword explicitly.
  11979. (prepareForNextPeer): Added virtual keyword explicitly.
  11980. (onAbort): Added virtual keyword explicitly.
  11981. * src/RequestSlot.cc
  11982. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11983. * src/BtPieceMessage.cc
  11984. (doReceivedAction): Added a debug log of piece's bitfield.
  11985. * src/Piece.h
  11986. (getBitfieldLength): New function.
  11987. * src/ByteArrayDiskWriter.cc
  11988. (clear): Added buf = 0 to avoid double free corruption.
  11989. * src/FileAllocator.cc
  11990. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11991. Added cp.reset().
  11992. * src/BitfieldMan.h
  11993. (operator=): Rewritten.
  11994. * src/BitfieldMan.cc
  11995. (BitfieldMan): Initialized bitfield, useBitfield.
  11996. * src/PeerConnection.cc
  11997. (receiveMessage): Added a call to socket->readable() after getting
  11998. message length to avoid possible EOF.
  11999. * src/Util.cc
  12000. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12001. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12002. To add an ability to pre-allocate file space:
  12003. * src/DirectDiskAdaptor.h: Rewritten.
  12004. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12005. * src/MultiDiskAdaptor.h: Rewritten.
  12006. * src/DefaultPieceStorage.cc
  12007. (MultiDiskWriter.h): Removed include.
  12008. (PreAllocationDiskWriter.h): Removed include.
  12009. (FileAllocationMonitor.h): New include.
  12010. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12011. (initStorage): Rewritten.
  12012. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12013. * src/FileAllocator.h: New class.
  12014. * src/FileAllocator.cc: New class.
  12015. * src/FileAllocationMonitor.h: New class.
  12016. * src/FileAllocationMonitor.cc: New class.
  12017. * src/ConsoleFileAllocationMonitor.h: New class.
  12018. * src/ConsoleFileAllocationMonitor.cc: New class.
  12019. * src/AbstractSingleDiskAdaptor.h: New class.
  12020. * src/AbstractSingleDiskAdaptor.cc: New class.
  12021. * src/DiskAdaptor.h
  12022. (Directory.h): Removed include.
  12023. (DiskWriter.h): Removed include.
  12024. (FileEntry.h): Removed include.
  12025. (diskWriter): Removed.
  12026. (DiskAdaptor): Removed diskWriter.
  12027. (openFile): Made pure virtual.
  12028. (closeFile): Made pure virtual.
  12029. (openExistingFile): Made pure virtual.
  12030. (initAndOpenFile): Made pure virtual.
  12031. (writeData): Made pure virtual.
  12032. (readData): Made pure virtual.
  12033. (sha1Sum): Made pure virtual.
  12034. (getStoreDir): Returns const reference of storeDir.
  12035. (DiskAdaptorHandle): New type definition.
  12036. * src/main.cc
  12037. (ConsoleFileAllocationMonitor.h): New include.
  12038. (showUsage): Added default value description of -s option.
  12039. Added the description of --file-allocation option.
  12040. (main): Set default value of --file-allocation option to 'none'.
  12041. Added --file-allocation command-line option.
  12042. Setup FileAllocationMonitorFactory.
  12043. * src/FtpInitiateConnectionCommand.cc
  12044. (executeInternal): Removed diskWriter related processing, which was
  12045. moved to FtpNegotiationCommand.cc.
  12046. * src/DirectDiskAdaptor.cc
  12047. (getFilePath): Made non-const.
  12048. * src/CopyDiskAdaptor.h
  12049. (DiskAdaptor.h): Removed include.
  12050. (DiskWriter.h): Removed include.
  12051. (AbstractSingleDiskAdaptor.h): New include.
  12052. (getFilePath): Made non-const. Added virtual keyword.
  12053. (CopyDiskAdaptor): Removed diskWriter.
  12054. (getTempFile): Returns const reference.
  12055. (CopyDiskAdaptorHandle): New type definition.
  12056. * src/ByteArrayDiskWriter.cc
  12057. (clear): Simplified.
  12058. (initAndOpenFile): Rewritten.
  12059. (openFile): Call initAndOpenFile()
  12060. * src/MultiDiskAdaptor.cc: Rewritten.
  12061. * src/DownloadEngineFactory.cc
  12062. (FileAllocator.h): New include.
  12063. (FileAllocationMonitor.h): New include.
  12064. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12065. create DefaultDiskWriter with file allocator.
  12066. * src/DiskWriter.h
  12067. (initAndOpenFile): Added totalLength argument.
  12068. (openFile): Added totalLength argument.
  12069. * src/prefs.h
  12070. (PREF_FILE_ALLOCATION): New definition.
  12071. (V_PREALLOC): New definition.
  12072. (V_NONE): New definition.
  12073. * src/HttpResponseCommand.cc
  12074. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12075. size.
  12076. * src/FtpNegotiateCommand.cc
  12077. (Util.h): New include.
  12078. (recvSize): Open file here.
  12079. * src/Util.h
  12080. (ullitos): New function.
  12081. * src/CopyDiskWriter.h
  12082. (getFilePath): Made non-const.
  12083. * src/DefaultDiskWriter.h
  12084. (Option.h): New include.
  12085. (totalLength): Removed.
  12086. (DefaultDiskWriter): Removed totalLength.
  12087. (initAndOpenFile): Added totalLength argument.
  12088. (DefaultDiskWriterHandle): New type definition.
  12089. (createNewDiskWriter): New function.
  12090. * src/Util.cc
  12091. (ullitos): New function.
  12092. * src/DefaultDiskWriter.cc
  12093. (message.h): New include.
  12094. (FileAllocator.h): New include.
  12095. (prefs.h): New include.
  12096. (Util.h): New include.
  12097. (DefaultDiskWriter): Removed totalLength.
  12098. (initAndOpenFile): Added file allocation.
  12099. (createNewDiskWriter): New function. Just for temporary solution.
  12100. It will be rewritten later.
  12101. * src/DiskAdaptor.cc
  12102. (DiskAdaptor): Removed diskWriter.
  12103. * src/AbstractDiskWriter.cc
  12104. (LogFactory.h): New include.
  12105. (AbstractDiskWriter): Added fileAllocator, logger.
  12106. (openFile): Added totalLength argument.
  12107. * src/AbstractDiskWriter.h
  12108. (FileAllocator.h): New include.
  12109. (Logger.h): New include.
  12110. (fileAllocator): New variable.
  12111. (logger): New variable.
  12112. (openFile): Added totalLength argument. Added virtual keyword
  12113. explicitly.
  12114. (openExistingFile): Added totalLength argument. Added virtual keyword
  12115. explicitly.
  12116. (closeFile): Added virtual keyword explicitly.
  12117. (sha1Sum): Added virtual keyword explicitly.
  12118. (writeData): Added virtual keyword explicitly.
  12119. (readData): Added virtual keyword explicitly.
  12120. (setFileAllocator): New function.
  12121. * src/DefaultPieceStorage.h
  12122. (FileAllocator.h): New include.
  12123. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12124. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12125. * src/FileProgressMonitor.h: New class.
  12126. To compile aria2 on PC-BSD:
  12127. * src/DefaultBtContext.cc
  12128. (libgen.h): New include.
  12129. To fix memory leak:
  12130. * src/Exception.h
  12131. (~Exception): Delete cause. Fixed memory leak.
  12132. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12133. Rewritten a portion of bittorrent implementation:
  12134. * src/BtMessageValidator.h: New class.
  12135. * src/BtBitfieldMessageValidator.h: New class.
  12136. * src/BtHandshakeMessageValidator.h: New class.
  12137. * src/BtRequestMessageValidator.h: New class.
  12138. * src/BtSuggestPieceMessageValidator.h: New class.
  12139. * src/BtAllowedFastMessageValidator.h: New class.
  12140. * src/BtRejectMessageValidator.h: New class.
  12141. * src/BtCancelMessageValidator.h: New class.
  12142. * src/BtPieceMessageValidator.h: New class.
  12143. * src/BtHaveMessageValidator.h: New class.
  12144. * src/BtEventListener.h: New class.
  12145. * src/AbstractBtEventListener.h: New class.
  12146. * src/BtEvent.h: New class.
  12147. * src/BtChokingEvent.h: New class.
  12148. * src/BtChokedEvent.h: New class.
  12149. * src/BtCancelSendingPieceEvent.h: New class.
  12150. * src/BtAbortOutstandingRequestEvent.h: New class.
  12151. * src/Randomizer.h: New class.
  12152. * src/SimpleRandomizer.h: New class.
  12153. * src/BtMessage.h: New class.
  12154. * src/AbstractBtMessage.h: New class.
  12155. * src/SimpleBtMessage.h: New class.
  12156. * src/BtHaveMessage.h: New class.
  12157. * src/BtInterestedMessage.h: New class.
  12158. * src/BtAllowedFastMessage.h: New class.
  12159. * src/BtUnchokeMessage.h: New class.
  12160. * src/BtCancelMessage.h: New class.
  12161. * src/BtNotInterestedMessage.h: New class.
  12162. * src/BtChokeMessage.h: New class.
  12163. * src/BtHaveNoneMessage.h: New class.
  12164. * src/BtHandshakeMessage.h: New class.
  12165. * src/BtSuggestPieceMessage.h: New class.
  12166. * src/BtHaveMessage.h: New class.
  12167. * src/BtPieceMessage.h: New class.
  12168. * src/BtHaveAllMessage.h: New class.
  12169. * src/BtKeepAliveMessage.h: New class.
  12170. * src/BtPortMessage.h: New class.
  12171. * src/BtRejectMessage.h: New class.
  12172. * src/BtBitfieldMessage.h: New class.
  12173. * src/BtRequestMessage.h: New class.
  12174. * src/DefaultBtRequestFactory.h: New class.
  12175. * src/DefaultBtMessageReceiver.h: New class.
  12176. * src/BtInteractive.h: New class.
  12177. * src/BtMessageDispatcher.h: New class.
  12178. * src/DefaultBtMessageDispatcher.h: New class.
  12179. * src/DefaultBtInteractive.h: New class.
  12180. * src/BitfieldManFactory.h: New class.
  12181. * src/HandleRegistry.h: New class.
  12182. * src/BtMessageFactory.h: New class.
  12183. * src/BtMessageReceiver.h: New class.
  12184. * src/DefaultBtMessageFactory.h: New class.
  12185. * src/PeerObject.h: New class.
  12186. * src/BtRequestFactory.h: New class.
  12187. * src/SuggestPieceMessage.h: Removed.
  12188. * src/PortMessage.h: Removed.
  12189. * src/SuggestPieceMessage.h: Removed.
  12190. * src/KeepAliveMessage.h: Removed.
  12191. * src/HandshakeMessage.h: Removed.
  12192. * src/PeerInteraction.h: Removed.
  12193. * src/UnchokeMessage.h: Removed.
  12194. * src/PieceMessage.h: Removed.
  12195. * src/RequestMessage.h: Removed.
  12196. * src/InterestedMessage.h: Removed.
  12197. * src/HaveMessage.h: Removed.
  12198. * src/CancelMessage.h: Removed.
  12199. * src/RejectMessage.h: Removed.
  12200. * src/AllowedFastMessage.h: Removed.
  12201. * src/HaveNoneMessage.h: Removed.
  12202. * src/SimplePeerMessage.h: Removed.
  12203. * src/HaveAllMessage.h: Removed.
  12204. * src/BitfieldMessage.h: Removed.
  12205. * src/PeerMessageFactory.h: Removed.
  12206. * src/NotInterestedMessage.h: Removed.
  12207. * src/ChokeMessage.h: Removed.
  12208. * src/PeerMessage.h: Removed.
  12209. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12210. To know root cause of exception:
  12211. * src/Exception.h
  12212. (cause): New variable.
  12213. (Exception): Added a parameter.
  12214. (getMsg): Return const reference to msg.
  12215. (getCause): New function.
  12216. * src/DlRetryEx.h
  12217. (DlRetryEx): Added a parameter 'cause'.
  12218. Added an overloaded constructor.
  12219. (DlAbortEx): Added a parameter 'cause'.
  12220. Added an overloaded constructor.
  12221. * src/SimpleLogger.cc
  12222. (writeLog): Log nested exception messages recursively.
  12223. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12224. * src/DefaultBtProgressInfoFile.cc
  12225. (load): Fixed memory leak when the infohash doesn't match.
  12226. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12227. * src/DefaultPeerStorage.cc
  12228. (calculateStat): Simplified the code by combining 2 loops into 1.
  12229. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12230. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12231. for BitTorrent download:
  12232. * src/PeerAbstractCommand.cc
  12233. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12234. * src/main.cc:
  12235. (timeoutSpecified): Removed.
  12236. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12237. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12238. * src/TorrentRequestInfo.cc
  12239. (timeoutSpecified): Removed.
  12240. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12241. timeout value.
  12242. * src/prefs.h
  12243. (PREF_BT_TIMEOUT): New definition.
  12244. Delete unused variables:
  12245. * src/TorrentRequestInfo.cc
  12246. (requestInfo): Removed.
  12247. Move setSignalHander to Util::setGlobalSignalHandler:
  12248. * src/TorrentRequestInfo.cc:
  12249. setSignalHander -> Util::setGlobalSignalHandler
  12250. * src/main.cc
  12251. (setSignalHander): Removed.
  12252. (main): setSignalHander -> Util::setGlobalSignalHandler
  12253. * src/Util.h
  12254. (setGlobalSignalHandler): New function.
  12255. * src/Util.cc
  12256. (setGlobalSignalHandler): New function.
  12257. * src/UrlRequestInfo.cc:
  12258. setSignalHander -> Util::setGlobalSignalHandler
  12259. Reset peer status in order to exit gracefully:
  12260. * src/PeerAbstractCommand.cc
  12261. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12262. To fix the bug that causes the number of bytes uploaded is not saved
  12263. to .aria2 file:
  12264. * src/DefaultPeerStorage.h
  12265. (removedPeerSessionDownloadLength): New variable.
  12266. (removedPeerSessionUploadLength): New variable.
  12267. * src/DefaultPeerStorage.cc
  12268. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12269. removedPeerSessionUploadLength(0).
  12270. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12271. through all peers, and then add removedPeerSessionDownloadLength(
  12272. removedPeerSessionUploadLength) to it.
  12273. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12274. (to) the peer to removedPeerSessionDownloadLength
  12275. (removedPeerSessionUploadLength).
  12276. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12277. To add Metalink location option:
  12278. * src/MetalinkRequestInfo.cc
  12279. (execute): Call MetalinkEntry::setLocationPreference()
  12280. * src/main.cc
  12281. (showUsage): Added the help message for --metalink-location option.
  12282. (main): Added --metalink-location option.
  12283. * src/prefs.h
  12284. (PREF_METALINK_LOCATION): New definition.
  12285. * src/MetalinkEntry.cc
  12286. (AddLocationPreference): New function object.
  12287. (setLocationPreference): New function.
  12288. * src/Xml2MetalinkProcessor.cc
  12289. (getResource): Set location attribute to MetalinkResource
  12290. To show URLs to download
  12291. * src/UrlRequestInfo.h
  12292. (printUrls): New function.
  12293. To add multiple <file> Metalink support:
  12294. * src/MetalinkEntry.h
  12295. (MetalinkResources): Removed.
  12296. (setLocationPreference): New function.
  12297. (MetalinkEntryHandle): New type definition.
  12298. (MetalinkEntries): New type definition.
  12299. * src/Xml2MetalinkProcessor.h
  12300. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12301. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12302. (parseFile): Metalinker* -> MetalinkerHandle
  12303. * src/UrlRequestInfo.h
  12304. (execute): RequestInfo* -> RequestInfos
  12305. * src/MetalinkRequestInfo.cc
  12306. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12307. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12308. (execute): RequestInfo* -> RequestInfos
  12309. Added multiple <file> support. Print filename when it is queued.
  12310. * src/MetalinkRequestInfo.h
  12311. (execute): RequestInfo* -> RequestInfos
  12312. (getDownloadEngine): Removed.
  12313. * src/RequestInfo.h
  12314. (RequestInfoHandle): New type definition.
  12315. (RequestInfos): New type definition.
  12316. (execute): RequestInfo* -> RequestInfos
  12317. (getDownloadEngine): Removed.
  12318. * src/MetalinkResource.h
  12319. (MetalinkResourceHandle): New type definition.
  12320. (MetalinkResources): New type definition.
  12321. * src/MetalinkEntry.cc
  12322. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12323. because the element is now of type MetalinkResourceHandle.
  12324. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12325. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12326. (dropUnsupportedResource): Removed the deletion of the elements of
  12327. resources because the element is now of type MetalinkResourceHandle.
  12328. * src/Xml2MetalinkProcessor.cc
  12329. (parseFile): Metalinker* -> MetalinkerHandle
  12330. MetalinkEntry* -> MetalinkEntryHandle
  12331. Removed try-catch block.
  12332. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12333. MetalinkResource* -> MetalinkResourceHandle
  12334. Removed try-catch block.
  12335. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12336. Free result by using xmlXPathFreeObject()
  12337. * src/Metalinker.cc
  12338. (~Metalinker): Removed the deletion of entries.
  12339. MetalinkEntry* -> MetalinkEntryHandle
  12340. (queryEntry): Add multiple <file> Metalink support.
  12341. * src/Metalinker.h
  12342. (MetalinkEntries): Removed.
  12343. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12344. * src/MetalinkProcessor.h
  12345. (parseFile): Metalinker* -> MetalinkerHandle
  12346. Bug fixes:
  12347. * src/PeerChokeCommand.cc
  12348. (execute): cat01->cat02
  12349. * src/DefaultPieceStorage.cc
  12350. (DefaultPieceStorage): Added diskAdaptor(0)
  12351. * src/TrackerWatcherComand.cc:
  12352. (execute): Use btAnnounce->noMoreAnnounce()
  12353. to determin whether the function returns true or not.
  12354. * src/TrackerUpdateCommand.cc:
  12355. (execute): Use btAnnounce->noMoreAnnounce()
  12356. to determin whether the function returns true or not.
  12357. * src/FtpConnection.cc
  12358. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12359. This is the fix of the busy loop bug.
  12360. * src/DownloadCommand.cc
  12361. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12362. cached PeerStat.
  12363. The value of "name" entry in torrent file is now set by
  12364. *DiskAdaptor::setTopDir(...) methods.
  12365. * src/MultiDiskAdaptor.h
  12366. (topDir): New variable.
  12367. (setTopDir): New function.
  12368. (getTopDir): New function.
  12369. * src/MultiDiskAdaptor.cc
  12370. (getFilePath): Concat storDir, "/" and topDir.
  12371. (mkdir): Use getFilePath() to get the directory path for output.
  12372. * src/DefaultPieceStorage.cc
  12373. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12374. CopyDiskAdaptor.
  12375. * src/CopyDiskAdaptor.h
  12376. (topDir): New variable.
  12377. (setTopDir): New function.
  12378. (getTopDir): New function.
  12379. * src/CopyDiskAdaptor.cc
  12380. (fixFilename): Updated.
  12381. Misc
  12382. * src/UrlRequestInfo.h
  12383. (e): Removed.
  12384. (UrlRequestInfo): Removed e.
  12385. (getDownloadEngine): Removed.
  12386. * src/UrlRequestInfo.cc
  12387. (handler): Rewritten.
  12388. (printUrls): New function.
  12389. (execute): Call printUrls().
  12390. * src/HandshakeMessage.cc
  12391. (check): peerinteraction->getBtContext() -> btContext
  12392. * src/PeerInteraction.h
  12393. (getBtContext): Removed.
  12394. * src/TorrentRequestInfo.h
  12395. (execute): RequestInfo* -> RequestInfos
  12396. (getDownloadEngine): Removed.
  12397. * src/TorrentRequestInfo.cc
  12398. (haltRequested): Removed.
  12399. (btHaltRequested): New variable.
  12400. (torrentHandler): haltRequested -> btHaltRequested
  12401. (execute): RequestInfo* -> RequestInfos
  12402. * src/TorrentConsoleDownloadEngine.cc
  12403. (afterEachIteration): haltRequested -> btHaltRequested.
  12404. * src/ConsoleDownloadEngine.h
  12405. (initStatistics): Added virtual.
  12406. (calculateStatistics): Added virtual.
  12407. (onEndOfRun): Added virtual.
  12408. (afterEachIteration): Added virtual.
  12409. * src/ConsoleDownloadEngine.cc
  12410. (haltRequested): New variable.
  12411. (afterEachIteration): New function.
  12412. * src/main.cc
  12413. (requestInfo): Removed.
  12414. * src/SegmentMan.cc
  12415. (findSlowerSegmentEntry): Refactored.
  12416. * Release 0.9.0
  12417. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12418. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12419. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12420. * src/TorrentMan.h: Removed.
  12421. * src/TorrentMan.cc: Removed.
  12422. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12423. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12424. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12425. * src/PeerAbstractCommand.cc: Use btRuntime.
  12426. * src/BtContextAwareCommand.h: New class.
  12427. * src/FileEntry.h: Added accessor methods for following variables.
  12428. (path): Made private.
  12429. (length): Made private.
  12430. (offset): Made private.
  12431. (extracted): Made private.
  12432. (requested): Made private.
  12433. (FileEntries): New definition.
  12434. (FileEntryHandle): New definition.
  12435. * src/FileEntry.cc: New file.
  12436. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12437. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12438. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12439. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12440. * src/PieceStorage.h: New file.
  12441. * src/PeerInteractionCommand.h: Use btContext.
  12442. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12443. btRuntime.
  12444. * src/DefaultBtProgressInfoFile.h: New file.
  12445. * src/DefaultBtProgressInfoFile.cc: New file.
  12446. * src/File.cc
  12447. (Util.h): New include.
  12448. (mkdirs): New function.
  12449. * src/MultiDiskAdaptor.h
  12450. (mkdir): New function.
  12451. * src/PeerListProcessor.h
  12452. (Peers): Removed.
  12453. * src/PeerInteraction.h
  12454. (torrentMan): Removed.
  12455. (btContext): New variable.
  12456. (peerStorage): New variable.
  12457. (pieceStorage): New variable.
  12458. (btAnnounce): New variable.
  12459. (getTorrentMan): Removed.
  12460. (getBtContext): New function.
  12461. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12462. btAnnounce.
  12463. * src/HandshakeMessage.h
  12464. (TorrentMan.h): Removed.
  12465. * src/HandshakeMessage.cc: Use btContext.
  12466. * src/DefaultBtAnnounce.cc: New file.
  12467. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12468. * src/DefaultPieceStorage.cc: New file.
  12469. * src/DefaultBtContext.h: New file.
  12470. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12471. Use the accessor methods of FileEntry.
  12472. * src/CookieBox.cc: Updated to use Util::slice().
  12473. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12474. * src/common.h (SharedHandle.h): New include.
  12475. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12476. pieceStorage.
  12477. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12478. * src/DiskAdaptor.h
  12479. (topDir): Removed.
  12480. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12481. (setTopDir): Removed.
  12482. (getTopDir): Removed.
  12483. * src/BtContext.h: New file.
  12484. * src/DefaultPeerStorage.h: New file.
  12485. * src/PieceMessage.h (TorrentMan.h): Removed.
  12486. * src/RequestMessage.h (TorrentMan.h): Removed.
  12487. * src/TorrentDownloadEngine.h
  12488. (uploadLength): New variable.
  12489. (btContext): New variable.
  12490. (btRuntime): New variable.
  12491. (pieceStorage): New variable.
  12492. (peerStorage): New variable.
  12493. (btAnnounce): New variable.
  12494. (btProgressInfoFile): New variable.
  12495. (torrentMan): Removed.
  12496. (setBtContext): New function.
  12497. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12498. peerStorage, btAnnounce, btProgressInfoFile.
  12499. * src/Piece.h
  12500. (toString): New function.
  12501. (Pieces): New type definition.
  12502. * src/Peer.h
  12503. (active): New variable.
  12504. (Peer): Added active.
  12505. (activate): Set active to true.
  12506. (deactivate): Set active to false.
  12507. (isActive): New function.
  12508. (Peers): New type definition.
  12509. * src/DirectDiskAdaptor.cc
  12510. (getFilePath): Use the accessor methods of FileEntry.
  12511. * src/TorrentConsoleDownloadEngine.h
  12512. (afterEachIteration): New function.
  12513. * src/TorrentConsoleDownloadEngine.cc
  12514. (haltRequested): New variable.
  12515. (sendStatistics): Use pieceStorage, btRuntime.
  12516. (afterEachIteration): New function.
  12517. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12518. * src/Directry.h
  12519. (Directory): New function.
  12520. (DirectoryHandle): New type definition.
  12521. * src/BtProgressInfoFile.h: New file.
  12522. * src/RequestMessage.cc: Use pieceStorage.
  12523. * src/BtRuntime.h: New file.
  12524. * src/DefaultBtContext.cc: New file.
  12525. * src/BitfieldMan.h
  12526. (getCompletedLength): New function(private).
  12527. (getCompletedLength): New function.
  12528. (getFilteredCompletedLength): New function.
  12529. * src/BitfieldMan.h
  12530. (getCompletedLength): New function(private).
  12531. (getCompletedLength): New function.
  12532. (getFilteredCompletedLength): New function.
  12533. * src/MultiDiskAdaptor.cc
  12534. (mkdir): New function.
  12535. (openFile): Call mkdir().
  12536. (initAndOpenFile): Call mkdir().
  12537. * src/CancelMessage.h
  12538. (TorrentMan.h): Removed.
  12539. * src/RejectMessage.h
  12540. (TorrentMan.h): Removed.
  12541. * src/DownloadEngineFactory.cc
  12542. (DefaultPieceStorage.h): New include.
  12543. (DefaultPeerStorage.h): New include.
  12544. (DefaultBtAnnounce.h): New include.
  12545. (DefaultBtProgressInfoFile.h): New include.
  12546. (newTorrentConsoleEngine): Rewritten.
  12547. * src/ShareRatioSeedCriteria.h
  12548. (torrentMan): Removed.
  12549. (btContext): New variable.
  12550. (peerStorage): New variable.
  12551. (btRuntime): New variable.
  12552. (evaluate): Use btContext, btRuntime, peerStorage.
  12553. * src/AnnounceTier.h: New file.
  12554. * src/BtAnnounce.h: New file.
  12555. * src/BtRegistry.h: New file.
  12556. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12557. * src/PeerConnection.h (TorrentMan.h): Removed.
  12558. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12559. * src/Util.h
  12560. (slice): Added an argument.
  12561. * src/Util.cc
  12562. (slice): Added an argument to control whether trim is made or not.
  12563. * src/PeerStorage.h: New file.
  12564. * src/BtRegistry.cc: New file.
  12565. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12566. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12567. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12568. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12569. * src/TorrentRequestInfo.h
  12570. (e): Removed.
  12571. (showFileEntry): Added an argument.
  12572. (getDownloadEngine): Return 0.
  12573. * src/DefaultBtAnnounce.h: New file.
  12574. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12575. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12576. * src/PeerMessageFactory.h
  12577. (btContext): New variable.
  12578. (pieceStorage): New variable.
  12579. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12580. btAnnounce.
  12581. * src/DiskAdaptor.cc
  12582. (DiskAdaptor): Removed topDir.
  12583. (~DiskAdaptor): Removed topDir.
  12584. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12585. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12586. * src/File.h (mkdirs): New function.
  12587. * src/DefaultPeerStorage): New file.
  12588. * src/DownloadEngineFactory.h
  12589. (newTorrentConsoleEngine): Use btContext.
  12590. * src/BtContextAwareCommand.cc: New file.
  12591. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12592. * src/PeerMessage.h
  12593. (btContext): New variable.
  12594. (peerStorage): New variable.
  12595. (pieceStorage): New variable.
  12596. (setBtContext): New function.
  12597. * src/Directry.cc
  12598. (Directory): New function.
  12599. (createDir): Do nothing if name.size() == 0.
  12600. * src/AnnounceList.h
  12601. (AnnounceTier): Removed.
  12602. (AnnounceTiers): Removed.
  12603. * src/DefaultPieceStorage.h: New file.
  12604. * src/Piece.cc (toString): New function.
  12605. To fix typo:
  12606. * src/main.cc (showVersion): Fixed typo.
  12607. To fix compile warning:
  12608. * src/DelegatingPeerListProcessor.cc
  12609. (canHandle): Added "return false".
  12610. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12611. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12612. make the process of announce request testable.
  12613. * src/TrackerWatcherCommand.h
  12614. (TimeA2.h): Removed.
  12615. (interval): Removed.
  12616. (checkPoint): Removed.
  12617. (createRequestCommand): Added an argument 'url'.
  12618. (TrackerWatherCommand): Removed interval.
  12619. (createCommand): New function.
  12620. * src/DownloadEngineFactory.cc
  12621. (newTorrentConsoleEngine): Updated according to the changes in
  12622. TrackerWatherCommand.
  12623. * src/TorrentMan.cc
  12624. (DelegatingPeerListProcessor.h): New includes.
  12625. (TorrentMan): Added the initialization of announceInterval.
  12626. (isStoppedAnnounceReady): New function.
  12627. (isCompletedAnnounceReady): New function.
  12628. (isDefaultAnnounceReady): New function.
  12629. (isAnnounceReady): New function.
  12630. (getAnnounceUrl): New function.
  12631. (announceStart): New function.
  12632. (announceFailure): New function.
  12633. (announceSuccess): New function.
  12634. (isAllAnnounceFailed): New function.
  12635. (resetAnnounce): New function.
  12636. (processAnnounceResponse): New function.
  12637. (needMorePeerConnection): New function.
  12638. (noMoreAnnounce): New function.
  12639. * src/TrackerUpdateCommand.h
  12640. (getTrackerResponse): int->size_t
  12641. * src/TorrentMan.h
  12642. (isStoppedAnnounceReady): New function.
  12643. (isCompletedAnnounceReady): New function.
  12644. (isDefaultAnnounceReady): New function.
  12645. (announceInterval): New variable.
  12646. (isAnnounceReady): New function.
  12647. (getAnnounceUrl): New function.
  12648. (announceStart): New function.
  12649. (announceFailure): New function.
  12650. (announceSuccess): New function.
  12651. (isAllAnnounceFailed): New function.
  12652. (resetAnnounce): New function.
  12653. (processAnnounceResponse): New function.
  12654. (needMorePeerConnection): New function.
  12655. (noMoreAnnounce): New function.
  12656. * src/TrackerWatcherCommand.cc
  12657. (TrackerWatherCommand): Removed interval and checkPoint.
  12658. (execute): Rewritten.
  12659. (createCommand): New function.
  12660. (createRequestCommand): Rewritten.
  12661. * src/TrackerUpdateCommand.cc
  12662. (MetaFileUtil.h): Removed.
  12663. (DelegatingPeerListProcessor.h): Removed.
  12664. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12665. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12666. Request -> RequestHandle:
  12667. * src/HttpResponseCommand.h: Request->RequestHandle
  12668. * src/AbstractCommand.cc: Request->RequestHandle
  12669. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12670. * src/HttpRequestCommand.cc: Request->RequestHandle
  12671. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12672. * src/AbstractCommand.h: Request->RequestHandle
  12673. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12674. * src/HttpResponseCommand.cc: Request->RequestHandle
  12675. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12676. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12677. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12678. * src/HttpConnection.h: Request->RequestHandle
  12679. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12680. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12681. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12682. * src/DownloadCommand.h: Request->RequestHandle
  12683. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12684. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12685. * src/HttpRequestCommand.h: Request->RequestHandle
  12686. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12687. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12688. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12689. * src/HttpDownloadCommand.h: Request->RequestHandle
  12690. * src/FtpConnection.cc: Request->RequestHandle
  12691. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12692. * src/UrlRequestInfo.cc: Request->RequestHandle
  12693. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12694. * src/HttpConnection.h: Request->RequestHandle
  12695. * src/DownloadCommand.cc: Request->RequestHandle
  12696. * src/FtpConnection.h: Request->RequestHandle
  12697. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12698. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12699. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12700. * src/Request.h
  12701. (SharedHandle.h): New include.
  12702. (RequestHandle): New type definition.
  12703. (Requests): Redefined.
  12704. To add MULTITRACKER support:
  12705. * src/TrackerWatcherCommand.h
  12706. (createRequestCommand): New function.
  12707. * src/DownloadEngineFactory.cc
  12708. (newTorrentConsoleEngine): Removed req.
  12709. * src/prefs.h
  12710. (PREF_TRACKER_MAX_TRIES): New definition.
  12711. * src/TorrentMan.cc
  12712. (TorrentMan): Removed req. Added trackerNumTry.
  12713. (~TorrentMan): Removed req.
  12714. (setupInternal1): Added announceList.
  12715. * src/TorrentRequestInfo.cc
  12716. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12717. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12718. * src/main.cc
  12719. (main): Added PREF_TRACKER_MAX_TRIES.
  12720. * src/TorrentMan.h
  12721. (Request.h): Removed.
  12722. (AnnounceList.h): New include.
  12723. (trackerNumTry): New variable.
  12724. (req): Removed.
  12725. (announceList): New variable.
  12726. * src/TrackerWatcherCommand.cc
  12727. (execute): Rewritten.
  12728. (createRequestCommand): New function.
  12729. * src/TrackerUpdateCommand.cc
  12730. (execute): Updated with the use of AnnounceList.
  12731. * src/AnnounceList.cc: New class.
  12732. * src/AnnounceList.h: New class.
  12733. To fix typo:
  12734. * src/prefs.h
  12735. (PREF_MAX_TRIES): max_try->max_tries
  12736. To not to decode "+" as space in URL decode:
  12737. * src/Util.cc
  12738. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12739. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12740. To add timeout to async name resolution:
  12741. * src/AbstractCommand.h
  12742. (nameResolveFinished): New function. This is not elegant way. It needs
  12743. to be more refined.
  12744. (nameResolverCheck): New variable.
  12745. * src/AbstractCommand.cc
  12746. (AbstractCommand): Added nameResolverCheck.
  12747. (execute): Added the check whether the name resolution has finished.
  12748. (setNameResolverCheck): Set nameResolverCheck to true.
  12749. (disableNameResolverCheck): Set nameResolverCheck to false.
  12750. (nameResolverFinished): New function.
  12751. * src/FtpInitiateConnectionCommand.h
  12752. (nameResolverFinished): New function.
  12753. * src/FtpInitiateConnectionCommand.cc
  12754. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12755. * src/HttpInitiateConnectionCommand.h
  12756. (nameResolverFinished): New function.
  12757. * src/HttpInitiateConnectionCommand.cc
  12758. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12759. * src/prefs.h
  12760. (PREF_DNS_TIMEOUT): New definition.
  12761. * src/main.cc
  12762. (main): Added PREF_DNS_TIMEOUT.
  12763. To add the support for a non-compact response from a tracker:
  12764. * src/PeerListProcessor.h: New class.
  12765. * src/DefaultPeerListProcessor.h: New class.
  12766. * src/DefaultPeerListProcessor.cc: New class.
  12767. * src/CompactPeerListProcessor.h: New class.
  12768. * src/CompactPeerListProcessor.cc: New class.
  12769. * src/DelegatingPeerListProcessor.h: New class.
  12770. * src/DelegatingPeerListProcessor.cc: New class.
  12771. * src/TorrentMan.cc
  12772. (addPeer): New function(overload).
  12773. (addPeer): Delete unused peers only when new peer is added.
  12774. * src/TorrentMan.h
  12775. (PeerListProcessor.h): Included.
  12776. (Peers): Removed.
  12777. (addPeer): New function(overload).
  12778. * src/TrackerUpdateCommand.cc
  12779. (netinet/in.h): Removed.
  12780. (DelegatingPeerListProcessor.h): Included.
  12781. (execute): Updated to use DelegatingPeerListProcessor.
  12782. To fix the memory leak in TorrentMan::peers:
  12783. * src/PeerAbstractCommand.cc
  12784. (onAbort): Added peer->resetStatus().
  12785. * src/Peer.h
  12786. (resetStatus): Made public.
  12787. To improve the precision of the speed calculation:
  12788. * src/SpeedCalc.h
  12789. (nextInterval): New variable.
  12790. * src/SpeedCalc.cc
  12791. (reset): Added nextInterval.
  12792. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12793. (changeSw): Set nextInterval to 15 seconds relative to the current
  12794. instant time.
  12795. * src/main.cc
  12796. (showVersion): Updated.
  12797. (showUsage): Updated.
  12798. * Release 0.8.1
  12799. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12800. * src/main.cc
  12801. (showUsage): Commented out --min-segment-size option.
  12802. (main): Commented out --min-segment-size option.
  12803. * Release 0.8.0
  12804. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12805. * src/*.{h,cc}:
  12806. Added an exception to the license which allows linking with OpenSSL.
  12807. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12808. * src/AbstractCommand.cc
  12809. (execute): Check whether the download has finished before checking
  12810. socket status.
  12811. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12812. Do not exit even if no segment is available.
  12813. * src/prefs.h
  12814. (PREF_STARTUP_IDLE_TIME): New definition.
  12815. * src/PeerInteractionCommand.cc
  12816. (executeInternal): Removed max speed limit. Because it performs bad.
  12817. (receiveMessages): Added max speed limit. This was better than above,
  12818. but still a little bit to be desired. Sometimes the download speed
  12819. became much faster than I specified.
  12820. * src/SpeedCalc.h
  12821. (start): New variable.
  12822. (accumulatedLength): New variable.
  12823. (getAvgSpeed): New function.
  12824. * src/SpeedCalc.cc
  12825. (reset): Added start, accumulatedLength.
  12826. (update): Added calculation of an average speed.
  12827. (getAvgSpeed): New function.
  12828. * src/DownloadCommand.h
  12829. (sw): Removed.
  12830. * src/main.cc
  12831. (main): Added PREF_STARTUP_IDLE_TIME.
  12832. * src/PeerStat.h
  12833. (STATUS): Added REQUEST_IDLE.
  12834. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12835. (getAvgDownloadSpeed): New function
  12836. (requestIdle): New function.
  12837. * src/SegmentMan.h
  12838. (SegmentEntryHandle): New type definition.
  12839. (SegmentEntries): Now holds SegmentEntryHandle.
  12840. (findSlowerSegmentEntry): New funtion.
  12841. * src/SegmentMan.cc
  12842. (save): Updated according to the changes in SegmentEntries.
  12843. (read): Updated according to the changes in SegmentEntries.
  12844. (FindSegmentEntryByIndex): Updated according to the changes in
  12845. SegmentEntries.
  12846. (FindSegmentEntryByCuid): Updated according to the changes in
  12847. SegmentEntries.
  12848. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12849. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12850. Renamed uitr as itr.
  12851. (findSlowerSegmentEntry): New function.
  12852. (getSegment): Updated according to the changes in SegmentEntries.
  12853. Added the feature that cancels the segment with slow server and fast
  12854. one takes it over.
  12855. (cancelSegment): Updated according to the changes in SegmentEntries.
  12856. (getDownloadLength): Updated according to the changes in
  12857. SegmentEntries.
  12858. (init): Assigned 0 to bitfield after deleting it.
  12859. * src/DownloadCommand.cc
  12860. (STARTUP_IDLE_TIME): Removed.
  12861. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12862. * src/PeerChokeCommand.cc
  12863. (optUnchokingPeer): Updated according to the changes in Peer.
  12864. (ResetDelta): Removed.
  12865. (UploadFaster): Updated according to the changes in Peer.
  12866. (DownloadFaster): Updated according to the changes in Peer.
  12867. (execute): I clarify the meaning of "upload" and "download" here.
  12868. "upload" means the transfer from localhost to remote host.
  12869. "download" means the transfer from remote host to localhost.
  12870. Based on this rule, I swapped orderByUploadRate and
  12871. orderByDownloadRate.
  12872. * src/PeerInteractionCommand.cc
  12873. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12874. (executeInternal): Removed the argument of
  12875. peerInteraction->sendMessages().
  12876. (receiveMessages): Rewritten download speed limit.
  12877. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12878. * src/HttpResponseCommand.cc
  12879. (handleDefaultEncoding): If file size is unknown in torrent request,
  12880. do not call segmentMan->initBitfield() here.
  12881. Disabled persistent connection feature in torrent request.
  12882. * src/UrlRequestInfo.h
  12883. (UrlRequestInfo): Removed const qualifier from option.
  12884. * src/TorrentMan.h
  12885. (TransferStat): New class.
  12886. (deltaDownloadLength): Removed.
  12887. (deltaUploadLength): Removed.
  12888. (addDeltaDownloadLength): Removed.
  12889. (getDeltaDownloadLength): Removed.
  12890. (resetDeltaDownloadLength): Removed.
  12891. (addDeltaUploadLength): Removed.
  12892. (getDeltaUploadLength): Removed.
  12893. (resetDeltaUploadLength): Removed.
  12894. (addActivePeer): Added peer->activate().
  12895. (deleteActivePeer): Added peer->deactivate().
  12896. (calculateStat): New function.
  12897. * src/TorrentMan.cc
  12898. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12899. (calculateStat): New function.
  12900. * src/PeerInteraction.h
  12901. (uploadLimit): Removed.
  12902. (option): New variable.
  12903. (setUploadLimit): Removed.
  12904. (getUploadSpeed): Removed.
  12905. (sendMessages): Removed the argument "currentUploadSpeed".
  12906. * src/PeerInteraction.cc
  12907. (prefs.h): Included.
  12908. (PeerInteraction): Removed uploadLimit. Added option.
  12909. (sendMessages): Rewritten upload speed limit.
  12910. (sendHandshake): Removed the argument from sendMessages().
  12911. (sendBitfield): Removed the argument from sendMessages().
  12912. * src/PeerAbstractCommand.cc
  12913. (execute): Commented out the portion of upload limit.
  12914. (onAbort): Removed peer->resetStatus().
  12915. * src/TorrentRequestInfo.cc
  12916. (timeoutSpecified): Declared extern.
  12917. (execute): Set timeout to 180 if timeout is not specified by.
  12918. command-line.
  12919. * src/PieceMessage.cc
  12920. (receivedAction): Added peer->updateDownloadLength().
  12921. Removed peer->addPeerUpload().
  12922. Removed torrentMan->addDeltaDownloadLength().
  12923. (send): Added peer->updateUploadLength().
  12924. Removed peer->addPeerDownload().
  12925. Removed torrentMan->addDeltaUploadLength().
  12926. * src/main.cc
  12927. (timeoutSpecified): New variable.
  12928. (main): Set timeoutSpecified to false.
  12929. If the command-line option "--upload-limit" is specified, then
  12930. timeoutSpecified is set to true. This option will remain in the next
  12931. release, but be deprecated in the future release.
  12932. * src/TorrentRequestInfo.h
  12933. (TorrentRequestInfo): Removed const qualifier from op.
  12934. * src/PeerStat.h
  12935. (uploadSpeed): New variable.
  12936. (PeerStat): Added default value to cuid.
  12937. (calculateUploadSpeed): New function.
  12938. (updateUploadLength): New function.
  12939. (getMaxUploadSpeed): New function.
  12940. (getAvgUploadSpeed): New function.
  12941. (reset): Added uploadSpeed. Set status to IDLE.
  12942. * src/TorrentDownloadEngine.h
  12943. (cp): Declared as Time.
  12944. (sessionDownloadLengthArray): Removed.
  12945. (sessionUploadLengthArray): Removed.
  12946. (currentCp): Removed.
  12947. (lastCalcStat): New variable
  12948. (lastElapsed): Removed.
  12949. (sessionDownloadLength): Removed.
  12950. (calculateStat): New function.
  12951. * src/TorrentDownloadEngine.cc
  12952. (initStatistics): Removed lastElapsed, cp[],
  12953. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12954. currentCp, sessionDownloadLength.
  12955. Added cp.reset() and lastCalcStat.reset().
  12956. (calculateSpeed): Changed the name of the argument.
  12957. (calculateStatistics): Rewritten.
  12958. (calculateStat): New function.
  12959. * src/Peer.h
  12960. (PeerStat.h): Included.
  12961. (peerUpload): Removed.
  12962. (peerDownload): Removed.
  12963. (peerStat): New variable.
  12964. (sessionUploadLength): New variable.
  12965. (sessionDownloadLength): New variable.
  12966. (deltaUpload): Removed.
  12967. (deltaDownload): Removed.
  12968. (resetStatus): Made private.
  12969. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12970. Removed peerUpload, peerDownload.
  12971. (updateUploadLength): New function.
  12972. (addDeltaUpload): Removed.
  12973. (updateDownloadLength): New function.
  12974. (resetDeltaUpload): Removed.
  12975. (getDeltaUpload): Removed.
  12976. (addDeltaDownload): Removed.
  12977. (calculateUploadSpeed): New function.
  12978. (resetDeltaDownload): Removed.
  12979. (getDeltaDownload): Removed.
  12980. (calculateDownloadSpeed): New function.
  12981. (getSessionUploadLength): New function.
  12982. (getSessionDownloadLength): New function.
  12983. (activate): New function.
  12984. (deactivate): New function.
  12985. (addPeerUpload): Removed.
  12986. (setPeerUpload): Removed.
  12987. (getPeerUpload): Removed.
  12988. (addPeerDownload): Removed.
  12989. (setPeerDownload): Removed.
  12990. (getPeerDownload): Removed.
  12991. * src/Peer.cc
  12992. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12993. * src/MetalinkRequestInfo.h
  12994. (MetalinkRequestInfo): Removed const qualifier from op.
  12995. * src/RequestInfo.h
  12996. (op): Removed const qualifier.
  12997. (RequestInfo): Removed const qualifier from op.
  12998. * src/prefs.h
  12999. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13000. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13001. * src/PeerInteractionCommand.cc
  13002. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13003. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13004. * src/PeerInteraction.cc
  13005. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13006. * src/main.cc
  13007. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13008. Added the description of "--max-download-limit" option.
  13009. Removed the description of "--upload-limit" option.
  13010. Added the description of "--max-upload-limit" option.
  13011. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13012. Added "--max-download-limit" option and "--max-upload-limit" option.
  13013. Added the warning message if "--upload-limit" option is used.
  13014. * src/DownloadCommand.cc
  13015. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13016. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13017. To rewrite segment download mechanism for HTTP/FTP download.
  13018. Use BitfieldMan to manage segment download.
  13019. * src/HttpResponseCommand.h
  13020. (executeInternal): Pass the reference of segment.
  13021. * src/AbstractCommand.cc
  13022. (prepareForRetry): Call segmentMan->cancelSegment here.
  13023. (onAbort): Call segmentMan->cancelSegment here.
  13024. * src/HttpDownloadCommand.cc
  13025. (prepareForNextSegment): New function.
  13026. * src/DownloadEngineFactory.cc
  13027. (newConsoleEngine): Removed splitter.
  13028. (newTorrentConsoleEngine): Removed splitter.
  13029. * src/Request.h
  13030. (segment): Renamed from seg.
  13031. * src/FtpInitiateConnectionCommand.h
  13032. (executeInternal): Pass the reference of segment.
  13033. * src/AbstractCommand.h
  13034. (executeInternal): Pass the reference of segment.
  13035. * src/pref.h
  13036. (PREF_SEGMENT_SIZE): New definition.
  13037. * src/HttpProxyRequestCommand.h
  13038. (executeInternal): Pass the reference of segment.
  13039. * src/HttpResponseCommand.cc
  13040. (checkResponse): Allowed status 206 when a request range starts 0.
  13041. (handleDefaultEncoding): Rewritten the code related to Segment.
  13042. (handleOtherEncoding): Rewritten the code related to Segment.
  13043. * src/SegmentMan.h
  13044. (SegmentEntry): New class.
  13045. (SegmentEntries): New type definition.
  13046. (bitfield): New variable.
  13047. (usedSegmentEntries): New variable.
  13048. (onNullBitfield): New function.
  13049. (checkoutSegment): New function.
  13050. (segments): Removed.
  13051. (splitter): Removed.
  13052. (unregisterId): Removed.
  13053. (getSegment): New function(overload)
  13054. (getDownloadedSize): Removed.
  13055. (cancelSegment): New function.
  13056. (completeSegment): New function.
  13057. (initBitfield): New function.
  13058. (hasSegment): New function.
  13059. (getDownloadLength): New function.
  13060. * src/BitfieldMan.h
  13061. (getStartIndex): New function.
  13062. (getEndIndex): New function.
  13063. (getMissingUnusedIndex): New function(overload).
  13064. (getSparseMissingUnusedIndex): New function.
  13065. * src/BitfieldMan.cc
  13066. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13067. (getMissingUnusedIndex): New function(overload).
  13068. (Range): New class.
  13069. (getStartIndex): New function.
  13070. (getEndIndex): New function.
  13071. (getSparseMissingUnusedIndex): New function.
  13072. (isBitSetInternal): Return false if the given index is less than 0.
  13073. * src/HttpInitiateConnectionCommand.h
  13074. (executeInternal): Pass the reference of segment.
  13075. * src/FtpNegotiateCommand.h
  13076. (executeInternal): Pass the reference of segment.
  13077. * src/FtpNegotiateCommand.cc
  13078. (recvSize): Initialize bitfield here.
  13079. * src/FtpTunnelResponseCommand.h
  13080. (executeInternal): Pass the reference of segment.
  13081. * src/HttpConnection.cc
  13082. (createRequest): Rewritten range header processing.
  13083. * src/DownloadCommand.h
  13084. (executeInternal): Pass the reference of segment.
  13085. (prepareForRetry): Removed.
  13086. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13087. function.
  13088. * src/main.cc
  13089. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13090. * src/SegmentMan.cc
  13091. (SegmentMan): Added bitfield. Removed splitter.
  13092. (~SegmentMan): Added bitfield. Removed splitter.
  13093. (unregisterId): Removed.
  13094. (getSegment): Rewritten.
  13095. (updateSegment): Rewritten.
  13096. (save): Rewritten.
  13097. (read): Rewritten.
  13098. (finished): Rewritten.
  13099. (getDownloadedSize): Removed.
  13100. (initBitfield): New function.
  13101. (FindSegmentEntryByIndex): New function object.
  13102. (FindSegmentEntryByCuid): New function object.
  13103. (checkoutSegment): New function.
  13104. (onNullBitfield): New function.
  13105. (getSegment): New function(overload).
  13106. (CancelSegment): New function object.
  13107. (cancelSegment): New function.
  13108. (completeSegment): New function.
  13109. (hasSegment): New function.
  13110. (getDownloadLength): New function.
  13111. * src/FtpInitiateConnectionCommand.cc
  13112. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13113. * src/Segment.h: Rewritten.
  13114. * src/Segment.cc (operator<<): New function.
  13115. * src/HttpDownloadCommand.h
  13116. (prepareForNextSegment): New function.
  13117. * src/Request.cc
  13118. (resetUrl): Made segment null.
  13119. * src/DownloadEngine.cc
  13120. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13121. * src/HttpProxyRequestCommand.h
  13122. (executeInternal): Pass the reference of segment.
  13123. * src/DownloadCommand.cc
  13124. (executeInternal): Rewritten the code related to Segment.
  13125. (prepareForRetry): Removed.
  13126. (prepareForNextSegment): Rewritten.
  13127. * src/FtpTunnelResponseCommand.h
  13128. (executeInternal): Pass the reference of segment.
  13129. To add HTTP 1.1 persistent connection support(experimental)
  13130. * src/HttpRequestCommand.cc
  13131. (executeInternal): Disable keep alive if it is disabled by
  13132. configuration.
  13133. * src/Request.h
  13134. (keepAlive): New variable.
  13135. (isKeepAlive): New function.
  13136. (setKeepAlive): New function.
  13137. * src/pref.h
  13138. (PREF_HTTP_KEEP_ALIVE): New definition.
  13139. * src/HttpResponseCommand.cc
  13140. (executeInternal): Check the remote server supports keep alive.
  13141. * src/HttpConnection.cc
  13142. (createRequest): Send "Connection: close" only if keep alive is
  13143. disabled.
  13144. * src/main.cc
  13145. (main):
  13146. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13147. To add max download speed limit:
  13148. * src/pref.h
  13149. (PREF_MAX_SPEED_LIMIT): New definition.
  13150. * src/PeerInteractionCommand.cc
  13151. (executeInternal): Added max download speed limit. Not tested yet.
  13152. * src/SegmentMan.h
  13153. (PeerStats): New type definition.
  13154. (peerStats): New variable.
  13155. (registerPeerStat): New function.
  13156. (FindPeerStat): New function object.
  13157. (getPeerStat): New function.
  13158. (calculateDownloadSpeed): New function.
  13159. * src/SpeedCalc.h: New class.
  13160. * src/SpeedCalc.cc: New class.
  13161. * src/main.cc
  13162. (main):
  13163. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13164. download speed is not restricted).
  13165. * src/PeerStat.h: New class.
  13166. * src/SegmentMan.cc
  13167. (registerPeerStat): New function.
  13168. (calculateDownloadSpeed): New function.
  13169. * src/DownloadCommand.cc
  13170. (STARTUP_IDLE_TIME): New definition.
  13171. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13172. downloadStart.
  13173. (~DownloadCommand): Call peerStat->downloadStop.
  13174. (executeInternal): Added download speed limitter. Rewritten lowest
  13175. speed limitter.
  13176. * src/HttpConnection.cc
  13177. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13178. * src/AbstractCommand.cc
  13179. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13180. Added hostname to the error message.
  13181. * src/ConsoleDownloadEngine.cc
  13182. (calculateStatistics): Initialize psize with dlSize.
  13183. * src/PieceMessage.cc
  13184. (receivedAction): Do not call peerInteraction->abortPiece here.
  13185. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13186. * src/BitfieldMan.h
  13187. (clearAllUseBit): New function.
  13188. (setAllUseBit): New function.
  13189. * src/BitfieldMan.cc
  13190. (clearAllBit): Do not clear useBitfield here.
  13191. (clearAllUseBit): New function.
  13192. (setAllUseBit): New function.
  13193. * src/Piece.cc
  13194. (clearAllBlock): Call bitfield->clearAllUseBit().
  13195. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13196. To make filename URL-decoded:
  13197. * src/HttpResponseCommand.h: Updated doc.
  13198. * src/HttpResponseCommand.cc
  13199. (determinFilename): Made filename URL-decoded.
  13200. * src/FtpInitiateConnectionCommand.cc
  13201. (executeInternal): Made filename URL-decoded.
  13202. * src/Util.h (urldecode): New function.
  13203. * src/Util.cc (urldecode): New function.
  13204. To fix a bug that caused assertion failure in ares_strerror:
  13205. * src/NameResolver.cc (callback): Fixed the bug.
  13206. * Release 0.7.3
  13207. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13208. To add --seed-time and --seed-ratio command-line option:
  13209. * src/Option.h (getAsDouble): New function.
  13210. * src/Option.cc (getAsDouble): New function.
  13211. * src/SeedCheckCommand.h: New class.
  13212. * src/SeedCheckCommand.cc: New class.
  13213. * src/DownloadEngineFactory.cc
  13214. (SeedCheckCommand.h): Included.
  13215. (UnionSeedCriteria.h): Included.
  13216. (TimeSeedCriteria.h): Included.
  13217. (ShareRatioSeedCriteria.h): Included.
  13218. (newTorrentConsoleEngine): Added the processing of seed option.
  13219. * src/SeedCriteria.h: New class.
  13220. * src/ShareRatioSeedCriteria.h: New class.
  13221. * src/TimeSeedCriteria.h: New class.
  13222. * src/UnionSeedCriteria.h: New class.
  13223. * src/prefs.h
  13224. (PREF_SEED_TIME): New definition.
  13225. (PREF_SEED_RATIO): New definition.
  13226. * src/main.cc
  13227. (showUsage): Added --seed-time and --seed-ratio option.
  13228. (main): Added --seed-time and --seed-ratio option.
  13229. Made default log file name "/dev/null".
  13230. * src/SharedHandle.h
  13231. (SharedHandle): Copy constructor. Made it assignable from the
  13232. SharedHandle of the subclasses.
  13233. (operator=): Made it assignable from the SharedHandle of the
  13234. subclasses.
  13235. (getRefCount): New function.
  13236. To add notice log level and the switch to write log to stdout. This
  13237. switch is configurable per log level.
  13238. * src/Logger.h
  13239. (notice): New function.
  13240. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13241. constant.
  13242. * src/LogFactory.cc
  13243. (getInstance): The use of NullLogger was removed. A log message with
  13244. notice log level was made written to stdout along with log file.
  13245. * src/NullLogger.h
  13246. (notice): New function.
  13247. * src/SimpleLogger.h
  13248. (writeHeader): Added the 'file' argument.
  13249. (writeLog): Added the 'file' argument.
  13250. (writeFile): New function.
  13251. (stdoutField): New variable.
  13252. (SimpleLogger): Removed the default constructor.
  13253. (SimpleLogger): Made the default value of logfile 0.
  13254. (debug): Added 'virtual' keyword.
  13255. (info): Added 'virtual' keyword.
  13256. (warn): Added 'virtual' keyword.
  13257. (error): Added 'virtual' keyword.
  13258. (notice): New function.
  13259. (setStdout): New function.
  13260. * src/SimpleLogger.cc
  13261. (WRITE_LOG): Replaced writeLog with writeFile.
  13262. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13263. (SimpleLogger): Removed the default constructor.
  13264. (setStdout): New function.
  13265. (writeLog): Added the handling of NOTICE log level.
  13266. (writeFile): New function.
  13267. (notice): New function.
  13268. * src/TorrentMan.h: Updated doc.
  13269. * src/BitfieldMan.h: Updated doc.
  13270. * src/TrackerWatcherCommand.cc
  13271. (execute): Return true if error occurred in the request to the tracker
  13272. and halt is requested.
  13273. * src/TrackerUpdateCommand.cc
  13274. (execute): Return true if error occurred in the request to the tracker
  13275. and halt is requested.
  13276. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13277. DownloadEngine:
  13278. * src/TorrentConsoleDownloadEngine.h
  13279. (onSelectiveDownloadingCompletes): Removed.
  13280. * src/TorrentConsoleDownloadEngine.cc
  13281. (onSelectiveDownloadingCompletes): Removed.
  13282. * src/TorrentDownloadEngine.h
  13283. (onEndOfRun): Added 'virtual' keyword.
  13284. (afterEachIteration): Removed.
  13285. (onSelectiveDownloadingCompletes): Removed.
  13286. * src/TorrentDownloadEngine.cc
  13287. (onEndOfRun): Removed filenameFixed.
  13288. (afterEachIteration): Removed.
  13289. * src/TorrentMan.cc
  13290. (completePiece): Call onDownloadComplete here.
  13291. (onDownloadComplete): Added 2 log messages.
  13292. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13293. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13294. * src/NameResolver.h: Added the prototype declaration of callback().
  13295. To support c-ares library:
  13296. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13297. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13298. * src/FtpInitiateConnectionCommand.h:
  13299. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13300. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13301. * src/HttpInitiateConnectionCommand.h:
  13302. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13303. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13304. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13305. #1542285 by tizianomueller)
  13306. * src/HttpInitiateConnectionCommand.cc:
  13307. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13308. * src/FtpInitiateConnectionCommand.cc:
  13309. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13310. * src/DownloadEngine.h:
  13311. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13312. * src/DownloadEngine.cc:
  13313. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13314. To fix the bug that causes compilation failure with metalink-support
  13315. disabled(bug#1543587):
  13316. * src/main.cc: Fixed with the patch by tizianomueller.
  13317. * Release 0.7.2
  13318. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13319. * src/main.cc
  13320. (main): Added a message to inform users that aria2 is starting to
  13321. verify checksum.
  13322. * src/RequestInfo.cc
  13323. (printDownloadAbortMessage): Added a message to inform users that
  13324. transfer can be resumed.
  13325. * src/FeatureConfig.cc
  13326. (FEATURE_ASYNC_DNS): New definition.
  13327. (FeatureConfig): Added aysnc DNS entry.
  13328. To replace CommandUuid with Command* in SocketEntry and
  13329. NameResolverEntry:
  13330. * src/DownloadEngine.h
  13331. (CommandUuids): Removed.
  13332. (SocketEntry::commandUuid): Removed.
  13333. (SocketEntry::command): New variable.
  13334. (SocketEntry::SocketEntry): Updated.
  13335. (SocketEntry::operator==): Updated.
  13336. (NameResolverEntry::commandUuid): Removed.
  13337. (NameResolverEntry::command): New variable.
  13338. (NameResolverEntry::NameResolverEntry): Updated.
  13339. (NameResolverEntry::operator==): Updated.
  13340. (waitData): Changed the argument type.
  13341. (addSocketForReadCheck): Changed the argument type.
  13342. (deleteSocketForReadCheck): Changed the argument type.
  13343. (addSocketForWriteCheck): Changed the argument type.
  13344. (deleteSocketForWriteCheck): Changed the argument type.
  13345. (addNameResolverCheck): Changed the argument type.
  13346. (deleteNameResolverCheck): Changed the argument type.
  13347. * src/DownloadEngine.cc
  13348. (FindCommand): Removed.
  13349. (run): Removed activeUuid. Added activeCommands instead.
  13350. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13351. (AccumulateActiveCommand): New function object.
  13352. (waitData): Use AccumulateActiveCommand.
  13353. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13354. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13355. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13356. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13357. (addNameResolverCheck): Use Command instead of CommandUuid.
  13358. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13359. * src/AbstractCommand.cc
  13360. (disableReadCheckSocket): Updated according to the changes in
  13361. DownloadEngine.
  13362. (setReadCheckSocket): Updated according to the changes in
  13363. DownloadEngine.
  13364. (disableWriteCheckSocket): Updated according to the changes in
  13365. DownloadEngine.
  13366. (setWriteCheckSocket): Updated according to the changes in
  13367. DownloadEngine.
  13368. (setNameResolverCheck): Updated according to the changes in
  13369. DownloadEngine.
  13370. (disableNameResolverCheck): Updated according to the changes in
  13371. DownloadEngine.
  13372. * src/AbstractCommand.cc
  13373. (disableReadCheckSocket): Updated according to the changes in
  13374. DownloadEngine.
  13375. (setReadCheckSocket): Updated according to the changes in
  13376. DownloadEngine.
  13377. (disableWriteCheckSocket): Updated according to the changes in
  13378. DownloadEngine.
  13379. (setWriteCheckSocket): Updated according to the changes in
  13380. DownloadEngine.
  13381. * release 0.7.1
  13382. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13383. To handle the case where some BitTorrent tracker requires all letters
  13384. except for [A-Za-z0-9] is URL encoded.
  13385. * src/Util.h
  13386. (torrentUrlencode): New function.
  13387. * src/Util.cc
  13388. (ctype.h): Included.
  13389. (torrentUrlencode): New function.
  13390. * src/TrackerWatcherCommand.cc
  13391. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13392. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13393. To add asynchronous DNS support(libares):
  13394. * src/AbstractCommand.h
  13395. (setNameResolverCheck): New function.
  13396. (disableNameResolverCheck): New function
  13397. (resolveHostname): New function.
  13398. * src/AbstractCommand.cc
  13399. (setNameResolverCheck): New function.
  13400. (disableNameResolverCheck): New function
  13401. (resolveHostname): New function.
  13402. * src/FtpInitiateConnectionCommand.h
  13403. (nameResolver): New function.
  13404. * src/FtpInitiateConnectionCommand.cc
  13405. (Util.h): Included.
  13406. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13407. disableWriteCheckSocket.
  13408. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13409. (executeInternal): Added async DNS support.
  13410. * src/HttpInitiateConnectionCommand.h
  13411. (nameResolver): New function.
  13412. * src/HttpInitiateConnectionCommand.cc
  13413. (DlRetryEx.h): Included.
  13414. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13415. disableWriteCheckSocket.
  13416. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13417. (executeInternal): Added async DNS support.
  13418. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13419. by extern "C" declaration.
  13420. * src/NameResolver.cc: New class.
  13421. * src/Util.h:
  13422. (isNumberAndDotsNotation): New function
  13423. * src/Util.cc
  13424. (isNumberAndDotsNotation): New function.
  13425. * src/DownloadEngine.h
  13426. (NameResolver.h): Included.
  13427. (NameResolverEntry): New class.
  13428. (NameResolverEntries): New type definition.
  13429. (addNameResolverCheck): New function.
  13430. (deleteNameResolverCheck): New function.
  13431. * src/DownloadEngine.cc
  13432. (run): Initialize cp with 0.
  13433. (SetDescriptor::operator()): Added for NameResolverEntry.
  13434. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13435. (waitData): Check nameResolver entries.
  13436. (updateFdSet): Update fds in nameResolver entries.
  13437. (addNameResolverCheck): New function.
  13438. (deleteNameResolverCheck): new function.
  13439. * src/PeerInteractionCommand.cc
  13440. (executeInternal): Fixed wrong socket handling.
  13441. * src/main.cc
  13442. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13443. * src/Util.cc
  13444. (fileChecksum): Removed the call to ctx.digestReset().
  13445. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13446. * po/ru.po: Azamat sent me Russian translation.
  13447. * src/FtpNegotiateCommand.cc
  13448. (recvGreeting): Call disableWriteCheckSocket just after
  13449. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13450. (recvRetr): Recognized status code 125 as a acceptable response code.
  13451. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13452. case-insesitive filesystem(BUG#1531057).
  13453. * src/Time.h: Renamed as TimeA2.h.
  13454. * src/Time.cc: Renamed as TimeA2.cc.
  13455. * src/TimeA2.h: New class.
  13456. * src/TimeA2.cc: New class.
  13457. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13458. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13459. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13460. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13461. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13462. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13463. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13464. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13465. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13466. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13467. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13468. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13469. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13470. * release 0.7.0
  13471. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13472. * src/PeerChokeCommand.h
  13473. (PeerChokeCommand): Rearranged the arguments.
  13474. * src/PeerChokeCommand.cc
  13475. (PeerChokeCommand): Rearranged the arguments.
  13476. * src/MetalinkEntry.h
  13477. (Checksum.h): Included.
  13478. (md5): Removed.
  13479. (sha1): Removed.
  13480. (checksum): New variable.
  13481. (operator=): Updated.
  13482. (check): Removed.
  13483. * src/prefs.h
  13484. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13485. (PREF_FOLLOW_TORRENT): New definition.
  13486. (PREF_SELECT_FILE): New definition.
  13487. (PREF_FOLLOW_METALINK): New definition.
  13488. * src/MetalinkResource.h
  13489. (TYPE_HTTPS): Added to enum TYPE.
  13490. * src/TorrentMan.cc
  13491. (~TorrentMan): Rewritten.
  13492. * src/MultiDiskWriter.cc
  13493. (MultiDiskAdaptor): Updated according to the changes in
  13494. MessageDigestContext.
  13495. (~MultiDiskAdaptor): Updated according to the changes in
  13496. MessageDigestContext.
  13497. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13498. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13499. * src/Util.h
  13500. (fileChecksum): Updated according to the changes in
  13501. MessageDigestContext.
  13502. * src/Util.cc
  13503. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13504. (fileChecksum): Updated according to the changes in
  13505. MessageDigestContext.
  13506. * src/messageDigest.h: Rewritten.
  13507. * src/MetalinkEntry.cc
  13508. (check): Removed.
  13509. (Supported): Updated.
  13510. (dropUnsupportedResource): Fixed a memory leak.
  13511. * src/ShaVisitor.cc
  13512. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13513. (~ShaVisitor): Updated according to the changes in
  13514. MessageDigestContext.
  13515. (visit): Updated according to the changes in MessageDigestContext.
  13516. * src/main.cc
  13517. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13518. command-line option added.
  13519. * src/DownloadEngine.h
  13520. (SocketEntry): New class.
  13521. (SocketEntries): New definition.
  13522. (PairFind): Removed.
  13523. (SockCmdMap): Removed.
  13524. * src/DownloadEngine.cc
  13525. (DownloadEngine): Rewritten.
  13526. (~DownloadEngine): Rewritten.
  13527. (run): Renamed activeCommandUuids as activeUuids.
  13528. (SetDescriptor): Rewritten.
  13529. (AccumulateActiveCommandUuid): Removed.
  13530. (AccumulateActiveUuid): New function object.
  13531. (waitData): Rewritten.
  13532. (updateFdSet): Rewritten.
  13533. (addSocket): Rewritten.
  13534. (deleteSocket): Rewritten.
  13535. (addSocketForReadCheck): Rewritten.
  13536. (deleteSocketForReadCheck): Rewritten.
  13537. (addSocketForWriteCheck): Rewritten.
  13538. (deleteSocketForWriteCheck): Rewritten.
  13539. * src/Xml2MetalinkProcessor.cc
  13540. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13541. * src/DownloadCommand.cc
  13542. (executeInternal): Added the check routine for lowest speed limit.
  13543. * src/AbstractDiskWriter.cc
  13544. (AbstractDiskWriter): Updated according to the changes in
  13545. MessageDigestContext.
  13546. (~AbstractDiskWriter): Updated according to the changes in
  13547. MessageDigestContext.
  13548. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13549. * src/RequestInfo.h: New class.
  13550. * src/UrlRequestInfo.h: New class.
  13551. * src/UrlRequestInfo.cc: New class.
  13552. * src/TorrentRequestInfo.h: New class.
  13553. * src/TorrentRequestInfo.cc: New class.
  13554. * src/MetalinkRequestInfo.h: New class.
  13555. * src/MetalinkRequestInfo.cc: New class.
  13556. * src/Checksum.h: New class.
  13557. * src/DownloadEngineFactory.h: New class.
  13558. * src/DownloadEngineFactory.cc: New class.
  13559. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13560. * src/Option.h
  13561. (getAsBool): New function.
  13562. * src/Option.cc
  13563. (prefs.h): Included.
  13564. (defined): 0-length value is now recognized as undefined.
  13565. (getAsInt): Rewritten.
  13566. (getAsLLInt): Rewritten.
  13567. (getAsBool): New function.
  13568. * src/FeatureConfig.h: Rewritten.
  13569. * src/FeatureConfig.cc: Rewritten.
  13570. * src/prefs.h
  13571. (PREF_STDOUT_LOG): New definition.
  13572. (PREF_LOG): New definition.
  13573. (PREF_DIR): New definition.
  13574. (PREF_OUT): New definition.
  13575. (PREF_SPLIT): New definition.
  13576. (PREF_DAEMON): New definition.
  13577. (PREF_REFERER): New definition.
  13578. (PREF_TORRENT_FILE): New definition.
  13579. (PREF_LISTEN_PORT): New definition.
  13580. (PREF_METALINK_FILE): New definition.
  13581. (PREF_METALINK_VERSION): New definition.
  13582. (PREF_METALINK_LANGUAGE): New definition.
  13583. (PREF_METALINK_OS): New definition.
  13584. (PREF_METALINK_SERVERS): New definition.
  13585. * src/main.cc
  13586. (main): Following command-line parameters are now put into Option
  13587. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13588. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13589. metalinkLanguage, metalinkOs, metalinkServers
  13590. To fix the bug that aria2 can not handle http response header properly.
  13591. * src/HttpHeader.cc
  13592. (put): Made name lowercased.
  13593. (defined): Made name lowercased.
  13594. (getFirst): Made name lowercased.
  13595. (get): Made name lowercased.
  13596. (getFirstAsInt): Rewritten.
  13597. (getFirstAsLLInt): Rewritten.
  13598. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13599. * src/TorrentMan.h:
  13600. (advertisePiece): Updated doc.
  13601. (getAdvertisedPieceIndexes): Updated doc.
  13602. (removeAdvertisedPiece); New function.
  13603. * src/TorrentMan.cc
  13604. (FindElapsedHave): New function object.
  13605. (removeAdvertisedPiece): New function.
  13606. * src/HaveEraseCommand.h: New class.
  13607. * src/HaveEraseCommand.cc: New class.
  13608. * src/FeatureConfig.h: New class.
  13609. * src/FeatureConfig.cc: New class.
  13610. * src/Request.h
  13611. (defaultPorts): Removed.
  13612. * src/Request.cc
  13613. (FeatureConfig.h): Included.
  13614. (Request): Removed the statements related to defaultPorts.
  13615. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13616. A default port number is now retrieved from FeatureConfig.
  13617. * src/main.cc
  13618. (HaveEraseCommand.h): Included.
  13619. (showVersion): Added the output of feature list.
  13620. (main): Added HaveEraseCommand to command queue in BitTorrent
  13621. downloading.
  13622. * src/PeerInteractionCommand.h
  13623. (chokeCheckPoint): Commented out.
  13624. (periodicExecPoint): New variable.
  13625. * src/PeerInteractionCommand.cc
  13626. (executeInternal): Following methods are now called in at least every
  13627. 0.5 seconds to reduce CPU usage:
  13628. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13629. checkHave(), sendKeepAlive().
  13630. (checkLongTimePeerChoking): Commented out.
  13631. * src/BitfieldMan.h
  13632. (getNthBitIndex): Changed the method signature.
  13633. (getMissingIndexRandomly): Changed the method signature.
  13634. * src/BitfieldMan.cc
  13635. (getNthBitIndex): Rewritten
  13636. (getMissingIndexRandomly): Rewritten.
  13637. (hasMissingPiece): Rewritten.
  13638. (getMissingIndex): Refactored.
  13639. (getMissingUnusedIndex); Refactored.
  13640. (getMissingIndex): Refactored.
  13641. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13642. * src/PeerMessage.h
  13643. (Piece.h): Included.
  13644. (SharedHandle.h): Included.
  13645. (invalidate): New variable.
  13646. (uploading): New variable.
  13647. (isInvalidate): New function.
  13648. (isUploading): New function.
  13649. (onPush): New function.
  13650. (onChoked): New function.
  13651. (onCanceled): New function.
  13652. (onAbortPiece): New function.
  13653. (PeerMessageHandle): New type definition.
  13654. * src/PeerMessage.cc
  13655. (PeerMessage): Added the initialization for invalidate and uploading.
  13656. * src/CancelMessage.h
  13657. (CancelMessage): Rewritten.
  13658. * src/RejectMessage.h
  13659. (RejectMessage): Rewritten.
  13660. * src/Metalinker.h
  13661. (operator=): Defined.
  13662. * src/MetaEntry.h
  13663. (operator=): Defined.
  13664. * src/MetalinkResource.h
  13665. (operator=): Defined.
  13666. * src/AllowedFastMessage.h
  13667. (AllowedFastMessage): Rewritten.
  13668. * src/HandshakeMessage.h
  13669. (HandshakeMessage): New function(overload).
  13670. * src/HandshakeMessage.cc
  13671. (HandshakeMessage): Rewritten.
  13672. (init): New function.
  13673. * src/HaveMessage.h
  13674. (HaveMessage): Rewritten.
  13675. * src/Time.h
  13676. (operator=): Defined the function body here.
  13677. * src/Time.cc
  13678. (operator=): Removed.
  13679. * src/SocketCore.h
  13680. (operator==): Defined here.
  13681. (operator!=): Defined here.
  13682. (operator<): Defined here.
  13683. * src/SocketCore.cc
  13684. (operator==): Removed.
  13685. (operator<): Removed.
  13686. * src/BitfieldMan.h
  13687. (operator=): Defined the function body here.
  13688. * src/BitfieldMan.cc
  13689. (operator=): Removed.
  13690. * src/TorrentMan.h
  13691. (deleteErrorPeer): Removed.
  13692. (deleteUnusedPeer); New function.
  13693. * src/TorrentMan.cc
  13694. (addPeer): Call deleteUnusedPeer.
  13695. (deleteErrorPeer): Removed.
  13696. (deleteUnusedPeer): New function.
  13697. * src/PeerAbstractCommand.h
  13698. (setNoCheck): New function.
  13699. (noCheck): New variable.
  13700. * src/PeerAbstractCommand.cc
  13701. (PeerAbstractCommand): Added the initialization of noCheck.
  13702. (execute): Added a check for noCheck.
  13703. (setNoCheck): New function.
  13704. * src/Util.h
  13705. (stdio.h): Included.
  13706. * src/Util.cc
  13707. (unistd.h): Included.
  13708. * src/DefaultDiskWriter.cc
  13709. (unistd.h): Included.
  13710. * src/Peer.h
  13711. (operator==): Defined the function body here.
  13712. (operator!=): Defined the function body here.
  13713. * src/Peer.cc
  13714. (operator==): Removed.
  13715. (operator!=): Removed.
  13716. * src/Piece.h
  13717. (Piece): Defined the function body here(copy constructor).
  13718. (operator=): Defined the function body here.
  13719. (operator==): Defined the function body here.
  13720. * src/Piece.cc
  13721. (Piece): Removed(copy constructor).
  13722. (operator=): Removed.
  13723. (operator==): Removed.
  13724. * src/PeerMessageUtil.h
  13725. (ChokeMessage.h): Removed.
  13726. (UnchokeMessage.h): Removed.
  13727. (InterestedMessage.h): Removed.
  13728. (NotInterestedMessage.h): Removed.
  13729. (HaveMessage.h): Removed.
  13730. (BitfieldMessage.h): Removed.
  13731. (RequestMessage.h): Removed.
  13732. (CancelMessage.h): Removed.
  13733. (PieceMessage.h): Removed.
  13734. (HandshakeMessage.h): Removed.
  13735. (KeepAliveMessage.h): Removed.
  13736. (PortMessage.h): Removed.
  13737. (HaveAllMessage.h): Removed.
  13738. (HaveNoneMessage.h): Removed.
  13739. (PeerConnection.h): Removed.
  13740. (HandshakeMessage.h): Included.
  13741. * src/BitfieldMessage.h
  13742. (init): New function.
  13743. (BitfieldMessage): Rewritten.
  13744. (BitfieldMessage): New function(overload).
  13745. * src/RequestSlot.h
  13746. (operator=): Defined the function body here.
  13747. (operator==): Defined the function body here.
  13748. * src/RequestSlot.cc
  13749. (operator=): Removed.
  13750. (operator==): Removed.
  13751. To remove the dependency on the PeerMessage subclass from
  13752. PeerInteraction:
  13753. * src/PeerMessageFactory.h: New class.
  13754. * src/PeerMessageFactory.cc: New class.
  13755. * src/SimplePeerMessage.cc
  13756. (send): If invalidate is true then do nothing.
  13757. * src/PeerInteractionCommand.cc
  13758. (HandshakeMessage.h): Included.
  13759. (KeepAliveMessage.h): Included.
  13760. (ChokeMessage.h): Included.
  13761. (UnchokeMessage.h): Included.
  13762. (HaveMessage.h): Included.
  13763. (executeInternal): Call setNoCheck().
  13764. Removed setWriteCheckSocket(socket).
  13765. * src/PeerInteraction.h
  13766. (ChokeMessage.h): Removed.
  13767. (UnchokeMessage.h): Removed.
  13768. (InterestedMessage.h): Removed.
  13769. (NotInterestedMessage.h): Removed.
  13770. (HaveMessage.h): Removed.
  13771. (BitfieldMessage.h): Removed.
  13772. (RequestMessage.h): Removed.
  13773. (CancelMessage.h): Removed.
  13774. (PieceMessage.h): Removed.
  13775. (HandshakeMessage.h): Removed.
  13776. (KeepAliveMessage.h): Removed.
  13777. (PortMessage.h): Removed.
  13778. (HaveAllMessage.h): Removed.
  13779. (HaveNoneMessage.h): Removed.
  13780. (RejectMessage.h): Removed.
  13781. (AllowedFastMessage.h): Removed.
  13782. (SuggestPieceMessage.h): Removed.
  13783. (PeerMessageFactory.h): Included.
  13784. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13785. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13786. (PeerMessageFactory): New variable.
  13787. (createPeerMessage): Removed.
  13788. (createHandshakeMessage): Removed.
  13789. (setPeerMessageCommonProperty): Removed.
  13790. (addRequestSlot): New function.
  13791. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13792. (getPeerMessageFactory): New function.
  13793. (createRequestMessage): Removed.
  13794. (createCancelMessage): Removed.
  13795. (createPieceMessage): Removed.
  13796. (createHaveMessage): Removed.
  13797. (createChokeMessage): Removed.
  13798. (createUnchokeMessage): Removed.
  13799. (createInterestedMessage): Removed.
  13800. (createNotInterestedMessage): Removed.
  13801. (createBitfieldMessage): Removed.
  13802. (createKeepAliveMessage): Removed.
  13803. (createHaveAllMessage): Removed.
  13804. (createHaveNoneMessage): Removed.
  13805. (createRejectMessage): Removed.
  13806. (createAllowedFastMessage): Removed.
  13807. * src/PeerInteraction.cc
  13808. (PeerInteraction): Allocate PeerMessageFactory here.
  13809. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13810. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13811. PieceMessage::ID.
  13812. (addMessage): Simplified by using PeerMessage::onPush().
  13813. (addRequestSlot): New function.
  13814. (rejectAllPieceMessageInQueue): Simplified by using
  13815. PeerMessage::onChoked().
  13816. (rejectPieceMessageInQueue): Simplified by using
  13817. PeerMessage::onCanceled().
  13818. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13819. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13820. (createHandshakeMessage): Removed.
  13821. (createPeerMessage): Removed.
  13822. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13823. (setPeerMessageCommonProperty): Removed.
  13824. (createRequestMessage): Removed.
  13825. (createCancelMessage): Removed.
  13826. (createPieceMessage): Removed.
  13827. (createHaveMessage): Removed.
  13828. (createChokeMessage): Removed.
  13829. (createUnchokeMessage): Removed.
  13830. (createInterestedMessage): Removed.
  13831. (createNotInterestedMessage): Removed.
  13832. (createBitfieldMessage): Removed.
  13833. (createKeepAliveMessage): Removed.
  13834. (createHaveAllMessage): Removed.
  13835. (createHaveNoneMessage): Removed.
  13836. (createRejectMessage): Removed.
  13837. (createAllowedFastMessage): Removed.
  13838. * src/PieceMessage.h
  13839. (createRejectMessage): New function.
  13840. (PieceMessage): Rewritten.
  13841. (onChoked): New function.
  13842. (onCanceled): New function.
  13843. * src/PieceMessage.cc
  13844. (send): If invalidate is true then do nothing, just return.
  13845. (createRejectMessage): New function.
  13846. (onChoked): New function.
  13847. (onCanceled): New function.
  13848. * src/RequestMessage.h
  13849. (RequestMessage): Rewritten.
  13850. (onPush): New function.
  13851. (onAbortPiece): New function.
  13852. * src/RequestMessage.cc
  13853. (onPush): New function.
  13854. (onAbortPiece): New function.
  13855. Update fd_set when a socket is added or deleted in order to improve
  13856. performance:
  13857. * src/DownloadEngine.h
  13858. (rfdset): New variable.
  13859. (wfdset): New variable.
  13860. (updateFdSet): New function.
  13861. * src/DownloadEngine.cc
  13862. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13863. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13864. (waitData): Copy rfdset and wfdset.
  13865. (updateFdSet): New function.
  13866. (addSocket): Call updateFdSet.
  13867. (deleteSocket): Call updateFdSet.
  13868. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13869. To add the support for Metalink3.0 backward compatible links:
  13870. * src/Request.h
  13871. (SAFE_CHARS): Added '#'.
  13872. (METALINK_MARK): New definition.
  13873. * src/Request.cc
  13874. (parseUrl): Added the support for Metalink3.0 backward compatible
  13875. links.
  13876. etc
  13877. * src/PeerInteraction.cc
  13878. (MsgPushBack): Removed.
  13879. (sendMessages): Use STL copy and back_inserter.
  13880. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13881. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13882. * src/TorrentMan.h
  13883. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13884. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13885. * src/SharedHandle.h: New class.
  13886. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13887. * src/HttpResponseCommand.h
  13888. (HttpResponseCommand): Wrapped Socket.
  13889. * src/SocketCore.h
  13890. (operator==): New function.
  13891. (operator!=): New function.
  13892. (operator<): New function.
  13893. (getSockfd): New function.
  13894. (isOpen): New function.
  13895. (writeData): New function.
  13896. * src/SocketCore.cc
  13897. (operator==): New function.
  13898. (operator!=): New function.
  13899. (operator<): New function.
  13900. * src/AbstractCommand.h
  13901. (socket): Changed its type to SocketHandle.
  13902. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13903. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13904. (disableReadCheckSocket): New function.
  13905. (disableWriteCheckSocket): New function.
  13906. (readCheckTarget): Changed its type to SocketHandle.
  13907. (writeCheckTarget): Changed its type to SocketHandle.
  13908. (AbstractCommand): Replaced Socket with SocketHandle.
  13909. * src/AbstractCommand.cc
  13910. (AbstractCommand): Replaced Socket with SocketHandle.
  13911. (~AbstractCommand): Removed the deallocation for Socket object.
  13912. (disableReadCheckSocket): New function.
  13913. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13914. (disableWriteCheckSocket): New function.
  13915. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13916. * src/HttpDownloadCommand.cc
  13917. (DownloadCommand): Replaced Socket with SocketHandle.
  13918. * src/PeerAbstractCommand.h
  13919. (socket): Changed its type to SocketHandle.
  13920. (peer): Changed its type to PeerHandle.
  13921. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13922. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13923. (disableReadCheckSocket): New function.
  13924. (disableWriteCheckSocket): New function.
  13925. (readCheckTarget): Changed its type to SocketHandle.
  13926. (writeCheckTarget): Changed its type to SocketHandle.
  13927. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13928. Replaced Peer with PeerHandle.
  13929. * src/HttpRequestCommand.cc
  13930. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13931. Use disableReadCheckSocket.
  13932. * src/PeerInitiateConnectionCommand.h
  13933. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13934. * src/PeerChokeCommand.cc
  13935. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13936. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13937. (execute): Use PeerHandle.
  13938. * src/PeerConnection.h
  13939. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13940. (socket): Changed its type to SocketHandle.
  13941. (PeerConnection): Replaced Socket with SocketHandle.
  13942. * src/PeerConnection.cc
  13943. (PeerConnection): Replaced Socket with SocketHandle.
  13944. * src/PeerInteractionCommand.h
  13945. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13946. Replaced Peer with PeerHandle.
  13947. * src/PeerInteractionCommand.cc
  13948. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13949. Replaced Peer with PeerHandle.
  13950. (executeInternal): Use disableWriteCheckSocket.
  13951. Use HandshakeMessageHandle.
  13952. (receiveMessages): Use PeerMessageHandle.
  13953. (prepareForNextPeer): Use PeerHandle.
  13954. * src/HttpProxyRequestCommand.h
  13955. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13956. * src/HttpResponseCommand.cc
  13957. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13958. * src/TorrentMan.cc
  13959. (nullPeer): Added external reference.
  13960. (~TorrentMan): Removed the deallocation of the elements of peers.
  13961. (addPeer): Rewritten.
  13962. (isPeerAvailable): Use nullPeer.
  13963. (deleteOldpeers): Replaced with deleteErrorPeer.
  13964. (deleteErrorPeer): New function.
  13965. (getPeer): Use PeerHandle and nullPeer.
  13966. (hasMissingPiece): Replaced Peer with PeerHandle.
  13967. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13968. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13969. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13970. (getMissingPiece): Replaced Peer with PeerHandle.
  13971. * src/FtpNegotiateCommand.cc
  13972. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13973. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13974. (recvGreeting): Use disableWriteCheckSocket.
  13975. (recvPasv): Removed the allocation of Socket.
  13976. Use disableReadCheckSocket.
  13977. (sendRestPasv): Use disableWriteCheckSocket.
  13978. (recvRetr): Changed assertion.
  13979. * src/PeerInteraction.h
  13980. (SharedHandle.h): Included SharedHandle.h.
  13981. (PeerMessageHandle): New type definition.
  13982. (HandshakeMessageHandle): New type definition.
  13983. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13984. (peer): Changed its type to PeerHandle.
  13985. (createHandshakeMessage): Replaced HandshakeMessage with
  13986. HandshakeMessageHandle.
  13987. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13988. (PeerInteraction): Replaced Peer with PeerHandle.
  13989. Replaced Socket with SocketHandle.
  13990. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13991. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13992. (receiveHandshake): Replaced HandshakeMessage with
  13993. HandshakeMessageHandle.
  13994. * src/PeerInteraction.cc
  13995. (PeerInteraction): Replaced Peer with PeerHandle.
  13996. Replaced Socket with SocketHandle.
  13997. (~PeerInteraction): Removed the deallocation of the elements of
  13998. messageQueue.
  13999. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14000. (isSendingMessageInProgress): Replaced PeerMessage with
  14001. PeerMessageHandle.
  14002. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14003. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14004. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14005. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14006. (abortPiece): Use PeerMessageHandle.
  14007. (receiveHandshake): Replaced HandshakeMessage with
  14008. HandshakeMessageHandle. Removed try-catch block.
  14009. (createHandshakeMessage): Replaced HandshakeMessage with
  14010. HandshakeMessageHandle.
  14011. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14012. Removed try-catch block.
  14013. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14014. * src/HttpProxyResponseCommand.cc
  14015. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14016. * src/FtpTunnelResponseCommand.h
  14017. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14018. * src/HttpConnection.cc
  14019. (HttpConnection): Replaced Socket with SocketHandle.
  14020. * src/PeerAbstractCommand.cc
  14021. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14022. (~PeerAbstractCommand): Removed the deallocation of socket.
  14023. Use disableReadCheckSocket, disableWriteCheckSocket.
  14024. (disableReadCheckSocket): New function.
  14025. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14026. (disableWriteCheckSocket): New function.
  14027. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14028. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14029. * src/FtpTunnelRequestCommand.cc
  14030. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14031. (~FtpTunnelRequestCommand): Corrected indentation.
  14032. * src/DownloadCommand.h
  14033. (DownloadCommand): Replaced Socket with SocketHandle.
  14034. * src/PeerListenCommand.cc
  14035. (PeerListenCommand): Removed the initialization of socket.
  14036. (~PeerListenCommand): Removed the deallocation of socket.
  14037. (bindPort): Use SocketHandle.
  14038. (execute): Use SocketHandle and PeerHandle.
  14039. * src/FtpDowndloadCommand.cc
  14040. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14041. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14042. * src/main.cc
  14043. (main): Corrected indentation.
  14044. * src/HttpInitiateConnectionCommand.cc
  14045. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14046. (executeInternal): Removed the allocation of socket.
  14047. * src/HttpRequestCommand.h
  14048. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14049. * src/FtpNegotiationCommand.h
  14050. (dataSocket): Changed its type to SocketHandle.
  14051. (serverSocket): Changed its type to SocketHandle.
  14052. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14053. * src/TorrentMan.h
  14054. (MAX_PEER_UPDATE): Removed.
  14055. (MAX_PEERS): New definition.
  14056. (Peers): The element is now of type PeerHandle.
  14057. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14058. (getPeer): Replaced Peer with PeerHandle.
  14059. (deleteOldErrorPeers): Removed.
  14060. (deleteErrorPeer): New function.
  14061. (hasMissingPiece): Replaced Peer with PeerHandle.
  14062. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14063. (getMissingPiece): Replaced Peer with PeerHandle.
  14064. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14065. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14066. (addActivePeer): Replaced Peer with PeerHandle.
  14067. (deleteActivePeer): Replaced Peer with PeerHandle.
  14068. Added a check for the return value of find.
  14069. * src/FtpTunnelResponseCommand.cc
  14070. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14071. * src/FtpInitiateConnectionCommand.cc
  14072. (executeInternal): Removed the allocation of socket.
  14073. * src/DownloadEngine.h
  14074. (Sockets): An element is now of type SocketHandle.
  14075. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14076. (CommandUuids): New type definition.
  14077. (rsockets): Changed its type to SockCmdMap.
  14078. (wsockets): Changed its type to SockCmdMap.
  14079. (addSocket): Rewritten.
  14080. (deleteSocket): Rewritten.
  14081. (addSocketForReadCheck): Rewritten.
  14082. (deleteSocketForReadCheck): Rewritten.
  14083. (addSocketForWriteCheck): Rewritten.
  14084. (deleteSocketForWriteCheck): Rewritten.
  14085. (PairFind): New template class.
  14086. * src/HttpDownloadCommand.h
  14087. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14088. * src/FtpConnection.cc
  14089. (FtpConnection): Replaced Socket with SocketHandle.
  14090. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14091. block.
  14092. * src/InitiateConnectionCommandFactory.cc
  14093. (DlAbortEx.h): Included DlAbortEx.h.
  14094. (createInitiateConnectionCommand): Throw exception if the protocol of
  14095. requested URI is not supported.
  14096. * src/Peer.cc
  14097. (nullPeer): Changed its type to PeerHandle.
  14098. (operator==): New function.
  14099. (operator!=): New function.
  14100. * src/Peer.h
  14101. (SharedHandle.h): Included SharedHandle.h.
  14102. (operator==): New function.
  14103. (operator!=): New function.
  14104. (Peer): Added the default constructor.
  14105. Use resetStatus() to initialize member variables.
  14106. (nullPeer): Removed.
  14107. * src/TrackerUpdateCommand.cc
  14108. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14109. with MIN_PEERS.
  14110. * src/PeerListenCommand.h
  14111. (socket): Changed its type to SocketHandle.
  14112. * src/Command.h
  14113. (CommandUuid): New type definition.
  14114. (uuid): New variable.
  14115. (uuidGen): New variable.
  14116. (Command): Added the initialization of uuid.
  14117. (getUuid): New function.
  14118. * src/Socket.h
  14119. (Socket): Removed.
  14120. (SocketHandle): New type definition.
  14121. * src/DownloadEngine.h
  14122. (FindCommand): New function object.
  14123. (run): The portion of socket check was rewritten.
  14124. (SetDescriptor): New function object.
  14125. (AccumulateActiveCommandUuid): New function object.
  14126. (waitData): Rewritten.
  14127. (addSocket): Rewritten.
  14128. (deleteSocket): Rewritten.
  14129. (addSocketForReadCheck): Rewritten.
  14130. (addSocketForWriteCheck): Rewritten.
  14131. (deleteSocketForReadCheck): Rewritten.
  14132. (deleteSocketForWriteCheck): Rewritten.
  14133. * src/HttpProxyResponseCommand.h
  14134. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14135. * src/HttpConnection.h
  14136. (socket): Changed its type to SocketHandle.
  14137. (HttpConnection): Replaced Socket with SocketHandle.
  14138. * src/PeerInitiateConnectionCommand.cc
  14139. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14140. (executeInternal): Removed the allocation of socket.
  14141. (prepareForNextPeer): Use PeerHandle.
  14142. * src/PeerMessage.h
  14143. (peer): Changed its type to PeerHandle.
  14144. (getPeer): Replaced Peer with PeerHandle.
  14145. (setPeer): Replaced Peer with PeerHandle.
  14146. * src/DownloadCommand.cc
  14147. (DownloadCommand): Replaced Socket with SocketHandle.
  14148. * src/FtpConnection.h
  14149. (socket): Changed its type to SocketHandle.
  14150. (FtpConnection): Replaced Socket with SocketHandle.
  14151. (sendPort); Replaced Socket with SocketHandle.
  14152. * src/FtpDowndloadCommand.h
  14153. (ctrlSocket): Changed its type to SocketHandle.
  14154. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14155. * src/HttpProxyRequestCommand.cc
  14156. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14157. * src/FtpTunnelRequestCommand.h
  14158. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14159. etc
  14160. * src/PeerChokeCommand.h
  14161. (setAllPeerChoked): Removed.
  14162. (setAllPeerResetDelta): Removed.
  14163. * src/PeerChokeCommand.cc
  14164. (setAllPeerChoked): Removed.
  14165. (ChokePeer): New function object.
  14166. (setAllPeerResetDelta): Removed.
  14167. (ResetDelta): New function object.
  14168. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14169. (execute): Show download speed when the local node is a seeder.
  14170. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14171. using STL.
  14172. * src/TrackerWatcherCommand.h
  14173. (MIN_PEERS): Removed.
  14174. * src/TorrentMan.cc
  14175. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14176. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14177. To fix the bug that .aria2 file is not saved if downloading is stopped
  14178. by the errors:it results that aria2 can not resume downloading:
  14179. * src/main.cc
  14180. (normalDownload): Added the call to save().
  14181. (main): Added the deletion of the elements in 'reserved'.
  14182. To fix log:
  14183. * src/PeerInteraction.cc
  14184. (receiveHandshake): Fixed log.
  14185. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14186. To improve download performance in BitTorrent:
  14187. * src/TorrentMan.cc
  14188. (getPeer): Check the number of connections. Return nullPeer if
  14189. it is greater than MAX_PEER_UPDATE.
  14190. This code was originally here, but was removed in 0.5.1.
  14191. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14192. To improve the conditional compilation:
  14193. * src/MultiDiskWriter.h:
  14194. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14195. * src/MultiDiskWriter.cc:
  14196. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14197. * src/Util.h:
  14198. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14199. Added ENABLE_BITTORRENT around computeFastSet().
  14200. * src/Util.cc:
  14201. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14202. Added ENABLE_BITTORRENT around computeFastSet().
  14203. * src/messageDigest.h:
  14204. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14205. * src/ShaVisitor.h:
  14206. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14207. * src/ShaVisitor.cc:
  14208. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14209. * src/main.cc:
  14210. Added ENABLE_BITTORRENT around includes and blocks related to
  14211. BitTorrent.
  14212. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14213. digest support is not available.
  14214. * src/AbstractDiskWriter.h:
  14215. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14216. * src/AbstractDiskWriter.cc:
  14217. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14218. * src/MetalinkEntry.cc
  14219. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14220. support is not available.
  14221. To add command-line options for Metalink:
  14222. * src/main.cc:
  14223. Added metalink-version, metalink-language, metalink-os,
  14224. follow-metalink.
  14225. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14226. * src/main.cc: Use these definition.
  14227. * Release 0.6.0
  14228. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14229. To add Metalink support(http/ftp only):
  14230. * src/AbstractCommand.h
  14231. (tryReserved): New function.
  14232. * src/AbstractCommand.cc
  14233. (execute): Call tryReserved().
  14234. (tryReserved): New function.
  14235. * src/Request.h
  14236. (Requests): New type definition.
  14237. * src/SegmentMan.h
  14238. (reserved): New variable.
  14239. * src/Util.h
  14240. (fileChecksum): New function.
  14241. (toUpper): New function.
  14242. (toLower): New function.
  14243. * src/Util.cc
  14244. (messageDigest.h): Included.
  14245. (trim): Trim \r\n\t.
  14246. (fileChecksum): New function.
  14247. (toUpper): New function.
  14248. (toLower): New function.
  14249. * src/main.cc
  14250. (normalDownload): New function.
  14251. (main): Added 2 command-line options: metalink-file,
  14252. metalink-connection. Their usage has not been written yet.
  14253. * src/MetalinkProcessor.h: New class.
  14254. * src/Xml2MetalinkProcessor.h: New class.
  14255. * src/Xml2MetalinkProcessor.cc: New class.
  14256. * src/MetalinkEntry.h: New class.
  14257. * src/MetalinkEntry.cc: New class.
  14258. * src/MetalinkResource.h: New class.
  14259. * src/MetalinkResource.cc: New class.
  14260. To add md5 message digest checking:
  14261. * src/messageDigest.h: Rewritten.
  14262. * src/MultiDiskWriter.cc: Updated according to the changes in
  14263. messageDigest.h.
  14264. * src/ShaVisitor.cc: Updated according to the changes in
  14265. messageDigest.h.
  14266. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14267. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14268. messageDigest.h.
  14269. To fix a bug that causes segfault when the payload length in peer
  14270. message is less than 0:
  14271. * src/PeerConnection.cc:
  14272. (receiveMessage): Fixed the bug.
  14273. * src/PeerMessageUtil.cc
  14274. (checkLength): Throw an exception if length is less than or equals to
  14275. 0.
  14276. To add new interfaces to Base64 encoding/decoding:
  14277. * src/Base64.h
  14278. (part_encode): Changed the method signature.
  14279. (encode): New function(overload).
  14280. (decode): New function(overload).
  14281. * src/Base64.cc
  14282. (part_encode): Rewritten.
  14283. (encode): Rewritten.
  14284. (encode): New function(overload).
  14285. To prevent a peer to download same piece if there is an error in
  14286. checksum:
  14287. * src/PieceMessage.cc
  14288. (receivedAction): Call peerInteraction->abortPiece().
  14289. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14290. To fix the bug that causes same have message is sent many times to
  14291. a single peer.
  14292. * src/Time.cc
  14293. (isNewer): Use Util::difftv().
  14294. * src/Util.cc
  14295. (difftv): Added a cast to (long long int).
  14296. * src/TorrentMan.cc
  14297. (advertisePiece): Use push_front.
  14298. (getAdvertisedPieceIndexes): A performance improvement was made.
  14299. To fix the bug that sends tracker requests without a sleep interval
  14300. when the number of connections is less than 15.
  14301. * src/TrackerWatcherCommand.cc
  14302. (execute): Now the number of connections is not a factor to decide
  14303. whether or not a tracker request should be sent or not.
  14304. * src/Time.h
  14305. (setTimeInSec): New function.
  14306. * src/Time.cc
  14307. (setTimeInSec): New function.
  14308. etc.
  14309. * src/ChokeMessage.cc
  14310. (receivedAction): Removed peer->snubbing = false
  14311. * src/PeerConnection.h
  14312. (receiveHandshake): Updated doc.
  14313. * src/TorrentMan.h
  14314. (getAdvertisedPieceIndexes): Updated the method signature.
  14315. * src/TorrentMan.cc
  14316. (getAdvertisedPieceIndexes): Updated the method signature.
  14317. * src/Time.h
  14318. (getTimeInMicros): Added a cast to (long long int).
  14319. (getTimeInMillis): Added a cast to (long long int).
  14320. * Release 0.5.2
  14321. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14322. To make a listening socket non-block:
  14323. * src/SocketCore.h
  14324. (setNonBlockingMode): New function.
  14325. * src/SocketCore.cc
  14326. (setNonBlockingMode): New function.
  14327. (beginListen): Added a call to setNonBlockingMode().
  14328. (acceptConnection): Call setNonBlockingMode().
  14329. (setBlockingMode): Updated.
  14330. To handle tracker's NAT-checking:
  14331. * src/PeerConnection.cc
  14332. (receiveHandshake): 'msg' param is filled with received data and
  14333. its length is assigned to 'length' param, even if all handshake
  14334. message is not yet received.
  14335. * src/PeerInteractionCommand.cc
  14336. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14337. a new peer connects to localhost.
  14338. A call to peerInteraction->sendHandshake() was removed because
  14339. it is called from peerInteraction->receiveHandshake(true).
  14340. * src/PeerInteraction.h
  14341. (quickReplied): New variable.
  14342. (receiveHandshake): Added an argument.
  14343. * src/PeerInteraction.cc
  14344. (PeerInteraction): Added the initialization of quickReplied.
  14345. (receiveHandshake): Send handshake message as soon as the info hash
  14346. in a handshake message from a peer is correct.
  14347. To change the random part of peer id and key parameter:
  14348. * src/TorrentMan.h
  14349. (key): New variable.
  14350. * src/TorrentMan.cc
  14351. (setupInternal1): Use Util::randomAlpha() to generate random part
  14352. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14353. key is also generated by Util::randomAlpha() and it is now 8 character
  14354. long.
  14355. * src/Util.h
  14356. (randomAlpha): New function.
  14357. * src/Util.cc
  14358. (randomAlpha): New function.
  14359. * src/TrackerWatcherCommand.cc
  14360. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14361. Added no_peer_id=1.
  14362. Set snubbing flag to false when a choke message is received from a
  14363. snubbed peer.
  14364. * src/ChokeMessage.cc
  14365. (receivedAction): Set snubbing flag to false.
  14366. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14367. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14368. * src/SimpleLogger.h (writeHeader): New function.
  14369. * src/SimpleLogger.cc (writeHeader): New function.
  14370. (writeLog): Fixed the bug that causes segfaults if exception message
  14371. contains an unescaped "%" character.
  14372. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14373. when a tracker request fails.
  14374. * src/Request.cc (parseUrl): Query string is now handled properly.
  14375. * Release 0.5.1
  14376. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14377. To add Time class which represents a specific instant in time and
  14378. its precision is microseconds. Time checking procedures were rewritten
  14379. using this object.
  14380. * src/Time.h: New class.
  14381. * src/Time.cc: New class.
  14382. * src/AbstractCommand.h
  14383. (updateCheckPoint): Removed.
  14384. (isTimeoutDetected): Removed.
  14385. (checkPoint): Changed the type to Time.
  14386. (timeout): New variable.
  14387. (setTimeout): New function.
  14388. * src/AbstractCommand.cc
  14389. (AbstractCommand): Removed the initialization of checkPoint.
  14390. Added the initialization of timeout.
  14391. (updateCheckPoint): Removed.
  14392. (isTimeoutDetected): Removed.
  14393. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14394. * src/PeerChokeCommand.h
  14395. (checkPoint): Changed the type to Time.
  14396. * src/PeerChokeCommand.cc
  14397. (PeerChokeCommand): Removed the initialization of checkPoint.
  14398. (execute): Rewritten using Time object.
  14399. * src/TrackerWatcherCommand.h
  14400. (checkPoint): Changed the type to Time.
  14401. * src/TrackerWatcherCommand.cc
  14402. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14403. (execute): Rewritten.
  14404. * src/ConsoleDownloadEngine.h
  14405. (cp): Changed the type to Time.
  14406. (startup): Changed the type to Time.
  14407. * src/ConsoleDownloadEngine.cc
  14408. (initStatistics): Use cp.reset(), startup.reset().
  14409. (calculateStatistics): Rewritten using Time object.
  14410. * src/PeerAbstractCommand.h
  14411. (updateCheckPoint): Removed.
  14412. (isTimeoutDetected): Removed.
  14413. (checkPoint): Changed the type to Time.
  14414. * src/PeerAbstractCommand.cc
  14415. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14416. (updateCheckPoint): Removed.
  14417. (isTimeoutDetected): Removed.
  14418. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14419. * src/PeerInteractionCommand.cc
  14420. (PeerInteractionCommand): Removed the initializations of struct
  14421. timeval variables.
  14422. * src/PeerInteractionCommand.h
  14423. (keepAliveCheckPoint): Changed the type to Time.
  14424. (chokeCheckPoint): Changed the type to Time.
  14425. (freqCheckPoint): Changed the type to Time.
  14426. (haveCheckTime): Changed the type to Time.
  14427. * src/PeerInteractionCommand.cc
  14428. (executeInternal): Rewritten using Time object.
  14429. (detectMessageFlooding): Rewritten using Time object.
  14430. (checkLongTimePeerChoking): Rewritten using Time object.
  14431. (sendKeepAlive): Rewritten using Time object.
  14432. (checkHave): Rewritten using Time object.
  14433. * src/SleepCommand.h
  14434. (checkPoint): Changed the type to Time.
  14435. * src/SleepCommand.cc
  14436. (SleepCommand): Removed the initialization of checkPoint.
  14437. (execute): Rewritten using Time object.
  14438. * src/TorrentAutoSaveCommand.h
  14439. (checkPoint): Changed the type to Time.
  14440. * src/TorrentAutoSaveCommand.cc
  14441. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14442. (execute): Rewritten.
  14443. * src/DownloadCommand.h
  14444. (sw): Changed the type to Time.
  14445. * src/DownloadCommand.cc
  14446. (DownloadCommand): Removed the initialization of sw.
  14447. (executeInternal): Rewritten.
  14448. * src/RequestSlot.h
  14449. (dispatchedTime): Changed the type to Time.
  14450. * src/RequestSlot.cc
  14451. (RequestSlot): Removed the call to setDispatchedTime().
  14452. (setDispatchedTime): Rewirtten.
  14453. (isTimeout): Rewritten.
  14454. (getLatencyInMillis): Rewritten.
  14455. * src/TorrentDownloadEngine.h
  14456. (cp): Changed the type to Time[2].
  14457. (startup): Changed the type to Time.
  14458. * src/TorrentDownloadEngine.cc
  14459. (initStatistics): Rewritten.
  14460. (calculateStatistics): Rewritten.
  14461. * src/DownloadEngine.cc
  14462. (run): Rewritten.
  14463. To detect all attempts to connect to the tracker are failed:
  14464. * src/AbstractCommand.cc
  14465. (execute): Increment e->segmentMan->errors if a command aborted.
  14466. * src/SegmentMan.h
  14467. (errors): New variable.
  14468. * src/SegmentMan.cc
  14469. (SegmentMan): Added the initialization of errors.
  14470. (init): Added the initialization of errors.
  14471. * src/TrackerWatcherCommand.cc
  14472. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14473. request was failed.
  14474. To handle snubbed peers:
  14475. * src/PeerChokeCommand.cc
  14476. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14477. (execute): Snubbed peers don't get unchoked.
  14478. * src/PeerInteraction.h
  14479. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14480. * src/PeerInteraction.cc
  14481. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14482. back the requested 16k block in 60 seconds.
  14483. * src/PieceMessage.cc
  14484. (receivedAction): A peer's snubbed state is cleard if it sends
  14485. the requested 16k block in 60 seconds.
  14486. * src/Peer.h
  14487. (snubbing): New variable.
  14488. * src/Peer.cc
  14489. (resetStatus): Added snubbed = false.
  14490. To fix the bug that causes have message is not sent:
  14491. * src/PeerInteractionCommand.cc
  14492. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14493. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14494. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14495. * src/TorrentMan.h
  14496. (HaveEntry): New class.
  14497. (advertisePiece): Rewritten.
  14498. (getAdvertisedPieceIndexes): Rewritten.
  14499. (Haves): Changed the type.
  14500. (getAdvertisedPieceIndexes): Added an argument.
  14501. Others:
  14502. * src/TorrentMan.h
  14503. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14504. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14505. * src/TorrentMan.cc
  14506. (getPeer): Don't check the number of connections here.
  14507. (setupInternal1): Changed peerId.
  14508. * src/PeerInteractionCommand.h
  14509. (KEEP_ALIVE_INTERVAL): New definition.
  14510. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14511. * src/main.cc
  14512. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14513. * src/DownloadEngine.h: Removed unnecessary header includes.
  14514. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14515. To fix the bug that causes segfaults if a tracker returns a zero-length
  14516. list as "peers":
  14517. * src/TrackerUpdateCommand.cc
  14518. (execute): Added a check to see wether the type of peers is Data*.
  14519. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14520. * Release 0.5.0
  14521. To fix compile issue with gcc3:
  14522. * src/CancelMessage.h
  14523. (ID): Renamed as ID_t
  14524. (ID_t): New enum.
  14525. * src/RejectMessage.h
  14526. (ID): Renamed as ID_t
  14527. (ID_t): New enum.
  14528. * src/SuggestPieceMessage.h
  14529. (ID): Renamed as ID_t
  14530. (ID_t): New enum.
  14531. * src/AllowedFastMessage.h
  14532. (ID): Renamed as ID_t
  14533. (ID_t): New enum.
  14534. * src/PortMessage.h
  14535. (ID): Renamed as ID_t
  14536. (ID_t): New enum.
  14537. * src/HaveNoneMessage.h
  14538. (ID): Renamed as ID_t
  14539. (ID_t): New enum.
  14540. * src/KeepAliveMessage.h
  14541. (ID): Renamed as ID_t
  14542. (ID_t): New enum.
  14543. * src/HaveAllMessage.h
  14544. (ID): Renamed as ID_t
  14545. (ID_t): New enum.
  14546. * src/UnchokeMessage.h
  14547. (ID): Renamed as ID_t
  14548. (ID_t): New enum.
  14549. * src/BitfieldMessage.h
  14550. (ID): Renamed as ID_t
  14551. (ID_t): New enum.
  14552. * src/PieceMessage.h
  14553. (ID): Renamed as ID_t
  14554. (ID_t): New enum.
  14555. * src/RequestMessage.h
  14556. (ID): Renamed as ID_t
  14557. (ID_t): New enum.
  14558. * src/NotInterestedMessage.h
  14559. (ID): Renamed as ID_t
  14560. (ID_t): New enum.
  14561. * src/ChokeMessage.h
  14562. (ID): Renamed as ID_t
  14563. (ID_t): New enum.
  14564. * src/InterestedMessage.h
  14565. (ID): Renamed as ID_t
  14566. (ID_t): New enum.
  14567. * src/HaveMessage.h
  14568. (ID): Renamed as ID_t
  14569. (ID_t): New enum.
  14570. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14571. * src/PeerAbstractCommand.h
  14572. (beforeSocketCheck): Removed.
  14573. * src/PeerAbstractCommand.cc
  14574. Modified in order to call executeInternal() even if socket check
  14575. and upload limit check fail.
  14576. * src/PeerInteractionCommand.h
  14577. (keepAlive): Removed.
  14578. (sendKeepAlive): New function.
  14579. (checkHave): New function.
  14580. (beforeSocketCheck): Removed.
  14581. * src/PeerInteractionCommand.cc
  14582. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14583. calls to checkHave() and sendKeepAlive().
  14584. (keepAlive): Renamed to sendKeepAlive().
  14585. (sendKeepAlive): New function.
  14586. (beforeSocketCheck): Removed.
  14587. (checkHave): New function.
  14588. * src/BitfieldMan.cc
  14589. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14590. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14591. 0.
  14592. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14593. * src/TorrentMan.h
  14594. (UsedPieces): Removed.
  14595. (Pieces): New type definition.
  14596. * src/Piece.h: Updated doc.
  14597. * src/Peer.h
  14598. (totalLength): Removed.
  14599. * src/Peer.cc
  14600. (updateLatency): Fixed the latency calculation.
  14601. * src/TorrentMan.cc
  14602. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14603. than or equal to MAX_PEER_LIST_SIZE.
  14604. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14605. then return false.
  14606. (deleteOldErrorPeers): Rewritten.
  14607. (deleteUsedPiece): Fixed the miss use of STL remove.
  14608. * src/PeerInteraction.h
  14609. (Pieces): Removed.
  14610. (deleteTimeoutRequestSlot): Removed.
  14611. (deleteCompletedRequestSlot): Removed.
  14612. (checkRequestSlot): New function.
  14613. * src/PeerInteraction.cc
  14614. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14615. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14616. (checkRequestSlot): New function.
  14617. * src/DownloadEngine.cc
  14618. (run): Clear activeSockets before calling waitData().
  14619. (waitData): Removed a call to activeSockets.clear().
  14620. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14621. To attempt to handle EINTR:
  14622. * src/SocketCore.cc
  14623. (isReadable): Added EINTR handling.
  14624. (isWritable): Added EINTR handling.
  14625. To improve the performance:
  14626. * src/AbstractCommand.cc
  14627. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14628. * src/PeerInteractionCommand.h
  14629. (receiveMessage): Renamed as receiveMessages().
  14630. (receiveMessages): New function.
  14631. * src/PeerInteractionCommand.cc
  14632. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14633. () function. detectMessageFlooding() is moved here.
  14634. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14635. (). The flooding detection for have message is comment out.
  14636. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14637. Util::difftv().
  14638. (receiveMessage): Renamed as receiveMessages().
  14639. (receiveMessages): New function.
  14640. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14641. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14642. * src/SleepCommand.cc
  14643. (execute): Use Util::difftvsec() instead of Util::difftv().
  14644. * src/BitfieldMan.h
  14645. (getNthBitIndex): New function.
  14646. (hasMissingPiece): New function.
  14647. (getAllMissingIndexes): New function.
  14648. * src/BitfieldMan.cc
  14649. (countSetBit): Rewritten.
  14650. (getNthBitIndex): New function.
  14651. (getMissingIndexRandomly): Rewritten.
  14652. (hasMissingPiece): New function.
  14653. (getAllMissingIndexes): New function.
  14654. * src/TorrentMan.cc
  14655. (hasMissingPiece): New function.
  14656. (deleteUsedPiece): Rewritten using STL.
  14657. * src/PeerInteraction.cc
  14658. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14659. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14660. (addRequests): Updated the number of pending requests.
  14661. * src/PeerAbstractCommand.cc
  14662. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14663. (execute): Returns true if TorrentMan::isHalt() is true.
  14664. Corrected the condition of upload limit checking.
  14665. * src/Util.h
  14666. (countBit): New function.
  14667. * src/Util.cc
  14668. (nbits): New variable.
  14669. (countBit): New function.
  14670. * src/DownloadEngine.h
  14671. (SockCmdMap): New type definition.
  14672. (waitData): Added an argument.
  14673. (addSocket): Added an argument.
  14674. (addSocketForReadCheck): Added an argument.
  14675. (addSocketForWriteCheck): Added an argument.
  14676. * src/DownloadEngine.cc
  14677. (run): Executes only commands whose sockets are ready to read or write.
  14678. All commands are executed in every 1 second.
  14679. (waitData): Calls select() again if it returned
  14680. EINTR.
  14681. (addSocket): Saves socket and command object pair to the map.
  14682. (deleteSocket): Deletes socket and command object pair from the map.
  14683. (addSocketForReadCheck): Added an argument.
  14684. (addSocketForWriteCheck): Added an argument.
  14685. * src/DownloadCommand.cc
  14686. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14687. To send "event=stopped" to the tracker when the application finishes:
  14688. * src/PeerChokeCommand.h
  14689. (checkPoint): New variable.
  14690. * src/PeerChokeCommand.cc
  14691. (PeerChokeCommand): Added the initialization of checkPoint.
  14692. (execute): The interval check is now done by checkPoint, not
  14693. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14694. * src/TorrentMan.h
  14695. (halt): New function.
  14696. (hasMissingPiece): New function.
  14697. (isHalt): New function.
  14698. (setHalt): New function.
  14699. * src/TorrentMan.cc
  14700. (TorrentMan): Added the initialization of halt.
  14701. * src/TorrentAutoSaveCommand.h
  14702. (checkPoint): New variable.
  14703. * src/PeerListenCommand.cc
  14704. (execute): Returns true if TorrentMan::isHalt() is true.
  14705. * src/main.cc
  14706. (setSignalHander): Added flags argument.
  14707. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14708. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14709. Removed printDownloadAbortMessage() after torrent downloading loop.
  14710. * src/TorrentAutoSaveCommand.cc
  14711. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14712. (execute): Returns true if TorrentMan::isHalt() is true.
  14713. The interval check is now done by checkPoint, not SleepCommand.
  14714. * src/TrackerWatcherCommand.cc
  14715. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14716. event=stopped.
  14717. * src/TrackerUpdateCommand.cc
  14718. (prepareForRetry): Do not use SleepCommand here.
  14719. (execute): Returns true if TorrentMan::isHalt() is true.
  14720. Others:
  14721. * src/TorrentMan.cc
  14722. (getMissingPieceIndex): Updated log message.
  14723. * src/PeerInteraction.cc
  14724. (createPeerMessag): Updated log message.
  14725. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14726. To add the ability to download several pieces in mix in a command and
  14727. increase the number of request slots according to request-cancel
  14728. latency:
  14729. * src/PeerInteractionCommand.cc
  14730. (executeInternal): The number of messages to be received at a time
  14731. is increased from 10 to 50.
  14732. * src/LogFactory
  14733. (getInstance): Added NullLogger.
  14734. * src/NullLogger.h: New class.
  14735. * src/BitfieldMan.h
  14736. (getMissingIndex): New function.
  14737. * src/BitfieldMan.cc
  14738. (getMissingIndex): New function.
  14739. * src/TorrentMan.h
  14740. (checkOutPiece): New function.
  14741. (getMissingPieceIndex): New function.
  14742. (getMissingFastPieceIndex): New function.
  14743. (getMissingFastPiece): New function.
  14744. * src/TorrentMan.cc
  14745. (updatePiece): Rewritten using STL.
  14746. (syncPiece): Rewritten using STL.
  14747. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14748. checkOutPiece().
  14749. (getMissingPieceIndex): New function.
  14750. (getMissingFastPieceIndex): New function.
  14751. (getMissingFastPiece): New function.
  14752. (checkOutPiece): New function.
  14753. * src/PeerInteraction.h
  14754. (Pieces): New type definition.
  14755. (piece): Removed.
  14756. (pieces): New variable.
  14757. (getNewPieceAndSendInterest): Added the "piece" argument.
  14758. (abortPiece): Added the "piece" argument.
  14759. (abortAllPieces): New function.
  14760. (isInRequestSlot): New function.
  14761. (hasDownloadPiece): Added the "index" argument.
  14762. (setDownloadPiece): Removed.
  14763. (getDownloadPiece): Added the "index" argument.
  14764. (updatePiece): New function.
  14765. (createRequestMessage): Added the "index" argument.
  14766. * src/PeerInteraction.cc
  14767. (onChoked): Rewritten.
  14768. (abortPiece): Rewirtten.
  14769. (abortAllPieces): New function.
  14770. (deleteTimeoutRequestSlot): Rewritten.
  14771. Clarified code a little bit.
  14772. (deleteCompletedRequestSlot): Rewritten.
  14773. (isInRequestSlot): New function.
  14774. (syncPiece): Rewritten.
  14775. (updatePiece): New function.
  14776. (getNewPieceAndSendInterest): Rewritten.
  14777. (addRequests): Rewritten.
  14778. (getDownloadPiece): Rewritten.
  14779. (hasDownloadPiece): Rewritten.
  14780. (createRequestMessage): Added the "index" argument.
  14781. * src/common.h
  14782. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14783. (DIV_FLOOR): New definition.
  14784. * src/PieceMessage.cc
  14785. (receivedAction): Update request-piece latency here.
  14786. * src/RequestSlot.h
  14787. (getLatencyInMillis): New function.
  14788. * src/RequestSlot.cc
  14789. (isTimeout): Rewritten using getLatencyInMillis.
  14790. (getLatencyInMillis): New function.
  14791. * src/Piece.h
  14792. (operator==): New function.
  14793. (getMissingBlockIndex): New function.
  14794. * src/Piece.cc
  14795. (operator==): New function.
  14796. (getMissingBlockIndex): New function.
  14797. * src/Peer.h
  14798. (DEFAULT_LATENCY): New definition.
  14799. (latency): New variable.
  14800. (updateLatency): New function.
  14801. (getLatency): New function.
  14802. * src/Peer.cc
  14803. (resetStatus): Reset latecy.
  14804. (updateLatency): New function.
  14805. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14806. * src/SocketCore.cc
  14807. (isReadable): Added secure to the condition.
  14808. * src/HttpConnection.cc
  14809. (receiveResponse): Fixed a bug that causes no response header
  14810. exception.
  14811. * src/Peer.h
  14812. (getFastSet): Fixed the return value type.
  14813. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14814. To remove a wait from download loop:
  14815. * src/DownloadEngine.cc
  14816. (run): Comment out shortSleep.
  14817. To rewrite the message handling:
  14818. * src/SimplePeerMessage.h: New class.
  14819. * src/SimplePeerMessage.cc: New class.
  14820. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14821. (msg): New variable.
  14822. (create): New function.
  14823. (send): Removed.
  14824. (getMessage): New function.
  14825. (getMessageLength): New function.
  14826. * src/CancelMessage.cc
  14827. (create): New function.
  14828. (receivedAction): Replaced deleteRequestMessageInQueue with
  14829. rejectPieceMessageInQueue.
  14830. (send): Removed.
  14831. (getMessage): New function.
  14832. (getMessageLength): New function.
  14833. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14834. (msg): New variable.
  14835. (msgLength): New variable.
  14836. (~BitfieldMessage): Deleted msg.
  14837. (send): Removed.
  14838. (getMessage): New function.
  14839. (getMessageLength): New function.
  14840. * src/BitfieldMessage.cc
  14841. (create): New function.
  14842. (send): Removed.
  14843. (getMessage): New function.
  14844. (getMessageLength): New function.
  14845. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14846. (msg): New variable.
  14847. (sendPredicate): New function.
  14848. (onSendComplete): New function.
  14849. (send): Removed.
  14850. (getMessage): New function.
  14851. (getMessageLength): New function.
  14852. (create): New function.
  14853. * src/ChokeMessage.cc
  14854. (create): New function.
  14855. (send): Removed.
  14856. (sendPredicate): New function.
  14857. (getMessage): New function.
  14858. (getMessageLength): New function.
  14859. (onSendComplete): New function.
  14860. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14861. (msg): New variable.
  14862. (send): Removed.
  14863. (getMessage): New function.
  14864. (getMessageLength): New function.
  14865. * src/KeepAliveMessage.cc
  14866. (send): Removed.
  14867. (getMessage): New function.
  14868. (getMessageLength): New function.
  14869. * src/PortMessage.h
  14870. (create): New function.
  14871. (receivedAction): Updated log message.
  14872. * src/PortMessage.cc: New file.
  14873. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14874. (msg): New variable.
  14875. (sendPredicate): New function.
  14876. (onSendComplete): New function.
  14877. (create): New function.
  14878. (send): Removed.
  14879. (getMessage): New function.
  14880. (getMessageLength): New function.
  14881. * src/UnchokeMessage.cc
  14882. (create): New function.
  14883. (send): Removed.
  14884. (sendPredicate): New function.
  14885. (getMessage): New function.
  14886. (getMessageLength): New function.
  14887. (onSendComplete): New function.
  14888. * src/PieceMessage.h
  14889. (leftPieceDataLength): Removed.
  14890. (leftDataLength): New variable.
  14891. (headerSend): New variable.
  14892. (pendingCount): New variable.
  14893. (msgHeader): New variable.
  14894. (sendPieceData): New function.
  14895. (incrementPendingCount): New function.
  14896. (isPendingCountMax): New function.
  14897. (create): New function.
  14898. (getMessageHeader): New function.
  14899. (getMessageHeaderLength): New function.
  14900. * src/PieceMessage.cc
  14901. (create): New function.
  14902. (getMessageHeader): New function.
  14903. (getMessageHeaderLength): New function.
  14904. (send): Rewritten.
  14905. (sendPieceData): New function.
  14906. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14907. (msg): New variable.
  14908. (create): New function.
  14909. (getMessage): New function.
  14910. (getMessageLength): New function.
  14911. * src/HaveMessage.cc
  14912. (create): New function.
  14913. (send): Removed.
  14914. (sendPieceData): New function.
  14915. (getMessage): New function.
  14916. (getMessageLength): New function.
  14917. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14918. (msg): New variable.
  14919. (create): New function.
  14920. (send): Removed.
  14921. (getMessage): New function.
  14922. (getMessageLength): New function.
  14923. * src/RequestMessage.cc
  14924. (create): New function.
  14925. (receivedAction): Added the handling of fast extension.
  14926. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14927. (send): Removed.
  14928. (getMessage): New function.
  14929. (getMessageLength): New function.
  14930. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14931. (msg): New variable.
  14932. (sendPredicate): New function.
  14933. (onSendComplete): New function.
  14934. (create): New function.
  14935. (getMessage): New function.
  14936. (getMessageLength): New function.
  14937. * src/InterestedMessage.cc
  14938. (create): New function.
  14939. (send): Removed.
  14940. (sendPieceData): New function.
  14941. (getMessage): New function.
  14942. (getMessageLength): New function.
  14943. (onSendComplete): New function.
  14944. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14945. (msg): New variable.
  14946. (sendPieceData): New function.
  14947. (onSendComplete): New function.
  14948. (create): New function.
  14949. (send): Removed.
  14950. (getMessage): New function.
  14951. (getMessageLength): New function.
  14952. * src/NotInterestedMessage.cc
  14953. (create): New function.
  14954. (send): Removed.
  14955. (sendPredicate): New function.
  14956. (getMessage): New function.
  14957. (getMessageLength): New function.
  14958. (onSendComplete): New function.
  14959. * src/AllowedFastMessage.h: New class.
  14960. * src/AllowedFastMessage.cc: New class.
  14961. * src/RejectMessage.h: New class.
  14962. * src/RejectMessage.cc: New class.
  14963. * src/SuggestPieceMessage.h: New class.
  14964. * src/SuggestPieceMessage.cc: New class.
  14965. * src/HaveAllMessage.h: New class.
  14966. * src/HaveAllMessage.cc: New class.
  14967. * src/HaveNoneMessage.h: New class.
  14968. * src/HaveNoneMessage.cc: New class.
  14969. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14970. (msg): New variable.
  14971. (reserved): New variable.
  14972. (create): New function.
  14973. (getId): New function.
  14974. (receivedAction): New function.
  14975. (getMessage): New function.
  14976. (getMessageLength): New function.
  14977. (isFastExtensionSupported): New function.
  14978. * src/HandshakeMessage.cc
  14979. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14980. (create): New function.
  14981. (getMessage): New function.
  14982. (getMessageLength): New function.
  14983. (toString): Added the output of reserved field.
  14984. (check): Added const qualifier.
  14985. (isFastExtensionSupported): New function.
  14986. * src/PeerMessageUtil.h
  14987. (createChokeMessage): Removed.
  14988. (createUnchokeMessage): Removed.
  14989. (createInterestedMessage): Removed.
  14990. (createNotInterestedMessage): Removed.
  14991. (createHaveMessage): Removed.
  14992. (createBitfieldMessage): Removed.
  14993. (createRequestMessage): Removed.
  14994. (createCancelMessage): Removed.
  14995. (createPieceMessage): Removed.
  14996. (createPortMessage): Removed.
  14997. (createChokeMessage): Removed.
  14998. (createUnchokeMessage): Removed.
  14999. (createInterestedMessage): Removed.
  15000. (createNotInterestedMessage): Removed.
  15001. (createHaveMessage): Removed.
  15002. (createBitfieldMessage): Removed.
  15003. (createRequestMessage): Removed.
  15004. (createCancelMessage): Removed.
  15005. (createPieceMessage): Removed.
  15006. (createKeepAliveMessage): Removed.
  15007. (createHandshakeMessage): Removed.
  15008. (setIntParam): New function.
  15009. (createPeerMessageString): New function.
  15010. * src/PeerMessageUtil.cc
  15011. (createChokeMessage): Removed.
  15012. (createUnchokeMessage): Removed.
  15013. (createInterestedMessage): Removed.
  15014. (createNotInterestedMessage): Removed.
  15015. (createHaveMessage): Removed.
  15016. (createBitfieldMessage): Removed.
  15017. (createRequestMessage): Removed.
  15018. (createCancelMessage): Removed.
  15019. (createPieceMessage): Removed.
  15020. (createPortMessage): Removed.
  15021. (createRequestMessage): Removed.
  15022. (createCancelMessage): Removed.
  15023. (createPieceMessage): Removed.
  15024. (createHaveMessage): Removed.
  15025. (createChokeMessage): Removed.
  15026. (createUnchokeMessage): Removed.
  15027. (createInterestedMessage): Removed.
  15028. (createNotInterestedMessage): Removed.
  15029. (createBitfieldMessage): Removed.
  15030. (createKeepAliveMessage): Removed.
  15031. (createHandshakeMessage): Removed.
  15032. (setIntParam): New function.
  15033. (createPeerMessageString): New function.
  15034. * src/PeerConnection.h
  15035. (peer): Removed.
  15036. (torrentMan): Removed.
  15037. (createNLengthMessage): Removed.
  15038. (setIntParam): Removed.
  15039. (writeOutgoingMessageLog): Removed all overloaded functions.
  15040. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15041. (sendMessage): New function.
  15042. (sendHandshake): Removed.
  15043. (sendKeepAlive): Removed.
  15044. (sendChoke): Removed.
  15045. (sendUnchoke): Removed.
  15046. (sendInterested): Removed.
  15047. (sendNotInterested): Removed.
  15048. (sendHave): Removed.
  15049. (sendBitfield): Removed.
  15050. (sendRequest): Removed.
  15051. (sendPiece): Removed.
  15052. (sendPieceHeader): Removed.
  15053. (sendPieceData): Removed.
  15054. (sendCancel): Removed.
  15055. (getPeer): Removed.
  15056. * src/PeerConnection.cc
  15057. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15058. (sendHandshake): Removed.
  15059. (sendKeepAlive): Removed.
  15060. (createNLengthMessage): Removed.
  15061. (setIntParam): Removed.
  15062. (writeOutgoingMessageLog): Removed all overloaded functions.
  15063. (sendChoke): Removed.
  15064. (sendUnchoke): Removed.
  15065. (sendInterested): Removed.
  15066. (sendNotInterested): Removed.
  15067. (sendHave): Removed.
  15068. (sendBitfield): Removed.
  15069. (sendRequest): Removed.
  15070. (sendPiece): Removed.
  15071. (sendPieceHeader): Removed.
  15072. (sendPieceData): Removed.
  15073. (sendMessage): New function.
  15074. (sendCancel): Removed.
  15075. * src/PeerInteractionCommand.cc
  15076. (PeerInteractionCommand): Call setUploadLimit.
  15077. (executeInternal): Call setUploadLimit.
  15078. Added the handling of "inProgress" state of handshake message.
  15079. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15080. sendNow().
  15081. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15082. sendNow().
  15083. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15084. * src/TorrentMan.h
  15085. (PEER_ID_LENGTH): New definition.
  15086. (hasAllPieces): New function.
  15087. * src/TorrentMan.cc
  15088. (getMissingPiece): Added the handling of fast extension.
  15089. (cancelPiece): Call updatePiece().
  15090. (hasAllPieces): New function.
  15091. * src/PeerInteraction.h
  15092. (fastSet): New variable.
  15093. (getNewPieceAndSendInterest): Changed the return type to void.
  15094. (send): Renamed as sendMessages.
  15095. (deleteAllRequestSlot): Removed.
  15096. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15097. (cancelAllRequest): Removed all overloaded functions.
  15098. (deleteAllRequestSlot): Removed.
  15099. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15100. (rejectPieceMessageInQueue): New function.
  15101. (rejectAllPieceMessageInQueue): New function.
  15102. (onChoked): New function.
  15103. (isSendingMessageInProgress): New function.
  15104. (getCorrespondingRequestSlot): Changed its arguments.
  15105. (isInFastSet): New function.
  15106. (addFastSetIndex): New function.
  15107. (addRequests): New function.
  15108. (sendNow): Removed.
  15109. (trySendNow): Removed.
  15110. (sendBitfield): New function.
  15111. (sendAllowdFast): New function.
  15112. (createHaveAllMessage): New function.
  15113. (createHaveNoneMessage): New function.
  15114. (createRejectMessage): New function.
  15115. (createAllowedFastMessage): New function.
  15116. * src/PeerInteraction.cc
  15117. (send): Renamed as sendMessages.
  15118. (sendMessages): New function.
  15119. (MsgPushBack): New class.
  15120. (isSendingMessageInProgress): New function.
  15121. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15122. (rejectAllPieceMessageInQueue): New function.
  15123. Added the handling of fast extension.
  15124. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15125. (rejectPieceMessageInQueue): New function.
  15126. Added the handling of fast extension.
  15127. (deleteRequestSlot): Replaced for loop with std::find.
  15128. (onChoked): New function.
  15129. (deleteAllRequestSlot): Removed.
  15130. (abortPiece): Rewirtten.
  15131. (deleteTimeoutRequestSlot): Updated log messages.
  15132. (getCorrespondingRequestSlot): Changed its arguments.
  15133. (cancelAllRequest): Removed all overloaded functions.
  15134. (receiveHandshake): Added the check to see whether an incoming peer
  15135. supports fast extension.
  15136. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15137. PeerMessageUtil.
  15138. (createPeerMessage): Use create() of each message class instead of
  15139. PeerMessageUtil.
  15140. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15141. AllowedFastMessage were added.
  15142. (getNewPieceAndSendInterest): Changed its return value type to void.
  15143. Added the handling of fast extension.
  15144. (addRequests): New function.
  15145. (sendNow): Removed.
  15146. (sendHandshake): Rewritten.
  15147. (trySendNow): Removed.
  15148. (sendBitfield): New function.
  15149. (sendAllowdFast): New function.
  15150. (isInFastSet): New function.
  15151. (addFastSetIndex): New function.
  15152. (createRequestMessage): Use RequestMessage::create instead of
  15153. PeerMessageUtil.
  15154. (createCancelMessage): Use CancelMessage::create instead of
  15155. PeerMessageUtil.
  15156. (createPieceMessage): Use PieceMessage::create instead of
  15157. PeerMessageUtil.
  15158. (createHaveMessage): Use HaveMessage::create instead of
  15159. PeerMessageUtil.
  15160. (createChokeMessage): Use ChokeMessage::create instead of
  15161. PeerMessageUtil.
  15162. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15163. PeerMessageUtil.
  15164. (createInterestedMessage): Use InterestedMessage::create instead of
  15165. PeerMessageUtil.
  15166. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15167. of PeerMessageUtil.
  15168. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15169. PeerMessageUtil.
  15170. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15171. PeerMessageUtil.
  15172. (createHaveAllMessage): New function.
  15173. (createHaveNoneMessage): New function.
  15174. (createRejectMessage): New function.
  15175. (createAllowedFastMessage: New function.
  15176. * src/Util.h
  15177. (sha1Sum): New function.
  15178. (computeFastSet): New function.
  15179. * src/Util.cc
  15180. (sha1Sum): New function.
  15181. (computeFastSet): New function.
  15182. * src/Peer.h
  15183. (fastExtensionEnabled): New variable.
  15184. (fastSet): New variable.
  15185. (setAllBitfield): New function.
  15186. (setFastExtensionEnabled): New function.
  15187. (isFastExtensionEnabled): New function.
  15188. (addFastSetIndex): New function.
  15189. (getFastSet): New function.
  15190. (isInFastSet): New function.
  15191. (countFastSet): New function.
  15192. * src/Peer.cc
  15193. (isInFastSet): New function.
  15194. (addFastSetIndex): New function.
  15195. (setAllBitfield): New function.
  15196. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15197. sockets.
  15198. * src/PeerAbstractCommand.cc
  15199. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15200. and uploadLimit.
  15201. (execute): Changed the procedure of checking sockets. The upload speed
  15202. checking were added.
  15203. (setUploadLimit): New function.
  15204. (setUploadLimitCheck): New function.
  15205. * src/PeerAbstractCommand.h
  15206. (setUploadLimit): New function.
  15207. (setUploadLimitCheck): New function.
  15208. (uploadLimit): New variable.
  15209. (uploadLimitCheck): New variable.
  15210. To contact a tracker regularly:
  15211. * src/TrackerWatcherCommand.h (interval): New variable.
  15212. (checkPoint): New variable.
  15213. (TrackerWatcherCommand): Added interval argument.
  15214. * src/TrackerWatcherCommand.cc
  15215. (TrackerWatcherCommand): Initialized checkPoint.
  15216. (execute): Now a tracker is contacted in every specified period.
  15217. If peer list is not needed, send request with numwant=0.
  15218. * src/TrackerUpdateCommand.cc
  15219. (execute): Updated log messages.
  15220. * src/DownloadEngine.cc
  15221. (~DownloadEngine): Removed two asserts.
  15222. (waitData): Uncommented wfds. May be a bug fix.
  15223. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15224. * src/PeerInteractionCommand.h
  15225. (checkInactiveConnection): Removed.
  15226. * src/PeerInteractionCommand.cc
  15227. (executeInternal): Removed following function calls:
  15228. detectMessageFlooding(), checkLongTimePeerChoking and
  15229. checkInactiveConnection().
  15230. (checkInactiveConnection): Removed.
  15231. (detectMessageFlooding): Removed function call to
  15232. checkInactiveConnection().
  15233. * src/PeerMessageUtil.h
  15234. (createChokeMessage): New function. Overload.
  15235. (createUnchokeMessage): New function. Overload.
  15236. (createInterestedMessage): New function. Overload.
  15237. (createNotInterestedMessage): New function. Overload.
  15238. (createHaveMessage): New function. Overload.
  15239. (createBitfieldMessage): New function. Overload.
  15240. (createRequestMessage): New function. Overload.
  15241. (createCancelMessage): New function. Overload.
  15242. (createPieceMessage): New function. Overload.
  15243. (createKeepAliveMessage): New function. Overload.
  15244. * src/PeerMessageUtil.cc
  15245. (createChokeMessage): New function. Overload.
  15246. (createUnchokeMessage): New function. Overload.
  15247. (createInterestedMessage): New function. Overload.
  15248. (createNotInterestedMessage): New function. Overload.
  15249. (createHaveMessage): New function. Overload.
  15250. (createBitfieldMessage): New function. Overload.
  15251. (createRequestMessage): New function. Overload.
  15252. (createCancelMessage): New function. Overload.
  15253. (createPieceMessage): New function. Overload.
  15254. (createKeepAliveMessage): New function. Overload.
  15255. * src/SendMessageQueue.cc
  15256. (createRequestMessage): Use PeerMessageUtil.
  15257. (createCancelMessage): Use PeerMessageUtil.
  15258. (createPieceMessage): Use PeerMessageUtil.
  15259. (createHaveMessage): Use PeerMessageUtil.
  15260. (createChokeMessage): Use PeerMessageUtil.
  15261. (createUnchokeMessage): Use PeerMessageUtil.
  15262. (createInterestedMessage): Use PeerMessageUtil.
  15263. (createNotInterestedMessage): Use PeerMessageUtil.
  15264. (createBitfieldMessage): Use PeerMessageUtil.
  15265. (createKeepAliveMessage): Use PeerMessageUtil.
  15266. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15267. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15268. * src/PeerInteraction.h: New class.
  15269. * src/PeerInteraction.cc: New class.
  15270. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15271. Each peer message has its own class.
  15272. * src/PendingMessages.h: Removed.
  15273. * src/PendingMessages.cc: Removed. The sending process was moved to
  15274. each message class.
  15275. * src/RequestSlotMan.h: Removed.
  15276. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15277. SendMessageQueue.
  15278. * src/RequestMessage.h: New class.
  15279. * src/RequestMessage.cc: New class.
  15280. * src/CancelMessage.h: New class.
  15281. * src/CancelMessage.cc: New class.
  15282. * src/BitfieldMessage.h: New class.
  15283. * src/BitfieldMessage.cc: New class.
  15284. * src/ChokeMessage.h: New class.
  15285. * src/ChokeMessage.cc: New class.
  15286. * src/KeepAliveMessage.h: New class.
  15287. * src/KeepAliveMessage.cc: New class.
  15288. * src/PortMessage.h: New class.
  15289. * src/UnchokeMessage.h: New class.
  15290. * src/UnchokeMessage.cc: New class.
  15291. * src/PieceMessage.h: New class.
  15292. * src/PieceMessage.cc: New class.
  15293. * src/HaveMessage.h: New class.
  15294. * src/HaveMessage.cc: New class.
  15295. * src/BitfieldMessage.h: New class.
  15296. * src/BitfieldMessage.cc: New class.
  15297. * src/NotInterestedMessage.h: New class.
  15298. * src/NotInterestedMessage.cc: New class.
  15299. * src/InterestedMessage.h: New class.
  15300. * src/InterestedMessage.cc: New class.
  15301. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15302. (getSendMessageQueue): New function.
  15303. (setSendMessageQueue): New function.
  15304. * src/HandshakeMessage.cc: New class.
  15305. * src/PeerConnection.h (receiveMessage): Changed return value and
  15306. arguments.
  15307. (receiveHandshake): Changed return value and arguments.
  15308. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15309. here.
  15310. (receiveHandshake): Do not create handshake class here.
  15311. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15312. (piece): Removed.
  15313. (syncPiece): Removed.
  15314. (sendInterest): Removed.
  15315. (sendMessages): Removed.
  15316. (createRequestPendingMessage): Removed.
  15317. (checkPieceHash): Removed.
  15318. (erasePieceOnDisk): Removed.
  15319. (getNewPieceAndSendInterest): Removed.
  15320. (onGotNewPice): Removed.
  15321. (onGotWrongPiece): Removed.
  15322. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15323. Removed peerConnection, piece.
  15324. (~PeerInteractionCommand): Removed peerConnection.
  15325. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15326. (syncPiece): Moved to SendMessageQueue.
  15327. (decideChoking): Removed PendingMessage.
  15328. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15329. The action after receiving peer message was moved to each message
  15330. class.
  15331. (onGotNewPice): Moved to SendMessageQueue.
  15332. (onGotWrongPiece): Moved to SendMessageQueue.
  15333. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15334. (sendInterest): Moved to SendMessageQueue.
  15335. (createRequestPendingMessage): Removed.
  15336. (sendMessages): Moved to SendMessageQueue.
  15337. (onAbort): Use SendMessageQueue::abortPiece()
  15338. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15339. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15340. (checkPieceHash): Moved to SendMessageQueue.
  15341. (erasePieceOnDisk): Moved to SendMessageQueue.
  15342. * src/PeerMessageUtil.h
  15343. (createBitfieldMessage): Removed.
  15344. (createHaveMessage): Changed return value and arguments.
  15345. (createBitfieldMessage): Changed return value and arguments.
  15346. (createRequestCancelMessage): Removed.
  15347. (createPieceMessage): Changed return value and arguments.
  15348. (getShortIntParam): New function.
  15349. (checkIndex): Changed arguments.
  15350. (checkBegin): Changed arguments.
  15351. (checkLength): Changed arguments.
  15352. (checkPieceOffset): Removed.
  15353. (checkRange): New function.
  15354. (checkBitfield): Changed arguments.
  15355. (createPeerMessage): Removed.
  15356. (checkIntegrity): Removed.
  15357. (createHandshakeMessage): Changed arguments.
  15358. (createChokeMessage): New function.
  15359. (createUnchokeMessage): New function.
  15360. (createInterestedMessage): New function.
  15361. (createNotInterestedMessage): New function.
  15362. (createRequestMessage): New function.
  15363. (createCancelMessage): New function.
  15364. (createPortMessage): New function.
  15365. * src/PeerMessageUtil.cc
  15366. (createBitfieldMessage): Removed.
  15367. (createHaveMessage): Changed return value and arguments.
  15368. (createBitfieldMessage): Changed return value and arguments.
  15369. (createRequestCancelMessage): Removed.
  15370. (createPieceMessage): Changed return value and arguments.
  15371. (getShortIntParam): New function.
  15372. (checkIndex): Changed arguments.
  15373. (checkBegin): Changed arguments.
  15374. (checkLength): Changed arguments.
  15375. (checkPieceOffset): Removed.
  15376. (checkRange): New function.
  15377. (checkBitfield): Changed arguments.
  15378. (createPeerMessage): Removed.
  15379. (checkIntegrity): Removed.
  15380. (createHandshakeMessage): Changed arguments.
  15381. (createChokeMessage): New function.
  15382. (createUnchokeMessage): New function.
  15383. (createInterestedMessage): New function.
  15384. (createNotInterestedMessage): New function.
  15385. (createRequestMessage): New function.
  15386. (createCancelMessage): New function.
  15387. (createPortMessage): New function.
  15388. * src/PeerMessage.h
  15389. (id): Removed.
  15390. (index): Removed.
  15391. (begin): Removed.
  15392. (length): Removed.
  15393. (bitfield): Removed.
  15394. (bitfieldLength): Removed.
  15395. (block): Removed.
  15396. (blockLength): Removed.
  15397. (inProgress): New variable.
  15398. (cuid): New variable.
  15399. (peer): New variable.
  15400. (sendMessageQueue): New variable.
  15401. (logger): New variable.
  15402. (setBitfield): Removed.
  15403. (getBitfield): Removed.
  15404. (setBlock): Removed.
  15405. (getBlock): Removed.
  15406. (getBitfieldLength): Removed.
  15407. (getBlockLength): Removed.
  15408. (isInProgress): New function.
  15409. (toString): Made pure virtual.
  15410. (check): New function.
  15411. (send): New function.
  15412. (receivedAction): New function.
  15413. (getId): Made pure virtual.
  15414. (setId): Removed.
  15415. (getIndex): Removed.
  15416. (setIndex): Removed.
  15417. (getBegin): Removed.
  15418. (setBegin): Removed.
  15419. (getLength): Removed.
  15420. (setLength): Removed.
  15421. (getCuid): New function.
  15422. (setCuid): New function.
  15423. (getPeer): New function.
  15424. (setPeer): New function.
  15425. (getSendMessageQueue): New function.
  15426. (setSendMessageQueue): New function.
  15427. (ID): Removed.
  15428. * src/PeerMessage.cc
  15429. (setBitfield): Removed.
  15430. (setBlock): Removed.
  15431. (toString): Removed.
  15432. * src/TorrentMan.h
  15433. (getPieceLength): New function.
  15434. (getPieceLength): New function.
  15435. * src/SendMessageQueue.h
  15436. (REQUEST_TIME_OUT): New definition.
  15437. (RequestSlots): New definition.
  15438. (MessageQueue): New definition.
  15439. (requestSlotMan): Removed.
  15440. (pendingMessages): Removed.
  15441. (requestSlots): New variable.
  15442. (messageQueue): New variable.
  15443. (torrentMan): New variable.
  15444. (peerConnection): New variable.
  15445. (peer): New variable.
  15446. (piece): New variable.
  15447. (getNewPieceAndSendInterest): New function.
  15448. (createPeerMessage): New function.
  15449. (createHandshakeMessage): New function.
  15450. (send): Made private.
  15451. (setPeerMessageCommonProperty): New function.
  15452. (deleteAllRequestSlot): New function.
  15453. (deleteRequestMessageInQueue): New function.
  15454. (cancelAllRequest): Made private.
  15455. (cancelAllRequest): Made private.
  15456. (countRequestSlot): Made private.
  15457. (addPendingMessage): Removed.
  15458. (deletePendingPieceMessage): Removed.
  15459. (deletePendingRequestMessage): Removed.
  15460. (addMessage): New function.
  15461. (deletePieceMessageInQueue): New function.
  15462. (deleteTimeoutRequestSlot): Changed argument.
  15463. (deleteCompletedRequestSlot): Changed argument.
  15464. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15465. (getCorrespondingRequestSlot): New function.
  15466. (countPendingMessage): Removed.
  15467. (countMessageInQueue): New function.
  15468. (getTorrentMan): New function.
  15469. (getPeerConnection): New function.
  15470. (hasDownloadPiece): New function.
  15471. (getDownloadPiece): New function.
  15472. (setDownloadPiece): New function.
  15473. (syncPiece): New function.
  15474. (sendMessages): New function.
  15475. (sendNow): New function.
  15476. (trySendNow): New function.
  15477. (abortPiece): New function.
  15478. (sendHandshake): New function.
  15479. (receiveMessage): New function.
  15480. (receiveHandshake): New function.
  15481. (createRequestMessage): New function.
  15482. (createCancelMessage): New function.
  15483. (createPieceMessage): New function.
  15484. (createHaveMessage): New function.
  15485. (createChokeMessage): New function.
  15486. (createUnchokeMessage): New function.
  15487. (createInterestedMessage): New function.
  15488. (createNotInterestedMessage): New function.
  15489. (createBitfieldMessage): New function.
  15490. (createKeepAliveMessage): New function.
  15491. * src/SendMessageQueue.cc
  15492. (SendMessageQueue): Removed requestSlotMan.
  15493. Instantiated peerConnection here.
  15494. (~SendMessageQueue): Removed requestSlotMan.
  15495. Added deletion of peerConnection and the contents of messageQueue.
  15496. (send): Updated according to the change of messageQueue.
  15497. (addPendingMessage): Renamed to addMessage.
  15498. (addMessage): New function.
  15499. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15500. (deletePieceMessageInQueue): New function.
  15501. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15502. (deleteRequestMessageInQueue): New function.
  15503. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15504. here.
  15505. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15506. (...) was moved here.
  15507. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15508. moved here.
  15509. (deleteCompletedRequestSlot):
  15510. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15511. (getCorrespondingRequestSlot):
  15512. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15513. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15514. (countPendingMessage): Renamed to countMessageInQueue.
  15515. (countMessageInQueue): New function.
  15516. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15517. (receiveHandshake): New function.
  15518. (createHandshakeMessage): New function.
  15519. (receiveMessage): New function.
  15520. (createPeerMessage): New function.
  15521. (syncPiece): New function.
  15522. (getNewPieceAndSendInterest): New function.
  15523. (sendMessages): New function.
  15524. (sendNow): New function.
  15525. (trySendNow): New function.
  15526. (sendHandshake): New function.
  15527. (abortPiece): New function.
  15528. (getDownloadPiece): New function.
  15529. (getPeerMessageCommonProperty): New function.
  15530. (createRequestMessage): New function.
  15531. (createCancelMessage): New function.
  15532. (createPieceMessage): New function.
  15533. (createHaveMessage): New function.
  15534. (createChokeMessage): New function.
  15535. (createUnchokeMessage): New function.
  15536. (createInterestedMessage): New function.
  15537. (createNotInterestedMessage): New function.
  15538. (createBitfieldMessage): New function.
  15539. (createKeepAliveMessage): New function.
  15540. To add simple Content-Disposition support:
  15541. * src/HttpResponseCommand.h (determinFilename): New function.
  15542. * src/HttpResponseCommand.cc (executeInternal):
  15543. Use determinFilename(headers) instead of req->getFile() when comparing
  15544. filename.
  15545. (determinFilename): New function.
  15546. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15547. req->getFile().
  15548. (handleOtherEncoding): Use determinFilename(headers) instead of
  15549. req->getFile().
  15550. * src/Util.h (getContentDispositionFilename): New function.
  15551. * src/Util.cc (getContentDispositionFilename): New function.
  15552. * src/LogFactory.h (release): New function.
  15553. * src/LogFactory.cc (release): New function.
  15554. To fix a bug that causes out-of-bound exception when HTTP status
  15555. line is wrong:
  15556. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15557. size.
  15558. * src/common.h (Deleter): New class.
  15559. * src/SegmentMan.cc
  15560. (~SegmentMan): Added deletion of splitter and diskWriter.
  15561. * src/DownloadEngine.h
  15562. (Commands): Use deque.
  15563. (clearQueue): New function.
  15564. * src/DownloadEngine.cc
  15565. (~DownloadEngine): Added deletion of segmentMan.
  15566. (cleanQueue): New function.
  15567. * src/TorrentDownloadEngine.h
  15568. (TorrentDownloadEngine): The implementation was moved to
  15569. TorrentDownloadEngine.cc.
  15570. (~TorrentDownloadEngine): The implementation was moved to
  15571. TorrentDownloadEngine.cc.
  15572. * src/TorrentDownloadEngine.cc
  15573. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15574. * src/main.cc
  15575. (clearRequest): Removed.
  15576. (handler): Added deletion of e.
  15577. (torrentHandler): Added deletion of te.
  15578. (main): Do not share splitter.
  15579. Use Deleter instead of clearRequest.
  15580. Deletion of classes were updated.
  15581. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15582. * src/main.cc (main): Fixed typo.
  15583. * src/message.h: Fixed typo.
  15584. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15585. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15586. To add --select-file command-line option:
  15587. * src/Util.cc
  15588. (unfoldRange): New function.
  15589. (getNum): New function.
  15590. (unfoldSubRange): New function
  15591. * src/main.cc
  15592. (showUsage): Added help message.
  15593. (main): Added --select-file command-line option. Updated the layout of
  15594. file listing.
  15595. * src/common.h
  15596. (Integers): New definition.
  15597. * src/SocketCore.cc
  15598. (writeData): Removed timeout argument.
  15599. (readData): Removed timeout argument.
  15600. (peekData): Removed timeout argument.
  15601. * src/Socket.cc
  15602. (writeData): Removed timeout argument.
  15603. (readData): Removed timeout argument.
  15604. (peekData): Removed timeout argument.
  15605. * Release 0.4.1
  15606. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15607. To deploy upload rate based choking algorithm:
  15608. * src/PeerInteractionCommand.cc
  15609. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15610. peer currently used.
  15611. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15612. download completes. Simplified.
  15613. (receiveMessage): Updated.
  15614. * src/TorrentMan.h
  15615. (activePeers): New variable.
  15616. (addActivePeer): New function.
  15617. (getActivePeers): New function.
  15618. (deleteActivePeer): New function.
  15619. * src/TorrentMan.cc
  15620. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15621. * src/PeerAbstractCommand.cc
  15622. (onAbort): Use peer->resetStatus().
  15623. * src/main.cc
  15624. (PeerChokeCommand.h): Included.
  15625. (main): Added the instance of ChokingCommand to the command queue.
  15626. * src/Peer.h
  15627. (amChoking): Renamed from amChocking
  15628. (chokingRequired): New variable.
  15629. (optUnchoking): New variable.
  15630. (deltaUpload): New variable.
  15631. (deltaDownload): New variable.
  15632. (addDeltaUpload): New function.
  15633. (resetDeltaUpload): New function.
  15634. (addDeltaDownload): New function.
  15635. (resetDeltaDownload): New function.
  15636. (addPeerUpload): Added a call to addDeltaUpload.
  15637. (addPeerDownload): Added a call to addDeltaDownload.
  15638. * src/Peer.cc
  15639. (shouldBeChoking): Renamed from shouldChoke.
  15640. (resetStatus): New function.
  15641. * src/PeerChokeCommand.h: New class.
  15642. * src/PeerChokeCommand.cc: New class.
  15643. To add lazy upload speed limiter:
  15644. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15645. statistics calculation to TorrentDownloadEngine.
  15646. * src/TorrentConsoleDownloadEngine.cc
  15647. (sendStatistics): Renamed from printStatistics.
  15648. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15649. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15650. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15651. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15652. calculation.
  15653. (sendStatistics): New function as pure virtual function.
  15654. (getUploadSpeed): New function.
  15655. * src/TorrentDownloadEngine.cc
  15656. (initStatistics): New function.
  15657. (calculateSpeed): New function.
  15658. (calculateStatistics): New function.
  15659. * src/SendMessageQueue.h
  15660. (uploadLength): New variable.
  15661. (send): Added an argument.
  15662. (setUploadLimit): New function.
  15663. (getUploadLimit): New function.
  15664. * src/SendMessageQueue.cc
  15665. (send): Added upload speed limiter.
  15666. * src/prefs.h
  15667. (PREF_UPLOAD_LIMIT): New definition.
  15668. * src/PeerInteractionCommand.cc
  15669. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15670. * src/main.cc
  15671. (main): Added --upload-limit option
  15672. For bug fixes:
  15673. * src/main.cc
  15674. (showUsage): Corrected --listen-port help
  15675. Other changes:
  15676. * src/TorrentMan.cc
  15677. (getPeer): Return nullPeer if connection is grather than
  15678. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15679. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15680. To add some useful information to the exception message:
  15681. * src/SocketCore.cc : Updated messages.
  15682. * src/SegmentMan.cc :
  15683. * src/TorrentMan.cc : Updated messages.
  15684. * src/MultiDiskWriter.cc : Updated messages.
  15685. * src/Util.cc : Updated messages.
  15686. * src/AbstractDiskWriter.cc : Updated messages.
  15687. * src/PreAllocationDiskWriter.cc : Updated messages.
  15688. * src/message.cc : Added new messages. Updated some messages.
  15689. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15690. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15691. Updated threshold from 30 to 15.
  15692. * src/AbstractDiskWriter.h (filename): New variable.
  15693. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15694. (createFile): Assigned filename.
  15695. * src/main.cc: Updated the help message for http-auth-scheme.
  15696. * Release 0.4.0
  15697. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15698. To add TrackerUpdateCommand with which replaces
  15699. CompactTrackerResponseProcessor:
  15700. * src/TrackerWatcherCommand.h (req): Removed.
  15701. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15702. if the number of peer connections are less than 30.
  15703. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15704. * src/SegmentMan.h (diskWriter): New function.
  15705. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15706. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15707. (main): Use TrackerUpdateCommand.
  15708. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15709. (req): New variable.
  15710. (setTrackerResponseProcessor): Removed.
  15711. (getTrackerResponseProcessor): Removed.
  15712. (processTrackerResponse): Removed.
  15713. * src/DownloadEngine.h (diskWriter): Removed.
  15714. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15715. to torrentMan->processTrackerResponse().
  15716. To add Util::expandBuffer:
  15717. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15718. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15719. * src/Util.h (expandBuffer): New function.
  15720. To fix the bug that causes segmentation fault when "-l ." is specified
  15721. in command-line option:
  15722. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15723. (openFile): New function.
  15724. (closeFile): New function.
  15725. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15726. (~SimpleLogger): Call closeFile();
  15727. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15728. * src/main.cc (main): Added a check to see logger is configured
  15729. properly.
  15730. To enable HTTP authentication without specifying "--http-auth-scheme"
  15731. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15732. * src/HttpConnection.cc (createRequest): Send Authorization header
  15733. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15734. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15735. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15736. * src/Peer.cc (shouldChoke): Updated algorithm.
  15737. * src/message.h (EX_AUTH_FAILED): New definition.
  15738. (EX_FILE_OPEN): New definition.
  15739. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15740. if status == 401.
  15741. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15742. if req->isTorrent == true.
  15743. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15744. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15745. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15746. (createFile): Updated message.
  15747. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15748. To add a readout of estimated remaining time to normal HTTP/FTP
  15749. downloads:
  15750. * src/ConsoleDownloadEngine.h (startup): New variable.
  15751. (startupLength): New variable.
  15752. (isStartupLengthSet): New variable.
  15753. (avgSpeed): New variable.
  15754. (eta): New variable.
  15755. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15756. estimated remaining time.
  15757. (initStatistics): Initialized newly added variables.
  15758. (calculateStatistics): Calculate average speed and estimated remaining
  15759. time.
  15760. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15761. * src/TrackerDownloadCommand.h: Removed.
  15762. * src/TrackerDownloadCommand.cc: Removed.
  15763. * src/TrackerInitCommand.h: Removed.
  15764. * src/TrackerInitCommand.cc: Removed.
  15765. * src/TrackerUpdateCommand.h: Removed.
  15766. * src/TrackerUpdateCommand.cc: Removed.
  15767. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15768. url written in TrackerInitCommand was moved here. Do not create
  15769. tracker request command if torrentMan->trackers != 0.
  15770. * src/CompactTrackerResponseProcessor.h: New class.
  15771. * src/CompactTrackerResponseProcessor.cc: New class.
  15772. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15773. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15774. Decoupled TorrentDownloadEngine from this.
  15775. * src/SegmentMan.h (init): New function.
  15776. * src/SegmentMan.cc (init): New function.
  15777. * src/TorrentMan.h (responseProcessor): New variable.
  15778. (trackers): New variable.
  15779. (setTrackerResponseProcessor): New function.
  15780. (getTrackerResponseProcessor): New function.
  15781. (processTrackerResponse): New function.
  15782. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15783. (processTrackerResponse): New function.
  15784. * src/main.cc (main): Use ByteArrayDiskWriter and
  15785. CompactTrackerResponseProcessor.
  15786. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15787. processTrackerResponse().
  15788. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15789. readout.
  15790. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15791. which indicates download has completed.
  15792. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15793. (closeFile): fd >= 0, not fd > 0
  15794. * src/main.cc (main): Added short cut for show-files.
  15795. Added short cut for torrent-file.
  15796. Added new command-line option listen-port.
  15797. Updated i18n messages.
  15798. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15799. To add LogFactory which creates singleton logger:
  15800. * src/LogFactory.h: New class.
  15801. * src/LogFactory.cc: New class.
  15802. * src/Command.h (logger): New variable.
  15803. (Constructor): Use LogFactory.
  15804. * src/AbstractCommand.cc: Use Command::logger
  15805. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15806. Use LogFactory.
  15807. * src/SegmentSplitter.h : Made logger protected.
  15808. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15809. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15810. * src/DownloadEngine.h : Made logger protected.
  15811. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15812. * src/PeerInteractionCommand.cc : Use Command::logger.
  15813. * src/HttpResponseCommand.cc : Use Command::logger.
  15814. * src/SegmentMan.h : Made logger private.
  15815. * src/TorrentMan.h : Made logger private.
  15816. * src/TorrentMan.cc : Use LogFactory.
  15817. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15818. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15819. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15820. Use LogFactory.
  15821. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15822. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15823. Use LogFactory.
  15824. * src/DownloadCommand.cc : Use Command::logger.
  15825. * src/PeerAbstractCommand.cc : Use Command::logger.
  15826. * src/PeerListenCommand.cc : Use Command::logger.
  15827. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15828. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15829. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15830. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15831. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15832. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15833. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15834. Use LogFactory.
  15835. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15836. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15837. Use LogFactory.
  15838. * src/main.cc (main): Use LogFactory.
  15839. * src/DiskAdaptor.h (logger): New variable.
  15840. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15841. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15842. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15843. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15844. parameter to a tracker request.
  15845. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15846. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15847. * src/main.cc (setSignalHander): New function.
  15848. (main): Added a handler for SIGTERM.
  15849. (handler): Updated message.
  15850. (torrentHandler): Updated message.
  15851. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15852. * src/TorrentConsoleDownloadEngine.cc
  15853. (onPartialDownloadingCompletes): Renamed as
  15854. onSelectiveDownloadingCompletes.
  15855. (onSelectiveDownloadingCompletes): Updated message.
  15856. To add DiskAdaptor which abstract DiskWriter family:
  15857. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15858. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15859. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15860. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15861. MultiDiskAdaptor.h.
  15862. (readFileEntry): Changed its arguments.
  15863. (setup): setupDiskWriter is merged into this function.
  15864. (setupDiskWriter): Removed.
  15865. (setFileFilter): New function.
  15866. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15867. made in readFileEntry.
  15868. (getFilePath): Removed.
  15869. (getTempFilePath): Removed.
  15870. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15871. (fixFilename): Removed.
  15872. (copySingleFile): Removed.
  15873. (splitMultiFile): Removed.
  15874. (deleteTempFile): Removed.
  15875. (setFileEntriesToDownload): Removed.
  15876. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15877. (isSelectiveDownloadingMode): New function.
  15878. (setAllMultiFileRequestedState): Removed.
  15879. (finishPartialDownloadingMode): Renamed as
  15880. finishSelectiveDownloadingMode.
  15881. (finishSelectiveDownloadingMode): New function.
  15882. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15883. (getSelectedTotalLength): New function.
  15884. (onDownloadComplete): Use diskAdaptor.
  15885. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15886. (Range): Removed.
  15887. (setMultiFileEntries): Renamed as setFileEntries.
  15888. (setFileEntries): New function.
  15889. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15890. (pieceLength): New variable.
  15891. * src/main.cc (printDownloadCompeleteMessage): New function.
  15892. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15893. (main): Renamed torrent-show-files to show-files.
  15894. Rewritten file contents listing.
  15895. * src/TorrentMan.h (FileEntry): Removed.
  15896. (multiFileTopDir): Removed.
  15897. (multiFileEntries): Removed.
  15898. (diskWriter): Removed.
  15899. (diskAdaptor): New variable.
  15900. * src/DefaultDiskWriter.h (totalLength): New variable.
  15901. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15902. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15903. diskWriter.
  15904. * src/TorrentConsoleDownloadEngine.h
  15905. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15906. (partialTotalLength): Renamed as selectedTotalLength.
  15907. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15908. openExistingFile, otherwise call initAndOpenFile.
  15909. (closeFile): fd > 0, not fd != 0.
  15910. * src/DirectDiskAdaptor.h: New class.
  15911. * src/DirectDiskAdaptor.cc: New class.
  15912. * src/MultiDiskAdaptor.h: New class.
  15913. * src/MultiDiskAdaptor.cc: New class.
  15914. * src/CopyDiskAdaptor.h: New class.
  15915. * src/CopyDiskAdaptor.cc: New class.
  15916. * src/DiskAdaptor.h: New class.
  15917. * src/DiskAdaptor.cc: New class.
  15918. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15919. (PREF_SHOW_FILES): New definition.
  15920. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15921. To add the ability to download multi torrent into respective files
  15922. directly:
  15923. * src/DiskWriter.h (openFile): New function.
  15924. (seek): Removed.
  15925. * src/MultiDiskWriter.h: New class.
  15926. * src/MultiDiskWriter.cc: New class.
  15927. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15928. protected.
  15929. (openFile): New function.
  15930. * src/AbstractDiskWriter.cc (openFile): New function.
  15931. * src/prefs.h (V_FALSE): New definition.
  15932. (PREF_DIRECT_FILE_MAPPING): New definition.
  15933. * src/TorrentMan.h (setupDiskWriter): New function.
  15934. (setAllMultiFileRequestedState): New function.
  15935. (onDownloadComplete): New function.
  15936. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15937. (setupDiskWriter): New function.
  15938. (getFilePath): Updated.
  15939. (getTempFilePath): Updated.
  15940. (getSegmentFilePath): Updated.
  15941. (fixFilename): Updated.
  15942. (deleteTempFile): Updated.
  15943. (setAllMultiFileRequestedState): New function.
  15944. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15945. (finishPartialDownloadingMode): Reset requested flags.
  15946. (onDownloadComplete): New function.
  15947. * src/main.cc: Added --direct-file-mapping option.
  15948. Use TorrentMan::setupDiskWriter().
  15949. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15950. onDownloadComplete().
  15951. To fix ETA bug:
  15952. * src/Util.h (difftvsec): New function.
  15953. * src/Util.cc (difftvsec): New function.
  15954. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15955. type of "elapsed" instead of long long int.
  15956. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15957. The updates of statistics takes place every 1 seconds.
  15958. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15959. (calculateSpeed): Changed its argument signature.
  15960. * src/PeerMessage.cc (toString): Fixed message.
  15961. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15962. To print ETA:
  15963. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15964. completion handling when dealing with
  15965. TorrentMan::isPartialDownloadingMode() == true.
  15966. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15967. New function.
  15968. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15969. (sessionDownloadLength): New variable.
  15970. (avgSpeed): New variable.
  15971. (eta): New variable.
  15972. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15973. new variables: eta, avgSpeed, startup.
  15974. (calculateSpeed): Calculate average speed and ETA.
  15975. (printStatistics): Added ETA.
  15976. * src/Util.h (secfmt): New function.
  15977. * src/Util.cc (secfmt): New function.
  15978. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15979. To detect "keep alive" flooding:
  15980. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15981. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15982. variable: keepAliveCount.
  15983. (detectMessageFlooding): Added "keep alive" flooding detection.
  15984. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15985. received.
  15986. To add the ability to download only specified files in multi-file
  15987. torrent:
  15988. * src/BitfieldMan.h (filterBitfield): New variable.
  15989. (filterEnabled): New variable.
  15990. (setFilterBit): New function.
  15991. (enableFilter): New function.
  15992. (disableFilter): New function.
  15993. (isFilterEnabled): New function.
  15994. (getFilteredTotalLength): New function.
  15995. (getCompletedLength): New function.
  15996. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15997. filterBitfield, filterEnabled.
  15998. (CopyConstructor): Added filterBitfield and filterEnabled.
  15999. (operator==): Added filterBitfield and filterEnabled.
  16000. (Destructor): Added filterBitfield.
  16001. (getMissingIndex): Use filterBitfield.
  16002. (getMissingUnusedIndex): Use filterBitfield.
  16003. (getFirstMissingUnusedIndex): Use filterBitfield.
  16004. (getFirstMissingUnusedIndex): Use filterBitfield.
  16005. (getAllMissingIndexes): Use filterBitfield.
  16006. (countMissingBlock): Use filterBitfield.
  16007. (countBlock): Use filterBitfield.
  16008. (setBitInternal): Added new argument on.
  16009. (setUseBit): Use setBitInternal.
  16010. (unsetUseBit): Use setBitInternal.
  16011. (setBit): Use setBitInternal.
  16012. (unsetBit): Use setBitInternal.
  16013. (isAllBitSet): Use filterBitfield.
  16014. (setFilterBit): New function.
  16015. (addFilter): New function.
  16016. (enableFilter): New function.
  16017. (disableFilter): New function.
  16018. (clearFilter): New function.
  16019. (isFilterEnabled): New function.
  16020. (getFilteredTotalLength): New function.
  16021. (getCompletedLength): New function.
  16022. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16023. Initalized newly added variables.
  16024. [FileEntry](offset): New variable.
  16025. [FileEntry](extracted): New variable.
  16026. [FileEntry](requested): New variable.
  16027. (readFileEntry): New function.
  16028. (option): New variable.
  16029. (splitMultiFile): Removed const qualifier.
  16030. (fixFilename): Removed const qualifier.
  16031. (readFileEntryFromMetaInfoFile): New function.
  16032. (finishPartialDownloadingMode): New function.
  16033. (isPartialDownloadingMode): New function.
  16034. (setFileEntriesToDownload): New function.
  16035. (getCompletedLength): New function.
  16036. (getPartialTotalLength): New function.
  16037. * src/TorrentMan.cc (readFileEntry): New function.
  16038. (setup): Use readFileEntry. If no-preallocation option is specified,
  16039. use DefaultDiskWriter.
  16040. (readFileEntryFromMetaInfoFile): New function.
  16041. (fixFilename): Removed const qualifier.
  16042. (splitMultiFile): Removed const qualifier.
  16043. (setFileEntriesToDownload): New function.
  16044. (isPartialDownloadingMode): New function.
  16045. (finishPartialDownloadingMode): New function.
  16046. (getCompletedLength): New function.
  16047. (getPartialTotalLength): New function.
  16048. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16049. New variable.
  16050. (partialTotalLength): New variable.
  16051. (downloadLength): New variable.
  16052. (totalLength): New variable.
  16053. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16054. Added log.
  16055. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16056. partialTotalLength, downloadLength, totalLength.
  16057. (calculate): Calculate downloadLength and totalLength.
  16058. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16059. * src/main.cc (addCommand): Changed argument signature.
  16060. (main): Added new variable: args. Added new option "torrent-show-files"
  16061. "no-preallocation". Usage is not updated yet.
  16062. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16063. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16064. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16065. Attempt to add the ability to listing file entries in a .torrent file.
  16066. This feature is not yet complete.
  16067. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16068. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16069. (getName): New function.
  16070. * src/TorrentMan.h (getMultiFileEntries): New function.
  16071. (getName): New function.
  16072. * src/main.cc (main): Use above 2 funtion.
  16073. * Release 0.3.2
  16074. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16075. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16076. (detectMessageFlooding): Updated threshold value.
  16077. (checkLongTimePeerChoking): Updated timeout value.
  16078. (getNewPieceAndSendInterest): Added debug log.
  16079. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16080. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16081. (getPeer): Updated.
  16082. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16083. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16084. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16085. is localhost.
  16086. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16087. * src/PendingMessage.cc (processMessage): Not to send piece message
  16088. if peer is not interested in the pieces localhost has.
  16089. * src/Peer.cc (shouldChoke): Updated.
  16090. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16091. * src/Util.cc (isPowerOf): New function.
  16092. * src/Util.h (isPowerOf): New function.
  16093. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16094. whether or not it is power of 2.
  16095. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16096. Added new class SendMessageQueue that includes PendingMessages and
  16097. RequestSlotMan.
  16098. * src/SendMessageQueue.h: New class.
  16099. * src/SendMessageQueue.cc: New class.
  16100. * src/PendingMessage.h: Added new member variable blockIndex and its
  16101. accessors.
  16102. (createRequestMessage): Updated.
  16103. * src/PendingMessage.cc (createRequestMessage): Updated.
  16104. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16105. SendMessageQueue.
  16106. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16107. (receiveMessage): Updated with SendMessageQueue.
  16108. (deletePendingPieceMessage): Removed.
  16109. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16110. (sendInterest): Updated with SendMessageQueue.
  16111. (createRequestPendingMessage): Updated with SendMessageQueue.
  16112. (sendMessages): Updated with SendMessageQueue.
  16113. (onAbort): Updated with SendMessageQueue.
  16114. (keepAlive): Updated with SendMessageQueue.
  16115. (beforeSocketCheck): Updated SendMessageQueue.
  16116. * src/PeerInteractionCommand (sendMessages): Shuffle
  16117. missingBLockIndexes before using it.
  16118. Added its own timeout for peer connection.
  16119. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16120. setter.
  16121. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16122. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16123. Added setTimeout() call.
  16124. (executeInternal): Added setTimeout() call.
  16125. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16126. Added timeout.
  16127. (isTimeoutDetected): Updated.
  16128. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16129. option.
  16130. Added *simple* message flooding checker.
  16131. * src/PeerInteractionCommand.cc (executeInternal):
  16132. Added detectMessageFlooding() call.
  16133. (detectMessageFlooding): New function.
  16134. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16135. (beforeSocketCheck): Added detectMessageFlooding() call.
  16136. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16137. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16138. Removed deletePendingPieceMessage(), getRequestSlot(),
  16139. deleteRequestSlot(), deleteAllRequestSlot().
  16140. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16141. Added checkLongTimePeerChoking() call.
  16142. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16143. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16144. if duplicate == false.
  16145. The parameter "uploaded" and "downloaded" in the tracker request are
  16146. the size since the client sent the "started" event to the tracker.
  16147. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16148. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16149. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16150. getSessionDownloadedSize(), getSessionUploadedSize().
  16151. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16152. getSessionUploadedSize() instead of getDownloadedSize(),
  16153. getUploadedSize().
  16154. * src/PendingMessage.cc (processMessage): Do not send request message
  16155. if the peer is choking the client.
  16156. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16157. less than interval.
  16158. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16159. * configure.in: Added gnutls support. Added several CPP macros.
  16160. * m4/openssl.m4: Added.
  16161. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16162. readData(), peekData(). Added gnutls support.
  16163. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16164. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16165. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16166. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16167. Instead, added a check for whether setup method has executed
  16168. successfully.
  16169. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16170. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16171. * src/Makefile.am: Updated.
  16172. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16173. using whether OpenSSL or gcrypt, depending on the result of configure
  16174. script.
  16175. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16176. messageDigest.h.
  16177. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16178. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16179. Fixed memory leak.
  16180. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16181. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16182. Removed instantiation of TrackerInitCommand. Instead,
  16183. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16184. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16185. ENABLE_SSL.
  16186. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16187. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16188. If a piece is already acquired by another command, delete the request
  16189. slots for the piece.
  16190. * src/TrackerUpdateCommand.cc (execute):
  16191. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16192. Added a check whether peer list is null.
  16193. Fixed the bug that causes sending completed event to the tracker
  16194. several times.
  16195. * src/TrackerInitCommand.cc (execute):
  16196. Fixed the bug that causes sending completed event to the tracker
  16197. several times.
  16198. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16199. by using messageDigest.h.
  16200. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16201. * PeerConnection.cc: Replaced log message "keep-alive" with
  16202. "keep alive".
  16203. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16204. localhost long time.
  16205. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16206. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16207. at most 100 failure entry from the list. If with duplicate = false,
  16208. MAX_PEER_LIST is not checked.
  16209. * PeerListenCommand.cc: Fixed the argument order of log message.
  16210. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16211. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16212. Added warn().
  16213. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16214. Implemented warn().
  16215. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16216. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16217. * Request.h: Added AFTER_COMPLETED event.
  16218. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16219. instead of downloaded size and progress(%) after download completes.
  16220. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16221. message to the peer if it is interested in what localhost has
  16222. downloaded.
  16223. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16224. destination instead of just renaming it.
  16225. * TorrentMan.cc: Added deleteTempFile().
  16226. * PeerAbstractCommand.cc: do not stop execution after download
  16227. completes. This makes localhost a seeder.
  16228. * Util.{h,cc}: Added fileCopy().
  16229. * PeerListenCommand.cc: do not stop execution after download completes.
  16230. This makes localhost a seeder.
  16231. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16232. Added TorrentMan::deleteTempFile() to torrentHandler.
  16233. Initialized the variable dir as ".".
  16234. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16235. Deleted renameSingleFile().
  16236. Added copySingleFile(), deleteTempFile().
  16237. * DownloadEngine.h: Added virtual function afterEachIteration().
  16238. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16239. in onEndOfRun() to afterEachIteration().
  16240. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16241. true.
  16242. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16243. In rangedFileCopy(), added try-catch block to properly close file
  16244. descriptors.
  16245. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16246. Added afterEachIteration(), isFilenameFixed().
  16247. * Peer.cc: Changed choking strategy.
  16248. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16249. * TrackerInitCommand.cc: Send completed event only once.
  16250. * DownloadEngine.cc: Added a call to afterEachIteration().
  16251. * TrackerUpdateCommand.cc: Do not stop execution after download
  16252. completes.
  16253. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16254. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16255. received from a tracker.
  16256. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16257. Decreased the number of failure peers to delete to 0(just comment out
  16258. the line).
  16259. * Release 0.3.1
  16260. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16261. * PeerInteractionCommand.cc: added a call to
  16262. TorrentMan::unadvertisePiece in Destructor.
  16263. * PeerInteractionCommand.cc: make have message sent immediately
  16264. if the size of pending message queue is zero.
  16265. * TorrentMan.cc: set the maximum size of peer list to 250.
  16266. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16267. to deque.
  16268. * Util.cc: fixed rangedFileCopy.
  16269. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16270. to Constructor. Also, moved digest cleanup to Destructor.
  16271. * MetaFileUtil.cc: fixed memory leak
  16272. * replaced std::vector with std::deque.
  16273. * AbstractCommand.cc: casted timeout value to long long int.
  16274. * ChunkedEncoding.cc: fixed memory leak.
  16275. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16276. * SleepCommand.cc: casted timeout value to long long int.
  16277. * Data.cc: fixed memory leak.
  16278. * Data.cc: fixed toLLInt().
  16279. * BitfieldMan.cc: fixed memory leak.
  16280. * TorrentMan.cc: initialized storeDir to ".".
  16281. * TorrentMan.cc: fixed memory leak.
  16282. * TorrentMan.cc: corrected file paths of splitted files.
  16283. * PeerAbstractCommand.cc: casted timeout to long long int.
  16284. * main.cc: added delete(req) and delete(te->diskWriter).
  16285. * RequestSlot.cc: casted timeout value to long long int.
  16286. * Request.cc: fixed memory leak.
  16287. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16288. have the piece.
  16289. * Peer.{h,cc}: added hasPiece(int index).
  16290. * main.cc: corrected addCommand.
  16291. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16292. * BitTorrent protocol support added.
  16293. * Release 0.3.0
  16294. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16295. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16296. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16297. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16298. decoding did not work properly.
  16299. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16300. * DownloadEngine.h: included sys/time.h
  16301. * DownloadEngine.cc: remove sys/time.h
  16302. * Makefile.am (SUBDIRS): Add intl.
  16303. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16304. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16305. * main.cc: correct help message for --http-auth-scheme.
  16306. * main.cc: changed e-mail address for bug reports.
  16307. * ja.po: added japanese translation.
  16308. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16309. * SimpleLogger.cc: flush log file instead of stdout.
  16310. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16311. * main.cc: Fixed command-line option: max-tries
  16312. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16313. does not equal to seg.sp.
  16314. * DownloadCommand.cc: If EOF is got from the server and the total size
  16315. of file is not zero, then throw DlRetryEx.
  16316. * main.cc: Set the minium value of min-segment-size to 1024.
  16317. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16318. fails because of a regression since 0.2.0 release.
  16319. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16320. * HttpConnection.cc:
  16321. * common.h: defined the user agent name as macro
  16322. * DownloadEngine.{h, cc}:
  16323. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16324. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16325. * main.cc: Download complete/abort message is now generated by main.
  16326. * Makefile.am (SUBDIRS): Add m4.
  16327. (ACLOCAL_AMFLAGS): New variable.
  16328. (EXTRA_DIST): New variable.
  16329. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16330. * gettext: added gettext functionality
  16331. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16332. * AbstractCommand.cc:
  16333. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16334. unregister its cuid from SegmentMan.
  16335. * DownloadEngine.cc: .aria2 file was written when a downloading
  16336. failed with errors.
  16337. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16338. Added "User-Agent" header to CONNECT proxy request.
  16339. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16340. properly.
  16341. * Logger.h:
  16342. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16343. * ChunkedEncoding.cc: Added #include directive for strings.h
  16344. * Release 0.2.1
  16345. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16346. * Util.{h,cc}: added startsWith().
  16347. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16348. Util::endsWith().
  16349. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16350. * common.h: added #include directive of limit.h.
  16351. * DownloadEngine.cc: added #include directive of sys/time.h and
  16352. algorithm.
  16353. * Exception.h: added #include directive of stdio.h.
  16354. * AbstractCommand.h: added #include directive of sys/time.h.
  16355. * DownloadCommand.h: added #include directive of sys/time.h.
  16356. * *.h: added #include directive of common.h to all base classes.
  16357. subclasses' one was removed.
  16358. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16359. does not define these macros.
  16360. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16361. * Release 0.2.0
  16362. * main.cc:
  16363. * HttpInitiateConnectionCommand.{h,cc}:
  16364. * prefs.h:
  16365. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16366. We can now use GET command in http proxy.
  16367. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16368. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16369. that splits slowest segment of SegmentMan::commands vector.
  16370. This is the default split algorithm of aria2.
  16371. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16372. that splits first segment of SegmentMan::commands vector.
  16373. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16374. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16375. * Segment.h:
  16376. * SegmentMan.cc: Added speed field to Segment.h
  16377. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16378. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16379. * message.h: Change file size related %d to %lld.
  16380. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16381. * FtpInitiateConnectionCommand.{h,cc}:
  16382. * FtpNegotiationCommand.{h,cc}:
  16383. * FtpDownloadCommand.{h,cc}:
  16384. * FtpConnection.{h,cc}: Added FTP support
  16385. * SimpleLogger.cc: Log message now includes time information.
  16386. * main.cc: The value of --http-auth-scheme option is chagned from
  16387. 'BASIC' to 'basic'
  16388. * main.cc: Added --timeout command-line option.
  16389. * main.cc: Added --min-segment-size command-line option.
  16390. * main.cc: Added --max-retries command-line option.
  16391. * prefs.h: option string constants are now defined in prefs.h
  16392. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16393. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16394. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16395. with version 0.1.0's one.
  16396. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16397. * configure.in: Added --enable-ssl option to configure script.
  16398. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16399. cannot permit absoluteURI as Request-URI.
  16400. * HttpConnection.cc: Added Referer support.
  16401. * main.cc: Added referer command-line option.
  16402. * main.cc: Added rety-wait command-line option.
  16403. * Exception.h: Fixed formating bug in Exception::setMsg()
  16404. * SocketCore.{h,cc}:
  16405. * Socket.{h, cc}:
  16406. * Request.cc:
  16407. * InitiateConnectionCommandFactory.cc:
  16408. * HttpRequestCommand.cc: Added HTTPS support.
  16409. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16410. for SocketCore.
  16411. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16412. size is wrong
  16413. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16414. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16415. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16416. * Release 0.1.0