ChangeLog 611 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557
  1. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added README.txt for xmlrpc directory.
  3. * doc/Makefile.am
  4. * doc/xmlrpc/README.txt
  5. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Bump up version number to 1.6.0.
  7. * configure.ac
  8. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Added XML-RPC client scripts written in ruby.
  10. * doc/Makefile.am
  11. * doc/xmlrpc/aria2mon
  12. * doc/xmlrpc/aria2rpc
  13. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Added support for IPv6 literal address in URI. Now aria2 can
  15. handle URI such as http://[::1]/
  16. * src/HttpRequest.cc
  17. * src/HttpRequest.h
  18. * src/Request.cc
  19. * src/Request.h
  20. * test/HttpRequestTest.cc
  21. * test/OptionHandlerTest.cc
  22. * test/RequestTest.cc
  23. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Fixed the bug that HTTP request header for XML-RPC request is not
  25. parsed properly.
  26. * src/HttpHeader.cc
  27. * src/HttpHeaderProcessor.cc
  28. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Fixed the bug that XML-RPC authorization might be done before HTTP
  30. request header is fully received.
  31. * src/HttpServerCommand.cc
  32. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Documented --xml-rpc-listen-all option in man page.
  34. * doc/aria2c.1.txt
  35. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Added --xml-rpc-listen-all option. If true is given to this
  37. option, aria2 listens incoming XML-RPC requests on all network
  38. interfaces. If false is given, listens only on local loopback
  39. interface. The default value is false.
  40. * src/HttpListenCommand.cc
  41. * src/OptionHandlerFactory.cc
  42. * src/SocketCore.cc
  43. * src/SocketCore.h
  44. * src/prefs.cc
  45. * src/prefs.h
  46. * src/usage_text.h
  47. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  48. * Release 1.5.2
  49. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Updated Ukrainian and Russian translations. Thanks to all
  51. translators.
  52. * po/ru.po
  53. * po/uk.po
  54. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Bump up version number to 1.5.2
  56. * configure.ac
  57. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  58. Get comment, comment.utf-8, created by and creation date from
  59. .torrent file and print them in -S output.
  60. * src/bittorrent_helper.cc
  61. * src/bittorrent_helper.h
  62. * test/BittorrentHelperTest.cc
  63. * test/test.torrent
  64. * test/utf8.torrent
  65. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Show exact file size along in -S option output.
  67. * src/Util.h
  68. * src/bittorrent_helper.cc
  69. * test/UtilTest.cc
  70. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  71. Avoided unnecessary memory allocation in
  72. BitfieldMan::getCompletedLength().
  73. * src/BitfieldMan.cc
  74. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Fixed the bug that download fails if
  76. SocketCore::establishConnection() throws exception and aria2
  77. doesn't try another address.
  78. * src/AbstractCommand.cc
  79. * src/InitiateConnectionCommand.cc
  80. * src/message.h
  81. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  83. detected properly.
  84. * m4/sqlite3.m4
  85. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  87. because it causes compile error if PARAMS macro is defined.
  88. * src/XmlRpcElements.cc
  89. * src/XmlRpcElements.h
  90. * src/XmlRpcRequestParserStateImpl.cc
  91. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. * Release 1.5.1
  93. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Bump up version number to 1.5.1
  95. * configure.ac
  96. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Fixed compile error without BitTorrent support
  98. * src/DefaultBtProgressInfoFile.cc
  99. * src/DownloadEngine.cc
  100. * src/DownloadEngine.h
  101. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Added missing '=' in Download Results
  103. * src/RequestGroupMan.cc
  104. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Fixed compiler warning
  106. * src/DefaultBtProgressInfoFile.cc
  107. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Fixed compiler warning on 32bit systems.
  109. * src/DownloadCommand.cc
  110. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Call flush from ServerStatMan::save()
  112. * src/ServerStatMan.cc
  113. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. Check stream status after file is opened.
  115. * src/CookieStorage.cc
  116. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  117. Rewritten Signature::save()
  118. * src/Signature.cc
  119. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Rewritten RequestGroupMan::saveServerStat()
  121. * src/RequestGroupMan.cc
  122. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Rewritten stream error handling
  124. * src/DHTAutoSaveCommand.cc
  125. * src/DHTRoutingTableDeserializer.cc
  126. * src/DHTRoutingTableSerializer.cc
  127. * src/DHTSetup.cc
  128. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  129. Check stream status after file is opened.
  130. * src/DefaultBtProgressInfoFile.cc
  131. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  132. Rewritten stream error handling
  133. * src/DefaultBtProgressInfoFile.cc
  134. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  135. Make sure that stream is closed before renaming file. Unit test
  136. fails on mingw32 in the previous implementation.
  137. * src/CookieStorage.cc
  138. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Fixed the unit test error without sqlite3
  140. * test/CookieStorageTest.cc
  141. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Fixed the undefined reference error
  143. * test/HttpResponseTest.cc
  144. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. * Release 1.5.0
  146. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  148. Ukrainian translations. Thanks to all translators.
  149. * po/ru.po
  150. * po/it.po
  151. * po/da.po
  152. * po/bg.po
  153. * po/ja.po
  154. * po/uk.po
  155. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Added missing src/Logger.cc
  157. * src/Logger.cc
  158. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Rewritten Logger to avoiding constly virtual call.
  160. * src/LogFactory.cc
  161. * src/LogFactory.h
  162. * src/Logger.h
  163. * src/Makefile.am
  164. * src/Makefile.in
  165. * src/NullLogger.h: Removed.
  166. * src/SimpleLogger.cc
  167. * src/SimpleLogger.h
  168. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Updated doc
  170. * src/main.cc
  171. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Updated debug log message
  173. * src/AbstractCommand.cc
  174. * src/message.h
  175. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Avoid to create zombie process when commands specified in
  177. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  178. X and NetBSD.
  179. * src/main.cc
  180. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Fixed typo
  182. * src/usage_text.h
  183. * doc/aria2c.1.txt
  184. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Documented 'errorCode' of tellStatus in man page.
  186. * doc/aria2c.1.txt
  187. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  189. This key is only available for stopped/completed downloads and its
  190. value is the error code defined in EXIT STATUS in man page.
  191. * src/XmlRpcMethodImpl.cc
  192. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. Fixed the bug that session download length is not updated when
  194. PeerStat is not fastest one.
  195. * src/SegmentMan.cc
  196. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Updated doc.
  198. * doc/aria2c.1.txt
  199. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Updated doc.
  201. * src/AbstractCommand.cc
  202. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Handle the case when DownloadContext has no FileEntry.
  204. * src/XmlRpcMethodImpl.cc
  205. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Handle the situation where struct option.name is char *.
  207. * configure.ac
  208. * src/OptionParser.cc
  209. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Code cleanup
  211. * src/AbstractCommand.cc
  212. * src/DownloadCommand.cc
  213. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Use option of each download to create AuthConfig instead of global
  215. option.
  216. * src/AuthConfigFactory.cc
  217. * src/AuthConfigFactory.h
  218. * src/FtpNegotiationCommand.cc
  219. * src/HttpRequest.cc
  220. * src/HttpRequest.h
  221. * src/HttpRequestCommand.cc
  222. * src/HttpSkipResponseCommand.cc
  223. * src/MultiUrlRequestInfo.cc
  224. * test/AuthConfigFactoryTest.cc
  225. * test/FtpConnectionTest.cc
  226. * test/HttpRequestTest.cc
  227. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Don't call prepareForRetry(1) if all segments are ignored in
  229. SegmentMan.
  230. * src/AbstractCommand.cc
  231. * src/BitfieldMan.cc
  232. * src/BitfieldMan.h
  233. * src/SegmentMan.cc
  234. * src/SegmentMan.h
  235. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  236. Removed FileEntry::getAssociatedUris()
  237. * src/FileEntry.h
  238. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Updated doc: TODO1.5 -> TODO
  240. * src/FileEntry.cc
  241. * src/HttpResponseCommand.cc
  242. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Added assertion fileEntries.size() == 1 if BitTorrent is not
  244. involved.
  245. * src/RequestGroup.cc
  246. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Eliminated duplicated filterBitfield initialization code.
  248. * src/BitfieldMan.cc
  249. * src/BitfieldMan.h
  250. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  252. relatively naive approach, though). For DownloadFailureException,
  253. we handle the case when req is null properly.
  254. * src/AbstractCommand.cc
  255. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Added function returning suffix of control file to
  257. DefaultBtProgressInfoFile.
  258. * src/DefaultBtProgressInfoFile.cc
  259. * src/DefaultBtProgressInfoFile.h
  260. * src/RequestGroup.cc
  261. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. Documented getVersion in man page.
  263. * doc/aria2c.1.txt
  264. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Documented type of offset and num for tellWaiting xml-rpc method.
  266. * doc/aria2c.1.txt
  267. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Implemented getVersion xml-rpc method. This method returns struct
  269. which has 2 key-value pairs: "version" key is associated to the
  270. version of aria2, such as "1.5.0". "enabledFeatures" key is
  271. associated to the list of enabled features, such as "Async DNS",
  272. "BitTorrent".
  273. * src/FeatureConfig.h
  274. * src/XmlRpcMethodFactory.cc
  275. * src/XmlRpcMethodImpl.cc
  276. * src/XmlRpcMethodImpl.h
  277. * test/XmlRpcMethodTest.cc
  278. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Removed TLS1.1 protocol support when aria2 is built with gnutls
  280. for compatibility issue.
  281. * src/SocketCore.cc
  282. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Fixed compile error with openSSL
  284. * src/bittorrent_helper.cc
  285. * src/messageDigest.h
  286. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Removed bad code: setting certificate type priority to key
  288. exchange priority.
  289. * src/SocketCore.cc
  290. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Disconnect seeder if client is also in seed state.
  292. * src/BtBitfieldMessage.cc
  293. * src/BtHaveAllMessage.cc
  294. * src/BtHaveMessage.cc
  295. * src/message.h
  296. * test/BtBitfieldMessageTest.cc
  297. * test/BtHaveAllMessageTest.cc
  298. * test/BtHaveMessageTest.cc
  299. * test/MockPieceStorage.h
  300. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Keep CreateRequestCommand in queue when no segment is available so
  302. that they can pick up pieces which slow BitTorrent peers are
  303. downloading.
  304. * src/AbstractCommand.cc
  305. * src/CreateRequestCommand.cc
  306. * src/CreateRequestCommand.h
  307. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  308. --bt-stop-timeout now only checks download speed.
  309. * src/BtStopDownloadCommand.cc
  310. * src/BtStopDownloadCommand.h
  311. * src/BtSetup.cc
  312. * src/usage_text.h
  313. * doc/aria2c.1.txt
  314. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  315. Fixed compile error regarding BUFSIZE.
  316. * src/DownloadCommand.cc
  317. * src/DownloadCommand.h
  318. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Documented tellWaiting xml-rpc method in man page.
  320. * doc/aria2c.1.txt
  321. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Bump up version number to 1.5.0
  323. * configure.ac
  324. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Removed resolved TODO1.5
  326. * src/AbstractCommand.cc
  327. * src/DownloadCommand.cc
  328. * src/RequestGroup.cc
  329. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  330. Release pooled and in-flight Request objectsand URIResult objects
  331. in FileEntry after download completed.
  332. * src/DownloadContext.cc
  333. * src/DownloadContext.h
  334. * src/FileEntry.cc
  335. * src/FileEntry.h
  336. * src/RequestGroup.cc
  337. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. Set manual and source attribute in aria2c.1.txt
  339. * doc/aria2c.1.txt
  340. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Documented that the default value of --use-head is 'false' in man
  342. page.
  343. * doc/aria2c.1.txt
  344. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  345. Added bt-stop-timeout option to -i list.
  346. * doc/aria2c.1.txt
  347. * src/download_helper.cc
  348. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Fixed typo
  350. * doc/aria2c.1.txt
  351. * src/usage_text.h
  352. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Removed peer-id-prefix option from -i list.
  354. * doc/aria2c.1.txt
  355. * src/download_helper.cc
  356. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Fixed typo
  358. * doc/aria2c.1.txt
  359. * src/usage_text.h
  360. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Documented --bt-stop-timeout option in man page.
  362. * doc/aria2c.1.txt
  363. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  364. Updated README regarding multi-file torrent web-seeding.
  365. * doc/README.txt
  366. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Updated man page regarding multi-file torrent web-seeding.
  368. * doc/aria2c.1.txt
  369. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  370. Updated doc
  371. * src/version_usage.cc
  372. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Winsock select() doesn't work if no socket is in FD_SET. To
  374. overcome this problem, a dummy socket is added to FD_SET and it is
  375. given to select().
  376. * src/SelectEventPoll.cc
  377. * src/SelectEventPoll.h
  378. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Disabled --use-head option by default because --use-head=true
  380. causes problems on some web sites.
  381. * src/OptionHandlerFactory.cc
  382. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Print URL List in -S option for torrent.
  384. * src/bittorrent_helper.cc
  385. * src/bittorrent_helper.h
  386. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Allocate buffer in ctor of DownloadCommand.
  388. * src/DownloadCommand.cc
  389. * src/DownloadCommand.h
  390. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Removed DiskAdaptor::onDownloadComplete()
  392. * src/DirectDiskAdaptor.cc
  393. * src/DirectDiskAdaptor.h
  394. * src/DiskAdaptor.h
  395. * src/MultiDiskAdaptor.cc
  396. * src/MultiDiskAdaptor.h
  397. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Committed missing BtStopDownloadCommand.{cc,h}
  399. * src/BtStopDownloadCommand.cc
  400. * src/BtStopDownloadCommand.h
  401. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  403. download if the download speed is 0 and the number of seeder is 0
  404. in consecutive SEC seconds. By default, this function is disabled.
  405. * src/BtSetup.cc
  406. * src/Makefile.am
  407. * src/OptionHandlerFactory.cc
  408. * src/prefs.cc
  409. * src/prefs.h
  410. * src/usage_text.h
  411. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Removed the call to DiskAdaptor::onDownloadComplete() from
  413. BtCheckIntegrityEntry and DefaultPieceStorage.
  414. * src/BtCheckIntegrityEntry.cc
  415. * src/DefaultPieceStorage.cc
  416. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  417. Commented out throw statements when number of piece is 0 to
  418. download 0 length torrent.
  419. * src/bittorrent_helper.cc
  420. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Call RequestGroup::createNextCommandWithAdj() from
  422. BtFileAllocationEntry if at least one FileEntry has URI. The
  423. static function hasAssociatedUri in RequestGroup.cc is renamed as
  424. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  425. * src/BtFileAllocationEntry.cc
  426. * src/FileEntry.h
  427. * src/RequestGroup.cc
  428. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Generate peer ID after SimpleRandomizer is initialized.
  430. * src/main.cc
  431. * src/option_processing.cc
  432. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Removed unused method argument.
  434. * src/CreateRequestCommand.cc
  435. * src/RequestGroup.cc
  436. * src/RequestGroup.h
  437. * src/RequestGroupMan.cc
  438. * src/TrackerWatcherCommand.cc
  439. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Made URI reusing function work.
  441. * src/CreateRequestCommand.cc
  442. * src/FileEntry.cc
  443. * src/FileEntry.h
  444. * test/FileEntryTest.cc
  445. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Add formerly fastest PeerStat's sessionDownloadLength to new
  447. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  448. bytes in a session.
  449. * src/PeerStat.cc
  450. * src/SegmentMan.cc
  451. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  452. If pipelining is enabled, we can always pool socket.
  453. * src/HttpDownloadCommand.cc
  454. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. In a single file download, file size becomes known just after
  456. downloading, set total length to FileEntry object when download
  457. completed.
  458. * src/DownloadCommand.cc
  459. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Use std::vector::reserve() for fileEntries and pieceHashes in
  461. bittorrent_helper
  462. * src/bittorrent_helper.cc
  463. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  465. Removed hidden option PREF_RESET_URI.
  466. * src/AbstractCommand.cc
  467. * src/OptionHandlerFactory.cc
  468. * src/prefs.cc
  469. * src/prefs.h
  470. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Removed unused variable/function.
  472. * src/PeerStat.h
  473. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Show first URL in Download Results if file path is not available.
  475. * src/FileEntry.h
  476. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  477. Throw exception if file path doesn't exist in FTP URL.
  478. * src/InitiateConnectionCommandFactory.cc
  479. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  480. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  481. * src/BitfieldMan.cc
  482. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  484. of PeerStat in SegmentMan. peerStats is used for calculating
  485. download speed. Therefore all active PeerStats should be in
  486. there. Another one is _fastestPeerStats and it only contains
  487. fastest PeerStat for each hostname/protocol pair. They are used
  488. for updating ServerStat.
  489. * src/DownloadCommand.cc
  490. * src/Request.h
  491. * src/RequestGroupMan.cc
  492. * src/SegmentMan.cc
  493. * src/SegmentMan.h
  494. * test/SegmentManTest.cc
  495. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Try all available addresses returned by DNS until it gets
  497. connected in HTTP(S)/FTP download
  498. * src/AbstractCommand.cc
  499. * src/AbstractCommand.h
  500. * src/AbstractProxyRequestCommand.cc
  501. * src/AbstractProxyRequestCommand.h
  502. * src/DNSCache.h
  503. * src/DownloadEngine.cc
  504. * src/DownloadEngine.h
  505. * src/FtpInitiateConnectionCommand.cc
  506. * src/FtpInitiateConnectionCommand.h
  507. * src/FtpNegotiationCommand.cc
  508. * src/FtpNegotiationCommand.h
  509. * src/HttpInitiateConnectionCommand.cc
  510. * src/HttpInitiateConnectionCommand.h
  511. * src/HttpRequestCommand.cc
  512. * src/HttpRequestCommand.h
  513. * src/InitiateConnectionCommand.cc
  514. * src/InitiateConnectionCommand.h
  515. * test/DNSCacheTest.cc
  516. * test/Makefile.am
  517. * test/SimpleDNSCacheTest.cc
  518. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Updated doc
  520. * src/download_helper.cc
  521. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Refactored fieldMan ctor.
  523. * src/BitfieldMan.cc
  524. * src/BitfieldMan.h
  525. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  526. Don't print "No files to download." message if -S is given.
  527. * src/main.cc
  528. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Set referer and method to newly created Request object.
  530. * src/CreateRequestCommand.cc
  531. * src/FileEntry.cc
  532. * src/FileEntry.h
  533. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Removed ctor of AbstractCommand which doesn't take FileEntry.
  535. * src/AbstractCommand.cc
  536. * src/AbstractCommand.h
  537. * src/CreateRequestCommand.cc
  538. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Get proxy download working
  540. * src/AbstractProxyRequestCommand.cc
  541. * src/AbstractProxyRequestCommand.h
  542. * src/AbstractProxyResponseCommand.cc
  543. * src/AbstractProxyResponseCommand.h
  544. * src/FtpInitiateConnectionCommand.cc
  545. * src/FtpTunnelRequestCommand.cc
  546. * src/FtpTunnelRequestCommand.h
  547. * src/FtpTunnelResponseCommand.cc
  548. * src/FtpTunnelResponseCommand.h
  549. * src/HttpInitiateConnectionCommand.cc
  550. * src/HttpProxyRequestCommand.cc
  551. * src/HttpProxyRequestCommand.h
  552. * src/HttpProxyResponseCommand.cc
  553. * src/HttpProxyResponseCommand.h
  554. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Use SegmentMan::getSegment(cuid) for single file download.
  556. * src/AbstractCommand.cc
  557. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Fixed bufSize calculation
  559. * src/DownloadCommand.cc
  560. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  561. Don't append "/" if base URI ends with "/".
  562. * src/bittorrent_helper.cc
  563. * test/url-list-multiFile.torrent
  564. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. HTTP pipelining is now working. Fixed Segmention fault in
  566. BitfieldMan's copy ctor.
  567. * src/AbstractCommand.cc
  568. * src/BitfieldMan.cc
  569. * src/BitfieldMan.h
  570. * src/DownloadCommand.cc
  571. * src/HttpDownloadCommand.cc
  572. * src/HttpRequest.cc
  573. * src/SegmentMan.cc
  574. * src/SegmentMan.h
  575. * test/BitfieldManTest.cc
  576. * test/SegmentManTest.cc
  577. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Removed ServerHost. Same functionality is implemented using
  579. FileEntry's in-flight Request objects.
  580. * src/AbstractCommand.cc
  581. * src/BtDependency.cc
  582. * src/CreateRequestCommand.cc
  583. * src/FileEntry.cc
  584. * src/FileEntry.h
  585. * src/FtpNegotiationCommand.cc
  586. * src/HttpResponseCommand.cc
  587. * src/Makefile.am
  588. * src/Metalink2RequestGroup.cc
  589. * src/RequestGroup.cc
  590. * src/RequestGroup.h
  591. * src/ServerHost.cc: Removed
  592. * src/ServerHost.h: Removed
  593. * test/BtDependencyTest.cc
  594. * test/FileEntryTest.cc
  595. * test/RequestGroupTest.cc
  596. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Rewritten PeerStat handling. In the previous implementation,
  598. faster command tries to find slower command. In this new
  599. implementation, slower command tries to find faster command.
  600. PeerStat is now created in each HTTP/FTP request to get download
  601. rate correctly. If the download range is small, the download rate
  602. tends to small and this will occur at the later stage of download.
  603. * src/AbstractCommand.cc
  604. * src/DownloadCommand.cc
  605. * src/FileEntry.cc
  606. * src/FileEntry.h
  607. * src/Request.cc
  608. * src/Request.h
  609. * src/RequestGroup.h
  610. * src/RequestGroupMan.cc
  611. * src/SegmentMan.cc
  612. * src/SegmentMan.h
  613. * test/SegmentManTest.cc
  614. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  615. Removed _uris from RequestGroup. All functions that refer to _uris
  616. were moved to FileEntry. Exit status code are now defined in
  617. DownloadResultCode.h.
  618. * src/AbstractCommand.cc
  619. * src/AdaptiveURISelector.cc
  620. * src/AdaptiveURISelector.h
  621. * src/AutoSaveCommand.cc
  622. * src/BtPostDownloadHandler.cc
  623. * src/CheckIntegrityDispatcherCommand.cc
  624. * src/CookieStorage.cc
  625. * src/DHTAutoSaveCommand.cc
  626. * src/DHTBucketRefreshCommand.cc
  627. * src/DHTEntryPointNameResolveCommand.cc
  628. * src/DHTInteractionCommand.cc
  629. * src/DHTPeerAnnounceCommand.cc
  630. * src/DHTTokenUpdateCommand.cc
  631. * src/DlAbortEx.h
  632. * src/DlRetryEx.h
  633. * src/DownloadCommand.cc
  634. * src/DownloadContext.h
  635. * src/DownloadFailureException.h
  636. * src/DownloadResult.h
  637. * src/DownloadResultCode.h
  638. * src/FeedbackURISelector.cc
  639. * src/FeedbackURISelector.h
  640. * src/FileEntry.cc
  641. * src/FileEntry.h
  642. * src/FtpNegotiationCommand.cc
  643. * src/HttpListenCommand.cc
  644. * src/HttpResponseCommand.cc
  645. * src/HttpServerResponseCommand.cc
  646. * src/HttpSkipResponseCommand.cc
  647. * src/InOrderURISelector.cc
  648. * src/InOrderURISelector.h
  649. * src/Makefile.am
  650. * src/Makefile.in
  651. * src/Metalink2RequestGroup.cc
  652. * src/MultiUrlRequestInfo.cc
  653. * src/MultiUrlRequestInfo.h
  654. * src/OptionHandlerFactory.cc
  655. * src/PeerListenCommand.cc
  656. * src/RecoverableException.h
  657. * src/RequestGroup.cc
  658. * src/RequestGroup.h
  659. * src/RequestGroupMan.cc
  660. * src/RequestGroupMan.h
  661. * src/TimedHaltCommand.cc
  662. * src/TrackerWatcherCommand.cc
  663. * src/URIResult.cc
  664. * src/URIResult.h
  665. * src/URISelector.h
  666. * src/XmlRpcMethodImpl.cc
  667. * src/bittorrent_helper.cc
  668. * src/bittorrent_helper.h
  669. * src/download_helper.cc
  670. * src/main.cc
  671. * src/option_processing.cc
  672. * test/BtDependencyTest.cc
  673. * test/BtPostDownloadHandlerTest.cc
  674. * test/CookieStorageTest.cc
  675. * test/DefaultBtMessageDispatcherTest.cc
  676. * test/DownloadHandlerFactoryTest.cc
  677. * test/DownloadHelperTest.cc
  678. * test/FeedbackURISelectorTest.cc
  679. * test/FileEntryTest.cc
  680. * test/InOrderURISelectorTest.cc
  681. * test/Metalink2RequestGroupTest.cc
  682. * test/MetalinkPostDownloadHandlerTest.cc
  683. * test/RequestGroupManTest.cc
  684. * test/RequestGroupTest.cc
  685. * test/XmlRpcMethodTest.cc
  686. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Removed MockBtContext.h
  688. * test/Makefile.am
  689. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Removed _currentRequest from StreamCheckIntegrityEntry and
  691. StreamFileAllocationEntry.
  692. * src/AbstractCommand.cc
  693. * src/HttpResponseCommand.cc
  694. * src/RequestGroup.cc
  695. * src/StreamCheckIntegrityEntry.cc
  696. * src/StreamCheckIntegrityEntry.h
  697. * src/StreamFileAllocationEntry.cc
  698. * src/StreamFileAllocationEntry.h
  699. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  700. Rewritten DownloadContext and removed SingleFileDownloadContext
  701. and BtContext and its derived classes. BitTorrent specific
  702. attributes are now set by DownloadContext::setAttribute() with key
  703. bittorrent::BITTORRENT.
  704. * src/AbstractBtMessage.cc
  705. * src/AbstractBtMessage.h
  706. * src/AbstractCommand.cc
  707. * src/AbstractCommand.h
  708. * src/AbstractProxyRequestCommand.cc
  709. * src/AbstractProxyResponseCommand.cc
  710. * src/ActivePeerConnectionCommand.cc
  711. * src/ActivePeerConnectionCommand.h
  712. * src/AnnounceList.cc
  713. * src/BtCheckIntegrityEntry.cc
  714. * src/BtConstants.h
  715. * src/BtContext.h: Removed
  716. * src/BtDependency.cc
  717. * src/BtExtendedMessage.cc
  718. * src/BtPieceMessage.cc
  719. * src/BtPieceMessage.h
  720. * src/BtPostDownloadHandler.cc
  721. * src/BtRegistry.cc
  722. * src/BtRegistry.h
  723. * src/BtSetup.cc
  724. * src/CheckIntegrityCommand.cc
  725. * src/CheckIntegrityEntry.cc
  726. * src/ChecksumCheckIntegrityEntry.cc
  727. * src/ConsoleStatCalc.cc
  728. * src/ContentTypeRequestGroupCriteria.cc
  729. * src/DHTGetPeersCommand.cc
  730. * src/DHTGetPeersCommand.h
  731. * src/DHTPeerLookupTask.cc
  732. * src/DHTPeerLookupTask.h
  733. * src/DHTTaskFactory.h
  734. * src/DHTTaskFactoryImpl.cc
  735. * src/DHTTaskFactoryImpl.h
  736. * src/DefaultBtAnnounce.cc
  737. * src/DefaultBtAnnounce.h
  738. * src/DefaultBtContext.cc: Removed
  739. * src/DefaultBtContext.h: Removed
  740. * src/DefaultBtInteractive.cc
  741. * src/DefaultBtInteractive.h
  742. * src/DefaultBtMessageDispatcher.cc
  743. * src/DefaultBtMessageDispatcher.h
  744. * src/DefaultBtMessageFactory.cc
  745. * src/DefaultBtMessageFactory.h
  746. * src/DefaultBtMessageReceiver.cc
  747. * src/DefaultBtMessageReceiver.h
  748. * src/DefaultBtProgressInfoFile.cc
  749. * src/DefaultBtRequestFactory.cc
  750. * src/DefaultBtRequestFactory.h
  751. * src/DefaultExtensionMessageFactory.cc
  752. * src/DefaultExtensionMessageFactory.h
  753. * src/DefaultPeerStorage.cc
  754. * src/DefaultPeerStorage.h
  755. * src/DefaultPieceStorage.cc
  756. * src/DefaultSegmentManFactory.cc
  757. * src/DiskAdaptor.cc
  758. * src/DiskAdaptor.h
  759. * src/DownloadContext.cc
  760. * src/DownloadContext.h
  761. * src/DownloadEngine.cc
  762. * src/DownloadEngineFactory.cc
  763. * src/DownloadHandler.cc
  764. * src/DownloadResult.h
  765. * src/FileAllocationCommand.cc
  766. * src/FileAllocationDispatcherCommand.cc
  767. * src/FileAllocationEntry.cc
  768. * src/FileEntry.h
  769. * src/FillRequestGroupCommand.cc
  770. * src/FtpDownloadCommand.cc
  771. * src/FtpFinishDownloadCommand.cc
  772. * src/FtpInitiateConnectionCommand.cc
  773. * src/FtpNegotiationCommand.cc
  774. * src/FtpTunnelRequestCommand.cc
  775. * src/FtpTunnelResponseCommand.cc
  776. * src/HandshakeExtensionMessage.cc
  777. * src/HandshakeExtensionMessage.h
  778. * src/HaveEraseCommand.cc
  779. * src/HttpDownloadCommand.cc
  780. * src/HttpInitiateConnectionCommand.cc
  781. * src/HttpProxyRequestCommand.cc
  782. * src/HttpProxyResponseCommand.cc
  783. * src/HttpRequest.cc
  784. * src/HttpRequest.h
  785. * src/HttpRequestCommand.cc
  786. * src/HttpResponseCommand.cc
  787. * src/HttpServerBodyCommand.cc
  788. * src/HttpServerCommand.cc
  789. * src/HttpSkipResponseCommand.cc
  790. * src/InitiateConnectionCommandFactory.cc
  791. * src/InitiatorMSEHandshakeCommand.cc
  792. * src/InitiatorMSEHandshakeCommand.h
  793. * src/IteratableChecksumValidator.cc
  794. * src/IteratableChecksumValidator.h
  795. * src/IteratableChunkChecksumValidator.cc
  796. * src/MSEHandshake.cc
  797. * src/MSEHandshake.h
  798. * src/Makefile.am
  799. * src/Makefile.in
  800. * src/Metalink2RequestGroup.cc
  801. * src/MetalinkPostDownloadHandler.cc
  802. * src/MultiDiskAdaptor.cc
  803. * src/MultiDiskAdaptor.h
  804. * src/MultiFileAllocationIterator.cc
  805. * src/MultiUrlRequestInfo.cc
  806. * src/PeerChokeCommand.cc
  807. * src/PeerChokeCommand.h
  808. * src/PeerInitiateConnectionCommand.cc
  809. * src/PeerInitiateConnectionCommand.h
  810. * src/PeerInteractionCommand.cc
  811. * src/PeerInteractionCommand.h
  812. * src/PeerReceiveHandshakeCommand.cc
  813. * src/PieceHashCheckIntegrityEntry.cc
  814. * src/RealtimeCommand.cc
  815. * src/ReceiverMSEHandshakeCommand.cc
  816. * src/RequestGroup.cc
  817. * src/RequestGroup.h
  818. * src/RequestGroupEntry.cc
  819. * src/RequestGroupMan.cc
  820. * src/SeedCheckCommand.cc
  821. * src/SeedCheckCommand.h
  822. * src/SegmentMan.cc
  823. * src/ShareRatioSeedCriteria.h
  824. * src/SingleFileDownloadContext.cc: Removed
  825. * src/SingleFileDownloadContext.h: Removed
  826. * src/SleepCommand.cc
  827. * src/StreamCheckIntegrityEntry.cc
  828. * src/TrackerWatcherCommand.cc
  829. * src/TrackerWatcherCommand.h
  830. * src/UnknownLengthPieceStorage.cc
  831. * src/Util.cc
  832. * src/Util.h
  833. * src/XmlRpcMethodImpl.cc
  834. * src/bittorrent_helper.cc
  835. * src/bittorrent_helper.h
  836. * src/download_helper.cc
  837. * src/main.cc
  838. * src/option_processing.cc
  839. * test/BitfieldManTest.cc
  840. * test/BittorrentHelperTest.cc
  841. * test/BtCancelMessageTest.cc
  842. * test/BtChokeMessageTest.cc
  843. * test/BtDependencyTest.cc
  844. * test/BtPieceMessageTest.cc
  845. * test/BtPostDownloadHandlerTest.cc
  846. * test/BtRegistryTest.cc
  847. * test/BtRejectMessageTest.cc
  848. * test/BtRequestMessageTest.cc
  849. * test/DHTPeerAnnounceStorageTest.cc
  850. * test/DefaultBtAnnounceTest.cc
  851. * test/DefaultBtContextTest.cc: Removed
  852. * test/DefaultBtMessageDispatcherTest.cc
  853. * test/DefaultBtMessageFactoryTest.cc
  854. * test/DefaultBtProgressInfoFileTest.cc
  855. * test/DefaultBtRequestFactoryTest.cc
  856. * test/DefaultExtensionMessageFactoryTest.cc
  857. * test/DefaultPeerStorageTest.cc
  858. * test/DefaultPieceStorageTest.cc
  859. * test/DirectDiskAdaptorTest.cc
  860. * test/DownloadContextTest.cc
  861. * test/DownloadHandlerFactoryTest.cc
  862. * test/DownloadHelperTest.cc
  863. * test/HandshakeExtensionMessageTest.cc
  864. * test/HttpRequestTest.cc
  865. * test/HttpResponseTest.cc
  866. * test/IteratableChecksumValidatorTest.cc
  867. * test/IteratableChunkChecksumValidatorTest.cc
  868. * test/MSEHandshakeTest.cc
  869. * test/Makefile.am
  870. * test/Makefile.in
  871. * test/Metalink2RequestGroupTest.cc
  872. * test/MetalinkPostDownloadHandlerTest.cc
  873. * test/MockBtContext.h: Removed
  874. * test/MockDHTTaskFactory.h
  875. * test/MockDownloadContext.h: Removed
  876. * test/MockPieceStorage.h
  877. * test/MultiDiskAdaptorTest.cc
  878. * test/MultiFileAllocationIteratorTest.cc
  879. * test/RequestGroupManTest.cc
  880. * test/RequestGroupTest.cc
  881. * test/SegmentManTest.cc
  882. * test/ShareRatioSeedCriteriaTest.cc
  883. * test/SingleFileDownloadContextTest.cc: Removed
  884. * test/UtilTest.cc
  885. * test/XmlRpcMethodTest.cc
  886. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Added experimental support of WEB-Seeding for multi-file torrent.
  888. Due to fundamental changes in file handling in HTTP/FTP code, many
  889. functions are not working: PeerStat, ServerHost, proxy..etc
  890. * src/AbstractCommand.cc
  891. * src/AbstractCommand.h
  892. * src/BitfieldMan.cc
  893. * src/BitfieldMan.h
  894. * src/CreateRequestCommand.cc
  895. * src/CreateRequestCommand.h
  896. * src/DefaultPieceStorage.cc
  897. * src/DefaultPieceStorage.h
  898. * src/DownloadCommand.cc
  899. * src/DownloadCommand.h
  900. * src/DownloadContext.cc
  901. * src/DownloadContext.h
  902. * src/FileEntry.cc
  903. * src/FileEntry.h
  904. * src/FtpDownloadCommand.cc
  905. * src/FtpDownloadCommand.h
  906. * src/FtpFinishDownloadCommand.cc
  907. * src/FtpFinishDownloadCommand.h
  908. * src/FtpInitiateConnectionCommand.cc
  909. * src/FtpInitiateConnectionCommand.h
  910. * src/FtpNegotiationCommand.cc
  911. * src/FtpNegotiationCommand.h
  912. * src/FtpTunnelResponseCommand.cc
  913. * src/HttpDownloadCommand.cc
  914. * src/HttpDownloadCommand.h
  915. * src/HttpInitiateConnectionCommand.cc
  916. * src/HttpInitiateConnectionCommand.h
  917. * src/HttpProxyResponseCommand.cc
  918. * src/HttpRequest.cc
  919. * src/HttpRequest.h
  920. * src/HttpRequestCommand.cc
  921. * src/HttpRequestCommand.h
  922. * src/HttpResponseCommand.cc
  923. * src/HttpResponseCommand.h
  924. * src/HttpSkipResponseCommand.cc
  925. * src/HttpSkipResponseCommand.h
  926. * src/InitiateConnectionCommand.cc
  927. * src/InitiateConnectionCommand.h
  928. * src/InitiateConnectionCommandFactory.cc
  929. * src/InitiateConnectionCommandFactory.h
  930. * src/Makefile.am
  931. * src/PieceStorage.h
  932. * src/RequestGroup.cc
  933. * src/RequestGroup.h
  934. * src/RequestGroupMan.cc
  935. * src/SegmentMan.cc
  936. * src/SegmentMan.h
  937. * src/SingleFileDownloadContext.h
  938. * src/StreamFileAllocationEntry.cc
  939. * src/TrackerWatcherCommand.cc
  940. * src/UnknownLengthPieceStorage.cc
  941. * src/UnknownLengthPieceStorage.h
  942. * src/array_fun.h
  943. * src/bitfield.h
  944. * src/download_helper.cc
  945. * test/DownloadContextTest.cc
  946. * test/Makefile.am
  947. * test/MockDownloadContext.h
  948. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Added tellWaiting XML-RPC method.
  950. * src/SingleFileDownloadContext.cc
  951. * src/XmlRpcMethodFactory.cc
  952. * src/XmlRpcMethodImpl.cc
  953. * src/XmlRpcMethodImpl.h
  954. * test/XmlRpcMethodTest.cc
  955. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Updated CookieStorageTest
  957. * test/CookieStorageTest.cc
  958. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  960. handle excepion inside these functions.
  961. * src/LibgnutlsTLSContext.cc
  962. * src/LibgnutlsTLSContext.h
  963. * src/LibsslTLSContext.cc
  964. * src/LibsslTLSContext.h
  965. * src/MultiUrlRequestInfo.cc
  966. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Added comment
  968. * src/RequestGroup.cc
  969. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. In CookieStorage::load() and saveNsFormat(), handle exception
  971. inside the functions. When saving Cookies, first write temporary
  972. file and after successful writes, then renames it to final
  973. destination.
  974. * src/CookieStorage.cc
  975. * src/CookieStorage.h
  976. * src/MultiUrlRequestInfo.cc
  977. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. The default value of --dir option is the absolute path to the
  979. current directory. If getcwd() is failed, then it is ".", which is
  980. the same value with old implementation. This change is necessary
  981. because after daemon() call, the current working directory is
  982. changed to /.
  983. * src/File.cc
  984. * src/File.h
  985. * src/OptionHandlerFactory.cc
  986. * src/option_processing.cc
  987. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Call daemon() with arguments(0,0), which means daemon() changes
  989. current working directory to / and redirects stdin, stdout and
  990. stderr to /dev/null.
  991. * src/option_processing.cc
  992. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Small performance optimizations.
  994. * src/RequestGroupMan.cc
  995. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Added _xmlRpc member variable to RequestGroupMan to reduce the
  997. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  998. * src/RequestGroupMan.cc
  999. * src/RequestGroupMan.h
  1000. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1002. setNoWiat(true) if newly created command calls
  1003. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1004. * src/HttpListenCommand.cc
  1005. * src/HttpServerBodyCommand.cc
  1006. * src/HttpServerCommand.cc
  1007. * src/HttpServerResponseCommand.cc
  1008. * src/InitiateConnectionCommand.cc
  1009. * src/RequestGroup.cc
  1010. * src/StreamFileAllocationEntry.cc
  1011. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1012. Removed include vector
  1013. * src/BtRegistry.h
  1014. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Rewritten BtRegistry
  1016. * src/BtRegistry.cc
  1017. * src/BtRegistry.h
  1018. * src/BtSetup.cc
  1019. * src/ConsoleStatCalc.cc
  1020. * src/PeerInteractionCommand.cc
  1021. * src/PeerReceiveHandshakeCommand.cc
  1022. * src/ReceiverMSEHandshakeCommand.cc
  1023. * src/RequestGroup.cc
  1024. * src/XmlRpcMethodImpl.cc
  1025. * test/BtRegistryTest.cc
  1026. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1027. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1028. * src/DefaultBtProgressInfoFile.cc
  1029. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1030. Throw an exception if position is less than 0.
  1031. * src/XmlRpcMethodImpl.cc
  1032. * test/XmlRpcMethodTest.cc
  1033. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Use writeFilePath() in ConsoleStatCalc.cc
  1035. * src/ConsoleStatCalc.cc
  1036. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Receive the return value as const reference from
  1038. DownloadContext::getFileEntries().
  1039. * src/DefaultPieceStorage.cc
  1040. * src/RequestGroupMan.cc
  1041. * src/XmlRpcMethodImpl.cc
  1042. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1043. DownloadContext now has _fileEntries so that
  1044. DownloadContext::getFileEntries() can returns its const reference.
  1045. * src/DefaultBtContext.cc
  1046. * src/DefaultBtContext.h
  1047. * src/DownloadContext.cc
  1048. * src/DownloadContext.h
  1049. * src/SingleFileDownloadContext.cc
  1050. * src/SingleFileDownloadContext.h
  1051. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1053. writeFilePath() function template from RequestGroupMan.cc to
  1054. FileEntry.h
  1055. * src/FileEntry.h
  1056. * src/RequestGroupMan.cc
  1057. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Documented 'position' parameter is starting from 0 in man page.
  1059. * doc/aria2c.1.txt
  1060. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Updated doc.
  1062. * src/MSEHandshake.cc
  1063. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Removed _acceptFeatures and its accessor functions from
  1065. RequestGroup since they are not used practically.
  1066. * src/HttpRequestCommand.cc
  1067. * src/RequestGroup.cc
  1068. * src/RequestGroup.h
  1069. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1070. Removed member _maxTries from RequestGroup class to avoid
  1071. duplicate option value. Those classes who refer this variable
  1072. should use option value of PREF_MAX_TRIES directly.
  1073. * src/AbstractCommand.cc
  1074. * src/RequestGroup.cc
  1075. * src/RequestGroup.h
  1076. * src/TrackerWatcherCommand.cc
  1077. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1078. * Release 1.4.1
  1079. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Fixed compiler warnings on netbsd
  1081. * src/DHTConnectionImpl.cc
  1082. * src/PeerListenCommand.cc
  1083. * src/PeerSessionResource.cc
  1084. * src/SegmentMan.cc
  1085. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Updated Ukrainian translation. Thanks to all translators.
  1087. * po/uk.po
  1088. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Bump up version number to 1.4.1.
  1090. * configure.ac
  1091. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Added unit tests for strjoin, strconcat and strappend.
  1093. * test/a2functionalTest.cc
  1094. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Rewritten strconcat and strappend using operator+ instead of
  1096. append().
  1097. * src/a2functional.h
  1098. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1100. is enabled.
  1101. * src/Makefile.am
  1102. * test/Makefile.am
  1103. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1104. Added countSeeder() function which counts seeder in the given
  1105. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1106. * src/ConsoleStatCalc.cc
  1107. * src/Peer.h
  1108. * src/XmlRpcMethodImpl.cc
  1109. * test/PeerTest.cc
  1110. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Documented missing seeder in getPeers xml-rpc method.
  1112. Documented uploadLength and numSeeders.
  1113. * doc/aria2c.1.txt
  1114. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Added uploadLength and numSeeders to the response of tellStatus
  1116. xml-rpc method. Assert that PeerStorage instance is not null
  1117. instead of checking if statement. It should be non-null in this
  1118. context.
  1119. * src/XmlRpcMethodImpl.cc
  1120. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1121. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1122. * src/XmlRpcResponse.cc
  1123. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Avoid intermediate object during string concatenation.
  1125. * src/HttpRequest.cc
  1126. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Added strjoin function template. Use it in pathJoin()
  1128. * src/Util.h
  1129. * src/a2functional.h
  1130. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Avoid intermediate object during string concatenation. Replaced
  1132. post-increment unary operator with pre-increment one in for loop.
  1133. * src/AdaptiveURISelector.cc
  1134. * src/AnnounceList.cc
  1135. * src/AuthConfig.h
  1136. * src/BtBitfieldMessage.cc
  1137. * src/BtExtendedMessage.cc
  1138. * src/BtHandshakeMessage.cc
  1139. * src/BtPieceMessage.cc
  1140. * src/BtPortMessage.cc
  1141. * src/Cookie.cc
  1142. * src/DHTAnnouncePeerMessage.cc
  1143. * src/DHTAutoSaveCommand.cc
  1144. * src/DHTGetPeersReplyMessage.cc
  1145. * src/DHTNode.cc
  1146. * src/DHTQueryMessage.cc
  1147. * src/DHTResponseMessage.cc
  1148. * src/DHTUnknownMessage.cc
  1149. * src/DefaultBtAnnounce.cc
  1150. * src/DefaultBtContext.cc
  1151. * src/DefaultBtInteractive.cc
  1152. * src/DefaultBtProgressInfoFile.cc
  1153. * src/DefaultPeerStorage.cc
  1154. * src/DownloadEngine.cc
  1155. * src/FeatureConfig.cc
  1156. * src/File.cc
  1157. * src/FtpConnection.cc
  1158. * src/FtpNegotiationCommand.cc
  1159. * src/HandshakeExtensionMessage.cc
  1160. * src/HttpConnection.cc
  1161. * src/HttpRequest.cc
  1162. * src/HttpResponseCommand.cc
  1163. * src/HttpServer.cc
  1164. * src/IndexBtMessage.cc
  1165. * src/Metalink2RequestGroup.cc
  1166. * src/OptionHandlerImpl.h
  1167. * src/PStringBuildVisitor.cc
  1168. * src/Peer.cc
  1169. * src/PeerListenCommand.cc
  1170. * src/Piece.cc
  1171. * src/RangeBtMessage.cc
  1172. * src/Request.cc
  1173. * src/Request.h
  1174. * src/RequestGroup.cc
  1175. * src/RequestGroupMan.cc
  1176. * src/ServerStat.cc
  1177. * src/ServerStatMan.cc
  1178. * src/UTPexExtensionMessage.cc
  1179. * src/Util.cc
  1180. * src/a2functional.h
  1181. * src/download_helper.cc
  1182. * src/messageDigest.cc
  1183. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Unchoke a peer randomly at first and second choke round in seed
  1185. state.
  1186. * src/BtSeederStateChoke.cc
  1187. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1188. Added (sock_t) to quiet compiler warnings in MinGW
  1189. * src/SocketCore.cc
  1190. * src/SocketCore.h
  1191. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1193. * src/EpollEventPoll.h
  1194. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1195. Added fork() emulation using CreateProcess() in MinGW
  1196. * src/RequestGroupMan.cc
  1197. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. * Release 1.4.0
  1199. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Added utf8.torrent to EXTRA_DIST
  1201. * test/Makefile.am
  1202. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Fixed docs of aria2.addMetalink xml-rpc method.
  1204. * doc/aria2c.1.txt
  1205. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Added Slovak translation. Updated Ukrainian and Brazilian
  1207. Portuguese translation. Thanks to all translators.
  1208. * po/sk.po
  1209. * po/uk.po
  1210. * po/pt_BR.po
  1211. * po/LINGUAS
  1212. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Added test case for XmlRpcProcessor to fail to parse malformed
  1214. document.
  1215. * test/XmlRpcRequestProcessorTest.cc
  1216. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Removed *.gmo files in po because they are generated on 'make
  1218. dist'
  1219. * po/*.gmo
  1220. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Documented max-concurrent-downloads of changeGlobalOption method
  1222. in man page.
  1223. * doc/aria2c.1.txt
  1224. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Added max-concurrent-downloads option to changeGlobalOption
  1226. xml-rpc method. Rewritten loop conditional in
  1227. RequestGroupMan::fillRequestGroupFromReserver().
  1228. * src/RequestGroupMan.cc
  1229. * src/RequestGroupMan.h
  1230. * src/XmlRpcMethod.cc
  1231. * src/XmlRpcMethodImpl.cc
  1232. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1233. Documented position parameter in man page.
  1234. * doc/aria2c.1.txt
  1235. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. Added 'position' parameter to addUri, addTorrent and addMetalink
  1237. xml-rpc method.
  1238. * src/RequestGroupMan.cc
  1239. * src/RequestGroupMan.h
  1240. * src/XmlRpcMethodImpl.cc
  1241. * test/XmlRpcMethodTest.cc
  1242. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Removed Peer.cc from compile source list when --disable-bittorrent
  1244. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1245. takes Peer.
  1246. * src/DefaultPieceStorage.cc
  1247. * src/DefaultPieceStorage.h
  1248. * src/Makefile.am
  1249. * src/PieceStorage.h
  1250. * src/UnknownLengthPieceStorage.cc
  1251. * src/UnknownLengthPieceStorage.h
  1252. * test/MockPieceStorage.h
  1253. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Implemented getter methods in header files to give them more
  1255. chance of optimization.
  1256. Return const reference for SharadHandle if possible.
  1257. * src/AbstractAuthResolver.cc
  1258. * src/AbstractAuthResolver.h
  1259. * src/AbstractBtMessage.cc
  1260. * src/AbstractBtMessage.h
  1261. * src/AbstractSingleDiskAdaptor.cc
  1262. * src/AbstractSingleDiskAdaptor.h
  1263. * src/AsyncNameResolver.cc
  1264. * src/AsyncNameResolver.h
  1265. * src/BNode.cc
  1266. * src/BNode.h
  1267. * src/BitfieldMan.cc
  1268. * src/BitfieldMan.h
  1269. * src/BtAbortOutstandingRequestEvent.h
  1270. * src/BtExtendedMessage.cc
  1271. * src/BtExtendedMessage.h
  1272. * src/BtSeederStateChoke.cc
  1273. * src/BtSeederStateChoke.h
  1274. * src/Cookie.cc
  1275. * src/Cookie.h
  1276. * src/DHTBucket.cc
  1277. * src/DHTBucket.h
  1278. * src/DHTConnectionImpl.cc
  1279. * src/DHTConnectionImpl.h
  1280. * src/DHTFindNodeReplyMessage.cc
  1281. * src/DHTFindNodeReplyMessage.h
  1282. * src/DHTGetPeersReplyMessage.cc
  1283. * src/DHTGetPeersReplyMessage.h
  1284. * src/DHTInteractionCommand.cc
  1285. * src/DHTMessage.cc
  1286. * src/DHTMessage.h
  1287. * src/DHTMessageDispatcherImpl.cc
  1288. * src/DHTMessageEntry.cc
  1289. * src/DHTMessageReceiver.cc
  1290. * src/DHTMessageReceiver.h
  1291. * src/DHTMessageTrackerEntry.cc
  1292. * src/DHTMessageTrackerEntry.h
  1293. * src/DHTPeerAnnounceEntry.cc
  1294. * src/DHTPeerAnnounceEntry.h
  1295. * src/DHTPeerLookupTask.cc
  1296. * src/DHTPeerLookupTask.h
  1297. * src/DHTRoutingTableDeserializer.cc
  1298. * src/DHTRoutingTableDeserializer.h
  1299. * src/DefaultBtAnnounce.cc
  1300. * src/DefaultBtAnnounce.h
  1301. * src/DefaultBtMessageDispatcher.cc
  1302. * src/DefaultBtMessageDispatcher.h
  1303. * src/DefaultBtRequestFactory.cc
  1304. * src/DefaultBtRequestFactory.h
  1305. * src/DiskAdaptor.cc
  1306. * src/DiskAdaptor.h
  1307. * src/DownloadContext.cc
  1308. * src/DownloadContext.h
  1309. * src/DownloadEngine.cc
  1310. * src/DownloadEngine.h
  1311. * src/EpollEventPoll.cc
  1312. * src/EpollEventPoll.h
  1313. * src/FtpConnection.cc
  1314. * src/FtpConnection.h
  1315. * src/HttpConnection.cc
  1316. * src/HttpConnection.h
  1317. * src/HttpHeader.cc
  1318. * src/HttpHeader.h
  1319. * src/HttpRequest.cc
  1320. * src/HttpRequest.h
  1321. * src/HttpResponse.cc
  1322. * src/HttpResponse.h
  1323. * src/LibsslTLSContext.cc
  1324. * src/LibsslTLSContext.h
  1325. * src/MSEHandshake.cc
  1326. * src/MSEHandshake.h
  1327. * src/MetalinkEntry.cc
  1328. * src/MetalinkEntry.h
  1329. * src/MetalinkParserController.cc
  1330. * src/MetalinkParserController.h
  1331. * src/MetalinkParserStateMachine.cc
  1332. * src/MetalinkParserStateMachine.h
  1333. * src/MultiDiskAdaptor.cc
  1334. * src/MultiDiskAdaptor.h
  1335. * src/NetrcAuthResolver.cc
  1336. * src/NetrcAuthResolver.h
  1337. * src/Peer.cc
  1338. * src/Peer.h
  1339. * src/PeerSessionResource.cc
  1340. * src/PeerSessionResource.h
  1341. * src/Piece.cc
  1342. * src/Piece.h
  1343. * src/PieceStatMan.cc
  1344. * src/PieceStatMan.h
  1345. * src/Request.cc
  1346. * src/Request.h
  1347. * src/RequestGroup.cc
  1348. * src/RequestGroup.h
  1349. * src/RequestGroupMan.cc
  1350. * src/RequestGroupMan.h
  1351. * src/RequestSlot.cc
  1352. * src/RequestSlot.h
  1353. * src/SegmentMan.cc
  1354. * src/SegmentMan.h
  1355. * src/SelectEventPoll.cc
  1356. * src/SelectEventPoll.h
  1357. * src/ServerStat.cc
  1358. * src/ServerStat.h
  1359. * src/Signature.cc
  1360. * src/Signature.h
  1361. * src/URIResult.cc
  1362. * src/URIResult.h
  1363. * src/UTPexExtensionMessage.cc
  1364. * src/UTPexExtensionMessage.h
  1365. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Fixed compile error without BitTorrent and Metalink support.
  1367. * src/XmlRpcMethod.cc
  1368. * src/XmlRpcMethodFactory.cc
  1369. * src/XmlRpcMethodImpl.cc
  1370. * src/XmlRpcMethodImpl.h
  1371. * test/XmlRpcMethodTest.cc
  1372. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Rewritten the help message for --allow-overwrite option.
  1374. * doc/aria2c.1.txt
  1375. * src/usage_text.h
  1376. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Fixed typo
  1378. * doc/aria2c.1.txt
  1379. * src/usage_text.h
  1380. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Updated README for 1.4.0 release. Use new table syntax of
  1382. asciidoc.
  1383. * README
  1384. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Documented --xml-rpc-max-request-size option in man page.
  1386. * doc/aria2c.1.txt
  1387. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Moved C_* constants from BtContext to DefaultBtContext.
  1389. * src/BtContext.cc: Removed.
  1390. * src/BtContext.h
  1391. * src/DefaultBtContext.cc
  1392. * src/DefaultBtContext.h
  1393. * src/Makefile.am
  1394. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1396. path key respectively when persing .torrent file.
  1397. * src/BtContext.cc
  1398. * src/BtContext.h
  1399. * src/DefaultBtContext.cc
  1400. * test/DefaultBtContextTest.cc
  1401. * test/utf8.torrent
  1402. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1403. Added --xml-rpc-max-request-size option to limit the size of
  1404. XML-RPC request.
  1405. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Documented XML-RPC API in man page.
  1407. * doc/aria2c.1.txt
  1408. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1410. will break strict-aliasing rules
  1411. * src/PeerConnection.cc
  1412. * test/DHTRoutingTableSerializerTest.cc
  1413. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1414. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1415. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1416. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1417. PKG_CHECK_MODULES macro uses latter name.
  1418. * m4/sqlite3.m4
  1419. * src/Makefile.am
  1420. * test/Makefile.am
  1421. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1422. Fixed typo
  1423. * configure.ac
  1424. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1425. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1426. presence of libgnutls using pkg-config first. If it fails, fall
  1427. back to old macro libgnutls.m4.
  1428. * configure.ac
  1429. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Use s itself instead of !s.bad()
  1431. * src/CookieStorage.cc
  1432. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Documented --on-download-* option and --save-cookies option in man
  1434. page.
  1435. * doc/aria2c.1.txt
  1436. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Set possible values for --load-cookie option to "/path/to/file".
  1438. * src/OptionHandlerFactory.cc
  1439. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. Added --save-cookies option.
  1441. * src/Cookie.cc
  1442. * src/Cookie.h
  1443. * src/CookieStorage.cc
  1444. * src/CookieStorage.h
  1445. * src/MultiUrlRequestInfo.cc
  1446. * src/OptionHandlerFactory.cc
  1447. * src/prefs.cc
  1448. * src/prefs.h
  1449. * src/usage_text.h
  1450. * test/CookieStorageTest.cc
  1451. * test/CookieTest.cc
  1452. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Removed tellAll XML-RPC command because its reponse tends to be
  1454. big if stopped/waiting downloads pile up.
  1455. * src/XmlRpcMethodFactory.cc
  1456. * src/XmlRpcMethodImpl.cc
  1457. * src/XmlRpcMethodImpl.h
  1458. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Added the ability to execute command when download starts and
  1460. stops. You can also specify command for particular cases such as
  1461. complete/error download. Added --on-download-start,
  1462. --on-download-stop, --on-download-complete and --on-download-error
  1463. option.
  1464. * src/OptionHandlerFactory.cc
  1465. * src/RequestGroupMan.cc
  1466. * src/prefs.cc
  1467. * src/prefs.h
  1468. * src/usage_text.h
  1469. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Fixed test error
  1471. * test/BencodeTest.cc
  1472. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Added unit tests.
  1474. * test/XmlRpcMethodTest.cc
  1475. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Made exception message more verbose.
  1477. * src/bencode.cc
  1478. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1480. space in console readout. Also they are now shown in MiB/s if
  1481. speed > 1024KiB/s.
  1482. * src/ConsoleStatCalc.cc
  1483. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Added SEED to console output, which represents the number of
  1485. seeders currently the client is connecting to.
  1486. * src/ConsoleStatCalc.cc
  1487. * src/ConsoleStatCalc.h
  1488. * src/DownloadEngine.cc
  1489. * src/NullStatCalc.h
  1490. * src/StatCalc.h
  1491. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Added source filename(__FILE__) and line number(__LINE__) to
  1493. exception message.
  1494. * src/AbstractCommand.cc
  1495. * src/AbstractDiskWriter.cc
  1496. * src/AbstractProxyResponseCommand.cc
  1497. * src/BDE.h
  1498. * src/BtAllowedFastMessage.cc
  1499. * src/BtHandshakeMessageValidator.h
  1500. * src/BtHaveAllMessage.cc
  1501. * src/BtHaveNoneMessage.cc
  1502. * src/BtPieceMessage.cc
  1503. * src/BtRejectMessage.cc
  1504. * src/ChunkedDecoder.cc
  1505. * src/CookieStorage.cc
  1506. * src/DHTAnnouncePeerMessage.cc
  1507. * src/DHTEntryPointNameResolveCommand.cc
  1508. * src/DHTMessageFactoryImpl.cc
  1509. * src/DHTMessageTracker.cc
  1510. * src/DHTRoutingTableDeserializer.cc
  1511. * src/DHTRoutingTableSerializer.cc
  1512. * src/DHTSetup.cc
  1513. * src/DHTTokenTracker.cc
  1514. * src/DefaultBtAnnounce.cc
  1515. * src/DefaultBtContext.cc
  1516. * src/DefaultBtInteractive.cc
  1517. * src/DefaultBtMessageFactory.cc
  1518. * src/DefaultBtProgressInfoFile.cc
  1519. * src/DefaultExtensionMessageFactory.cc
  1520. * src/DlAbortEx.h
  1521. * src/DlRetryEx.h
  1522. * src/DownloadCommand.cc
  1523. * src/DownloadEngineFactory.cc
  1524. * src/DownloadFailureException.h
  1525. * src/Exception.cc
  1526. * src/Exception.h
  1527. * src/ExpatMetalinkProcessor.cc
  1528. * src/ExpatXmlRpcRequestProcessor.cc
  1529. * src/FallocFileAllocationIterator.cc
  1530. * src/FatalException.h
  1531. * src/FtpConnection.cc
  1532. * src/FtpFinishDownloadCommand.cc
  1533. * src/FtpInitiateConnectionCommand.cc
  1534. * src/FtpNegotiationCommand.cc
  1535. * src/GZipDecoder.cc
  1536. * src/HandshakeExtensionMessage.cc
  1537. * src/HttpConnection.cc
  1538. * src/HttpHeaderProcessor.cc
  1539. * src/HttpInitiateConnectionCommand.cc
  1540. * src/HttpResponse.cc
  1541. * src/HttpResponseCommand.cc
  1542. * src/HttpServer.cc
  1543. * src/HttpSkipResponseCommand.cc
  1544. * src/InitiateConnectionCommandFactory.cc
  1545. * src/IteratableChunkChecksumValidator.cc
  1546. * src/LibgcryptARC4Context.h
  1547. * src/LibgcryptARC4Decryptor.h
  1548. * src/LibgcryptARC4Encryptor.h
  1549. * src/LibgcryptDHKeyExchange.h
  1550. * src/LibgnutlsTLSContext.cc
  1551. * src/LibsslARC4Context.h
  1552. * src/LibsslARC4Decryptor.h
  1553. * src/LibsslARC4Encryptor.h
  1554. * src/LibsslDHKeyExchange.h
  1555. * src/LibsslTLSContext.cc
  1556. * src/MSEHandshake.cc
  1557. * src/MessageDigestHelper.cc
  1558. * src/MetalinkHelper.cc
  1559. * src/MultiDiskAdaptor.cc
  1560. * src/NameMatchOptionHandler.h
  1561. * src/NameResolver.cc
  1562. * src/Netrc.cc
  1563. * src/NsCookieParser.cc
  1564. * src/OptionHandlerException.cc
  1565. * src/OptionHandlerException.h
  1566. * src/OptionHandlerImpl.h
  1567. * src/OptionParser.cc
  1568. * src/ParameterizedStringParser.cc
  1569. * src/PeerAbstractCommand.cc
  1570. * src/PeerConnection.cc
  1571. * src/PeerMessageUtil.cc
  1572. * src/PeerReceiveHandshakeCommand.cc
  1573. * src/Platform.cc
  1574. * src/ReceiverMSEHandshakeCommand.cc
  1575. * src/RecoverableException.h
  1576. * src/RequestGroup.cc
  1577. * src/SimpleLogger.cc
  1578. * src/SocketCore.cc
  1579. * src/Sqlite3MozCookieParser.cc
  1580. * src/UTPexExtensionMessage.cc
  1581. * src/Util.cc
  1582. * src/XML2SAXMetalinkProcessor.cc
  1583. * src/Xml2XmlRpcRequestProcessor.cc
  1584. * src/XmlRpcMethodImpl.cc
  1585. * src/bencode.cc
  1586. * src/download_helper.cc
  1587. * src/messageDigest.h
  1588. * test/ExceptionTest.cc
  1589. * test/TestUtil.cc
  1590. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Bump up version number to 1.4.0
  1592. * configure.ac
  1593. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Added 2files.metalink to EXTRA_DIST
  1595. * test/Makefile.am
  1596. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Added missing 2files.metalink
  1598. * test/2files.metalink
  1599. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Show "[MEMORY]" prefix before filename in download summary if it
  1601. is downloaded into memory.
  1602. * src/DownloadResult.h
  1603. * src/RequestGroup.cc
  1604. * src/RequestGroupMan.cc
  1605. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1607. * src/ExpatXmlRpcRequestProcessor.cc
  1608. * src/Xml2XmlRpcRequestProcessor.cc
  1609. * src/message.h
  1610. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Defined const BDEs to avoid duplicate instantiation.
  1612. Defined MSG_GID_NOT_PROVIDED.
  1613. * src/XmlRpcMethodImpl.cc
  1614. * src/message.h
  1615. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Code cleanup
  1617. * src/Xml2XmlRpcRequestProcessor.cc
  1618. * src/Xml2XmlRpcRequestProcessor.h
  1619. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Defined ENABLE_XML_RPC
  1621. * configure.ac
  1622. * configure
  1623. * config.h.in
  1624. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Added ExpatXmlRpcRequestProcessor
  1626. * src/ExpatXmlRpcRequestProcessor.cc
  1627. * src/ExpatXmlRpcRequestProcessor.h
  1628. * src/Makefile.am
  1629. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Added tests for addTorrent and addMetalink command.
  1631. * test/TestUtil.cc
  1632. * test/TestUtil.h
  1633. * test/XmlRpcMethodTest.cc
  1634. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Corrected the description of --file-allocation option.
  1636. * doc/aria2c.1.txt
  1637. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Added tellAll command.
  1639. * src/XmlRpcMethodFactory.cc
  1640. * src/XmlRpcMethodImpl.cc
  1641. * src/XmlRpcMethodImpl.h
  1642. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1644. * src/XmlRpcMethodImpl.cc
  1645. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1646. Added changeGlobalOption command. Currently,
  1647. max-overall-download-limit and max-overall-upload-limit option are
  1648. available.
  1649. * src/RequestGroupMan.h
  1650. * src/XmlRpcMethod.cc
  1651. * src/XmlRpcMethod.h
  1652. * src/XmlRpcMethodFactory.cc
  1653. * src/XmlRpcMethodImpl.cc
  1654. * src/XmlRpcMethodImpl.h
  1655. * test/XmlRpcMethodTest.cc
  1656. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1657. Added changeOption command. Currently, max-download-limit,
  1658. max-upload-limit option are available in this command.
  1659. * src/RequestGroup.h
  1660. * src/XmlRpcMethod.cc
  1661. * src/XmlRpcMethod.h
  1662. * src/XmlRpcMethodFactory.cc
  1663. * src/XmlRpcMethodImpl.cc
  1664. * src/XmlRpcMethodImpl.h
  1665. * test/XmlRpcMethodTest.cc
  1666. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Added purgeDownloadResult command.
  1668. * src/RequestGroupMan.cc
  1669. * src/RequestGroupMan.h
  1670. * src/XmlRpcMethodFactory.cc
  1671. * src/XmlRpcMethodImpl.cc
  1672. * src/XmlRpcMethodImpl.h
  1673. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Refactored.
  1675. * src/XmlRpcMethod.cc
  1676. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1678. XmlRpcResponse.
  1679. * src/HttpServerBodyCommand.cc
  1680. * src/Makefile.am
  1681. * src/XmlRpcMethod.cc
  1682. * src/XmlRpcMethod.h
  1683. * src/XmlRpcMethodImpl.cc
  1684. * src/XmlRpcResponse.cc
  1685. * src/XmlRpcResponse.h
  1686. * test/XmlRpcMethodTest.cc
  1687. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. In XML-RPC option struct, header and index-out option can take
  1689. array as value.
  1690. * src/XmlRpcMethod.cc
  1691. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Removed unused option member from PeerConnection.
  1693. * src/InitiatorMSEHandshakeCommand.cc
  1694. * src/PeerConnection.cc
  1695. * src/PeerConnection.h
  1696. * src/PeerInteractionCommand.cc
  1697. * src/PeerReceiveHandshakeCommand.cc
  1698. * src/ReceiverMSEHandshakeCommand.cc
  1699. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1700. Added "seeder" key to getPeers response.
  1701. * src/XmlRpcMethodImpl.cc
  1702. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Added addMetalink XML-RPC command.
  1704. * src/XmlRpcMethodFactory.cc
  1705. * src/XmlRpcMethodImpl.cc
  1706. * src/XmlRpcMethodImpl.h
  1707. * src/download_helper.cc
  1708. * src/download_helper.h
  1709. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. Fixed the bug that POU peers are never choked in seeding.
  1711. * src/BtSeederStateChoke.cc
  1712. * src/BtSeederStateChoke.h
  1713. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Added web-seeding URI handling in addTorrent command.
  1715. * src/XmlRpcMethodImpl.cc
  1716. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Added "length" key to getFiles response.
  1718. * src/XmlRpcMethodImpl.cc
  1719. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1720. Moved --no-netrc option from ftp option section to http/ftp option
  1721. section.
  1722. * doc/aria2c.1.txt
  1723. * src/OptionHandlerFactory.cc
  1724. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Removed garbage "\" character before '
  1726. * doc/aria2c.1.txt
  1727. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Removed garbage "\" character before http.
  1729. * doc/aria2c.1.txt
  1730. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Documented additional options that can be specified in -i list.
  1732. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1733. and --xml-rpc-passwd. Removed --enable-http-server and
  1734. --http-server-listen-port.
  1735. * doc/aria2c.1.txt
  1736. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1738. * src/DefaultPeerStorage.cc
  1739. * src/DefaultPeerStorage.h
  1740. * src/PeerStorage.h
  1741. * src/XmlRpcMethodImpl.cc
  1742. * test/MockPeerStorage.h
  1743. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Put a call to Socket::isReadable() in try block.
  1745. * src/HttpServerBodyCommand.cc
  1746. * src/HttpServerCommand.cc
  1747. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1749. exception , so it is now in try block.
  1750. * src/HttpServerResponseCommand.cc
  1751. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1752. Added "amChoking" and "peerChoking" key in getPeers response.
  1753. * src/XmlRpcMethodImpl.cc
  1754. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. Added test case for zero-length filter.
  1756. * test/BitfieldManTest.cc
  1757. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. getFiles command now returns file data for finished/stopped
  1759. downloads.
  1760. * src/XmlRpcMethodImpl.cc
  1761. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. DownloadResult now has the list of FileEntry. The download
  1763. summary displays the path of first selected file and the number of
  1764. remaining files for multi-file torrent.
  1765. * src/DownloadResult.h
  1766. * src/RequestGroup.cc
  1767. * src/RequestGroupMan.cc
  1768. * test/RequestGroupTest.cc
  1769. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1770. Fixed segmentation fault error when no file is selected in
  1771. multi-file torrent.
  1772. * src/BitfieldMan.cc
  1773. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Escaped <,>,& character in XML-RPC response.
  1775. * src/XmlRpcMethod.cc
  1776. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Throw DlAbortEx instead of FatalException during parsing options
  1778. because we don't want for aria2 to quit when bad option is passed
  1779. via XML-RPC.
  1780. * src/OptionHandlerException.cc
  1781. * src/OptionHandlerException.h
  1782. * src/OptionHandlerImpl.h
  1783. * src/OptionParser.cc
  1784. * src/OptionParser.h
  1785. * src/PStringSegment.cc
  1786. * src/ParameterizedStringParser.cc
  1787. * src/download_helper.cc
  1788. * test/ParameterizedStringParserTest.cc
  1789. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Selecting files are now done in
  1791. DefaultBtContext::setFileFileter().
  1792. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1793. functions are removed because they are no longer used. Creating
  1794. filter in BitfieldMan is done in new funtion
  1795. PieceStorage::setupFileFilter()
  1796. * src/BtContext.cc
  1797. * src/BtContext.h
  1798. * src/DefaultBtContext.cc
  1799. * src/DefaultBtContext.h
  1800. * src/DefaultPieceStorage.cc
  1801. * src/DefaultPieceStorage.h
  1802. * src/DiskAdaptor.cc
  1803. * src/DiskAdaptor.h
  1804. * src/PieceStorage.h
  1805. * src/RequestGroup.cc
  1806. * src/UnknownLengthPieceStorage.h
  1807. * src/XmlRpcMethodImpl.cc
  1808. * test/DefaultBtContextTest.cc
  1809. * test/MockBtContext.h
  1810. * test/MockPieceStorage.h
  1811. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Fixed compile error on Mac OS X
  1813. * src/HttpServer.cc
  1814. * src/XmlRpcMethod.h
  1815. * src/XmlRpcMethodImpl.cc
  1816. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1817. Use std::binary_search instead of std::find
  1818. * src/DefaultPieceStorage.cc
  1819. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. Removed unnecessary BDE() call; leave them to implicit conversion.
  1821. * src/XmlRpcMethodImpl.cc
  1822. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Return connections and gid in string
  1824. * src/XmlRpcMethodImpl.cc
  1825. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1826. Renamed addURI as addUri
  1827. * src/XmlRpcMethodFactory.cc
  1828. * src/XmlRpcMethodImpl.cc
  1829. * src/XmlRpcMethodImpl.h
  1830. * test/XmlRpcMethodTest.cc
  1831. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Renamed addTorrentFile as addTorrent
  1833. * src/XmlRpcMethodFactory.cc
  1834. * src/XmlRpcMethodImpl.cc
  1835. * src/XmlRpcMethodImpl.h
  1836. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1837. The information for files, URIs, peers are removed from the
  1838. reponse of TellaActive, TellStatus command because they tend to be
  1839. large. Instead they can be retrieved by the dedicated commands:
  1840. getFiles, getUris and getPeers respectively.
  1841. * src/XmlRpcMethodFactory.cc
  1842. * src/XmlRpcMethodImpl.cc
  1843. * src/XmlRpcMethodImpl.h
  1844. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Removed --max-overall-upload-limit and
  1846. --max-overall-download-limit option from listRequestOptions.
  1847. * src/download_helper.cc
  1848. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1849. Log incoming host in HttpListenCommand.
  1850. * src/HttpListenCommand.cc
  1851. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1852. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1853. --xml-rpc-passwd option.
  1854. * src/HttpServer.cc
  1855. * src/HttpServer.h
  1856. * src/HttpServerCommand.cc
  1857. * src/OptionHandlerFactory.cc
  1858. * src/prefs.cc
  1859. * src/prefs.h
  1860. * src/usage_text.h
  1861. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1863. processing 0 length request.
  1864. * src/HttpServerBodyCommand.cc
  1865. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Removed --enable-http-server and --http-server-listen-port
  1867. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1868. instead. The original feature for --enable-http-server that
  1869. reports download progress in HTML was officially removed. Persist
  1870. XML-RPC connection if client supports keep-alive.
  1871. * src/DownloadEngineFactory.cc
  1872. * src/HttpServerCommand.cc
  1873. * src/HttpServerResponseCommand.cc
  1874. * src/Makefile.am
  1875. * src/Makefile.in
  1876. * src/OptionHandlerFactory.cc
  1877. * src/RequestGroupMan.cc
  1878. * src/main.cc
  1879. * src/option_processing.cc
  1880. * src/prefs.cc
  1881. * src/prefs.h
  1882. * src/usage_text.h
  1883. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1884. Added "uris" key to the response of tellStatus command. Added
  1885. "connections" key to the response of tellStatus and tellActive
  1886. command.
  1887. * src/XmlRpcMethodImpl.cc
  1888. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1890. Added TellStatusXmlRpcMethod. Remove command can now remove
  1891. waiting RequestGroup.
  1892. * src/RequestGroupMan.cc
  1893. * src/RequestGroupMan.h
  1894. * src/XmlRpcMethodFactory.cc
  1895. * src/XmlRpcMethodImpl.cc
  1896. * src/XmlRpcMethodImpl.h
  1897. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Initialized _peerId
  1899. * src/Peer.cc
  1900. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Return fault structure for error. FailXmlRpcMethod is renamed as
  1902. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1903. in non-torrent download. Return single param value.
  1904. * src/XmlRpcMethod.cc
  1905. * src/XmlRpcMethodFactory.cc
  1906. * src/XmlRpcMethodImpl.cc
  1907. * src/XmlRpcMethodImpl.h
  1908. * test/XmlRpcMethodTest.cc
  1909. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1910. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1911. command.
  1912. * src/RequestGroup.cc
  1913. * src/RequestGroup.h
  1914. * src/RequestGroupMan.cc
  1915. * src/XmlRpcMethodImpl.cc
  1916. * test/RequestGroupTest.cc
  1917. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. Added more options that can be specified in -i list and xml-rpc
  1919. add* command.
  1920. * src/download_helper.h
  1921. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. The available options in -i list should be listed in
  1923. listRequestOptions().
  1924. * src/download_helper.cc
  1925. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1927. command.
  1928. * src/XmlRpcMethodImpl.cc
  1929. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Now RequestGroup has its own copy of Option object. This will help
  1931. to give custom option for each RequestGroup.
  1932. addTorrentFile command now takes options.
  1933. * src/AbstractCommand.cc
  1934. * src/AbstractCommand.h
  1935. * src/AbstractProxyRequestCommand.cc
  1936. * src/ActivePeerConnectionCommand.cc
  1937. * src/ActivePeerConnectionCommand.h
  1938. * src/AdaptiveURISelector.cc
  1939. * src/BtCheckIntegrityEntry.cc
  1940. * src/BtDependency.cc
  1941. * src/BtDependency.h
  1942. * src/BtFileAllocationEntry.cc
  1943. * src/BtPostDownloadHandler.cc
  1944. * src/CheckIntegrityEntry.cc
  1945. * src/DownloadCommand.cc
  1946. * src/FtpDownloadCommand.cc
  1947. * src/FtpFinishDownloadCommand.cc
  1948. * src/FtpInitiateConnectionCommand.cc
  1949. * src/FtpNegotiationCommand.cc
  1950. * src/HttpInitiateConnectionCommand.cc
  1951. * src/HttpRequestCommand.cc
  1952. * src/HttpResponseCommand.cc
  1953. * src/HttpSkipResponseCommand.cc
  1954. * src/InitiateConnectionCommand.cc
  1955. * src/InitiateConnectionCommandFactory.cc
  1956. * src/InitiatorMSEHandshakeCommand.cc
  1957. * src/InitiatorMSEHandshakeCommand.h
  1958. * src/Metalink2RequestGroup.cc
  1959. * src/Metalink2RequestGroup.h
  1960. * src/MetalinkPostDownloadHandler.cc
  1961. * src/MultiUrlRequestInfo.cc
  1962. * src/MultiUrlRequestInfo.h
  1963. * src/PeerAbstractCommand.cc
  1964. * src/PeerInteractionCommand.cc
  1965. * src/PeerInteractionCommand.h
  1966. * src/PeerReceiveHandshakeCommand.cc
  1967. * src/PeerReceiveHandshakeCommand.h
  1968. * src/RequestGroup.cc
  1969. * src/RequestGroup.h
  1970. * src/TrackerWatcherCommand.cc
  1971. * src/TrackerWatcherCommand.h
  1972. * src/XmlRpcMethod.cc
  1973. * src/XmlRpcMethod.h
  1974. * src/XmlRpcMethodImpl.cc
  1975. * src/download_helper.cc
  1976. * src/download_helper.h
  1977. * src/main.cc
  1978. * test/BtDependencyTest.cc
  1979. * test/BtPostDownloadHandlerTest.cc
  1980. * test/DefaultBtMessageDispatcherTest.cc
  1981. * test/DownloadHandlerFactoryTest.cc
  1982. * test/DownloadHelperTest.cc
  1983. * test/Metalink2RequestGroupTest.cc
  1984. * test/MetalinkPostDownloadHandlerTest.cc
  1985. * test/RequestGroupManTest.cc
  1986. * test/RequestGroupTest.cc
  1987. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1988. Added tellActiveStatus xml-rpc command which reports download
  1989. status of active downloads.
  1990. * src/XmlRpcMethodFactory.cc
  1991. * src/XmlRpcMethodImpl.cc
  1992. * src/XmlRpcMethodImpl.h
  1993. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. Added addTorrentFile xml-rpc command which receives uploaded
  1995. torrent file and add download for it.
  1996. * src/RequestGroupMan.cc
  1997. * src/XmlRpcMethodFactory.cc
  1998. * src/XmlRpcMethodImpl.cc
  1999. * src/XmlRpcMethodImpl.h
  2000. * src/download_helper.cc
  2001. * src/download_helper.h
  2002. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. Added remove xml-rpc command which removes specified download.
  2004. There is a known issue: the removed unfinished downloads are
  2005. reported ERR when aria2 exits. They should be reported as INPR.
  2006. * src/RequestGroupMan.cc
  2007. * src/RequestGroupMan.h
  2008. * src/XmlRpcMethodFactory.cc
  2009. * src/XmlRpcMethodImpl.cc
  2010. * src/XmlRpcMethodImpl.h
  2011. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2012. If --enable-http-server is enabled, don't stop aria2 when all
  2013. download finished and don't quit when no files to download at
  2014. start up.
  2015. * src/RequestGroupMan.cc
  2016. * src/main.cc
  2017. * src/option_processing.cc
  2018. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. Added missing AM_CONDITIONAL
  2020. * configure.ac
  2021. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Added xml-rpc functionality. Currently only addURI commad is
  2023. supported. To enable xml-rpc, run aria2 with
  2024. --enable-http-server. This option name is temporal and will be
  2025. changed. The feature that reports download progress in html format
  2026. is temporarily disabled.
  2027. * src/HttpServer.cc
  2028. * src/HttpServer.h
  2029. * src/HttpServerBodyCommand.cc
  2030. * src/HttpServerBodyCommand.h
  2031. * src/HttpServerCommand.cc
  2032. * src/HttpServerResponseCommand.cc
  2033. * src/Makefile.am
  2034. * src/OptionParser.cc
  2035. * src/OptionParser.h
  2036. * src/RequestGroupMan.cc
  2037. * src/RequestGroupMan.h
  2038. * src/XmlRpcMethod.cc
  2039. * src/XmlRpcMethod.h
  2040. * src/XmlRpcMethodFactory.cc
  2041. * src/XmlRpcMethodFactory.h
  2042. * src/XmlRpcMethodImpl.cc
  2043. * src/XmlRpcMethodImpl.h
  2044. * src/download_helper.cc
  2045. * src/download_helper.h
  2046. * test/Makefile.am
  2047. * test/XmlRpcMethodTest.cc
  2048. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2049. Added xml-rpc request parser. The supported value types are:
  2050. i4/int, string, double, struct, array, base64. Currently only
  2051. libxml2 version is provided.
  2052. * src/Xml2XmlRpcRequestProcessor.cc
  2053. * src/Xml2XmlRpcRequestProcessor.h
  2054. * src/XmlRpcElements.cc
  2055. * src/XmlRpcElements.h
  2056. * src/XmlRpcRequest.h
  2057. * src/XmlRpcRequestParserController.cc
  2058. * src/XmlRpcRequestParserController.h
  2059. * src/XmlRpcRequestParserState.h
  2060. * src/XmlRpcRequestParserStateImpl.cc
  2061. * src/XmlRpcRequestParserStateImpl.h
  2062. * src/XmlRpcRequestParserStateMachine.cc
  2063. * src/XmlRpcRequestParserStateMachine.h
  2064. * src/XmlRpcRequestProcessor.h
  2065. * test/XmlRpcRequestParserControllerTest.cc
  2066. * test/XmlRpcRequestProcessorTest.cc
  2067. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2068. * Release 1.3.3
  2069. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Fixed compile error since r1202.
  2071. * src/ExpatMetalinkProcessor.cc
  2072. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Updated Ukrainian, Russian and Simplified Chinese
  2074. translations. Thanks to all translators.
  2075. * po/ru.po
  2076. * po/uk.po
  2077. * po/zh_CN.po
  2078. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2079. Pass reference of Option object instead of pointer.
  2080. * src/download_helper.cc
  2081. * src/download_helper.h
  2082. * src/main.cc
  2083. * test/DownloadHelperTest.cc
  2084. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2085. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2086. from option directly. Instead, get them from RequestGroup.
  2087. * src/ActivePeerConnectionCommand.cc
  2088. * src/ActivePeerConnectionCommand.h
  2089. * src/PeerReceiveHandshakeCommand.cc
  2090. * src/RequestGroup.h
  2091. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Removed unused uploadLimitCheck and uploadLimit from
  2093. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2094. PeerInteractionCommand.
  2095. * src/PeerAbstractCommand.cc
  2096. * src/PeerAbstractCommand.h
  2097. * src/PeerInteractionCommand.cc
  2098. * src/PeerInteractionCommand.h
  2099. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Fixed broken file renaming feature since r1202.
  2101. * src/FtpNegotiationCommand.cc
  2102. * src/FtpNegotiationCommand.h
  2103. * src/HttpResponseCommand.cc
  2104. * src/RequestGroup.cc
  2105. * src/RequestGroup.h
  2106. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Removed unused debug log
  2108. * src/SocketCore.cc
  2109. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Generated configure and Makefile.in using autoconf 2.63 and
  2111. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2112. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2113. * configure.ac
  2114. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. Moved piece statistics stuff to new PieceStatMan class.
  2116. Refactored PieceSelector interface.
  2117. * src/DefaultPieceStorage.cc
  2118. * src/DefaultPieceStorage.h
  2119. * src/LongestSequencePieceSelector.cc
  2120. * src/LongestSequencePieceSelector.h
  2121. * src/Makefile.am
  2122. * src/PieceSelector.h
  2123. * src/PieceStatMan.cc
  2124. * src/PieceStatMan.h
  2125. * src/RarestPieceSelector.cc
  2126. * src/RarestPieceSelector.h
  2127. * src/RequestGroup.cc
  2128. * test/DefaultPieceStorageTest.cc
  2129. * test/InOrderPieceSelector.h
  2130. * test/Makefile.am
  2131. * test/PieceStatManTest.cc
  2132. * test/RarestPieceSelectorTest.cc
  2133. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Added static member _protocolFamily to SocketCore. By default,
  2135. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2136. address. Sometime SocketCore::bind() and
  2137. SocketCore::establishConnection() use difference protocl family
  2138. and latter cannot connect to former. To avoid this situation, we
  2139. limit protocol family to AF_INET for unit tests.
  2140. * src/SocketCore.cc
  2141. * src/SocketCore.h
  2142. * test/AllTest.cc
  2143. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. Avoid std::bad_alloc for negative bencode string length.
  2145. * src/bencode.cc
  2146. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Supported segmented downloading with chunked transfer encoding and
  2148. content-length.
  2149. * src/DownloadCommand.cc
  2150. * src/HttpResponseCommand.cc
  2151. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Bump up version number to 1.3.3
  2153. * configure.ac
  2154. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2156. from 4096 to 65536 (for insanely large ftp login banners)
  2157. * src/FtpConnection.h
  2158. * test/FtpConnectionTest.cc
  2159. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. In DefaultBtContext::getActualBasePath(), return first
  2161. FileEntry::getPath() for single file torrent.
  2162. * src/DefaultBtContext.cc
  2163. * test/DefaultBtContextTest.cc
  2164. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2166. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2167. Removed _directIOAllowed member from DiskWriter.
  2168. * src/AbstractDiskWriter.cc
  2169. * src/AbstractDiskWriter.h
  2170. * src/AbstractSingleDiskAdaptor.cc
  2171. * src/AbstractSingleDiskAdaptor.h
  2172. * src/BinaryStream.h
  2173. * src/ByteArrayDiskWriter.h
  2174. * src/DefaultPieceStorage.cc
  2175. * src/DiskWriter.h
  2176. * src/MultiDiskAdaptor.cc
  2177. * src/MultiDiskAdaptor.h
  2178. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Now the constructor of AbstractDiskWriter takes filename as an
  2180. argument and filename argument is removed from openFile(),
  2181. initAndOpenFile(), openExistingFile() interface. storeDir member
  2182. and its accessor functions are removed from DiskAdaptor because it
  2183. is not used anymore. size() member function of DefaultDiskWriter,
  2184. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2185. opening file.
  2186. * src/AbstractDiskWriter.cc
  2187. * src/AbstractDiskWriter.h
  2188. * src/AbstractSingleDiskAdaptor.cc
  2189. * src/AbstractSingleDiskAdaptor.h
  2190. * src/ByteArrayDiskWriter.cc
  2191. * src/ByteArrayDiskWriter.h
  2192. * src/ByteArrayDiskWriterFactory.cc
  2193. * src/ByteArrayDiskWriterFactory.h
  2194. * src/DefaultDiskWriter.cc
  2195. * src/DefaultDiskWriter.h
  2196. * src/DefaultDiskWriterFactory.cc
  2197. * src/DefaultDiskWriterFactory.h
  2198. * src/DefaultPieceStorage.cc
  2199. * src/DirectDiskAdaptor.cc
  2200. * src/DirectDiskAdaptor.h
  2201. * src/DiskAdaptor.h
  2202. * src/DiskWriter.h
  2203. * src/DiskWriterFactory.h
  2204. * src/MessageDigestHelper.cc
  2205. * src/MultiDiskAdaptor.cc
  2206. * src/RequestGroup.cc
  2207. * src/UnknownLengthPieceStorage.cc
  2208. * src/Util.cc
  2209. * test/DefaultDiskWriterTest.cc
  2210. * test/DirectDiskAdaptorTest.cc
  2211. * test/FallocFileAllocationIteratorTest.cc
  2212. * test/MessageDigestHelperTest.cc
  2213. * test/MetalinkProcessorTest.cc
  2214. * test/MultiDiskAdaptorTest.cc
  2215. * test/MultiFileAllocationIteratorTest.cc
  2216. * test/SingleFileAllocationIteratorTest.cc
  2217. * test/UtilTest.cc
  2218. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Fixed the bug that aria2 aborts when --select-file is used. This
  2220. bug was introduced in r1199.
  2221. * src/MultiDiskAdaptor.cc
  2222. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Code cleanup
  2224. * test/MockPieceStorage.cc
  2225. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Fixed the bug that read-only file with wrong file size will cause
  2227. error because it cannot be truncated to the correct size. Now if
  2228. file size is different than the expected one, re-open file in
  2229. writable mode.
  2230. * src/AbstractSingleDiskAdaptor.cc
  2231. * src/AbstractSingleDiskAdaptor.h
  2232. * src/BtCheckIntegrityEntry.cc
  2233. * src/DiskAdaptor.h
  2234. * src/MultiDiskAdaptor.h
  2235. * src/RequestGroup.cc
  2236. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Fixed the bug that with --check-integrity option aria2 reports
  2238. downloaded file size is 0 even if some parts of file is correctly
  2239. downloaded. This bug is reproducible for the download that a file
  2240. includes last piece is missing. This bug doesn't reveal for
  2241. single-torrent with file allocation on.
  2242. * src/IteratableChecksumValidator.cc
  2243. * test/IteratableChecksumValidatorTest.cc
  2244. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2245. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2246. * src/RequestGroupMan.cc
  2247. * src/AdaptiveURISelector.cc
  2248. * src/AdaptiveURISelector.h
  2249. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. * Release 1.3.2
  2251. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Updated README
  2253. * README
  2254. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Updated Ukrainian translations. Thanks to Alexander10.
  2256. * po/uk.po
  2257. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Code cleanup
  2259. * src/MetalinkParserStateMachine.cc
  2260. * src/MetalinkParserStateMachine.h
  2261. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2263. and expat simultaneously, MetalinkProcessor is now not base class
  2264. and it is directly implemented in XML2SAXMetalinkProcessor and
  2265. ExpatMetalinkProcessor.
  2266. * src/ExpatMetalinkProcessor.cc
  2267. * src/ExpatMetalinkProcessor.h
  2268. * src/Makefile.am
  2269. * src/MetalinkHelper.cc
  2270. * src/MetalinkProcessor.h
  2271. * src/MetalinkProcessorFactory.cc: Removed.
  2272. * src/MetalinkProcessorFactory.h: Removed
  2273. * src/XML2SAXMetalinkProcessor.cc
  2274. * src/XML2SAXMetalinkProcessor.h
  2275. * test/MetalinkProcessorTest.cc
  2276. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Bump up version number to 1.3.2
  2278. * configure.ac
  2279. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Added missing file.
  2281. * test/Makefile.am
  2282. * test/url-list-singleFileEndsWithSlash.torrent
  2283. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2285. request.
  2286. * src/AnnounceList.cc
  2287. * src/AnnounceList.h
  2288. * src/BDE.cc: Added
  2289. * src/BDE.h: Added
  2290. * src/DHTAbstractMessage.cc
  2291. * src/DHTAbstractMessage.h
  2292. * src/DHTAnnouncePeerMessage.cc
  2293. * src/DHTAnnouncePeerMessage.h
  2294. * src/DHTAnnouncePeerReplyMessage.cc
  2295. * src/DHTAnnouncePeerReplyMessage.h
  2296. * src/DHTFindNodeMessage.cc
  2297. * src/DHTFindNodeMessage.h
  2298. * src/DHTFindNodeReplyMessage.cc
  2299. * src/DHTFindNodeReplyMessage.h
  2300. * src/DHTGetPeersMessage.cc
  2301. * src/DHTGetPeersMessage.h
  2302. * src/DHTGetPeersReplyMessage.cc
  2303. * src/DHTGetPeersReplyMessage.h
  2304. * src/DHTMessageFactory.h
  2305. * src/DHTMessageFactoryImpl.cc
  2306. * src/DHTMessageFactoryImpl.h
  2307. * src/DHTMessageReceiver.cc
  2308. * src/DHTMessageTracker.cc
  2309. * src/DHTMessageTracker.h
  2310. * src/DHTPingMessage.cc
  2311. * src/DHTPingMessage.h
  2312. * src/DHTPingReplyMessage.cc
  2313. * src/DHTPingReplyMessage.h
  2314. * src/DHTQueryMessage.cc
  2315. * src/DHTQueryMessage.h
  2316. * src/DHTResponseMessage.cc
  2317. * src/DHTResponseMessage.h
  2318. * src/DefaultBtAnnounce.cc
  2319. * src/DefaultBtContext.cc
  2320. * src/DefaultBtContext.h
  2321. * src/HandshakeExtensionMessage.cc
  2322. * src/Makefile.am
  2323. * src/PeerListProcessor.h
  2324. * src/UTPexExtensionMessage.cc
  2325. * src/bencode.cc
  2326. * src/bencode.h
  2327. * test/AnnounceListTest.cc
  2328. * test/BDETest.cc: Added
  2329. * test/BencodeTest.cc
  2330. * test/DHTAnnouncePeerMessageTest.cc
  2331. * test/DHTAnnouncePeerReplyMessageTest.cc
  2332. * test/DHTFindNodeMessageTest.cc
  2333. * test/DHTFindNodeReplyMessageTest.cc
  2334. * test/DHTGetPeersMessageTest.cc
  2335. * test/DHTGetPeersReplyMessageTest.cc
  2336. * test/DHTMessageFactoryImplTest.cc
  2337. * test/DHTMessageTrackerTest.cc
  2338. * test/DHTPingMessageTest.cc
  2339. * test/DHTPingReplyMessageTest.cc
  2340. * test/Makefile.am
  2341. * test/MockDHTMessageFactory.h
  2342. * test/PeerListProcessorTest.cc
  2343. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2344. Use url-list (web-seeding) only for single-file torrent. This is
  2345. basically the same behavior with Metalink file with torrent and
  2346. URIs.
  2347. * src/RequestGroup.cc
  2348. * src/DefaultBtContext.cc
  2349. * test/DefaultBtContextTest.cc
  2350. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Rewritten expr
  2352. * src/array_fun.h
  2353. * test/array_funTest.cc
  2354. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2355. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2356. * src/DefaultBtMessageDispatcher.cc
  2357. * src/a2algo.h
  2358. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Removed ExtendedMessagingAware. Instead of using inheritance,
  2360. added ExtensionMessageRegistry and it is passed to
  2361. DefaultExtensionMessageFactory.
  2362. * src/DefaultBtInteractive.cc
  2363. * src/DefaultBtInteractive.h
  2364. * src/DefaultExtensionMessageFactory.cc
  2365. * src/DefaultExtensionMessageFactory.h
  2366. * src/ExtendedMessagingAware.h: Removed.
  2367. * src/ExtensionMessageFactory.h
  2368. * src/ExtensionMessageRegistry.h: Added.
  2369. * src/Makefile.am
  2370. * src/PeerInteractionCommand.cc
  2371. * test/DefaultExtensionMessageFactoryTest.cc
  2372. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2373. Fixed typo in log messages
  2374. * src/MSEHandshake.cc
  2375. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2376. Fixed the bug that prevents torrent download from finishing. The
  2377. bug doesn't reveal for all torrents. The torrents affected this
  2378. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2379. of pieces.
  2380. * src/bitfield.h
  2381. * test/bitfieldTest.cc
  2382. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Code cleanup
  2384. * src/PeerListProcessor.h
  2385. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2386. Removed RequestGroupAware
  2387. * src/AbstractCommand.cc
  2388. * src/AbstractCommand.h
  2389. * src/ActivePeerConnectionCommand.cc
  2390. * src/ActivePeerConnectionCommand.h
  2391. * src/DHTGetPeersCommand.cc
  2392. * src/DHTGetPeersCommand.h
  2393. * src/InitiatorMSEHandshakeCommand.cc
  2394. * src/InitiatorMSEHandshakeCommand.h
  2395. * src/Makefile.am
  2396. * src/PeerInitiateConnectionCommand.cc
  2397. * src/PeerInitiateConnectionCommand.h
  2398. * src/PeerInteractionCommand.cc
  2399. * src/PeerInteractionCommand.h
  2400. * src/RealtimeCommand.cc
  2401. * src/RealtimeCommand.h
  2402. * src/RequestGroupAware.cc: Removed
  2403. * src/RequestGroupAware.h: Removed
  2404. * src/SeedCheckCommand.cc
  2405. * src/SeedCheckCommand.h
  2406. * src/SleepCommand.cc
  2407. * src/TrackerWatcherCommand.cc
  2408. * src/TrackerWatcherCommand.h
  2409. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Rewritten PeerListProcessor
  2411. * src/PeerListProcessor.h
  2412. * src/CompactPeerListProcessor.h: Removed
  2413. * src/CompactPeerListProcessor.cc: Removed
  2414. * src/DelegatingPeerListProcessor.cc: Removed.
  2415. * src/DefaultBtAnnounce.cc
  2416. * src/Makefile.am
  2417. * src/UTPexExtensionMessage.cc
  2418. * src/DefaultPeerListProcessor.h: Removed.
  2419. * src/DefaultPeerListProcessor.cc: Removed.
  2420. * src/DelegatingPeerListProcessor.h: Removed.
  2421. * test/Makefile.am
  2422. * test/PeerListProcessorTest.cc
  2423. * test/DefaultPeerListProcessorTest.cc: Removed.
  2424. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Rewritten RequestGroupMan::calculateStat()
  2426. * src/RequestGroupMan.cc
  2427. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2428. Removed unnecessary virtual destructor for Request class.
  2429. * src/Request.cc
  2430. * src/Request.h
  2431. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Avoid dynamic_pointer_cast.
  2433. * src/DHTGetPeersCommand.cc
  2434. * src/DHTGetPeersCommand.h
  2435. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2437. BtEvent.
  2438. * src/AbstractBtEventListener.h: Removed.
  2439. * src/AbstractBtMessage.cc
  2440. * src/AbstractBtMessage.h
  2441. * src/BtAbortOutstandingRequestEvent.h
  2442. * src/BtCancelSendingPieceEvent.h
  2443. * src/BtChokedEvent.h: Removed.
  2444. * src/BtChokingEvent.h
  2445. * src/BtEvent.h: Removed
  2446. * src/BtEventListener.h: Removed.
  2447. * src/BtMessage.h
  2448. * src/BtPieceMessage.cc
  2449. * src/BtPieceMessage.h
  2450. * src/BtRequestMessage.cc
  2451. * src/BtRequestMessage.h
  2452. * src/DefaultBtMessageDispatcher.cc
  2453. * src/Makefile.am
  2454. * src/a2functional.h
  2455. * test/BtPieceMessageTest.cc
  2456. * test/BtRequestMessageTest.cc
  2457. * test/DefaultBtMessageDispatcherTest.cc
  2458. * test/MockBtMessage.h
  2459. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2460. Code cleanup
  2461. * src/RequestGroupMan.cc
  2462. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Code cleanup
  2464. * src/DownloadCommand.cc
  2465. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2466. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2467. byte.
  2468. * src/DownloadCommand.cc
  2469. * src/bitfield.h
  2470. * test/bitfieldTest.cc
  2471. Fixed the bug that causes infinite loop if broken web server
  2472. returns chunked response without last "0" chunk-size marker and
  2473. closes connection.
  2474. * src/DownloadCommand.cc
  2475. Instantiate properly configured HttpDownloadCommand for
  2476. non-resumable downlaods.
  2477. * src/HttpResponseCommand.cc
  2478. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2479. Rewritten array operation functions.
  2480. * src/BitfieldMan.cc
  2481. * src/array_fun.h
  2482. * test/array_funTest.cc
  2483. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Removed unused variable 'query'
  2485. * src/Request.cc
  2486. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2487. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2488. accidentally set to false in r1162.
  2489. * configure.ac
  2490. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2491. Code cleanup
  2492. * src/BNode.cc
  2493. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2494. Increase prefixLength for the bucket which doesn't own local node
  2495. ID when splitting bucket.
  2496. * src/DHTBucket.cc
  2497. * test/DHTBucketTest.cc
  2498. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. * Release 1.3.1
  2500. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Bump up version number to 1.3.1
  2502. * configure.ac
  2503. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. Removed unused variable checkPoint. Also removed include directive
  2505. for TimeA2.h.
  2506. * src/SeedCheckCommand.h
  2507. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2508. Fixed the bug that upload limit exceeds the value specified in
  2509. --seed-ratio option depending on the timing of the execution of
  2510. SeedCheckCommand.
  2511. * src/SeedCheckCommand.cc
  2512. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Fixed the bug that removed peer's session upload/download length
  2514. are counted twice in _cachedTransferStat before it is
  2515. re-calculated. This affected the calculation of shara ratio,
  2516. resulting aria2 wrongly determines that specified share ratio is
  2517. reached. Also fixed the typo in calculateStatFor function name.
  2518. * src/BtSetup.cc
  2519. * src/DefaultPeerStorage.cc
  2520. * src/ShareRatioSeedCriteria.h
  2521. * test/ShareRatioSeedCriteriaTest.cc
  2522. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2523. * Release 1.3.0
  2524. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2526. Nynorsk translations. Thanks to all translators.
  2527. * po/es.po
  2528. * po/ja.po
  2529. * po/nn.po
  2530. * po/ru.po
  2531. * po/uk.po
  2532. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Rewritten isInRange()
  2534. * src/DHTBucket.cc
  2535. * test/DHTBucketTest.cc
  2536. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Fixed typo
  2538. * doc/aria2c.1.txt
  2539. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2540. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2541. malloc/realloc is not used.
  2542. * src/configure.ac
  2543. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2545. char* bitfield instead of stl container for efficiency.
  2546. PieceSelector::select now takes this
  2547. bitfield. RarestPieceSelector::select now also performs
  2548. efficiently for this change. bitfield namespace is introduced and
  2549. it has several helper functions to handle basic bitfield
  2550. operations such as test, count set bits, etc.
  2551. * src/BitfieldMan.cc
  2552. * src/BitfieldMan.h
  2553. * src/DefaultBtRequestFactory.cc
  2554. * src/DefaultPieceStorage.cc
  2555. * src/DefaultPieceStorage.h
  2556. * src/LongestSequencePieceSelector.cc
  2557. * src/LongestSequencePieceSelector.h
  2558. * src/Makefile.am
  2559. * src/Piece.cc
  2560. * src/Piece.h
  2561. * src/PieceSelector.h
  2562. * src/RarestPieceSelector.cc
  2563. * src/RarestPieceSelector.h
  2564. * src/Util.cc
  2565. * src/Util.h
  2566. * src/bitfield.h
  2567. * test/BitfieldManTest.cc
  2568. * test/LongestSequencePieceSelectorTest.cc
  2569. * test/Makefile.am
  2570. * test/RarestPieceSelectorTest.cc
  2571. * test/UtilTest.cc
  2572. * test/bitfieldTest.cc
  2573. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Made accepted socket non-block.
  2575. * src/FtpNegotiationCommand.cc
  2576. * src/HttpListenCommand.cc
  2577. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2579. * src/AbstractSingleDiskAdaptor.cc
  2580. * src/DefaultPieceStorage.cc
  2581. * src/DiskAdaptor.h
  2582. * src/DiskAdaptor.h
  2583. * src/MultiFileAllocationIterator.cc
  2584. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2585. Run
  2586. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2587. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2588. it doesn't need to be called every time when
  2589. DefaultBtInteractive::doInteractionProcessing() is called.
  2590. * src/DefaultBtInteractive.cc
  2591. * src/DefaultBtInteractive.h
  2592. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2593. Documented 'falloc' in man page.
  2594. * doc/aria2c.1.txt
  2595. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. Updated doc
  2597. * src/usage_text.h
  2598. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2600. allocation mode uses posix_fallocate() system call to allocate
  2601. file on disk. If you are using newer file systems such as ext4
  2602. (with extents support), btrfs or xfs, 'falloc' is your best
  2603. choice. It allocates large(few GiB) files almost instantly. Don't
  2604. use 'falloc' with legacy file systems such as ext3 because it
  2605. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2606. until allocation finishes. 'falloc' may not be available if your
  2607. system doesn't have posix_fallocate() system call.
  2608. * configure.ac
  2609. * src/AbstractDiskWriter.cc
  2610. * src/AbstractDiskWriter.h
  2611. * src/AbstractSingleDiskAdaptor.cc
  2612. * src/BinaryStream.h
  2613. * src/BtCheckIntegrityEntry.cc
  2614. * src/ByteArrayDiskWriter.h
  2615. * src/CheckIntegrityEntry.cc
  2616. * src/CheckIntegrityEntry.h
  2617. * src/DefaultPieceStorage.cc
  2618. * src/DiskAdaptor.cc
  2619. * src/DiskAdaptor.h
  2620. * src/DiskWriter.h
  2621. * src/FallocFileAllocationIterator.cc
  2622. * src/FallocFileAllocationIterator.h
  2623. * src/FileAllocationEntry.cc
  2624. * src/FileAllocationEntry.h
  2625. * src/Makefile.am
  2626. * src/MultiFileAllocationIterator.cc
  2627. * src/MultiFileAllocationIterator.h
  2628. * src/OptionHandlerFactory.cc
  2629. * src/RequestGroup.cc
  2630. * src/StreamCheckIntegrityEntry.cc
  2631. * src/prefs.cc
  2632. * src/prefs.h
  2633. * src/usage_text.h
  2634. * test/FallocFileAllocationIteratorTest.cc
  2635. * test/Makefile.am
  2636. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Removed duplicate enableDirectIO() call.
  2638. * src/MultiFileAllocationIterator.cc
  2639. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2641. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2642. cost of std::rotate().
  2643. * src/RarestPieceSelector.cc
  2644. * src/RarestPieceSelector.h
  2645. * test/RarestPieceSelectorTest.cc
  2646. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2647. Updated usage doc for --bt-tracker-interval option.
  2648. * src/usage_text.h
  2649. * doc/aria2c.1.txt
  2650. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Documented --bt-tracker-interval option in man page.
  2652. * doc/aria2c.1.txt
  2653. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Added an option to specify the interval between tracker requests.
  2655. If non-zero value is specified, aria2 uses it and ignores the
  2656. interval value in the response of tracker. If zero is specified,
  2657. aria2 determines the inteval value based on the tarcker response
  2658. and download progress.
  2659. * src/DefaultBtAnnounce.cc
  2660. * src/DefaultBtAnnounce.h
  2661. * src/OptionHandlerFactory.cc
  2662. * src/RequestGroup.cc
  2663. * src/prefs.cc
  2664. * src/prefs.h
  2665. * src/usage_text.h
  2666. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Added operator+=, operator-=, operator-
  2668. * src/TransferStat.cc
  2669. * src/TransferStat.h
  2670. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2671. Refactored RarestPieceSelector to reduce CPU load, especially for
  2672. addPieceStats.
  2673. * src/RarestPieceSelector.cc
  2674. * src/RarestPieceSelector.h
  2675. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2676. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2677. getAllMissingBlockIndexes to reduce a call to
  2678. array_function_base::operator[].
  2679. * src/BitfieldMan.cc
  2680. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2681. Cached TransferStat/download speed to avoid to sum them up in each
  2682. call.
  2683. * src/DefaultPeerStorage.cc
  2684. * src/DefaultPeerStorage.h
  2685. * src/SegmentMan.cc
  2686. * src/SegmentMan.h
  2687. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2688. Typedefed cuid_t as int32_t in Command.h
  2689. * src/CUIDCounter.h
  2690. * src/Command.cc
  2691. * src/Command.h
  2692. * src/DownloadEngine.cc
  2693. * src/DownloadEngine.h
  2694. * src/PeerStat.h
  2695. * src/SegmentMan.cc
  2696. * src/SegmentMan.h
  2697. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Reduced the number of calls to PeerStorage::calculateStat() and
  2699. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2700. transfer rate.
  2701. * src/DefaultBtInteractive.cc
  2702. * src/DefaultBtMessageDispatcher.cc
  2703. * src/DefaultPeerStorage.cc
  2704. * src/DefaultPeerStorage.h
  2705. * src/DownloadCommand.cc
  2706. * src/DownloadEngine.cc
  2707. * src/PeerStorage.h
  2708. * src/SegmentMan.cc
  2709. * src/SegmentMan.h
  2710. * test/MockPeerStorage.h
  2711. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2712. Prepended _dir+"/" after joining path elements in torrent file.
  2713. * src/DefaultBtContext.cc
  2714. * test/DefaultBtContextTest.cc
  2715. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Added missing IndexBtMessageValidator.h
  2717. * src/Makefile.am
  2718. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2720. Chinese translations. Thank you for contributing our project.
  2721. * po/id.po
  2722. * po/it.po
  2723. * po/ru.po
  2724. * po/uk.po
  2725. * po/zh_CN.po
  2726. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2727. Updated README
  2728. * README
  2729. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2730. Bump up version number to 1.3.0
  2731. * configure.ac
  2732. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Updated doc
  2734. * src/DefaultBtContext.h
  2735. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2736. Slice/joinPath for name of single torrent.
  2737. * src/DefaultBtContext.cc
  2738. * test/DefaultBtContextTest.cc
  2739. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Updated man page: Documented --dry-run and --index-out
  2741. options. Changed the default value of --uri-selector and
  2742. --http-auth-challenge options. Removed --direct-file-mapping
  2743. option. Added example for --index-out
  2744. * doc/aria2c.1.txt
  2745. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2746. Updated TEXT_DRY_RUN
  2747. * src/usage_text.h
  2748. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2749. Changed the default value of --uri-selector option from 'inorder'
  2750. to 'feedback'
  2751. * src/OptionHandlerFactory.cc
  2752. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Included current URI in exception message.
  2754. * src/AbstractCommand.cc
  2755. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Renamed ServerStatURISelector as FeedbackURISelector.
  2757. * src/FeedbackURISelector.cc
  2758. * src/FeedbackURISelector.h
  2759. * src/Makefile.am
  2760. * src/RequestGroupMan.cc
  2761. * src/ServerStatURISelector.cc
  2762. * src/ServerStatURISelector.h
  2763. * test/FeedbackURISelectorTest.cc
  2764. * test/Makefile.am
  2765. * test/ServerStatURISelectorTest.cc
  2766. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2768. all URIs are tested and their timeout is not reached.
  2769. * src/AdaptiveURISelector.cc
  2770. * src/AdaptiveURISelector.h
  2771. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Changed the default value of --http-auth-challenge option to false.
  2773. * src/OptionHandlerFactory.cc
  2774. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Reuse URIs when all unused URIs run out.
  2776. * src/OptionHandlerFactory.cc
  2777. * src/RequestGroup.cc
  2778. * src/prefs.cc
  2779. * src/prefs.h
  2780. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2782. and BtRejectMessage are derived from RangeBtMessage class.
  2783. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2784. derived from IndexBtMessage class. BtChokeMessage,
  2785. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2786. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2787. ZeroBtMessage class.
  2788. * src/AbstractBtMessage.cc
  2789. * src/AbstractBtMessage.h
  2790. * src/BtAllowedFastMessage.cc
  2791. * src/BtAllowedFastMessage.h
  2792. * src/BtAllowedFastMessageValidator.h: Removed
  2793. * src/BtBitfieldMessage.cc
  2794. * src/BtBitfieldMessage.h
  2795. * src/BtCancelMessage.cc
  2796. * src/BtCancelMessage.h
  2797. * src/BtCancelMessageValidator.h: Removed
  2798. * src/BtChokeMessage.cc
  2799. * src/BtChokeMessage.h
  2800. * src/BtExtendedMessage.cc
  2801. * src/BtExtendedMessage.h
  2802. * src/BtHandshakeMessage.cc
  2803. * src/BtHandshakeMessage.h
  2804. * src/BtHaveAllMessage.cc
  2805. * src/BtHaveAllMessage.h
  2806. * src/BtHaveMessage.cc
  2807. * src/BtHaveMessage.h
  2808. * src/BtHaveMessageValidator.h: Removed
  2809. * src/BtHaveNoneMessage.cc
  2810. * src/BtHaveNoneMessage.h
  2811. * src/BtInterestedMessage.cc
  2812. * src/BtInterestedMessage.h
  2813. * src/BtKeepAliveMessage.cc
  2814. * src/BtKeepAliveMessage.h
  2815. * src/BtNotInterestedMessage.cc
  2816. * src/BtNotInterestedMessage.h
  2817. * src/BtPieceMessage.cc
  2818. * src/BtPieceMessage.h
  2819. * src/BtPortMessage.cc
  2820. * src/BtPortMessage.h
  2821. * src/BtRejectMessage.cc
  2822. * src/BtRejectMessage.h
  2823. * src/BtRejectMessageValidator.h: Removed
  2824. * src/BtRequestMessage.cc
  2825. * src/BtRequestMessage.h
  2826. * src/BtRequestMessageValidator.h: Removed
  2827. * src/BtSuggestPieceMessage.cc
  2828. * src/BtSuggestPieceMessage.h
  2829. * src/BtSuggestPieceMessageValidator.h: Removed
  2830. * src/BtUnchokeMessage.cc
  2831. * src/BtUnchokeMessage.h
  2832. * src/DefaultBtMessageFactory.cc
  2833. * src/IndexBtMessage.cc
  2834. * src/IndexBtMessage.h
  2835. * src/IndexBtMessageValidator.h
  2836. * src/Makefile.am
  2837. * src/PeerMessageUtil.cc
  2838. * src/PeerMessageUtil.h
  2839. * src/RangeBtMessage.cc
  2840. * src/RangeBtMessage.h
  2841. * src/RangeBtMessageValidator.h
  2842. * src/SimpleBtMessage.cc
  2843. * src/SimpleBtMessage.h
  2844. * src/ZeroBtMessage.cc
  2845. * src/ZeroBtMessage.h
  2846. * test/BtRequestMessageTest.cc
  2847. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. Reverted usage_text.h to r1093 to avoid to lose translated
  2849. messages.
  2850. * src/usage_text.h
  2851. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2853. declared as non-const previously is now const and defined in class
  2854. definition.
  2855. * src/AbstractBtMessage.cc
  2856. * src/AbstractBtMessage.h
  2857. * src/BtAllowedFastMessage.cc
  2858. * src/BtAllowedFastMessage.h
  2859. * src/BtBitfieldMessage.h
  2860. * src/BtCancelMessage.cc
  2861. * src/BtCancelMessage.h
  2862. * src/BtChokeMessage.cc
  2863. * src/BtChokeMessage.h
  2864. * src/BtExtendedMessage.cc
  2865. * src/BtExtendedMessage.h
  2866. * src/BtHandshakeMessage.cc
  2867. * src/BtHandshakeMessage.h
  2868. * src/BtHaveAllMessage.cc
  2869. * src/BtHaveAllMessage.h
  2870. * src/BtHaveMessage.cc
  2871. * src/BtHaveMessage.h
  2872. * src/BtHaveNoneMessage.cc
  2873. * src/BtHaveNoneMessage.h
  2874. * src/BtInterestedMessage.cc
  2875. * src/BtInterestedMessage.h
  2876. * src/BtKeepAliveMessage.cc
  2877. * src/BtKeepAliveMessage.h
  2878. * src/BtMessage.h
  2879. * src/BtNotInterestedMessage.cc
  2880. * src/BtNotInterestedMessage.h
  2881. * src/BtPieceMessage.h
  2882. * src/BtPortMessage.cc
  2883. * src/BtPortMessage.h
  2884. * src/BtRejectMessage.cc
  2885. * src/BtRejectMessage.h
  2886. * src/BtRequestMessage.cc
  2887. * src/BtRequestMessage.h
  2888. * src/BtSuggestPieceMessage.cc
  2889. * src/BtSuggestPieceMessage.h
  2890. * src/BtUnchokeMessage.cc
  2891. * src/BtUnchokeMessage.h
  2892. * src/SimpleBtMessage.cc
  2893. * src/SimpleBtMessage.h
  2894. * test/MockBtMessage.h
  2895. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Use FileEntry::exists()
  2897. * src/MultiDiskAdaptor.cc
  2898. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2899. Added exists()
  2900. * src/FileEntry.cc
  2901. * src/FileEntry.h
  2902. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Added missing prefix dir.
  2904. * src/download_helper.cc
  2905. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2907. * src/CopyDiskAdaptor.cc: Removed
  2908. * src/CopyDiskAdaptor.h: Removed
  2909. * src/DefaultPieceStorage.cc
  2910. * src/Makefile.am
  2911. * src/OptionHandlerFactory.cc
  2912. * src/prefs.cc
  2913. * src/prefs.h
  2914. * src/usage_text.h
  2915. * test/CopyDiskAdaptorTest.cc: Removed
  2916. * test/Makefile.am
  2917. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Rewritten isSameFileBeingDownloaded()
  2919. * src/RequestGroupMan.cc
  2920. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Removed getName() from DownloadContext. getName() is declared in
  2922. BtContext.
  2923. * src/BtContext.h
  2924. * src/DownloadContext.h
  2925. * src/SingleFileDownloadContext.cc
  2926. * src/SingleFileDownloadContext.h
  2927. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2928. in AbstractSingleDiskAdaptor.
  2929. * src/AbstractSingleDiskAdaptor.h
  2930. * src/DiskAdaptor.h
  2931. * src/MultiDiskAdaptor.h
  2932. * src/RequestGroup.cc
  2933. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2934. MultiDiskAdaptor.
  2935. * src/DefaultPieceStorage.cc
  2936. * src/MultiDiskAdaptor.cc
  2937. * src/MultiDiskAdaptor.h
  2938. * test/MultiDiskAdaptorTest.cc
  2939. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2940. FileEntry::getPath() contains store(top level) directory to
  2941. simplify path handling operation. In the previous implementation,
  2942. store directory is concatenated to FileEntry::getPath() in
  2943. DownloadContext.
  2944. * src/BtDependency.cc
  2945. * src/BtPostDownloadHandler.cc
  2946. * src/CopyDiskAdaptor.cc
  2947. * src/DefaultBtContext.cc
  2948. * src/DirectDiskAdaptor.cc
  2949. * src/FileEntry.cc
  2950. * src/FileEntry.h
  2951. * src/FtpNegotiationCommand.cc
  2952. * src/HttpResponse.cc
  2953. * src/HttpResponseCommand.cc
  2954. * src/Metalink2RequestGroup.cc
  2955. * src/MultiDiskAdaptor.cc
  2956. * src/MultiDiskAdaptor.h
  2957. * src/MultiFileAllocationIterator.cc
  2958. * src/RequestGroup.cc
  2959. * src/SingleFileDownloadContext.cc
  2960. * src/SingleFileDownloadContext.h
  2961. * src/download_helper.cc
  2962. * test/BtDependencyTest.cc
  2963. * test/CopyDiskAdaptorTest.cc
  2964. * test/DefaultBtContextTest.cc
  2965. * test/DefaultBtProgressInfoFileTest.cc
  2966. * test/DirectDiskAdaptorTest.cc
  2967. * test/DownloadHelperTest.cc
  2968. * test/FileEntryTest.cc
  2969. * test/MultiDiskAdaptorTest.cc
  2970. * test/MultiFileAllocationIteratorTest.cc
  2971. * test/RequestGroupTest.cc
  2972. * test/SingleFileDownloadContextTest.cc
  2973. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Fixed compiler warning
  2975. * src/download_helper.cc
  2976. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2977. Throw exception if same infohash torrent is now downloading.
  2978. * src/RequestGroup.cc
  2979. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2980. Added --dry-run option. In this mode, aria2 just checks whether
  2981. the remote file is available and doesn't download data. This
  2982. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2983. are canceled in this mode.
  2984. * src/FtpNegotiationCommand.cc
  2985. * src/HttpResponseCommand.cc
  2986. * src/HttpResponseCommand.h
  2987. * src/OptionHandlerFactory.cc
  2988. * src/RequestGroup.cc
  2989. * src/RequestGroupMan.cc
  2990. * src/prefs.cc
  2991. * src/prefs.h
  2992. * src/usage_text.h
  2993. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2994. Fixed compiler waring
  2995. * test/UriListParserTest.cc
  2996. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Parse options in -i list using OptionParser.
  2998. * src/UriListParser.cc
  2999. * src/UriListParser.h
  3000. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3001. Don't reset URI in retry to avoid additional round trips because
  3002. of redirects.
  3003. * src/AbstractCommand.cc
  3004. * src/OptionHandlerFactory.cc
  3005. * src/prefs.cc
  3006. * src/prefs.h
  3007. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3008. Declared hide() in OptionHandler.
  3009. * src/NameMatchOptionHandler.h
  3010. * src/OptionHandler.h
  3011. * src/OptionHandlerImpl.h
  3012. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3013. Updated doc
  3014. * src/Peer.h
  3015. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3016. Added log message in setStatusInternal()
  3017. * src/ServerStat.cc
  3018. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3019. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3020. effectively exclude failed server.
  3021. * src/AbstractCommand.cc
  3022. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3023. Added --index-out option to specify each file path for torrent.
  3024. Here index shown in --show-files option is used to specify which
  3025. file path should be altered. For example, to change the file path
  3026. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3027. option multiple times: --index-out=1=aria2.tar.bz2
  3028. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3029. available. This option can be specified in -i list.
  3030. * src/DefaultBtContext.cc
  3031. * src/DefaultBtContext.h
  3032. * src/MultiDiskAdaptor.cc
  3033. * src/MultiDiskAdaptor.h
  3034. * src/MultiFileAllocationIterator.cc
  3035. * src/OptionHandlerFactory.cc
  3036. * src/OptionHandlerImpl.h
  3037. * src/Util.cc
  3038. * src/Util.h
  3039. * src/download_helper.cc
  3040. * src/prefs.cc
  3041. * src/prefs.h
  3042. * src/usage_text.h
  3043. * test/DefaultBtContextTest.cc
  3044. * test/MultiDiskAdaptorTest.cc
  3045. * test/MultiFileAllocationIteratorTest.cc
  3046. * test/UtilTest.cc
  3047. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3048. Use Util::pathJoin()
  3049. * src/MetalinkParserController.cc
  3050. * test/test.xml
  3051. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Use Util::pathJoin()
  3053. * src/DefaultBtContext.cc
  3054. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3055. Added Util::pathJoin()
  3056. * src/Util.h
  3057. * test/UtilTest.cc
  3058. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. Applied basename function to remove directory element in
  3060. content-disposition value.
  3061. Return empty string if content-disposition value is ".." or ".".
  3062. * src/Util.cc
  3063. * test/UtilTest.cc
  3064. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3065. Added --max-overall-download-limit in man page.
  3066. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3067. * doc/aria2c.1.txt
  3068. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Added --max-overall-download-limit option. Now --max-upload-limit
  3070. option is not ignored when --max-overall-upload-limit option has
  3071. non-zero value. aria2 checks download(upload) speed in the order:
  3072. first checks overall speed limit and if it is not exceeded, then
  3073. checks speed limit per download. Thus you can specify both
  3074. value. For example, set --max-overall-download-limit=1M and
  3075. --max-download-limit=500K to prevent from one download from eating
  3076. all overall speed limit.
  3077. * src/DefaultBtInteractive.cc
  3078. * src/DefaultBtInteractive.h
  3079. * src/DefaultBtMessageDispatcher.cc
  3080. * src/DefaultBtMessageDispatcher.h
  3081. * src/DownloadCommand.cc
  3082. * src/DownloadCommand.h
  3083. * src/FtpNegotiationCommand.cc
  3084. * src/HttpResponseCommand.cc
  3085. * src/OptionHandlerFactory.cc
  3086. * src/PeerInteractionCommand.cc
  3087. * src/RequestGroup.cc
  3088. * src/RequestGroup.h
  3089. * src/RequestGroupMan.cc
  3090. * src/RequestGroupMan.h
  3091. * src/prefs.cc
  3092. * src/prefs.h
  3093. * src/usage_text.h
  3094. * test/DefaultBtMessageDispatcherTest.cc
  3095. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3096. Documented select-file option in Input File section.
  3097. Documented --http-auth-challenge option.
  3098. * doc/aria2c.1.txt
  3099. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3100. Now select-file can be specified in the uri list(-i list).
  3101. * src/BtContext.cc
  3102. * src/BtContext.h
  3103. * src/RequestGroup.cc
  3104. * src/Sequence.h
  3105. * src/download_helper.cc
  3106. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3107. Made the upper value of --max-concurrent-downloads options unlimited.
  3108. * src/OptionHandlerFactory.cc
  3109. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3110. Fixed the bug that disk writer is not created even if it shares
  3111. same piece with the preceding file if the length of previous file
  3112. is 0.
  3113. * src/MultiDiskAdaptor.cc
  3114. * test/MultiDiskAdaptorTest.cc
  3115. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3116. In BitTorrent, Open files in read-only mode for hash check. After
  3117. that, re-open file in read/write mode only when the download is
  3118. not finished.
  3119. * src/AbstractDiskWriter.cc
  3120. * src/AbstractDiskWriter.h
  3121. * src/AbstractSingleDiskAdaptor.cc
  3122. * src/AbstractSingleDiskAdaptor.h
  3123. * src/BtCheckIntegrityEntry.cc
  3124. * src/DiskAdaptor.h
  3125. * src/DiskWriter.h
  3126. * src/MultiDiskAdaptor.cc
  3127. * src/MultiDiskAdaptor.h
  3128. * src/RequestGroup.cc
  3129. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3130. Added --http-auth-challenge option. If it is set to true(by
  3131. default), aria2 sends HTTP authorization header only when it is
  3132. requested by the server. If false is set, then authorization
  3133. header is always sent to the server. This is useful for servers
  3134. that don't respond 401 code when authentication is required.
  3135. There is an exception: if username and password are embedded in
  3136. URI, authorization header is always sent to the server regardless
  3137. of this option.
  3138. * src/AuthConfigFactory.cc
  3139. * src/HttpSkipResponseCommand.cc
  3140. * src/OptionHandlerFactory.cc
  3141. * src/prefs.cc
  3142. * src/prefs.h
  3143. * src/usage_text.h
  3144. * test/AuthConfigFactoryTest.cc
  3145. * test/HttpRequestTest.cc
  3146. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. * Release 1.2.0
  3148. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3150. Thanks to all translators.
  3151. * po/es.po
  3152. * po/ja.po
  3153. * po/ru.po
  3154. * po/uk.po
  3155. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3156. Call deleteSocketForReadCheck() before socket is closed.
  3157. * src/HttpListenCommand.cc
  3158. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3159. Defined virtual destructor for BObject.
  3160. * src/bencode.h
  3161. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3162. Rewritten BDE to make it efficient.
  3163. * src/bencode.cc
  3164. * src/bencode.h
  3165. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Removed function throw list.
  3167. * src/bencode.cc
  3168. * src/bencode.h
  3169. * test/BencodeTest.cc
  3170. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3171. Enclosed all URLs in double quotes in command-line examples.
  3172. * doc/aria2c.1.txt
  3173. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3174. Updated reference/see also section.
  3175. * README
  3176. * doc/aria2c.1.txt
  3177. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Reorganized man page based on man man-pages.
  3179. * doc/aria2c.1.txt
  3180. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3181. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3182. because same documents are available in man page. Added
  3183. References section.
  3184. * README
  3185. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3186. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3187. PERFORMANCE PROFILE section.
  3188. * doc/aria2c.1.txt
  3189. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3190. Rewritten the section for configuration file.
  3191. * README
  3192. * doc/aria2c.1.txt
  3193. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3194. Fixed the segmentation fault during execution of choking algorithm
  3195. in leecher state because of broken compare operator
  3196. implementation.
  3197. * src/BtLeecherStateChoke.cc
  3198. * src/BtLeecherStateChoke.h
  3199. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3200. Open file in binary mode.
  3201. * src/CookieStorage.cc
  3202. * src/DHTSetup.cc
  3203. * src/DHTUtil.cc
  3204. * src/Netrc.cc
  3205. * src/NsCookieParser.cc
  3206. * src/ProtocolDetector.cc
  3207. * src/RequestGroupMan.cc
  3208. * src/Signature.cc
  3209. * src/bencode.cc
  3210. * src/download_helper.cc
  3211. * src/option_processing.cc
  3212. * test/CookieParserTest.cc
  3213. * test/DefaultBtProgressInfoFileTest.cc
  3214. * test/FileTest.cc
  3215. * test/GZipDecoderTest.cc
  3216. * test/RequestGroupManTest.cc
  3217. * test/SignatureTest.cc
  3218. * test/SingleFileAllocationIteratorTest.cc
  3219. * test/UriListParserTest.cc
  3220. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3221. Removed operator[] because it is ambiguous with built-in []
  3222. operator.
  3223. * src/array_fun.h
  3224. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Fixed compile error
  3226. * src/OptionParser.cc
  3227. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3228. Added missing call to arrayWrapperConst
  3229. * test/array_funTest.cc
  3230. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3231. Use array_wrapper instead of array_ptr.
  3232. * src/DHTRoutingTableDeserializer.cc
  3233. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3234. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3235. * src/array_fun.h
  3236. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Added array_wrapper template.
  3238. * src/array_fun.h
  3239. * test/array_funTest.cc
  3240. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3241. Use operator T* of array_ptr.
  3242. * src/OptionParser.cc
  3243. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. Use localhost instead of 127.0.0.1
  3245. * test/FtpConnectionTest.cc
  3246. * test/MSEHandshakeTest.cc
  3247. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Added operator T*
  3249. * src/array_fun.h
  3250. * test/array_funTest.cc
  3251. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3252. Use dynamically allocated char array to detect memory access
  3253. violation.
  3254. * src/DHTRoutingTableDeserializer.cc
  3255. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3257. defined.
  3258. * src/PeerMessageUtil.cc
  3259. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3260. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3261. * configure.ac
  3262. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3263. Added a check to see struct sockaddr_in has sin_len member.
  3264. * configure.ac
  3265. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3266. Fixed buffer overrun.
  3267. * src/DHTRoutingTableDeserializer.cc
  3268. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Added LL for long long int constant.
  3270. * test/FtpConnectionTest.cc
  3271. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. Casted to unsigned int to suppress compiler warning on netbsd.
  3273. * src/BtRuntime.h
  3274. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3276. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3277. type time_t.
  3278. * src/SimpleLogger.cc
  3279. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3280. Added test for FtpConnection::receiveSizeResponse().
  3281. * test/FtpConnectionTest.cc
  3282. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Fix epoll error on the old kernel 2.6.8 or ealier.
  3284. * src/EpollEventPoll.cc
  3285. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Use Util::parseLLInt instead of sscanf for portability. The
  3287. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3288. * src/FtpConnection.cc
  3289. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3290. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3291. block. It should not filter anything.
  3292. * src/BitfieldMan.cc
  3293. * src/ConsoleStatCalc.cc
  3294. * test/BitfieldManTest.cc
  3295. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3296. Fixed the bug that the boolean options that don't take arguments
  3297. don't work.
  3298. * src/OptionHandlerImpl.h
  3299. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Fixed broken selected file BitTorrent download.
  3301. * src/MultiDiskAdaptor.cc
  3302. * test/MultiDiskAdaptorTest.cc
  3303. * test/MultiFileAllocationIteratorTest.cc
  3304. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3305. Fixed #define guard for EpollEventPoll
  3306. * src/EpollEventPoll.h
  3307. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3308. Wait 2 seconds. 1 second is sometimes not enough.
  3309. * test/TimeSeedCriteriaTest.cc
  3310. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Use localhost instead of 127.0.0.1.
  3312. * test/DHTConnectionImplTest.cc
  3313. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Suppressed compiler warning.
  3315. * src/AdaptiveURISelector.cc
  3316. * src/DefaultPieceStorage.cc
  3317. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Defined virtual destructor.
  3319. * src/MetalinkParserState.h
  3320. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Give NULL for second argument of getaddrinfo instead of "0".
  3322. * src/NameResolver.cc
  3323. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3324. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3325. included strptime doesn't parse data for this format.
  3326. * src/FtpConnection.cc
  3327. * test/FtpConnectionTest.cc
  3328. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3329. Removed tests giving -1 for unsigned argument.
  3330. * test/SingleFileDownloadContextTest.cc
  3331. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3332. Don't use sha256 in tests because it might not be supported by the
  3333. SSL library.
  3334. * test/MetalinkProcessorTest.cc
  3335. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3336. Removed tests giving -1 for unsigned argument.
  3337. * test/AlphaNumberDecoratorTest
  3338. * test/BitfieldManTest.cc
  3339. * test/DefaultBtContextTest.cc
  3340. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3341. Fixed compile error without libcares when epoll is available.
  3342. * src/EpollEventPoll.cc
  3343. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3344. Included fstream instead of iostream.
  3345. * test/SignatureTest.cc
  3346. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3347. Removed #include <algorithm>
  3348. * test/RequestGroupTest.cc
  3349. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3350. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3351. using RequestGroup::extractURIResult().
  3352. * src/AdaptiveURISelector.cc
  3353. * src/RequestGroup.cc
  3354. * src/RequestGroup.h
  3355. * test/RequestGroupTest.cc
  3356. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3357. Added tests for array_ptr.
  3358. * test/array_funTest.cc
  3359. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3360. Don't send ip parameter to a tracker if ip parameter is empty
  3361. string.
  3362. * src/DefaultBtAnnounce.cc
  3363. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3364. Adjusted line feed.
  3365. * src/version_usage.cc
  3366. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3367. Print tags, possible values when OptionHandlerException is caught.
  3368. * src/option_processing.cc
  3369. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3370. Changed the message for FatalException.
  3371. * src/OptionParser.cc
  3372. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3373. Documented --bt-external-ip option in man page. Updated man pages
  3374. for --proxy-method option.
  3375. * doc/aria2c.1.txt
  3376. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3377. Use GET method for FTP via HTTP proxy.
  3378. * src/FtpInitiateConnectionCommand.cc
  3379. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. Changed the default value of --proxy-method option from 'tunnel'
  3381. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3382. option.
  3383. * src/AbstractCommand.cc
  3384. * src/AbstractCommand.h
  3385. * src/FtpInitiateConnectionCommand.cc
  3386. * src/HttpDownloadCommand.cc
  3387. * src/HttpInitiateConnectionCommand.cc
  3388. * src/HttpInitiateConnectionCommand.h
  3389. * src/OptionHandlerFactory.cc
  3390. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3391. Initialized _logger
  3392. * src/SelectEventPoll.cc
  3393. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Defined a copy constructor for the same type.
  3395. * src/SharedHandle.h
  3396. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Added OptionParser::parseArg() which internally uses getopt_long
  3398. to parse command-line options. All command-line options are now
  3399. configured by OptionHandler. No manual editing of struct option*
  3400. is required any more.
  3401. * src/NameMatchOptionHandler.h
  3402. * src/OptionHandler.h
  3403. * src/OptionHandlerFactory.cc
  3404. * src/OptionHandlerImpl.h
  3405. * src/OptionParser.cc
  3406. * src/OptionParser.h
  3407. * src/array_fun.h
  3408. * src/main.cc
  3409. * src/option_processing.cc
  3410. * test/OptionHandlerTest.cc
  3411. * test/OptionParserTest.cc
  3412. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3413. Fixed configure error with --disable-epoll
  3414. * configure.ac
  3415. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. Fixed compile error when HAVE_EPOLL is not defined.
  3417. Fixed linker error on bigendian systems.
  3418. * src/SocketCore.cc
  3419. * src/SocketCore.h
  3420. * test/DefaultBtProgressInfoFileTest.cc
  3421. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3422. Added --bt-external-ip option. You can specify the external IP
  3423. address to report to a BitTorrent tracker. Although this function
  3424. is named 'external', it can accept any kind of IP addresses.
  3425. * src/DefaultBtAnnounce.cc
  3426. * src/OptionHandlerFactory.cc
  3427. * src/option_processing.cc
  3428. * src/prefs.cc
  3429. * src/prefs.h
  3430. * src/usage_text.h
  3431. * test/DefaultBtAnnounceTest.cc
  3432. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3433. Extracted the algorithm to find the longest incremental sequence
  3434. as max_sequence template.
  3435. * src/LongestSequencePieceSelector.cc
  3436. * src/a2algo.h
  3437. * test/Makefile.am
  3438. * test/a2algoTest.cc
  3439. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3440. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3441. * src/usage_text.h
  3442. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Updated doc for --uri-selector, --http-server-listen-port and
  3444. --enable-http-server option. Documented --event-poll option.
  3445. * doc/aria2c.1.txt
  3446. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3447. Updated doc for --enable-http-server.
  3448. * src/usage_text.h
  3449. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3450. Documented --http-server-listen-port and --enable-http-server in
  3451. man page.
  3452. * doc/aria2c.1.txt
  3453. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3454. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3455. translations. Thanks to all translators.
  3456. * po/es.po
  3457. * po/id.po
  3458. * po/it.po
  3459. * po/ru.po
  3460. * po/uk.po
  3461. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3462. Bump up version number to 1.2.0
  3463. * configure.ac
  3464. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3465. BtContext::getAnnounceTiers() now returns const reference.
  3466. * src/BtContext.h
  3467. * src/DefaultBtContext.cc
  3468. * src/DefaultBtContext.h
  3469. * test/MockBtContext.h
  3470. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3471. Change the number of retries for tracker request based on the
  3472. number of available tracker in a torrent file.
  3473. * src/TrackerWatcherCommand.cc
  3474. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3475. Added _maxTries property to RequestGroup and assign the option
  3476. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3477. RequestGroup::getMaxTries() instead of
  3478. Option::getAsInt(PREF_MAX_TRIES).
  3479. * src/AbstractCommand.cc
  3480. * src/RequestGroup.cc
  3481. * src/RequestGroup.h
  3482. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3483. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3484. Mandriva. I modified the patch: make RequestGroup have the
  3485. timeout value and AdaptiveURISelector directly modifies that
  3486. value.
  3487. * src/AbstractCommand.cc
  3488. * src/AdaptiveURISelector.cc
  3489. * src/AdaptiveURISelector.h
  3490. * src/FtpNegotiationCommand.cc
  3491. * src/RequestGroup.cc
  3492. * src/RequestGroup.h
  3493. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Fixed compiler warning
  3495. * test/IteratableChecksumValidatorTest.cc
  3496. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3498. integrated downloads. This PieceSelector subclass finds the
  3499. longest continuous sequence in the available missing pieces and
  3500. selects the last index of such sequence. This makes HTTP/FTP
  3501. connections less interrupted by the pieces obtained by BitTorrent
  3502. peers.
  3503. * src/DefaultPieceStorage.cc
  3504. * src/DefaultPieceStorage.h
  3505. * src/LongestSequencePieceSelector.cc
  3506. * src/LongestSequencePieceSelector.h
  3507. * src/Makefile.am
  3508. * src/PieceSelector.h
  3509. * src/RarestPieceSelector.h
  3510. * src/RequestGroup.cc
  3511. * test/BtDependencyTest.cc
  3512. * test/DefaultPieceStorageTest.cc
  3513. * test/IteratableChecksumValidatorTest.cc
  3514. * test/LongestSequencePieceSelectorTest.cc
  3515. * test/Makefile.am
  3516. * test/SegmentManTest.cc
  3517. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3518. Fixed the bug that the average speed is wrong in
  3519. http/ftp/BitTorrent integrated download. Only the download bytes
  3520. in BitTorrent were considered.
  3521. * src/RequestGroup.cc
  3522. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. Choose port for BitTorrent/DHT randomly from the specified range.
  3524. * src/DHTConnectionImpl.cc
  3525. * src/PeerListenCommand.cc
  3526. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3527. Send HTTP Authorization header only if it is requested by the
  3528. server(response 401). There are some exceptions. The authorization
  3529. header for proxy is always sent if it is available without request
  3530. by the server. If username/password is specified in the URI, it
  3531. is immediately sent to the server without request by the server.
  3532. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3533. SharedHandle<AuthConfig>().
  3534. NetrcAuthResolver::resolveAuthConfig() returns
  3535. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3536. * src/AbstractAuthResolver.cc
  3537. * src/AbstractProxyRequestCommand.cc
  3538. * src/AuthConfigFactory.cc
  3539. * src/AuthConfigFactory.h
  3540. * src/HttpConnection.cc
  3541. * src/HttpRequest.cc
  3542. * src/HttpRequest.h
  3543. * src/HttpResponse.cc
  3544. * src/HttpResponseCommand.cc
  3545. * src/HttpSkipResponseCommand.cc
  3546. * test/AuthConfigFactoryTest.cc
  3547. * test/HttpRequestTest.cc
  3548. * test/HttpResponseTest.cc
  3549. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3550. Remove leading "--" from help keyword and a substring after "="
  3551. from help keyword, so that one can query options by '-h--max-' or
  3552. '-hmax-peers=10'.
  3553. * src/option_processing.cc
  3554. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3555. Rewritten PStringVisitor and its implementation.
  3556. * src/PStringBuildVisitor.cc
  3557. * src/PStringBuildVisitor.h
  3558. * src/PStringDatum.h
  3559. * src/PStringNumLoop.h
  3560. * src/PStringSegment.cc
  3561. * src/PStringSegment.h
  3562. * src/PStringSelect.h
  3563. * src/PStringVisitor.h
  3564. * src/download_helper.cc
  3565. * test/PStringBuildVisitorTest.cc
  3566. * test/ParameterizedStringParserTest.cc
  3567. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3568. Persist connection between the built-in HTTP server and a client
  3569. if a client supports keep-alive. Fixed the bug that aria2 exits
  3570. when the HTTP server receives EOF from a client.
  3571. * src/HttpServer.cc
  3572. * src/HttpServer.h
  3573. * src/HttpServerCommand.cc
  3574. * src/HttpServerCommand.h
  3575. * src/HttpServerResponseCommand.cc
  3576. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3577. Added experimental built-in HTTP server. Currently, when a client
  3578. accesses to the server, it responds with the current download
  3579. progress. By default, it is disabled. To enable the server, give
  3580. --enable-http-server option. To change the default port number
  3581. for the server to listen to, use --http-server-listen-port option.
  3582. The response HTML is very simple and refreshes it self each 1
  3583. second. Because of this refresh, you see flicker in normal web
  3584. browser such as Firefox. I recommend to use console-based browser
  3585. such as elinks, w3m. To connect to the server, run 'elinks
  3586. http://localhost:6800/' while running aria2. Please replace port
  3587. number '6800'(which is default) with your preference.
  3588. * src/DownloadEngineFactory.cc
  3589. * src/HttpHeader.cc
  3590. * src/HttpHeader.h
  3591. * src/HttpHeaderProcessor.cc
  3592. * src/HttpHeaderProcessor.h
  3593. * src/HttpListenCommand.cc
  3594. * src/HttpListenCommand.h
  3595. * src/HttpServer.cc
  3596. * src/HttpServer.h
  3597. * src/HttpServerCommand.cc
  3598. * src/HttpServerCommand.h
  3599. * src/HttpServerResponseCommand.cc
  3600. * src/HttpServerResponseCommand.h
  3601. * src/Makefile.am
  3602. * src/OptionHandlerFactory.cc
  3603. * src/Util.cc
  3604. * src/Util.h
  3605. * src/help_tags.h
  3606. * src/option_processing.cc
  3607. * src/prefs.cc
  3608. * src/prefs.h
  3609. * src/usage_text.h
  3610. * test/HttpHeaderProcessorTest.cc
  3611. * test/UtilTest.cc
  3612. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3613. Removed.
  3614. * src/CheckIntegrityMan.cc
  3615. * src/FileAllocationMan.cc
  3616. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3617. Made (piece) hash check sequential for each RequestGroup because
  3618. simultaneous hash check is slower than sequential execution.
  3619. * src/CheckIntegrityCommand.cc
  3620. * src/CheckIntegrityDispatcherCommand.cc
  3621. * src/CheckIntegrityDispatcherCommand.h
  3622. * src/CheckIntegrityMan.h
  3623. * src/ConsoleStatCalc.cc
  3624. * src/DownloadCommand.cc
  3625. * src/DownloadEngine.cc
  3626. * src/DownloadEngine.h
  3627. * src/DownloadEngineFactory.cc
  3628. * src/Makefile.am
  3629. * src/Makefile.in
  3630. * src/RequestGroup.cc
  3631. * src/StatCalc.h
  3632. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3633. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3634. SequentialDispatcherCommand.
  3635. * src/FileAllocationDispatcherCommand.cc
  3636. * src/SequentialDispatcherCommand.h
  3637. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3638. Rewritten FileAllocationDispatcherCommand using brand new
  3639. SequentialDispatcherCommand.
  3640. * src/DownloadEngineFactory.cc
  3641. * src/FileAllocationCommand.cc
  3642. * src/FileAllocationDispatcherCommand.cc
  3643. * src/FileAllocationDispatcherCommand.h
  3644. * src/Makefile.am
  3645. * src/SequentialDispatcherCommand.h
  3646. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3647. Replaced FileAllocationMan with
  3648. SequentialPicker<FileAllocationEntry>.
  3649. * src/BtCheckIntegrityEntry.cc
  3650. * src/ConsoleStatCalc.cc
  3651. * src/DownloadEngine.cc
  3652. * src/DownloadEngine.h
  3653. * src/DownloadEngineFactory.cc
  3654. * src/FileAllocationCommand.cc
  3655. * src/FileAllocationDispatcherCommand.cc
  3656. * src/FileAllocationMan.h
  3657. * src/Makefile.am
  3658. * src/SequentialPicker.h
  3659. * src/StatCalc.h
  3660. * src/StreamCheckIntegrityEntry.cc
  3661. * test/Makefile.am
  3662. * test/SequentialPickerTest.cc
  3663. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Added doc for adaptive URI selector.
  3665. * doc/aria2c.1.txt
  3666. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3667. Added doc for adaptive URI selector.
  3668. * src/usage_text.h
  3669. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3670. Added doc for --bt-max-peers option.
  3671. * doc/aria2c.1.txt
  3672. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3673. Added doc for --bt-hash-check-seed option.
  3674. * doc/aria2c.1.txt
  3675. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3676. Documented exit codes.
  3677. * doc/aria2c.1.txt
  3678. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3679. Added --bt-max-peers option to specify the maximum number of peers
  3680. per torrent. 0 means unlimited number of peers.
  3681. * src/ActivePeerConnectionCommand.cc
  3682. * src/BtRuntime.h
  3683. * src/DefaultPeerStorage.cc
  3684. * src/DefaultPeerStorage.h
  3685. * src/OptionHandlerFactory.cc
  3686. * src/RequestGroup.cc
  3687. * src/option_processing.cc
  3688. * src/prefs.cc
  3689. * src/prefs.h
  3690. * src/usage_text.h
  3691. * test/DefaultPeerStorageTest.cc
  3692. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3693. Added --bt-hash-check-seed option. If true is given to this
  3694. option, after hash check using --check-integrity option and file
  3695. is complete, continue to seed file. If you want to check file and
  3696. download it only when it is damaged or incomplete, set this option
  3697. to false. This option has effect only on BitTorrent download.
  3698. The default value is true(This is the same behavior with the
  3699. previous release).
  3700. * src/BtCheckIntegrityEntry.cc
  3701. * src/OptionHandlerFactory.cc
  3702. * src/option_processing.cc
  3703. * src/prefs.cc
  3704. * src/prefs.h
  3705. * src/usage_text.h
  3706. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3707. Updated copyright year.
  3708. * src/version_usage.cc
  3709. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3711. * doc/aria2c.1.txt
  3712. * src/usage_text.h
  3713. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3714. Made the max value of split option unlimited.
  3715. * doc/aria2c.1.txt
  3716. * src/OptionHandlerFactory.cc
  3717. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. Fixed compile warning/error.
  3719. * src/DownloadResult.h
  3720. * src/HttpDownloadCommand.cc
  3721. * src/ServerStat.cc
  3722. * test/RequestGroupTest.cc
  3723. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3724. Added --event-poll option to select the method for polling events.
  3725. The available methods are "select" and "epoll". "epoll" is
  3726. available on Linux only. The earlier release has the compile
  3727. option to choose from these methods.
  3728. * configure.ac
  3729. * src/RequestGroupMan.cc
  3730. * src/OptionHandlerFactory.cc
  3731. * src/EpollEventPoll.h
  3732. * src/StreamFileAllocationEntry.cc
  3733. * src/a2io.h
  3734. * src/SelectEventPoll.h
  3735. * src/option_processing.cc
  3736. * src/prefs.h
  3737. * src/EpollEventPoll.cc
  3738. * src/EventPoll.h
  3739. * src/SocketCore.h
  3740. * src/Makefile.am
  3741. * src/main.cc
  3742. * src/DownloadEngine.h
  3743. * src/SelectEventPoll.cc
  3744. * src/DownloadEngine.cc
  3745. * src/SocketCore.cc
  3746. * src/DownloadEngineFactory.cc
  3747. * src/Makefile.in
  3748. * src/prefs.cc
  3749. * src/usage_text.h
  3750. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3751. Included RecoverableException.h from main.cc
  3752. * src/main.cc
  3753. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3755. now returns last error encountered in the HTTP/FTP downloads as a
  3756. exit status value. If all downloads finished successfully, aria2
  3757. returns 0. The error code is defined in src/DownloadResult.h.
  3758. The error occurred in the download currently in progress is not
  3759. reported as a last error. If no error has encountered but there
  3760. are in progress or waiting downloads, aria2 returns 7.
  3761. * src/AbstractCommand.cc
  3762. * src/DlAbortEx.h
  3763. * src/DlRetryEx.h
  3764. * src/DownloadCommand.cc
  3765. * src/DownloadFailureException.h
  3766. * src/DownloadResult.h
  3767. * src/FtpNegotiationCommand.cc
  3768. * src/HttpSkipResponseCommand.cc
  3769. * src/Makefile.am
  3770. * src/MultiUrlRequestInfo.cc
  3771. * src/MultiUrlRequestInfo.h
  3772. * src/RecoverableException.h
  3773. * src/RequestGroup.cc
  3774. * src/RequestGroup.h
  3775. * src/RequestGroupMan.cc
  3776. * src/RequestGroupMan.h
  3777. * src/URIResult.cc
  3778. * src/URIResult.h
  3779. * src/main.cc
  3780. * src/option_processing.cc
  3781. * test/RequestGroupTest.cc
  3782. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3784. patch adds AdaptiveURISelector, which selects one of the bests
  3785. mirrors for first and reserved connections. For supplementary
  3786. ones, it returns mirrors which has not been tested yet, and if
  3787. each of them already tested, returns mirrors which has to be
  3788. tested again. Otherwise, it doesn't return anymore mirrors.
  3789. * src/AdaptiveURISelector.cc
  3790. * src/AdaptiveURISelector.h
  3791. * src/FtpNegotiationCommand.cc
  3792. * src/HttpResponseCommand.cc
  3793. * src/Makefile.am
  3794. * src/Makefile.in
  3795. * src/OptionHandlerFactory.cc
  3796. * src/RequestGroup.cc
  3797. * src/RequestGroup.h
  3798. * src/RequestGroupMan.cc
  3799. * src/ServerStat.cc
  3800. * src/ServerStat.h
  3801. * src/ServerStatMan.cc
  3802. * src/SpeedCalc.cc
  3803. * src/URISelector.h
  3804. * src/prefs.cc
  3805. * src/prefs.h
  3806. * test/RequestGroupManTest.cc
  3807. * test/ServerStatManTest.cc
  3808. * test/ServerStatTest.cc
  3809. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. Fixed unit test error.
  3811. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3812. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. * Release 1.1.2
  3814. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Updated Russian translation. Thanks to the translators.
  3816. * po/ru.po
  3817. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3818. Added the description of --use-head option to man page.
  3819. * doc/aria2c.1.txt
  3820. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3821. Bump up version number to 1.1.2
  3822. * configure.ac
  3823. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3824. Added --use-head option to toggle whether HEAD method should be
  3825. used in the first HTTP request. By default aria2 uses HEAD method
  3826. as the first request. When the server doesn't recognize HEAD, then
  3827. give aria2 --use-head=false to force aria2 to use GET method
  3828. instead.
  3829. * src/OptionHandlerFactory.cc
  3830. * src/RequestGroupMan.cc
  3831. * src/option_processing.cc
  3832. * src/prefs.cc
  3833. * src/prefs.h
  3834. * src/usage_text.h
  3835. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3836. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3837. message is received before CHOKE message. The old implementation
  3838. doen't clear the use-bit of the piece when recieved REJECT
  3839. message.
  3840. * src/DefaultBtMessageDispatcher.cc
  3841. * test/DefaultBtMessageDispatcherTest.cc
  3842. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3843. * Release 1.1.1
  3844. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. Bump up version number to 1.1.1.
  3846. * configure.ac
  3847. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3848. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3849. is printed repeatedly.
  3850. * src/ConsoleStatCalc.cc
  3851. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3852. * Release 1.1.0
  3853. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3854. Added ifdef clause for conditional compilation.
  3855. * src/main.cc
  3856. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3858. translations. Thanks to all translators.
  3859. * po/ja.po
  3860. * po/ru.po
  3861. * po/uk.po
  3862. * po/zh_CN.po
  3863. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Added the preceding ">>> " before the message "Printing the
  3865. contents of file..." to make the output more readable.
  3866. * src/main.cc
  3867. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. Added try-catch block in the loop in showFiles() to continue the
  3869. operation even if the exception occurred in one file.
  3870. * src/main.cc (showFiles)
  3871. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. Made messages in showFiles() translatable.
  3873. * po/aria2.pot
  3874. * src/main.cc
  3875. * src/message.h
  3876. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3877. Print the contents of Torrent/Metalink files are printed without
  3878. -T/-M options.
  3879. * src/main.cc
  3880. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Escaped '--' with '\--'
  3882. * README
  3883. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3884. Updated "How to build" section in README. Mentioned about
  3885. --with-ca-bundle compile option.
  3886. * README
  3887. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3888. Bump up version number to 1.1.0.
  3889. * configure.ac
  3890. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3891. Added a note for --dht-listen-port option.
  3892. * doc/aria2c.1.txt
  3893. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Update doc for --realtime-chunk-checksum option.
  3895. * doc/aria2c.1.txt
  3896. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Update doc for --realtime-chunk-checksum option.
  3898. * src/usage_text.h
  3899. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3900. Updated French, Japanese, Russian and Ukrainian translations.
  3901. Thanks to all translators.
  3902. * po/fr.po
  3903. * po/ja.po
  3904. * po/ru.po
  3905. * po/uk.po
  3906. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3907. Renamed aria2c.pot to aria2.pot
  3908. * po/aria2.pot
  3909. * po/aria2c.pot: Removed.
  3910. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3911. Removed MetaEntry.h
  3912. * src/Makefile.am
  3913. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Rename file by appending digits if a local file exists and its
  3915. file size is larger than that of remote file with --continue
  3916. option. The old implementation just throws exception in such case.
  3917. * src/RequestGroup.cc
  3918. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. Fixed the bug that download progress summary is not printed in the
  3920. interval specified by the option.
  3921. * src/ConsoleStatCalc.cc
  3922. * src/ConsoleStatCalc.h
  3923. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3924. Fixed compiler warning
  3925. * src/Cookie.cc
  3926. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3927. Fixed the cookie implementation based on RFC2965.
  3928. Now if a value in domain field is not started with dot, then
  3929. prepend dot. That means a cookie with domain=sf.net is sent to
  3930. wiki.sf.net.
  3931. * src/Cookie.cc
  3932. * test/CookieParserTest.cc
  3933. * test/CookieStorageTest.cc
  3934. * test/CookieTest.cc
  3935. * test/NsCookieParserTest.cc
  3936. * test/Sqlite3MozCookieParserTest.cc
  3937. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3939. is enabled and the server doesn't support keep-alive.
  3940. * src/AbstractCommand.cc
  3941. * src/DownloadCommand.cc
  3942. * src/HttpDownloadCommand.cc
  3943. * src/HttpDownloadCommand.h
  3944. * src/HttpResponseCommand.cc
  3945. * src/Request.cc
  3946. * src/Request.h
  3947. * test/RequestTest.cc
  3948. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Removed Dictionary/List/Data and its related classes.
  3950. * src/BencodeVisitor.cc: Removed.
  3951. * src/BencodeVisitor.h: Removed.
  3952. * src/Data.cc: Removed.
  3953. * src/Data.h: Removed.
  3954. * src/Dictionary.cc: Removed.
  3955. * src/Dictionary.h: Removed.
  3956. * src/List.cc: Removed.
  3957. * src/List.h: Removed.
  3958. * src/Makefile.am
  3959. * src/MetaEntry.h: Removed.
  3960. * src/MetaEntryVisitor.h: Removed.
  3961. * src/MetaFileUtil.cc: Removed.
  3962. * src/MetaFileUtil.h: Removed.
  3963. * test/BencodeVisitorTest.cc: Removed.
  3964. * test/DataTest.cc: Removed.
  3965. * test/DictionaryTest.cc: Removed.
  3966. * test/ListTest.cc: Removed.
  3967. * test/Makefile.am
  3968. * test/MetaFileUtilTest.cc: Removed.
  3969. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3970. Removed include of MetaEntry.h
  3971. * test/DHTMessageTrackerEntryTest.cc
  3972. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3973. Use BDE instead of Dictionary/List/Data.
  3974. * src/AnnounceList.cc
  3975. * src/AnnounceList.h
  3976. * test/AnnounceListTest.cc
  3977. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. Use BDE instead of Dictionary/List/Data.
  3979. * src/DHTAbstractMessage.cc
  3980. * src/DHTAbstractMessage.h
  3981. * src/DHTAnnouncePeerMessage.cc
  3982. * src/DHTAnnouncePeerMessage.h
  3983. * src/DHTAnnouncePeerReplyMessage.cc
  3984. * src/DHTAnnouncePeerReplyMessage.h
  3985. * src/DHTFindNodeMessage.cc
  3986. * src/DHTFindNodeMessage.h
  3987. * src/DHTFindNodeReplyMessage.cc
  3988. * src/DHTFindNodeReplyMessage.h
  3989. * src/DHTGetPeersMessage.cc
  3990. * src/DHTGetPeersMessage.h
  3991. * src/DHTGetPeersReplyMessage.cc
  3992. * src/DHTGetPeersReplyMessage.h
  3993. * src/DHTMessageFactory.h
  3994. * src/DHTMessageFactoryImpl.cc
  3995. * src/DHTMessageFactoryImpl.h
  3996. * src/DHTMessageReceiver.cc
  3997. * src/DHTMessageTracker.cc
  3998. * src/DHTMessageTracker.h
  3999. * src/DHTPingMessage.cc
  4000. * src/DHTPingMessage.h
  4001. * src/DHTPingReplyMessage.cc
  4002. * src/DHTPingReplyMessage.h
  4003. * src/DHTQueryMessage.cc
  4004. * src/DHTQueryMessage.h
  4005. * src/DHTResponseMessage.cc
  4006. * src/DHTResponseMessage.h
  4007. * test/DHTAnnouncePeerMessageTest.cc
  4008. * test/DHTAnnouncePeerReplyMessageTest.cc
  4009. * test/DHTFindNodeMessageTest.cc
  4010. * test/DHTFindNodeReplyMessageTest.cc
  4011. * test/DHTGetPeersMessageTest.cc
  4012. * test/DHTGetPeersReplyMessageTest.cc
  4013. * test/DHTMessageFactoryImplTest.cc
  4014. * test/DHTMessageTrackerTest.cc
  4015. * test/DHTPingMessageTest.cc
  4016. * test/DHTPingReplyMessageTest.cc
  4017. * test/MockDHTMessageFactory.h
  4018. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4019. Added tests the case where length < 0 is specified.
  4020. * test/BencodeTest.cc
  4021. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4022. Fixed memory leak in decoderawstring()
  4023. * src/bencode.cc
  4024. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4025. Added missing #ifdef guard. Added uc() function for String and
  4026. removeKey() for Dict.
  4027. * src/bencode.cc
  4028. * src/bencode.h
  4029. * test/BencodeTest.cc
  4030. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Use BDE instead of Dictionary/List/Data.
  4032. * src/HandshakeExtensionMessage.cc
  4033. * src/HandshakeExtensionMessage.h
  4034. * test/HandshakeExtensionMessageTest.cc
  4035. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4036. Added --max-overall-upload-limit option. This option limits the
  4037. overall upload speed. Stated in help message that the existing
  4038. --max-upload-limit option limits the upload speed per each
  4039. torrent. Man page is also updated.
  4040. * doc/aria2c.1.txt
  4041. * src/DefaultBtMessageDispatcher.cc
  4042. * src/DefaultBtMessageDispatcher.h
  4043. * src/OptionHandlerFactory.cc
  4044. * src/PeerInteractionCommand.cc
  4045. * src/option_processing.cc
  4046. * src/prefs.cc
  4047. * src/prefs.h
  4048. * src/usage_text.h
  4049. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4050. Use BDE instead of Dictionary/List/Data classes.
  4051. * src/CompactPeerListProcessor.cc
  4052. * src/CompactPeerListProcessor.h
  4053. * src/DefaultBtAnnounce.cc
  4054. * src/DefaultBtContext.cc
  4055. * src/DefaultBtContext.h
  4056. * src/DefaultPeerListProcessor.cc
  4057. * src/DefaultPeerListProcessor.h
  4058. * src/DelegatingPeerListProcessor.cc
  4059. * src/DelegatingPeerListProcessor.h
  4060. * src/PeerListProcessor.h
  4061. * src/UTPexExtensionMessage.cc
  4062. * src/Util.h
  4063. * src/message.h
  4064. * test/DefaultBtContextTest.cc
  4065. * test/DefaultPeerListProcessorTest.cc
  4066. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4067. Added bencode helper functions and BDE class.
  4068. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4069. * src/Makefile.am
  4070. * src/bencode.cc
  4071. * src/bencode.h
  4072. * test/BencodeTest.cc
  4073. * test/Makefile.am
  4074. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4075. Fixed the bug that bad URI is sent to the tracker when the announe
  4076. URI in torrent file includes query.
  4077. * src/DefaultBtAnnounce.cc
  4078. * test/DefaultBtAnnounceTest.cc
  4079. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4080. Added Option::blank().
  4081. Use !Option::blank(name) instead of Option::defined(name) for
  4082. the options that take filename.
  4083. * src/MultiUrlRequestInfo.cc
  4084. * src/Option.cc
  4085. * src/Option.h
  4086. * src/main.cc
  4087. * src/option_processing.cc
  4088. * test/OptionTest.cc
  4089. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4090. Documented the default value of --check-certificate option in man
  4091. page.
  4092. * doc/aria2c.1.txt
  4093. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Enabled --check-certificate by default. Added compile
  4095. time(configure) option --with-ca-bundle to specify CA bundle.
  4096. Warn if --check-certificate=true and --ca-certificate is not
  4097. specified or loading CA certificate is failed.
  4098. * configure.ac
  4099. * src/MultiUrlRequestInfo.cc
  4100. * src/OptionHandlerFactory.cc
  4101. * src/message.h
  4102. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4103. Mentioned https tag in help option.
  4104. * doc/aria2c.1.txt
  4105. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4106. Added `https' tag to help option category. Added https tag to
  4107. --ca-certificate, --certificate, --check-certificate and
  4108. --private-key option.
  4109. * src/OptionHandlerFactory.cc
  4110. * src/help_tags.h
  4111. * src/option_processing.cc
  4112. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4113. Changed the package name from `aria2c' to `aria2' in order to fix
  4114. the packaging issue in Debian and Fedora. The name of the
  4115. executable is not changed.
  4116. * configure.ac
  4117. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4118. Fixed typos
  4119. * src/usage_text.h
  4120. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4121. Fixed typos and updated doc.
  4122. * README
  4123. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4124. Fixed typos
  4125. * doc/aria2c.1.txt
  4126. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4127. Fixed typos
  4128. * src/usage_text.h
  4129. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4130. Print a message when no files to download.
  4131. * src/download_helper.cc
  4132. * src/main.cc
  4133. * src/message.h
  4134. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4135. RFC3986 complied Percent-Encoding(urlencode).
  4136. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4137. ones.
  4138. * src/Request.cc
  4139. * src/Util.cc
  4140. * src/Util.h
  4141. * test/BtHandshakeMessageTest.cc
  4142. * test/DefaultBtAnnounceTest.cc
  4143. * test/DefaultBtContextTest.cc
  4144. * test/RequestTest.cc
  4145. * test/UtilTest.cc
  4146. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4147. Fixed the bug that prevents aria2 from downloading 0-length files
  4148. via HTTP/FTP.
  4149. * src/DefaultBtContext.cc
  4150. * src/DefaultBtContext.h
  4151. * src/DownloadContext.h
  4152. * src/FtpNegotiationCommand.cc
  4153. * src/HttpResponseCommand.cc
  4154. * src/HttpResponseCommand.h
  4155. * src/RequestGroup.cc
  4156. * src/SingleFileDownloadContext.cc
  4157. * src/SingleFileDownloadContext.h
  4158. * test/BtPostDownloadHandlerTest.cc
  4159. * test/MetalinkPostDownloadHandlerTest.cc
  4160. * test/MockBtContext.h
  4161. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4162. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4163. * src/option_processing.cc
  4164. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4165. Applied aria2-1.0.1-mingw.patch.
  4166. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4167. mingw.
  4168. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4169. * src/SocketCore.cc
  4170. * src/a2netcompat.h
  4171. * test/SocketCoreTest.cc
  4172. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4173. * Release 1.0.1
  4174. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4175. Updated Ukrainian and Norwegian Nynorsk translations.
  4176. Thanks to all translators.
  4177. * po/nn.po
  4178. * po/uk.po
  4179. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4180. Don't show download result when -S option is used.
  4181. * src/main.cc
  4182. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4183. Bump up version number to 1.0.1
  4184. * configure.ac
  4185. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4186. Closed files after the test cases in MultiDiskWriterTest::
  4187. testResetDiskWriterEntries(). This will fix the unit test error
  4188. in mingw32 build.
  4189. * test/MultiDiskWriterTest.cc
  4190. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. Use HEAD method to get file size from HTTP server for segmented
  4192. downloading.
  4193. The request to the BitTorrent Tracker always uses GET method because
  4194. the response of the tracker is small and it doesn't need segmented
  4195. download.
  4196. * src/FtpNegotiationCommand.cc
  4197. * src/HttpRequest.cc
  4198. * src/HttpResponseCommand.cc
  4199. * src/HttpSkipResponseCommand.cc
  4200. * src/RequestGroup.cc
  4201. * src/RequestGroup.h
  4202. * src/TrackerWatcherCommand.cc
  4203. * test/HttpRequestTest.cc
  4204. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4205. Fixed the bug that causes floating exception when -T option is used and
  4206. no URIs are given.
  4207. * src/download_helper.cc
  4208. * test/DownloadHelperTest.cc
  4209. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4210. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4211. errors in MinGW:
  4212. Closed file after saving server stats (RequestGroupMan.cc)
  4213. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4214. Ignored case & handled 2-digit years (strptime.c)
  4215. Added missing suseconds_t definition (a2time.h)
  4216. Fixed socket CLOSE() define (SocketCore.cc)
  4217. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4218. Changed utime() test values from x000 to x00000 as MinGW failed on
  4219. values less than timezone offset from Unix epoch
  4220. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4221. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4222. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4223. handle negative dates (CookieParserTest.cc)
  4224. * src/a2time.h
  4225. * src/FtpConnection.cc
  4226. * src/RequestGroupMan.cc
  4227. * src/SocketCore.cc
  4228. * src/strptime.c
  4229. * test/CookieParserTest.cc
  4230. * test/CopyDiskAdaptorTest.cc
  4231. * test/FileTest.cc
  4232. * test/FtpConnectionTest.cc
  4233. * test/MultiDiskAdaptorTest.cc
  4234. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4236. * doc/aria2c.1.txt
  4237. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4238. * Release 1.0.0
  4239. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. Added '~' to reserved characters.
  4241. * src/Util.cc
  4242. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4243. Do not urlencode Request::url in setUrl() because we want unmodified
  4244. URL using Request::getUrl()
  4245. * src/Request.cc
  4246. * src/Request.h
  4247. * test/RequestTest.cc
  4248. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4249. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4250. Thanks to all translators.
  4251. * po/bg.po
  4252. * po/fr.po
  4253. * po/ja.po
  4254. * po/ru.po
  4255. * po/uk.po
  4256. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4257. Bump up version number to 1.0.0
  4258. * configure.ac
  4259. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4260. Added nosqlite3 build to build_test.sh.
  4261. Renamed noxml as expat.
  4262. * build_test.sh
  4263. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4264. Updated INPUT FILE section.
  4265. * doc/aria2c.1.txt
  4266. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4267. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4268. on big endian systems because test .aria2 files are made for little
  4269. endian systems.
  4270. * test/DefaultBtProgressInfoFileTest.cc
  4271. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Dropped ares support.
  4273. * README
  4274. * configure.ac
  4275. * m4/libares.m4: Removed.
  4276. * src/AsyncNameResolver.cc
  4277. * src/Makefile.am
  4278. * test/Makefile.am
  4279. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4280. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4281. Removed const qualifier from DiskWriter::size().
  4282. * src/AbstractDiskWriter.cc
  4283. * src/AbstractDiskWriter.h
  4284. * src/ByteArrayDiskWriter.cc
  4285. * src/ByteArrayDiskWriter.h
  4286. * src/DiskWriter.h
  4287. * test/ByteArrayDiskWriterTest.cc
  4288. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4289. Fixed the bug that causes segmentation fault/bus error during executing
  4290. choking algorithm while seeding. This is caused by improper
  4291. implementation of compare function which returns inconsistent results
  4292. depending on the timing of last unchoke.
  4293. * src/BtSeederStateChoke.cc
  4294. * src/BtSeederStateChoke.h
  4295. * src/DefaultPeerStorage.cc
  4296. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4297. Removed TODO
  4298. * TODO
  4299. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4300. Added a section that explains how to pass argument to options that
  4301. takes optional arguments with its short form.
  4302. * doc/aria2c.1.txt
  4303. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4304. Added -u for the short form of --max-upload-limit option.
  4305. * doc/aria2c.1.txt
  4306. * src/option_processing.cc
  4307. * src/usage_text.h
  4308. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4309. Added -V for the short form of --check-integrity option.
  4310. Now the argument of --check-integrity option is optional:
  4311. if it is omitted, it is evaluated as true.
  4312. * doc/aria2c.1.txt
  4313. * src/option_processing.cc
  4314. * src/usage_text.h
  4315. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4316. Made the default value of --ftp-pasv option set to true and it can take
  4317. true/false values.
  4318. * src/OptionHandlerFactory.cc
  4319. * src/option_processing.cc
  4320. * src/usage_text.h
  4321. * doc/aria2c.1.txt
  4322. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4323. Given custom random number generator to std::random_shuffle.
  4324. * src/AnnounceList.cc
  4325. * src/BtLeecherStateChoke.cc
  4326. * src/BtSeederStateChoke.cc
  4327. * src/DefaultBtRequestFactory.cc
  4328. * src/MetalinkEntry.cc
  4329. * src/RarestPieceSelector.cc
  4330. * src/SimpleRandomizer.cc
  4331. * src/SimpleRandomizer.h
  4332. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4333. Now the default value of --enable-direct-io is true.
  4334. * src/OptionHandlerFactory.cc
  4335. * doc/aria2c.1.txt
  4336. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Erase peer before executing onReturningPeer and onErasingPeer
  4338. because choking algorithm called from onReturningPeer doesn't
  4339. like erasing peer in the active peer list.
  4340. * src/DefaultPeerStorage.cc
  4341. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4342. Instead of creating special filename in createDownloadResult() if
  4343. inMemoryDownload() is true, now it is done in getFilePath().
  4344. * src/RequestGroup.cc
  4345. * test/RequestGroupTest.cc
  4346. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4347. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4348. processed in memory. This is the fix for previous comment out.
  4349. * src/MemoryBufferPreDownloadHandler.cc
  4350. * src/RequestGroup.cc
  4351. * src/RequestGroup.h
  4352. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4353. Commented out the code which sets virtual directory path "[MEMORY]"
  4354. propagate directory to store to following RequestGroup.
  4355. * src/MemoryBufferPreDownloadHandler.cc
  4356. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4357. Bump up version number to 1.0.0b
  4358. * configure.ac
  4359. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4360. Added input_uris.txt to EXTRA_DIST
  4361. * test/Makefile.am
  4362. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4363. Removed PeerObject.h from Makefile.am
  4364. * src/Makefile.am
  4365. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4366. Avoid slow seeding
  4367. * src/PeerInteractionCommand.cc
  4368. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4369. Updated usage for -i option.
  4370. * src/usage_text.h (TEXT_INPUT_FILE)
  4371. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4372. Added INPUT FILE section to man page.
  4373. Escaped fake URLs.
  4374. * doc/aria2c.1.txt
  4375. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4376. Fixed wrong note position for -o option.
  4377. * doc/aria2c.1.txt
  4378. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4379. Fixed compile error without SSL/XML library.
  4380. * src/DefaultBtProgressInfoFile.cc
  4381. * src/DefaultBtProgressInfoFile.h
  4382. * src/FileMetalinkParserState.cc
  4383. * src/RequestGroup.h
  4384. * src/SocketCore.cc
  4385. * src/SocketCore.h
  4386. * src/VerificationMetalinkParserState.cc
  4387. * src/download_helper.h
  4388. * src/main.cc
  4389. * test/DefaultBtProgressInfoFileTest.cc
  4390. * test/DownloadHelperTest.cc
  4391. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4392. Rewritten URI handling functions. They are now provided as a testable
  4393. functions.
  4394. * src/Makefile.am
  4395. * src/RequestGroup.cc
  4396. * src/RequestGroup.h
  4397. * src/download_helper.cc
  4398. * src/download_helper.h
  4399. * src/main.cc
  4400. * test/DownloadHelperTest.cc
  4401. * test/Makefile.am
  4402. * test/input_uris.txt
  4403. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4404. Quickly terminate commands when ctrl-c is pressed.
  4405. * src/DownloadEngine.cc
  4406. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4407. Quickly terminate idle commands when download finished.
  4408. * src/AbstractCommand.cc
  4409. * src/DownloadCommand.cc
  4410. * src/DownloadEngine.cc
  4411. * src/DownloadEngine.h
  4412. * src/SleepCommand.cc
  4413. * src/SleepCommand.h
  4414. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4415. Added the ability to specify output filename and directory in input
  4416. file.
  4417. Additional parameters are added in the following line of URIs
  4418. with proceeding white space(s), 1 parameter in 1 line.
  4419. The parameter names are the same with the command-line option name
  4420. without proceeding "--". Not all the options are available here:
  4421. at the moment, 'dir' and 'out' options are avialable.
  4422. Please note that out option has no effect against Metalink or BitTorrent
  4423. downloads.
  4424. Example input file:
  4425. http://host/foo-1.1.tar.bz2
  4426. out=foo.tar.bz2
  4427. dir=/tmp/downloads
  4428. http://host/thundermonkey-2.0.tar.bz2
  4429. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4430. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4431. thundermonkey-2.0.tar.bz2 is saved as
  4432. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4433. * src/BtPostDownloadHandler.cc
  4434. * src/Metalink2RequestGroup.cc
  4435. * src/Metalink2RequestGroup.h
  4436. * src/MetalinkPostDownloadHandler.cc
  4437. * src/UriListParser.cc
  4438. * src/UriListParser.h
  4439. * src/main.cc
  4440. * test/Metalink2RequestGroupTest.cc
  4441. * test/UriListParserTest.cc
  4442. * test/filelist1.txt
  4443. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4444. Fixed error when SSL library is not found.
  4445. * configure.ac
  4446. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4447. Cross referenced among -s, -C and -j options.
  4448. Updated usage of -C and -s options.
  4449. * src/usage_text.h
  4450. * doc/aria2c.1.txt
  4451. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4452. Fixed bad cast in 32bit platforms.
  4453. * test/DefaultPieceStorageTest.cc
  4454. (DefaultPieceStorageTest::testGetCompletedLength)
  4455. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Fixed unit test fails on 32bit platforms.
  4457. * test/CookieParserTest.cc
  4458. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4459. Show an average download speed in Download results.
  4460. * src/BtFileAllocationEntry.cc
  4461. * src/DefaultPieceStorage.cc
  4462. * src/DownloadContext.cc
  4463. * src/DownloadContext.h
  4464. * src/DownloadResult.h
  4465. * src/RequestGroup.cc
  4466. * src/RequestGroupMan.cc
  4467. * src/StreamFileAllocationEntry.cc
  4468. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4469. Fixed the bug that metalink file is not processed if Content-Type
  4470. field has a paramter.
  4471. * src/HttpResponse.cc
  4472. * src/HttpResponse.h
  4473. * test/HttpResponseTest.cc
  4474. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4475. Removed unused code.
  4476. * src/DefaultBtAnnounce.cc
  4477. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4478. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4479. the value larger than DefaultPieceStorage::getTotalLength() when
  4480. in flight pieces are involved.
  4481. * src/DefaultPieceStorage.cc
  4482. * test/DefaultPieceStorageTest.cc
  4483. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4484. Bump up version number to 1.0.0a.
  4485. * configure.ac
  4486. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4487. Updated configure.ac
  4488. * configure.ac
  4489. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4490. Added usege for proxy.
  4491. * doc/aria2c.1.txt
  4492. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4493. Added usage for --ca-certificate, --certificate, --private-key and
  4494. --check-certificate options.
  4495. * doc/aria2c.1.txt
  4496. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4497. Updated man page
  4498. * doc/aria2c.1.txt
  4499. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4500. Added --no-proxy option. It receives comman separated hostname or
  4501. domains to which proxy should not be used.
  4502. aria2 honors the environment variable no_proxy to override no-proxy
  4503. value in configuration file. The user can override the environment
  4504. variable no_proxy with --no-proxy command-line option.
  4505. * src/AbstractCommand.cc
  4506. * src/OptionHandlerFactory.cc
  4507. * src/option_processing.cc
  4508. * src/prefs.cc
  4509. * src/prefs.h
  4510. * src/usage_text.h
  4511. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4513. The CA certificates are specified in --ca-certificate option.
  4514. By default, the verification is disabled. Use --check-certificate
  4515. option to enable it.
  4516. * src/HttpRequestCommand.cc
  4517. * src/LibgnutlsTLSContext.cc
  4518. * src/LibgnutlsTLSContext.h
  4519. * src/LibsslTLSContext.cc
  4520. * src/LibsslTLSContext.h
  4521. * src/MultiUrlRequestInfo.cc
  4522. * src/OptionHandlerFactory.cc
  4523. * src/SocketCore.cc
  4524. * src/SocketCore.h
  4525. * src/a2functional.h
  4526. * src/message.h
  4527. * src/option_processing.cc
  4528. * src/prefs.cc
  4529. * src/prefs.h
  4530. * src/usage_text.h
  4531. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4532. Added client certificate authentication for SSL/TLS.
  4533. Currently a private key must be decrypted for use with aria2.
  4534. If a user accidentally gives encrypted file to aria2 then following
  4535. thing happens:
  4536. If encrypted private key is given to aria2, it behaves differently
  4537. depending on the ssl library it uses. If aria2 built with openssl then
  4538. openssl prompts the user for password. If aria2 build with gnutls then
  4539. aria2 exists with error at start up.
  4540. * src/DownloadEngineFactory.cc
  4541. * src/MultiUrlRequestInfo.cc
  4542. * src/OptionHandlerFactory.cc
  4543. * src/option_processing.cc
  4544. * src/prefs.cc
  4545. * src/prefs.h
  4546. * src/usage_text.h
  4547. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Introduced TLSContext that holds TLS related data that can be shared
  4549. with multiple SSL connections.
  4550. * src/DownloadEngineFactory.cc
  4551. * src/LibgnutlsTLSContext.cc
  4552. * src/LibgnutlsTLSContext.h
  4553. * src/LibsslTLSContext.cc
  4554. * src/LibsslTLSContext.h
  4555. * src/Makefile.am
  4556. * src/SocketCore.cc
  4557. * src/SocketCore.h
  4558. * src/TLSContext.h
  4559. * src/message.h
  4560. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4561. Fixed the bug that the DiskWriter of the first FileEntry whose
  4562. `needsFileAllocation' property is false is not created
  4563. even if it shares a piece with next FileEntry which `requested' property
  4564. is true.
  4565. Fixed the bug that zero-length file is not created if pre file
  4566. allocation is not done.
  4567. * src/MultiDiskAdaptor.cc
  4568. * src/MultiDiskAdaptor.h
  4569. * test/MultiDiskAdaptorTest.cc
  4570. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. Added the ability to pool proxy connection.
  4572. The conneciton in FTP with proxy-method=GET is not pooled.
  4573. Proxy-Connection header will not be sent when sending CONNECT method.
  4574. * src/DownloadEngine.cc
  4575. * src/DownloadEngine.h
  4576. * src/FtpFinishDownloadCommand.cc
  4577. * src/FtpInitiateConnectionCommand.cc
  4578. * src/FtpNegotiationCommand.cc
  4579. * src/HttpDownloadCommand.cc
  4580. * src/HttpInitiateConnectionCommand.cc
  4581. * src/HttpRequest.cc
  4582. * src/HttpRequest.h
  4583. * src/HttpResponse.cc
  4584. * src/HttpSkipResponseCommand.cc
  4585. * test/HttpRequestTest.cc
  4586. * test/HttpResponseTest.cc
  4587. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4588. Handle date before epoch.
  4589. To create *bad* Time object, call Time::null().
  4590. * src/CookieParser.cc
  4591. * src/FtpConnection.cc
  4592. * src/FtpConnection.h
  4593. * src/FtpNegotiationCommand.cc
  4594. * src/RequestGroup.cc
  4595. * src/TimeA2.cc
  4596. * src/TimeA2.h
  4597. * test/CookieParserTest.cc
  4598. * test/FtpConnectionTest.cc
  4599. * test/TimeTest.cc
  4600. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Added support for following envrionment variables: http_proxy,
  4602. https_proxy, ftp_proxy and all_proxy.
  4603. Each variable is equivalent to the aria2 option whose name is the
  4604. variable name with '_' replaced with '-'.
  4605. They overrides options specified in aria2.conf file.
  4606. The envrionment variables can be overrode using command-line option.
  4607. * src/option_processing.cc
  4608. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4609. Renamed --http-proxy-method as --proxy-method.
  4610. * src/AbstractCommand.cc
  4611. * src/FtpInitiateConnectionCommand.cc
  4612. * src/HttpInitiateConnectionCommand.cc
  4613. * src/OptionHandlerFactory.cc
  4614. * src/option_processing.cc
  4615. * src/prefs.cc
  4616. * src/prefs.h
  4617. * src/usage_text.h
  4618. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4620. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4621. Above 3 options and --http-proxy option can handle proxy in URL format
  4622. like: http://user:passwd@host:port.
  4623. If a proxy requires user/password, they must be specified in a URL.
  4624. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4625. instead.
  4626. * src/AbstractCommand.cc
  4627. * src/AbstractCommand.h
  4628. * src/AbstractProxyRequestCommand.cc
  4629. * src/AbstractProxyRequestCommand.h
  4630. * src/AuthConfigFactory.cc
  4631. * src/AuthConfigFactory.h
  4632. * src/FtpFinishDownloadCommand.cc
  4633. * src/FtpInitiateConnectionCommand.cc
  4634. * src/FtpInitiateConnectionCommand.h
  4635. * src/FtpNegotiationCommand.cc
  4636. * src/FtpTunnelRequestCommand.cc
  4637. * src/FtpTunnelRequestCommand.h
  4638. * src/HttpDownloadCommand.cc
  4639. * src/HttpInitiateConnectionCommand.cc
  4640. * src/HttpInitiateConnectionCommand.h
  4641. * src/HttpProxyRequestCommand.cc
  4642. * src/HttpProxyRequestCommand.h
  4643. * src/HttpRequest.cc
  4644. * src/HttpRequest.h
  4645. * src/HttpRequestCommand.cc
  4646. * src/HttpRequestCommand.h
  4647. * src/HttpSkipResponseCommand.cc
  4648. * src/InitiateConnectionCommand.cc
  4649. * src/InitiateConnectionCommand.h
  4650. * src/OptionHandlerFactory.cc
  4651. * src/OptionHandlerImpl.h
  4652. * src/Request.cc
  4653. * src/option_processing.cc
  4654. * src/prefs.cc
  4655. * src/prefs.h
  4656. * src/usage_text.h
  4657. * test/AuthConfigFactoryTest.cc
  4658. * test/HttpRequestTest.cc
  4659. * test/OptionHandlerTest.cc
  4660. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4661. Execute choking algorithm when unchoked and interested peer is
  4662. disconected.
  4663. * src/DefaultPeerStorage.cc
  4664. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4665. Added testcase for BtNotInterestedMessage from unchoked peer.
  4666. * test/BtNotInterestedMessageTest.cc
  4667. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Execute choking algorithm when BtInterestedMessage arrives from
  4669. unchoked peer.
  4670. * src/BtInterestedMessage.cc
  4671. * src/BtInterestedMessage.h
  4672. * src/DefaultBtMessageFactory.cc
  4673. * test/BtInterestedMessageTest.cc
  4674. * test/MockPeerStorage.h
  4675. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4676. AuthConfigFactory is now part of DownloadEngine.
  4677. * src/AbstractProxyRequestCommand.cc
  4678. * src/AuthConfigFactory.h
  4679. * src/DownloadEngine.cc
  4680. * src/DownloadEngine.h
  4681. * src/FtpConnection.cc
  4682. * src/FtpConnection.h
  4683. * src/FtpNegotiationCommand.cc
  4684. * src/HttpConnection.cc
  4685. * src/HttpRequest.cc
  4686. * src/HttpRequest.h
  4687. * src/HttpRequestCommand.cc
  4688. * src/HttpResponse.cc
  4689. * src/HttpResponseCommand.cc
  4690. * src/HttpSkipResponseCommand.cc
  4691. * src/MultiUrlRequestInfo.cc
  4692. * src/main.cc
  4693. * test/FtpConnectionTest.cc
  4694. * test/HttpRequestTest.cc
  4695. * test/HttpResponseTest.cc
  4696. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4697. Corrected catched exception type.
  4698. * src/ServerStatMan.cc
  4699. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4700. DNSCache is now part of DownloadEngine.
  4701. * src/DNSCache.h
  4702. * src/DownloadEngine.cc
  4703. * src/DownloadEngine.h
  4704. * src/InitiateConnectionCommand.cc
  4705. * src/MultiUrlRequestInfo.cc
  4706. * test/Makefile.am
  4707. * test/Makefile.in
  4708. * test/SimpleDNSCacheTest.cc
  4709. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4710. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4711. DownloadEngine.
  4712. * src/ActivePeerConnectionCommand.cc
  4713. * src/BtSetup.cc
  4714. * src/CUIDCounter.h
  4715. * src/DHTSetup.cc
  4716. * src/DownloadCommand.cc
  4717. * src/DownloadEngine.cc
  4718. * src/DownloadEngine.h
  4719. * src/DownloadEngineFactory.cc
  4720. * src/FileAllocationDispatcherCommand.cc
  4721. * src/InitiatorMSEHandshakeCommand.cc
  4722. * src/PeerInitiateConnectionCommand.cc
  4723. * src/PeerInteractionCommand.cc
  4724. * src/PeerListenCommand.cc
  4725. * src/RequestGroup.cc
  4726. * src/StreamFileAllocationEntry.cc
  4727. * src/TrackerWatcherCommand.cc
  4728. * src/main.cc
  4729. * test/RequestGroupManTest.cc
  4730. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4731. Implemented commented code in BtSeederStateChoke
  4732. * src/BtSeederStateChoke.cc
  4733. * src/Peer.cc
  4734. * src/Peer.h
  4735. * src/PeerInteractionCommand.cc
  4736. * src/PeerSessionResource.cc
  4737. * src/PeerSessionResource.h
  4738. * test/MockBtMessageDispatcher.h
  4739. * test/PeerSessionResourceTest.cc
  4740. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4741. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4742. its object.
  4743. * src/AbstractBtMessage.cc
  4744. * src/ActivePeerConnectionCommand.cc
  4745. * src/ActivePeerConnectionCommand.h
  4746. * src/BtContextAwareCommand.cc
  4747. * src/BtContextAwareCommand.h
  4748. * src/BtExtendedMessage.cc
  4749. * src/BtExtendedMessage.h
  4750. * src/BtInterestedMessage.cc
  4751. * src/BtInterestedMessage.h
  4752. * src/BtNotInterestedMessage.cc
  4753. * src/BtNotInterestedMessage.h
  4754. * src/BtRegistry.cc
  4755. * src/BtRegistry.h
  4756. * src/BtSeederStateChoke.cc
  4757. * src/BtSetup.cc
  4758. * src/DHTGetPeersCommand.cc
  4759. * src/DHTGetPeersCommand.h
  4760. * src/DHTPeerAnnounceEntry.cc
  4761. * src/DHTPeerAnnounceEntry.h
  4762. * src/DHTPeerAnnounceStorage.cc
  4763. * src/DHTPeerAnnounceStorage.h
  4764. * src/DHTPeerLookupTask.cc
  4765. * src/DHTPeerLookupTask.h
  4766. * src/DHTSetup.cc
  4767. * src/DHTSetup.h
  4768. * src/DHTTaskFactory.h
  4769. * src/DHTTaskFactoryImpl.cc
  4770. * src/DHTTaskFactoryImpl.h
  4771. * src/DefaultBtAnnounce.cc
  4772. * src/DefaultBtInteractive.cc
  4773. * src/DefaultBtInteractive.h
  4774. * src/DefaultBtMessageDispatcher.cc
  4775. * src/DefaultBtMessageDispatcher.h
  4776. * src/DefaultBtMessageFactory.cc
  4777. * src/DefaultBtMessageFactory.h
  4778. * src/DefaultBtMessageReceiver.cc
  4779. * src/DefaultBtProgressInfoFile.cc
  4780. * src/DefaultBtProgressInfoFile.h
  4781. * src/DefaultBtRequestFactory.cc
  4782. * src/DefaultBtRequestFactory.h
  4783. * src/DefaultExtensionMessageFactory.cc
  4784. * src/DefaultExtensionMessageFactory.h
  4785. * src/DefaultPeerStorage.cc
  4786. * src/DefaultPeerStorage.h
  4787. * src/DownloadEngine.cc
  4788. * src/DownloadEngine.h
  4789. * src/InitiatorMSEHandshakeCommand.cc
  4790. * src/InitiatorMSEHandshakeCommand.h
  4791. * src/MSEHandshake.cc
  4792. * src/MSEHandshake.h
  4793. * src/Makefile.am
  4794. * src/Makefile.in
  4795. * src/PeerChokeCommand.cc
  4796. * src/PeerChokeCommand.h
  4797. * src/PeerInitiateConnectionCommand.cc
  4798. * src/PeerInitiateConnectionCommand.h
  4799. * src/PeerInteractionCommand.cc
  4800. * src/PeerInteractionCommand.h
  4801. * src/PeerObject.h
  4802. * src/PeerReceiveHandshakeCommand.cc
  4803. * src/PeerReceiveHandshakeCommand.h
  4804. * src/ReceiverMSEHandshakeCommand.cc
  4805. * src/RequestGroup.cc
  4806. * src/RequestGroup.h
  4807. * src/RequestGroupMan.cc
  4808. * src/RequestGroupMan.h
  4809. * src/SeedCheckCommand.cc
  4810. * src/SeedCheckCommand.h
  4811. * src/ShareRatioSeedCriteria.h
  4812. * src/SimpleBtMessage.cc
  4813. * src/TrackerWatcherCommand.cc
  4814. * src/TrackerWatcherCommand.h
  4815. * src/UTPexExtensionMessage.cc
  4816. * src/UTPexExtensionMessage.h
  4817. * test/BtCancelMessageTest.cc
  4818. * test/BtChokeMessageTest.cc
  4819. * test/BtExtendedMessageTest.cc
  4820. * test/BtInterestedMessageTest.cc
  4821. * test/BtNotInterestedMessageTest.cc
  4822. * test/BtPieceMessageTest.cc
  4823. * test/BtPortMessageTest.cc
  4824. * test/BtRegistryTest.cc
  4825. * test/BtRejectMessageTest.cc
  4826. * test/BtRequestMessageTest.cc
  4827. * test/DHTPeerAnnounceEntryTest.cc
  4828. * test/DHTPeerAnnounceStorageTest.cc
  4829. * test/DefaultBtMessageDispatcherTest.cc
  4830. * test/DefaultBtMessageFactoryTest.cc
  4831. * test/DefaultBtProgressInfoFileTest.cc
  4832. * test/DefaultBtRequestFactoryTest.cc
  4833. * test/DefaultExtensionMessageFactoryTest.cc
  4834. * test/MSEHandshakeTest.cc
  4835. * test/MockDHTTaskFactory.h
  4836. * test/ShareRatioSeedCriteriaTest.cc
  4837. * test/UTPexExtensionMessageTest.cc
  4838. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4839. Fixed compiler warning.
  4840. * test/UtilTest.cc
  4841. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4842. Treat Cookie object as session cookie if expiry = 0 is given.
  4843. With this change, you can specify session scoped cookies in an external
  4844. file setting expiry value to 0.
  4845. * src/Cookie.cc
  4846. * src/Cookie.h
  4847. * test/CookieParserTest.cc
  4848. * test/CookieStorageTest.cc
  4849. * test/CookieTest.cc
  4850. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4851. Changed signature of DHTMessageFactory::createResponseMessage().
  4852. Removed unused validateIDMatch.
  4853. * src/DHTMessageFactory.h
  4854. * src/DHTMessageFactoryImpl.cc
  4855. * src/DHTMessageFactoryImpl.h
  4856. * src/DHTMessageTracker.cc
  4857. * test/DHTMessageFactoryImplTest.cc
  4858. * test/MockDHTMessageFactory.h
  4859. Dropped DHT message coming from same ID of localhost.
  4860. * src/DHTMessageReceiver.cc
  4861. Rejected adding node whose ID is the same as localhost's.
  4862. * src/DHTRoutingTable.cc
  4863. * test/BtPortMessageTest.cc
  4864. * test/DHTRoutingTableTest.cc
  4865. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4866. Pool connection when redirection occurs with Content-Length = 0.
  4867. * src/HttpSkipResponseCommand.cc
  4868. * src/HttpSkipResponseCommand.h
  4869. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4870. Fixed the bug that causes time out when redirection occurs with
  4871. content-length 0.
  4872. * src/HttpResponseCommand.cc
  4873. * src/HttpSkipResponseCommand.cc
  4874. * src/HttpSkipResponseCommand.h
  4875. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4876. Now each status legends is shown only when it appears in Download
  4877. Result. If Download Result has no item, then status legend will not
  4878. be printed.
  4879. * src/RequestGroupMan.cc
  4880. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. Removed duplicate creation of OptionHandlers.
  4882. * src/option_processing.cc
  4883. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4884. Fixed the bug that causes segmentation fault when accessing files which
  4885. don't exist or are not included in --select-file option while
  4886. validating chunk checksum.
  4887. * src/MultiDiskAdaptor.cc
  4888. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4889. Fixed compiler warning.
  4890. * test/UtilTest.cc
  4891. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4892. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4893. * src/IteratableChecksumValidator.cc
  4894. * src/IteratableChunkChecksumValidator.cc
  4895. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. * Release 0.16.2
  4897. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4898. Added Serbian translation. Updated Ukrainian translation.
  4899. Thanks to all translators.
  4900. * po/sr.po
  4901. * po/uk.po
  4902. * po/LINGUAS
  4903. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4904. Bump up version number to 0.16.2
  4905. * configure.ac
  4906. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4907. Added length equality test to operator== to drop a piece message
  4908. whose length does not match to the requested one.
  4909. * src/RequestSlot.cc
  4910. * test/DefaultBtMessageDispatcherTest.cc
  4911. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4912. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4913. recieved.
  4914. In this fix, if a request larger than 16KiB length is received, aria2
  4915. disconnects the peer.
  4916. * src/BtConstants.h
  4917. * src/PeerMessageUtil.cc
  4918. * src/PeerMessageUtil.h
  4919. * test/BtRequestMessageTest.cc
  4920. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4921. * Release 0.16.1
  4922. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4923. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4924. * doc/aria2c.1.txt
  4925. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4927. Updated French, Simplified Chinese and Japanese translations.
  4928. Thanks to all translators.
  4929. en@quot and en@boldquot are also added.
  4930. * po/LINGUAS
  4931. * po/fr.po
  4932. * po/ja.po
  4933. * po/uk.po
  4934. * po/vi.po
  4935. * po/zh_CN.po
  4936. * po/zh_TW.po
  4937. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4938. Bump up version number to 0.16.1.
  4939. * configure.ac
  4940. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4941. Updated README.
  4942. * README
  4943. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4944. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4945. not to replace '--' with em dash character.
  4946. * doc/aria2c.1.txt
  4947. * doc/makeman
  4948. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4950. every SEC seconds.
  4951. * src/DownloadEngineFactory.cc
  4952. * src/OptionHandlerFactory.cc
  4953. * src/option_processing.cc
  4954. * src/usage_text.h
  4955. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4956. Fixed compile warning on linux-amd64
  4957. * src/FtpConnection.cc
  4958. * src/IteratableChunkChecksumValidator.cc
  4959. * src/MultiDiskAdaptor.cc
  4960. Fixed the bug that unit test fails on linux-amd64
  4961. * test/UtilTest.cc
  4962. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Added --dht-file-path option to change the path to dht.dat, which is a
  4964. serialized DHT routing table.
  4965. * src/OptionHandlerFactory.cc
  4966. * src/option_processing.cc
  4967. * src/usage_text.h
  4968. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. Fixed possible underflow.
  4970. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4971. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Fixed the bug that last character in URI is not encoded.
  4973. * src/Request.cc
  4974. * test/RequestTest.cc
  4975. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. Fixed the bug that referer header field contains fragment.
  4977. Now Request class removes fragment part of URI and encodes it
  4978. in Request::setUri() and setReferer().
  4979. * src/Request.h
  4980. * src/Request.cc
  4981. * test/RequestTest.cc
  4982. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4983. Added missing m4 macros.
  4984. * m4/cppunit.m4
  4985. * m4/libgcrypt.m4
  4986. * m4/libgnutls-extra.m4
  4987. * m4/libgnutls.m4
  4988. * m4/libxml2.m4
  4989. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4990. Fixed compile error with gcc-4.4(snapshot)
  4991. * src/File.cc
  4992. * src/FtpConnection.cc
  4993. * src/OptionHandlerImpl.h
  4994. * src/Util.cc
  4995. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. Removed assert()
  4997. * src/SocketBuffer.cc (SocketBuffer::send)
  4998. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4999. Changed the type of _numNewConnection to unsigned int.
  5000. * src/ActivePeerConnectionCommand.cc
  5001. * src/ActivePeerConnectionCommand.h
  5002. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. * Release 0.16.0
  5004. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5005. Updated doc
  5006. * README
  5007. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5008. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5009. translations. Thanks to all translators.
  5010. * po/bg.po
  5011. * po/de.po
  5012. * po/fr.po
  5013. * po/ja.po
  5014. * po/zh_CN.po
  5015. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5016. Bump up version number to 0.16.0.
  5017. * configure.ac
  5018. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5019. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5020. int32_t.
  5021. Changed the type of count to int32_t.
  5022. * src/Metalink2RequestGroup.cc
  5023. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5024. Added test for Time::elapsed(time_t).
  5025. * test/TimeTest.cc
  5026. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5027. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5028. Util::difftv() should be used instead.
  5029. * src/TimeA2.cc
  5030. * src/TimeA2.h
  5031. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5032. Made socket for dht connections non-blocking
  5033. * src/DHTAbstractMessage.cc
  5034. * src/DHTAbstractMessage.h
  5035. * src/DHTConnection.h
  5036. * src/DHTConnectionImpl.cc
  5037. * src/DHTConnectionImpl.h
  5038. * src/DHTMessage.h
  5039. * src/DHTMessageDispatcherImpl.cc
  5040. * src/DHTMessageDispatcherImpl.h
  5041. * src/DHTUnknownMessage.cc
  5042. * src/DHTUnknownMessage.h
  5043. * src/SocketCore.cc
  5044. * src/SocketCore.h
  5045. * test/MockDHTMessage.h
  5046. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5047. Changed the type of offset to int.
  5048. * src/ParameterizedStringParser.cc
  5049. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5050. Made getAsInt() return int32_t
  5051. * src/Option.h
  5052. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5054. build.
  5055. * configure.ac
  5056. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Use sqlite3_open if sqlite3_open_v2 is not available.
  5058. * src/Sqlite3MozCookieParser.cc
  5059. * src/Sqlite3MozCookieParser.h
  5060. * m4/sqlite3.m4
  5061. * test/Sqlite3MozCookieParserTest.cc
  5062. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5064. * src/BtPieceMessage.cc
  5065. * src/DHTPeerAnnounceStorage.cc
  5066. * src/DefaultPieceStorage.cc
  5067. * src/DownloadCommand.cc
  5068. * src/DownloadEngine.cc
  5069. * src/FtpConnection.cc
  5070. * src/PeerConnection.cc
  5071. * src/PeerMessageUtil.cc
  5072. * src/RequestGroup.cc
  5073. * src/RequestGroupMan.cc
  5074. * src/SimpleBtMessage.cc
  5075. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5076. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5077. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5078. * src/AbstractDiskWriter.cc
  5079. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Don't set Request::supportsPersistentConnection() in HttpConnection
  5081. since this code is also used in AbstractProxyResponseCommand.
  5082. Moved those code to HttpResponse.
  5083. * src/HttpResponse.cc
  5084. * src/HttpResponse.h
  5085. * src/HttpConnection.cc
  5086. * src/HttpConnection.h
  5087. * src/HttpResponseCommand.cc
  5088. * test/HttpResponseTest.cc
  5089. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5090. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5091. The configuration is minimum: no torrent, no metalink, so there may be
  5092. other compile error on their code.
  5093. * src/a2netcompat.h
  5094. * src/File.cc
  5095. * src/File.h
  5096. * src/SocketCore.cc
  5097. * src/SocketCore.h
  5098. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Made a socket of incoming peer non-blocking.
  5100. * src/PeerListenCommand.cc
  5101. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5102. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5103. whole message data is not sent in one send() call.
  5104. * src/BtPieceMessage.cc
  5105. * src/BtPieceMessage.h
  5106. * src/PeerConnection.cc
  5107. * src/PeerConnection.h
  5108. * src/SimpleBtMessage.cc
  5109. * src/SimpleBtMessage.h
  5110. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5111. Fixed the bug that aria2 downloads faster than max-download-limit when
  5112. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5113. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5114. , instead of sum of them.
  5115. * src/ActivePeerConnectionCommand.cc
  5116. * src/DefaultBtInteractive.cc
  5117. * src/DownloadCommand.cc
  5118. * src/PeerInteractionCommand.cc
  5119. * src/PeerReceiveHandshakeCommand.cc
  5120. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5121. Fixed the bug that HTTPS download fails.
  5122. * src/AbstractCommand.cc
  5123. * src/AbstractCommand.h
  5124. * src/DownloadCommand.cc
  5125. * src/FtpConnection.cc
  5126. * src/HttpConnection.cc
  5127. * src/HttpRequestCommand.cc
  5128. * src/HttpResponseCommand.cc
  5129. * src/HttpSkipResponseCommand.cc
  5130. * src/MSEHandshake.cc
  5131. * src/PeerConnection.cc
  5132. * src/SocketCore.cc
  5133. * src/SocketCore.h
  5134. Fixed the bug that aria2 doesn't download whole content body and cannot
  5135. reuse connection if chunked transfer encoding and gzip content encoding
  5136. are set.
  5137. * src/DownloadCommand.cc
  5138. * src/HttpSkipResponseCommand.cc
  5139. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5140. Updated man page.
  5141. * doc/aria2c.1.txt
  5142. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5143. When error occurred while aria2 was parsing an .aria2.conf file, print
  5144. the usage of the option that caused error.
  5145. * src/option_processing.cc
  5146. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. Fixed compile error on OptionHandlerException
  5148. * src/Makefile.am
  5149. * src/OptionHandlerException.cc
  5150. * src/OptionHandlerException.h
  5151. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5152. Moved message of the error to OptionHandlerException.h
  5153. * src/NameMatchOptionHandler.h
  5154. * src/OptionHandlerException.h
  5155. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. When error occurs while aria2 is parsing an command-line option, print
  5157. the usage of the option.
  5158. * src/Makefile.am
  5159. * src/NameMatchOptionHandler.h
  5160. * src/OptionHandlerException.h
  5161. * src/option_processing.cc
  5162. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5163. Reverted previous change.
  5164. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5165. username is not in URI.
  5166. * src/HttpRequest.cc
  5167. * src/Request.cc
  5168. * test/HttpRequestTest.cc
  5169. * test/RequestTest.cc
  5170. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5171. Now colon is required for username and password in FTP URL, like:
  5172. ftp://username:password@host.
  5173. If colon is not there, aria2 don't parse it as a username. For example,
  5174. aria2 don't retrieve username from ftp://username@host.
  5175. This fix was made in order to login FTP server via non-transparent ftp
  5176. proxy.
  5177. * src/Request.cc
  5178. * test/RequestTest.cc
  5179. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5180. Use netrc for HTTP.
  5181. Now FTP user/password is sent in Authorization header when
  5182. --ftp-via-http-proxy=get is given.
  5183. * src/AuthConfigFactory.cc
  5184. * src/HttpRequest.cc
  5185. * src/HttpRequest.h
  5186. * src/NetrcAuthResolver.cc
  5187. * src/NetrcAuthResolver.h
  5188. * src/OptionHandlerFactory.cc
  5189. * src/option_processing.cc
  5190. * src/prefs.cc
  5191. * src/prefs.h
  5192. * test/AuthConfigFactoryTest.cc
  5193. * test/HttpRequestTest.cc
  5194. * test/NetrcAuthResolverTest.cc
  5195. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5196. Issue PWD command first and get working directory and use it as a prefix
  5197. for CWD command.
  5198. * src/DownloadEngine.cc
  5199. * src/DownloadEngine.h
  5200. * src/FtpConnection.cc
  5201. * src/FtpConnection.h
  5202. * src/FtpFinishDownloadCommand.cc
  5203. * src/FtpInitiateConnectionCommand.cc
  5204. * src/FtpNegotiationCommand.cc
  5205. * src/FtpNegotiationCommand.h
  5206. * test/FtpConnectionTest.cc
  5207. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5208. Removed default user/pass for FTP user/pass, since it should not have
  5209. precedence over netrc configuration by default.
  5210. * src/OptionHandlerFactory.cc
  5211. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5212. Added debug log for socket event.
  5213. * src/AbstractCommand.cc
  5214. * src/PeerAbstractCommand.cc
  5215. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Log microseconds.
  5217. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5218. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. Replaced HelpItem.cc with OptionHandler.cc.
  5220. * po/POTFILES.in
  5221. Updated po files with 'make update-po'
  5222. * po/aria2c.pot
  5223. * po/*.po
  5224. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5225. Removed possible values from the text.
  5226. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5227. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5228. Removed unused preferences:
  5229. PREF_NO_PREALLOCATION
  5230. PREF_STDOUT_LOG
  5231. PREF_TRACKER_MAX_TRIES
  5232. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5233. PREF_MIN_SEGMENT_SIZE
  5234. * src/option_processing.cc
  5235. * src/prefs.cc
  5236. * src/prefs.h
  5237. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5238. Integrated HelpItem into OptionParser to ease the workload for adding
  5239. new options. Removed default value from usage text.
  5240. * src/HelpItem.cc: Removed.
  5241. * src/HelpItem.h: Removed.
  5242. * src/HelpItemFactory.cc: Removed.
  5243. * src/HelpItemFactory.h: Removed.
  5244. * src/Makefile.am
  5245. * src/Makefile.in
  5246. * src/NameMatchOptionHandler.h
  5247. * src/OptionHandler.cc
  5248. * src/OptionHandler.h
  5249. * src/OptionHandlerFactory.cc
  5250. * src/OptionHandlerImpl.h
  5251. * src/OptionParser.cc
  5252. * src/OptionParser.h
  5253. * src/TagContainer.cc: Removed.
  5254. * src/TagContainer.h: Removed.
  5255. * src/TaggedItem.cc: Removed.
  5256. * src/TaggedItem.h: Removed.
  5257. * src/main.cc
  5258. * src/option_processing.cc
  5259. * src/usage_text.h
  5260. * src/version_usage.cc
  5261. * test/HelpItemTest.cc: Removed.
  5262. * test/Makefile.am
  5263. * test/Makefile.in
  5264. * test/OptionHandlerTest.cc
  5265. * test/OptionParserTest.cc
  5266. * test/TagContainerTest.cc: Removed.
  5267. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5268. Moved `TransferStat stat = ...' to inside the `if' clause.
  5269. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5270. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5271. Fixed the bug that a block in a piece is requested when same block is
  5272. already requested to the same peer in end game mode.
  5273. * src/BtRequestFactory.h
  5274. * src/DefaultBtInteractive.cc
  5275. * src/DefaultBtRequestFactory.cc
  5276. * src/DefaultBtRequestFactory.h
  5277. * src/DefaultPieceStorage.cc
  5278. * src/DefaultPieceStorage.h
  5279. * src/PieceStorage.h
  5280. * src/UnknownLengthPieceStorage.cc
  5281. * src/UnknownLengthPieceStorage.h
  5282. * test/DefaultBtRequestFactoryTest.cc
  5283. * test/DefaultPieceStorageTest.cc
  5284. * test/MockBtRequestFactory.h
  5285. * test/MockPieceStorage.h
  5286. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5287. Removed _uploadLength and _downloadLength from PeerSessionResource
  5288. and use PeerStat::_sessionUploadLength and
  5289. PeerStat::_sessionDownloadLength.
  5290. * src/PeerSessionResource.cc
  5291. * src/PeerSessionResource.h
  5292. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5293. Fixed the bug that prefixLength of split bucket which doesn't include
  5294. local node ID is incremented.
  5295. * src/DHTBucket.cc
  5296. * src/DHTBucket.h
  5297. * test/DHTBucketTest.cc
  5298. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5299. Added cookies.sqlite to EXTRA_DIST
  5300. * test/Makefile.am
  5301. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. Added Turkish translation. Updated French, German, Russian and
  5303. Simplified Chinese translations. Thanks to all translators.
  5304. * po/LINGUAS
  5305. * po/de.po
  5306. * po/fr.po
  5307. * po/ru.po
  5308. * po/tr.po
  5309. * po/zh_CN.po
  5310. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5311. Added deliminating text to the beginning of the log so that one can find
  5312. where the log starts easily.
  5313. * src/main.cc
  5314. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5315. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5316. to fix compile error when async DNS is not enabled by configuration.
  5317. * src/AbstractCommand.cc
  5318. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. If establishing conneciton to a server is failed, then mark error on
  5320. its ServerStat.
  5321. Added the cause of error to log when error event occurred.
  5322. Moved message string to message.h for translation.
  5323. * src/AbstractCommand.cc
  5324. * src/AbstractCommand.h
  5325. * src/FtpNegotiationCommand.cc
  5326. * src/HttpRequestCommand.cc
  5327. * src/PeerAbstractCommand.cc
  5328. * src/message.h
  5329. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Added the function to get error message from socket.
  5331. * src/SocketCore.cc
  5332. * src/SocketCore.h
  5333. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5335. * src/RequestGroupMan.cc
  5336. * src/RequestGroupMan.h
  5337. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5338. If error event is received in epoll, then abort download immediately.
  5339. * src/AbstractCommand.cc
  5340. * src/Command.cc
  5341. * src/Command.h
  5342. * src/DownloadEngine.cc
  5343. * src/PeerAbstractCommand.cc
  5344. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5345. Added usage message for --uri-selector, --server-stat-of,
  5346. --server-stat-in, --server-stat-timeout options.
  5347. * src/HelpItemFactory.cc
  5348. * src/usage_text.h
  5349. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5350. Added upper limit of FTP response buffer. The current implementation
  5351. uses 4096bytes as a limit.
  5352. * src/FtpConnection.cc
  5353. * src/FtpConnection.h
  5354. * test/FtpConnectionTest.cc
  5355. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5356. Use non-blocking socket for TCP communication to avoid possible
  5357. blocking due to buffer full.
  5358. * src/AbstractProxyRequestCommand.cc
  5359. * src/FtpConnection.cc
  5360. * src/FtpConnection.h
  5361. * src/FtpNegotiationCommand.cc
  5362. * src/FtpNegotiationCommand.h
  5363. * src/HttpConnection.cc
  5364. * src/HttpConnection.h
  5365. * src/HttpRequestCommand.cc
  5366. * src/InitiatorMSEHandshakeCommand.cc
  5367. * src/InitiatorMSEHandshakeCommand.h
  5368. * src/MSEHandshake.cc
  5369. * src/MSEHandshake.h
  5370. * src/Makefile.am
  5371. * src/PeerConnection.cc
  5372. * src/PeerConnection.h
  5373. * src/PeerInteractionCommand.cc
  5374. * src/PeerListenCommand.cc
  5375. * src/ReceiverMSEHandshakeCommand.cc
  5376. * src/ReceiverMSEHandshakeCommand.h
  5377. * src/SocketBuffer.cc
  5378. * src/SocketBuffer.h
  5379. * src/SocketCore.cc
  5380. * src/SocketCore.h
  5381. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5382. Call setStatusRealtime() in constructor.
  5383. * src/RealtimeCommand.cc
  5384. * src/RealtimeCommand.h
  5385. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5386. Call Download::setNoWait(true) to execute newly created command without
  5387. a pause.
  5388. * src/AbstractCommand.cc
  5389. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5391. found' error from HTTP/FTP server NUM times without getting single
  5392. bytes of data, then force the download to fail.
  5393. Basically aria2 tris all URIs available. So if long list of URIs are
  5394. specified in Metalink, then aria2 will take a long time to fail
  5395. eventually if all URIs are outdated. This option eases this situation
  5396. to limit the number of servers to try.
  5397. * src/FtpNegotiationCommand.cc
  5398. * src/HelpItemFactory.cc
  5399. * src/HttpResponseCommand.cc
  5400. * src/OptionHandlerFactory.cc
  5401. * src/PeerStat.h
  5402. * src/RequestGroup.cc
  5403. * src/RequestGroup.h
  5404. * src/SegmentMan.cc
  5405. * src/SegmentMan.h
  5406. * src/option_processing.cc
  5407. * src/prefs.cc
  5408. * src/prefs.h
  5409. * src/usage_text.h
  5410. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5411. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5412. response even if more than one response is in it.
  5413. * src/FtpConnection.cc
  5414. * src/FtpConnection.h
  5415. * test/FtpConnectionTest.cc
  5416. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Merged from stable-0.15
  5418. * m4/libcares.m4
  5419. Use pkg-config
  5420. * m4/sqlite3.m4
  5421. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5422. Removed unnecessary if statement.
  5423. * src/DefaultPieceStorage.cc (initPieceStorage)
  5424. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5425. Added --connect-timeout option to specify connect timeout in seconds.
  5426. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5427. connecting to BitTorrent peer is not controlled by this option.
  5428. * src/AbstractProxyRequestCommand.cc
  5429. * src/FtpNegotiationCommand.cc
  5430. * src/HelpItemFactory.cc
  5431. * src/HttpRequestCommand.cc
  5432. * src/OptionHandlerFactory.cc
  5433. * src/option_processing.cc
  5434. * src/prefs.cc
  5435. * src/prefs.h
  5436. * src/usage_text.h
  5437. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. Added help message for -R option.
  5439. * src/HelpItemFactory.cc
  5440. * src/usage_text.h
  5441. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5442. Added the message that the time is in local time zone.
  5443. * src/RequestGroup.cc
  5444. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5445. Implemented the ability to get timestamp from remote FTP server using
  5446. MDTM command described in RFC3659.
  5447. * src/FtpConnection.cc
  5448. * src/FtpConnection.h
  5449. * src/FtpNegotiationCommand.cc
  5450. * src/FtpNegotiationCommand.h
  5451. * test/FtpConnectionTest.cc
  5452. * test/Makefile.am
  5453. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5454. Implemented the ability to get timestamp from remote HTTP server and
  5455. apply it to local file. To enable this feature, --remote-time option
  5456. is added. No usage text has been written yet.
  5457. If several servers returns difference timestamp, then aria2 uses latest
  5458. one.
  5459. * src/CopyDiskAdaptor.cc
  5460. * src/CopyDiskAdaptor.h
  5461. * src/DirectDiskAdaptor.cc
  5462. * src/DirectDiskAdaptor.h
  5463. * src/DiskAdaptor.h
  5464. * src/File.cc
  5465. * src/File.h
  5466. * src/HttpHeader.cc
  5467. * src/HttpHeader.h
  5468. * src/HttpResponse.cc
  5469. * src/HttpResponse.h
  5470. * src/HttpResponseCommand.cc
  5471. * src/HttpResponseCommand.h
  5472. * src/MultiDiskAdaptor.cc
  5473. * src/MultiDiskAdaptor.h
  5474. * src/OptionHandlerFactory.cc
  5475. * src/RequestGroup.cc
  5476. * src/RequestGroup.h
  5477. * src/RequestGroupMan.cc
  5478. * src/option_processing.cc
  5479. * src/prefs.cc
  5480. * src/prefs.h
  5481. * test/CopyDiskAdaptorTest.cc
  5482. * test/FileTest.cc
  5483. * test/Makefile.am
  5484. * test/Makefile.in
  5485. * test/MultiDiskAdaptorTest.cc
  5486. * test/TestUtil.cc
  5487. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5488. Fixed the bug that DiskWriterEntry is not created when its
  5489. FileEntry.isRequested() is false and it doesn't share a piece with
  5490. other FileEntries that are requested. This bug causes segmentation fault
  5491. in the end.
  5492. * src/MultiDiskAdaptor.cc
  5493. * src/MultiDiskAdaptor.h
  5494. * src/MultiFileAllocationIterator.cc
  5495. * test/MultiDiskAdaptorTest.cc
  5496. * test/MultiFileAllocationIteratorTest.cc
  5497. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5498. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5499. called if the number of file entries are greater than max open files.
  5500. * src/AbstractSingleDiskAdaptor.cc
  5501. * src/AbstractSingleDiskAdaptor.h
  5502. * src/DiskAdaptor.h
  5503. * src/MultiDiskAdaptor.cc
  5504. * src/MultiDiskAdaptor.h
  5505. * test/MultiDiskAdaptorTest.cc
  5506. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5507. Added a constuctor that receives struct timeval.
  5508. Added operator<.
  5509. * src/TimeA2.cc
  5510. * src/TimeA2.h
  5511. * test/TimeTest.cc
  5512. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5513. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5514. * src/CookieParser.cc
  5515. * test/CookieParserTest.cc
  5516. * test/HttpResponseTest.cc
  5517. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5518. Implmented the functions to parse date.
  5519. * src/TimeA2.cc
  5520. * src/TimeA2.h
  5521. * test/TimeTest.cc
  5522. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5523. Added "Firefox3 Cookie" feature to FeatureConfig
  5524. * src/FeatureConfig.cc
  5525. * src/FeatureConfig.h
  5526. * test/FeatureConfigTest.cc
  5527. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5528. Bump up version number to 0.16.0b
  5529. * configure.ac
  5530. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Use pkg-config if is is available.
  5532. * m4/openssl.m4
  5533. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5535. * src/BtAnnounce.h
  5536. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5537. If an error occurred with a URI, remove identical URI from remaining
  5538. URI list because it is likely that same error occurred in the end and it
  5539. is waste of time.
  5540. * src/AbstractCommand.cc
  5541. * src/RequestGroup.cc
  5542. * src/RequestGroup.h
  5543. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5544. Removed wrong comment.
  5545. * src/DefaultPeerStorage.cc
  5546. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5548. Added return value of getpid() to argument of srand() to achieve more
  5549. randomized value.
  5550. * src/SimpleRandomizer.cc
  5551. * src/SimpleRandomizer.h
  5552. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5553. Contact tracker frequently when the number of connections are 0 and
  5554. download is not finished yet.
  5555. * src/ActivePeerConnectionCommand.cc
  5556. * src/BtAnnounce.h
  5557. * src/DefaultBtAnnounce.cc
  5558. * src/DefaultBtAnnounce.h
  5559. * test/MockBtAnnounce.h
  5560. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5561. Moved threshold values to UTPexExtensionMessage.
  5562. * src/DefaultBtInteractive.cc
  5563. * src/Peer.cc
  5564. * src/Peer.h
  5565. * src/UTPexExtensionMessage.cc
  5566. * src/UTPexExtensionMessage.h
  5567. * test/UTPexExtensionMessageTest.cc
  5568. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. Added _incoming member to Peer class and made it true if the peer
  5570. initiated connection. Don't add those peer to UTPex message.
  5571. If extended handshake is received, assign _incoming to false.
  5572. * src/DefaultBtInteractive.cc
  5573. * src/HandshakeExtensionMessage.cc
  5574. * src/Peer.cc
  5575. * src/Peer.h
  5576. * src/PeerListenCommand.cc
  5577. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5578. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5579. Encoding Decoder. Removed size threshold for turning off on the fly
  5580. inflation because resulting file may or may not be inflated depending
  5581. on the file size and I think it is not expected by users.
  5582. This change fixes segmentation fault when Metalink file contains gzipped
  5583. file and its filesize is provided.
  5584. * src/HttpResponseCommand.cc
  5585. * src/HttpResponseCommand.h
  5586. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5587. Made Cookie immutable.
  5588. * src/Cookie.cc
  5589. * src/Cookie.h
  5590. * src/CookieParser.cc
  5591. * src/CookieParser.h
  5592. * src/CookieStorage.cc
  5593. * test/CookieParserTest.cc
  5594. * test/CookieStorageTest.cc
  5595. * test/NsCookieParserTest.cc
  5596. * test/Sqlite3MozCookieParserTest.cc
  5597. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. Removed CookieBox, CookieBoxFactory.
  5599. * src/CookieBox.cc
  5600. * src/CookieBox.h
  5601. * src/CookieBoxFactory.cc
  5602. * src/CookieBoxFactory.h
  5603. * src/Makefile.am
  5604. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5605. Use CookieStorage class instead of CookieBox class.
  5606. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5607. * src/AbstractProxyRequestCommand.cc
  5608. * src/CookieStorage.cc
  5609. * src/DownloadEngine.cc
  5610. * src/DownloadEngine.h
  5611. * src/HttpConnection.cc
  5612. * src/HttpConnection.h
  5613. * src/HttpRequest.cc
  5614. * src/HttpRequest.h
  5615. * src/HttpRequestCommand.cc
  5616. * src/HttpResponse.cc
  5617. * src/HttpResponseCommand.cc
  5618. * src/HttpSkipResponseCommand.cc
  5619. * src/Makefile.am
  5620. * src/MultiUrlRequestInfo.cc
  5621. * src/Request.cc
  5622. * src/Request.h
  5623. * src/main.cc
  5624. * test/AllTest.cc
  5625. * test/CookieStorageTest.cc
  5626. * test/CookieTest.cc
  5627. * test/HttpRequestTest.cc
  5628. * test/HttpResponseTest.cc
  5629. * test/Makefile.am
  5630. * test/NsCookieParserTest.cc
  5631. * test/Sqlite3MozCookieParserTest.cc
  5632. * test/nscookietest.txt
  5633. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. Updated
  5635. * test/Cookies.sqlite
  5636. * test/nscookietest.txt
  5637. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5638. Added tests for CookieStorage::load()
  5639. * test/CookieStorageTest.cc
  5640. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5641. Added CookieStorage class which is based on RFC2109 and manages cookies
  5642. more strictly than CookieBox and CookieBoxFactory class.
  5643. * src/CookieStorage.cc
  5644. * src/CookieStorage.h
  5645. * src/Cookie.cc
  5646. * src/Cookie.h
  5647. * test/CookieStorageTest.cc
  5648. * test/CookieTest.cc
  5649. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5650. Fixed the bug that commands are created more than the number of pieces.
  5651. * src/RequestGroup.cc
  5652. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5653. Fixed infinite loop bug in FTP when SIZE command failed.
  5654. * src/FtpNegotiationCommand.cc
  5655. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. Removed DirectDiskAdaptorTest.h
  5657. * test/Makefile.am
  5658. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Fixed chunk checksum validation cannot detect trailing garbage data.
  5660. BUG#2074141
  5661. * src/AbstractSingleDiskAdaptor.cc
  5662. * src/AbstractSingleDiskAdaptor.h
  5663. * src/CheckIntegrityEntry.cc
  5664. * src/CheckIntegrityEntry.h
  5665. * src/DiskAdaptor.h
  5666. * src/MultiDiskAdaptor.cc
  5667. * src/MultiDiskAdaptor.h
  5668. * src/RequestGroup.cc
  5669. * test/DirectDiskAdaptorTest.cc
  5670. * test/MultiDiskAdaptorTest.cc
  5671. * test/TestUtil.cc
  5672. * test/TestUtil.h
  5673. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Bump up version number of dht.dat file to 3. In version 3 format, time
  5675. is stored in 64bit, network byte order.
  5676. New build can load old format(version 2) but it saves the file in new
  5677. format. It means once you used new build, your dht.dat becomes
  5678. incompatible with older build.
  5679. * src/DHTRoutingTableDeserializer.cc
  5680. * src/DHTRoutingTableSerializer.cc
  5681. * test/DHTRoutingTableSerializerTest.cc
  5682. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5683. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5684. * test/Makefile.am
  5685. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5686. Bump up version number of .aria2 control file to 0001.
  5687. New aria2 can still load version 0000 file but it saves the file in
  5688. version 0001 format. It means that new aria2 can resume download
  5689. started by old aria2 but the opposite is not true.
  5690. * src/DefaultBtProgressInfoFile.cc
  5691. * src/DefaultBtProgressInfoFile.h
  5692. * test/DefaultBtProgressInfoFileTest.cc
  5693. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5694. Added ntoh64 and hton64 as inline functions.
  5695. * src/Util.cc
  5696. * test/UtilTest.cc
  5697. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5698. Added sqlite3 depenency and Firefox3 cookie support.
  5699. * README
  5700. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5701. State that firefox3 cookie is supported explicitly in the usage.
  5702. * src/usage_text.h
  5703. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5704. Externalized message.
  5705. * src/RequestGroupMan.cc
  5706. * src/message.h
  5707. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Save temporary file first and rename to the destination on success.
  5709. Added test cases.
  5710. * src/RequestGroupMan.cc
  5711. * test/RequestGroupManTest.cc
  5712. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5713. Fixed the bug that the number of connected peer is exceeding the limit
  5714. (55 by default) in seeding mode.
  5715. Multiplied 0.8 to _maxUploadSpeedLimit.
  5716. * src/ActivePeerConnectionCommand.cc
  5717. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5718. Clear table item.
  5719. * src/Dictionary.cc
  5720. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5721. Fixed error handling of lseek.
  5722. * src/AbstractDiskWriter.cc
  5723. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5724. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5725. style cookie file.
  5726. * src/usage_text.h
  5727. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5729. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5730. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5731. * src/Util.cc
  5732. * src/Util.h
  5733. * src/CookieParser.cc
  5734. * test/UtilTest.cc
  5735. * test/CookieParserTest.cc
  5736. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Separate the implementation to load old mozilla format of cookie to
  5738. NsCookieParser class.
  5739. * src/CookieBoxFactory.cc
  5740. * src/CookieBoxFactory.h
  5741. * src/NsCookieParser.cc
  5742. * src/NsCookieParser.h
  5743. * test/NsCookieParserTest.cc
  5744. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. Made parse() const
  5746. * src/Sqlite3MozCookieParser.cc
  5747. * src/Sqlite3MozCookieParser.h
  5748. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Added firefox3 cookie support based on the patch submitted by
  5750. tizianomueller.
  5751. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5752. this functionality.
  5753. * configure.ac
  5754. * m4/sqlite3.m4
  5755. * src/CookieBoxFactory.cc
  5756. * src/CookieBoxFactory.h
  5757. * src/Makefile.am
  5758. * src/Makefile.in
  5759. * src/Sqlite3MozCookieParser.cc
  5760. * src/Sqlite3MozCookieParser.h
  5761. * src/main.cc
  5762. * test/CookieBoxFactoryTest.cc
  5763. * test/Makefile.am
  5764. * test/Makefile.in
  5765. * test/Sqlite3MozCookieParserTest.cc
  5766. * test/badcookies.sqlite
  5767. * test/cookies.sqlite
  5768. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. Added Danish and Greek translations.
  5770. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5771. Great thanks to all translators.
  5772. * po/LINGUAS
  5773. * po/el.po
  5774. * po/da.po
  5775. * po/es.po
  5776. * po/ca.po
  5777. * po/nn.po
  5778. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Fixed man page: --follow-bittorrent should be --follow-torrent
  5780. * doc/aria2c.1.txt
  5781. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5782. Fixed: numCommand is less than the value specified in -C option.
  5783. * src/RequestGroup.cc
  5784. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Fixed occasional assertion failure in PieceSegment.
  5786. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5787. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5788. creation of duplicate segments and one of the segment was finished then
  5789. assertion failure was caused.
  5790. * src/SegmentMan.cc
  5791. * test/SegmentManTest.cc
  5792. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5793. Added options to load/save the server's performance/status to a file
  5794. and the timeout to drop their data.
  5795. --server-stat-of=FILE specifies the file to which performance data
  5796. is saved.
  5797. --server-stat-if=FILE specifies the file to read previously saved
  5798. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5799. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5800. TIMEOUT is specified in seconds and the default value is 24hours.
  5801. * src/MultiUrlRequestInfo.cc
  5802. * src/OptionHandlerFactory.cc
  5803. * src/RequestGroupMan.cc
  5804. * src/RequestGroupMan.h
  5805. * src/ServerStatMan.cc
  5806. * src/ServerStatMan.h
  5807. * src/option_processing.cc
  5808. * src/prefs.cc
  5809. * src/prefs.h
  5810. * test/ServerStatManTest.cc
  5811. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5813. * src/ServerStatMan.cc
  5814. * src/ServerStatMan.h
  5815. * test/ServerStatManTest.cc
  5816. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Implemented ServerStatMan::load(...) function and its test case.
  5818. * src/ServerStat.cc
  5819. * src/ServerStat.h
  5820. * src/ServerStatMan.cc
  5821. * test/ServerStatManTest.cc
  5822. * test/ServerStatTest.cc
  5823. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Use time_t instead of int32_t. Use int64_t where milli second is
  5825. expected.
  5826. * src/TimeA2.cc
  5827. * src/TimeA2.h
  5828. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5829. Implemented ServerStatMan::save(...) function and its test case.
  5830. * src/ServerStat.cc
  5831. * src/ServerStat.h
  5832. * src/ServerStatMan.cc
  5833. * src/ServerStatMan.h
  5834. * test/ServerStatManTest.cc
  5835. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5836. Now aria2 uses name attribute in Metalink as local filename in
  5837. BitTorrent downloads. BUG#2033999
  5838. * src/BtContext.h
  5839. * src/BtDependency.cc
  5840. * src/DefaultBtContext.cc
  5841. * src/DefaultBtContext.h
  5842. * src/SingleFileDownloadContext.cc
  5843. * src/SingleFileDownloadContext.h
  5844. * test/BtDependencyTest.cc
  5845. * test/DefaultBtContextTest.cc
  5846. * test/MockBtContext.h
  5847. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5848. Added AC_C_BIGENDIAN
  5849. * src/configure.ac
  5850. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Limited numCommand less than or equal to the number of piece.
  5852. * src/RequestGroup.cc
  5853. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5854. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5855. directive.
  5856. * test/DefaultPieceStorageTest.cc
  5857. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5858. Fixed memory leak in test code
  5859. * test/AnnounceListTest.cc
  5860. * test/DefaultPeerListProcessorTest.cc
  5861. * test/DefaultPeerStorageTest.cc
  5862. * test/MetaFileUtilTest.cc
  5863. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5864. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5865. * src/DefaultPieceStorage.cc
  5866. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5867. Initialized _directIOAllowed
  5868. * src/MultiDiskAdaptor.cc
  5869. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Fixed memory leak
  5871. * src/GZipDecoder.cc
  5872. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5873. Fixed memory leak
  5874. * src/MetalinkParserStateMachine.cc
  5875. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5876. Fixed memory leak
  5877. * src/Dictionary.cc
  5878. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5879. Fixed memory leak
  5880. * src/IteratableChunkChecksumValidator.h
  5881. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5882. Fixed unmatched malloc/free.
  5883. * src/IteratableChunkChecksumValidator.cc
  5884. * src/IteratableChecksumValidator.cc
  5885. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Removed max chunk size check. This change fixes BUG#2040169
  5887. * src/ChunkedDecoder.cc
  5888. * src/ChunkedDecoder.h
  5889. * test/ChunkedDecoderTest.cc
  5890. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5891. Implemented download speed based URI selection algorithm.
  5892. Introduced new option --uri-selector.
  5893. If --uri-selector=feedback is given, aria2 uses download speed observed
  5894. in the previous downloads and chooses fastest server in the URI list.
  5895. Currently at most 10 URIs are considered to introduce randomeness for
  5896. finding better servers. The speed is average download speed in the
  5897. downloads.
  5898. On the other hand, if --uri-selector=inorder is given, which is default,
  5899. URI is tried in order in URI list.
  5900. The usage text for the new option has not been written yet.
  5901. * src/AbstractCommand.cc
  5902. * src/DownloadCommand.cc
  5903. * src/DownloadEngine.cc
  5904. * src/DownloadEngineFactory.cc
  5905. * src/InOrderURISelector.cc
  5906. * src/InOrderURISelector.h
  5907. * src/OptionHandlerFactory.cc
  5908. * src/PeerStat.h
  5909. * src/RequestGroup.cc
  5910. * src/RequestGroup.h
  5911. * src/RequestGroupMan.cc
  5912. * src/RequestGroupMan.h
  5913. * src/SegmentMan.cc
  5914. * src/SegmentMan.h
  5915. * src/ServerStat.cc
  5916. * src/ServerStat.h
  5917. * src/ServerStatMan.cc
  5918. * src/ServerStatMan.h
  5919. * src/ServerStatURISelector.cc
  5920. * src/ServerStatURISelector.h
  5921. * src/URISelector.h
  5922. * src/option_processing.cc
  5923. * src/prefs.cc
  5924. * src/prefs.h
  5925. * test/InOrderURISelectorTest.cc
  5926. * test/RequestGroupManTest.cc
  5927. * test/ServerStatManTest.cc
  5928. * test/ServerStatURISelectorTest.cc
  5929. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. * Release 0.15.1+2
  5931. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5932. Bump up version number to 0.15.1+2
  5933. * configure.ac
  5934. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5936. * m4/aria2_arg.m4
  5937. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. * Release 0.15.1+1
  5939. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5940. Bump up version number to 0.15.1+1
  5941. * configure.ac
  5942. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5943. Fixed the bug that causes segmentaion fault when resuming download
  5944. using metalink without size tag. Reproducible only using HTTP URI.
  5945. * src/HttpResponseCommand.cc
  5946. * src/FtpNegotiationCommand.cc
  5947. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5948. * Release 0.15.1
  5949. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5950. Updated Bulgarian and French translations, thanks to all translators.
  5951. * po/bg.po
  5952. * po/fr.po
  5953. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5954. Bump up version number to 0.15.1
  5955. * configure.ac
  5956. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5957. Avoid repeated call of gettimeofday() when calculating speed.
  5958. * src/SpeedCalc.cc
  5959. * src/SpeedCalc.h
  5960. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5961. Removed writable check when socket's send buffer is full in BitTorrent
  5962. downloads to lower CPU usage.
  5963. * src/PeerInteractionCommand.cc
  5964. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. Fixed broken gzip inflation.
  5966. Turn off segmented downloading if gzip content is smaller than or equal
  5967. to 1MiB and inflate the data on the fly, because HTTP response header
  5968. doesn't contain the length of inflated file we can't determin where
  5969. the chunk of data should be written.
  5970. On the other hand, if gzip content is larger than 1MB, then turn off
  5971. on the fly inflation, because some servers returns "content-type: gzip"
  5972. for *.tgz, *.gz files.
  5973. * src/DownloadCommand.cc
  5974. * src/HttpResponseCommand.cc
  5975. * src/HttpResponseCommand.h
  5976. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5977. Applied tizianomueller's patch to fix compile error.
  5978. * test/BitfieldManTest.cc
  5979. * test/BtRequestMessageTest.cc
  5980. * test/DefaultBtContextTest.cc
  5981. * test/DefaultDiskWriterTest.cc
  5982. * test/DefaultPieceStorageTest.cc
  5983. * test/HttpHeaderProcessorTest.cc
  5984. * test/HttpResponseTest.cc
  5985. * test/Metalink2RequestGroupTest.cc
  5986. * test/MetalinkParserControllerTest.cc
  5987. * test/MetalinkProcessorTest.cc
  5988. * test/PeerSessionResourceTest.cc
  5989. * test/UtilTest.cc
  5990. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5991. * Release 0.15.0
  5992. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5993. Reordered src files in POTFILES.in so that usage text appears first.
  5994. * po/POTFILES.in
  5995. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5996. Bump up version number to 0.15.0
  5997. * configure.ac
  5998. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. Added Bulgarian translation.
  6000. Updated Catalan, Spanish, French and Japanese translations.
  6001. Thanks to all translators.
  6002. * po/LINGUAS
  6003. * po/bg.po
  6004. * po/ca.po
  6005. * po/es.po
  6006. * po/fr.po
  6007. * po/ja.po
  6008. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6009. Updated feature list. Added libz for dependency section.
  6010. Added a description about unit testing using CppUnit.
  6011. * README
  6012. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6013. Added a test for libz. Quoted where it is necessary.
  6014. * build_test.sh
  6015. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6016. Added GZip to `Enabled Features' list.
  6017. * src/FeatureConfig.cc
  6018. * src/FeatureConfig.h
  6019. * test/FeatureConfigTest.cc
  6020. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6021. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6022. the transfer has not yet started.
  6023. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6024. * src/SegmentMan.cc
  6025. * src/SegmentMan.h
  6026. * test/SegmentManTest.cc
  6027. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Cache last calculated average download/upload speed.
  6029. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6030. cached value.
  6031. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6032. * src/PeerStat.h
  6033. * src/SpeedCalc.cc
  6034. * src/SpeedCalc.h
  6035. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6036. Call parseUrl directly.
  6037. * src/Request.cc (resetUrl)
  6038. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Supported absolute/relative path in Location header field.
  6040. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6041. * src/HttpHeader.cc
  6042. * src/HttpHeader.h
  6043. * src/HttpResponse.cc
  6044. * src/HttpSkipResponseCommand.cc
  6045. * src/Request.cc
  6046. * test/HttpHeaderTest.cc
  6047. * test/HttpResponseTest.cc
  6048. * test/RequestTest.cc
  6049. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Changed help text for --load-cookie option.
  6051. * doc/aria2c.1.txt
  6052. * src/usage_text.h
  6053. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6054. Regenerated test/Makefile.in to remove stale ChangeLog.
  6055. * test/Makefile.in
  6056. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. Updated po files.
  6058. * po/aria2c.pot
  6059. * po/*.po
  6060. * po/*.gmo
  6061. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. Bump up version number to 0.15.0b
  6063. * configure.ac
  6064. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6065. Externalize messages.
  6066. * src/RequestGroupMan.cc
  6067. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6068. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6069. Use File::exists() instead of File::isFile() to allow non-regular file
  6070. such as block special files.
  6071. * src/AbstractDiskWriter.cc
  6072. * src/MultiDiskWriter.cc
  6073. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6075. * src/gai_strerror.h
  6076. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6077. Fixed compile error. Thanks gknauf for the patch.
  6078. * src/asctime_r.c
  6079. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6080. Included asctime_r.h from a2time.h.
  6081. * src/a2time.h
  6082. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Added a message "aria2 doesn't verify signature" to log message when
  6084. signature file is saved.
  6085. * src/RequestGroupMan.cc
  6086. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6087. Added the ability to save signature when download is completed if
  6088. signature is available. The filename of signature file is the path to
  6089. download file followed by ".sig". If it already exists, then signature
  6090. will not be saved.
  6091. * src/RequestGroupMan.cc
  6092. * src/Signature.cc
  6093. * test/SignatureTest.cc
  6094. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6095. Updated the descriptions for --bt-seed-unverified.
  6096. * doc/aria2c.1
  6097. * doc/aria2c.1.html
  6098. * doc/aria2c.1.txt
  6099. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6100. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6101. that this is not going to verify files using piece hashes.
  6102. * src/HelpItemFactory.cc
  6103. * src/OptionHandlerFactory.cc
  6104. * src/RequestGroup.cc
  6105. * src/option_processing.cc
  6106. * src/prefs.cc
  6107. * src/prefs.h
  6108. * src/usage_text.h
  6109. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6110. Added the ability to retrieve signature from Metalink file.
  6111. A retrieved signature is stored in Signature class and it is held by
  6112. DownloadContext class. Note that aria2 doesn't verify signature.
  6113. * src/DownloadContext.cc
  6114. * src/DownloadContext.h
  6115. * src/Makefile.am
  6116. * src/Makefile.in
  6117. * src/Metalink2RequestGroup.cc
  6118. * src/MetalinkEntry.cc
  6119. * src/MetalinkEntry.h
  6120. * src/MetalinkParserController.cc
  6121. * src/MetalinkParserController.h
  6122. * src/MetalinkParserStateMachine.cc
  6123. * src/MetalinkParserStateMachine.h
  6124. * src/Signature.cc
  6125. * src/Signature.h
  6126. * src/SignatureMetalinkParserState.cc
  6127. * src/SignatureMetalinkParserState.h
  6128. * src/VerificationMetalinkParserState.cc
  6129. * src/VerificationMetalinkParserState.h
  6130. * test/Metalink2RequestGroupTest.cc
  6131. * test/MetalinkParserControllerTest.cc
  6132. * test/MetalinkProcessorTest.cc
  6133. * test/test.xml
  6134. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Close DiskAdaptor after renaming file.
  6136. * src/RequestGroup.cc
  6137. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Corrected indentation
  6139. * src/DefaultBtProgressInfoFile.cc
  6140. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. Moved the calls of std::ios::exceptions() inside of try-catch block
  6142. because if an error occurred in constructor of std::fstream, then
  6143. exception is thrown immediately when std::ios::exceptions() is called
  6144. which results unhandled exception and aria2c aborts.
  6145. * src/DefaultBtProgressInfoFile.cc
  6146. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Added the test for the previous change in DefaultBtContext.cc
  6148. * test/DefaultBtContextTest.cc
  6149. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Fixed the bug that causes infinite loop when the number of pieces are
  6151. fewer than allowed fast set size which is 10 by default.
  6152. * src/DefaultBtContext.cc
  6153. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6154. Updated the descriptions for -j, -s. Added --bt-seed.
  6155. * doc/aria2c.1
  6156. * doc/aria2c.1.html
  6157. * doc/aria2c.1.txt
  6158. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6160. aria2 seeds previously downloaded files without validating piece hashs.
  6161. * src/HelpItemFactory.cc
  6162. * src/OptionHandlerFactory.cc
  6163. * src/RequestGroup.cc
  6164. * src/option_processing.cc
  6165. * src/prefs.cc
  6166. * src/prefs.h
  6167. * src/usage_text.h
  6168. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Updated DESCRIPTION of man page.
  6170. * doc/aria2c.1
  6171. * doc/aria2c.1.html
  6172. * doc/aria2c.1.txt
  6173. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6175. Don't define `struct addrinfo' when __sun is defined.
  6176. * src/getaddrinfo.h
  6177. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6179. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6180. second argument is of type `struct _stati64'. Otherwise it is defined as
  6181. `struct stat'.
  6182. * src/AbstractDiskWriter.cc
  6183. * src/File.cc
  6184. * src/File.h
  6185. * src/a2io.h
  6186. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6187. Fixed the compile error in hurd-i386
  6188. See the original bug report:
  6189. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6190. * src/a2io.h
  6191. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Code cleanup.
  6193. * src/PeerAbstractCommand.cc
  6194. * src/PeerAbstractCommand.h
  6195. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Removed TransferEncoding.
  6197. * src/DownloadCommand.cc
  6198. * src/DownloadCommand.h
  6199. * src/HttpResponseCommand.cc
  6200. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6201. Updated po files.
  6202. * po/aria2c.pot
  6203. * po/*.po
  6204. * po/*.gmo
  6205. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6206. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6207. * src/A2STR.cc
  6208. * src/A2STR.h
  6209. * src/ChunkedDecoder.cc
  6210. * src/ChunkedDecoder.h
  6211. * src/ChunkedEncoding.cc: Removed
  6212. * src/ChunkedEncoding.h: Removed
  6213. * src/DownloadCommand.cc
  6214. * src/DownloadCommand.h
  6215. * src/HttpDownloadCommand.cc
  6216. * src/HttpResponse.cc
  6217. * src/HttpResponse.h
  6218. * src/HttpResponseCommand.cc
  6219. * src/HttpSkipResponseCommand.cc
  6220. * src/HttpSkipResponseCommand.h
  6221. * src/Makefile.am
  6222. * src/TransferEncoding.h: Removed
  6223. * test/ChunkedDecoderTest.cc
  6224. * test/ChunkedEncodingTest.cc: Removed
  6225. * test/HttpResponseTest.cc
  6226. * test/Makefile.am
  6227. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6228. Use append instead of insert.
  6229. * src/GZipDecoder.cc
  6230. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6231. Updated doc
  6232. * src/Decoder.h
  6233. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Updated usage text for -s option.
  6235. * src/usage_text.h
  6236. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6237. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6238. * src/Request.cc
  6239. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. Cleaned up configure.ac.
  6241. * configure.ac
  6242. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6243. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6244. AC_ARG_ENABLE.
  6245. * configure.ac
  6246. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6248. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6249. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6250. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6251. fly and writes decoded data to a local disk.
  6252. * README
  6253. * README.html
  6254. * configure.ac
  6255. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6256. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6257. * m4/libz.m4
  6258. * src/Decoder.h
  6259. * src/DownloadCommand.cc
  6260. * src/DownloadCommand.h
  6261. * src/Exception.h
  6262. * src/GZipDecoder.cc
  6263. * src/GZipDecoder.h
  6264. * src/HttpHeader.cc
  6265. * src/HttpHeader.h
  6266. * src/HttpRequest.cc
  6267. * src/HttpRequest.h
  6268. * src/HttpResponse.cc
  6269. * src/HttpResponse.h
  6270. * src/HttpResponseCommand.cc
  6271. * src/Makefile.am
  6272. * test/GZipDecoderTest.cc
  6273. * test/HttpRequestTest.cc
  6274. * test/HttpResponseTest.cc
  6275. * test/Makefile.am
  6276. * test/Makefile.in
  6277. * test/gzip_decode_test.gz
  6278. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6279. Clarified usage of -j option.
  6280. * src/usage_text.h
  6281. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6282. Disabled getting size from the response of RETR.
  6283. If SIZE command failed, then disable resuming and segmented downloading.
  6284. * src/FtpConnection.cc
  6285. * src/FtpConnection.h
  6286. * src/FtpNegotiationCommand.cc
  6287. * src/FtpNegotiationCommand.h
  6288. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6289. Use digits to find first byte of file size, which makes the intention
  6290. of the code clearer.
  6291. * src/FtpConnection.cc
  6292. Don't call validateTotalLength() when size is 0.
  6293. * src/FtpNegotiationCommand.cc
  6294. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Updated po files.
  6296. * po/aria2c.pot
  6297. * po/*.gmo
  6298. * po/*.po
  6299. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6300. Clarified usage text for --split option.
  6301. * src/usage_text.h
  6302. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6303. Bump up version number to 0.15.0dev. "dev" means "development"
  6304. version, which means I started the development of the next release!
  6305. * src/configure.ac
  6306. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6307. If FTP server returns negative response with REST raw command and
  6308. requested range is not 0, throw exception. If requested range is 0,
  6309. continue download a file from 0 byte.
  6310. * src/FtpNegotiationCommand.cc
  6311. * src/FtpNegotiationCommand.h
  6312. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Supported FTP server which don't recognize SIZE raw command.
  6314. If SIZE raw command is failed, aria2 will try to get file size
  6315. from the response of RETR raw command. If both attempts are failed,
  6316. then resuming and segmented downloading are disabled.
  6317. * src/FtpConnection.cc
  6318. * src/FtpConnection.h
  6319. * src/FtpNegotiationCommand.cc
  6320. * src/FtpNegotiationCommand.h
  6321. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. * Release 0.14.0+1
  6323. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6324. Bump up version number to 0.14.0+1
  6325. * src/configure.ac
  6326. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6327. Fixed the code that refers static member variable from non-static
  6328. context.
  6329. * src/DefaultPeerStorage.cc
  6330. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. * Release 0.14.0
  6332. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6333. Added build test script
  6334. * build_test.sh
  6335. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Updated ja.po
  6337. * src/ja.po
  6338. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Bump up version number to 0.14.0
  6340. * src/configure.ac
  6341. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6342. Updated ja.po and fr.po. Great thanks for french translators and
  6343. Sebastien WILLEMIJNS.
  6344. * po/fr.po
  6345. * po/ja.po
  6346. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. Added configure option to enable/disable epoll support.
  6348. * configure.ac
  6349. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6350. Updated man page.
  6351. * doc/aria2c.1.txt
  6352. * doc/aria2c.1
  6353. * doc/aria2c.1.html
  6354. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6355. Added missing default value '5' to the usage of --split option.
  6356. * src/HelpItemFactory.cc
  6357. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6358. Filled up pieces based on the number of missing blocks, rather than
  6359. simplay the number of piece * block length.
  6360. * src/BtRequestFactory.h
  6361. * src/DefaultBtInteractive.cc
  6362. * src/DefaultBtInteractive.h
  6363. * src/DefaultBtRequestFactory.cc
  6364. * src/DefaultBtRequestFactory.h
  6365. * src/Piece.cc
  6366. * src/Piece.h
  6367. * test/BitfieldManTest.cc
  6368. * test/DefaultBtRequestFactoryTest.cc
  6369. * test/MockBtRequestFactory.h
  6370. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6371. Made _epEvents a member variable.
  6372. * src/DownloadEngine.cc
  6373. * src/DownloadEngine.h
  6374. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6375. Cancel download if http redirect is bounded more than 20 times.
  6376. * src/AbstractCommand.cc
  6377. * src/HttpSkipResponseCommand.cc
  6378. * src/Request.cc
  6379. * src/Request.h
  6380. * test/RequestTest.cc
  6381. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Fixed unhandled exception(removed keyword `new').
  6383. * src/SocketCore.cc (initEPOLL)
  6384. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6385. Removed visit(const MetaEntry*)
  6386. * src/MetaEntryVisitor.h:
  6387. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6388. and made them virtual.
  6389. * src/BencodeVisitor.h
  6390. * src/BencodeVisitor.cc
  6391. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6392. Updated po files.
  6393. * po/aria2c.pot
  6394. * po/*.po
  6395. * po/*.gmo
  6396. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6398. the number of socket to watch out.
  6399. * src/PeerInteractionCommand.cc
  6400. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. When there is not enough space in disk when writing a chunk of data,
  6402. aria2 now prints the message to the console to warn user and aborts
  6403. its download. Not all downloads are canceled because some downloads
  6404. may use another disk or partition. BUG#1640332
  6405. * src/AbstractDiskWriter.cc
  6406. * src/PeerAbstractCommand.cc
  6407. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6408. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6409. setHaltRequested(true) to cancel download.
  6410. * src/PeerInteractionCommand.h
  6411. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6412. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6413. socket from int to sock_t as sockets are unsigned in Windows.
  6414. For AsyncNameResolver, DownloadEngine, I did additional modification
  6415. for the portion of the code changed according to epoll support.
  6416. I defined sock_t in a2netcompat.h to use sock_t without including
  6417. SocketCore.h.
  6418. * src/AsyncNameResolver.cc
  6419. * src/AsyncNameResolver.h
  6420. * src/DownloadEngine.cc
  6421. * src/DownloadEngine.h
  6422. * src/SocketCore.cc
  6423. * src/SocketCore.h
  6424. * src/a2netcompat.h
  6425. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6427. changes in the patch were applied.
  6428. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6429. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6430. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6431. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6433. a2io.h and common.h were modified.
  6434. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6435. MinGW.
  6436. * src/common.h: Changed off_t to 64 bit in MinGW.
  6437. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6439. only a2netcompat.h is modified.
  6440. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6441. directives.
  6442. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6444. only gai_strerror.h is modified.
  6445. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6446. winsock errors in MinGW.
  6447. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6448. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6449. follow sources are applied.
  6450. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6451. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6452. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6453. I included locale.h from Platform.cc.
  6454. * src/main.cc: Moved common setup/teardown code to Platform class.
  6455. * test/AllTest.cc: Use Platform class.
  6456. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6457. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6459. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6460. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6461. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6463. aria2-0.13.2+1-mingw-2.patch.
  6464. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6465. systems which don't have termious.h. I moved the directive inside of
  6466. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6467. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6468. anyway.
  6469. * src/asctime_r.h
  6470. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6471. I added 2nd argument to the prototype declaration.
  6472. * src/StringFormat.cc: Get rid of vasprintf.
  6473. * src/getaddrinfo.h: Fixed constants.
  6474. * configure.ac: Added the check for asctime_r function.
  6475. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6476. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6477. Added writable test for Socket when the sending message is in progress.
  6478. Usually the sending message is piece message. Without wriable check,
  6479. upload latency is dropped to more than 1sec.
  6480. * src/PeerInteractionCommand.cc
  6481. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Create only requested files and files which shares a piece with
  6483. requested file in multi-torrent downloads. Directory structures are
  6484. also created in the same rule.
  6485. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6486. DiskWriterEntry as in the previous implementation.
  6487. * src/MultiDiskWriter.cc
  6488. * src/MultiFileAllocationIterator.cc
  6489. * src/MultiFileAllocationIterator.h
  6490. * test/MultiFileAllocationIteratorTest.cc
  6491. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6492. Commented out -lprofiler
  6493. * src/Makefile.am
  6494. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. Bump up version number to 0.14.0b.
  6496. * src/configure.ac
  6497. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Actively establish connection to peers in seeding, when peer cache
  6499. is not full and max upload speed limit is not reached.
  6500. * src/ActivePeerConnectionCommand.cc
  6501. * src/ActivePeerConnectionCommand.h
  6502. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6504. to make room more fleshy, recently found peers.
  6505. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6506. it.
  6507. * src/DefaultPeerStorage.cc
  6508. * test/DefaultPeerStorageTest.cc
  6509. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. Returns cached data only when the previous receiveHandshake() is called
  6511. with peek = true.
  6512. * src/PeerConnection.cc (receiveHandshake)
  6513. * src/PeerConnection.h (receiveHandshake)
  6514. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6515. Changed default value of -s option from 1 to 5.
  6516. Also max value of -s option is changed from 5 to 16.
  6517. * src/HelpItemFactory.cc
  6518. * src/OptionHandlerFactory.cc
  6519. * src/option_processing.cc
  6520. * src/usage_text.h
  6521. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. Changed -s options behavior. Now it means the number of connections
  6523. made simultaneously in each http/ftp download.
  6524. If 1 URL is specified, the behavior is the same with old implementation.
  6525. If -s N is given and more than N URLs are specified, first N URLs are
  6526. used and remaining URLs are used for backup. If less than N URLs are
  6527. specified, some of URLs are used more than once so that totally N
  6528. connections are made simultaneously.
  6529. * src/main.cc
  6530. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6531. Included missing iosfwd or ostream header.
  6532. * src/RequestGroupMan.cc
  6533. * src/TaggedItem.cc
  6534. * src/TaggedItem.h
  6535. * src/Util.cc
  6536. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6538. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6539. * src/HttpConnection.cc: Included missing sstream.
  6540. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Added --bt-max-open-files option.
  6542. * src/DefaultPieceStorage.cc
  6543. * src/HelpItemFactory.cc
  6544. * src/MultiDiskAdaptor.cc
  6545. * src/MultiDiskAdaptor.h
  6546. * src/OptionHandlerFactory.cc
  6547. * src/option_processing.cc
  6548. * src/prefs.cc
  6549. * src/prefs.h
  6550. * src/usage_text.h
  6551. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. Fixed the bug that aria2 aborts when a path to a directory is given
  6553. in command-line.
  6554. * src/ProtocolDetector.cc
  6555. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Limited the number files opened in each BitTorrent download. The default
  6557. value is 100. The option to change this value will be added.
  6558. * src/MultiDiskAdaptor.cc
  6559. * src/MultiDiskAdaptor.h
  6560. * src/MultiFileAllocationIterator.cc
  6561. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Fixed the bug that HTTP downloads don't start with old libraries.
  6563. * src/HttpHeaderProcessor.cc
  6564. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6565. Use empty() instead of size() > 0.
  6566. * src/HttpConnection.cc
  6567. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6568. Drop connection if the incoming peer ID is the same with localhost's
  6569. one. The previous implementation drops connection when incoming peer's
  6570. IP address is the same with localhost's one.
  6571. * src/PeerListenCommand.cc
  6572. * src/DefaultBtInteractive.cc
  6573. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6574. Returns cached data without checking whether socket is readable
  6575. if the cache is available.
  6576. * src/PeerConnection.cc (receiveHandshake)
  6577. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Included stdint.h
  6579. * src/common.h
  6580. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. Removed duplicate HAVE_GETTIMEOFDAY
  6582. * src/Makefile.am
  6583. * src/Makefile.in
  6584. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6585. Use interval as a minInterval when minInterval is not supplied.
  6586. * src/DefaultBtAnnounce.cc
  6587. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6589. attempt is failed, then 2nd attempt get kicked out more quickly.
  6590. And it is now static const member of DefaultBtAnnounce.
  6591. * src/DefaultBtAnnounce.h
  6592. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6593. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6594. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6595. * src/ActivePeerConnectionCommand.cc
  6596. * src/BtConstants.h
  6597. * src/BtRuntime.h
  6598. * src/DHTGetPeersCommand.cc
  6599. * src/DefaultBtAnnounce.cc
  6600. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6601. BtRuntime::MAX_PEERS.
  6602. * src/DefaultPeerStorage.h
  6603. * src/InitiatorMSEHandshakeCommand.cc
  6604. * src/PeerInitiateConnectionCommand.cc
  6605. * src/PeerInteractionCommand.cc
  6606. * src/PeerReceiveHandshakeCommand.cc
  6607. * src/TrackerWatcherCommand.cc
  6608. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6609. Always Connect to _numNewConnection
  6610. * src/ActivePeerConnectionCommand.cc
  6611. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Made `begin' unsigned int.
  6613. * src/GrowSegment.h
  6614. * src/Piece.cc
  6615. * src/Piece.h
  6616. * src/PiecedSegment.cc
  6617. * src/PiecedSegment.h
  6618. * src/Segment.h
  6619. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6620. Calculate piece hash when data is arrived if the data is arrived in
  6621. order. This removes additional read operation for hash calculation.
  6622. If the data is arrived in out of order, the hash is calucated when the
  6623. piece is completed. This is the same behavior as the old implementation.
  6624. * src/BtPieceMessage.cc
  6625. * src/DefaultBtProgressInfoFile.cc
  6626. * src/DefaultPieceStorage.cc
  6627. * src/DownloadCommand.cc
  6628. * src/DownloadCommand.h
  6629. * src/DownloadEngine.cc
  6630. * src/GrowSegment.cc
  6631. * src/GrowSegment.h
  6632. * src/Piece.cc
  6633. * src/Piece.h
  6634. * src/PiecedSegment.cc
  6635. * src/PiecedSegment.h
  6636. * src/Segment.h
  6637. * test/PieceTest.cc
  6638. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6639. Try to keep the ordering of outgoing piece message.
  6640. * src/DefaultBtMessageDispatcher.cc
  6641. (DefaultBtMessageDispatcher::sendMessages)
  6642. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Fixed busy loop when error/hup epoll events occur.
  6644. * src/AbstractCommand.cc
  6645. * src/PeerAbstractCommand.cc
  6646. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6647. Added --bt-request-peer-speed-limit option, which was a constant
  6648. SLOW_SPEED_THRESHOLD.
  6649. * src/ActivePeerConnectionCommand.cc
  6650. * src/ActivePeerConnectionCommand.h
  6651. * src/BtConstants.h
  6652. * src/HelpItemFactory.cc
  6653. * src/OptionHandlerFactory.cc
  6654. * src/PeerReceiveHandshakeCommand.cc
  6655. * src/option_processing.cc
  6656. * src/prefs.cc
  6657. * src/prefs.h
  6658. * src/usage_text.h
  6659. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Removed repeated call of getTopDirPath(). Instead, call it once and
  6661. cache the result.
  6662. * src/MultiDiskAdaptor.cc
  6663. * src/MultiDiskAdaptor.h
  6664. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6665. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6666. Fixed compile error on debian etch.
  6667. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6668. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6669. it is undefined.
  6670. * src/Util.cc (ULLONG_MAX)
  6671. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6672. Added epoll support. Use epoll if it is available. If not, use select.
  6673. When async dns is enabled in compile time, epoll support is enabled
  6674. only when aria2 is built with c-ares. This condition statement is
  6675. defined in a2io.h.
  6676. Currently aria2 supports both c-ares and ares, but ares is maintained
  6677. for quite a while and debian already has c-ares package, ares support
  6678. will be dropped in the future version.
  6679. * configure.ac
  6680. * src/AbstractCommand.cc
  6681. * src/AsyncNameResolver.cc
  6682. * src/AsyncNameResolver.h
  6683. * src/Command.cc
  6684. * src/Command.h
  6685. * src/DownloadEngine.cc
  6686. * src/DownloadEngine.h
  6687. * src/PeerAbstractCommand.cc
  6688. * src/SocketCore.cc
  6689. * src/SocketCore.h
  6690. * src/a2io.h
  6691. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6693. directive.
  6694. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6695. Do not do write operation to /dev/null file.
  6696. * src/LogFactory.cc
  6697. * src/SimpleLogger.cc
  6698. Replaced vasprintf with vsnprintf
  6699. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6700. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. * src/BtRequestMessage.cc
  6702. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6703. for segmentation fault caused by previous commit.
  6704. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Reduced the usage of gettimeofday().
  6706. * src/DefaultBtMessageDispatcher.cc
  6707. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6708. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6709. * src/RequestSlot.cc
  6710. * src/RequestSlot.h
  6711. (RequestSlot::isTimeout)
  6712. Made RequestSlot have a reference to Piece object to avoid find
  6713. Piece repeatedly.
  6714. * src/DefaultBtMessageDispatcher.cc
  6715. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6716. * src/RequestSlot.cc
  6717. * src/RequestSlot.h
  6718. (RequestSlot::getPiece)
  6719. * test/DefaultBtMessageDispatcherTest.cc
  6720. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6721. * src/TimeA2.cc
  6722. * src/TimeA2.h
  6723. (Time::difference): New function.
  6724. (Time::elapsed): Done optimization.
  6725. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6726. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6727. directive.
  6728. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6729. * src/option_processing.cc: Added missing `defined' keyword to #if
  6730. directive.
  6731. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Bump up version number to 0.13.2+1
  6733. * src/configure.ac
  6734. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. Refactored broken outstanding piece handling.
  6736. * src/DefaultPieceStorage.cc
  6737. * src/DefaultPieceStorage.h
  6738. * src/Piece.cc
  6739. * src/Piece.h
  6740. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6741. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6742. name collision of static variable and predefined macro.
  6743. * src/BtContext.cc
  6744. * src/BtContext.h
  6745. * src/CookieBoxFactory.cc
  6746. * src/CookieBoxFactory.h
  6747. * src/CookieParser.cc
  6748. * src/CookieParser.h
  6749. * src/DefaultBtContext.cc
  6750. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6751. * src/RequestGroup.cc
  6752. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6753. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6754. * Release 0.13.2
  6755. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6756. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6757. * po/fr.po
  6758. * po/ja.po
  6759. * po/aria2c.pot
  6760. * po/*.po
  6761. * po/*.gmo
  6762. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Bump up version number to 0.13.2
  6764. * src/configure.ac
  6765. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Refactord.
  6767. * src/RequestGroupMan.cc
  6768. (removeStoppedGroup)
  6769. (fillRequestGroupFromReserver)
  6770. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6771. Fixed compile error on Ubuntu.
  6772. * src/BtPieceMessage.cc
  6773. * src/MessageDigestHelper.cc
  6774. * src/Util.cc
  6775. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. Fixed compile error when configured with --disable-bittorrent
  6777. * test/DownloadHandlerFactoryTest.cc
  6778. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. Done make update-po
  6780. * po/aria2c.pot
  6781. * po/*.po
  6782. * po/*.gmo
  6783. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. Bump up version number to 0.13.2rc.
  6785. * src/configure.ac
  6786. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. Made option name bold. Updated SYNOPSIS to make it more readable.
  6788. * doc/aria2c.1.txt
  6789. * doc/aria2c.1
  6790. * doc/aria2c.1.html
  6791. * src/version_usage.cc
  6792. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Refactored. Use std::string instead of size and char*.
  6794. * Data.cc
  6795. * Data.h
  6796. * test/Data.cc
  6797. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6798. Added trimSelf(). Rewritten trim() to use trimSelf().
  6799. * Util.cc
  6800. * Util.h
  6801. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6803. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6804. Fixed compile error when configured with --disable-metalink.
  6805. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6806. * test/FeatureConfigTest.cc
  6807. * test/DownloadHandlerFactoryTest.cc
  6808. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6809. Fixed compile error when configured with --without-gnutls
  6810. --without-openssl
  6811. * src/main.cc
  6812. * test/DefaultBtProgressInfoFileTest.cc
  6813. * test/SegmentManTest.cc
  6814. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6815. Fixed compile error with OpenSSL.
  6816. * src/IteratableChunkChecksumValidator.cc
  6817. * src/LibsslDHKeyExchange.h
  6818. * src/MessageDigestHelper.cc
  6819. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6820. Revert the default value of --max-concurrent-downloads to 5.
  6821. Revert the default value of --metalink-servers to 5.
  6822. Man pages was also updated.
  6823. * src/option_processing.cc
  6824. * doc/aria2c.1.txt
  6825. * doc/aria2c.1.html
  6826. * doc/aria2c.1
  6827. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6828. Returns const reference:
  6829. DownloadContext::getPieceHash, DownloadContext::getName,
  6830. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6831. BtContext::getInfoHashAsString,
  6832. * src/BtContext.h
  6833. * src/DefaultBtContext.cc
  6834. * src/DefaultBtContext.h
  6835. * src/DownloadContext.h
  6836. * src/SingleFileDownloadContext.h
  6837. * test/MockBtContext.h
  6838. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6839. * src/RequestGroup.h (getDir): Removed.
  6840. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Returns const reference. The internal urlencode function was optimized
  6842. a little bit.
  6843. * src/Request.cc
  6844. * src/Request.h
  6845. * src/HttpRequest.cc
  6846. * src/HttpRequest.h
  6847. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Defined option name and possible values as std::string to reduce
  6849. temporary string object creation in runtime.
  6850. * src/HelpItemFactory.cc
  6851. * src/LogFactory.cc
  6852. * src/Option.cc
  6853. * src/OptionHandlerFactory.cc
  6854. * src/option_processing.cc
  6855. * src/prefs.cc
  6856. * src/prefs.h
  6857. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6858. Return const reference.
  6859. * src/DownloadHandlerConstants.cc
  6860. * src/DownloadHandlerConstants.h
  6861. (getMetalinkExtensions)
  6862. (getMetalinkContentTypes)
  6863. (getBtExtensions)
  6864. (getBtContentTypes)
  6865. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. * src/HttpHeader.cc (get): Rewritten.
  6867. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. Make HttpHeader::getFirst(...) return const reference.
  6869. * src/HttpHeader.cc
  6870. * src/HttpHeader.h
  6871. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6873. it with V_TRUE.
  6874. * src/DefaultPieceStorage.cc
  6875. * src/DownloadCommand.cc
  6876. * src/FtpNegotiationCommand.cc
  6877. * src/HttpRequest.cc
  6878. * src/InitiateConnectionCommand.cc
  6879. * src/RequestGroup.cc
  6880. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6881. Made Option::get(...) return const reference of std::string.
  6882. * src/Option.cc
  6883. * src/Option.h
  6884. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Replaced std:copy with insert.
  6886. * src/DefaultBtMessageDispatcher.cc
  6887. * src/DefaultPieceStorage.cc
  6888. * src/DownloadEngineFactory.cc
  6889. * src/RequestGroup.cc
  6890. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6891. Included SocketCore.h to fix compiler warning.
  6892. * src/InitiateConnectionCommand.cc
  6893. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Put piece selection strategy algorithm to RarestPieceSelector class,
  6895. Added a switch to choose whether randomized selection so that unit
  6896. tests emit same results in, possibly, win32.
  6897. * src/DefaultPieceStorage.cc
  6898. * src/DefaultPieceStorage.h
  6899. * src/RarestPieceSelector.cc
  6900. * src/RarestPieceSelector.h
  6901. * test/DefaultPieceStorageTest.cc
  6902. * test/RarestPieceSelectorTest.cc
  6903. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Don't pool connection if HTTP proxy is enabled.
  6905. * src/FtpFinishDownloadCommand.cc
  6906. * src/FtpNegotiationCommand.cc
  6907. * src/HttpSkipResponseCommand.cc
  6908. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6909. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6910. * src/AbstractCommand.cc
  6911. * src/AbstractCommand.h
  6912. * src/ActivePeerConnectionCommand.cc
  6913. * src/FtpInitiateConnectionCommand.cc
  6914. * src/HttpInitiateConnectionCommand.cc
  6915. * src/InitiateConnectionCommandFactory.cc
  6916. * src/PeerAbstractCommand.cc
  6917. * src/PeerAbstractCommand.h
  6918. * src/PeerInitiateConnectionCommand.cc
  6919. * src/TrackerWatcherCommand.cc
  6920. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6921. Sort RequestSlot in ascending order and manipulate them using
  6922. lower_bound.
  6923. * src/DefaultBtMessageDispatcher.cc
  6924. * src/DefaultBtMessageDispatcher.h
  6925. (getMessageQueue): Added const qualifier.
  6926. (getRequestSlots): Added const qualifier.
  6927. (sendMessages): Use empty() instead of size().
  6928. (doCancelSendingPieceAction): Use HandleEvent object.
  6929. (doAbortOutstandingRequestAction): Rewritten.
  6930. (doChokedAction): Rewritten.
  6931. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6932. (isOutstandingRequest): Rewritten.
  6933. (getOutstandingRequest): Rewritten.
  6934. (removeOutstandingRequest): Rewritten.
  6935. (addOutstandingRequest): Rewritten.
  6936. * src/RequestSlot.cc
  6937. * src/RequestSlot.h
  6938. (operator=): Rewritten.
  6939. (operator!=): New function.
  6940. (operator<): New function.
  6941. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6942. * src/DefaultBtRequestFactory.cc
  6943. (doChokedAction): Rewritten.
  6944. (removeCompletedPiece): Rewritten.
  6945. (removeTargetPiece): Rewritten.
  6946. (createRequestMessages): Added the debug log.
  6947. (createRequestMessagesOnEndGame: Added the debug log.
  6948. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6949. Added the debug log message.
  6950. * src/BtPieceMessage.cc (doReceivedAction)
  6951. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6953. used lower_bound to process them rather than linear search.
  6954. * src/DHTPeerAnnounceStorage.cc
  6955. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6957. peer has at least one completed piece.
  6958. * src/Peer.cc
  6959. * src/Peer.h
  6960. * src/PeerInteractionCommand.cc
  6961. * src/PeerSessionResource.cc
  6962. * src/PeerSessionResource.h
  6963. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6964. Removed unnecessary sorting
  6965. * src/DefaultPieceStorage (DefaultPieceStorage)
  6966. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6967. Rewritten the portion of the code that mangaes allowed fast indexes.
  6968. * src/PeerSessionResource.cc
  6969. * src/PeerSessionResource.h
  6970. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Removed the invalid string including '\r' from ru.po and
  6972. did make update-po.
  6973. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6974. Added --log-level and --summary-interval to man page.
  6975. * doc/aria2c.1.txt
  6976. * doc/aria2c.1.html
  6977. * doc/aria2c.1
  6978. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6979. Added --log-level option to specify log level. Log messages under
  6980. the specified level are not output. Default value is `debug'.
  6981. * src/HelpItemFactory.cc
  6982. * src/LogFactory.cc
  6983. * src/LogFactory.h
  6984. * src/Logger.h
  6985. * src/OptionHandlerFactory.cc
  6986. * src/SimpleLogger.cc
  6987. * src/SimpleLogger.h
  6988. * src/main.cc
  6989. * src/option_processing.cc
  6990. * src/prefs.h
  6991. * src/usage_text.h
  6992. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6993. Print download progress summary of all parallel downloads in specified
  6994. interval, default 60 secs. While aria2 could download several files
  6995. in parallel (see -j option), it displayed just first download progress,
  6996. and the other downloads are hidden from the users. This new feature
  6997. prints all downloads currently in-progress to the console so that you
  6998. can check the status of all downloads. The interval can be adjusted
  6999. by --summary-interval option.
  7000. The progress readout is now cut so that all fits in the one line of
  7001. console.
  7002. * src/ConsoleStatCalc.cc
  7003. * src/ConsoleStatCalc.h
  7004. * src/HelpItemFactory.cc
  7005. * src/OptionHandlerFactory.cc
  7006. * src/RequestGroupMan.cc
  7007. * src/RequestGroupMan.h
  7008. * src/main.cc
  7009. * src/option_processing.cc
  7010. * src/prefs.h
  7011. * src/usage_text.h
  7012. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7013. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7014. * src/DownloadEngine.cc (DownloadEngine)
  7015. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7017. defined.
  7018. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7019. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7020. Use erase+lower_bound+insert instead of sort.
  7021. * src/DefaultPieceStorage.cc (addPieceStats)
  7022. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7024. * src/A2STR.cc
  7025. * src/A2STR.h
  7026. * src/OptionParser.cc (parse)
  7027. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7028. Defined fake filename `[tracker.announce]' as static const std::string.
  7029. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7030. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Defined default filename `index.html' as static const std::string
  7032. * src/SingleFileDownloadContext.cc
  7033. * src/SingleFileDownloadContext.h
  7034. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. Defined "[MEMORY]" as static const std::string.
  7036. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7037. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7038. Defined control file's version number as static const std::string.
  7039. * src/DefaultBtProgressInfoFile.cc
  7040. * src/DefaultBtProgressInfoFile.h
  7041. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Use Request::METHOD_GET
  7043. * src/RequestGroup.cc (createNextCommandWithAdj)
  7044. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7045. Defined "OK", "ERR", "INPR" as static const std::string
  7046. * src/RequestGroupMan.cc (showDownloadResults)
  7047. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7048. Defined default client used in extended handshake as static const
  7049. std::string
  7050. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7051. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7053. * src/HttpConnection.cc (eraseConfidentialInfo)
  7054. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Defined default ftp user and password as static const std::string
  7056. * src/AuthConfigFactory.cc
  7057. * src/AuthConfigFactory.h
  7058. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Defined strings used in netrc as static const std::string
  7060. * src/Netrc.cc
  7061. * src/Netrc.h
  7062. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7063. Defined HTTP status as static const std::string
  7064. * src/AbstractProxyResponseCommand.cc
  7065. * src/HttpHeader.cc
  7066. * src/HttpHeader.h
  7067. * src/HttpResponse.cc
  7068. * src/HttpResponseCommand.cc
  7069. * src/HttpSkipResponseCommand.cc
  7070. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Defined "\r\n", "A", "I" as static const std::string
  7072. * src/A2STR.cc
  7073. * src/A2STR.h
  7074. * src/FtpConnection.cc
  7075. * src/FtpConnection.h
  7076. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7077. Added COLON_C(".") and used it in Request::parseUrl()
  7078. * src/A2STR.cc
  7079. * src/A2STR.h
  7080. * src/Request.cc (parseUrl)
  7081. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Changed the type of padName from `const std::string&' to `const char*'.
  7083. * src/MSEHandshake.cc (verifyPadLength)
  7084. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7085. Defined "sha1" as static const std::string.
  7086. * src/MetalinkParserController.cc
  7087. * src/MetalinkParserController.h
  7088. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Defined message digest algorithm name as static const std::string
  7090. * src/DHTTokenTracker.cc
  7091. * src/DHTUtil.cc
  7092. * src/DefaultBtContext.cc
  7093. * src/MSEHandshake.cc
  7094. * src/MessageDigestHelper.cc
  7095. * src/Peer.cc
  7096. * src/messageDigest.cc
  7097. * src/messageDigest.h
  7098. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. Made string literals used in SAX parser static const std::string.
  7100. * src/FileMetalinkParserState.cc
  7101. * src/FileMetalinkParserState.h
  7102. * src/FilesMetalinkParserState.cc
  7103. * src/FilesMetalinkParserState.h
  7104. * src/InitialMetalinkParserState.cc
  7105. * src/InitialMetalinkParserState.h
  7106. * src/MetalinkMetalinkParserState.cc
  7107. * src/MetalinkMetalinkParserState.h
  7108. * src/PiecesMetalinkParserState.cc
  7109. * src/PiecesMetalinkParserState.h
  7110. * src/ResourcesMetalinkParserState.cc
  7111. * src/ResourcesMetalinkParserState.h
  7112. * src/VerificationMetalinkParserState.cc
  7113. * src/VerificationMetalinkParserState.h
  7114. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7115. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7116. * src/A2STR.cc
  7117. * src/A2STR.h
  7118. * src/File.cc
  7119. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7120. Defined static const std::string IP("ip"), PORT("port") and use them
  7121. instead of string literals.
  7122. * src/DefaultPeerListProcessor.cc
  7123. * src/DefaultPeerListProcessor.h
  7124. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. Made string literals for torrent file processing static const
  7126. std::string.
  7127. * src/BtContext.cc
  7128. * src/BtContext.h
  7129. * src/DefaultBtContext.cc
  7130. * src/DefaultBtContext.h
  7131. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. Made string literal for tracker response static const std::string
  7133. * src/BtAnnounce.cc
  7134. * src/BtAnnounce.h
  7135. * src/DefaultBtAnnounce.cc
  7136. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Use DHTMessage::T instead of "t".
  7138. * src/DHTMessageTracker.cc (messageArrived)
  7139. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7140. Made keyName static const. Made trimmed charset static const
  7141. std::string.
  7142. * src/Util.cc (getContentDispositionFilename)
  7143. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7144. Made USER_AGENT const. Made "/" static const std::string.
  7145. * src/A2STR.cc
  7146. * src/A2STR.h
  7147. * src/HttpRequest.cc
  7148. * src/HttpRequest.h
  7149. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. Made string listeral to static const std::string:
  7151. "Content-Range", "Content-Length"
  7152. * src/HttpHeader.cc
  7153. * src/HttpHeader.h
  7154. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7155. Made string listeral to static const std::string.
  7156. * src/HttpConnection.cc
  7157. * src/HttpHeader.cc
  7158. * src/HttpHeader.h
  7159. * src/HttpResponse.cc
  7160. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Made string listeral to static const std::string.
  7162. * src/A2STR.cc
  7163. * src/A2STR.h
  7164. * src/SimpleLogger.cc
  7165. * src/SimpleLogger.h
  7166. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Made string literal to static const std::string.
  7168. Rewritten CookieParser::setField.
  7169. * src/A2STR.cc
  7170. * src/A2STR.h
  7171. * src/CookieBoxFactory.cc
  7172. * src/CookieBoxFactory.h
  7173. * src/CookieParser.cc
  7174. * src/CookieParser.h
  7175. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Made string literal to static const std::string
  7177. * src/DHTAbstractMessage.cc
  7178. * src/DHTAnnouncePeerMessage.cc
  7179. * src/DHTAnnouncePeerMessage.h
  7180. * src/DHTAnnouncePeerReplyMessage.cc
  7181. * src/DHTAnnouncePeerReplyMessage.h
  7182. * src/DHTFindNodeMessage.cc
  7183. * src/DHTFindNodeMessage.h
  7184. * src/DHTFindNodeReplyMessage.cc
  7185. * src/DHTFindNodeReplyMessage.h
  7186. * src/DHTGetPeersMessage.cc
  7187. * src/DHTGetPeersMessage.h
  7188. * src/DHTGetPeersReplyMessage.cc
  7189. * src/DHTGetPeersReplyMessage.h
  7190. * src/DHTMessage.cc
  7191. * src/DHTMessage.h
  7192. * src/DHTMessageFactoryImpl.cc
  7193. * src/DHTMessageReceiver.cc
  7194. * src/DHTPingMessage.cc
  7195. * src/DHTPingMessage.h
  7196. * src/DHTPingReplyMessage.cc
  7197. * src/DHTPingReplyMessage.h
  7198. * src/DHTQueryMessage.cc
  7199. * src/DHTQueryMessage.h
  7200. * src/DHTResponseMessage.cc
  7201. * src/DHTResponseMessage.h
  7202. * src/DHTUnknownMessage.cc
  7203. * src/DHTUnknownMessage.h
  7204. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7205. Made string literal to static const std::string
  7206. * src/BtChokeMessage.cc (toString)
  7207. * src/BtHaveAllMessage.cc (toString)
  7208. * src/BtHaveNoneMessage.cc (toString)
  7209. * src/BtInterestedMessage.cc (toString)
  7210. * src/BtNotInterestedMessage.cc (toString)
  7211. * src/BtUnchokeMessage.cc (toString)
  7212. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Replaced "" with static const variable A2STR::NIL.
  7214. Replaced string comparison against "" with std::string::empty().
  7215. Added PROTO_* to Request class and use them as a protocol string
  7216. constant.
  7217. Made "started", "stopped", "completed" static const variable in
  7218. AnnounceList class.
  7219. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Updated translations. Great thanks to translators.
  7221. * po/ca.po
  7222. * po/de.po
  7223. * po/fr.po
  7224. * po/it.po
  7225. * po/ja.po
  7226. * po/ru.po
  7227. * po/zh_CN.po
  7228. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. Updated man page; categorized options and fixed typo.
  7230. * doc/aria2c.1.txt
  7231. * doc/aria2c.1.html
  7232. * doc/aria2c.1
  7233. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Removed const ref
  7235. * src/MetalinkEntry.cc (AddProtocolPreference)
  7236. * src/RequestGroup.cc (FindServerHostByHostname)
  7237. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7238. Rewritten Accept-Features handling.
  7239. * src/HttpRequestCommand.cc (createHttpRequest)
  7240. * src/a2functional.h
  7241. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. Changed method signature:
  7243. DHTAbstractNodeLookupTask::toEntries
  7244. * src/DHTAbstractNodeLookupTask.cc
  7245. * src/DHTAbstractNodeLookupTask.h
  7246. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7247. Changed method signature:
  7248. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7249. * src/BtContext.h
  7250. * src/DefaultBtContext.cc
  7251. * src/DefaultBtContext.h
  7252. * src/DefaultBtInteractive.cc
  7253. * test/DefaultBtContextTest.cc
  7254. * test/MockBtContext.h
  7255. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7256. Changed method signature:
  7257. MultiFileAllocationIterator::makeDiskWriterEntries
  7258. * src/MultiFileAllocationIterator.cc
  7259. * src/MultiFileAllocationIterator.h
  7260. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7261. Changed method sinature:
  7262. MetalinkEntry::toFileEntry,
  7263. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7264. Metalinker::queryEntry
  7265. * src/Metalink2RequestGroup.cc
  7266. * src/MetalinkEntry.cc
  7267. * src/MetalinkEntry.h
  7268. * src/MetalinkHelper.cc
  7269. * src/MetalinkHelper.h
  7270. * src/Metalinker.cc
  7271. * src/Metalinker.h
  7272. * src/main.cc
  7273. * test/MetalinkHelperTest.cc
  7274. * test/MetalinkerTest.cc
  7275. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Changed method sinature:
  7277. RequestGroup::getURIs
  7278. * src/RequestGroup.cc
  7279. * src/RequestGroup.h
  7280. * test/Metalink2RequestGroupTest.cc
  7281. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. Changed method signature:
  7283. PeerListProcessor::extractPeer
  7284. * src/CompactPeerListProcessor.cc
  7285. * src/CompactPeerListProcessor.h
  7286. * src/DefaultBtAnnounce.cc
  7287. * src/DefaultPeerListProcessor.cc
  7288. * src/DefaultPeerListProcessor.h
  7289. * src/DelegatingPeerListProcessor.cc
  7290. * src/DelegatingPeerListProcessor.h
  7291. * src/PeerListProcessor.h
  7292. * src/UTPexExtensionMessage.cc
  7293. * test/DefaultPeerListProcessorTest.cc
  7294. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7295. Changed method signature:
  7296. BtRequestFactory::createRequestMessages,
  7297. BtRequestFactory::createRequestMessagesOnEndGame
  7298. * src/BtRequestFactory.h
  7299. * src/DefaultBtInteractive.cc
  7300. * src/DefaultBtRequestFactory.cc
  7301. * src/DefaultBtRequestFactory.h
  7302. * test/DefaultBtRequestFactoryTest.cc
  7303. * test/MockBtRequestFactory.h
  7304. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7305. Changed method signature:
  7306. PieceStorage::getInFlightPieces
  7307. * src/DefaultBtProgressInfoFile.cc
  7308. * src/DefaultPieceStorage.cc
  7309. * src/DefaultPieceStorage.h
  7310. * src/PieceStorage.h
  7311. * src/UnknownLengthPieceStorage.cc
  7312. * src/UnknownLengthPieceStorage.h
  7313. * test/DefaultBtProgressInfoFileTest.cc
  7314. * test/MockPieceStorage.h
  7315. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7316. Changed method signature:
  7317. PostDownloadHandler::getNextRequestGroups
  7318. Metalink2RequestGroup::generate
  7319. RequestGroup::postDownloadProcessing
  7320. * src/BtPostDownloadHandler.cc
  7321. * src/BtPostDownloadHandler.h
  7322. * src/Metalink2RequestGroup.cc
  7323. * src/Metalink2RequestGroup.h
  7324. * src/MetalinkPostDownloadHandler.cc
  7325. * src/MetalinkPostDownloadHandler.h
  7326. * src/PostDownloadHandler.h
  7327. * src/RequestGroup.cc
  7328. * src/RequestGroup.h
  7329. * src/RequestGroupMan.cc
  7330. * src/main.cc
  7331. * test/BtPostDownloadHandlerTest.cc
  7332. * test/Metalink2RequestGroupTest.cc
  7333. * test/MetalinkPostDownloadHandlerTest.cc
  7334. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Rewritten AccRequestGroup
  7336. * src/main.cc
  7337. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7338. Rewritten.
  7339. * src/TaggedItem.cc (toTagString)
  7340. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7341. Rewritten Accept-Features handling.
  7342. * src/HttpRequestCommand.cc (createHttpRequest)
  7343. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7344. Rewritten accept types handling.
  7345. * HttpRequest.cc (createRequest)
  7346. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7347. Rewritten
  7348. * src/FeatureConfig.cc (featureSummary)
  7349. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7350. Changed method signature:
  7351. PeerStorage::getActivePeers
  7352. * src/DHTPeerAnnounceEntry.cc
  7353. * src/DefaultPeerStorage.cc
  7354. * src/DefaultPeerStorage.h
  7355. * src/PeerStorage.h
  7356. * test/DefaultPeerStorageTest.cc
  7357. * test/MockPeerStorage.h
  7358. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7359. Changed method signature:
  7360. DHTPeerAnnounceStorage::getPeers,
  7361. DHTPeerAnnounceEntry::getPeers
  7362. * src/DHTGetPeersMessage.cc
  7363. * src/DHTPeerAnnounceEntry.cc
  7364. * src/DHTPeerAnnounceEntry.h
  7365. * src/DHTPeerAnnounceStorage.cc
  7366. * src/DHTPeerAnnounceStorage.h
  7367. * test/DHTAnnouncePeerMessageTest.cc
  7368. * test/DHTPeerAnnounceEntryTest.cc
  7369. * test/DHTPeerAnnounceStorageTest.cc
  7370. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Changed method signature:
  7372. NameResolver::resolve
  7373. * src/DHTEntryPointNameResolveCommand.cc
  7374. * src/InitiateConnectionCommand.cc
  7375. * src/NameResolver.cc
  7376. * src/NameResolver.h
  7377. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7378. Changed method signature:
  7379. PieceStorage::getAdvertisedPieceIndexes
  7380. * src/DefaultBtInteractive.cc
  7381. * src/DefaultPieceStorage.cc
  7382. * src/DefaultPieceStorage.h
  7383. * src/PieceStorage.h
  7384. * src/UnknownLengthPieceStorage.h
  7385. * test/MockPieceStorage.h
  7386. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Changed method signature:
  7388. SegmentMan::getInFlightSegment
  7389. * src/AbstractCommand.cc
  7390. * src/SegmentMan.cc
  7391. * src/SegmentMan.h
  7392. * test/SegmentManTest.cc
  7393. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Changed method signature:
  7395. DHTAbstractNodeLookupTask::getNodesFromMessage
  7396. * src/DHTAbstractNodeLookupTask.cc
  7397. * src/DHTAbstractNodeLookupTask.h
  7398. * src/DHTNodeLookupTask.cc
  7399. * src/DHTNodeLookupTask.h
  7400. * src/DHTPeerLookupTask.cc
  7401. * src/DHTPeerLookupTask.h
  7402. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7403. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7404. * src/AbstractCommand.cc
  7405. * src/BtCheckIntegrityEntry.cc
  7406. * src/BtCheckIntegrityEntry.h
  7407. * src/BtFileAllocationEntry.cc
  7408. * src/BtFileAllocationEntry.h
  7409. * src/BtSetup.cc
  7410. * src/BtSetup.h
  7411. * src/CheckIntegrityCommand.cc
  7412. * src/CheckIntegrityEntry.h
  7413. * src/ChecksumCheckIntegrityEntry.cc
  7414. * src/ChecksumCheckIntegrityEntry.h
  7415. * src/DHTSetup.cc
  7416. * src/DHTSetup.h
  7417. * src/DownloadEngine.cc
  7418. * src/FileAllocationCommand.cc
  7419. * src/FileAllocationEntry.h
  7420. * src/RequestGroup.cc
  7421. * src/RequestGroup.h
  7422. * src/RequestGroupMan.cc
  7423. * src/RequestGroupMan.h
  7424. * src/StreamCheckIntegrityEntry.cc
  7425. * src/StreamCheckIntegrityEntry.h
  7426. * src/StreamFileAllocationEntry.cc
  7427. * src/StreamFileAllocationEntry.h
  7428. * src/TrackerWatcherCommand.cc
  7429. * src/a2functional.h
  7430. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7431. Changed method signature:
  7432. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7433. DHTBucket::getGoodNodes,
  7434. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7435. * src/BNode.cc
  7436. * src/BNode.h
  7437. * src/DHTAbstractNodeLookupTask.cc
  7438. * src/DHTAutoSaveCommand.cc
  7439. * src/DHTBucket.cc
  7440. * src/DHTBucket.h
  7441. * src/DHTBucketRefreshTask.cc
  7442. * src/DHTFindNodeMessage.cc
  7443. * src/DHTGetPeersMessage.cc
  7444. * src/DHTRoutingTable.cc
  7445. * src/DHTRoutingTable.h
  7446. * test/BNodeTest.cc
  7447. * test/DHTBucketTest.cc
  7448. * test/DHTRoutingTableTest.cc
  7449. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. In piece selection functions, Pass std::deque<...> by reference rather
  7451. than returning it.
  7452. * src/BitfieldMan.cc
  7453. * src/BitfieldMan.h
  7454. * src/DefaultBtRequestFactory.cc
  7455. * src/DefaultPieceStorage.cc
  7456. * src/Piece.cc
  7457. * src/Piece.h
  7458. * test/BitfieldManTest.cc
  7459. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. Implemented rarest piece first piece selection strategy.
  7461. * src/AbstractBtMessage.cc
  7462. * src/AbstractBtMessage.h
  7463. * src/BitfieldMan.cc
  7464. * src/BitfieldMan.h
  7465. * src/BtBitfieldMessage.cc
  7466. * src/BtHaveAllMessage.cc
  7467. * src/BtHaveMessage.cc
  7468. * src/DefaultPieceStorage.cc
  7469. * src/DefaultPieceStorage.h
  7470. * src/PeerInteractionCommand.cc
  7471. * src/PieceStorage.h
  7472. * src/UnknownLengthPieceStorage.h
  7473. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Rewritten readData and writeData.
  7475. * src/MultiDiskAdaptor.cc
  7476. * src/MultiDiskAdaptor.h
  7477. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Move \n out of the message "Usage: ...".
  7479. * src/version_usage.cc
  7480. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7481. Bump up version number to 0.13.2b.
  7482. * configure.ac
  7483. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7484. Added const qualifier to argument Exception& e.
  7485. * src/Logger.h
  7486. * src/SimpleLogger.cc
  7487. * src/SimpleLogger.h
  7488. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. Pool connection when CWD, SIZE command fails.
  7490. * src/FtpNegotiationCommand.cc
  7491. * src/FtpNegotiationCommand.h
  7492. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7494. * src/HttpResponseCommand.cc
  7495. * src/HttpSkipResponseCommand.cc
  7496. * src/HttpSkipResponseCommand.h
  7497. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. Pool connection when a server returns 4xx, 5xx responses.
  7499. * src/HttpNullDownloadCommand.cc
  7500. * src/HttpNullDownloadCommand.h
  7501. * src/HttpResponse.cc
  7502. * src/HttpResponse.h
  7503. * src/HttpResponseCommand.cc
  7504. * src/HttpResponseCommand.h
  7505. * test/HttpResponseTest.cc
  7506. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7507. Print usage when no URL is specifed or bad command-line option is
  7508. specified.
  7509. * src/HelpItemFactory.cc
  7510. * src/help_tags.h
  7511. * src/option_processing.cc
  7512. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Removed duplicate log message.
  7514. * src/AbstractCommand.cc (asyncResolveHostname)
  7515. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7516. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7517. Changed -j option's default value from 5 to 1.
  7518. Added new examples using protocol auto detection feature.
  7519. Removed -T, -M usage where it can be omitted.
  7520. * doc/aria2c.1.txt
  7521. * doc/aria2c.1.html
  7522. * doc/aria2c.1.txt
  7523. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Updated command-line usage text, so that it tells users that they
  7525. can specify any number of torrent files and metalink files in
  7526. command-line.
  7527. * src/version_usage.cc
  7528. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7529. Changed the default value of -j option to 1.
  7530. * src/HelpItemFactory.cc
  7531. * src/option_processing.cc
  7532. * src/usage_text.h
  7533. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7534. Added the ability to reuse connection in FTP and it is enabled by
  7535. default. It can be disabled by --ftp-reuse-connection=false option.
  7536. * src/Command.cc
  7537. * src/DownloadCommand.cc
  7538. * src/FtpDownloadCommand.cc
  7539. * src/FtpDownloadCommand.h
  7540. * src/FtpFinishDownloadCommand.cc
  7541. * src/FtpFinishDownloadCommand.h
  7542. * src/FtpInitiateConnectionCommand.cc
  7543. * src/FtpNegotiationCommand.cc
  7544. * src/FtpNegotiationCommand.h
  7545. * src/HelpItemFactory.cc
  7546. * src/Makefile.am
  7547. * src/Makefile.in
  7548. * src/OptionHandlerFactory.cc
  7549. * src/option_processing.cc
  7550. * src/prefs.h
  7551. * src/usage_text.h
  7552. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7553. Call Command::transitStatus() before calling Command::execute(),
  7554. so that the status change made in execute() is not cleared.
  7555. * src/DownloadEngine.cc
  7556. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7557. Removed forward declaration of SocketCore class.
  7558. * src/HttpDownloadCommand.h
  7559. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7561. in InitiateConnectionCommandFactory. They should be set only when
  7562. the protocol is HTTP or HTTPS.
  7563. * src/InitiateConnectionCommandFactory.cc
  7564. * src/RequestGroup.cc
  7565. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Fixed infinite loop in checksum checking.
  7567. * src/IteratableChecksumValidator.cc
  7568. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Set _supportsPersistentConnection to true by default.
  7570. * src/Request.cc
  7571. * src/RequestGroup.cc
  7572. * test/HttpRequestTest.cc
  7573. * test/RequestTest.cc
  7574. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Added timeout to socket pool. The default timeout is 15 seconds,
  7576. which is the same value Apache uses.
  7577. * src/DownloadEngine.cc
  7578. * src/DownloadEngine.h
  7579. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. Fixed misuse of multimap::find()
  7581. * src/HttpHeader.cc
  7582. * test/HttpHeaderTest.cc
  7583. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7585. option.
  7586. The asynchronous DNS is not capable of IPv6 yet.
  7587. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7588. least for HTTP download.
  7589. * src/AbstractCommand.cc
  7590. * src/AbstractCommand.h
  7591. * src/AsyncNameResolver.cc
  7592. * src/AsyncNameResolver.h
  7593. * src/DHTEntryPointNameResolveCommand.cc
  7594. * src/DHTEntryPointNameResolveCommand.h
  7595. * src/DownloadEngine.cc
  7596. * src/DownloadEngine.h
  7597. * src/FtpInitiateConnectionCommand.cc
  7598. * src/FtpInitiateConnectionCommand.h
  7599. * src/HelpItemFactory.cc
  7600. * src/HttpInitiateConnectionCommand.cc
  7601. * src/HttpInitiateConnectionCommand.h
  7602. * src/InitiateConnectionCommand.cc
  7603. * src/InitiateConnectionCommand.h
  7604. * src/Makefile.am
  7605. * src/Makefile.in
  7606. * src/NameResolver.cc
  7607. * src/NameResolver.h
  7608. * src/OptionHandlerFactory.cc
  7609. * src/SocketCore.cc
  7610. * src/SocketCore.h
  7611. * src/Util.cc
  7612. * src/Util.h
  7613. * src/option_processing.cc
  7614. * src/prefs.h
  7615. * src/usage_text.h
  7616. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. Updated man page: --quiet, --header were added.
  7618. --metalink-servers and --enable-http-keep-alive option were updated.
  7619. * doc/aria2c.1
  7620. * doc/aria2c.1.html
  7621. * doc/aria2c.1.txt
  7622. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7623. Enable HTTP keep-alive by default.
  7624. * src/HelpItemFactory.cc
  7625. * src/option_processing.cc
  7626. * src/usage_text.h
  7627. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7628. Disable http keep-alive if the remote server is not HTTP/1.1.
  7629. * src/HttpConnection.cc
  7630. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Receive content body of 302 response so that the connection can be
  7632. reused later when http keep-alive is enabled.
  7633. * src/HttpNullDownloadCommand.cc
  7634. * src/HttpNullDownloadCommand.h
  7635. * src/HttpResponseCommand.cc
  7636. * src/HttpResponseCommand.h
  7637. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7638. const SharedHandle<Request> -> const SharedHandle<Request>&
  7639. * src/FtpDowndloadCommand.cc
  7640. * src/FtpDowndloadCommand.h
  7641. * src/HttpDownloadCommand.cc
  7642. * src/HttpDownloadCommand.h
  7643. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7644. Fixed the bug that the control file(.aria2 file) is not renamed
  7645. according to tryAutoFileRenaming().
  7646. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7647. its control file exist, use them and continue download.
  7648. The old implementation didn't take into account of control file's
  7649. existence, so basically you couldn't continue download of renamed file.
  7650. * src/BtProgressInfoFile.h
  7651. * src/DefaultBtProgressInfoFile.cc
  7652. * src/DefaultBtProgressInfoFile.h
  7653. * src/NullProgressInfoFile.h
  7654. * src/RequestGroup.cc
  7655. * test/DefaultBtProgressInfoFileTest.cc
  7656. * test/MockBtProgressInfoFile.h
  7657. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. Change the default value of --metalink-servers option from `5' to `1'.
  7659. * src/HelpItemFactory.cc
  7660. * src/option_processing.cc
  7661. * src/usage_text.h
  7662. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. Reimplemented transparent metalink using Accept request header.
  7664. * src/HttpRequest.cc
  7665. * src/HttpRequest.h
  7666. * src/HttpRequestCommand.cc
  7667. * src/Metalink2RequestGroup.cc
  7668. * src/RequestGroup.cc
  7669. * src/RequestGroup.h
  7670. * test/HttpRequestTest.cc
  7671. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. Bump up version number to 0.13.2a
  7673. * configure.ac
  7674. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7675. Updated configure.ac using the result of autoscan.
  7676. * configure.ac
  7677. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Fixed compilation error without gcrypt/openssl.
  7679. * src/DownloadCommand.cc
  7680. * src/DownloadCommand.h
  7681. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Reorganized version information so that it can be displayed in a
  7683. standard terminal screen without scrolling.
  7684. Removed http, ftp from Configuration section, because they are always
  7685. enabled.
  7686. * src/FeatureConfig.cc
  7687. * src/FeatureConfig.h
  7688. * src/main.cc
  7689. * src/messageDigest.cc
  7690. * src/messageDigest.h
  7691. * src/version_usage.cc
  7692. * test/FeatureConfigTest.cc
  7693. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Masked user ID in log.
  7695. * src/FtpConnection.cc (sendUser)
  7696. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. Removed query part from filename in HTTP download. The query part means
  7698. the substring after "?" in URL. Firefox seems do the same thing.
  7699. A query part is sometimes very long and not suitable to filename,
  7700. so I think it is better to remove it from filename.
  7701. * src/HttpRequest.cc
  7702. * src/HttpRequest.h
  7703. * src/Request.cc
  7704. * src/Request.h
  7705. * test/HttpRequestTest.cc
  7706. * test/RequestTest.cc
  7707. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Rewritten Exception class. Throw exception object, not its pointer and
  7709. catch by reference, so that remove problematic delete operator for
  7710. catched exception.
  7711. * src/Exception.cc
  7712. * src/Exception.h
  7713. * test/ExceptionTest.cc
  7714. * src/*: All files throwing/catching exception.
  7715. * test/*: All files throwing/catching exception.
  7716. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Now auto protocol detection is enabled without -Z option.
  7718. But there is a important difference between with/without -Z optoin.
  7719. For example, if you type:
  7720. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7721. then, aria2 interprets there are 3 request groups:
  7722. (1) http://host/file, http://mirror/file <-- multi-source download
  7723. (2) file1.torrent
  7724. (3) file2.metalink
  7725. On the other hand, if you invoke above command with -Z option, it is
  7726. interpreted as 4 request groups:
  7727. (1) http://host/file
  7728. (2) file1.torrent
  7729. (3) file2.metalink
  7730. (4) http://mirror/file
  7731. I think usually user don't mix multi-source URLs and torrent files, so
  7732. there is no big problem here.
  7733. * src/main.cc
  7734. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Fixed the bug that causes segmentaion fault when reading XML containing
  7736. unescapsed character like '&'.
  7737. Also a modification was made which avoids adding unnecessary
  7738. characters stack and appending unused string.
  7739. * src/ExpatMetalinkProcessor.cc
  7740. * src/FileMetalinkParserState.h
  7741. * src/FilesMetalinkParserState.h
  7742. * src/FinMetalinkParserState.h
  7743. * src/HashMetalinkParserState.h
  7744. * src/InitialMetalinkParserState.h
  7745. * src/LanguageMetalinkParserState.h
  7746. * src/MetalinkMetalinkParserState.h
  7747. * src/MetalinkParserState.h
  7748. * src/MetalinkParserStateMachine.cc
  7749. * src/MetalinkParserStateMachine.h
  7750. * src/OSMetalinkParserState.h
  7751. * src/PieceHashMetalinkParserState.h
  7752. * src/PiecesMetalinkParserState.h
  7753. * src/ResourcesMetalinkParserState.h
  7754. * src/SizeMetalinkParserState.h
  7755. * src/SkipTagMetalinkParserState.h
  7756. * src/URLMetalinkParserState.h
  7757. * src/VerificationMetalinkParserState.h
  7758. * src/VersionMetalinkParserState.h
  7759. * src/XML2SAXMetalinkProcessor.cc
  7760. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. Added StringFormat class, which internally calls vasprintf.
  7762. operator<< is defined for this class, so it can be used with iostream
  7763. classes nicely. SimpleLogger and following functions are rewritten
  7764. using StringFormat class.
  7765. Besides, now Logger class's methods are non-const, many classes
  7766. that has a const Logger* as a member variable are modified to remove
  7767. const qualifier from the variable declaration.
  7768. * src/HelpItemFactory.cc
  7769. * src/Request.cc
  7770. * src/SimpleLogger.cc
  7771. * src/StringFormat.cc
  7772. * src/StringFormat.h
  7773. * src/Util.cc
  7774. * src/option_processing.cc
  7775. * src/version_usage.cc
  7776. * test/StringFormatTest.cc
  7777. * src/*.h: The classes that has const Logger* as a member variable.
  7778. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7780. failed. Also fixed memory link when exception is thrown there.
  7781. * src/main.cc (AccRequestGroup)
  7782. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Added build-in "Accept-Features" support. For now only "metalink" is
  7784. used in this header field.
  7785. This "metalink" value is removed from the list when connecting URLs
  7786. fed by metalink file to avoid loop in "transparent" metlaink.
  7787. * src/HttpRequest.cc
  7788. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7789. header is also held in this variable. Also renamed setUserHeaders as
  7790. addHeader and it was rewritten to add header not just to clear the old
  7791. value.
  7792. * src/HttpRequestCommand.cc
  7793. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7794. from "Accept-Features" list.
  7795. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7796. default.
  7797. * src/RequestGroup.h
  7798. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7799. * src/a2functional.h: Included <string> because Concat class depends on
  7800. it.
  7801. * test/HttpRequestTest.cc
  7802. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7803. Added comment
  7804. * src/RequestGroup.cc (createNextCommand)
  7805. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Capitalized METHOD_GET and METHOD_HEAD
  7807. * src/Request.cc
  7808. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. Added getDownloadResults() method
  7810. * src/RequestGroupMan.cc
  7811. * src/RequestGroupMan.h
  7812. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Fixed the bug that aria2 exits when commands is empty() but
  7814. _routineCommands are not.
  7815. * src/DownloadEngine.cc
  7816. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7817. Use the default value pulled from Option object in HelpItemFactory.
  7818. except options whose defualt value is embedded in a usage text.
  7819. * src/HelpItemFactory.cc
  7820. * src/HelpItemFactory.h
  7821. * src/option_processing.cc
  7822. * src/version_usage.cc
  7823. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7824. Added --quiet option to make aria2 quiet (no console output).
  7825. --quiet option is tagged with ADVANCED.
  7826. * src/HelpItemFactory.cc
  7827. * src/LogFactory.cc
  7828. * src/LogFactory.h
  7829. * src/MultiUrlRequestInfo.cc
  7830. * src/MultiUrlRequestInfo.h
  7831. * src/NullStatCalc.h: New class. This class prints nothing.
  7832. * src/OptionHandlerFactory.cc
  7833. * src/main.cc
  7834. * src/option_processing.cc
  7835. * src/prefs.h
  7836. * src/usage_text.h
  7837. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7838. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7839. * src/HelpItemFactory.cc (createHelpItems):
  7840. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Fixed compilation error in ExpatMetalinkProcessor.cc
  7842. * src/ExpatMetalinkProcessor.cc
  7843. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Reuse socket if the origin server supports HTTP keep-alive and
  7845. --enable-http-keep-alive or --enable-http-pipelining is given.
  7846. The current implementation doesn't reuse the connections established
  7847. against proxy server.
  7848. * src/AbstractCommand.cc
  7849. * src/DownloadEngine.cc
  7850. * src/DownloadEngine.h
  7851. * src/HttpDownloadCommand.cc
  7852. * src/HttpInitiateConnectionCommand.cc
  7853. * src/HttpResponseCommand.cc
  7854. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7855. Rewritten HTTP keep-alive and pipelining routine.
  7856. * src/AbstractCommand.cc
  7857. * src/HttpConnection.cc
  7858. * src/HttpDownloadCommand.cc
  7859. * src/HttpRequest.cc
  7860. * src/HttpRequestCommand.cc
  7861. * src/HttpResponseCommand.cc
  7862. * src/Request.cc
  7863. * src/Request.h
  7864. * src/RequestGroup.cc
  7865. * test/HttpRequestTest.cc
  7866. * test/HttpResponseTest.cc
  7867. * test/RequestTest.cc
  7868. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Added missing setUserHeaders call
  7870. * src/HttpRequestCommand.cc
  7871. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7873. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7874. waste of time because it is more likey false.
  7875. * src/FileAllocationDispatcherCommand.cc (execute)
  7876. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. Now HTTP status and version are a member variable of HttpHeader.
  7878. HTTP status is processed as a string, not integer.
  7879. * src/AbstractProxyResponseCommand.cc
  7880. * src/HttpConnection.cc
  7881. * src/HttpHeader.cc
  7882. * src/HttpHeader.h
  7883. * src/HttpHeaderProcessor.cc
  7884. * src/HttpHeaderProcessor.h
  7885. * src/HttpResponse.cc
  7886. * src/HttpResponse.h
  7887. * test/HttpHeaderProcessorTest.cc
  7888. * test/HttpResponseTest.cc
  7889. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7890. Added --header option. You can specify any number of additional HTTP headers
  7891. like:
  7892. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7893. Unlike other commad-line option, you can use --header option multiple times.
  7894. * src/HelpItemFactory.cc
  7895. * src/HttpRequest.{cc, h}
  7896. * src/HttpRequestCommand.cc
  7897. * src/OptionHandlerFactory.cc
  7898. * src/OptionHandlerImpl.h
  7899. * src/option_processing.cc
  7900. * src/prefs.h
  7901. * src/usage_text.h
  7902. * test/HttpRequestTest.cc (testUserHeaders)
  7903. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. Eliminates the time lag between sequential downloads and commands in
  7905. the same RequestGroup.
  7906. In old implementation, aria2 occasionally waits 1 seconds before
  7907. executing next command or RequestGroup.
  7908. This is really a waste of time, and new implementation eliminates
  7909. this unnecessary time lag.
  7910. * src/AbstractCommand.cc
  7911. * src/AutoSaveCommand.cc
  7912. * src/CheckIntegrityCommand.cc
  7913. * src/Command.{cc, h}
  7914. * src/DownloadEngine.{cc, h}
  7915. * src/DownloadEngineFactory.cc
  7916. * src/FileAllocationCommand.cc
  7917. * src/FileAllocationDispatcherCommand.cc
  7918. * src/FillRequestGroupCommand.cc
  7919. * src/FtpInitiateConnectionCommand.cc
  7920. * src/HaveEraseCommand.cc
  7921. * src/HttpInitiateConnectionCommand.cc
  7922. * src/HttpResponseCommand.cc
  7923. * src/RealtimeCommand.cc
  7924. * src/RequestGroup.cc
  7925. * src/RequestGroupMan.cc
  7926. * src/StreamFileAllocationEntry.cc
  7927. * src/TimeBasedCommand.{cc, h}
  7928. * src/TimedHaltCommand.cc
  7929. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7930. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7931. keyword explicit and SharedHandle's default constructor initializes
  7932. its internal obj to null, old implementation initializes it using
  7933. obj's default constructor.
  7934. To assign null, write SharedHandle<T> x(...); x.reset();
  7935. TODO: test/SharedHandleTest.cc needs more tests.
  7936. * src/SharedHandle.h
  7937. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Fixed type in man page.
  7939. * doc/aria2c.1.txt
  7940. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7942. * src/SimpleLogger.{cc, h}
  7943. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7944. Implemented auto protocol detection.
  7945. Now you can do:
  7946. aria2c -Z http://host/file file1.torrent file2.metalink
  7947. (Note: -Z option is required for auto protcol detection.)
  7948. Then aria2c downloads 3 files simultaneously:
  7949. 1. http://host/file
  7950. 2. file1.torrent <-- read local torrent file
  7951. 3. file2.metalink <-- read local Metalink file.
  7952. Same thing goes with -i option. Assume your uris.txt contans:
  7953. http://host/file
  7954. file1.torrent
  7955. file2.metalink
  7956. Then you can do: aria2c -i uris.txt
  7957. (Note: -Z option is not needed if -i option is given.)
  7958. * src/main.cc
  7959. * src/ProtocolDetector.{cc, h}
  7960. * test/ProtocolDetectorTest.cc
  7961. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7963. installed
  7964. * src/ARC4Encryptor.h
  7965. * src/ARC4Decryptor.h
  7966. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7967. Renamed argument from 'errno' to 'err', since errno is confused with
  7968. errno defined in errno.h.
  7969. * src/LibgcryptARC4Decryptor.h
  7970. * src/LibgcryptARC4Context.h
  7971. * src/LibgcryptDHKeyExchange.h
  7972. * src/LibgcryptARC4Encryptor.h
  7973. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Rewritten choking algorithm.
  7975. * src/PeerChokeCommand.{cc, h}
  7976. * src/BtInterestedMessage.cc
  7977. * src/PeerSessionResource.{cc, h}
  7978. * src/DefaultPeerStorage.{cc, h}
  7979. * src/BtNotInterestedMessage.cc
  7980. * src/DefaultBtMessageDispatcher.{cc, h}
  7981. * src/BtMessageDispatcher.h
  7982. * src/Peer.{cc, h}
  7983. * src/BtLeecherStateChoke.{cc, h}
  7984. * src/BtSetup.cc
  7985. * src/BtSeederStateChoke.{cc, h}
  7986. * src/PeerStorage.h
  7987. * test/MockPeerStorage.h
  7988. * test/MockBtMessageDispatcher.h
  7989. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Fixed compilation error on x84-64 platform.
  7991. * src/AuthConfig.cc: Included ostream.
  7992. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Rewritten getBasename() and getDirname(), without standard library
  7994. basename(), dirname().
  7995. * src/File.cc
  7996. * test/FileTest.cc
  7997. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7998. Added Simplified Chinese translation. Also updated the following
  7999. translations: Polish, Dutch, German. Great thanks to all translators.
  8000. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Suppress content-range error when 'Content-Range' response header
  8002. doesn't contains bytes-unit specifier 'bytes'
  8003. * src/HttpHeader.cc (getRange)
  8004. * test/HttpHeaderTest.cc
  8005. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Fixed compilation error with g++-4.3
  8007. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. Added missing include files for MinGW
  8009. * test/HttpHeaderProcessorTest.cc
  8010. * test/DHTRoutingTableSerializerTest.cc
  8011. * test/DHTRoutingTableDeserializerTest.cc
  8012. * test/UriListParserTest.cc
  8013. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Now download line is printed nicely with no garbage at the end of
  8015. line. I use ioctl to get the columns of terminal.
  8016. If stdout is redirected to another device, instead of carriage return,
  8017. end of line '\n' character is used. This is feature request#1909659
  8018. * src/ConsoleStatCalc.cc (calculateStat)
  8019. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Included a2time.h
  8021. * src/DHTMessageDispatcher.h
  8022. * src/DHTMessageEntry.h
  8023. * src/DHTReplaceNodeTask.h
  8024. * src/DHTMessageTracker.h
  8025. * src/Util.h
  8026. * src/CookieBox.h
  8027. * src/SocketCore.h
  8028. * src/DefaultBtMessageDispatcher.h
  8029. * src/SocketCore.cc
  8030. * src/Util.cc
  8031. * src/DHTPingTask.h
  8032. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8033. Fixed high memory footprint when DHT is enabled.
  8034. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8035. queued than it is processed and the queue is getting longer. As a
  8036. consequence, momory usage is increased.
  8037. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8038. replacement cache in DHTBucket which is described in Kademlia paper.
  8039. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8040. DHTReplaceNodeTask.
  8041. * src/DHTBucket.{h, cc}
  8042. (cacheNode): New function.
  8043. (getCachedNodes): New function.
  8044. (dropNode): Push back cached node to _nodes.
  8045. * test/DHTBucketTest.cc
  8046. (testCacheNode): New test
  8047. (testDropNode): New test
  8048. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8049. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8050. the unused 4KB memory when ssl is not used.
  8051. * src/SocketCore.cc
  8052. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. Added summary log for peer announce storage.
  8054. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8055. Removed cast
  8056. * src/DefaultPeerStorage.cc (addPeer)
  8057. Log exception message
  8058. * src/DHTMessageTracker.cc (handleTimeout)
  8059. Fixed casting
  8060. * test/HttpRequestTest.cc
  8061. * test/MetalinkProcessorTest.cc
  8062. * test/PieceTest.cc
  8063. * test/MetalinkEntryTest.cc
  8064. * test/SequenceTest.cc
  8065. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. * src/ParameterizedStringParser.cc (createLoop):
  8067. Removed unused variable sstep.
  8068. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8069. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. * src/Util.{h, cc}
  8071. (parseUInt): New function.
  8072. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8073. The actual range is uint32_t.
  8074. * test/UtilTest.cc
  8075. * src/ParameterizedStringParser.cc:
  8076. Use Util::parseUInt() for loop variables.
  8077. * test/ParameterizedStringParserTest.cc
  8078. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8079. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Rewritten the functions for binding port.
  8081. * src/DHTConnectionImpl.{h, cc}
  8082. * src/PeerListenCommand.{h, cc}
  8083. * src/DHTSetup.cc
  8084. * src/BtSetup.cc
  8085. * test/DHTConnectionImplTest.cc
  8086. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8087. type cleanup for allmost all remaining files.
  8088. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Type clarification
  8090. * src/PeerSessionResource.{h, cc}
  8091. * src/DefaultPieceStorage.{h, cc}
  8092. * src/Peer.{h, cc}
  8093. * test/PeerSessionResourceTest.cc
  8094. Use div function
  8095. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8096. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. Type clarification
  8098. * src/DefaultPeerStorage.{h, cc}
  8099. * test/DefaultPeerStorageTest.cc
  8100. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. Type clarification: size_t for length or size, uint64_t for file
  8102. length, off_t for file offset.
  8103. * src/DefaultBtProgressInfoFile.cc
  8104. * src/DefaultBtContext.{h, cc}
  8105. * src/DefaultBtInteractive.cc
  8106. * src/DownloadCommand.{h, cc}
  8107. * src/IteratableChunkChecksumValidator.{h, cc}
  8108. * src/SegmentMan.{h, cc}
  8109. * src/SingleFileDownloadContext.{h, cc}
  8110. * src/IteratableChecksumValidator.{h, cc}
  8111. * src/BtContext.h
  8112. * src/IteratableValidator.h
  8113. * src/DownloadContext.h
  8114. * test/SingleFileDownloadContextTest.cc
  8115. * test/DefaultBtContextTest.cc
  8116. * test/MockBtContext.h
  8117. * test/Metalink2RequestGroupTest.cc
  8118. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. Type clarification: size_t for length or size, uint64_t for file
  8120. length, off_t for file offset.
  8121. * src/PiecedSegment.cc
  8122. * src/GrowSegment.h
  8123. * src/DefaultBtRequestFactory.h
  8124. * src/DefaultBtProgressInfoFile.cc
  8125. * src/UnknownLengthPieceStorage.h
  8126. * src/DefaultPieceStorage.cc
  8127. * src/UnknownLengthPieceStorage.cc
  8128. * src/DefaultBtInteractive.cc
  8129. * src/GrowSegment.cc
  8130. * src/BitfieldMan.h
  8131. * src/DownloadCommand.cc
  8132. * src/BtRequestFactory.h
  8133. * src/PiecedSegment.h
  8134. * src/DefaultPieceStorage.h
  8135. * src/Piece.cc
  8136. * src/DefaultBtRequestFactory.cc
  8137. * src/PieceStorage.h
  8138. * src/Segment.h
  8139. * src/Piece.h
  8140. * src/BitfieldMan.cc
  8141. * src/Util.cc
  8142. * test/DefaultBtProgressInfoFileTest.cc
  8143. * test/DefaultPieceStorageTest.cc
  8144. * test/MockPieceStorage.h
  8145. * test/BtRequestMessageTest.cc
  8146. * test/DefaultBtMessageDispatcherTest.cc
  8147. * test/BitfieldManTest.cc
  8148. * test/GrowSegmentTest.cc
  8149. * test/PieceTest.cc
  8150. * test/SegmentTest.cc
  8151. * test/SegmentManTest.cc
  8152. * test/DefaultBtRequestFactoryTest.cc
  8153. * test/MockBtRequestFactory.h
  8154. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. Fixed compilation error with --disable-nls
  8156. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8157. in gettext.h causes the problem.
  8158. * src/common.h
  8159. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8160. Removed subPiece related functions.
  8161. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8162. * src/DefaultPieceStorage.{h, cc}
  8163. * test/PieceTest.cc
  8164. * test/DefaultPieceStorageTest.cc
  8165. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8166. Use unsigned char for data store.
  8167. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Bump up version number to 0.13.0+1
  8169. * configure.ac
  8170. * Release 0.13.0+1
  8171. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. Changed inactive connection timeout to 120.
  8173. To accept more mulually interested peers, disconnect peer when there
  8174. is no interest between us after certain time passed.
  8175. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8176. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8177. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8178. when compiled with async DNS support.
  8179. * src/DownloadEngine.cc
  8180. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8181. value '10' will be a little bit short when some DNS servers are
  8182. offline and several DNS servers are tried. It should be configured
  8183. by command-line option.
  8184. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8185. Merged Ross's mingw patch.
  8186. * src/DHTRoutingTableDeserializer.cc
  8187. * src/DHTRoutingTableSerializer.cc
  8188. * src/Platform.{h, cc}
  8189. * src/timegm.h
  8190. * src/gettimeofday.h
  8191. * src/getaddrinfo.h
  8192. * src/SocketCore.h
  8193. * src/common.h
  8194. * src/inet_aton.h
  8195. * src/DownloadEngine.h
  8196. * src/gai_strerror.h
  8197. * src/a2netcompat.h
  8198. * configure.ac
  8199. * configure
  8200. * aclocal.m4
  8201. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Included missing iostream.
  8203. * test/AllTest.cc
  8204. * test/BtDependencyTest.cc
  8205. * test/BtExtendedMessageTest.cc
  8206. * test/DHTConnectionImplTest.cc
  8207. * test/DHTMessageFactoryImplTest.cc
  8208. * test/DHTMessageTrackerEntryTest.cc
  8209. * test/DHTNodeTest.cc
  8210. * test/DHTRoutingTableSerializerTest.cc
  8211. * test/DefaultBtAnnounceTest.cc
  8212. * test/DefaultBtContextTest.cc
  8213. * test/DefaultBtMessageFactoryTest.cc
  8214. * test/DefaultExtensionMessageFactoryTest.cc
  8215. * test/HandshakeExtensionMessageTest.cc
  8216. * test/HttpResponseTest.cc
  8217. * test/MetalinkProcessorTest.cc
  8218. * test/MultiFileAllocationIteratorTest.cc
  8219. * test/SocketCoreTest.cc
  8220. * test/UTPexExtensionMessageTest.cc
  8221. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. Reorganized includes.
  8223. * src/NameResolver.cc
  8224. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8225. Fixed compilation error without ares/c-ares
  8226. * src/NameResolver.h:
  8227. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. Added a test for large file.
  8229. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8230. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Fixed the bug that file size is ignored if size > INT32_MAX
  8232. * src/SizeMetalinkParserState.cc (endElement):
  8233. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8234. Bump up version number to 0.13.0
  8235. * configure.ac
  8236. * Release 0.13.0
  8237. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8238. Updated Makfefile.am to make 'make dist' work.
  8239. Now packaged filename is aria2c-VERSION.tar.bz2.
  8240. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8241. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8242. Large file support is now configured by configure script.
  8243. * configure.ac
  8244. Removed unsused source files
  8245. * src/
  8246. * test/
  8247. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8248. Peer.h and BtContext.h respectively.
  8249. * src/Peer.h
  8250. * src/BtContext.h
  8251. Updated translations.
  8252. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8253. translations. Great thanks to all translators!;)
  8254. * po/*.{po, gmo}
  8255. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8257. statically declared sha1 MessageDigestContext.
  8258. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8259. initialization of short-lived MessageDigestContext.
  8260. * src/MessageDigestHelper.{h, cc}
  8261. * src/main.cc
  8262. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8263. the initialization of MessageDigestContext every time in validating
  8264. chunk checksum.
  8265. * src/DownloadCommand.{h, cc}
  8266. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Add a file descriptor which connected to fast peer(latency<1500) to
  8268. select(). This change reduced CPU load.
  8269. * src/PeerInteractionCommand.cc
  8270. * src/DefaultBtInteractive.{h, cc}
  8271. * src/BtInteractive.h
  8272. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Fixed the previous insufficient fix for possible busy loop.
  8274. * src/MSEHandshake.cc (identifyHandshakeType)
  8275. Removed unused functions.
  8276. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8277. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. Fixed possible busy loop if first 20 bytes are not received for a few
  8279. minutes.
  8280. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8281. * src/ReceiverMSEHandshakeCommand.cc
  8282. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Fixed compilation error
  8284. * src/ExpatMetalinkProcessor.cc
  8285. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8287. * src/DHTBucket.cc
  8288. Removed unnecessary cast.
  8289. * src/HandshakeExtensionMessage.cc
  8290. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8292. is missing.
  8293. * src/OptionHandlerFactory.cc
  8294. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. Fixed the bug that HAVE message is not sent for a piece they are
  8296. downloaded fom http/ftp server before any BitTorrent handshake is done
  8297. with peers.
  8298. * src/DefaultBtInteractive.cc
  8299. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8300. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8301. * src/Makefile.am
  8302. * src/Makefile.in
  8303. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Updated README. Added html version of README and man page.
  8305. * README
  8306. * README.html
  8307. * readme2html: Shell script to generate README.html from README using
  8308. asciidoc.
  8309. * doc/aria2c.1.html
  8310. * doc/makeman: Added the line to generate aria2c.1.html
  8311. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Fixed offset calculation.
  8313. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8314. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Rewritten itos and uitos using template. llitos and ullitos are
  8316. replaced with itos and uitos respectively.
  8317. * src/Util.{h, cc}
  8318. * test/UtilTest.cc
  8319. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8321. of the number of bytes required for storing public key and shared
  8322. secret.
  8323. * src/LibgcryptDHKeyExchange.h
  8324. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8325. * src/MSEHandshake.cc
  8326. * test/DHKeyExchangeTest.cc
  8327. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8328. Removed since they are not used.
  8329. * src/Xml2MetalinkProcessor.{h, cc}
  8330. * src/Socket.cc
  8331. * src/SegmentSplitter.{h, cc}
  8332. * test/Xml2MetalinkProcessorTest.cc
  8333. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Fixed the bug that prevents aria2 from stopping other than by pressing
  8335. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8336. option. aria2 doesn't stop even after --seed-time is satisfied and
  8337. continues to output blank lines in the console.
  8338. * src/ReceiverMSEHandshakeCommand.cc
  8339. * src/PeerReceiveHandshakeCommand.cc
  8340. * src/PeerListenCommand.cc
  8341. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8342. Bump up version number to 0.13.0rc
  8343. * configure.ac
  8344. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8345. Updated man page and some usage text.
  8346. * doc/aria2c.1.txt
  8347. * src/usage_text.h
  8348. * po/*.{po, gmo}
  8349. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. Updated translations. Added Finnish and Hebrew translations.
  8351. Great thanks to all translators!
  8352. * po/*.{po, gmo}
  8353. * po/LINGUAS
  8354. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8355. Log more detailed information about each message.
  8356. * src/DHTQueryMessage.{h, cc}
  8357. * src/DHTGetPeersMessage.{h, cc}
  8358. * src/DHTFindNodeReplyMessage.{h, cc}
  8359. * src/DHTGetPeersReplyMessage.{h, cc}
  8360. * src/DHTAnnouncePeerMessage.{h, cc}
  8361. * src/DHTResponseMessage.{h, cc}
  8362. * src/DHTFindNodeMessage.{h, cc}
  8363. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Use constants defined in prefs.h
  8365. * src/option_processing.cc
  8366. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8367. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8368. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8369. Make room for future enchancements for IPv6 addresses.
  8370. Bump up version number of dht.dat file format to 2.
  8371. Not compatible with previous version.
  8372. * src/DHTRoutingTableSerializer.cc
  8373. * src/DHTRoutingTableDeserializer.cc
  8374. * test/DHTRoutingTableSerializerTest.cc
  8375. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. Added handling for the return values from
  8377. PeerMessageUtil::createcompact().
  8378. * src/DefaultBtContext.cc (computeFastSet):
  8379. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8380. Fixed abort when peer's ip address is IPv4-mapped address.
  8381. * src/DefaultBtContext.cc (computeFastSet)
  8382. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8383. cannot handle IPv4-mapped addresses.
  8384. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8385. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. Proper return value handling for OpenSSL functions.
  8387. * src/LibsslDHKeyExchange.h
  8388. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8389. Random bytes generation using libgcrypt and OpenSSL.
  8390. * src/DHTUtil.{h, cc}
  8391. * test/DHTUtilTest.cc
  8392. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8394. received.
  8395. * src/DHTMessageReceiver.cc (receiveMessage)
  8396. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. Fixed the bug that a return code is always 0. BUG#1897704
  8398. If error occurred during the download or there exist unfinished
  8399. downloads, aria2 returns with code 1.
  8400. * src/RequestGroupMan.{h, cc}
  8401. * src/MultiUrlRequestInfo.{h, cc}
  8402. * src/main.cc
  8403. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. IPv6 support for SocketCore class.
  8405. TODO: In SocketCore::establishConnection(), this is insufficient to
  8406. determin the failure of connect() here because the socket is
  8407. non-blocking state. The next addresses should be tried after select().
  8408. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8409. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8410. instead which address family independent.
  8411. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8412. information in a compact peer format which is for IPv4 only.
  8413. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8414. this is a spec of BitTorrent protocol.
  8415. * src/SocketCore.{h, cc}
  8416. * src/PeerMessageUtil.cc
  8417. * test/SocketCoreTest.cc
  8418. * test/PeerMessageUtilTest.cc
  8419. * test/DHTConnectionImplTest.cc
  8420. Handle IPv4-mapped addresses.
  8421. * src/DHTNode.cc: Now identity is determined by node id.
  8422. * src/DHTMessageTrackerEntry.cc
  8423. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8424. should handle it.
  8425. * src/DHTRoutingTableDeserializer.cc
  8426. * src/DHTMessageFactoryImpl.cc
  8427. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8428. Change the unit of --stop option from a minute to a second.
  8429. * src/usage_text.h
  8430. * src/DownloadEngineFactory.cc
  8431. * src/OptionHandlerFactory.cc
  8432. * src/message.h
  8433. * src/TimedHaltCommand.cc
  8434. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8435. Make listening socket non-block mode.
  8436. * src/FtpConnection.cc
  8437. * src/FtpNegotiationCommand.{h, cc}
  8438. * src/PeerListenCommand.cc
  8439. Fixed the bug that cause slow ftp negotiation.
  8440. * src/FtpNegotiationCommand.{h, cc}
  8441. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Added basic tag to --enable-dht, --dht-listen-port option.
  8443. * src/HelpItemFactory.cc (createHelpItems)
  8444. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. Updated text.
  8446. * src/usage_text.h
  8447. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8449. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. Determin _threadtholdSpeed in each constructor for
  8451. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8452. * src/ActivePeerConnectionCommand.{h, cc}
  8453. * src/PeerReceiveHandshakeCommand.{h, cc}
  8454. * src/BtSetup.cc
  8455. * src/BtConstants.h
  8456. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8457. Added --bt-min-crypto-level and --bt-require-crypto options.
  8458. * src/OptionHandlerFactory.cc
  8459. * src/MSEHandshake.cc
  8460. * src/HelpItemFactory.cc
  8461. * src/option_processing.cc
  8462. * src/ReceiverMSEHandshakeCommand.cc
  8463. * src/prefs.h
  8464. * src/DefaultBtAnnounce.cc
  8465. * src/InitiatorMSEHandshakeCommand.cc
  8466. * src/usage_text.h
  8467. * test/MSEHandshakeTest.cc
  8468. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8469. Bump version number to 0.13.0b
  8470. * configure.ac
  8471. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. Updated doc.
  8473. * src/MessageDigestHelper.h:
  8474. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Use raw message digest as a token instead of its hexadecimal
  8476. representation.
  8477. * src/DHTTokenTracker.cc (generateToken)
  8478. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Added Message Stream Encryption(MSE) support.
  8480. Currently, aria2 accepts incoming connections with Obfuscation Header
  8481. and legacy BitTorrent Header and establishes connections with
  8482. Obfuscation Header first and if failed then retry with legacy
  8483. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8484. choose ARC4. The new option to change the default behavior is planned.
  8485. For tracker extension, "supportcrypto=1" is added statically.
  8486. * src/PeerInitiateConnectionCommand.{h, cc}
  8487. * src/PeerConnection.{h, cc}
  8488. * src/HandleRegistry.h
  8489. * src/SocketCore.h
  8490. * src/PeerReceiveHandshakeCommand.{h, cc}
  8491. * src/BtRegistry.{h, cc}
  8492. * src/PeerListenCommand.cc
  8493. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8494. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8495. * src/MSEHandshake.{h, cc}
  8496. * src/ARC4Encryptor.h
  8497. * src/ARC4Decryptor.h
  8498. * src/LibgcryptARC4Encryptor.h
  8499. * src/LibgcryptARC4Decryptor.h
  8500. * src/LibgcryptARC4Context.h
  8501. * src/LibsslARC4Encryptor.h
  8502. * src/LibsslARC4Decryptor.h
  8503. * src/LibsslARC4Context.h
  8504. * src/DHKeyExchange.h
  8505. * src/LibgcryptDHKeyExchange.h
  8506. * src/LibsslDHKeyExchange.h
  8507. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8508. * test/DefaultBtAnnounceTest.cc
  8509. * test/ARC4Test.cc
  8510. * test/DHKeyExchangeTest.cc
  8511. Removed prepareForRetry() because it is not used.
  8512. * src/PeerAbstractCommand.{h, cc}
  8513. * src/PeerInteractionCommand.{h, cc}
  8514. * src/PeerInitiateConnectionCommand.{h, cc}
  8515. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8516. Added the ability to load nodes from torrent file. These nodes are
  8517. added to the routing table when downloading that torrent.
  8518. * src/BtContext.h
  8519. * src/DefaultBtContext.{h, cc}
  8520. * src/DHTSetup.cc
  8521. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8522. hostname and port pair, and resolves all of them.
  8523. * src/NameResolver.{h, cc}: Added reset().
  8524. * src/RequestGroup.cc
  8525. * test/DefaultBtContextTest.cc
  8526. * test/MockBtContext.h
  8527. Removed assert() from DefaultBtContext and throw exception instead.
  8528. * src/DefaultBtContext.cc
  8529. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Fixed segmentation fault bug when exiting if dht is disabled.
  8531. * src/RequestGroup.cc
  8532. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. Fixed typo in log message and define the message in message.h
  8534. * src/TimedHaltCommand.cc
  8535. * src/message.h
  8536. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Included RecoverableException.h to fix compilation error.
  8538. * test/DHTMessageFactoryImplTest.cc
  8539. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8541. * test/DHTPingMessageTest.cc
  8542. * test/DHTGetPeersMessageTest.cc
  8543. * test/DHTFindNodeMessageTest.cc
  8544. * test/DHTAnnouncePeerMessageTest.cc
  8545. * test/MockDHTMessage.h
  8546. * test/MockDHTMessageFactory.h
  8547. * test/MockDHTMessageDispatcher.h: New class.
  8548. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8550. virtual.
  8551. * src/DHTMessageDispatcher.h
  8552. * src/DHTMessageDispatcherImpl.{h, cc}
  8553. * src/DHTSetup.cc
  8554. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Adding handling of DHT error message. Just log error message and
  8556. throw exception.
  8557. * src/DHTMessageFactoryImpl.cc
  8558. * test/DHTMessageFactoryImplTest.cc
  8559. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8560. Added handling of dynamic cast failure.
  8561. * src/DHTNodeLookupTask.cc
  8562. * src/DHTPeerLookupTask.cc
  8563. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8564. Added the ability to stop aria2 itself when given time has passed
  8565. from start. Use --stop option to specify time in minutes.
  8566. When 0 is given, this feature is disabled.
  8567. * src/OptionHandlerFactory.cc
  8568. * src/TimeBasedCommand.h: Make _interval protected scope.
  8569. * src/HelpItemFactory.cc
  8570. * src/option_processing.cc
  8571. * src/prefs.h
  8572. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8573. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8574. Without this modification, the result list shows "ERR" when aria2 is
  8575. stopped by --stop option. It should be "INPR".
  8576. * src/DownloadEngine.{h, cc}
  8577. * src/DownloadEngineFactory.cc
  8578. * src/usage_text.h
  8579. * src/TimedHaltCommand.{h, cc}: New class.
  8580. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. Bootstrap through node added by port message.
  8582. Currently bootstrap is executed if the number of buckets in routing
  8583. table is 1.
  8584. * src/BtPortMessage.{h, cc}
  8585. * src/DefaultBtMessageFactory.{h, cc}
  8586. * src/PeerInteractionCommand.cc
  8587. * test/BtPortMessageTest.cc
  8588. * test/MockDHTTask.h
  8589. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. Extract the Peer class's member variables, which are only needed after
  8591. PeerInteractionCommand, into PeerSessionResource class.
  8592. This class is instantiated in PeerInteractionCommand class's ctor and
  8593. released in its dtor.
  8594. This will make Peer class lightweight and uses less memory for peers
  8595. which are not connected and wait in the queue.
  8596. * src/PeerChokeCommand.cc
  8597. * src/PeerSessionResource.{h, cc}
  8598. * src/PeerInteractionCommand.cc
  8599. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8600. * src/DefaultBtInteractive.cc
  8601. * src/BtPieceMessage.cc
  8602. * src/BtInterestedMessage.cc
  8603. * src/BtUnchokeMessage.cc
  8604. * src/DefaultPeerStorage.{h, cc}
  8605. * src/PeerInitiateConnectionCommand.cc
  8606. * src/ActivePeerConnectionCommand.cc
  8607. * src/BtNotInterestedMessage.cc
  8608. * src/DefaultBtMessageDispatcher.cc
  8609. * src/BtChokeMessage.cc
  8610. * src/BtRequestMessage.cc
  8611. * src/Peer.{h, cc}
  8612. * src/BtRegistry.h
  8613. * src/TrackerWatcherCommand.cc
  8614. * src/PeerReceiveHandshakeCommand.cc
  8615. * test/BtExtendedMessageTest.cc
  8616. * test/BtAllowedFastMessageTest.cc
  8617. * test/BtCancelMessageTest.cc
  8618. * test/DefaultPieceStorageTest.cc
  8619. * test/BtBitfieldMessageTest.cc
  8620. * test/BtHaveMessageTest.cc
  8621. * test/BtNotInterestedMessageTest.cc
  8622. * test/BtRequestMessageTest.cc
  8623. * test/PeerSessionResourceTest.cc
  8624. * test/DefaultBtMessageDispatcherTest.cc
  8625. * test/PeerTest.cc
  8626. * test/BtInterestedMessageTest.cc
  8627. * test/BtRejectMessageTest.cc
  8628. * test/BtChokeMessageTest.cc
  8629. * test/DefaultPeerStorageTest.cc
  8630. * test/BtHaveNoneMessageTest.cc
  8631. * test/BtHaveAllMessageTest.cc
  8632. * test/DefaultExtensionMessageFactoryTest.cc
  8633. * test/BtUnchokeMessageTest.cc
  8634. * test/DefaultBtMessageFactoryTest.cc
  8635. * test/HandshakeExtensionMessageTest.cc
  8636. * test/UTPexExtensionMessageTest.cc
  8637. * test/DefaultBtRequestFactoryTest.cc
  8638. * test/BtPieceMessageTest.cc
  8639. Removed typedef PeerStats.
  8640. * src/PeerStat.h
  8641. * src/SegmentMan.cc
  8642. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. Added std namespace to copy, remove_copy, back_inserter,
  8644. front_inserter.
  8645. * src/RequestGroupMan.cc
  8646. * src/DefaultPieceStorage.cc
  8647. * src/StreamFileAllocationEntry.cc
  8648. * src/BtFileAllocationEntry.cc
  8649. * src/RequestGroup.cc
  8650. * src/MetalinkEntry.cc
  8651. * src/DelegatingPeerListProcessor.cc
  8652. * src/DefaultBtRequestFactory.cc
  8653. * src/DefaultBtMessageDispatcher.cc
  8654. * src/version_usage.cc: Included <algorithm>
  8655. * src/main.cc
  8656. * src/MetalinkParserController.cc
  8657. * src/DefaultBtContext.cc
  8658. * src/DownloadEngineFactory.cc
  8659. * src/a2algo.h
  8660. Removed.
  8661. * test/StreamUriListParserTest.cc
  8662. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8664. ActivePeerConnectionCommand when it is given and
  8665. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8666. * src/ActivePeerConnectionCommand.{h, cc}
  8667. * src/BtSetup.cc
  8668. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8669. Only add socket to DownloadEngine's select routine when peer or
  8670. localhost is unchoked and interested. This lowers CPU usage a
  8671. little bit.
  8672. * src/PeerInteractionCommand.cc
  8673. * src/PeerAbstractCommand.{h, cc}
  8674. * src/BtInteractive.h
  8675. * src/DefaultBtInteractive.{h, cc}
  8676. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8677. Revert previous change because get_peers message is needed for
  8678. announce_peer anyway.
  8679. * src/DHTGetPeersCommand.cc
  8680. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Request peers thought DHT only when download hasn't finished.
  8682. * src/DHTGetPeersCommand.cc
  8683. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8684. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8685. * src/DHTBucketRefreshTask.{h, cc}
  8686. * src/DHTSetup.cc
  8687. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8689. standard classes.
  8690. Included string.h where mem* function are used.
  8691. Added namespace aria2.
  8692. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Create directory before saving DHT routing table.
  8694. Now ios::failure is now handled properly.
  8695. * src/DHTAutoSaveCommand.cc
  8696. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Removed unnecessary cerr.
  8698. * src/DownloadEngine.cc
  8699. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. Catch exception inside DHTMessageReceiver::receiveMessage().
  8701. Log unknown message.
  8702. * src/DHTMessageReceiver.{h, cc}
  8703. * src/DHTMessageFactory.h
  8704. * src/DHTMessageFactoryImpl.{h, cc}
  8705. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8706. * src/DHTInteractionCommand.cc
  8707. * src/DHTUnknownMessage.{h, cc}
  8708. * test/DHTUnknownMessageTest.cc
  8709. * test/MockDHTMessageFactory.h
  8710. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. Commented out ip address comparison because a host can have multiple
  8712. ip addresses and it is hard to predict the hostname is resolved into
  8713. which one.
  8714. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8715. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8716. * po/Makefile.in: Removed since this is generated by configure.
  8717. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8718. Fixed compiler warning about redefinition of SIZE_MAX.
  8719. Use common.h instead of config.h directly here.
  8720. * src/Platform.{h, cc}
  8721. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8722. here.
  8723. * common.h
  8724. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8725. Updated gettext related files.
  8726. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8727. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8728. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Added DHT functionality, compatible with mainline.
  8730. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8731. You may need to specify entry point to DHT network using
  8732. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8733. Use --dht-listen-port to specify port number. Make sure that your
  8734. firewall configuration can pass through UDP traffic to the port.
  8735. The routing table is saved in $HOME/.aria2/dht.dat.
  8736. * src/DHT*
  8737. * src/BNode.{h, cc}
  8738. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8739. particular torrent.
  8740. * src/Data.cc: Rewritten ctor.
  8741. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8742. --dht-entry-point.
  8743. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8744. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8745. ends, remove BtContext from DHTPeerAnnounceStorage.
  8746. * src/BtPortMessage.{h, cc}: Rewritten.
  8747. * src/message.h
  8748. * src/OptionHandlerImpl.cc
  8749. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8750. --dht-entry-point.
  8751. * src/Dictionary.{h, cc} (remove): New function.
  8752. * src/prefs.h
  8753. * src/DefaultBtMessageFactory.h
  8754. * src/BtHandshakeMessage.cc
  8755. * src/ActivePeerConnectionCommand.cc
  8756. * src/SocketCore.{h, cc}: Added datagram socket support.
  8757. * src/DefaultBtMessageFactory.cc
  8758. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8759. Create DHT commands.
  8760. * src/BtMessageFactory.h
  8761. * src/PeerMessageUtil.{h, cc}
  8762. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8763. Fixed the bug that log file is not written when configuration file doesn't exist.
  8764. This is caused by using Logger class before LogFactory is not configured.
  8765. BUG #1875079
  8766. * src/option_processing.cc
  8767. Warning message "configuration doesn't exist" is only printed when --conf is
  8768. given.
  8769. * src/option_processing.cc
  8770. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8772. ShaVisitor is now deprecated and slated to be removed.
  8773. * src/DefaultBtContext.cc
  8774. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8775. Externalize message to message.h
  8776. * src/Platform.cc
  8777. * src/message.h
  8778. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Set default domain and default path to cookie.
  8780. * src/HttpResponse.cc
  8781. * src/CookieBox.{h, cc}
  8782. * src/CookieParser.{h, cc}
  8783. * test/CookieParserTest.cc
  8784. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Added --no-conf and --conf-path command-line option.
  8786. --no-conf option disables loading aria2.conf file.
  8787. --conf-path option changes the configuration file path. The default
  8788. file path is $HOME/.aria2/aria2.conf
  8789. Added a warning message when the configuration file is not found.
  8790. * src/HelpItemFactory.cc
  8791. * src/option_processing.cc
  8792. * src/prefs.h
  8793. * src/usage_text.h
  8794. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Added the message to inform users that other help categories are
  8796. available in -h option.
  8797. * src/version_usage.cc
  8798. * src/TagContainer.{h, cc}
  8799. * test/TagContainerTest.cc
  8800. * src/TaggedItem.{h, cc}
  8801. * test/TaggedItemTest.cc
  8802. * src/HelpItem.h
  8803. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8804. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8805. from PiecedSegment's ctor.
  8806. Previously Piece::getAllMissingBlockIndexes() is called from
  8807. PiecedSegment() but it is rather expensive since only first element is
  8808. used.
  8809. * src/PiecedSegment.cc
  8810. * src/Piece.{h, cc}
  8811. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8812. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8813. each time these functions are called.
  8814. * src/BitfieldMan.{h, cc}
  8815. * test/BitfieldManTest.cc
  8816. * src/array_fun.h
  8817. * test/array_funTest.cc
  8818. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8819. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8820. filtered. Removed unnecessary cast to int32_t.
  8821. * src/BitfieldMan.{h, cc}
  8822. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8824. payload length(4bytes) are received. This happens because lenbufLength
  8825. is not updated in this particular case and successive call of
  8826. receiveMessage() overwrites payload length with bytes recieved which
  8827. are payload body.
  8828. * src/PeerConnection.{h, cc}
  8829. * src/message.h
  8830. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8832. peer if there are peers that have same ipaddr and port.
  8833. I've experiened segmentation fault and "pure virtual function was
  8834. called" error.
  8835. * src/Peer.h
  8836. * test/PeerTest.cc
  8837. * src/DefaultPeerStorage.cc
  8838. * test/DefaultPeerStorageTest.cc
  8839. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8840. Removed a call to isPowerOf() because it is no longer necessary here
  8841. and a request block is not always power of 2.
  8842. BUG#1866924
  8843. * src/PeerMessageUtil.cc (checkLength)
  8844. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Fixed the bug that always first found Segment is removed from
  8846. usedSegmentEntries. Removed unused functions.
  8847. * src/SegmentMan.{h, cc}
  8848. * test/SegmentManTest.cc
  8849. Fixed the bug that ServerHost is not removed.
  8850. * src/RequestGroup.cc
  8851. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8852. Fixed the bug that SegmentMan::completeSegment() is not called
  8853. even if Segment is complete when --lowest-speed-limit is enabled.
  8854. BUG#1864525
  8855. * src/DownloadCommand.{h, cc}
  8856. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Fixed: hash algorithm 'sha1' is always used.
  8858. * src/DownloadCommand.cc (validatePieceHash)
  8859. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. Added --enable-peer-exchange command-line option.
  8861. * src/OptionHandlerFactory.cc
  8862. * src/HelpItemFactory.cc
  8863. * src/option_processing.cc
  8864. * src/usage_text.h
  8865. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. Move extension from BtRuntime to ExtensionMessageFactory, because
  8867. extension can be specified per peer, not per torrent.
  8868. * src/DefaultBtInteractive.cc
  8869. * src/BtRuntime.h
  8870. * src/ExtendedMessagingAware.h
  8871. * src/ExtensionMessageFactory.h
  8872. * src/DefaultExtensionMessageFactory.cc
  8873. * test/DefaultExtensionMessageFactoryTest.cc
  8874. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Added categorized option help. Specify category using --help option.
  8876. Also added the ability to search options in forward match.
  8877. * src/HelpItem.{h, cc}
  8878. * test/HelpItemTest.cc
  8879. * src/HelpItemFactory.{h, cc}
  8880. * src/TagContainer.{h, cc}
  8881. * test/TagContainerTest.cc
  8882. * src/option_processing.cc
  8883. * src/prefs.h
  8884. * src/TaggedItem.{h, cc}
  8885. * test/TaggedItemTest.cc
  8886. * src/version_usage.cc
  8887. * src/help_tags.h
  8888. * src/usage_text.h
  8889. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8890. Fixed segmentation fault when bad torrent metainfo is parsed.
  8891. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8892. and then throw exception or skip it.
  8893. * src/DefaultBtContext.{h, cc}
  8894. * test/DefaultBtContextTest.cc
  8895. * src/AnnounceList.cc
  8896. * src/CompactPeerListProcessor.cc
  8897. * src/message.h
  8898. * src/DefaultBtAnnounce.{h, cc}
  8899. * test/DefaultBtAnnounceTest.cc
  8900. * src/BencodeVisitor.cc
  8901. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8902. Added missing "B"(=Byte). So now the message looks like this:
  8903. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8904. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8905. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8906. Show the seed ratio after torrent downloads.
  8907. For example, after torrent download completed and --seed-time and
  8908. --seed-ratio conditions are fulfilled, following message is printed
  8909. right after "Download complete: .....":
  8910. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8911. * src/RequestGroupMan.cc
  8912. * src/RequestGroup.{h, cc}
  8913. * src/message.h
  8914. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Remove a defunct control file. A defunct control file means that while
  8916. it exists, but the corresponding download file is missing.
  8917. After its removal, a download restarts from the beginning.
  8918. * src/RequestGroup.cc
  8919. * src/message.h
  8920. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. Allocate bitfield in Peer when it is really used. More specifically,
  8922. bitfield in Peer is allocated after the connection is established and
  8923. deallocated when the connection is dropped.
  8924. Since 2 parameters(piece length and total length) was removed from the
  8925. constructor of Peer class, many test classes were modified accordingly.
  8926. See svn log for more detailed information.
  8927. * src/PeerInteractionCommand.cc
  8928. * src/CompactPeerListProcessor.cc
  8929. * src/Peer.cc
  8930. * src/DefaultPeerListProcessor.cc
  8931. * src/PeerListenCommand.cc
  8932. * src/PeerReceiveHandshakeCommand.cc
  8933. Fixed memory leak
  8934. * src/Piece.cc
  8935. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8937. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8938. command-line options.
  8939. * src/option_processing.cc
  8940. * src/ActivePeerConnectionCommand.cc
  8941. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Send have message to peer if it already has the piece.
  8943. * src/BtHaveMessage.{h, cc}
  8944. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8946. port.
  8947. * src/DefaultPeerStorage.{h, cc}
  8948. * test/DefaultPeerStorageTest.cc
  8949. * src/HandshakeExtensionMessage.cc
  8950. * test/HandshakeExtensionMessageTest.cc
  8951. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8952. * src/PeerStorage.h
  8953. * test/MockPeerStorage.h
  8954. * src/PeerListenCommand.cc
  8955. * src/PeerReceiveHandshakeCommand.cc
  8956. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Added --metalink-enable-unique-protocol option.
  8958. * src/Metalink2RequestGroup.cc
  8959. * src/option_processing.cc
  8960. * src/prefs.h
  8961. * src/version_usage.cc
  8962. * doc/aria2c.1.txt
  8963. * doc/aria2c.1
  8964. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Allow a peer in incomingPeer to be added peers.
  8966. * src/DefaultPeerStorage.cc
  8967. * test/DefaultPeerStorageTest.cc
  8968. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8970. I could reproduce this bug in following procedure:
  8971. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8972. 2. Restart aria2.
  8973. 3. You see the download stopped around 99%.
  8974. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8975. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8976. If timeout is reached, then _nextCommand is unused and it may contains
  8977. segments and they won't be canceled. Actually, timeout is not needed
  8978. here because if the server dropped connection, then retry is made.
  8979. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Added uTorrent compatible Peer Exchange.
  8981. * src/BencodeVisitor.{h, cc}
  8982. * test/BencodeVisitorTest.cc
  8983. * src/BtConstants.h
  8984. * src/BtContext.h: Added 'private' flag.
  8985. * src/BtExtendedMessage.{h, cc}
  8986. * test/BtExtendedMessageTest.cc
  8987. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8988. reserved field.
  8989. * test/BtHandshakeMessageTest.cc
  8990. * src/BtMessageFactory.h
  8991. * src/BtRegistry.h
  8992. * src/BtRuntime.h: This class holds default extension message IDs for
  8993. aria2. By default, aria2 uses ID 8 for ut_pex.
  8994. * src/DefaultBtContext.cc
  8995. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8996. When it is true, aria2 enables ut_pex. This value is set by
  8997. PeerInteractionCommand.
  8998. * src/DefaultBtMessageFactory.{h, cc}
  8999. * test/DefaultBtMessageFactoryTest.cc
  9000. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9001. handling to DefaultBtInteractive class.
  9002. * src/DefaultExtensionMessageFactory.{h, cc}
  9003. * test/DefaultExtensionMessageFactoryTest.cc
  9004. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9005. the container(peers and incomingPeers. The equality is determined by
  9006. Peer::id).
  9007. * test/DefaultPeerStorageTest.cc
  9008. * src/ExtensionMessage.h
  9009. * test/MockExtensionMessage.h
  9010. * src/ExtensionMessageFactory.h
  9011. * test/MockExtensionMessageFactory.h
  9012. * src/HandshakeExtensionMessage.{h, cc}
  9013. * test/HandshakeExtensionMessageTest.cc
  9014. * src/MetaEntry.h
  9015. * src/Peer.{h, cc}
  9016. * src/PeerInteractionCommand.cc
  9017. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9018. addIncomingPeer.
  9019. * src/PeerMessageUtil.{h, cc}
  9020. * src/PeerObject.h
  9021. * src/UTPexExtensionMessage.{h, cc}
  9022. * test/UTPexExtensionMessageTest.cc
  9023. * src/message.h
  9024. * src/prefs.h
  9025. Fixed the bug that returns incomplete data when it contains null
  9026. character. A convenient constructor was also added.
  9027. * src/Data.{h, cc}
  9028. Rewritten.
  9029. * src/CompactPeerListProcessor.cc
  9030. Fixed typos.
  9031. * src/message.h
  9032. * src/MetaFileUtil.cc
  9033. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9034. Added "Status Legend" label to the explanation text of 'stat' in
  9035. download result and moved it to the last. BUG#1848214
  9036. * src/RequestGroupMan.cc
  9037. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9039. * src/Makefie.am
  9040. * test/Makefile.am
  9041. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. Fixed the bug that prevents aria2 from loading cookie file when expire
  9043. value is greater than 2^31-1. BUG#1851066
  9044. * src/CookieBoxFactory.cc
  9045. * test/CookieBoxFactoryTest.cc
  9046. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Fixed possible memory leak when an exception is thrown.
  9048. * src/XML2SAXMetalinkProcessor.cc
  9049. Added Expat support. If both libxml2 and Expat are installed, then
  9050. libxml2 is used by default.
  9051. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9052. ExpatMetalinkProcessor according to the configuration.
  9053. * src/ExpatMetalinkProcessor.{h, cc}
  9054. * src/main.cc: Removed libxml2 specific header and init/free function.
  9055. * src/MetalinkProcessorFactory.{h, cc}
  9056. * src/MetalinkHelper.cc
  9057. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9058. * src/MetalinkProcessor.h
  9059. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9060. MetalinkProcessorTest is used instead.
  9061. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9062. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9063. MetalinkProcessorFactory::newInstance().
  9064. * m4/libexpat.m4
  9065. * configure.ac: Added configuration options for libexpat.
  9066. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. Disabled -s option in metalink download.
  9068. * src/Metalink2RequestGroup.cc
  9069. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. If several protocols are available for a mirror in metalink file,
  9071. aria2 now use one of them. --metalink-preferred-protocol option was
  9072. added to specify the preference of protocol.
  9073. * src/AbstractCommand.cc
  9074. * src/OptionHandlerFactory.cc
  9075. * src/ServerHost.{h, cc}
  9076. * src/Metalink2RequestGroup.cc
  9077. * src/RequestGroup.{h, cc}
  9078. * test/RequestGroupTest.cc
  9079. * src/option_processing.cc
  9080. * src/prefs.h
  9081. * src/HttpResponseCommand.cc
  9082. * src/MetalinkResource.{h, cc}
  9083. * src/FtpNegotiationCommand.cc
  9084. * src/MetalinkEntry.{h, cc}
  9085. * src/MetalinkEntryTest.cc
  9086. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. Code cleanup and added debug log.
  9088. * src/PeerConnection.cc
  9089. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Compiler error fix: applied the patch by Tiziano Mueller
  9091. * src/RequestGroup.cc
  9092. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9094. in stopped and completed event.
  9095. * src/AnnounceList.{h, cc}
  9096. * test/AnnounceListTest.cc
  9097. * src/DefaultBtAnnounce.cc
  9098. * test/DefaultBtAnnounceTest.cc
  9099. Sorted URLs.
  9100. * test/Metalink2RequestGroupTest.cc
  9101. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9102. Removed unnecessary string copy. Updated doc and corrected indentation.
  9103. * src/Base64.cc
  9104. Fixed compilation warnings
  9105. * test/DataTest.cc
  9106. * test/HttpRequestTest.cc
  9107. * test/MetaFileUtilTest.cc
  9108. * test/RequestTest.cc
  9109. * Release 0.12.0
  9110. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. Updated translations
  9112. * po/{de,fr,ja,nl,ru}.po
  9113. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9114. translations. Many thanks to translators.
  9115. * po/{ca,es,it,pt_BR,sv}.po
  9116. * po/LINGUAS
  9117. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. Added a notice about URL
  9119. * src/version_usage.cc
  9120. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9121. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9122. aria2 repeatedly sends stopped request when tracker returns error code.
  9123. * src/AnnounceList.cc
  9124. * test/AnnounceListTest.cc
  9125. * src/AnnounceTier.h
  9126. Added a message when ctrl-c is hit.
  9127. Now second ctrl-c is also handled in signal handler.
  9128. * src/RequestGroupMan.{h, cc}
  9129. * src/RequestGroup.{h, cc}
  9130. * src/MultiUrlRequestInfo.cc
  9131. * src/DownloadEngine.cc
  9132. * src/TrackerWatcherCommand.cc
  9133. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. Code cleanup
  9135. * src/Base64.cc (encode)
  9136. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Changed Direct/IO enable/disable procesure in file allocation routine.
  9138. * src/SingleFileAllocationIterator.cc
  9139. (SingleFileAllocationIterator):
  9140. Disable directIO if offset is not multiple of 512.
  9141. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9142. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9143. Enable created SingleFileAllocationIterator's directIO.
  9144. * src/FileAllocationEntry.cc
  9145. (FileAllocationEntry): Enable directIO here.
  9146. (~FileAllocationEntry): Disable directIO here.
  9147. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9148. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9149. * src/Peer.{h, cc}
  9150. * src/DefaultPieceStorage.cc
  9151. * test/DefaultPieceStorageTest.cc
  9152. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. Rewritten direct I/O support routine
  9154. * src/SingleFileAllocationIterator.cc
  9155. * src/MultiDiskAdaptor.{h, cc}
  9156. * src/ByteArrayDiskWriter.h
  9157. * src/AbstractSingleDiskAdaptor.h
  9158. * src/AbstractDiskWriter.cc
  9159. * src/DefaultPieceStorage.cc
  9160. * src/DiskWriter.h
  9161. * src/BinaryStream.h
  9162. * src/IteratableChunkChecksumValidator.cc
  9163. * src/IteratableChecksumValidator.cc
  9164. * src/CheckIntegrityEntry.cc
  9165. * src/FileAllocationEntry.cc
  9166. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Fixed typo
  9168. * src/version_usage.cc
  9169. Updated doc
  9170. * doc/aria2c.1.txt
  9171. * doc/aria2c.1
  9172. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9173. Fixed compile error without message digest support.
  9174. * src/FileMetalinkParserState.cc
  9175. * src/MetalinkParserController.{h, cc}
  9176. * test/XML2SAXMetalinkProcessorTest.cc
  9177. * test/MetalinkParserControllerTest.cc
  9178. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9179. Enable direct I/O support in checksum checking.
  9180. * src/IteratableChunkChecksumValidator.{h, cc}
  9181. * test/IteratableChunkChecksumValidatorTest.cc
  9182. * src/CheckIntegrityEntry.cc
  9183. * src/PieceHashCheckIntegrityEntry.cc
  9184. * src/IteratableChecksumValidator.{h, cc}
  9185. * src/BtCheckIntegrityEntry.cc: Added doc.
  9186. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9187. Added --allow-piece-length-change option.
  9188. * src/DefaultBtProgressInfoFile.cc
  9189. * test/DefaultBtProgressInfoFileTest.cc
  9190. * src/OptionHandlerFactory.cc
  9191. * src/option_processing.cc
  9192. * src/prefs.h
  9193. * src/version_usage.cc
  9194. * doc/aria2c.1.txt
  9195. * doc/aria2c.1
  9196. Fixed: duplicated result entry appears when exception is thrown in
  9197. RequestGroup::createInitiateConnectionCommand().
  9198. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9199. Add RequestGroup to _requestGroup after RequetGroup::
  9200. createInitiateConnectionCommand() succeeds.
  9201. Externalized message
  9202. * src/XML2SAXMetalinkProcessor.cc
  9203. * src/message.h
  9204. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Forced download abort when received negative response from http/ftp
  9206. server.
  9207. * src/HttpResponseCommand.cc
  9208. * src/FtpNegotiationCommand.cc
  9209. * src/HttpResponse.cc
  9210. * src/FtpConnection.cc
  9211. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9212. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9213. the predecessor, Xml2MetalinkParser class.
  9214. I tested them against 94KB metalink file with 1234 chunk checksums.
  9215. The new one parsed it in 22msec, while it took 6000msec with old one.
  9216. * src/XML2SAXMetalinkProcessor.{h, cc}
  9217. * test/XML2SAXMetalinkProcessorTest.cc
  9218. * src/MetalinkParserController.{h, cc}
  9219. * test/MetalinkParserControllerTest.cc
  9220. * src/MetalinkParserState.h: Also added 16 subclasses.
  9221. * src/main.cc
  9222. * src/Metalink2RequestGroup.cc
  9223. * src/MetalinkHelper.cc
  9224. * src/MetalinkEntry.cc
  9225. * src/ChunkChecksum.h
  9226. Rewritten Base64 class for better performance.
  9227. * src/Base64.{h, cc}
  9228. * test/Base64Test.cc
  9229. * src/HttpRequest.cc
  9230. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9231. Fixed the bug#1841757: aria2 will connect to server to only get
  9232. file size.
  9233. * src/StreamFileAllocationEntry.cc
  9234. * src/option_processing.cc
  9235. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9236. downloads.
  9237. * src/FtpNegotiationCommand.cc
  9238. Suppressed wrong message when finding PreDownloadHandler
  9239. * src/RequestGroup.cc
  9240. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9241. Updated usage
  9242. * src/version_usage.cc
  9243. Updated man page
  9244. * doc/aria2c.1.txt
  9245. * doc/aria2c.1
  9246. Updated po files
  9247. * po/aria2c.pot
  9248. * po/*.po
  9249. * po/*.gmo
  9250. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9251. Eliminated g++-4.2 warning
  9252. * src/DownloadHandlerConstants.{h, cc}
  9253. * src/Util.cc
  9254. * test/MetaFileUtilTest.cc
  9255. * test/PStringBuildVisitorTest.cc
  9256. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9257. * src/RequestGroup.cc
  9258. * src/BtCheckIntegrityEntry.cc
  9259. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. Fixed a2io.h
  9261. * src/a2io.h
  9262. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9263. Added direct I/O support. The current implementation uses O_DIRECT,
  9264. which is not posix standard and is tested on linux 2.6.21.
  9265. Currently only file allocation uses direct I/O.
  9266. * src/SingleFileAllocationIterator.{h, cc}
  9267. * test/SingleFileAllocationIteratorTest.cc
  9268. * src/MultiFileAllocationIterator.{h, cc}
  9269. * test/MultiFileAllocationIteratorTest.cc
  9270. * src/BinaryStream.h
  9271. * src/DiskWriter.h
  9272. * src/AbstractDiskWriter.{h, cc}
  9273. * src/ByteArrayDiskWriter.h
  9274. * src/DiskAdaptor.h
  9275. * src/AbstractSingleDiskAdaptor.{h, cc}
  9276. * src/MultiDiskAdaptor.{h, cc}
  9277. * src/FileAllocationEntry.cc
  9278. * src/Util.{h, cc}
  9279. * src/OptionHandlerFactory.cc
  9280. * src/prefs.h
  9281. * src/version_usage.cc
  9282. * src/option_processing.cc
  9283. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9284. handleException.
  9285. * src/MultiFileAllocationIterator.cc
  9286. Added EINTR handling
  9287. * src/SocketCore.cc
  9288. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. Updated usage
  9290. * src/version_usage.cc
  9291. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9292. Applied Ross's patch for MinGW port.
  9293. * src/DownloadEngine.h
  9294. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9295. Set Content-Type to SingleFileDownloadContext when http response is
  9296. received.
  9297. * src/HttpResponseCommand.cc
  9298. * src/HttpResponse.{h, cc}
  9299. * test/HttpResponseTest.cc
  9300. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9301. Rewritten to add content-type support.
  9302. * src/DownloadHandler.{h, cc}
  9303. * src/BtPostDownloadHandler.{h, cc}
  9304. * test/BtPostDownloadHandlerTest.cc
  9305. * src/MetalinkPostDownloadHandler.{h, cc}
  9306. * test/MetalinkPostDownloadHandlerTest.cc
  9307. * src/PostDownloadHandler.{h, cc}
  9308. * src/DownloadHandlerConstants.{h, cc}
  9309. * src/RequestGroup.cc
  9310. * src/HttpResponseCommand.cc
  9311. * src/FtpNegotiationCommand.cc
  9312. * src/SingleFileDownloadContext.{h, cc}
  9313. * src/RequestGroup.h
  9314. * src/RequestGroupCriteria.h
  9315. * src/ContentTypeRequestGroupCriteria.h
  9316. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9317. If it is give, metalink/torrent file is not written to the disk, but
  9318. just is kept in memory. Parsing is occurred on memory.
  9319. * src/MetalinkHelper.{h, cc}
  9320. * src/MetalinkProcessor.h
  9321. * src/Xml2MetalinkProcessor.{h, cc}
  9322. * test/Xml2MetalinkProcessorTest.cc
  9323. * src/DownloadHandlerFactory.{h, cc}
  9324. * test/DownloadHandlerFactoryTest.cc
  9325. * src/PreDownloadHandler.{h, cc}
  9326. * src/OptionHandlerFactory.cc
  9327. * src/DefaultBtContext.{h, cc}
  9328. * test/DefaultBtContextTest.cc
  9329. * src/version_usage.cc
  9330. * src/Metalink2RequestGroup.{h, cc}
  9331. * src/RequestGroup.{h, cc}
  9332. * src/a2functional.h
  9333. * test/a2functionalTest.cc
  9334. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9335. * src/OptionHandlerImpl.h
  9336. * src/prefs.h
  9337. * src/Util.{h, cc}
  9338. * test/UtilTest.cc
  9339. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9340. memory usage.
  9341. * src/RequestGroupMan.{h, cc}
  9342. * src/DownloadEngine.cc
  9343. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9344. WeakHandle to SharedHandle because WeakHandle could be null.
  9345. * src/RequestGroup.{h, cc}
  9346. * src/DownloadEngineFactory.cc
  9347. * src/DownloadResult.h
  9348. Set totalLength after download finished
  9349. * src/UnknownLengthPieceStorage.{h, cc}
  9350. Keep torrent file specified in metalink in memory.
  9351. * src/Metalink2RequestGroup.cc
  9352. * src/BtDependency.cc
  9353. * src/TrueRequestGroupCriteria.h
  9354. Fixed the bug: seekg is used where seekp should be used.
  9355. * src/ByteArrayDiskWriter.cc
  9356. * test/ByteArraydiskWriterTest.cc
  9357. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Fixed syntax error
  9359. * test/SequenceTest.cc
  9360. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9361. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9362. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9363. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9364. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9365. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9366. Added the check to see whether ares_host_callback accepts timeouts
  9367. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9368. * src/NameResolver.{h, cc}
  9369. * m4/libcares.m4
  9370. * configure.ac: Set C++ for language choice.
  9371. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. Fixed: compilation fails without c-ares/ares
  9373. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9374. Generate http/ftp commands only when download is incomplete.
  9375. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9376. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9377. Corrected typo. Examples are removed since they are available in man
  9378. page.
  9379. * src/version_usage.cc
  9380. Updated man page.
  9381. * doc/aria2c.1
  9382. * doc/aria2c.1.txt
  9383. * doc/makeman: Commented out sed command.
  9384. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9385. Throw DlAbortEx when a remote file is not found.
  9386. * src/HttpResponse.cc
  9387. * src/FtpNegotiationCommand.cc
  9388. * src/message.h
  9389. Overwrite an existing file if --allow-overwrite=true is given.
  9390. * src/RequestGroup.cc
  9391. Removed unused functions
  9392. * src/AbstractCommand.h
  9393. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9394. Removed 'extern' from 'extern typedef ...' in src/*.h
  9395. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Updated usage
  9397. * src/version_usage.cc
  9398. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Trim announce URL
  9400. * src/DefaultBtContext.cc
  9401. * test/ShaVisitorTest.cc
  9402. Trim argument s. Give trimed s to exception constructor.
  9403. * src/Util.cc (parseInt)(parseLLInt)
  9404. * test/UtilTest.cc
  9405. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9406. Set precision back to 1.
  9407. * src/ConsoleStatCalc.cc (calculateStat)
  9408. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9409. Replaced strtol with Util::parseInt
  9410. * src/ChunkedEncoding.cc
  9411. * src/HttpConnection.cc
  9412. * src/CookieBoxFactory.cc
  9413. * src/ParameterizedStringParser.cc
  9414. * src/Util.cc
  9415. * test/UtilTest.cc
  9416. * test/OptionHandlerTest.cc
  9417. * src/Request.cc
  9418. Throw exception when empty string is given. The message for exception
  9419. changed.
  9420. * src/Util.cc (parseInt)(parseLLInt)
  9421. * src/message.h
  9422. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9423. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9424. set to 1.
  9425. * src/ConsoleStatCalc.cc (calculateStat)
  9426. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9427. Preallocate non-requested file which is adjacent forward to requested
  9428. file('requested' files means the files given in --select-file option)
  9429. if they share a same piece.
  9430. This fixes long pause in the file system which doesn't support sparse
  9431. files like FAT32 while downloading.
  9432. * src/MultiFileAllocationIterator.{h, cc}
  9433. * test/MultiFileAllocationIteratorTest.cc
  9434. * src/FileEntry.{h, cc}
  9435. Removed unused _option.
  9436. * src/MultiDiskAdaptor.h
  9437. * test/MultiDiskAdaptorTest.cc
  9438. * src/DefaultPieceStorage.cc
  9439. Set the default value of --seed-ratio to 1.0.
  9440. If 0.0 is given, then seeding continues regardless of share ratio.
  9441. * src/version_usage.cc
  9442. * src/option_processing.cc
  9443. * src/BtSetup.cc
  9444. * doc/aria2c.1.txt
  9445. * doc/aria2c.1
  9446. Fixed: Selective download is not working in BitTorrent
  9447. * src/RequestGroup.cc
  9448. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9449. * src/PieceStorage.h
  9450. * test/MockPieceStorage.h
  9451. * src/UnknownLengthPieceStorage.h
  9452. * src/DefaultPieceStorage.{h, cc}
  9453. * src/Metalink2RequestGroup.cc
  9454. * src/RequestGroup.cc
  9455. * src/Sequence.h
  9456. * test/SequenceTest.cc
  9457. * src/IntSequence.h
  9458. * src/message.h
  9459. * src/Util.{h, cc}
  9460. * test/UtilTest.cc
  9461. Added new function 'parse' to catch exception thrown by subclass's
  9462. parseArg
  9463. * src/OptionHandler.h
  9464. * src/OptionParser.cc
  9465. * src/NameMatchOptionHandler.h
  9466. * src/OptionHandlerImpl.h
  9467. * test/OptionHandlerTest.cc
  9468. Added IntegerRangeOptionHandler. Used for --listen-port and
  9469. --select-file. Now --listen-port accepts range of port.
  9470. * src/OptionHandlerFactory.cc
  9471. * src/version_usage.cc
  9472. * src/OptionHandlerImpl.h
  9473. * src/option_processing.cc
  9474. * src/BtSetup.cc
  9475. * src/PeerListenCommand.{h, cc}
  9476. * doc/aria2c.1.txt
  9477. * doc/aria2c.1
  9478. Implemented operator< for Exception class to provide easy way to print
  9479. exception stack trace.
  9480. * src/Exception.{h, cc}
  9481. * src/main.cc
  9482. * src/option_processing.cc
  9483. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9484. * src/version_usage.cc
  9485. (showVersion): Reworked.
  9486. (showUsage): Added examples.
  9487. Removed Hint for total length and file name.
  9488. * src/Metalink2RequestGroup.cc
  9489. * src/RequestGroup.{h, cc}
  9490. * src/HttpResponseCommand.cc
  9491. * src/FtpNegotiationCommand.cc
  9492. Now --follow-torrent and --follow-metalink option work properly.
  9493. * src/RequestGroup.cc
  9494. Updated man page
  9495. * doc/aria2c.1.txt
  9496. * doc/aria2c.1
  9497. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. Removed.
  9499. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9500. Use Segment::operator==()
  9501. * src/HttpConnection.cc
  9502. * src/Segment.h
  9503. Updated usage
  9504. * src/version_usage.cc
  9505. Added EINTR treatment.
  9506. * src/SocketCore.cc
  9507. * src/AbstractDiskWriter.cc
  9508. Rewritten.
  9509. * src/Util.cc (rangedFileCopy)
  9510. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Fixed typo.
  9512. * src/version_usage.cc
  9513. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. Implemented. Now -c option works fine.
  9515. * src/DefaultPieceStorage.cc (markPiecesDone)
  9516. * test/DefaultPieceStorageTest.cc
  9517. Removed.
  9518. * src/SegmentMan.{h, cc}
  9519. (markAllPiecesDone)
  9520. (markPieceDone)
  9521. Synchronized po files with
  9522. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9523. * src/fr.po
  9524. * src/ru.po
  9525. * src/de.po
  9526. * src/ja.po
  9527. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. Added ifdef and some modifications to compile without BitTorrent,
  9529. Metalink, MessageDigest
  9530. support.
  9531. * src/PieceHashCheckIntegrityEntry.cc
  9532. * src/MetalinkEntry.h
  9533. * src/version_usage.cc
  9534. * src/main.cc
  9535. * src/DownloadEngine.{h, cc}
  9536. * src/Metalink2RequestGroup.cc
  9537. * src/Peer.cc
  9538. * src/RequestGroup.cc
  9539. * src/MetalinkHelper.cc
  9540. * test/DefaultPieceStorageTest.cc
  9541. * test/MetalinkPostDownloadHandlerTest.cc
  9542. * test/Metalink2RequestGroupTest.cc
  9543. Hide TOTAL SPD when all downloads complete.
  9544. * src/ConsoleStatCalc.cc
  9545. Log target system information.
  9546. * src/main.cc
  9547. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. Now --metalink-location accepts a comma-deliminated list of locations.
  9549. * src/MetalinkEntry.{h, cc}
  9550. * test/MetalinkEntryTest.cc
  9551. * src/version_usage.cc
  9552. * src/Metalink2RequestGroup.cc
  9553. * src/Xml2MetalinkProcessor.cc
  9554. * test/Xml2MetalinkProcessorTest.cc
  9555. * doc/aria2c.1.txt
  9556. * doc/aria2c.1
  9557. * src/Util.cc (toUpper)(toLower): Rewritten.
  9558. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9559. Added the ability to detect duplicate download entry which is about to
  9560. download the same file other RequestGroup is downloading.
  9561. * src/RequestGroup.cc
  9562. * src/HttpResponseCommand.cc
  9563. * src/FtpNegotiationCommand.cc
  9564. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9565. Recalculates download progress when loading a control file,
  9566. if the piece length of DownloadContext is different from the one saved
  9567. in the control file. Currently in-flight pieces are ignored.
  9568. * src/DefaultBtProgressInfoFile.cc
  9569. * test/DefaultBtProgressInfoFileTest.cc
  9570. * src/Util.{h, cc}
  9571. * test/UtilTest.cc
  9572. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Do not rotate tiers in announce-list.
  9574. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9575. AnnounceList::allTiersFailed() used instead to detect whether all
  9576. tiers are tried and failed.
  9577. * test/DefaultBtAnnounceTest.cc
  9578. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9579. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9580. * test/AnnounceListTest.cc
  9581. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9582. clause. Catch RecoverableException instead of DlRetryEx instead.
  9583. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9584. Implemented checksum validation feature(1 checksum for each file)
  9585. The validation takes place after the download.
  9586. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9587. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9588. * src/CheckIntegrityCommand.cc: Changed log message.
  9589. * src/Metalink2RequestGroup.cc: Set checksum to
  9590. SingleFileDownloadContext.
  9591. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9592. PieceHashCheckIntegrity class.
  9593. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9594. PieceHashCheckIntegrity class.
  9595. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9596. * src/IteratableValidator.h: New class.
  9597. * src/message.h
  9598. * src/CheckIntegrityEntry.{h, cc}
  9599. * src/IteratableChunkChecksumValidator.{h, cc}
  9600. * src/SingleFileDownloadContext.h
  9601. * src/DownloadCommand.cc
  9602. --allow-overwrite=true is no longer needed to check file integrity
  9603. before download in BitTorrent download.
  9604. * src/RequestGroup.cc (getInitialCommand)
  9605. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9606. throws exception.
  9607. * src/RequestGroupMan.cc (getInitialCommands)
  9608. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9609. urlencode the given url inside Request::parseUrl(...)
  9610. * src/Request.{h, cc}
  9611. * src/Util.{h, cc}
  9612. * test/RequestTest.cc
  9613. Removed #!metalink3! notation support because it is deleted from
  9614. the metalink specification.
  9615. * src/Request.{h, cc}
  9616. * test/RequestTest.cc
  9617. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. Don't connect server before checking file integrity at startup, if
  9619. filesize and output file path are known.
  9620. * src/AbstractCommand.cc
  9621. * src/StreamFileAllocationEntry.cc
  9622. * src/Metalink2RequestGroup.cc
  9623. * src/RequestGroup.{h, cc}
  9624. * src/HttpResponseCommand.cc
  9625. * src/FtpNegotiationCommand.cc
  9626. Added DownloadFailureException. If it is thrown, RequestGroup should
  9627. halt.
  9628. * src/AbstractCommand.cc
  9629. * src/DownloadFailureException.h
  9630. * src/RequestGroup.cc
  9631. Catch RecoverableException, instead of DlAbortEx.
  9632. * src/RequestGroupMan.cc
  9633. * src/FillRequestGroupCommand.cc
  9634. * src/MetaFileUtil.cc
  9635. * src/IteratableChunkChecksumValidator.cc
  9636. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9637. getGID())
  9638. * src/CheckIntegrityCommand.cc
  9639. * src/message.h
  9640. Print gid instead of idx.
  9641. * src/RequestGroupMan.cc
  9642. Removed exception throwers declaration.
  9643. * src/DirectDiskAdaptor.{h, cc}
  9644. * src/SocketCore.{h, cc}
  9645. * src/MultiDiskAdaptor.{h, cc}
  9646. * src/HttpConnection.{h, cc}
  9647. * src/HttpResponse.{h, cc}
  9648. * src/DiskAdaptor.{h, cc}
  9649. * src/CopyDiskAdaptor.{h, cc}
  9650. * src/MultiDiskAdaptor.{h, cc}
  9651. * src/HttpHeaderProcessor.{h, cc}
  9652. * src/AbstractSingleDiskAdaptor.{h, cc}
  9653. * src/Util.{h, cc}
  9654. * test/UtilTest.cc
  9655. * src/DefaultDiskWriter.{h, cc}
  9656. * src/FtpConnection.{h, cc}
  9657. * src/AbstractDiskWriter.{h, cc}
  9658. Removed duplicate code.
  9659. * src/StreamCheckIntegrityEntry.cc
  9660. Removed unnecessary include.
  9661. * src/DiskWriter.h
  9662. Included Exception.h
  9663. * src/option_processing.cc
  9664. Included 2 files and added doc
  9665. * src/TrackerWatcherCommand.cc
  9666. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9667. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9668. Changed CheckIntegrityEntry interface so that it can define
  9669. the action when all the chunk checksums are valid.
  9670. * src/CheckIntegrityEntry.h
  9671. * src/StreamCheckIntegrityEntry.{h, cc}
  9672. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9673. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9674. to exit rather than doing seeding. So, it would be good to toggle this
  9675. behavior.
  9676. * src/CheckIntegrityCommand.cc
  9677. * src/AbstractCommand.cc
  9678. * src/RequestGroup.cc
  9679. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9680. Reflect the download length of in-flight pieces.
  9681. It makes the download length readout more precise.
  9682. * src/DefaultPieceStorage.{h, cc}
  9683. * test/DefaultPieceStorageTest.cc
  9684. * src/a2functional.h
  9685. * test/a2functionalTest.cc
  9686. Lower CPU load when --max-download-limit is used.
  9687. There is up and down in speed indicator when enabling
  9688. http-pipelining but a download goes well. I think the problem is that
  9689. because http-pipelining is enabled, DownloadCommand is created for
  9690. each segment and in its constructor, PeerStat::downloadStart() is
  9691. called. In PeerStat::downloadStart(), speed calculation object is
  9692. reseted, which makes download speed zero.
  9693. * src/DownloadCommand.cc
  9694. Rewritten using accumulate.
  9695. * src/RequestGroupMan.cc (calculateStat)
  9696. Code clearnup.
  9697. * src/FtpNegotiationCommand.cc
  9698. * src/HttpResponseCommand.cc
  9699. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9700. Fixed: Can not resume: aria2 reports download already finished.
  9701. * src/AbstractCommand.{h, cc}
  9702. * src/HttpResponseCommand.cc
  9703. * src/FtpNegotiateCommand.cc
  9704. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. Now a file is stored in the directory specified in .metalnk file
  9706. (file[@name]).
  9707. * src/Metalink2RequestGroup.cc
  9708. Create the directory structure when opening the file if it doesn't
  9709. exist.
  9710. * src/AbstractDiskWriter.cc
  9711. * src/Util.{h, cc}
  9712. * src/File.h
  9713. * test/UtilTest.cc
  9714. Removed file name comparison
  9715. * src/Metalink2RequestGroup.cc
  9716. * src/HttpResponseCommand.cc
  9717. Rewritten using Util::mkdirs()
  9718. * src/FileEntry.cc (setupDir)
  9719. * test/FileEntryTest.cc
  9720. Updated doc
  9721. * src/SingleFileDownloadContext.h
  9722. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9723. Now SleepCommand dispatches nextCommand when halt is requested.
  9724. It avoids a possible long wait after hitting CTRL-C.
  9725. * src/SleepCommand.{h, cc}
  9726. * src/RequestGroupAware.{h, cc}
  9727. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9728. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9729. to open listen port, then remove the port number from the tracker
  9730. request.
  9731. * src/DefaultBtAnnounce.cc
  9732. * test/DefaultBtAnnounceTest.cc
  9733. * test/MockPieceStorage.h
  9734. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9735. them more testable.
  9736. * src/DefaultBtAnnounce.{h, cc}
  9737. * src/DefaultBtContext.{h, cc}
  9738. * src/Util.{h, cc}
  9739. * test/DefaultBtAnnounceTest.cc
  9740. * test/DefaultBtContextTest.cc
  9741. * test/UtilTest.cc
  9742. Added 'B' to upload bytes readout.
  9743. * src/ConsoleStatCalc.cc
  9744. Now the listen port for BitTorrent download is opened when it is
  9745. needed.
  9746. * src/DownloadEngineFactory.cc
  9747. * src/BtSetup.{h, cc}
  9748. * src/PeerListenCommand.{h, cc}
  9749. Now an exception thrown while parsing tracker response is now logged.
  9750. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9751. called, which means no retry is made in this case, assuming a tracker
  9752. has a problem.
  9753. * src/TrackerWatcherCommand.cc
  9754. Fixed: downloading a file whose length is unkown fails.
  9755. * src/DownloadCommand.cc
  9756. Simplified prepareForNextSegment()
  9757. * src/DownloadCommand.cc
  9758. Updated
  9759. * po/POTFILES.in
  9760. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9761. Re-implemented a file listing for Metalink, which was dropped while
  9762. http/ftp/torrent integration was being implemented.
  9763. * src/MetalinkHelper.{h, cc}: New class.
  9764. * test/MetalinkHelperTest.cc
  9765. * src/main.cc
  9766. * src/Metalink2RequestGroup.cc
  9767. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9768. Added the ability to display the detailed torrent file information.
  9769. Now -S option gives not only a file listing, but also total download
  9770. length, info hash, announce URI, piece length, the number of pieces,
  9771. and mode(single or multi-torrent).
  9772. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9773. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9774. KiB)
  9775. * test/UtilTest.cc
  9776. * src/main.cc
  9777. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. Added ftp://USER:PASSWD@Servername automatic parsing.
  9779. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9780. _password. Recognize username and password in URI.
  9781. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9782. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9783. * src/RequestFactory.{h, cc}: Removed.
  9784. * src/AuthConfigFactory.{h, cc}: New class.
  9785. * src/FtpConnection.cc: Use AuthConfigFactory.
  9786. * src/HttpRequest.cc: Use AuthConfigFactory.
  9787. * test/HttpRequestTest.cc: Updated.
  9788. * test/RequestTest.cc: Updated.
  9789. * test/AuthConfigFactoryTest.cc: New class.
  9790. * test/RequestFactoryTest.cc: Removed.
  9791. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. Use RequestGroup::allDownloadFinished() to decide whether the control
  9793. file should be removed or saved.
  9794. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9795. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9796. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Use File::renameTo()
  9798. * src/DefaultBtProgressInfoFile.cc
  9799. Added --no-file-allocation-limit command-line option.
  9800. * src/version_usage.cc
  9801. * src/option_processing.cc
  9802. * src/OptionHandlerFactory.cc
  9803. * src/RequestGroup.{h, cc}
  9804. * src/BtCheckIntegrityEntry.cc
  9805. * src/StreamCheckIntegrityEntry.cc
  9806. * src/prefs.h
  9807. * doc/aria2c.1.txt
  9808. * doc/aria2c.1
  9809. Now prealloc is the default value for --file-allocation option.
  9810. * src/version_usage.cc
  9811. * src/option_processing.cc
  9812. * doc/aria2c.1.txt
  9813. * doc/aria2c.1
  9814. Don't URL-encode user-agent.
  9815. * src/HttpRequest.cc
  9816. Updated translations
  9817. * po/LINGUAS: Added nl for Dutch translation.
  9818. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9819. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9820. * po/POTFILES.in: Updated.
  9821. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9822. Added the ability to recognize url-list in a torrent file.
  9823. The retrieved URLs are attached to the corresponding FileEntry.
  9824. * src/DefaultBtContext.{h, cc}
  9825. * src/FileEntry.{h, cc}
  9826. * test/DefaultBtContextTest.cc
  9827. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9828. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9829. after the download finishes.
  9830. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9831. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9832. the data smaller than block length.
  9833. A block length can be specified by constructor's argument.
  9834. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9835. Get a missing piece in the range of given FileEntry. This function is
  9836. not used in the program yet.
  9837. * src/Util.h: Added some macros.
  9838. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9839. Added HTTP/1.1 keep alive and pipelining support.
  9840. See --enable-http-keep-alive and --enable-http-pipelining option.
  9841. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9842. Segment.
  9843. * src/HttpDownloadCommand.{h, cc}
  9844. * src/OptionHandlerFactory.cc
  9845. * src/HttpConnection.{h, cc}
  9846. * src/version_usage.cc
  9847. * src/HttpInitiateConnectionCommand.cc
  9848. * src/FtpInitiateConnectionCommand.cc
  9849. * src/Segment.h
  9850. * src/HttpRequestCommand.{h, cc}
  9851. * src/option_processing.cc
  9852. * src/prefs.h
  9853. * src/HttpResponseCommand.cc
  9854. * src/SegmentMan.{h, cc}
  9855. * src/FtpNegotiateCommand.cc
  9856. * src/HttpProxyResponseCommand.cc
  9857. * src/Request.cc
  9858. * src/HttpRequest.cc
  9859. * src/DownloadCommand.cc
  9860. * test/HttpRequestTest.cc
  9861. * test/RequestTest.cc
  9862. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9863. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9864. finished.
  9865. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9867. catching it inside the method.
  9868. When no file entry is found in a metalink without querying user
  9869. preferences, throw the exception with the error message that suggests
  9870. metalink file is probably broken.
  9871. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9872. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9873. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9874. processed.
  9875. * src/RequestGroupMan.cc (removeStoppedGroup)
  9876. Added debug message.
  9877. * src/BtPostDownloadHandler.cc
  9878. * src/MetalinkPostDownloadHandler.cc
  9879. * src/PostDownloadHandler.{h, cc}
  9880. * src/RequestGroup.cc
  9881. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9882. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9883. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9885. stops and there are any unfinished or in-progress downloads.
  9886. Added the legend of "stat".
  9887. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9888. Throw exception when chunck checksum verification fails.
  9889. * src/DownloadCommand.cc (validatePieceHash): New function.
  9890. * src/PiecedSegment.{h, cc} (clear): New function.
  9891. * src/GrowSegment.{h, cc} (clear): New function.
  9892. * src/Segment.h (clear): New function.
  9893. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9894. * test/SegmentTest.cc
  9895. * test/GrowSegmentTest.cc
  9896. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9897. Do not send referer when redirected.
  9898. * src/Request.cc (redirectUrl)
  9899. * test/RequestTest.cc
  9900. * test/HttpRequestTest.cc
  9901. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9902. Implemented BitTorrent/http/ftp integrated download.
  9903. I've rewritten lots of files and now some headers have forward
  9904. class declarations to reduce compile time.
  9905. The implementation is extremely alpha stage, I recommend to use this
  9906. for testing purpose only.
  9907. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9908. Fixed the compilation error on 64bit platform.
  9909. * test/HttpHeaderProcessorTest.cc
  9910. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9911. Merged Ross's patch that fixes compilation problem in MinGW
  9912. * test/DefaultBtProgressInfoFileTest.cc
  9913. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9914. Updated fr.po by sebone
  9915. * po/fr.po
  9916. Updated man page.
  9917. * doc/aria2c.1.txt
  9918. * Release 0.11.3
  9919. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9921. failure in Metalink.
  9922. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9923. Automatically save *.aria2 control file of http/ftp download in every
  9924. 60 seconds.
  9925. * src/AutoSaveCommand.{h, cc}: New class.
  9926. * src/TimeBasedCommand.{h, cc}: New class.
  9927. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9928. Disable parameterized URI support by default. Added -P option to
  9929. enable the feature.
  9930. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9931. * src/OptionHandlerFactory.cc
  9932. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9933. Updated Japanese translation.
  9934. * po/ja.po
  9935. Updated man page.
  9936. * doc/aria2c.1.txt
  9937. * Release 0.11.3-rc
  9938. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9939. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9940. it is successful, then renamed to *.aria2.
  9941. This prevents *.aria2 file from being truncated or corrupted when
  9942. file system becomes out of space.
  9943. * src/DefaultBtProgressInfoFile.cc (save)
  9944. * src/SegmentMan.cc (save)
  9945. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9946. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9947. Reduced the fragmentation of bitfield in http/ftp download.
  9948. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9949. * test/BitfieldManTest.cc
  9950. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9951. Added the ability to disable segmented download in .metalink.
  9952. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9953. 'url' tag.
  9954. * src/MetalinkEntry.{h, cc}
  9955. * src/RequestResource.{h, cc}
  9956. * src/MetalinkRequestInfo.cc
  9957. * src/Xml2MetalinkProcessor.cc
  9958. * test/Xml2MetalinkProcessorTest.cc
  9959. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. Added parameterized URI support.
  9961. * src/main.cc: -Z option added.
  9962. * src/OptionHandlerFactory.cc
  9963. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9964. * src/PStringDatum.h: New class.
  9965. * src/PStringSegment.{h,cc}: New class.
  9966. * src/PStringNumLoop.h: New class.
  9967. * src/PStringSelect.h: New class.
  9968. * src/NumberDecorator.h: New class.
  9969. * src/FixedWidthNumberDecorator.h: New class.
  9970. * src/AlphaNumberDecorator.h: New class.
  9971. * src/PStringVisitor.h: New class.
  9972. * src/PStringBuildVisitor.{h,cc}: New class.
  9973. * src/ParameterizedStringParser.{h,cc}: New class.
  9974. * src/Util.{h,cc}
  9975. (isNumber): New function.
  9976. (isLowercase): New function.
  9977. (isUppercase): New function.
  9978. (alphaToNum): New function.
  9979. * test/ParameterizedStringParserTest.cc: New class.
  9980. * test/AlphaNumberDecoratorTest.cc: New class.
  9981. * test/PStringBuildVisitorTest.cc: New class.
  9982. * test/UtilTest.cc
  9983. (testIsNumber): New function.
  9984. (testIsLowercase): New function.
  9985. (testIsUppercase): New function.
  9986. (testAlphaToNum): New function.
  9987. Added '\n' after the error message
  9988. * src/RequestInfo.h (printDownloadAbortMessage)
  9989. Added auto file renaming feature in http(s)/ftp download.
  9990. * src/main.cc: Added --auto-file-renaming command-line option.
  9991. * src/OptionHandlerFactory.cc
  9992. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9993. * src/RequestGroup.{h, cc}
  9994. (shouldCancelDownloadForSafety): Rewritten
  9995. (tryAutoFileRenaming): New function.
  9996. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9997. * src/HttpResponseCommand.cc
  9998. (executeInternal): Removed the call to RequestGroupMan::
  9999. isSameFileBeingDownloaded()
  10000. * src/FtpNegotiateCommand.cc
  10001. (recvSize): Removed the call to RequestGroupMan::
  10002. isSameFileBeingDownloaded()
  10003. * test/RequestGroupTest.cc: New class.
  10004. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10006. IO.
  10007. * src/DefaultBtProgressInfoFile.cc
  10008. * src/MetaFileUtil.cc
  10009. * src/SimpleLogger.cc
  10010. * src/SegmentMan.cc
  10011. * src/Util.cc
  10012. * src/Platform.cc
  10013. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10015. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10016. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10017. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10018. Fixed the bug that prevents file allocation is not done when
  10019. dowloading multi-torrent file.
  10020. * src/AbstractDiskWriter.cc (openFile)
  10021. Increase the maximum number of -j option from 15 to 45.
  10022. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10023. Added fr.po, thanks to Charles Landemaine.
  10024. * po/fr.po
  10025. * po/LINGUAS
  10026. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10027. gcc 3.4.4 support:
  10028. * src/DefaultBtContext.cc: int32_t -> int
  10029. * src/main.cc: int -> int32_t, int32_t -> int
  10030. * src/messageDigest.h: uint32_t -> unsigned int
  10031. * src/NameResolver.h: int32_t -> int
  10032. * src/PeerConnection.cc: int -> int32_t
  10033. * src/SpeedCalc.cc: int32_t -> int
  10034. * src/TrackerUpdateCommand.h: int -> int32_t
  10035. * src/Util.cc: int32_t -> int
  10036. * src/Util.h: int32_t -> int
  10037. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10038. * test/AnnounceListTest.cc: int -> int32_t
  10039. * test/ChunkedEncodingTest.cc: int -> int32_t
  10040. * test/DataTest.cc: int -> int32_t
  10041. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10042. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10043. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10044. * test/FeatureConfigTest.cc: int -> int32_t
  10045. * test/MetalinkEntryTest.cc: int -> int32_t
  10046. * test/MockBtRequestFactory.h: int -> int32_t
  10047. * test/MockPieceStorage.h: int -> int32_t
  10048. * test/OptionTest.cc: int -> int32_t
  10049. * test/RequestTest.cc: int -> int32_t
  10050. * test/SegmentManTest.cc: int -> int32_t
  10051. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10052. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10053. Move sleep functions to Util class:
  10054. * src/Util.cc
  10055. (sleep): New function.
  10056. (usleep): New function.
  10057. * src/DownloadCommand.cc: sleep -> Util::sleep
  10058. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10059. MinGW build enhancements. The following files are added:
  10060. * src/timegm.{c,h}
  10061. Changes to support the above new files:
  10062. * configure.ac
  10063. * src/Makefile.am
  10064. * src/a2time.h
  10065. * src/Util.cc:
  10066. * src/strptime.c: Added support for %Z option.
  10067. Fixed MinGW non-blocking bug.
  10068. * src/SocketCore.cc
  10069. * src/HttpRequestCommand.cc
  10070. Miscellenous build fixes/enhancements.
  10071. * configure.ac: Added summary report.
  10072. * src/Platform.h: Tweaked #include's.
  10073. * src/a2netcompat.h: Tweaked #include's.
  10074. * src/strptime.h: Tweaked #include's.
  10075. * src/gai_strerror.c: Tweaked #include's.
  10076. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10077. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10078. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10079. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10080. Increased the initial connection size in BitTorrent download to 40.
  10081. * src/BtRuntime.h
  10082. Added the usage message of --peer-id-prefix option.
  10083. * src/main.cc
  10084. * Release 0.11.2
  10085. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10086. MessageDigestHelper is introduced in order to simplify the use
  10087. of message digest. Removed repeated code.
  10088. The message digest algorithm is now specified by string, like "sha1",
  10089. "md5".
  10090. * src/messageDigest.{h, cc}
  10091. * src/MessageDigestHelper.{h, cc}: New class.
  10092. * src/DefaultPieceStorage.cc
  10093. * src/DefaultBtContext.{h, cc}
  10094. (computeFastSet): New function.
  10095. (setInfoHash): Added for unit testing.
  10096. (setNumPieces): Added for unit testing.
  10097. * src/DefaultBtInteractive.cc
  10098. * src/BtPieceMessage.cc
  10099. * src/Peer.cc
  10100. * src/Checksum.h
  10101. * src/message.h
  10102. * src/IteratableChecksumValidator.h
  10103. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10104. inside it.
  10105. * src/SegmentMan.{h, cc}
  10106. (checkIntegrity): Removed.
  10107. * src/IteratableChunkChecksumValidator.{h, cc}
  10108. * src/Util.h
  10109. (sha1Sum): Removed.
  10110. (simpleMessageDigest): Removed.
  10111. (fileChecksum): Removed.
  10112. (computeFastSet): Removed.
  10113. * src/ShaVisitor.cc
  10114. * src/ChunkChecksum.h
  10115. * src/DownloadCommand.cc
  10116. Removed messageDigest virtual functions.
  10117. * src/MultiDiskAdaptor.{h, cc}
  10118. * src/DiskAdaptor.h
  10119. * src/ByteArrayDiskWriter.h
  10120. * src/DiskWriter.h
  10121. * src/DiskAdaptorWriter.h
  10122. * src/AbstractSingleDiskAdaptor.{h, cc}
  10123. * src/AbstractDiskWriter.{h, cc}
  10124. Fixed comilation error when message digest is disabled.
  10125. * src/MetalinkEntry.{h, cc}
  10126. * src/MetalinkRequestInfo.cc
  10127. Removed srandom and random.
  10128. * src/SimpleRandomizer.h
  10129. Added size() virtual function to DiskAdaptor
  10130. * src/MultiDiskAdaptor.h
  10131. Fixed the bug that causes that files are not opened correctly in
  10132. multi-file torrent.
  10133. * src/TorrentRequestInfo.cc
  10134. * src/MultiDiskAdaptor.cc
  10135. Added SHA256 support
  10136. * src/messageDigest.cc
  10137. * src/Xml2MetalinkProcessor.cc
  10138. Show supported message digest algorithms
  10139. * src/main.cc
  10140. Updated contact info.
  10141. * src/main.cc
  10142. Applied Ross's patch
  10143. * src/a2netcompat.h
  10144. * src/main.cc
  10145. Fixed the bug that prevents a remote metalink from not being processed
  10146. even if '-o foo.metalink' is specified.
  10147. * src/MetalinkRequestInfo.cc
  10148. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10149. Merged Dan's patch:
  10150. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10151. Use va_copy to avoid core dump on amd64:
  10152. * src/SimpleLogger.cc
  10153. Updated contact info.
  10154. * src/main.cc
  10155. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10156. digest is not available.
  10157. * src/MetalinkEntry.h
  10158. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10159. Make a2netcompat.h include a2io.h to fix compilation error:
  10160. * src/a2netcompat.h
  10161. * src/SocketCore.cc: Removed include of a2io.h
  10162. * src/Util.cc: Removed include of a2io.h
  10163. Gather time related functions to a2time.h:
  10164. * src/a2time.h: New file.
  10165. * src/DefaultPeerStorage.cc
  10166. * src/SimpleLogger.cc
  10167. * src/Util.{h, cc}
  10168. * src/SimpleRandomizer.h
  10169. * src/TimeA2.{h,cc}
  10170. * src/DownloadCommand.cc
  10171. * src/main.cc
  10172. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10173. a2netcompat.h:
  10174. * src/NameResolver.cc
  10175. Fixed compilation error without openssl:
  10176. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10177. Added default block to suppress compiler warnings:
  10178. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10179. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10180. MinGW build enhancements. The following files are added:
  10181. * src/gai_strerror.{c,h}
  10182. * src/gettimeofday.{c,h}
  10183. Changes to support the above new files:
  10184. * configure.ac
  10185. * src/Makefile.am
  10186. * src/a2netcompat.h
  10187. * src/TimeA2.cc
  10188. * src/DefaultPeerStorage.cc
  10189. * src/NameResolver.cc: removed mingw_strerror() function.
  10190. * src/SocketCore.cc: removed mingw_strerror() function.
  10191. Miscellaneous MinGW build fixes.
  10192. * src/a2io.h: Use _lseeki64() instead of lseek()
  10193. * src/common.h
  10194. * src/DefaultFileAllocator.cc
  10195. * src/GlowFileAllocator.cc
  10196. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10197. * src/NameResolver.cc
  10198. (callback): Changed int32_t to int.
  10199. (resolve): Changed int32_t to int.
  10200. * src/Platform.cc
  10201. * src/Platform.h
  10202. * test/MultiDiskWriterTest.cc
  10203. * test/PeerMessageUtilTest.cc
  10204. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10205. Other enhancements and fixes.
  10206. * src/HttpRequestCommand.cc
  10207. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10208. * src/SocketCore.cc:
  10209. (error): New function to abstract errno/WSAGetLastError().
  10210. (errorMsg): New function to abstract errno/WSAGetLastError().
  10211. (initiateSecureConnection): Added more detailed error reporting.
  10212. * src/SocketCore.h: Added private variable blocking, to allow
  10213. proper handling of OpenSSL psuedo-errors.
  10214. * src/message.h
  10215. (EX_SSL_INIT_FAILURE)
  10216. (EX_SSL_IO_ERROR)
  10217. (EX_SSL_PROTOCOL_ERROR)
  10218. (EX_SSL_UNKNOWN_ERROR)
  10219. (EX_SSL_CONNECT_ERROR)
  10220. (EX_SOCKET_BLOCKING)
  10221. (EX_SOCKET_NONBLOCKING)
  10222. (EX_SOCKET_UNKNOWN_ERROR)
  10223. * src/Util.cc
  10224. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10225. reserved name.
  10226. (httpGMT): Fixed typo.
  10227. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10228. Merged Ross's win32 patch(manually)
  10229. In the course of merging, following files are added.
  10230. * src/strptime.{h,c}
  10231. * src/libgen.{h,c}
  10232. * src/inet_aton.{h,c}
  10233. * src/Platform.{h,cc}
  10234. * src/localtime_r.{h,c}
  10235. * src/getaddrinfo.{h,c}
  10236. I've gethered network related things, and put them to following file:
  10237. * src/a2netcompat.h
  10238. Also io related things are put to following file:
  10239. * src/a2io.h
  10240. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10241. * src/message.h
  10242. (MSG_ALLOCATION_COMPLETED)
  10243. (EX_TOO_LARGE_FILE)
  10244. (EX_SIZE_MISMATCH)
  10245. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10246. (EX_INVALID_CHUNK_CHECKSUM)
  10247. (EX_INVALID_RANGE_HEADER)
  10248. * src/FileAllocationCommand.cc
  10249. * src/HttpResponse.cc
  10250. * src/RequestGroup.cc
  10251. * src/MultiDiskAdaptor.cc
  10252. * src/OptionHandlerImpl.h
  10253. * src/HttpResponseCommand.cc
  10254. * src/FtpNegotiateCommand.cc
  10255. * src/IteratableChecksumValidator.cc
  10256. * src/SegmentMan.cc
  10257. * src/ChunkChecksumValidator.cc
  10258. Added Randomizer::getRandomNumber(long int)
  10259. * src/Randomizer.h (getRandomNumber)
  10260. * src/SimpleRandomizer.h (getRandomNumber)
  10261. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10262. * src/Util.cc (randomAlpha): Use this new function.
  10263. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10264. Converted int's to in32_t. long long int's are also converted to
  10265. int64_t
  10266. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. Fixed the bug that prevents cookies from being sent to the server
  10268. if the domain of cookie is FQDN and starts with ".".
  10269. * src/Cookie.cc (match)
  10270. To add the ability to change peer id.
  10271. * src/DefaultBtContext.h
  10272. (_peerIdPrefix): New variable
  10273. (setPeerIdPrefix): New function.
  10274. * src/torrentRequestInfo.cc
  10275. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10276. DefaultBtContext.
  10277. * src/main.cc (main): Added peer-id-prefix command-line option.
  10278. The usage message is not added yet.
  10279. * src/DefaultBtContext.cc
  10280. (generatePeerId): Use _peerIdPrefix.
  10281. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10282. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10283. Fixed the bug that prevents filename in content-disposition from
  10284. being retrieved when filename is not quoted.
  10285. * src/Util.cc (getContentDispositionFilename)
  10286. Fixed the bug that causes infinate loop and memory leak when file open
  10287. operation failed.
  10288. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10289. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. Fixed the bug that causes segfault when all URIs specified are
  10291. unsupported.
  10292. * src/RequestGroupMan.cc (getInitialCommands)
  10293. Check if RequestGroup::createNextCommand() returns empty list of
  10294. commands.
  10295. * src/RequestGroup.cc (createNextCommand)
  10296. Change log level from info to error so that users can notice that
  10297. an error occurred.
  10298. Fixed the bug that causes segfault when a zero-sized file is
  10299. downloaded.
  10300. * src/BitfieldMan.cc (isAllBitSet)
  10301. Return true if bitfieldLength is 0.
  10302. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10303. * src/main.cc
  10304. (showUsage): Added 3 usage examples for metalink download.
  10305. Replace MetalinkChunkChecksum with ChunkChecksum.
  10306. * src/MetalinkChunkChecksum.h: Removed.
  10307. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10308. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10309. * src/Xml2MetalinkProcessor.cc
  10310. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10311. * src/MetalinkRequestInfo.cc (execute)
  10312. * Release 0.11.1
  10313. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Reads URIs from stdin when "-i -" is specified.
  10315. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10316. * src/UriListParser.h, src/UriListParser.cc: New class.
  10317. * src/StreamUriListParser.h: New class.
  10318. * src/FileUriListParser.h: New class.
  10319. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10320. instead of UriFileListParser.
  10321. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10322. Made console readout more readable.
  10323. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10324. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10325. Fix the bug that causes -s option not to work.
  10326. * src/main.cc (main)
  10327. * src/a2algo.h: New file.
  10328. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10329. Create directory structure specified in metalink file.
  10330. * src/RequestGroup.h, src/RequestGroup.cc
  10331. (initAndOpenFile): Create a directory to store files if it does not
  10332. exist.
  10333. (getDir): New function.
  10334. Added ETA and download speed for an individual file to readout.
  10335. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10336. * src/RequestGroup.h
  10337. (calculateDownloadSpeed): New function.
  10338. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10339. Made -S option work with metalink file and provided selective download
  10340. to metalink.
  10341. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10342. (filename): Removed.
  10343. (file): New variable.
  10344. (size): Removed.
  10345. (operator=): Updated.
  10346. (getPath): New function.
  10347. (getLength): New function.
  10348. (toFileEntry): New function.
  10349. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10350. (execute): Use toStream.
  10351. (showFileEntry): Removed.
  10352. * src/MetalinkRequestInfo.h
  10353. (targetFiles): New variable.
  10354. (setTargetFiles): New variable.
  10355. * src/MetalinkRequestInfo.cc
  10356. (execute): Added the ability to print file information included in
  10357. a metalink file.
  10358. Added selective download mode to metalink.
  10359. * src/main.cc
  10360. (showUsage): Updated to denote that -S and --select-file options are
  10361. applicable to metalink.
  10362. * src/FileEntry.h
  10363. (operator=): New function.
  10364. (getBasename): New function.
  10365. (getDirname): New function.
  10366. * src/Util.h, src/Util.cc
  10367. (toStream): New function.
  10368. * src/Xml2MetalinkProcessor.cc: Updated.
  10369. Made aria2 work with metalink with directory structure.
  10370. * src/File.h, src/File.cc
  10371. (getBasename): New function.
  10372. (getDirname): New function.
  10373. * src/RequestGroup.h, src/RequestGroup.cc
  10374. (_topDir): New variable.
  10375. (setTopDir): New function.
  10376. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10377. Rewrote HTTP header parsing with stringstream.
  10378. * src/HttpConnection.h, src/HttpConnection.cc
  10379. (HttpRequestEntry): New class.
  10380. (headerBuf): Removed.
  10381. (headerBufLength): Removed.
  10382. (outstandingHttpRequests): Now its element type is
  10383. HttpRequestEntryHandle.
  10384. (findEndOfHeader): Removed.
  10385. (receiveResponse): Rewritten.
  10386. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10387. Updated doc for -j option to notice that it should be used with -i
  10388. option.
  10389. * src/main.cc (showUsage)
  10390. Removed unused classes.
  10391. * src/RequestInfo.h
  10392. (FileInfo): Removed.
  10393. (checksum): Removed.
  10394. (fileInfo): Removed.
  10395. (setChecksum): Removed.
  10396. (getChecksum): Removed.
  10397. (getFileInfo): Removed.
  10398. Use ISO units.
  10399. * src/ConsoleDownloadEngine.cc
  10400. * src/TorrentConsoleDownloadEngine.cc
  10401. * src/Util.cc (abbrevSize)
  10402. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10403. Added the default listening ports to the help message.
  10404. * src/main.cc (showUsage)
  10405. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10406. Reduce the number of calls to gettimeofday to lower CPU load.
  10407. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10408. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10409. * src/Peer.h (calculateUploadSpeed): New function.
  10410. (calculateDownloadSpeed): New function.
  10411. * src/DefaultPeerStorage.cc
  10412. (CalculateStat): Added _now variable.
  10413. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10414. and Peer::calculateUploadSpeed(const struct timeval&)
  10415. Drop connection if no request or piece message is exchanged in
  10416. a certain interval.
  10417. * src/DefaultBtInteractive.h
  10418. (btRuntime): New variable.
  10419. (inactiveCheckPoint): New variable.
  10420. (checkActiveInteraction): New function.
  10421. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10422. request or piece message is received.
  10423. (checkActiveInteraction): New function.
  10424. (doInteractionProcessing): Call checkActiveInteraction.
  10425. Fixed the bug that causes remote Metalink and Torrent files are not
  10426. processed.
  10427. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10428. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10429. Changed format of log file.
  10430. * src/SimpleLogger.cc
  10431. * Release 0.11.0
  10432. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10433. * src/AbstractCommand.cc
  10434. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10435. MSG_MAX_TRY from error to info.
  10436. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10437. * src/message.h
  10438. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10439. (MSG_DOWNLOAD_ABORTED): Added %s.
  10440. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10441. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10442. * src/PeerAbstractCommand.cc
  10443. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10444. * src/Request.h
  10445. (cookieBox): Made ShardHandle.
  10446. * src/RequestGroup.h, src/RequestGroup.cc
  10447. (createNextCommandWithAdj): New function.
  10448. * src/FileAllocationCommand.cc
  10449. (executeInternal): Use createNextCommandWithAdj().
  10450. * src/CheckIntegrityCommand.cc
  10451. (executeInternal): Use createNextCommandWithAdj().
  10452. Added --load-cookies command-option.
  10453. * src/OptionHandlerFactory.cc
  10454. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10455. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10456. Now aria2 can handle cookie's expiration date.
  10457. * src/Cookie.h (expires): Changed its type to time_t.
  10458. * src/main.cc: Added --load-cookies command-line option.
  10459. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10460. * src/Util.h, src/Util.cc (httpGMT): New function.
  10461. * src/Request.cc (Request): Initialize cookieBox using
  10462. CookieBoxFactory.
  10463. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10464. * src/CookieParser.h, src/CookieParser.cc: New class.
  10465. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10466. * src/HttpResponseCommand.cc
  10467. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10468. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10469. download.
  10470. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10471. Added -j command-line option.
  10472. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10473. * src/main.cc
  10474. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10475. Rewritten using stringstream.
  10476. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10477. Rewritten using stringstream.
  10478. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10479. Make download size shown in MB, KB.
  10480. * src/ConsoleDownloadEngine.h (sendStatistics)
  10481. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10482. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10483. Accept incoming connections if download rate is low.
  10484. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10485. (_lowestSpeedLimit): New variable.
  10486. (setLowestSpeedLimit): New function.
  10487. (execute): Accept incoming connections if download rate is low.
  10488. MAX_PEERS is ignored in this case.
  10489. Disable PREF_OUT in multiple concurrent download:
  10490. * src/RequestGroup.h, src/RequestGroup.cc
  10491. (setUserDefinedFilename): New function.
  10492. * src/DownloadEngineFactory.cc
  10493. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10494. concurrent download.
  10495. * src/DefaultSegmentManFactory.cc
  10496. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10497. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10498. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10499. Added its overloaded method.
  10500. * src/RequestGroup.h
  10501. (_numConcurrentCommand): New variable.
  10502. (setNumConcurrentCommand): New function.
  10503. * src/RequestGroup.cc
  10504. Abort download if same file is being downloaded concurrently.
  10505. * src/RequestGroup.h, src/RequestGroupMan.cc
  10506. (isSameFileBeingDownloaded): New function.
  10507. * src/HttpResponseCommand.cc (executeInternal)
  10508. * src/FtpNegotiateCommand.cc (recvSize)
  10509. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10510. * main.cc: Added help message for -i option.
  10511. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10512. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10513. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10514. * src/MetalinkEntry.h
  10515. (checksum): Changed to ChecksumHandle
  10516. * src/MetalinkRequestInfo.cc
  10517. (checksum): Changed to ChecksumHandle
  10518. * src/File.cc
  10519. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10520. * src/common.h
  10521. (DIR_OPEN_MODE): New definition
  10522. * src/RequestGroup.cc
  10523. (prepareForNextAction): Added an argument.
  10524. * src/message.h
  10525. (MSG_GOOD_CHECKSUM): New definition
  10526. (MSG_BAD_CHECKSUM): New definition
  10527. * src/HttpResponseCommand.cc
  10528. (handleDefaultEncoding): Continue download sequence in new
  10529. non-segmented download.
  10530. * src/FileAllocationEntry.h
  10531. (_nextDownloadCommand): New variable.
  10532. * src/DownloadCommand.cc
  10533. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10534. available.
  10535. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10536. * src/IteratableChecksumValidator.h,
  10537. src/IteratableChecksumValidator.cc: New class.
  10538. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10539. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10540. Change file mode to 666:
  10541. * src/common.h (OPEN_MODE): New definition.
  10542. * src/File.cc
  10543. * src/Util.cc
  10544. * src/Directry.cc
  10545. * src/AbstractDiskWriter.cc
  10546. Change the level of log message "download aborted" to debug:
  10547. * src/PeerAbstractCommand.cc (execute)
  10548. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10549. * src/TrackerWatcherCommand.cc
  10550. (createCommand): Sleep some seconds after request failed.
  10551. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10552. then abort tracker request.
  10553. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. * Added the simultaneous download feature.
  10555. * src/main.cc: Print "Exception caught: " when exception is caught.
  10556. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10557. * src/ActivePeerConnectionCommand.cc
  10558. * src/PeerInteractionCommand.cc
  10559. * src/BtRuntime.h
  10560. (cuidCounter): Removed.
  10561. (getNewCuid): Removed.
  10562. * src/DownloadEngineFactory.cc
  10563. * src/PeerListenCommand.cc
  10564. * src/TrackerUpdateCommand.cc
  10565. * src/PeerInitiateConnectionCommand.cc
  10566. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10567. * src/PeerAbstractCommand.cc
  10568. (onAbort): Call PeerStorage::returnPeer()
  10569. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10570. (incomingPeers): New variable.
  10571. (addIncomingPeer): New function.
  10572. (returnPeer): New function.
  10573. (onErasingPeer): New function.
  10574. (addPeer): push_back -> push_front
  10575. (getActivePeers): Rewritten.
  10576. (calculateStat): Rewritten.
  10577. * src/PeerStorage.h
  10578. (TransferStat::copy): New function.
  10579. (TransferStat::TransferStat): New function.
  10580. (TransferStat::operator=): New function.
  10581. (addIncomingPeer): New function.
  10582. (returnPeer): New function.
  10583. * src/PeerListenCommand.cc
  10584. (execute): Use PeerStorage::addIncomingPeer() instead of
  10585. Peer::addPeer().
  10586. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10587. Connect to a peer actively when download speed is lower than specified
  10588. speed in torrent download:
  10589. * src/ActivePeerConnectionCommand.h: New class.
  10590. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10592. * src/main.cc: Fixed the bug that prevents download if .netrc
  10593. doesn't exist.
  10594. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. To cache resolved hostname:
  10596. * src/AbstractCommand.h, src/AbstractCommand.cc
  10597. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10598. Added dns cache.
  10599. * src/FtpInitiateConnectionCommand.cc
  10600. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10601. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10602. NameResolver working without ares.
  10603. * src/TorrentRequestInfo.cc
  10604. (execute): Don't cache dns in torrent download.
  10605. * src/HttpInitiateConnectionCommand.cc
  10606. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10607. * src/DNSCache.h: New class.
  10608. * src/UrlRequestInfo.cc
  10609. (execute): Use dns cache.
  10610. In http request, suppress port number in http request header if port
  10611. is 80 or 443:
  10612. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10613. request header if port is 80 or 443.
  10614. (createProxyRequest): Allways send port number.
  10615. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10616. To add the command-line option which disables netrc support:
  10617. * src/OptionHandlerFactory.cc
  10618. (createOptionHandlers): Added PREF_NO_NETRC.
  10619. * src/main.cc: Added -n option.
  10620. * src/prefs.h (PREF_NO_NETRC): New definition.
  10621. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10622. V_TRUE.
  10623. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10624. is V_FALSE. This may get configurable in the future release.
  10625. To clear peer's error status by time basis:
  10626. * src/PeerAbstractCommand.cc
  10627. (onAbort): Call Peer::startBadCondition().
  10628. * src/Peer.h, src/Peer.cc
  10629. (error): Removed.
  10630. (_badConditionStartTime): New variable.
  10631. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10632. (startBadCondition): New function.
  10633. (isGood): New function.
  10634. * src/DefaultPeerStorage.cc
  10635. (addPeer): Use Peer::isGood().
  10636. (FindFinePeer): Use Peer::isGood().
  10637. Always include port number in http request header:
  10638. * src/HttpRequest.cc (getHostText): Always include port number in
  10639. http request header.
  10640. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10641. To the ability to read options from a config file:
  10642. * src/main.cc: Command-line parameter validation is delegated to
  10643. OptionHandler class.
  10644. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10645. * src/Option.h, src/Option.cc (clear): New function.
  10646. * src/OptionParser.h, src/OptionParser.cc: New class.
  10647. * src/OptionHandler.h: New class.
  10648. * src/NameMatchOptionHandler.h: New class.
  10649. * src/OptionHandlerImpl.h: New classes.
  10650. * src/prefs.h: '_' -> '-'
  10651. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10652. (FTP_PASV): New definition.
  10653. * src/Util.h, src/Util.cc (getRealSize): New function.
  10654. To disable netrc support if .netrc file does not have correct
  10655. permissions:
  10656. * src/File.h, src/File.cc (mode): New function.
  10657. To prevent confidential information to be logged:
  10658. * src/HttpConnection.h, src/HttpConnection.cc
  10659. (eraseConfidentialInfo): New function.
  10660. (sendRequest): Call eraseConfidentialInfo().
  10661. (sendProxyRequest): Call eraseConfidentialInfo().
  10662. * src/main.cc: Validate permissions of .netrc file.
  10663. To add --user-agent command-line option:
  10664. * src/main.cc: Added new command line option: --user-agent
  10665. * src/prefs.h (PREF_USER_AGENT): New definition.
  10666. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10667. parameter to HttpRequest object.
  10668. * src/AbstractProxyRequestCommand.cc
  10669. (executeInternal): Set user-agent option parameter to HttpRequest
  10670. object.
  10671. Marged the patches from Dan Fandrich.
  10672. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10673. Use filename and size from Metalink file instead of sending HEAD
  10674. request:
  10675. * src/UrlRequestInfo.h
  10676. (_filename): New variable.
  10677. (_totalLength): New variable.
  10678. (setTotalLength): New variable.
  10679. (setFilename): New variable.
  10680. * src/MetalinkRequestInfo.cc
  10681. (execute): Set filename and size to UrlRequestInfo
  10682. * src/UrlRequestInfo.cc
  10683. (execute): Use filename and size from Metalink instead of seding
  10684. HEAD request to servers.
  10685. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10686. To add the ability to resume downloading a partially downloaded file
  10687. which is downloaded from the beginning:
  10688. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10689. takes this role.
  10690. * src/main.cc: Added -c option.
  10691. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10692. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10693. * src/prefs.h (PREF_CONTINUE): New definition.
  10694. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10695. * src/DefaultDiskWriter.cc
  10696. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10697. * src/AbstractDiskWriter.h
  10698. (glowFileAllocator): New variable.
  10699. * src/AbstractDiskWriter.cc
  10700. (openExistingFile): Now preallocate file space from the end of the
  10701. existing file if totalLength argument is specified and grater than 0.
  10702. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10703. to download exists in local, continue the download of the file.
  10704. --allow-overwrite=true is assumed in this context.
  10705. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10706. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10707. Throw exception if --check-integrity=true is specified but chunk
  10708. checksums are not provided:
  10709. * src/UrlRequestInfo.cc
  10710. Do not print URLs to stdout:
  10711. * src/UrlRequestInfo.cc
  10712. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10713. * src/Request.h: Use AuthResolver to get authentication information.
  10714. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10715. set to RequestFactory object.
  10716. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10717. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10718. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10719. create Request object.
  10720. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10721. To integrate Netrc into exsiting classes:
  10722. * src/Request.h
  10723. (_userDefinedAuthConfig): New variable.
  10724. (findNetrcAuthenticator): New function.
  10725. (segment): Removed.
  10726. (setUserDefinedAuthConfig): New function.
  10727. (resolveHttpAuthConfigItem): New function.
  10728. (resolveFtpAuthConfigItem): New function.
  10729. (resolveHttpProxyAuthConfigItem): New function.
  10730. * src/HttpRequest.h
  10731. (authConfig): Removed.
  10732. (proxyAuthConfig): Removed.
  10733. (setAuthConfig): Removed.
  10734. (setProxyAuthConfig): Removed.
  10735. * src/UrlRequest.h
  10736. (getHeadResult): Added a parameter: authConfigHandle
  10737. * src/common.h
  10738. (SingletonHolder.h): New include.
  10739. * src/main.cc
  10740. (Netrc.h): New include.
  10741. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10742. Added initial value of PREF_NETRC_PATH.
  10743. Added the initialization of netrc.
  10744. * src/AuthConfig.h: New class.
  10745. * src/prefs.h
  10746. (PREF_NETRC_PATH): New definition.
  10747. * src/HttpAuthConfig.h: Removed.
  10748. * src/Netrc.cc
  10749. (getRequiredNextToken): New function.
  10750. (skipMacdef): New function.
  10751. (parse): Rewritten.
  10752. * src/Netrc.h
  10753. (getRequiredNextToken): New function.
  10754. (skipMacdef): New function.
  10755. * src/Util.h, src/Util.cc
  10756. (getHomeDir): New function.
  10757. * src/TrackerWatcherComand.cc
  10758. (createRequestCommand): Use AuthConfig.
  10759. * src/FtpConnection.cc
  10760. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10761. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10762. * src/Request.cc
  10763. (findNetrcAuthenticator): New function.
  10764. (resolveHttpAuthConfigItem): New function.
  10765. (resolveFtpAuthConfigItem): New function.
  10766. (resolveHttpProxyAuthConfigItem): New function.
  10767. * src/UrlRequestInfo.cc: Use AuthConfig.
  10768. * src/HttpRequest.cc
  10769. (createRequest): Use authConfig.
  10770. (getProxyAuthString): Use authConfig.
  10771. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10772. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10773. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10774. To reduce overhead to find commands whose socket is either
  10775. readable or writable in the download engine loop:
  10776. * src/Command.h, src/Command.cc
  10777. (STATUS): New enum.
  10778. (status): New variable.
  10779. (statusMatch): New function.
  10780. (setStatusActive): New function.
  10781. (setStatusInactive): New function.
  10782. * src/DownloadEngine.h, src/DownloadEngine.cc
  10783. (executeCommand): New function.
  10784. (run): Simplified.
  10785. (waitData): Call Command::setStatusActive() when command's socket is
  10786. readable or writable.
  10787. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10788. To handle Segment as SegmentHandle:
  10789. * src/AbstractCommand.cc (execute): Rewritten.
  10790. * src/SegmentMan.h: Segment -> SegmentHandle
  10791. Introducded HttpResponse class, HttpRequest class to improve code
  10792. extensiveness and make it clear:
  10793. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10794. HttpResponse class.
  10795. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10796. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10797. * src/HttpConnection.cc: Contruction of http request were moved to
  10798. HttpRequest class.
  10799. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10800. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10801. * src/HttpAuthConfig.h: New class.
  10802. * src/Range.h: New class.
  10803. To make FtpTunnel{Request, Response}Command and
  10804. HttpProxy{Request, Response}Command derived from
  10805. AbstractProxy{Request, Response}Command:
  10806. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10807. Derived from AbstractProxyRequestCommand class.
  10808. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10809. Derived from AbstractProxyResponseCommand class.
  10810. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10811. Derived from AbstractProxyRequestCommand class.
  10812. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10813. Derived from AbstractProxyResponseCommand class.
  10814. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10815. : New class.
  10816. * src/AbstractProxyResponseCommand.h,
  10817. src/AbstractProxyResponseCommand.cc: New class.
  10818. To add netrc support:
  10819. * src/Netrc.h, src/Netrc.cc: New class.
  10820. * src/Util.h, src/Util.cc (split): New function.
  10821. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10822. "Content-Range" header instead of "Range" header.
  10823. * src/HttpHeader.h
  10824. (getStatus): Removed.
  10825. (setStatus): Removed.
  10826. * src/Segment.h
  10827. (getPositionToWrite): New function.
  10828. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10829. * src/HttpHeader.h
  10830. (Range.h): New include.
  10831. (status): New variable.
  10832. (HttpHeader): Initialized status with 0.
  10833. (getStatus): New function.
  10834. (setStatus): New function.
  10835. (getRange): New function.
  10836. (HttpHeaderHandle): New function.
  10837. * src/HttpHeader.cc
  10838. (getRange): New function.
  10839. * src/Request.h
  10840. (RequestWeakHandle): New definition.
  10841. * src/HttpConnection.h
  10842. (HttpConnectionHandle): New type definition.
  10843. * src/HttpConnection.cc
  10844. (receiveResponse): Set HTTP status to headers.
  10845. * src/main.cc
  10846. (showUsage): Fixed typo.
  10847. * src/Segment.h
  10848. (SegmentHandle): New type definition.
  10849. * src/BitfieldMan.h
  10850. (getMissingUnusedLength): New function.
  10851. * src/BitfieldMan.cc
  10852. (getMissingUnusedLength): New function.
  10853. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10854. To fix static initialization order problem:
  10855. * src/BitfieldManFactory.h
  10856. (defaultRandomizer): Removed.
  10857. (factory): New variable.
  10858. (getNewFactory): Removed.
  10859. (getFactoryInstance): New function.
  10860. (setDefaultRandomizer): Rewritten.
  10861. (getDefaultRandomizer): Rewritten.
  10862. * src/BitfieldManFactory.cc
  10863. (defaultRandomizer): Removed.
  10864. (factory): Initialized to 0.
  10865. (BitfieldManFactory): Initialized randomizer to 0.
  10866. * src/DefaultPieceStorage.cc
  10867. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10868. * src/Peer.cc
  10869. (Peer): getNewFactory() -> getFactoryInstance()
  10870. * src/SegmentMan.cc
  10871. (initBitfield): getNewFactory() -> getFactoryInstance()
  10872. * src/Piece.cc
  10873. (Piece): getNewFactory() -> getFactoryInstance()
  10874. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10875. To fix the bug that causes crash on Max OS X:
  10876. * src/SimpleRandomizer.h
  10877. (getInstance): Create new instance if the static variable is null.
  10878. * src/SimpleRandomizer.cc
  10879. (randomizer): Initialized to 0.
  10880. * src/BitfieldManFactory.h
  10881. (getNewFactory): Removed the call to setRandomizer().
  10882. To fix the miscalculation of the range of checksum:
  10883. * src/BitfieldMan.h
  10884. (isBitSetOffsetRange): New function.
  10885. * src/BitfieldMan.cc
  10886. (isBitSetOffsetRange): New function.
  10887. * src/SegmentMan.cc
  10888. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10889. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10890. * Release 0.10.1
  10891. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10892. To lower CPU usage in BitTorrent download when --max-upload-limit
  10893. command-line option specified:
  10894. * src/DefaultBtMessageDispatcher.cc
  10895. (sendMessages): Calculate uploading speed only when current message
  10896. is uploading data and is not sent yet.
  10897. * src/DefaultPeerStorage.h
  10898. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10899. * src/HttpResponseCommand.cc
  10900. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10901. This fixes compile error in Soralis 10.
  10902. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10903. To fix segfault in Metalink download:
  10904. * src/UrlRequestInfo.h
  10905. (filename): Removed.
  10906. (totalLength): Removed.
  10907. (setTotalLength): Removed.
  10908. (setFilename): Removed.
  10909. * src/MetalinkRequestInfo.cc
  10910. (execute): Do not set filename and totalLength to reqInfo.
  10911. Set chunk checksum to reqInfo if it is not null.
  10912. * src/HttpResponseCommand.cc
  10913. (executeInternal): Fixed filename in log.
  10914. (handleDefaultEncoding): Removed the call to initBitfield() and
  10915. markAllPiecesDone().
  10916. (handleOtherEncoding): Added HEAD method handling.
  10917. * src/FtpNegotiateCommand.cc
  10918. (executeInternal): Added SEQ_HEAD_OK handling.
  10919. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10920. return false.
  10921. * src/FtpNegotiateCommand.h
  10922. (SEQ_HEAD_OK): New definition.
  10923. * src/SegmentMan.cc
  10924. (initBitfield): Delete bitfield.
  10925. (isChunkChecksumValidationReady): Fixed the condition.
  10926. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10927. works fine.
  10928. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10929. * src/Xml2MetalinkProcessor.h
  10930. (xpathExists): New function.
  10931. * src/Xml2MetalinkProcessor.cc
  10932. (xpathExists): New function.
  10933. Not to send HEAD request if filename and size are available in Metalink
  10934. file:
  10935. * src/UrlRequestInfo.h
  10936. (filename): New variable.
  10937. (totalLength): New variable.
  10938. (setTotalLength): New function.
  10939. (setFilename): New function.
  10940. * src/MetalinkRequestInfo.cc
  10941. (execute): Set filename and size to UrlRequestInfo.
  10942. * src/MetalinkEntry.cc
  10943. (MetalinkEntry): Initialize size with 0.
  10944. * src/UrlRequestInfo.cc
  10945. (execute): Set filename and size to SegmentMan.
  10946. Not to download rest of the files after selected files are downloaded
  10947. in BitTorrent:
  10948. * src/PieceStorage.h
  10949. (allDownloadFinished): New function.
  10950. * src/DefaultBtAnnounce.cc
  10951. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10952. downloadFinished.
  10953. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10954. * src/DefaultPieceStorage.cc
  10955. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10956. Commented out the call to finishSelectiveDownloadingMode().
  10957. (downloadFinished): Call isFilteredAllBitSet() instead of
  10958. isAllBitSet().
  10959. (allDownloadFinished): New function.
  10960. * src/DefaultBtInteractive.cc
  10961. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10962. downloadFinished().
  10963. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10964. * src/TorrentDownloadEngine.cc
  10965. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10966. * src/BitfieldMan.h
  10967. (isFilteredAllBitSet): New function.
  10968. * src/ShareRatioSeedCriteria.h
  10969. (PieceStorage.h): New include.
  10970. (pieceStorage): New variable.
  10971. (evaluate):
  10972. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10973. * src/BitfieldMan.cc
  10974. (isFilteredAllBitSet): New function.
  10975. (isAllBitSet): Filter is not took into account.
  10976. Rename --force-truncate as --allow-overwrite:
  10977. * src/TorrentRequestInfo.cc
  10978. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10979. * src/main.cc
  10980. (showUsage): --force-truncate -> --allow-overwrite
  10981. * src/message.h
  10982. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10983. * src/prefs.h
  10984. (PREF_FORCE_TRUNCATE): Removed.
  10985. (PREF_ALLOW_OVERWRITE): New definition.
  10986. * src/SegmentMan.cc
  10987. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10988. * src/MetalinkRequestInfo.cc
  10989. (execute): Queueing message are now logged in info level.
  10990. * src/common.h
  10991. (LONG_LONG_MAX): Removed.
  10992. (LONG_LONG_MIN): Removed.
  10993. * src/HttpResponseCommand.cc
  10994. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10995. * src/FtpNegotiateCommand.cc
  10996. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10997. * src/main.cc
  10998. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10999. command-line option.
  11000. (main): Added --check-integriy and --realtime-chunk-checksum
  11001. command-line option.
  11002. --force-truncate -> --allow-overwrite
  11003. Set initial value of --check-integrity option to false.
  11004. Don't show usage when error occurs while persing command-line options.
  11005. Removed deprecated --upload-limit option.
  11006. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11007. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11008. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11009. * src/BtAllowedFastMessage.cc:
  11010. * src/BtBitfieldMessage.cc
  11011. * src/BtCancelMessage.cc
  11012. * src/BtChokeMessage.cc
  11013. * src/BtHaveAllMessage.cc
  11014. * src/BtHaveMessage.cc
  11015. * src/BtHaveNoneMessage.cc
  11016. * src/BtInterestedMessage.cc
  11017. * src/BtNotInterestedMessage.cc
  11018. * src/BtPieceMessage.cc
  11019. * src/BtPortMessage.cc
  11020. * src/BtRejectMessage.cc
  11021. * src/BtRequestMessage.cc
  11022. * src/BtSuggestPieceMessage.cc
  11023. * src/BtUnchokeMessage.cc
  11024. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11025. files are affected.
  11026. * src/ChunkChecksumValidator.cc
  11027. * src/SegmentMan.cc
  11028. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. To add chunk checksum validation:
  11030. * src/MetalinkEntry.h
  11031. (MetalinkChunkChecksum.h): New include.
  11032. (chunkChecksum): New variable.
  11033. * src/Request.h
  11034. (method): New variable.
  11035. (setMethod): New function.
  11036. (getMethod): New function.
  11037. (METHOD_GET): New static constant.
  11038. (METHOD_HEAD): New static constant.
  11039. * src/Xml2MetalinkProcessor.h
  11040. (getPieceHash): New function.
  11041. * src/PieceStorage.h
  11042. (markAllPiecesDone): New function.
  11043. (checkIntegrity): New function.
  11044. * src/FileAllocator.h
  11045. (NullFileAllocationMonitor.h): New include.
  11046. (FileAllocator): Initialize fileAllocationMonitor with new
  11047. NullFileAllocationMonitor().
  11048. * src/MultiDiskAdaptor.h
  11049. (messageDigest.h): Remove include.
  11050. (ctx): Removed.
  11051. (hashUpdate): Added ctx.
  11052. (MultiDiskAdaptor): Removed ctx.
  11053. (sha1Sum): Renamed as messageDigest.
  11054. (messageDigest): New function.
  11055. * src/UrlRequestInfo.h
  11056. (HeadResult): New class.
  11057. (digestAlgo): New variable.
  11058. (chunkChecksumLength): New variable.
  11059. (chunkChecksums): New variable.
  11060. (getHeadResult): New function.
  11061. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11062. (setDigestAlgo): New function.
  11063. (setChunkChecksumLength): New function.
  11064. (setChunkChecksums): New function.
  11065. * src/DefaultPieceStorage.cc
  11066. (DiskAdaptorWriter.h): New include.
  11067. (ChunkChecksumValidator.h): New include.
  11068. (markAllPiecesDone): New function.
  11069. (checkIntegrity): New function.
  11070. * src/DefaultBtContext.h
  11071. (getPieceHashes): New function.
  11072. * src/TorrentRequestInfo.cc
  11073. (execute): Try to validate chunk checksum if file already exists and
  11074. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11075. * src/messageDigest.h
  11076. (~MessageDigestContext): Added digestFree().
  11077. * src/MetalinkRequestInfo.cc
  11078. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11079. * src/DiskAdaptor.h
  11080. (messageDigest.h): New include.
  11081. (sha1Sum): Renamed as messageDigest.
  11082. (messageDigest): New function.
  11083. * src/DownloadCommand.h
  11084. (PeerStat.h): New include.
  11085. (maxDownloadSpeedLimit): New variable.
  11086. (startupIdleTime): New variable.
  11087. (lowestDownloadSpeedLimit): New variable.
  11088. (peerStat): New variable.
  11089. (setMaxDownloadSpeedLimit): New function.
  11090. (setStartupIdleTime): New function.
  11091. (setLowestDownloadSPeedLimit): New function.
  11092. * src/BtContext.h
  11093. (getPieceHashes): New function.
  11094. * src/main.cc
  11095. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11096. option to true for testing purpose.
  11097. * src/BtPieceMessage.cc
  11098. (checkPieceHash): Use messageDigest
  11099. * src/DownloadEngine.cc
  11100. (SetDescriptor): Removed.
  11101. (AccumulateActiveCommand): Removed.
  11102. (waitData): Rewritten.
  11103. (updateFdSet): Rewritten.
  11104. * src/MultiDiskAdaptor.cc
  11105. (hashUpdate): Added ctx.
  11106. (sha1Sum): Renamed as messageDigest.
  11107. (messageDigest): New function.
  11108. * src/BitfieldMan.h
  11109. (isBitRangeSet): New function.
  11110. (unsetBitRange): New function.
  11111. * src/ByteArrayDiskWriter.h
  11112. (sha1Sum): Renamed as messageDigest.
  11113. (messageDigest): New function.
  11114. * src/ConsoleDownloadEngine.cc
  11115. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11116. * src/DiskWriter.h
  11117. (messageDigest.h): New include.
  11118. (sha1Sum): Renamed as messageDigest.
  11119. (messageDigest): New function.
  11120. * src/ChunkChecksumValidator.h: New class.
  11121. * src/DiskAdaptorWriter.h: New class.
  11122. * src/prefs.h
  11123. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11124. (PREF_CHECK_INTEGRITY): New definition.
  11125. * src/HttpResponseCommand.cc
  11126. (handleDefaultEncoding): Added method "HEAD" handling.
  11127. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11128. (handleOtherEncoding):
  11129. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11130. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11131. startupIdleTime, lowestDownloadSpeedLimit to command.
  11132. * src/SegmentMan.h
  11133. (getSegmentEntryByIndex): New function.
  11134. (getSegmentEntryByCuid): New function.
  11135. (getSegmentEntryIteratorByCuid): New function.
  11136. (diskWriter): DiskWriter -> DiskWriterHandle
  11137. (pieceHashes): New variable.
  11138. (chunkHashLength): New variable.
  11139. (digestAlgo): New variable.
  11140. (FindPeerStat): Removed.
  11141. (getPeerStat): Rewritten.
  11142. (markAllPiecesDone): New function.
  11143. (checkIntegrity): New function.
  11144. (tryChunkChecksumValidation): New function.
  11145. (isChunkChecksumValidationReady): New function.
  11146. * src/BitfieldMan.cc
  11147. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11148. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11149. blocks to 0.
  11150. (isBitRangeSet): New function.
  11151. (unsetBitRange): New function.
  11152. * src/FtpNegotiateCommand.cc
  11153. (executeInternal): Set maxDownloadSpeedLimit,
  11154. startupIdleTime, lowestDownloadSpeedLimit to command.
  11155. (recvSize): Added method "HEAD" handling.
  11156. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11157. * src/AbstractSingleDiskAdaptor.cc
  11158. (sha1Sum): Renamed as messageDigest.
  11159. (messageDigest): New function.
  11160. * src/AbstractSingleDiskAdaptor.h
  11161. (sha1Sum): Renamed as messageDigest.
  11162. (messageDigest): New function.
  11163. * src/Util.h
  11164. (indexRange): New function.
  11165. * src/MetalinkEntry.cc
  11166. (MetalinkEntry): Initialized chunkChecksum to 0.
  11167. * src/ShaVisitor.cc
  11168. (~ShaVisitor): Removed the call to ctx.digestFree().
  11169. * src/SegmentMan.cc
  11170. (ChunkChecksumValidator.h): New include.
  11171. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11172. to DIGEST_ALGO_SHA1.
  11173. (~SegmentMan): Removed diskWriter.
  11174. (FindSegmentEntryByIndex): Removed.
  11175. (FindSegmentEntryByCuid): Removed.
  11176. (checkoutSegment): Rewritten.
  11177. (findSlowerSegmentEntry): Rewritten.
  11178. (getSegment): Rewritten.
  11179. (updateSegment): Rewritten.
  11180. (completeSegment): Rewritten.
  11181. (markAllPiecesDone): New function.
  11182. (checkIntegrity): New function.
  11183. (isChunkChecksumValidationReady): New function.
  11184. (tryChunkChecksumValidation): New function.
  11185. * src/Xml2MetalinkProcessor.cc
  11186. (getEntry): Get size and set it to entry.
  11187. Get chunk checksum and set it to entry.
  11188. (getPieceHash): New function.
  11189. * src/Util.cc
  11190. (sha1Sum): Removed ctx.digestFree()
  11191. (fileChecksum): Removed ctx.digestFree()
  11192. (indexRange): New function.
  11193. * src/Request.cc
  11194. (METHOD_GET): New variable.
  11195. (METHOD_HEAD): New variable.
  11196. (Request): Added method.
  11197. * src/UrlRequestInfo.cc
  11198. (FatalException.h): New include.
  11199. (message.h): New include.
  11200. (operator<<): Added operator<< for class HeadResult.
  11201. (getHeadResult): New function.
  11202. (execute): Get filename and size in separate download engine.
  11203. * src/ChunkChecksumValidator.cc: New class.
  11204. * src/DownloadCommand.cc:
  11205. (DownloadCommand): Added peerStat.
  11206. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11207. the value from Option.
  11208. The buffer size is now 16KB.
  11209. Use peerStat member instead of getting it from SegmentMan.
  11210. Use startupIdleTime member instead of gettingit from Option.
  11211. Added chunk checksum validation.
  11212. * src/AbstractDiskWriter.cc
  11213. (AbstractDiskWriter): Removed ctx.
  11214. (~AbstractDiskWriter): Removed ctx.digestFree()
  11215. (writeDataInternal): Returns the return value of write.
  11216. (readDataInternal): Returns the return value of read.
  11217. (sha1Sum): Renamed as messageDigest
  11218. (messageDigest): New function.
  11219. * src/AbstractDiwkWriter.h
  11220. (messageDigest.h): Removed include.
  11221. (ctx): Removed.
  11222. (sha1Sum): Renamed as messageDigest
  11223. (messageDigest): New function.
  11224. * src/DefaultPieceStorage.h
  11225. (markAllPiecesDone): New function.
  11226. (checkIntegrity): New function.
  11227. * src/NullFileAllocationMonitor.h: New class.
  11228. * src/MetalinkChunkChecksum.h: New class.
  11229. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11230. To decrease CPU usage in bittorrent download, calculation results in
  11231. BitfieldMan were cached and realtime fetching PeerObject was removed
  11232. with WeakHandle introduced. Option values are set to the objects
  11233. by setter before download begins.
  11234. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11235. * src/DefaultBtRequestFactory.h
  11236. (dispatcher): BtMessageDispatcherHandle ->
  11237. BtMessageDispatcherWeakHandle.
  11238. (messageFactory): New variable.
  11239. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11240. BtMessageDispatcherWeakHandle.
  11241. (setBtMessageFactory): New function.
  11242. * src/DefaultBtMessageDispatcher.cc:
  11243. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11244. from Option.
  11245. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11246. feating the value from Option.
  11247. Use messageFactory member.
  11248. * src/PeerInteractionCommand.cc
  11249. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11250. Add reverse dependencies to factory object.
  11251. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11252. dispatcher.
  11253. Set messageFactory to receiver.
  11254. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11255. btInteractive.
  11256. Set receiver to peerObject.
  11257. Set maxDownloadSpeedLimit to this.
  11258. (executeInternal): Use maxDownloadSpeedLimit member.
  11259. * src/BtChokeMessage.cc
  11260. (doReceivedAction): Use dispatcher, requestFactory member.
  11261. (onSendComplete): Use dispatcher member.
  11262. * src/PeerInteractionCommand.h
  11263. (maxDownloadSpeedLimit): New variable.
  11264. * src/DefaultBtMessageReceiver.h
  11265. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11266. (dispatcher):
  11267. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11268. (messageFactory): New variable.
  11269. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11270. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11271. (setDispatcher):
  11272. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11273. (setBtMessageFactory): New function.
  11274. * src/DefaultBtInteractive.cc
  11275. (initiateHandshake): Use messageFactory member.
  11276. (addBitfieldMessageToQueue): Use messageFactory member.
  11277. (addAllowedFastMessageToQueue): Use messageFactory member.
  11278. (decideChoking): Use messageFactory member.
  11279. (checkHave): Use messageFactory member.
  11280. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11281. (receiveMessages): Use maxDownloadSpeedLimit member.
  11282. (decideInterest): Use messageFactory member.
  11283. * src/BtRequestMessage.cc
  11284. (doReceivedAction): Use messageFactory, dispatcher member.
  11285. (onQueued): Use dispatcher member.
  11286. * src/BtPieceMessage.cc
  11287. (doReceivedAction): Use dispatcher member.
  11288. (send): Use peerConnection member.
  11289. (onWrongPiece): Use requestFactory member.
  11290. (handleChokingEvent): Use messageFactory, dispatcher member.
  11291. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11292. * src/BtMessageDispatcher.h
  11293. (BtMessageDispatcherWeakHandle): New type definition.
  11294. * src/SimpleBtMessage.cc
  11295. (send): Use peerConnection member.
  11296. * src/BtRejectMessage.cc
  11297. (doReceivedAction): Use dispatcher member.
  11298. * src/DefaultBtMessageDispatcher.h
  11299. (Option.h): Removed include.
  11300. (messageFactory): New variable.
  11301. (option): Removed.
  11302. (maxUploadSpeedLimit): New variable.
  11303. (requestTimeout): New variable.
  11304. (DefaultBtMessageDispatcher): Removed option.
  11305. Added maxUploadSpeedLimit, requestTimeout.
  11306. (setOption): Removed.
  11307. (getOption): Removed.
  11308. (setMaxUploadSpeedLimit): New function.
  11309. (setRequestTimeout): New function.
  11310. (setBtMessageFactory): New function.
  11311. * src/DefaultBtInteractive.h
  11312. (btMessageReceiver):
  11313. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11314. (dispatcher):
  11315. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11316. (btRequestFactory):
  11317. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11318. (peerConnection):
  11319. PeerConnectionHandle -> PeerConnectionWeakHandle
  11320. (messageFactory): New variable.
  11321. (option): Removed.
  11322. (keepAliveInterval): New variable.
  11323. (maxDownloadSpeedLimit): New variable.
  11324. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11325. (setBtMessageReceiver):
  11326. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11327. (setDispatcher):
  11328. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11329. (setBtRequestFactory):
  11330. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11331. (setPeerConnection):
  11332. PeerConnectionHandle -> PeerConnectionWeakHandle
  11333. (setOption): Removed.
  11334. (setKeepAliveInterval): New function.
  11335. (setMaxDownloadSpeedLimit): New function.
  11336. (setBtMessageFactory): New function.
  11337. * src/BitfieldMan.h
  11338. (cachedNumMissingBlock): New variable.
  11339. (cachedNumFilteredBlock): New variable.
  11340. (cachedCompletedLength): New variable.
  11341. (cachedFilteredComletedLength): New variable.
  11342. (cachedFilteredTotalLength): New variable.
  11343. (countMissingBlockNow): New function.
  11344. (countFilteredBlockNow): New function.
  11345. (getFilteredTotalLengthNow): New function.
  11346. (getCompletedLengthNow): New function.
  11347. (getFilteredCompletedLengthNow): New function.
  11348. (updateCache): New function.
  11349. * src/AbstractBtMessage.h
  11350. (BtMessageDispatcher.h): New include.
  11351. (PeerConnection.h): New include.
  11352. (BtRequestFactory.h): New include
  11353. (BtMessageFactory.h): New include.
  11354. (dispatcher): New variable.
  11355. (messageFactory): New variable.
  11356. (peerConnection: New variable.
  11357. (setBtMessageDispatcher): New function.
  11358. (setPeerConnection): New function.
  11359. (setBtMessageFactory): New function.
  11360. (setBtRequestFactory): New function.
  11361. * src/DefaultBtMessageFactory.cc
  11362. (setCommonProperty): Set dispatcher, requestFactory, this,
  11363. peerConnection to msg.
  11364. * src/BtRegistry.h
  11365. (BT_MESSAGE_RECEIVER): New macro.
  11366. * src/PeerConnection.h
  11367. (PeerConnectionWeakHandle): New type definition.
  11368. * src/BtMessageFactory.h
  11369. (BtMessageFactoryWeakHandle): New type definition.
  11370. * src/BitfieldMan.cc
  11371. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11372. cachedCompletedLength, cachedFilteredComletedLength,
  11373. cachedFilteredTotalLength.
  11374. Call updateCache().
  11375. (countMissingBlock): Return cachedNumMissingBlock.
  11376. (countMissingBlockNow): New function.
  11377. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11378. (countFilteredBlockNow): New function.
  11379. (setBit): Call updateCache().
  11380. (unsetBit): Call updateCache().
  11381. (setBitfield): Call updateCache().
  11382. (clearAllBit): Call updateCache().
  11383. (setAllBit): Use setBitInternal instead of setBit.
  11384. Call updateCache().
  11385. (addFilter): Call updateCache().
  11386. (enableFilter): Call updateCache().
  11387. (disableFilter): Call updateCache().
  11388. (clearFilter): Call updateCache().
  11389. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11390. (getFilteredTotalLengthNow): New function.
  11391. (getCompletedLength): Return cachedCompletedLength.
  11392. (getCompletedLengthNow): New function.
  11393. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11394. (getFilteredCompletedLengthNow): New function.
  11395. (updateCache): New function.
  11396. * src/BtMessageReceiver.h
  11397. (BtMessageReceiverWeakHandle): New type definition.
  11398. * src/DefaultBtMessageReceiver.cc
  11399. (receiveHandshake): Use messageFactory member.
  11400. (sendHandshake): Use messageFactory member.
  11401. (receiveMessage): Use messageFactory member.
  11402. * src/DefaultBtMessageFactory.h
  11403. (dispatcher): New variable.
  11404. (requestFactory): New variable.
  11405. (peerConnection): New variablle.
  11406. (setBtMessageDispatcher): New function.
  11407. (setBtRequestFactory): New function.
  11408. (setPeerConnection): New function.
  11409. * src/SharedHandle.h
  11410. (RefCount): New class.
  11411. (WeakHandle): New class.
  11412. * src/PeerObject.h
  11413. (BtMessageReceiver.h): New include.
  11414. (PeerObject): Added btMessageReceiver.
  11415. (btMessageReceiver): New variable.
  11416. * src/Util.cc
  11417. (countBit): Simplified.
  11418. * src/BtCancelMessage.cc
  11419. (doReceivedAction): Use dispatcher member.
  11420. * src/BtRequestFactory.h
  11421. (BtRequestFactoryWeakHandle): New type definition.
  11422. * src/PeerStorage.h
  11423. (downloadSpeed): int -> uint32_t
  11424. (uploadSpeed): int -> uint32_t
  11425. (sessionDownloadLength): long long int -> uint64_t
  11426. (sessionUploadLength): long long int -> uint64_t
  11427. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11428. To add RecoverableException, FatalException:
  11429. * src/AbstractCommand.cc
  11430. (onAbort): Exception -> RecoverableException
  11431. * src/PeerAbstractCommand.h
  11432. (RecoverableException.h): New include.
  11433. (onAbort): Exception -> RecoverableException.
  11434. * src/PeerInteractionCommand.cc
  11435. (onAbort): Exception -> RecoverableException.
  11436. * src/PeerAbstractCommand.cc
  11437. (execute): Exception -> RecoverableException.
  11438. (onAbort): Exception -> RecoverableException.
  11439. * src/TorrentRequestInfo.cc
  11440. (execute): Exception -> RecoverableException.
  11441. * src/MetalinkRequestInfo.cc
  11442. (execute): Exception -> RecoverableException.
  11443. * src/MetaFileUtil.cc: RecoverableException.
  11444. * src/AbstractCommand.h
  11445. (onAbort): Exception -> RecoverableException.
  11446. * src/DlRetryEx.h: Exception -> RecoverableException.
  11447. * src/DlAbortEx.h: Exception -> RecoverableException.
  11448. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11449. * src/Util.cc: Exception -> RecoverableException.
  11450. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11451. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11452. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11453. To make ID static const int
  11454. * src/BtInterestedMessage.h
  11455. (ID_t): Removed.
  11456. (ID): New variable.
  11457. (getId): Made non-const.
  11458. * src/BtPieceMessage.h
  11459. (ID_t): Removed.
  11460. (ID): New variable.
  11461. (getId): Made non-const.
  11462. * src/BtChokeMessage.h
  11463. (ID_t): Removed.
  11464. (ID): New variable.
  11465. (getId): Made non-const.
  11466. * src/BtHaveAllMessage.h
  11467. (ID_t): Removed.
  11468. (ID): New variable.
  11469. (getId): Made non-const.
  11470. * src/BtKeepAliveMessage.h
  11471. (ID_t): Removed.
  11472. (ID): New variable.
  11473. (getId): Made non-const.
  11474. * src/BtHandshakeMessage.h
  11475. (ID): New variable.
  11476. (getId): Made non-const.
  11477. * src/BtSuggestPieceMessage.h
  11478. (ID_t): Removed.
  11479. (ID): New variable.
  11480. (getId): Made non-const.
  11481. * src/BtPortMessage.h
  11482. (ID_t): Removed.
  11483. (ID): New variable.
  11484. (getId): Made non-const.
  11485. * src/AbstractBtMessage.h
  11486. (id): Removed.
  11487. (AbstractBtMessage): Removed id.
  11488. (getId): Removed.
  11489. * src/BtHaveMessage.h
  11490. (ID_t): Removed.
  11491. (ID): New variable.
  11492. (getId): Made non-const.
  11493. * src/BtAllowedFastMessage.h
  11494. (ID_t): Removed.
  11495. (ID): New variable.
  11496. (getId): Made non-const.
  11497. * src/BtCancelMessage.h
  11498. (ID_t): Removed.
  11499. (ID): New variable.
  11500. (getId): Made non-const.
  11501. * src/BtNotInterestedMessage.h
  11502. (ID_t): Removed.
  11503. (ID): New variable.
  11504. (getId): Made non-const.
  11505. * src/BtChokeMessage.h
  11506. (ID_t): Removed.
  11507. (ID): New variable.
  11508. (getId): Made non-const.
  11509. * src/BtRejectMessage.h
  11510. (ID_t): Removed.
  11511. (ID): New variable.
  11512. (getId): Made non-const.
  11513. * src/BtBitfieldMessage.h
  11514. (ID_t): Removed.
  11515. (ID): New variable.
  11516. (getId): Made non-const.
  11517. * src/BtUnchokeMessage.h
  11518. (ID_t): Removed.
  11519. (ID): New variable.
  11520. (getId): Made non-const.
  11521. * src/BtRequestMessage.h
  11522. (ID_t): Removed.
  11523. (ID): New variable.
  11524. (getId): Made non-const.
  11525. * src/BtHaveMessage.h
  11526. (ID_t): Removed.
  11527. (ID): New variable.
  11528. (getId): Made non-const.
  11529. To add --force-truncate command-line option and a check whether
  11530. the file already exists:
  11531. * src/DirectDiskAdaptor.h
  11532. (getFilePath): Made virtual public.
  11533. * src/MultiDiskAdaptor.h
  11534. (File.h): New include.
  11535. (DiskWriterEntry::fileEntry): Made private.
  11536. (DiskWriterEntry::fileExists): New function.
  11537. (DiskWriterEntry::getFileEntry): New function.
  11538. (fileExists): New function.
  11539. (getFilePath): New function.
  11540. * src/TorrentRequestInfo.cc
  11541. (FatalException.h): New include.
  11542. (message.h): New include.
  11543. (RecoverableException.h): New include.
  11544. (execute): Added a check whether file is already exists or not.
  11545. * src/DiskAdaptor.h
  11546. (fileExists): New function.
  11547. (getFilePath): New function.
  11548. * src/main.cc
  11549. (showUsage): Added an explanation of --force-truncate command-line
  11550. option.
  11551. (main): Added --force-truncate command-line option.
  11552. * src/Exception.h
  11553. (setMsg): buf[256] -> buf[1024]
  11554. * src/CopyDiskWriter.h
  11555. (getFilePath): Made public virtual.
  11556. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11557. (fileExists): New function.
  11558. * src/DownloadEngineFactory.cc
  11559. (newTorrentConsoleEngine): Don't open file here.
  11560. * src/message.h
  11561. (EX_FILE_ALREADY_EXISTS): New definition.
  11562. * src/prefs.h
  11563. (PREF_FOECE_TRUNCATE): New definition.
  11564. * src/HttpResponseCommand.cc
  11565. (handleDefaultEncoding): Added a check whether the file already exists.
  11566. * src/SegmentMan.h
  11567. (fileExists): New function.
  11568. (shouldCancelDownloadForSafety): New function.
  11569. * src/FtpNegotiateCommand.cc
  11570. (recvSize): Added a check whether the file already exists.
  11571. * src/AbstractSingleDiskAdaptor.cc
  11572. (File.h): New include.
  11573. (fileExists): New function.
  11574. * src/AbstractSingleDiskAdaptor.h
  11575. (getFilePath): Removed.
  11576. (fileExists): New function.
  11577. * src/SegmentMan.cc
  11578. (fileExists): New function.
  11579. (shouldCancelDownloadForSafety): New function.
  11580. To fix regression bug in torrent downloading:
  11581. * src/DefaultBtRequestFactory.cc
  11582. (doChokedAction): New function.
  11583. * src/DefaultBtRequestFactory.h
  11584. (doChokedAction): New function.
  11585. * src/DefaultBtMessageDispatcher.cc
  11586. (doChokedAction): Do not delete request if its target is in allowed
  11587. fast set.
  11588. * src/DefaultBtInteractive.cc
  11589. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11590. (sendKeepAlive): Send keep alive message even if the outgoing message
  11591. queue is not empty.
  11592. (decideInterest): Simplified the code.
  11593. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11594. it is already called when BtChokeMessage is received from a peer.
  11595. * src/BtRequestFactory.h
  11596. (doChokedAction): New function.
  11597. To clean up code:
  11598. * src/PeerInteractionCommand.h
  11599. (executeInternal): Added virtual keyword explicitly.
  11600. (prepareForRetry): Added virtual keyword explicitly.
  11601. (prepareForNextPeer): Added virtual keyword explicitly.
  11602. (onAbort): Added virtual keyword explicitly.
  11603. * src/RequestSlot.cc
  11604. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11605. * src/BtPieceMessage.cc
  11606. (doReceivedAction): Added a debug log of piece's bitfield.
  11607. * src/Piece.h
  11608. (getBitfieldLength): New function.
  11609. * src/ByteArrayDiskWriter.cc
  11610. (clear): Added buf = 0 to avoid double free corruption.
  11611. * src/FileAllocator.cc
  11612. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11613. Added cp.reset().
  11614. * src/BitfieldMan.h
  11615. (operator=): Rewritten.
  11616. * src/BitfieldMan.cc
  11617. (BitfieldMan): Initialized bitfield, useBitfield.
  11618. * src/PeerConnection.cc
  11619. (receiveMessage): Added a call to socket->readable() after getting
  11620. message length to avoid possible EOF.
  11621. * src/Util.cc
  11622. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11623. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11624. To add an ability to pre-allocate file space:
  11625. * src/DirectDiskAdaptor.h: Rewritten.
  11626. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11627. * src/MultiDiskAdaptor.h: Rewritten.
  11628. * src/DefaultPieceStorage.cc
  11629. (MultiDiskWriter.h): Removed include.
  11630. (PreAllocationDiskWriter.h): Removed include.
  11631. (FileAllocationMonitor.h): New include.
  11632. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11633. (initStorage): Rewritten.
  11634. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11635. * src/FileAllocator.h: New class.
  11636. * src/FileAllocator.cc: New class.
  11637. * src/FileAllocationMonitor.h: New class.
  11638. * src/FileAllocationMonitor.cc: New class.
  11639. * src/ConsoleFileAllocationMonitor.h: New class.
  11640. * src/ConsoleFileAllocationMonitor.cc: New class.
  11641. * src/AbstractSingleDiskAdaptor.h: New class.
  11642. * src/AbstractSingleDiskAdaptor.cc: New class.
  11643. * src/DiskAdaptor.h
  11644. (Directory.h): Removed include.
  11645. (DiskWriter.h): Removed include.
  11646. (FileEntry.h): Removed include.
  11647. (diskWriter): Removed.
  11648. (DiskAdaptor): Removed diskWriter.
  11649. (openFile): Made pure virtual.
  11650. (closeFile): Made pure virtual.
  11651. (openExistingFile): Made pure virtual.
  11652. (initAndOpenFile): Made pure virtual.
  11653. (writeData): Made pure virtual.
  11654. (readData): Made pure virtual.
  11655. (sha1Sum): Made pure virtual.
  11656. (getStoreDir): Returns const reference of storeDir.
  11657. (DiskAdaptorHandle): New type definition.
  11658. * src/main.cc
  11659. (ConsoleFileAllocationMonitor.h): New include.
  11660. (showUsage): Added default value description of -s option.
  11661. Added the description of --file-allocation option.
  11662. (main): Set default value of --file-allocation option to 'none'.
  11663. Added --file-allocation command-line option.
  11664. Setup FileAllocationMonitorFactory.
  11665. * src/FtpInitiateConnectionCommand.cc
  11666. (executeInternal): Removed diskWriter related processing, which was
  11667. moved to FtpNegotiationCommand.cc.
  11668. * src/DirectDiskAdaptor.cc
  11669. (getFilePath): Made non-const.
  11670. * src/CopyDiskAdaptor.h
  11671. (DiskAdaptor.h): Removed include.
  11672. (DiskWriter.h): Removed include.
  11673. (AbstractSingleDiskAdaptor.h): New include.
  11674. (getFilePath): Made non-const. Added virtual keyword.
  11675. (CopyDiskAdaptor): Removed diskWriter.
  11676. (getTempFile): Returns const reference.
  11677. (CopyDiskAdaptorHandle): New type definition.
  11678. * src/ByteArrayDiskWriter.cc
  11679. (clear): Simplified.
  11680. (initAndOpenFile): Rewritten.
  11681. (openFile): Call initAndOpenFile()
  11682. * src/MultiDiskAdaptor.cc: Rewritten.
  11683. * src/DownloadEngineFactory.cc
  11684. (FileAllocator.h): New include.
  11685. (FileAllocationMonitor.h): New include.
  11686. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11687. create DefaultDiskWriter with file allocator.
  11688. * src/DiskWriter.h
  11689. (initAndOpenFile): Added totalLength argument.
  11690. (openFile): Added totalLength argument.
  11691. * src/prefs.h
  11692. (PREF_FILE_ALLOCATION): New definition.
  11693. (V_PREALLOC): New definition.
  11694. (V_NONE): New definition.
  11695. * src/HttpResponseCommand.cc
  11696. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11697. size.
  11698. * src/FtpNegotiateCommand.cc
  11699. (Util.h): New include.
  11700. (recvSize): Open file here.
  11701. * src/Util.h
  11702. (ullitos): New function.
  11703. * src/CopyDiskWriter.h
  11704. (getFilePath): Made non-const.
  11705. * src/DefaultDiskWriter.h
  11706. (Option.h): New include.
  11707. (totalLength): Removed.
  11708. (DefaultDiskWriter): Removed totalLength.
  11709. (initAndOpenFile): Added totalLength argument.
  11710. (DefaultDiskWriterHandle): New type definition.
  11711. (createNewDiskWriter): New function.
  11712. * src/Util.cc
  11713. (ullitos): New function.
  11714. * src/DefaultDiskWriter.cc
  11715. (message.h): New include.
  11716. (FileAllocator.h): New include.
  11717. (prefs.h): New include.
  11718. (Util.h): New include.
  11719. (DefaultDiskWriter): Removed totalLength.
  11720. (initAndOpenFile): Added file allocation.
  11721. (createNewDiskWriter): New function. Just for temporary solution.
  11722. It will be rewritten later.
  11723. * src/DiskAdaptor.cc
  11724. (DiskAdaptor): Removed diskWriter.
  11725. * src/AbstractDiskWriter.cc
  11726. (LogFactory.h): New include.
  11727. (AbstractDiskWriter): Added fileAllocator, logger.
  11728. (openFile): Added totalLength argument.
  11729. * src/AbstractDiskWriter.h
  11730. (FileAllocator.h): New include.
  11731. (Logger.h): New include.
  11732. (fileAllocator): New variable.
  11733. (logger): New variable.
  11734. (openFile): Added totalLength argument. Added virtual keyword
  11735. explicitly.
  11736. (openExistingFile): Added totalLength argument. Added virtual keyword
  11737. explicitly.
  11738. (closeFile): Added virtual keyword explicitly.
  11739. (sha1Sum): Added virtual keyword explicitly.
  11740. (writeData): Added virtual keyword explicitly.
  11741. (readData): Added virtual keyword explicitly.
  11742. (setFileAllocator): New function.
  11743. * src/DefaultPieceStorage.h
  11744. (FileAllocator.h): New include.
  11745. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11746. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11747. * src/FileProgressMonitor.h: New class.
  11748. To compile aria2 on PC-BSD:
  11749. * src/DefaultBtContext.cc
  11750. (libgen.h): New include.
  11751. To fix memory leak:
  11752. * src/Exception.h
  11753. (~Exception): Delete cause. Fixed memory leak.
  11754. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11755. Rewritten a portion of bittorrent implementation:
  11756. * src/BtMessageValidator.h: New class.
  11757. * src/BtBitfieldMessageValidator.h: New class.
  11758. * src/BtHandshakeMessageValidator.h: New class.
  11759. * src/BtRequestMessageValidator.h: New class.
  11760. * src/BtSuggestPieceMessageValidator.h: New class.
  11761. * src/BtAllowedFastMessageValidator.h: New class.
  11762. * src/BtRejectMessageValidator.h: New class.
  11763. * src/BtCancelMessageValidator.h: New class.
  11764. * src/BtPieceMessageValidator.h: New class.
  11765. * src/BtHaveMessageValidator.h: New class.
  11766. * src/BtEventListener.h: New class.
  11767. * src/AbstractBtEventListener.h: New class.
  11768. * src/BtEvent.h: New class.
  11769. * src/BtChokingEvent.h: New class.
  11770. * src/BtChokedEvent.h: New class.
  11771. * src/BtCancelSendingPieceEvent.h: New class.
  11772. * src/BtAbortOutstandingRequestEvent.h: New class.
  11773. * src/Randomizer.h: New class.
  11774. * src/SimpleRandomizer.h: New class.
  11775. * src/BtMessage.h: New class.
  11776. * src/AbstractBtMessage.h: New class.
  11777. * src/SimpleBtMessage.h: New class.
  11778. * src/BtHaveMessage.h: New class.
  11779. * src/BtInterestedMessage.h: New class.
  11780. * src/BtAllowedFastMessage.h: New class.
  11781. * src/BtUnchokeMessage.h: New class.
  11782. * src/BtCancelMessage.h: New class.
  11783. * src/BtNotInterestedMessage.h: New class.
  11784. * src/BtChokeMessage.h: New class.
  11785. * src/BtHaveNoneMessage.h: New class.
  11786. * src/BtHandshakeMessage.h: New class.
  11787. * src/BtSuggestPieceMessage.h: New class.
  11788. * src/BtHaveMessage.h: New class.
  11789. * src/BtPieceMessage.h: New class.
  11790. * src/BtHaveAllMessage.h: New class.
  11791. * src/BtKeepAliveMessage.h: New class.
  11792. * src/BtPortMessage.h: New class.
  11793. * src/BtRejectMessage.h: New class.
  11794. * src/BtBitfieldMessage.h: New class.
  11795. * src/BtRequestMessage.h: New class.
  11796. * src/DefaultBtRequestFactory.h: New class.
  11797. * src/DefaultBtMessageReceiver.h: New class.
  11798. * src/BtInteractive.h: New class.
  11799. * src/BtMessageDispatcher.h: New class.
  11800. * src/DefaultBtMessageDispatcher.h: New class.
  11801. * src/DefaultBtInteractive.h: New class.
  11802. * src/BitfieldManFactory.h: New class.
  11803. * src/HandleRegistry.h: New class.
  11804. * src/BtMessageFactory.h: New class.
  11805. * src/BtMessageReceiver.h: New class.
  11806. * src/DefaultBtMessageFactory.h: New class.
  11807. * src/PeerObject.h: New class.
  11808. * src/BtRequestFactory.h: New class.
  11809. * src/SuggestPieceMessage.h: Removed.
  11810. * src/PortMessage.h: Removed.
  11811. * src/SuggestPieceMessage.h: Removed.
  11812. * src/KeepAliveMessage.h: Removed.
  11813. * src/HandshakeMessage.h: Removed.
  11814. * src/PeerInteraction.h: Removed.
  11815. * src/UnchokeMessage.h: Removed.
  11816. * src/PieceMessage.h: Removed.
  11817. * src/RequestMessage.h: Removed.
  11818. * src/InterestedMessage.h: Removed.
  11819. * src/HaveMessage.h: Removed.
  11820. * src/CancelMessage.h: Removed.
  11821. * src/RejectMessage.h: Removed.
  11822. * src/AllowedFastMessage.h: Removed.
  11823. * src/HaveNoneMessage.h: Removed.
  11824. * src/SimplePeerMessage.h: Removed.
  11825. * src/HaveAllMessage.h: Removed.
  11826. * src/BitfieldMessage.h: Removed.
  11827. * src/PeerMessageFactory.h: Removed.
  11828. * src/NotInterestedMessage.h: Removed.
  11829. * src/ChokeMessage.h: Removed.
  11830. * src/PeerMessage.h: Removed.
  11831. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11832. To know root cause of exception:
  11833. * src/Exception.h
  11834. (cause): New variable.
  11835. (Exception): Added a parameter.
  11836. (getMsg): Return const reference to msg.
  11837. (getCause): New function.
  11838. * src/DlRetryEx.h
  11839. (DlRetryEx): Added a parameter 'cause'.
  11840. Added an overloaded constructor.
  11841. (DlAbortEx): Added a parameter 'cause'.
  11842. Added an overloaded constructor.
  11843. * src/SimpleLogger.cc
  11844. (writeLog): Log nested exception messages recursively.
  11845. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11846. * src/DefaultBtProgressInfoFile.cc
  11847. (load): Fixed memory leak when the infohash doesn't match.
  11848. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11849. * src/DefaultPeerStorage.cc
  11850. (calculateStat): Simplified the code by combining 2 loops into 1.
  11851. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11852. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11853. for BitTorrent download:
  11854. * src/PeerAbstractCommand.cc
  11855. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11856. * src/main.cc:
  11857. (timeoutSpecified): Removed.
  11858. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11859. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11860. * src/TorrentRequestInfo.cc
  11861. (timeoutSpecified): Removed.
  11862. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11863. timeout value.
  11864. * src/prefs.h
  11865. (PREF_BT_TIMEOUT): New definition.
  11866. Delete unused variables:
  11867. * src/TorrentRequestInfo.cc
  11868. (requestInfo): Removed.
  11869. Move setSignalHander to Util::setGlobalSignalHandler:
  11870. * src/TorrentRequestInfo.cc:
  11871. setSignalHander -> Util::setGlobalSignalHandler
  11872. * src/main.cc
  11873. (setSignalHander): Removed.
  11874. (main): setSignalHander -> Util::setGlobalSignalHandler
  11875. * src/Util.h
  11876. (setGlobalSignalHandler): New function.
  11877. * src/Util.cc
  11878. (setGlobalSignalHandler): New function.
  11879. * src/UrlRequestInfo.cc:
  11880. setSignalHander -> Util::setGlobalSignalHandler
  11881. Reset peer status in order to exit gracefully:
  11882. * src/PeerAbstractCommand.cc
  11883. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11884. To fix the bug that causes the number of bytes uploaded is not saved
  11885. to .aria2 file:
  11886. * src/DefaultPeerStorage.h
  11887. (removedPeerSessionDownloadLength): New variable.
  11888. (removedPeerSessionUploadLength): New variable.
  11889. * src/DefaultPeerStorage.cc
  11890. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11891. removedPeerSessionUploadLength(0).
  11892. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11893. through all peers, and then add removedPeerSessionDownloadLength(
  11894. removedPeerSessionUploadLength) to it.
  11895. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11896. (to) the peer to removedPeerSessionDownloadLength
  11897. (removedPeerSessionUploadLength).
  11898. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11899. To add Metalink location option:
  11900. * src/MetalinkRequestInfo.cc
  11901. (execute): Call MetalinkEntry::setLocationPreference()
  11902. * src/main.cc
  11903. (showUsage): Added the help message for --metalink-location option.
  11904. (main): Added --metalink-location option.
  11905. * src/prefs.h
  11906. (PREF_METALINK_LOCATION): New definition.
  11907. * src/MetalinkEntry.cc
  11908. (AddLocationPreference): New function object.
  11909. (setLocationPreference): New function.
  11910. * src/Xml2MetalinkProcessor.cc
  11911. (getResource): Set location attribute to MetalinkResource
  11912. To show URLs to download
  11913. * src/UrlRequestInfo.h
  11914. (printUrls): New function.
  11915. To add multiple <file> Metalink support:
  11916. * src/MetalinkEntry.h
  11917. (MetalinkResources): Removed.
  11918. (setLocationPreference): New function.
  11919. (MetalinkEntryHandle): New type definition.
  11920. (MetalinkEntries): New type definition.
  11921. * src/Xml2MetalinkProcessor.h
  11922. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11923. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11924. (parseFile): Metalinker* -> MetalinkerHandle
  11925. * src/UrlRequestInfo.h
  11926. (execute): RequestInfo* -> RequestInfos
  11927. * src/MetalinkRequestInfo.cc
  11928. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11929. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11930. (execute): RequestInfo* -> RequestInfos
  11931. Added multiple <file> support. Print filename when it is queued.
  11932. * src/MetalinkRequestInfo.h
  11933. (execute): RequestInfo* -> RequestInfos
  11934. (getDownloadEngine): Removed.
  11935. * src/RequestInfo.h
  11936. (RequestInfoHandle): New type definition.
  11937. (RequestInfos): New type definition.
  11938. (execute): RequestInfo* -> RequestInfos
  11939. (getDownloadEngine): Removed.
  11940. * src/MetalinkResource.h
  11941. (MetalinkResourceHandle): New type definition.
  11942. (MetalinkResources): New type definition.
  11943. * src/MetalinkEntry.cc
  11944. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11945. because the element is now of type MetalinkResourceHandle.
  11946. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11947. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11948. (dropUnsupportedResource): Removed the deletion of the elements of
  11949. resources because the element is now of type MetalinkResourceHandle.
  11950. * src/Xml2MetalinkProcessor.cc
  11951. (parseFile): Metalinker* -> MetalinkerHandle
  11952. MetalinkEntry* -> MetalinkEntryHandle
  11953. Removed try-catch block.
  11954. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11955. MetalinkResource* -> MetalinkResourceHandle
  11956. Removed try-catch block.
  11957. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11958. Free result by using xmlXPathFreeObject()
  11959. * src/Metalinker.cc
  11960. (~Metalinker): Removed the deletion of entries.
  11961. MetalinkEntry* -> MetalinkEntryHandle
  11962. (queryEntry): Add multiple <file> Metalink support.
  11963. * src/Metalinker.h
  11964. (MetalinkEntries): Removed.
  11965. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11966. * src/MetalinkProcessor.h
  11967. (parseFile): Metalinker* -> MetalinkerHandle
  11968. Bug fixes:
  11969. * src/PeerChokeCommand.cc
  11970. (execute): cat01->cat02
  11971. * src/DefaultPieceStorage.cc
  11972. (DefaultPieceStorage): Added diskAdaptor(0)
  11973. * src/TrackerWatcherComand.cc:
  11974. (execute): Use btAnnounce->noMoreAnnounce()
  11975. to determin whether the function returns true or not.
  11976. * src/TrackerUpdateCommand.cc:
  11977. (execute): Use btAnnounce->noMoreAnnounce()
  11978. to determin whether the function returns true or not.
  11979. * src/FtpConnection.cc
  11980. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11981. This is the fix of the busy loop bug.
  11982. * src/DownloadCommand.cc
  11983. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11984. cached PeerStat.
  11985. The value of "name" entry in torrent file is now set by
  11986. *DiskAdaptor::setTopDir(...) methods.
  11987. * src/MultiDiskAdaptor.h
  11988. (topDir): New variable.
  11989. (setTopDir): New function.
  11990. (getTopDir): New function.
  11991. * src/MultiDiskAdaptor.cc
  11992. (getFilePath): Concat storDir, "/" and topDir.
  11993. (mkdir): Use getFilePath() to get the directory path for output.
  11994. * src/DefaultPieceStorage.cc
  11995. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11996. CopyDiskAdaptor.
  11997. * src/CopyDiskAdaptor.h
  11998. (topDir): New variable.
  11999. (setTopDir): New function.
  12000. (getTopDir): New function.
  12001. * src/CopyDiskAdaptor.cc
  12002. (fixFilename): Updated.
  12003. Misc
  12004. * src/UrlRequestInfo.h
  12005. (e): Removed.
  12006. (UrlRequestInfo): Removed e.
  12007. (getDownloadEngine): Removed.
  12008. * src/UrlRequestInfo.cc
  12009. (handler): Rewritten.
  12010. (printUrls): New function.
  12011. (execute): Call printUrls().
  12012. * src/HandshakeMessage.cc
  12013. (check): peerinteraction->getBtContext() -> btContext
  12014. * src/PeerInteraction.h
  12015. (getBtContext): Removed.
  12016. * src/TorrentRequestInfo.h
  12017. (execute): RequestInfo* -> RequestInfos
  12018. (getDownloadEngine): Removed.
  12019. * src/TorrentRequestInfo.cc
  12020. (haltRequested): Removed.
  12021. (btHaltRequested): New variable.
  12022. (torrentHandler): haltRequested -> btHaltRequested
  12023. (execute): RequestInfo* -> RequestInfos
  12024. * src/TorrentConsoleDownloadEngine.cc
  12025. (afterEachIteration): haltRequested -> btHaltRequested.
  12026. * src/ConsoleDownloadEngine.h
  12027. (initStatistics): Added virtual.
  12028. (calculateStatistics): Added virtual.
  12029. (onEndOfRun): Added virtual.
  12030. (afterEachIteration): Added virtual.
  12031. * src/ConsoleDownloadEngine.cc
  12032. (haltRequested): New variable.
  12033. (afterEachIteration): New function.
  12034. * src/main.cc
  12035. (requestInfo): Removed.
  12036. * src/SegmentMan.cc
  12037. (findSlowerSegmentEntry): Refactored.
  12038. * Release 0.9.0
  12039. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12040. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12041. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12042. * src/TorrentMan.h: Removed.
  12043. * src/TorrentMan.cc: Removed.
  12044. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12045. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12046. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12047. * src/PeerAbstractCommand.cc: Use btRuntime.
  12048. * src/BtContextAwareCommand.h: New class.
  12049. * src/FileEntry.h: Added accessor methods for following variables.
  12050. (path): Made private.
  12051. (length): Made private.
  12052. (offset): Made private.
  12053. (extracted): Made private.
  12054. (requested): Made private.
  12055. (FileEntries): New definition.
  12056. (FileEntryHandle): New definition.
  12057. * src/FileEntry.cc: New file.
  12058. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12059. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12060. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12061. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12062. * src/PieceStorage.h: New file.
  12063. * src/PeerInteractionCommand.h: Use btContext.
  12064. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12065. btRuntime.
  12066. * src/DefaultBtProgressInfoFile.h: New file.
  12067. * src/DefaultBtProgressInfoFile.cc: New file.
  12068. * src/File.cc
  12069. (Util.h): New include.
  12070. (mkdirs): New function.
  12071. * src/MultiDiskAdaptor.h
  12072. (mkdir): New function.
  12073. * src/PeerListProcessor.h
  12074. (Peers): Removed.
  12075. * src/PeerInteraction.h
  12076. (torrentMan): Removed.
  12077. (btContext): New variable.
  12078. (peerStorage): New variable.
  12079. (pieceStorage): New variable.
  12080. (btAnnounce): New variable.
  12081. (getTorrentMan): Removed.
  12082. (getBtContext): New function.
  12083. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12084. btAnnounce.
  12085. * src/HandshakeMessage.h
  12086. (TorrentMan.h): Removed.
  12087. * src/HandshakeMessage.cc: Use btContext.
  12088. * src/DefaultBtAnnounce.cc: New file.
  12089. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12090. * src/DefaultPieceStorage.cc: New file.
  12091. * src/DefaultBtContext.h: New file.
  12092. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12093. Use the accessor methods of FileEntry.
  12094. * src/CookieBox.cc: Updated to use Util::slice().
  12095. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12096. * src/common.h (SharedHandle.h): New include.
  12097. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12098. pieceStorage.
  12099. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12100. * src/DiskAdaptor.h
  12101. (topDir): Removed.
  12102. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12103. (setTopDir): Removed.
  12104. (getTopDir): Removed.
  12105. * src/BtContext.h: New file.
  12106. * src/DefaultPeerStorage.h: New file.
  12107. * src/PieceMessage.h (TorrentMan.h): Removed.
  12108. * src/RequestMessage.h (TorrentMan.h): Removed.
  12109. * src/TorrentDownloadEngine.h
  12110. (uploadLength): New variable.
  12111. (btContext): New variable.
  12112. (btRuntime): New variable.
  12113. (pieceStorage): New variable.
  12114. (peerStorage): New variable.
  12115. (btAnnounce): New variable.
  12116. (btProgressInfoFile): New variable.
  12117. (torrentMan): Removed.
  12118. (setBtContext): New function.
  12119. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12120. peerStorage, btAnnounce, btProgressInfoFile.
  12121. * src/Piece.h
  12122. (toString): New function.
  12123. (Pieces): New type definition.
  12124. * src/Peer.h
  12125. (active): New variable.
  12126. (Peer): Added active.
  12127. (activate): Set active to true.
  12128. (deactivate): Set active to false.
  12129. (isActive): New function.
  12130. (Peers): New type definition.
  12131. * src/DirectDiskAdaptor.cc
  12132. (getFilePath): Use the accessor methods of FileEntry.
  12133. * src/TorrentConsoleDownloadEngine.h
  12134. (afterEachIteration): New function.
  12135. * src/TorrentConsoleDownloadEngine.cc
  12136. (haltRequested): New variable.
  12137. (sendStatistics): Use pieceStorage, btRuntime.
  12138. (afterEachIteration): New function.
  12139. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12140. * src/Directry.h
  12141. (Directory): New function.
  12142. (DirectoryHandle): New type definition.
  12143. * src/BtProgressInfoFile.h: New file.
  12144. * src/RequestMessage.cc: Use pieceStorage.
  12145. * src/BtRuntime.h: New file.
  12146. * src/DefaultBtContext.cc: New file.
  12147. * src/BitfieldMan.h
  12148. (getCompletedLength): New function(private).
  12149. (getCompletedLength): New function.
  12150. (getFilteredCompletedLength): New function.
  12151. * src/BitfieldMan.h
  12152. (getCompletedLength): New function(private).
  12153. (getCompletedLength): New function.
  12154. (getFilteredCompletedLength): New function.
  12155. * src/MultiDiskAdaptor.cc
  12156. (mkdir): New function.
  12157. (openFile): Call mkdir().
  12158. (initAndOpenFile): Call mkdir().
  12159. * src/CancelMessage.h
  12160. (TorrentMan.h): Removed.
  12161. * src/RejectMessage.h
  12162. (TorrentMan.h): Removed.
  12163. * src/DownloadEngineFactory.cc
  12164. (DefaultPieceStorage.h): New include.
  12165. (DefaultPeerStorage.h): New include.
  12166. (DefaultBtAnnounce.h): New include.
  12167. (DefaultBtProgressInfoFile.h): New include.
  12168. (newTorrentConsoleEngine): Rewritten.
  12169. * src/ShareRatioSeedCriteria.h
  12170. (torrentMan): Removed.
  12171. (btContext): New variable.
  12172. (peerStorage): New variable.
  12173. (btRuntime): New variable.
  12174. (evaluate): Use btContext, btRuntime, peerStorage.
  12175. * src/AnnounceTier.h: New file.
  12176. * src/BtAnnounce.h: New file.
  12177. * src/BtRegistry.h: New file.
  12178. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12179. * src/PeerConnection.h (TorrentMan.h): Removed.
  12180. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12181. * src/Util.h
  12182. (slice): Added an argument.
  12183. * src/Util.cc
  12184. (slice): Added an argument to control whether trim is made or not.
  12185. * src/PeerStorage.h: New file.
  12186. * src/BtRegistry.cc: New file.
  12187. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12188. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12189. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12190. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12191. * src/TorrentRequestInfo.h
  12192. (e): Removed.
  12193. (showFileEntry): Added an argument.
  12194. (getDownloadEngine): Return 0.
  12195. * src/DefaultBtAnnounce.h: New file.
  12196. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12197. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12198. * src/PeerMessageFactory.h
  12199. (btContext): New variable.
  12200. (pieceStorage): New variable.
  12201. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12202. btAnnounce.
  12203. * src/DiskAdaptor.cc
  12204. (DiskAdaptor): Removed topDir.
  12205. (~DiskAdaptor): Removed topDir.
  12206. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12207. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12208. * src/File.h (mkdirs): New function.
  12209. * src/DefaultPeerStorage): New file.
  12210. * src/DownloadEngineFactory.h
  12211. (newTorrentConsoleEngine): Use btContext.
  12212. * src/BtContextAwareCommand.cc: New file.
  12213. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12214. * src/PeerMessage.h
  12215. (btContext): New variable.
  12216. (peerStorage): New variable.
  12217. (pieceStorage): New variable.
  12218. (setBtContext): New function.
  12219. * src/Directry.cc
  12220. (Directory): New function.
  12221. (createDir): Do nothing if name.size() == 0.
  12222. * src/AnnounceList.h
  12223. (AnnounceTier): Removed.
  12224. (AnnounceTiers): Removed.
  12225. * src/DefaultPieceStorage.h: New file.
  12226. * src/Piece.cc (toString): New function.
  12227. To fix typo:
  12228. * src/main.cc (showVersion): Fixed typo.
  12229. To fix compile warning:
  12230. * src/DelegatingPeerListProcessor.cc
  12231. (canHandle): Added "return false".
  12232. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12233. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12234. make the process of announce request testable.
  12235. * src/TrackerWatcherCommand.h
  12236. (TimeA2.h): Removed.
  12237. (interval): Removed.
  12238. (checkPoint): Removed.
  12239. (createRequestCommand): Added an argument 'url'.
  12240. (TrackerWatherCommand): Removed interval.
  12241. (createCommand): New function.
  12242. * src/DownloadEngineFactory.cc
  12243. (newTorrentConsoleEngine): Updated according to the changes in
  12244. TrackerWatherCommand.
  12245. * src/TorrentMan.cc
  12246. (DelegatingPeerListProcessor.h): New includes.
  12247. (TorrentMan): Added the initialization of announceInterval.
  12248. (isStoppedAnnounceReady): New function.
  12249. (isCompletedAnnounceReady): New function.
  12250. (isDefaultAnnounceReady): New function.
  12251. (isAnnounceReady): New function.
  12252. (getAnnounceUrl): New function.
  12253. (announceStart): New function.
  12254. (announceFailure): New function.
  12255. (announceSuccess): New function.
  12256. (isAllAnnounceFailed): New function.
  12257. (resetAnnounce): New function.
  12258. (processAnnounceResponse): New function.
  12259. (needMorePeerConnection): New function.
  12260. (noMoreAnnounce): New function.
  12261. * src/TrackerUpdateCommand.h
  12262. (getTrackerResponse): int->size_t
  12263. * src/TorrentMan.h
  12264. (isStoppedAnnounceReady): New function.
  12265. (isCompletedAnnounceReady): New function.
  12266. (isDefaultAnnounceReady): New function.
  12267. (announceInterval): New variable.
  12268. (isAnnounceReady): New function.
  12269. (getAnnounceUrl): New function.
  12270. (announceStart): New function.
  12271. (announceFailure): New function.
  12272. (announceSuccess): New function.
  12273. (isAllAnnounceFailed): New function.
  12274. (resetAnnounce): New function.
  12275. (processAnnounceResponse): New function.
  12276. (needMorePeerConnection): New function.
  12277. (noMoreAnnounce): New function.
  12278. * src/TrackerWatcherCommand.cc
  12279. (TrackerWatherCommand): Removed interval and checkPoint.
  12280. (execute): Rewritten.
  12281. (createCommand): New function.
  12282. (createRequestCommand): Rewritten.
  12283. * src/TrackerUpdateCommand.cc
  12284. (MetaFileUtil.h): Removed.
  12285. (DelegatingPeerListProcessor.h): Removed.
  12286. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12287. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12288. Request -> RequestHandle:
  12289. * src/HttpResponseCommand.h: Request->RequestHandle
  12290. * src/AbstractCommand.cc: Request->RequestHandle
  12291. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12292. * src/HttpRequestCommand.cc: Request->RequestHandle
  12293. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12294. * src/AbstractCommand.h: Request->RequestHandle
  12295. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12296. * src/HttpResponseCommand.cc: Request->RequestHandle
  12297. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12298. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12299. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12300. * src/HttpConnection.h: Request->RequestHandle
  12301. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12302. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12303. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12304. * src/DownloadCommand.h: Request->RequestHandle
  12305. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12306. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12307. * src/HttpRequestCommand.h: Request->RequestHandle
  12308. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12309. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12310. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12311. * src/HttpDownloadCommand.h: Request->RequestHandle
  12312. * src/FtpConnection.cc: Request->RequestHandle
  12313. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12314. * src/UrlRequestInfo.cc: Request->RequestHandle
  12315. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12316. * src/HttpConnection.h: Request->RequestHandle
  12317. * src/DownloadCommand.cc: Request->RequestHandle
  12318. * src/FtpConnection.h: Request->RequestHandle
  12319. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12320. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12321. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12322. * src/Request.h
  12323. (SharedHandle.h): New include.
  12324. (RequestHandle): New type definition.
  12325. (Requests): Redefined.
  12326. To add MULTITRACKER support:
  12327. * src/TrackerWatcherCommand.h
  12328. (createRequestCommand): New function.
  12329. * src/DownloadEngineFactory.cc
  12330. (newTorrentConsoleEngine): Removed req.
  12331. * src/prefs.h
  12332. (PREF_TRACKER_MAX_TRIES): New definition.
  12333. * src/TorrentMan.cc
  12334. (TorrentMan): Removed req. Added trackerNumTry.
  12335. (~TorrentMan): Removed req.
  12336. (setupInternal1): Added announceList.
  12337. * src/TorrentRequestInfo.cc
  12338. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12339. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12340. * src/main.cc
  12341. (main): Added PREF_TRACKER_MAX_TRIES.
  12342. * src/TorrentMan.h
  12343. (Request.h): Removed.
  12344. (AnnounceList.h): New include.
  12345. (trackerNumTry): New variable.
  12346. (req): Removed.
  12347. (announceList): New variable.
  12348. * src/TrackerWatcherCommand.cc
  12349. (execute): Rewritten.
  12350. (createRequestCommand): New function.
  12351. * src/TrackerUpdateCommand.cc
  12352. (execute): Updated with the use of AnnounceList.
  12353. * src/AnnounceList.cc: New class.
  12354. * src/AnnounceList.h: New class.
  12355. To fix typo:
  12356. * src/prefs.h
  12357. (PREF_MAX_TRIES): max_try->max_tries
  12358. To not to decode "+" as space in URL decode:
  12359. * src/Util.cc
  12360. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12361. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12362. To add timeout to async name resolution:
  12363. * src/AbstractCommand.h
  12364. (nameResolveFinished): New function. This is not elegant way. It needs
  12365. to be more refined.
  12366. (nameResolverCheck): New variable.
  12367. * src/AbstractCommand.cc
  12368. (AbstractCommand): Added nameResolverCheck.
  12369. (execute): Added the check whether the name resolution has finished.
  12370. (setNameResolverCheck): Set nameResolverCheck to true.
  12371. (disableNameResolverCheck): Set nameResolverCheck to false.
  12372. (nameResolverFinished): New function.
  12373. * src/FtpInitiateConnectionCommand.h
  12374. (nameResolverFinished): New function.
  12375. * src/FtpInitiateConnectionCommand.cc
  12376. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12377. * src/HttpInitiateConnectionCommand.h
  12378. (nameResolverFinished): New function.
  12379. * src/HttpInitiateConnectionCommand.cc
  12380. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12381. * src/prefs.h
  12382. (PREF_DNS_TIMEOUT): New definition.
  12383. * src/main.cc
  12384. (main): Added PREF_DNS_TIMEOUT.
  12385. To add the support for a non-compact response from a tracker:
  12386. * src/PeerListProcessor.h: New class.
  12387. * src/DefaultPeerListProcessor.h: New class.
  12388. * src/DefaultPeerListProcessor.cc: New class.
  12389. * src/CompactPeerListProcessor.h: New class.
  12390. * src/CompactPeerListProcessor.cc: New class.
  12391. * src/DelegatingPeerListProcessor.h: New class.
  12392. * src/DelegatingPeerListProcessor.cc: New class.
  12393. * src/TorrentMan.cc
  12394. (addPeer): New function(overload).
  12395. (addPeer): Delete unused peers only when new peer is added.
  12396. * src/TorrentMan.h
  12397. (PeerListProcessor.h): Included.
  12398. (Peers): Removed.
  12399. (addPeer): New function(overload).
  12400. * src/TrackerUpdateCommand.cc
  12401. (netinet/in.h): Removed.
  12402. (DelegatingPeerListProcessor.h): Included.
  12403. (execute): Updated to use DelegatingPeerListProcessor.
  12404. To fix the memory leak in TorrentMan::peers:
  12405. * src/PeerAbstractCommand.cc
  12406. (onAbort): Added peer->resetStatus().
  12407. * src/Peer.h
  12408. (resetStatus): Made public.
  12409. To improve the precision of the speed calculation:
  12410. * src/SpeedCalc.h
  12411. (nextInterval): New variable.
  12412. * src/SpeedCalc.cc
  12413. (reset): Added nextInterval.
  12414. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12415. (changeSw): Set nextInterval to 15 seconds relative to the current
  12416. instant time.
  12417. * src/main.cc
  12418. (showVersion): Updated.
  12419. (showUsage): Updated.
  12420. * Release 0.8.1
  12421. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12422. * src/main.cc
  12423. (showUsage): Commented out --min-segment-size option.
  12424. (main): Commented out --min-segment-size option.
  12425. * Release 0.8.0
  12426. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12427. * src/*.{h,cc}:
  12428. Added an exception to the license which allows linking with OpenSSL.
  12429. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12430. * src/AbstractCommand.cc
  12431. (execute): Check whether the download has finished before checking
  12432. socket status.
  12433. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12434. Do not exit even if no segment is available.
  12435. * src/prefs.h
  12436. (PREF_STARTUP_IDLE_TIME): New definition.
  12437. * src/PeerInteractionCommand.cc
  12438. (executeInternal): Removed max speed limit. Because it performs bad.
  12439. (receiveMessages): Added max speed limit. This was better than above,
  12440. but still a little bit to be desired. Sometimes the download speed
  12441. became much faster than I specified.
  12442. * src/SpeedCalc.h
  12443. (start): New variable.
  12444. (accumulatedLength): New variable.
  12445. (getAvgSpeed): New function.
  12446. * src/SpeedCalc.cc
  12447. (reset): Added start, accumulatedLength.
  12448. (update): Added calculation of an average speed.
  12449. (getAvgSpeed): New function.
  12450. * src/DownloadCommand.h
  12451. (sw): Removed.
  12452. * src/main.cc
  12453. (main): Added PREF_STARTUP_IDLE_TIME.
  12454. * src/PeerStat.h
  12455. (STATUS): Added REQUEST_IDLE.
  12456. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12457. (getAvgDownloadSpeed): New function
  12458. (requestIdle): New function.
  12459. * src/SegmentMan.h
  12460. (SegmentEntryHandle): New type definition.
  12461. (SegmentEntries): Now holds SegmentEntryHandle.
  12462. (findSlowerSegmentEntry): New funtion.
  12463. * src/SegmentMan.cc
  12464. (save): Updated according to the changes in SegmentEntries.
  12465. (read): Updated according to the changes in SegmentEntries.
  12466. (FindSegmentEntryByIndex): Updated according to the changes in
  12467. SegmentEntries.
  12468. (FindSegmentEntryByCuid): Updated according to the changes in
  12469. SegmentEntries.
  12470. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12471. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12472. Renamed uitr as itr.
  12473. (findSlowerSegmentEntry): New function.
  12474. (getSegment): Updated according to the changes in SegmentEntries.
  12475. Added the feature that cancels the segment with slow server and fast
  12476. one takes it over.
  12477. (cancelSegment): Updated according to the changes in SegmentEntries.
  12478. (getDownloadLength): Updated according to the changes in
  12479. SegmentEntries.
  12480. (init): Assigned 0 to bitfield after deleting it.
  12481. * src/DownloadCommand.cc
  12482. (STARTUP_IDLE_TIME): Removed.
  12483. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12484. * src/PeerChokeCommand.cc
  12485. (optUnchokingPeer): Updated according to the changes in Peer.
  12486. (ResetDelta): Removed.
  12487. (UploadFaster): Updated according to the changes in Peer.
  12488. (DownloadFaster): Updated according to the changes in Peer.
  12489. (execute): I clarify the meaning of "upload" and "download" here.
  12490. "upload" means the transfer from localhost to remote host.
  12491. "download" means the transfer from remote host to localhost.
  12492. Based on this rule, I swapped orderByUploadRate and
  12493. orderByDownloadRate.
  12494. * src/PeerInteractionCommand.cc
  12495. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12496. (executeInternal): Removed the argument of
  12497. peerInteraction->sendMessages().
  12498. (receiveMessages): Rewritten download speed limit.
  12499. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12500. * src/HttpResponseCommand.cc
  12501. (handleDefaultEncoding): If file size is unknown in torrent request,
  12502. do not call segmentMan->initBitfield() here.
  12503. Disabled persistent connection feature in torrent request.
  12504. * src/UrlRequestInfo.h
  12505. (UrlRequestInfo): Removed const qualifier from option.
  12506. * src/TorrentMan.h
  12507. (TransferStat): New class.
  12508. (deltaDownloadLength): Removed.
  12509. (deltaUploadLength): Removed.
  12510. (addDeltaDownloadLength): Removed.
  12511. (getDeltaDownloadLength): Removed.
  12512. (resetDeltaDownloadLength): Removed.
  12513. (addDeltaUploadLength): Removed.
  12514. (getDeltaUploadLength): Removed.
  12515. (resetDeltaUploadLength): Removed.
  12516. (addActivePeer): Added peer->activate().
  12517. (deleteActivePeer): Added peer->deactivate().
  12518. (calculateStat): New function.
  12519. * src/TorrentMan.cc
  12520. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12521. (calculateStat): New function.
  12522. * src/PeerInteraction.h
  12523. (uploadLimit): Removed.
  12524. (option): New variable.
  12525. (setUploadLimit): Removed.
  12526. (getUploadSpeed): Removed.
  12527. (sendMessages): Removed the argument "currentUploadSpeed".
  12528. * src/PeerInteraction.cc
  12529. (prefs.h): Included.
  12530. (PeerInteraction): Removed uploadLimit. Added option.
  12531. (sendMessages): Rewritten upload speed limit.
  12532. (sendHandshake): Removed the argument from sendMessages().
  12533. (sendBitfield): Removed the argument from sendMessages().
  12534. * src/PeerAbstractCommand.cc
  12535. (execute): Commented out the portion of upload limit.
  12536. (onAbort): Removed peer->resetStatus().
  12537. * src/TorrentRequestInfo.cc
  12538. (timeoutSpecified): Declared extern.
  12539. (execute): Set timeout to 180 if timeout is not specified by.
  12540. command-line.
  12541. * src/PieceMessage.cc
  12542. (receivedAction): Added peer->updateDownloadLength().
  12543. Removed peer->addPeerUpload().
  12544. Removed torrentMan->addDeltaDownloadLength().
  12545. (send): Added peer->updateUploadLength().
  12546. Removed peer->addPeerDownload().
  12547. Removed torrentMan->addDeltaUploadLength().
  12548. * src/main.cc
  12549. (timeoutSpecified): New variable.
  12550. (main): Set timeoutSpecified to false.
  12551. If the command-line option "--upload-limit" is specified, then
  12552. timeoutSpecified is set to true. This option will remain in the next
  12553. release, but be deprecated in the future release.
  12554. * src/TorrentRequestInfo.h
  12555. (TorrentRequestInfo): Removed const qualifier from op.
  12556. * src/PeerStat.h
  12557. (uploadSpeed): New variable.
  12558. (PeerStat): Added default value to cuid.
  12559. (calculateUploadSpeed): New function.
  12560. (updateUploadLength): New function.
  12561. (getMaxUploadSpeed): New function.
  12562. (getAvgUploadSpeed): New function.
  12563. (reset): Added uploadSpeed. Set status to IDLE.
  12564. * src/TorrentDownloadEngine.h
  12565. (cp): Declared as Time.
  12566. (sessionDownloadLengthArray): Removed.
  12567. (sessionUploadLengthArray): Removed.
  12568. (currentCp): Removed.
  12569. (lastCalcStat): New variable
  12570. (lastElapsed): Removed.
  12571. (sessionDownloadLength): Removed.
  12572. (calculateStat): New function.
  12573. * src/TorrentDownloadEngine.cc
  12574. (initStatistics): Removed lastElapsed, cp[],
  12575. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12576. currentCp, sessionDownloadLength.
  12577. Added cp.reset() and lastCalcStat.reset().
  12578. (calculateSpeed): Changed the name of the argument.
  12579. (calculateStatistics): Rewritten.
  12580. (calculateStat): New function.
  12581. * src/Peer.h
  12582. (PeerStat.h): Included.
  12583. (peerUpload): Removed.
  12584. (peerDownload): Removed.
  12585. (peerStat): New variable.
  12586. (sessionUploadLength): New variable.
  12587. (sessionDownloadLength): New variable.
  12588. (deltaUpload): Removed.
  12589. (deltaDownload): Removed.
  12590. (resetStatus): Made private.
  12591. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12592. Removed peerUpload, peerDownload.
  12593. (updateUploadLength): New function.
  12594. (addDeltaUpload): Removed.
  12595. (updateDownloadLength): New function.
  12596. (resetDeltaUpload): Removed.
  12597. (getDeltaUpload): Removed.
  12598. (addDeltaDownload): Removed.
  12599. (calculateUploadSpeed): New function.
  12600. (resetDeltaDownload): Removed.
  12601. (getDeltaDownload): Removed.
  12602. (calculateDownloadSpeed): New function.
  12603. (getSessionUploadLength): New function.
  12604. (getSessionDownloadLength): New function.
  12605. (activate): New function.
  12606. (deactivate): New function.
  12607. (addPeerUpload): Removed.
  12608. (setPeerUpload): Removed.
  12609. (getPeerUpload): Removed.
  12610. (addPeerDownload): Removed.
  12611. (setPeerDownload): Removed.
  12612. (getPeerDownload): Removed.
  12613. * src/Peer.cc
  12614. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12615. * src/MetalinkRequestInfo.h
  12616. (MetalinkRequestInfo): Removed const qualifier from op.
  12617. * src/RequestInfo.h
  12618. (op): Removed const qualifier.
  12619. (RequestInfo): Removed const qualifier from op.
  12620. * src/prefs.h
  12621. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12622. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12623. * src/PeerInteractionCommand.cc
  12624. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12625. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12626. * src/PeerInteraction.cc
  12627. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12628. * src/main.cc
  12629. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12630. Added the description of "--max-download-limit" option.
  12631. Removed the description of "--upload-limit" option.
  12632. Added the description of "--max-upload-limit" option.
  12633. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12634. Added "--max-download-limit" option and "--max-upload-limit" option.
  12635. Added the warning message if "--upload-limit" option is used.
  12636. * src/DownloadCommand.cc
  12637. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12638. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12639. To rewrite segment download mechanism for HTTP/FTP download.
  12640. Use BitfieldMan to manage segment download.
  12641. * src/HttpResponseCommand.h
  12642. (executeInternal): Pass the reference of segment.
  12643. * src/AbstractCommand.cc
  12644. (prepareForRetry): Call segmentMan->cancelSegment here.
  12645. (onAbort): Call segmentMan->cancelSegment here.
  12646. * src/HttpDownloadCommand.cc
  12647. (prepareForNextSegment): New function.
  12648. * src/DownloadEngineFactory.cc
  12649. (newConsoleEngine): Removed splitter.
  12650. (newTorrentConsoleEngine): Removed splitter.
  12651. * src/Request.h
  12652. (segment): Renamed from seg.
  12653. * src/FtpInitiateConnectionCommand.h
  12654. (executeInternal): Pass the reference of segment.
  12655. * src/AbstractCommand.h
  12656. (executeInternal): Pass the reference of segment.
  12657. * src/pref.h
  12658. (PREF_SEGMENT_SIZE): New definition.
  12659. * src/HttpProxyRequestCommand.h
  12660. (executeInternal): Pass the reference of segment.
  12661. * src/HttpResponseCommand.cc
  12662. (checkResponse): Allowed status 206 when a request range starts 0.
  12663. (handleDefaultEncoding): Rewritten the code related to Segment.
  12664. (handleOtherEncoding): Rewritten the code related to Segment.
  12665. * src/SegmentMan.h
  12666. (SegmentEntry): New class.
  12667. (SegmentEntries): New type definition.
  12668. (bitfield): New variable.
  12669. (usedSegmentEntries): New variable.
  12670. (onNullBitfield): New function.
  12671. (checkoutSegment): New function.
  12672. (segments): Removed.
  12673. (splitter): Removed.
  12674. (unregisterId): Removed.
  12675. (getSegment): New function(overload)
  12676. (getDownloadedSize): Removed.
  12677. (cancelSegment): New function.
  12678. (completeSegment): New function.
  12679. (initBitfield): New function.
  12680. (hasSegment): New function.
  12681. (getDownloadLength): New function.
  12682. * src/BitfieldMan.h
  12683. (getStartIndex): New function.
  12684. (getEndIndex): New function.
  12685. (getMissingUnusedIndex): New function(overload).
  12686. (getSparseMissingUnusedIndex): New function.
  12687. * src/BitfieldMan.cc
  12688. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12689. (getMissingUnusedIndex): New function(overload).
  12690. (Range): New class.
  12691. (getStartIndex): New function.
  12692. (getEndIndex): New function.
  12693. (getSparseMissingUnusedIndex): New function.
  12694. (isBitSetInternal): Return false if the given index is less than 0.
  12695. * src/HttpInitiateConnectionCommand.h
  12696. (executeInternal): Pass the reference of segment.
  12697. * src/FtpNegotiateCommand.h
  12698. (executeInternal): Pass the reference of segment.
  12699. * src/FtpNegotiateCommand.cc
  12700. (recvSize): Initialize bitfield here.
  12701. * src/FtpTunnelResponseCommand.h
  12702. (executeInternal): Pass the reference of segment.
  12703. * src/HttpConnection.cc
  12704. (createRequest): Rewritten range header processing.
  12705. * src/DownloadCommand.h
  12706. (executeInternal): Pass the reference of segment.
  12707. (prepareForRetry): Removed.
  12708. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12709. function.
  12710. * src/main.cc
  12711. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12712. * src/SegmentMan.cc
  12713. (SegmentMan): Added bitfield. Removed splitter.
  12714. (~SegmentMan): Added bitfield. Removed splitter.
  12715. (unregisterId): Removed.
  12716. (getSegment): Rewritten.
  12717. (updateSegment): Rewritten.
  12718. (save): Rewritten.
  12719. (read): Rewritten.
  12720. (finished): Rewritten.
  12721. (getDownloadedSize): Removed.
  12722. (initBitfield): New function.
  12723. (FindSegmentEntryByIndex): New function object.
  12724. (FindSegmentEntryByCuid): New function object.
  12725. (checkoutSegment): New function.
  12726. (onNullBitfield): New function.
  12727. (getSegment): New function(overload).
  12728. (CancelSegment): New function object.
  12729. (cancelSegment): New function.
  12730. (completeSegment): New function.
  12731. (hasSegment): New function.
  12732. (getDownloadLength): New function.
  12733. * src/FtpInitiateConnectionCommand.cc
  12734. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12735. * src/Segment.h: Rewritten.
  12736. * src/Segment.cc (operator<<): New function.
  12737. * src/HttpDownloadCommand.h
  12738. (prepareForNextSegment): New function.
  12739. * src/Request.cc
  12740. (resetUrl): Made segment null.
  12741. * src/DownloadEngine.cc
  12742. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12743. * src/HttpProxyRequestCommand.h
  12744. (executeInternal): Pass the reference of segment.
  12745. * src/DownloadCommand.cc
  12746. (executeInternal): Rewritten the code related to Segment.
  12747. (prepareForRetry): Removed.
  12748. (prepareForNextSegment): Rewritten.
  12749. * src/FtpTunnelResponseCommand.h
  12750. (executeInternal): Pass the reference of segment.
  12751. To add HTTP 1.1 persistent connection support(experimental)
  12752. * src/HttpRequestCommand.cc
  12753. (executeInternal): Disable keep alive if it is disabled by
  12754. configuration.
  12755. * src/Request.h
  12756. (keepAlive): New variable.
  12757. (isKeepAlive): New function.
  12758. (setKeepAlive): New function.
  12759. * src/pref.h
  12760. (PREF_HTTP_KEEP_ALIVE): New definition.
  12761. * src/HttpResponseCommand.cc
  12762. (executeInternal): Check the remote server supports keep alive.
  12763. * src/HttpConnection.cc
  12764. (createRequest): Send "Connection: close" only if keep alive is
  12765. disabled.
  12766. * src/main.cc
  12767. (main):
  12768. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12769. To add max download speed limit:
  12770. * src/pref.h
  12771. (PREF_MAX_SPEED_LIMIT): New definition.
  12772. * src/PeerInteractionCommand.cc
  12773. (executeInternal): Added max download speed limit. Not tested yet.
  12774. * src/SegmentMan.h
  12775. (PeerStats): New type definition.
  12776. (peerStats): New variable.
  12777. (registerPeerStat): New function.
  12778. (FindPeerStat): New function object.
  12779. (getPeerStat): New function.
  12780. (calculateDownloadSpeed): New function.
  12781. * src/SpeedCalc.h: New class.
  12782. * src/SpeedCalc.cc: New class.
  12783. * src/main.cc
  12784. (main):
  12785. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12786. download speed is not restricted).
  12787. * src/PeerStat.h: New class.
  12788. * src/SegmentMan.cc
  12789. (registerPeerStat): New function.
  12790. (calculateDownloadSpeed): New function.
  12791. * src/DownloadCommand.cc
  12792. (STARTUP_IDLE_TIME): New definition.
  12793. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12794. downloadStart.
  12795. (~DownloadCommand): Call peerStat->downloadStop.
  12796. (executeInternal): Added download speed limitter. Rewritten lowest
  12797. speed limitter.
  12798. * src/HttpConnection.cc
  12799. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12800. * src/AbstractCommand.cc
  12801. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12802. Added hostname to the error message.
  12803. * src/ConsoleDownloadEngine.cc
  12804. (calculateStatistics): Initialize psize with dlSize.
  12805. * src/PieceMessage.cc
  12806. (receivedAction): Do not call peerInteraction->abortPiece here.
  12807. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12808. * src/BitfieldMan.h
  12809. (clearAllUseBit): New function.
  12810. (setAllUseBit): New function.
  12811. * src/BitfieldMan.cc
  12812. (clearAllBit): Do not clear useBitfield here.
  12813. (clearAllUseBit): New function.
  12814. (setAllUseBit): New function.
  12815. * src/Piece.cc
  12816. (clearAllBlock): Call bitfield->clearAllUseBit().
  12817. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12818. To make filename URL-decoded:
  12819. * src/HttpResponseCommand.h: Updated doc.
  12820. * src/HttpResponseCommand.cc
  12821. (determinFilename): Made filename URL-decoded.
  12822. * src/FtpInitiateConnectionCommand.cc
  12823. (executeInternal): Made filename URL-decoded.
  12824. * src/Util.h (urldecode): New function.
  12825. * src/Util.cc (urldecode): New function.
  12826. To fix a bug that caused assertion failure in ares_strerror:
  12827. * src/NameResolver.cc (callback): Fixed the bug.
  12828. * Release 0.7.3
  12829. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12830. To add --seed-time and --seed-ratio command-line option:
  12831. * src/Option.h (getAsDouble): New function.
  12832. * src/Option.cc (getAsDouble): New function.
  12833. * src/SeedCheckCommand.h: New class.
  12834. * src/SeedCheckCommand.cc: New class.
  12835. * src/DownloadEngineFactory.cc
  12836. (SeedCheckCommand.h): Included.
  12837. (UnionSeedCriteria.h): Included.
  12838. (TimeSeedCriteria.h): Included.
  12839. (ShareRatioSeedCriteria.h): Included.
  12840. (newTorrentConsoleEngine): Added the processing of seed option.
  12841. * src/SeedCriteria.h: New class.
  12842. * src/ShareRatioSeedCriteria.h: New class.
  12843. * src/TimeSeedCriteria.h: New class.
  12844. * src/UnionSeedCriteria.h: New class.
  12845. * src/prefs.h
  12846. (PREF_SEED_TIME): New definition.
  12847. (PREF_SEED_RATIO): New definition.
  12848. * src/main.cc
  12849. (showUsage): Added --seed-time and --seed-ratio option.
  12850. (main): Added --seed-time and --seed-ratio option.
  12851. Made default log file name "/dev/null".
  12852. * src/SharedHandle.h
  12853. (SharedHandle): Copy constructor. Made it assignable from the
  12854. SharedHandle of the subclasses.
  12855. (operator=): Made it assignable from the SharedHandle of the
  12856. subclasses.
  12857. (getRefCount): New function.
  12858. To add notice log level and the switch to write log to stdout. This
  12859. switch is configurable per log level.
  12860. * src/Logger.h
  12861. (notice): New function.
  12862. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12863. constant.
  12864. * src/LogFactory.cc
  12865. (getInstance): The use of NullLogger was removed. A log message with
  12866. notice log level was made written to stdout along with log file.
  12867. * src/NullLogger.h
  12868. (notice): New function.
  12869. * src/SimpleLogger.h
  12870. (writeHeader): Added the 'file' argument.
  12871. (writeLog): Added the 'file' argument.
  12872. (writeFile): New function.
  12873. (stdoutField): New variable.
  12874. (SimpleLogger): Removed the default constructor.
  12875. (SimpleLogger): Made the default value of logfile 0.
  12876. (debug): Added 'virtual' keyword.
  12877. (info): Added 'virtual' keyword.
  12878. (warn): Added 'virtual' keyword.
  12879. (error): Added 'virtual' keyword.
  12880. (notice): New function.
  12881. (setStdout): New function.
  12882. * src/SimpleLogger.cc
  12883. (WRITE_LOG): Replaced writeLog with writeFile.
  12884. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12885. (SimpleLogger): Removed the default constructor.
  12886. (setStdout): New function.
  12887. (writeLog): Added the handling of NOTICE log level.
  12888. (writeFile): New function.
  12889. (notice): New function.
  12890. * src/TorrentMan.h: Updated doc.
  12891. * src/BitfieldMan.h: Updated doc.
  12892. * src/TrackerWatcherCommand.cc
  12893. (execute): Return true if error occurred in the request to the tracker
  12894. and halt is requested.
  12895. * src/TrackerUpdateCommand.cc
  12896. (execute): Return true if error occurred in the request to the tracker
  12897. and halt is requested.
  12898. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12899. DownloadEngine:
  12900. * src/TorrentConsoleDownloadEngine.h
  12901. (onSelectiveDownloadingCompletes): Removed.
  12902. * src/TorrentConsoleDownloadEngine.cc
  12903. (onSelectiveDownloadingCompletes): Removed.
  12904. * src/TorrentDownloadEngine.h
  12905. (onEndOfRun): Added 'virtual' keyword.
  12906. (afterEachIteration): Removed.
  12907. (onSelectiveDownloadingCompletes): Removed.
  12908. * src/TorrentDownloadEngine.cc
  12909. (onEndOfRun): Removed filenameFixed.
  12910. (afterEachIteration): Removed.
  12911. * src/TorrentMan.cc
  12912. (completePiece): Call onDownloadComplete here.
  12913. (onDownloadComplete): Added 2 log messages.
  12914. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12915. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12916. * src/NameResolver.h: Added the prototype declaration of callback().
  12917. To support c-ares library:
  12918. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12919. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12920. * src/FtpInitiateConnectionCommand.h:
  12921. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12922. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12923. * src/HttpInitiateConnectionCommand.h:
  12924. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12925. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12926. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12927. #1542285 by tizianomueller)
  12928. * src/HttpInitiateConnectionCommand.cc:
  12929. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12930. * src/FtpInitiateConnectionCommand.cc:
  12931. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12932. * src/DownloadEngine.h:
  12933. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12934. * src/DownloadEngine.cc:
  12935. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12936. To fix the bug that causes compilation failure with metalink-support
  12937. disabled(bug#1543587):
  12938. * src/main.cc: Fixed with the patch by tizianomueller.
  12939. * Release 0.7.2
  12940. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12941. * src/main.cc
  12942. (main): Added a message to inform users that aria2 is starting to
  12943. verify checksum.
  12944. * src/RequestInfo.cc
  12945. (printDownloadAbortMessage): Added a message to inform users that
  12946. transfer can be resumed.
  12947. * src/FeatureConfig.cc
  12948. (FEATURE_ASYNC_DNS): New definition.
  12949. (FeatureConfig): Added aysnc DNS entry.
  12950. To replace CommandUuid with Command* in SocketEntry and
  12951. NameResolverEntry:
  12952. * src/DownloadEngine.h
  12953. (CommandUuids): Removed.
  12954. (SocketEntry::commandUuid): Removed.
  12955. (SocketEntry::command): New variable.
  12956. (SocketEntry::SocketEntry): Updated.
  12957. (SocketEntry::operator==): Updated.
  12958. (NameResolverEntry::commandUuid): Removed.
  12959. (NameResolverEntry::command): New variable.
  12960. (NameResolverEntry::NameResolverEntry): Updated.
  12961. (NameResolverEntry::operator==): Updated.
  12962. (waitData): Changed the argument type.
  12963. (addSocketForReadCheck): Changed the argument type.
  12964. (deleteSocketForReadCheck): Changed the argument type.
  12965. (addSocketForWriteCheck): Changed the argument type.
  12966. (deleteSocketForWriteCheck): Changed the argument type.
  12967. (addNameResolverCheck): Changed the argument type.
  12968. (deleteNameResolverCheck): Changed the argument type.
  12969. * src/DownloadEngine.cc
  12970. (FindCommand): Removed.
  12971. (run): Removed activeUuid. Added activeCommands instead.
  12972. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12973. (AccumulateActiveCommand): New function object.
  12974. (waitData): Use AccumulateActiveCommand.
  12975. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12976. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12977. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12978. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12979. (addNameResolverCheck): Use Command instead of CommandUuid.
  12980. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12981. * src/AbstractCommand.cc
  12982. (disableReadCheckSocket): Updated according to the changes in
  12983. DownloadEngine.
  12984. (setReadCheckSocket): Updated according to the changes in
  12985. DownloadEngine.
  12986. (disableWriteCheckSocket): Updated according to the changes in
  12987. DownloadEngine.
  12988. (setWriteCheckSocket): Updated according to the changes in
  12989. DownloadEngine.
  12990. (setNameResolverCheck): Updated according to the changes in
  12991. DownloadEngine.
  12992. (disableNameResolverCheck): Updated according to the changes in
  12993. DownloadEngine.
  12994. * src/AbstractCommand.cc
  12995. (disableReadCheckSocket): Updated according to the changes in
  12996. DownloadEngine.
  12997. (setReadCheckSocket): Updated according to the changes in
  12998. DownloadEngine.
  12999. (disableWriteCheckSocket): Updated according to the changes in
  13000. DownloadEngine.
  13001. (setWriteCheckSocket): Updated according to the changes in
  13002. DownloadEngine.
  13003. * release 0.7.1
  13004. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13005. To handle the case where some BitTorrent tracker requires all letters
  13006. except for [A-Za-z0-9] is URL encoded.
  13007. * src/Util.h
  13008. (torrentUrlencode): New function.
  13009. * src/Util.cc
  13010. (ctype.h): Included.
  13011. (torrentUrlencode): New function.
  13012. * src/TrackerWatcherCommand.cc
  13013. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13014. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13015. To add asynchronous DNS support(libares):
  13016. * src/AbstractCommand.h
  13017. (setNameResolverCheck): New function.
  13018. (disableNameResolverCheck): New function
  13019. (resolveHostname): New function.
  13020. * src/AbstractCommand.cc
  13021. (setNameResolverCheck): New function.
  13022. (disableNameResolverCheck): New function
  13023. (resolveHostname): New function.
  13024. * src/FtpInitiateConnectionCommand.h
  13025. (nameResolver): New function.
  13026. * src/FtpInitiateConnectionCommand.cc
  13027. (Util.h): Included.
  13028. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13029. disableWriteCheckSocket.
  13030. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13031. (executeInternal): Added async DNS support.
  13032. * src/HttpInitiateConnectionCommand.h
  13033. (nameResolver): New function.
  13034. * src/HttpInitiateConnectionCommand.cc
  13035. (DlRetryEx.h): Included.
  13036. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13037. disableWriteCheckSocket.
  13038. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13039. (executeInternal): Added async DNS support.
  13040. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13041. by extern "C" declaration.
  13042. * src/NameResolver.cc: New class.
  13043. * src/Util.h:
  13044. (isNumberAndDotsNotation): New function
  13045. * src/Util.cc
  13046. (isNumberAndDotsNotation): New function.
  13047. * src/DownloadEngine.h
  13048. (NameResolver.h): Included.
  13049. (NameResolverEntry): New class.
  13050. (NameResolverEntries): New type definition.
  13051. (addNameResolverCheck): New function.
  13052. (deleteNameResolverCheck): New function.
  13053. * src/DownloadEngine.cc
  13054. (run): Initialize cp with 0.
  13055. (SetDescriptor::operator()): Added for NameResolverEntry.
  13056. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13057. (waitData): Check nameResolver entries.
  13058. (updateFdSet): Update fds in nameResolver entries.
  13059. (addNameResolverCheck): New function.
  13060. (deleteNameResolverCheck): new function.
  13061. * src/PeerInteractionCommand.cc
  13062. (executeInternal): Fixed wrong socket handling.
  13063. * src/main.cc
  13064. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13065. * src/Util.cc
  13066. (fileChecksum): Removed the call to ctx.digestReset().
  13067. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13068. * po/ru.po: Azamat sent me Russian translation.
  13069. * src/FtpNegotiateCommand.cc
  13070. (recvGreeting): Call disableWriteCheckSocket just after
  13071. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13072. (recvRetr): Recognized status code 125 as a acceptable response code.
  13073. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13074. case-insesitive filesystem(BUG#1531057).
  13075. * src/Time.h: Renamed as TimeA2.h.
  13076. * src/Time.cc: Renamed as TimeA2.cc.
  13077. * src/TimeA2.h: New class.
  13078. * src/TimeA2.cc: New class.
  13079. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13080. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13081. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13082. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13083. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13084. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13085. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13086. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13087. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13088. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13089. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13090. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13091. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13092. * release 0.7.0
  13093. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13094. * src/PeerChokeCommand.h
  13095. (PeerChokeCommand): Rearranged the arguments.
  13096. * src/PeerChokeCommand.cc
  13097. (PeerChokeCommand): Rearranged the arguments.
  13098. * src/MetalinkEntry.h
  13099. (Checksum.h): Included.
  13100. (md5): Removed.
  13101. (sha1): Removed.
  13102. (checksum): New variable.
  13103. (operator=): Updated.
  13104. (check): Removed.
  13105. * src/prefs.h
  13106. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13107. (PREF_FOLLOW_TORRENT): New definition.
  13108. (PREF_SELECT_FILE): New definition.
  13109. (PREF_FOLLOW_METALINK): New definition.
  13110. * src/MetalinkResource.h
  13111. (TYPE_HTTPS): Added to enum TYPE.
  13112. * src/TorrentMan.cc
  13113. (~TorrentMan): Rewritten.
  13114. * src/MultiDiskWriter.cc
  13115. (MultiDiskAdaptor): Updated according to the changes in
  13116. MessageDigestContext.
  13117. (~MultiDiskAdaptor): Updated according to the changes in
  13118. MessageDigestContext.
  13119. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13120. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13121. * src/Util.h
  13122. (fileChecksum): Updated according to the changes in
  13123. MessageDigestContext.
  13124. * src/Util.cc
  13125. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13126. (fileChecksum): Updated according to the changes in
  13127. MessageDigestContext.
  13128. * src/messageDigest.h: Rewritten.
  13129. * src/MetalinkEntry.cc
  13130. (check): Removed.
  13131. (Supported): Updated.
  13132. (dropUnsupportedResource): Fixed a memory leak.
  13133. * src/ShaVisitor.cc
  13134. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13135. (~ShaVisitor): Updated according to the changes in
  13136. MessageDigestContext.
  13137. (visit): Updated according to the changes in MessageDigestContext.
  13138. * src/main.cc
  13139. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13140. command-line option added.
  13141. * src/DownloadEngine.h
  13142. (SocketEntry): New class.
  13143. (SocketEntries): New definition.
  13144. (PairFind): Removed.
  13145. (SockCmdMap): Removed.
  13146. * src/DownloadEngine.cc
  13147. (DownloadEngine): Rewritten.
  13148. (~DownloadEngine): Rewritten.
  13149. (run): Renamed activeCommandUuids as activeUuids.
  13150. (SetDescriptor): Rewritten.
  13151. (AccumulateActiveCommandUuid): Removed.
  13152. (AccumulateActiveUuid): New function object.
  13153. (waitData): Rewritten.
  13154. (updateFdSet): Rewritten.
  13155. (addSocket): Rewritten.
  13156. (deleteSocket): Rewritten.
  13157. (addSocketForReadCheck): Rewritten.
  13158. (deleteSocketForReadCheck): Rewritten.
  13159. (addSocketForWriteCheck): Rewritten.
  13160. (deleteSocketForWriteCheck): Rewritten.
  13161. * src/Xml2MetalinkProcessor.cc
  13162. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13163. * src/DownloadCommand.cc
  13164. (executeInternal): Added the check routine for lowest speed limit.
  13165. * src/AbstractDiskWriter.cc
  13166. (AbstractDiskWriter): Updated according to the changes in
  13167. MessageDigestContext.
  13168. (~AbstractDiskWriter): Updated according to the changes in
  13169. MessageDigestContext.
  13170. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13171. * src/RequestInfo.h: New class.
  13172. * src/UrlRequestInfo.h: New class.
  13173. * src/UrlRequestInfo.cc: New class.
  13174. * src/TorrentRequestInfo.h: New class.
  13175. * src/TorrentRequestInfo.cc: New class.
  13176. * src/MetalinkRequestInfo.h: New class.
  13177. * src/MetalinkRequestInfo.cc: New class.
  13178. * src/Checksum.h: New class.
  13179. * src/DownloadEngineFactory.h: New class.
  13180. * src/DownloadEngineFactory.cc: New class.
  13181. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13182. * src/Option.h
  13183. (getAsBool): New function.
  13184. * src/Option.cc
  13185. (prefs.h): Included.
  13186. (defined): 0-length value is now recognized as undefined.
  13187. (getAsInt): Rewritten.
  13188. (getAsLLInt): Rewritten.
  13189. (getAsBool): New function.
  13190. * src/FeatureConfig.h: Rewritten.
  13191. * src/FeatureConfig.cc: Rewritten.
  13192. * src/prefs.h
  13193. (PREF_STDOUT_LOG): New definition.
  13194. (PREF_LOG): New definition.
  13195. (PREF_DIR): New definition.
  13196. (PREF_OUT): New definition.
  13197. (PREF_SPLIT): New definition.
  13198. (PREF_DAEMON): New definition.
  13199. (PREF_REFERER): New definition.
  13200. (PREF_TORRENT_FILE): New definition.
  13201. (PREF_LISTEN_PORT): New definition.
  13202. (PREF_METALINK_FILE): New definition.
  13203. (PREF_METALINK_VERSION): New definition.
  13204. (PREF_METALINK_LANGUAGE): New definition.
  13205. (PREF_METALINK_OS): New definition.
  13206. (PREF_METALINK_SERVERS): New definition.
  13207. * src/main.cc
  13208. (main): Following command-line parameters are now put into Option
  13209. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13210. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13211. metalinkLanguage, metalinkOs, metalinkServers
  13212. To fix the bug that aria2 can not handle http response header properly.
  13213. * src/HttpHeader.cc
  13214. (put): Made name lowercased.
  13215. (defined): Made name lowercased.
  13216. (getFirst): Made name lowercased.
  13217. (get): Made name lowercased.
  13218. (getFirstAsInt): Rewritten.
  13219. (getFirstAsLLInt): Rewritten.
  13220. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13221. * src/TorrentMan.h:
  13222. (advertisePiece): Updated doc.
  13223. (getAdvertisedPieceIndexes): Updated doc.
  13224. (removeAdvertisedPiece); New function.
  13225. * src/TorrentMan.cc
  13226. (FindElapsedHave): New function object.
  13227. (removeAdvertisedPiece): New function.
  13228. * src/HaveEraseCommand.h: New class.
  13229. * src/HaveEraseCommand.cc: New class.
  13230. * src/FeatureConfig.h: New class.
  13231. * src/FeatureConfig.cc: New class.
  13232. * src/Request.h
  13233. (defaultPorts): Removed.
  13234. * src/Request.cc
  13235. (FeatureConfig.h): Included.
  13236. (Request): Removed the statements related to defaultPorts.
  13237. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13238. A default port number is now retrieved from FeatureConfig.
  13239. * src/main.cc
  13240. (HaveEraseCommand.h): Included.
  13241. (showVersion): Added the output of feature list.
  13242. (main): Added HaveEraseCommand to command queue in BitTorrent
  13243. downloading.
  13244. * src/PeerInteractionCommand.h
  13245. (chokeCheckPoint): Commented out.
  13246. (periodicExecPoint): New variable.
  13247. * src/PeerInteractionCommand.cc
  13248. (executeInternal): Following methods are now called in at least every
  13249. 0.5 seconds to reduce CPU usage:
  13250. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13251. checkHave(), sendKeepAlive().
  13252. (checkLongTimePeerChoking): Commented out.
  13253. * src/BitfieldMan.h
  13254. (getNthBitIndex): Changed the method signature.
  13255. (getMissingIndexRandomly): Changed the method signature.
  13256. * src/BitfieldMan.cc
  13257. (getNthBitIndex): Rewritten
  13258. (getMissingIndexRandomly): Rewritten.
  13259. (hasMissingPiece): Rewritten.
  13260. (getMissingIndex): Refactored.
  13261. (getMissingUnusedIndex); Refactored.
  13262. (getMissingIndex): Refactored.
  13263. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13264. * src/PeerMessage.h
  13265. (Piece.h): Included.
  13266. (SharedHandle.h): Included.
  13267. (invalidate): New variable.
  13268. (uploading): New variable.
  13269. (isInvalidate): New function.
  13270. (isUploading): New function.
  13271. (onPush): New function.
  13272. (onChoked): New function.
  13273. (onCanceled): New function.
  13274. (onAbortPiece): New function.
  13275. (PeerMessageHandle): New type definition.
  13276. * src/PeerMessage.cc
  13277. (PeerMessage): Added the initialization for invalidate and uploading.
  13278. * src/CancelMessage.h
  13279. (CancelMessage): Rewritten.
  13280. * src/RejectMessage.h
  13281. (RejectMessage): Rewritten.
  13282. * src/Metalinker.h
  13283. (operator=): Defined.
  13284. * src/MetaEntry.h
  13285. (operator=): Defined.
  13286. * src/MetalinkResource.h
  13287. (operator=): Defined.
  13288. * src/AllowedFastMessage.h
  13289. (AllowedFastMessage): Rewritten.
  13290. * src/HandshakeMessage.h
  13291. (HandshakeMessage): New function(overload).
  13292. * src/HandshakeMessage.cc
  13293. (HandshakeMessage): Rewritten.
  13294. (init): New function.
  13295. * src/HaveMessage.h
  13296. (HaveMessage): Rewritten.
  13297. * src/Time.h
  13298. (operator=): Defined the function body here.
  13299. * src/Time.cc
  13300. (operator=): Removed.
  13301. * src/SocketCore.h
  13302. (operator==): Defined here.
  13303. (operator!=): Defined here.
  13304. (operator<): Defined here.
  13305. * src/SocketCore.cc
  13306. (operator==): Removed.
  13307. (operator<): Removed.
  13308. * src/BitfieldMan.h
  13309. (operator=): Defined the function body here.
  13310. * src/BitfieldMan.cc
  13311. (operator=): Removed.
  13312. * src/TorrentMan.h
  13313. (deleteErrorPeer): Removed.
  13314. (deleteUnusedPeer); New function.
  13315. * src/TorrentMan.cc
  13316. (addPeer): Call deleteUnusedPeer.
  13317. (deleteErrorPeer): Removed.
  13318. (deleteUnusedPeer): New function.
  13319. * src/PeerAbstractCommand.h
  13320. (setNoCheck): New function.
  13321. (noCheck): New variable.
  13322. * src/PeerAbstractCommand.cc
  13323. (PeerAbstractCommand): Added the initialization of noCheck.
  13324. (execute): Added a check for noCheck.
  13325. (setNoCheck): New function.
  13326. * src/Util.h
  13327. (stdio.h): Included.
  13328. * src/Util.cc
  13329. (unistd.h): Included.
  13330. * src/DefaultDiskWriter.cc
  13331. (unistd.h): Included.
  13332. * src/Peer.h
  13333. (operator==): Defined the function body here.
  13334. (operator!=): Defined the function body here.
  13335. * src/Peer.cc
  13336. (operator==): Removed.
  13337. (operator!=): Removed.
  13338. * src/Piece.h
  13339. (Piece): Defined the function body here(copy constructor).
  13340. (operator=): Defined the function body here.
  13341. (operator==): Defined the function body here.
  13342. * src/Piece.cc
  13343. (Piece): Removed(copy constructor).
  13344. (operator=): Removed.
  13345. (operator==): Removed.
  13346. * src/PeerMessageUtil.h
  13347. (ChokeMessage.h): Removed.
  13348. (UnchokeMessage.h): Removed.
  13349. (InterestedMessage.h): Removed.
  13350. (NotInterestedMessage.h): Removed.
  13351. (HaveMessage.h): Removed.
  13352. (BitfieldMessage.h): Removed.
  13353. (RequestMessage.h): Removed.
  13354. (CancelMessage.h): Removed.
  13355. (PieceMessage.h): Removed.
  13356. (HandshakeMessage.h): Removed.
  13357. (KeepAliveMessage.h): Removed.
  13358. (PortMessage.h): Removed.
  13359. (HaveAllMessage.h): Removed.
  13360. (HaveNoneMessage.h): Removed.
  13361. (PeerConnection.h): Removed.
  13362. (HandshakeMessage.h): Included.
  13363. * src/BitfieldMessage.h
  13364. (init): New function.
  13365. (BitfieldMessage): Rewritten.
  13366. (BitfieldMessage): New function(overload).
  13367. * src/RequestSlot.h
  13368. (operator=): Defined the function body here.
  13369. (operator==): Defined the function body here.
  13370. * src/RequestSlot.cc
  13371. (operator=): Removed.
  13372. (operator==): Removed.
  13373. To remove the dependency on the PeerMessage subclass from
  13374. PeerInteraction:
  13375. * src/PeerMessageFactory.h: New class.
  13376. * src/PeerMessageFactory.cc: New class.
  13377. * src/SimplePeerMessage.cc
  13378. (send): If invalidate is true then do nothing.
  13379. * src/PeerInteractionCommand.cc
  13380. (HandshakeMessage.h): Included.
  13381. (KeepAliveMessage.h): Included.
  13382. (ChokeMessage.h): Included.
  13383. (UnchokeMessage.h): Included.
  13384. (HaveMessage.h): Included.
  13385. (executeInternal): Call setNoCheck().
  13386. Removed setWriteCheckSocket(socket).
  13387. * src/PeerInteraction.h
  13388. (ChokeMessage.h): Removed.
  13389. (UnchokeMessage.h): Removed.
  13390. (InterestedMessage.h): Removed.
  13391. (NotInterestedMessage.h): Removed.
  13392. (HaveMessage.h): Removed.
  13393. (BitfieldMessage.h): Removed.
  13394. (RequestMessage.h): Removed.
  13395. (CancelMessage.h): Removed.
  13396. (PieceMessage.h): Removed.
  13397. (HandshakeMessage.h): Removed.
  13398. (KeepAliveMessage.h): Removed.
  13399. (PortMessage.h): Removed.
  13400. (HaveAllMessage.h): Removed.
  13401. (HaveNoneMessage.h): Removed.
  13402. (RejectMessage.h): Removed.
  13403. (AllowedFastMessage.h): Removed.
  13404. (SuggestPieceMessage.h): Removed.
  13405. (PeerMessageFactory.h): Included.
  13406. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13407. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13408. (PeerMessageFactory): New variable.
  13409. (createPeerMessage): Removed.
  13410. (createHandshakeMessage): Removed.
  13411. (setPeerMessageCommonProperty): Removed.
  13412. (addRequestSlot): New function.
  13413. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13414. (getPeerMessageFactory): New function.
  13415. (createRequestMessage): Removed.
  13416. (createCancelMessage): Removed.
  13417. (createPieceMessage): Removed.
  13418. (createHaveMessage): Removed.
  13419. (createChokeMessage): Removed.
  13420. (createUnchokeMessage): Removed.
  13421. (createInterestedMessage): Removed.
  13422. (createNotInterestedMessage): Removed.
  13423. (createBitfieldMessage): Removed.
  13424. (createKeepAliveMessage): Removed.
  13425. (createHaveAllMessage): Removed.
  13426. (createHaveNoneMessage): Removed.
  13427. (createRejectMessage): Removed.
  13428. (createAllowedFastMessage): Removed.
  13429. * src/PeerInteraction.cc
  13430. (PeerInteraction): Allocate PeerMessageFactory here.
  13431. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13432. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13433. PieceMessage::ID.
  13434. (addMessage): Simplified by using PeerMessage::onPush().
  13435. (addRequestSlot): New function.
  13436. (rejectAllPieceMessageInQueue): Simplified by using
  13437. PeerMessage::onChoked().
  13438. (rejectPieceMessageInQueue): Simplified by using
  13439. PeerMessage::onCanceled().
  13440. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13441. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13442. (createHandshakeMessage): Removed.
  13443. (createPeerMessage): Removed.
  13444. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13445. (setPeerMessageCommonProperty): Removed.
  13446. (createRequestMessage): Removed.
  13447. (createCancelMessage): Removed.
  13448. (createPieceMessage): Removed.
  13449. (createHaveMessage): Removed.
  13450. (createChokeMessage): Removed.
  13451. (createUnchokeMessage): Removed.
  13452. (createInterestedMessage): Removed.
  13453. (createNotInterestedMessage): Removed.
  13454. (createBitfieldMessage): Removed.
  13455. (createKeepAliveMessage): Removed.
  13456. (createHaveAllMessage): Removed.
  13457. (createHaveNoneMessage): Removed.
  13458. (createRejectMessage): Removed.
  13459. (createAllowedFastMessage): Removed.
  13460. * src/PieceMessage.h
  13461. (createRejectMessage): New function.
  13462. (PieceMessage): Rewritten.
  13463. (onChoked): New function.
  13464. (onCanceled): New function.
  13465. * src/PieceMessage.cc
  13466. (send): If invalidate is true then do nothing, just return.
  13467. (createRejectMessage): New function.
  13468. (onChoked): New function.
  13469. (onCanceled): New function.
  13470. * src/RequestMessage.h
  13471. (RequestMessage): Rewritten.
  13472. (onPush): New function.
  13473. (onAbortPiece): New function.
  13474. * src/RequestMessage.cc
  13475. (onPush): New function.
  13476. (onAbortPiece): New function.
  13477. Update fd_set when a socket is added or deleted in order to improve
  13478. performance:
  13479. * src/DownloadEngine.h
  13480. (rfdset): New variable.
  13481. (wfdset): New variable.
  13482. (updateFdSet): New function.
  13483. * src/DownloadEngine.cc
  13484. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13485. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13486. (waitData): Copy rfdset and wfdset.
  13487. (updateFdSet): New function.
  13488. (addSocket): Call updateFdSet.
  13489. (deleteSocket): Call updateFdSet.
  13490. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13491. To add the support for Metalink3.0 backward compatible links:
  13492. * src/Request.h
  13493. (SAFE_CHARS): Added '#'.
  13494. (METALINK_MARK): New definition.
  13495. * src/Request.cc
  13496. (parseUrl): Added the support for Metalink3.0 backward compatible
  13497. links.
  13498. etc
  13499. * src/PeerInteraction.cc
  13500. (MsgPushBack): Removed.
  13501. (sendMessages): Use STL copy and back_inserter.
  13502. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13503. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13504. * src/TorrentMan.h
  13505. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13506. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13507. * src/SharedHandle.h: New class.
  13508. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13509. * src/HttpResponseCommand.h
  13510. (HttpResponseCommand): Wrapped Socket.
  13511. * src/SocketCore.h
  13512. (operator==): New function.
  13513. (operator!=): New function.
  13514. (operator<): New function.
  13515. (getSockfd): New function.
  13516. (isOpen): New function.
  13517. (writeData): New function.
  13518. * src/SocketCore.cc
  13519. (operator==): New function.
  13520. (operator!=): New function.
  13521. (operator<): New function.
  13522. * src/AbstractCommand.h
  13523. (socket): Changed its type to SocketHandle.
  13524. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13525. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13526. (disableReadCheckSocket): New function.
  13527. (disableWriteCheckSocket): New function.
  13528. (readCheckTarget): Changed its type to SocketHandle.
  13529. (writeCheckTarget): Changed its type to SocketHandle.
  13530. (AbstractCommand): Replaced Socket with SocketHandle.
  13531. * src/AbstractCommand.cc
  13532. (AbstractCommand): Replaced Socket with SocketHandle.
  13533. (~AbstractCommand): Removed the deallocation for Socket object.
  13534. (disableReadCheckSocket): New function.
  13535. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13536. (disableWriteCheckSocket): New function.
  13537. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13538. * src/HttpDownloadCommand.cc
  13539. (DownloadCommand): Replaced Socket with SocketHandle.
  13540. * src/PeerAbstractCommand.h
  13541. (socket): Changed its type to SocketHandle.
  13542. (peer): Changed its type to PeerHandle.
  13543. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13544. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13545. (disableReadCheckSocket): New function.
  13546. (disableWriteCheckSocket): New function.
  13547. (readCheckTarget): Changed its type to SocketHandle.
  13548. (writeCheckTarget): Changed its type to SocketHandle.
  13549. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13550. Replaced Peer with PeerHandle.
  13551. * src/HttpRequestCommand.cc
  13552. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13553. Use disableReadCheckSocket.
  13554. * src/PeerInitiateConnectionCommand.h
  13555. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13556. * src/PeerChokeCommand.cc
  13557. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13558. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13559. (execute): Use PeerHandle.
  13560. * src/PeerConnection.h
  13561. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13562. (socket): Changed its type to SocketHandle.
  13563. (PeerConnection): Replaced Socket with SocketHandle.
  13564. * src/PeerConnection.cc
  13565. (PeerConnection): Replaced Socket with SocketHandle.
  13566. * src/PeerInteractionCommand.h
  13567. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13568. Replaced Peer with PeerHandle.
  13569. * src/PeerInteractionCommand.cc
  13570. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13571. Replaced Peer with PeerHandle.
  13572. (executeInternal): Use disableWriteCheckSocket.
  13573. Use HandshakeMessageHandle.
  13574. (receiveMessages): Use PeerMessageHandle.
  13575. (prepareForNextPeer): Use PeerHandle.
  13576. * src/HttpProxyRequestCommand.h
  13577. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13578. * src/HttpResponseCommand.cc
  13579. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13580. * src/TorrentMan.cc
  13581. (nullPeer): Added external reference.
  13582. (~TorrentMan): Removed the deallocation of the elements of peers.
  13583. (addPeer): Rewritten.
  13584. (isPeerAvailable): Use nullPeer.
  13585. (deleteOldpeers): Replaced with deleteErrorPeer.
  13586. (deleteErrorPeer): New function.
  13587. (getPeer): Use PeerHandle and nullPeer.
  13588. (hasMissingPiece): Replaced Peer with PeerHandle.
  13589. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13590. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13591. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13592. (getMissingPiece): Replaced Peer with PeerHandle.
  13593. * src/FtpNegotiateCommand.cc
  13594. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13595. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13596. (recvGreeting): Use disableWriteCheckSocket.
  13597. (recvPasv): Removed the allocation of Socket.
  13598. Use disableReadCheckSocket.
  13599. (sendRestPasv): Use disableWriteCheckSocket.
  13600. (recvRetr): Changed assertion.
  13601. * src/PeerInteraction.h
  13602. (SharedHandle.h): Included SharedHandle.h.
  13603. (PeerMessageHandle): New type definition.
  13604. (HandshakeMessageHandle): New type definition.
  13605. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13606. (peer): Changed its type to PeerHandle.
  13607. (createHandshakeMessage): Replaced HandshakeMessage with
  13608. HandshakeMessageHandle.
  13609. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13610. (PeerInteraction): Replaced Peer with PeerHandle.
  13611. Replaced Socket with SocketHandle.
  13612. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13613. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13614. (receiveHandshake): Replaced HandshakeMessage with
  13615. HandshakeMessageHandle.
  13616. * src/PeerInteraction.cc
  13617. (PeerInteraction): Replaced Peer with PeerHandle.
  13618. Replaced Socket with SocketHandle.
  13619. (~PeerInteraction): Removed the deallocation of the elements of
  13620. messageQueue.
  13621. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13622. (isSendingMessageInProgress): Replaced PeerMessage with
  13623. PeerMessageHandle.
  13624. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13625. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13626. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13627. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13628. (abortPiece): Use PeerMessageHandle.
  13629. (receiveHandshake): Replaced HandshakeMessage with
  13630. HandshakeMessageHandle. Removed try-catch block.
  13631. (createHandshakeMessage): Replaced HandshakeMessage with
  13632. HandshakeMessageHandle.
  13633. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13634. Removed try-catch block.
  13635. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13636. * src/HttpProxyResponseCommand.cc
  13637. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13638. * src/FtpTunnelResponseCommand.h
  13639. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13640. * src/HttpConnection.cc
  13641. (HttpConnection): Replaced Socket with SocketHandle.
  13642. * src/PeerAbstractCommand.cc
  13643. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13644. (~PeerAbstractCommand): Removed the deallocation of socket.
  13645. Use disableReadCheckSocket, disableWriteCheckSocket.
  13646. (disableReadCheckSocket): New function.
  13647. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13648. (disableWriteCheckSocket): New function.
  13649. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13650. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13651. * src/FtpTunnelRequestCommand.cc
  13652. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13653. (~FtpTunnelRequestCommand): Corrected indentation.
  13654. * src/DownloadCommand.h
  13655. (DownloadCommand): Replaced Socket with SocketHandle.
  13656. * src/PeerListenCommand.cc
  13657. (PeerListenCommand): Removed the initialization of socket.
  13658. (~PeerListenCommand): Removed the deallocation of socket.
  13659. (bindPort): Use SocketHandle.
  13660. (execute): Use SocketHandle and PeerHandle.
  13661. * src/FtpDowndloadCommand.cc
  13662. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13663. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13664. * src/main.cc
  13665. (main): Corrected indentation.
  13666. * src/HttpInitiateConnectionCommand.cc
  13667. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13668. (executeInternal): Removed the allocation of socket.
  13669. * src/HttpRequestCommand.h
  13670. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13671. * src/FtpNegotiationCommand.h
  13672. (dataSocket): Changed its type to SocketHandle.
  13673. (serverSocket): Changed its type to SocketHandle.
  13674. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13675. * src/TorrentMan.h
  13676. (MAX_PEER_UPDATE): Removed.
  13677. (MAX_PEERS): New definition.
  13678. (Peers): The element is now of type PeerHandle.
  13679. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13680. (getPeer): Replaced Peer with PeerHandle.
  13681. (deleteOldErrorPeers): Removed.
  13682. (deleteErrorPeer): New function.
  13683. (hasMissingPiece): Replaced Peer with PeerHandle.
  13684. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13685. (getMissingPiece): Replaced Peer with PeerHandle.
  13686. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13687. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13688. (addActivePeer): Replaced Peer with PeerHandle.
  13689. (deleteActivePeer): Replaced Peer with PeerHandle.
  13690. Added a check for the return value of find.
  13691. * src/FtpTunnelResponseCommand.cc
  13692. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13693. * src/FtpInitiateConnectionCommand.cc
  13694. (executeInternal): Removed the allocation of socket.
  13695. * src/DownloadEngine.h
  13696. (Sockets): An element is now of type SocketHandle.
  13697. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13698. (CommandUuids): New type definition.
  13699. (rsockets): Changed its type to SockCmdMap.
  13700. (wsockets): Changed its type to SockCmdMap.
  13701. (addSocket): Rewritten.
  13702. (deleteSocket): Rewritten.
  13703. (addSocketForReadCheck): Rewritten.
  13704. (deleteSocketForReadCheck): Rewritten.
  13705. (addSocketForWriteCheck): Rewritten.
  13706. (deleteSocketForWriteCheck): Rewritten.
  13707. (PairFind): New template class.
  13708. * src/HttpDownloadCommand.h
  13709. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13710. * src/FtpConnection.cc
  13711. (FtpConnection): Replaced Socket with SocketHandle.
  13712. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13713. block.
  13714. * src/InitiateConnectionCommandFactory.cc
  13715. (DlAbortEx.h): Included DlAbortEx.h.
  13716. (createInitiateConnectionCommand): Throw exception if the protocol of
  13717. requested URI is not supported.
  13718. * src/Peer.cc
  13719. (nullPeer): Changed its type to PeerHandle.
  13720. (operator==): New function.
  13721. (operator!=): New function.
  13722. * src/Peer.h
  13723. (SharedHandle.h): Included SharedHandle.h.
  13724. (operator==): New function.
  13725. (operator!=): New function.
  13726. (Peer): Added the default constructor.
  13727. Use resetStatus() to initialize member variables.
  13728. (nullPeer): Removed.
  13729. * src/TrackerUpdateCommand.cc
  13730. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13731. with MIN_PEERS.
  13732. * src/PeerListenCommand.h
  13733. (socket): Changed its type to SocketHandle.
  13734. * src/Command.h
  13735. (CommandUuid): New type definition.
  13736. (uuid): New variable.
  13737. (uuidGen): New variable.
  13738. (Command): Added the initialization of uuid.
  13739. (getUuid): New function.
  13740. * src/Socket.h
  13741. (Socket): Removed.
  13742. (SocketHandle): New type definition.
  13743. * src/DownloadEngine.h
  13744. (FindCommand): New function object.
  13745. (run): The portion of socket check was rewritten.
  13746. (SetDescriptor): New function object.
  13747. (AccumulateActiveCommandUuid): New function object.
  13748. (waitData): Rewritten.
  13749. (addSocket): Rewritten.
  13750. (deleteSocket): Rewritten.
  13751. (addSocketForReadCheck): Rewritten.
  13752. (addSocketForWriteCheck): Rewritten.
  13753. (deleteSocketForReadCheck): Rewritten.
  13754. (deleteSocketForWriteCheck): Rewritten.
  13755. * src/HttpProxyResponseCommand.h
  13756. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13757. * src/HttpConnection.h
  13758. (socket): Changed its type to SocketHandle.
  13759. (HttpConnection): Replaced Socket with SocketHandle.
  13760. * src/PeerInitiateConnectionCommand.cc
  13761. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13762. (executeInternal): Removed the allocation of socket.
  13763. (prepareForNextPeer): Use PeerHandle.
  13764. * src/PeerMessage.h
  13765. (peer): Changed its type to PeerHandle.
  13766. (getPeer): Replaced Peer with PeerHandle.
  13767. (setPeer): Replaced Peer with PeerHandle.
  13768. * src/DownloadCommand.cc
  13769. (DownloadCommand): Replaced Socket with SocketHandle.
  13770. * src/FtpConnection.h
  13771. (socket): Changed its type to SocketHandle.
  13772. (FtpConnection): Replaced Socket with SocketHandle.
  13773. (sendPort); Replaced Socket with SocketHandle.
  13774. * src/FtpDowndloadCommand.h
  13775. (ctrlSocket): Changed its type to SocketHandle.
  13776. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13777. * src/HttpProxyRequestCommand.cc
  13778. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13779. * src/FtpTunnelRequestCommand.h
  13780. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13781. etc
  13782. * src/PeerChokeCommand.h
  13783. (setAllPeerChoked): Removed.
  13784. (setAllPeerResetDelta): Removed.
  13785. * src/PeerChokeCommand.cc
  13786. (setAllPeerChoked): Removed.
  13787. (ChokePeer): New function object.
  13788. (setAllPeerResetDelta): Removed.
  13789. (ResetDelta): New function object.
  13790. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13791. (execute): Show download speed when the local node is a seeder.
  13792. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13793. using STL.
  13794. * src/TrackerWatcherCommand.h
  13795. (MIN_PEERS): Removed.
  13796. * src/TorrentMan.cc
  13797. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13798. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13799. To fix the bug that .aria2 file is not saved if downloading is stopped
  13800. by the errors:it results that aria2 can not resume downloading:
  13801. * src/main.cc
  13802. (normalDownload): Added the call to save().
  13803. (main): Added the deletion of the elements in 'reserved'.
  13804. To fix log:
  13805. * src/PeerInteraction.cc
  13806. (receiveHandshake): Fixed log.
  13807. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13808. To improve download performance in BitTorrent:
  13809. * src/TorrentMan.cc
  13810. (getPeer): Check the number of connections. Return nullPeer if
  13811. it is greater than MAX_PEER_UPDATE.
  13812. This code was originally here, but was removed in 0.5.1.
  13813. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13814. To improve the conditional compilation:
  13815. * src/MultiDiskWriter.h:
  13816. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13817. * src/MultiDiskWriter.cc:
  13818. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13819. * src/Util.h:
  13820. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13821. Added ENABLE_BITTORRENT around computeFastSet().
  13822. * src/Util.cc:
  13823. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13824. Added ENABLE_BITTORRENT around computeFastSet().
  13825. * src/messageDigest.h:
  13826. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13827. * src/ShaVisitor.h:
  13828. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13829. * src/ShaVisitor.cc:
  13830. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13831. * src/main.cc:
  13832. Added ENABLE_BITTORRENT around includes and blocks related to
  13833. BitTorrent.
  13834. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13835. digest support is not available.
  13836. * src/AbstractDiskWriter.h:
  13837. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13838. * src/AbstractDiskWriter.cc:
  13839. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13840. * src/MetalinkEntry.cc
  13841. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13842. support is not available.
  13843. To add command-line options for Metalink:
  13844. * src/main.cc:
  13845. Added metalink-version, metalink-language, metalink-os,
  13846. follow-metalink.
  13847. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13848. * src/main.cc: Use these definition.
  13849. * Release 0.6.0
  13850. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13851. To add Metalink support(http/ftp only):
  13852. * src/AbstractCommand.h
  13853. (tryReserved): New function.
  13854. * src/AbstractCommand.cc
  13855. (execute): Call tryReserved().
  13856. (tryReserved): New function.
  13857. * src/Request.h
  13858. (Requests): New type definition.
  13859. * src/SegmentMan.h
  13860. (reserved): New variable.
  13861. * src/Util.h
  13862. (fileChecksum): New function.
  13863. (toUpper): New function.
  13864. (toLower): New function.
  13865. * src/Util.cc
  13866. (messageDigest.h): Included.
  13867. (trim): Trim \r\n\t.
  13868. (fileChecksum): New function.
  13869. (toUpper): New function.
  13870. (toLower): New function.
  13871. * src/main.cc
  13872. (normalDownload): New function.
  13873. (main): Added 2 command-line options: metalink-file,
  13874. metalink-connection. Their usage has not been written yet.
  13875. * src/MetalinkProcessor.h: New class.
  13876. * src/Xml2MetalinkProcessor.h: New class.
  13877. * src/Xml2MetalinkProcessor.cc: New class.
  13878. * src/MetalinkEntry.h: New class.
  13879. * src/MetalinkEntry.cc: New class.
  13880. * src/MetalinkResource.h: New class.
  13881. * src/MetalinkResource.cc: New class.
  13882. To add md5 message digest checking:
  13883. * src/messageDigest.h: Rewritten.
  13884. * src/MultiDiskWriter.cc: Updated according to the changes in
  13885. messageDigest.h.
  13886. * src/ShaVisitor.cc: Updated according to the changes in
  13887. messageDigest.h.
  13888. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13889. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13890. messageDigest.h.
  13891. To fix a bug that causes segfault when the payload length in peer
  13892. message is less than 0:
  13893. * src/PeerConnection.cc:
  13894. (receiveMessage): Fixed the bug.
  13895. * src/PeerMessageUtil.cc
  13896. (checkLength): Throw an exception if length is less than or equals to
  13897. 0.
  13898. To add new interfaces to Base64 encoding/decoding:
  13899. * src/Base64.h
  13900. (part_encode): Changed the method signature.
  13901. (encode): New function(overload).
  13902. (decode): New function(overload).
  13903. * src/Base64.cc
  13904. (part_encode): Rewritten.
  13905. (encode): Rewritten.
  13906. (encode): New function(overload).
  13907. To prevent a peer to download same piece if there is an error in
  13908. checksum:
  13909. * src/PieceMessage.cc
  13910. (receivedAction): Call peerInteraction->abortPiece().
  13911. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13912. To fix the bug that causes same have message is sent many times to
  13913. a single peer.
  13914. * src/Time.cc
  13915. (isNewer): Use Util::difftv().
  13916. * src/Util.cc
  13917. (difftv): Added a cast to (long long int).
  13918. * src/TorrentMan.cc
  13919. (advertisePiece): Use push_front.
  13920. (getAdvertisedPieceIndexes): A performance improvement was made.
  13921. To fix the bug that sends tracker requests without a sleep interval
  13922. when the number of connections is less than 15.
  13923. * src/TrackerWatcherCommand.cc
  13924. (execute): Now the number of connections is not a factor to decide
  13925. whether or not a tracker request should be sent or not.
  13926. * src/Time.h
  13927. (setTimeInSec): New function.
  13928. * src/Time.cc
  13929. (setTimeInSec): New function.
  13930. etc.
  13931. * src/ChokeMessage.cc
  13932. (receivedAction): Removed peer->snubbing = false
  13933. * src/PeerConnection.h
  13934. (receiveHandshake): Updated doc.
  13935. * src/TorrentMan.h
  13936. (getAdvertisedPieceIndexes): Updated the method signature.
  13937. * src/TorrentMan.cc
  13938. (getAdvertisedPieceIndexes): Updated the method signature.
  13939. * src/Time.h
  13940. (getTimeInMicros): Added a cast to (long long int).
  13941. (getTimeInMillis): Added a cast to (long long int).
  13942. * Release 0.5.2
  13943. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13944. To make a listening socket non-block:
  13945. * src/SocketCore.h
  13946. (setNonBlockingMode): New function.
  13947. * src/SocketCore.cc
  13948. (setNonBlockingMode): New function.
  13949. (beginListen): Added a call to setNonBlockingMode().
  13950. (acceptConnection): Call setNonBlockingMode().
  13951. (setBlockingMode): Updated.
  13952. To handle tracker's NAT-checking:
  13953. * src/PeerConnection.cc
  13954. (receiveHandshake): 'msg' param is filled with received data and
  13955. its length is assigned to 'length' param, even if all handshake
  13956. message is not yet received.
  13957. * src/PeerInteractionCommand.cc
  13958. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13959. a new peer connects to localhost.
  13960. A call to peerInteraction->sendHandshake() was removed because
  13961. it is called from peerInteraction->receiveHandshake(true).
  13962. * src/PeerInteraction.h
  13963. (quickReplied): New variable.
  13964. (receiveHandshake): Added an argument.
  13965. * src/PeerInteraction.cc
  13966. (PeerInteraction): Added the initialization of quickReplied.
  13967. (receiveHandshake): Send handshake message as soon as the info hash
  13968. in a handshake message from a peer is correct.
  13969. To change the random part of peer id and key parameter:
  13970. * src/TorrentMan.h
  13971. (key): New variable.
  13972. * src/TorrentMan.cc
  13973. (setupInternal1): Use Util::randomAlpha() to generate random part
  13974. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13975. key is also generated by Util::randomAlpha() and it is now 8 character
  13976. long.
  13977. * src/Util.h
  13978. (randomAlpha): New function.
  13979. * src/Util.cc
  13980. (randomAlpha): New function.
  13981. * src/TrackerWatcherCommand.cc
  13982. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13983. Added no_peer_id=1.
  13984. Set snubbing flag to false when a choke message is received from a
  13985. snubbed peer.
  13986. * src/ChokeMessage.cc
  13987. (receivedAction): Set snubbing flag to false.
  13988. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13989. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13990. * src/SimpleLogger.h (writeHeader): New function.
  13991. * src/SimpleLogger.cc (writeHeader): New function.
  13992. (writeLog): Fixed the bug that causes segfaults if exception message
  13993. contains an unescaped "%" character.
  13994. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13995. when a tracker request fails.
  13996. * src/Request.cc (parseUrl): Query string is now handled properly.
  13997. * Release 0.5.1
  13998. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13999. To add Time class which represents a specific instant in time and
  14000. its precision is microseconds. Time checking procedures were rewritten
  14001. using this object.
  14002. * src/Time.h: New class.
  14003. * src/Time.cc: New class.
  14004. * src/AbstractCommand.h
  14005. (updateCheckPoint): Removed.
  14006. (isTimeoutDetected): Removed.
  14007. (checkPoint): Changed the type to Time.
  14008. (timeout): New variable.
  14009. (setTimeout): New function.
  14010. * src/AbstractCommand.cc
  14011. (AbstractCommand): Removed the initialization of checkPoint.
  14012. Added the initialization of timeout.
  14013. (updateCheckPoint): Removed.
  14014. (isTimeoutDetected): Removed.
  14015. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14016. * src/PeerChokeCommand.h
  14017. (checkPoint): Changed the type to Time.
  14018. * src/PeerChokeCommand.cc
  14019. (PeerChokeCommand): Removed the initialization of checkPoint.
  14020. (execute): Rewritten using Time object.
  14021. * src/TrackerWatcherCommand.h
  14022. (checkPoint): Changed the type to Time.
  14023. * src/TrackerWatcherCommand.cc
  14024. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14025. (execute): Rewritten.
  14026. * src/ConsoleDownloadEngine.h
  14027. (cp): Changed the type to Time.
  14028. (startup): Changed the type to Time.
  14029. * src/ConsoleDownloadEngine.cc
  14030. (initStatistics): Use cp.reset(), startup.reset().
  14031. (calculateStatistics): Rewritten using Time object.
  14032. * src/PeerAbstractCommand.h
  14033. (updateCheckPoint): Removed.
  14034. (isTimeoutDetected): Removed.
  14035. (checkPoint): Changed the type to Time.
  14036. * src/PeerAbstractCommand.cc
  14037. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14038. (updateCheckPoint): Removed.
  14039. (isTimeoutDetected): Removed.
  14040. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14041. * src/PeerInteractionCommand.cc
  14042. (PeerInteractionCommand): Removed the initializations of struct
  14043. timeval variables.
  14044. * src/PeerInteractionCommand.h
  14045. (keepAliveCheckPoint): Changed the type to Time.
  14046. (chokeCheckPoint): Changed the type to Time.
  14047. (freqCheckPoint): Changed the type to Time.
  14048. (haveCheckTime): Changed the type to Time.
  14049. * src/PeerInteractionCommand.cc
  14050. (executeInternal): Rewritten using Time object.
  14051. (detectMessageFlooding): Rewritten using Time object.
  14052. (checkLongTimePeerChoking): Rewritten using Time object.
  14053. (sendKeepAlive): Rewritten using Time object.
  14054. (checkHave): Rewritten using Time object.
  14055. * src/SleepCommand.h
  14056. (checkPoint): Changed the type to Time.
  14057. * src/SleepCommand.cc
  14058. (SleepCommand): Removed the initialization of checkPoint.
  14059. (execute): Rewritten using Time object.
  14060. * src/TorrentAutoSaveCommand.h
  14061. (checkPoint): Changed the type to Time.
  14062. * src/TorrentAutoSaveCommand.cc
  14063. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14064. (execute): Rewritten.
  14065. * src/DownloadCommand.h
  14066. (sw): Changed the type to Time.
  14067. * src/DownloadCommand.cc
  14068. (DownloadCommand): Removed the initialization of sw.
  14069. (executeInternal): Rewritten.
  14070. * src/RequestSlot.h
  14071. (dispatchedTime): Changed the type to Time.
  14072. * src/RequestSlot.cc
  14073. (RequestSlot): Removed the call to setDispatchedTime().
  14074. (setDispatchedTime): Rewirtten.
  14075. (isTimeout): Rewritten.
  14076. (getLatencyInMillis): Rewritten.
  14077. * src/TorrentDownloadEngine.h
  14078. (cp): Changed the type to Time[2].
  14079. (startup): Changed the type to Time.
  14080. * src/TorrentDownloadEngine.cc
  14081. (initStatistics): Rewritten.
  14082. (calculateStatistics): Rewritten.
  14083. * src/DownloadEngine.cc
  14084. (run): Rewritten.
  14085. To detect all attempts to connect to the tracker are failed:
  14086. * src/AbstractCommand.cc
  14087. (execute): Increment e->segmentMan->errors if a command aborted.
  14088. * src/SegmentMan.h
  14089. (errors): New variable.
  14090. * src/SegmentMan.cc
  14091. (SegmentMan): Added the initialization of errors.
  14092. (init): Added the initialization of errors.
  14093. * src/TrackerWatcherCommand.cc
  14094. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14095. request was failed.
  14096. To handle snubbed peers:
  14097. * src/PeerChokeCommand.cc
  14098. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14099. (execute): Snubbed peers don't get unchoked.
  14100. * src/PeerInteraction.h
  14101. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14102. * src/PeerInteraction.cc
  14103. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14104. back the requested 16k block in 60 seconds.
  14105. * src/PieceMessage.cc
  14106. (receivedAction): A peer's snubbed state is cleard if it sends
  14107. the requested 16k block in 60 seconds.
  14108. * src/Peer.h
  14109. (snubbing): New variable.
  14110. * src/Peer.cc
  14111. (resetStatus): Added snubbed = false.
  14112. To fix the bug that causes have message is not sent:
  14113. * src/PeerInteractionCommand.cc
  14114. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14115. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14116. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14117. * src/TorrentMan.h
  14118. (HaveEntry): New class.
  14119. (advertisePiece): Rewritten.
  14120. (getAdvertisedPieceIndexes): Rewritten.
  14121. (Haves): Changed the type.
  14122. (getAdvertisedPieceIndexes): Added an argument.
  14123. Others:
  14124. * src/TorrentMan.h
  14125. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14126. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14127. * src/TorrentMan.cc
  14128. (getPeer): Don't check the number of connections here.
  14129. (setupInternal1): Changed peerId.
  14130. * src/PeerInteractionCommand.h
  14131. (KEEP_ALIVE_INTERVAL): New definition.
  14132. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14133. * src/main.cc
  14134. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14135. * src/DownloadEngine.h: Removed unnecessary header includes.
  14136. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14137. To fix the bug that causes segfaults if a tracker returns a zero-length
  14138. list as "peers":
  14139. * src/TrackerUpdateCommand.cc
  14140. (execute): Added a check to see wether the type of peers is Data*.
  14141. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14142. * Release 0.5.0
  14143. To fix compile issue with gcc3:
  14144. * src/CancelMessage.h
  14145. (ID): Renamed as ID_t
  14146. (ID_t): New enum.
  14147. * src/RejectMessage.h
  14148. (ID): Renamed as ID_t
  14149. (ID_t): New enum.
  14150. * src/SuggestPieceMessage.h
  14151. (ID): Renamed as ID_t
  14152. (ID_t): New enum.
  14153. * src/AllowedFastMessage.h
  14154. (ID): Renamed as ID_t
  14155. (ID_t): New enum.
  14156. * src/PortMessage.h
  14157. (ID): Renamed as ID_t
  14158. (ID_t): New enum.
  14159. * src/HaveNoneMessage.h
  14160. (ID): Renamed as ID_t
  14161. (ID_t): New enum.
  14162. * src/KeepAliveMessage.h
  14163. (ID): Renamed as ID_t
  14164. (ID_t): New enum.
  14165. * src/HaveAllMessage.h
  14166. (ID): Renamed as ID_t
  14167. (ID_t): New enum.
  14168. * src/UnchokeMessage.h
  14169. (ID): Renamed as ID_t
  14170. (ID_t): New enum.
  14171. * src/BitfieldMessage.h
  14172. (ID): Renamed as ID_t
  14173. (ID_t): New enum.
  14174. * src/PieceMessage.h
  14175. (ID): Renamed as ID_t
  14176. (ID_t): New enum.
  14177. * src/RequestMessage.h
  14178. (ID): Renamed as ID_t
  14179. (ID_t): New enum.
  14180. * src/NotInterestedMessage.h
  14181. (ID): Renamed as ID_t
  14182. (ID_t): New enum.
  14183. * src/ChokeMessage.h
  14184. (ID): Renamed as ID_t
  14185. (ID_t): New enum.
  14186. * src/InterestedMessage.h
  14187. (ID): Renamed as ID_t
  14188. (ID_t): New enum.
  14189. * src/HaveMessage.h
  14190. (ID): Renamed as ID_t
  14191. (ID_t): New enum.
  14192. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14193. * src/PeerAbstractCommand.h
  14194. (beforeSocketCheck): Removed.
  14195. * src/PeerAbstractCommand.cc
  14196. Modified in order to call executeInternal() even if socket check
  14197. and upload limit check fail.
  14198. * src/PeerInteractionCommand.h
  14199. (keepAlive): Removed.
  14200. (sendKeepAlive): New function.
  14201. (checkHave): New function.
  14202. (beforeSocketCheck): Removed.
  14203. * src/PeerInteractionCommand.cc
  14204. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14205. calls to checkHave() and sendKeepAlive().
  14206. (keepAlive): Renamed to sendKeepAlive().
  14207. (sendKeepAlive): New function.
  14208. (beforeSocketCheck): Removed.
  14209. (checkHave): New function.
  14210. * src/BitfieldMan.cc
  14211. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14212. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14213. 0.
  14214. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14215. * src/TorrentMan.h
  14216. (UsedPieces): Removed.
  14217. (Pieces): New type definition.
  14218. * src/Piece.h: Updated doc.
  14219. * src/Peer.h
  14220. (totalLength): Removed.
  14221. * src/Peer.cc
  14222. (updateLatency): Fixed the latency calculation.
  14223. * src/TorrentMan.cc
  14224. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14225. than or equal to MAX_PEER_LIST_SIZE.
  14226. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14227. then return false.
  14228. (deleteOldErrorPeers): Rewritten.
  14229. (deleteUsedPiece): Fixed the miss use of STL remove.
  14230. * src/PeerInteraction.h
  14231. (Pieces): Removed.
  14232. (deleteTimeoutRequestSlot): Removed.
  14233. (deleteCompletedRequestSlot): Removed.
  14234. (checkRequestSlot): New function.
  14235. * src/PeerInteraction.cc
  14236. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14237. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14238. (checkRequestSlot): New function.
  14239. * src/DownloadEngine.cc
  14240. (run): Clear activeSockets before calling waitData().
  14241. (waitData): Removed a call to activeSockets.clear().
  14242. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14243. To attempt to handle EINTR:
  14244. * src/SocketCore.cc
  14245. (isReadable): Added EINTR handling.
  14246. (isWritable): Added EINTR handling.
  14247. To improve the performance:
  14248. * src/AbstractCommand.cc
  14249. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14250. * src/PeerInteractionCommand.h
  14251. (receiveMessage): Renamed as receiveMessages().
  14252. (receiveMessages): New function.
  14253. * src/PeerInteractionCommand.cc
  14254. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14255. () function. detectMessageFlooding() is moved here.
  14256. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14257. (). The flooding detection for have message is comment out.
  14258. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14259. Util::difftv().
  14260. (receiveMessage): Renamed as receiveMessages().
  14261. (receiveMessages): New function.
  14262. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14263. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14264. * src/SleepCommand.cc
  14265. (execute): Use Util::difftvsec() instead of Util::difftv().
  14266. * src/BitfieldMan.h
  14267. (getNthBitIndex): New function.
  14268. (hasMissingPiece): New function.
  14269. (getAllMissingIndexes): New function.
  14270. * src/BitfieldMan.cc
  14271. (countSetBit): Rewritten.
  14272. (getNthBitIndex): New function.
  14273. (getMissingIndexRandomly): Rewritten.
  14274. (hasMissingPiece): New function.
  14275. (getAllMissingIndexes): New function.
  14276. * src/TorrentMan.cc
  14277. (hasMissingPiece): New function.
  14278. (deleteUsedPiece): Rewritten using STL.
  14279. * src/PeerInteraction.cc
  14280. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14281. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14282. (addRequests): Updated the number of pending requests.
  14283. * src/PeerAbstractCommand.cc
  14284. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14285. (execute): Returns true if TorrentMan::isHalt() is true.
  14286. Corrected the condition of upload limit checking.
  14287. * src/Util.h
  14288. (countBit): New function.
  14289. * src/Util.cc
  14290. (nbits): New variable.
  14291. (countBit): New function.
  14292. * src/DownloadEngine.h
  14293. (SockCmdMap): New type definition.
  14294. (waitData): Added an argument.
  14295. (addSocket): Added an argument.
  14296. (addSocketForReadCheck): Added an argument.
  14297. (addSocketForWriteCheck): Added an argument.
  14298. * src/DownloadEngine.cc
  14299. (run): Executes only commands whose sockets are ready to read or write.
  14300. All commands are executed in every 1 second.
  14301. (waitData): Calls select() again if it returned
  14302. EINTR.
  14303. (addSocket): Saves socket and command object pair to the map.
  14304. (deleteSocket): Deletes socket and command object pair from the map.
  14305. (addSocketForReadCheck): Added an argument.
  14306. (addSocketForWriteCheck): Added an argument.
  14307. * src/DownloadCommand.cc
  14308. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14309. To send "event=stopped" to the tracker when the application finishes:
  14310. * src/PeerChokeCommand.h
  14311. (checkPoint): New variable.
  14312. * src/PeerChokeCommand.cc
  14313. (PeerChokeCommand): Added the initialization of checkPoint.
  14314. (execute): The interval check is now done by checkPoint, not
  14315. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14316. * src/TorrentMan.h
  14317. (halt): New function.
  14318. (hasMissingPiece): New function.
  14319. (isHalt): New function.
  14320. (setHalt): New function.
  14321. * src/TorrentMan.cc
  14322. (TorrentMan): Added the initialization of halt.
  14323. * src/TorrentAutoSaveCommand.h
  14324. (checkPoint): New variable.
  14325. * src/PeerListenCommand.cc
  14326. (execute): Returns true if TorrentMan::isHalt() is true.
  14327. * src/main.cc
  14328. (setSignalHander): Added flags argument.
  14329. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14330. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14331. Removed printDownloadAbortMessage() after torrent downloading loop.
  14332. * src/TorrentAutoSaveCommand.cc
  14333. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14334. (execute): Returns true if TorrentMan::isHalt() is true.
  14335. The interval check is now done by checkPoint, not SleepCommand.
  14336. * src/TrackerWatcherCommand.cc
  14337. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14338. event=stopped.
  14339. * src/TrackerUpdateCommand.cc
  14340. (prepareForRetry): Do not use SleepCommand here.
  14341. (execute): Returns true if TorrentMan::isHalt() is true.
  14342. Others:
  14343. * src/TorrentMan.cc
  14344. (getMissingPieceIndex): Updated log message.
  14345. * src/PeerInteraction.cc
  14346. (createPeerMessag): Updated log message.
  14347. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14348. To add the ability to download several pieces in mix in a command and
  14349. increase the number of request slots according to request-cancel
  14350. latency:
  14351. * src/PeerInteractionCommand.cc
  14352. (executeInternal): The number of messages to be received at a time
  14353. is increased from 10 to 50.
  14354. * src/LogFactory
  14355. (getInstance): Added NullLogger.
  14356. * src/NullLogger.h: New class.
  14357. * src/BitfieldMan.h
  14358. (getMissingIndex): New function.
  14359. * src/BitfieldMan.cc
  14360. (getMissingIndex): New function.
  14361. * src/TorrentMan.h
  14362. (checkOutPiece): New function.
  14363. (getMissingPieceIndex): New function.
  14364. (getMissingFastPieceIndex): New function.
  14365. (getMissingFastPiece): New function.
  14366. * src/TorrentMan.cc
  14367. (updatePiece): Rewritten using STL.
  14368. (syncPiece): Rewritten using STL.
  14369. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14370. checkOutPiece().
  14371. (getMissingPieceIndex): New function.
  14372. (getMissingFastPieceIndex): New function.
  14373. (getMissingFastPiece): New function.
  14374. (checkOutPiece): New function.
  14375. * src/PeerInteraction.h
  14376. (Pieces): New type definition.
  14377. (piece): Removed.
  14378. (pieces): New variable.
  14379. (getNewPieceAndSendInterest): Added the "piece" argument.
  14380. (abortPiece): Added the "piece" argument.
  14381. (abortAllPieces): New function.
  14382. (isInRequestSlot): New function.
  14383. (hasDownloadPiece): Added the "index" argument.
  14384. (setDownloadPiece): Removed.
  14385. (getDownloadPiece): Added the "index" argument.
  14386. (updatePiece): New function.
  14387. (createRequestMessage): Added the "index" argument.
  14388. * src/PeerInteraction.cc
  14389. (onChoked): Rewritten.
  14390. (abortPiece): Rewirtten.
  14391. (abortAllPieces): New function.
  14392. (deleteTimeoutRequestSlot): Rewritten.
  14393. Clarified code a little bit.
  14394. (deleteCompletedRequestSlot): Rewritten.
  14395. (isInRequestSlot): New function.
  14396. (syncPiece): Rewritten.
  14397. (updatePiece): New function.
  14398. (getNewPieceAndSendInterest): Rewritten.
  14399. (addRequests): Rewritten.
  14400. (getDownloadPiece): Rewritten.
  14401. (hasDownloadPiece): Rewritten.
  14402. (createRequestMessage): Added the "index" argument.
  14403. * src/common.h
  14404. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14405. (DIV_FLOOR): New definition.
  14406. * src/PieceMessage.cc
  14407. (receivedAction): Update request-piece latency here.
  14408. * src/RequestSlot.h
  14409. (getLatencyInMillis): New function.
  14410. * src/RequestSlot.cc
  14411. (isTimeout): Rewritten using getLatencyInMillis.
  14412. (getLatencyInMillis): New function.
  14413. * src/Piece.h
  14414. (operator==): New function.
  14415. (getMissingBlockIndex): New function.
  14416. * src/Piece.cc
  14417. (operator==): New function.
  14418. (getMissingBlockIndex): New function.
  14419. * src/Peer.h
  14420. (DEFAULT_LATENCY): New definition.
  14421. (latency): New variable.
  14422. (updateLatency): New function.
  14423. (getLatency): New function.
  14424. * src/Peer.cc
  14425. (resetStatus): Reset latecy.
  14426. (updateLatency): New function.
  14427. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14428. * src/SocketCore.cc
  14429. (isReadable): Added secure to the condition.
  14430. * src/HttpConnection.cc
  14431. (receiveResponse): Fixed a bug that causes no response header
  14432. exception.
  14433. * src/Peer.h
  14434. (getFastSet): Fixed the return value type.
  14435. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14436. To remove a wait from download loop:
  14437. * src/DownloadEngine.cc
  14438. (run): Comment out shortSleep.
  14439. To rewrite the message handling:
  14440. * src/SimplePeerMessage.h: New class.
  14441. * src/SimplePeerMessage.cc: New class.
  14442. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14443. (msg): New variable.
  14444. (create): New function.
  14445. (send): Removed.
  14446. (getMessage): New function.
  14447. (getMessageLength): New function.
  14448. * src/CancelMessage.cc
  14449. (create): New function.
  14450. (receivedAction): Replaced deleteRequestMessageInQueue with
  14451. rejectPieceMessageInQueue.
  14452. (send): Removed.
  14453. (getMessage): New function.
  14454. (getMessageLength): New function.
  14455. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14456. (msg): New variable.
  14457. (msgLength): New variable.
  14458. (~BitfieldMessage): Deleted msg.
  14459. (send): Removed.
  14460. (getMessage): New function.
  14461. (getMessageLength): New function.
  14462. * src/BitfieldMessage.cc
  14463. (create): New function.
  14464. (send): Removed.
  14465. (getMessage): New function.
  14466. (getMessageLength): New function.
  14467. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14468. (msg): New variable.
  14469. (sendPredicate): New function.
  14470. (onSendComplete): New function.
  14471. (send): Removed.
  14472. (getMessage): New function.
  14473. (getMessageLength): New function.
  14474. (create): New function.
  14475. * src/ChokeMessage.cc
  14476. (create): New function.
  14477. (send): Removed.
  14478. (sendPredicate): New function.
  14479. (getMessage): New function.
  14480. (getMessageLength): New function.
  14481. (onSendComplete): New function.
  14482. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14483. (msg): New variable.
  14484. (send): Removed.
  14485. (getMessage): New function.
  14486. (getMessageLength): New function.
  14487. * src/KeepAliveMessage.cc
  14488. (send): Removed.
  14489. (getMessage): New function.
  14490. (getMessageLength): New function.
  14491. * src/PortMessage.h
  14492. (create): New function.
  14493. (receivedAction): Updated log message.
  14494. * src/PortMessage.cc: New file.
  14495. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14496. (msg): New variable.
  14497. (sendPredicate): New function.
  14498. (onSendComplete): New function.
  14499. (create): New function.
  14500. (send): Removed.
  14501. (getMessage): New function.
  14502. (getMessageLength): New function.
  14503. * src/UnchokeMessage.cc
  14504. (create): New function.
  14505. (send): Removed.
  14506. (sendPredicate): New function.
  14507. (getMessage): New function.
  14508. (getMessageLength): New function.
  14509. (onSendComplete): New function.
  14510. * src/PieceMessage.h
  14511. (leftPieceDataLength): Removed.
  14512. (leftDataLength): New variable.
  14513. (headerSend): New variable.
  14514. (pendingCount): New variable.
  14515. (msgHeader): New variable.
  14516. (sendPieceData): New function.
  14517. (incrementPendingCount): New function.
  14518. (isPendingCountMax): New function.
  14519. (create): New function.
  14520. (getMessageHeader): New function.
  14521. (getMessageHeaderLength): New function.
  14522. * src/PieceMessage.cc
  14523. (create): New function.
  14524. (getMessageHeader): New function.
  14525. (getMessageHeaderLength): New function.
  14526. (send): Rewritten.
  14527. (sendPieceData): New function.
  14528. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14529. (msg): New variable.
  14530. (create): New function.
  14531. (getMessage): New function.
  14532. (getMessageLength): New function.
  14533. * src/HaveMessage.cc
  14534. (create): New function.
  14535. (send): Removed.
  14536. (sendPieceData): New function.
  14537. (getMessage): New function.
  14538. (getMessageLength): New function.
  14539. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14540. (msg): New variable.
  14541. (create): New function.
  14542. (send): Removed.
  14543. (getMessage): New function.
  14544. (getMessageLength): New function.
  14545. * src/RequestMessage.cc
  14546. (create): New function.
  14547. (receivedAction): Added the handling of fast extension.
  14548. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14549. (send): Removed.
  14550. (getMessage): New function.
  14551. (getMessageLength): New function.
  14552. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14553. (msg): New variable.
  14554. (sendPredicate): New function.
  14555. (onSendComplete): New function.
  14556. (create): New function.
  14557. (getMessage): New function.
  14558. (getMessageLength): New function.
  14559. * src/InterestedMessage.cc
  14560. (create): New function.
  14561. (send): Removed.
  14562. (sendPieceData): New function.
  14563. (getMessage): New function.
  14564. (getMessageLength): New function.
  14565. (onSendComplete): New function.
  14566. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14567. (msg): New variable.
  14568. (sendPieceData): New function.
  14569. (onSendComplete): New function.
  14570. (create): New function.
  14571. (send): Removed.
  14572. (getMessage): New function.
  14573. (getMessageLength): New function.
  14574. * src/NotInterestedMessage.cc
  14575. (create): New function.
  14576. (send): Removed.
  14577. (sendPredicate): New function.
  14578. (getMessage): New function.
  14579. (getMessageLength): New function.
  14580. (onSendComplete): New function.
  14581. * src/AllowedFastMessage.h: New class.
  14582. * src/AllowedFastMessage.cc: New class.
  14583. * src/RejectMessage.h: New class.
  14584. * src/RejectMessage.cc: New class.
  14585. * src/SuggestPieceMessage.h: New class.
  14586. * src/SuggestPieceMessage.cc: New class.
  14587. * src/HaveAllMessage.h: New class.
  14588. * src/HaveAllMessage.cc: New class.
  14589. * src/HaveNoneMessage.h: New class.
  14590. * src/HaveNoneMessage.cc: New class.
  14591. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14592. (msg): New variable.
  14593. (reserved): New variable.
  14594. (create): New function.
  14595. (getId): New function.
  14596. (receivedAction): New function.
  14597. (getMessage): New function.
  14598. (getMessageLength): New function.
  14599. (isFastExtensionSupported): New function.
  14600. * src/HandshakeMessage.cc
  14601. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14602. (create): New function.
  14603. (getMessage): New function.
  14604. (getMessageLength): New function.
  14605. (toString): Added the output of reserved field.
  14606. (check): Added const qualifier.
  14607. (isFastExtensionSupported): New function.
  14608. * src/PeerMessageUtil.h
  14609. (createChokeMessage): Removed.
  14610. (createUnchokeMessage): Removed.
  14611. (createInterestedMessage): Removed.
  14612. (createNotInterestedMessage): Removed.
  14613. (createHaveMessage): Removed.
  14614. (createBitfieldMessage): Removed.
  14615. (createRequestMessage): Removed.
  14616. (createCancelMessage): Removed.
  14617. (createPieceMessage): Removed.
  14618. (createPortMessage): Removed.
  14619. (createChokeMessage): Removed.
  14620. (createUnchokeMessage): Removed.
  14621. (createInterestedMessage): Removed.
  14622. (createNotInterestedMessage): Removed.
  14623. (createHaveMessage): Removed.
  14624. (createBitfieldMessage): Removed.
  14625. (createRequestMessage): Removed.
  14626. (createCancelMessage): Removed.
  14627. (createPieceMessage): Removed.
  14628. (createKeepAliveMessage): Removed.
  14629. (createHandshakeMessage): Removed.
  14630. (setIntParam): New function.
  14631. (createPeerMessageString): New function.
  14632. * src/PeerMessageUtil.cc
  14633. (createChokeMessage): Removed.
  14634. (createUnchokeMessage): Removed.
  14635. (createInterestedMessage): Removed.
  14636. (createNotInterestedMessage): Removed.
  14637. (createHaveMessage): Removed.
  14638. (createBitfieldMessage): Removed.
  14639. (createRequestMessage): Removed.
  14640. (createCancelMessage): Removed.
  14641. (createPieceMessage): Removed.
  14642. (createPortMessage): Removed.
  14643. (createRequestMessage): Removed.
  14644. (createCancelMessage): Removed.
  14645. (createPieceMessage): Removed.
  14646. (createHaveMessage): Removed.
  14647. (createChokeMessage): Removed.
  14648. (createUnchokeMessage): Removed.
  14649. (createInterestedMessage): Removed.
  14650. (createNotInterestedMessage): Removed.
  14651. (createBitfieldMessage): Removed.
  14652. (createKeepAliveMessage): Removed.
  14653. (createHandshakeMessage): Removed.
  14654. (setIntParam): New function.
  14655. (createPeerMessageString): New function.
  14656. * src/PeerConnection.h
  14657. (peer): Removed.
  14658. (torrentMan): Removed.
  14659. (createNLengthMessage): Removed.
  14660. (setIntParam): Removed.
  14661. (writeOutgoingMessageLog): Removed all overloaded functions.
  14662. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14663. (sendMessage): New function.
  14664. (sendHandshake): Removed.
  14665. (sendKeepAlive): Removed.
  14666. (sendChoke): Removed.
  14667. (sendUnchoke): Removed.
  14668. (sendInterested): Removed.
  14669. (sendNotInterested): Removed.
  14670. (sendHave): Removed.
  14671. (sendBitfield): Removed.
  14672. (sendRequest): Removed.
  14673. (sendPiece): Removed.
  14674. (sendPieceHeader): Removed.
  14675. (sendPieceData): Removed.
  14676. (sendCancel): Removed.
  14677. (getPeer): Removed.
  14678. * src/PeerConnection.cc
  14679. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14680. (sendHandshake): Removed.
  14681. (sendKeepAlive): Removed.
  14682. (createNLengthMessage): Removed.
  14683. (setIntParam): Removed.
  14684. (writeOutgoingMessageLog): Removed all overloaded functions.
  14685. (sendChoke): Removed.
  14686. (sendUnchoke): Removed.
  14687. (sendInterested): Removed.
  14688. (sendNotInterested): Removed.
  14689. (sendHave): Removed.
  14690. (sendBitfield): Removed.
  14691. (sendRequest): Removed.
  14692. (sendPiece): Removed.
  14693. (sendPieceHeader): Removed.
  14694. (sendPieceData): Removed.
  14695. (sendMessage): New function.
  14696. (sendCancel): Removed.
  14697. * src/PeerInteractionCommand.cc
  14698. (PeerInteractionCommand): Call setUploadLimit.
  14699. (executeInternal): Call setUploadLimit.
  14700. Added the handling of "inProgress" state of handshake message.
  14701. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14702. sendNow().
  14703. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14704. sendNow().
  14705. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14706. * src/TorrentMan.h
  14707. (PEER_ID_LENGTH): New definition.
  14708. (hasAllPieces): New function.
  14709. * src/TorrentMan.cc
  14710. (getMissingPiece): Added the handling of fast extension.
  14711. (cancelPiece): Call updatePiece().
  14712. (hasAllPieces): New function.
  14713. * src/PeerInteraction.h
  14714. (fastSet): New variable.
  14715. (getNewPieceAndSendInterest): Changed the return type to void.
  14716. (send): Renamed as sendMessages.
  14717. (deleteAllRequestSlot): Removed.
  14718. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14719. (cancelAllRequest): Removed all overloaded functions.
  14720. (deleteAllRequestSlot): Removed.
  14721. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14722. (rejectPieceMessageInQueue): New function.
  14723. (rejectAllPieceMessageInQueue): New function.
  14724. (onChoked): New function.
  14725. (isSendingMessageInProgress): New function.
  14726. (getCorrespondingRequestSlot): Changed its arguments.
  14727. (isInFastSet): New function.
  14728. (addFastSetIndex): New function.
  14729. (addRequests): New function.
  14730. (sendNow): Removed.
  14731. (trySendNow): Removed.
  14732. (sendBitfield): New function.
  14733. (sendAllowdFast): New function.
  14734. (createHaveAllMessage): New function.
  14735. (createHaveNoneMessage): New function.
  14736. (createRejectMessage): New function.
  14737. (createAllowedFastMessage): New function.
  14738. * src/PeerInteraction.cc
  14739. (send): Renamed as sendMessages.
  14740. (sendMessages): New function.
  14741. (MsgPushBack): New class.
  14742. (isSendingMessageInProgress): New function.
  14743. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14744. (rejectAllPieceMessageInQueue): New function.
  14745. Added the handling of fast extension.
  14746. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14747. (rejectPieceMessageInQueue): New function.
  14748. Added the handling of fast extension.
  14749. (deleteRequestSlot): Replaced for loop with std::find.
  14750. (onChoked): New function.
  14751. (deleteAllRequestSlot): Removed.
  14752. (abortPiece): Rewirtten.
  14753. (deleteTimeoutRequestSlot): Updated log messages.
  14754. (getCorrespondingRequestSlot): Changed its arguments.
  14755. (cancelAllRequest): Removed all overloaded functions.
  14756. (receiveHandshake): Added the check to see whether an incoming peer
  14757. supports fast extension.
  14758. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14759. PeerMessageUtil.
  14760. (createPeerMessage): Use create() of each message class instead of
  14761. PeerMessageUtil.
  14762. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14763. AllowedFastMessage were added.
  14764. (getNewPieceAndSendInterest): Changed its return value type to void.
  14765. Added the handling of fast extension.
  14766. (addRequests): New function.
  14767. (sendNow): Removed.
  14768. (sendHandshake): Rewritten.
  14769. (trySendNow): Removed.
  14770. (sendBitfield): New function.
  14771. (sendAllowdFast): New function.
  14772. (isInFastSet): New function.
  14773. (addFastSetIndex): New function.
  14774. (createRequestMessage): Use RequestMessage::create instead of
  14775. PeerMessageUtil.
  14776. (createCancelMessage): Use CancelMessage::create instead of
  14777. PeerMessageUtil.
  14778. (createPieceMessage): Use PieceMessage::create instead of
  14779. PeerMessageUtil.
  14780. (createHaveMessage): Use HaveMessage::create instead of
  14781. PeerMessageUtil.
  14782. (createChokeMessage): Use ChokeMessage::create instead of
  14783. PeerMessageUtil.
  14784. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14785. PeerMessageUtil.
  14786. (createInterestedMessage): Use InterestedMessage::create instead of
  14787. PeerMessageUtil.
  14788. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14789. of PeerMessageUtil.
  14790. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14791. PeerMessageUtil.
  14792. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14793. PeerMessageUtil.
  14794. (createHaveAllMessage): New function.
  14795. (createHaveNoneMessage): New function.
  14796. (createRejectMessage): New function.
  14797. (createAllowedFastMessage: New function.
  14798. * src/Util.h
  14799. (sha1Sum): New function.
  14800. (computeFastSet): New function.
  14801. * src/Util.cc
  14802. (sha1Sum): New function.
  14803. (computeFastSet): New function.
  14804. * src/Peer.h
  14805. (fastExtensionEnabled): New variable.
  14806. (fastSet): New variable.
  14807. (setAllBitfield): New function.
  14808. (setFastExtensionEnabled): New function.
  14809. (isFastExtensionEnabled): New function.
  14810. (addFastSetIndex): New function.
  14811. (getFastSet): New function.
  14812. (isInFastSet): New function.
  14813. (countFastSet): New function.
  14814. * src/Peer.cc
  14815. (isInFastSet): New function.
  14816. (addFastSetIndex): New function.
  14817. (setAllBitfield): New function.
  14818. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14819. sockets.
  14820. * src/PeerAbstractCommand.cc
  14821. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14822. and uploadLimit.
  14823. (execute): Changed the procedure of checking sockets. The upload speed
  14824. checking were added.
  14825. (setUploadLimit): New function.
  14826. (setUploadLimitCheck): New function.
  14827. * src/PeerAbstractCommand.h
  14828. (setUploadLimit): New function.
  14829. (setUploadLimitCheck): New function.
  14830. (uploadLimit): New variable.
  14831. (uploadLimitCheck): New variable.
  14832. To contact a tracker regularly:
  14833. * src/TrackerWatcherCommand.h (interval): New variable.
  14834. (checkPoint): New variable.
  14835. (TrackerWatcherCommand): Added interval argument.
  14836. * src/TrackerWatcherCommand.cc
  14837. (TrackerWatcherCommand): Initialized checkPoint.
  14838. (execute): Now a tracker is contacted in every specified period.
  14839. If peer list is not needed, send request with numwant=0.
  14840. * src/TrackerUpdateCommand.cc
  14841. (execute): Updated log messages.
  14842. * src/DownloadEngine.cc
  14843. (~DownloadEngine): Removed two asserts.
  14844. (waitData): Uncommented wfds. May be a bug fix.
  14845. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14846. * src/PeerInteractionCommand.h
  14847. (checkInactiveConnection): Removed.
  14848. * src/PeerInteractionCommand.cc
  14849. (executeInternal): Removed following function calls:
  14850. detectMessageFlooding(), checkLongTimePeerChoking and
  14851. checkInactiveConnection().
  14852. (checkInactiveConnection): Removed.
  14853. (detectMessageFlooding): Removed function call to
  14854. checkInactiveConnection().
  14855. * src/PeerMessageUtil.h
  14856. (createChokeMessage): New function. Overload.
  14857. (createUnchokeMessage): New function. Overload.
  14858. (createInterestedMessage): New function. Overload.
  14859. (createNotInterestedMessage): New function. Overload.
  14860. (createHaveMessage): New function. Overload.
  14861. (createBitfieldMessage): New function. Overload.
  14862. (createRequestMessage): New function. Overload.
  14863. (createCancelMessage): New function. Overload.
  14864. (createPieceMessage): New function. Overload.
  14865. (createKeepAliveMessage): New function. Overload.
  14866. * src/PeerMessageUtil.cc
  14867. (createChokeMessage): New function. Overload.
  14868. (createUnchokeMessage): New function. Overload.
  14869. (createInterestedMessage): New function. Overload.
  14870. (createNotInterestedMessage): New function. Overload.
  14871. (createHaveMessage): New function. Overload.
  14872. (createBitfieldMessage): New function. Overload.
  14873. (createRequestMessage): New function. Overload.
  14874. (createCancelMessage): New function. Overload.
  14875. (createPieceMessage): New function. Overload.
  14876. (createKeepAliveMessage): New function. Overload.
  14877. * src/SendMessageQueue.cc
  14878. (createRequestMessage): Use PeerMessageUtil.
  14879. (createCancelMessage): Use PeerMessageUtil.
  14880. (createPieceMessage): Use PeerMessageUtil.
  14881. (createHaveMessage): Use PeerMessageUtil.
  14882. (createChokeMessage): Use PeerMessageUtil.
  14883. (createUnchokeMessage): Use PeerMessageUtil.
  14884. (createInterestedMessage): Use PeerMessageUtil.
  14885. (createNotInterestedMessage): Use PeerMessageUtil.
  14886. (createBitfieldMessage): Use PeerMessageUtil.
  14887. (createKeepAliveMessage): Use PeerMessageUtil.
  14888. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14889. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14890. * src/PeerInteraction.h: New class.
  14891. * src/PeerInteraction.cc: New class.
  14892. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14893. Each peer message has its own class.
  14894. * src/PendingMessages.h: Removed.
  14895. * src/PendingMessages.cc: Removed. The sending process was moved to
  14896. each message class.
  14897. * src/RequestSlotMan.h: Removed.
  14898. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14899. SendMessageQueue.
  14900. * src/RequestMessage.h: New class.
  14901. * src/RequestMessage.cc: New class.
  14902. * src/CancelMessage.h: New class.
  14903. * src/CancelMessage.cc: New class.
  14904. * src/BitfieldMessage.h: New class.
  14905. * src/BitfieldMessage.cc: New class.
  14906. * src/ChokeMessage.h: New class.
  14907. * src/ChokeMessage.cc: New class.
  14908. * src/KeepAliveMessage.h: New class.
  14909. * src/KeepAliveMessage.cc: New class.
  14910. * src/PortMessage.h: New class.
  14911. * src/UnchokeMessage.h: New class.
  14912. * src/UnchokeMessage.cc: New class.
  14913. * src/PieceMessage.h: New class.
  14914. * src/PieceMessage.cc: New class.
  14915. * src/HaveMessage.h: New class.
  14916. * src/HaveMessage.cc: New class.
  14917. * src/BitfieldMessage.h: New class.
  14918. * src/BitfieldMessage.cc: New class.
  14919. * src/NotInterestedMessage.h: New class.
  14920. * src/NotInterestedMessage.cc: New class.
  14921. * src/InterestedMessage.h: New class.
  14922. * src/InterestedMessage.cc: New class.
  14923. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14924. (getSendMessageQueue): New function.
  14925. (setSendMessageQueue): New function.
  14926. * src/HandshakeMessage.cc: New class.
  14927. * src/PeerConnection.h (receiveMessage): Changed return value and
  14928. arguments.
  14929. (receiveHandshake): Changed return value and arguments.
  14930. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14931. here.
  14932. (receiveHandshake): Do not create handshake class here.
  14933. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14934. (piece): Removed.
  14935. (syncPiece): Removed.
  14936. (sendInterest): Removed.
  14937. (sendMessages): Removed.
  14938. (createRequestPendingMessage): Removed.
  14939. (checkPieceHash): Removed.
  14940. (erasePieceOnDisk): Removed.
  14941. (getNewPieceAndSendInterest): Removed.
  14942. (onGotNewPice): Removed.
  14943. (onGotWrongPiece): Removed.
  14944. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14945. Removed peerConnection, piece.
  14946. (~PeerInteractionCommand): Removed peerConnection.
  14947. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14948. (syncPiece): Moved to SendMessageQueue.
  14949. (decideChoking): Removed PendingMessage.
  14950. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14951. The action after receiving peer message was moved to each message
  14952. class.
  14953. (onGotNewPice): Moved to SendMessageQueue.
  14954. (onGotWrongPiece): Moved to SendMessageQueue.
  14955. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14956. (sendInterest): Moved to SendMessageQueue.
  14957. (createRequestPendingMessage): Removed.
  14958. (sendMessages): Moved to SendMessageQueue.
  14959. (onAbort): Use SendMessageQueue::abortPiece()
  14960. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14961. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14962. (checkPieceHash): Moved to SendMessageQueue.
  14963. (erasePieceOnDisk): Moved to SendMessageQueue.
  14964. * src/PeerMessageUtil.h
  14965. (createBitfieldMessage): Removed.
  14966. (createHaveMessage): Changed return value and arguments.
  14967. (createBitfieldMessage): Changed return value and arguments.
  14968. (createRequestCancelMessage): Removed.
  14969. (createPieceMessage): Changed return value and arguments.
  14970. (getShortIntParam): New function.
  14971. (checkIndex): Changed arguments.
  14972. (checkBegin): Changed arguments.
  14973. (checkLength): Changed arguments.
  14974. (checkPieceOffset): Removed.
  14975. (checkRange): New function.
  14976. (checkBitfield): Changed arguments.
  14977. (createPeerMessage): Removed.
  14978. (checkIntegrity): Removed.
  14979. (createHandshakeMessage): Changed arguments.
  14980. (createChokeMessage): New function.
  14981. (createUnchokeMessage): New function.
  14982. (createInterestedMessage): New function.
  14983. (createNotInterestedMessage): New function.
  14984. (createRequestMessage): New function.
  14985. (createCancelMessage): New function.
  14986. (createPortMessage): New function.
  14987. * src/PeerMessageUtil.cc
  14988. (createBitfieldMessage): Removed.
  14989. (createHaveMessage): Changed return value and arguments.
  14990. (createBitfieldMessage): Changed return value and arguments.
  14991. (createRequestCancelMessage): Removed.
  14992. (createPieceMessage): Changed return value and arguments.
  14993. (getShortIntParam): New function.
  14994. (checkIndex): Changed arguments.
  14995. (checkBegin): Changed arguments.
  14996. (checkLength): Changed arguments.
  14997. (checkPieceOffset): Removed.
  14998. (checkRange): New function.
  14999. (checkBitfield): Changed arguments.
  15000. (createPeerMessage): Removed.
  15001. (checkIntegrity): Removed.
  15002. (createHandshakeMessage): Changed arguments.
  15003. (createChokeMessage): New function.
  15004. (createUnchokeMessage): New function.
  15005. (createInterestedMessage): New function.
  15006. (createNotInterestedMessage): New function.
  15007. (createRequestMessage): New function.
  15008. (createCancelMessage): New function.
  15009. (createPortMessage): New function.
  15010. * src/PeerMessage.h
  15011. (id): Removed.
  15012. (index): Removed.
  15013. (begin): Removed.
  15014. (length): Removed.
  15015. (bitfield): Removed.
  15016. (bitfieldLength): Removed.
  15017. (block): Removed.
  15018. (blockLength): Removed.
  15019. (inProgress): New variable.
  15020. (cuid): New variable.
  15021. (peer): New variable.
  15022. (sendMessageQueue): New variable.
  15023. (logger): New variable.
  15024. (setBitfield): Removed.
  15025. (getBitfield): Removed.
  15026. (setBlock): Removed.
  15027. (getBlock): Removed.
  15028. (getBitfieldLength): Removed.
  15029. (getBlockLength): Removed.
  15030. (isInProgress): New function.
  15031. (toString): Made pure virtual.
  15032. (check): New function.
  15033. (send): New function.
  15034. (receivedAction): New function.
  15035. (getId): Made pure virtual.
  15036. (setId): Removed.
  15037. (getIndex): Removed.
  15038. (setIndex): Removed.
  15039. (getBegin): Removed.
  15040. (setBegin): Removed.
  15041. (getLength): Removed.
  15042. (setLength): Removed.
  15043. (getCuid): New function.
  15044. (setCuid): New function.
  15045. (getPeer): New function.
  15046. (setPeer): New function.
  15047. (getSendMessageQueue): New function.
  15048. (setSendMessageQueue): New function.
  15049. (ID): Removed.
  15050. * src/PeerMessage.cc
  15051. (setBitfield): Removed.
  15052. (setBlock): Removed.
  15053. (toString): Removed.
  15054. * src/TorrentMan.h
  15055. (getPieceLength): New function.
  15056. (getPieceLength): New function.
  15057. * src/SendMessageQueue.h
  15058. (REQUEST_TIME_OUT): New definition.
  15059. (RequestSlots): New definition.
  15060. (MessageQueue): New definition.
  15061. (requestSlotMan): Removed.
  15062. (pendingMessages): Removed.
  15063. (requestSlots): New variable.
  15064. (messageQueue): New variable.
  15065. (torrentMan): New variable.
  15066. (peerConnection): New variable.
  15067. (peer): New variable.
  15068. (piece): New variable.
  15069. (getNewPieceAndSendInterest): New function.
  15070. (createPeerMessage): New function.
  15071. (createHandshakeMessage): New function.
  15072. (send): Made private.
  15073. (setPeerMessageCommonProperty): New function.
  15074. (deleteAllRequestSlot): New function.
  15075. (deleteRequestMessageInQueue): New function.
  15076. (cancelAllRequest): Made private.
  15077. (cancelAllRequest): Made private.
  15078. (countRequestSlot): Made private.
  15079. (addPendingMessage): Removed.
  15080. (deletePendingPieceMessage): Removed.
  15081. (deletePendingRequestMessage): Removed.
  15082. (addMessage): New function.
  15083. (deletePieceMessageInQueue): New function.
  15084. (deleteTimeoutRequestSlot): Changed argument.
  15085. (deleteCompletedRequestSlot): Changed argument.
  15086. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15087. (getCorrespondingRequestSlot): New function.
  15088. (countPendingMessage): Removed.
  15089. (countMessageInQueue): New function.
  15090. (getTorrentMan): New function.
  15091. (getPeerConnection): New function.
  15092. (hasDownloadPiece): New function.
  15093. (getDownloadPiece): New function.
  15094. (setDownloadPiece): New function.
  15095. (syncPiece): New function.
  15096. (sendMessages): New function.
  15097. (sendNow): New function.
  15098. (trySendNow): New function.
  15099. (abortPiece): New function.
  15100. (sendHandshake): New function.
  15101. (receiveMessage): New function.
  15102. (receiveHandshake): New function.
  15103. (createRequestMessage): New function.
  15104. (createCancelMessage): New function.
  15105. (createPieceMessage): New function.
  15106. (createHaveMessage): New function.
  15107. (createChokeMessage): New function.
  15108. (createUnchokeMessage): New function.
  15109. (createInterestedMessage): New function.
  15110. (createNotInterestedMessage): New function.
  15111. (createBitfieldMessage): New function.
  15112. (createKeepAliveMessage): New function.
  15113. * src/SendMessageQueue.cc
  15114. (SendMessageQueue): Removed requestSlotMan.
  15115. Instantiated peerConnection here.
  15116. (~SendMessageQueue): Removed requestSlotMan.
  15117. Added deletion of peerConnection and the contents of messageQueue.
  15118. (send): Updated according to the change of messageQueue.
  15119. (addPendingMessage): Renamed to addMessage.
  15120. (addMessage): New function.
  15121. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15122. (deletePieceMessageInQueue): New function.
  15123. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15124. (deleteRequestMessageInQueue): New function.
  15125. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15126. here.
  15127. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15128. (...) was moved here.
  15129. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15130. moved here.
  15131. (deleteCompletedRequestSlot):
  15132. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15133. (getCorrespondingRequestSlot):
  15134. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15135. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15136. (countPendingMessage): Renamed to countMessageInQueue.
  15137. (countMessageInQueue): New function.
  15138. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15139. (receiveHandshake): New function.
  15140. (createHandshakeMessage): New function.
  15141. (receiveMessage): New function.
  15142. (createPeerMessage): New function.
  15143. (syncPiece): New function.
  15144. (getNewPieceAndSendInterest): New function.
  15145. (sendMessages): New function.
  15146. (sendNow): New function.
  15147. (trySendNow): New function.
  15148. (sendHandshake): New function.
  15149. (abortPiece): New function.
  15150. (getDownloadPiece): New function.
  15151. (getPeerMessageCommonProperty): New function.
  15152. (createRequestMessage): New function.
  15153. (createCancelMessage): New function.
  15154. (createPieceMessage): New function.
  15155. (createHaveMessage): New function.
  15156. (createChokeMessage): New function.
  15157. (createUnchokeMessage): New function.
  15158. (createInterestedMessage): New function.
  15159. (createNotInterestedMessage): New function.
  15160. (createBitfieldMessage): New function.
  15161. (createKeepAliveMessage): New function.
  15162. To add simple Content-Disposition support:
  15163. * src/HttpResponseCommand.h (determinFilename): New function.
  15164. * src/HttpResponseCommand.cc (executeInternal):
  15165. Use determinFilename(headers) instead of req->getFile() when comparing
  15166. filename.
  15167. (determinFilename): New function.
  15168. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15169. req->getFile().
  15170. (handleOtherEncoding): Use determinFilename(headers) instead of
  15171. req->getFile().
  15172. * src/Util.h (getContentDispositionFilename): New function.
  15173. * src/Util.cc (getContentDispositionFilename): New function.
  15174. * src/LogFactory.h (release): New function.
  15175. * src/LogFactory.cc (release): New function.
  15176. To fix a bug that causes out-of-bound exception when HTTP status
  15177. line is wrong:
  15178. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15179. size.
  15180. * src/common.h (Deleter): New class.
  15181. * src/SegmentMan.cc
  15182. (~SegmentMan): Added deletion of splitter and diskWriter.
  15183. * src/DownloadEngine.h
  15184. (Commands): Use deque.
  15185. (clearQueue): New function.
  15186. * src/DownloadEngine.cc
  15187. (~DownloadEngine): Added deletion of segmentMan.
  15188. (cleanQueue): New function.
  15189. * src/TorrentDownloadEngine.h
  15190. (TorrentDownloadEngine): The implementation was moved to
  15191. TorrentDownloadEngine.cc.
  15192. (~TorrentDownloadEngine): The implementation was moved to
  15193. TorrentDownloadEngine.cc.
  15194. * src/TorrentDownloadEngine.cc
  15195. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15196. * src/main.cc
  15197. (clearRequest): Removed.
  15198. (handler): Added deletion of e.
  15199. (torrentHandler): Added deletion of te.
  15200. (main): Do not share splitter.
  15201. Use Deleter instead of clearRequest.
  15202. Deletion of classes were updated.
  15203. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15204. * src/main.cc (main): Fixed typo.
  15205. * src/message.h: Fixed typo.
  15206. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15207. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15208. To add --select-file command-line option:
  15209. * src/Util.cc
  15210. (unfoldRange): New function.
  15211. (getNum): New function.
  15212. (unfoldSubRange): New function
  15213. * src/main.cc
  15214. (showUsage): Added help message.
  15215. (main): Added --select-file command-line option. Updated the layout of
  15216. file listing.
  15217. * src/common.h
  15218. (Integers): New definition.
  15219. * src/SocketCore.cc
  15220. (writeData): Removed timeout argument.
  15221. (readData): Removed timeout argument.
  15222. (peekData): Removed timeout argument.
  15223. * src/Socket.cc
  15224. (writeData): Removed timeout argument.
  15225. (readData): Removed timeout argument.
  15226. (peekData): Removed timeout argument.
  15227. * Release 0.4.1
  15228. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15229. To deploy upload rate based choking algorithm:
  15230. * src/PeerInteractionCommand.cc
  15231. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15232. peer currently used.
  15233. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15234. download completes. Simplified.
  15235. (receiveMessage): Updated.
  15236. * src/TorrentMan.h
  15237. (activePeers): New variable.
  15238. (addActivePeer): New function.
  15239. (getActivePeers): New function.
  15240. (deleteActivePeer): New function.
  15241. * src/TorrentMan.cc
  15242. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15243. * src/PeerAbstractCommand.cc
  15244. (onAbort): Use peer->resetStatus().
  15245. * src/main.cc
  15246. (PeerChokeCommand.h): Included.
  15247. (main): Added the instance of ChokingCommand to the command queue.
  15248. * src/Peer.h
  15249. (amChoking): Renamed from amChocking
  15250. (chokingRequired): New variable.
  15251. (optUnchoking): New variable.
  15252. (deltaUpload): New variable.
  15253. (deltaDownload): New variable.
  15254. (addDeltaUpload): New function.
  15255. (resetDeltaUpload): New function.
  15256. (addDeltaDownload): New function.
  15257. (resetDeltaDownload): New function.
  15258. (addPeerUpload): Added a call to addDeltaUpload.
  15259. (addPeerDownload): Added a call to addDeltaDownload.
  15260. * src/Peer.cc
  15261. (shouldBeChoking): Renamed from shouldChoke.
  15262. (resetStatus): New function.
  15263. * src/PeerChokeCommand.h: New class.
  15264. * src/PeerChokeCommand.cc: New class.
  15265. To add lazy upload speed limiter:
  15266. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15267. statistics calculation to TorrentDownloadEngine.
  15268. * src/TorrentConsoleDownloadEngine.cc
  15269. (sendStatistics): Renamed from printStatistics.
  15270. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15271. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15272. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15273. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15274. calculation.
  15275. (sendStatistics): New function as pure virtual function.
  15276. (getUploadSpeed): New function.
  15277. * src/TorrentDownloadEngine.cc
  15278. (initStatistics): New function.
  15279. (calculateSpeed): New function.
  15280. (calculateStatistics): New function.
  15281. * src/SendMessageQueue.h
  15282. (uploadLength): New variable.
  15283. (send): Added an argument.
  15284. (setUploadLimit): New function.
  15285. (getUploadLimit): New function.
  15286. * src/SendMessageQueue.cc
  15287. (send): Added upload speed limiter.
  15288. * src/prefs.h
  15289. (PREF_UPLOAD_LIMIT): New definition.
  15290. * src/PeerInteractionCommand.cc
  15291. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15292. * src/main.cc
  15293. (main): Added --upload-limit option
  15294. For bug fixes:
  15295. * src/main.cc
  15296. (showUsage): Corrected --listen-port help
  15297. Other changes:
  15298. * src/TorrentMan.cc
  15299. (getPeer): Return nullPeer if connection is grather than
  15300. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15301. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15302. To add some useful information to the exception message:
  15303. * src/SocketCore.cc : Updated messages.
  15304. * src/SegmentMan.cc :
  15305. * src/TorrentMan.cc : Updated messages.
  15306. * src/MultiDiskWriter.cc : Updated messages.
  15307. * src/Util.cc : Updated messages.
  15308. * src/AbstractDiskWriter.cc : Updated messages.
  15309. * src/PreAllocationDiskWriter.cc : Updated messages.
  15310. * src/message.cc : Added new messages. Updated some messages.
  15311. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15312. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15313. Updated threshold from 30 to 15.
  15314. * src/AbstractDiskWriter.h (filename): New variable.
  15315. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15316. (createFile): Assigned filename.
  15317. * src/main.cc: Updated the help message for http-auth-scheme.
  15318. * Release 0.4.0
  15319. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15320. To add TrackerUpdateCommand with which replaces
  15321. CompactTrackerResponseProcessor:
  15322. * src/TrackerWatcherCommand.h (req): Removed.
  15323. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15324. if the number of peer connections are less than 30.
  15325. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15326. * src/SegmentMan.h (diskWriter): New function.
  15327. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15328. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15329. (main): Use TrackerUpdateCommand.
  15330. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15331. (req): New variable.
  15332. (setTrackerResponseProcessor): Removed.
  15333. (getTrackerResponseProcessor): Removed.
  15334. (processTrackerResponse): Removed.
  15335. * src/DownloadEngine.h (diskWriter): Removed.
  15336. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15337. to torrentMan->processTrackerResponse().
  15338. To add Util::expandBuffer:
  15339. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15340. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15341. * src/Util.h (expandBuffer): New function.
  15342. To fix the bug that causes segmentation fault when "-l ." is specified
  15343. in command-line option:
  15344. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15345. (openFile): New function.
  15346. (closeFile): New function.
  15347. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15348. (~SimpleLogger): Call closeFile();
  15349. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15350. * src/main.cc (main): Added a check to see logger is configured
  15351. properly.
  15352. To enable HTTP authentication without specifying "--http-auth-scheme"
  15353. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15354. * src/HttpConnection.cc (createRequest): Send Authorization header
  15355. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15356. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15357. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15358. * src/Peer.cc (shouldChoke): Updated algorithm.
  15359. * src/message.h (EX_AUTH_FAILED): New definition.
  15360. (EX_FILE_OPEN): New definition.
  15361. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15362. if status == 401.
  15363. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15364. if req->isTorrent == true.
  15365. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15366. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15367. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15368. (createFile): Updated message.
  15369. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15370. To add a readout of estimated remaining time to normal HTTP/FTP
  15371. downloads:
  15372. * src/ConsoleDownloadEngine.h (startup): New variable.
  15373. (startupLength): New variable.
  15374. (isStartupLengthSet): New variable.
  15375. (avgSpeed): New variable.
  15376. (eta): New variable.
  15377. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15378. estimated remaining time.
  15379. (initStatistics): Initialized newly added variables.
  15380. (calculateStatistics): Calculate average speed and estimated remaining
  15381. time.
  15382. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15383. * src/TrackerDownloadCommand.h: Removed.
  15384. * src/TrackerDownloadCommand.cc: Removed.
  15385. * src/TrackerInitCommand.h: Removed.
  15386. * src/TrackerInitCommand.cc: Removed.
  15387. * src/TrackerUpdateCommand.h: Removed.
  15388. * src/TrackerUpdateCommand.cc: Removed.
  15389. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15390. url written in TrackerInitCommand was moved here. Do not create
  15391. tracker request command if torrentMan->trackers != 0.
  15392. * src/CompactTrackerResponseProcessor.h: New class.
  15393. * src/CompactTrackerResponseProcessor.cc: New class.
  15394. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15395. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15396. Decoupled TorrentDownloadEngine from this.
  15397. * src/SegmentMan.h (init): New function.
  15398. * src/SegmentMan.cc (init): New function.
  15399. * src/TorrentMan.h (responseProcessor): New variable.
  15400. (trackers): New variable.
  15401. (setTrackerResponseProcessor): New function.
  15402. (getTrackerResponseProcessor): New function.
  15403. (processTrackerResponse): New function.
  15404. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15405. (processTrackerResponse): New function.
  15406. * src/main.cc (main): Use ByteArrayDiskWriter and
  15407. CompactTrackerResponseProcessor.
  15408. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15409. processTrackerResponse().
  15410. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15411. readout.
  15412. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15413. which indicates download has completed.
  15414. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15415. (closeFile): fd >= 0, not fd > 0
  15416. * src/main.cc (main): Added short cut for show-files.
  15417. Added short cut for torrent-file.
  15418. Added new command-line option listen-port.
  15419. Updated i18n messages.
  15420. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15421. To add LogFactory which creates singleton logger:
  15422. * src/LogFactory.h: New class.
  15423. * src/LogFactory.cc: New class.
  15424. * src/Command.h (logger): New variable.
  15425. (Constructor): Use LogFactory.
  15426. * src/AbstractCommand.cc: Use Command::logger
  15427. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15428. Use LogFactory.
  15429. * src/SegmentSplitter.h : Made logger protected.
  15430. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15431. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15432. * src/DownloadEngine.h : Made logger protected.
  15433. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15434. * src/PeerInteractionCommand.cc : Use Command::logger.
  15435. * src/HttpResponseCommand.cc : Use Command::logger.
  15436. * src/SegmentMan.h : Made logger private.
  15437. * src/TorrentMan.h : Made logger private.
  15438. * src/TorrentMan.cc : Use LogFactory.
  15439. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15440. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15441. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15442. Use LogFactory.
  15443. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15444. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15445. Use LogFactory.
  15446. * src/DownloadCommand.cc : Use Command::logger.
  15447. * src/PeerAbstractCommand.cc : Use Command::logger.
  15448. * src/PeerListenCommand.cc : Use Command::logger.
  15449. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15450. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15451. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15452. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15453. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15454. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15455. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15456. Use LogFactory.
  15457. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15458. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15459. Use LogFactory.
  15460. * src/main.cc (main): Use LogFactory.
  15461. * src/DiskAdaptor.h (logger): New variable.
  15462. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15463. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15464. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15465. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15466. parameter to a tracker request.
  15467. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15468. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15469. * src/main.cc (setSignalHander): New function.
  15470. (main): Added a handler for SIGTERM.
  15471. (handler): Updated message.
  15472. (torrentHandler): Updated message.
  15473. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15474. * src/TorrentConsoleDownloadEngine.cc
  15475. (onPartialDownloadingCompletes): Renamed as
  15476. onSelectiveDownloadingCompletes.
  15477. (onSelectiveDownloadingCompletes): Updated message.
  15478. To add DiskAdaptor which abstract DiskWriter family:
  15479. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15480. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15481. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15482. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15483. MultiDiskAdaptor.h.
  15484. (readFileEntry): Changed its arguments.
  15485. (setup): setupDiskWriter is merged into this function.
  15486. (setupDiskWriter): Removed.
  15487. (setFileFilter): New function.
  15488. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15489. made in readFileEntry.
  15490. (getFilePath): Removed.
  15491. (getTempFilePath): Removed.
  15492. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15493. (fixFilename): Removed.
  15494. (copySingleFile): Removed.
  15495. (splitMultiFile): Removed.
  15496. (deleteTempFile): Removed.
  15497. (setFileEntriesToDownload): Removed.
  15498. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15499. (isSelectiveDownloadingMode): New function.
  15500. (setAllMultiFileRequestedState): Removed.
  15501. (finishPartialDownloadingMode): Renamed as
  15502. finishSelectiveDownloadingMode.
  15503. (finishSelectiveDownloadingMode): New function.
  15504. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15505. (getSelectedTotalLength): New function.
  15506. (onDownloadComplete): Use diskAdaptor.
  15507. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15508. (Range): Removed.
  15509. (setMultiFileEntries): Renamed as setFileEntries.
  15510. (setFileEntries): New function.
  15511. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15512. (pieceLength): New variable.
  15513. * src/main.cc (printDownloadCompeleteMessage): New function.
  15514. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15515. (main): Renamed torrent-show-files to show-files.
  15516. Rewritten file contents listing.
  15517. * src/TorrentMan.h (FileEntry): Removed.
  15518. (multiFileTopDir): Removed.
  15519. (multiFileEntries): Removed.
  15520. (diskWriter): Removed.
  15521. (diskAdaptor): New variable.
  15522. * src/DefaultDiskWriter.h (totalLength): New variable.
  15523. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15524. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15525. diskWriter.
  15526. * src/TorrentConsoleDownloadEngine.h
  15527. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15528. (partialTotalLength): Renamed as selectedTotalLength.
  15529. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15530. openExistingFile, otherwise call initAndOpenFile.
  15531. (closeFile): fd > 0, not fd != 0.
  15532. * src/DirectDiskAdaptor.h: New class.
  15533. * src/DirectDiskAdaptor.cc: New class.
  15534. * src/MultiDiskAdaptor.h: New class.
  15535. * src/MultiDiskAdaptor.cc: New class.
  15536. * src/CopyDiskAdaptor.h: New class.
  15537. * src/CopyDiskAdaptor.cc: New class.
  15538. * src/DiskAdaptor.h: New class.
  15539. * src/DiskAdaptor.cc: New class.
  15540. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15541. (PREF_SHOW_FILES): New definition.
  15542. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15543. To add the ability to download multi torrent into respective files
  15544. directly:
  15545. * src/DiskWriter.h (openFile): New function.
  15546. (seek): Removed.
  15547. * src/MultiDiskWriter.h: New class.
  15548. * src/MultiDiskWriter.cc: New class.
  15549. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15550. protected.
  15551. (openFile): New function.
  15552. * src/AbstractDiskWriter.cc (openFile): New function.
  15553. * src/prefs.h (V_FALSE): New definition.
  15554. (PREF_DIRECT_FILE_MAPPING): New definition.
  15555. * src/TorrentMan.h (setupDiskWriter): New function.
  15556. (setAllMultiFileRequestedState): New function.
  15557. (onDownloadComplete): New function.
  15558. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15559. (setupDiskWriter): New function.
  15560. (getFilePath): Updated.
  15561. (getTempFilePath): Updated.
  15562. (getSegmentFilePath): Updated.
  15563. (fixFilename): Updated.
  15564. (deleteTempFile): Updated.
  15565. (setAllMultiFileRequestedState): New function.
  15566. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15567. (finishPartialDownloadingMode): Reset requested flags.
  15568. (onDownloadComplete): New function.
  15569. * src/main.cc: Added --direct-file-mapping option.
  15570. Use TorrentMan::setupDiskWriter().
  15571. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15572. onDownloadComplete().
  15573. To fix ETA bug:
  15574. * src/Util.h (difftvsec): New function.
  15575. * src/Util.cc (difftvsec): New function.
  15576. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15577. type of "elapsed" instead of long long int.
  15578. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15579. The updates of statistics takes place every 1 seconds.
  15580. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15581. (calculateSpeed): Changed its argument signature.
  15582. * src/PeerMessage.cc (toString): Fixed message.
  15583. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15584. To print ETA:
  15585. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15586. completion handling when dealing with
  15587. TorrentMan::isPartialDownloadingMode() == true.
  15588. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15589. New function.
  15590. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15591. (sessionDownloadLength): New variable.
  15592. (avgSpeed): New variable.
  15593. (eta): New variable.
  15594. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15595. new variables: eta, avgSpeed, startup.
  15596. (calculateSpeed): Calculate average speed and ETA.
  15597. (printStatistics): Added ETA.
  15598. * src/Util.h (secfmt): New function.
  15599. * src/Util.cc (secfmt): New function.
  15600. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15601. To detect "keep alive" flooding:
  15602. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15603. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15604. variable: keepAliveCount.
  15605. (detectMessageFlooding): Added "keep alive" flooding detection.
  15606. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15607. received.
  15608. To add the ability to download only specified files in multi-file
  15609. torrent:
  15610. * src/BitfieldMan.h (filterBitfield): New variable.
  15611. (filterEnabled): New variable.
  15612. (setFilterBit): New function.
  15613. (enableFilter): New function.
  15614. (disableFilter): New function.
  15615. (isFilterEnabled): New function.
  15616. (getFilteredTotalLength): New function.
  15617. (getCompletedLength): New function.
  15618. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15619. filterBitfield, filterEnabled.
  15620. (CopyConstructor): Added filterBitfield and filterEnabled.
  15621. (operator==): Added filterBitfield and filterEnabled.
  15622. (Destructor): Added filterBitfield.
  15623. (getMissingIndex): Use filterBitfield.
  15624. (getMissingUnusedIndex): Use filterBitfield.
  15625. (getFirstMissingUnusedIndex): Use filterBitfield.
  15626. (getFirstMissingUnusedIndex): Use filterBitfield.
  15627. (getAllMissingIndexes): Use filterBitfield.
  15628. (countMissingBlock): Use filterBitfield.
  15629. (countBlock): Use filterBitfield.
  15630. (setBitInternal): Added new argument on.
  15631. (setUseBit): Use setBitInternal.
  15632. (unsetUseBit): Use setBitInternal.
  15633. (setBit): Use setBitInternal.
  15634. (unsetBit): Use setBitInternal.
  15635. (isAllBitSet): Use filterBitfield.
  15636. (setFilterBit): New function.
  15637. (addFilter): New function.
  15638. (enableFilter): New function.
  15639. (disableFilter): New function.
  15640. (clearFilter): New function.
  15641. (isFilterEnabled): New function.
  15642. (getFilteredTotalLength): New function.
  15643. (getCompletedLength): New function.
  15644. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15645. Initalized newly added variables.
  15646. [FileEntry](offset): New variable.
  15647. [FileEntry](extracted): New variable.
  15648. [FileEntry](requested): New variable.
  15649. (readFileEntry): New function.
  15650. (option): New variable.
  15651. (splitMultiFile): Removed const qualifier.
  15652. (fixFilename): Removed const qualifier.
  15653. (readFileEntryFromMetaInfoFile): New function.
  15654. (finishPartialDownloadingMode): New function.
  15655. (isPartialDownloadingMode): New function.
  15656. (setFileEntriesToDownload): New function.
  15657. (getCompletedLength): New function.
  15658. (getPartialTotalLength): New function.
  15659. * src/TorrentMan.cc (readFileEntry): New function.
  15660. (setup): Use readFileEntry. If no-preallocation option is specified,
  15661. use DefaultDiskWriter.
  15662. (readFileEntryFromMetaInfoFile): New function.
  15663. (fixFilename): Removed const qualifier.
  15664. (splitMultiFile): Removed const qualifier.
  15665. (setFileEntriesToDownload): New function.
  15666. (isPartialDownloadingMode): New function.
  15667. (finishPartialDownloadingMode): New function.
  15668. (getCompletedLength): New function.
  15669. (getPartialTotalLength): New function.
  15670. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15671. New variable.
  15672. (partialTotalLength): New variable.
  15673. (downloadLength): New variable.
  15674. (totalLength): New variable.
  15675. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15676. Added log.
  15677. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15678. partialTotalLength, downloadLength, totalLength.
  15679. (calculate): Calculate downloadLength and totalLength.
  15680. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15681. * src/main.cc (addCommand): Changed argument signature.
  15682. (main): Added new variable: args. Added new option "torrent-show-files"
  15683. "no-preallocation". Usage is not updated yet.
  15684. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15685. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15686. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15687. Attempt to add the ability to listing file entries in a .torrent file.
  15688. This feature is not yet complete.
  15689. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15690. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15691. (getName): New function.
  15692. * src/TorrentMan.h (getMultiFileEntries): New function.
  15693. (getName): New function.
  15694. * src/main.cc (main): Use above 2 funtion.
  15695. * Release 0.3.2
  15696. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15697. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15698. (detectMessageFlooding): Updated threshold value.
  15699. (checkLongTimePeerChoking): Updated timeout value.
  15700. (getNewPieceAndSendInterest): Added debug log.
  15701. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15702. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15703. (getPeer): Updated.
  15704. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15705. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15706. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15707. is localhost.
  15708. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15709. * src/PendingMessage.cc (processMessage): Not to send piece message
  15710. if peer is not interested in the pieces localhost has.
  15711. * src/Peer.cc (shouldChoke): Updated.
  15712. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15713. * src/Util.cc (isPowerOf): New function.
  15714. * src/Util.h (isPowerOf): New function.
  15715. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15716. whether or not it is power of 2.
  15717. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15718. Added new class SendMessageQueue that includes PendingMessages and
  15719. RequestSlotMan.
  15720. * src/SendMessageQueue.h: New class.
  15721. * src/SendMessageQueue.cc: New class.
  15722. * src/PendingMessage.h: Added new member variable blockIndex and its
  15723. accessors.
  15724. (createRequestMessage): Updated.
  15725. * src/PendingMessage.cc (createRequestMessage): Updated.
  15726. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15727. SendMessageQueue.
  15728. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15729. (receiveMessage): Updated with SendMessageQueue.
  15730. (deletePendingPieceMessage): Removed.
  15731. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15732. (sendInterest): Updated with SendMessageQueue.
  15733. (createRequestPendingMessage): Updated with SendMessageQueue.
  15734. (sendMessages): Updated with SendMessageQueue.
  15735. (onAbort): Updated with SendMessageQueue.
  15736. (keepAlive): Updated with SendMessageQueue.
  15737. (beforeSocketCheck): Updated SendMessageQueue.
  15738. * src/PeerInteractionCommand (sendMessages): Shuffle
  15739. missingBLockIndexes before using it.
  15740. Added its own timeout for peer connection.
  15741. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15742. setter.
  15743. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15744. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15745. Added setTimeout() call.
  15746. (executeInternal): Added setTimeout() call.
  15747. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15748. Added timeout.
  15749. (isTimeoutDetected): Updated.
  15750. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15751. option.
  15752. Added *simple* message flooding checker.
  15753. * src/PeerInteractionCommand.cc (executeInternal):
  15754. Added detectMessageFlooding() call.
  15755. (detectMessageFlooding): New function.
  15756. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15757. (beforeSocketCheck): Added detectMessageFlooding() call.
  15758. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15759. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15760. Removed deletePendingPieceMessage(), getRequestSlot(),
  15761. deleteRequestSlot(), deleteAllRequestSlot().
  15762. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15763. Added checkLongTimePeerChoking() call.
  15764. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15765. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15766. if duplicate == false.
  15767. The parameter "uploaded" and "downloaded" in the tracker request are
  15768. the size since the client sent the "started" event to the tracker.
  15769. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15770. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15771. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15772. getSessionDownloadedSize(), getSessionUploadedSize().
  15773. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15774. getSessionUploadedSize() instead of getDownloadedSize(),
  15775. getUploadedSize().
  15776. * src/PendingMessage.cc (processMessage): Do not send request message
  15777. if the peer is choking the client.
  15778. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15779. less than interval.
  15780. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15781. * configure.in: Added gnutls support. Added several CPP macros.
  15782. * m4/openssl.m4: Added.
  15783. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15784. readData(), peekData(). Added gnutls support.
  15785. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15786. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15787. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15788. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15789. Instead, added a check for whether setup method has executed
  15790. successfully.
  15791. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15792. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15793. * src/Makefile.am: Updated.
  15794. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15795. using whether OpenSSL or gcrypt, depending on the result of configure
  15796. script.
  15797. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15798. messageDigest.h.
  15799. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15800. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15801. Fixed memory leak.
  15802. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15803. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15804. Removed instantiation of TrackerInitCommand. Instead,
  15805. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15806. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15807. ENABLE_SSL.
  15808. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15809. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15810. If a piece is already acquired by another command, delete the request
  15811. slots for the piece.
  15812. * src/TrackerUpdateCommand.cc (execute):
  15813. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15814. Added a check whether peer list is null.
  15815. Fixed the bug that causes sending completed event to the tracker
  15816. several times.
  15817. * src/TrackerInitCommand.cc (execute):
  15818. Fixed the bug that causes sending completed event to the tracker
  15819. several times.
  15820. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15821. by using messageDigest.h.
  15822. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15823. * PeerConnection.cc: Replaced log message "keep-alive" with
  15824. "keep alive".
  15825. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15826. localhost long time.
  15827. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15828. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15829. at most 100 failure entry from the list. If with duplicate = false,
  15830. MAX_PEER_LIST is not checked.
  15831. * PeerListenCommand.cc: Fixed the argument order of log message.
  15832. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15833. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15834. Added warn().
  15835. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15836. Implemented warn().
  15837. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15838. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15839. * Request.h: Added AFTER_COMPLETED event.
  15840. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15841. instead of downloaded size and progress(%) after download completes.
  15842. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15843. message to the peer if it is interested in what localhost has
  15844. downloaded.
  15845. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15846. destination instead of just renaming it.
  15847. * TorrentMan.cc: Added deleteTempFile().
  15848. * PeerAbstractCommand.cc: do not stop execution after download
  15849. completes. This makes localhost a seeder.
  15850. * Util.{h,cc}: Added fileCopy().
  15851. * PeerListenCommand.cc: do not stop execution after download completes.
  15852. This makes localhost a seeder.
  15853. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15854. Added TorrentMan::deleteTempFile() to torrentHandler.
  15855. Initialized the variable dir as ".".
  15856. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15857. Deleted renameSingleFile().
  15858. Added copySingleFile(), deleteTempFile().
  15859. * DownloadEngine.h: Added virtual function afterEachIteration().
  15860. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15861. in onEndOfRun() to afterEachIteration().
  15862. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15863. true.
  15864. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15865. In rangedFileCopy(), added try-catch block to properly close file
  15866. descriptors.
  15867. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15868. Added afterEachIteration(), isFilenameFixed().
  15869. * Peer.cc: Changed choking strategy.
  15870. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15871. * TrackerInitCommand.cc: Send completed event only once.
  15872. * DownloadEngine.cc: Added a call to afterEachIteration().
  15873. * TrackerUpdateCommand.cc: Do not stop execution after download
  15874. completes.
  15875. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15876. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15877. received from a tracker.
  15878. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15879. Decreased the number of failure peers to delete to 0(just comment out
  15880. the line).
  15881. * Release 0.3.1
  15882. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15883. * PeerInteractionCommand.cc: added a call to
  15884. TorrentMan::unadvertisePiece in Destructor.
  15885. * PeerInteractionCommand.cc: make have message sent immediately
  15886. if the size of pending message queue is zero.
  15887. * TorrentMan.cc: set the maximum size of peer list to 250.
  15888. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15889. to deque.
  15890. * Util.cc: fixed rangedFileCopy.
  15891. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15892. to Constructor. Also, moved digest cleanup to Destructor.
  15893. * MetaFileUtil.cc: fixed memory leak
  15894. * replaced std::vector with std::deque.
  15895. * AbstractCommand.cc: casted timeout value to long long int.
  15896. * ChunkedEncoding.cc: fixed memory leak.
  15897. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15898. * SleepCommand.cc: casted timeout value to long long int.
  15899. * Data.cc: fixed memory leak.
  15900. * Data.cc: fixed toLLInt().
  15901. * BitfieldMan.cc: fixed memory leak.
  15902. * TorrentMan.cc: initialized storeDir to ".".
  15903. * TorrentMan.cc: fixed memory leak.
  15904. * TorrentMan.cc: corrected file paths of splitted files.
  15905. * PeerAbstractCommand.cc: casted timeout to long long int.
  15906. * main.cc: added delete(req) and delete(te->diskWriter).
  15907. * RequestSlot.cc: casted timeout value to long long int.
  15908. * Request.cc: fixed memory leak.
  15909. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15910. have the piece.
  15911. * Peer.{h,cc}: added hasPiece(int index).
  15912. * main.cc: corrected addCommand.
  15913. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15914. * BitTorrent protocol support added.
  15915. * Release 0.3.0
  15916. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15917. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15918. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15919. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15920. decoding did not work properly.
  15921. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15922. * DownloadEngine.h: included sys/time.h
  15923. * DownloadEngine.cc: remove sys/time.h
  15924. * Makefile.am (SUBDIRS): Add intl.
  15925. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15926. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15927. * main.cc: correct help message for --http-auth-scheme.
  15928. * main.cc: changed e-mail address for bug reports.
  15929. * ja.po: added japanese translation.
  15930. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15931. * SimpleLogger.cc: flush log file instead of stdout.
  15932. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15933. * main.cc: Fixed command-line option: max-tries
  15934. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15935. does not equal to seg.sp.
  15936. * DownloadCommand.cc: If EOF is got from the server and the total size
  15937. of file is not zero, then throw DlRetryEx.
  15938. * main.cc: Set the minium value of min-segment-size to 1024.
  15939. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15940. fails because of a regression since 0.2.0 release.
  15941. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15942. * HttpConnection.cc:
  15943. * common.h: defined the user agent name as macro
  15944. * DownloadEngine.{h, cc}:
  15945. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15946. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15947. * main.cc: Download complete/abort message is now generated by main.
  15948. * Makefile.am (SUBDIRS): Add m4.
  15949. (ACLOCAL_AMFLAGS): New variable.
  15950. (EXTRA_DIST): New variable.
  15951. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15952. * gettext: added gettext functionality
  15953. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15954. * AbstractCommand.cc:
  15955. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15956. unregister its cuid from SegmentMan.
  15957. * DownloadEngine.cc: .aria2 file was written when a downloading
  15958. failed with errors.
  15959. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15960. Added "User-Agent" header to CONNECT proxy request.
  15961. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15962. properly.
  15963. * Logger.h:
  15964. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15965. * ChunkedEncoding.cc: Added #include directive for strings.h
  15966. * Release 0.2.1
  15967. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15968. * Util.{h,cc}: added startsWith().
  15969. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15970. Util::endsWith().
  15971. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15972. * common.h: added #include directive of limit.h.
  15973. * DownloadEngine.cc: added #include directive of sys/time.h and
  15974. algorithm.
  15975. * Exception.h: added #include directive of stdio.h.
  15976. * AbstractCommand.h: added #include directive of sys/time.h.
  15977. * DownloadCommand.h: added #include directive of sys/time.h.
  15978. * *.h: added #include directive of common.h to all base classes.
  15979. subclasses' one was removed.
  15980. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15981. does not define these macros.
  15982. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15983. * Release 0.2.0
  15984. * main.cc:
  15985. * HttpInitiateConnectionCommand.{h,cc}:
  15986. * prefs.h:
  15987. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15988. We can now use GET command in http proxy.
  15989. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15990. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15991. that splits slowest segment of SegmentMan::commands vector.
  15992. This is the default split algorithm of aria2.
  15993. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15994. that splits first segment of SegmentMan::commands vector.
  15995. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15996. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15997. * Segment.h:
  15998. * SegmentMan.cc: Added speed field to Segment.h
  15999. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16000. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16001. * message.h: Change file size related %d to %lld.
  16002. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16003. * FtpInitiateConnectionCommand.{h,cc}:
  16004. * FtpNegotiationCommand.{h,cc}:
  16005. * FtpDownloadCommand.{h,cc}:
  16006. * FtpConnection.{h,cc}: Added FTP support
  16007. * SimpleLogger.cc: Log message now includes time information.
  16008. * main.cc: The value of --http-auth-scheme option is chagned from
  16009. 'BASIC' to 'basic'
  16010. * main.cc: Added --timeout command-line option.
  16011. * main.cc: Added --min-segment-size command-line option.
  16012. * main.cc: Added --max-retries command-line option.
  16013. * prefs.h: option string constants are now defined in prefs.h
  16014. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16015. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16016. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16017. with version 0.1.0's one.
  16018. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16019. * configure.in: Added --enable-ssl option to configure script.
  16020. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16021. cannot permit absoluteURI as Request-URI.
  16022. * HttpConnection.cc: Added Referer support.
  16023. * main.cc: Added referer command-line option.
  16024. * main.cc: Added rety-wait command-line option.
  16025. * Exception.h: Fixed formating bug in Exception::setMsg()
  16026. * SocketCore.{h,cc}:
  16027. * Socket.{h, cc}:
  16028. * Request.cc:
  16029. * InitiateConnectionCommandFactory.cc:
  16030. * HttpRequestCommand.cc: Added HTTPS support.
  16031. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16032. for SocketCore.
  16033. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16034. size is wrong
  16035. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16036. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16037. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16038. * Release 0.1.0