ChangeLog 597 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039
  1. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Updated README regarding multi-file torrent web-seeding.
  3. * doc/README.txt
  4. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Updated man page regarding multi-file torrent web-seeding.
  6. * doc/aria2c.1.txt
  7. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Updated doc
  9. * src/version_usage.cc
  10. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Winsock select() doesn't work if no socket is in FD_SET. To
  12. overcome this problem, a dummy socket is added to FD_SET and it is
  13. given to select().
  14. * src/SelectEventPoll.cc
  15. * src/SelectEventPoll.h
  16. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Disabled --use-head option by default because --use-head=true
  18. causes problems on some web sites.
  19. * src/OptionHandlerFactory.cc
  20. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Print URL List in -S option for torrent.
  22. * src/bittorrent_helper.cc
  23. * src/bittorrent_helper.h
  24. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Allocate buffer in ctor of DownloadCommand.
  26. * src/DownloadCommand.cc
  27. * src/DownloadCommand.h
  28. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Removed DiskAdaptor::onDownloadComplete()
  30. * src/DirectDiskAdaptor.cc
  31. * src/DirectDiskAdaptor.h
  32. * src/DiskAdaptor.h
  33. * src/MultiDiskAdaptor.cc
  34. * src/MultiDiskAdaptor.h
  35. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Committed missing BtStopDownloadCommand.{cc,h}
  37. * src/BtStopDownloadCommand.cc
  38. * src/BtStopDownloadCommand.h
  39. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  41. download if the download speed is 0 and the number of seeder is 0
  42. in consecutive SEC seconds. By default, this function is disabled.
  43. * src/BtSetup.cc
  44. * src/Makefile.am
  45. * src/OptionHandlerFactory.cc
  46. * src/prefs.cc
  47. * src/prefs.h
  48. * src/usage_text.h
  49. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Removed the call to DiskAdaptor::onDownloadComplete() from
  51. BtCheckIntegrityEntry and DefaultPieceStorage.
  52. * src/BtCheckIntegrityEntry.cc
  53. * src/DefaultPieceStorage.cc
  54. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Commented out throw statements when number of piece is 0 to
  56. download 0 length torrent.
  57. * src/bittorrent_helper.cc
  58. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Call RequestGroup::createNextCommandWithAdj() from
  60. BtFileAllocationEntry if at least one FileEntry has URI. The
  61. static function hasAssociatedUri in RequestGroup.cc is renamed as
  62. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  63. * src/BtFileAllocationEntry.cc
  64. * src/FileEntry.h
  65. * src/RequestGroup.cc
  66. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Generate peer ID after SimpleRandomizer is initialized.
  68. * src/main.cc
  69. * src/option_processing.cc
  70. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  71. Removed unused method argument.
  72. * src/CreateRequestCommand.cc
  73. * src/RequestGroup.cc
  74. * src/RequestGroup.h
  75. * src/RequestGroupMan.cc
  76. * src/TrackerWatcherCommand.cc
  77. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Made URI reusing function work.
  79. * src/CreateRequestCommand.cc
  80. * src/FileEntry.cc
  81. * src/FileEntry.h
  82. * test/FileEntryTest.cc
  83. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Add formerly fastest PeerStat's sessionDownloadLength to new
  85. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  86. bytes in a session.
  87. * src/PeerStat.cc
  88. * src/SegmentMan.cc
  89. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. If pipelining is enabled, we can always pool socket.
  91. * src/HttpDownloadCommand.cc
  92. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. In a single file download, file size becomes known just after
  94. downloading, set total length to FileEntry object when download
  95. completed.
  96. * src/DownloadCommand.cc
  97. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Use std::vector::reserve() for fileEntries and pieceHashes in
  99. bittorrent_helper
  100. * src/bittorrent_helper.cc
  101. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  103. Removed hidden option PREF_RESET_URI.
  104. * src/AbstractCommand.cc
  105. * src/OptionHandlerFactory.cc
  106. * src/prefs.cc
  107. * src/prefs.h
  108. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Removed unused variable/function.
  110. * src/PeerStat.h
  111. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Show first URL in Download Results if file path is not available.
  113. * src/FileEntry.h
  114. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Throw exception if file path doesn't exist in FTP URL.
  116. * src/InitiateConnectionCommandFactory.cc
  117. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  119. * src/BitfieldMan.cc
  120. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  122. of PeerStat in SegmentMan. peerStats is used for calculating
  123. download speed. Therefore all active PeerStats should be in
  124. there. Another one is _fastestPeerStats and it only contains
  125. fastest PeerStat for each hostname/protocol pair. They are used
  126. for updating ServerStat.
  127. * src/DownloadCommand.cc
  128. * src/Request.h
  129. * src/RequestGroupMan.cc
  130. * src/SegmentMan.cc
  131. * src/SegmentMan.h
  132. * test/SegmentManTest.cc
  133. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Try all available addresses returned by DNS until it gets
  135. connected in HTTP(S)/FTP download
  136. * src/AbstractCommand.cc
  137. * src/AbstractCommand.h
  138. * src/AbstractProxyRequestCommand.cc
  139. * src/AbstractProxyRequestCommand.h
  140. * src/DNSCache.h
  141. * src/DownloadEngine.cc
  142. * src/DownloadEngine.h
  143. * src/FtpInitiateConnectionCommand.cc
  144. * src/FtpInitiateConnectionCommand.h
  145. * src/FtpNegotiationCommand.cc
  146. * src/FtpNegotiationCommand.h
  147. * src/HttpInitiateConnectionCommand.cc
  148. * src/HttpInitiateConnectionCommand.h
  149. * src/HttpRequestCommand.cc
  150. * src/HttpRequestCommand.h
  151. * src/InitiateConnectionCommand.cc
  152. * src/InitiateConnectionCommand.h
  153. * test/DNSCacheTest.cc
  154. * test/Makefile.am
  155. * test/SimpleDNSCacheTest.cc
  156. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  157. Updated doc
  158. * src/download_helper.cc
  159. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Refactored fieldMan ctor.
  161. * src/BitfieldMan.cc
  162. * src/BitfieldMan.h
  163. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Don't print "No files to download." message if -S is given.
  165. * src/main.cc
  166. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Set referer and method to newly created Request object.
  168. * src/CreateRequestCommand.cc
  169. * src/FileEntry.cc
  170. * src/FileEntry.h
  171. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Removed ctor of AbstractCommand which doesn't take FileEntry.
  173. * src/AbstractCommand.cc
  174. * src/AbstractCommand.h
  175. * src/CreateRequestCommand.cc
  176. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Get proxy download working
  178. * src/AbstractProxyRequestCommand.cc
  179. * src/AbstractProxyRequestCommand.h
  180. * src/AbstractProxyResponseCommand.cc
  181. * src/AbstractProxyResponseCommand.h
  182. * src/FtpInitiateConnectionCommand.cc
  183. * src/FtpTunnelRequestCommand.cc
  184. * src/FtpTunnelRequestCommand.h
  185. * src/FtpTunnelResponseCommand.cc
  186. * src/FtpTunnelResponseCommand.h
  187. * src/HttpInitiateConnectionCommand.cc
  188. * src/HttpProxyRequestCommand.cc
  189. * src/HttpProxyRequestCommand.h
  190. * src/HttpProxyResponseCommand.cc
  191. * src/HttpProxyResponseCommand.h
  192. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. Use SegmentMan::getSegment(cuid) for single file download.
  194. * src/AbstractCommand.cc
  195. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Fixed bufSize calculation
  197. * src/DownloadCommand.cc
  198. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Don't append "/" if base URI ends with "/".
  200. * src/bittorrent_helper.cc
  201. * test/url-list-multiFile.torrent
  202. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. HTTP pipelining is now working. Fixed Segmention fault in
  204. BitfieldMan's copy ctor.
  205. * src/AbstractCommand.cc
  206. * src/BitfieldMan.cc
  207. * src/BitfieldMan.h
  208. * src/DownloadCommand.cc
  209. * src/HttpDownloadCommand.cc
  210. * src/HttpRequest.cc
  211. * src/SegmentMan.cc
  212. * src/SegmentMan.h
  213. * test/BitfieldManTest.cc
  214. * test/SegmentManTest.cc
  215. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Removed ServerHost. Same functionality is implemented using
  217. FileEntry's in-flight Request objects.
  218. * src/AbstractCommand.cc
  219. * src/BtDependency.cc
  220. * src/CreateRequestCommand.cc
  221. * src/FileEntry.cc
  222. * src/FileEntry.h
  223. * src/FtpNegotiationCommand.cc
  224. * src/HttpResponseCommand.cc
  225. * src/Makefile.am
  226. * src/Metalink2RequestGroup.cc
  227. * src/RequestGroup.cc
  228. * src/RequestGroup.h
  229. * src/ServerHost.cc: Removed
  230. * src/ServerHost.h: Removed
  231. * test/BtDependencyTest.cc
  232. * test/FileEntryTest.cc
  233. * test/RequestGroupTest.cc
  234. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Rewritten PeerStat handling. In the previous implementation,
  236. faster command tries to find slower command. In this new
  237. implementation, slower command tries to find faster command.
  238. PeerStat is now created in each HTTP/FTP request to get download
  239. rate correctly. If the download range is small, the download rate
  240. tends to small and this will occur at the later stage of download.
  241. * src/AbstractCommand.cc
  242. * src/DownloadCommand.cc
  243. * src/FileEntry.cc
  244. * src/FileEntry.h
  245. * src/Request.cc
  246. * src/Request.h
  247. * src/RequestGroup.h
  248. * src/RequestGroupMan.cc
  249. * src/SegmentMan.cc
  250. * src/SegmentMan.h
  251. * test/SegmentManTest.cc
  252. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Removed _uris from RequestGroup. All functions that refer to _uris
  254. were moved to FileEntry. Exit status code are now defined in
  255. DownloadResultCode.h.
  256. * src/AbstractCommand.cc
  257. * src/AdaptiveURISelector.cc
  258. * src/AdaptiveURISelector.h
  259. * src/AutoSaveCommand.cc
  260. * src/BtPostDownloadHandler.cc
  261. * src/CheckIntegrityDispatcherCommand.cc
  262. * src/CookieStorage.cc
  263. * src/DHTAutoSaveCommand.cc
  264. * src/DHTBucketRefreshCommand.cc
  265. * src/DHTEntryPointNameResolveCommand.cc
  266. * src/DHTInteractionCommand.cc
  267. * src/DHTPeerAnnounceCommand.cc
  268. * src/DHTTokenUpdateCommand.cc
  269. * src/DlAbortEx.h
  270. * src/DlRetryEx.h
  271. * src/DownloadCommand.cc
  272. * src/DownloadContext.h
  273. * src/DownloadFailureException.h
  274. * src/DownloadResult.h
  275. * src/DownloadResultCode.h
  276. * src/FeedbackURISelector.cc
  277. * src/FeedbackURISelector.h
  278. * src/FileEntry.cc
  279. * src/FileEntry.h
  280. * src/FtpNegotiationCommand.cc
  281. * src/HttpListenCommand.cc
  282. * src/HttpResponseCommand.cc
  283. * src/HttpServerResponseCommand.cc
  284. * src/HttpSkipResponseCommand.cc
  285. * src/InOrderURISelector.cc
  286. * src/InOrderURISelector.h
  287. * src/Makefile.am
  288. * src/Makefile.in
  289. * src/Metalink2RequestGroup.cc
  290. * src/MultiUrlRequestInfo.cc
  291. * src/MultiUrlRequestInfo.h
  292. * src/OptionHandlerFactory.cc
  293. * src/PeerListenCommand.cc
  294. * src/RecoverableException.h
  295. * src/RequestGroup.cc
  296. * src/RequestGroup.h
  297. * src/RequestGroupMan.cc
  298. * src/RequestGroupMan.h
  299. * src/TimedHaltCommand.cc
  300. * src/TrackerWatcherCommand.cc
  301. * src/URIResult.cc
  302. * src/URIResult.h
  303. * src/URISelector.h
  304. * src/XmlRpcMethodImpl.cc
  305. * src/bittorrent_helper.cc
  306. * src/bittorrent_helper.h
  307. * src/download_helper.cc
  308. * src/main.cc
  309. * src/option_processing.cc
  310. * test/BtDependencyTest.cc
  311. * test/BtPostDownloadHandlerTest.cc
  312. * test/CookieStorageTest.cc
  313. * test/DefaultBtMessageDispatcherTest.cc
  314. * test/DownloadHandlerFactoryTest.cc
  315. * test/DownloadHelperTest.cc
  316. * test/FeedbackURISelectorTest.cc
  317. * test/FileEntryTest.cc
  318. * test/InOrderURISelectorTest.cc
  319. * test/Metalink2RequestGroupTest.cc
  320. * test/MetalinkPostDownloadHandlerTest.cc
  321. * test/RequestGroupManTest.cc
  322. * test/RequestGroupTest.cc
  323. * test/XmlRpcMethodTest.cc
  324. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Removed MockBtContext.h
  326. * test/Makefile.am
  327. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Removed _currentRequest from StreamCheckIntegrityEntry and
  329. StreamFileAllocationEntry.
  330. * src/AbstractCommand.cc
  331. * src/HttpResponseCommand.cc
  332. * src/RequestGroup.cc
  333. * src/StreamCheckIntegrityEntry.cc
  334. * src/StreamCheckIntegrityEntry.h
  335. * src/StreamFileAllocationEntry.cc
  336. * src/StreamFileAllocationEntry.h
  337. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. Rewritten DownloadContext and removed SingleFileDownloadContext
  339. and BtContext and its derived classes. BitTorrent specific
  340. attributes are now set by DownloadContext::setAttribute() with key
  341. bittorrent::BITTORRENT.
  342. * src/AbstractBtMessage.cc
  343. * src/AbstractBtMessage.h
  344. * src/AbstractCommand.cc
  345. * src/AbstractCommand.h
  346. * src/AbstractProxyRequestCommand.cc
  347. * src/AbstractProxyResponseCommand.cc
  348. * src/ActivePeerConnectionCommand.cc
  349. * src/ActivePeerConnectionCommand.h
  350. * src/AnnounceList.cc
  351. * src/BtCheckIntegrityEntry.cc
  352. * src/BtConstants.h
  353. * src/BtContext.h: Removed
  354. * src/BtDependency.cc
  355. * src/BtExtendedMessage.cc
  356. * src/BtPieceMessage.cc
  357. * src/BtPieceMessage.h
  358. * src/BtPostDownloadHandler.cc
  359. * src/BtRegistry.cc
  360. * src/BtRegistry.h
  361. * src/BtSetup.cc
  362. * src/CheckIntegrityCommand.cc
  363. * src/CheckIntegrityEntry.cc
  364. * src/ChecksumCheckIntegrityEntry.cc
  365. * src/ConsoleStatCalc.cc
  366. * src/ContentTypeRequestGroupCriteria.cc
  367. * src/DHTGetPeersCommand.cc
  368. * src/DHTGetPeersCommand.h
  369. * src/DHTPeerLookupTask.cc
  370. * src/DHTPeerLookupTask.h
  371. * src/DHTTaskFactory.h
  372. * src/DHTTaskFactoryImpl.cc
  373. * src/DHTTaskFactoryImpl.h
  374. * src/DefaultBtAnnounce.cc
  375. * src/DefaultBtAnnounce.h
  376. * src/DefaultBtContext.cc: Removed
  377. * src/DefaultBtContext.h: Removed
  378. * src/DefaultBtInteractive.cc
  379. * src/DefaultBtInteractive.h
  380. * src/DefaultBtMessageDispatcher.cc
  381. * src/DefaultBtMessageDispatcher.h
  382. * src/DefaultBtMessageFactory.cc
  383. * src/DefaultBtMessageFactory.h
  384. * src/DefaultBtMessageReceiver.cc
  385. * src/DefaultBtMessageReceiver.h
  386. * src/DefaultBtProgressInfoFile.cc
  387. * src/DefaultBtRequestFactory.cc
  388. * src/DefaultBtRequestFactory.h
  389. * src/DefaultExtensionMessageFactory.cc
  390. * src/DefaultExtensionMessageFactory.h
  391. * src/DefaultPeerStorage.cc
  392. * src/DefaultPeerStorage.h
  393. * src/DefaultPieceStorage.cc
  394. * src/DefaultSegmentManFactory.cc
  395. * src/DiskAdaptor.cc
  396. * src/DiskAdaptor.h
  397. * src/DownloadContext.cc
  398. * src/DownloadContext.h
  399. * src/DownloadEngine.cc
  400. * src/DownloadEngineFactory.cc
  401. * src/DownloadHandler.cc
  402. * src/DownloadResult.h
  403. * src/FileAllocationCommand.cc
  404. * src/FileAllocationDispatcherCommand.cc
  405. * src/FileAllocationEntry.cc
  406. * src/FileEntry.h
  407. * src/FillRequestGroupCommand.cc
  408. * src/FtpDownloadCommand.cc
  409. * src/FtpFinishDownloadCommand.cc
  410. * src/FtpInitiateConnectionCommand.cc
  411. * src/FtpNegotiationCommand.cc
  412. * src/FtpTunnelRequestCommand.cc
  413. * src/FtpTunnelResponseCommand.cc
  414. * src/HandshakeExtensionMessage.cc
  415. * src/HandshakeExtensionMessage.h
  416. * src/HaveEraseCommand.cc
  417. * src/HttpDownloadCommand.cc
  418. * src/HttpInitiateConnectionCommand.cc
  419. * src/HttpProxyRequestCommand.cc
  420. * src/HttpProxyResponseCommand.cc
  421. * src/HttpRequest.cc
  422. * src/HttpRequest.h
  423. * src/HttpRequestCommand.cc
  424. * src/HttpResponseCommand.cc
  425. * src/HttpServerBodyCommand.cc
  426. * src/HttpServerCommand.cc
  427. * src/HttpSkipResponseCommand.cc
  428. * src/InitiateConnectionCommandFactory.cc
  429. * src/InitiatorMSEHandshakeCommand.cc
  430. * src/InitiatorMSEHandshakeCommand.h
  431. * src/IteratableChecksumValidator.cc
  432. * src/IteratableChecksumValidator.h
  433. * src/IteratableChunkChecksumValidator.cc
  434. * src/MSEHandshake.cc
  435. * src/MSEHandshake.h
  436. * src/Makefile.am
  437. * src/Makefile.in
  438. * src/Metalink2RequestGroup.cc
  439. * src/MetalinkPostDownloadHandler.cc
  440. * src/MultiDiskAdaptor.cc
  441. * src/MultiDiskAdaptor.h
  442. * src/MultiFileAllocationIterator.cc
  443. * src/MultiUrlRequestInfo.cc
  444. * src/PeerChokeCommand.cc
  445. * src/PeerChokeCommand.h
  446. * src/PeerInitiateConnectionCommand.cc
  447. * src/PeerInitiateConnectionCommand.h
  448. * src/PeerInteractionCommand.cc
  449. * src/PeerInteractionCommand.h
  450. * src/PeerReceiveHandshakeCommand.cc
  451. * src/PieceHashCheckIntegrityEntry.cc
  452. * src/RealtimeCommand.cc
  453. * src/ReceiverMSEHandshakeCommand.cc
  454. * src/RequestGroup.cc
  455. * src/RequestGroup.h
  456. * src/RequestGroupEntry.cc
  457. * src/RequestGroupMan.cc
  458. * src/SeedCheckCommand.cc
  459. * src/SeedCheckCommand.h
  460. * src/SegmentMan.cc
  461. * src/ShareRatioSeedCriteria.h
  462. * src/SingleFileDownloadContext.cc: Removed
  463. * src/SingleFileDownloadContext.h: Removed
  464. * src/SleepCommand.cc
  465. * src/StreamCheckIntegrityEntry.cc
  466. * src/TrackerWatcherCommand.cc
  467. * src/TrackerWatcherCommand.h
  468. * src/UnknownLengthPieceStorage.cc
  469. * src/Util.cc
  470. * src/Util.h
  471. * src/XmlRpcMethodImpl.cc
  472. * src/bittorrent_helper.cc
  473. * src/bittorrent_helper.h
  474. * src/download_helper.cc
  475. * src/main.cc
  476. * src/option_processing.cc
  477. * test/BitfieldManTest.cc
  478. * test/BittorrentHelperTest.cc
  479. * test/BtCancelMessageTest.cc
  480. * test/BtChokeMessageTest.cc
  481. * test/BtDependencyTest.cc
  482. * test/BtPieceMessageTest.cc
  483. * test/BtPostDownloadHandlerTest.cc
  484. * test/BtRegistryTest.cc
  485. * test/BtRejectMessageTest.cc
  486. * test/BtRequestMessageTest.cc
  487. * test/DHTPeerAnnounceStorageTest.cc
  488. * test/DefaultBtAnnounceTest.cc
  489. * test/DefaultBtContextTest.cc: Removed
  490. * test/DefaultBtMessageDispatcherTest.cc
  491. * test/DefaultBtMessageFactoryTest.cc
  492. * test/DefaultBtProgressInfoFileTest.cc
  493. * test/DefaultBtRequestFactoryTest.cc
  494. * test/DefaultExtensionMessageFactoryTest.cc
  495. * test/DefaultPeerStorageTest.cc
  496. * test/DefaultPieceStorageTest.cc
  497. * test/DirectDiskAdaptorTest.cc
  498. * test/DownloadContextTest.cc
  499. * test/DownloadHandlerFactoryTest.cc
  500. * test/DownloadHelperTest.cc
  501. * test/HandshakeExtensionMessageTest.cc
  502. * test/HttpRequestTest.cc
  503. * test/HttpResponseTest.cc
  504. * test/IteratableChecksumValidatorTest.cc
  505. * test/IteratableChunkChecksumValidatorTest.cc
  506. * test/MSEHandshakeTest.cc
  507. * test/Makefile.am
  508. * test/Makefile.in
  509. * test/Metalink2RequestGroupTest.cc
  510. * test/MetalinkPostDownloadHandlerTest.cc
  511. * test/MockBtContext.h: Removed
  512. * test/MockDHTTaskFactory.h
  513. * test/MockDownloadContext.h: Removed
  514. * test/MockPieceStorage.h
  515. * test/MultiDiskAdaptorTest.cc
  516. * test/MultiFileAllocationIteratorTest.cc
  517. * test/RequestGroupManTest.cc
  518. * test/RequestGroupTest.cc
  519. * test/SegmentManTest.cc
  520. * test/ShareRatioSeedCriteriaTest.cc
  521. * test/SingleFileDownloadContextTest.cc: Removed
  522. * test/UtilTest.cc
  523. * test/XmlRpcMethodTest.cc
  524. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Added experimental support of WEB-Seeding for multi-file torrent.
  526. Due to fundamental changes in file handling in HTTP/FTP code, many
  527. functions are not working: PeerStat, ServerHost, proxy..etc
  528. * src/AbstractCommand.cc
  529. * src/AbstractCommand.h
  530. * src/BitfieldMan.cc
  531. * src/BitfieldMan.h
  532. * src/CreateRequestCommand.cc
  533. * src/CreateRequestCommand.h
  534. * src/DefaultPieceStorage.cc
  535. * src/DefaultPieceStorage.h
  536. * src/DownloadCommand.cc
  537. * src/DownloadCommand.h
  538. * src/DownloadContext.cc
  539. * src/DownloadContext.h
  540. * src/FileEntry.cc
  541. * src/FileEntry.h
  542. * src/FtpDownloadCommand.cc
  543. * src/FtpDownloadCommand.h
  544. * src/FtpFinishDownloadCommand.cc
  545. * src/FtpFinishDownloadCommand.h
  546. * src/FtpInitiateConnectionCommand.cc
  547. * src/FtpInitiateConnectionCommand.h
  548. * src/FtpNegotiationCommand.cc
  549. * src/FtpNegotiationCommand.h
  550. * src/FtpTunnelResponseCommand.cc
  551. * src/HttpDownloadCommand.cc
  552. * src/HttpDownloadCommand.h
  553. * src/HttpInitiateConnectionCommand.cc
  554. * src/HttpInitiateConnectionCommand.h
  555. * src/HttpProxyResponseCommand.cc
  556. * src/HttpRequest.cc
  557. * src/HttpRequest.h
  558. * src/HttpRequestCommand.cc
  559. * src/HttpRequestCommand.h
  560. * src/HttpResponseCommand.cc
  561. * src/HttpResponseCommand.h
  562. * src/HttpSkipResponseCommand.cc
  563. * src/HttpSkipResponseCommand.h
  564. * src/InitiateConnectionCommand.cc
  565. * src/InitiateConnectionCommand.h
  566. * src/InitiateConnectionCommandFactory.cc
  567. * src/InitiateConnectionCommandFactory.h
  568. * src/Makefile.am
  569. * src/PieceStorage.h
  570. * src/RequestGroup.cc
  571. * src/RequestGroup.h
  572. * src/RequestGroupMan.cc
  573. * src/SegmentMan.cc
  574. * src/SegmentMan.h
  575. * src/SingleFileDownloadContext.h
  576. * src/StreamFileAllocationEntry.cc
  577. * src/TrackerWatcherCommand.cc
  578. * src/UnknownLengthPieceStorage.cc
  579. * src/UnknownLengthPieceStorage.h
  580. * src/array_fun.h
  581. * src/bitfield.h
  582. * src/download_helper.cc
  583. * test/DownloadContextTest.cc
  584. * test/Makefile.am
  585. * test/MockDownloadContext.h
  586. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  587. Added tellWaiting XML-RPC method.
  588. * src/SingleFileDownloadContext.cc
  589. * src/XmlRpcMethodFactory.cc
  590. * src/XmlRpcMethodImpl.cc
  591. * src/XmlRpcMethodImpl.h
  592. * test/XmlRpcMethodTest.cc
  593. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  594. Updated CookieStorageTest
  595. * test/CookieStorageTest.cc
  596. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  598. handle excepion inside these functions.
  599. * src/LibgnutlsTLSContext.cc
  600. * src/LibgnutlsTLSContext.h
  601. * src/LibsslTLSContext.cc
  602. * src/LibsslTLSContext.h
  603. * src/MultiUrlRequestInfo.cc
  604. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. Added comment
  606. * src/RequestGroup.cc
  607. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. In CookieStorage::load() and saveNsFormat(), handle exception
  609. inside the functions. When saving Cookies, first write temporary
  610. file and after successful writes, then renames it to final
  611. destination.
  612. * src/CookieStorage.cc
  613. * src/CookieStorage.h
  614. * src/MultiUrlRequestInfo.cc
  615. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. The default value of --dir option is the absolute path to the
  617. current directory. If getcwd() is failed, then it is ".", which is
  618. the same value with old implementation. This change is necessary
  619. because after daemon() call, the current working directory is
  620. changed to /.
  621. * src/File.cc
  622. * src/File.h
  623. * src/OptionHandlerFactory.cc
  624. * src/option_processing.cc
  625. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Call daemon() with arguments(0,0), which means daemon() changes
  627. current working directory to / and redirects stdin, stdout and
  628. stderr to /dev/null.
  629. * src/option_processing.cc
  630. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Small performance optimizations.
  632. * src/RequestGroupMan.cc
  633. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Added _xmlRpc member variable to RequestGroupMan to reduce the
  635. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  636. * src/RequestGroupMan.cc
  637. * src/RequestGroupMan.h
  638. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  640. setNoWiat(true) if newly created command calls
  641. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  642. * src/HttpListenCommand.cc
  643. * src/HttpServerBodyCommand.cc
  644. * src/HttpServerCommand.cc
  645. * src/HttpServerResponseCommand.cc
  646. * src/InitiateConnectionCommand.cc
  647. * src/RequestGroup.cc
  648. * src/StreamFileAllocationEntry.cc
  649. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Removed include vector
  651. * src/BtRegistry.h
  652. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Rewritten BtRegistry
  654. * src/BtRegistry.cc
  655. * src/BtRegistry.h
  656. * src/BtSetup.cc
  657. * src/ConsoleStatCalc.cc
  658. * src/PeerInteractionCommand.cc
  659. * src/PeerReceiveHandshakeCommand.cc
  660. * src/ReceiverMSEHandshakeCommand.cc
  661. * src/RequestGroup.cc
  662. * src/XmlRpcMethodImpl.cc
  663. * test/BtRegistryTest.cc
  664. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  666. * src/DefaultBtProgressInfoFile.cc
  667. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Throw an exception if position is less than 0.
  669. * src/XmlRpcMethodImpl.cc
  670. * test/XmlRpcMethodTest.cc
  671. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Use writeFilePath() in ConsoleStatCalc.cc
  673. * src/ConsoleStatCalc.cc
  674. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Receive the return value as const reference from
  676. DownloadContext::getFileEntries().
  677. * src/DefaultPieceStorage.cc
  678. * src/RequestGroupMan.cc
  679. * src/XmlRpcMethodImpl.cc
  680. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. DownloadContext now has _fileEntries so that
  682. DownloadContext::getFileEntries() can returns its const reference.
  683. * src/DefaultBtContext.cc
  684. * src/DefaultBtContext.h
  685. * src/DownloadContext.cc
  686. * src/DownloadContext.h
  687. * src/SingleFileDownloadContext.cc
  688. * src/SingleFileDownloadContext.h
  689. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  691. writeFilePath() function template from RequestGroupMan.cc to
  692. FileEntry.h
  693. * src/FileEntry.h
  694. * src/RequestGroupMan.cc
  695. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Documented 'position' parameter is starting from 0 in man page.
  697. * doc/aria2c.1.txt
  698. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Updated doc.
  700. * src/MSEHandshake.cc
  701. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  702. Removed _acceptFeatures and its accessor functions from
  703. RequestGroup since they are not used practically.
  704. * src/HttpRequestCommand.cc
  705. * src/RequestGroup.cc
  706. * src/RequestGroup.h
  707. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Removed member _maxTries from RequestGroup class to avoid
  709. duplicate option value. Those classes who refer this variable
  710. should use option value of PREF_MAX_TRIES directly.
  711. * src/AbstractCommand.cc
  712. * src/RequestGroup.cc
  713. * src/RequestGroup.h
  714. * src/TrackerWatcherCommand.cc
  715. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. * Release 1.4.1
  717. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  718. Fixed compiler warnings on netbsd
  719. * src/DHTConnectionImpl.cc
  720. * src/PeerListenCommand.cc
  721. * src/PeerSessionResource.cc
  722. * src/SegmentMan.cc
  723. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Updated Ukrainian translation. Thanks to all translators.
  725. * po/uk.po
  726. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Bump up version number to 1.4.1.
  728. * configure.ac
  729. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Added unit tests for strjoin, strconcat and strappend.
  731. * test/a2functionalTest.cc
  732. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Rewritten strconcat and strappend using operator+ instead of
  734. append().
  735. * src/a2functional.h
  736. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  738. is enabled.
  739. * src/Makefile.am
  740. * test/Makefile.am
  741. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Added countSeeder() function which counts seeder in the given
  743. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  744. * src/ConsoleStatCalc.cc
  745. * src/Peer.h
  746. * src/XmlRpcMethodImpl.cc
  747. * test/PeerTest.cc
  748. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Documented missing seeder in getPeers xml-rpc method.
  750. Documented uploadLength and numSeeders.
  751. * doc/aria2c.1.txt
  752. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Added uploadLength and numSeeders to the response of tellStatus
  754. xml-rpc method. Assert that PeerStorage instance is not null
  755. instead of checking if statement. It should be non-null in this
  756. context.
  757. * src/XmlRpcMethodImpl.cc
  758. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  759. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  760. * src/XmlRpcResponse.cc
  761. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  762. Avoid intermediate object during string concatenation.
  763. * src/HttpRequest.cc
  764. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Added strjoin function template. Use it in pathJoin()
  766. * src/Util.h
  767. * src/a2functional.h
  768. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Avoid intermediate object during string concatenation. Replaced
  770. post-increment unary operator with pre-increment one in for loop.
  771. * src/AdaptiveURISelector.cc
  772. * src/AnnounceList.cc
  773. * src/AuthConfig.h
  774. * src/BtBitfieldMessage.cc
  775. * src/BtExtendedMessage.cc
  776. * src/BtHandshakeMessage.cc
  777. * src/BtPieceMessage.cc
  778. * src/BtPortMessage.cc
  779. * src/Cookie.cc
  780. * src/DHTAnnouncePeerMessage.cc
  781. * src/DHTAutoSaveCommand.cc
  782. * src/DHTGetPeersReplyMessage.cc
  783. * src/DHTNode.cc
  784. * src/DHTQueryMessage.cc
  785. * src/DHTResponseMessage.cc
  786. * src/DHTUnknownMessage.cc
  787. * src/DefaultBtAnnounce.cc
  788. * src/DefaultBtContext.cc
  789. * src/DefaultBtInteractive.cc
  790. * src/DefaultBtProgressInfoFile.cc
  791. * src/DefaultPeerStorage.cc
  792. * src/DownloadEngine.cc
  793. * src/FeatureConfig.cc
  794. * src/File.cc
  795. * src/FtpConnection.cc
  796. * src/FtpNegotiationCommand.cc
  797. * src/HandshakeExtensionMessage.cc
  798. * src/HttpConnection.cc
  799. * src/HttpRequest.cc
  800. * src/HttpResponseCommand.cc
  801. * src/HttpServer.cc
  802. * src/IndexBtMessage.cc
  803. * src/Metalink2RequestGroup.cc
  804. * src/OptionHandlerImpl.h
  805. * src/PStringBuildVisitor.cc
  806. * src/Peer.cc
  807. * src/PeerListenCommand.cc
  808. * src/Piece.cc
  809. * src/RangeBtMessage.cc
  810. * src/Request.cc
  811. * src/Request.h
  812. * src/RequestGroup.cc
  813. * src/RequestGroupMan.cc
  814. * src/ServerStat.cc
  815. * src/ServerStatMan.cc
  816. * src/UTPexExtensionMessage.cc
  817. * src/Util.cc
  818. * src/a2functional.h
  819. * src/download_helper.cc
  820. * src/messageDigest.cc
  821. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Unchoke a peer randomly at first and second choke round in seed
  823. state.
  824. * src/BtSeederStateChoke.cc
  825. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  826. Added (sock_t) to quiet compiler warnings in MinGW
  827. * src/SocketCore.cc
  828. * src/SocketCore.h
  829. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  831. * src/EpollEventPoll.h
  832. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  833. Added fork() emulation using CreateProcess() in MinGW
  834. * src/RequestGroupMan.cc
  835. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  836. * Release 1.4.0
  837. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Added utf8.torrent to EXTRA_DIST
  839. * test/Makefile.am
  840. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Fixed docs of aria2.addMetalink xml-rpc method.
  842. * doc/aria2c.1.txt
  843. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Added Slovak translation. Updated Ukrainian and Brazilian
  845. Portuguese translation. Thanks to all translators.
  846. * po/sk.po
  847. * po/uk.po
  848. * po/pt_BR.po
  849. * po/LINGUAS
  850. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Added test case for XmlRpcProcessor to fail to parse malformed
  852. document.
  853. * test/XmlRpcRequestProcessorTest.cc
  854. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Removed *.gmo files in po because they are generated on 'make
  856. dist'
  857. * po/*.gmo
  858. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Documented max-concurrent-downloads of changeGlobalOption method
  860. in man page.
  861. * doc/aria2c.1.txt
  862. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  863. Added max-concurrent-downloads option to changeGlobalOption
  864. xml-rpc method. Rewritten loop conditional in
  865. RequestGroupMan::fillRequestGroupFromReserver().
  866. * src/RequestGroupMan.cc
  867. * src/RequestGroupMan.h
  868. * src/XmlRpcMethod.cc
  869. * src/XmlRpcMethodImpl.cc
  870. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Documented position parameter in man page.
  872. * doc/aria2c.1.txt
  873. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Added 'position' parameter to addUri, addTorrent and addMetalink
  875. xml-rpc method.
  876. * src/RequestGroupMan.cc
  877. * src/RequestGroupMan.h
  878. * src/XmlRpcMethodImpl.cc
  879. * test/XmlRpcMethodTest.cc
  880. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Removed Peer.cc from compile source list when --disable-bittorrent
  882. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  883. takes Peer.
  884. * src/DefaultPieceStorage.cc
  885. * src/DefaultPieceStorage.h
  886. * src/Makefile.am
  887. * src/PieceStorage.h
  888. * src/UnknownLengthPieceStorage.cc
  889. * src/UnknownLengthPieceStorage.h
  890. * test/MockPieceStorage.h
  891. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Implemented getter methods in header files to give them more
  893. chance of optimization.
  894. Return const reference for SharadHandle if possible.
  895. * src/AbstractAuthResolver.cc
  896. * src/AbstractAuthResolver.h
  897. * src/AbstractBtMessage.cc
  898. * src/AbstractBtMessage.h
  899. * src/AbstractSingleDiskAdaptor.cc
  900. * src/AbstractSingleDiskAdaptor.h
  901. * src/AsyncNameResolver.cc
  902. * src/AsyncNameResolver.h
  903. * src/BNode.cc
  904. * src/BNode.h
  905. * src/BitfieldMan.cc
  906. * src/BitfieldMan.h
  907. * src/BtAbortOutstandingRequestEvent.h
  908. * src/BtExtendedMessage.cc
  909. * src/BtExtendedMessage.h
  910. * src/BtSeederStateChoke.cc
  911. * src/BtSeederStateChoke.h
  912. * src/Cookie.cc
  913. * src/Cookie.h
  914. * src/DHTBucket.cc
  915. * src/DHTBucket.h
  916. * src/DHTConnectionImpl.cc
  917. * src/DHTConnectionImpl.h
  918. * src/DHTFindNodeReplyMessage.cc
  919. * src/DHTFindNodeReplyMessage.h
  920. * src/DHTGetPeersReplyMessage.cc
  921. * src/DHTGetPeersReplyMessage.h
  922. * src/DHTInteractionCommand.cc
  923. * src/DHTMessage.cc
  924. * src/DHTMessage.h
  925. * src/DHTMessageDispatcherImpl.cc
  926. * src/DHTMessageEntry.cc
  927. * src/DHTMessageReceiver.cc
  928. * src/DHTMessageReceiver.h
  929. * src/DHTMessageTrackerEntry.cc
  930. * src/DHTMessageTrackerEntry.h
  931. * src/DHTPeerAnnounceEntry.cc
  932. * src/DHTPeerAnnounceEntry.h
  933. * src/DHTPeerLookupTask.cc
  934. * src/DHTPeerLookupTask.h
  935. * src/DHTRoutingTableDeserializer.cc
  936. * src/DHTRoutingTableDeserializer.h
  937. * src/DefaultBtAnnounce.cc
  938. * src/DefaultBtAnnounce.h
  939. * src/DefaultBtMessageDispatcher.cc
  940. * src/DefaultBtMessageDispatcher.h
  941. * src/DefaultBtRequestFactory.cc
  942. * src/DefaultBtRequestFactory.h
  943. * src/DiskAdaptor.cc
  944. * src/DiskAdaptor.h
  945. * src/DownloadContext.cc
  946. * src/DownloadContext.h
  947. * src/DownloadEngine.cc
  948. * src/DownloadEngine.h
  949. * src/EpollEventPoll.cc
  950. * src/EpollEventPoll.h
  951. * src/FtpConnection.cc
  952. * src/FtpConnection.h
  953. * src/HttpConnection.cc
  954. * src/HttpConnection.h
  955. * src/HttpHeader.cc
  956. * src/HttpHeader.h
  957. * src/HttpRequest.cc
  958. * src/HttpRequest.h
  959. * src/HttpResponse.cc
  960. * src/HttpResponse.h
  961. * src/LibsslTLSContext.cc
  962. * src/LibsslTLSContext.h
  963. * src/MSEHandshake.cc
  964. * src/MSEHandshake.h
  965. * src/MetalinkEntry.cc
  966. * src/MetalinkEntry.h
  967. * src/MetalinkParserController.cc
  968. * src/MetalinkParserController.h
  969. * src/MetalinkParserStateMachine.cc
  970. * src/MetalinkParserStateMachine.h
  971. * src/MultiDiskAdaptor.cc
  972. * src/MultiDiskAdaptor.h
  973. * src/NetrcAuthResolver.cc
  974. * src/NetrcAuthResolver.h
  975. * src/Peer.cc
  976. * src/Peer.h
  977. * src/PeerSessionResource.cc
  978. * src/PeerSessionResource.h
  979. * src/Piece.cc
  980. * src/Piece.h
  981. * src/PieceStatMan.cc
  982. * src/PieceStatMan.h
  983. * src/Request.cc
  984. * src/Request.h
  985. * src/RequestGroup.cc
  986. * src/RequestGroup.h
  987. * src/RequestGroupMan.cc
  988. * src/RequestGroupMan.h
  989. * src/RequestSlot.cc
  990. * src/RequestSlot.h
  991. * src/SegmentMan.cc
  992. * src/SegmentMan.h
  993. * src/SelectEventPoll.cc
  994. * src/SelectEventPoll.h
  995. * src/ServerStat.cc
  996. * src/ServerStat.h
  997. * src/Signature.cc
  998. * src/Signature.h
  999. * src/URIResult.cc
  1000. * src/URIResult.h
  1001. * src/UTPexExtensionMessage.cc
  1002. * src/UTPexExtensionMessage.h
  1003. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Fixed compile error without BitTorrent and Metalink support.
  1005. * src/XmlRpcMethod.cc
  1006. * src/XmlRpcMethodFactory.cc
  1007. * src/XmlRpcMethodImpl.cc
  1008. * src/XmlRpcMethodImpl.h
  1009. * test/XmlRpcMethodTest.cc
  1010. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Rewritten the help message for --allow-overwrite option.
  1012. * doc/aria2c.1.txt
  1013. * src/usage_text.h
  1014. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Fixed typo
  1016. * doc/aria2c.1.txt
  1017. * src/usage_text.h
  1018. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Updated README for 1.4.0 release. Use new table syntax of
  1020. asciidoc.
  1021. * README
  1022. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Documented --xml-rpc-max-request-size option in man page.
  1024. * doc/aria2c.1.txt
  1025. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Moved C_* constants from BtContext to DefaultBtContext.
  1027. * src/BtContext.cc: Removed.
  1028. * src/BtContext.h
  1029. * src/DefaultBtContext.cc
  1030. * src/DefaultBtContext.h
  1031. * src/Makefile.am
  1032. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1034. path key respectively when persing .torrent file.
  1035. * src/BtContext.cc
  1036. * src/BtContext.h
  1037. * src/DefaultBtContext.cc
  1038. * test/DefaultBtContextTest.cc
  1039. * test/utf8.torrent
  1040. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Added --xml-rpc-max-request-size option to limit the size of
  1042. XML-RPC request.
  1043. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Documented XML-RPC API in man page.
  1045. * doc/aria2c.1.txt
  1046. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1048. will break strict-aliasing rules
  1049. * src/PeerConnection.cc
  1050. * test/DHTRoutingTableSerializerTest.cc
  1051. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1053. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1054. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1055. PKG_CHECK_MODULES macro uses latter name.
  1056. * m4/sqlite3.m4
  1057. * src/Makefile.am
  1058. * test/Makefile.am
  1059. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Fixed typo
  1061. * configure.ac
  1062. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1064. presence of libgnutls using pkg-config first. If it fails, fall
  1065. back to old macro libgnutls.m4.
  1066. * configure.ac
  1067. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Use s itself instead of !s.bad()
  1069. * src/CookieStorage.cc
  1070. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Documented --on-download-* option and --save-cookies option in man
  1072. page.
  1073. * doc/aria2c.1.txt
  1074. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Set possible values for --load-cookie option to "/path/to/file".
  1076. * src/OptionHandlerFactory.cc
  1077. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1078. Added --save-cookies option.
  1079. * src/Cookie.cc
  1080. * src/Cookie.h
  1081. * src/CookieStorage.cc
  1082. * src/CookieStorage.h
  1083. * src/MultiUrlRequestInfo.cc
  1084. * src/OptionHandlerFactory.cc
  1085. * src/prefs.cc
  1086. * src/prefs.h
  1087. * src/usage_text.h
  1088. * test/CookieStorageTest.cc
  1089. * test/CookieTest.cc
  1090. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1091. Removed tellAll XML-RPC command because its reponse tends to be
  1092. big if stopped/waiting downloads pile up.
  1093. * src/XmlRpcMethodFactory.cc
  1094. * src/XmlRpcMethodImpl.cc
  1095. * src/XmlRpcMethodImpl.h
  1096. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Added the ability to execute command when download starts and
  1098. stops. You can also specify command for particular cases such as
  1099. complete/error download. Added --on-download-start,
  1100. --on-download-stop, --on-download-complete and --on-download-error
  1101. option.
  1102. * src/OptionHandlerFactory.cc
  1103. * src/RequestGroupMan.cc
  1104. * src/prefs.cc
  1105. * src/prefs.h
  1106. * src/usage_text.h
  1107. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Fixed test error
  1109. * test/BencodeTest.cc
  1110. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Added unit tests.
  1112. * test/XmlRpcMethodTest.cc
  1113. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. Made exception message more verbose.
  1115. * src/bencode.cc
  1116. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1118. space in console readout. Also they are now shown in MiB/s if
  1119. speed > 1024KiB/s.
  1120. * src/ConsoleStatCalc.cc
  1121. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Added SEED to console output, which represents the number of
  1123. seeders currently the client is connecting to.
  1124. * src/ConsoleStatCalc.cc
  1125. * src/ConsoleStatCalc.h
  1126. * src/DownloadEngine.cc
  1127. * src/NullStatCalc.h
  1128. * src/StatCalc.h
  1129. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Added source filename(__FILE__) and line number(__LINE__) to
  1131. exception message.
  1132. * src/AbstractCommand.cc
  1133. * src/AbstractDiskWriter.cc
  1134. * src/AbstractProxyResponseCommand.cc
  1135. * src/BDE.h
  1136. * src/BtAllowedFastMessage.cc
  1137. * src/BtHandshakeMessageValidator.h
  1138. * src/BtHaveAllMessage.cc
  1139. * src/BtHaveNoneMessage.cc
  1140. * src/BtPieceMessage.cc
  1141. * src/BtRejectMessage.cc
  1142. * src/ChunkedDecoder.cc
  1143. * src/CookieStorage.cc
  1144. * src/DHTAnnouncePeerMessage.cc
  1145. * src/DHTEntryPointNameResolveCommand.cc
  1146. * src/DHTMessageFactoryImpl.cc
  1147. * src/DHTMessageTracker.cc
  1148. * src/DHTRoutingTableDeserializer.cc
  1149. * src/DHTRoutingTableSerializer.cc
  1150. * src/DHTSetup.cc
  1151. * src/DHTTokenTracker.cc
  1152. * src/DefaultBtAnnounce.cc
  1153. * src/DefaultBtContext.cc
  1154. * src/DefaultBtInteractive.cc
  1155. * src/DefaultBtMessageFactory.cc
  1156. * src/DefaultBtProgressInfoFile.cc
  1157. * src/DefaultExtensionMessageFactory.cc
  1158. * src/DlAbortEx.h
  1159. * src/DlRetryEx.h
  1160. * src/DownloadCommand.cc
  1161. * src/DownloadEngineFactory.cc
  1162. * src/DownloadFailureException.h
  1163. * src/Exception.cc
  1164. * src/Exception.h
  1165. * src/ExpatMetalinkProcessor.cc
  1166. * src/ExpatXmlRpcRequestProcessor.cc
  1167. * src/FallocFileAllocationIterator.cc
  1168. * src/FatalException.h
  1169. * src/FtpConnection.cc
  1170. * src/FtpFinishDownloadCommand.cc
  1171. * src/FtpInitiateConnectionCommand.cc
  1172. * src/FtpNegotiationCommand.cc
  1173. * src/GZipDecoder.cc
  1174. * src/HandshakeExtensionMessage.cc
  1175. * src/HttpConnection.cc
  1176. * src/HttpHeaderProcessor.cc
  1177. * src/HttpInitiateConnectionCommand.cc
  1178. * src/HttpResponse.cc
  1179. * src/HttpResponseCommand.cc
  1180. * src/HttpServer.cc
  1181. * src/HttpSkipResponseCommand.cc
  1182. * src/InitiateConnectionCommandFactory.cc
  1183. * src/IteratableChunkChecksumValidator.cc
  1184. * src/LibgcryptARC4Context.h
  1185. * src/LibgcryptARC4Decryptor.h
  1186. * src/LibgcryptARC4Encryptor.h
  1187. * src/LibgcryptDHKeyExchange.h
  1188. * src/LibgnutlsTLSContext.cc
  1189. * src/LibsslARC4Context.h
  1190. * src/LibsslARC4Decryptor.h
  1191. * src/LibsslARC4Encryptor.h
  1192. * src/LibsslDHKeyExchange.h
  1193. * src/LibsslTLSContext.cc
  1194. * src/MSEHandshake.cc
  1195. * src/MessageDigestHelper.cc
  1196. * src/MetalinkHelper.cc
  1197. * src/MultiDiskAdaptor.cc
  1198. * src/NameMatchOptionHandler.h
  1199. * src/NameResolver.cc
  1200. * src/Netrc.cc
  1201. * src/NsCookieParser.cc
  1202. * src/OptionHandlerException.cc
  1203. * src/OptionHandlerException.h
  1204. * src/OptionHandlerImpl.h
  1205. * src/OptionParser.cc
  1206. * src/ParameterizedStringParser.cc
  1207. * src/PeerAbstractCommand.cc
  1208. * src/PeerConnection.cc
  1209. * src/PeerMessageUtil.cc
  1210. * src/PeerReceiveHandshakeCommand.cc
  1211. * src/Platform.cc
  1212. * src/ReceiverMSEHandshakeCommand.cc
  1213. * src/RecoverableException.h
  1214. * src/RequestGroup.cc
  1215. * src/SimpleLogger.cc
  1216. * src/SocketCore.cc
  1217. * src/Sqlite3MozCookieParser.cc
  1218. * src/UTPexExtensionMessage.cc
  1219. * src/Util.cc
  1220. * src/XML2SAXMetalinkProcessor.cc
  1221. * src/Xml2XmlRpcRequestProcessor.cc
  1222. * src/XmlRpcMethodImpl.cc
  1223. * src/bencode.cc
  1224. * src/download_helper.cc
  1225. * src/messageDigest.h
  1226. * test/ExceptionTest.cc
  1227. * test/TestUtil.cc
  1228. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Bump up version number to 1.4.0
  1230. * configure.ac
  1231. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Added 2files.metalink to EXTRA_DIST
  1233. * test/Makefile.am
  1234. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1235. Added missing 2files.metalink
  1236. * test/2files.metalink
  1237. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1238. Show "[MEMORY]" prefix before filename in download summary if it
  1239. is downloaded into memory.
  1240. * src/DownloadResult.h
  1241. * src/RequestGroup.cc
  1242. * src/RequestGroupMan.cc
  1243. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1245. * src/ExpatXmlRpcRequestProcessor.cc
  1246. * src/Xml2XmlRpcRequestProcessor.cc
  1247. * src/message.h
  1248. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Defined const BDEs to avoid duplicate instantiation.
  1250. Defined MSG_GID_NOT_PROVIDED.
  1251. * src/XmlRpcMethodImpl.cc
  1252. * src/message.h
  1253. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Code cleanup
  1255. * src/Xml2XmlRpcRequestProcessor.cc
  1256. * src/Xml2XmlRpcRequestProcessor.h
  1257. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Defined ENABLE_XML_RPC
  1259. * configure.ac
  1260. * configure
  1261. * config.h.in
  1262. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Added ExpatXmlRpcRequestProcessor
  1264. * src/ExpatXmlRpcRequestProcessor.cc
  1265. * src/ExpatXmlRpcRequestProcessor.h
  1266. * src/Makefile.am
  1267. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Added tests for addTorrent and addMetalink command.
  1269. * test/TestUtil.cc
  1270. * test/TestUtil.h
  1271. * test/XmlRpcMethodTest.cc
  1272. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Corrected the description of --file-allocation option.
  1274. * doc/aria2c.1.txt
  1275. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Added tellAll command.
  1277. * src/XmlRpcMethodFactory.cc
  1278. * src/XmlRpcMethodImpl.cc
  1279. * src/XmlRpcMethodImpl.h
  1280. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1282. * src/XmlRpcMethodImpl.cc
  1283. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Added changeGlobalOption command. Currently,
  1285. max-overall-download-limit and max-overall-upload-limit option are
  1286. available.
  1287. * src/RequestGroupMan.h
  1288. * src/XmlRpcMethod.cc
  1289. * src/XmlRpcMethod.h
  1290. * src/XmlRpcMethodFactory.cc
  1291. * src/XmlRpcMethodImpl.cc
  1292. * src/XmlRpcMethodImpl.h
  1293. * test/XmlRpcMethodTest.cc
  1294. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Added changeOption command. Currently, max-download-limit,
  1296. max-upload-limit option are available in this command.
  1297. * src/RequestGroup.h
  1298. * src/XmlRpcMethod.cc
  1299. * src/XmlRpcMethod.h
  1300. * src/XmlRpcMethodFactory.cc
  1301. * src/XmlRpcMethodImpl.cc
  1302. * src/XmlRpcMethodImpl.h
  1303. * test/XmlRpcMethodTest.cc
  1304. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Added purgeDownloadResult command.
  1306. * src/RequestGroupMan.cc
  1307. * src/RequestGroupMan.h
  1308. * src/XmlRpcMethodFactory.cc
  1309. * src/XmlRpcMethodImpl.cc
  1310. * src/XmlRpcMethodImpl.h
  1311. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Refactored.
  1313. * src/XmlRpcMethod.cc
  1314. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1316. XmlRpcResponse.
  1317. * src/HttpServerBodyCommand.cc
  1318. * src/Makefile.am
  1319. * src/XmlRpcMethod.cc
  1320. * src/XmlRpcMethod.h
  1321. * src/XmlRpcMethodImpl.cc
  1322. * src/XmlRpcResponse.cc
  1323. * src/XmlRpcResponse.h
  1324. * test/XmlRpcMethodTest.cc
  1325. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1326. In XML-RPC option struct, header and index-out option can take
  1327. array as value.
  1328. * src/XmlRpcMethod.cc
  1329. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Removed unused option member from PeerConnection.
  1331. * src/InitiatorMSEHandshakeCommand.cc
  1332. * src/PeerConnection.cc
  1333. * src/PeerConnection.h
  1334. * src/PeerInteractionCommand.cc
  1335. * src/PeerReceiveHandshakeCommand.cc
  1336. * src/ReceiverMSEHandshakeCommand.cc
  1337. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Added "seeder" key to getPeers response.
  1339. * src/XmlRpcMethodImpl.cc
  1340. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Added addMetalink XML-RPC command.
  1342. * src/XmlRpcMethodFactory.cc
  1343. * src/XmlRpcMethodImpl.cc
  1344. * src/XmlRpcMethodImpl.h
  1345. * src/download_helper.cc
  1346. * src/download_helper.h
  1347. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Fixed the bug that POU peers are never choked in seeding.
  1349. * src/BtSeederStateChoke.cc
  1350. * src/BtSeederStateChoke.h
  1351. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1352. Added web-seeding URI handling in addTorrent command.
  1353. * src/XmlRpcMethodImpl.cc
  1354. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. Added "length" key to getFiles response.
  1356. * src/XmlRpcMethodImpl.cc
  1357. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Moved --no-netrc option from ftp option section to http/ftp option
  1359. section.
  1360. * doc/aria2c.1.txt
  1361. * src/OptionHandlerFactory.cc
  1362. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Removed garbage "\" character before '
  1364. * doc/aria2c.1.txt
  1365. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Removed garbage "\" character before http.
  1367. * doc/aria2c.1.txt
  1368. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Documented additional options that can be specified in -i list.
  1370. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1371. and --xml-rpc-passwd. Removed --enable-http-server and
  1372. --http-server-listen-port.
  1373. * doc/aria2c.1.txt
  1374. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1376. * src/DefaultPeerStorage.cc
  1377. * src/DefaultPeerStorage.h
  1378. * src/PeerStorage.h
  1379. * src/XmlRpcMethodImpl.cc
  1380. * test/MockPeerStorage.h
  1381. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Put a call to Socket::isReadable() in try block.
  1383. * src/HttpServerBodyCommand.cc
  1384. * src/HttpServerCommand.cc
  1385. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1386. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1387. exception , so it is now in try block.
  1388. * src/HttpServerResponseCommand.cc
  1389. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Added "amChoking" and "peerChoking" key in getPeers response.
  1391. * src/XmlRpcMethodImpl.cc
  1392. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Added test case for zero-length filter.
  1394. * test/BitfieldManTest.cc
  1395. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. getFiles command now returns file data for finished/stopped
  1397. downloads.
  1398. * src/XmlRpcMethodImpl.cc
  1399. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. DownloadResult now has the list of FileEntry. The download
  1401. summary displays the path of first selected file and the number of
  1402. remaining files for multi-file torrent.
  1403. * src/DownloadResult.h
  1404. * src/RequestGroup.cc
  1405. * src/RequestGroupMan.cc
  1406. * test/RequestGroupTest.cc
  1407. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Fixed segmentation fault error when no file is selected in
  1409. multi-file torrent.
  1410. * src/BitfieldMan.cc
  1411. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Escaped <,>,& character in XML-RPC response.
  1413. * src/XmlRpcMethod.cc
  1414. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Throw DlAbortEx instead of FatalException during parsing options
  1416. because we don't want for aria2 to quit when bad option is passed
  1417. via XML-RPC.
  1418. * src/OptionHandlerException.cc
  1419. * src/OptionHandlerException.h
  1420. * src/OptionHandlerImpl.h
  1421. * src/OptionParser.cc
  1422. * src/OptionParser.h
  1423. * src/PStringSegment.cc
  1424. * src/ParameterizedStringParser.cc
  1425. * src/download_helper.cc
  1426. * test/ParameterizedStringParserTest.cc
  1427. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Selecting files are now done in
  1429. DefaultBtContext::setFileFileter().
  1430. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1431. functions are removed because they are no longer used. Creating
  1432. filter in BitfieldMan is done in new funtion
  1433. PieceStorage::setupFileFilter()
  1434. * src/BtContext.cc
  1435. * src/BtContext.h
  1436. * src/DefaultBtContext.cc
  1437. * src/DefaultBtContext.h
  1438. * src/DefaultPieceStorage.cc
  1439. * src/DefaultPieceStorage.h
  1440. * src/DiskAdaptor.cc
  1441. * src/DiskAdaptor.h
  1442. * src/PieceStorage.h
  1443. * src/RequestGroup.cc
  1444. * src/UnknownLengthPieceStorage.h
  1445. * src/XmlRpcMethodImpl.cc
  1446. * test/DefaultBtContextTest.cc
  1447. * test/MockBtContext.h
  1448. * test/MockPieceStorage.h
  1449. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Fixed compile error on Mac OS X
  1451. * src/HttpServer.cc
  1452. * src/XmlRpcMethod.h
  1453. * src/XmlRpcMethodImpl.cc
  1454. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. Use std::binary_search instead of std::find
  1456. * src/DefaultPieceStorage.cc
  1457. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Removed unnecessary BDE() call; leave them to implicit conversion.
  1459. * src/XmlRpcMethodImpl.cc
  1460. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Return connections and gid in string
  1462. * src/XmlRpcMethodImpl.cc
  1463. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Renamed addURI as addUri
  1465. * src/XmlRpcMethodFactory.cc
  1466. * src/XmlRpcMethodImpl.cc
  1467. * src/XmlRpcMethodImpl.h
  1468. * test/XmlRpcMethodTest.cc
  1469. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Renamed addTorrentFile as addTorrent
  1471. * src/XmlRpcMethodFactory.cc
  1472. * src/XmlRpcMethodImpl.cc
  1473. * src/XmlRpcMethodImpl.h
  1474. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. The information for files, URIs, peers are removed from the
  1476. reponse of TellaActive, TellStatus command because they tend to be
  1477. large. Instead they can be retrieved by the dedicated commands:
  1478. getFiles, getUris and getPeers respectively.
  1479. * src/XmlRpcMethodFactory.cc
  1480. * src/XmlRpcMethodImpl.cc
  1481. * src/XmlRpcMethodImpl.h
  1482. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Removed --max-overall-upload-limit and
  1484. --max-overall-download-limit option from listRequestOptions.
  1485. * src/download_helper.cc
  1486. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. Log incoming host in HttpListenCommand.
  1488. * src/HttpListenCommand.cc
  1489. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1490. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1491. --xml-rpc-passwd option.
  1492. * src/HttpServer.cc
  1493. * src/HttpServer.h
  1494. * src/HttpServerCommand.cc
  1495. * src/OptionHandlerFactory.cc
  1496. * src/prefs.cc
  1497. * src/prefs.h
  1498. * src/usage_text.h
  1499. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1501. processing 0 length request.
  1502. * src/HttpServerBodyCommand.cc
  1503. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1504. Removed --enable-http-server and --http-server-listen-port
  1505. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1506. instead. The original feature for --enable-http-server that
  1507. reports download progress in HTML was officially removed. Persist
  1508. XML-RPC connection if client supports keep-alive.
  1509. * src/DownloadEngineFactory.cc
  1510. * src/HttpServerCommand.cc
  1511. * src/HttpServerResponseCommand.cc
  1512. * src/Makefile.am
  1513. * src/Makefile.in
  1514. * src/OptionHandlerFactory.cc
  1515. * src/RequestGroupMan.cc
  1516. * src/main.cc
  1517. * src/option_processing.cc
  1518. * src/prefs.cc
  1519. * src/prefs.h
  1520. * src/usage_text.h
  1521. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Added "uris" key to the response of tellStatus command. Added
  1523. "connections" key to the response of tellStatus and tellActive
  1524. command.
  1525. * src/XmlRpcMethodImpl.cc
  1526. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1528. Added TellStatusXmlRpcMethod. Remove command can now remove
  1529. waiting RequestGroup.
  1530. * src/RequestGroupMan.cc
  1531. * src/RequestGroupMan.h
  1532. * src/XmlRpcMethodFactory.cc
  1533. * src/XmlRpcMethodImpl.cc
  1534. * src/XmlRpcMethodImpl.h
  1535. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Initialized _peerId
  1537. * src/Peer.cc
  1538. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Return fault structure for error. FailXmlRpcMethod is renamed as
  1540. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1541. in non-torrent download. Return single param value.
  1542. * src/XmlRpcMethod.cc
  1543. * src/XmlRpcMethodFactory.cc
  1544. * src/XmlRpcMethodImpl.cc
  1545. * src/XmlRpcMethodImpl.h
  1546. * test/XmlRpcMethodTest.cc
  1547. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1549. command.
  1550. * src/RequestGroup.cc
  1551. * src/RequestGroup.h
  1552. * src/RequestGroupMan.cc
  1553. * src/XmlRpcMethodImpl.cc
  1554. * test/RequestGroupTest.cc
  1555. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Added more options that can be specified in -i list and xml-rpc
  1557. add* command.
  1558. * src/download_helper.h
  1559. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. The available options in -i list should be listed in
  1561. listRequestOptions().
  1562. * src/download_helper.cc
  1563. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1565. command.
  1566. * src/XmlRpcMethodImpl.cc
  1567. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Now RequestGroup has its own copy of Option object. This will help
  1569. to give custom option for each RequestGroup.
  1570. addTorrentFile command now takes options.
  1571. * src/AbstractCommand.cc
  1572. * src/AbstractCommand.h
  1573. * src/AbstractProxyRequestCommand.cc
  1574. * src/ActivePeerConnectionCommand.cc
  1575. * src/ActivePeerConnectionCommand.h
  1576. * src/AdaptiveURISelector.cc
  1577. * src/BtCheckIntegrityEntry.cc
  1578. * src/BtDependency.cc
  1579. * src/BtDependency.h
  1580. * src/BtFileAllocationEntry.cc
  1581. * src/BtPostDownloadHandler.cc
  1582. * src/CheckIntegrityEntry.cc
  1583. * src/DownloadCommand.cc
  1584. * src/FtpDownloadCommand.cc
  1585. * src/FtpFinishDownloadCommand.cc
  1586. * src/FtpInitiateConnectionCommand.cc
  1587. * src/FtpNegotiationCommand.cc
  1588. * src/HttpInitiateConnectionCommand.cc
  1589. * src/HttpRequestCommand.cc
  1590. * src/HttpResponseCommand.cc
  1591. * src/HttpSkipResponseCommand.cc
  1592. * src/InitiateConnectionCommand.cc
  1593. * src/InitiateConnectionCommandFactory.cc
  1594. * src/InitiatorMSEHandshakeCommand.cc
  1595. * src/InitiatorMSEHandshakeCommand.h
  1596. * src/Metalink2RequestGroup.cc
  1597. * src/Metalink2RequestGroup.h
  1598. * src/MetalinkPostDownloadHandler.cc
  1599. * src/MultiUrlRequestInfo.cc
  1600. * src/MultiUrlRequestInfo.h
  1601. * src/PeerAbstractCommand.cc
  1602. * src/PeerInteractionCommand.cc
  1603. * src/PeerInteractionCommand.h
  1604. * src/PeerReceiveHandshakeCommand.cc
  1605. * src/PeerReceiveHandshakeCommand.h
  1606. * src/RequestGroup.cc
  1607. * src/RequestGroup.h
  1608. * src/TrackerWatcherCommand.cc
  1609. * src/TrackerWatcherCommand.h
  1610. * src/XmlRpcMethod.cc
  1611. * src/XmlRpcMethod.h
  1612. * src/XmlRpcMethodImpl.cc
  1613. * src/download_helper.cc
  1614. * src/download_helper.h
  1615. * src/main.cc
  1616. * test/BtDependencyTest.cc
  1617. * test/BtPostDownloadHandlerTest.cc
  1618. * test/DefaultBtMessageDispatcherTest.cc
  1619. * test/DownloadHandlerFactoryTest.cc
  1620. * test/DownloadHelperTest.cc
  1621. * test/Metalink2RequestGroupTest.cc
  1622. * test/MetalinkPostDownloadHandlerTest.cc
  1623. * test/RequestGroupManTest.cc
  1624. * test/RequestGroupTest.cc
  1625. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Added tellActiveStatus xml-rpc command which reports download
  1627. status of active downloads.
  1628. * src/XmlRpcMethodFactory.cc
  1629. * src/XmlRpcMethodImpl.cc
  1630. * src/XmlRpcMethodImpl.h
  1631. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Added addTorrentFile xml-rpc command which receives uploaded
  1633. torrent file and add download for it.
  1634. * src/RequestGroupMan.cc
  1635. * src/XmlRpcMethodFactory.cc
  1636. * src/XmlRpcMethodImpl.cc
  1637. * src/XmlRpcMethodImpl.h
  1638. * src/download_helper.cc
  1639. * src/download_helper.h
  1640. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Added remove xml-rpc command which removes specified download.
  1642. There is a known issue: the removed unfinished downloads are
  1643. reported ERR when aria2 exits. They should be reported as INPR.
  1644. * src/RequestGroupMan.cc
  1645. * src/RequestGroupMan.h
  1646. * src/XmlRpcMethodFactory.cc
  1647. * src/XmlRpcMethodImpl.cc
  1648. * src/XmlRpcMethodImpl.h
  1649. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. If --enable-http-server is enabled, don't stop aria2 when all
  1651. download finished and don't quit when no files to download at
  1652. start up.
  1653. * src/RequestGroupMan.cc
  1654. * src/main.cc
  1655. * src/option_processing.cc
  1656. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1657. Added missing AM_CONDITIONAL
  1658. * configure.ac
  1659. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Added xml-rpc functionality. Currently only addURI commad is
  1661. supported. To enable xml-rpc, run aria2 with
  1662. --enable-http-server. This option name is temporal and will be
  1663. changed. The feature that reports download progress in html format
  1664. is temporarily disabled.
  1665. * src/HttpServer.cc
  1666. * src/HttpServer.h
  1667. * src/HttpServerBodyCommand.cc
  1668. * src/HttpServerBodyCommand.h
  1669. * src/HttpServerCommand.cc
  1670. * src/HttpServerResponseCommand.cc
  1671. * src/Makefile.am
  1672. * src/OptionParser.cc
  1673. * src/OptionParser.h
  1674. * src/RequestGroupMan.cc
  1675. * src/RequestGroupMan.h
  1676. * src/XmlRpcMethod.cc
  1677. * src/XmlRpcMethod.h
  1678. * src/XmlRpcMethodFactory.cc
  1679. * src/XmlRpcMethodFactory.h
  1680. * src/XmlRpcMethodImpl.cc
  1681. * src/XmlRpcMethodImpl.h
  1682. * src/download_helper.cc
  1683. * src/download_helper.h
  1684. * test/Makefile.am
  1685. * test/XmlRpcMethodTest.cc
  1686. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Added xml-rpc request parser. The supported value types are:
  1688. i4/int, string, double, struct, array, base64. Currently only
  1689. libxml2 version is provided.
  1690. * src/Xml2XmlRpcRequestProcessor.cc
  1691. * src/Xml2XmlRpcRequestProcessor.h
  1692. * src/XmlRpcElements.cc
  1693. * src/XmlRpcElements.h
  1694. * src/XmlRpcRequest.h
  1695. * src/XmlRpcRequestParserController.cc
  1696. * src/XmlRpcRequestParserController.h
  1697. * src/XmlRpcRequestParserState.h
  1698. * src/XmlRpcRequestParserStateImpl.cc
  1699. * src/XmlRpcRequestParserStateImpl.h
  1700. * src/XmlRpcRequestParserStateMachine.cc
  1701. * src/XmlRpcRequestParserStateMachine.h
  1702. * src/XmlRpcRequestProcessor.h
  1703. * test/XmlRpcRequestParserControllerTest.cc
  1704. * test/XmlRpcRequestProcessorTest.cc
  1705. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. * Release 1.3.3
  1707. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Fixed compile error since r1202.
  1709. * src/ExpatMetalinkProcessor.cc
  1710. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1711. Updated Ukrainian, Russian and Simplified Chinese
  1712. translations. Thanks to all translators.
  1713. * po/ru.po
  1714. * po/uk.po
  1715. * po/zh_CN.po
  1716. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Pass reference of Option object instead of pointer.
  1718. * src/download_helper.cc
  1719. * src/download_helper.h
  1720. * src/main.cc
  1721. * test/DownloadHelperTest.cc
  1722. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1723. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1724. from option directly. Instead, get them from RequestGroup.
  1725. * src/ActivePeerConnectionCommand.cc
  1726. * src/ActivePeerConnectionCommand.h
  1727. * src/PeerReceiveHandshakeCommand.cc
  1728. * src/RequestGroup.h
  1729. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Removed unused uploadLimitCheck and uploadLimit from
  1731. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1732. PeerInteractionCommand.
  1733. * src/PeerAbstractCommand.cc
  1734. * src/PeerAbstractCommand.h
  1735. * src/PeerInteractionCommand.cc
  1736. * src/PeerInteractionCommand.h
  1737. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Fixed broken file renaming feature since r1202.
  1739. * src/FtpNegotiationCommand.cc
  1740. * src/FtpNegotiationCommand.h
  1741. * src/HttpResponseCommand.cc
  1742. * src/RequestGroup.cc
  1743. * src/RequestGroup.h
  1744. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1745. Removed unused debug log
  1746. * src/SocketCore.cc
  1747. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Generated configure and Makefile.in using autoconf 2.63 and
  1749. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1750. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1751. * configure.ac
  1752. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Moved piece statistics stuff to new PieceStatMan class.
  1754. Refactored PieceSelector interface.
  1755. * src/DefaultPieceStorage.cc
  1756. * src/DefaultPieceStorage.h
  1757. * src/LongestSequencePieceSelector.cc
  1758. * src/LongestSequencePieceSelector.h
  1759. * src/Makefile.am
  1760. * src/PieceSelector.h
  1761. * src/PieceStatMan.cc
  1762. * src/PieceStatMan.h
  1763. * src/RarestPieceSelector.cc
  1764. * src/RarestPieceSelector.h
  1765. * src/RequestGroup.cc
  1766. * test/DefaultPieceStorageTest.cc
  1767. * test/InOrderPieceSelector.h
  1768. * test/Makefile.am
  1769. * test/PieceStatManTest.cc
  1770. * test/RarestPieceSelectorTest.cc
  1771. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Added static member _protocolFamily to SocketCore. By default,
  1773. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1774. address. Sometime SocketCore::bind() and
  1775. SocketCore::establishConnection() use difference protocl family
  1776. and latter cannot connect to former. To avoid this situation, we
  1777. limit protocol family to AF_INET for unit tests.
  1778. * src/SocketCore.cc
  1779. * src/SocketCore.h
  1780. * test/AllTest.cc
  1781. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Avoid std::bad_alloc for negative bencode string length.
  1783. * src/bencode.cc
  1784. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Supported segmented downloading with chunked transfer encoding and
  1786. content-length.
  1787. * src/DownloadCommand.cc
  1788. * src/HttpResponseCommand.cc
  1789. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Bump up version number to 1.3.3
  1791. * configure.ac
  1792. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1794. from 4096 to 65536 (for insanely large ftp login banners)
  1795. * src/FtpConnection.h
  1796. * test/FtpConnectionTest.cc
  1797. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1798. In DefaultBtContext::getActualBasePath(), return first
  1799. FileEntry::getPath() for single file torrent.
  1800. * src/DefaultBtContext.cc
  1801. * test/DefaultBtContextTest.cc
  1802. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1804. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1805. Removed _directIOAllowed member from DiskWriter.
  1806. * src/AbstractDiskWriter.cc
  1807. * src/AbstractDiskWriter.h
  1808. * src/AbstractSingleDiskAdaptor.cc
  1809. * src/AbstractSingleDiskAdaptor.h
  1810. * src/BinaryStream.h
  1811. * src/ByteArrayDiskWriter.h
  1812. * src/DefaultPieceStorage.cc
  1813. * src/DiskWriter.h
  1814. * src/MultiDiskAdaptor.cc
  1815. * src/MultiDiskAdaptor.h
  1816. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1817. Now the constructor of AbstractDiskWriter takes filename as an
  1818. argument and filename argument is removed from openFile(),
  1819. initAndOpenFile(), openExistingFile() interface. storeDir member
  1820. and its accessor functions are removed from DiskAdaptor because it
  1821. is not used anymore. size() member function of DefaultDiskWriter,
  1822. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1823. opening file.
  1824. * src/AbstractDiskWriter.cc
  1825. * src/AbstractDiskWriter.h
  1826. * src/AbstractSingleDiskAdaptor.cc
  1827. * src/AbstractSingleDiskAdaptor.h
  1828. * src/ByteArrayDiskWriter.cc
  1829. * src/ByteArrayDiskWriter.h
  1830. * src/ByteArrayDiskWriterFactory.cc
  1831. * src/ByteArrayDiskWriterFactory.h
  1832. * src/DefaultDiskWriter.cc
  1833. * src/DefaultDiskWriter.h
  1834. * src/DefaultDiskWriterFactory.cc
  1835. * src/DefaultDiskWriterFactory.h
  1836. * src/DefaultPieceStorage.cc
  1837. * src/DirectDiskAdaptor.cc
  1838. * src/DirectDiskAdaptor.h
  1839. * src/DiskAdaptor.h
  1840. * src/DiskWriter.h
  1841. * src/DiskWriterFactory.h
  1842. * src/MessageDigestHelper.cc
  1843. * src/MultiDiskAdaptor.cc
  1844. * src/RequestGroup.cc
  1845. * src/UnknownLengthPieceStorage.cc
  1846. * src/Util.cc
  1847. * test/DefaultDiskWriterTest.cc
  1848. * test/DirectDiskAdaptorTest.cc
  1849. * test/FallocFileAllocationIteratorTest.cc
  1850. * test/MessageDigestHelperTest.cc
  1851. * test/MetalinkProcessorTest.cc
  1852. * test/MultiDiskAdaptorTest.cc
  1853. * test/MultiFileAllocationIteratorTest.cc
  1854. * test/SingleFileAllocationIteratorTest.cc
  1855. * test/UtilTest.cc
  1856. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1857. Fixed the bug that aria2 aborts when --select-file is used. This
  1858. bug was introduced in r1199.
  1859. * src/MultiDiskAdaptor.cc
  1860. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Code cleanup
  1862. * test/MockPieceStorage.cc
  1863. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Fixed the bug that read-only file with wrong file size will cause
  1865. error because it cannot be truncated to the correct size. Now if
  1866. file size is different than the expected one, re-open file in
  1867. writable mode.
  1868. * src/AbstractSingleDiskAdaptor.cc
  1869. * src/AbstractSingleDiskAdaptor.h
  1870. * src/BtCheckIntegrityEntry.cc
  1871. * src/DiskAdaptor.h
  1872. * src/MultiDiskAdaptor.h
  1873. * src/RequestGroup.cc
  1874. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1875. Fixed the bug that with --check-integrity option aria2 reports
  1876. downloaded file size is 0 even if some parts of file is correctly
  1877. downloaded. This bug is reproducible for the download that a file
  1878. includes last piece is missing. This bug doesn't reveal for
  1879. single-torrent with file allocation on.
  1880. * src/IteratableChecksumValidator.cc
  1881. * test/IteratableChecksumValidatorTest.cc
  1882. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1884. * src/RequestGroupMan.cc
  1885. * src/AdaptiveURISelector.cc
  1886. * src/AdaptiveURISelector.h
  1887. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. * Release 1.3.2
  1889. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Updated README
  1891. * README
  1892. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1893. Updated Ukrainian translations. Thanks to Alexander10.
  1894. * po/uk.po
  1895. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1896. Code cleanup
  1897. * src/MetalinkParserStateMachine.cc
  1898. * src/MetalinkParserStateMachine.h
  1899. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1900. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1901. and expat simultaneously, MetalinkProcessor is now not base class
  1902. and it is directly implemented in XML2SAXMetalinkProcessor and
  1903. ExpatMetalinkProcessor.
  1904. * src/ExpatMetalinkProcessor.cc
  1905. * src/ExpatMetalinkProcessor.h
  1906. * src/Makefile.am
  1907. * src/MetalinkHelper.cc
  1908. * src/MetalinkProcessor.h
  1909. * src/MetalinkProcessorFactory.cc: Removed.
  1910. * src/MetalinkProcessorFactory.h: Removed
  1911. * src/XML2SAXMetalinkProcessor.cc
  1912. * src/XML2SAXMetalinkProcessor.h
  1913. * test/MetalinkProcessorTest.cc
  1914. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Bump up version number to 1.3.2
  1916. * configure.ac
  1917. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. Added missing file.
  1919. * test/Makefile.am
  1920. * test/url-list-singleFileEndsWithSlash.torrent
  1921. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1923. request.
  1924. * src/AnnounceList.cc
  1925. * src/AnnounceList.h
  1926. * src/BDE.cc: Added
  1927. * src/BDE.h: Added
  1928. * src/DHTAbstractMessage.cc
  1929. * src/DHTAbstractMessage.h
  1930. * src/DHTAnnouncePeerMessage.cc
  1931. * src/DHTAnnouncePeerMessage.h
  1932. * src/DHTAnnouncePeerReplyMessage.cc
  1933. * src/DHTAnnouncePeerReplyMessage.h
  1934. * src/DHTFindNodeMessage.cc
  1935. * src/DHTFindNodeMessage.h
  1936. * src/DHTFindNodeReplyMessage.cc
  1937. * src/DHTFindNodeReplyMessage.h
  1938. * src/DHTGetPeersMessage.cc
  1939. * src/DHTGetPeersMessage.h
  1940. * src/DHTGetPeersReplyMessage.cc
  1941. * src/DHTGetPeersReplyMessage.h
  1942. * src/DHTMessageFactory.h
  1943. * src/DHTMessageFactoryImpl.cc
  1944. * src/DHTMessageFactoryImpl.h
  1945. * src/DHTMessageReceiver.cc
  1946. * src/DHTMessageTracker.cc
  1947. * src/DHTMessageTracker.h
  1948. * src/DHTPingMessage.cc
  1949. * src/DHTPingMessage.h
  1950. * src/DHTPingReplyMessage.cc
  1951. * src/DHTPingReplyMessage.h
  1952. * src/DHTQueryMessage.cc
  1953. * src/DHTQueryMessage.h
  1954. * src/DHTResponseMessage.cc
  1955. * src/DHTResponseMessage.h
  1956. * src/DefaultBtAnnounce.cc
  1957. * src/DefaultBtContext.cc
  1958. * src/DefaultBtContext.h
  1959. * src/HandshakeExtensionMessage.cc
  1960. * src/Makefile.am
  1961. * src/PeerListProcessor.h
  1962. * src/UTPexExtensionMessage.cc
  1963. * src/bencode.cc
  1964. * src/bencode.h
  1965. * test/AnnounceListTest.cc
  1966. * test/BDETest.cc: Added
  1967. * test/BencodeTest.cc
  1968. * test/DHTAnnouncePeerMessageTest.cc
  1969. * test/DHTAnnouncePeerReplyMessageTest.cc
  1970. * test/DHTFindNodeMessageTest.cc
  1971. * test/DHTFindNodeReplyMessageTest.cc
  1972. * test/DHTGetPeersMessageTest.cc
  1973. * test/DHTGetPeersReplyMessageTest.cc
  1974. * test/DHTMessageFactoryImplTest.cc
  1975. * test/DHTMessageTrackerTest.cc
  1976. * test/DHTPingMessageTest.cc
  1977. * test/DHTPingReplyMessageTest.cc
  1978. * test/Makefile.am
  1979. * test/MockDHTMessageFactory.h
  1980. * test/PeerListProcessorTest.cc
  1981. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1982. Use url-list (web-seeding) only for single-file torrent. This is
  1983. basically the same behavior with Metalink file with torrent and
  1984. URIs.
  1985. * src/RequestGroup.cc
  1986. * src/DefaultBtContext.cc
  1987. * test/DefaultBtContextTest.cc
  1988. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Rewritten expr
  1990. * src/array_fun.h
  1991. * test/array_funTest.cc
  1992. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1994. * src/DefaultBtMessageDispatcher.cc
  1995. * src/a2algo.h
  1996. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1997. Removed ExtendedMessagingAware. Instead of using inheritance,
  1998. added ExtensionMessageRegistry and it is passed to
  1999. DefaultExtensionMessageFactory.
  2000. * src/DefaultBtInteractive.cc
  2001. * src/DefaultBtInteractive.h
  2002. * src/DefaultExtensionMessageFactory.cc
  2003. * src/DefaultExtensionMessageFactory.h
  2004. * src/ExtendedMessagingAware.h: Removed.
  2005. * src/ExtensionMessageFactory.h
  2006. * src/ExtensionMessageRegistry.h: Added.
  2007. * src/Makefile.am
  2008. * src/PeerInteractionCommand.cc
  2009. * test/DefaultExtensionMessageFactoryTest.cc
  2010. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Fixed typo in log messages
  2012. * src/MSEHandshake.cc
  2013. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Fixed the bug that prevents torrent download from finishing. The
  2015. bug doesn't reveal for all torrents. The torrents affected this
  2016. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2017. of pieces.
  2018. * src/bitfield.h
  2019. * test/bitfieldTest.cc
  2020. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Code cleanup
  2022. * src/PeerListProcessor.h
  2023. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Removed RequestGroupAware
  2025. * src/AbstractCommand.cc
  2026. * src/AbstractCommand.h
  2027. * src/ActivePeerConnectionCommand.cc
  2028. * src/ActivePeerConnectionCommand.h
  2029. * src/DHTGetPeersCommand.cc
  2030. * src/DHTGetPeersCommand.h
  2031. * src/InitiatorMSEHandshakeCommand.cc
  2032. * src/InitiatorMSEHandshakeCommand.h
  2033. * src/Makefile.am
  2034. * src/PeerInitiateConnectionCommand.cc
  2035. * src/PeerInitiateConnectionCommand.h
  2036. * src/PeerInteractionCommand.cc
  2037. * src/PeerInteractionCommand.h
  2038. * src/RealtimeCommand.cc
  2039. * src/RealtimeCommand.h
  2040. * src/RequestGroupAware.cc: Removed
  2041. * src/RequestGroupAware.h: Removed
  2042. * src/SeedCheckCommand.cc
  2043. * src/SeedCheckCommand.h
  2044. * src/SleepCommand.cc
  2045. * src/TrackerWatcherCommand.cc
  2046. * src/TrackerWatcherCommand.h
  2047. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Rewritten PeerListProcessor
  2049. * src/PeerListProcessor.h
  2050. * src/CompactPeerListProcessor.h: Removed
  2051. * src/CompactPeerListProcessor.cc: Removed
  2052. * src/DelegatingPeerListProcessor.cc: Removed.
  2053. * src/DefaultBtAnnounce.cc
  2054. * src/Makefile.am
  2055. * src/UTPexExtensionMessage.cc
  2056. * src/DefaultPeerListProcessor.h: Removed.
  2057. * src/DefaultPeerListProcessor.cc: Removed.
  2058. * src/DelegatingPeerListProcessor.h: Removed.
  2059. * test/Makefile.am
  2060. * test/PeerListProcessorTest.cc
  2061. * test/DefaultPeerListProcessorTest.cc: Removed.
  2062. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Rewritten RequestGroupMan::calculateStat()
  2064. * src/RequestGroupMan.cc
  2065. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Removed unnecessary virtual destructor for Request class.
  2067. * src/Request.cc
  2068. * src/Request.h
  2069. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Avoid dynamic_pointer_cast.
  2071. * src/DHTGetPeersCommand.cc
  2072. * src/DHTGetPeersCommand.h
  2073. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2075. BtEvent.
  2076. * src/AbstractBtEventListener.h: Removed.
  2077. * src/AbstractBtMessage.cc
  2078. * src/AbstractBtMessage.h
  2079. * src/BtAbortOutstandingRequestEvent.h
  2080. * src/BtCancelSendingPieceEvent.h
  2081. * src/BtChokedEvent.h: Removed.
  2082. * src/BtChokingEvent.h
  2083. * src/BtEvent.h: Removed
  2084. * src/BtEventListener.h: Removed.
  2085. * src/BtMessage.h
  2086. * src/BtPieceMessage.cc
  2087. * src/BtPieceMessage.h
  2088. * src/BtRequestMessage.cc
  2089. * src/BtRequestMessage.h
  2090. * src/DefaultBtMessageDispatcher.cc
  2091. * src/Makefile.am
  2092. * src/a2functional.h
  2093. * test/BtPieceMessageTest.cc
  2094. * test/BtRequestMessageTest.cc
  2095. * test/DefaultBtMessageDispatcherTest.cc
  2096. * test/MockBtMessage.h
  2097. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Code cleanup
  2099. * src/RequestGroupMan.cc
  2100. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Code cleanup
  2102. * src/DownloadCommand.cc
  2103. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2105. byte.
  2106. * src/DownloadCommand.cc
  2107. * src/bitfield.h
  2108. * test/bitfieldTest.cc
  2109. Fixed the bug that causes infinite loop if broken web server
  2110. returns chunked response without last "0" chunk-size marker and
  2111. closes connection.
  2112. * src/DownloadCommand.cc
  2113. Instantiate properly configured HttpDownloadCommand for
  2114. non-resumable downlaods.
  2115. * src/HttpResponseCommand.cc
  2116. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Rewritten array operation functions.
  2118. * src/BitfieldMan.cc
  2119. * src/array_fun.h
  2120. * test/array_funTest.cc
  2121. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Removed unused variable 'query'
  2123. * src/Request.cc
  2124. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2126. accidentally set to false in r1162.
  2127. * configure.ac
  2128. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2129. Code cleanup
  2130. * src/BNode.cc
  2131. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2132. Increase prefixLength for the bucket which doesn't own local node
  2133. ID when splitting bucket.
  2134. * src/DHTBucket.cc
  2135. * test/DHTBucketTest.cc
  2136. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. * Release 1.3.1
  2138. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Bump up version number to 1.3.1
  2140. * configure.ac
  2141. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Removed unused variable checkPoint. Also removed include directive
  2143. for TimeA2.h.
  2144. * src/SeedCheckCommand.h
  2145. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Fixed the bug that upload limit exceeds the value specified in
  2147. --seed-ratio option depending on the timing of the execution of
  2148. SeedCheckCommand.
  2149. * src/SeedCheckCommand.cc
  2150. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Fixed the bug that removed peer's session upload/download length
  2152. are counted twice in _cachedTransferStat before it is
  2153. re-calculated. This affected the calculation of shara ratio,
  2154. resulting aria2 wrongly determines that specified share ratio is
  2155. reached. Also fixed the typo in calculateStatFor function name.
  2156. * src/BtSetup.cc
  2157. * src/DefaultPeerStorage.cc
  2158. * src/ShareRatioSeedCriteria.h
  2159. * test/ShareRatioSeedCriteriaTest.cc
  2160. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. * Release 1.3.0
  2162. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2164. Nynorsk translations. Thanks to all translators.
  2165. * po/es.po
  2166. * po/ja.po
  2167. * po/nn.po
  2168. * po/ru.po
  2169. * po/uk.po
  2170. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Rewritten isInRange()
  2172. * src/DHTBucket.cc
  2173. * test/DHTBucketTest.cc
  2174. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Fixed typo
  2176. * doc/aria2c.1.txt
  2177. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2179. malloc/realloc is not used.
  2180. * src/configure.ac
  2181. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2183. char* bitfield instead of stl container for efficiency.
  2184. PieceSelector::select now takes this
  2185. bitfield. RarestPieceSelector::select now also performs
  2186. efficiently for this change. bitfield namespace is introduced and
  2187. it has several helper functions to handle basic bitfield
  2188. operations such as test, count set bits, etc.
  2189. * src/BitfieldMan.cc
  2190. * src/BitfieldMan.h
  2191. * src/DefaultBtRequestFactory.cc
  2192. * src/DefaultPieceStorage.cc
  2193. * src/DefaultPieceStorage.h
  2194. * src/LongestSequencePieceSelector.cc
  2195. * src/LongestSequencePieceSelector.h
  2196. * src/Makefile.am
  2197. * src/Piece.cc
  2198. * src/Piece.h
  2199. * src/PieceSelector.h
  2200. * src/RarestPieceSelector.cc
  2201. * src/RarestPieceSelector.h
  2202. * src/Util.cc
  2203. * src/Util.h
  2204. * src/bitfield.h
  2205. * test/BitfieldManTest.cc
  2206. * test/LongestSequencePieceSelectorTest.cc
  2207. * test/Makefile.am
  2208. * test/RarestPieceSelectorTest.cc
  2209. * test/UtilTest.cc
  2210. * test/bitfieldTest.cc
  2211. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Made accepted socket non-block.
  2213. * src/FtpNegotiationCommand.cc
  2214. * src/HttpListenCommand.cc
  2215. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2217. * src/AbstractSingleDiskAdaptor.cc
  2218. * src/DefaultPieceStorage.cc
  2219. * src/DiskAdaptor.h
  2220. * src/DiskAdaptor.h
  2221. * src/MultiFileAllocationIterator.cc
  2222. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Run
  2224. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2225. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2226. it doesn't need to be called every time when
  2227. DefaultBtInteractive::doInteractionProcessing() is called.
  2228. * src/DefaultBtInteractive.cc
  2229. * src/DefaultBtInteractive.h
  2230. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Documented 'falloc' in man page.
  2232. * doc/aria2c.1.txt
  2233. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2234. Updated doc
  2235. * src/usage_text.h
  2236. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2238. allocation mode uses posix_fallocate() system call to allocate
  2239. file on disk. If you are using newer file systems such as ext4
  2240. (with extents support), btrfs or xfs, 'falloc' is your best
  2241. choice. It allocates large(few GiB) files almost instantly. Don't
  2242. use 'falloc' with legacy file systems such as ext3 because it
  2243. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2244. until allocation finishes. 'falloc' may not be available if your
  2245. system doesn't have posix_fallocate() system call.
  2246. * configure.ac
  2247. * src/AbstractDiskWriter.cc
  2248. * src/AbstractDiskWriter.h
  2249. * src/AbstractSingleDiskAdaptor.cc
  2250. * src/BinaryStream.h
  2251. * src/BtCheckIntegrityEntry.cc
  2252. * src/ByteArrayDiskWriter.h
  2253. * src/CheckIntegrityEntry.cc
  2254. * src/CheckIntegrityEntry.h
  2255. * src/DefaultPieceStorage.cc
  2256. * src/DiskAdaptor.cc
  2257. * src/DiskAdaptor.h
  2258. * src/DiskWriter.h
  2259. * src/FallocFileAllocationIterator.cc
  2260. * src/FallocFileAllocationIterator.h
  2261. * src/FileAllocationEntry.cc
  2262. * src/FileAllocationEntry.h
  2263. * src/Makefile.am
  2264. * src/MultiFileAllocationIterator.cc
  2265. * src/MultiFileAllocationIterator.h
  2266. * src/OptionHandlerFactory.cc
  2267. * src/RequestGroup.cc
  2268. * src/StreamCheckIntegrityEntry.cc
  2269. * src/prefs.cc
  2270. * src/prefs.h
  2271. * src/usage_text.h
  2272. * test/FallocFileAllocationIteratorTest.cc
  2273. * test/Makefile.am
  2274. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2275. Removed duplicate enableDirectIO() call.
  2276. * src/MultiFileAllocationIterator.cc
  2277. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2279. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2280. cost of std::rotate().
  2281. * src/RarestPieceSelector.cc
  2282. * src/RarestPieceSelector.h
  2283. * test/RarestPieceSelectorTest.cc
  2284. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Updated usage doc for --bt-tracker-interval option.
  2286. * src/usage_text.h
  2287. * doc/aria2c.1.txt
  2288. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Documented --bt-tracker-interval option in man page.
  2290. * doc/aria2c.1.txt
  2291. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Added an option to specify the interval between tracker requests.
  2293. If non-zero value is specified, aria2 uses it and ignores the
  2294. interval value in the response of tracker. If zero is specified,
  2295. aria2 determines the inteval value based on the tarcker response
  2296. and download progress.
  2297. * src/DefaultBtAnnounce.cc
  2298. * src/DefaultBtAnnounce.h
  2299. * src/OptionHandlerFactory.cc
  2300. * src/RequestGroup.cc
  2301. * src/prefs.cc
  2302. * src/prefs.h
  2303. * src/usage_text.h
  2304. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Added operator+=, operator-=, operator-
  2306. * src/TransferStat.cc
  2307. * src/TransferStat.h
  2308. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Refactored RarestPieceSelector to reduce CPU load, especially for
  2310. addPieceStats.
  2311. * src/RarestPieceSelector.cc
  2312. * src/RarestPieceSelector.h
  2313. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2314. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2315. getAllMissingBlockIndexes to reduce a call to
  2316. array_function_base::operator[].
  2317. * src/BitfieldMan.cc
  2318. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Cached TransferStat/download speed to avoid to sum them up in each
  2320. call.
  2321. * src/DefaultPeerStorage.cc
  2322. * src/DefaultPeerStorage.h
  2323. * src/SegmentMan.cc
  2324. * src/SegmentMan.h
  2325. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. Typedefed cuid_t as int32_t in Command.h
  2327. * src/CUIDCounter.h
  2328. * src/Command.cc
  2329. * src/Command.h
  2330. * src/DownloadEngine.cc
  2331. * src/DownloadEngine.h
  2332. * src/PeerStat.h
  2333. * src/SegmentMan.cc
  2334. * src/SegmentMan.h
  2335. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Reduced the number of calls to PeerStorage::calculateStat() and
  2337. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2338. transfer rate.
  2339. * src/DefaultBtInteractive.cc
  2340. * src/DefaultBtMessageDispatcher.cc
  2341. * src/DefaultPeerStorage.cc
  2342. * src/DefaultPeerStorage.h
  2343. * src/DownloadCommand.cc
  2344. * src/DownloadEngine.cc
  2345. * src/PeerStorage.h
  2346. * src/SegmentMan.cc
  2347. * src/SegmentMan.h
  2348. * test/MockPeerStorage.h
  2349. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Prepended _dir+"/" after joining path elements in torrent file.
  2351. * src/DefaultBtContext.cc
  2352. * test/DefaultBtContextTest.cc
  2353. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2354. Added missing IndexBtMessageValidator.h
  2355. * src/Makefile.am
  2356. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2358. Chinese translations. Thank you for contributing our project.
  2359. * po/id.po
  2360. * po/it.po
  2361. * po/ru.po
  2362. * po/uk.po
  2363. * po/zh_CN.po
  2364. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Updated README
  2366. * README
  2367. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Bump up version number to 1.3.0
  2369. * configure.ac
  2370. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Updated doc
  2372. * src/DefaultBtContext.h
  2373. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Slice/joinPath for name of single torrent.
  2375. * src/DefaultBtContext.cc
  2376. * test/DefaultBtContextTest.cc
  2377. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Updated man page: Documented --dry-run and --index-out
  2379. options. Changed the default value of --uri-selector and
  2380. --http-auth-challenge options. Removed --direct-file-mapping
  2381. option. Added example for --index-out
  2382. * doc/aria2c.1.txt
  2383. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Updated TEXT_DRY_RUN
  2385. * src/usage_text.h
  2386. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Changed the default value of --uri-selector option from 'inorder'
  2388. to 'feedback'
  2389. * src/OptionHandlerFactory.cc
  2390. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Included current URI in exception message.
  2392. * src/AbstractCommand.cc
  2393. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Renamed ServerStatURISelector as FeedbackURISelector.
  2395. * src/FeedbackURISelector.cc
  2396. * src/FeedbackURISelector.h
  2397. * src/Makefile.am
  2398. * src/RequestGroupMan.cc
  2399. * src/ServerStatURISelector.cc
  2400. * src/ServerStatURISelector.h
  2401. * test/FeedbackURISelectorTest.cc
  2402. * test/Makefile.am
  2403. * test/ServerStatURISelectorTest.cc
  2404. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2406. all URIs are tested and their timeout is not reached.
  2407. * src/AdaptiveURISelector.cc
  2408. * src/AdaptiveURISelector.h
  2409. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Changed the default value of --http-auth-challenge option to false.
  2411. * src/OptionHandlerFactory.cc
  2412. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Reuse URIs when all unused URIs run out.
  2414. * src/OptionHandlerFactory.cc
  2415. * src/RequestGroup.cc
  2416. * src/prefs.cc
  2417. * src/prefs.h
  2418. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2420. and BtRejectMessage are derived from RangeBtMessage class.
  2421. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2422. derived from IndexBtMessage class. BtChokeMessage,
  2423. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2424. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2425. ZeroBtMessage class.
  2426. * src/AbstractBtMessage.cc
  2427. * src/AbstractBtMessage.h
  2428. * src/BtAllowedFastMessage.cc
  2429. * src/BtAllowedFastMessage.h
  2430. * src/BtAllowedFastMessageValidator.h: Removed
  2431. * src/BtBitfieldMessage.cc
  2432. * src/BtBitfieldMessage.h
  2433. * src/BtCancelMessage.cc
  2434. * src/BtCancelMessage.h
  2435. * src/BtCancelMessageValidator.h: Removed
  2436. * src/BtChokeMessage.cc
  2437. * src/BtChokeMessage.h
  2438. * src/BtExtendedMessage.cc
  2439. * src/BtExtendedMessage.h
  2440. * src/BtHandshakeMessage.cc
  2441. * src/BtHandshakeMessage.h
  2442. * src/BtHaveAllMessage.cc
  2443. * src/BtHaveAllMessage.h
  2444. * src/BtHaveMessage.cc
  2445. * src/BtHaveMessage.h
  2446. * src/BtHaveMessageValidator.h: Removed
  2447. * src/BtHaveNoneMessage.cc
  2448. * src/BtHaveNoneMessage.h
  2449. * src/BtInterestedMessage.cc
  2450. * src/BtInterestedMessage.h
  2451. * src/BtKeepAliveMessage.cc
  2452. * src/BtKeepAliveMessage.h
  2453. * src/BtNotInterestedMessage.cc
  2454. * src/BtNotInterestedMessage.h
  2455. * src/BtPieceMessage.cc
  2456. * src/BtPieceMessage.h
  2457. * src/BtPortMessage.cc
  2458. * src/BtPortMessage.h
  2459. * src/BtRejectMessage.cc
  2460. * src/BtRejectMessage.h
  2461. * src/BtRejectMessageValidator.h: Removed
  2462. * src/BtRequestMessage.cc
  2463. * src/BtRequestMessage.h
  2464. * src/BtRequestMessageValidator.h: Removed
  2465. * src/BtSuggestPieceMessage.cc
  2466. * src/BtSuggestPieceMessage.h
  2467. * src/BtSuggestPieceMessageValidator.h: Removed
  2468. * src/BtUnchokeMessage.cc
  2469. * src/BtUnchokeMessage.h
  2470. * src/DefaultBtMessageFactory.cc
  2471. * src/IndexBtMessage.cc
  2472. * src/IndexBtMessage.h
  2473. * src/IndexBtMessageValidator.h
  2474. * src/Makefile.am
  2475. * src/PeerMessageUtil.cc
  2476. * src/PeerMessageUtil.h
  2477. * src/RangeBtMessage.cc
  2478. * src/RangeBtMessage.h
  2479. * src/RangeBtMessageValidator.h
  2480. * src/SimpleBtMessage.cc
  2481. * src/SimpleBtMessage.h
  2482. * src/ZeroBtMessage.cc
  2483. * src/ZeroBtMessage.h
  2484. * test/BtRequestMessageTest.cc
  2485. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Reverted usage_text.h to r1093 to avoid to lose translated
  2487. messages.
  2488. * src/usage_text.h
  2489. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2491. declared as non-const previously is now const and defined in class
  2492. definition.
  2493. * src/AbstractBtMessage.cc
  2494. * src/AbstractBtMessage.h
  2495. * src/BtAllowedFastMessage.cc
  2496. * src/BtAllowedFastMessage.h
  2497. * src/BtBitfieldMessage.h
  2498. * src/BtCancelMessage.cc
  2499. * src/BtCancelMessage.h
  2500. * src/BtChokeMessage.cc
  2501. * src/BtChokeMessage.h
  2502. * src/BtExtendedMessage.cc
  2503. * src/BtExtendedMessage.h
  2504. * src/BtHandshakeMessage.cc
  2505. * src/BtHandshakeMessage.h
  2506. * src/BtHaveAllMessage.cc
  2507. * src/BtHaveAllMessage.h
  2508. * src/BtHaveMessage.cc
  2509. * src/BtHaveMessage.h
  2510. * src/BtHaveNoneMessage.cc
  2511. * src/BtHaveNoneMessage.h
  2512. * src/BtInterestedMessage.cc
  2513. * src/BtInterestedMessage.h
  2514. * src/BtKeepAliveMessage.cc
  2515. * src/BtKeepAliveMessage.h
  2516. * src/BtMessage.h
  2517. * src/BtNotInterestedMessage.cc
  2518. * src/BtNotInterestedMessage.h
  2519. * src/BtPieceMessage.h
  2520. * src/BtPortMessage.cc
  2521. * src/BtPortMessage.h
  2522. * src/BtRejectMessage.cc
  2523. * src/BtRejectMessage.h
  2524. * src/BtRequestMessage.cc
  2525. * src/BtRequestMessage.h
  2526. * src/BtSuggestPieceMessage.cc
  2527. * src/BtSuggestPieceMessage.h
  2528. * src/BtUnchokeMessage.cc
  2529. * src/BtUnchokeMessage.h
  2530. * src/SimpleBtMessage.cc
  2531. * src/SimpleBtMessage.h
  2532. * test/MockBtMessage.h
  2533. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2534. Use FileEntry::exists()
  2535. * src/MultiDiskAdaptor.cc
  2536. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Added exists()
  2538. * src/FileEntry.cc
  2539. * src/FileEntry.h
  2540. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Added missing prefix dir.
  2542. * src/download_helper.cc
  2543. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2545. * src/CopyDiskAdaptor.cc: Removed
  2546. * src/CopyDiskAdaptor.h: Removed
  2547. * src/DefaultPieceStorage.cc
  2548. * src/Makefile.am
  2549. * src/OptionHandlerFactory.cc
  2550. * src/prefs.cc
  2551. * src/prefs.h
  2552. * src/usage_text.h
  2553. * test/CopyDiskAdaptorTest.cc: Removed
  2554. * test/Makefile.am
  2555. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2556. Rewritten isSameFileBeingDownloaded()
  2557. * src/RequestGroupMan.cc
  2558. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Removed getName() from DownloadContext. getName() is declared in
  2560. BtContext.
  2561. * src/BtContext.h
  2562. * src/DownloadContext.h
  2563. * src/SingleFileDownloadContext.cc
  2564. * src/SingleFileDownloadContext.h
  2565. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2566. in AbstractSingleDiskAdaptor.
  2567. * src/AbstractSingleDiskAdaptor.h
  2568. * src/DiskAdaptor.h
  2569. * src/MultiDiskAdaptor.h
  2570. * src/RequestGroup.cc
  2571. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2572. MultiDiskAdaptor.
  2573. * src/DefaultPieceStorage.cc
  2574. * src/MultiDiskAdaptor.cc
  2575. * src/MultiDiskAdaptor.h
  2576. * test/MultiDiskAdaptorTest.cc
  2577. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. FileEntry::getPath() contains store(top level) directory to
  2579. simplify path handling operation. In the previous implementation,
  2580. store directory is concatenated to FileEntry::getPath() in
  2581. DownloadContext.
  2582. * src/BtDependency.cc
  2583. * src/BtPostDownloadHandler.cc
  2584. * src/CopyDiskAdaptor.cc
  2585. * src/DefaultBtContext.cc
  2586. * src/DirectDiskAdaptor.cc
  2587. * src/FileEntry.cc
  2588. * src/FileEntry.h
  2589. * src/FtpNegotiationCommand.cc
  2590. * src/HttpResponse.cc
  2591. * src/HttpResponseCommand.cc
  2592. * src/Metalink2RequestGroup.cc
  2593. * src/MultiDiskAdaptor.cc
  2594. * src/MultiDiskAdaptor.h
  2595. * src/MultiFileAllocationIterator.cc
  2596. * src/RequestGroup.cc
  2597. * src/SingleFileDownloadContext.cc
  2598. * src/SingleFileDownloadContext.h
  2599. * src/download_helper.cc
  2600. * test/BtDependencyTest.cc
  2601. * test/CopyDiskAdaptorTest.cc
  2602. * test/DefaultBtContextTest.cc
  2603. * test/DefaultBtProgressInfoFileTest.cc
  2604. * test/DirectDiskAdaptorTest.cc
  2605. * test/DownloadHelperTest.cc
  2606. * test/FileEntryTest.cc
  2607. * test/MultiDiskAdaptorTest.cc
  2608. * test/MultiFileAllocationIteratorTest.cc
  2609. * test/RequestGroupTest.cc
  2610. * test/SingleFileDownloadContextTest.cc
  2611. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Fixed compiler warning
  2613. * src/download_helper.cc
  2614. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. Throw exception if same infohash torrent is now downloading.
  2616. * src/RequestGroup.cc
  2617. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Added --dry-run option. In this mode, aria2 just checks whether
  2619. the remote file is available and doesn't download data. This
  2620. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2621. are canceled in this mode.
  2622. * src/FtpNegotiationCommand.cc
  2623. * src/HttpResponseCommand.cc
  2624. * src/HttpResponseCommand.h
  2625. * src/OptionHandlerFactory.cc
  2626. * src/RequestGroup.cc
  2627. * src/RequestGroupMan.cc
  2628. * src/prefs.cc
  2629. * src/prefs.h
  2630. * src/usage_text.h
  2631. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Fixed compiler waring
  2633. * test/UriListParserTest.cc
  2634. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Parse options in -i list using OptionParser.
  2636. * src/UriListParser.cc
  2637. * src/UriListParser.h
  2638. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2639. Don't reset URI in retry to avoid additional round trips because
  2640. of redirects.
  2641. * src/AbstractCommand.cc
  2642. * src/OptionHandlerFactory.cc
  2643. * src/prefs.cc
  2644. * src/prefs.h
  2645. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Declared hide() in OptionHandler.
  2647. * src/NameMatchOptionHandler.h
  2648. * src/OptionHandler.h
  2649. * src/OptionHandlerImpl.h
  2650. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Updated doc
  2652. * src/Peer.h
  2653. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Added log message in setStatusInternal()
  2655. * src/ServerStat.cc
  2656. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2657. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2658. effectively exclude failed server.
  2659. * src/AbstractCommand.cc
  2660. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Added --index-out option to specify each file path for torrent.
  2662. Here index shown in --show-files option is used to specify which
  2663. file path should be altered. For example, to change the file path
  2664. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  2665. option multiple times: --index-out=1=aria2.tar.bz2
  2666. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  2667. available. This option can be specified in -i list.
  2668. * src/DefaultBtContext.cc
  2669. * src/DefaultBtContext.h
  2670. * src/MultiDiskAdaptor.cc
  2671. * src/MultiDiskAdaptor.h
  2672. * src/MultiFileAllocationIterator.cc
  2673. * src/OptionHandlerFactory.cc
  2674. * src/OptionHandlerImpl.h
  2675. * src/Util.cc
  2676. * src/Util.h
  2677. * src/download_helper.cc
  2678. * src/prefs.cc
  2679. * src/prefs.h
  2680. * src/usage_text.h
  2681. * test/DefaultBtContextTest.cc
  2682. * test/MultiDiskAdaptorTest.cc
  2683. * test/MultiFileAllocationIteratorTest.cc
  2684. * test/UtilTest.cc
  2685. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2686. Use Util::pathJoin()
  2687. * src/MetalinkParserController.cc
  2688. * test/test.xml
  2689. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2690. Use Util::pathJoin()
  2691. * src/DefaultBtContext.cc
  2692. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Added Util::pathJoin()
  2694. * src/Util.h
  2695. * test/UtilTest.cc
  2696. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2697. Applied basename function to remove directory element in
  2698. content-disposition value.
  2699. Return empty string if content-disposition value is ".." or ".".
  2700. * src/Util.cc
  2701. * test/UtilTest.cc
  2702. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Added --max-overall-download-limit in man page.
  2704. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  2705. * doc/aria2c.1.txt
  2706. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Added --max-overall-download-limit option. Now --max-upload-limit
  2708. option is not ignored when --max-overall-upload-limit option has
  2709. non-zero value. aria2 checks download(upload) speed in the order:
  2710. first checks overall speed limit and if it is not exceeded, then
  2711. checks speed limit per download. Thus you can specify both
  2712. value. For example, set --max-overall-download-limit=1M and
  2713. --max-download-limit=500K to prevent from one download from eating
  2714. all overall speed limit.
  2715. * src/DefaultBtInteractive.cc
  2716. * src/DefaultBtInteractive.h
  2717. * src/DefaultBtMessageDispatcher.cc
  2718. * src/DefaultBtMessageDispatcher.h
  2719. * src/DownloadCommand.cc
  2720. * src/DownloadCommand.h
  2721. * src/FtpNegotiationCommand.cc
  2722. * src/HttpResponseCommand.cc
  2723. * src/OptionHandlerFactory.cc
  2724. * src/PeerInteractionCommand.cc
  2725. * src/RequestGroup.cc
  2726. * src/RequestGroup.h
  2727. * src/RequestGroupMan.cc
  2728. * src/RequestGroupMan.h
  2729. * src/prefs.cc
  2730. * src/prefs.h
  2731. * src/usage_text.h
  2732. * test/DefaultBtMessageDispatcherTest.cc
  2733. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. Documented select-file option in Input File section.
  2735. Documented --http-auth-challenge option.
  2736. * doc/aria2c.1.txt
  2737. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2738. Now select-file can be specified in the uri list(-i list).
  2739. * src/BtContext.cc
  2740. * src/BtContext.h
  2741. * src/RequestGroup.cc
  2742. * src/Sequence.h
  2743. * src/download_helper.cc
  2744. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2745. Made the upper value of --max-concurrent-downloads options unlimited.
  2746. * src/OptionHandlerFactory.cc
  2747. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Fixed the bug that disk writer is not created even if it shares
  2749. same piece with the preceding file if the length of previous file
  2750. is 0.
  2751. * src/MultiDiskAdaptor.cc
  2752. * test/MultiDiskAdaptorTest.cc
  2753. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. In BitTorrent, Open files in read-only mode for hash check. After
  2755. that, re-open file in read/write mode only when the download is
  2756. not finished.
  2757. * src/AbstractDiskWriter.cc
  2758. * src/AbstractDiskWriter.h
  2759. * src/AbstractSingleDiskAdaptor.cc
  2760. * src/AbstractSingleDiskAdaptor.h
  2761. * src/BtCheckIntegrityEntry.cc
  2762. * src/DiskAdaptor.h
  2763. * src/DiskWriter.h
  2764. * src/MultiDiskAdaptor.cc
  2765. * src/MultiDiskAdaptor.h
  2766. * src/RequestGroup.cc
  2767. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2768. Added --http-auth-challenge option. If it is set to true(by
  2769. default), aria2 sends HTTP authorization header only when it is
  2770. requested by the server. If false is set, then authorization
  2771. header is always sent to the server. This is useful for servers
  2772. that don't respond 401 code when authentication is required.
  2773. There is an exception: if username and password are embedded in
  2774. URI, authorization header is always sent to the server regardless
  2775. of this option.
  2776. * src/AuthConfigFactory.cc
  2777. * src/HttpSkipResponseCommand.cc
  2778. * src/OptionHandlerFactory.cc
  2779. * src/prefs.cc
  2780. * src/prefs.h
  2781. * src/usage_text.h
  2782. * test/AuthConfigFactoryTest.cc
  2783. * test/HttpRequestTest.cc
  2784. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. * Release 1.2.0
  2786. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2788. Thanks to all translators.
  2789. * po/es.po
  2790. * po/ja.po
  2791. * po/ru.po
  2792. * po/uk.po
  2793. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Call deleteSocketForReadCheck() before socket is closed.
  2795. * src/HttpListenCommand.cc
  2796. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2797. Defined virtual destructor for BObject.
  2798. * src/bencode.h
  2799. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Rewritten BDE to make it efficient.
  2801. * src/bencode.cc
  2802. * src/bencode.h
  2803. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Removed function throw list.
  2805. * src/bencode.cc
  2806. * src/bencode.h
  2807. * test/BencodeTest.cc
  2808. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2809. Enclosed all URLs in double quotes in command-line examples.
  2810. * doc/aria2c.1.txt
  2811. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Updated reference/see also section.
  2813. * README
  2814. * doc/aria2c.1.txt
  2815. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Reorganized man page based on man man-pages.
  2817. * doc/aria2c.1.txt
  2818. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2820. because same documents are available in man page. Added
  2821. References section.
  2822. * README
  2823. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2824. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2825. PERFORMANCE PROFILE section.
  2826. * doc/aria2c.1.txt
  2827. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Rewritten the section for configuration file.
  2829. * README
  2830. * doc/aria2c.1.txt
  2831. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2832. Fixed the segmentation fault during execution of choking algorithm
  2833. in leecher state because of broken compare operator
  2834. implementation.
  2835. * src/BtLeecherStateChoke.cc
  2836. * src/BtLeecherStateChoke.h
  2837. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2838. Open file in binary mode.
  2839. * src/CookieStorage.cc
  2840. * src/DHTSetup.cc
  2841. * src/DHTUtil.cc
  2842. * src/Netrc.cc
  2843. * src/NsCookieParser.cc
  2844. * src/ProtocolDetector.cc
  2845. * src/RequestGroupMan.cc
  2846. * src/Signature.cc
  2847. * src/bencode.cc
  2848. * src/download_helper.cc
  2849. * src/option_processing.cc
  2850. * test/CookieParserTest.cc
  2851. * test/DefaultBtProgressInfoFileTest.cc
  2852. * test/FileTest.cc
  2853. * test/GZipDecoderTest.cc
  2854. * test/RequestGroupManTest.cc
  2855. * test/SignatureTest.cc
  2856. * test/SingleFileAllocationIteratorTest.cc
  2857. * test/UriListParserTest.cc
  2858. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2859. Removed operator[] because it is ambiguous with built-in []
  2860. operator.
  2861. * src/array_fun.h
  2862. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2863. Fixed compile error
  2864. * src/OptionParser.cc
  2865. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2866. Added missing call to arrayWrapperConst
  2867. * test/array_funTest.cc
  2868. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Use array_wrapper instead of array_ptr.
  2870. * src/DHTRoutingTableDeserializer.cc
  2871. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2872. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2873. * src/array_fun.h
  2874. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Added array_wrapper template.
  2876. * src/array_fun.h
  2877. * test/array_funTest.cc
  2878. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Use operator T* of array_ptr.
  2880. * src/OptionParser.cc
  2881. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2882. Use localhost instead of 127.0.0.1
  2883. * test/FtpConnectionTest.cc
  2884. * test/MSEHandshakeTest.cc
  2885. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Added operator T*
  2887. * src/array_fun.h
  2888. * test/array_funTest.cc
  2889. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Use dynamically allocated char array to detect memory access
  2891. violation.
  2892. * src/DHTRoutingTableDeserializer.cc
  2893. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2894. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2895. defined.
  2896. * src/PeerMessageUtil.cc
  2897. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2899. * configure.ac
  2900. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2901. Added a check to see struct sockaddr_in has sin_len member.
  2902. * configure.ac
  2903. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2904. Fixed buffer overrun.
  2905. * src/DHTRoutingTableDeserializer.cc
  2906. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2907. Added LL for long long int constant.
  2908. * test/FtpConnectionTest.cc
  2909. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. Casted to unsigned int to suppress compiler warning on netbsd.
  2911. * src/BtRuntime.h
  2912. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2913. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2914. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2915. type time_t.
  2916. * src/SimpleLogger.cc
  2917. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Added test for FtpConnection::receiveSizeResponse().
  2919. * test/FtpConnectionTest.cc
  2920. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Fix epoll error on the old kernel 2.6.8 or ealier.
  2922. * src/EpollEventPoll.cc
  2923. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2924. Use Util::parseLLInt instead of sscanf for portability. The
  2925. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2926. * src/FtpConnection.cc
  2927. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2929. block. It should not filter anything.
  2930. * src/BitfieldMan.cc
  2931. * src/ConsoleStatCalc.cc
  2932. * test/BitfieldManTest.cc
  2933. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2934. Fixed the bug that the boolean options that don't take arguments
  2935. don't work.
  2936. * src/OptionHandlerImpl.h
  2937. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Fixed broken selected file BitTorrent download.
  2939. * src/MultiDiskAdaptor.cc
  2940. * test/MultiDiskAdaptorTest.cc
  2941. * test/MultiFileAllocationIteratorTest.cc
  2942. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Fixed #define guard for EpollEventPoll
  2944. * src/EpollEventPoll.h
  2945. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2946. Wait 2 seconds. 1 second is sometimes not enough.
  2947. * test/TimeSeedCriteriaTest.cc
  2948. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2949. Use localhost instead of 127.0.0.1.
  2950. * test/DHTConnectionImplTest.cc
  2951. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2952. Suppressed compiler warning.
  2953. * src/AdaptiveURISelector.cc
  2954. * src/DefaultPieceStorage.cc
  2955. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Defined virtual destructor.
  2957. * src/MetalinkParserState.h
  2958. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Give NULL for second argument of getaddrinfo instead of "0".
  2960. * src/NameResolver.cc
  2961. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2963. included strptime doesn't parse data for this format.
  2964. * src/FtpConnection.cc
  2965. * test/FtpConnectionTest.cc
  2966. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Removed tests giving -1 for unsigned argument.
  2968. * test/SingleFileDownloadContextTest.cc
  2969. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Don't use sha256 in tests because it might not be supported by the
  2971. SSL library.
  2972. * test/MetalinkProcessorTest.cc
  2973. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Removed tests giving -1 for unsigned argument.
  2975. * test/AlphaNumberDecoratorTest
  2976. * test/BitfieldManTest.cc
  2977. * test/DefaultBtContextTest.cc
  2978. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2979. Fixed compile error without libcares when epoll is available.
  2980. * src/EpollEventPoll.cc
  2981. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2982. Included fstream instead of iostream.
  2983. * test/SignatureTest.cc
  2984. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2985. Removed #include <algorithm>
  2986. * test/RequestGroupTest.cc
  2987. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2988. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2989. using RequestGroup::extractURIResult().
  2990. * src/AdaptiveURISelector.cc
  2991. * src/RequestGroup.cc
  2992. * src/RequestGroup.h
  2993. * test/RequestGroupTest.cc
  2994. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2995. Added tests for array_ptr.
  2996. * test/array_funTest.cc
  2997. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2998. Don't send ip parameter to a tracker if ip parameter is empty
  2999. string.
  3000. * src/DefaultBtAnnounce.cc
  3001. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3002. Adjusted line feed.
  3003. * src/version_usage.cc
  3004. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3005. Print tags, possible values when OptionHandlerException is caught.
  3006. * src/option_processing.cc
  3007. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3008. Changed the message for FatalException.
  3009. * src/OptionParser.cc
  3010. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3011. Documented --bt-external-ip option in man page. Updated man pages
  3012. for --proxy-method option.
  3013. * doc/aria2c.1.txt
  3014. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Use GET method for FTP via HTTP proxy.
  3016. * src/FtpInitiateConnectionCommand.cc
  3017. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3018. Changed the default value of --proxy-method option from 'tunnel'
  3019. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3020. option.
  3021. * src/AbstractCommand.cc
  3022. * src/AbstractCommand.h
  3023. * src/FtpInitiateConnectionCommand.cc
  3024. * src/HttpDownloadCommand.cc
  3025. * src/HttpInitiateConnectionCommand.cc
  3026. * src/HttpInitiateConnectionCommand.h
  3027. * src/OptionHandlerFactory.cc
  3028. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3029. Initialized _logger
  3030. * src/SelectEventPoll.cc
  3031. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Defined a copy constructor for the same type.
  3033. * src/SharedHandle.h
  3034. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Added OptionParser::parseArg() which internally uses getopt_long
  3036. to parse command-line options. All command-line options are now
  3037. configured by OptionHandler. No manual editing of struct option*
  3038. is required any more.
  3039. * src/NameMatchOptionHandler.h
  3040. * src/OptionHandler.h
  3041. * src/OptionHandlerFactory.cc
  3042. * src/OptionHandlerImpl.h
  3043. * src/OptionParser.cc
  3044. * src/OptionParser.h
  3045. * src/array_fun.h
  3046. * src/main.cc
  3047. * src/option_processing.cc
  3048. * test/OptionHandlerTest.cc
  3049. * test/OptionParserTest.cc
  3050. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3051. Fixed configure error with --disable-epoll
  3052. * configure.ac
  3053. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Fixed compile error when HAVE_EPOLL is not defined.
  3055. Fixed linker error on bigendian systems.
  3056. * src/SocketCore.cc
  3057. * src/SocketCore.h
  3058. * test/DefaultBtProgressInfoFileTest.cc
  3059. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3060. Added --bt-external-ip option. You can specify the external IP
  3061. address to report to a BitTorrent tracker. Although this function
  3062. is named 'external', it can accept any kind of IP addresses.
  3063. * src/DefaultBtAnnounce.cc
  3064. * src/OptionHandlerFactory.cc
  3065. * src/option_processing.cc
  3066. * src/prefs.cc
  3067. * src/prefs.h
  3068. * src/usage_text.h
  3069. * test/DefaultBtAnnounceTest.cc
  3070. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3071. Extracted the algorithm to find the longest incremental sequence
  3072. as max_sequence template.
  3073. * src/LongestSequencePieceSelector.cc
  3074. * src/a2algo.h
  3075. * test/Makefile.am
  3076. * test/a2algoTest.cc
  3077. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3079. * src/usage_text.h
  3080. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Updated doc for --uri-selector, --http-server-listen-port and
  3082. --enable-http-server option. Documented --event-poll option.
  3083. * doc/aria2c.1.txt
  3084. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Updated doc for --enable-http-server.
  3086. * src/usage_text.h
  3087. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3088. Documented --http-server-listen-port and --enable-http-server in
  3089. man page.
  3090. * doc/aria2c.1.txt
  3091. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3092. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3093. translations. Thanks to all translators.
  3094. * po/es.po
  3095. * po/id.po
  3096. * po/it.po
  3097. * po/ru.po
  3098. * po/uk.po
  3099. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3100. Bump up version number to 1.2.0
  3101. * configure.ac
  3102. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3103. BtContext::getAnnounceTiers() now returns const reference.
  3104. * src/BtContext.h
  3105. * src/DefaultBtContext.cc
  3106. * src/DefaultBtContext.h
  3107. * test/MockBtContext.h
  3108. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3109. Change the number of retries for tracker request based on the
  3110. number of available tracker in a torrent file.
  3111. * src/TrackerWatcherCommand.cc
  3112. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. Added _maxTries property to RequestGroup and assign the option
  3114. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3115. RequestGroup::getMaxTries() instead of
  3116. Option::getAsInt(PREF_MAX_TRIES).
  3117. * src/AbstractCommand.cc
  3118. * src/RequestGroup.cc
  3119. * src/RequestGroup.h
  3120. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3121. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3122. Mandriva. I modified the patch: make RequestGroup have the
  3123. timeout value and AdaptiveURISelector directly modifies that
  3124. value.
  3125. * src/AbstractCommand.cc
  3126. * src/AdaptiveURISelector.cc
  3127. * src/AdaptiveURISelector.h
  3128. * src/FtpNegotiationCommand.cc
  3129. * src/RequestGroup.cc
  3130. * src/RequestGroup.h
  3131. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Fixed compiler warning
  3133. * test/IteratableChecksumValidatorTest.cc
  3134. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3136. integrated downloads. This PieceSelector subclass finds the
  3137. longest continuous sequence in the available missing pieces and
  3138. selects the last index of such sequence. This makes HTTP/FTP
  3139. connections less interrupted by the pieces obtained by BitTorrent
  3140. peers.
  3141. * src/DefaultPieceStorage.cc
  3142. * src/DefaultPieceStorage.h
  3143. * src/LongestSequencePieceSelector.cc
  3144. * src/LongestSequencePieceSelector.h
  3145. * src/Makefile.am
  3146. * src/PieceSelector.h
  3147. * src/RarestPieceSelector.h
  3148. * src/RequestGroup.cc
  3149. * test/BtDependencyTest.cc
  3150. * test/DefaultPieceStorageTest.cc
  3151. * test/IteratableChecksumValidatorTest.cc
  3152. * test/LongestSequencePieceSelectorTest.cc
  3153. * test/Makefile.am
  3154. * test/SegmentManTest.cc
  3155. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3156. Fixed the bug that the average speed is wrong in
  3157. http/ftp/BitTorrent integrated download. Only the download bytes
  3158. in BitTorrent were considered.
  3159. * src/RequestGroup.cc
  3160. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Choose port for BitTorrent/DHT randomly from the specified range.
  3162. * src/DHTConnectionImpl.cc
  3163. * src/PeerListenCommand.cc
  3164. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Send HTTP Authorization header only if it is requested by the
  3166. server(response 401). There are some exceptions. The authorization
  3167. header for proxy is always sent if it is available without request
  3168. by the server. If username/password is specified in the URI, it
  3169. is immediately sent to the server without request by the server.
  3170. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3171. SharedHandle<AuthConfig>().
  3172. NetrcAuthResolver::resolveAuthConfig() returns
  3173. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3174. * src/AbstractAuthResolver.cc
  3175. * src/AbstractProxyRequestCommand.cc
  3176. * src/AuthConfigFactory.cc
  3177. * src/AuthConfigFactory.h
  3178. * src/HttpConnection.cc
  3179. * src/HttpRequest.cc
  3180. * src/HttpRequest.h
  3181. * src/HttpResponse.cc
  3182. * src/HttpResponseCommand.cc
  3183. * src/HttpSkipResponseCommand.cc
  3184. * test/AuthConfigFactoryTest.cc
  3185. * test/HttpRequestTest.cc
  3186. * test/HttpResponseTest.cc
  3187. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. Remove leading "--" from help keyword and a substring after "="
  3189. from help keyword, so that one can query options by '-h--max-' or
  3190. '-hmax-peers=10'.
  3191. * src/option_processing.cc
  3192. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3193. Rewritten PStringVisitor and its implementation.
  3194. * src/PStringBuildVisitor.cc
  3195. * src/PStringBuildVisitor.h
  3196. * src/PStringDatum.h
  3197. * src/PStringNumLoop.h
  3198. * src/PStringSegment.cc
  3199. * src/PStringSegment.h
  3200. * src/PStringSelect.h
  3201. * src/PStringVisitor.h
  3202. * src/download_helper.cc
  3203. * test/PStringBuildVisitorTest.cc
  3204. * test/ParameterizedStringParserTest.cc
  3205. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3206. Persist connection between the built-in HTTP server and a client
  3207. if a client supports keep-alive. Fixed the bug that aria2 exits
  3208. when the HTTP server receives EOF from a client.
  3209. * src/HttpServer.cc
  3210. * src/HttpServer.h
  3211. * src/HttpServerCommand.cc
  3212. * src/HttpServerCommand.h
  3213. * src/HttpServerResponseCommand.cc
  3214. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3215. Added experimental built-in HTTP server. Currently, when a client
  3216. accesses to the server, it responds with the current download
  3217. progress. By default, it is disabled. To enable the server, give
  3218. --enable-http-server option. To change the default port number
  3219. for the server to listen to, use --http-server-listen-port option.
  3220. The response HTML is very simple and refreshes it self each 1
  3221. second. Because of this refresh, you see flicker in normal web
  3222. browser such as Firefox. I recommend to use console-based browser
  3223. such as elinks, w3m. To connect to the server, run 'elinks
  3224. http://localhost:6800/' while running aria2. Please replace port
  3225. number '6800'(which is default) with your preference.
  3226. * src/DownloadEngineFactory.cc
  3227. * src/HttpHeader.cc
  3228. * src/HttpHeader.h
  3229. * src/HttpHeaderProcessor.cc
  3230. * src/HttpHeaderProcessor.h
  3231. * src/HttpListenCommand.cc
  3232. * src/HttpListenCommand.h
  3233. * src/HttpServer.cc
  3234. * src/HttpServer.h
  3235. * src/HttpServerCommand.cc
  3236. * src/HttpServerCommand.h
  3237. * src/HttpServerResponseCommand.cc
  3238. * src/HttpServerResponseCommand.h
  3239. * src/Makefile.am
  3240. * src/OptionHandlerFactory.cc
  3241. * src/Util.cc
  3242. * src/Util.h
  3243. * src/help_tags.h
  3244. * src/option_processing.cc
  3245. * src/prefs.cc
  3246. * src/prefs.h
  3247. * src/usage_text.h
  3248. * test/HttpHeaderProcessorTest.cc
  3249. * test/UtilTest.cc
  3250. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Removed.
  3252. * src/CheckIntegrityMan.cc
  3253. * src/FileAllocationMan.cc
  3254. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3255. Made (piece) hash check sequential for each RequestGroup because
  3256. simultaneous hash check is slower than sequential execution.
  3257. * src/CheckIntegrityCommand.cc
  3258. * src/CheckIntegrityDispatcherCommand.cc
  3259. * src/CheckIntegrityDispatcherCommand.h
  3260. * src/CheckIntegrityMan.h
  3261. * src/ConsoleStatCalc.cc
  3262. * src/DownloadCommand.cc
  3263. * src/DownloadEngine.cc
  3264. * src/DownloadEngine.h
  3265. * src/DownloadEngineFactory.cc
  3266. * src/Makefile.am
  3267. * src/Makefile.in
  3268. * src/RequestGroup.cc
  3269. * src/StatCalc.h
  3270. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3272. SequentialDispatcherCommand.
  3273. * src/FileAllocationDispatcherCommand.cc
  3274. * src/SequentialDispatcherCommand.h
  3275. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3276. Rewritten FileAllocationDispatcherCommand using brand new
  3277. SequentialDispatcherCommand.
  3278. * src/DownloadEngineFactory.cc
  3279. * src/FileAllocationCommand.cc
  3280. * src/FileAllocationDispatcherCommand.cc
  3281. * src/FileAllocationDispatcherCommand.h
  3282. * src/Makefile.am
  3283. * src/SequentialDispatcherCommand.h
  3284. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3285. Replaced FileAllocationMan with
  3286. SequentialPicker<FileAllocationEntry>.
  3287. * src/BtCheckIntegrityEntry.cc
  3288. * src/ConsoleStatCalc.cc
  3289. * src/DownloadEngine.cc
  3290. * src/DownloadEngine.h
  3291. * src/DownloadEngineFactory.cc
  3292. * src/FileAllocationCommand.cc
  3293. * src/FileAllocationDispatcherCommand.cc
  3294. * src/FileAllocationMan.h
  3295. * src/Makefile.am
  3296. * src/SequentialPicker.h
  3297. * src/StatCalc.h
  3298. * src/StreamCheckIntegrityEntry.cc
  3299. * test/Makefile.am
  3300. * test/SequentialPickerTest.cc
  3301. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3302. Added doc for adaptive URI selector.
  3303. * doc/aria2c.1.txt
  3304. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3305. Added doc for adaptive URI selector.
  3306. * src/usage_text.h
  3307. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3308. Added doc for --bt-max-peers option.
  3309. * doc/aria2c.1.txt
  3310. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Added doc for --bt-hash-check-seed option.
  3312. * doc/aria2c.1.txt
  3313. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Documented exit codes.
  3315. * doc/aria2c.1.txt
  3316. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3317. Added --bt-max-peers option to specify the maximum number of peers
  3318. per torrent. 0 means unlimited number of peers.
  3319. * src/ActivePeerConnectionCommand.cc
  3320. * src/BtRuntime.h
  3321. * src/DefaultPeerStorage.cc
  3322. * src/DefaultPeerStorage.h
  3323. * src/OptionHandlerFactory.cc
  3324. * src/RequestGroup.cc
  3325. * src/option_processing.cc
  3326. * src/prefs.cc
  3327. * src/prefs.h
  3328. * src/usage_text.h
  3329. * test/DefaultPeerStorageTest.cc
  3330. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3331. Added --bt-hash-check-seed option. If true is given to this
  3332. option, after hash check using --check-integrity option and file
  3333. is complete, continue to seed file. If you want to check file and
  3334. download it only when it is damaged or incomplete, set this option
  3335. to false. This option has effect only on BitTorrent download.
  3336. The default value is true(This is the same behavior with the
  3337. previous release).
  3338. * src/BtCheckIntegrityEntry.cc
  3339. * src/OptionHandlerFactory.cc
  3340. * src/option_processing.cc
  3341. * src/prefs.cc
  3342. * src/prefs.h
  3343. * src/usage_text.h
  3344. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3345. Updated copyright year.
  3346. * src/version_usage.cc
  3347. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3348. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3349. * doc/aria2c.1.txt
  3350. * src/usage_text.h
  3351. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3352. Made the max value of split option unlimited.
  3353. * doc/aria2c.1.txt
  3354. * src/OptionHandlerFactory.cc
  3355. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3356. Fixed compile warning/error.
  3357. * src/DownloadResult.h
  3358. * src/HttpDownloadCommand.cc
  3359. * src/ServerStat.cc
  3360. * test/RequestGroupTest.cc
  3361. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3362. Added --event-poll option to select the method for polling events.
  3363. The available methods are "select" and "epoll". "epoll" is
  3364. available on Linux only. The earlier release has the compile
  3365. option to choose from these methods.
  3366. * configure.ac
  3367. * src/RequestGroupMan.cc
  3368. * src/OptionHandlerFactory.cc
  3369. * src/EpollEventPoll.h
  3370. * src/StreamFileAllocationEntry.cc
  3371. * src/a2io.h
  3372. * src/SelectEventPoll.h
  3373. * src/option_processing.cc
  3374. * src/prefs.h
  3375. * src/EpollEventPoll.cc
  3376. * src/EventPoll.h
  3377. * src/SocketCore.h
  3378. * src/Makefile.am
  3379. * src/main.cc
  3380. * src/DownloadEngine.h
  3381. * src/SelectEventPoll.cc
  3382. * src/DownloadEngine.cc
  3383. * src/SocketCore.cc
  3384. * src/DownloadEngineFactory.cc
  3385. * src/Makefile.in
  3386. * src/prefs.cc
  3387. * src/usage_text.h
  3388. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3389. Included RecoverableException.h from main.cc
  3390. * src/main.cc
  3391. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3392. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3393. now returns last error encountered in the HTTP/FTP downloads as a
  3394. exit status value. If all downloads finished successfully, aria2
  3395. returns 0. The error code is defined in src/DownloadResult.h.
  3396. The error occurred in the download currently in progress is not
  3397. reported as a last error. If no error has encountered but there
  3398. are in progress or waiting downloads, aria2 returns 7.
  3399. * src/AbstractCommand.cc
  3400. * src/DlAbortEx.h
  3401. * src/DlRetryEx.h
  3402. * src/DownloadCommand.cc
  3403. * src/DownloadFailureException.h
  3404. * src/DownloadResult.h
  3405. * src/FtpNegotiationCommand.cc
  3406. * src/HttpSkipResponseCommand.cc
  3407. * src/Makefile.am
  3408. * src/MultiUrlRequestInfo.cc
  3409. * src/MultiUrlRequestInfo.h
  3410. * src/RecoverableException.h
  3411. * src/RequestGroup.cc
  3412. * src/RequestGroup.h
  3413. * src/RequestGroupMan.cc
  3414. * src/RequestGroupMan.h
  3415. * src/URIResult.cc
  3416. * src/URIResult.h
  3417. * src/main.cc
  3418. * src/option_processing.cc
  3419. * test/RequestGroupTest.cc
  3420. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3422. patch adds AdaptiveURISelector, which selects one of the bests
  3423. mirrors for first and reserved connections. For supplementary
  3424. ones, it returns mirrors which has not been tested yet, and if
  3425. each of them already tested, returns mirrors which has to be
  3426. tested again. Otherwise, it doesn't return anymore mirrors.
  3427. * src/AdaptiveURISelector.cc
  3428. * src/AdaptiveURISelector.h
  3429. * src/FtpNegotiationCommand.cc
  3430. * src/HttpResponseCommand.cc
  3431. * src/Makefile.am
  3432. * src/Makefile.in
  3433. * src/OptionHandlerFactory.cc
  3434. * src/RequestGroup.cc
  3435. * src/RequestGroup.h
  3436. * src/RequestGroupMan.cc
  3437. * src/ServerStat.cc
  3438. * src/ServerStat.h
  3439. * src/ServerStatMan.cc
  3440. * src/SpeedCalc.cc
  3441. * src/URISelector.h
  3442. * src/prefs.cc
  3443. * src/prefs.h
  3444. * test/RequestGroupManTest.cc
  3445. * test/ServerStatManTest.cc
  3446. * test/ServerStatTest.cc
  3447. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3448. Fixed unit test error.
  3449. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3450. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3451. * Release 1.1.2
  3452. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3453. Updated Russian translation. Thanks to the translators.
  3454. * po/ru.po
  3455. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3456. Added the description of --use-head option to man page.
  3457. * doc/aria2c.1.txt
  3458. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3459. Bump up version number to 1.1.2
  3460. * configure.ac
  3461. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3462. Added --use-head option to toggle whether HEAD method should be
  3463. used in the first HTTP request. By default aria2 uses HEAD method
  3464. as the first request. When the server doesn't recognize HEAD, then
  3465. give aria2 --use-head=false to force aria2 to use GET method
  3466. instead.
  3467. * src/OptionHandlerFactory.cc
  3468. * src/RequestGroupMan.cc
  3469. * src/option_processing.cc
  3470. * src/prefs.cc
  3471. * src/prefs.h
  3472. * src/usage_text.h
  3473. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3474. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3475. message is received before CHOKE message. The old implementation
  3476. doen't clear the use-bit of the piece when recieved REJECT
  3477. message.
  3478. * src/DefaultBtMessageDispatcher.cc
  3479. * test/DefaultBtMessageDispatcherTest.cc
  3480. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3481. * Release 1.1.1
  3482. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3483. Bump up version number to 1.1.1.
  3484. * configure.ac
  3485. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3486. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3487. is printed repeatedly.
  3488. * src/ConsoleStatCalc.cc
  3489. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3490. * Release 1.1.0
  3491. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3492. Added ifdef clause for conditional compilation.
  3493. * src/main.cc
  3494. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3495. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3496. translations. Thanks to all translators.
  3497. * po/ja.po
  3498. * po/ru.po
  3499. * po/uk.po
  3500. * po/zh_CN.po
  3501. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3502. Added the preceding ">>> " before the message "Printing the
  3503. contents of file..." to make the output more readable.
  3504. * src/main.cc
  3505. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3506. Added try-catch block in the loop in showFiles() to continue the
  3507. operation even if the exception occurred in one file.
  3508. * src/main.cc (showFiles)
  3509. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Made messages in showFiles() translatable.
  3511. * po/aria2.pot
  3512. * src/main.cc
  3513. * src/message.h
  3514. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3515. Print the contents of Torrent/Metalink files are printed without
  3516. -T/-M options.
  3517. * src/main.cc
  3518. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Escaped '--' with '\--'
  3520. * README
  3521. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Updated "How to build" section in README. Mentioned about
  3523. --with-ca-bundle compile option.
  3524. * README
  3525. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3526. Bump up version number to 1.1.0.
  3527. * configure.ac
  3528. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Added a note for --dht-listen-port option.
  3530. * doc/aria2c.1.txt
  3531. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3532. Update doc for --realtime-chunk-checksum option.
  3533. * doc/aria2c.1.txt
  3534. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3535. Update doc for --realtime-chunk-checksum option.
  3536. * src/usage_text.h
  3537. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3538. Updated French, Japanese, Russian and Ukrainian translations.
  3539. Thanks to all translators.
  3540. * po/fr.po
  3541. * po/ja.po
  3542. * po/ru.po
  3543. * po/uk.po
  3544. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3545. Renamed aria2c.pot to aria2.pot
  3546. * po/aria2.pot
  3547. * po/aria2c.pot: Removed.
  3548. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Removed MetaEntry.h
  3550. * src/Makefile.am
  3551. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Rename file by appending digits if a local file exists and its
  3553. file size is larger than that of remote file with --continue
  3554. option. The old implementation just throws exception in such case.
  3555. * src/RequestGroup.cc
  3556. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Fixed the bug that download progress summary is not printed in the
  3558. interval specified by the option.
  3559. * src/ConsoleStatCalc.cc
  3560. * src/ConsoleStatCalc.h
  3561. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Fixed compiler warning
  3563. * src/Cookie.cc
  3564. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3565. Fixed the cookie implementation based on RFC2965.
  3566. Now if a value in domain field is not started with dot, then
  3567. prepend dot. That means a cookie with domain=sf.net is sent to
  3568. wiki.sf.net.
  3569. * src/Cookie.cc
  3570. * test/CookieParserTest.cc
  3571. * test/CookieStorageTest.cc
  3572. * test/CookieTest.cc
  3573. * test/NsCookieParserTest.cc
  3574. * test/Sqlite3MozCookieParserTest.cc
  3575. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3576. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3577. is enabled and the server doesn't support keep-alive.
  3578. * src/AbstractCommand.cc
  3579. * src/DownloadCommand.cc
  3580. * src/HttpDownloadCommand.cc
  3581. * src/HttpDownloadCommand.h
  3582. * src/HttpResponseCommand.cc
  3583. * src/Request.cc
  3584. * src/Request.h
  3585. * test/RequestTest.cc
  3586. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3587. Removed Dictionary/List/Data and its related classes.
  3588. * src/BencodeVisitor.cc: Removed.
  3589. * src/BencodeVisitor.h: Removed.
  3590. * src/Data.cc: Removed.
  3591. * src/Data.h: Removed.
  3592. * src/Dictionary.cc: Removed.
  3593. * src/Dictionary.h: Removed.
  3594. * src/List.cc: Removed.
  3595. * src/List.h: Removed.
  3596. * src/Makefile.am
  3597. * src/MetaEntry.h: Removed.
  3598. * src/MetaEntryVisitor.h: Removed.
  3599. * src/MetaFileUtil.cc: Removed.
  3600. * src/MetaFileUtil.h: Removed.
  3601. * test/BencodeVisitorTest.cc: Removed.
  3602. * test/DataTest.cc: Removed.
  3603. * test/DictionaryTest.cc: Removed.
  3604. * test/ListTest.cc: Removed.
  3605. * test/Makefile.am
  3606. * test/MetaFileUtilTest.cc: Removed.
  3607. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3608. Removed include of MetaEntry.h
  3609. * test/DHTMessageTrackerEntryTest.cc
  3610. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3611. Use BDE instead of Dictionary/List/Data.
  3612. * src/AnnounceList.cc
  3613. * src/AnnounceList.h
  3614. * test/AnnounceListTest.cc
  3615. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3616. Use BDE instead of Dictionary/List/Data.
  3617. * src/DHTAbstractMessage.cc
  3618. * src/DHTAbstractMessage.h
  3619. * src/DHTAnnouncePeerMessage.cc
  3620. * src/DHTAnnouncePeerMessage.h
  3621. * src/DHTAnnouncePeerReplyMessage.cc
  3622. * src/DHTAnnouncePeerReplyMessage.h
  3623. * src/DHTFindNodeMessage.cc
  3624. * src/DHTFindNodeMessage.h
  3625. * src/DHTFindNodeReplyMessage.cc
  3626. * src/DHTFindNodeReplyMessage.h
  3627. * src/DHTGetPeersMessage.cc
  3628. * src/DHTGetPeersMessage.h
  3629. * src/DHTGetPeersReplyMessage.cc
  3630. * src/DHTGetPeersReplyMessage.h
  3631. * src/DHTMessageFactory.h
  3632. * src/DHTMessageFactoryImpl.cc
  3633. * src/DHTMessageFactoryImpl.h
  3634. * src/DHTMessageReceiver.cc
  3635. * src/DHTMessageTracker.cc
  3636. * src/DHTMessageTracker.h
  3637. * src/DHTPingMessage.cc
  3638. * src/DHTPingMessage.h
  3639. * src/DHTPingReplyMessage.cc
  3640. * src/DHTPingReplyMessage.h
  3641. * src/DHTQueryMessage.cc
  3642. * src/DHTQueryMessage.h
  3643. * src/DHTResponseMessage.cc
  3644. * src/DHTResponseMessage.h
  3645. * test/DHTAnnouncePeerMessageTest.cc
  3646. * test/DHTAnnouncePeerReplyMessageTest.cc
  3647. * test/DHTFindNodeMessageTest.cc
  3648. * test/DHTFindNodeReplyMessageTest.cc
  3649. * test/DHTGetPeersMessageTest.cc
  3650. * test/DHTGetPeersReplyMessageTest.cc
  3651. * test/DHTMessageFactoryImplTest.cc
  3652. * test/DHTMessageTrackerTest.cc
  3653. * test/DHTPingMessageTest.cc
  3654. * test/DHTPingReplyMessageTest.cc
  3655. * test/MockDHTMessageFactory.h
  3656. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3657. Added tests the case where length < 0 is specified.
  3658. * test/BencodeTest.cc
  3659. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3660. Fixed memory leak in decoderawstring()
  3661. * src/bencode.cc
  3662. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3663. Added missing #ifdef guard. Added uc() function for String and
  3664. removeKey() for Dict.
  3665. * src/bencode.cc
  3666. * src/bencode.h
  3667. * test/BencodeTest.cc
  3668. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3669. Use BDE instead of Dictionary/List/Data.
  3670. * src/HandshakeExtensionMessage.cc
  3671. * src/HandshakeExtensionMessage.h
  3672. * test/HandshakeExtensionMessageTest.cc
  3673. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Added --max-overall-upload-limit option. This option limits the
  3675. overall upload speed. Stated in help message that the existing
  3676. --max-upload-limit option limits the upload speed per each
  3677. torrent. Man page is also updated.
  3678. * doc/aria2c.1.txt
  3679. * src/DefaultBtMessageDispatcher.cc
  3680. * src/DefaultBtMessageDispatcher.h
  3681. * src/OptionHandlerFactory.cc
  3682. * src/PeerInteractionCommand.cc
  3683. * src/option_processing.cc
  3684. * src/prefs.cc
  3685. * src/prefs.h
  3686. * src/usage_text.h
  3687. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3688. Use BDE instead of Dictionary/List/Data classes.
  3689. * src/CompactPeerListProcessor.cc
  3690. * src/CompactPeerListProcessor.h
  3691. * src/DefaultBtAnnounce.cc
  3692. * src/DefaultBtContext.cc
  3693. * src/DefaultBtContext.h
  3694. * src/DefaultPeerListProcessor.cc
  3695. * src/DefaultPeerListProcessor.h
  3696. * src/DelegatingPeerListProcessor.cc
  3697. * src/DelegatingPeerListProcessor.h
  3698. * src/PeerListProcessor.h
  3699. * src/UTPexExtensionMessage.cc
  3700. * src/Util.h
  3701. * src/message.h
  3702. * test/DefaultBtContextTest.cc
  3703. * test/DefaultPeerListProcessorTest.cc
  3704. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3705. Added bencode helper functions and BDE class.
  3706. They will replace MetaFileUtil and Dictionary/List/Data classes.
  3707. * src/Makefile.am
  3708. * src/bencode.cc
  3709. * src/bencode.h
  3710. * test/BencodeTest.cc
  3711. * test/Makefile.am
  3712. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Fixed the bug that bad URI is sent to the tracker when the announe
  3714. URI in torrent file includes query.
  3715. * src/DefaultBtAnnounce.cc
  3716. * test/DefaultBtAnnounceTest.cc
  3717. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. Added Option::blank().
  3719. Use !Option::blank(name) instead of Option::defined(name) for
  3720. the options that take filename.
  3721. * src/MultiUrlRequestInfo.cc
  3722. * src/Option.cc
  3723. * src/Option.h
  3724. * src/main.cc
  3725. * src/option_processing.cc
  3726. * test/OptionTest.cc
  3727. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3728. Documented the default value of --check-certificate option in man
  3729. page.
  3730. * doc/aria2c.1.txt
  3731. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Enabled --check-certificate by default. Added compile
  3733. time(configure) option --with-ca-bundle to specify CA bundle.
  3734. Warn if --check-certificate=true and --ca-certificate is not
  3735. specified or loading CA certificate is failed.
  3736. * configure.ac
  3737. * src/MultiUrlRequestInfo.cc
  3738. * src/OptionHandlerFactory.cc
  3739. * src/message.h
  3740. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3741. Mentioned https tag in help option.
  3742. * doc/aria2c.1.txt
  3743. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Added `https' tag to help option category. Added https tag to
  3745. --ca-certificate, --certificate, --check-certificate and
  3746. --private-key option.
  3747. * src/OptionHandlerFactory.cc
  3748. * src/help_tags.h
  3749. * src/option_processing.cc
  3750. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3751. Changed the package name from `aria2c' to `aria2' in order to fix
  3752. the packaging issue in Debian and Fedora. The name of the
  3753. executable is not changed.
  3754. * configure.ac
  3755. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Fixed typos
  3757. * src/usage_text.h
  3758. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Fixed typos and updated doc.
  3760. * README
  3761. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Fixed typos
  3763. * doc/aria2c.1.txt
  3764. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Fixed typos
  3766. * src/usage_text.h
  3767. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3768. Print a message when no files to download.
  3769. * src/download_helper.cc
  3770. * src/main.cc
  3771. * src/message.h
  3772. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3773. RFC3986 complied Percent-Encoding(urlencode).
  3774. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3775. ones.
  3776. * src/Request.cc
  3777. * src/Util.cc
  3778. * src/Util.h
  3779. * test/BtHandshakeMessageTest.cc
  3780. * test/DefaultBtAnnounceTest.cc
  3781. * test/DefaultBtContextTest.cc
  3782. * test/RequestTest.cc
  3783. * test/UtilTest.cc
  3784. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3785. Fixed the bug that prevents aria2 from downloading 0-length files
  3786. via HTTP/FTP.
  3787. * src/DefaultBtContext.cc
  3788. * src/DefaultBtContext.h
  3789. * src/DownloadContext.h
  3790. * src/FtpNegotiationCommand.cc
  3791. * src/HttpResponseCommand.cc
  3792. * src/HttpResponseCommand.h
  3793. * src/RequestGroup.cc
  3794. * src/SingleFileDownloadContext.cc
  3795. * src/SingleFileDownloadContext.h
  3796. * test/BtPostDownloadHandlerTest.cc
  3797. * test/MetalinkPostDownloadHandlerTest.cc
  3798. * test/MockBtContext.h
  3799. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3801. * src/option_processing.cc
  3802. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Applied aria2-1.0.1-mingw.patch.
  3804. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3805. mingw.
  3806. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3807. * src/SocketCore.cc
  3808. * src/a2netcompat.h
  3809. * test/SocketCoreTest.cc
  3810. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. * Release 1.0.1
  3812. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Updated Ukrainian and Norwegian Nynorsk translations.
  3814. Thanks to all translators.
  3815. * po/nn.po
  3816. * po/uk.po
  3817. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3818. Don't show download result when -S option is used.
  3819. * src/main.cc
  3820. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3821. Bump up version number to 1.0.1
  3822. * configure.ac
  3823. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3824. Closed files after the test cases in MultiDiskWriterTest::
  3825. testResetDiskWriterEntries(). This will fix the unit test error
  3826. in mingw32 build.
  3827. * test/MultiDiskWriterTest.cc
  3828. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3829. Use HEAD method to get file size from HTTP server for segmented
  3830. downloading.
  3831. The request to the BitTorrent Tracker always uses GET method because
  3832. the response of the tracker is small and it doesn't need segmented
  3833. download.
  3834. * src/FtpNegotiationCommand.cc
  3835. * src/HttpRequest.cc
  3836. * src/HttpResponseCommand.cc
  3837. * src/HttpSkipResponseCommand.cc
  3838. * src/RequestGroup.cc
  3839. * src/RequestGroup.h
  3840. * src/TrackerWatcherCommand.cc
  3841. * test/HttpRequestTest.cc
  3842. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3843. Fixed the bug that causes floating exception when -T option is used and
  3844. no URIs are given.
  3845. * src/download_helper.cc
  3846. * test/DownloadHelperTest.cc
  3847. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3848. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3849. errors in MinGW:
  3850. Closed file after saving server stats (RequestGroupMan.cc)
  3851. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3852. Ignored case & handled 2-digit years (strptime.c)
  3853. Added missing suseconds_t definition (a2time.h)
  3854. Fixed socket CLOSE() define (SocketCore.cc)
  3855. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3856. Changed utime() test values from x000 to x00000 as MinGW failed on
  3857. values less than timezone offset from Unix epoch
  3858. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3859. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3860. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3861. handle negative dates (CookieParserTest.cc)
  3862. * src/a2time.h
  3863. * src/FtpConnection.cc
  3864. * src/RequestGroupMan.cc
  3865. * src/SocketCore.cc
  3866. * src/strptime.c
  3867. * test/CookieParserTest.cc
  3868. * test/CopyDiskAdaptorTest.cc
  3869. * test/FileTest.cc
  3870. * test/FtpConnectionTest.cc
  3871. * test/MultiDiskAdaptorTest.cc
  3872. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3873. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3874. * doc/aria2c.1.txt
  3875. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3876. * Release 1.0.0
  3877. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Added '~' to reserved characters.
  3879. * src/Util.cc
  3880. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Do not urlencode Request::url in setUrl() because we want unmodified
  3882. URL using Request::getUrl()
  3883. * src/Request.cc
  3884. * src/Request.h
  3885. * test/RequestTest.cc
  3886. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3887. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3888. Thanks to all translators.
  3889. * po/bg.po
  3890. * po/fr.po
  3891. * po/ja.po
  3892. * po/ru.po
  3893. * po/uk.po
  3894. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3895. Bump up version number to 1.0.0
  3896. * configure.ac
  3897. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3898. Added nosqlite3 build to build_test.sh.
  3899. Renamed noxml as expat.
  3900. * build_test.sh
  3901. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3902. Updated INPUT FILE section.
  3903. * doc/aria2c.1.txt
  3904. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3905. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3906. on big endian systems because test .aria2 files are made for little
  3907. endian systems.
  3908. * test/DefaultBtProgressInfoFileTest.cc
  3909. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3910. Dropped ares support.
  3911. * README
  3912. * configure.ac
  3913. * m4/libares.m4: Removed.
  3914. * src/AsyncNameResolver.cc
  3915. * src/Makefile.am
  3916. * test/Makefile.am
  3917. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3919. Removed const qualifier from DiskWriter::size().
  3920. * src/AbstractDiskWriter.cc
  3921. * src/AbstractDiskWriter.h
  3922. * src/ByteArrayDiskWriter.cc
  3923. * src/ByteArrayDiskWriter.h
  3924. * src/DiskWriter.h
  3925. * test/ByteArrayDiskWriterTest.cc
  3926. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3927. Fixed the bug that causes segmentation fault/bus error during executing
  3928. choking algorithm while seeding. This is caused by improper
  3929. implementation of compare function which returns inconsistent results
  3930. depending on the timing of last unchoke.
  3931. * src/BtSeederStateChoke.cc
  3932. * src/BtSeederStateChoke.h
  3933. * src/DefaultPeerStorage.cc
  3934. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3935. Removed TODO
  3936. * TODO
  3937. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Added a section that explains how to pass argument to options that
  3939. takes optional arguments with its short form.
  3940. * doc/aria2c.1.txt
  3941. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3942. Added -u for the short form of --max-upload-limit option.
  3943. * doc/aria2c.1.txt
  3944. * src/option_processing.cc
  3945. * src/usage_text.h
  3946. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3947. Added -V for the short form of --check-integrity option.
  3948. Now the argument of --check-integrity option is optional:
  3949. if it is omitted, it is evaluated as true.
  3950. * doc/aria2c.1.txt
  3951. * src/option_processing.cc
  3952. * src/usage_text.h
  3953. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3954. Made the default value of --ftp-pasv option set to true and it can take
  3955. true/false values.
  3956. * src/OptionHandlerFactory.cc
  3957. * src/option_processing.cc
  3958. * src/usage_text.h
  3959. * doc/aria2c.1.txt
  3960. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3961. Given custom random number generator to std::random_shuffle.
  3962. * src/AnnounceList.cc
  3963. * src/BtLeecherStateChoke.cc
  3964. * src/BtSeederStateChoke.cc
  3965. * src/DefaultBtRequestFactory.cc
  3966. * src/MetalinkEntry.cc
  3967. * src/RarestPieceSelector.cc
  3968. * src/SimpleRandomizer.cc
  3969. * src/SimpleRandomizer.h
  3970. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3971. Now the default value of --enable-direct-io is true.
  3972. * src/OptionHandlerFactory.cc
  3973. * doc/aria2c.1.txt
  3974. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3975. Erase peer before executing onReturningPeer and onErasingPeer
  3976. because choking algorithm called from onReturningPeer doesn't
  3977. like erasing peer in the active peer list.
  3978. * src/DefaultPeerStorage.cc
  3979. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3980. Instead of creating special filename in createDownloadResult() if
  3981. inMemoryDownload() is true, now it is done in getFilePath().
  3982. * src/RequestGroup.cc
  3983. * test/RequestGroupTest.cc
  3984. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3986. processed in memory. This is the fix for previous comment out.
  3987. * src/MemoryBufferPreDownloadHandler.cc
  3988. * src/RequestGroup.cc
  3989. * src/RequestGroup.h
  3990. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3991. Commented out the code which sets virtual directory path "[MEMORY]"
  3992. propagate directory to store to following RequestGroup.
  3993. * src/MemoryBufferPreDownloadHandler.cc
  3994. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3995. Bump up version number to 1.0.0b
  3996. * configure.ac
  3997. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3998. Added input_uris.txt to EXTRA_DIST
  3999. * test/Makefile.am
  4000. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4001. Removed PeerObject.h from Makefile.am
  4002. * src/Makefile.am
  4003. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Avoid slow seeding
  4005. * src/PeerInteractionCommand.cc
  4006. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4007. Updated usage for -i option.
  4008. * src/usage_text.h (TEXT_INPUT_FILE)
  4009. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4010. Added INPUT FILE section to man page.
  4011. Escaped fake URLs.
  4012. * doc/aria2c.1.txt
  4013. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4014. Fixed wrong note position for -o option.
  4015. * doc/aria2c.1.txt
  4016. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4017. Fixed compile error without SSL/XML library.
  4018. * src/DefaultBtProgressInfoFile.cc
  4019. * src/DefaultBtProgressInfoFile.h
  4020. * src/FileMetalinkParserState.cc
  4021. * src/RequestGroup.h
  4022. * src/SocketCore.cc
  4023. * src/SocketCore.h
  4024. * src/VerificationMetalinkParserState.cc
  4025. * src/download_helper.h
  4026. * src/main.cc
  4027. * test/DefaultBtProgressInfoFileTest.cc
  4028. * test/DownloadHelperTest.cc
  4029. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Rewritten URI handling functions. They are now provided as a testable
  4031. functions.
  4032. * src/Makefile.am
  4033. * src/RequestGroup.cc
  4034. * src/RequestGroup.h
  4035. * src/download_helper.cc
  4036. * src/download_helper.h
  4037. * src/main.cc
  4038. * test/DownloadHelperTest.cc
  4039. * test/Makefile.am
  4040. * test/input_uris.txt
  4041. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4042. Quickly terminate commands when ctrl-c is pressed.
  4043. * src/DownloadEngine.cc
  4044. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4045. Quickly terminate idle commands when download finished.
  4046. * src/AbstractCommand.cc
  4047. * src/DownloadCommand.cc
  4048. * src/DownloadEngine.cc
  4049. * src/DownloadEngine.h
  4050. * src/SleepCommand.cc
  4051. * src/SleepCommand.h
  4052. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4053. Added the ability to specify output filename and directory in input
  4054. file.
  4055. Additional parameters are added in the following line of URIs
  4056. with proceeding white space(s), 1 parameter in 1 line.
  4057. The parameter names are the same with the command-line option name
  4058. without proceeding "--". Not all the options are available here:
  4059. at the moment, 'dir' and 'out' options are avialable.
  4060. Please note that out option has no effect against Metalink or BitTorrent
  4061. downloads.
  4062. Example input file:
  4063. http://host/foo-1.1.tar.bz2
  4064. out=foo.tar.bz2
  4065. dir=/tmp/downloads
  4066. http://host/thundermonkey-2.0.tar.bz2
  4067. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4068. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4069. thundermonkey-2.0.tar.bz2 is saved as
  4070. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4071. * src/BtPostDownloadHandler.cc
  4072. * src/Metalink2RequestGroup.cc
  4073. * src/Metalink2RequestGroup.h
  4074. * src/MetalinkPostDownloadHandler.cc
  4075. * src/UriListParser.cc
  4076. * src/UriListParser.h
  4077. * src/main.cc
  4078. * test/Metalink2RequestGroupTest.cc
  4079. * test/UriListParserTest.cc
  4080. * test/filelist1.txt
  4081. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4082. Fixed error when SSL library is not found.
  4083. * configure.ac
  4084. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4085. Cross referenced among -s, -C and -j options.
  4086. Updated usage of -C and -s options.
  4087. * src/usage_text.h
  4088. * doc/aria2c.1.txt
  4089. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4090. Fixed bad cast in 32bit platforms.
  4091. * test/DefaultPieceStorageTest.cc
  4092. (DefaultPieceStorageTest::testGetCompletedLength)
  4093. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Fixed unit test fails on 32bit platforms.
  4095. * test/CookieParserTest.cc
  4096. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4097. Show an average download speed in Download results.
  4098. * src/BtFileAllocationEntry.cc
  4099. * src/DefaultPieceStorage.cc
  4100. * src/DownloadContext.cc
  4101. * src/DownloadContext.h
  4102. * src/DownloadResult.h
  4103. * src/RequestGroup.cc
  4104. * src/RequestGroupMan.cc
  4105. * src/StreamFileAllocationEntry.cc
  4106. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4107. Fixed the bug that metalink file is not processed if Content-Type
  4108. field has a paramter.
  4109. * src/HttpResponse.cc
  4110. * src/HttpResponse.h
  4111. * test/HttpResponseTest.cc
  4112. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4113. Removed unused code.
  4114. * src/DefaultBtAnnounce.cc
  4115. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4116. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4117. the value larger than DefaultPieceStorage::getTotalLength() when
  4118. in flight pieces are involved.
  4119. * src/DefaultPieceStorage.cc
  4120. * test/DefaultPieceStorageTest.cc
  4121. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Bump up version number to 1.0.0a.
  4123. * configure.ac
  4124. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Updated configure.ac
  4126. * configure.ac
  4127. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4128. Added usege for proxy.
  4129. * doc/aria2c.1.txt
  4130. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4131. Added usage for --ca-certificate, --certificate, --private-key and
  4132. --check-certificate options.
  4133. * doc/aria2c.1.txt
  4134. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4135. Updated man page
  4136. * doc/aria2c.1.txt
  4137. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4138. Added --no-proxy option. It receives comman separated hostname or
  4139. domains to which proxy should not be used.
  4140. aria2 honors the environment variable no_proxy to override no-proxy
  4141. value in configuration file. The user can override the environment
  4142. variable no_proxy with --no-proxy command-line option.
  4143. * src/AbstractCommand.cc
  4144. * src/OptionHandlerFactory.cc
  4145. * src/option_processing.cc
  4146. * src/prefs.cc
  4147. * src/prefs.h
  4148. * src/usage_text.h
  4149. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4150. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4151. The CA certificates are specified in --ca-certificate option.
  4152. By default, the verification is disabled. Use --check-certificate
  4153. option to enable it.
  4154. * src/HttpRequestCommand.cc
  4155. * src/LibgnutlsTLSContext.cc
  4156. * src/LibgnutlsTLSContext.h
  4157. * src/LibsslTLSContext.cc
  4158. * src/LibsslTLSContext.h
  4159. * src/MultiUrlRequestInfo.cc
  4160. * src/OptionHandlerFactory.cc
  4161. * src/SocketCore.cc
  4162. * src/SocketCore.h
  4163. * src/a2functional.h
  4164. * src/message.h
  4165. * src/option_processing.cc
  4166. * src/prefs.cc
  4167. * src/prefs.h
  4168. * src/usage_text.h
  4169. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4170. Added client certificate authentication for SSL/TLS.
  4171. Currently a private key must be decrypted for use with aria2.
  4172. If a user accidentally gives encrypted file to aria2 then following
  4173. thing happens:
  4174. If encrypted private key is given to aria2, it behaves differently
  4175. depending on the ssl library it uses. If aria2 built with openssl then
  4176. openssl prompts the user for password. If aria2 build with gnutls then
  4177. aria2 exists with error at start up.
  4178. * src/DownloadEngineFactory.cc
  4179. * src/MultiUrlRequestInfo.cc
  4180. * src/OptionHandlerFactory.cc
  4181. * src/option_processing.cc
  4182. * src/prefs.cc
  4183. * src/prefs.h
  4184. * src/usage_text.h
  4185. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4186. Introduced TLSContext that holds TLS related data that can be shared
  4187. with multiple SSL connections.
  4188. * src/DownloadEngineFactory.cc
  4189. * src/LibgnutlsTLSContext.cc
  4190. * src/LibgnutlsTLSContext.h
  4191. * src/LibsslTLSContext.cc
  4192. * src/LibsslTLSContext.h
  4193. * src/Makefile.am
  4194. * src/SocketCore.cc
  4195. * src/SocketCore.h
  4196. * src/TLSContext.h
  4197. * src/message.h
  4198. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4199. Fixed the bug that the DiskWriter of the first FileEntry whose
  4200. `needsFileAllocation' property is false is not created
  4201. even if it shares a piece with next FileEntry which `requested' property
  4202. is true.
  4203. Fixed the bug that zero-length file is not created if pre file
  4204. allocation is not done.
  4205. * src/MultiDiskAdaptor.cc
  4206. * src/MultiDiskAdaptor.h
  4207. * test/MultiDiskAdaptorTest.cc
  4208. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Added the ability to pool proxy connection.
  4210. The conneciton in FTP with proxy-method=GET is not pooled.
  4211. Proxy-Connection header will not be sent when sending CONNECT method.
  4212. * src/DownloadEngine.cc
  4213. * src/DownloadEngine.h
  4214. * src/FtpFinishDownloadCommand.cc
  4215. * src/FtpInitiateConnectionCommand.cc
  4216. * src/FtpNegotiationCommand.cc
  4217. * src/HttpDownloadCommand.cc
  4218. * src/HttpInitiateConnectionCommand.cc
  4219. * src/HttpRequest.cc
  4220. * src/HttpRequest.h
  4221. * src/HttpResponse.cc
  4222. * src/HttpSkipResponseCommand.cc
  4223. * test/HttpRequestTest.cc
  4224. * test/HttpResponseTest.cc
  4225. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. Handle date before epoch.
  4227. To create *bad* Time object, call Time::null().
  4228. * src/CookieParser.cc
  4229. * src/FtpConnection.cc
  4230. * src/FtpConnection.h
  4231. * src/FtpNegotiationCommand.cc
  4232. * src/RequestGroup.cc
  4233. * src/TimeA2.cc
  4234. * src/TimeA2.h
  4235. * test/CookieParserTest.cc
  4236. * test/FtpConnectionTest.cc
  4237. * test/TimeTest.cc
  4238. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4239. Added support for following envrionment variables: http_proxy,
  4240. https_proxy, ftp_proxy and all_proxy.
  4241. Each variable is equivalent to the aria2 option whose name is the
  4242. variable name with '_' replaced with '-'.
  4243. They overrides options specified in aria2.conf file.
  4244. The envrionment variables can be overrode using command-line option.
  4245. * src/option_processing.cc
  4246. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4247. Renamed --http-proxy-method as --proxy-method.
  4248. * src/AbstractCommand.cc
  4249. * src/FtpInitiateConnectionCommand.cc
  4250. * src/HttpInitiateConnectionCommand.cc
  4251. * src/OptionHandlerFactory.cc
  4252. * src/option_processing.cc
  4253. * src/prefs.cc
  4254. * src/prefs.h
  4255. * src/usage_text.h
  4256. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4257. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4258. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4259. Above 3 options and --http-proxy option can handle proxy in URL format
  4260. like: http://user:passwd@host:port.
  4261. If a proxy requires user/password, they must be specified in a URL.
  4262. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4263. instead.
  4264. * src/AbstractCommand.cc
  4265. * src/AbstractCommand.h
  4266. * src/AbstractProxyRequestCommand.cc
  4267. * src/AbstractProxyRequestCommand.h
  4268. * src/AuthConfigFactory.cc
  4269. * src/AuthConfigFactory.h
  4270. * src/FtpFinishDownloadCommand.cc
  4271. * src/FtpInitiateConnectionCommand.cc
  4272. * src/FtpInitiateConnectionCommand.h
  4273. * src/FtpNegotiationCommand.cc
  4274. * src/FtpTunnelRequestCommand.cc
  4275. * src/FtpTunnelRequestCommand.h
  4276. * src/HttpDownloadCommand.cc
  4277. * src/HttpInitiateConnectionCommand.cc
  4278. * src/HttpInitiateConnectionCommand.h
  4279. * src/HttpProxyRequestCommand.cc
  4280. * src/HttpProxyRequestCommand.h
  4281. * src/HttpRequest.cc
  4282. * src/HttpRequest.h
  4283. * src/HttpRequestCommand.cc
  4284. * src/HttpRequestCommand.h
  4285. * src/HttpSkipResponseCommand.cc
  4286. * src/InitiateConnectionCommand.cc
  4287. * src/InitiateConnectionCommand.h
  4288. * src/OptionHandlerFactory.cc
  4289. * src/OptionHandlerImpl.h
  4290. * src/Request.cc
  4291. * src/option_processing.cc
  4292. * src/prefs.cc
  4293. * src/prefs.h
  4294. * src/usage_text.h
  4295. * test/AuthConfigFactoryTest.cc
  4296. * test/HttpRequestTest.cc
  4297. * test/OptionHandlerTest.cc
  4298. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Execute choking algorithm when unchoked and interested peer is
  4300. disconected.
  4301. * src/DefaultPeerStorage.cc
  4302. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4303. Added testcase for BtNotInterestedMessage from unchoked peer.
  4304. * test/BtNotInterestedMessageTest.cc
  4305. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4306. Execute choking algorithm when BtInterestedMessage arrives from
  4307. unchoked peer.
  4308. * src/BtInterestedMessage.cc
  4309. * src/BtInterestedMessage.h
  4310. * src/DefaultBtMessageFactory.cc
  4311. * test/BtInterestedMessageTest.cc
  4312. * test/MockPeerStorage.h
  4313. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. AuthConfigFactory is now part of DownloadEngine.
  4315. * src/AbstractProxyRequestCommand.cc
  4316. * src/AuthConfigFactory.h
  4317. * src/DownloadEngine.cc
  4318. * src/DownloadEngine.h
  4319. * src/FtpConnection.cc
  4320. * src/FtpConnection.h
  4321. * src/FtpNegotiationCommand.cc
  4322. * src/HttpConnection.cc
  4323. * src/HttpRequest.cc
  4324. * src/HttpRequest.h
  4325. * src/HttpRequestCommand.cc
  4326. * src/HttpResponse.cc
  4327. * src/HttpResponseCommand.cc
  4328. * src/HttpSkipResponseCommand.cc
  4329. * src/MultiUrlRequestInfo.cc
  4330. * src/main.cc
  4331. * test/FtpConnectionTest.cc
  4332. * test/HttpRequestTest.cc
  4333. * test/HttpResponseTest.cc
  4334. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Corrected catched exception type.
  4336. * src/ServerStatMan.cc
  4337. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4338. DNSCache is now part of DownloadEngine.
  4339. * src/DNSCache.h
  4340. * src/DownloadEngine.cc
  4341. * src/DownloadEngine.h
  4342. * src/InitiateConnectionCommand.cc
  4343. * src/MultiUrlRequestInfo.cc
  4344. * test/Makefile.am
  4345. * test/Makefile.in
  4346. * test/SimpleDNSCacheTest.cc
  4347. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4348. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4349. DownloadEngine.
  4350. * src/ActivePeerConnectionCommand.cc
  4351. * src/BtSetup.cc
  4352. * src/CUIDCounter.h
  4353. * src/DHTSetup.cc
  4354. * src/DownloadCommand.cc
  4355. * src/DownloadEngine.cc
  4356. * src/DownloadEngine.h
  4357. * src/DownloadEngineFactory.cc
  4358. * src/FileAllocationDispatcherCommand.cc
  4359. * src/InitiatorMSEHandshakeCommand.cc
  4360. * src/PeerInitiateConnectionCommand.cc
  4361. * src/PeerInteractionCommand.cc
  4362. * src/PeerListenCommand.cc
  4363. * src/RequestGroup.cc
  4364. * src/StreamFileAllocationEntry.cc
  4365. * src/TrackerWatcherCommand.cc
  4366. * src/main.cc
  4367. * test/RequestGroupManTest.cc
  4368. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4369. Implemented commented code in BtSeederStateChoke
  4370. * src/BtSeederStateChoke.cc
  4371. * src/Peer.cc
  4372. * src/Peer.h
  4373. * src/PeerInteractionCommand.cc
  4374. * src/PeerSessionResource.cc
  4375. * src/PeerSessionResource.h
  4376. * test/MockBtMessageDispatcher.h
  4377. * test/PeerSessionResourceTest.cc
  4378. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4379. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4380. its object.
  4381. * src/AbstractBtMessage.cc
  4382. * src/ActivePeerConnectionCommand.cc
  4383. * src/ActivePeerConnectionCommand.h
  4384. * src/BtContextAwareCommand.cc
  4385. * src/BtContextAwareCommand.h
  4386. * src/BtExtendedMessage.cc
  4387. * src/BtExtendedMessage.h
  4388. * src/BtInterestedMessage.cc
  4389. * src/BtInterestedMessage.h
  4390. * src/BtNotInterestedMessage.cc
  4391. * src/BtNotInterestedMessage.h
  4392. * src/BtRegistry.cc
  4393. * src/BtRegistry.h
  4394. * src/BtSeederStateChoke.cc
  4395. * src/BtSetup.cc
  4396. * src/DHTGetPeersCommand.cc
  4397. * src/DHTGetPeersCommand.h
  4398. * src/DHTPeerAnnounceEntry.cc
  4399. * src/DHTPeerAnnounceEntry.h
  4400. * src/DHTPeerAnnounceStorage.cc
  4401. * src/DHTPeerAnnounceStorage.h
  4402. * src/DHTPeerLookupTask.cc
  4403. * src/DHTPeerLookupTask.h
  4404. * src/DHTSetup.cc
  4405. * src/DHTSetup.h
  4406. * src/DHTTaskFactory.h
  4407. * src/DHTTaskFactoryImpl.cc
  4408. * src/DHTTaskFactoryImpl.h
  4409. * src/DefaultBtAnnounce.cc
  4410. * src/DefaultBtInteractive.cc
  4411. * src/DefaultBtInteractive.h
  4412. * src/DefaultBtMessageDispatcher.cc
  4413. * src/DefaultBtMessageDispatcher.h
  4414. * src/DefaultBtMessageFactory.cc
  4415. * src/DefaultBtMessageFactory.h
  4416. * src/DefaultBtMessageReceiver.cc
  4417. * src/DefaultBtProgressInfoFile.cc
  4418. * src/DefaultBtProgressInfoFile.h
  4419. * src/DefaultBtRequestFactory.cc
  4420. * src/DefaultBtRequestFactory.h
  4421. * src/DefaultExtensionMessageFactory.cc
  4422. * src/DefaultExtensionMessageFactory.h
  4423. * src/DefaultPeerStorage.cc
  4424. * src/DefaultPeerStorage.h
  4425. * src/DownloadEngine.cc
  4426. * src/DownloadEngine.h
  4427. * src/InitiatorMSEHandshakeCommand.cc
  4428. * src/InitiatorMSEHandshakeCommand.h
  4429. * src/MSEHandshake.cc
  4430. * src/MSEHandshake.h
  4431. * src/Makefile.am
  4432. * src/Makefile.in
  4433. * src/PeerChokeCommand.cc
  4434. * src/PeerChokeCommand.h
  4435. * src/PeerInitiateConnectionCommand.cc
  4436. * src/PeerInitiateConnectionCommand.h
  4437. * src/PeerInteractionCommand.cc
  4438. * src/PeerInteractionCommand.h
  4439. * src/PeerObject.h
  4440. * src/PeerReceiveHandshakeCommand.cc
  4441. * src/PeerReceiveHandshakeCommand.h
  4442. * src/ReceiverMSEHandshakeCommand.cc
  4443. * src/RequestGroup.cc
  4444. * src/RequestGroup.h
  4445. * src/RequestGroupMan.cc
  4446. * src/RequestGroupMan.h
  4447. * src/SeedCheckCommand.cc
  4448. * src/SeedCheckCommand.h
  4449. * src/ShareRatioSeedCriteria.h
  4450. * src/SimpleBtMessage.cc
  4451. * src/TrackerWatcherCommand.cc
  4452. * src/TrackerWatcherCommand.h
  4453. * src/UTPexExtensionMessage.cc
  4454. * src/UTPexExtensionMessage.h
  4455. * test/BtCancelMessageTest.cc
  4456. * test/BtChokeMessageTest.cc
  4457. * test/BtExtendedMessageTest.cc
  4458. * test/BtInterestedMessageTest.cc
  4459. * test/BtNotInterestedMessageTest.cc
  4460. * test/BtPieceMessageTest.cc
  4461. * test/BtPortMessageTest.cc
  4462. * test/BtRegistryTest.cc
  4463. * test/BtRejectMessageTest.cc
  4464. * test/BtRequestMessageTest.cc
  4465. * test/DHTPeerAnnounceEntryTest.cc
  4466. * test/DHTPeerAnnounceStorageTest.cc
  4467. * test/DefaultBtMessageDispatcherTest.cc
  4468. * test/DefaultBtMessageFactoryTest.cc
  4469. * test/DefaultBtProgressInfoFileTest.cc
  4470. * test/DefaultBtRequestFactoryTest.cc
  4471. * test/DefaultExtensionMessageFactoryTest.cc
  4472. * test/MSEHandshakeTest.cc
  4473. * test/MockDHTTaskFactory.h
  4474. * test/ShareRatioSeedCriteriaTest.cc
  4475. * test/UTPexExtensionMessageTest.cc
  4476. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4477. Fixed compiler warning.
  4478. * test/UtilTest.cc
  4479. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4480. Treat Cookie object as session cookie if expiry = 0 is given.
  4481. With this change, you can specify session scoped cookies in an external
  4482. file setting expiry value to 0.
  4483. * src/Cookie.cc
  4484. * src/Cookie.h
  4485. * test/CookieParserTest.cc
  4486. * test/CookieStorageTest.cc
  4487. * test/CookieTest.cc
  4488. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Changed signature of DHTMessageFactory::createResponseMessage().
  4490. Removed unused validateIDMatch.
  4491. * src/DHTMessageFactory.h
  4492. * src/DHTMessageFactoryImpl.cc
  4493. * src/DHTMessageFactoryImpl.h
  4494. * src/DHTMessageTracker.cc
  4495. * test/DHTMessageFactoryImplTest.cc
  4496. * test/MockDHTMessageFactory.h
  4497. Dropped DHT message coming from same ID of localhost.
  4498. * src/DHTMessageReceiver.cc
  4499. Rejected adding node whose ID is the same as localhost's.
  4500. * src/DHTRoutingTable.cc
  4501. * test/BtPortMessageTest.cc
  4502. * test/DHTRoutingTableTest.cc
  4503. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4504. Pool connection when redirection occurs with Content-Length = 0.
  4505. * src/HttpSkipResponseCommand.cc
  4506. * src/HttpSkipResponseCommand.h
  4507. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4508. Fixed the bug that causes time out when redirection occurs with
  4509. content-length 0.
  4510. * src/HttpResponseCommand.cc
  4511. * src/HttpSkipResponseCommand.cc
  4512. * src/HttpSkipResponseCommand.h
  4513. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4514. Now each status legends is shown only when it appears in Download
  4515. Result. If Download Result has no item, then status legend will not
  4516. be printed.
  4517. * src/RequestGroupMan.cc
  4518. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4519. Removed duplicate creation of OptionHandlers.
  4520. * src/option_processing.cc
  4521. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4522. Fixed the bug that causes segmentation fault when accessing files which
  4523. don't exist or are not included in --select-file option while
  4524. validating chunk checksum.
  4525. * src/MultiDiskAdaptor.cc
  4526. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4527. Fixed compiler warning.
  4528. * test/UtilTest.cc
  4529. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4530. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4531. * src/IteratableChecksumValidator.cc
  4532. * src/IteratableChunkChecksumValidator.cc
  4533. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. * Release 0.16.2
  4535. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Added Serbian translation. Updated Ukrainian translation.
  4537. Thanks to all translators.
  4538. * po/sr.po
  4539. * po/uk.po
  4540. * po/LINGUAS
  4541. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4542. Bump up version number to 0.16.2
  4543. * configure.ac
  4544. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. Added length equality test to operator== to drop a piece message
  4546. whose length does not match to the requested one.
  4547. * src/RequestSlot.cc
  4548. * test/DefaultBtMessageDispatcherTest.cc
  4549. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4550. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4551. recieved.
  4552. In this fix, if a request larger than 16KiB length is received, aria2
  4553. disconnects the peer.
  4554. * src/BtConstants.h
  4555. * src/PeerMessageUtil.cc
  4556. * src/PeerMessageUtil.h
  4557. * test/BtRequestMessageTest.cc
  4558. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4559. * Release 0.16.1
  4560. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4561. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4562. * doc/aria2c.1.txt
  4563. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4564. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4565. Updated French, Simplified Chinese and Japanese translations.
  4566. Thanks to all translators.
  4567. en@quot and en@boldquot are also added.
  4568. * po/LINGUAS
  4569. * po/fr.po
  4570. * po/ja.po
  4571. * po/uk.po
  4572. * po/vi.po
  4573. * po/zh_CN.po
  4574. * po/zh_TW.po
  4575. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4576. Bump up version number to 0.16.1.
  4577. * configure.ac
  4578. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4579. Updated README.
  4580. * README
  4581. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4582. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4583. not to replace '--' with em dash character.
  4584. * doc/aria2c.1.txt
  4585. * doc/makeman
  4586. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4587. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4588. every SEC seconds.
  4589. * src/DownloadEngineFactory.cc
  4590. * src/OptionHandlerFactory.cc
  4591. * src/option_processing.cc
  4592. * src/usage_text.h
  4593. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Fixed compile warning on linux-amd64
  4595. * src/FtpConnection.cc
  4596. * src/IteratableChunkChecksumValidator.cc
  4597. * src/MultiDiskAdaptor.cc
  4598. Fixed the bug that unit test fails on linux-amd64
  4599. * test/UtilTest.cc
  4600. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Added --dht-file-path option to change the path to dht.dat, which is a
  4602. serialized DHT routing table.
  4603. * src/OptionHandlerFactory.cc
  4604. * src/option_processing.cc
  4605. * src/usage_text.h
  4606. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4607. Fixed possible underflow.
  4608. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4609. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4610. Fixed the bug that last character in URI is not encoded.
  4611. * src/Request.cc
  4612. * test/RequestTest.cc
  4613. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4614. Fixed the bug that referer header field contains fragment.
  4615. Now Request class removes fragment part of URI and encodes it
  4616. in Request::setUri() and setReferer().
  4617. * src/Request.h
  4618. * src/Request.cc
  4619. * test/RequestTest.cc
  4620. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4621. Added missing m4 macros.
  4622. * m4/cppunit.m4
  4623. * m4/libgcrypt.m4
  4624. * m4/libgnutls-extra.m4
  4625. * m4/libgnutls.m4
  4626. * m4/libxml2.m4
  4627. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4628. Fixed compile error with gcc-4.4(snapshot)
  4629. * src/File.cc
  4630. * src/FtpConnection.cc
  4631. * src/OptionHandlerImpl.h
  4632. * src/Util.cc
  4633. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4634. Removed assert()
  4635. * src/SocketBuffer.cc (SocketBuffer::send)
  4636. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4637. Changed the type of _numNewConnection to unsigned int.
  4638. * src/ActivePeerConnectionCommand.cc
  4639. * src/ActivePeerConnectionCommand.h
  4640. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. * Release 0.16.0
  4642. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4643. Updated doc
  4644. * README
  4645. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4647. translations. Thanks to all translators.
  4648. * po/bg.po
  4649. * po/de.po
  4650. * po/fr.po
  4651. * po/ja.po
  4652. * po/zh_CN.po
  4653. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4654. Bump up version number to 0.16.0.
  4655. * configure.ac
  4656. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4657. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4658. int32_t.
  4659. Changed the type of count to int32_t.
  4660. * src/Metalink2RequestGroup.cc
  4661. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4662. Added test for Time::elapsed(time_t).
  4663. * test/TimeTest.cc
  4664. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4665. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  4666. Util::difftv() should be used instead.
  4667. * src/TimeA2.cc
  4668. * src/TimeA2.h
  4669. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4670. Made socket for dht connections non-blocking
  4671. * src/DHTAbstractMessage.cc
  4672. * src/DHTAbstractMessage.h
  4673. * src/DHTConnection.h
  4674. * src/DHTConnectionImpl.cc
  4675. * src/DHTConnectionImpl.h
  4676. * src/DHTMessage.h
  4677. * src/DHTMessageDispatcherImpl.cc
  4678. * src/DHTMessageDispatcherImpl.h
  4679. * src/DHTUnknownMessage.cc
  4680. * src/DHTUnknownMessage.h
  4681. * src/SocketCore.cc
  4682. * src/SocketCore.h
  4683. * test/MockDHTMessage.h
  4684. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4685. Changed the type of offset to int.
  4686. * src/ParameterizedStringParser.cc
  4687. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4688. Made getAsInt() return int32_t
  4689. * src/Option.h
  4690. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4691. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  4692. build.
  4693. * configure.ac
  4694. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4695. Use sqlite3_open if sqlite3_open_v2 is not available.
  4696. * src/Sqlite3MozCookieParser.cc
  4697. * src/Sqlite3MozCookieParser.h
  4698. * m4/sqlite3.m4
  4699. * test/Sqlite3MozCookieParserTest.cc
  4700. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4701. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  4702. * src/BtPieceMessage.cc
  4703. * src/DHTPeerAnnounceStorage.cc
  4704. * src/DefaultPieceStorage.cc
  4705. * src/DownloadCommand.cc
  4706. * src/DownloadEngine.cc
  4707. * src/FtpConnection.cc
  4708. * src/PeerConnection.cc
  4709. * src/PeerMessageUtil.cc
  4710. * src/RequestGroup.cc
  4711. * src/RequestGroupMan.cc
  4712. * src/SimpleBtMessage.cc
  4713. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  4715. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4716. * src/AbstractDiskWriter.cc
  4717. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. Don't set Request::supportsPersistentConnection() in HttpConnection
  4719. since this code is also used in AbstractProxyResponseCommand.
  4720. Moved those code to HttpResponse.
  4721. * src/HttpResponse.cc
  4722. * src/HttpResponse.h
  4723. * src/HttpConnection.cc
  4724. * src/HttpConnection.h
  4725. * src/HttpResponseCommand.cc
  4726. * test/HttpResponseTest.cc
  4727. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4728. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4729. The configuration is minimum: no torrent, no metalink, so there may be
  4730. other compile error on their code.
  4731. * src/a2netcompat.h
  4732. * src/File.cc
  4733. * src/File.h
  4734. * src/SocketCore.cc
  4735. * src/SocketCore.h
  4736. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4737. Made a socket of incoming peer non-blocking.
  4738. * src/PeerListenCommand.cc
  4739. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4741. whole message data is not sent in one send() call.
  4742. * src/BtPieceMessage.cc
  4743. * src/BtPieceMessage.h
  4744. * src/PeerConnection.cc
  4745. * src/PeerConnection.h
  4746. * src/SimpleBtMessage.cc
  4747. * src/SimpleBtMessage.h
  4748. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4749. Fixed the bug that aria2 downloads faster than max-download-limit when
  4750. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4751. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4752. , instead of sum of them.
  4753. * src/ActivePeerConnectionCommand.cc
  4754. * src/DefaultBtInteractive.cc
  4755. * src/DownloadCommand.cc
  4756. * src/PeerInteractionCommand.cc
  4757. * src/PeerReceiveHandshakeCommand.cc
  4758. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4759. Fixed the bug that HTTPS download fails.
  4760. * src/AbstractCommand.cc
  4761. * src/AbstractCommand.h
  4762. * src/DownloadCommand.cc
  4763. * src/FtpConnection.cc
  4764. * src/HttpConnection.cc
  4765. * src/HttpRequestCommand.cc
  4766. * src/HttpResponseCommand.cc
  4767. * src/HttpSkipResponseCommand.cc
  4768. * src/MSEHandshake.cc
  4769. * src/PeerConnection.cc
  4770. * src/SocketCore.cc
  4771. * src/SocketCore.h
  4772. Fixed the bug that aria2 doesn't download whole content body and cannot
  4773. reuse connection if chunked transfer encoding and gzip content encoding
  4774. are set.
  4775. * src/DownloadCommand.cc
  4776. * src/HttpSkipResponseCommand.cc
  4777. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4778. Updated man page.
  4779. * doc/aria2c.1.txt
  4780. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4781. When error occurred while aria2 was parsing an .aria2.conf file, print
  4782. the usage of the option that caused error.
  4783. * src/option_processing.cc
  4784. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4785. Fixed compile error on OptionHandlerException
  4786. * src/Makefile.am
  4787. * src/OptionHandlerException.cc
  4788. * src/OptionHandlerException.h
  4789. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4790. Moved message of the error to OptionHandlerException.h
  4791. * src/NameMatchOptionHandler.h
  4792. * src/OptionHandlerException.h
  4793. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4794. When error occurs while aria2 is parsing an command-line option, print
  4795. the usage of the option.
  4796. * src/Makefile.am
  4797. * src/NameMatchOptionHandler.h
  4798. * src/OptionHandlerException.h
  4799. * src/option_processing.cc
  4800. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4801. Reverted previous change.
  4802. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4803. username is not in URI.
  4804. * src/HttpRequest.cc
  4805. * src/Request.cc
  4806. * test/HttpRequestTest.cc
  4807. * test/RequestTest.cc
  4808. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4809. Now colon is required for username and password in FTP URL, like:
  4810. ftp://username:password@host.
  4811. If colon is not there, aria2 don't parse it as a username. For example,
  4812. aria2 don't retrieve username from ftp://username@host.
  4813. This fix was made in order to login FTP server via non-transparent ftp
  4814. proxy.
  4815. * src/Request.cc
  4816. * test/RequestTest.cc
  4817. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4818. Use netrc for HTTP.
  4819. Now FTP user/password is sent in Authorization header when
  4820. --ftp-via-http-proxy=get is given.
  4821. * src/AuthConfigFactory.cc
  4822. * src/HttpRequest.cc
  4823. * src/HttpRequest.h
  4824. * src/NetrcAuthResolver.cc
  4825. * src/NetrcAuthResolver.h
  4826. * src/OptionHandlerFactory.cc
  4827. * src/option_processing.cc
  4828. * src/prefs.cc
  4829. * src/prefs.h
  4830. * test/AuthConfigFactoryTest.cc
  4831. * test/HttpRequestTest.cc
  4832. * test/NetrcAuthResolverTest.cc
  4833. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4834. Issue PWD command first and get working directory and use it as a prefix
  4835. for CWD command.
  4836. * src/DownloadEngine.cc
  4837. * src/DownloadEngine.h
  4838. * src/FtpConnection.cc
  4839. * src/FtpConnection.h
  4840. * src/FtpFinishDownloadCommand.cc
  4841. * src/FtpInitiateConnectionCommand.cc
  4842. * src/FtpNegotiationCommand.cc
  4843. * src/FtpNegotiationCommand.h
  4844. * test/FtpConnectionTest.cc
  4845. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4846. Removed default user/pass for FTP user/pass, since it should not have
  4847. precedence over netrc configuration by default.
  4848. * src/OptionHandlerFactory.cc
  4849. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4850. Added debug log for socket event.
  4851. * src/AbstractCommand.cc
  4852. * src/PeerAbstractCommand.cc
  4853. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4854. Log microseconds.
  4855. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4856. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4857. Replaced HelpItem.cc with OptionHandler.cc.
  4858. * po/POTFILES.in
  4859. Updated po files with 'make update-po'
  4860. * po/aria2c.pot
  4861. * po/*.po
  4862. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4863. Removed possible values from the text.
  4864. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4865. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4866. Removed unused preferences:
  4867. PREF_NO_PREALLOCATION
  4868. PREF_STDOUT_LOG
  4869. PREF_TRACKER_MAX_TRIES
  4870. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4871. PREF_MIN_SEGMENT_SIZE
  4872. * src/option_processing.cc
  4873. * src/prefs.cc
  4874. * src/prefs.h
  4875. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4876. Integrated HelpItem into OptionParser to ease the workload for adding
  4877. new options. Removed default value from usage text.
  4878. * src/HelpItem.cc: Removed.
  4879. * src/HelpItem.h: Removed.
  4880. * src/HelpItemFactory.cc: Removed.
  4881. * src/HelpItemFactory.h: Removed.
  4882. * src/Makefile.am
  4883. * src/Makefile.in
  4884. * src/NameMatchOptionHandler.h
  4885. * src/OptionHandler.cc
  4886. * src/OptionHandler.h
  4887. * src/OptionHandlerFactory.cc
  4888. * src/OptionHandlerImpl.h
  4889. * src/OptionParser.cc
  4890. * src/OptionParser.h
  4891. * src/TagContainer.cc: Removed.
  4892. * src/TagContainer.h: Removed.
  4893. * src/TaggedItem.cc: Removed.
  4894. * src/TaggedItem.h: Removed.
  4895. * src/main.cc
  4896. * src/option_processing.cc
  4897. * src/usage_text.h
  4898. * src/version_usage.cc
  4899. * test/HelpItemTest.cc: Removed.
  4900. * test/Makefile.am
  4901. * test/Makefile.in
  4902. * test/OptionHandlerTest.cc
  4903. * test/OptionParserTest.cc
  4904. * test/TagContainerTest.cc: Removed.
  4905. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4906. Moved `TransferStat stat = ...' to inside the `if' clause.
  4907. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4908. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4909. Fixed the bug that a block in a piece is requested when same block is
  4910. already requested to the same peer in end game mode.
  4911. * src/BtRequestFactory.h
  4912. * src/DefaultBtInteractive.cc
  4913. * src/DefaultBtRequestFactory.cc
  4914. * src/DefaultBtRequestFactory.h
  4915. * src/DefaultPieceStorage.cc
  4916. * src/DefaultPieceStorage.h
  4917. * src/PieceStorage.h
  4918. * src/UnknownLengthPieceStorage.cc
  4919. * src/UnknownLengthPieceStorage.h
  4920. * test/DefaultBtRequestFactoryTest.cc
  4921. * test/DefaultPieceStorageTest.cc
  4922. * test/MockBtRequestFactory.h
  4923. * test/MockPieceStorage.h
  4924. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4925. Removed _uploadLength and _downloadLength from PeerSessionResource
  4926. and use PeerStat::_sessionUploadLength and
  4927. PeerStat::_sessionDownloadLength.
  4928. * src/PeerSessionResource.cc
  4929. * src/PeerSessionResource.h
  4930. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Fixed the bug that prefixLength of split bucket which doesn't include
  4932. local node ID is incremented.
  4933. * src/DHTBucket.cc
  4934. * src/DHTBucket.h
  4935. * test/DHTBucketTest.cc
  4936. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4937. Added cookies.sqlite to EXTRA_DIST
  4938. * test/Makefile.am
  4939. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4940. Added Turkish translation. Updated French, German, Russian and
  4941. Simplified Chinese translations. Thanks to all translators.
  4942. * po/LINGUAS
  4943. * po/de.po
  4944. * po/fr.po
  4945. * po/ru.po
  4946. * po/tr.po
  4947. * po/zh_CN.po
  4948. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. Added deliminating text to the beginning of the log so that one can find
  4950. where the log starts easily.
  4951. * src/main.cc
  4952. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4954. to fix compile error when async DNS is not enabled by configuration.
  4955. * src/AbstractCommand.cc
  4956. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. If establishing conneciton to a server is failed, then mark error on
  4958. its ServerStat.
  4959. Added the cause of error to log when error event occurred.
  4960. Moved message string to message.h for translation.
  4961. * src/AbstractCommand.cc
  4962. * src/AbstractCommand.h
  4963. * src/FtpNegotiationCommand.cc
  4964. * src/HttpRequestCommand.cc
  4965. * src/PeerAbstractCommand.cc
  4966. * src/message.h
  4967. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4968. Added the function to get error message from socket.
  4969. * src/SocketCore.cc
  4970. * src/SocketCore.h
  4971. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4973. * src/RequestGroupMan.cc
  4974. * src/RequestGroupMan.h
  4975. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. If error event is received in epoll, then abort download immediately.
  4977. * src/AbstractCommand.cc
  4978. * src/Command.cc
  4979. * src/Command.h
  4980. * src/DownloadEngine.cc
  4981. * src/PeerAbstractCommand.cc
  4982. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4983. Added usage message for --uri-selector, --server-stat-of,
  4984. --server-stat-in, --server-stat-timeout options.
  4985. * src/HelpItemFactory.cc
  4986. * src/usage_text.h
  4987. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4988. Added upper limit of FTP response buffer. The current implementation
  4989. uses 4096bytes as a limit.
  4990. * src/FtpConnection.cc
  4991. * src/FtpConnection.h
  4992. * test/FtpConnectionTest.cc
  4993. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. Use non-blocking socket for TCP communication to avoid possible
  4995. blocking due to buffer full.
  4996. * src/AbstractProxyRequestCommand.cc
  4997. * src/FtpConnection.cc
  4998. * src/FtpConnection.h
  4999. * src/FtpNegotiationCommand.cc
  5000. * src/FtpNegotiationCommand.h
  5001. * src/HttpConnection.cc
  5002. * src/HttpConnection.h
  5003. * src/HttpRequestCommand.cc
  5004. * src/InitiatorMSEHandshakeCommand.cc
  5005. * src/InitiatorMSEHandshakeCommand.h
  5006. * src/MSEHandshake.cc
  5007. * src/MSEHandshake.h
  5008. * src/Makefile.am
  5009. * src/PeerConnection.cc
  5010. * src/PeerConnection.h
  5011. * src/PeerInteractionCommand.cc
  5012. * src/PeerListenCommand.cc
  5013. * src/ReceiverMSEHandshakeCommand.cc
  5014. * src/ReceiverMSEHandshakeCommand.h
  5015. * src/SocketBuffer.cc
  5016. * src/SocketBuffer.h
  5017. * src/SocketCore.cc
  5018. * src/SocketCore.h
  5019. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5020. Call setStatusRealtime() in constructor.
  5021. * src/RealtimeCommand.cc
  5022. * src/RealtimeCommand.h
  5023. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5024. Call Download::setNoWait(true) to execute newly created command without
  5025. a pause.
  5026. * src/AbstractCommand.cc
  5027. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5028. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5029. found' error from HTTP/FTP server NUM times without getting single
  5030. bytes of data, then force the download to fail.
  5031. Basically aria2 tris all URIs available. So if long list of URIs are
  5032. specified in Metalink, then aria2 will take a long time to fail
  5033. eventually if all URIs are outdated. This option eases this situation
  5034. to limit the number of servers to try.
  5035. * src/FtpNegotiationCommand.cc
  5036. * src/HelpItemFactory.cc
  5037. * src/HttpResponseCommand.cc
  5038. * src/OptionHandlerFactory.cc
  5039. * src/PeerStat.h
  5040. * src/RequestGroup.cc
  5041. * src/RequestGroup.h
  5042. * src/SegmentMan.cc
  5043. * src/SegmentMan.h
  5044. * src/option_processing.cc
  5045. * src/prefs.cc
  5046. * src/prefs.h
  5047. * src/usage_text.h
  5048. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5050. response even if more than one response is in it.
  5051. * src/FtpConnection.cc
  5052. * src/FtpConnection.h
  5053. * test/FtpConnectionTest.cc
  5054. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5055. Merged from stable-0.15
  5056. * m4/libcares.m4
  5057. Use pkg-config
  5058. * m4/sqlite3.m4
  5059. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. Removed unnecessary if statement.
  5061. * src/DefaultPieceStorage.cc (initPieceStorage)
  5062. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Added --connect-timeout option to specify connect timeout in seconds.
  5064. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5065. connecting to BitTorrent peer is not controlled by this option.
  5066. * src/AbstractProxyRequestCommand.cc
  5067. * src/FtpNegotiationCommand.cc
  5068. * src/HelpItemFactory.cc
  5069. * src/HttpRequestCommand.cc
  5070. * src/OptionHandlerFactory.cc
  5071. * src/option_processing.cc
  5072. * src/prefs.cc
  5073. * src/prefs.h
  5074. * src/usage_text.h
  5075. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5076. Added help message for -R option.
  5077. * src/HelpItemFactory.cc
  5078. * src/usage_text.h
  5079. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Added the message that the time is in local time zone.
  5081. * src/RequestGroup.cc
  5082. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5083. Implemented the ability to get timestamp from remote FTP server using
  5084. MDTM command described in RFC3659.
  5085. * src/FtpConnection.cc
  5086. * src/FtpConnection.h
  5087. * src/FtpNegotiationCommand.cc
  5088. * src/FtpNegotiationCommand.h
  5089. * test/FtpConnectionTest.cc
  5090. * test/Makefile.am
  5091. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. Implemented the ability to get timestamp from remote HTTP server and
  5093. apply it to local file. To enable this feature, --remote-time option
  5094. is added. No usage text has been written yet.
  5095. If several servers returns difference timestamp, then aria2 uses latest
  5096. one.
  5097. * src/CopyDiskAdaptor.cc
  5098. * src/CopyDiskAdaptor.h
  5099. * src/DirectDiskAdaptor.cc
  5100. * src/DirectDiskAdaptor.h
  5101. * src/DiskAdaptor.h
  5102. * src/File.cc
  5103. * src/File.h
  5104. * src/HttpHeader.cc
  5105. * src/HttpHeader.h
  5106. * src/HttpResponse.cc
  5107. * src/HttpResponse.h
  5108. * src/HttpResponseCommand.cc
  5109. * src/HttpResponseCommand.h
  5110. * src/MultiDiskAdaptor.cc
  5111. * src/MultiDiskAdaptor.h
  5112. * src/OptionHandlerFactory.cc
  5113. * src/RequestGroup.cc
  5114. * src/RequestGroup.h
  5115. * src/RequestGroupMan.cc
  5116. * src/option_processing.cc
  5117. * src/prefs.cc
  5118. * src/prefs.h
  5119. * test/CopyDiskAdaptorTest.cc
  5120. * test/FileTest.cc
  5121. * test/Makefile.am
  5122. * test/Makefile.in
  5123. * test/MultiDiskAdaptorTest.cc
  5124. * test/TestUtil.cc
  5125. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5126. Fixed the bug that DiskWriterEntry is not created when its
  5127. FileEntry.isRequested() is false and it doesn't share a piece with
  5128. other FileEntries that are requested. This bug causes segmentation fault
  5129. in the end.
  5130. * src/MultiDiskAdaptor.cc
  5131. * src/MultiDiskAdaptor.h
  5132. * src/MultiFileAllocationIterator.cc
  5133. * test/MultiDiskAdaptorTest.cc
  5134. * test/MultiFileAllocationIteratorTest.cc
  5135. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5136. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5137. called if the number of file entries are greater than max open files.
  5138. * src/AbstractSingleDiskAdaptor.cc
  5139. * src/AbstractSingleDiskAdaptor.h
  5140. * src/DiskAdaptor.h
  5141. * src/MultiDiskAdaptor.cc
  5142. * src/MultiDiskAdaptor.h
  5143. * test/MultiDiskAdaptorTest.cc
  5144. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5145. Added a constuctor that receives struct timeval.
  5146. Added operator<.
  5147. * src/TimeA2.cc
  5148. * src/TimeA2.h
  5149. * test/TimeTest.cc
  5150. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5152. * src/CookieParser.cc
  5153. * test/CookieParserTest.cc
  5154. * test/HttpResponseTest.cc
  5155. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Implmented the functions to parse date.
  5157. * src/TimeA2.cc
  5158. * src/TimeA2.h
  5159. * test/TimeTest.cc
  5160. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5161. Added "Firefox3 Cookie" feature to FeatureConfig
  5162. * src/FeatureConfig.cc
  5163. * src/FeatureConfig.h
  5164. * test/FeatureConfigTest.cc
  5165. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Bump up version number to 0.16.0b
  5167. * configure.ac
  5168. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Use pkg-config if is is available.
  5170. * m4/openssl.m4
  5171. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5172. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5173. * src/BtAnnounce.h
  5174. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. If an error occurred with a URI, remove identical URI from remaining
  5176. URI list because it is likely that same error occurred in the end and it
  5177. is waste of time.
  5178. * src/AbstractCommand.cc
  5179. * src/RequestGroup.cc
  5180. * src/RequestGroup.h
  5181. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5182. Removed wrong comment.
  5183. * src/DefaultPeerStorage.cc
  5184. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5185. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5186. Added return value of getpid() to argument of srand() to achieve more
  5187. randomized value.
  5188. * src/SimpleRandomizer.cc
  5189. * src/SimpleRandomizer.h
  5190. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5191. Contact tracker frequently when the number of connections are 0 and
  5192. download is not finished yet.
  5193. * src/ActivePeerConnectionCommand.cc
  5194. * src/BtAnnounce.h
  5195. * src/DefaultBtAnnounce.cc
  5196. * src/DefaultBtAnnounce.h
  5197. * test/MockBtAnnounce.h
  5198. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5199. Moved threshold values to UTPexExtensionMessage.
  5200. * src/DefaultBtInteractive.cc
  5201. * src/Peer.cc
  5202. * src/Peer.h
  5203. * src/UTPexExtensionMessage.cc
  5204. * src/UTPexExtensionMessage.h
  5205. * test/UTPexExtensionMessageTest.cc
  5206. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5207. Added _incoming member to Peer class and made it true if the peer
  5208. initiated connection. Don't add those peer to UTPex message.
  5209. If extended handshake is received, assign _incoming to false.
  5210. * src/DefaultBtInteractive.cc
  5211. * src/HandshakeExtensionMessage.cc
  5212. * src/Peer.cc
  5213. * src/Peer.h
  5214. * src/PeerListenCommand.cc
  5215. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5217. Encoding Decoder. Removed size threshold for turning off on the fly
  5218. inflation because resulting file may or may not be inflated depending
  5219. on the file size and I think it is not expected by users.
  5220. This change fixes segmentation fault when Metalink file contains gzipped
  5221. file and its filesize is provided.
  5222. * src/HttpResponseCommand.cc
  5223. * src/HttpResponseCommand.h
  5224. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5225. Made Cookie immutable.
  5226. * src/Cookie.cc
  5227. * src/Cookie.h
  5228. * src/CookieParser.cc
  5229. * src/CookieParser.h
  5230. * src/CookieStorage.cc
  5231. * test/CookieParserTest.cc
  5232. * test/CookieStorageTest.cc
  5233. * test/NsCookieParserTest.cc
  5234. * test/Sqlite3MozCookieParserTest.cc
  5235. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5236. Removed CookieBox, CookieBoxFactory.
  5237. * src/CookieBox.cc
  5238. * src/CookieBox.h
  5239. * src/CookieBoxFactory.cc
  5240. * src/CookieBoxFactory.h
  5241. * src/Makefile.am
  5242. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5243. Use CookieStorage class instead of CookieBox class.
  5244. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5245. * src/AbstractProxyRequestCommand.cc
  5246. * src/CookieStorage.cc
  5247. * src/DownloadEngine.cc
  5248. * src/DownloadEngine.h
  5249. * src/HttpConnection.cc
  5250. * src/HttpConnection.h
  5251. * src/HttpRequest.cc
  5252. * src/HttpRequest.h
  5253. * src/HttpRequestCommand.cc
  5254. * src/HttpResponse.cc
  5255. * src/HttpResponseCommand.cc
  5256. * src/HttpSkipResponseCommand.cc
  5257. * src/Makefile.am
  5258. * src/MultiUrlRequestInfo.cc
  5259. * src/Request.cc
  5260. * src/Request.h
  5261. * src/main.cc
  5262. * test/AllTest.cc
  5263. * test/CookieStorageTest.cc
  5264. * test/CookieTest.cc
  5265. * test/HttpRequestTest.cc
  5266. * test/HttpResponseTest.cc
  5267. * test/Makefile.am
  5268. * test/NsCookieParserTest.cc
  5269. * test/Sqlite3MozCookieParserTest.cc
  5270. * test/nscookietest.txt
  5271. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Updated
  5273. * test/Cookies.sqlite
  5274. * test/nscookietest.txt
  5275. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5276. Added tests for CookieStorage::load()
  5277. * test/CookieStorageTest.cc
  5278. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5279. Added CookieStorage class which is based on RFC2109 and manages cookies
  5280. more strictly than CookieBox and CookieBoxFactory class.
  5281. * src/CookieStorage.cc
  5282. * src/CookieStorage.h
  5283. * src/Cookie.cc
  5284. * src/Cookie.h
  5285. * test/CookieStorageTest.cc
  5286. * test/CookieTest.cc
  5287. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5288. Fixed the bug that commands are created more than the number of pieces.
  5289. * src/RequestGroup.cc
  5290. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5291. Fixed infinite loop bug in FTP when SIZE command failed.
  5292. * src/FtpNegotiationCommand.cc
  5293. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5294. Removed DirectDiskAdaptorTest.h
  5295. * test/Makefile.am
  5296. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Fixed chunk checksum validation cannot detect trailing garbage data.
  5298. BUG#2074141
  5299. * src/AbstractSingleDiskAdaptor.cc
  5300. * src/AbstractSingleDiskAdaptor.h
  5301. * src/CheckIntegrityEntry.cc
  5302. * src/CheckIntegrityEntry.h
  5303. * src/DiskAdaptor.h
  5304. * src/MultiDiskAdaptor.cc
  5305. * src/MultiDiskAdaptor.h
  5306. * src/RequestGroup.cc
  5307. * test/DirectDiskAdaptorTest.cc
  5308. * test/MultiDiskAdaptorTest.cc
  5309. * test/TestUtil.cc
  5310. * test/TestUtil.h
  5311. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5312. Bump up version number of dht.dat file to 3. In version 3 format, time
  5313. is stored in 64bit, network byte order.
  5314. New build can load old format(version 2) but it saves the file in new
  5315. format. It means once you used new build, your dht.dat becomes
  5316. incompatible with older build.
  5317. * src/DHTRoutingTableDeserializer.cc
  5318. * src/DHTRoutingTableSerializer.cc
  5319. * test/DHTRoutingTableSerializerTest.cc
  5320. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5322. * test/Makefile.am
  5323. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5324. Bump up version number of .aria2 control file to 0001.
  5325. New aria2 can still load version 0000 file but it saves the file in
  5326. version 0001 format. It means that new aria2 can resume download
  5327. started by old aria2 but the opposite is not true.
  5328. * src/DefaultBtProgressInfoFile.cc
  5329. * src/DefaultBtProgressInfoFile.h
  5330. * test/DefaultBtProgressInfoFileTest.cc
  5331. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. Added ntoh64 and hton64 as inline functions.
  5333. * src/Util.cc
  5334. * test/UtilTest.cc
  5335. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5336. Added sqlite3 depenency and Firefox3 cookie support.
  5337. * README
  5338. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5339. State that firefox3 cookie is supported explicitly in the usage.
  5340. * src/usage_text.h
  5341. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5342. Externalized message.
  5343. * src/RequestGroupMan.cc
  5344. * src/message.h
  5345. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5346. Save temporary file first and rename to the destination on success.
  5347. Added test cases.
  5348. * src/RequestGroupMan.cc
  5349. * test/RequestGroupManTest.cc
  5350. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5351. Fixed the bug that the number of connected peer is exceeding the limit
  5352. (55 by default) in seeding mode.
  5353. Multiplied 0.8 to _maxUploadSpeedLimit.
  5354. * src/ActivePeerConnectionCommand.cc
  5355. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5356. Clear table item.
  5357. * src/Dictionary.cc
  5358. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. Fixed error handling of lseek.
  5360. * src/AbstractDiskWriter.cc
  5361. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5363. style cookie file.
  5364. * src/usage_text.h
  5365. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5367. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5368. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5369. * src/Util.cc
  5370. * src/Util.h
  5371. * src/CookieParser.cc
  5372. * test/UtilTest.cc
  5373. * test/CookieParserTest.cc
  5374. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5375. Separate the implementation to load old mozilla format of cookie to
  5376. NsCookieParser class.
  5377. * src/CookieBoxFactory.cc
  5378. * src/CookieBoxFactory.h
  5379. * src/NsCookieParser.cc
  5380. * src/NsCookieParser.h
  5381. * test/NsCookieParserTest.cc
  5382. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5383. Made parse() const
  5384. * src/Sqlite3MozCookieParser.cc
  5385. * src/Sqlite3MozCookieParser.h
  5386. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Added firefox3 cookie support based on the patch submitted by
  5388. tizianomueller.
  5389. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5390. this functionality.
  5391. * configure.ac
  5392. * m4/sqlite3.m4
  5393. * src/CookieBoxFactory.cc
  5394. * src/CookieBoxFactory.h
  5395. * src/Makefile.am
  5396. * src/Makefile.in
  5397. * src/Sqlite3MozCookieParser.cc
  5398. * src/Sqlite3MozCookieParser.h
  5399. * src/main.cc
  5400. * test/CookieBoxFactoryTest.cc
  5401. * test/Makefile.am
  5402. * test/Makefile.in
  5403. * test/Sqlite3MozCookieParserTest.cc
  5404. * test/badcookies.sqlite
  5405. * test/cookies.sqlite
  5406. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5407. Added Danish and Greek translations.
  5408. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5409. Great thanks to all translators.
  5410. * po/LINGUAS
  5411. * po/el.po
  5412. * po/da.po
  5413. * po/es.po
  5414. * po/ca.po
  5415. * po/nn.po
  5416. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Fixed man page: --follow-bittorrent should be --follow-torrent
  5418. * doc/aria2c.1.txt
  5419. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Fixed: numCommand is less than the value specified in -C option.
  5421. * src/RequestGroup.cc
  5422. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5423. Fixed occasional assertion failure in PieceSegment.
  5424. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5425. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5426. creation of duplicate segments and one of the segment was finished then
  5427. assertion failure was caused.
  5428. * src/SegmentMan.cc
  5429. * test/SegmentManTest.cc
  5430. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5431. Added options to load/save the server's performance/status to a file
  5432. and the timeout to drop their data.
  5433. --server-stat-of=FILE specifies the file to which performance data
  5434. is saved.
  5435. --server-stat-if=FILE specifies the file to read previously saved
  5436. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5437. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5438. TIMEOUT is specified in seconds and the default value is 24hours.
  5439. * src/MultiUrlRequestInfo.cc
  5440. * src/OptionHandlerFactory.cc
  5441. * src/RequestGroupMan.cc
  5442. * src/RequestGroupMan.h
  5443. * src/ServerStatMan.cc
  5444. * src/ServerStatMan.h
  5445. * src/option_processing.cc
  5446. * src/prefs.cc
  5447. * src/prefs.h
  5448. * test/ServerStatManTest.cc
  5449. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5450. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5451. * src/ServerStatMan.cc
  5452. * src/ServerStatMan.h
  5453. * test/ServerStatManTest.cc
  5454. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5455. Implemented ServerStatMan::load(...) function and its test case.
  5456. * src/ServerStat.cc
  5457. * src/ServerStat.h
  5458. * src/ServerStatMan.cc
  5459. * test/ServerStatManTest.cc
  5460. * test/ServerStatTest.cc
  5461. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5462. Use time_t instead of int32_t. Use int64_t where milli second is
  5463. expected.
  5464. * src/TimeA2.cc
  5465. * src/TimeA2.h
  5466. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Implemented ServerStatMan::save(...) function and its test case.
  5468. * src/ServerStat.cc
  5469. * src/ServerStat.h
  5470. * src/ServerStatMan.cc
  5471. * src/ServerStatMan.h
  5472. * test/ServerStatManTest.cc
  5473. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5474. Now aria2 uses name attribute in Metalink as local filename in
  5475. BitTorrent downloads. BUG#2033999
  5476. * src/BtContext.h
  5477. * src/BtDependency.cc
  5478. * src/DefaultBtContext.cc
  5479. * src/DefaultBtContext.h
  5480. * src/SingleFileDownloadContext.cc
  5481. * src/SingleFileDownloadContext.h
  5482. * test/BtDependencyTest.cc
  5483. * test/DefaultBtContextTest.cc
  5484. * test/MockBtContext.h
  5485. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. Added AC_C_BIGENDIAN
  5487. * src/configure.ac
  5488. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Limited numCommand less than or equal to the number of piece.
  5490. * src/RequestGroup.cc
  5491. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5492. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5493. directive.
  5494. * test/DefaultPieceStorageTest.cc
  5495. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Fixed memory leak in test code
  5497. * test/AnnounceListTest.cc
  5498. * test/DefaultPeerListProcessorTest.cc
  5499. * test/DefaultPeerStorageTest.cc
  5500. * test/MetaFileUtilTest.cc
  5501. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5502. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5503. * src/DefaultPieceStorage.cc
  5504. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5505. Initialized _directIOAllowed
  5506. * src/MultiDiskAdaptor.cc
  5507. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5508. Fixed memory leak
  5509. * src/GZipDecoder.cc
  5510. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. Fixed memory leak
  5512. * src/MetalinkParserStateMachine.cc
  5513. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5514. Fixed memory leak
  5515. * src/Dictionary.cc
  5516. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Fixed memory leak
  5518. * src/IteratableChunkChecksumValidator.h
  5519. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5520. Fixed unmatched malloc/free.
  5521. * src/IteratableChunkChecksumValidator.cc
  5522. * src/IteratableChecksumValidator.cc
  5523. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5524. Removed max chunk size check. This change fixes BUG#2040169
  5525. * src/ChunkedDecoder.cc
  5526. * src/ChunkedDecoder.h
  5527. * test/ChunkedDecoderTest.cc
  5528. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5529. Implemented download speed based URI selection algorithm.
  5530. Introduced new option --uri-selector.
  5531. If --uri-selector=feedback is given, aria2 uses download speed observed
  5532. in the previous downloads and chooses fastest server in the URI list.
  5533. Currently at most 10 URIs are considered to introduce randomeness for
  5534. finding better servers. The speed is average download speed in the
  5535. downloads.
  5536. On the other hand, if --uri-selector=inorder is given, which is default,
  5537. URI is tried in order in URI list.
  5538. The usage text for the new option has not been written yet.
  5539. * src/AbstractCommand.cc
  5540. * src/DownloadCommand.cc
  5541. * src/DownloadEngine.cc
  5542. * src/DownloadEngineFactory.cc
  5543. * src/InOrderURISelector.cc
  5544. * src/InOrderURISelector.h
  5545. * src/OptionHandlerFactory.cc
  5546. * src/PeerStat.h
  5547. * src/RequestGroup.cc
  5548. * src/RequestGroup.h
  5549. * src/RequestGroupMan.cc
  5550. * src/RequestGroupMan.h
  5551. * src/SegmentMan.cc
  5552. * src/SegmentMan.h
  5553. * src/ServerStat.cc
  5554. * src/ServerStat.h
  5555. * src/ServerStatMan.cc
  5556. * src/ServerStatMan.h
  5557. * src/ServerStatURISelector.cc
  5558. * src/ServerStatURISelector.h
  5559. * src/URISelector.h
  5560. * src/option_processing.cc
  5561. * src/prefs.cc
  5562. * src/prefs.h
  5563. * test/InOrderURISelectorTest.cc
  5564. * test/RequestGroupManTest.cc
  5565. * test/ServerStatManTest.cc
  5566. * test/ServerStatURISelectorTest.cc
  5567. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5568. * Release 0.15.1+2
  5569. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5570. Bump up version number to 0.15.1+2
  5571. * configure.ac
  5572. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5573. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5574. * m4/aria2_arg.m4
  5575. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5576. * Release 0.15.1+1
  5577. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5578. Bump up version number to 0.15.1+1
  5579. * configure.ac
  5580. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5581. Fixed the bug that causes segmentaion fault when resuming download
  5582. using metalink without size tag. Reproducible only using HTTP URI.
  5583. * src/HttpResponseCommand.cc
  5584. * src/FtpNegotiationCommand.cc
  5585. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5586. * Release 0.15.1
  5587. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Updated Bulgarian and French translations, thanks to all translators.
  5589. * po/bg.po
  5590. * po/fr.po
  5591. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5592. Bump up version number to 0.15.1
  5593. * configure.ac
  5594. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5595. Avoid repeated call of gettimeofday() when calculating speed.
  5596. * src/SpeedCalc.cc
  5597. * src/SpeedCalc.h
  5598. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5599. Removed writable check when socket's send buffer is full in BitTorrent
  5600. downloads to lower CPU usage.
  5601. * src/PeerInteractionCommand.cc
  5602. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. Fixed broken gzip inflation.
  5604. Turn off segmented downloading if gzip content is smaller than or equal
  5605. to 1MiB and inflate the data on the fly, because HTTP response header
  5606. doesn't contain the length of inflated file we can't determin where
  5607. the chunk of data should be written.
  5608. On the other hand, if gzip content is larger than 1MB, then turn off
  5609. on the fly inflation, because some servers returns "content-type: gzip"
  5610. for *.tgz, *.gz files.
  5611. * src/DownloadCommand.cc
  5612. * src/HttpResponseCommand.cc
  5613. * src/HttpResponseCommand.h
  5614. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5615. Applied tizianomueller's patch to fix compile error.
  5616. * test/BitfieldManTest.cc
  5617. * test/BtRequestMessageTest.cc
  5618. * test/DefaultBtContextTest.cc
  5619. * test/DefaultDiskWriterTest.cc
  5620. * test/DefaultPieceStorageTest.cc
  5621. * test/HttpHeaderProcessorTest.cc
  5622. * test/HttpResponseTest.cc
  5623. * test/Metalink2RequestGroupTest.cc
  5624. * test/MetalinkParserControllerTest.cc
  5625. * test/MetalinkProcessorTest.cc
  5626. * test/PeerSessionResourceTest.cc
  5627. * test/UtilTest.cc
  5628. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5629. * Release 0.15.0
  5630. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5631. Reordered src files in POTFILES.in so that usage text appears first.
  5632. * po/POTFILES.in
  5633. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. Bump up version number to 0.15.0
  5635. * configure.ac
  5636. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Added Bulgarian translation.
  5638. Updated Catalan, Spanish, French and Japanese translations.
  5639. Thanks to all translators.
  5640. * po/LINGUAS
  5641. * po/bg.po
  5642. * po/ca.po
  5643. * po/es.po
  5644. * po/fr.po
  5645. * po/ja.po
  5646. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5647. Updated feature list. Added libz for dependency section.
  5648. Added a description about unit testing using CppUnit.
  5649. * README
  5650. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Added a test for libz. Quoted where it is necessary.
  5652. * build_test.sh
  5653. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Added GZip to `Enabled Features' list.
  5655. * src/FeatureConfig.cc
  5656. * src/FeatureConfig.h
  5657. * test/FeatureConfigTest.cc
  5658. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5660. the transfer has not yet started.
  5661. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5662. * src/SegmentMan.cc
  5663. * src/SegmentMan.h
  5664. * test/SegmentManTest.cc
  5665. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Cache last calculated average download/upload speed.
  5667. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  5668. cached value.
  5669. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  5670. * src/PeerStat.h
  5671. * src/SpeedCalc.cc
  5672. * src/SpeedCalc.h
  5673. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Call parseUrl directly.
  5675. * src/Request.cc (resetUrl)
  5676. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Supported absolute/relative path in Location header field.
  5678. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  5679. * src/HttpHeader.cc
  5680. * src/HttpHeader.h
  5681. * src/HttpResponse.cc
  5682. * src/HttpSkipResponseCommand.cc
  5683. * src/Request.cc
  5684. * test/HttpHeaderTest.cc
  5685. * test/HttpResponseTest.cc
  5686. * test/RequestTest.cc
  5687. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5688. Changed help text for --load-cookie option.
  5689. * doc/aria2c.1.txt
  5690. * src/usage_text.h
  5691. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5692. Regenerated test/Makefile.in to remove stale ChangeLog.
  5693. * test/Makefile.in
  5694. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5695. Updated po files.
  5696. * po/aria2c.pot
  5697. * po/*.po
  5698. * po/*.gmo
  5699. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Bump up version number to 0.15.0b
  5701. * configure.ac
  5702. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5703. Externalize messages.
  5704. * src/RequestGroupMan.cc
  5705. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  5706. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5707. Use File::exists() instead of File::isFile() to allow non-regular file
  5708. such as block special files.
  5709. * src/AbstractDiskWriter.cc
  5710. * src/MultiDiskWriter.cc
  5711. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  5713. * src/gai_strerror.h
  5714. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5715. Fixed compile error. Thanks gknauf for the patch.
  5716. * src/asctime_r.c
  5717. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5718. Included asctime_r.h from a2time.h.
  5719. * src/a2time.h
  5720. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5721. Added a message "aria2 doesn't verify signature" to log message when
  5722. signature file is saved.
  5723. * src/RequestGroupMan.cc
  5724. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. Added the ability to save signature when download is completed if
  5726. signature is available. The filename of signature file is the path to
  5727. download file followed by ".sig". If it already exists, then signature
  5728. will not be saved.
  5729. * src/RequestGroupMan.cc
  5730. * src/Signature.cc
  5731. * test/SignatureTest.cc
  5732. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5733. Updated the descriptions for --bt-seed-unverified.
  5734. * doc/aria2c.1
  5735. * doc/aria2c.1.html
  5736. * doc/aria2c.1.txt
  5737. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5738. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5739. that this is not going to verify files using piece hashes.
  5740. * src/HelpItemFactory.cc
  5741. * src/OptionHandlerFactory.cc
  5742. * src/RequestGroup.cc
  5743. * src/option_processing.cc
  5744. * src/prefs.cc
  5745. * src/prefs.h
  5746. * src/usage_text.h
  5747. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5748. Added the ability to retrieve signature from Metalink file.
  5749. A retrieved signature is stored in Signature class and it is held by
  5750. DownloadContext class. Note that aria2 doesn't verify signature.
  5751. * src/DownloadContext.cc
  5752. * src/DownloadContext.h
  5753. * src/Makefile.am
  5754. * src/Makefile.in
  5755. * src/Metalink2RequestGroup.cc
  5756. * src/MetalinkEntry.cc
  5757. * src/MetalinkEntry.h
  5758. * src/MetalinkParserController.cc
  5759. * src/MetalinkParserController.h
  5760. * src/MetalinkParserStateMachine.cc
  5761. * src/MetalinkParserStateMachine.h
  5762. * src/Signature.cc
  5763. * src/Signature.h
  5764. * src/SignatureMetalinkParserState.cc
  5765. * src/SignatureMetalinkParserState.h
  5766. * src/VerificationMetalinkParserState.cc
  5767. * src/VerificationMetalinkParserState.h
  5768. * test/Metalink2RequestGroupTest.cc
  5769. * test/MetalinkParserControllerTest.cc
  5770. * test/MetalinkProcessorTest.cc
  5771. * test/test.xml
  5772. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Close DiskAdaptor after renaming file.
  5774. * src/RequestGroup.cc
  5775. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5776. Corrected indentation
  5777. * src/DefaultBtProgressInfoFile.cc
  5778. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Moved the calls of std::ios::exceptions() inside of try-catch block
  5780. because if an error occurred in constructor of std::fstream, then
  5781. exception is thrown immediately when std::ios::exceptions() is called
  5782. which results unhandled exception and aria2c aborts.
  5783. * src/DefaultBtProgressInfoFile.cc
  5784. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Added the test for the previous change in DefaultBtContext.cc
  5786. * test/DefaultBtContextTest.cc
  5787. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5788. Fixed the bug that causes infinite loop when the number of pieces are
  5789. fewer than allowed fast set size which is 10 by default.
  5790. * src/DefaultBtContext.cc
  5791. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5792. Updated the descriptions for -j, -s. Added --bt-seed.
  5793. * doc/aria2c.1
  5794. * doc/aria2c.1.html
  5795. * doc/aria2c.1.txt
  5796. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5798. aria2 seeds previously downloaded files without validating piece hashs.
  5799. * src/HelpItemFactory.cc
  5800. * src/OptionHandlerFactory.cc
  5801. * src/RequestGroup.cc
  5802. * src/option_processing.cc
  5803. * src/prefs.cc
  5804. * src/prefs.h
  5805. * src/usage_text.h
  5806. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Updated DESCRIPTION of man page.
  5808. * doc/aria2c.1
  5809. * doc/aria2c.1.html
  5810. * doc/aria2c.1.txt
  5811. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5813. Don't define `struct addrinfo' when __sun is defined.
  5814. * src/getaddrinfo.h
  5815. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5817. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5818. second argument is of type `struct _stati64'. Otherwise it is defined as
  5819. `struct stat'.
  5820. * src/AbstractDiskWriter.cc
  5821. * src/File.cc
  5822. * src/File.h
  5823. * src/a2io.h
  5824. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5825. Fixed the compile error in hurd-i386
  5826. See the original bug report:
  5827. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5828. * src/a2io.h
  5829. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Code cleanup.
  5831. * src/PeerAbstractCommand.cc
  5832. * src/PeerAbstractCommand.h
  5833. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5834. Removed TransferEncoding.
  5835. * src/DownloadCommand.cc
  5836. * src/DownloadCommand.h
  5837. * src/HttpResponseCommand.cc
  5838. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5839. Updated po files.
  5840. * po/aria2c.pot
  5841. * po/*.po
  5842. * po/*.gmo
  5843. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5844. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5845. * src/A2STR.cc
  5846. * src/A2STR.h
  5847. * src/ChunkedDecoder.cc
  5848. * src/ChunkedDecoder.h
  5849. * src/ChunkedEncoding.cc: Removed
  5850. * src/ChunkedEncoding.h: Removed
  5851. * src/DownloadCommand.cc
  5852. * src/DownloadCommand.h
  5853. * src/HttpDownloadCommand.cc
  5854. * src/HttpResponse.cc
  5855. * src/HttpResponse.h
  5856. * src/HttpResponseCommand.cc
  5857. * src/HttpSkipResponseCommand.cc
  5858. * src/HttpSkipResponseCommand.h
  5859. * src/Makefile.am
  5860. * src/TransferEncoding.h: Removed
  5861. * test/ChunkedDecoderTest.cc
  5862. * test/ChunkedEncodingTest.cc: Removed
  5863. * test/HttpResponseTest.cc
  5864. * test/Makefile.am
  5865. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. Use append instead of insert.
  5867. * src/GZipDecoder.cc
  5868. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. Updated doc
  5870. * src/Decoder.h
  5871. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5872. Updated usage text for -s option.
  5873. * src/usage_text.h
  5874. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5876. * src/Request.cc
  5877. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Cleaned up configure.ac.
  5879. * configure.ac
  5880. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5882. AC_ARG_ENABLE.
  5883. * configure.ac
  5884. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5885. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5886. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5887. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5888. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5889. fly and writes decoded data to a local disk.
  5890. * README
  5891. * README.html
  5892. * configure.ac
  5893. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5894. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5895. * m4/libz.m4
  5896. * src/Decoder.h
  5897. * src/DownloadCommand.cc
  5898. * src/DownloadCommand.h
  5899. * src/Exception.h
  5900. * src/GZipDecoder.cc
  5901. * src/GZipDecoder.h
  5902. * src/HttpHeader.cc
  5903. * src/HttpHeader.h
  5904. * src/HttpRequest.cc
  5905. * src/HttpRequest.h
  5906. * src/HttpResponse.cc
  5907. * src/HttpResponse.h
  5908. * src/HttpResponseCommand.cc
  5909. * src/Makefile.am
  5910. * test/GZipDecoderTest.cc
  5911. * test/HttpRequestTest.cc
  5912. * test/HttpResponseTest.cc
  5913. * test/Makefile.am
  5914. * test/Makefile.in
  5915. * test/gzip_decode_test.gz
  5916. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Clarified usage of -j option.
  5918. * src/usage_text.h
  5919. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Disabled getting size from the response of RETR.
  5921. If SIZE command failed, then disable resuming and segmented downloading.
  5922. * src/FtpConnection.cc
  5923. * src/FtpConnection.h
  5924. * src/FtpNegotiationCommand.cc
  5925. * src/FtpNegotiationCommand.h
  5926. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5927. Use digits to find first byte of file size, which makes the intention
  5928. of the code clearer.
  5929. * src/FtpConnection.cc
  5930. Don't call validateTotalLength() when size is 0.
  5931. * src/FtpNegotiationCommand.cc
  5932. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5933. Updated po files.
  5934. * po/aria2c.pot
  5935. * po/*.gmo
  5936. * po/*.po
  5937. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Clarified usage text for --split option.
  5939. * src/usage_text.h
  5940. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5941. Bump up version number to 0.15.0dev. "dev" means "development"
  5942. version, which means I started the development of the next release!
  5943. * src/configure.ac
  5944. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. If FTP server returns negative response with REST raw command and
  5946. requested range is not 0, throw exception. If requested range is 0,
  5947. continue download a file from 0 byte.
  5948. * src/FtpNegotiationCommand.cc
  5949. * src/FtpNegotiationCommand.h
  5950. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Supported FTP server which don't recognize SIZE raw command.
  5952. If SIZE raw command is failed, aria2 will try to get file size
  5953. from the response of RETR raw command. If both attempts are failed,
  5954. then resuming and segmented downloading are disabled.
  5955. * src/FtpConnection.cc
  5956. * src/FtpConnection.h
  5957. * src/FtpNegotiationCommand.cc
  5958. * src/FtpNegotiationCommand.h
  5959. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5960. * Release 0.14.0+1
  5961. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. Bump up version number to 0.14.0+1
  5963. * src/configure.ac
  5964. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. Fixed the code that refers static member variable from non-static
  5966. context.
  5967. * src/DefaultPeerStorage.cc
  5968. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5969. * Release 0.14.0
  5970. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5971. Added build test script
  5972. * build_test.sh
  5973. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. Updated ja.po
  5975. * src/ja.po
  5976. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5977. Bump up version number to 0.14.0
  5978. * src/configure.ac
  5979. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5980. Updated ja.po and fr.po. Great thanks for french translators and
  5981. Sebastien WILLEMIJNS.
  5982. * po/fr.po
  5983. * po/ja.po
  5984. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Added configure option to enable/disable epoll support.
  5986. * configure.ac
  5987. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Updated man page.
  5989. * doc/aria2c.1.txt
  5990. * doc/aria2c.1
  5991. * doc/aria2c.1.html
  5992. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5993. Added missing default value '5' to the usage of --split option.
  5994. * src/HelpItemFactory.cc
  5995. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5996. Filled up pieces based on the number of missing blocks, rather than
  5997. simplay the number of piece * block length.
  5998. * src/BtRequestFactory.h
  5999. * src/DefaultBtInteractive.cc
  6000. * src/DefaultBtInteractive.h
  6001. * src/DefaultBtRequestFactory.cc
  6002. * src/DefaultBtRequestFactory.h
  6003. * src/Piece.cc
  6004. * src/Piece.h
  6005. * test/BitfieldManTest.cc
  6006. * test/DefaultBtRequestFactoryTest.cc
  6007. * test/MockBtRequestFactory.h
  6008. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6009. Made _epEvents a member variable.
  6010. * src/DownloadEngine.cc
  6011. * src/DownloadEngine.h
  6012. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6013. Cancel download if http redirect is bounded more than 20 times.
  6014. * src/AbstractCommand.cc
  6015. * src/HttpSkipResponseCommand.cc
  6016. * src/Request.cc
  6017. * src/Request.h
  6018. * test/RequestTest.cc
  6019. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6020. Fixed unhandled exception(removed keyword `new').
  6021. * src/SocketCore.cc (initEPOLL)
  6022. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Removed visit(const MetaEntry*)
  6024. * src/MetaEntryVisitor.h:
  6025. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6026. and made them virtual.
  6027. * src/BencodeVisitor.h
  6028. * src/BencodeVisitor.cc
  6029. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6030. Updated po files.
  6031. * po/aria2c.pot
  6032. * po/*.po
  6033. * po/*.gmo
  6034. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6036. the number of socket to watch out.
  6037. * src/PeerInteractionCommand.cc
  6038. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. When there is not enough space in disk when writing a chunk of data,
  6040. aria2 now prints the message to the console to warn user and aborts
  6041. its download. Not all downloads are canceled because some downloads
  6042. may use another disk or partition. BUG#1640332
  6043. * src/AbstractDiskWriter.cc
  6044. * src/PeerAbstractCommand.cc
  6045. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6046. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6047. setHaltRequested(true) to cancel download.
  6048. * src/PeerInteractionCommand.h
  6049. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6051. socket from int to sock_t as sockets are unsigned in Windows.
  6052. For AsyncNameResolver, DownloadEngine, I did additional modification
  6053. for the portion of the code changed according to epoll support.
  6054. I defined sock_t in a2netcompat.h to use sock_t without including
  6055. SocketCore.h.
  6056. * src/AsyncNameResolver.cc
  6057. * src/AsyncNameResolver.h
  6058. * src/DownloadEngine.cc
  6059. * src/DownloadEngine.h
  6060. * src/SocketCore.cc
  6061. * src/SocketCore.h
  6062. * src/a2netcompat.h
  6063. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6064. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6065. changes in the patch were applied.
  6066. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6067. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6068. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6069. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6071. a2io.h and common.h were modified.
  6072. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6073. MinGW.
  6074. * src/common.h: Changed off_t to 64 bit in MinGW.
  6075. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6076. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6077. only a2netcompat.h is modified.
  6078. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6079. directives.
  6080. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6082. only gai_strerror.h is modified.
  6083. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6084. winsock errors in MinGW.
  6085. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6087. follow sources are applied.
  6088. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6089. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6090. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6091. I included locale.h from Platform.cc.
  6092. * src/main.cc: Moved common setup/teardown code to Platform class.
  6093. * test/AllTest.cc: Use Platform class.
  6094. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6095. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6096. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6097. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6098. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6099. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6100. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6101. aria2-0.13.2+1-mingw-2.patch.
  6102. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6103. systems which don't have termious.h. I moved the directive inside of
  6104. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6105. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6106. anyway.
  6107. * src/asctime_r.h
  6108. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6109. I added 2nd argument to the prototype declaration.
  6110. * src/StringFormat.cc: Get rid of vasprintf.
  6111. * src/getaddrinfo.h: Fixed constants.
  6112. * configure.ac: Added the check for asctime_r function.
  6113. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6114. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Added writable test for Socket when the sending message is in progress.
  6116. Usually the sending message is piece message. Without wriable check,
  6117. upload latency is dropped to more than 1sec.
  6118. * src/PeerInteractionCommand.cc
  6119. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Create only requested files and files which shares a piece with
  6121. requested file in multi-torrent downloads. Directory structures are
  6122. also created in the same rule.
  6123. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6124. DiskWriterEntry as in the previous implementation.
  6125. * src/MultiDiskWriter.cc
  6126. * src/MultiFileAllocationIterator.cc
  6127. * src/MultiFileAllocationIterator.h
  6128. * test/MultiFileAllocationIteratorTest.cc
  6129. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6130. Commented out -lprofiler
  6131. * src/Makefile.am
  6132. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6133. Bump up version number to 0.14.0b.
  6134. * src/configure.ac
  6135. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6136. Actively establish connection to peers in seeding, when peer cache
  6137. is not full and max upload speed limit is not reached.
  6138. * src/ActivePeerConnectionCommand.cc
  6139. * src/ActivePeerConnectionCommand.h
  6140. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6142. to make room more fleshy, recently found peers.
  6143. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6144. it.
  6145. * src/DefaultPeerStorage.cc
  6146. * test/DefaultPeerStorageTest.cc
  6147. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6148. Returns cached data only when the previous receiveHandshake() is called
  6149. with peek = true.
  6150. * src/PeerConnection.cc (receiveHandshake)
  6151. * src/PeerConnection.h (receiveHandshake)
  6152. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Changed default value of -s option from 1 to 5.
  6154. Also max value of -s option is changed from 5 to 16.
  6155. * src/HelpItemFactory.cc
  6156. * src/OptionHandlerFactory.cc
  6157. * src/option_processing.cc
  6158. * src/usage_text.h
  6159. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Changed -s options behavior. Now it means the number of connections
  6161. made simultaneously in each http/ftp download.
  6162. If 1 URL is specified, the behavior is the same with old implementation.
  6163. If -s N is given and more than N URLs are specified, first N URLs are
  6164. used and remaining URLs are used for backup. If less than N URLs are
  6165. specified, some of URLs are used more than once so that totally N
  6166. connections are made simultaneously.
  6167. * src/main.cc
  6168. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Included missing iosfwd or ostream header.
  6170. * src/RequestGroupMan.cc
  6171. * src/TaggedItem.cc
  6172. * src/TaggedItem.h
  6173. * src/Util.cc
  6174. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6175. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6176. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6177. * src/HttpConnection.cc: Included missing sstream.
  6178. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6179. Added --bt-max-open-files option.
  6180. * src/DefaultPieceStorage.cc
  6181. * src/HelpItemFactory.cc
  6182. * src/MultiDiskAdaptor.cc
  6183. * src/MultiDiskAdaptor.h
  6184. * src/OptionHandlerFactory.cc
  6185. * src/option_processing.cc
  6186. * src/prefs.cc
  6187. * src/prefs.h
  6188. * src/usage_text.h
  6189. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6190. Fixed the bug that aria2 aborts when a path to a directory is given
  6191. in command-line.
  6192. * src/ProtocolDetector.cc
  6193. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6194. Limited the number files opened in each BitTorrent download. The default
  6195. value is 100. The option to change this value will be added.
  6196. * src/MultiDiskAdaptor.cc
  6197. * src/MultiDiskAdaptor.h
  6198. * src/MultiFileAllocationIterator.cc
  6199. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6200. Fixed the bug that HTTP downloads don't start with old libraries.
  6201. * src/HttpHeaderProcessor.cc
  6202. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6203. Use empty() instead of size() > 0.
  6204. * src/HttpConnection.cc
  6205. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6206. Drop connection if the incoming peer ID is the same with localhost's
  6207. one. The previous implementation drops connection when incoming peer's
  6208. IP address is the same with localhost's one.
  6209. * src/PeerListenCommand.cc
  6210. * src/DefaultBtInteractive.cc
  6211. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Returns cached data without checking whether socket is readable
  6213. if the cache is available.
  6214. * src/PeerConnection.cc (receiveHandshake)
  6215. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. Included stdint.h
  6217. * src/common.h
  6218. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6219. Removed duplicate HAVE_GETTIMEOFDAY
  6220. * src/Makefile.am
  6221. * src/Makefile.in
  6222. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6223. Use interval as a minInterval when minInterval is not supplied.
  6224. * src/DefaultBtAnnounce.cc
  6225. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6227. attempt is failed, then 2nd attempt get kicked out more quickly.
  6228. And it is now static const member of DefaultBtAnnounce.
  6229. * src/DefaultBtAnnounce.h
  6230. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6231. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6232. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6233. * src/ActivePeerConnectionCommand.cc
  6234. * src/BtConstants.h
  6235. * src/BtRuntime.h
  6236. * src/DHTGetPeersCommand.cc
  6237. * src/DefaultBtAnnounce.cc
  6238. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6239. BtRuntime::MAX_PEERS.
  6240. * src/DefaultPeerStorage.h
  6241. * src/InitiatorMSEHandshakeCommand.cc
  6242. * src/PeerInitiateConnectionCommand.cc
  6243. * src/PeerInteractionCommand.cc
  6244. * src/PeerReceiveHandshakeCommand.cc
  6245. * src/TrackerWatcherCommand.cc
  6246. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Always Connect to _numNewConnection
  6248. * src/ActivePeerConnectionCommand.cc
  6249. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6250. Made `begin' unsigned int.
  6251. * src/GrowSegment.h
  6252. * src/Piece.cc
  6253. * src/Piece.h
  6254. * src/PiecedSegment.cc
  6255. * src/PiecedSegment.h
  6256. * src/Segment.h
  6257. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6258. Calculate piece hash when data is arrived if the data is arrived in
  6259. order. This removes additional read operation for hash calculation.
  6260. If the data is arrived in out of order, the hash is calucated when the
  6261. piece is completed. This is the same behavior as the old implementation.
  6262. * src/BtPieceMessage.cc
  6263. * src/DefaultBtProgressInfoFile.cc
  6264. * src/DefaultPieceStorage.cc
  6265. * src/DownloadCommand.cc
  6266. * src/DownloadCommand.h
  6267. * src/DownloadEngine.cc
  6268. * src/GrowSegment.cc
  6269. * src/GrowSegment.h
  6270. * src/Piece.cc
  6271. * src/Piece.h
  6272. * src/PiecedSegment.cc
  6273. * src/PiecedSegment.h
  6274. * src/Segment.h
  6275. * test/PieceTest.cc
  6276. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6277. Try to keep the ordering of outgoing piece message.
  6278. * src/DefaultBtMessageDispatcher.cc
  6279. (DefaultBtMessageDispatcher::sendMessages)
  6280. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6281. Fixed busy loop when error/hup epoll events occur.
  6282. * src/AbstractCommand.cc
  6283. * src/PeerAbstractCommand.cc
  6284. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6285. Added --bt-request-peer-speed-limit option, which was a constant
  6286. SLOW_SPEED_THRESHOLD.
  6287. * src/ActivePeerConnectionCommand.cc
  6288. * src/ActivePeerConnectionCommand.h
  6289. * src/BtConstants.h
  6290. * src/HelpItemFactory.cc
  6291. * src/OptionHandlerFactory.cc
  6292. * src/PeerReceiveHandshakeCommand.cc
  6293. * src/option_processing.cc
  6294. * src/prefs.cc
  6295. * src/prefs.h
  6296. * src/usage_text.h
  6297. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Removed repeated call of getTopDirPath(). Instead, call it once and
  6299. cache the result.
  6300. * src/MultiDiskAdaptor.cc
  6301. * src/MultiDiskAdaptor.h
  6302. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6303. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6304. Fixed compile error on debian etch.
  6305. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6306. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6307. it is undefined.
  6308. * src/Util.cc (ULLONG_MAX)
  6309. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. Added epoll support. Use epoll if it is available. If not, use select.
  6311. When async dns is enabled in compile time, epoll support is enabled
  6312. only when aria2 is built with c-ares. This condition statement is
  6313. defined in a2io.h.
  6314. Currently aria2 supports both c-ares and ares, but ares is maintained
  6315. for quite a while and debian already has c-ares package, ares support
  6316. will be dropped in the future version.
  6317. * configure.ac
  6318. * src/AbstractCommand.cc
  6319. * src/AsyncNameResolver.cc
  6320. * src/AsyncNameResolver.h
  6321. * src/Command.cc
  6322. * src/Command.h
  6323. * src/DownloadEngine.cc
  6324. * src/DownloadEngine.h
  6325. * src/PeerAbstractCommand.cc
  6326. * src/SocketCore.cc
  6327. * src/SocketCore.h
  6328. * src/a2io.h
  6329. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6330. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6331. directive.
  6332. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6333. Do not do write operation to /dev/null file.
  6334. * src/LogFactory.cc
  6335. * src/SimpleLogger.cc
  6336. Replaced vasprintf with vsnprintf
  6337. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6338. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. * src/BtRequestMessage.cc
  6340. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6341. for segmentation fault caused by previous commit.
  6342. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6343. Reduced the usage of gettimeofday().
  6344. * src/DefaultBtMessageDispatcher.cc
  6345. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6346. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6347. * src/RequestSlot.cc
  6348. * src/RequestSlot.h
  6349. (RequestSlot::isTimeout)
  6350. Made RequestSlot have a reference to Piece object to avoid find
  6351. Piece repeatedly.
  6352. * src/DefaultBtMessageDispatcher.cc
  6353. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6354. * src/RequestSlot.cc
  6355. * src/RequestSlot.h
  6356. (RequestSlot::getPiece)
  6357. * test/DefaultBtMessageDispatcherTest.cc
  6358. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6359. * src/TimeA2.cc
  6360. * src/TimeA2.h
  6361. (Time::difference): New function.
  6362. (Time::elapsed): Done optimization.
  6363. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6365. directive.
  6366. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6367. * src/option_processing.cc: Added missing `defined' keyword to #if
  6368. directive.
  6369. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. Bump up version number to 0.13.2+1
  6371. * src/configure.ac
  6372. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6373. Refactored broken outstanding piece handling.
  6374. * src/DefaultPieceStorage.cc
  6375. * src/DefaultPieceStorage.h
  6376. * src/Piece.cc
  6377. * src/Piece.h
  6378. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6379. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6380. name collision of static variable and predefined macro.
  6381. * src/BtContext.cc
  6382. * src/BtContext.h
  6383. * src/CookieBoxFactory.cc
  6384. * src/CookieBoxFactory.h
  6385. * src/CookieParser.cc
  6386. * src/CookieParser.h
  6387. * src/DefaultBtContext.cc
  6388. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6389. * src/RequestGroup.cc
  6390. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6391. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6392. * Release 0.13.2
  6393. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6395. * po/fr.po
  6396. * po/ja.po
  6397. * po/aria2c.pot
  6398. * po/*.po
  6399. * po/*.gmo
  6400. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Bump up version number to 0.13.2
  6402. * src/configure.ac
  6403. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6404. Refactord.
  6405. * src/RequestGroupMan.cc
  6406. (removeStoppedGroup)
  6407. (fillRequestGroupFromReserver)
  6408. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6409. Fixed compile error on Ubuntu.
  6410. * src/BtPieceMessage.cc
  6411. * src/MessageDigestHelper.cc
  6412. * src/Util.cc
  6413. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6414. Fixed compile error when configured with --disable-bittorrent
  6415. * test/DownloadHandlerFactoryTest.cc
  6416. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6417. Done make update-po
  6418. * po/aria2c.pot
  6419. * po/*.po
  6420. * po/*.gmo
  6421. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6422. Bump up version number to 0.13.2rc.
  6423. * src/configure.ac
  6424. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6425. Made option name bold. Updated SYNOPSIS to make it more readable.
  6426. * doc/aria2c.1.txt
  6427. * doc/aria2c.1
  6428. * doc/aria2c.1.html
  6429. * src/version_usage.cc
  6430. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Refactored. Use std::string instead of size and char*.
  6432. * Data.cc
  6433. * Data.h
  6434. * test/Data.cc
  6435. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6436. Added trimSelf(). Rewritten trim() to use trimSelf().
  6437. * Util.cc
  6438. * Util.h
  6439. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6441. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6442. Fixed compile error when configured with --disable-metalink.
  6443. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6444. * test/FeatureConfigTest.cc
  6445. * test/DownloadHandlerFactoryTest.cc
  6446. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. Fixed compile error when configured with --without-gnutls
  6448. --without-openssl
  6449. * src/main.cc
  6450. * test/DefaultBtProgressInfoFileTest.cc
  6451. * test/SegmentManTest.cc
  6452. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Fixed compile error with OpenSSL.
  6454. * src/IteratableChunkChecksumValidator.cc
  6455. * src/LibsslDHKeyExchange.h
  6456. * src/MessageDigestHelper.cc
  6457. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Revert the default value of --max-concurrent-downloads to 5.
  6459. Revert the default value of --metalink-servers to 5.
  6460. Man pages was also updated.
  6461. * src/option_processing.cc
  6462. * doc/aria2c.1.txt
  6463. * doc/aria2c.1.html
  6464. * doc/aria2c.1
  6465. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6466. Returns const reference:
  6467. DownloadContext::getPieceHash, DownloadContext::getName,
  6468. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6469. BtContext::getInfoHashAsString,
  6470. * src/BtContext.h
  6471. * src/DefaultBtContext.cc
  6472. * src/DefaultBtContext.h
  6473. * src/DownloadContext.h
  6474. * src/SingleFileDownloadContext.h
  6475. * test/MockBtContext.h
  6476. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6477. * src/RequestGroup.h (getDir): Removed.
  6478. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6479. Returns const reference. The internal urlencode function was optimized
  6480. a little bit.
  6481. * src/Request.cc
  6482. * src/Request.h
  6483. * src/HttpRequest.cc
  6484. * src/HttpRequest.h
  6485. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6486. Defined option name and possible values as std::string to reduce
  6487. temporary string object creation in runtime.
  6488. * src/HelpItemFactory.cc
  6489. * src/LogFactory.cc
  6490. * src/Option.cc
  6491. * src/OptionHandlerFactory.cc
  6492. * src/option_processing.cc
  6493. * src/prefs.cc
  6494. * src/prefs.h
  6495. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6496. Return const reference.
  6497. * src/DownloadHandlerConstants.cc
  6498. * src/DownloadHandlerConstants.h
  6499. (getMetalinkExtensions)
  6500. (getMetalinkContentTypes)
  6501. (getBtExtensions)
  6502. (getBtContentTypes)
  6503. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6504. * src/HttpHeader.cc (get): Rewritten.
  6505. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Make HttpHeader::getFirst(...) return const reference.
  6507. * src/HttpHeader.cc
  6508. * src/HttpHeader.h
  6509. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6511. it with V_TRUE.
  6512. * src/DefaultPieceStorage.cc
  6513. * src/DownloadCommand.cc
  6514. * src/FtpNegotiationCommand.cc
  6515. * src/HttpRequest.cc
  6516. * src/InitiateConnectionCommand.cc
  6517. * src/RequestGroup.cc
  6518. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6519. Made Option::get(...) return const reference of std::string.
  6520. * src/Option.cc
  6521. * src/Option.h
  6522. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6523. Replaced std:copy with insert.
  6524. * src/DefaultBtMessageDispatcher.cc
  6525. * src/DefaultPieceStorage.cc
  6526. * src/DownloadEngineFactory.cc
  6527. * src/RequestGroup.cc
  6528. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6529. Included SocketCore.h to fix compiler warning.
  6530. * src/InitiateConnectionCommand.cc
  6531. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6532. Put piece selection strategy algorithm to RarestPieceSelector class,
  6533. Added a switch to choose whether randomized selection so that unit
  6534. tests emit same results in, possibly, win32.
  6535. * src/DefaultPieceStorage.cc
  6536. * src/DefaultPieceStorage.h
  6537. * src/RarestPieceSelector.cc
  6538. * src/RarestPieceSelector.h
  6539. * test/DefaultPieceStorageTest.cc
  6540. * test/RarestPieceSelectorTest.cc
  6541. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6542. Don't pool connection if HTTP proxy is enabled.
  6543. * src/FtpFinishDownloadCommand.cc
  6544. * src/FtpNegotiationCommand.cc
  6545. * src/HttpSkipResponseCommand.cc
  6546. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6548. * src/AbstractCommand.cc
  6549. * src/AbstractCommand.h
  6550. * src/ActivePeerConnectionCommand.cc
  6551. * src/FtpInitiateConnectionCommand.cc
  6552. * src/HttpInitiateConnectionCommand.cc
  6553. * src/InitiateConnectionCommandFactory.cc
  6554. * src/PeerAbstractCommand.cc
  6555. * src/PeerAbstractCommand.h
  6556. * src/PeerInitiateConnectionCommand.cc
  6557. * src/TrackerWatcherCommand.cc
  6558. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6559. Sort RequestSlot in ascending order and manipulate them using
  6560. lower_bound.
  6561. * src/DefaultBtMessageDispatcher.cc
  6562. * src/DefaultBtMessageDispatcher.h
  6563. (getMessageQueue): Added const qualifier.
  6564. (getRequestSlots): Added const qualifier.
  6565. (sendMessages): Use empty() instead of size().
  6566. (doCancelSendingPieceAction): Use HandleEvent object.
  6567. (doAbortOutstandingRequestAction): Rewritten.
  6568. (doChokedAction): Rewritten.
  6569. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6570. (isOutstandingRequest): Rewritten.
  6571. (getOutstandingRequest): Rewritten.
  6572. (removeOutstandingRequest): Rewritten.
  6573. (addOutstandingRequest): Rewritten.
  6574. * src/RequestSlot.cc
  6575. * src/RequestSlot.h
  6576. (operator=): Rewritten.
  6577. (operator!=): New function.
  6578. (operator<): New function.
  6579. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6580. * src/DefaultBtRequestFactory.cc
  6581. (doChokedAction): Rewritten.
  6582. (removeCompletedPiece): Rewritten.
  6583. (removeTargetPiece): Rewritten.
  6584. (createRequestMessages): Added the debug log.
  6585. (createRequestMessagesOnEndGame: Added the debug log.
  6586. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6587. Added the debug log message.
  6588. * src/BtPieceMessage.cc (doReceivedAction)
  6589. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6591. used lower_bound to process them rather than linear search.
  6592. * src/DHTPeerAnnounceStorage.cc
  6593. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6595. peer has at least one completed piece.
  6596. * src/Peer.cc
  6597. * src/Peer.h
  6598. * src/PeerInteractionCommand.cc
  6599. * src/PeerSessionResource.cc
  6600. * src/PeerSessionResource.h
  6601. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Removed unnecessary sorting
  6603. * src/DefaultPieceStorage (DefaultPieceStorage)
  6604. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6605. Rewritten the portion of the code that mangaes allowed fast indexes.
  6606. * src/PeerSessionResource.cc
  6607. * src/PeerSessionResource.h
  6608. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6609. Removed the invalid string including '\r' from ru.po and
  6610. did make update-po.
  6611. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Added --log-level and --summary-interval to man page.
  6613. * doc/aria2c.1.txt
  6614. * doc/aria2c.1.html
  6615. * doc/aria2c.1
  6616. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6617. Added --log-level option to specify log level. Log messages under
  6618. the specified level are not output. Default value is `debug'.
  6619. * src/HelpItemFactory.cc
  6620. * src/LogFactory.cc
  6621. * src/LogFactory.h
  6622. * src/Logger.h
  6623. * src/OptionHandlerFactory.cc
  6624. * src/SimpleLogger.cc
  6625. * src/SimpleLogger.h
  6626. * src/main.cc
  6627. * src/option_processing.cc
  6628. * src/prefs.h
  6629. * src/usage_text.h
  6630. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6631. Print download progress summary of all parallel downloads in specified
  6632. interval, default 60 secs. While aria2 could download several files
  6633. in parallel (see -j option), it displayed just first download progress,
  6634. and the other downloads are hidden from the users. This new feature
  6635. prints all downloads currently in-progress to the console so that you
  6636. can check the status of all downloads. The interval can be adjusted
  6637. by --summary-interval option.
  6638. The progress readout is now cut so that all fits in the one line of
  6639. console.
  6640. * src/ConsoleStatCalc.cc
  6641. * src/ConsoleStatCalc.h
  6642. * src/HelpItemFactory.cc
  6643. * src/OptionHandlerFactory.cc
  6644. * src/RequestGroupMan.cc
  6645. * src/RequestGroupMan.h
  6646. * src/main.cc
  6647. * src/option_processing.cc
  6648. * src/prefs.h
  6649. * src/usage_text.h
  6650. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6652. * src/DownloadEngine.cc (DownloadEngine)
  6653. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6654. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6655. defined.
  6656. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6657. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6658. Use erase+lower_bound+insert instead of sort.
  6659. * src/DefaultPieceStorage.cc (addPieceStats)
  6660. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6661. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6662. * src/A2STR.cc
  6663. * src/A2STR.h
  6664. * src/OptionParser.cc (parse)
  6665. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6666. Defined fake filename `[tracker.announce]' as static const std::string.
  6667. * src/TrackerWatcherCommand.cc (createRequestGroup)
  6668. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6669. Defined default filename `index.html' as static const std::string
  6670. * src/SingleFileDownloadContext.cc
  6671. * src/SingleFileDownloadContext.h
  6672. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6673. Defined "[MEMORY]" as static const std::string.
  6674. * src/MemoryBufferPreDownloadHandler.cc (execute)
  6675. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6676. Defined control file's version number as static const std::string.
  6677. * src/DefaultBtProgressInfoFile.cc
  6678. * src/DefaultBtProgressInfoFile.h
  6679. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6680. Use Request::METHOD_GET
  6681. * src/RequestGroup.cc (createNextCommandWithAdj)
  6682. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6683. Defined "OK", "ERR", "INPR" as static const std::string
  6684. * src/RequestGroupMan.cc (showDownloadResults)
  6685. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6686. Defined default client used in extended handshake as static const
  6687. std::string
  6688. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  6689. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  6691. * src/HttpConnection.cc (eraseConfidentialInfo)
  6692. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6693. Defined default ftp user and password as static const std::string
  6694. * src/AuthConfigFactory.cc
  6695. * src/AuthConfigFactory.h
  6696. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Defined strings used in netrc as static const std::string
  6698. * src/Netrc.cc
  6699. * src/Netrc.h
  6700. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Defined HTTP status as static const std::string
  6702. * src/AbstractProxyResponseCommand.cc
  6703. * src/HttpHeader.cc
  6704. * src/HttpHeader.h
  6705. * src/HttpResponse.cc
  6706. * src/HttpResponseCommand.cc
  6707. * src/HttpSkipResponseCommand.cc
  6708. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Defined "\r\n", "A", "I" as static const std::string
  6710. * src/A2STR.cc
  6711. * src/A2STR.h
  6712. * src/FtpConnection.cc
  6713. * src/FtpConnection.h
  6714. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6715. Added COLON_C(".") and used it in Request::parseUrl()
  6716. * src/A2STR.cc
  6717. * src/A2STR.h
  6718. * src/Request.cc (parseUrl)
  6719. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Changed the type of padName from `const std::string&' to `const char*'.
  6721. * src/MSEHandshake.cc (verifyPadLength)
  6722. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. Defined "sha1" as static const std::string.
  6724. * src/MetalinkParserController.cc
  6725. * src/MetalinkParserController.h
  6726. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. Defined message digest algorithm name as static const std::string
  6728. * src/DHTTokenTracker.cc
  6729. * src/DHTUtil.cc
  6730. * src/DefaultBtContext.cc
  6731. * src/MSEHandshake.cc
  6732. * src/MessageDigestHelper.cc
  6733. * src/Peer.cc
  6734. * src/messageDigest.cc
  6735. * src/messageDigest.h
  6736. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6737. Made string literals used in SAX parser static const std::string.
  6738. * src/FileMetalinkParserState.cc
  6739. * src/FileMetalinkParserState.h
  6740. * src/FilesMetalinkParserState.cc
  6741. * src/FilesMetalinkParserState.h
  6742. * src/InitialMetalinkParserState.cc
  6743. * src/InitialMetalinkParserState.h
  6744. * src/MetalinkMetalinkParserState.cc
  6745. * src/MetalinkMetalinkParserState.h
  6746. * src/PiecesMetalinkParserState.cc
  6747. * src/PiecesMetalinkParserState.h
  6748. * src/ResourcesMetalinkParserState.cc
  6749. * src/ResourcesMetalinkParserState.h
  6750. * src/VerificationMetalinkParserState.cc
  6751. * src/VerificationMetalinkParserState.h
  6752. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6754. * src/A2STR.cc
  6755. * src/A2STR.h
  6756. * src/File.cc
  6757. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6758. Defined static const std::string IP("ip"), PORT("port") and use them
  6759. instead of string literals.
  6760. * src/DefaultPeerListProcessor.cc
  6761. * src/DefaultPeerListProcessor.h
  6762. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Made string literals for torrent file processing static const
  6764. std::string.
  6765. * src/BtContext.cc
  6766. * src/BtContext.h
  6767. * src/DefaultBtContext.cc
  6768. * src/DefaultBtContext.h
  6769. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6770. Made string literal for tracker response static const std::string
  6771. * src/BtAnnounce.cc
  6772. * src/BtAnnounce.h
  6773. * src/DefaultBtAnnounce.cc
  6774. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Use DHTMessage::T instead of "t".
  6776. * src/DHTMessageTracker.cc (messageArrived)
  6777. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6778. Made keyName static const. Made trimmed charset static const
  6779. std::string.
  6780. * src/Util.cc (getContentDispositionFilename)
  6781. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6782. Made USER_AGENT const. Made "/" static const std::string.
  6783. * src/A2STR.cc
  6784. * src/A2STR.h
  6785. * src/HttpRequest.cc
  6786. * src/HttpRequest.h
  6787. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Made string listeral to static const std::string:
  6789. "Content-Range", "Content-Length"
  6790. * src/HttpHeader.cc
  6791. * src/HttpHeader.h
  6792. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Made string listeral to static const std::string.
  6794. * src/HttpConnection.cc
  6795. * src/HttpHeader.cc
  6796. * src/HttpHeader.h
  6797. * src/HttpResponse.cc
  6798. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6799. Made string listeral to static const std::string.
  6800. * src/A2STR.cc
  6801. * src/A2STR.h
  6802. * src/SimpleLogger.cc
  6803. * src/SimpleLogger.h
  6804. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6805. Made string literal to static const std::string.
  6806. Rewritten CookieParser::setField.
  6807. * src/A2STR.cc
  6808. * src/A2STR.h
  6809. * src/CookieBoxFactory.cc
  6810. * src/CookieBoxFactory.h
  6811. * src/CookieParser.cc
  6812. * src/CookieParser.h
  6813. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Made string literal to static const std::string
  6815. * src/DHTAbstractMessage.cc
  6816. * src/DHTAnnouncePeerMessage.cc
  6817. * src/DHTAnnouncePeerMessage.h
  6818. * src/DHTAnnouncePeerReplyMessage.cc
  6819. * src/DHTAnnouncePeerReplyMessage.h
  6820. * src/DHTFindNodeMessage.cc
  6821. * src/DHTFindNodeMessage.h
  6822. * src/DHTFindNodeReplyMessage.cc
  6823. * src/DHTFindNodeReplyMessage.h
  6824. * src/DHTGetPeersMessage.cc
  6825. * src/DHTGetPeersMessage.h
  6826. * src/DHTGetPeersReplyMessage.cc
  6827. * src/DHTGetPeersReplyMessage.h
  6828. * src/DHTMessage.cc
  6829. * src/DHTMessage.h
  6830. * src/DHTMessageFactoryImpl.cc
  6831. * src/DHTMessageReceiver.cc
  6832. * src/DHTPingMessage.cc
  6833. * src/DHTPingMessage.h
  6834. * src/DHTPingReplyMessage.cc
  6835. * src/DHTPingReplyMessage.h
  6836. * src/DHTQueryMessage.cc
  6837. * src/DHTQueryMessage.h
  6838. * src/DHTResponseMessage.cc
  6839. * src/DHTResponseMessage.h
  6840. * src/DHTUnknownMessage.cc
  6841. * src/DHTUnknownMessage.h
  6842. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6843. Made string literal to static const std::string
  6844. * src/BtChokeMessage.cc (toString)
  6845. * src/BtHaveAllMessage.cc (toString)
  6846. * src/BtHaveNoneMessage.cc (toString)
  6847. * src/BtInterestedMessage.cc (toString)
  6848. * src/BtNotInterestedMessage.cc (toString)
  6849. * src/BtUnchokeMessage.cc (toString)
  6850. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. Replaced "" with static const variable A2STR::NIL.
  6852. Replaced string comparison against "" with std::string::empty().
  6853. Added PROTO_* to Request class and use them as a protocol string
  6854. constant.
  6855. Made "started", "stopped", "completed" static const variable in
  6856. AnnounceList class.
  6857. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6858. Updated translations. Great thanks to translators.
  6859. * po/ca.po
  6860. * po/de.po
  6861. * po/fr.po
  6862. * po/it.po
  6863. * po/ja.po
  6864. * po/ru.po
  6865. * po/zh_CN.po
  6866. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. Updated man page; categorized options and fixed typo.
  6868. * doc/aria2c.1.txt
  6869. * doc/aria2c.1.html
  6870. * doc/aria2c.1
  6871. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Removed const ref
  6873. * src/MetalinkEntry.cc (AddProtocolPreference)
  6874. * src/RequestGroup.cc (FindServerHostByHostname)
  6875. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Rewritten Accept-Features handling.
  6877. * src/HttpRequestCommand.cc (createHttpRequest)
  6878. * src/a2functional.h
  6879. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Changed method signature:
  6881. DHTAbstractNodeLookupTask::toEntries
  6882. * src/DHTAbstractNodeLookupTask.cc
  6883. * src/DHTAbstractNodeLookupTask.h
  6884. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Changed method signature:
  6886. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6887. * src/BtContext.h
  6888. * src/DefaultBtContext.cc
  6889. * src/DefaultBtContext.h
  6890. * src/DefaultBtInteractive.cc
  6891. * test/DefaultBtContextTest.cc
  6892. * test/MockBtContext.h
  6893. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Changed method signature:
  6895. MultiFileAllocationIterator::makeDiskWriterEntries
  6896. * src/MultiFileAllocationIterator.cc
  6897. * src/MultiFileAllocationIterator.h
  6898. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6899. Changed method sinature:
  6900. MetalinkEntry::toFileEntry,
  6901. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6902. Metalinker::queryEntry
  6903. * src/Metalink2RequestGroup.cc
  6904. * src/MetalinkEntry.cc
  6905. * src/MetalinkEntry.h
  6906. * src/MetalinkHelper.cc
  6907. * src/MetalinkHelper.h
  6908. * src/Metalinker.cc
  6909. * src/Metalinker.h
  6910. * src/main.cc
  6911. * test/MetalinkHelperTest.cc
  6912. * test/MetalinkerTest.cc
  6913. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6914. Changed method sinature:
  6915. RequestGroup::getURIs
  6916. * src/RequestGroup.cc
  6917. * src/RequestGroup.h
  6918. * test/Metalink2RequestGroupTest.cc
  6919. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Changed method signature:
  6921. PeerListProcessor::extractPeer
  6922. * src/CompactPeerListProcessor.cc
  6923. * src/CompactPeerListProcessor.h
  6924. * src/DefaultBtAnnounce.cc
  6925. * src/DefaultPeerListProcessor.cc
  6926. * src/DefaultPeerListProcessor.h
  6927. * src/DelegatingPeerListProcessor.cc
  6928. * src/DelegatingPeerListProcessor.h
  6929. * src/PeerListProcessor.h
  6930. * src/UTPexExtensionMessage.cc
  6931. * test/DefaultPeerListProcessorTest.cc
  6932. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6933. Changed method signature:
  6934. BtRequestFactory::createRequestMessages,
  6935. BtRequestFactory::createRequestMessagesOnEndGame
  6936. * src/BtRequestFactory.h
  6937. * src/DefaultBtInteractive.cc
  6938. * src/DefaultBtRequestFactory.cc
  6939. * src/DefaultBtRequestFactory.h
  6940. * test/DefaultBtRequestFactoryTest.cc
  6941. * test/MockBtRequestFactory.h
  6942. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6943. Changed method signature:
  6944. PieceStorage::getInFlightPieces
  6945. * src/DefaultBtProgressInfoFile.cc
  6946. * src/DefaultPieceStorage.cc
  6947. * src/DefaultPieceStorage.h
  6948. * src/PieceStorage.h
  6949. * src/UnknownLengthPieceStorage.cc
  6950. * src/UnknownLengthPieceStorage.h
  6951. * test/DefaultBtProgressInfoFileTest.cc
  6952. * test/MockPieceStorage.h
  6953. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6954. Changed method signature:
  6955. PostDownloadHandler::getNextRequestGroups
  6956. Metalink2RequestGroup::generate
  6957. RequestGroup::postDownloadProcessing
  6958. * src/BtPostDownloadHandler.cc
  6959. * src/BtPostDownloadHandler.h
  6960. * src/Metalink2RequestGroup.cc
  6961. * src/Metalink2RequestGroup.h
  6962. * src/MetalinkPostDownloadHandler.cc
  6963. * src/MetalinkPostDownloadHandler.h
  6964. * src/PostDownloadHandler.h
  6965. * src/RequestGroup.cc
  6966. * src/RequestGroup.h
  6967. * src/RequestGroupMan.cc
  6968. * src/main.cc
  6969. * test/BtPostDownloadHandlerTest.cc
  6970. * test/Metalink2RequestGroupTest.cc
  6971. * test/MetalinkPostDownloadHandlerTest.cc
  6972. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. Rewritten AccRequestGroup
  6974. * src/main.cc
  6975. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Rewritten.
  6977. * src/TaggedItem.cc (toTagString)
  6978. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6979. Rewritten Accept-Features handling.
  6980. * src/HttpRequestCommand.cc (createHttpRequest)
  6981. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6982. Rewritten accept types handling.
  6983. * HttpRequest.cc (createRequest)
  6984. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6985. Rewritten
  6986. * src/FeatureConfig.cc (featureSummary)
  6987. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Changed method signature:
  6989. PeerStorage::getActivePeers
  6990. * src/DHTPeerAnnounceEntry.cc
  6991. * src/DefaultPeerStorage.cc
  6992. * src/DefaultPeerStorage.h
  6993. * src/PeerStorage.h
  6994. * test/DefaultPeerStorageTest.cc
  6995. * test/MockPeerStorage.h
  6996. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6997. Changed method signature:
  6998. DHTPeerAnnounceStorage::getPeers,
  6999. DHTPeerAnnounceEntry::getPeers
  7000. * src/DHTGetPeersMessage.cc
  7001. * src/DHTPeerAnnounceEntry.cc
  7002. * src/DHTPeerAnnounceEntry.h
  7003. * src/DHTPeerAnnounceStorage.cc
  7004. * src/DHTPeerAnnounceStorage.h
  7005. * test/DHTAnnouncePeerMessageTest.cc
  7006. * test/DHTPeerAnnounceEntryTest.cc
  7007. * test/DHTPeerAnnounceStorageTest.cc
  7008. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Changed method signature:
  7010. NameResolver::resolve
  7011. * src/DHTEntryPointNameResolveCommand.cc
  7012. * src/InitiateConnectionCommand.cc
  7013. * src/NameResolver.cc
  7014. * src/NameResolver.h
  7015. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Changed method signature:
  7017. PieceStorage::getAdvertisedPieceIndexes
  7018. * src/DefaultBtInteractive.cc
  7019. * src/DefaultPieceStorage.cc
  7020. * src/DefaultPieceStorage.h
  7021. * src/PieceStorage.h
  7022. * src/UnknownLengthPieceStorage.h
  7023. * test/MockPieceStorage.h
  7024. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. Changed method signature:
  7026. SegmentMan::getInFlightSegment
  7027. * src/AbstractCommand.cc
  7028. * src/SegmentMan.cc
  7029. * src/SegmentMan.h
  7030. * test/SegmentManTest.cc
  7031. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7032. Changed method signature:
  7033. DHTAbstractNodeLookupTask::getNodesFromMessage
  7034. * src/DHTAbstractNodeLookupTask.cc
  7035. * src/DHTAbstractNodeLookupTask.h
  7036. * src/DHTNodeLookupTask.cc
  7037. * src/DHTNodeLookupTask.h
  7038. * src/DHTPeerLookupTask.cc
  7039. * src/DHTPeerLookupTask.h
  7040. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7041. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7042. * src/AbstractCommand.cc
  7043. * src/BtCheckIntegrityEntry.cc
  7044. * src/BtCheckIntegrityEntry.h
  7045. * src/BtFileAllocationEntry.cc
  7046. * src/BtFileAllocationEntry.h
  7047. * src/BtSetup.cc
  7048. * src/BtSetup.h
  7049. * src/CheckIntegrityCommand.cc
  7050. * src/CheckIntegrityEntry.h
  7051. * src/ChecksumCheckIntegrityEntry.cc
  7052. * src/ChecksumCheckIntegrityEntry.h
  7053. * src/DHTSetup.cc
  7054. * src/DHTSetup.h
  7055. * src/DownloadEngine.cc
  7056. * src/FileAllocationCommand.cc
  7057. * src/FileAllocationEntry.h
  7058. * src/RequestGroup.cc
  7059. * src/RequestGroup.h
  7060. * src/RequestGroupMan.cc
  7061. * src/RequestGroupMan.h
  7062. * src/StreamCheckIntegrityEntry.cc
  7063. * src/StreamCheckIntegrityEntry.h
  7064. * src/StreamFileAllocationEntry.cc
  7065. * src/StreamFileAllocationEntry.h
  7066. * src/TrackerWatcherCommand.cc
  7067. * src/a2functional.h
  7068. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7069. Changed method signature:
  7070. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7071. DHTBucket::getGoodNodes,
  7072. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7073. * src/BNode.cc
  7074. * src/BNode.h
  7075. * src/DHTAbstractNodeLookupTask.cc
  7076. * src/DHTAutoSaveCommand.cc
  7077. * src/DHTBucket.cc
  7078. * src/DHTBucket.h
  7079. * src/DHTBucketRefreshTask.cc
  7080. * src/DHTFindNodeMessage.cc
  7081. * src/DHTGetPeersMessage.cc
  7082. * src/DHTRoutingTable.cc
  7083. * src/DHTRoutingTable.h
  7084. * test/BNodeTest.cc
  7085. * test/DHTBucketTest.cc
  7086. * test/DHTRoutingTableTest.cc
  7087. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. In piece selection functions, Pass std::deque<...> by reference rather
  7089. than returning it.
  7090. * src/BitfieldMan.cc
  7091. * src/BitfieldMan.h
  7092. * src/DefaultBtRequestFactory.cc
  7093. * src/DefaultPieceStorage.cc
  7094. * src/Piece.cc
  7095. * src/Piece.h
  7096. * test/BitfieldManTest.cc
  7097. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Implemented rarest piece first piece selection strategy.
  7099. * src/AbstractBtMessage.cc
  7100. * src/AbstractBtMessage.h
  7101. * src/BitfieldMan.cc
  7102. * src/BitfieldMan.h
  7103. * src/BtBitfieldMessage.cc
  7104. * src/BtHaveAllMessage.cc
  7105. * src/BtHaveMessage.cc
  7106. * src/DefaultPieceStorage.cc
  7107. * src/DefaultPieceStorage.h
  7108. * src/PeerInteractionCommand.cc
  7109. * src/PieceStorage.h
  7110. * src/UnknownLengthPieceStorage.h
  7111. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7112. Rewritten readData and writeData.
  7113. * src/MultiDiskAdaptor.cc
  7114. * src/MultiDiskAdaptor.h
  7115. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Move \n out of the message "Usage: ...".
  7117. * src/version_usage.cc
  7118. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Bump up version number to 0.13.2b.
  7120. * configure.ac
  7121. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Added const qualifier to argument Exception& e.
  7123. * src/Logger.h
  7124. * src/SimpleLogger.cc
  7125. * src/SimpleLogger.h
  7126. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. Pool connection when CWD, SIZE command fails.
  7128. * src/FtpNegotiationCommand.cc
  7129. * src/FtpNegotiationCommand.h
  7130. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7132. * src/HttpResponseCommand.cc
  7133. * src/HttpSkipResponseCommand.cc
  7134. * src/HttpSkipResponseCommand.h
  7135. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7136. Pool connection when a server returns 4xx, 5xx responses.
  7137. * src/HttpNullDownloadCommand.cc
  7138. * src/HttpNullDownloadCommand.h
  7139. * src/HttpResponse.cc
  7140. * src/HttpResponse.h
  7141. * src/HttpResponseCommand.cc
  7142. * src/HttpResponseCommand.h
  7143. * test/HttpResponseTest.cc
  7144. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Print usage when no URL is specifed or bad command-line option is
  7146. specified.
  7147. * src/HelpItemFactory.cc
  7148. * src/help_tags.h
  7149. * src/option_processing.cc
  7150. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7151. Removed duplicate log message.
  7152. * src/AbstractCommand.cc (asyncResolveHostname)
  7153. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7155. Changed -j option's default value from 5 to 1.
  7156. Added new examples using protocol auto detection feature.
  7157. Removed -T, -M usage where it can be omitted.
  7158. * doc/aria2c.1.txt
  7159. * doc/aria2c.1.html
  7160. * doc/aria2c.1.txt
  7161. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Updated command-line usage text, so that it tells users that they
  7163. can specify any number of torrent files and metalink files in
  7164. command-line.
  7165. * src/version_usage.cc
  7166. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Changed the default value of -j option to 1.
  7168. * src/HelpItemFactory.cc
  7169. * src/option_processing.cc
  7170. * src/usage_text.h
  7171. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7172. Added the ability to reuse connection in FTP and it is enabled by
  7173. default. It can be disabled by --ftp-reuse-connection=false option.
  7174. * src/Command.cc
  7175. * src/DownloadCommand.cc
  7176. * src/FtpDownloadCommand.cc
  7177. * src/FtpDownloadCommand.h
  7178. * src/FtpFinishDownloadCommand.cc
  7179. * src/FtpFinishDownloadCommand.h
  7180. * src/FtpInitiateConnectionCommand.cc
  7181. * src/FtpNegotiationCommand.cc
  7182. * src/FtpNegotiationCommand.h
  7183. * src/HelpItemFactory.cc
  7184. * src/Makefile.am
  7185. * src/Makefile.in
  7186. * src/OptionHandlerFactory.cc
  7187. * src/option_processing.cc
  7188. * src/prefs.h
  7189. * src/usage_text.h
  7190. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7191. Call Command::transitStatus() before calling Command::execute(),
  7192. so that the status change made in execute() is not cleared.
  7193. * src/DownloadEngine.cc
  7194. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. Removed forward declaration of SocketCore class.
  7196. * src/HttpDownloadCommand.h
  7197. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7199. in InitiateConnectionCommandFactory. They should be set only when
  7200. the protocol is HTTP or HTTPS.
  7201. * src/InitiateConnectionCommandFactory.cc
  7202. * src/RequestGroup.cc
  7203. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Fixed infinite loop in checksum checking.
  7205. * src/IteratableChecksumValidator.cc
  7206. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7207. Set _supportsPersistentConnection to true by default.
  7208. * src/Request.cc
  7209. * src/RequestGroup.cc
  7210. * test/HttpRequestTest.cc
  7211. * test/RequestTest.cc
  7212. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Added timeout to socket pool. The default timeout is 15 seconds,
  7214. which is the same value Apache uses.
  7215. * src/DownloadEngine.cc
  7216. * src/DownloadEngine.h
  7217. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Fixed misuse of multimap::find()
  7219. * src/HttpHeader.cc
  7220. * test/HttpHeaderTest.cc
  7221. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7223. option.
  7224. The asynchronous DNS is not capable of IPv6 yet.
  7225. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7226. least for HTTP download.
  7227. * src/AbstractCommand.cc
  7228. * src/AbstractCommand.h
  7229. * src/AsyncNameResolver.cc
  7230. * src/AsyncNameResolver.h
  7231. * src/DHTEntryPointNameResolveCommand.cc
  7232. * src/DHTEntryPointNameResolveCommand.h
  7233. * src/DownloadEngine.cc
  7234. * src/DownloadEngine.h
  7235. * src/FtpInitiateConnectionCommand.cc
  7236. * src/FtpInitiateConnectionCommand.h
  7237. * src/HelpItemFactory.cc
  7238. * src/HttpInitiateConnectionCommand.cc
  7239. * src/HttpInitiateConnectionCommand.h
  7240. * src/InitiateConnectionCommand.cc
  7241. * src/InitiateConnectionCommand.h
  7242. * src/Makefile.am
  7243. * src/Makefile.in
  7244. * src/NameResolver.cc
  7245. * src/NameResolver.h
  7246. * src/OptionHandlerFactory.cc
  7247. * src/SocketCore.cc
  7248. * src/SocketCore.h
  7249. * src/Util.cc
  7250. * src/Util.h
  7251. * src/option_processing.cc
  7252. * src/prefs.h
  7253. * src/usage_text.h
  7254. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Updated man page: --quiet, --header were added.
  7256. --metalink-servers and --enable-http-keep-alive option were updated.
  7257. * doc/aria2c.1
  7258. * doc/aria2c.1.html
  7259. * doc/aria2c.1.txt
  7260. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7261. Enable HTTP keep-alive by default.
  7262. * src/HelpItemFactory.cc
  7263. * src/option_processing.cc
  7264. * src/usage_text.h
  7265. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Disable http keep-alive if the remote server is not HTTP/1.1.
  7267. * src/HttpConnection.cc
  7268. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Receive content body of 302 response so that the connection can be
  7270. reused later when http keep-alive is enabled.
  7271. * src/HttpNullDownloadCommand.cc
  7272. * src/HttpNullDownloadCommand.h
  7273. * src/HttpResponseCommand.cc
  7274. * src/HttpResponseCommand.h
  7275. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. const SharedHandle<Request> -> const SharedHandle<Request>&
  7277. * src/FtpDowndloadCommand.cc
  7278. * src/FtpDowndloadCommand.h
  7279. * src/HttpDownloadCommand.cc
  7280. * src/HttpDownloadCommand.h
  7281. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. Fixed the bug that the control file(.aria2 file) is not renamed
  7283. according to tryAutoFileRenaming().
  7284. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7285. its control file exist, use them and continue download.
  7286. The old implementation didn't take into account of control file's
  7287. existence, so basically you couldn't continue download of renamed file.
  7288. * src/BtProgressInfoFile.h
  7289. * src/DefaultBtProgressInfoFile.cc
  7290. * src/DefaultBtProgressInfoFile.h
  7291. * src/NullProgressInfoFile.h
  7292. * src/RequestGroup.cc
  7293. * test/DefaultBtProgressInfoFileTest.cc
  7294. * test/MockBtProgressInfoFile.h
  7295. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7296. Change the default value of --metalink-servers option from `5' to `1'.
  7297. * src/HelpItemFactory.cc
  7298. * src/option_processing.cc
  7299. * src/usage_text.h
  7300. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7301. Reimplemented transparent metalink using Accept request header.
  7302. * src/HttpRequest.cc
  7303. * src/HttpRequest.h
  7304. * src/HttpRequestCommand.cc
  7305. * src/Metalink2RequestGroup.cc
  7306. * src/RequestGroup.cc
  7307. * src/RequestGroup.h
  7308. * test/HttpRequestTest.cc
  7309. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7310. Bump up version number to 0.13.2a
  7311. * configure.ac
  7312. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. Updated configure.ac using the result of autoscan.
  7314. * configure.ac
  7315. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7316. Fixed compilation error without gcrypt/openssl.
  7317. * src/DownloadCommand.cc
  7318. * src/DownloadCommand.h
  7319. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. Reorganized version information so that it can be displayed in a
  7321. standard terminal screen without scrolling.
  7322. Removed http, ftp from Configuration section, because they are always
  7323. enabled.
  7324. * src/FeatureConfig.cc
  7325. * src/FeatureConfig.h
  7326. * src/main.cc
  7327. * src/messageDigest.cc
  7328. * src/messageDigest.h
  7329. * src/version_usage.cc
  7330. * test/FeatureConfigTest.cc
  7331. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7332. Masked user ID in log.
  7333. * src/FtpConnection.cc (sendUser)
  7334. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Removed query part from filename in HTTP download. The query part means
  7336. the substring after "?" in URL. Firefox seems do the same thing.
  7337. A query part is sometimes very long and not suitable to filename,
  7338. so I think it is better to remove it from filename.
  7339. * src/HttpRequest.cc
  7340. * src/HttpRequest.h
  7341. * src/Request.cc
  7342. * src/Request.h
  7343. * test/HttpRequestTest.cc
  7344. * test/RequestTest.cc
  7345. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Rewritten Exception class. Throw exception object, not its pointer and
  7347. catch by reference, so that remove problematic delete operator for
  7348. catched exception.
  7349. * src/Exception.cc
  7350. * src/Exception.h
  7351. * test/ExceptionTest.cc
  7352. * src/*: All files throwing/catching exception.
  7353. * test/*: All files throwing/catching exception.
  7354. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7355. Now auto protocol detection is enabled without -Z option.
  7356. But there is a important difference between with/without -Z optoin.
  7357. For example, if you type:
  7358. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7359. then, aria2 interprets there are 3 request groups:
  7360. (1) http://host/file, http://mirror/file <-- multi-source download
  7361. (2) file1.torrent
  7362. (3) file2.metalink
  7363. On the other hand, if you invoke above command with -Z option, it is
  7364. interpreted as 4 request groups:
  7365. (1) http://host/file
  7366. (2) file1.torrent
  7367. (3) file2.metalink
  7368. (4) http://mirror/file
  7369. I think usually user don't mix multi-source URLs and torrent files, so
  7370. there is no big problem here.
  7371. * src/main.cc
  7372. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7373. Fixed the bug that causes segmentaion fault when reading XML containing
  7374. unescapsed character like '&'.
  7375. Also a modification was made which avoids adding unnecessary
  7376. characters stack and appending unused string.
  7377. * src/ExpatMetalinkProcessor.cc
  7378. * src/FileMetalinkParserState.h
  7379. * src/FilesMetalinkParserState.h
  7380. * src/FinMetalinkParserState.h
  7381. * src/HashMetalinkParserState.h
  7382. * src/InitialMetalinkParserState.h
  7383. * src/LanguageMetalinkParserState.h
  7384. * src/MetalinkMetalinkParserState.h
  7385. * src/MetalinkParserState.h
  7386. * src/MetalinkParserStateMachine.cc
  7387. * src/MetalinkParserStateMachine.h
  7388. * src/OSMetalinkParserState.h
  7389. * src/PieceHashMetalinkParserState.h
  7390. * src/PiecesMetalinkParserState.h
  7391. * src/ResourcesMetalinkParserState.h
  7392. * src/SizeMetalinkParserState.h
  7393. * src/SkipTagMetalinkParserState.h
  7394. * src/URLMetalinkParserState.h
  7395. * src/VerificationMetalinkParserState.h
  7396. * src/VersionMetalinkParserState.h
  7397. * src/XML2SAXMetalinkProcessor.cc
  7398. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Added StringFormat class, which internally calls vasprintf.
  7400. operator<< is defined for this class, so it can be used with iostream
  7401. classes nicely. SimpleLogger and following functions are rewritten
  7402. using StringFormat class.
  7403. Besides, now Logger class's methods are non-const, many classes
  7404. that has a const Logger* as a member variable are modified to remove
  7405. const qualifier from the variable declaration.
  7406. * src/HelpItemFactory.cc
  7407. * src/Request.cc
  7408. * src/SimpleLogger.cc
  7409. * src/StringFormat.cc
  7410. * src/StringFormat.h
  7411. * src/Util.cc
  7412. * src/option_processing.cc
  7413. * src/version_usage.cc
  7414. * test/StringFormatTest.cc
  7415. * src/*.h: The classes that has const Logger* as a member variable.
  7416. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7418. failed. Also fixed memory link when exception is thrown there.
  7419. * src/main.cc (AccRequestGroup)
  7420. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Added build-in "Accept-Features" support. For now only "metalink" is
  7422. used in this header field.
  7423. This "metalink" value is removed from the list when connecting URLs
  7424. fed by metalink file to avoid loop in "transparent" metlaink.
  7425. * src/HttpRequest.cc
  7426. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7427. header is also held in this variable. Also renamed setUserHeaders as
  7428. addHeader and it was rewritten to add header not just to clear the old
  7429. value.
  7430. * src/HttpRequestCommand.cc
  7431. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7432. from "Accept-Features" list.
  7433. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7434. default.
  7435. * src/RequestGroup.h
  7436. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7437. * src/a2functional.h: Included <string> because Concat class depends on
  7438. it.
  7439. * test/HttpRequestTest.cc
  7440. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Added comment
  7442. * src/RequestGroup.cc (createNextCommand)
  7443. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Capitalized METHOD_GET and METHOD_HEAD
  7445. * src/Request.cc
  7446. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7447. Added getDownloadResults() method
  7448. * src/RequestGroupMan.cc
  7449. * src/RequestGroupMan.h
  7450. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7451. Fixed the bug that aria2 exits when commands is empty() but
  7452. _routineCommands are not.
  7453. * src/DownloadEngine.cc
  7454. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Use the default value pulled from Option object in HelpItemFactory.
  7456. except options whose defualt value is embedded in a usage text.
  7457. * src/HelpItemFactory.cc
  7458. * src/HelpItemFactory.h
  7459. * src/option_processing.cc
  7460. * src/version_usage.cc
  7461. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Added --quiet option to make aria2 quiet (no console output).
  7463. --quiet option is tagged with ADVANCED.
  7464. * src/HelpItemFactory.cc
  7465. * src/LogFactory.cc
  7466. * src/LogFactory.h
  7467. * src/MultiUrlRequestInfo.cc
  7468. * src/MultiUrlRequestInfo.h
  7469. * src/NullStatCalc.h: New class. This class prints nothing.
  7470. * src/OptionHandlerFactory.cc
  7471. * src/main.cc
  7472. * src/option_processing.cc
  7473. * src/prefs.h
  7474. * src/usage_text.h
  7475. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7477. * src/HelpItemFactory.cc (createHelpItems):
  7478. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7479. Fixed compilation error in ExpatMetalinkProcessor.cc
  7480. * src/ExpatMetalinkProcessor.cc
  7481. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. Reuse socket if the origin server supports HTTP keep-alive and
  7483. --enable-http-keep-alive or --enable-http-pipelining is given.
  7484. The current implementation doesn't reuse the connections established
  7485. against proxy server.
  7486. * src/AbstractCommand.cc
  7487. * src/DownloadEngine.cc
  7488. * src/DownloadEngine.h
  7489. * src/HttpDownloadCommand.cc
  7490. * src/HttpInitiateConnectionCommand.cc
  7491. * src/HttpResponseCommand.cc
  7492. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. Rewritten HTTP keep-alive and pipelining routine.
  7494. * src/AbstractCommand.cc
  7495. * src/HttpConnection.cc
  7496. * src/HttpDownloadCommand.cc
  7497. * src/HttpRequest.cc
  7498. * src/HttpRequestCommand.cc
  7499. * src/HttpResponseCommand.cc
  7500. * src/Request.cc
  7501. * src/Request.h
  7502. * src/RequestGroup.cc
  7503. * test/HttpRequestTest.cc
  7504. * test/HttpResponseTest.cc
  7505. * test/RequestTest.cc
  7506. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7507. Added missing setUserHeaders call
  7508. * src/HttpRequestCommand.cc
  7509. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7511. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7512. waste of time because it is more likey false.
  7513. * src/FileAllocationDispatcherCommand.cc (execute)
  7514. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7515. Now HTTP status and version are a member variable of HttpHeader.
  7516. HTTP status is processed as a string, not integer.
  7517. * src/AbstractProxyResponseCommand.cc
  7518. * src/HttpConnection.cc
  7519. * src/HttpHeader.cc
  7520. * src/HttpHeader.h
  7521. * src/HttpHeaderProcessor.cc
  7522. * src/HttpHeaderProcessor.h
  7523. * src/HttpResponse.cc
  7524. * src/HttpResponse.h
  7525. * test/HttpHeaderProcessorTest.cc
  7526. * test/HttpResponseTest.cc
  7527. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Added --header option. You can specify any number of additional HTTP headers
  7529. like:
  7530. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7531. Unlike other commad-line option, you can use --header option multiple times.
  7532. * src/HelpItemFactory.cc
  7533. * src/HttpRequest.{cc, h}
  7534. * src/HttpRequestCommand.cc
  7535. * src/OptionHandlerFactory.cc
  7536. * src/OptionHandlerImpl.h
  7537. * src/option_processing.cc
  7538. * src/prefs.h
  7539. * src/usage_text.h
  7540. * test/HttpRequestTest.cc (testUserHeaders)
  7541. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Eliminates the time lag between sequential downloads and commands in
  7543. the same RequestGroup.
  7544. In old implementation, aria2 occasionally waits 1 seconds before
  7545. executing next command or RequestGroup.
  7546. This is really a waste of time, and new implementation eliminates
  7547. this unnecessary time lag.
  7548. * src/AbstractCommand.cc
  7549. * src/AutoSaveCommand.cc
  7550. * src/CheckIntegrityCommand.cc
  7551. * src/Command.{cc, h}
  7552. * src/DownloadEngine.{cc, h}
  7553. * src/DownloadEngineFactory.cc
  7554. * src/FileAllocationCommand.cc
  7555. * src/FileAllocationDispatcherCommand.cc
  7556. * src/FillRequestGroupCommand.cc
  7557. * src/FtpInitiateConnectionCommand.cc
  7558. * src/HaveEraseCommand.cc
  7559. * src/HttpInitiateConnectionCommand.cc
  7560. * src/HttpResponseCommand.cc
  7561. * src/RealtimeCommand.cc
  7562. * src/RequestGroup.cc
  7563. * src/RequestGroupMan.cc
  7564. * src/StreamFileAllocationEntry.cc
  7565. * src/TimeBasedCommand.{cc, h}
  7566. * src/TimedHaltCommand.cc
  7567. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7568. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7569. keyword explicit and SharedHandle's default constructor initializes
  7570. its internal obj to null, old implementation initializes it using
  7571. obj's default constructor.
  7572. To assign null, write SharedHandle<T> x(...); x.reset();
  7573. TODO: test/SharedHandleTest.cc needs more tests.
  7574. * src/SharedHandle.h
  7575. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Fixed type in man page.
  7577. * doc/aria2c.1.txt
  7578. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7579. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7580. * src/SimpleLogger.{cc, h}
  7581. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Implemented auto protocol detection.
  7583. Now you can do:
  7584. aria2c -Z http://host/file file1.torrent file2.metalink
  7585. (Note: -Z option is required for auto protcol detection.)
  7586. Then aria2c downloads 3 files simultaneously:
  7587. 1. http://host/file
  7588. 2. file1.torrent <-- read local torrent file
  7589. 3. file2.metalink <-- read local Metalink file.
  7590. Same thing goes with -i option. Assume your uris.txt contans:
  7591. http://host/file
  7592. file1.torrent
  7593. file2.metalink
  7594. Then you can do: aria2c -i uris.txt
  7595. (Note: -Z option is not needed if -i option is given.)
  7596. * src/main.cc
  7597. * src/ProtocolDetector.{cc, h}
  7598. * test/ProtocolDetectorTest.cc
  7599. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7600. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7601. installed
  7602. * src/ARC4Encryptor.h
  7603. * src/ARC4Decryptor.h
  7604. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Renamed argument from 'errno' to 'err', since errno is confused with
  7606. errno defined in errno.h.
  7607. * src/LibgcryptARC4Decryptor.h
  7608. * src/LibgcryptARC4Context.h
  7609. * src/LibgcryptDHKeyExchange.h
  7610. * src/LibgcryptARC4Encryptor.h
  7611. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Rewritten choking algorithm.
  7613. * src/PeerChokeCommand.{cc, h}
  7614. * src/BtInterestedMessage.cc
  7615. * src/PeerSessionResource.{cc, h}
  7616. * src/DefaultPeerStorage.{cc, h}
  7617. * src/BtNotInterestedMessage.cc
  7618. * src/DefaultBtMessageDispatcher.{cc, h}
  7619. * src/BtMessageDispatcher.h
  7620. * src/Peer.{cc, h}
  7621. * src/BtLeecherStateChoke.{cc, h}
  7622. * src/BtSetup.cc
  7623. * src/BtSeederStateChoke.{cc, h}
  7624. * src/PeerStorage.h
  7625. * test/MockPeerStorage.h
  7626. * test/MockBtMessageDispatcher.h
  7627. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7628. Fixed compilation error on x84-64 platform.
  7629. * src/AuthConfig.cc: Included ostream.
  7630. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Rewritten getBasename() and getDirname(), without standard library
  7632. basename(), dirname().
  7633. * src/File.cc
  7634. * test/FileTest.cc
  7635. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Added Simplified Chinese translation. Also updated the following
  7637. translations: Polish, Dutch, German. Great thanks to all translators.
  7638. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. Suppress content-range error when 'Content-Range' response header
  7640. doesn't contains bytes-unit specifier 'bytes'
  7641. * src/HttpHeader.cc (getRange)
  7642. * test/HttpHeaderTest.cc
  7643. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7644. Fixed compilation error with g++-4.3
  7645. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Added missing include files for MinGW
  7647. * test/HttpHeaderProcessorTest.cc
  7648. * test/DHTRoutingTableSerializerTest.cc
  7649. * test/DHTRoutingTableDeserializerTest.cc
  7650. * test/UriListParserTest.cc
  7651. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7652. Now download line is printed nicely with no garbage at the end of
  7653. line. I use ioctl to get the columns of terminal.
  7654. If stdout is redirected to another device, instead of carriage return,
  7655. end of line '\n' character is used. This is feature request#1909659
  7656. * src/ConsoleStatCalc.cc (calculateStat)
  7657. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. Included a2time.h
  7659. * src/DHTMessageDispatcher.h
  7660. * src/DHTMessageEntry.h
  7661. * src/DHTReplaceNodeTask.h
  7662. * src/DHTMessageTracker.h
  7663. * src/Util.h
  7664. * src/CookieBox.h
  7665. * src/SocketCore.h
  7666. * src/DefaultBtMessageDispatcher.h
  7667. * src/SocketCore.cc
  7668. * src/Util.cc
  7669. * src/DHTPingTask.h
  7670. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Fixed high memory footprint when DHT is enabled.
  7672. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  7673. queued than it is processed and the queue is getting longer. As a
  7674. consequence, momory usage is increased.
  7675. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  7676. replacement cache in DHTBucket which is described in Kademlia paper.
  7677. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  7678. DHTReplaceNodeTask.
  7679. * src/DHTBucket.{h, cc}
  7680. (cacheNode): New function.
  7681. (getCachedNodes): New function.
  7682. (dropNode): Push back cached node to _nodes.
  7683. * test/DHTBucketTest.cc
  7684. (testCacheNode): New test
  7685. (testDropNode): New test
  7686. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7687. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  7688. the unused 4KB memory when ssl is not used.
  7689. * src/SocketCore.cc
  7690. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. Added summary log for peer announce storage.
  7692. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  7693. Removed cast
  7694. * src/DefaultPeerStorage.cc (addPeer)
  7695. Log exception message
  7696. * src/DHTMessageTracker.cc (handleTimeout)
  7697. Fixed casting
  7698. * test/HttpRequestTest.cc
  7699. * test/MetalinkProcessorTest.cc
  7700. * test/PieceTest.cc
  7701. * test/MetalinkEntryTest.cc
  7702. * test/SequenceTest.cc
  7703. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. * src/ParameterizedStringParser.cc (createLoop):
  7705. Removed unused variable sstep.
  7706. * src/AlphaNumberDecorator.h (decode): Rewritten.
  7707. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. * src/Util.{h, cc}
  7709. (parseUInt): New function.
  7710. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  7711. The actual range is uint32_t.
  7712. * test/UtilTest.cc
  7713. * src/ParameterizedStringParser.cc:
  7714. Use Util::parseUInt() for loop variables.
  7715. * test/ParameterizedStringParserTest.cc
  7716. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7717. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7718. Rewritten the functions for binding port.
  7719. * src/DHTConnectionImpl.{h, cc}
  7720. * src/PeerListenCommand.{h, cc}
  7721. * src/DHTSetup.cc
  7722. * src/BtSetup.cc
  7723. * test/DHTConnectionImplTest.cc
  7724. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. type cleanup for allmost all remaining files.
  7726. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Type clarification
  7728. * src/PeerSessionResource.{h, cc}
  7729. * src/DefaultPieceStorage.{h, cc}
  7730. * src/Peer.{h, cc}
  7731. * test/PeerSessionResourceTest.cc
  7732. Use div function
  7733. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7734. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Type clarification
  7736. * src/DefaultPeerStorage.{h, cc}
  7737. * test/DefaultPeerStorageTest.cc
  7738. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7739. Type clarification: size_t for length or size, uint64_t for file
  7740. length, off_t for file offset.
  7741. * src/DefaultBtProgressInfoFile.cc
  7742. * src/DefaultBtContext.{h, cc}
  7743. * src/DefaultBtInteractive.cc
  7744. * src/DownloadCommand.{h, cc}
  7745. * src/IteratableChunkChecksumValidator.{h, cc}
  7746. * src/SegmentMan.{h, cc}
  7747. * src/SingleFileDownloadContext.{h, cc}
  7748. * src/IteratableChecksumValidator.{h, cc}
  7749. * src/BtContext.h
  7750. * src/IteratableValidator.h
  7751. * src/DownloadContext.h
  7752. * test/SingleFileDownloadContextTest.cc
  7753. * test/DefaultBtContextTest.cc
  7754. * test/MockBtContext.h
  7755. * test/Metalink2RequestGroupTest.cc
  7756. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Type clarification: size_t for length or size, uint64_t for file
  7758. length, off_t for file offset.
  7759. * src/PiecedSegment.cc
  7760. * src/GrowSegment.h
  7761. * src/DefaultBtRequestFactory.h
  7762. * src/DefaultBtProgressInfoFile.cc
  7763. * src/UnknownLengthPieceStorage.h
  7764. * src/DefaultPieceStorage.cc
  7765. * src/UnknownLengthPieceStorage.cc
  7766. * src/DefaultBtInteractive.cc
  7767. * src/GrowSegment.cc
  7768. * src/BitfieldMan.h
  7769. * src/DownloadCommand.cc
  7770. * src/BtRequestFactory.h
  7771. * src/PiecedSegment.h
  7772. * src/DefaultPieceStorage.h
  7773. * src/Piece.cc
  7774. * src/DefaultBtRequestFactory.cc
  7775. * src/PieceStorage.h
  7776. * src/Segment.h
  7777. * src/Piece.h
  7778. * src/BitfieldMan.cc
  7779. * src/Util.cc
  7780. * test/DefaultBtProgressInfoFileTest.cc
  7781. * test/DefaultPieceStorageTest.cc
  7782. * test/MockPieceStorage.h
  7783. * test/BtRequestMessageTest.cc
  7784. * test/DefaultBtMessageDispatcherTest.cc
  7785. * test/BitfieldManTest.cc
  7786. * test/GrowSegmentTest.cc
  7787. * test/PieceTest.cc
  7788. * test/SegmentTest.cc
  7789. * test/SegmentManTest.cc
  7790. * test/DefaultBtRequestFactoryTest.cc
  7791. * test/MockBtRequestFactory.h
  7792. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7793. Fixed compilation error with --disable-nls
  7794. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7795. in gettext.h causes the problem.
  7796. * src/common.h
  7797. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Removed subPiece related functions.
  7799. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7800. * src/DefaultPieceStorage.{h, cc}
  7801. * test/PieceTest.cc
  7802. * test/DefaultPieceStorageTest.cc
  7803. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. Use unsigned char for data store.
  7805. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Bump up version number to 0.13.0+1
  7807. * configure.ac
  7808. * Release 0.13.0+1
  7809. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7810. Changed inactive connection timeout to 120.
  7811. To accept more mulually interested peers, disconnect peer when there
  7812. is no interest between us after certain time passed.
  7813. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7814. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7816. when compiled with async DNS support.
  7817. * src/DownloadEngine.cc
  7818. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7819. value '10' will be a little bit short when some DNS servers are
  7820. offline and several DNS servers are tried. It should be configured
  7821. by command-line option.
  7822. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Merged Ross's mingw patch.
  7824. * src/DHTRoutingTableDeserializer.cc
  7825. * src/DHTRoutingTableSerializer.cc
  7826. * src/Platform.{h, cc}
  7827. * src/timegm.h
  7828. * src/gettimeofday.h
  7829. * src/getaddrinfo.h
  7830. * src/SocketCore.h
  7831. * src/common.h
  7832. * src/inet_aton.h
  7833. * src/DownloadEngine.h
  7834. * src/gai_strerror.h
  7835. * src/a2netcompat.h
  7836. * configure.ac
  7837. * configure
  7838. * aclocal.m4
  7839. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Included missing iostream.
  7841. * test/AllTest.cc
  7842. * test/BtDependencyTest.cc
  7843. * test/BtExtendedMessageTest.cc
  7844. * test/DHTConnectionImplTest.cc
  7845. * test/DHTMessageFactoryImplTest.cc
  7846. * test/DHTMessageTrackerEntryTest.cc
  7847. * test/DHTNodeTest.cc
  7848. * test/DHTRoutingTableSerializerTest.cc
  7849. * test/DefaultBtAnnounceTest.cc
  7850. * test/DefaultBtContextTest.cc
  7851. * test/DefaultBtMessageFactoryTest.cc
  7852. * test/DefaultExtensionMessageFactoryTest.cc
  7853. * test/HandshakeExtensionMessageTest.cc
  7854. * test/HttpResponseTest.cc
  7855. * test/MetalinkProcessorTest.cc
  7856. * test/MultiFileAllocationIteratorTest.cc
  7857. * test/SocketCoreTest.cc
  7858. * test/UTPexExtensionMessageTest.cc
  7859. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Reorganized includes.
  7861. * src/NameResolver.cc
  7862. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Fixed compilation error without ares/c-ares
  7864. * src/NameResolver.h:
  7865. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. Added a test for large file.
  7867. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7868. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Fixed the bug that file size is ignored if size > INT32_MAX
  7870. * src/SizeMetalinkParserState.cc (endElement):
  7871. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Bump up version number to 0.13.0
  7873. * configure.ac
  7874. * Release 0.13.0
  7875. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Updated Makfefile.am to make 'make dist' work.
  7877. Now packaged filename is aria2c-VERSION.tar.bz2.
  7878. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7879. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7880. Large file support is now configured by configure script.
  7881. * configure.ac
  7882. Removed unsused source files
  7883. * src/
  7884. * test/
  7885. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7886. Peer.h and BtContext.h respectively.
  7887. * src/Peer.h
  7888. * src/BtContext.h
  7889. Updated translations.
  7890. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7891. translations. Great thanks to all translators!;)
  7892. * po/*.{po, gmo}
  7893. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7895. statically declared sha1 MessageDigestContext.
  7896. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7897. initialization of short-lived MessageDigestContext.
  7898. * src/MessageDigestHelper.{h, cc}
  7899. * src/main.cc
  7900. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7901. the initialization of MessageDigestContext every time in validating
  7902. chunk checksum.
  7903. * src/DownloadCommand.{h, cc}
  7904. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7905. Add a file descriptor which connected to fast peer(latency<1500) to
  7906. select(). This change reduced CPU load.
  7907. * src/PeerInteractionCommand.cc
  7908. * src/DefaultBtInteractive.{h, cc}
  7909. * src/BtInteractive.h
  7910. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7911. Fixed the previous insufficient fix for possible busy loop.
  7912. * src/MSEHandshake.cc (identifyHandshakeType)
  7913. Removed unused functions.
  7914. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7915. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. Fixed possible busy loop if first 20 bytes are not received for a few
  7917. minutes.
  7918. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7919. * src/ReceiverMSEHandshakeCommand.cc
  7920. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. Fixed compilation error
  7922. * src/ExpatMetalinkProcessor.cc
  7923. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7925. * src/DHTBucket.cc
  7926. Removed unnecessary cast.
  7927. * src/HandshakeExtensionMessage.cc
  7928. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7930. is missing.
  7931. * src/OptionHandlerFactory.cc
  7932. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7933. Fixed the bug that HAVE message is not sent for a piece they are
  7934. downloaded fom http/ftp server before any BitTorrent handshake is done
  7935. with peers.
  7936. * src/DefaultBtInteractive.cc
  7937. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7939. * src/Makefile.am
  7940. * src/Makefile.in
  7941. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. Updated README. Added html version of README and man page.
  7943. * README
  7944. * README.html
  7945. * readme2html: Shell script to generate README.html from README using
  7946. asciidoc.
  7947. * doc/aria2c.1.html
  7948. * doc/makeman: Added the line to generate aria2c.1.html
  7949. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Fixed offset calculation.
  7951. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7952. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Rewritten itos and uitos using template. llitos and ullitos are
  7954. replaced with itos and uitos respectively.
  7955. * src/Util.{h, cc}
  7956. * test/UtilTest.cc
  7957. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7958. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7959. of the number of bytes required for storing public key and shared
  7960. secret.
  7961. * src/LibgcryptDHKeyExchange.h
  7962. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7963. * src/MSEHandshake.cc
  7964. * test/DHKeyExchangeTest.cc
  7965. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. Removed since they are not used.
  7967. * src/Xml2MetalinkProcessor.{h, cc}
  7968. * src/Socket.cc
  7969. * src/SegmentSplitter.{h, cc}
  7970. * test/Xml2MetalinkProcessorTest.cc
  7971. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7972. Fixed the bug that prevents aria2 from stopping other than by pressing
  7973. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7974. option. aria2 doesn't stop even after --seed-time is satisfied and
  7975. continues to output blank lines in the console.
  7976. * src/ReceiverMSEHandshakeCommand.cc
  7977. * src/PeerReceiveHandshakeCommand.cc
  7978. * src/PeerListenCommand.cc
  7979. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Bump up version number to 0.13.0rc
  7981. * configure.ac
  7982. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7983. Updated man page and some usage text.
  7984. * doc/aria2c.1.txt
  7985. * src/usage_text.h
  7986. * po/*.{po, gmo}
  7987. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7988. Updated translations. Added Finnish and Hebrew translations.
  7989. Great thanks to all translators!
  7990. * po/*.{po, gmo}
  7991. * po/LINGUAS
  7992. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Log more detailed information about each message.
  7994. * src/DHTQueryMessage.{h, cc}
  7995. * src/DHTGetPeersMessage.{h, cc}
  7996. * src/DHTFindNodeReplyMessage.{h, cc}
  7997. * src/DHTGetPeersReplyMessage.{h, cc}
  7998. * src/DHTAnnouncePeerMessage.{h, cc}
  7999. * src/DHTResponseMessage.{h, cc}
  8000. * src/DHTFindNodeMessage.{h, cc}
  8001. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. Use constants defined in prefs.h
  8003. * src/option_processing.cc
  8004. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8006. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Make room for future enchancements for IPv6 addresses.
  8008. Bump up version number of dht.dat file format to 2.
  8009. Not compatible with previous version.
  8010. * src/DHTRoutingTableSerializer.cc
  8011. * src/DHTRoutingTableDeserializer.cc
  8012. * test/DHTRoutingTableSerializerTest.cc
  8013. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Added handling for the return values from
  8015. PeerMessageUtil::createcompact().
  8016. * src/DefaultBtContext.cc (computeFastSet):
  8017. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8018. Fixed abort when peer's ip address is IPv4-mapped address.
  8019. * src/DefaultBtContext.cc (computeFastSet)
  8020. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8021. cannot handle IPv4-mapped addresses.
  8022. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8023. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8024. Proper return value handling for OpenSSL functions.
  8025. * src/LibsslDHKeyExchange.h
  8026. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8027. Random bytes generation using libgcrypt and OpenSSL.
  8028. * src/DHTUtil.{h, cc}
  8029. * test/DHTUtilTest.cc
  8030. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8031. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8032. received.
  8033. * src/DHTMessageReceiver.cc (receiveMessage)
  8034. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8035. Fixed the bug that a return code is always 0. BUG#1897704
  8036. If error occurred during the download or there exist unfinished
  8037. downloads, aria2 returns with code 1.
  8038. * src/RequestGroupMan.{h, cc}
  8039. * src/MultiUrlRequestInfo.{h, cc}
  8040. * src/main.cc
  8041. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8042. IPv6 support for SocketCore class.
  8043. TODO: In SocketCore::establishConnection(), this is insufficient to
  8044. determin the failure of connect() here because the socket is
  8045. non-blocking state. The next addresses should be tried after select().
  8046. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8047. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8048. instead which address family independent.
  8049. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8050. information in a compact peer format which is for IPv4 only.
  8051. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8052. this is a spec of BitTorrent protocol.
  8053. * src/SocketCore.{h, cc}
  8054. * src/PeerMessageUtil.cc
  8055. * test/SocketCoreTest.cc
  8056. * test/PeerMessageUtilTest.cc
  8057. * test/DHTConnectionImplTest.cc
  8058. Handle IPv4-mapped addresses.
  8059. * src/DHTNode.cc: Now identity is determined by node id.
  8060. * src/DHTMessageTrackerEntry.cc
  8061. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8062. should handle it.
  8063. * src/DHTRoutingTableDeserializer.cc
  8064. * src/DHTMessageFactoryImpl.cc
  8065. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. Change the unit of --stop option from a minute to a second.
  8067. * src/usage_text.h
  8068. * src/DownloadEngineFactory.cc
  8069. * src/OptionHandlerFactory.cc
  8070. * src/message.h
  8071. * src/TimedHaltCommand.cc
  8072. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Make listening socket non-block mode.
  8074. * src/FtpConnection.cc
  8075. * src/FtpNegotiationCommand.{h, cc}
  8076. * src/PeerListenCommand.cc
  8077. Fixed the bug that cause slow ftp negotiation.
  8078. * src/FtpNegotiationCommand.{h, cc}
  8079. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Added basic tag to --enable-dht, --dht-listen-port option.
  8081. * src/HelpItemFactory.cc (createHelpItems)
  8082. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. Updated text.
  8084. * src/usage_text.h
  8085. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8087. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8088. Determin _threadtholdSpeed in each constructor for
  8089. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8090. * src/ActivePeerConnectionCommand.{h, cc}
  8091. * src/PeerReceiveHandshakeCommand.{h, cc}
  8092. * src/BtSetup.cc
  8093. * src/BtConstants.h
  8094. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Added --bt-min-crypto-level and --bt-require-crypto options.
  8096. * src/OptionHandlerFactory.cc
  8097. * src/MSEHandshake.cc
  8098. * src/HelpItemFactory.cc
  8099. * src/option_processing.cc
  8100. * src/ReceiverMSEHandshakeCommand.cc
  8101. * src/prefs.h
  8102. * src/DefaultBtAnnounce.cc
  8103. * src/InitiatorMSEHandshakeCommand.cc
  8104. * src/usage_text.h
  8105. * test/MSEHandshakeTest.cc
  8106. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8107. Bump version number to 0.13.0b
  8108. * configure.ac
  8109. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. Updated doc.
  8111. * src/MessageDigestHelper.h:
  8112. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. Use raw message digest as a token instead of its hexadecimal
  8114. representation.
  8115. * src/DHTTokenTracker.cc (generateToken)
  8116. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. Added Message Stream Encryption(MSE) support.
  8118. Currently, aria2 accepts incoming connections with Obfuscation Header
  8119. and legacy BitTorrent Header and establishes connections with
  8120. Obfuscation Header first and if failed then retry with legacy
  8121. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8122. choose ARC4. The new option to change the default behavior is planned.
  8123. For tracker extension, "supportcrypto=1" is added statically.
  8124. * src/PeerInitiateConnectionCommand.{h, cc}
  8125. * src/PeerConnection.{h, cc}
  8126. * src/HandleRegistry.h
  8127. * src/SocketCore.h
  8128. * src/PeerReceiveHandshakeCommand.{h, cc}
  8129. * src/BtRegistry.{h, cc}
  8130. * src/PeerListenCommand.cc
  8131. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8132. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8133. * src/MSEHandshake.{h, cc}
  8134. * src/ARC4Encryptor.h
  8135. * src/ARC4Decryptor.h
  8136. * src/LibgcryptARC4Encryptor.h
  8137. * src/LibgcryptARC4Decryptor.h
  8138. * src/LibgcryptARC4Context.h
  8139. * src/LibsslARC4Encryptor.h
  8140. * src/LibsslARC4Decryptor.h
  8141. * src/LibsslARC4Context.h
  8142. * src/DHKeyExchange.h
  8143. * src/LibgcryptDHKeyExchange.h
  8144. * src/LibsslDHKeyExchange.h
  8145. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8146. * test/DefaultBtAnnounceTest.cc
  8147. * test/ARC4Test.cc
  8148. * test/DHKeyExchangeTest.cc
  8149. Removed prepareForRetry() because it is not used.
  8150. * src/PeerAbstractCommand.{h, cc}
  8151. * src/PeerInteractionCommand.{h, cc}
  8152. * src/PeerInitiateConnectionCommand.{h, cc}
  8153. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8154. Added the ability to load nodes from torrent file. These nodes are
  8155. added to the routing table when downloading that torrent.
  8156. * src/BtContext.h
  8157. * src/DefaultBtContext.{h, cc}
  8158. * src/DHTSetup.cc
  8159. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8160. hostname and port pair, and resolves all of them.
  8161. * src/NameResolver.{h, cc}: Added reset().
  8162. * src/RequestGroup.cc
  8163. * test/DefaultBtContextTest.cc
  8164. * test/MockBtContext.h
  8165. Removed assert() from DefaultBtContext and throw exception instead.
  8166. * src/DefaultBtContext.cc
  8167. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Fixed segmentation fault bug when exiting if dht is disabled.
  8169. * src/RequestGroup.cc
  8170. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Fixed typo in log message and define the message in message.h
  8172. * src/TimedHaltCommand.cc
  8173. * src/message.h
  8174. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8175. Included RecoverableException.h to fix compilation error.
  8176. * test/DHTMessageFactoryImplTest.cc
  8177. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8178. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8179. * test/DHTPingMessageTest.cc
  8180. * test/DHTGetPeersMessageTest.cc
  8181. * test/DHTFindNodeMessageTest.cc
  8182. * test/DHTAnnouncePeerMessageTest.cc
  8183. * test/MockDHTMessage.h
  8184. * test/MockDHTMessageFactory.h
  8185. * test/MockDHTMessageDispatcher.h: New class.
  8186. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8188. virtual.
  8189. * src/DHTMessageDispatcher.h
  8190. * src/DHTMessageDispatcherImpl.{h, cc}
  8191. * src/DHTSetup.cc
  8192. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Adding handling of DHT error message. Just log error message and
  8194. throw exception.
  8195. * src/DHTMessageFactoryImpl.cc
  8196. * test/DHTMessageFactoryImplTest.cc
  8197. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Added handling of dynamic cast failure.
  8199. * src/DHTNodeLookupTask.cc
  8200. * src/DHTPeerLookupTask.cc
  8201. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Added the ability to stop aria2 itself when given time has passed
  8203. from start. Use --stop option to specify time in minutes.
  8204. When 0 is given, this feature is disabled.
  8205. * src/OptionHandlerFactory.cc
  8206. * src/TimeBasedCommand.h: Make _interval protected scope.
  8207. * src/HelpItemFactory.cc
  8208. * src/option_processing.cc
  8209. * src/prefs.h
  8210. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8211. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8212. Without this modification, the result list shows "ERR" when aria2 is
  8213. stopped by --stop option. It should be "INPR".
  8214. * src/DownloadEngine.{h, cc}
  8215. * src/DownloadEngineFactory.cc
  8216. * src/usage_text.h
  8217. * src/TimedHaltCommand.{h, cc}: New class.
  8218. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. Bootstrap through node added by port message.
  8220. Currently bootstrap is executed if the number of buckets in routing
  8221. table is 1.
  8222. * src/BtPortMessage.{h, cc}
  8223. * src/DefaultBtMessageFactory.{h, cc}
  8224. * src/PeerInteractionCommand.cc
  8225. * test/BtPortMessageTest.cc
  8226. * test/MockDHTTask.h
  8227. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. Extract the Peer class's member variables, which are only needed after
  8229. PeerInteractionCommand, into PeerSessionResource class.
  8230. This class is instantiated in PeerInteractionCommand class's ctor and
  8231. released in its dtor.
  8232. This will make Peer class lightweight and uses less memory for peers
  8233. which are not connected and wait in the queue.
  8234. * src/PeerChokeCommand.cc
  8235. * src/PeerSessionResource.{h, cc}
  8236. * src/PeerInteractionCommand.cc
  8237. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8238. * src/DefaultBtInteractive.cc
  8239. * src/BtPieceMessage.cc
  8240. * src/BtInterestedMessage.cc
  8241. * src/BtUnchokeMessage.cc
  8242. * src/DefaultPeerStorage.{h, cc}
  8243. * src/PeerInitiateConnectionCommand.cc
  8244. * src/ActivePeerConnectionCommand.cc
  8245. * src/BtNotInterestedMessage.cc
  8246. * src/DefaultBtMessageDispatcher.cc
  8247. * src/BtChokeMessage.cc
  8248. * src/BtRequestMessage.cc
  8249. * src/Peer.{h, cc}
  8250. * src/BtRegistry.h
  8251. * src/TrackerWatcherCommand.cc
  8252. * src/PeerReceiveHandshakeCommand.cc
  8253. * test/BtExtendedMessageTest.cc
  8254. * test/BtAllowedFastMessageTest.cc
  8255. * test/BtCancelMessageTest.cc
  8256. * test/DefaultPieceStorageTest.cc
  8257. * test/BtBitfieldMessageTest.cc
  8258. * test/BtHaveMessageTest.cc
  8259. * test/BtNotInterestedMessageTest.cc
  8260. * test/BtRequestMessageTest.cc
  8261. * test/PeerSessionResourceTest.cc
  8262. * test/DefaultBtMessageDispatcherTest.cc
  8263. * test/PeerTest.cc
  8264. * test/BtInterestedMessageTest.cc
  8265. * test/BtRejectMessageTest.cc
  8266. * test/BtChokeMessageTest.cc
  8267. * test/DefaultPeerStorageTest.cc
  8268. * test/BtHaveNoneMessageTest.cc
  8269. * test/BtHaveAllMessageTest.cc
  8270. * test/DefaultExtensionMessageFactoryTest.cc
  8271. * test/BtUnchokeMessageTest.cc
  8272. * test/DefaultBtMessageFactoryTest.cc
  8273. * test/HandshakeExtensionMessageTest.cc
  8274. * test/UTPexExtensionMessageTest.cc
  8275. * test/DefaultBtRequestFactoryTest.cc
  8276. * test/BtPieceMessageTest.cc
  8277. Removed typedef PeerStats.
  8278. * src/PeerStat.h
  8279. * src/SegmentMan.cc
  8280. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Added std namespace to copy, remove_copy, back_inserter,
  8282. front_inserter.
  8283. * src/RequestGroupMan.cc
  8284. * src/DefaultPieceStorage.cc
  8285. * src/StreamFileAllocationEntry.cc
  8286. * src/BtFileAllocationEntry.cc
  8287. * src/RequestGroup.cc
  8288. * src/MetalinkEntry.cc
  8289. * src/DelegatingPeerListProcessor.cc
  8290. * src/DefaultBtRequestFactory.cc
  8291. * src/DefaultBtMessageDispatcher.cc
  8292. * src/version_usage.cc: Included <algorithm>
  8293. * src/main.cc
  8294. * src/MetalinkParserController.cc
  8295. * src/DefaultBtContext.cc
  8296. * src/DownloadEngineFactory.cc
  8297. * src/a2algo.h
  8298. Removed.
  8299. * test/StreamUriListParserTest.cc
  8300. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8301. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8302. ActivePeerConnectionCommand when it is given and
  8303. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8304. * src/ActivePeerConnectionCommand.{h, cc}
  8305. * src/BtSetup.cc
  8306. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Only add socket to DownloadEngine's select routine when peer or
  8308. localhost is unchoked and interested. This lowers CPU usage a
  8309. little bit.
  8310. * src/PeerInteractionCommand.cc
  8311. * src/PeerAbstractCommand.{h, cc}
  8312. * src/BtInteractive.h
  8313. * src/DefaultBtInteractive.{h, cc}
  8314. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Revert previous change because get_peers message is needed for
  8316. announce_peer anyway.
  8317. * src/DHTGetPeersCommand.cc
  8318. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8319. Request peers thought DHT only when download hasn't finished.
  8320. * src/DHTGetPeersCommand.cc
  8321. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8323. * src/DHTBucketRefreshTask.{h, cc}
  8324. * src/DHTSetup.cc
  8325. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8327. standard classes.
  8328. Included string.h where mem* function are used.
  8329. Added namespace aria2.
  8330. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8331. Create directory before saving DHT routing table.
  8332. Now ios::failure is now handled properly.
  8333. * src/DHTAutoSaveCommand.cc
  8334. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8335. Removed unnecessary cerr.
  8336. * src/DownloadEngine.cc
  8337. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8338. Catch exception inside DHTMessageReceiver::receiveMessage().
  8339. Log unknown message.
  8340. * src/DHTMessageReceiver.{h, cc}
  8341. * src/DHTMessageFactory.h
  8342. * src/DHTMessageFactoryImpl.{h, cc}
  8343. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8344. * src/DHTInteractionCommand.cc
  8345. * src/DHTUnknownMessage.{h, cc}
  8346. * test/DHTUnknownMessageTest.cc
  8347. * test/MockDHTMessageFactory.h
  8348. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Commented out ip address comparison because a host can have multiple
  8350. ip addresses and it is hard to predict the hostname is resolved into
  8351. which one.
  8352. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8353. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8354. * po/Makefile.in: Removed since this is generated by configure.
  8355. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Fixed compiler warning about redefinition of SIZE_MAX.
  8357. Use common.h instead of config.h directly here.
  8358. * src/Platform.{h, cc}
  8359. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8360. here.
  8361. * common.h
  8362. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8363. Updated gettext related files.
  8364. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8365. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8366. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8367. Added DHT functionality, compatible with mainline.
  8368. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8369. You may need to specify entry point to DHT network using
  8370. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8371. Use --dht-listen-port to specify port number. Make sure that your
  8372. firewall configuration can pass through UDP traffic to the port.
  8373. The routing table is saved in $HOME/.aria2/dht.dat.
  8374. * src/DHT*
  8375. * src/BNode.{h, cc}
  8376. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8377. particular torrent.
  8378. * src/Data.cc: Rewritten ctor.
  8379. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8380. --dht-entry-point.
  8381. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8382. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8383. ends, remove BtContext from DHTPeerAnnounceStorage.
  8384. * src/BtPortMessage.{h, cc}: Rewritten.
  8385. * src/message.h
  8386. * src/OptionHandlerImpl.cc
  8387. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8388. --dht-entry-point.
  8389. * src/Dictionary.{h, cc} (remove): New function.
  8390. * src/prefs.h
  8391. * src/DefaultBtMessageFactory.h
  8392. * src/BtHandshakeMessage.cc
  8393. * src/ActivePeerConnectionCommand.cc
  8394. * src/SocketCore.{h, cc}: Added datagram socket support.
  8395. * src/DefaultBtMessageFactory.cc
  8396. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8397. Create DHT commands.
  8398. * src/BtMessageFactory.h
  8399. * src/PeerMessageUtil.{h, cc}
  8400. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8401. Fixed the bug that log file is not written when configuration file doesn't exist.
  8402. This is caused by using Logger class before LogFactory is not configured.
  8403. BUG #1875079
  8404. * src/option_processing.cc
  8405. Warning message "configuration doesn't exist" is only printed when --conf is
  8406. given.
  8407. * src/option_processing.cc
  8408. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8410. ShaVisitor is now deprecated and slated to be removed.
  8411. * src/DefaultBtContext.cc
  8412. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Externalize message to message.h
  8414. * src/Platform.cc
  8415. * src/message.h
  8416. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8417. Set default domain and default path to cookie.
  8418. * src/HttpResponse.cc
  8419. * src/CookieBox.{h, cc}
  8420. * src/CookieParser.{h, cc}
  8421. * test/CookieParserTest.cc
  8422. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8423. Added --no-conf and --conf-path command-line option.
  8424. --no-conf option disables loading aria2.conf file.
  8425. --conf-path option changes the configuration file path. The default
  8426. file path is $HOME/.aria2/aria2.conf
  8427. Added a warning message when the configuration file is not found.
  8428. * src/HelpItemFactory.cc
  8429. * src/option_processing.cc
  8430. * src/prefs.h
  8431. * src/usage_text.h
  8432. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. Added the message to inform users that other help categories are
  8434. available in -h option.
  8435. * src/version_usage.cc
  8436. * src/TagContainer.{h, cc}
  8437. * test/TagContainerTest.cc
  8438. * src/TaggedItem.{h, cc}
  8439. * test/TaggedItemTest.cc
  8440. * src/HelpItem.h
  8441. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8443. from PiecedSegment's ctor.
  8444. Previously Piece::getAllMissingBlockIndexes() is called from
  8445. PiecedSegment() but it is rather expensive since only first element is
  8446. used.
  8447. * src/PiecedSegment.cc
  8448. * src/Piece.{h, cc}
  8449. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8451. each time these functions are called.
  8452. * src/BitfieldMan.{h, cc}
  8453. * test/BitfieldManTest.cc
  8454. * src/array_fun.h
  8455. * test/array_funTest.cc
  8456. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8457. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8458. filtered. Removed unnecessary cast to int32_t.
  8459. * src/BitfieldMan.{h, cc}
  8460. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8462. payload length(4bytes) are received. This happens because lenbufLength
  8463. is not updated in this particular case and successive call of
  8464. receiveMessage() overwrites payload length with bytes recieved which
  8465. are payload body.
  8466. * src/PeerConnection.{h, cc}
  8467. * src/message.h
  8468. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8469. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8470. peer if there are peers that have same ipaddr and port.
  8471. I've experiened segmentation fault and "pure virtual function was
  8472. called" error.
  8473. * src/Peer.h
  8474. * test/PeerTest.cc
  8475. * src/DefaultPeerStorage.cc
  8476. * test/DefaultPeerStorageTest.cc
  8477. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. Removed a call to isPowerOf() because it is no longer necessary here
  8479. and a request block is not always power of 2.
  8480. BUG#1866924
  8481. * src/PeerMessageUtil.cc (checkLength)
  8482. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Fixed the bug that always first found Segment is removed from
  8484. usedSegmentEntries. Removed unused functions.
  8485. * src/SegmentMan.{h, cc}
  8486. * test/SegmentManTest.cc
  8487. Fixed the bug that ServerHost is not removed.
  8488. * src/RequestGroup.cc
  8489. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Fixed the bug that SegmentMan::completeSegment() is not called
  8491. even if Segment is complete when --lowest-speed-limit is enabled.
  8492. BUG#1864525
  8493. * src/DownloadCommand.{h, cc}
  8494. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Fixed: hash algorithm 'sha1' is always used.
  8496. * src/DownloadCommand.cc (validatePieceHash)
  8497. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Added --enable-peer-exchange command-line option.
  8499. * src/OptionHandlerFactory.cc
  8500. * src/HelpItemFactory.cc
  8501. * src/option_processing.cc
  8502. * src/usage_text.h
  8503. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8504. Move extension from BtRuntime to ExtensionMessageFactory, because
  8505. extension can be specified per peer, not per torrent.
  8506. * src/DefaultBtInteractive.cc
  8507. * src/BtRuntime.h
  8508. * src/ExtendedMessagingAware.h
  8509. * src/ExtensionMessageFactory.h
  8510. * src/DefaultExtensionMessageFactory.cc
  8511. * test/DefaultExtensionMessageFactoryTest.cc
  8512. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Added categorized option help. Specify category using --help option.
  8514. Also added the ability to search options in forward match.
  8515. * src/HelpItem.{h, cc}
  8516. * test/HelpItemTest.cc
  8517. * src/HelpItemFactory.{h, cc}
  8518. * src/TagContainer.{h, cc}
  8519. * test/TagContainerTest.cc
  8520. * src/option_processing.cc
  8521. * src/prefs.h
  8522. * src/TaggedItem.{h, cc}
  8523. * test/TaggedItemTest.cc
  8524. * src/version_usage.cc
  8525. * src/help_tags.h
  8526. * src/usage_text.h
  8527. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Fixed segmentation fault when bad torrent metainfo is parsed.
  8529. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8530. and then throw exception or skip it.
  8531. * src/DefaultBtContext.{h, cc}
  8532. * test/DefaultBtContextTest.cc
  8533. * src/AnnounceList.cc
  8534. * src/CompactPeerListProcessor.cc
  8535. * src/message.h
  8536. * src/DefaultBtAnnounce.{h, cc}
  8537. * test/DefaultBtAnnounceTest.cc
  8538. * src/BencodeVisitor.cc
  8539. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Added missing "B"(=Byte). So now the message looks like this:
  8541. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8542. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8543. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Show the seed ratio after torrent downloads.
  8545. For example, after torrent download completed and --seed-time and
  8546. --seed-ratio conditions are fulfilled, following message is printed
  8547. right after "Download complete: .....":
  8548. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8549. * src/RequestGroupMan.cc
  8550. * src/RequestGroup.{h, cc}
  8551. * src/message.h
  8552. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Remove a defunct control file. A defunct control file means that while
  8554. it exists, but the corresponding download file is missing.
  8555. After its removal, a download restarts from the beginning.
  8556. * src/RequestGroup.cc
  8557. * src/message.h
  8558. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. Allocate bitfield in Peer when it is really used. More specifically,
  8560. bitfield in Peer is allocated after the connection is established and
  8561. deallocated when the connection is dropped.
  8562. Since 2 parameters(piece length and total length) was removed from the
  8563. constructor of Peer class, many test classes were modified accordingly.
  8564. See svn log for more detailed information.
  8565. * src/PeerInteractionCommand.cc
  8566. * src/CompactPeerListProcessor.cc
  8567. * src/Peer.cc
  8568. * src/DefaultPeerListProcessor.cc
  8569. * src/PeerListenCommand.cc
  8570. * src/PeerReceiveHandshakeCommand.cc
  8571. Fixed memory leak
  8572. * src/Piece.cc
  8573. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8574. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8575. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8576. command-line options.
  8577. * src/option_processing.cc
  8578. * src/ActivePeerConnectionCommand.cc
  8579. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8580. Send have message to peer if it already has the piece.
  8581. * src/BtHaveMessage.{h, cc}
  8582. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8583. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8584. port.
  8585. * src/DefaultPeerStorage.{h, cc}
  8586. * test/DefaultPeerStorageTest.cc
  8587. * src/HandshakeExtensionMessage.cc
  8588. * test/HandshakeExtensionMessageTest.cc
  8589. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8590. * src/PeerStorage.h
  8591. * test/MockPeerStorage.h
  8592. * src/PeerListenCommand.cc
  8593. * src/PeerReceiveHandshakeCommand.cc
  8594. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Added --metalink-enable-unique-protocol option.
  8596. * src/Metalink2RequestGroup.cc
  8597. * src/option_processing.cc
  8598. * src/prefs.h
  8599. * src/version_usage.cc
  8600. * doc/aria2c.1.txt
  8601. * doc/aria2c.1
  8602. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. Allow a peer in incomingPeer to be added peers.
  8604. * src/DefaultPeerStorage.cc
  8605. * test/DefaultPeerStorageTest.cc
  8606. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8608. I could reproduce this bug in following procedure:
  8609. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8610. 2. Restart aria2.
  8611. 3. You see the download stopped around 99%.
  8612. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8613. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8614. If timeout is reached, then _nextCommand is unused and it may contains
  8615. segments and they won't be canceled. Actually, timeout is not needed
  8616. here because if the server dropped connection, then retry is made.
  8617. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8618. Added uTorrent compatible Peer Exchange.
  8619. * src/BencodeVisitor.{h, cc}
  8620. * test/BencodeVisitorTest.cc
  8621. * src/BtConstants.h
  8622. * src/BtContext.h: Added 'private' flag.
  8623. * src/BtExtendedMessage.{h, cc}
  8624. * test/BtExtendedMessageTest.cc
  8625. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8626. reserved field.
  8627. * test/BtHandshakeMessageTest.cc
  8628. * src/BtMessageFactory.h
  8629. * src/BtRegistry.h
  8630. * src/BtRuntime.h: This class holds default extension message IDs for
  8631. aria2. By default, aria2 uses ID 8 for ut_pex.
  8632. * src/DefaultBtContext.cc
  8633. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8634. When it is true, aria2 enables ut_pex. This value is set by
  8635. PeerInteractionCommand.
  8636. * src/DefaultBtMessageFactory.{h, cc}
  8637. * test/DefaultBtMessageFactoryTest.cc
  8638. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8639. handling to DefaultBtInteractive class.
  8640. * src/DefaultExtensionMessageFactory.{h, cc}
  8641. * test/DefaultExtensionMessageFactoryTest.cc
  8642. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8643. the container(peers and incomingPeers. The equality is determined by
  8644. Peer::id).
  8645. * test/DefaultPeerStorageTest.cc
  8646. * src/ExtensionMessage.h
  8647. * test/MockExtensionMessage.h
  8648. * src/ExtensionMessageFactory.h
  8649. * test/MockExtensionMessageFactory.h
  8650. * src/HandshakeExtensionMessage.{h, cc}
  8651. * test/HandshakeExtensionMessageTest.cc
  8652. * src/MetaEntry.h
  8653. * src/Peer.{h, cc}
  8654. * src/PeerInteractionCommand.cc
  8655. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8656. addIncomingPeer.
  8657. * src/PeerMessageUtil.{h, cc}
  8658. * src/PeerObject.h
  8659. * src/UTPexExtensionMessage.{h, cc}
  8660. * test/UTPexExtensionMessageTest.cc
  8661. * src/message.h
  8662. * src/prefs.h
  8663. Fixed the bug that returns incomplete data when it contains null
  8664. character. A convenient constructor was also added.
  8665. * src/Data.{h, cc}
  8666. Rewritten.
  8667. * src/CompactPeerListProcessor.cc
  8668. Fixed typos.
  8669. * src/message.h
  8670. * src/MetaFileUtil.cc
  8671. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8672. Added "Status Legend" label to the explanation text of 'stat' in
  8673. download result and moved it to the last. BUG#1848214
  8674. * src/RequestGroupMan.cc
  8675. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8676. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  8677. * src/Makefie.am
  8678. * test/Makefile.am
  8679. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Fixed the bug that prevents aria2 from loading cookie file when expire
  8681. value is greater than 2^31-1. BUG#1851066
  8682. * src/CookieBoxFactory.cc
  8683. * test/CookieBoxFactoryTest.cc
  8684. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Fixed possible memory leak when an exception is thrown.
  8686. * src/XML2SAXMetalinkProcessor.cc
  8687. Added Expat support. If both libxml2 and Expat are installed, then
  8688. libxml2 is used by default.
  8689. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  8690. ExpatMetalinkProcessor according to the configuration.
  8691. * src/ExpatMetalinkProcessor.{h, cc}
  8692. * src/main.cc: Removed libxml2 specific header and init/free function.
  8693. * src/MetalinkProcessorFactory.{h, cc}
  8694. * src/MetalinkHelper.cc
  8695. * src/Metalinker.h: Removed unnecessary libxml2 header.
  8696. * src/MetalinkProcessor.h
  8697. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  8698. MetalinkProcessorTest is used instead.
  8699. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  8700. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  8701. MetalinkProcessorFactory::newInstance().
  8702. * m4/libexpat.m4
  8703. * configure.ac: Added configuration options for libexpat.
  8704. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8705. Disabled -s option in metalink download.
  8706. * src/Metalink2RequestGroup.cc
  8707. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8708. If several protocols are available for a mirror in metalink file,
  8709. aria2 now use one of them. --metalink-preferred-protocol option was
  8710. added to specify the preference of protocol.
  8711. * src/AbstractCommand.cc
  8712. * src/OptionHandlerFactory.cc
  8713. * src/ServerHost.{h, cc}
  8714. * src/Metalink2RequestGroup.cc
  8715. * src/RequestGroup.{h, cc}
  8716. * test/RequestGroupTest.cc
  8717. * src/option_processing.cc
  8718. * src/prefs.h
  8719. * src/HttpResponseCommand.cc
  8720. * src/MetalinkResource.{h, cc}
  8721. * src/FtpNegotiationCommand.cc
  8722. * src/MetalinkEntry.{h, cc}
  8723. * src/MetalinkEntryTest.cc
  8724. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8725. Code cleanup and added debug log.
  8726. * src/PeerConnection.cc
  8727. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8728. Compiler error fix: applied the patch by Tiziano Mueller
  8729. * src/RequestGroup.cc
  8730. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8731. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8732. in stopped and completed event.
  8733. * src/AnnounceList.{h, cc}
  8734. * test/AnnounceListTest.cc
  8735. * src/DefaultBtAnnounce.cc
  8736. * test/DefaultBtAnnounceTest.cc
  8737. Sorted URLs.
  8738. * test/Metalink2RequestGroupTest.cc
  8739. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. Removed unnecessary string copy. Updated doc and corrected indentation.
  8741. * src/Base64.cc
  8742. Fixed compilation warnings
  8743. * test/DataTest.cc
  8744. * test/HttpRequestTest.cc
  8745. * test/MetaFileUtilTest.cc
  8746. * test/RequestTest.cc
  8747. * Release 0.12.0
  8748. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Updated translations
  8750. * po/{de,fr,ja,nl,ru}.po
  8751. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8752. translations. Many thanks to translators.
  8753. * po/{ca,es,it,pt_BR,sv}.po
  8754. * po/LINGUAS
  8755. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. Added a notice about URL
  8757. * src/version_usage.cc
  8758. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8759. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8760. aria2 repeatedly sends stopped request when tracker returns error code.
  8761. * src/AnnounceList.cc
  8762. * test/AnnounceListTest.cc
  8763. * src/AnnounceTier.h
  8764. Added a message when ctrl-c is hit.
  8765. Now second ctrl-c is also handled in signal handler.
  8766. * src/RequestGroupMan.{h, cc}
  8767. * src/RequestGroup.{h, cc}
  8768. * src/MultiUrlRequestInfo.cc
  8769. * src/DownloadEngine.cc
  8770. * src/TrackerWatcherCommand.cc
  8771. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8772. Code cleanup
  8773. * src/Base64.cc (encode)
  8774. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8775. Changed Direct/IO enable/disable procesure in file allocation routine.
  8776. * src/SingleFileAllocationIterator.cc
  8777. (SingleFileAllocationIterator):
  8778. Disable directIO if offset is not multiple of 512.
  8779. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8780. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8781. Enable created SingleFileAllocationIterator's directIO.
  8782. * src/FileAllocationEntry.cc
  8783. (FileAllocationEntry): Enable directIO here.
  8784. (~FileAllocationEntry): Disable directIO here.
  8785. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8786. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8787. * src/Peer.{h, cc}
  8788. * src/DefaultPieceStorage.cc
  8789. * test/DefaultPieceStorageTest.cc
  8790. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8791. Rewritten direct I/O support routine
  8792. * src/SingleFileAllocationIterator.cc
  8793. * src/MultiDiskAdaptor.{h, cc}
  8794. * src/ByteArrayDiskWriter.h
  8795. * src/AbstractSingleDiskAdaptor.h
  8796. * src/AbstractDiskWriter.cc
  8797. * src/DefaultPieceStorage.cc
  8798. * src/DiskWriter.h
  8799. * src/BinaryStream.h
  8800. * src/IteratableChunkChecksumValidator.cc
  8801. * src/IteratableChecksumValidator.cc
  8802. * src/CheckIntegrityEntry.cc
  8803. * src/FileAllocationEntry.cc
  8804. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Fixed typo
  8806. * src/version_usage.cc
  8807. Updated doc
  8808. * doc/aria2c.1.txt
  8809. * doc/aria2c.1
  8810. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Fixed compile error without message digest support.
  8812. * src/FileMetalinkParserState.cc
  8813. * src/MetalinkParserController.{h, cc}
  8814. * test/XML2SAXMetalinkProcessorTest.cc
  8815. * test/MetalinkParserControllerTest.cc
  8816. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. Enable direct I/O support in checksum checking.
  8818. * src/IteratableChunkChecksumValidator.{h, cc}
  8819. * test/IteratableChunkChecksumValidatorTest.cc
  8820. * src/CheckIntegrityEntry.cc
  8821. * src/PieceHashCheckIntegrityEntry.cc
  8822. * src/IteratableChecksumValidator.{h, cc}
  8823. * src/BtCheckIntegrityEntry.cc: Added doc.
  8824. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. Added --allow-piece-length-change option.
  8826. * src/DefaultBtProgressInfoFile.cc
  8827. * test/DefaultBtProgressInfoFileTest.cc
  8828. * src/OptionHandlerFactory.cc
  8829. * src/option_processing.cc
  8830. * src/prefs.h
  8831. * src/version_usage.cc
  8832. * doc/aria2c.1.txt
  8833. * doc/aria2c.1
  8834. Fixed: duplicated result entry appears when exception is thrown in
  8835. RequestGroup::createInitiateConnectionCommand().
  8836. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8837. Add RequestGroup to _requestGroup after RequetGroup::
  8838. createInitiateConnectionCommand() succeeds.
  8839. Externalized message
  8840. * src/XML2SAXMetalinkProcessor.cc
  8841. * src/message.h
  8842. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Forced download abort when received negative response from http/ftp
  8844. server.
  8845. * src/HttpResponseCommand.cc
  8846. * src/FtpNegotiationCommand.cc
  8847. * src/HttpResponse.cc
  8848. * src/FtpConnection.cc
  8849. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8851. the predecessor, Xml2MetalinkParser class.
  8852. I tested them against 94KB metalink file with 1234 chunk checksums.
  8853. The new one parsed it in 22msec, while it took 6000msec with old one.
  8854. * src/XML2SAXMetalinkProcessor.{h, cc}
  8855. * test/XML2SAXMetalinkProcessorTest.cc
  8856. * src/MetalinkParserController.{h, cc}
  8857. * test/MetalinkParserControllerTest.cc
  8858. * src/MetalinkParserState.h: Also added 16 subclasses.
  8859. * src/main.cc
  8860. * src/Metalink2RequestGroup.cc
  8861. * src/MetalinkHelper.cc
  8862. * src/MetalinkEntry.cc
  8863. * src/ChunkChecksum.h
  8864. Rewritten Base64 class for better performance.
  8865. * src/Base64.{h, cc}
  8866. * test/Base64Test.cc
  8867. * src/HttpRequest.cc
  8868. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8869. Fixed the bug#1841757: aria2 will connect to server to only get
  8870. file size.
  8871. * src/StreamFileAllocationEntry.cc
  8872. * src/option_processing.cc
  8873. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8874. downloads.
  8875. * src/FtpNegotiationCommand.cc
  8876. Suppressed wrong message when finding PreDownloadHandler
  8877. * src/RequestGroup.cc
  8878. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Updated usage
  8880. * src/version_usage.cc
  8881. Updated man page
  8882. * doc/aria2c.1.txt
  8883. * doc/aria2c.1
  8884. Updated po files
  8885. * po/aria2c.pot
  8886. * po/*.po
  8887. * po/*.gmo
  8888. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Eliminated g++-4.2 warning
  8890. * src/DownloadHandlerConstants.{h, cc}
  8891. * src/Util.cc
  8892. * test/MetaFileUtilTest.cc
  8893. * test/PStringBuildVisitorTest.cc
  8894. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8895. * src/RequestGroup.cc
  8896. * src/BtCheckIntegrityEntry.cc
  8897. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. Fixed a2io.h
  8899. * src/a2io.h
  8900. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Added direct I/O support. The current implementation uses O_DIRECT,
  8902. which is not posix standard and is tested on linux 2.6.21.
  8903. Currently only file allocation uses direct I/O.
  8904. * src/SingleFileAllocationIterator.{h, cc}
  8905. * test/SingleFileAllocationIteratorTest.cc
  8906. * src/MultiFileAllocationIterator.{h, cc}
  8907. * test/MultiFileAllocationIteratorTest.cc
  8908. * src/BinaryStream.h
  8909. * src/DiskWriter.h
  8910. * src/AbstractDiskWriter.{h, cc}
  8911. * src/ByteArrayDiskWriter.h
  8912. * src/DiskAdaptor.h
  8913. * src/AbstractSingleDiskAdaptor.{h, cc}
  8914. * src/MultiDiskAdaptor.{h, cc}
  8915. * src/FileAllocationEntry.cc
  8916. * src/Util.{h, cc}
  8917. * src/OptionHandlerFactory.cc
  8918. * src/prefs.h
  8919. * src/version_usage.cc
  8920. * src/option_processing.cc
  8921. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8922. handleException.
  8923. * src/MultiFileAllocationIterator.cc
  8924. Added EINTR handling
  8925. * src/SocketCore.cc
  8926. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Updated usage
  8928. * src/version_usage.cc
  8929. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8930. Applied Ross's patch for MinGW port.
  8931. * src/DownloadEngine.h
  8932. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Set Content-Type to SingleFileDownloadContext when http response is
  8934. received.
  8935. * src/HttpResponseCommand.cc
  8936. * src/HttpResponse.{h, cc}
  8937. * test/HttpResponseTest.cc
  8938. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. Rewritten to add content-type support.
  8940. * src/DownloadHandler.{h, cc}
  8941. * src/BtPostDownloadHandler.{h, cc}
  8942. * test/BtPostDownloadHandlerTest.cc
  8943. * src/MetalinkPostDownloadHandler.{h, cc}
  8944. * test/MetalinkPostDownloadHandlerTest.cc
  8945. * src/PostDownloadHandler.{h, cc}
  8946. * src/DownloadHandlerConstants.{h, cc}
  8947. * src/RequestGroup.cc
  8948. * src/HttpResponseCommand.cc
  8949. * src/FtpNegotiationCommand.cc
  8950. * src/SingleFileDownloadContext.{h, cc}
  8951. * src/RequestGroup.h
  8952. * src/RequestGroupCriteria.h
  8953. * src/ContentTypeRequestGroupCriteria.h
  8954. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8955. If it is give, metalink/torrent file is not written to the disk, but
  8956. just is kept in memory. Parsing is occurred on memory.
  8957. * src/MetalinkHelper.{h, cc}
  8958. * src/MetalinkProcessor.h
  8959. * src/Xml2MetalinkProcessor.{h, cc}
  8960. * test/Xml2MetalinkProcessorTest.cc
  8961. * src/DownloadHandlerFactory.{h, cc}
  8962. * test/DownloadHandlerFactoryTest.cc
  8963. * src/PreDownloadHandler.{h, cc}
  8964. * src/OptionHandlerFactory.cc
  8965. * src/DefaultBtContext.{h, cc}
  8966. * test/DefaultBtContextTest.cc
  8967. * src/version_usage.cc
  8968. * src/Metalink2RequestGroup.{h, cc}
  8969. * src/RequestGroup.{h, cc}
  8970. * src/a2functional.h
  8971. * test/a2functionalTest.cc
  8972. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8973. * src/OptionHandlerImpl.h
  8974. * src/prefs.h
  8975. * src/Util.{h, cc}
  8976. * test/UtilTest.cc
  8977. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8978. memory usage.
  8979. * src/RequestGroupMan.{h, cc}
  8980. * src/DownloadEngine.cc
  8981. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8982. WeakHandle to SharedHandle because WeakHandle could be null.
  8983. * src/RequestGroup.{h, cc}
  8984. * src/DownloadEngineFactory.cc
  8985. * src/DownloadResult.h
  8986. Set totalLength after download finished
  8987. * src/UnknownLengthPieceStorage.{h, cc}
  8988. Keep torrent file specified in metalink in memory.
  8989. * src/Metalink2RequestGroup.cc
  8990. * src/BtDependency.cc
  8991. * src/TrueRequestGroupCriteria.h
  8992. Fixed the bug: seekg is used where seekp should be used.
  8993. * src/ByteArrayDiskWriter.cc
  8994. * test/ByteArraydiskWriterTest.cc
  8995. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8996. Fixed syntax error
  8997. * test/SequenceTest.cc
  8998. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8999. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9000. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9001. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9002. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9003. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Added the check to see whether ares_host_callback accepts timeouts
  9005. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9006. * src/NameResolver.{h, cc}
  9007. * m4/libcares.m4
  9008. * configure.ac: Set C++ for language choice.
  9009. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Fixed: compilation fails without c-ares/ares
  9011. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9012. Generate http/ftp commands only when download is incomplete.
  9013. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9014. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. Corrected typo. Examples are removed since they are available in man
  9016. page.
  9017. * src/version_usage.cc
  9018. Updated man page.
  9019. * doc/aria2c.1
  9020. * doc/aria2c.1.txt
  9021. * doc/makeman: Commented out sed command.
  9022. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Throw DlAbortEx when a remote file is not found.
  9024. * src/HttpResponse.cc
  9025. * src/FtpNegotiationCommand.cc
  9026. * src/message.h
  9027. Overwrite an existing file if --allow-overwrite=true is given.
  9028. * src/RequestGroup.cc
  9029. Removed unused functions
  9030. * src/AbstractCommand.h
  9031. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Removed 'extern' from 'extern typedef ...' in src/*.h
  9033. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9034. Updated usage
  9035. * src/version_usage.cc
  9036. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. Trim announce URL
  9038. * src/DefaultBtContext.cc
  9039. * test/ShaVisitorTest.cc
  9040. Trim argument s. Give trimed s to exception constructor.
  9041. * src/Util.cc (parseInt)(parseLLInt)
  9042. * test/UtilTest.cc
  9043. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Set precision back to 1.
  9045. * src/ConsoleStatCalc.cc (calculateStat)
  9046. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Replaced strtol with Util::parseInt
  9048. * src/ChunkedEncoding.cc
  9049. * src/HttpConnection.cc
  9050. * src/CookieBoxFactory.cc
  9051. * src/ParameterizedStringParser.cc
  9052. * src/Util.cc
  9053. * test/UtilTest.cc
  9054. * test/OptionHandlerTest.cc
  9055. * src/Request.cc
  9056. Throw exception when empty string is given. The message for exception
  9057. changed.
  9058. * src/Util.cc (parseInt)(parseLLInt)
  9059. * src/message.h
  9060. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9061. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9062. set to 1.
  9063. * src/ConsoleStatCalc.cc (calculateStat)
  9064. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9065. Preallocate non-requested file which is adjacent forward to requested
  9066. file('requested' files means the files given in --select-file option)
  9067. if they share a same piece.
  9068. This fixes long pause in the file system which doesn't support sparse
  9069. files like FAT32 while downloading.
  9070. * src/MultiFileAllocationIterator.{h, cc}
  9071. * test/MultiFileAllocationIteratorTest.cc
  9072. * src/FileEntry.{h, cc}
  9073. Removed unused _option.
  9074. * src/MultiDiskAdaptor.h
  9075. * test/MultiDiskAdaptorTest.cc
  9076. * src/DefaultPieceStorage.cc
  9077. Set the default value of --seed-ratio to 1.0.
  9078. If 0.0 is given, then seeding continues regardless of share ratio.
  9079. * src/version_usage.cc
  9080. * src/option_processing.cc
  9081. * src/BtSetup.cc
  9082. * doc/aria2c.1.txt
  9083. * doc/aria2c.1
  9084. Fixed: Selective download is not working in BitTorrent
  9085. * src/RequestGroup.cc
  9086. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9087. * src/PieceStorage.h
  9088. * test/MockPieceStorage.h
  9089. * src/UnknownLengthPieceStorage.h
  9090. * src/DefaultPieceStorage.{h, cc}
  9091. * src/Metalink2RequestGroup.cc
  9092. * src/RequestGroup.cc
  9093. * src/Sequence.h
  9094. * test/SequenceTest.cc
  9095. * src/IntSequence.h
  9096. * src/message.h
  9097. * src/Util.{h, cc}
  9098. * test/UtilTest.cc
  9099. Added new function 'parse' to catch exception thrown by subclass's
  9100. parseArg
  9101. * src/OptionHandler.h
  9102. * src/OptionParser.cc
  9103. * src/NameMatchOptionHandler.h
  9104. * src/OptionHandlerImpl.h
  9105. * test/OptionHandlerTest.cc
  9106. Added IntegerRangeOptionHandler. Used for --listen-port and
  9107. --select-file. Now --listen-port accepts range of port.
  9108. * src/OptionHandlerFactory.cc
  9109. * src/version_usage.cc
  9110. * src/OptionHandlerImpl.h
  9111. * src/option_processing.cc
  9112. * src/BtSetup.cc
  9113. * src/PeerListenCommand.{h, cc}
  9114. * doc/aria2c.1.txt
  9115. * doc/aria2c.1
  9116. Implemented operator< for Exception class to provide easy way to print
  9117. exception stack trace.
  9118. * src/Exception.{h, cc}
  9119. * src/main.cc
  9120. * src/option_processing.cc
  9121. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9122. * src/version_usage.cc
  9123. (showVersion): Reworked.
  9124. (showUsage): Added examples.
  9125. Removed Hint for total length and file name.
  9126. * src/Metalink2RequestGroup.cc
  9127. * src/RequestGroup.{h, cc}
  9128. * src/HttpResponseCommand.cc
  9129. * src/FtpNegotiationCommand.cc
  9130. Now --follow-torrent and --follow-metalink option work properly.
  9131. * src/RequestGroup.cc
  9132. Updated man page
  9133. * doc/aria2c.1.txt
  9134. * doc/aria2c.1
  9135. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9136. Removed.
  9137. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9138. Use Segment::operator==()
  9139. * src/HttpConnection.cc
  9140. * src/Segment.h
  9141. Updated usage
  9142. * src/version_usage.cc
  9143. Added EINTR treatment.
  9144. * src/SocketCore.cc
  9145. * src/AbstractDiskWriter.cc
  9146. Rewritten.
  9147. * src/Util.cc (rangedFileCopy)
  9148. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. Fixed typo.
  9150. * src/version_usage.cc
  9151. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Implemented. Now -c option works fine.
  9153. * src/DefaultPieceStorage.cc (markPiecesDone)
  9154. * test/DefaultPieceStorageTest.cc
  9155. Removed.
  9156. * src/SegmentMan.{h, cc}
  9157. (markAllPiecesDone)
  9158. (markPieceDone)
  9159. Synchronized po files with
  9160. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9161. * src/fr.po
  9162. * src/ru.po
  9163. * src/de.po
  9164. * src/ja.po
  9165. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9166. Added ifdef and some modifications to compile without BitTorrent,
  9167. Metalink, MessageDigest
  9168. support.
  9169. * src/PieceHashCheckIntegrityEntry.cc
  9170. * src/MetalinkEntry.h
  9171. * src/version_usage.cc
  9172. * src/main.cc
  9173. * src/DownloadEngine.{h, cc}
  9174. * src/Metalink2RequestGroup.cc
  9175. * src/Peer.cc
  9176. * src/RequestGroup.cc
  9177. * src/MetalinkHelper.cc
  9178. * test/DefaultPieceStorageTest.cc
  9179. * test/MetalinkPostDownloadHandlerTest.cc
  9180. * test/Metalink2RequestGroupTest.cc
  9181. Hide TOTAL SPD when all downloads complete.
  9182. * src/ConsoleStatCalc.cc
  9183. Log target system information.
  9184. * src/main.cc
  9185. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. Now --metalink-location accepts a comma-deliminated list of locations.
  9187. * src/MetalinkEntry.{h, cc}
  9188. * test/MetalinkEntryTest.cc
  9189. * src/version_usage.cc
  9190. * src/Metalink2RequestGroup.cc
  9191. * src/Xml2MetalinkProcessor.cc
  9192. * test/Xml2MetalinkProcessorTest.cc
  9193. * doc/aria2c.1.txt
  9194. * doc/aria2c.1
  9195. * src/Util.cc (toUpper)(toLower): Rewritten.
  9196. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Added the ability to detect duplicate download entry which is about to
  9198. download the same file other RequestGroup is downloading.
  9199. * src/RequestGroup.cc
  9200. * src/HttpResponseCommand.cc
  9201. * src/FtpNegotiationCommand.cc
  9202. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Recalculates download progress when loading a control file,
  9204. if the piece length of DownloadContext is different from the one saved
  9205. in the control file. Currently in-flight pieces are ignored.
  9206. * src/DefaultBtProgressInfoFile.cc
  9207. * test/DefaultBtProgressInfoFileTest.cc
  9208. * src/Util.{h, cc}
  9209. * test/UtilTest.cc
  9210. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Do not rotate tiers in announce-list.
  9212. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9213. AnnounceList::allTiersFailed() used instead to detect whether all
  9214. tiers are tried and failed.
  9215. * test/DefaultBtAnnounceTest.cc
  9216. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9217. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9218. * test/AnnounceListTest.cc
  9219. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9220. clause. Catch RecoverableException instead of DlRetryEx instead.
  9221. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9222. Implemented checksum validation feature(1 checksum for each file)
  9223. The validation takes place after the download.
  9224. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9225. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9226. * src/CheckIntegrityCommand.cc: Changed log message.
  9227. * src/Metalink2RequestGroup.cc: Set checksum to
  9228. SingleFileDownloadContext.
  9229. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9230. PieceHashCheckIntegrity class.
  9231. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9232. PieceHashCheckIntegrity class.
  9233. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9234. * src/IteratableValidator.h: New class.
  9235. * src/message.h
  9236. * src/CheckIntegrityEntry.{h, cc}
  9237. * src/IteratableChunkChecksumValidator.{h, cc}
  9238. * src/SingleFileDownloadContext.h
  9239. * src/DownloadCommand.cc
  9240. --allow-overwrite=true is no longer needed to check file integrity
  9241. before download in BitTorrent download.
  9242. * src/RequestGroup.cc (getInitialCommand)
  9243. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9244. throws exception.
  9245. * src/RequestGroupMan.cc (getInitialCommands)
  9246. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9247. urlencode the given url inside Request::parseUrl(...)
  9248. * src/Request.{h, cc}
  9249. * src/Util.{h, cc}
  9250. * test/RequestTest.cc
  9251. Removed #!metalink3! notation support because it is deleted from
  9252. the metalink specification.
  9253. * src/Request.{h, cc}
  9254. * test/RequestTest.cc
  9255. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9256. Don't connect server before checking file integrity at startup, if
  9257. filesize and output file path are known.
  9258. * src/AbstractCommand.cc
  9259. * src/StreamFileAllocationEntry.cc
  9260. * src/Metalink2RequestGroup.cc
  9261. * src/RequestGroup.{h, cc}
  9262. * src/HttpResponseCommand.cc
  9263. * src/FtpNegotiationCommand.cc
  9264. Added DownloadFailureException. If it is thrown, RequestGroup should
  9265. halt.
  9266. * src/AbstractCommand.cc
  9267. * src/DownloadFailureException.h
  9268. * src/RequestGroup.cc
  9269. Catch RecoverableException, instead of DlAbortEx.
  9270. * src/RequestGroupMan.cc
  9271. * src/FillRequestGroupCommand.cc
  9272. * src/MetaFileUtil.cc
  9273. * src/IteratableChunkChecksumValidator.cc
  9274. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9275. getGID())
  9276. * src/CheckIntegrityCommand.cc
  9277. * src/message.h
  9278. Print gid instead of idx.
  9279. * src/RequestGroupMan.cc
  9280. Removed exception throwers declaration.
  9281. * src/DirectDiskAdaptor.{h, cc}
  9282. * src/SocketCore.{h, cc}
  9283. * src/MultiDiskAdaptor.{h, cc}
  9284. * src/HttpConnection.{h, cc}
  9285. * src/HttpResponse.{h, cc}
  9286. * src/DiskAdaptor.{h, cc}
  9287. * src/CopyDiskAdaptor.{h, cc}
  9288. * src/MultiDiskAdaptor.{h, cc}
  9289. * src/HttpHeaderProcessor.{h, cc}
  9290. * src/AbstractSingleDiskAdaptor.{h, cc}
  9291. * src/Util.{h, cc}
  9292. * test/UtilTest.cc
  9293. * src/DefaultDiskWriter.{h, cc}
  9294. * src/FtpConnection.{h, cc}
  9295. * src/AbstractDiskWriter.{h, cc}
  9296. Removed duplicate code.
  9297. * src/StreamCheckIntegrityEntry.cc
  9298. Removed unnecessary include.
  9299. * src/DiskWriter.h
  9300. Included Exception.h
  9301. * src/option_processing.cc
  9302. Included 2 files and added doc
  9303. * src/TrackerWatcherCommand.cc
  9304. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9305. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. Changed CheckIntegrityEntry interface so that it can define
  9307. the action when all the chunk checksums are valid.
  9308. * src/CheckIntegrityEntry.h
  9309. * src/StreamCheckIntegrityEntry.{h, cc}
  9310. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9311. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9312. to exit rather than doing seeding. So, it would be good to toggle this
  9313. behavior.
  9314. * src/CheckIntegrityCommand.cc
  9315. * src/AbstractCommand.cc
  9316. * src/RequestGroup.cc
  9317. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9318. Reflect the download length of in-flight pieces.
  9319. It makes the download length readout more precise.
  9320. * src/DefaultPieceStorage.{h, cc}
  9321. * test/DefaultPieceStorageTest.cc
  9322. * src/a2functional.h
  9323. * test/a2functionalTest.cc
  9324. Lower CPU load when --max-download-limit is used.
  9325. There is up and down in speed indicator when enabling
  9326. http-pipelining but a download goes well. I think the problem is that
  9327. because http-pipelining is enabled, DownloadCommand is created for
  9328. each segment and in its constructor, PeerStat::downloadStart() is
  9329. called. In PeerStat::downloadStart(), speed calculation object is
  9330. reseted, which makes download speed zero.
  9331. * src/DownloadCommand.cc
  9332. Rewritten using accumulate.
  9333. * src/RequestGroupMan.cc (calculateStat)
  9334. Code clearnup.
  9335. * src/FtpNegotiationCommand.cc
  9336. * src/HttpResponseCommand.cc
  9337. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Fixed: Can not resume: aria2 reports download already finished.
  9339. * src/AbstractCommand.{h, cc}
  9340. * src/HttpResponseCommand.cc
  9341. * src/FtpNegotiateCommand.cc
  9342. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Now a file is stored in the directory specified in .metalnk file
  9344. (file[@name]).
  9345. * src/Metalink2RequestGroup.cc
  9346. Create the directory structure when opening the file if it doesn't
  9347. exist.
  9348. * src/AbstractDiskWriter.cc
  9349. * src/Util.{h, cc}
  9350. * src/File.h
  9351. * test/UtilTest.cc
  9352. Removed file name comparison
  9353. * src/Metalink2RequestGroup.cc
  9354. * src/HttpResponseCommand.cc
  9355. Rewritten using Util::mkdirs()
  9356. * src/FileEntry.cc (setupDir)
  9357. * test/FileEntryTest.cc
  9358. Updated doc
  9359. * src/SingleFileDownloadContext.h
  9360. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9361. Now SleepCommand dispatches nextCommand when halt is requested.
  9362. It avoids a possible long wait after hitting CTRL-C.
  9363. * src/SleepCommand.{h, cc}
  9364. * src/RequestGroupAware.{h, cc}
  9365. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9366. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9367. to open listen port, then remove the port number from the tracker
  9368. request.
  9369. * src/DefaultBtAnnounce.cc
  9370. * test/DefaultBtAnnounceTest.cc
  9371. * test/MockPieceStorage.h
  9372. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9373. them more testable.
  9374. * src/DefaultBtAnnounce.{h, cc}
  9375. * src/DefaultBtContext.{h, cc}
  9376. * src/Util.{h, cc}
  9377. * test/DefaultBtAnnounceTest.cc
  9378. * test/DefaultBtContextTest.cc
  9379. * test/UtilTest.cc
  9380. Added 'B' to upload bytes readout.
  9381. * src/ConsoleStatCalc.cc
  9382. Now the listen port for BitTorrent download is opened when it is
  9383. needed.
  9384. * src/DownloadEngineFactory.cc
  9385. * src/BtSetup.{h, cc}
  9386. * src/PeerListenCommand.{h, cc}
  9387. Now an exception thrown while parsing tracker response is now logged.
  9388. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9389. called, which means no retry is made in this case, assuming a tracker
  9390. has a problem.
  9391. * src/TrackerWatcherCommand.cc
  9392. Fixed: downloading a file whose length is unkown fails.
  9393. * src/DownloadCommand.cc
  9394. Simplified prepareForNextSegment()
  9395. * src/DownloadCommand.cc
  9396. Updated
  9397. * po/POTFILES.in
  9398. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Re-implemented a file listing for Metalink, which was dropped while
  9400. http/ftp/torrent integration was being implemented.
  9401. * src/MetalinkHelper.{h, cc}: New class.
  9402. * test/MetalinkHelperTest.cc
  9403. * src/main.cc
  9404. * src/Metalink2RequestGroup.cc
  9405. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9406. Added the ability to display the detailed torrent file information.
  9407. Now -S option gives not only a file listing, but also total download
  9408. length, info hash, announce URI, piece length, the number of pieces,
  9409. and mode(single or multi-torrent).
  9410. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9411. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9412. KiB)
  9413. * test/UtilTest.cc
  9414. * src/main.cc
  9415. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9416. Added ftp://USER:PASSWD@Servername automatic parsing.
  9417. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9418. _password. Recognize username and password in URI.
  9419. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9420. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9421. * src/RequestFactory.{h, cc}: Removed.
  9422. * src/AuthConfigFactory.{h, cc}: New class.
  9423. * src/FtpConnection.cc: Use AuthConfigFactory.
  9424. * src/HttpRequest.cc: Use AuthConfigFactory.
  9425. * test/HttpRequestTest.cc: Updated.
  9426. * test/RequestTest.cc: Updated.
  9427. * test/AuthConfigFactoryTest.cc: New class.
  9428. * test/RequestFactoryTest.cc: Removed.
  9429. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Use RequestGroup::allDownloadFinished() to decide whether the control
  9431. file should be removed or saved.
  9432. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9433. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9434. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Use File::renameTo()
  9436. * src/DefaultBtProgressInfoFile.cc
  9437. Added --no-file-allocation-limit command-line option.
  9438. * src/version_usage.cc
  9439. * src/option_processing.cc
  9440. * src/OptionHandlerFactory.cc
  9441. * src/RequestGroup.{h, cc}
  9442. * src/BtCheckIntegrityEntry.cc
  9443. * src/StreamCheckIntegrityEntry.cc
  9444. * src/prefs.h
  9445. * doc/aria2c.1.txt
  9446. * doc/aria2c.1
  9447. Now prealloc is the default value for --file-allocation option.
  9448. * src/version_usage.cc
  9449. * src/option_processing.cc
  9450. * doc/aria2c.1.txt
  9451. * doc/aria2c.1
  9452. Don't URL-encode user-agent.
  9453. * src/HttpRequest.cc
  9454. Updated translations
  9455. * po/LINGUAS: Added nl for Dutch translation.
  9456. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9457. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9458. * po/POTFILES.in: Updated.
  9459. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9460. Added the ability to recognize url-list in a torrent file.
  9461. The retrieved URLs are attached to the corresponding FileEntry.
  9462. * src/DefaultBtContext.{h, cc}
  9463. * src/FileEntry.{h, cc}
  9464. * test/DefaultBtContextTest.cc
  9465. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9466. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9467. after the download finishes.
  9468. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9469. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9470. the data smaller than block length.
  9471. A block length can be specified by constructor's argument.
  9472. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9473. Get a missing piece in the range of given FileEntry. This function is
  9474. not used in the program yet.
  9475. * src/Util.h: Added some macros.
  9476. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9477. Added HTTP/1.1 keep alive and pipelining support.
  9478. See --enable-http-keep-alive and --enable-http-pipelining option.
  9479. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9480. Segment.
  9481. * src/HttpDownloadCommand.{h, cc}
  9482. * src/OptionHandlerFactory.cc
  9483. * src/HttpConnection.{h, cc}
  9484. * src/version_usage.cc
  9485. * src/HttpInitiateConnectionCommand.cc
  9486. * src/FtpInitiateConnectionCommand.cc
  9487. * src/Segment.h
  9488. * src/HttpRequestCommand.{h, cc}
  9489. * src/option_processing.cc
  9490. * src/prefs.h
  9491. * src/HttpResponseCommand.cc
  9492. * src/SegmentMan.{h, cc}
  9493. * src/FtpNegotiateCommand.cc
  9494. * src/HttpProxyResponseCommand.cc
  9495. * src/Request.cc
  9496. * src/HttpRequest.cc
  9497. * src/DownloadCommand.cc
  9498. * test/HttpRequestTest.cc
  9499. * test/RequestTest.cc
  9500. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9502. finished.
  9503. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9505. catching it inside the method.
  9506. When no file entry is found in a metalink without querying user
  9507. preferences, throw the exception with the error message that suggests
  9508. metalink file is probably broken.
  9509. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9510. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9512. processed.
  9513. * src/RequestGroupMan.cc (removeStoppedGroup)
  9514. Added debug message.
  9515. * src/BtPostDownloadHandler.cc
  9516. * src/MetalinkPostDownloadHandler.cc
  9517. * src/PostDownloadHandler.{h, cc}
  9518. * src/RequestGroup.cc
  9519. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9521. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9523. stops and there are any unfinished or in-progress downloads.
  9524. Added the legend of "stat".
  9525. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9526. Throw exception when chunck checksum verification fails.
  9527. * src/DownloadCommand.cc (validatePieceHash): New function.
  9528. * src/PiecedSegment.{h, cc} (clear): New function.
  9529. * src/GrowSegment.{h, cc} (clear): New function.
  9530. * src/Segment.h (clear): New function.
  9531. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9532. * test/SegmentTest.cc
  9533. * test/GrowSegmentTest.cc
  9534. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Do not send referer when redirected.
  9536. * src/Request.cc (redirectUrl)
  9537. * test/RequestTest.cc
  9538. * test/HttpRequestTest.cc
  9539. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9540. Implemented BitTorrent/http/ftp integrated download.
  9541. I've rewritten lots of files and now some headers have forward
  9542. class declarations to reduce compile time.
  9543. The implementation is extremely alpha stage, I recommend to use this
  9544. for testing purpose only.
  9545. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. Fixed the compilation error on 64bit platform.
  9547. * test/HttpHeaderProcessorTest.cc
  9548. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9549. Merged Ross's patch that fixes compilation problem in MinGW
  9550. * test/DefaultBtProgressInfoFileTest.cc
  9551. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Updated fr.po by sebone
  9553. * po/fr.po
  9554. Updated man page.
  9555. * doc/aria2c.1.txt
  9556. * Release 0.11.3
  9557. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9559. failure in Metalink.
  9560. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9561. Automatically save *.aria2 control file of http/ftp download in every
  9562. 60 seconds.
  9563. * src/AutoSaveCommand.{h, cc}: New class.
  9564. * src/TimeBasedCommand.{h, cc}: New class.
  9565. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9566. Disable parameterized URI support by default. Added -P option to
  9567. enable the feature.
  9568. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9569. * src/OptionHandlerFactory.cc
  9570. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9571. Updated Japanese translation.
  9572. * po/ja.po
  9573. Updated man page.
  9574. * doc/aria2c.1.txt
  9575. * Release 0.11.3-rc
  9576. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9577. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9578. it is successful, then renamed to *.aria2.
  9579. This prevents *.aria2 file from being truncated or corrupted when
  9580. file system becomes out of space.
  9581. * src/DefaultBtProgressInfoFile.cc (save)
  9582. * src/SegmentMan.cc (save)
  9583. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9584. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9585. Reduced the fragmentation of bitfield in http/ftp download.
  9586. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9587. * test/BitfieldManTest.cc
  9588. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9589. Added the ability to disable segmented download in .metalink.
  9590. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9591. 'url' tag.
  9592. * src/MetalinkEntry.{h, cc}
  9593. * src/RequestResource.{h, cc}
  9594. * src/MetalinkRequestInfo.cc
  9595. * src/Xml2MetalinkProcessor.cc
  9596. * test/Xml2MetalinkProcessorTest.cc
  9597. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9598. Added parameterized URI support.
  9599. * src/main.cc: -Z option added.
  9600. * src/OptionHandlerFactory.cc
  9601. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9602. * src/PStringDatum.h: New class.
  9603. * src/PStringSegment.{h,cc}: New class.
  9604. * src/PStringNumLoop.h: New class.
  9605. * src/PStringSelect.h: New class.
  9606. * src/NumberDecorator.h: New class.
  9607. * src/FixedWidthNumberDecorator.h: New class.
  9608. * src/AlphaNumberDecorator.h: New class.
  9609. * src/PStringVisitor.h: New class.
  9610. * src/PStringBuildVisitor.{h,cc}: New class.
  9611. * src/ParameterizedStringParser.{h,cc}: New class.
  9612. * src/Util.{h,cc}
  9613. (isNumber): New function.
  9614. (isLowercase): New function.
  9615. (isUppercase): New function.
  9616. (alphaToNum): New function.
  9617. * test/ParameterizedStringParserTest.cc: New class.
  9618. * test/AlphaNumberDecoratorTest.cc: New class.
  9619. * test/PStringBuildVisitorTest.cc: New class.
  9620. * test/UtilTest.cc
  9621. (testIsNumber): New function.
  9622. (testIsLowercase): New function.
  9623. (testIsUppercase): New function.
  9624. (testAlphaToNum): New function.
  9625. Added '\n' after the error message
  9626. * src/RequestInfo.h (printDownloadAbortMessage)
  9627. Added auto file renaming feature in http(s)/ftp download.
  9628. * src/main.cc: Added --auto-file-renaming command-line option.
  9629. * src/OptionHandlerFactory.cc
  9630. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9631. * src/RequestGroup.{h, cc}
  9632. (shouldCancelDownloadForSafety): Rewritten
  9633. (tryAutoFileRenaming): New function.
  9634. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9635. * src/HttpResponseCommand.cc
  9636. (executeInternal): Removed the call to RequestGroupMan::
  9637. isSameFileBeingDownloaded()
  9638. * src/FtpNegotiateCommand.cc
  9639. (recvSize): Removed the call to RequestGroupMan::
  9640. isSameFileBeingDownloaded()
  9641. * test/RequestGroupTest.cc: New class.
  9642. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9643. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9644. IO.
  9645. * src/DefaultBtProgressInfoFile.cc
  9646. * src/MetaFileUtil.cc
  9647. * src/SimpleLogger.cc
  9648. * src/SegmentMan.cc
  9649. * src/Util.cc
  9650. * src/Platform.cc
  9651. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9652. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9653. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9655. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9656. Fixed the bug that prevents file allocation is not done when
  9657. dowloading multi-torrent file.
  9658. * src/AbstractDiskWriter.cc (openFile)
  9659. Increase the maximum number of -j option from 15 to 45.
  9660. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9661. Added fr.po, thanks to Charles Landemaine.
  9662. * po/fr.po
  9663. * po/LINGUAS
  9664. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9665. gcc 3.4.4 support:
  9666. * src/DefaultBtContext.cc: int32_t -> int
  9667. * src/main.cc: int -> int32_t, int32_t -> int
  9668. * src/messageDigest.h: uint32_t -> unsigned int
  9669. * src/NameResolver.h: int32_t -> int
  9670. * src/PeerConnection.cc: int -> int32_t
  9671. * src/SpeedCalc.cc: int32_t -> int
  9672. * src/TrackerUpdateCommand.h: int -> int32_t
  9673. * src/Util.cc: int32_t -> int
  9674. * src/Util.h: int32_t -> int
  9675. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  9676. * test/AnnounceListTest.cc: int -> int32_t
  9677. * test/ChunkedEncodingTest.cc: int -> int32_t
  9678. * test/DataTest.cc: int -> int32_t
  9679. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  9680. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  9681. * test/DefaultPieceStorageTest.cc: int -> int32_t
  9682. * test/FeatureConfigTest.cc: int -> int32_t
  9683. * test/MetalinkEntryTest.cc: int -> int32_t
  9684. * test/MockBtRequestFactory.h: int -> int32_t
  9685. * test/MockPieceStorage.h: int -> int32_t
  9686. * test/OptionTest.cc: int -> int32_t
  9687. * test/RequestTest.cc: int -> int32_t
  9688. * test/SegmentManTest.cc: int -> int32_t
  9689. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  9690. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9691. Move sleep functions to Util class:
  9692. * src/Util.cc
  9693. (sleep): New function.
  9694. (usleep): New function.
  9695. * src/DownloadCommand.cc: sleep -> Util::sleep
  9696. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  9697. MinGW build enhancements. The following files are added:
  9698. * src/timegm.{c,h}
  9699. Changes to support the above new files:
  9700. * configure.ac
  9701. * src/Makefile.am
  9702. * src/a2time.h
  9703. * src/Util.cc:
  9704. * src/strptime.c: Added support for %Z option.
  9705. Fixed MinGW non-blocking bug.
  9706. * src/SocketCore.cc
  9707. * src/HttpRequestCommand.cc
  9708. Miscellenous build fixes/enhancements.
  9709. * configure.ac: Added summary report.
  9710. * src/Platform.h: Tweaked #include's.
  9711. * src/a2netcompat.h: Tweaked #include's.
  9712. * src/strptime.h: Tweaked #include's.
  9713. * src/gai_strerror.c: Tweaked #include's.
  9714. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  9715. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9716. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9717. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. Increased the initial connection size in BitTorrent download to 40.
  9719. * src/BtRuntime.h
  9720. Added the usage message of --peer-id-prefix option.
  9721. * src/main.cc
  9722. * Release 0.11.2
  9723. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9724. MessageDigestHelper is introduced in order to simplify the use
  9725. of message digest. Removed repeated code.
  9726. The message digest algorithm is now specified by string, like "sha1",
  9727. "md5".
  9728. * src/messageDigest.{h, cc}
  9729. * src/MessageDigestHelper.{h, cc}: New class.
  9730. * src/DefaultPieceStorage.cc
  9731. * src/DefaultBtContext.{h, cc}
  9732. (computeFastSet): New function.
  9733. (setInfoHash): Added for unit testing.
  9734. (setNumPieces): Added for unit testing.
  9735. * src/DefaultBtInteractive.cc
  9736. * src/BtPieceMessage.cc
  9737. * src/Peer.cc
  9738. * src/Checksum.h
  9739. * src/message.h
  9740. * src/IteratableChecksumValidator.h
  9741. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9742. inside it.
  9743. * src/SegmentMan.{h, cc}
  9744. (checkIntegrity): Removed.
  9745. * src/IteratableChunkChecksumValidator.{h, cc}
  9746. * src/Util.h
  9747. (sha1Sum): Removed.
  9748. (simpleMessageDigest): Removed.
  9749. (fileChecksum): Removed.
  9750. (computeFastSet): Removed.
  9751. * src/ShaVisitor.cc
  9752. * src/ChunkChecksum.h
  9753. * src/DownloadCommand.cc
  9754. Removed messageDigest virtual functions.
  9755. * src/MultiDiskAdaptor.{h, cc}
  9756. * src/DiskAdaptor.h
  9757. * src/ByteArrayDiskWriter.h
  9758. * src/DiskWriter.h
  9759. * src/DiskAdaptorWriter.h
  9760. * src/AbstractSingleDiskAdaptor.{h, cc}
  9761. * src/AbstractDiskWriter.{h, cc}
  9762. Fixed comilation error when message digest is disabled.
  9763. * src/MetalinkEntry.{h, cc}
  9764. * src/MetalinkRequestInfo.cc
  9765. Removed srandom and random.
  9766. * src/SimpleRandomizer.h
  9767. Added size() virtual function to DiskAdaptor
  9768. * src/MultiDiskAdaptor.h
  9769. Fixed the bug that causes that files are not opened correctly in
  9770. multi-file torrent.
  9771. * src/TorrentRequestInfo.cc
  9772. * src/MultiDiskAdaptor.cc
  9773. Added SHA256 support
  9774. * src/messageDigest.cc
  9775. * src/Xml2MetalinkProcessor.cc
  9776. Show supported message digest algorithms
  9777. * src/main.cc
  9778. Updated contact info.
  9779. * src/main.cc
  9780. Applied Ross's patch
  9781. * src/a2netcompat.h
  9782. * src/main.cc
  9783. Fixed the bug that prevents a remote metalink from not being processed
  9784. even if '-o foo.metalink' is specified.
  9785. * src/MetalinkRequestInfo.cc
  9786. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9787. Merged Dan's patch:
  9788. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9789. Use va_copy to avoid core dump on amd64:
  9790. * src/SimpleLogger.cc
  9791. Updated contact info.
  9792. * src/main.cc
  9793. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9794. digest is not available.
  9795. * src/MetalinkEntry.h
  9796. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Make a2netcompat.h include a2io.h to fix compilation error:
  9798. * src/a2netcompat.h
  9799. * src/SocketCore.cc: Removed include of a2io.h
  9800. * src/Util.cc: Removed include of a2io.h
  9801. Gather time related functions to a2time.h:
  9802. * src/a2time.h: New file.
  9803. * src/DefaultPeerStorage.cc
  9804. * src/SimpleLogger.cc
  9805. * src/Util.{h, cc}
  9806. * src/SimpleRandomizer.h
  9807. * src/TimeA2.{h,cc}
  9808. * src/DownloadCommand.cc
  9809. * src/main.cc
  9810. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9811. a2netcompat.h:
  9812. * src/NameResolver.cc
  9813. Fixed compilation error without openssl:
  9814. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9815. Added default block to suppress compiler warnings:
  9816. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9817. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9818. MinGW build enhancements. The following files are added:
  9819. * src/gai_strerror.{c,h}
  9820. * src/gettimeofday.{c,h}
  9821. Changes to support the above new files:
  9822. * configure.ac
  9823. * src/Makefile.am
  9824. * src/a2netcompat.h
  9825. * src/TimeA2.cc
  9826. * src/DefaultPeerStorage.cc
  9827. * src/NameResolver.cc: removed mingw_strerror() function.
  9828. * src/SocketCore.cc: removed mingw_strerror() function.
  9829. Miscellaneous MinGW build fixes.
  9830. * src/a2io.h: Use _lseeki64() instead of lseek()
  9831. * src/common.h
  9832. * src/DefaultFileAllocator.cc
  9833. * src/GlowFileAllocator.cc
  9834. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9835. * src/NameResolver.cc
  9836. (callback): Changed int32_t to int.
  9837. (resolve): Changed int32_t to int.
  9838. * src/Platform.cc
  9839. * src/Platform.h
  9840. * test/MultiDiskWriterTest.cc
  9841. * test/PeerMessageUtilTest.cc
  9842. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9843. Other enhancements and fixes.
  9844. * src/HttpRequestCommand.cc
  9845. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9846. * src/SocketCore.cc:
  9847. (error): New function to abstract errno/WSAGetLastError().
  9848. (errorMsg): New function to abstract errno/WSAGetLastError().
  9849. (initiateSecureConnection): Added more detailed error reporting.
  9850. * src/SocketCore.h: Added private variable blocking, to allow
  9851. proper handling of OpenSSL psuedo-errors.
  9852. * src/message.h
  9853. (EX_SSL_INIT_FAILURE)
  9854. (EX_SSL_IO_ERROR)
  9855. (EX_SSL_PROTOCOL_ERROR)
  9856. (EX_SSL_UNKNOWN_ERROR)
  9857. (EX_SSL_CONNECT_ERROR)
  9858. (EX_SOCKET_BLOCKING)
  9859. (EX_SOCKET_NONBLOCKING)
  9860. (EX_SOCKET_UNKNOWN_ERROR)
  9861. * src/Util.cc
  9862. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9863. reserved name.
  9864. (httpGMT): Fixed typo.
  9865. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Merged Ross's win32 patch(manually)
  9867. In the course of merging, following files are added.
  9868. * src/strptime.{h,c}
  9869. * src/libgen.{h,c}
  9870. * src/inet_aton.{h,c}
  9871. * src/Platform.{h,cc}
  9872. * src/localtime_r.{h,c}
  9873. * src/getaddrinfo.{h,c}
  9874. I've gethered network related things, and put them to following file:
  9875. * src/a2netcompat.h
  9876. Also io related things are put to following file:
  9877. * src/a2io.h
  9878. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9879. * src/message.h
  9880. (MSG_ALLOCATION_COMPLETED)
  9881. (EX_TOO_LARGE_FILE)
  9882. (EX_SIZE_MISMATCH)
  9883. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9884. (EX_INVALID_CHUNK_CHECKSUM)
  9885. (EX_INVALID_RANGE_HEADER)
  9886. * src/FileAllocationCommand.cc
  9887. * src/HttpResponse.cc
  9888. * src/RequestGroup.cc
  9889. * src/MultiDiskAdaptor.cc
  9890. * src/OptionHandlerImpl.h
  9891. * src/HttpResponseCommand.cc
  9892. * src/FtpNegotiateCommand.cc
  9893. * src/IteratableChecksumValidator.cc
  9894. * src/SegmentMan.cc
  9895. * src/ChunkChecksumValidator.cc
  9896. Added Randomizer::getRandomNumber(long int)
  9897. * src/Randomizer.h (getRandomNumber)
  9898. * src/SimpleRandomizer.h (getRandomNumber)
  9899. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9900. * src/Util.cc (randomAlpha): Use this new function.
  9901. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9902. Converted int's to in32_t. long long int's are also converted to
  9903. int64_t
  9904. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9905. Fixed the bug that prevents cookies from being sent to the server
  9906. if the domain of cookie is FQDN and starts with ".".
  9907. * src/Cookie.cc (match)
  9908. To add the ability to change peer id.
  9909. * src/DefaultBtContext.h
  9910. (_peerIdPrefix): New variable
  9911. (setPeerIdPrefix): New function.
  9912. * src/torrentRequestInfo.cc
  9913. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9914. DefaultBtContext.
  9915. * src/main.cc (main): Added peer-id-prefix command-line option.
  9916. The usage message is not added yet.
  9917. * src/DefaultBtContext.cc
  9918. (generatePeerId): Use _peerIdPrefix.
  9919. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9920. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9921. Fixed the bug that prevents filename in content-disposition from
  9922. being retrieved when filename is not quoted.
  9923. * src/Util.cc (getContentDispositionFilename)
  9924. Fixed the bug that causes infinate loop and memory leak when file open
  9925. operation failed.
  9926. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9927. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9928. Fixed the bug that causes segfault when all URIs specified are
  9929. unsupported.
  9930. * src/RequestGroupMan.cc (getInitialCommands)
  9931. Check if RequestGroup::createNextCommand() returns empty list of
  9932. commands.
  9933. * src/RequestGroup.cc (createNextCommand)
  9934. Change log level from info to error so that users can notice that
  9935. an error occurred.
  9936. Fixed the bug that causes segfault when a zero-sized file is
  9937. downloaded.
  9938. * src/BitfieldMan.cc (isAllBitSet)
  9939. Return true if bitfieldLength is 0.
  9940. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9941. * src/main.cc
  9942. (showUsage): Added 3 usage examples for metalink download.
  9943. Replace MetalinkChunkChecksum with ChunkChecksum.
  9944. * src/MetalinkChunkChecksum.h: Removed.
  9945. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9946. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9947. * src/Xml2MetalinkProcessor.cc
  9948. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9949. * src/MetalinkRequestInfo.cc (execute)
  9950. * Release 0.11.1
  9951. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9952. Reads URIs from stdin when "-i -" is specified.
  9953. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9954. * src/UriListParser.h, src/UriListParser.cc: New class.
  9955. * src/StreamUriListParser.h: New class.
  9956. * src/FileUriListParser.h: New class.
  9957. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9958. instead of UriFileListParser.
  9959. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. Made console readout more readable.
  9961. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9962. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9963. Fix the bug that causes -s option not to work.
  9964. * src/main.cc (main)
  9965. * src/a2algo.h: New file.
  9966. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9967. Create directory structure specified in metalink file.
  9968. * src/RequestGroup.h, src/RequestGroup.cc
  9969. (initAndOpenFile): Create a directory to store files if it does not
  9970. exist.
  9971. (getDir): New function.
  9972. Added ETA and download speed for an individual file to readout.
  9973. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9974. * src/RequestGroup.h
  9975. (calculateDownloadSpeed): New function.
  9976. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9977. Made -S option work with metalink file and provided selective download
  9978. to metalink.
  9979. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9980. (filename): Removed.
  9981. (file): New variable.
  9982. (size): Removed.
  9983. (operator=): Updated.
  9984. (getPath): New function.
  9985. (getLength): New function.
  9986. (toFileEntry): New function.
  9987. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9988. (execute): Use toStream.
  9989. (showFileEntry): Removed.
  9990. * src/MetalinkRequestInfo.h
  9991. (targetFiles): New variable.
  9992. (setTargetFiles): New variable.
  9993. * src/MetalinkRequestInfo.cc
  9994. (execute): Added the ability to print file information included in
  9995. a metalink file.
  9996. Added selective download mode to metalink.
  9997. * src/main.cc
  9998. (showUsage): Updated to denote that -S and --select-file options are
  9999. applicable to metalink.
  10000. * src/FileEntry.h
  10001. (operator=): New function.
  10002. (getBasename): New function.
  10003. (getDirname): New function.
  10004. * src/Util.h, src/Util.cc
  10005. (toStream): New function.
  10006. * src/Xml2MetalinkProcessor.cc: Updated.
  10007. Made aria2 work with metalink with directory structure.
  10008. * src/File.h, src/File.cc
  10009. (getBasename): New function.
  10010. (getDirname): New function.
  10011. * src/RequestGroup.h, src/RequestGroup.cc
  10012. (_topDir): New variable.
  10013. (setTopDir): New function.
  10014. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10015. Rewrote HTTP header parsing with stringstream.
  10016. * src/HttpConnection.h, src/HttpConnection.cc
  10017. (HttpRequestEntry): New class.
  10018. (headerBuf): Removed.
  10019. (headerBufLength): Removed.
  10020. (outstandingHttpRequests): Now its element type is
  10021. HttpRequestEntryHandle.
  10022. (findEndOfHeader): Removed.
  10023. (receiveResponse): Rewritten.
  10024. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10025. Updated doc for -j option to notice that it should be used with -i
  10026. option.
  10027. * src/main.cc (showUsage)
  10028. Removed unused classes.
  10029. * src/RequestInfo.h
  10030. (FileInfo): Removed.
  10031. (checksum): Removed.
  10032. (fileInfo): Removed.
  10033. (setChecksum): Removed.
  10034. (getChecksum): Removed.
  10035. (getFileInfo): Removed.
  10036. Use ISO units.
  10037. * src/ConsoleDownloadEngine.cc
  10038. * src/TorrentConsoleDownloadEngine.cc
  10039. * src/Util.cc (abbrevSize)
  10040. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10041. Added the default listening ports to the help message.
  10042. * src/main.cc (showUsage)
  10043. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10044. Reduce the number of calls to gettimeofday to lower CPU load.
  10045. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10046. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10047. * src/Peer.h (calculateUploadSpeed): New function.
  10048. (calculateDownloadSpeed): New function.
  10049. * src/DefaultPeerStorage.cc
  10050. (CalculateStat): Added _now variable.
  10051. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10052. and Peer::calculateUploadSpeed(const struct timeval&)
  10053. Drop connection if no request or piece message is exchanged in
  10054. a certain interval.
  10055. * src/DefaultBtInteractive.h
  10056. (btRuntime): New variable.
  10057. (inactiveCheckPoint): New variable.
  10058. (checkActiveInteraction): New function.
  10059. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10060. request or piece message is received.
  10061. (checkActiveInteraction): New function.
  10062. (doInteractionProcessing): Call checkActiveInteraction.
  10063. Fixed the bug that causes remote Metalink and Torrent files are not
  10064. processed.
  10065. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10066. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. Changed format of log file.
  10068. * src/SimpleLogger.cc
  10069. * Release 0.11.0
  10070. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10071. * src/AbstractCommand.cc
  10072. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10073. MSG_MAX_TRY from error to info.
  10074. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10075. * src/message.h
  10076. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10077. (MSG_DOWNLOAD_ABORTED): Added %s.
  10078. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10079. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10080. * src/PeerAbstractCommand.cc
  10081. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10082. * src/Request.h
  10083. (cookieBox): Made ShardHandle.
  10084. * src/RequestGroup.h, src/RequestGroup.cc
  10085. (createNextCommandWithAdj): New function.
  10086. * src/FileAllocationCommand.cc
  10087. (executeInternal): Use createNextCommandWithAdj().
  10088. * src/CheckIntegrityCommand.cc
  10089. (executeInternal): Use createNextCommandWithAdj().
  10090. Added --load-cookies command-option.
  10091. * src/OptionHandlerFactory.cc
  10092. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10093. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10094. Now aria2 can handle cookie's expiration date.
  10095. * src/Cookie.h (expires): Changed its type to time_t.
  10096. * src/main.cc: Added --load-cookies command-line option.
  10097. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10098. * src/Util.h, src/Util.cc (httpGMT): New function.
  10099. * src/Request.cc (Request): Initialize cookieBox using
  10100. CookieBoxFactory.
  10101. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10102. * src/CookieParser.h, src/CookieParser.cc: New class.
  10103. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10104. * src/HttpResponseCommand.cc
  10105. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10106. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10107. download.
  10108. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10109. Added -j command-line option.
  10110. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10111. * src/main.cc
  10112. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10113. Rewritten using stringstream.
  10114. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10115. Rewritten using stringstream.
  10116. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10117. Make download size shown in MB, KB.
  10118. * src/ConsoleDownloadEngine.h (sendStatistics)
  10119. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10120. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10121. Accept incoming connections if download rate is low.
  10122. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10123. (_lowestSpeedLimit): New variable.
  10124. (setLowestSpeedLimit): New function.
  10125. (execute): Accept incoming connections if download rate is low.
  10126. MAX_PEERS is ignored in this case.
  10127. Disable PREF_OUT in multiple concurrent download:
  10128. * src/RequestGroup.h, src/RequestGroup.cc
  10129. (setUserDefinedFilename): New function.
  10130. * src/DownloadEngineFactory.cc
  10131. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10132. concurrent download.
  10133. * src/DefaultSegmentManFactory.cc
  10134. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10135. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10136. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10137. Added its overloaded method.
  10138. * src/RequestGroup.h
  10139. (_numConcurrentCommand): New variable.
  10140. (setNumConcurrentCommand): New function.
  10141. * src/RequestGroup.cc
  10142. Abort download if same file is being downloaded concurrently.
  10143. * src/RequestGroup.h, src/RequestGroupMan.cc
  10144. (isSameFileBeingDownloaded): New function.
  10145. * src/HttpResponseCommand.cc (executeInternal)
  10146. * src/FtpNegotiateCommand.cc (recvSize)
  10147. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10148. * main.cc: Added help message for -i option.
  10149. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10151. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10152. * src/MetalinkEntry.h
  10153. (checksum): Changed to ChecksumHandle
  10154. * src/MetalinkRequestInfo.cc
  10155. (checksum): Changed to ChecksumHandle
  10156. * src/File.cc
  10157. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10158. * src/common.h
  10159. (DIR_OPEN_MODE): New definition
  10160. * src/RequestGroup.cc
  10161. (prepareForNextAction): Added an argument.
  10162. * src/message.h
  10163. (MSG_GOOD_CHECKSUM): New definition
  10164. (MSG_BAD_CHECKSUM): New definition
  10165. * src/HttpResponseCommand.cc
  10166. (handleDefaultEncoding): Continue download sequence in new
  10167. non-segmented download.
  10168. * src/FileAllocationEntry.h
  10169. (_nextDownloadCommand): New variable.
  10170. * src/DownloadCommand.cc
  10171. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10172. available.
  10173. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10174. * src/IteratableChecksumValidator.h,
  10175. src/IteratableChecksumValidator.cc: New class.
  10176. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10177. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. Change file mode to 666:
  10179. * src/common.h (OPEN_MODE): New definition.
  10180. * src/File.cc
  10181. * src/Util.cc
  10182. * src/Directry.cc
  10183. * src/AbstractDiskWriter.cc
  10184. Change the level of log message "download aborted" to debug:
  10185. * src/PeerAbstractCommand.cc (execute)
  10186. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10187. * src/TrackerWatcherCommand.cc
  10188. (createCommand): Sleep some seconds after request failed.
  10189. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10190. then abort tracker request.
  10191. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10192. * Added the simultaneous download feature.
  10193. * src/main.cc: Print "Exception caught: " when exception is caught.
  10194. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10195. * src/ActivePeerConnectionCommand.cc
  10196. * src/PeerInteractionCommand.cc
  10197. * src/BtRuntime.h
  10198. (cuidCounter): Removed.
  10199. (getNewCuid): Removed.
  10200. * src/DownloadEngineFactory.cc
  10201. * src/PeerListenCommand.cc
  10202. * src/TrackerUpdateCommand.cc
  10203. * src/PeerInitiateConnectionCommand.cc
  10204. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10205. * src/PeerAbstractCommand.cc
  10206. (onAbort): Call PeerStorage::returnPeer()
  10207. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10208. (incomingPeers): New variable.
  10209. (addIncomingPeer): New function.
  10210. (returnPeer): New function.
  10211. (onErasingPeer): New function.
  10212. (addPeer): push_back -> push_front
  10213. (getActivePeers): Rewritten.
  10214. (calculateStat): Rewritten.
  10215. * src/PeerStorage.h
  10216. (TransferStat::copy): New function.
  10217. (TransferStat::TransferStat): New function.
  10218. (TransferStat::operator=): New function.
  10219. (addIncomingPeer): New function.
  10220. (returnPeer): New function.
  10221. * src/PeerListenCommand.cc
  10222. (execute): Use PeerStorage::addIncomingPeer() instead of
  10223. Peer::addPeer().
  10224. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10225. Connect to a peer actively when download speed is lower than specified
  10226. speed in torrent download:
  10227. * src/ActivePeerConnectionCommand.h: New class.
  10228. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10229. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10230. * src/main.cc: Fixed the bug that prevents download if .netrc
  10231. doesn't exist.
  10232. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10233. To cache resolved hostname:
  10234. * src/AbstractCommand.h, src/AbstractCommand.cc
  10235. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10236. Added dns cache.
  10237. * src/FtpInitiateConnectionCommand.cc
  10238. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10239. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10240. NameResolver working without ares.
  10241. * src/TorrentRequestInfo.cc
  10242. (execute): Don't cache dns in torrent download.
  10243. * src/HttpInitiateConnectionCommand.cc
  10244. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10245. * src/DNSCache.h: New class.
  10246. * src/UrlRequestInfo.cc
  10247. (execute): Use dns cache.
  10248. In http request, suppress port number in http request header if port
  10249. is 80 or 443:
  10250. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10251. request header if port is 80 or 443.
  10252. (createProxyRequest): Allways send port number.
  10253. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. To add the command-line option which disables netrc support:
  10255. * src/OptionHandlerFactory.cc
  10256. (createOptionHandlers): Added PREF_NO_NETRC.
  10257. * src/main.cc: Added -n option.
  10258. * src/prefs.h (PREF_NO_NETRC): New definition.
  10259. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10260. V_TRUE.
  10261. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10262. is V_FALSE. This may get configurable in the future release.
  10263. To clear peer's error status by time basis:
  10264. * src/PeerAbstractCommand.cc
  10265. (onAbort): Call Peer::startBadCondition().
  10266. * src/Peer.h, src/Peer.cc
  10267. (error): Removed.
  10268. (_badConditionStartTime): New variable.
  10269. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10270. (startBadCondition): New function.
  10271. (isGood): New function.
  10272. * src/DefaultPeerStorage.cc
  10273. (addPeer): Use Peer::isGood().
  10274. (FindFinePeer): Use Peer::isGood().
  10275. Always include port number in http request header:
  10276. * src/HttpRequest.cc (getHostText): Always include port number in
  10277. http request header.
  10278. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10279. To the ability to read options from a config file:
  10280. * src/main.cc: Command-line parameter validation is delegated to
  10281. OptionHandler class.
  10282. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10283. * src/Option.h, src/Option.cc (clear): New function.
  10284. * src/OptionParser.h, src/OptionParser.cc: New class.
  10285. * src/OptionHandler.h: New class.
  10286. * src/NameMatchOptionHandler.h: New class.
  10287. * src/OptionHandlerImpl.h: New classes.
  10288. * src/prefs.h: '_' -> '-'
  10289. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10290. (FTP_PASV): New definition.
  10291. * src/Util.h, src/Util.cc (getRealSize): New function.
  10292. To disable netrc support if .netrc file does not have correct
  10293. permissions:
  10294. * src/File.h, src/File.cc (mode): New function.
  10295. To prevent confidential information to be logged:
  10296. * src/HttpConnection.h, src/HttpConnection.cc
  10297. (eraseConfidentialInfo): New function.
  10298. (sendRequest): Call eraseConfidentialInfo().
  10299. (sendProxyRequest): Call eraseConfidentialInfo().
  10300. * src/main.cc: Validate permissions of .netrc file.
  10301. To add --user-agent command-line option:
  10302. * src/main.cc: Added new command line option: --user-agent
  10303. * src/prefs.h (PREF_USER_AGENT): New definition.
  10304. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10305. parameter to HttpRequest object.
  10306. * src/AbstractProxyRequestCommand.cc
  10307. (executeInternal): Set user-agent option parameter to HttpRequest
  10308. object.
  10309. Marged the patches from Dan Fandrich.
  10310. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10311. Use filename and size from Metalink file instead of sending HEAD
  10312. request:
  10313. * src/UrlRequestInfo.h
  10314. (_filename): New variable.
  10315. (_totalLength): New variable.
  10316. (setTotalLength): New variable.
  10317. (setFilename): New variable.
  10318. * src/MetalinkRequestInfo.cc
  10319. (execute): Set filename and size to UrlRequestInfo
  10320. * src/UrlRequestInfo.cc
  10321. (execute): Use filename and size from Metalink instead of seding
  10322. HEAD request to servers.
  10323. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. To add the ability to resume downloading a partially downloaded file
  10325. which is downloaded from the beginning:
  10326. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10327. takes this role.
  10328. * src/main.cc: Added -c option.
  10329. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10330. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10331. * src/prefs.h (PREF_CONTINUE): New definition.
  10332. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10333. * src/DefaultDiskWriter.cc
  10334. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10335. * src/AbstractDiskWriter.h
  10336. (glowFileAllocator): New variable.
  10337. * src/AbstractDiskWriter.cc
  10338. (openExistingFile): Now preallocate file space from the end of the
  10339. existing file if totalLength argument is specified and grater than 0.
  10340. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10341. to download exists in local, continue the download of the file.
  10342. --allow-overwrite=true is assumed in this context.
  10343. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10344. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10345. Throw exception if --check-integrity=true is specified but chunk
  10346. checksums are not provided:
  10347. * src/UrlRequestInfo.cc
  10348. Do not print URLs to stdout:
  10349. * src/UrlRequestInfo.cc
  10350. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10351. * src/Request.h: Use AuthResolver to get authentication information.
  10352. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10353. set to RequestFactory object.
  10354. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10355. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10356. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10357. create Request object.
  10358. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10359. To integrate Netrc into exsiting classes:
  10360. * src/Request.h
  10361. (_userDefinedAuthConfig): New variable.
  10362. (findNetrcAuthenticator): New function.
  10363. (segment): Removed.
  10364. (setUserDefinedAuthConfig): New function.
  10365. (resolveHttpAuthConfigItem): New function.
  10366. (resolveFtpAuthConfigItem): New function.
  10367. (resolveHttpProxyAuthConfigItem): New function.
  10368. * src/HttpRequest.h
  10369. (authConfig): Removed.
  10370. (proxyAuthConfig): Removed.
  10371. (setAuthConfig): Removed.
  10372. (setProxyAuthConfig): Removed.
  10373. * src/UrlRequest.h
  10374. (getHeadResult): Added a parameter: authConfigHandle
  10375. * src/common.h
  10376. (SingletonHolder.h): New include.
  10377. * src/main.cc
  10378. (Netrc.h): New include.
  10379. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10380. Added initial value of PREF_NETRC_PATH.
  10381. Added the initialization of netrc.
  10382. * src/AuthConfig.h: New class.
  10383. * src/prefs.h
  10384. (PREF_NETRC_PATH): New definition.
  10385. * src/HttpAuthConfig.h: Removed.
  10386. * src/Netrc.cc
  10387. (getRequiredNextToken): New function.
  10388. (skipMacdef): New function.
  10389. (parse): Rewritten.
  10390. * src/Netrc.h
  10391. (getRequiredNextToken): New function.
  10392. (skipMacdef): New function.
  10393. * src/Util.h, src/Util.cc
  10394. (getHomeDir): New function.
  10395. * src/TrackerWatcherComand.cc
  10396. (createRequestCommand): Use AuthConfig.
  10397. * src/FtpConnection.cc
  10398. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10399. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10400. * src/Request.cc
  10401. (findNetrcAuthenticator): New function.
  10402. (resolveHttpAuthConfigItem): New function.
  10403. (resolveFtpAuthConfigItem): New function.
  10404. (resolveHttpProxyAuthConfigItem): New function.
  10405. * src/UrlRequestInfo.cc: Use AuthConfig.
  10406. * src/HttpRequest.cc
  10407. (createRequest): Use authConfig.
  10408. (getProxyAuthString): Use authConfig.
  10409. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10410. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10411. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10412. To reduce overhead to find commands whose socket is either
  10413. readable or writable in the download engine loop:
  10414. * src/Command.h, src/Command.cc
  10415. (STATUS): New enum.
  10416. (status): New variable.
  10417. (statusMatch): New function.
  10418. (setStatusActive): New function.
  10419. (setStatusInactive): New function.
  10420. * src/DownloadEngine.h, src/DownloadEngine.cc
  10421. (executeCommand): New function.
  10422. (run): Simplified.
  10423. (waitData): Call Command::setStatusActive() when command's socket is
  10424. readable or writable.
  10425. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10426. To handle Segment as SegmentHandle:
  10427. * src/AbstractCommand.cc (execute): Rewritten.
  10428. * src/SegmentMan.h: Segment -> SegmentHandle
  10429. Introducded HttpResponse class, HttpRequest class to improve code
  10430. extensiveness and make it clear:
  10431. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10432. HttpResponse class.
  10433. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10434. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10435. * src/HttpConnection.cc: Contruction of http request were moved to
  10436. HttpRequest class.
  10437. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10438. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10439. * src/HttpAuthConfig.h: New class.
  10440. * src/Range.h: New class.
  10441. To make FtpTunnel{Request, Response}Command and
  10442. HttpProxy{Request, Response}Command derived from
  10443. AbstractProxy{Request, Response}Command:
  10444. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10445. Derived from AbstractProxyRequestCommand class.
  10446. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10447. Derived from AbstractProxyResponseCommand class.
  10448. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10449. Derived from AbstractProxyRequestCommand class.
  10450. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10451. Derived from AbstractProxyResponseCommand class.
  10452. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10453. : New class.
  10454. * src/AbstractProxyResponseCommand.h,
  10455. src/AbstractProxyResponseCommand.cc: New class.
  10456. To add netrc support:
  10457. * src/Netrc.h, src/Netrc.cc: New class.
  10458. * src/Util.h, src/Util.cc (split): New function.
  10459. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10460. "Content-Range" header instead of "Range" header.
  10461. * src/HttpHeader.h
  10462. (getStatus): Removed.
  10463. (setStatus): Removed.
  10464. * src/Segment.h
  10465. (getPositionToWrite): New function.
  10466. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. * src/HttpHeader.h
  10468. (Range.h): New include.
  10469. (status): New variable.
  10470. (HttpHeader): Initialized status with 0.
  10471. (getStatus): New function.
  10472. (setStatus): New function.
  10473. (getRange): New function.
  10474. (HttpHeaderHandle): New function.
  10475. * src/HttpHeader.cc
  10476. (getRange): New function.
  10477. * src/Request.h
  10478. (RequestWeakHandle): New definition.
  10479. * src/HttpConnection.h
  10480. (HttpConnectionHandle): New type definition.
  10481. * src/HttpConnection.cc
  10482. (receiveResponse): Set HTTP status to headers.
  10483. * src/main.cc
  10484. (showUsage): Fixed typo.
  10485. * src/Segment.h
  10486. (SegmentHandle): New type definition.
  10487. * src/BitfieldMan.h
  10488. (getMissingUnusedLength): New function.
  10489. * src/BitfieldMan.cc
  10490. (getMissingUnusedLength): New function.
  10491. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10492. To fix static initialization order problem:
  10493. * src/BitfieldManFactory.h
  10494. (defaultRandomizer): Removed.
  10495. (factory): New variable.
  10496. (getNewFactory): Removed.
  10497. (getFactoryInstance): New function.
  10498. (setDefaultRandomizer): Rewritten.
  10499. (getDefaultRandomizer): Rewritten.
  10500. * src/BitfieldManFactory.cc
  10501. (defaultRandomizer): Removed.
  10502. (factory): Initialized to 0.
  10503. (BitfieldManFactory): Initialized randomizer to 0.
  10504. * src/DefaultPieceStorage.cc
  10505. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10506. * src/Peer.cc
  10507. (Peer): getNewFactory() -> getFactoryInstance()
  10508. * src/SegmentMan.cc
  10509. (initBitfield): getNewFactory() -> getFactoryInstance()
  10510. * src/Piece.cc
  10511. (Piece): getNewFactory() -> getFactoryInstance()
  10512. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10513. To fix the bug that causes crash on Max OS X:
  10514. * src/SimpleRandomizer.h
  10515. (getInstance): Create new instance if the static variable is null.
  10516. * src/SimpleRandomizer.cc
  10517. (randomizer): Initialized to 0.
  10518. * src/BitfieldManFactory.h
  10519. (getNewFactory): Removed the call to setRandomizer().
  10520. To fix the miscalculation of the range of checksum:
  10521. * src/BitfieldMan.h
  10522. (isBitSetOffsetRange): New function.
  10523. * src/BitfieldMan.cc
  10524. (isBitSetOffsetRange): New function.
  10525. * src/SegmentMan.cc
  10526. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10527. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10528. * Release 0.10.1
  10529. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10530. To lower CPU usage in BitTorrent download when --max-upload-limit
  10531. command-line option specified:
  10532. * src/DefaultBtMessageDispatcher.cc
  10533. (sendMessages): Calculate uploading speed only when current message
  10534. is uploading data and is not sent yet.
  10535. * src/DefaultPeerStorage.h
  10536. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10537. * src/HttpResponseCommand.cc
  10538. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10539. This fixes compile error in Soralis 10.
  10540. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. To fix segfault in Metalink download:
  10542. * src/UrlRequestInfo.h
  10543. (filename): Removed.
  10544. (totalLength): Removed.
  10545. (setTotalLength): Removed.
  10546. (setFilename): Removed.
  10547. * src/MetalinkRequestInfo.cc
  10548. (execute): Do not set filename and totalLength to reqInfo.
  10549. Set chunk checksum to reqInfo if it is not null.
  10550. * src/HttpResponseCommand.cc
  10551. (executeInternal): Fixed filename in log.
  10552. (handleDefaultEncoding): Removed the call to initBitfield() and
  10553. markAllPiecesDone().
  10554. (handleOtherEncoding): Added HEAD method handling.
  10555. * src/FtpNegotiateCommand.cc
  10556. (executeInternal): Added SEQ_HEAD_OK handling.
  10557. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10558. return false.
  10559. * src/FtpNegotiateCommand.h
  10560. (SEQ_HEAD_OK): New definition.
  10561. * src/SegmentMan.cc
  10562. (initBitfield): Delete bitfield.
  10563. (isChunkChecksumValidationReady): Fixed the condition.
  10564. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10565. works fine.
  10566. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10567. * src/Xml2MetalinkProcessor.h
  10568. (xpathExists): New function.
  10569. * src/Xml2MetalinkProcessor.cc
  10570. (xpathExists): New function.
  10571. Not to send HEAD request if filename and size are available in Metalink
  10572. file:
  10573. * src/UrlRequestInfo.h
  10574. (filename): New variable.
  10575. (totalLength): New variable.
  10576. (setTotalLength): New function.
  10577. (setFilename): New function.
  10578. * src/MetalinkRequestInfo.cc
  10579. (execute): Set filename and size to UrlRequestInfo.
  10580. * src/MetalinkEntry.cc
  10581. (MetalinkEntry): Initialize size with 0.
  10582. * src/UrlRequestInfo.cc
  10583. (execute): Set filename and size to SegmentMan.
  10584. Not to download rest of the files after selected files are downloaded
  10585. in BitTorrent:
  10586. * src/PieceStorage.h
  10587. (allDownloadFinished): New function.
  10588. * src/DefaultBtAnnounce.cc
  10589. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10590. downloadFinished.
  10591. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10592. * src/DefaultPieceStorage.cc
  10593. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10594. Commented out the call to finishSelectiveDownloadingMode().
  10595. (downloadFinished): Call isFilteredAllBitSet() instead of
  10596. isAllBitSet().
  10597. (allDownloadFinished): New function.
  10598. * src/DefaultBtInteractive.cc
  10599. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10600. downloadFinished().
  10601. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10602. * src/TorrentDownloadEngine.cc
  10603. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10604. * src/BitfieldMan.h
  10605. (isFilteredAllBitSet): New function.
  10606. * src/ShareRatioSeedCriteria.h
  10607. (PieceStorage.h): New include.
  10608. (pieceStorage): New variable.
  10609. (evaluate):
  10610. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10611. * src/BitfieldMan.cc
  10612. (isFilteredAllBitSet): New function.
  10613. (isAllBitSet): Filter is not took into account.
  10614. Rename --force-truncate as --allow-overwrite:
  10615. * src/TorrentRequestInfo.cc
  10616. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10617. * src/main.cc
  10618. (showUsage): --force-truncate -> --allow-overwrite
  10619. * src/message.h
  10620. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10621. * src/prefs.h
  10622. (PREF_FORCE_TRUNCATE): Removed.
  10623. (PREF_ALLOW_OVERWRITE): New definition.
  10624. * src/SegmentMan.cc
  10625. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10626. * src/MetalinkRequestInfo.cc
  10627. (execute): Queueing message are now logged in info level.
  10628. * src/common.h
  10629. (LONG_LONG_MAX): Removed.
  10630. (LONG_LONG_MIN): Removed.
  10631. * src/HttpResponseCommand.cc
  10632. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10633. * src/FtpNegotiateCommand.cc
  10634. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10635. * src/main.cc
  10636. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10637. command-line option.
  10638. (main): Added --check-integriy and --realtime-chunk-checksum
  10639. command-line option.
  10640. --force-truncate -> --allow-overwrite
  10641. Set initial value of --check-integrity option to false.
  10642. Don't show usage when error occurs while persing command-line options.
  10643. Removed deprecated --upload-limit option.
  10644. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10646. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10647. * src/BtAllowedFastMessage.cc:
  10648. * src/BtBitfieldMessage.cc
  10649. * src/BtCancelMessage.cc
  10650. * src/BtChokeMessage.cc
  10651. * src/BtHaveAllMessage.cc
  10652. * src/BtHaveMessage.cc
  10653. * src/BtHaveNoneMessage.cc
  10654. * src/BtInterestedMessage.cc
  10655. * src/BtNotInterestedMessage.cc
  10656. * src/BtPieceMessage.cc
  10657. * src/BtPortMessage.cc
  10658. * src/BtRejectMessage.cc
  10659. * src/BtRequestMessage.cc
  10660. * src/BtSuggestPieceMessage.cc
  10661. * src/BtUnchokeMessage.cc
  10662. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10663. files are affected.
  10664. * src/ChunkChecksumValidator.cc
  10665. * src/SegmentMan.cc
  10666. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10667. To add chunk checksum validation:
  10668. * src/MetalinkEntry.h
  10669. (MetalinkChunkChecksum.h): New include.
  10670. (chunkChecksum): New variable.
  10671. * src/Request.h
  10672. (method): New variable.
  10673. (setMethod): New function.
  10674. (getMethod): New function.
  10675. (METHOD_GET): New static constant.
  10676. (METHOD_HEAD): New static constant.
  10677. * src/Xml2MetalinkProcessor.h
  10678. (getPieceHash): New function.
  10679. * src/PieceStorage.h
  10680. (markAllPiecesDone): New function.
  10681. (checkIntegrity): New function.
  10682. * src/FileAllocator.h
  10683. (NullFileAllocationMonitor.h): New include.
  10684. (FileAllocator): Initialize fileAllocationMonitor with new
  10685. NullFileAllocationMonitor().
  10686. * src/MultiDiskAdaptor.h
  10687. (messageDigest.h): Remove include.
  10688. (ctx): Removed.
  10689. (hashUpdate): Added ctx.
  10690. (MultiDiskAdaptor): Removed ctx.
  10691. (sha1Sum): Renamed as messageDigest.
  10692. (messageDigest): New function.
  10693. * src/UrlRequestInfo.h
  10694. (HeadResult): New class.
  10695. (digestAlgo): New variable.
  10696. (chunkChecksumLength): New variable.
  10697. (chunkChecksums): New variable.
  10698. (getHeadResult): New function.
  10699. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  10700. (setDigestAlgo): New function.
  10701. (setChunkChecksumLength): New function.
  10702. (setChunkChecksums): New function.
  10703. * src/DefaultPieceStorage.cc
  10704. (DiskAdaptorWriter.h): New include.
  10705. (ChunkChecksumValidator.h): New include.
  10706. (markAllPiecesDone): New function.
  10707. (checkIntegrity): New function.
  10708. * src/DefaultBtContext.h
  10709. (getPieceHashes): New function.
  10710. * src/TorrentRequestInfo.cc
  10711. (execute): Try to validate chunk checksum if file already exists and
  10712. .aria2 file doesn't there and user allows aria2 to overwrite it.
  10713. * src/messageDigest.h
  10714. (~MessageDigestContext): Added digestFree().
  10715. * src/MetalinkRequestInfo.cc
  10716. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10717. * src/DiskAdaptor.h
  10718. (messageDigest.h): New include.
  10719. (sha1Sum): Renamed as messageDigest.
  10720. (messageDigest): New function.
  10721. * src/DownloadCommand.h
  10722. (PeerStat.h): New include.
  10723. (maxDownloadSpeedLimit): New variable.
  10724. (startupIdleTime): New variable.
  10725. (lowestDownloadSpeedLimit): New variable.
  10726. (peerStat): New variable.
  10727. (setMaxDownloadSpeedLimit): New function.
  10728. (setStartupIdleTime): New function.
  10729. (setLowestDownloadSPeedLimit): New function.
  10730. * src/BtContext.h
  10731. (getPieceHashes): New function.
  10732. * src/main.cc
  10733. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10734. option to true for testing purpose.
  10735. * src/BtPieceMessage.cc
  10736. (checkPieceHash): Use messageDigest
  10737. * src/DownloadEngine.cc
  10738. (SetDescriptor): Removed.
  10739. (AccumulateActiveCommand): Removed.
  10740. (waitData): Rewritten.
  10741. (updateFdSet): Rewritten.
  10742. * src/MultiDiskAdaptor.cc
  10743. (hashUpdate): Added ctx.
  10744. (sha1Sum): Renamed as messageDigest.
  10745. (messageDigest): New function.
  10746. * src/BitfieldMan.h
  10747. (isBitRangeSet): New function.
  10748. (unsetBitRange): New function.
  10749. * src/ByteArrayDiskWriter.h
  10750. (sha1Sum): Renamed as messageDigest.
  10751. (messageDigest): New function.
  10752. * src/ConsoleDownloadEngine.cc
  10753. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10754. * src/DiskWriter.h
  10755. (messageDigest.h): New include.
  10756. (sha1Sum): Renamed as messageDigest.
  10757. (messageDigest): New function.
  10758. * src/ChunkChecksumValidator.h: New class.
  10759. * src/DiskAdaptorWriter.h: New class.
  10760. * src/prefs.h
  10761. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10762. (PREF_CHECK_INTEGRITY): New definition.
  10763. * src/HttpResponseCommand.cc
  10764. (handleDefaultEncoding): Added method "HEAD" handling.
  10765. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10766. (handleOtherEncoding):
  10767. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10768. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10769. startupIdleTime, lowestDownloadSpeedLimit to command.
  10770. * src/SegmentMan.h
  10771. (getSegmentEntryByIndex): New function.
  10772. (getSegmentEntryByCuid): New function.
  10773. (getSegmentEntryIteratorByCuid): New function.
  10774. (diskWriter): DiskWriter -> DiskWriterHandle
  10775. (pieceHashes): New variable.
  10776. (chunkHashLength): New variable.
  10777. (digestAlgo): New variable.
  10778. (FindPeerStat): Removed.
  10779. (getPeerStat): Rewritten.
  10780. (markAllPiecesDone): New function.
  10781. (checkIntegrity): New function.
  10782. (tryChunkChecksumValidation): New function.
  10783. (isChunkChecksumValidationReady): New function.
  10784. * src/BitfieldMan.cc
  10785. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10786. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10787. blocks to 0.
  10788. (isBitRangeSet): New function.
  10789. (unsetBitRange): New function.
  10790. * src/FtpNegotiateCommand.cc
  10791. (executeInternal): Set maxDownloadSpeedLimit,
  10792. startupIdleTime, lowestDownloadSpeedLimit to command.
  10793. (recvSize): Added method "HEAD" handling.
  10794. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10795. * src/AbstractSingleDiskAdaptor.cc
  10796. (sha1Sum): Renamed as messageDigest.
  10797. (messageDigest): New function.
  10798. * src/AbstractSingleDiskAdaptor.h
  10799. (sha1Sum): Renamed as messageDigest.
  10800. (messageDigest): New function.
  10801. * src/Util.h
  10802. (indexRange): New function.
  10803. * src/MetalinkEntry.cc
  10804. (MetalinkEntry): Initialized chunkChecksum to 0.
  10805. * src/ShaVisitor.cc
  10806. (~ShaVisitor): Removed the call to ctx.digestFree().
  10807. * src/SegmentMan.cc
  10808. (ChunkChecksumValidator.h): New include.
  10809. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10810. to DIGEST_ALGO_SHA1.
  10811. (~SegmentMan): Removed diskWriter.
  10812. (FindSegmentEntryByIndex): Removed.
  10813. (FindSegmentEntryByCuid): Removed.
  10814. (checkoutSegment): Rewritten.
  10815. (findSlowerSegmentEntry): Rewritten.
  10816. (getSegment): Rewritten.
  10817. (updateSegment): Rewritten.
  10818. (completeSegment): Rewritten.
  10819. (markAllPiecesDone): New function.
  10820. (checkIntegrity): New function.
  10821. (isChunkChecksumValidationReady): New function.
  10822. (tryChunkChecksumValidation): New function.
  10823. * src/Xml2MetalinkProcessor.cc
  10824. (getEntry): Get size and set it to entry.
  10825. Get chunk checksum and set it to entry.
  10826. (getPieceHash): New function.
  10827. * src/Util.cc
  10828. (sha1Sum): Removed ctx.digestFree()
  10829. (fileChecksum): Removed ctx.digestFree()
  10830. (indexRange): New function.
  10831. * src/Request.cc
  10832. (METHOD_GET): New variable.
  10833. (METHOD_HEAD): New variable.
  10834. (Request): Added method.
  10835. * src/UrlRequestInfo.cc
  10836. (FatalException.h): New include.
  10837. (message.h): New include.
  10838. (operator<<): Added operator<< for class HeadResult.
  10839. (getHeadResult): New function.
  10840. (execute): Get filename and size in separate download engine.
  10841. * src/ChunkChecksumValidator.cc: New class.
  10842. * src/DownloadCommand.cc:
  10843. (DownloadCommand): Added peerStat.
  10844. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10845. the value from Option.
  10846. The buffer size is now 16KB.
  10847. Use peerStat member instead of getting it from SegmentMan.
  10848. Use startupIdleTime member instead of gettingit from Option.
  10849. Added chunk checksum validation.
  10850. * src/AbstractDiskWriter.cc
  10851. (AbstractDiskWriter): Removed ctx.
  10852. (~AbstractDiskWriter): Removed ctx.digestFree()
  10853. (writeDataInternal): Returns the return value of write.
  10854. (readDataInternal): Returns the return value of read.
  10855. (sha1Sum): Renamed as messageDigest
  10856. (messageDigest): New function.
  10857. * src/AbstractDiwkWriter.h
  10858. (messageDigest.h): Removed include.
  10859. (ctx): Removed.
  10860. (sha1Sum): Renamed as messageDigest
  10861. (messageDigest): New function.
  10862. * src/DefaultPieceStorage.h
  10863. (markAllPiecesDone): New function.
  10864. (checkIntegrity): New function.
  10865. * src/NullFileAllocationMonitor.h: New class.
  10866. * src/MetalinkChunkChecksum.h: New class.
  10867. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10868. To decrease CPU usage in bittorrent download, calculation results in
  10869. BitfieldMan were cached and realtime fetching PeerObject was removed
  10870. with WeakHandle introduced. Option values are set to the objects
  10871. by setter before download begins.
  10872. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10873. * src/DefaultBtRequestFactory.h
  10874. (dispatcher): BtMessageDispatcherHandle ->
  10875. BtMessageDispatcherWeakHandle.
  10876. (messageFactory): New variable.
  10877. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10878. BtMessageDispatcherWeakHandle.
  10879. (setBtMessageFactory): New function.
  10880. * src/DefaultBtMessageDispatcher.cc:
  10881. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10882. from Option.
  10883. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10884. feating the value from Option.
  10885. Use messageFactory member.
  10886. * src/PeerInteractionCommand.cc
  10887. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10888. Add reverse dependencies to factory object.
  10889. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10890. dispatcher.
  10891. Set messageFactory to receiver.
  10892. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10893. btInteractive.
  10894. Set receiver to peerObject.
  10895. Set maxDownloadSpeedLimit to this.
  10896. (executeInternal): Use maxDownloadSpeedLimit member.
  10897. * src/BtChokeMessage.cc
  10898. (doReceivedAction): Use dispatcher, requestFactory member.
  10899. (onSendComplete): Use dispatcher member.
  10900. * src/PeerInteractionCommand.h
  10901. (maxDownloadSpeedLimit): New variable.
  10902. * src/DefaultBtMessageReceiver.h
  10903. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10904. (dispatcher):
  10905. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10906. (messageFactory): New variable.
  10907. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10908. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10909. (setDispatcher):
  10910. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10911. (setBtMessageFactory): New function.
  10912. * src/DefaultBtInteractive.cc
  10913. (initiateHandshake): Use messageFactory member.
  10914. (addBitfieldMessageToQueue): Use messageFactory member.
  10915. (addAllowedFastMessageToQueue): Use messageFactory member.
  10916. (decideChoking): Use messageFactory member.
  10917. (checkHave): Use messageFactory member.
  10918. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10919. (receiveMessages): Use maxDownloadSpeedLimit member.
  10920. (decideInterest): Use messageFactory member.
  10921. * src/BtRequestMessage.cc
  10922. (doReceivedAction): Use messageFactory, dispatcher member.
  10923. (onQueued): Use dispatcher member.
  10924. * src/BtPieceMessage.cc
  10925. (doReceivedAction): Use dispatcher member.
  10926. (send): Use peerConnection member.
  10927. (onWrongPiece): Use requestFactory member.
  10928. (handleChokingEvent): Use messageFactory, dispatcher member.
  10929. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10930. * src/BtMessageDispatcher.h
  10931. (BtMessageDispatcherWeakHandle): New type definition.
  10932. * src/SimpleBtMessage.cc
  10933. (send): Use peerConnection member.
  10934. * src/BtRejectMessage.cc
  10935. (doReceivedAction): Use dispatcher member.
  10936. * src/DefaultBtMessageDispatcher.h
  10937. (Option.h): Removed include.
  10938. (messageFactory): New variable.
  10939. (option): Removed.
  10940. (maxUploadSpeedLimit): New variable.
  10941. (requestTimeout): New variable.
  10942. (DefaultBtMessageDispatcher): Removed option.
  10943. Added maxUploadSpeedLimit, requestTimeout.
  10944. (setOption): Removed.
  10945. (getOption): Removed.
  10946. (setMaxUploadSpeedLimit): New function.
  10947. (setRequestTimeout): New function.
  10948. (setBtMessageFactory): New function.
  10949. * src/DefaultBtInteractive.h
  10950. (btMessageReceiver):
  10951. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10952. (dispatcher):
  10953. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10954. (btRequestFactory):
  10955. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10956. (peerConnection):
  10957. PeerConnectionHandle -> PeerConnectionWeakHandle
  10958. (messageFactory): New variable.
  10959. (option): Removed.
  10960. (keepAliveInterval): New variable.
  10961. (maxDownloadSpeedLimit): New variable.
  10962. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10963. (setBtMessageReceiver):
  10964. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10965. (setDispatcher):
  10966. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10967. (setBtRequestFactory):
  10968. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10969. (setPeerConnection):
  10970. PeerConnectionHandle -> PeerConnectionWeakHandle
  10971. (setOption): Removed.
  10972. (setKeepAliveInterval): New function.
  10973. (setMaxDownloadSpeedLimit): New function.
  10974. (setBtMessageFactory): New function.
  10975. * src/BitfieldMan.h
  10976. (cachedNumMissingBlock): New variable.
  10977. (cachedNumFilteredBlock): New variable.
  10978. (cachedCompletedLength): New variable.
  10979. (cachedFilteredComletedLength): New variable.
  10980. (cachedFilteredTotalLength): New variable.
  10981. (countMissingBlockNow): New function.
  10982. (countFilteredBlockNow): New function.
  10983. (getFilteredTotalLengthNow): New function.
  10984. (getCompletedLengthNow): New function.
  10985. (getFilteredCompletedLengthNow): New function.
  10986. (updateCache): New function.
  10987. * src/AbstractBtMessage.h
  10988. (BtMessageDispatcher.h): New include.
  10989. (PeerConnection.h): New include.
  10990. (BtRequestFactory.h): New include
  10991. (BtMessageFactory.h): New include.
  10992. (dispatcher): New variable.
  10993. (messageFactory): New variable.
  10994. (peerConnection: New variable.
  10995. (setBtMessageDispatcher): New function.
  10996. (setPeerConnection): New function.
  10997. (setBtMessageFactory): New function.
  10998. (setBtRequestFactory): New function.
  10999. * src/DefaultBtMessageFactory.cc
  11000. (setCommonProperty): Set dispatcher, requestFactory, this,
  11001. peerConnection to msg.
  11002. * src/BtRegistry.h
  11003. (BT_MESSAGE_RECEIVER): New macro.
  11004. * src/PeerConnection.h
  11005. (PeerConnectionWeakHandle): New type definition.
  11006. * src/BtMessageFactory.h
  11007. (BtMessageFactoryWeakHandle): New type definition.
  11008. * src/BitfieldMan.cc
  11009. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11010. cachedCompletedLength, cachedFilteredComletedLength,
  11011. cachedFilteredTotalLength.
  11012. Call updateCache().
  11013. (countMissingBlock): Return cachedNumMissingBlock.
  11014. (countMissingBlockNow): New function.
  11015. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11016. (countFilteredBlockNow): New function.
  11017. (setBit): Call updateCache().
  11018. (unsetBit): Call updateCache().
  11019. (setBitfield): Call updateCache().
  11020. (clearAllBit): Call updateCache().
  11021. (setAllBit): Use setBitInternal instead of setBit.
  11022. Call updateCache().
  11023. (addFilter): Call updateCache().
  11024. (enableFilter): Call updateCache().
  11025. (disableFilter): Call updateCache().
  11026. (clearFilter): Call updateCache().
  11027. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11028. (getFilteredTotalLengthNow): New function.
  11029. (getCompletedLength): Return cachedCompletedLength.
  11030. (getCompletedLengthNow): New function.
  11031. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11032. (getFilteredCompletedLengthNow): New function.
  11033. (updateCache): New function.
  11034. * src/BtMessageReceiver.h
  11035. (BtMessageReceiverWeakHandle): New type definition.
  11036. * src/DefaultBtMessageReceiver.cc
  11037. (receiveHandshake): Use messageFactory member.
  11038. (sendHandshake): Use messageFactory member.
  11039. (receiveMessage): Use messageFactory member.
  11040. * src/DefaultBtMessageFactory.h
  11041. (dispatcher): New variable.
  11042. (requestFactory): New variable.
  11043. (peerConnection): New variablle.
  11044. (setBtMessageDispatcher): New function.
  11045. (setBtRequestFactory): New function.
  11046. (setPeerConnection): New function.
  11047. * src/SharedHandle.h
  11048. (RefCount): New class.
  11049. (WeakHandle): New class.
  11050. * src/PeerObject.h
  11051. (BtMessageReceiver.h): New include.
  11052. (PeerObject): Added btMessageReceiver.
  11053. (btMessageReceiver): New variable.
  11054. * src/Util.cc
  11055. (countBit): Simplified.
  11056. * src/BtCancelMessage.cc
  11057. (doReceivedAction): Use dispatcher member.
  11058. * src/BtRequestFactory.h
  11059. (BtRequestFactoryWeakHandle): New type definition.
  11060. * src/PeerStorage.h
  11061. (downloadSpeed): int -> uint32_t
  11062. (uploadSpeed): int -> uint32_t
  11063. (sessionDownloadLength): long long int -> uint64_t
  11064. (sessionUploadLength): long long int -> uint64_t
  11065. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11066. To add RecoverableException, FatalException:
  11067. * src/AbstractCommand.cc
  11068. (onAbort): Exception -> RecoverableException
  11069. * src/PeerAbstractCommand.h
  11070. (RecoverableException.h): New include.
  11071. (onAbort): Exception -> RecoverableException.
  11072. * src/PeerInteractionCommand.cc
  11073. (onAbort): Exception -> RecoverableException.
  11074. * src/PeerAbstractCommand.cc
  11075. (execute): Exception -> RecoverableException.
  11076. (onAbort): Exception -> RecoverableException.
  11077. * src/TorrentRequestInfo.cc
  11078. (execute): Exception -> RecoverableException.
  11079. * src/MetalinkRequestInfo.cc
  11080. (execute): Exception -> RecoverableException.
  11081. * src/MetaFileUtil.cc: RecoverableException.
  11082. * src/AbstractCommand.h
  11083. (onAbort): Exception -> RecoverableException.
  11084. * src/DlRetryEx.h: Exception -> RecoverableException.
  11085. * src/DlAbortEx.h: Exception -> RecoverableException.
  11086. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11087. * src/Util.cc: Exception -> RecoverableException.
  11088. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11089. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11090. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11091. To make ID static const int
  11092. * src/BtInterestedMessage.h
  11093. (ID_t): Removed.
  11094. (ID): New variable.
  11095. (getId): Made non-const.
  11096. * src/BtPieceMessage.h
  11097. (ID_t): Removed.
  11098. (ID): New variable.
  11099. (getId): Made non-const.
  11100. * src/BtChokeMessage.h
  11101. (ID_t): Removed.
  11102. (ID): New variable.
  11103. (getId): Made non-const.
  11104. * src/BtHaveAllMessage.h
  11105. (ID_t): Removed.
  11106. (ID): New variable.
  11107. (getId): Made non-const.
  11108. * src/BtKeepAliveMessage.h
  11109. (ID_t): Removed.
  11110. (ID): New variable.
  11111. (getId): Made non-const.
  11112. * src/BtHandshakeMessage.h
  11113. (ID): New variable.
  11114. (getId): Made non-const.
  11115. * src/BtSuggestPieceMessage.h
  11116. (ID_t): Removed.
  11117. (ID): New variable.
  11118. (getId): Made non-const.
  11119. * src/BtPortMessage.h
  11120. (ID_t): Removed.
  11121. (ID): New variable.
  11122. (getId): Made non-const.
  11123. * src/AbstractBtMessage.h
  11124. (id): Removed.
  11125. (AbstractBtMessage): Removed id.
  11126. (getId): Removed.
  11127. * src/BtHaveMessage.h
  11128. (ID_t): Removed.
  11129. (ID): New variable.
  11130. (getId): Made non-const.
  11131. * src/BtAllowedFastMessage.h
  11132. (ID_t): Removed.
  11133. (ID): New variable.
  11134. (getId): Made non-const.
  11135. * src/BtCancelMessage.h
  11136. (ID_t): Removed.
  11137. (ID): New variable.
  11138. (getId): Made non-const.
  11139. * src/BtNotInterestedMessage.h
  11140. (ID_t): Removed.
  11141. (ID): New variable.
  11142. (getId): Made non-const.
  11143. * src/BtChokeMessage.h
  11144. (ID_t): Removed.
  11145. (ID): New variable.
  11146. (getId): Made non-const.
  11147. * src/BtRejectMessage.h
  11148. (ID_t): Removed.
  11149. (ID): New variable.
  11150. (getId): Made non-const.
  11151. * src/BtBitfieldMessage.h
  11152. (ID_t): Removed.
  11153. (ID): New variable.
  11154. (getId): Made non-const.
  11155. * src/BtUnchokeMessage.h
  11156. (ID_t): Removed.
  11157. (ID): New variable.
  11158. (getId): Made non-const.
  11159. * src/BtRequestMessage.h
  11160. (ID_t): Removed.
  11161. (ID): New variable.
  11162. (getId): Made non-const.
  11163. * src/BtHaveMessage.h
  11164. (ID_t): Removed.
  11165. (ID): New variable.
  11166. (getId): Made non-const.
  11167. To add --force-truncate command-line option and a check whether
  11168. the file already exists:
  11169. * src/DirectDiskAdaptor.h
  11170. (getFilePath): Made virtual public.
  11171. * src/MultiDiskAdaptor.h
  11172. (File.h): New include.
  11173. (DiskWriterEntry::fileEntry): Made private.
  11174. (DiskWriterEntry::fileExists): New function.
  11175. (DiskWriterEntry::getFileEntry): New function.
  11176. (fileExists): New function.
  11177. (getFilePath): New function.
  11178. * src/TorrentRequestInfo.cc
  11179. (FatalException.h): New include.
  11180. (message.h): New include.
  11181. (RecoverableException.h): New include.
  11182. (execute): Added a check whether file is already exists or not.
  11183. * src/DiskAdaptor.h
  11184. (fileExists): New function.
  11185. (getFilePath): New function.
  11186. * src/main.cc
  11187. (showUsage): Added an explanation of --force-truncate command-line
  11188. option.
  11189. (main): Added --force-truncate command-line option.
  11190. * src/Exception.h
  11191. (setMsg): buf[256] -> buf[1024]
  11192. * src/CopyDiskWriter.h
  11193. (getFilePath): Made public virtual.
  11194. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11195. (fileExists): New function.
  11196. * src/DownloadEngineFactory.cc
  11197. (newTorrentConsoleEngine): Don't open file here.
  11198. * src/message.h
  11199. (EX_FILE_ALREADY_EXISTS): New definition.
  11200. * src/prefs.h
  11201. (PREF_FOECE_TRUNCATE): New definition.
  11202. * src/HttpResponseCommand.cc
  11203. (handleDefaultEncoding): Added a check whether the file already exists.
  11204. * src/SegmentMan.h
  11205. (fileExists): New function.
  11206. (shouldCancelDownloadForSafety): New function.
  11207. * src/FtpNegotiateCommand.cc
  11208. (recvSize): Added a check whether the file already exists.
  11209. * src/AbstractSingleDiskAdaptor.cc
  11210. (File.h): New include.
  11211. (fileExists): New function.
  11212. * src/AbstractSingleDiskAdaptor.h
  11213. (getFilePath): Removed.
  11214. (fileExists): New function.
  11215. * src/SegmentMan.cc
  11216. (fileExists): New function.
  11217. (shouldCancelDownloadForSafety): New function.
  11218. To fix regression bug in torrent downloading:
  11219. * src/DefaultBtRequestFactory.cc
  11220. (doChokedAction): New function.
  11221. * src/DefaultBtRequestFactory.h
  11222. (doChokedAction): New function.
  11223. * src/DefaultBtMessageDispatcher.cc
  11224. (doChokedAction): Do not delete request if its target is in allowed
  11225. fast set.
  11226. * src/DefaultBtInteractive.cc
  11227. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11228. (sendKeepAlive): Send keep alive message even if the outgoing message
  11229. queue is not empty.
  11230. (decideInterest): Simplified the code.
  11231. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11232. it is already called when BtChokeMessage is received from a peer.
  11233. * src/BtRequestFactory.h
  11234. (doChokedAction): New function.
  11235. To clean up code:
  11236. * src/PeerInteractionCommand.h
  11237. (executeInternal): Added virtual keyword explicitly.
  11238. (prepareForRetry): Added virtual keyword explicitly.
  11239. (prepareForNextPeer): Added virtual keyword explicitly.
  11240. (onAbort): Added virtual keyword explicitly.
  11241. * src/RequestSlot.cc
  11242. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11243. * src/BtPieceMessage.cc
  11244. (doReceivedAction): Added a debug log of piece's bitfield.
  11245. * src/Piece.h
  11246. (getBitfieldLength): New function.
  11247. * src/ByteArrayDiskWriter.cc
  11248. (clear): Added buf = 0 to avoid double free corruption.
  11249. * src/FileAllocator.cc
  11250. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11251. Added cp.reset().
  11252. * src/BitfieldMan.h
  11253. (operator=): Rewritten.
  11254. * src/BitfieldMan.cc
  11255. (BitfieldMan): Initialized bitfield, useBitfield.
  11256. * src/PeerConnection.cc
  11257. (receiveMessage): Added a call to socket->readable() after getting
  11258. message length to avoid possible EOF.
  11259. * src/Util.cc
  11260. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11261. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11262. To add an ability to pre-allocate file space:
  11263. * src/DirectDiskAdaptor.h: Rewritten.
  11264. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11265. * src/MultiDiskAdaptor.h: Rewritten.
  11266. * src/DefaultPieceStorage.cc
  11267. (MultiDiskWriter.h): Removed include.
  11268. (PreAllocationDiskWriter.h): Removed include.
  11269. (FileAllocationMonitor.h): New include.
  11270. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11271. (initStorage): Rewritten.
  11272. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11273. * src/FileAllocator.h: New class.
  11274. * src/FileAllocator.cc: New class.
  11275. * src/FileAllocationMonitor.h: New class.
  11276. * src/FileAllocationMonitor.cc: New class.
  11277. * src/ConsoleFileAllocationMonitor.h: New class.
  11278. * src/ConsoleFileAllocationMonitor.cc: New class.
  11279. * src/AbstractSingleDiskAdaptor.h: New class.
  11280. * src/AbstractSingleDiskAdaptor.cc: New class.
  11281. * src/DiskAdaptor.h
  11282. (Directory.h): Removed include.
  11283. (DiskWriter.h): Removed include.
  11284. (FileEntry.h): Removed include.
  11285. (diskWriter): Removed.
  11286. (DiskAdaptor): Removed diskWriter.
  11287. (openFile): Made pure virtual.
  11288. (closeFile): Made pure virtual.
  11289. (openExistingFile): Made pure virtual.
  11290. (initAndOpenFile): Made pure virtual.
  11291. (writeData): Made pure virtual.
  11292. (readData): Made pure virtual.
  11293. (sha1Sum): Made pure virtual.
  11294. (getStoreDir): Returns const reference of storeDir.
  11295. (DiskAdaptorHandle): New type definition.
  11296. * src/main.cc
  11297. (ConsoleFileAllocationMonitor.h): New include.
  11298. (showUsage): Added default value description of -s option.
  11299. Added the description of --file-allocation option.
  11300. (main): Set default value of --file-allocation option to 'none'.
  11301. Added --file-allocation command-line option.
  11302. Setup FileAllocationMonitorFactory.
  11303. * src/FtpInitiateConnectionCommand.cc
  11304. (executeInternal): Removed diskWriter related processing, which was
  11305. moved to FtpNegotiationCommand.cc.
  11306. * src/DirectDiskAdaptor.cc
  11307. (getFilePath): Made non-const.
  11308. * src/CopyDiskAdaptor.h
  11309. (DiskAdaptor.h): Removed include.
  11310. (DiskWriter.h): Removed include.
  11311. (AbstractSingleDiskAdaptor.h): New include.
  11312. (getFilePath): Made non-const. Added virtual keyword.
  11313. (CopyDiskAdaptor): Removed diskWriter.
  11314. (getTempFile): Returns const reference.
  11315. (CopyDiskAdaptorHandle): New type definition.
  11316. * src/ByteArrayDiskWriter.cc
  11317. (clear): Simplified.
  11318. (initAndOpenFile): Rewritten.
  11319. (openFile): Call initAndOpenFile()
  11320. * src/MultiDiskAdaptor.cc: Rewritten.
  11321. * src/DownloadEngineFactory.cc
  11322. (FileAllocator.h): New include.
  11323. (FileAllocationMonitor.h): New include.
  11324. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11325. create DefaultDiskWriter with file allocator.
  11326. * src/DiskWriter.h
  11327. (initAndOpenFile): Added totalLength argument.
  11328. (openFile): Added totalLength argument.
  11329. * src/prefs.h
  11330. (PREF_FILE_ALLOCATION): New definition.
  11331. (V_PREALLOC): New definition.
  11332. (V_NONE): New definition.
  11333. * src/HttpResponseCommand.cc
  11334. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11335. size.
  11336. * src/FtpNegotiateCommand.cc
  11337. (Util.h): New include.
  11338. (recvSize): Open file here.
  11339. * src/Util.h
  11340. (ullitos): New function.
  11341. * src/CopyDiskWriter.h
  11342. (getFilePath): Made non-const.
  11343. * src/DefaultDiskWriter.h
  11344. (Option.h): New include.
  11345. (totalLength): Removed.
  11346. (DefaultDiskWriter): Removed totalLength.
  11347. (initAndOpenFile): Added totalLength argument.
  11348. (DefaultDiskWriterHandle): New type definition.
  11349. (createNewDiskWriter): New function.
  11350. * src/Util.cc
  11351. (ullitos): New function.
  11352. * src/DefaultDiskWriter.cc
  11353. (message.h): New include.
  11354. (FileAllocator.h): New include.
  11355. (prefs.h): New include.
  11356. (Util.h): New include.
  11357. (DefaultDiskWriter): Removed totalLength.
  11358. (initAndOpenFile): Added file allocation.
  11359. (createNewDiskWriter): New function. Just for temporary solution.
  11360. It will be rewritten later.
  11361. * src/DiskAdaptor.cc
  11362. (DiskAdaptor): Removed diskWriter.
  11363. * src/AbstractDiskWriter.cc
  11364. (LogFactory.h): New include.
  11365. (AbstractDiskWriter): Added fileAllocator, logger.
  11366. (openFile): Added totalLength argument.
  11367. * src/AbstractDiskWriter.h
  11368. (FileAllocator.h): New include.
  11369. (Logger.h): New include.
  11370. (fileAllocator): New variable.
  11371. (logger): New variable.
  11372. (openFile): Added totalLength argument. Added virtual keyword
  11373. explicitly.
  11374. (openExistingFile): Added totalLength argument. Added virtual keyword
  11375. explicitly.
  11376. (closeFile): Added virtual keyword explicitly.
  11377. (sha1Sum): Added virtual keyword explicitly.
  11378. (writeData): Added virtual keyword explicitly.
  11379. (readData): Added virtual keyword explicitly.
  11380. (setFileAllocator): New function.
  11381. * src/DefaultPieceStorage.h
  11382. (FileAllocator.h): New include.
  11383. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11384. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11385. * src/FileProgressMonitor.h: New class.
  11386. To compile aria2 on PC-BSD:
  11387. * src/DefaultBtContext.cc
  11388. (libgen.h): New include.
  11389. To fix memory leak:
  11390. * src/Exception.h
  11391. (~Exception): Delete cause. Fixed memory leak.
  11392. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11393. Rewritten a portion of bittorrent implementation:
  11394. * src/BtMessageValidator.h: New class.
  11395. * src/BtBitfieldMessageValidator.h: New class.
  11396. * src/BtHandshakeMessageValidator.h: New class.
  11397. * src/BtRequestMessageValidator.h: New class.
  11398. * src/BtSuggestPieceMessageValidator.h: New class.
  11399. * src/BtAllowedFastMessageValidator.h: New class.
  11400. * src/BtRejectMessageValidator.h: New class.
  11401. * src/BtCancelMessageValidator.h: New class.
  11402. * src/BtPieceMessageValidator.h: New class.
  11403. * src/BtHaveMessageValidator.h: New class.
  11404. * src/BtEventListener.h: New class.
  11405. * src/AbstractBtEventListener.h: New class.
  11406. * src/BtEvent.h: New class.
  11407. * src/BtChokingEvent.h: New class.
  11408. * src/BtChokedEvent.h: New class.
  11409. * src/BtCancelSendingPieceEvent.h: New class.
  11410. * src/BtAbortOutstandingRequestEvent.h: New class.
  11411. * src/Randomizer.h: New class.
  11412. * src/SimpleRandomizer.h: New class.
  11413. * src/BtMessage.h: New class.
  11414. * src/AbstractBtMessage.h: New class.
  11415. * src/SimpleBtMessage.h: New class.
  11416. * src/BtHaveMessage.h: New class.
  11417. * src/BtInterestedMessage.h: New class.
  11418. * src/BtAllowedFastMessage.h: New class.
  11419. * src/BtUnchokeMessage.h: New class.
  11420. * src/BtCancelMessage.h: New class.
  11421. * src/BtNotInterestedMessage.h: New class.
  11422. * src/BtChokeMessage.h: New class.
  11423. * src/BtHaveNoneMessage.h: New class.
  11424. * src/BtHandshakeMessage.h: New class.
  11425. * src/BtSuggestPieceMessage.h: New class.
  11426. * src/BtHaveMessage.h: New class.
  11427. * src/BtPieceMessage.h: New class.
  11428. * src/BtHaveAllMessage.h: New class.
  11429. * src/BtKeepAliveMessage.h: New class.
  11430. * src/BtPortMessage.h: New class.
  11431. * src/BtRejectMessage.h: New class.
  11432. * src/BtBitfieldMessage.h: New class.
  11433. * src/BtRequestMessage.h: New class.
  11434. * src/DefaultBtRequestFactory.h: New class.
  11435. * src/DefaultBtMessageReceiver.h: New class.
  11436. * src/BtInteractive.h: New class.
  11437. * src/BtMessageDispatcher.h: New class.
  11438. * src/DefaultBtMessageDispatcher.h: New class.
  11439. * src/DefaultBtInteractive.h: New class.
  11440. * src/BitfieldManFactory.h: New class.
  11441. * src/HandleRegistry.h: New class.
  11442. * src/BtMessageFactory.h: New class.
  11443. * src/BtMessageReceiver.h: New class.
  11444. * src/DefaultBtMessageFactory.h: New class.
  11445. * src/PeerObject.h: New class.
  11446. * src/BtRequestFactory.h: New class.
  11447. * src/SuggestPieceMessage.h: Removed.
  11448. * src/PortMessage.h: Removed.
  11449. * src/SuggestPieceMessage.h: Removed.
  11450. * src/KeepAliveMessage.h: Removed.
  11451. * src/HandshakeMessage.h: Removed.
  11452. * src/PeerInteraction.h: Removed.
  11453. * src/UnchokeMessage.h: Removed.
  11454. * src/PieceMessage.h: Removed.
  11455. * src/RequestMessage.h: Removed.
  11456. * src/InterestedMessage.h: Removed.
  11457. * src/HaveMessage.h: Removed.
  11458. * src/CancelMessage.h: Removed.
  11459. * src/RejectMessage.h: Removed.
  11460. * src/AllowedFastMessage.h: Removed.
  11461. * src/HaveNoneMessage.h: Removed.
  11462. * src/SimplePeerMessage.h: Removed.
  11463. * src/HaveAllMessage.h: Removed.
  11464. * src/BitfieldMessage.h: Removed.
  11465. * src/PeerMessageFactory.h: Removed.
  11466. * src/NotInterestedMessage.h: Removed.
  11467. * src/ChokeMessage.h: Removed.
  11468. * src/PeerMessage.h: Removed.
  11469. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11470. To know root cause of exception:
  11471. * src/Exception.h
  11472. (cause): New variable.
  11473. (Exception): Added a parameter.
  11474. (getMsg): Return const reference to msg.
  11475. (getCause): New function.
  11476. * src/DlRetryEx.h
  11477. (DlRetryEx): Added a parameter 'cause'.
  11478. Added an overloaded constructor.
  11479. (DlAbortEx): Added a parameter 'cause'.
  11480. Added an overloaded constructor.
  11481. * src/SimpleLogger.cc
  11482. (writeLog): Log nested exception messages recursively.
  11483. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11484. * src/DefaultBtProgressInfoFile.cc
  11485. (load): Fixed memory leak when the infohash doesn't match.
  11486. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11487. * src/DefaultPeerStorage.cc
  11488. (calculateStat): Simplified the code by combining 2 loops into 1.
  11489. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11490. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11491. for BitTorrent download:
  11492. * src/PeerAbstractCommand.cc
  11493. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11494. * src/main.cc:
  11495. (timeoutSpecified): Removed.
  11496. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11497. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11498. * src/TorrentRequestInfo.cc
  11499. (timeoutSpecified): Removed.
  11500. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11501. timeout value.
  11502. * src/prefs.h
  11503. (PREF_BT_TIMEOUT): New definition.
  11504. Delete unused variables:
  11505. * src/TorrentRequestInfo.cc
  11506. (requestInfo): Removed.
  11507. Move setSignalHander to Util::setGlobalSignalHandler:
  11508. * src/TorrentRequestInfo.cc:
  11509. setSignalHander -> Util::setGlobalSignalHandler
  11510. * src/main.cc
  11511. (setSignalHander): Removed.
  11512. (main): setSignalHander -> Util::setGlobalSignalHandler
  11513. * src/Util.h
  11514. (setGlobalSignalHandler): New function.
  11515. * src/Util.cc
  11516. (setGlobalSignalHandler): New function.
  11517. * src/UrlRequestInfo.cc:
  11518. setSignalHander -> Util::setGlobalSignalHandler
  11519. Reset peer status in order to exit gracefully:
  11520. * src/PeerAbstractCommand.cc
  11521. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11522. To fix the bug that causes the number of bytes uploaded is not saved
  11523. to .aria2 file:
  11524. * src/DefaultPeerStorage.h
  11525. (removedPeerSessionDownloadLength): New variable.
  11526. (removedPeerSessionUploadLength): New variable.
  11527. * src/DefaultPeerStorage.cc
  11528. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11529. removedPeerSessionUploadLength(0).
  11530. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11531. through all peers, and then add removedPeerSessionDownloadLength(
  11532. removedPeerSessionUploadLength) to it.
  11533. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11534. (to) the peer to removedPeerSessionDownloadLength
  11535. (removedPeerSessionUploadLength).
  11536. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11537. To add Metalink location option:
  11538. * src/MetalinkRequestInfo.cc
  11539. (execute): Call MetalinkEntry::setLocationPreference()
  11540. * src/main.cc
  11541. (showUsage): Added the help message for --metalink-location option.
  11542. (main): Added --metalink-location option.
  11543. * src/prefs.h
  11544. (PREF_METALINK_LOCATION): New definition.
  11545. * src/MetalinkEntry.cc
  11546. (AddLocationPreference): New function object.
  11547. (setLocationPreference): New function.
  11548. * src/Xml2MetalinkProcessor.cc
  11549. (getResource): Set location attribute to MetalinkResource
  11550. To show URLs to download
  11551. * src/UrlRequestInfo.h
  11552. (printUrls): New function.
  11553. To add multiple <file> Metalink support:
  11554. * src/MetalinkEntry.h
  11555. (MetalinkResources): Removed.
  11556. (setLocationPreference): New function.
  11557. (MetalinkEntryHandle): New type definition.
  11558. (MetalinkEntries): New type definition.
  11559. * src/Xml2MetalinkProcessor.h
  11560. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11561. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11562. (parseFile): Metalinker* -> MetalinkerHandle
  11563. * src/UrlRequestInfo.h
  11564. (execute): RequestInfo* -> RequestInfos
  11565. * src/MetalinkRequestInfo.cc
  11566. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11567. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11568. (execute): RequestInfo* -> RequestInfos
  11569. Added multiple <file> support. Print filename when it is queued.
  11570. * src/MetalinkRequestInfo.h
  11571. (execute): RequestInfo* -> RequestInfos
  11572. (getDownloadEngine): Removed.
  11573. * src/RequestInfo.h
  11574. (RequestInfoHandle): New type definition.
  11575. (RequestInfos): New type definition.
  11576. (execute): RequestInfo* -> RequestInfos
  11577. (getDownloadEngine): Removed.
  11578. * src/MetalinkResource.h
  11579. (MetalinkResourceHandle): New type definition.
  11580. (MetalinkResources): New type definition.
  11581. * src/MetalinkEntry.cc
  11582. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11583. because the element is now of type MetalinkResourceHandle.
  11584. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11585. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11586. (dropUnsupportedResource): Removed the deletion of the elements of
  11587. resources because the element is now of type MetalinkResourceHandle.
  11588. * src/Xml2MetalinkProcessor.cc
  11589. (parseFile): Metalinker* -> MetalinkerHandle
  11590. MetalinkEntry* -> MetalinkEntryHandle
  11591. Removed try-catch block.
  11592. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11593. MetalinkResource* -> MetalinkResourceHandle
  11594. Removed try-catch block.
  11595. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11596. Free result by using xmlXPathFreeObject()
  11597. * src/Metalinker.cc
  11598. (~Metalinker): Removed the deletion of entries.
  11599. MetalinkEntry* -> MetalinkEntryHandle
  11600. (queryEntry): Add multiple <file> Metalink support.
  11601. * src/Metalinker.h
  11602. (MetalinkEntries): Removed.
  11603. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11604. * src/MetalinkProcessor.h
  11605. (parseFile): Metalinker* -> MetalinkerHandle
  11606. Bug fixes:
  11607. * src/PeerChokeCommand.cc
  11608. (execute): cat01->cat02
  11609. * src/DefaultPieceStorage.cc
  11610. (DefaultPieceStorage): Added diskAdaptor(0)
  11611. * src/TrackerWatcherComand.cc:
  11612. (execute): Use btAnnounce->noMoreAnnounce()
  11613. to determin whether the function returns true or not.
  11614. * src/TrackerUpdateCommand.cc:
  11615. (execute): Use btAnnounce->noMoreAnnounce()
  11616. to determin whether the function returns true or not.
  11617. * src/FtpConnection.cc
  11618. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11619. This is the fix of the busy loop bug.
  11620. * src/DownloadCommand.cc
  11621. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11622. cached PeerStat.
  11623. The value of "name" entry in torrent file is now set by
  11624. *DiskAdaptor::setTopDir(...) methods.
  11625. * src/MultiDiskAdaptor.h
  11626. (topDir): New variable.
  11627. (setTopDir): New function.
  11628. (getTopDir): New function.
  11629. * src/MultiDiskAdaptor.cc
  11630. (getFilePath): Concat storDir, "/" and topDir.
  11631. (mkdir): Use getFilePath() to get the directory path for output.
  11632. * src/DefaultPieceStorage.cc
  11633. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11634. CopyDiskAdaptor.
  11635. * src/CopyDiskAdaptor.h
  11636. (topDir): New variable.
  11637. (setTopDir): New function.
  11638. (getTopDir): New function.
  11639. * src/CopyDiskAdaptor.cc
  11640. (fixFilename): Updated.
  11641. Misc
  11642. * src/UrlRequestInfo.h
  11643. (e): Removed.
  11644. (UrlRequestInfo): Removed e.
  11645. (getDownloadEngine): Removed.
  11646. * src/UrlRequestInfo.cc
  11647. (handler): Rewritten.
  11648. (printUrls): New function.
  11649. (execute): Call printUrls().
  11650. * src/HandshakeMessage.cc
  11651. (check): peerinteraction->getBtContext() -> btContext
  11652. * src/PeerInteraction.h
  11653. (getBtContext): Removed.
  11654. * src/TorrentRequestInfo.h
  11655. (execute): RequestInfo* -> RequestInfos
  11656. (getDownloadEngine): Removed.
  11657. * src/TorrentRequestInfo.cc
  11658. (haltRequested): Removed.
  11659. (btHaltRequested): New variable.
  11660. (torrentHandler): haltRequested -> btHaltRequested
  11661. (execute): RequestInfo* -> RequestInfos
  11662. * src/TorrentConsoleDownloadEngine.cc
  11663. (afterEachIteration): haltRequested -> btHaltRequested.
  11664. * src/ConsoleDownloadEngine.h
  11665. (initStatistics): Added virtual.
  11666. (calculateStatistics): Added virtual.
  11667. (onEndOfRun): Added virtual.
  11668. (afterEachIteration): Added virtual.
  11669. * src/ConsoleDownloadEngine.cc
  11670. (haltRequested): New variable.
  11671. (afterEachIteration): New function.
  11672. * src/main.cc
  11673. (requestInfo): Removed.
  11674. * src/SegmentMan.cc
  11675. (findSlowerSegmentEntry): Refactored.
  11676. * Release 0.9.0
  11677. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11678. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  11679. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  11680. * src/TorrentMan.h: Removed.
  11681. * src/TorrentMan.cc: Removed.
  11682. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  11683. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  11684. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  11685. * src/PeerAbstractCommand.cc: Use btRuntime.
  11686. * src/BtContextAwareCommand.h: New class.
  11687. * src/FileEntry.h: Added accessor methods for following variables.
  11688. (path): Made private.
  11689. (length): Made private.
  11690. (offset): Made private.
  11691. (extracted): Made private.
  11692. (requested): Made private.
  11693. (FileEntries): New definition.
  11694. (FileEntryHandle): New definition.
  11695. * src/FileEntry.cc: New file.
  11696. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  11697. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  11698. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  11699. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  11700. * src/PieceStorage.h: New file.
  11701. * src/PeerInteractionCommand.h: Use btContext.
  11702. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  11703. btRuntime.
  11704. * src/DefaultBtProgressInfoFile.h: New file.
  11705. * src/DefaultBtProgressInfoFile.cc: New file.
  11706. * src/File.cc
  11707. (Util.h): New include.
  11708. (mkdirs): New function.
  11709. * src/MultiDiskAdaptor.h
  11710. (mkdir): New function.
  11711. * src/PeerListProcessor.h
  11712. (Peers): Removed.
  11713. * src/PeerInteraction.h
  11714. (torrentMan): Removed.
  11715. (btContext): New variable.
  11716. (peerStorage): New variable.
  11717. (pieceStorage): New variable.
  11718. (btAnnounce): New variable.
  11719. (getTorrentMan): Removed.
  11720. (getBtContext): New function.
  11721. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11722. btAnnounce.
  11723. * src/HandshakeMessage.h
  11724. (TorrentMan.h): Removed.
  11725. * src/HandshakeMessage.cc: Use btContext.
  11726. * src/DefaultBtAnnounce.cc: New file.
  11727. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11728. * src/DefaultPieceStorage.cc: New file.
  11729. * src/DefaultBtContext.h: New file.
  11730. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11731. Use the accessor methods of FileEntry.
  11732. * src/CookieBox.cc: Updated to use Util::slice().
  11733. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11734. * src/common.h (SharedHandle.h): New include.
  11735. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11736. pieceStorage.
  11737. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11738. * src/DiskAdaptor.h
  11739. (topDir): Removed.
  11740. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11741. (setTopDir): Removed.
  11742. (getTopDir): Removed.
  11743. * src/BtContext.h: New file.
  11744. * src/DefaultPeerStorage.h: New file.
  11745. * src/PieceMessage.h (TorrentMan.h): Removed.
  11746. * src/RequestMessage.h (TorrentMan.h): Removed.
  11747. * src/TorrentDownloadEngine.h
  11748. (uploadLength): New variable.
  11749. (btContext): New variable.
  11750. (btRuntime): New variable.
  11751. (pieceStorage): New variable.
  11752. (peerStorage): New variable.
  11753. (btAnnounce): New variable.
  11754. (btProgressInfoFile): New variable.
  11755. (torrentMan): Removed.
  11756. (setBtContext): New function.
  11757. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11758. peerStorage, btAnnounce, btProgressInfoFile.
  11759. * src/Piece.h
  11760. (toString): New function.
  11761. (Pieces): New type definition.
  11762. * src/Peer.h
  11763. (active): New variable.
  11764. (Peer): Added active.
  11765. (activate): Set active to true.
  11766. (deactivate): Set active to false.
  11767. (isActive): New function.
  11768. (Peers): New type definition.
  11769. * src/DirectDiskAdaptor.cc
  11770. (getFilePath): Use the accessor methods of FileEntry.
  11771. * src/TorrentConsoleDownloadEngine.h
  11772. (afterEachIteration): New function.
  11773. * src/TorrentConsoleDownloadEngine.cc
  11774. (haltRequested): New variable.
  11775. (sendStatistics): Use pieceStorage, btRuntime.
  11776. (afterEachIteration): New function.
  11777. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11778. * src/Directry.h
  11779. (Directory): New function.
  11780. (DirectoryHandle): New type definition.
  11781. * src/BtProgressInfoFile.h: New file.
  11782. * src/RequestMessage.cc: Use pieceStorage.
  11783. * src/BtRuntime.h: New file.
  11784. * src/DefaultBtContext.cc: New file.
  11785. * src/BitfieldMan.h
  11786. (getCompletedLength): New function(private).
  11787. (getCompletedLength): New function.
  11788. (getFilteredCompletedLength): New function.
  11789. * src/BitfieldMan.h
  11790. (getCompletedLength): New function(private).
  11791. (getCompletedLength): New function.
  11792. (getFilteredCompletedLength): New function.
  11793. * src/MultiDiskAdaptor.cc
  11794. (mkdir): New function.
  11795. (openFile): Call mkdir().
  11796. (initAndOpenFile): Call mkdir().
  11797. * src/CancelMessage.h
  11798. (TorrentMan.h): Removed.
  11799. * src/RejectMessage.h
  11800. (TorrentMan.h): Removed.
  11801. * src/DownloadEngineFactory.cc
  11802. (DefaultPieceStorage.h): New include.
  11803. (DefaultPeerStorage.h): New include.
  11804. (DefaultBtAnnounce.h): New include.
  11805. (DefaultBtProgressInfoFile.h): New include.
  11806. (newTorrentConsoleEngine): Rewritten.
  11807. * src/ShareRatioSeedCriteria.h
  11808. (torrentMan): Removed.
  11809. (btContext): New variable.
  11810. (peerStorage): New variable.
  11811. (btRuntime): New variable.
  11812. (evaluate): Use btContext, btRuntime, peerStorage.
  11813. * src/AnnounceTier.h: New file.
  11814. * src/BtAnnounce.h: New file.
  11815. * src/BtRegistry.h: New file.
  11816. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11817. * src/PeerConnection.h (TorrentMan.h): Removed.
  11818. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11819. * src/Util.h
  11820. (slice): Added an argument.
  11821. * src/Util.cc
  11822. (slice): Added an argument to control whether trim is made or not.
  11823. * src/PeerStorage.h: New file.
  11824. * src/BtRegistry.cc: New file.
  11825. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11826. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11827. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11828. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11829. * src/TorrentRequestInfo.h
  11830. (e): Removed.
  11831. (showFileEntry): Added an argument.
  11832. (getDownloadEngine): Return 0.
  11833. * src/DefaultBtAnnounce.h: New file.
  11834. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11835. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11836. * src/PeerMessageFactory.h
  11837. (btContext): New variable.
  11838. (pieceStorage): New variable.
  11839. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11840. btAnnounce.
  11841. * src/DiskAdaptor.cc
  11842. (DiskAdaptor): Removed topDir.
  11843. (~DiskAdaptor): Removed topDir.
  11844. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11845. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11846. * src/File.h (mkdirs): New function.
  11847. * src/DefaultPeerStorage): New file.
  11848. * src/DownloadEngineFactory.h
  11849. (newTorrentConsoleEngine): Use btContext.
  11850. * src/BtContextAwareCommand.cc: New file.
  11851. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11852. * src/PeerMessage.h
  11853. (btContext): New variable.
  11854. (peerStorage): New variable.
  11855. (pieceStorage): New variable.
  11856. (setBtContext): New function.
  11857. * src/Directry.cc
  11858. (Directory): New function.
  11859. (createDir): Do nothing if name.size() == 0.
  11860. * src/AnnounceList.h
  11861. (AnnounceTier): Removed.
  11862. (AnnounceTiers): Removed.
  11863. * src/DefaultPieceStorage.h: New file.
  11864. * src/Piece.cc (toString): New function.
  11865. To fix typo:
  11866. * src/main.cc (showVersion): Fixed typo.
  11867. To fix compile warning:
  11868. * src/DelegatingPeerListProcessor.cc
  11869. (canHandle): Added "return false".
  11870. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11871. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11872. make the process of announce request testable.
  11873. * src/TrackerWatcherCommand.h
  11874. (TimeA2.h): Removed.
  11875. (interval): Removed.
  11876. (checkPoint): Removed.
  11877. (createRequestCommand): Added an argument 'url'.
  11878. (TrackerWatherCommand): Removed interval.
  11879. (createCommand): New function.
  11880. * src/DownloadEngineFactory.cc
  11881. (newTorrentConsoleEngine): Updated according to the changes in
  11882. TrackerWatherCommand.
  11883. * src/TorrentMan.cc
  11884. (DelegatingPeerListProcessor.h): New includes.
  11885. (TorrentMan): Added the initialization of announceInterval.
  11886. (isStoppedAnnounceReady): New function.
  11887. (isCompletedAnnounceReady): New function.
  11888. (isDefaultAnnounceReady): New function.
  11889. (isAnnounceReady): New function.
  11890. (getAnnounceUrl): New function.
  11891. (announceStart): New function.
  11892. (announceFailure): New function.
  11893. (announceSuccess): New function.
  11894. (isAllAnnounceFailed): New function.
  11895. (resetAnnounce): New function.
  11896. (processAnnounceResponse): New function.
  11897. (needMorePeerConnection): New function.
  11898. (noMoreAnnounce): New function.
  11899. * src/TrackerUpdateCommand.h
  11900. (getTrackerResponse): int->size_t
  11901. * src/TorrentMan.h
  11902. (isStoppedAnnounceReady): New function.
  11903. (isCompletedAnnounceReady): New function.
  11904. (isDefaultAnnounceReady): New function.
  11905. (announceInterval): New variable.
  11906. (isAnnounceReady): New function.
  11907. (getAnnounceUrl): New function.
  11908. (announceStart): New function.
  11909. (announceFailure): New function.
  11910. (announceSuccess): New function.
  11911. (isAllAnnounceFailed): New function.
  11912. (resetAnnounce): New function.
  11913. (processAnnounceResponse): New function.
  11914. (needMorePeerConnection): New function.
  11915. (noMoreAnnounce): New function.
  11916. * src/TrackerWatcherCommand.cc
  11917. (TrackerWatherCommand): Removed interval and checkPoint.
  11918. (execute): Rewritten.
  11919. (createCommand): New function.
  11920. (createRequestCommand): Rewritten.
  11921. * src/TrackerUpdateCommand.cc
  11922. (MetaFileUtil.h): Removed.
  11923. (DelegatingPeerListProcessor.h): Removed.
  11924. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11925. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11926. Request -> RequestHandle:
  11927. * src/HttpResponseCommand.h: Request->RequestHandle
  11928. * src/AbstractCommand.cc: Request->RequestHandle
  11929. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11930. * src/HttpRequestCommand.cc: Request->RequestHandle
  11931. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11932. * src/AbstractCommand.h: Request->RequestHandle
  11933. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11934. * src/HttpResponseCommand.cc: Request->RequestHandle
  11935. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11936. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11937. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11938. * src/HttpConnection.h: Request->RequestHandle
  11939. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11940. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11941. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11942. * src/DownloadCommand.h: Request->RequestHandle
  11943. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11944. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11945. * src/HttpRequestCommand.h: Request->RequestHandle
  11946. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11947. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11948. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11949. * src/HttpDownloadCommand.h: Request->RequestHandle
  11950. * src/FtpConnection.cc: Request->RequestHandle
  11951. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11952. * src/UrlRequestInfo.cc: Request->RequestHandle
  11953. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11954. * src/HttpConnection.h: Request->RequestHandle
  11955. * src/DownloadCommand.cc: Request->RequestHandle
  11956. * src/FtpConnection.h: Request->RequestHandle
  11957. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11958. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11959. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11960. * src/Request.h
  11961. (SharedHandle.h): New include.
  11962. (RequestHandle): New type definition.
  11963. (Requests): Redefined.
  11964. To add MULTITRACKER support:
  11965. * src/TrackerWatcherCommand.h
  11966. (createRequestCommand): New function.
  11967. * src/DownloadEngineFactory.cc
  11968. (newTorrentConsoleEngine): Removed req.
  11969. * src/prefs.h
  11970. (PREF_TRACKER_MAX_TRIES): New definition.
  11971. * src/TorrentMan.cc
  11972. (TorrentMan): Removed req. Added trackerNumTry.
  11973. (~TorrentMan): Removed req.
  11974. (setupInternal1): Added announceList.
  11975. * src/TorrentRequestInfo.cc
  11976. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11977. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11978. * src/main.cc
  11979. (main): Added PREF_TRACKER_MAX_TRIES.
  11980. * src/TorrentMan.h
  11981. (Request.h): Removed.
  11982. (AnnounceList.h): New include.
  11983. (trackerNumTry): New variable.
  11984. (req): Removed.
  11985. (announceList): New variable.
  11986. * src/TrackerWatcherCommand.cc
  11987. (execute): Rewritten.
  11988. (createRequestCommand): New function.
  11989. * src/TrackerUpdateCommand.cc
  11990. (execute): Updated with the use of AnnounceList.
  11991. * src/AnnounceList.cc: New class.
  11992. * src/AnnounceList.h: New class.
  11993. To fix typo:
  11994. * src/prefs.h
  11995. (PREF_MAX_TRIES): max_try->max_tries
  11996. To not to decode "+" as space in URL decode:
  11997. * src/Util.cc
  11998. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11999. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12000. To add timeout to async name resolution:
  12001. * src/AbstractCommand.h
  12002. (nameResolveFinished): New function. This is not elegant way. It needs
  12003. to be more refined.
  12004. (nameResolverCheck): New variable.
  12005. * src/AbstractCommand.cc
  12006. (AbstractCommand): Added nameResolverCheck.
  12007. (execute): Added the check whether the name resolution has finished.
  12008. (setNameResolverCheck): Set nameResolverCheck to true.
  12009. (disableNameResolverCheck): Set nameResolverCheck to false.
  12010. (nameResolverFinished): New function.
  12011. * src/FtpInitiateConnectionCommand.h
  12012. (nameResolverFinished): New function.
  12013. * src/FtpInitiateConnectionCommand.cc
  12014. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12015. * src/HttpInitiateConnectionCommand.h
  12016. (nameResolverFinished): New function.
  12017. * src/HttpInitiateConnectionCommand.cc
  12018. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12019. * src/prefs.h
  12020. (PREF_DNS_TIMEOUT): New definition.
  12021. * src/main.cc
  12022. (main): Added PREF_DNS_TIMEOUT.
  12023. To add the support for a non-compact response from a tracker:
  12024. * src/PeerListProcessor.h: New class.
  12025. * src/DefaultPeerListProcessor.h: New class.
  12026. * src/DefaultPeerListProcessor.cc: New class.
  12027. * src/CompactPeerListProcessor.h: New class.
  12028. * src/CompactPeerListProcessor.cc: New class.
  12029. * src/DelegatingPeerListProcessor.h: New class.
  12030. * src/DelegatingPeerListProcessor.cc: New class.
  12031. * src/TorrentMan.cc
  12032. (addPeer): New function(overload).
  12033. (addPeer): Delete unused peers only when new peer is added.
  12034. * src/TorrentMan.h
  12035. (PeerListProcessor.h): Included.
  12036. (Peers): Removed.
  12037. (addPeer): New function(overload).
  12038. * src/TrackerUpdateCommand.cc
  12039. (netinet/in.h): Removed.
  12040. (DelegatingPeerListProcessor.h): Included.
  12041. (execute): Updated to use DelegatingPeerListProcessor.
  12042. To fix the memory leak in TorrentMan::peers:
  12043. * src/PeerAbstractCommand.cc
  12044. (onAbort): Added peer->resetStatus().
  12045. * src/Peer.h
  12046. (resetStatus): Made public.
  12047. To improve the precision of the speed calculation:
  12048. * src/SpeedCalc.h
  12049. (nextInterval): New variable.
  12050. * src/SpeedCalc.cc
  12051. (reset): Added nextInterval.
  12052. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12053. (changeSw): Set nextInterval to 15 seconds relative to the current
  12054. instant time.
  12055. * src/main.cc
  12056. (showVersion): Updated.
  12057. (showUsage): Updated.
  12058. * Release 0.8.1
  12059. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12060. * src/main.cc
  12061. (showUsage): Commented out --min-segment-size option.
  12062. (main): Commented out --min-segment-size option.
  12063. * Release 0.8.0
  12064. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12065. * src/*.{h,cc}:
  12066. Added an exception to the license which allows linking with OpenSSL.
  12067. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12068. * src/AbstractCommand.cc
  12069. (execute): Check whether the download has finished before checking
  12070. socket status.
  12071. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12072. Do not exit even if no segment is available.
  12073. * src/prefs.h
  12074. (PREF_STARTUP_IDLE_TIME): New definition.
  12075. * src/PeerInteractionCommand.cc
  12076. (executeInternal): Removed max speed limit. Because it performs bad.
  12077. (receiveMessages): Added max speed limit. This was better than above,
  12078. but still a little bit to be desired. Sometimes the download speed
  12079. became much faster than I specified.
  12080. * src/SpeedCalc.h
  12081. (start): New variable.
  12082. (accumulatedLength): New variable.
  12083. (getAvgSpeed): New function.
  12084. * src/SpeedCalc.cc
  12085. (reset): Added start, accumulatedLength.
  12086. (update): Added calculation of an average speed.
  12087. (getAvgSpeed): New function.
  12088. * src/DownloadCommand.h
  12089. (sw): Removed.
  12090. * src/main.cc
  12091. (main): Added PREF_STARTUP_IDLE_TIME.
  12092. * src/PeerStat.h
  12093. (STATUS): Added REQUEST_IDLE.
  12094. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12095. (getAvgDownloadSpeed): New function
  12096. (requestIdle): New function.
  12097. * src/SegmentMan.h
  12098. (SegmentEntryHandle): New type definition.
  12099. (SegmentEntries): Now holds SegmentEntryHandle.
  12100. (findSlowerSegmentEntry): New funtion.
  12101. * src/SegmentMan.cc
  12102. (save): Updated according to the changes in SegmentEntries.
  12103. (read): Updated according to the changes in SegmentEntries.
  12104. (FindSegmentEntryByIndex): Updated according to the changes in
  12105. SegmentEntries.
  12106. (FindSegmentEntryByCuid): Updated according to the changes in
  12107. SegmentEntries.
  12108. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12109. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12110. Renamed uitr as itr.
  12111. (findSlowerSegmentEntry): New function.
  12112. (getSegment): Updated according to the changes in SegmentEntries.
  12113. Added the feature that cancels the segment with slow server and fast
  12114. one takes it over.
  12115. (cancelSegment): Updated according to the changes in SegmentEntries.
  12116. (getDownloadLength): Updated according to the changes in
  12117. SegmentEntries.
  12118. (init): Assigned 0 to bitfield after deleting it.
  12119. * src/DownloadCommand.cc
  12120. (STARTUP_IDLE_TIME): Removed.
  12121. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12122. * src/PeerChokeCommand.cc
  12123. (optUnchokingPeer): Updated according to the changes in Peer.
  12124. (ResetDelta): Removed.
  12125. (UploadFaster): Updated according to the changes in Peer.
  12126. (DownloadFaster): Updated according to the changes in Peer.
  12127. (execute): I clarify the meaning of "upload" and "download" here.
  12128. "upload" means the transfer from localhost to remote host.
  12129. "download" means the transfer from remote host to localhost.
  12130. Based on this rule, I swapped orderByUploadRate and
  12131. orderByDownloadRate.
  12132. * src/PeerInteractionCommand.cc
  12133. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12134. (executeInternal): Removed the argument of
  12135. peerInteraction->sendMessages().
  12136. (receiveMessages): Rewritten download speed limit.
  12137. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12138. * src/HttpResponseCommand.cc
  12139. (handleDefaultEncoding): If file size is unknown in torrent request,
  12140. do not call segmentMan->initBitfield() here.
  12141. Disabled persistent connection feature in torrent request.
  12142. * src/UrlRequestInfo.h
  12143. (UrlRequestInfo): Removed const qualifier from option.
  12144. * src/TorrentMan.h
  12145. (TransferStat): New class.
  12146. (deltaDownloadLength): Removed.
  12147. (deltaUploadLength): Removed.
  12148. (addDeltaDownloadLength): Removed.
  12149. (getDeltaDownloadLength): Removed.
  12150. (resetDeltaDownloadLength): Removed.
  12151. (addDeltaUploadLength): Removed.
  12152. (getDeltaUploadLength): Removed.
  12153. (resetDeltaUploadLength): Removed.
  12154. (addActivePeer): Added peer->activate().
  12155. (deleteActivePeer): Added peer->deactivate().
  12156. (calculateStat): New function.
  12157. * src/TorrentMan.cc
  12158. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12159. (calculateStat): New function.
  12160. * src/PeerInteraction.h
  12161. (uploadLimit): Removed.
  12162. (option): New variable.
  12163. (setUploadLimit): Removed.
  12164. (getUploadSpeed): Removed.
  12165. (sendMessages): Removed the argument "currentUploadSpeed".
  12166. * src/PeerInteraction.cc
  12167. (prefs.h): Included.
  12168. (PeerInteraction): Removed uploadLimit. Added option.
  12169. (sendMessages): Rewritten upload speed limit.
  12170. (sendHandshake): Removed the argument from sendMessages().
  12171. (sendBitfield): Removed the argument from sendMessages().
  12172. * src/PeerAbstractCommand.cc
  12173. (execute): Commented out the portion of upload limit.
  12174. (onAbort): Removed peer->resetStatus().
  12175. * src/TorrentRequestInfo.cc
  12176. (timeoutSpecified): Declared extern.
  12177. (execute): Set timeout to 180 if timeout is not specified by.
  12178. command-line.
  12179. * src/PieceMessage.cc
  12180. (receivedAction): Added peer->updateDownloadLength().
  12181. Removed peer->addPeerUpload().
  12182. Removed torrentMan->addDeltaDownloadLength().
  12183. (send): Added peer->updateUploadLength().
  12184. Removed peer->addPeerDownload().
  12185. Removed torrentMan->addDeltaUploadLength().
  12186. * src/main.cc
  12187. (timeoutSpecified): New variable.
  12188. (main): Set timeoutSpecified to false.
  12189. If the command-line option "--upload-limit" is specified, then
  12190. timeoutSpecified is set to true. This option will remain in the next
  12191. release, but be deprecated in the future release.
  12192. * src/TorrentRequestInfo.h
  12193. (TorrentRequestInfo): Removed const qualifier from op.
  12194. * src/PeerStat.h
  12195. (uploadSpeed): New variable.
  12196. (PeerStat): Added default value to cuid.
  12197. (calculateUploadSpeed): New function.
  12198. (updateUploadLength): New function.
  12199. (getMaxUploadSpeed): New function.
  12200. (getAvgUploadSpeed): New function.
  12201. (reset): Added uploadSpeed. Set status to IDLE.
  12202. * src/TorrentDownloadEngine.h
  12203. (cp): Declared as Time.
  12204. (sessionDownloadLengthArray): Removed.
  12205. (sessionUploadLengthArray): Removed.
  12206. (currentCp): Removed.
  12207. (lastCalcStat): New variable
  12208. (lastElapsed): Removed.
  12209. (sessionDownloadLength): Removed.
  12210. (calculateStat): New function.
  12211. * src/TorrentDownloadEngine.cc
  12212. (initStatistics): Removed lastElapsed, cp[],
  12213. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12214. currentCp, sessionDownloadLength.
  12215. Added cp.reset() and lastCalcStat.reset().
  12216. (calculateSpeed): Changed the name of the argument.
  12217. (calculateStatistics): Rewritten.
  12218. (calculateStat): New function.
  12219. * src/Peer.h
  12220. (PeerStat.h): Included.
  12221. (peerUpload): Removed.
  12222. (peerDownload): Removed.
  12223. (peerStat): New variable.
  12224. (sessionUploadLength): New variable.
  12225. (sessionDownloadLength): New variable.
  12226. (deltaUpload): Removed.
  12227. (deltaDownload): Removed.
  12228. (resetStatus): Made private.
  12229. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12230. Removed peerUpload, peerDownload.
  12231. (updateUploadLength): New function.
  12232. (addDeltaUpload): Removed.
  12233. (updateDownloadLength): New function.
  12234. (resetDeltaUpload): Removed.
  12235. (getDeltaUpload): Removed.
  12236. (addDeltaDownload): Removed.
  12237. (calculateUploadSpeed): New function.
  12238. (resetDeltaDownload): Removed.
  12239. (getDeltaDownload): Removed.
  12240. (calculateDownloadSpeed): New function.
  12241. (getSessionUploadLength): New function.
  12242. (getSessionDownloadLength): New function.
  12243. (activate): New function.
  12244. (deactivate): New function.
  12245. (addPeerUpload): Removed.
  12246. (setPeerUpload): Removed.
  12247. (getPeerUpload): Removed.
  12248. (addPeerDownload): Removed.
  12249. (setPeerDownload): Removed.
  12250. (getPeerDownload): Removed.
  12251. * src/Peer.cc
  12252. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12253. * src/MetalinkRequestInfo.h
  12254. (MetalinkRequestInfo): Removed const qualifier from op.
  12255. * src/RequestInfo.h
  12256. (op): Removed const qualifier.
  12257. (RequestInfo): Removed const qualifier from op.
  12258. * src/prefs.h
  12259. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12260. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12261. * src/PeerInteractionCommand.cc
  12262. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12263. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12264. * src/PeerInteraction.cc
  12265. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12266. * src/main.cc
  12267. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12268. Added the description of "--max-download-limit" option.
  12269. Removed the description of "--upload-limit" option.
  12270. Added the description of "--max-upload-limit" option.
  12271. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12272. Added "--max-download-limit" option and "--max-upload-limit" option.
  12273. Added the warning message if "--upload-limit" option is used.
  12274. * src/DownloadCommand.cc
  12275. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12276. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12277. To rewrite segment download mechanism for HTTP/FTP download.
  12278. Use BitfieldMan to manage segment download.
  12279. * src/HttpResponseCommand.h
  12280. (executeInternal): Pass the reference of segment.
  12281. * src/AbstractCommand.cc
  12282. (prepareForRetry): Call segmentMan->cancelSegment here.
  12283. (onAbort): Call segmentMan->cancelSegment here.
  12284. * src/HttpDownloadCommand.cc
  12285. (prepareForNextSegment): New function.
  12286. * src/DownloadEngineFactory.cc
  12287. (newConsoleEngine): Removed splitter.
  12288. (newTorrentConsoleEngine): Removed splitter.
  12289. * src/Request.h
  12290. (segment): Renamed from seg.
  12291. * src/FtpInitiateConnectionCommand.h
  12292. (executeInternal): Pass the reference of segment.
  12293. * src/AbstractCommand.h
  12294. (executeInternal): Pass the reference of segment.
  12295. * src/pref.h
  12296. (PREF_SEGMENT_SIZE): New definition.
  12297. * src/HttpProxyRequestCommand.h
  12298. (executeInternal): Pass the reference of segment.
  12299. * src/HttpResponseCommand.cc
  12300. (checkResponse): Allowed status 206 when a request range starts 0.
  12301. (handleDefaultEncoding): Rewritten the code related to Segment.
  12302. (handleOtherEncoding): Rewritten the code related to Segment.
  12303. * src/SegmentMan.h
  12304. (SegmentEntry): New class.
  12305. (SegmentEntries): New type definition.
  12306. (bitfield): New variable.
  12307. (usedSegmentEntries): New variable.
  12308. (onNullBitfield): New function.
  12309. (checkoutSegment): New function.
  12310. (segments): Removed.
  12311. (splitter): Removed.
  12312. (unregisterId): Removed.
  12313. (getSegment): New function(overload)
  12314. (getDownloadedSize): Removed.
  12315. (cancelSegment): New function.
  12316. (completeSegment): New function.
  12317. (initBitfield): New function.
  12318. (hasSegment): New function.
  12319. (getDownloadLength): New function.
  12320. * src/BitfieldMan.h
  12321. (getStartIndex): New function.
  12322. (getEndIndex): New function.
  12323. (getMissingUnusedIndex): New function(overload).
  12324. (getSparseMissingUnusedIndex): New function.
  12325. * src/BitfieldMan.cc
  12326. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12327. (getMissingUnusedIndex): New function(overload).
  12328. (Range): New class.
  12329. (getStartIndex): New function.
  12330. (getEndIndex): New function.
  12331. (getSparseMissingUnusedIndex): New function.
  12332. (isBitSetInternal): Return false if the given index is less than 0.
  12333. * src/HttpInitiateConnectionCommand.h
  12334. (executeInternal): Pass the reference of segment.
  12335. * src/FtpNegotiateCommand.h
  12336. (executeInternal): Pass the reference of segment.
  12337. * src/FtpNegotiateCommand.cc
  12338. (recvSize): Initialize bitfield here.
  12339. * src/FtpTunnelResponseCommand.h
  12340. (executeInternal): Pass the reference of segment.
  12341. * src/HttpConnection.cc
  12342. (createRequest): Rewritten range header processing.
  12343. * src/DownloadCommand.h
  12344. (executeInternal): Pass the reference of segment.
  12345. (prepareForRetry): Removed.
  12346. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12347. function.
  12348. * src/main.cc
  12349. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12350. * src/SegmentMan.cc
  12351. (SegmentMan): Added bitfield. Removed splitter.
  12352. (~SegmentMan): Added bitfield. Removed splitter.
  12353. (unregisterId): Removed.
  12354. (getSegment): Rewritten.
  12355. (updateSegment): Rewritten.
  12356. (save): Rewritten.
  12357. (read): Rewritten.
  12358. (finished): Rewritten.
  12359. (getDownloadedSize): Removed.
  12360. (initBitfield): New function.
  12361. (FindSegmentEntryByIndex): New function object.
  12362. (FindSegmentEntryByCuid): New function object.
  12363. (checkoutSegment): New function.
  12364. (onNullBitfield): New function.
  12365. (getSegment): New function(overload).
  12366. (CancelSegment): New function object.
  12367. (cancelSegment): New function.
  12368. (completeSegment): New function.
  12369. (hasSegment): New function.
  12370. (getDownloadLength): New function.
  12371. * src/FtpInitiateConnectionCommand.cc
  12372. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12373. * src/Segment.h: Rewritten.
  12374. * src/Segment.cc (operator<<): New function.
  12375. * src/HttpDownloadCommand.h
  12376. (prepareForNextSegment): New function.
  12377. * src/Request.cc
  12378. (resetUrl): Made segment null.
  12379. * src/DownloadEngine.cc
  12380. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12381. * src/HttpProxyRequestCommand.h
  12382. (executeInternal): Pass the reference of segment.
  12383. * src/DownloadCommand.cc
  12384. (executeInternal): Rewritten the code related to Segment.
  12385. (prepareForRetry): Removed.
  12386. (prepareForNextSegment): Rewritten.
  12387. * src/FtpTunnelResponseCommand.h
  12388. (executeInternal): Pass the reference of segment.
  12389. To add HTTP 1.1 persistent connection support(experimental)
  12390. * src/HttpRequestCommand.cc
  12391. (executeInternal): Disable keep alive if it is disabled by
  12392. configuration.
  12393. * src/Request.h
  12394. (keepAlive): New variable.
  12395. (isKeepAlive): New function.
  12396. (setKeepAlive): New function.
  12397. * src/pref.h
  12398. (PREF_HTTP_KEEP_ALIVE): New definition.
  12399. * src/HttpResponseCommand.cc
  12400. (executeInternal): Check the remote server supports keep alive.
  12401. * src/HttpConnection.cc
  12402. (createRequest): Send "Connection: close" only if keep alive is
  12403. disabled.
  12404. * src/main.cc
  12405. (main):
  12406. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12407. To add max download speed limit:
  12408. * src/pref.h
  12409. (PREF_MAX_SPEED_LIMIT): New definition.
  12410. * src/PeerInteractionCommand.cc
  12411. (executeInternal): Added max download speed limit. Not tested yet.
  12412. * src/SegmentMan.h
  12413. (PeerStats): New type definition.
  12414. (peerStats): New variable.
  12415. (registerPeerStat): New function.
  12416. (FindPeerStat): New function object.
  12417. (getPeerStat): New function.
  12418. (calculateDownloadSpeed): New function.
  12419. * src/SpeedCalc.h: New class.
  12420. * src/SpeedCalc.cc: New class.
  12421. * src/main.cc
  12422. (main):
  12423. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12424. download speed is not restricted).
  12425. * src/PeerStat.h: New class.
  12426. * src/SegmentMan.cc
  12427. (registerPeerStat): New function.
  12428. (calculateDownloadSpeed): New function.
  12429. * src/DownloadCommand.cc
  12430. (STARTUP_IDLE_TIME): New definition.
  12431. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12432. downloadStart.
  12433. (~DownloadCommand): Call peerStat->downloadStop.
  12434. (executeInternal): Added download speed limitter. Rewritten lowest
  12435. speed limitter.
  12436. * src/HttpConnection.cc
  12437. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12438. * src/AbstractCommand.cc
  12439. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12440. Added hostname to the error message.
  12441. * src/ConsoleDownloadEngine.cc
  12442. (calculateStatistics): Initialize psize with dlSize.
  12443. * src/PieceMessage.cc
  12444. (receivedAction): Do not call peerInteraction->abortPiece here.
  12445. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12446. * src/BitfieldMan.h
  12447. (clearAllUseBit): New function.
  12448. (setAllUseBit): New function.
  12449. * src/BitfieldMan.cc
  12450. (clearAllBit): Do not clear useBitfield here.
  12451. (clearAllUseBit): New function.
  12452. (setAllUseBit): New function.
  12453. * src/Piece.cc
  12454. (clearAllBlock): Call bitfield->clearAllUseBit().
  12455. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12456. To make filename URL-decoded:
  12457. * src/HttpResponseCommand.h: Updated doc.
  12458. * src/HttpResponseCommand.cc
  12459. (determinFilename): Made filename URL-decoded.
  12460. * src/FtpInitiateConnectionCommand.cc
  12461. (executeInternal): Made filename URL-decoded.
  12462. * src/Util.h (urldecode): New function.
  12463. * src/Util.cc (urldecode): New function.
  12464. To fix a bug that caused assertion failure in ares_strerror:
  12465. * src/NameResolver.cc (callback): Fixed the bug.
  12466. * Release 0.7.3
  12467. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12468. To add --seed-time and --seed-ratio command-line option:
  12469. * src/Option.h (getAsDouble): New function.
  12470. * src/Option.cc (getAsDouble): New function.
  12471. * src/SeedCheckCommand.h: New class.
  12472. * src/SeedCheckCommand.cc: New class.
  12473. * src/DownloadEngineFactory.cc
  12474. (SeedCheckCommand.h): Included.
  12475. (UnionSeedCriteria.h): Included.
  12476. (TimeSeedCriteria.h): Included.
  12477. (ShareRatioSeedCriteria.h): Included.
  12478. (newTorrentConsoleEngine): Added the processing of seed option.
  12479. * src/SeedCriteria.h: New class.
  12480. * src/ShareRatioSeedCriteria.h: New class.
  12481. * src/TimeSeedCriteria.h: New class.
  12482. * src/UnionSeedCriteria.h: New class.
  12483. * src/prefs.h
  12484. (PREF_SEED_TIME): New definition.
  12485. (PREF_SEED_RATIO): New definition.
  12486. * src/main.cc
  12487. (showUsage): Added --seed-time and --seed-ratio option.
  12488. (main): Added --seed-time and --seed-ratio option.
  12489. Made default log file name "/dev/null".
  12490. * src/SharedHandle.h
  12491. (SharedHandle): Copy constructor. Made it assignable from the
  12492. SharedHandle of the subclasses.
  12493. (operator=): Made it assignable from the SharedHandle of the
  12494. subclasses.
  12495. (getRefCount): New function.
  12496. To add notice log level and the switch to write log to stdout. This
  12497. switch is configurable per log level.
  12498. * src/Logger.h
  12499. (notice): New function.
  12500. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12501. constant.
  12502. * src/LogFactory.cc
  12503. (getInstance): The use of NullLogger was removed. A log message with
  12504. notice log level was made written to stdout along with log file.
  12505. * src/NullLogger.h
  12506. (notice): New function.
  12507. * src/SimpleLogger.h
  12508. (writeHeader): Added the 'file' argument.
  12509. (writeLog): Added the 'file' argument.
  12510. (writeFile): New function.
  12511. (stdoutField): New variable.
  12512. (SimpleLogger): Removed the default constructor.
  12513. (SimpleLogger): Made the default value of logfile 0.
  12514. (debug): Added 'virtual' keyword.
  12515. (info): Added 'virtual' keyword.
  12516. (warn): Added 'virtual' keyword.
  12517. (error): Added 'virtual' keyword.
  12518. (notice): New function.
  12519. (setStdout): New function.
  12520. * src/SimpleLogger.cc
  12521. (WRITE_LOG): Replaced writeLog with writeFile.
  12522. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12523. (SimpleLogger): Removed the default constructor.
  12524. (setStdout): New function.
  12525. (writeLog): Added the handling of NOTICE log level.
  12526. (writeFile): New function.
  12527. (notice): New function.
  12528. * src/TorrentMan.h: Updated doc.
  12529. * src/BitfieldMan.h: Updated doc.
  12530. * src/TrackerWatcherCommand.cc
  12531. (execute): Return true if error occurred in the request to the tracker
  12532. and halt is requested.
  12533. * src/TrackerUpdateCommand.cc
  12534. (execute): Return true if error occurred in the request to the tracker
  12535. and halt is requested.
  12536. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12537. DownloadEngine:
  12538. * src/TorrentConsoleDownloadEngine.h
  12539. (onSelectiveDownloadingCompletes): Removed.
  12540. * src/TorrentConsoleDownloadEngine.cc
  12541. (onSelectiveDownloadingCompletes): Removed.
  12542. * src/TorrentDownloadEngine.h
  12543. (onEndOfRun): Added 'virtual' keyword.
  12544. (afterEachIteration): Removed.
  12545. (onSelectiveDownloadingCompletes): Removed.
  12546. * src/TorrentDownloadEngine.cc
  12547. (onEndOfRun): Removed filenameFixed.
  12548. (afterEachIteration): Removed.
  12549. * src/TorrentMan.cc
  12550. (completePiece): Call onDownloadComplete here.
  12551. (onDownloadComplete): Added 2 log messages.
  12552. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12553. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12554. * src/NameResolver.h: Added the prototype declaration of callback().
  12555. To support c-ares library:
  12556. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12557. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12558. * src/FtpInitiateConnectionCommand.h:
  12559. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12560. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12561. * src/HttpInitiateConnectionCommand.h:
  12562. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12563. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12564. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12565. #1542285 by tizianomueller)
  12566. * src/HttpInitiateConnectionCommand.cc:
  12567. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12568. * src/FtpInitiateConnectionCommand.cc:
  12569. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12570. * src/DownloadEngine.h:
  12571. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12572. * src/DownloadEngine.cc:
  12573. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12574. To fix the bug that causes compilation failure with metalink-support
  12575. disabled(bug#1543587):
  12576. * src/main.cc: Fixed with the patch by tizianomueller.
  12577. * Release 0.7.2
  12578. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12579. * src/main.cc
  12580. (main): Added a message to inform users that aria2 is starting to
  12581. verify checksum.
  12582. * src/RequestInfo.cc
  12583. (printDownloadAbortMessage): Added a message to inform users that
  12584. transfer can be resumed.
  12585. * src/FeatureConfig.cc
  12586. (FEATURE_ASYNC_DNS): New definition.
  12587. (FeatureConfig): Added aysnc DNS entry.
  12588. To replace CommandUuid with Command* in SocketEntry and
  12589. NameResolverEntry:
  12590. * src/DownloadEngine.h
  12591. (CommandUuids): Removed.
  12592. (SocketEntry::commandUuid): Removed.
  12593. (SocketEntry::command): New variable.
  12594. (SocketEntry::SocketEntry): Updated.
  12595. (SocketEntry::operator==): Updated.
  12596. (NameResolverEntry::commandUuid): Removed.
  12597. (NameResolverEntry::command): New variable.
  12598. (NameResolverEntry::NameResolverEntry): Updated.
  12599. (NameResolverEntry::operator==): Updated.
  12600. (waitData): Changed the argument type.
  12601. (addSocketForReadCheck): Changed the argument type.
  12602. (deleteSocketForReadCheck): Changed the argument type.
  12603. (addSocketForWriteCheck): Changed the argument type.
  12604. (deleteSocketForWriteCheck): Changed the argument type.
  12605. (addNameResolverCheck): Changed the argument type.
  12606. (deleteNameResolverCheck): Changed the argument type.
  12607. * src/DownloadEngine.cc
  12608. (FindCommand): Removed.
  12609. (run): Removed activeUuid. Added activeCommands instead.
  12610. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12611. (AccumulateActiveCommand): New function object.
  12612. (waitData): Use AccumulateActiveCommand.
  12613. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12614. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12615. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12616. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12617. (addNameResolverCheck): Use Command instead of CommandUuid.
  12618. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12619. * src/AbstractCommand.cc
  12620. (disableReadCheckSocket): Updated according to the changes in
  12621. DownloadEngine.
  12622. (setReadCheckSocket): Updated according to the changes in
  12623. DownloadEngine.
  12624. (disableWriteCheckSocket): Updated according to the changes in
  12625. DownloadEngine.
  12626. (setWriteCheckSocket): Updated according to the changes in
  12627. DownloadEngine.
  12628. (setNameResolverCheck): Updated according to the changes in
  12629. DownloadEngine.
  12630. (disableNameResolverCheck): Updated according to the changes in
  12631. DownloadEngine.
  12632. * src/AbstractCommand.cc
  12633. (disableReadCheckSocket): Updated according to the changes in
  12634. DownloadEngine.
  12635. (setReadCheckSocket): Updated according to the changes in
  12636. DownloadEngine.
  12637. (disableWriteCheckSocket): Updated according to the changes in
  12638. DownloadEngine.
  12639. (setWriteCheckSocket): Updated according to the changes in
  12640. DownloadEngine.
  12641. * release 0.7.1
  12642. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12643. To handle the case where some BitTorrent tracker requires all letters
  12644. except for [A-Za-z0-9] is URL encoded.
  12645. * src/Util.h
  12646. (torrentUrlencode): New function.
  12647. * src/Util.cc
  12648. (ctype.h): Included.
  12649. (torrentUrlencode): New function.
  12650. * src/TrackerWatcherCommand.cc
  12651. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12652. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12653. To add asynchronous DNS support(libares):
  12654. * src/AbstractCommand.h
  12655. (setNameResolverCheck): New function.
  12656. (disableNameResolverCheck): New function
  12657. (resolveHostname): New function.
  12658. * src/AbstractCommand.cc
  12659. (setNameResolverCheck): New function.
  12660. (disableNameResolverCheck): New function
  12661. (resolveHostname): New function.
  12662. * src/FtpInitiateConnectionCommand.h
  12663. (nameResolver): New function.
  12664. * src/FtpInitiateConnectionCommand.cc
  12665. (Util.h): Included.
  12666. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  12667. disableWriteCheckSocket.
  12668. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  12669. (executeInternal): Added async DNS support.
  12670. * src/HttpInitiateConnectionCommand.h
  12671. (nameResolver): New function.
  12672. * src/HttpInitiateConnectionCommand.cc
  12673. (DlRetryEx.h): Included.
  12674. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  12675. disableWriteCheckSocket.
  12676. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  12677. (executeInternal): Added async DNS support.
  12678. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  12679. by extern "C" declaration.
  12680. * src/NameResolver.cc: New class.
  12681. * src/Util.h:
  12682. (isNumberAndDotsNotation): New function
  12683. * src/Util.cc
  12684. (isNumberAndDotsNotation): New function.
  12685. * src/DownloadEngine.h
  12686. (NameResolver.h): Included.
  12687. (NameResolverEntry): New class.
  12688. (NameResolverEntries): New type definition.
  12689. (addNameResolverCheck): New function.
  12690. (deleteNameResolverCheck): New function.
  12691. * src/DownloadEngine.cc
  12692. (run): Initialize cp with 0.
  12693. (SetDescriptor::operator()): Added for NameResolverEntry.
  12694. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  12695. (waitData): Check nameResolver entries.
  12696. (updateFdSet): Update fds in nameResolver entries.
  12697. (addNameResolverCheck): New function.
  12698. (deleteNameResolverCheck): new function.
  12699. * src/PeerInteractionCommand.cc
  12700. (executeInternal): Fixed wrong socket handling.
  12701. * src/main.cc
  12702. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  12703. * src/Util.cc
  12704. (fileChecksum): Removed the call to ctx.digestReset().
  12705. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12706. * po/ru.po: Azamat sent me Russian translation.
  12707. * src/FtpNegotiateCommand.cc
  12708. (recvGreeting): Call disableWriteCheckSocket just after
  12709. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  12710. (recvRetr): Recognized status code 125 as a acceptable response code.
  12711. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  12712. case-insesitive filesystem(BUG#1531057).
  12713. * src/Time.h: Renamed as TimeA2.h.
  12714. * src/Time.cc: Renamed as TimeA2.cc.
  12715. * src/TimeA2.h: New class.
  12716. * src/TimeA2.cc: New class.
  12717. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12718. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12719. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12720. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12721. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12722. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12723. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12724. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12725. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12726. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12727. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12728. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12729. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12730. * release 0.7.0
  12731. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12732. * src/PeerChokeCommand.h
  12733. (PeerChokeCommand): Rearranged the arguments.
  12734. * src/PeerChokeCommand.cc
  12735. (PeerChokeCommand): Rearranged the arguments.
  12736. * src/MetalinkEntry.h
  12737. (Checksum.h): Included.
  12738. (md5): Removed.
  12739. (sha1): Removed.
  12740. (checksum): New variable.
  12741. (operator=): Updated.
  12742. (check): Removed.
  12743. * src/prefs.h
  12744. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12745. (PREF_FOLLOW_TORRENT): New definition.
  12746. (PREF_SELECT_FILE): New definition.
  12747. (PREF_FOLLOW_METALINK): New definition.
  12748. * src/MetalinkResource.h
  12749. (TYPE_HTTPS): Added to enum TYPE.
  12750. * src/TorrentMan.cc
  12751. (~TorrentMan): Rewritten.
  12752. * src/MultiDiskWriter.cc
  12753. (MultiDiskAdaptor): Updated according to the changes in
  12754. MessageDigestContext.
  12755. (~MultiDiskAdaptor): Updated according to the changes in
  12756. MessageDigestContext.
  12757. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12758. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12759. * src/Util.h
  12760. (fileChecksum): Updated according to the changes in
  12761. MessageDigestContext.
  12762. * src/Util.cc
  12763. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12764. (fileChecksum): Updated according to the changes in
  12765. MessageDigestContext.
  12766. * src/messageDigest.h: Rewritten.
  12767. * src/MetalinkEntry.cc
  12768. (check): Removed.
  12769. (Supported): Updated.
  12770. (dropUnsupportedResource): Fixed a memory leak.
  12771. * src/ShaVisitor.cc
  12772. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12773. (~ShaVisitor): Updated according to the changes in
  12774. MessageDigestContext.
  12775. (visit): Updated according to the changes in MessageDigestContext.
  12776. * src/main.cc
  12777. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12778. command-line option added.
  12779. * src/DownloadEngine.h
  12780. (SocketEntry): New class.
  12781. (SocketEntries): New definition.
  12782. (PairFind): Removed.
  12783. (SockCmdMap): Removed.
  12784. * src/DownloadEngine.cc
  12785. (DownloadEngine): Rewritten.
  12786. (~DownloadEngine): Rewritten.
  12787. (run): Renamed activeCommandUuids as activeUuids.
  12788. (SetDescriptor): Rewritten.
  12789. (AccumulateActiveCommandUuid): Removed.
  12790. (AccumulateActiveUuid): New function object.
  12791. (waitData): Rewritten.
  12792. (updateFdSet): Rewritten.
  12793. (addSocket): Rewritten.
  12794. (deleteSocket): Rewritten.
  12795. (addSocketForReadCheck): Rewritten.
  12796. (deleteSocketForReadCheck): Rewritten.
  12797. (addSocketForWriteCheck): Rewritten.
  12798. (deleteSocketForWriteCheck): Rewritten.
  12799. * src/Xml2MetalinkProcessor.cc
  12800. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12801. * src/DownloadCommand.cc
  12802. (executeInternal): Added the check routine for lowest speed limit.
  12803. * src/AbstractDiskWriter.cc
  12804. (AbstractDiskWriter): Updated according to the changes in
  12805. MessageDigestContext.
  12806. (~AbstractDiskWriter): Updated according to the changes in
  12807. MessageDigestContext.
  12808. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12809. * src/RequestInfo.h: New class.
  12810. * src/UrlRequestInfo.h: New class.
  12811. * src/UrlRequestInfo.cc: New class.
  12812. * src/TorrentRequestInfo.h: New class.
  12813. * src/TorrentRequestInfo.cc: New class.
  12814. * src/MetalinkRequestInfo.h: New class.
  12815. * src/MetalinkRequestInfo.cc: New class.
  12816. * src/Checksum.h: New class.
  12817. * src/DownloadEngineFactory.h: New class.
  12818. * src/DownloadEngineFactory.cc: New class.
  12819. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12820. * src/Option.h
  12821. (getAsBool): New function.
  12822. * src/Option.cc
  12823. (prefs.h): Included.
  12824. (defined): 0-length value is now recognized as undefined.
  12825. (getAsInt): Rewritten.
  12826. (getAsLLInt): Rewritten.
  12827. (getAsBool): New function.
  12828. * src/FeatureConfig.h: Rewritten.
  12829. * src/FeatureConfig.cc: Rewritten.
  12830. * src/prefs.h
  12831. (PREF_STDOUT_LOG): New definition.
  12832. (PREF_LOG): New definition.
  12833. (PREF_DIR): New definition.
  12834. (PREF_OUT): New definition.
  12835. (PREF_SPLIT): New definition.
  12836. (PREF_DAEMON): New definition.
  12837. (PREF_REFERER): New definition.
  12838. (PREF_TORRENT_FILE): New definition.
  12839. (PREF_LISTEN_PORT): New definition.
  12840. (PREF_METALINK_FILE): New definition.
  12841. (PREF_METALINK_VERSION): New definition.
  12842. (PREF_METALINK_LANGUAGE): New definition.
  12843. (PREF_METALINK_OS): New definition.
  12844. (PREF_METALINK_SERVERS): New definition.
  12845. * src/main.cc
  12846. (main): Following command-line parameters are now put into Option
  12847. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12848. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12849. metalinkLanguage, metalinkOs, metalinkServers
  12850. To fix the bug that aria2 can not handle http response header properly.
  12851. * src/HttpHeader.cc
  12852. (put): Made name lowercased.
  12853. (defined): Made name lowercased.
  12854. (getFirst): Made name lowercased.
  12855. (get): Made name lowercased.
  12856. (getFirstAsInt): Rewritten.
  12857. (getFirstAsLLInt): Rewritten.
  12858. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12859. * src/TorrentMan.h:
  12860. (advertisePiece): Updated doc.
  12861. (getAdvertisedPieceIndexes): Updated doc.
  12862. (removeAdvertisedPiece); New function.
  12863. * src/TorrentMan.cc
  12864. (FindElapsedHave): New function object.
  12865. (removeAdvertisedPiece): New function.
  12866. * src/HaveEraseCommand.h: New class.
  12867. * src/HaveEraseCommand.cc: New class.
  12868. * src/FeatureConfig.h: New class.
  12869. * src/FeatureConfig.cc: New class.
  12870. * src/Request.h
  12871. (defaultPorts): Removed.
  12872. * src/Request.cc
  12873. (FeatureConfig.h): Included.
  12874. (Request): Removed the statements related to defaultPorts.
  12875. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12876. A default port number is now retrieved from FeatureConfig.
  12877. * src/main.cc
  12878. (HaveEraseCommand.h): Included.
  12879. (showVersion): Added the output of feature list.
  12880. (main): Added HaveEraseCommand to command queue in BitTorrent
  12881. downloading.
  12882. * src/PeerInteractionCommand.h
  12883. (chokeCheckPoint): Commented out.
  12884. (periodicExecPoint): New variable.
  12885. * src/PeerInteractionCommand.cc
  12886. (executeInternal): Following methods are now called in at least every
  12887. 0.5 seconds to reduce CPU usage:
  12888. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12889. checkHave(), sendKeepAlive().
  12890. (checkLongTimePeerChoking): Commented out.
  12891. * src/BitfieldMan.h
  12892. (getNthBitIndex): Changed the method signature.
  12893. (getMissingIndexRandomly): Changed the method signature.
  12894. * src/BitfieldMan.cc
  12895. (getNthBitIndex): Rewritten
  12896. (getMissingIndexRandomly): Rewritten.
  12897. (hasMissingPiece): Rewritten.
  12898. (getMissingIndex): Refactored.
  12899. (getMissingUnusedIndex); Refactored.
  12900. (getMissingIndex): Refactored.
  12901. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12902. * src/PeerMessage.h
  12903. (Piece.h): Included.
  12904. (SharedHandle.h): Included.
  12905. (invalidate): New variable.
  12906. (uploading): New variable.
  12907. (isInvalidate): New function.
  12908. (isUploading): New function.
  12909. (onPush): New function.
  12910. (onChoked): New function.
  12911. (onCanceled): New function.
  12912. (onAbortPiece): New function.
  12913. (PeerMessageHandle): New type definition.
  12914. * src/PeerMessage.cc
  12915. (PeerMessage): Added the initialization for invalidate and uploading.
  12916. * src/CancelMessage.h
  12917. (CancelMessage): Rewritten.
  12918. * src/RejectMessage.h
  12919. (RejectMessage): Rewritten.
  12920. * src/Metalinker.h
  12921. (operator=): Defined.
  12922. * src/MetaEntry.h
  12923. (operator=): Defined.
  12924. * src/MetalinkResource.h
  12925. (operator=): Defined.
  12926. * src/AllowedFastMessage.h
  12927. (AllowedFastMessage): Rewritten.
  12928. * src/HandshakeMessage.h
  12929. (HandshakeMessage): New function(overload).
  12930. * src/HandshakeMessage.cc
  12931. (HandshakeMessage): Rewritten.
  12932. (init): New function.
  12933. * src/HaveMessage.h
  12934. (HaveMessage): Rewritten.
  12935. * src/Time.h
  12936. (operator=): Defined the function body here.
  12937. * src/Time.cc
  12938. (operator=): Removed.
  12939. * src/SocketCore.h
  12940. (operator==): Defined here.
  12941. (operator!=): Defined here.
  12942. (operator<): Defined here.
  12943. * src/SocketCore.cc
  12944. (operator==): Removed.
  12945. (operator<): Removed.
  12946. * src/BitfieldMan.h
  12947. (operator=): Defined the function body here.
  12948. * src/BitfieldMan.cc
  12949. (operator=): Removed.
  12950. * src/TorrentMan.h
  12951. (deleteErrorPeer): Removed.
  12952. (deleteUnusedPeer); New function.
  12953. * src/TorrentMan.cc
  12954. (addPeer): Call deleteUnusedPeer.
  12955. (deleteErrorPeer): Removed.
  12956. (deleteUnusedPeer): New function.
  12957. * src/PeerAbstractCommand.h
  12958. (setNoCheck): New function.
  12959. (noCheck): New variable.
  12960. * src/PeerAbstractCommand.cc
  12961. (PeerAbstractCommand): Added the initialization of noCheck.
  12962. (execute): Added a check for noCheck.
  12963. (setNoCheck): New function.
  12964. * src/Util.h
  12965. (stdio.h): Included.
  12966. * src/Util.cc
  12967. (unistd.h): Included.
  12968. * src/DefaultDiskWriter.cc
  12969. (unistd.h): Included.
  12970. * src/Peer.h
  12971. (operator==): Defined the function body here.
  12972. (operator!=): Defined the function body here.
  12973. * src/Peer.cc
  12974. (operator==): Removed.
  12975. (operator!=): Removed.
  12976. * src/Piece.h
  12977. (Piece): Defined the function body here(copy constructor).
  12978. (operator=): Defined the function body here.
  12979. (operator==): Defined the function body here.
  12980. * src/Piece.cc
  12981. (Piece): Removed(copy constructor).
  12982. (operator=): Removed.
  12983. (operator==): Removed.
  12984. * src/PeerMessageUtil.h
  12985. (ChokeMessage.h): Removed.
  12986. (UnchokeMessage.h): Removed.
  12987. (InterestedMessage.h): Removed.
  12988. (NotInterestedMessage.h): Removed.
  12989. (HaveMessage.h): Removed.
  12990. (BitfieldMessage.h): Removed.
  12991. (RequestMessage.h): Removed.
  12992. (CancelMessage.h): Removed.
  12993. (PieceMessage.h): Removed.
  12994. (HandshakeMessage.h): Removed.
  12995. (KeepAliveMessage.h): Removed.
  12996. (PortMessage.h): Removed.
  12997. (HaveAllMessage.h): Removed.
  12998. (HaveNoneMessage.h): Removed.
  12999. (PeerConnection.h): Removed.
  13000. (HandshakeMessage.h): Included.
  13001. * src/BitfieldMessage.h
  13002. (init): New function.
  13003. (BitfieldMessage): Rewritten.
  13004. (BitfieldMessage): New function(overload).
  13005. * src/RequestSlot.h
  13006. (operator=): Defined the function body here.
  13007. (operator==): Defined the function body here.
  13008. * src/RequestSlot.cc
  13009. (operator=): Removed.
  13010. (operator==): Removed.
  13011. To remove the dependency on the PeerMessage subclass from
  13012. PeerInteraction:
  13013. * src/PeerMessageFactory.h: New class.
  13014. * src/PeerMessageFactory.cc: New class.
  13015. * src/SimplePeerMessage.cc
  13016. (send): If invalidate is true then do nothing.
  13017. * src/PeerInteractionCommand.cc
  13018. (HandshakeMessage.h): Included.
  13019. (KeepAliveMessage.h): Included.
  13020. (ChokeMessage.h): Included.
  13021. (UnchokeMessage.h): Included.
  13022. (HaveMessage.h): Included.
  13023. (executeInternal): Call setNoCheck().
  13024. Removed setWriteCheckSocket(socket).
  13025. * src/PeerInteraction.h
  13026. (ChokeMessage.h): Removed.
  13027. (UnchokeMessage.h): Removed.
  13028. (InterestedMessage.h): Removed.
  13029. (NotInterestedMessage.h): Removed.
  13030. (HaveMessage.h): Removed.
  13031. (BitfieldMessage.h): Removed.
  13032. (RequestMessage.h): Removed.
  13033. (CancelMessage.h): Removed.
  13034. (PieceMessage.h): Removed.
  13035. (HandshakeMessage.h): Removed.
  13036. (KeepAliveMessage.h): Removed.
  13037. (PortMessage.h): Removed.
  13038. (HaveAllMessage.h): Removed.
  13039. (HaveNoneMessage.h): Removed.
  13040. (RejectMessage.h): Removed.
  13041. (AllowedFastMessage.h): Removed.
  13042. (SuggestPieceMessage.h): Removed.
  13043. (PeerMessageFactory.h): Included.
  13044. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13045. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13046. (PeerMessageFactory): New variable.
  13047. (createPeerMessage): Removed.
  13048. (createHandshakeMessage): Removed.
  13049. (setPeerMessageCommonProperty): Removed.
  13050. (addRequestSlot): New function.
  13051. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13052. (getPeerMessageFactory): New function.
  13053. (createRequestMessage): Removed.
  13054. (createCancelMessage): Removed.
  13055. (createPieceMessage): Removed.
  13056. (createHaveMessage): Removed.
  13057. (createChokeMessage): Removed.
  13058. (createUnchokeMessage): Removed.
  13059. (createInterestedMessage): Removed.
  13060. (createNotInterestedMessage): Removed.
  13061. (createBitfieldMessage): Removed.
  13062. (createKeepAliveMessage): Removed.
  13063. (createHaveAllMessage): Removed.
  13064. (createHaveNoneMessage): Removed.
  13065. (createRejectMessage): Removed.
  13066. (createAllowedFastMessage): Removed.
  13067. * src/PeerInteraction.cc
  13068. (PeerInteraction): Allocate PeerMessageFactory here.
  13069. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13070. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13071. PieceMessage::ID.
  13072. (addMessage): Simplified by using PeerMessage::onPush().
  13073. (addRequestSlot): New function.
  13074. (rejectAllPieceMessageInQueue): Simplified by using
  13075. PeerMessage::onChoked().
  13076. (rejectPieceMessageInQueue): Simplified by using
  13077. PeerMessage::onCanceled().
  13078. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13079. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13080. (createHandshakeMessage): Removed.
  13081. (createPeerMessage): Removed.
  13082. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13083. (setPeerMessageCommonProperty): Removed.
  13084. (createRequestMessage): Removed.
  13085. (createCancelMessage): Removed.
  13086. (createPieceMessage): Removed.
  13087. (createHaveMessage): Removed.
  13088. (createChokeMessage): Removed.
  13089. (createUnchokeMessage): Removed.
  13090. (createInterestedMessage): Removed.
  13091. (createNotInterestedMessage): Removed.
  13092. (createBitfieldMessage): Removed.
  13093. (createKeepAliveMessage): Removed.
  13094. (createHaveAllMessage): Removed.
  13095. (createHaveNoneMessage): Removed.
  13096. (createRejectMessage): Removed.
  13097. (createAllowedFastMessage): Removed.
  13098. * src/PieceMessage.h
  13099. (createRejectMessage): New function.
  13100. (PieceMessage): Rewritten.
  13101. (onChoked): New function.
  13102. (onCanceled): New function.
  13103. * src/PieceMessage.cc
  13104. (send): If invalidate is true then do nothing, just return.
  13105. (createRejectMessage): New function.
  13106. (onChoked): New function.
  13107. (onCanceled): New function.
  13108. * src/RequestMessage.h
  13109. (RequestMessage): Rewritten.
  13110. (onPush): New function.
  13111. (onAbortPiece): New function.
  13112. * src/RequestMessage.cc
  13113. (onPush): New function.
  13114. (onAbortPiece): New function.
  13115. Update fd_set when a socket is added or deleted in order to improve
  13116. performance:
  13117. * src/DownloadEngine.h
  13118. (rfdset): New variable.
  13119. (wfdset): New variable.
  13120. (updateFdSet): New function.
  13121. * src/DownloadEngine.cc
  13122. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13123. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13124. (waitData): Copy rfdset and wfdset.
  13125. (updateFdSet): New function.
  13126. (addSocket): Call updateFdSet.
  13127. (deleteSocket): Call updateFdSet.
  13128. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13129. To add the support for Metalink3.0 backward compatible links:
  13130. * src/Request.h
  13131. (SAFE_CHARS): Added '#'.
  13132. (METALINK_MARK): New definition.
  13133. * src/Request.cc
  13134. (parseUrl): Added the support for Metalink3.0 backward compatible
  13135. links.
  13136. etc
  13137. * src/PeerInteraction.cc
  13138. (MsgPushBack): Removed.
  13139. (sendMessages): Use STL copy and back_inserter.
  13140. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13141. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13142. * src/TorrentMan.h
  13143. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13144. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13145. * src/SharedHandle.h: New class.
  13146. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13147. * src/HttpResponseCommand.h
  13148. (HttpResponseCommand): Wrapped Socket.
  13149. * src/SocketCore.h
  13150. (operator==): New function.
  13151. (operator!=): New function.
  13152. (operator<): New function.
  13153. (getSockfd): New function.
  13154. (isOpen): New function.
  13155. (writeData): New function.
  13156. * src/SocketCore.cc
  13157. (operator==): New function.
  13158. (operator!=): New function.
  13159. (operator<): New function.
  13160. * src/AbstractCommand.h
  13161. (socket): Changed its type to SocketHandle.
  13162. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13163. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13164. (disableReadCheckSocket): New function.
  13165. (disableWriteCheckSocket): New function.
  13166. (readCheckTarget): Changed its type to SocketHandle.
  13167. (writeCheckTarget): Changed its type to SocketHandle.
  13168. (AbstractCommand): Replaced Socket with SocketHandle.
  13169. * src/AbstractCommand.cc
  13170. (AbstractCommand): Replaced Socket with SocketHandle.
  13171. (~AbstractCommand): Removed the deallocation for Socket object.
  13172. (disableReadCheckSocket): New function.
  13173. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13174. (disableWriteCheckSocket): New function.
  13175. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13176. * src/HttpDownloadCommand.cc
  13177. (DownloadCommand): Replaced Socket with SocketHandle.
  13178. * src/PeerAbstractCommand.h
  13179. (socket): Changed its type to SocketHandle.
  13180. (peer): Changed its type to PeerHandle.
  13181. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13182. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13183. (disableReadCheckSocket): New function.
  13184. (disableWriteCheckSocket): New function.
  13185. (readCheckTarget): Changed its type to SocketHandle.
  13186. (writeCheckTarget): Changed its type to SocketHandle.
  13187. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13188. Replaced Peer with PeerHandle.
  13189. * src/HttpRequestCommand.cc
  13190. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13191. Use disableReadCheckSocket.
  13192. * src/PeerInitiateConnectionCommand.h
  13193. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13194. * src/PeerChokeCommand.cc
  13195. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13196. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13197. (execute): Use PeerHandle.
  13198. * src/PeerConnection.h
  13199. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13200. (socket): Changed its type to SocketHandle.
  13201. (PeerConnection): Replaced Socket with SocketHandle.
  13202. * src/PeerConnection.cc
  13203. (PeerConnection): Replaced Socket with SocketHandle.
  13204. * src/PeerInteractionCommand.h
  13205. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13206. Replaced Peer with PeerHandle.
  13207. * src/PeerInteractionCommand.cc
  13208. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13209. Replaced Peer with PeerHandle.
  13210. (executeInternal): Use disableWriteCheckSocket.
  13211. Use HandshakeMessageHandle.
  13212. (receiveMessages): Use PeerMessageHandle.
  13213. (prepareForNextPeer): Use PeerHandle.
  13214. * src/HttpProxyRequestCommand.h
  13215. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13216. * src/HttpResponseCommand.cc
  13217. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13218. * src/TorrentMan.cc
  13219. (nullPeer): Added external reference.
  13220. (~TorrentMan): Removed the deallocation of the elements of peers.
  13221. (addPeer): Rewritten.
  13222. (isPeerAvailable): Use nullPeer.
  13223. (deleteOldpeers): Replaced with deleteErrorPeer.
  13224. (deleteErrorPeer): New function.
  13225. (getPeer): Use PeerHandle and nullPeer.
  13226. (hasMissingPiece): Replaced Peer with PeerHandle.
  13227. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13228. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13229. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13230. (getMissingPiece): Replaced Peer with PeerHandle.
  13231. * src/FtpNegotiateCommand.cc
  13232. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13233. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13234. (recvGreeting): Use disableWriteCheckSocket.
  13235. (recvPasv): Removed the allocation of Socket.
  13236. Use disableReadCheckSocket.
  13237. (sendRestPasv): Use disableWriteCheckSocket.
  13238. (recvRetr): Changed assertion.
  13239. * src/PeerInteraction.h
  13240. (SharedHandle.h): Included SharedHandle.h.
  13241. (PeerMessageHandle): New type definition.
  13242. (HandshakeMessageHandle): New type definition.
  13243. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13244. (peer): Changed its type to PeerHandle.
  13245. (createHandshakeMessage): Replaced HandshakeMessage with
  13246. HandshakeMessageHandle.
  13247. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13248. (PeerInteraction): Replaced Peer with PeerHandle.
  13249. Replaced Socket with SocketHandle.
  13250. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13251. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13252. (receiveHandshake): Replaced HandshakeMessage with
  13253. HandshakeMessageHandle.
  13254. * src/PeerInteraction.cc
  13255. (PeerInteraction): Replaced Peer with PeerHandle.
  13256. Replaced Socket with SocketHandle.
  13257. (~PeerInteraction): Removed the deallocation of the elements of
  13258. messageQueue.
  13259. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13260. (isSendingMessageInProgress): Replaced PeerMessage with
  13261. PeerMessageHandle.
  13262. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13263. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13264. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13265. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13266. (abortPiece): Use PeerMessageHandle.
  13267. (receiveHandshake): Replaced HandshakeMessage with
  13268. HandshakeMessageHandle. Removed try-catch block.
  13269. (createHandshakeMessage): Replaced HandshakeMessage with
  13270. HandshakeMessageHandle.
  13271. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13272. Removed try-catch block.
  13273. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13274. * src/HttpProxyResponseCommand.cc
  13275. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13276. * src/FtpTunnelResponseCommand.h
  13277. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13278. * src/HttpConnection.cc
  13279. (HttpConnection): Replaced Socket with SocketHandle.
  13280. * src/PeerAbstractCommand.cc
  13281. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13282. (~PeerAbstractCommand): Removed the deallocation of socket.
  13283. Use disableReadCheckSocket, disableWriteCheckSocket.
  13284. (disableReadCheckSocket): New function.
  13285. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13286. (disableWriteCheckSocket): New function.
  13287. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13288. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13289. * src/FtpTunnelRequestCommand.cc
  13290. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13291. (~FtpTunnelRequestCommand): Corrected indentation.
  13292. * src/DownloadCommand.h
  13293. (DownloadCommand): Replaced Socket with SocketHandle.
  13294. * src/PeerListenCommand.cc
  13295. (PeerListenCommand): Removed the initialization of socket.
  13296. (~PeerListenCommand): Removed the deallocation of socket.
  13297. (bindPort): Use SocketHandle.
  13298. (execute): Use SocketHandle and PeerHandle.
  13299. * src/FtpDowndloadCommand.cc
  13300. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13301. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13302. * src/main.cc
  13303. (main): Corrected indentation.
  13304. * src/HttpInitiateConnectionCommand.cc
  13305. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13306. (executeInternal): Removed the allocation of socket.
  13307. * src/HttpRequestCommand.h
  13308. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13309. * src/FtpNegotiationCommand.h
  13310. (dataSocket): Changed its type to SocketHandle.
  13311. (serverSocket): Changed its type to SocketHandle.
  13312. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13313. * src/TorrentMan.h
  13314. (MAX_PEER_UPDATE): Removed.
  13315. (MAX_PEERS): New definition.
  13316. (Peers): The element is now of type PeerHandle.
  13317. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13318. (getPeer): Replaced Peer with PeerHandle.
  13319. (deleteOldErrorPeers): Removed.
  13320. (deleteErrorPeer): New function.
  13321. (hasMissingPiece): Replaced Peer with PeerHandle.
  13322. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13323. (getMissingPiece): Replaced Peer with PeerHandle.
  13324. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13325. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13326. (addActivePeer): Replaced Peer with PeerHandle.
  13327. (deleteActivePeer): Replaced Peer with PeerHandle.
  13328. Added a check for the return value of find.
  13329. * src/FtpTunnelResponseCommand.cc
  13330. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13331. * src/FtpInitiateConnectionCommand.cc
  13332. (executeInternal): Removed the allocation of socket.
  13333. * src/DownloadEngine.h
  13334. (Sockets): An element is now of type SocketHandle.
  13335. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13336. (CommandUuids): New type definition.
  13337. (rsockets): Changed its type to SockCmdMap.
  13338. (wsockets): Changed its type to SockCmdMap.
  13339. (addSocket): Rewritten.
  13340. (deleteSocket): Rewritten.
  13341. (addSocketForReadCheck): Rewritten.
  13342. (deleteSocketForReadCheck): Rewritten.
  13343. (addSocketForWriteCheck): Rewritten.
  13344. (deleteSocketForWriteCheck): Rewritten.
  13345. (PairFind): New template class.
  13346. * src/HttpDownloadCommand.h
  13347. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13348. * src/FtpConnection.cc
  13349. (FtpConnection): Replaced Socket with SocketHandle.
  13350. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13351. block.
  13352. * src/InitiateConnectionCommandFactory.cc
  13353. (DlAbortEx.h): Included DlAbortEx.h.
  13354. (createInitiateConnectionCommand): Throw exception if the protocol of
  13355. requested URI is not supported.
  13356. * src/Peer.cc
  13357. (nullPeer): Changed its type to PeerHandle.
  13358. (operator==): New function.
  13359. (operator!=): New function.
  13360. * src/Peer.h
  13361. (SharedHandle.h): Included SharedHandle.h.
  13362. (operator==): New function.
  13363. (operator!=): New function.
  13364. (Peer): Added the default constructor.
  13365. Use resetStatus() to initialize member variables.
  13366. (nullPeer): Removed.
  13367. * src/TrackerUpdateCommand.cc
  13368. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13369. with MIN_PEERS.
  13370. * src/PeerListenCommand.h
  13371. (socket): Changed its type to SocketHandle.
  13372. * src/Command.h
  13373. (CommandUuid): New type definition.
  13374. (uuid): New variable.
  13375. (uuidGen): New variable.
  13376. (Command): Added the initialization of uuid.
  13377. (getUuid): New function.
  13378. * src/Socket.h
  13379. (Socket): Removed.
  13380. (SocketHandle): New type definition.
  13381. * src/DownloadEngine.h
  13382. (FindCommand): New function object.
  13383. (run): The portion of socket check was rewritten.
  13384. (SetDescriptor): New function object.
  13385. (AccumulateActiveCommandUuid): New function object.
  13386. (waitData): Rewritten.
  13387. (addSocket): Rewritten.
  13388. (deleteSocket): Rewritten.
  13389. (addSocketForReadCheck): Rewritten.
  13390. (addSocketForWriteCheck): Rewritten.
  13391. (deleteSocketForReadCheck): Rewritten.
  13392. (deleteSocketForWriteCheck): Rewritten.
  13393. * src/HttpProxyResponseCommand.h
  13394. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13395. * src/HttpConnection.h
  13396. (socket): Changed its type to SocketHandle.
  13397. (HttpConnection): Replaced Socket with SocketHandle.
  13398. * src/PeerInitiateConnectionCommand.cc
  13399. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13400. (executeInternal): Removed the allocation of socket.
  13401. (prepareForNextPeer): Use PeerHandle.
  13402. * src/PeerMessage.h
  13403. (peer): Changed its type to PeerHandle.
  13404. (getPeer): Replaced Peer with PeerHandle.
  13405. (setPeer): Replaced Peer with PeerHandle.
  13406. * src/DownloadCommand.cc
  13407. (DownloadCommand): Replaced Socket with SocketHandle.
  13408. * src/FtpConnection.h
  13409. (socket): Changed its type to SocketHandle.
  13410. (FtpConnection): Replaced Socket with SocketHandle.
  13411. (sendPort); Replaced Socket with SocketHandle.
  13412. * src/FtpDowndloadCommand.h
  13413. (ctrlSocket): Changed its type to SocketHandle.
  13414. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13415. * src/HttpProxyRequestCommand.cc
  13416. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13417. * src/FtpTunnelRequestCommand.h
  13418. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13419. etc
  13420. * src/PeerChokeCommand.h
  13421. (setAllPeerChoked): Removed.
  13422. (setAllPeerResetDelta): Removed.
  13423. * src/PeerChokeCommand.cc
  13424. (setAllPeerChoked): Removed.
  13425. (ChokePeer): New function object.
  13426. (setAllPeerResetDelta): Removed.
  13427. (ResetDelta): New function object.
  13428. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13429. (execute): Show download speed when the local node is a seeder.
  13430. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13431. using STL.
  13432. * src/TrackerWatcherCommand.h
  13433. (MIN_PEERS): Removed.
  13434. * src/TorrentMan.cc
  13435. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13436. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13437. To fix the bug that .aria2 file is not saved if downloading is stopped
  13438. by the errors:it results that aria2 can not resume downloading:
  13439. * src/main.cc
  13440. (normalDownload): Added the call to save().
  13441. (main): Added the deletion of the elements in 'reserved'.
  13442. To fix log:
  13443. * src/PeerInteraction.cc
  13444. (receiveHandshake): Fixed log.
  13445. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13446. To improve download performance in BitTorrent:
  13447. * src/TorrentMan.cc
  13448. (getPeer): Check the number of connections. Return nullPeer if
  13449. it is greater than MAX_PEER_UPDATE.
  13450. This code was originally here, but was removed in 0.5.1.
  13451. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13452. To improve the conditional compilation:
  13453. * src/MultiDiskWriter.h:
  13454. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13455. * src/MultiDiskWriter.cc:
  13456. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13457. * src/Util.h:
  13458. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13459. Added ENABLE_BITTORRENT around computeFastSet().
  13460. * src/Util.cc:
  13461. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13462. Added ENABLE_BITTORRENT around computeFastSet().
  13463. * src/messageDigest.h:
  13464. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13465. * src/ShaVisitor.h:
  13466. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13467. * src/ShaVisitor.cc:
  13468. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13469. * src/main.cc:
  13470. Added ENABLE_BITTORRENT around includes and blocks related to
  13471. BitTorrent.
  13472. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13473. digest support is not available.
  13474. * src/AbstractDiskWriter.h:
  13475. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13476. * src/AbstractDiskWriter.cc:
  13477. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13478. * src/MetalinkEntry.cc
  13479. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13480. support is not available.
  13481. To add command-line options for Metalink:
  13482. * src/main.cc:
  13483. Added metalink-version, metalink-language, metalink-os,
  13484. follow-metalink.
  13485. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13486. * src/main.cc: Use these definition.
  13487. * Release 0.6.0
  13488. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13489. To add Metalink support(http/ftp only):
  13490. * src/AbstractCommand.h
  13491. (tryReserved): New function.
  13492. * src/AbstractCommand.cc
  13493. (execute): Call tryReserved().
  13494. (tryReserved): New function.
  13495. * src/Request.h
  13496. (Requests): New type definition.
  13497. * src/SegmentMan.h
  13498. (reserved): New variable.
  13499. * src/Util.h
  13500. (fileChecksum): New function.
  13501. (toUpper): New function.
  13502. (toLower): New function.
  13503. * src/Util.cc
  13504. (messageDigest.h): Included.
  13505. (trim): Trim \r\n\t.
  13506. (fileChecksum): New function.
  13507. (toUpper): New function.
  13508. (toLower): New function.
  13509. * src/main.cc
  13510. (normalDownload): New function.
  13511. (main): Added 2 command-line options: metalink-file,
  13512. metalink-connection. Their usage has not been written yet.
  13513. * src/MetalinkProcessor.h: New class.
  13514. * src/Xml2MetalinkProcessor.h: New class.
  13515. * src/Xml2MetalinkProcessor.cc: New class.
  13516. * src/MetalinkEntry.h: New class.
  13517. * src/MetalinkEntry.cc: New class.
  13518. * src/MetalinkResource.h: New class.
  13519. * src/MetalinkResource.cc: New class.
  13520. To add md5 message digest checking:
  13521. * src/messageDigest.h: Rewritten.
  13522. * src/MultiDiskWriter.cc: Updated according to the changes in
  13523. messageDigest.h.
  13524. * src/ShaVisitor.cc: Updated according to the changes in
  13525. messageDigest.h.
  13526. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13527. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13528. messageDigest.h.
  13529. To fix a bug that causes segfault when the payload length in peer
  13530. message is less than 0:
  13531. * src/PeerConnection.cc:
  13532. (receiveMessage): Fixed the bug.
  13533. * src/PeerMessageUtil.cc
  13534. (checkLength): Throw an exception if length is less than or equals to
  13535. 0.
  13536. To add new interfaces to Base64 encoding/decoding:
  13537. * src/Base64.h
  13538. (part_encode): Changed the method signature.
  13539. (encode): New function(overload).
  13540. (decode): New function(overload).
  13541. * src/Base64.cc
  13542. (part_encode): Rewritten.
  13543. (encode): Rewritten.
  13544. (encode): New function(overload).
  13545. To prevent a peer to download same piece if there is an error in
  13546. checksum:
  13547. * src/PieceMessage.cc
  13548. (receivedAction): Call peerInteraction->abortPiece().
  13549. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13550. To fix the bug that causes same have message is sent many times to
  13551. a single peer.
  13552. * src/Time.cc
  13553. (isNewer): Use Util::difftv().
  13554. * src/Util.cc
  13555. (difftv): Added a cast to (long long int).
  13556. * src/TorrentMan.cc
  13557. (advertisePiece): Use push_front.
  13558. (getAdvertisedPieceIndexes): A performance improvement was made.
  13559. To fix the bug that sends tracker requests without a sleep interval
  13560. when the number of connections is less than 15.
  13561. * src/TrackerWatcherCommand.cc
  13562. (execute): Now the number of connections is not a factor to decide
  13563. whether or not a tracker request should be sent or not.
  13564. * src/Time.h
  13565. (setTimeInSec): New function.
  13566. * src/Time.cc
  13567. (setTimeInSec): New function.
  13568. etc.
  13569. * src/ChokeMessage.cc
  13570. (receivedAction): Removed peer->snubbing = false
  13571. * src/PeerConnection.h
  13572. (receiveHandshake): Updated doc.
  13573. * src/TorrentMan.h
  13574. (getAdvertisedPieceIndexes): Updated the method signature.
  13575. * src/TorrentMan.cc
  13576. (getAdvertisedPieceIndexes): Updated the method signature.
  13577. * src/Time.h
  13578. (getTimeInMicros): Added a cast to (long long int).
  13579. (getTimeInMillis): Added a cast to (long long int).
  13580. * Release 0.5.2
  13581. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13582. To make a listening socket non-block:
  13583. * src/SocketCore.h
  13584. (setNonBlockingMode): New function.
  13585. * src/SocketCore.cc
  13586. (setNonBlockingMode): New function.
  13587. (beginListen): Added a call to setNonBlockingMode().
  13588. (acceptConnection): Call setNonBlockingMode().
  13589. (setBlockingMode): Updated.
  13590. To handle tracker's NAT-checking:
  13591. * src/PeerConnection.cc
  13592. (receiveHandshake): 'msg' param is filled with received data and
  13593. its length is assigned to 'length' param, even if all handshake
  13594. message is not yet received.
  13595. * src/PeerInteractionCommand.cc
  13596. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13597. a new peer connects to localhost.
  13598. A call to peerInteraction->sendHandshake() was removed because
  13599. it is called from peerInteraction->receiveHandshake(true).
  13600. * src/PeerInteraction.h
  13601. (quickReplied): New variable.
  13602. (receiveHandshake): Added an argument.
  13603. * src/PeerInteraction.cc
  13604. (PeerInteraction): Added the initialization of quickReplied.
  13605. (receiveHandshake): Send handshake message as soon as the info hash
  13606. in a handshake message from a peer is correct.
  13607. To change the random part of peer id and key parameter:
  13608. * src/TorrentMan.h
  13609. (key): New variable.
  13610. * src/TorrentMan.cc
  13611. (setupInternal1): Use Util::randomAlpha() to generate random part
  13612. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13613. key is also generated by Util::randomAlpha() and it is now 8 character
  13614. long.
  13615. * src/Util.h
  13616. (randomAlpha): New function.
  13617. * src/Util.cc
  13618. (randomAlpha): New function.
  13619. * src/TrackerWatcherCommand.cc
  13620. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13621. Added no_peer_id=1.
  13622. Set snubbing flag to false when a choke message is received from a
  13623. snubbed peer.
  13624. * src/ChokeMessage.cc
  13625. (receivedAction): Set snubbing flag to false.
  13626. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13627. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13628. * src/SimpleLogger.h (writeHeader): New function.
  13629. * src/SimpleLogger.cc (writeHeader): New function.
  13630. (writeLog): Fixed the bug that causes segfaults if exception message
  13631. contains an unescaped "%" character.
  13632. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13633. when a tracker request fails.
  13634. * src/Request.cc (parseUrl): Query string is now handled properly.
  13635. * Release 0.5.1
  13636. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13637. To add Time class which represents a specific instant in time and
  13638. its precision is microseconds. Time checking procedures were rewritten
  13639. using this object.
  13640. * src/Time.h: New class.
  13641. * src/Time.cc: New class.
  13642. * src/AbstractCommand.h
  13643. (updateCheckPoint): Removed.
  13644. (isTimeoutDetected): Removed.
  13645. (checkPoint): Changed the type to Time.
  13646. (timeout): New variable.
  13647. (setTimeout): New function.
  13648. * src/AbstractCommand.cc
  13649. (AbstractCommand): Removed the initialization of checkPoint.
  13650. Added the initialization of timeout.
  13651. (updateCheckPoint): Removed.
  13652. (isTimeoutDetected): Removed.
  13653. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13654. * src/PeerChokeCommand.h
  13655. (checkPoint): Changed the type to Time.
  13656. * src/PeerChokeCommand.cc
  13657. (PeerChokeCommand): Removed the initialization of checkPoint.
  13658. (execute): Rewritten using Time object.
  13659. * src/TrackerWatcherCommand.h
  13660. (checkPoint): Changed the type to Time.
  13661. * src/TrackerWatcherCommand.cc
  13662. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13663. (execute): Rewritten.
  13664. * src/ConsoleDownloadEngine.h
  13665. (cp): Changed the type to Time.
  13666. (startup): Changed the type to Time.
  13667. * src/ConsoleDownloadEngine.cc
  13668. (initStatistics): Use cp.reset(), startup.reset().
  13669. (calculateStatistics): Rewritten using Time object.
  13670. * src/PeerAbstractCommand.h
  13671. (updateCheckPoint): Removed.
  13672. (isTimeoutDetected): Removed.
  13673. (checkPoint): Changed the type to Time.
  13674. * src/PeerAbstractCommand.cc
  13675. (PeerAbstractCommand): Removed the initialization of checkPoint.
  13676. (updateCheckPoint): Removed.
  13677. (isTimeoutDetected): Removed.
  13678. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13679. * src/PeerInteractionCommand.cc
  13680. (PeerInteractionCommand): Removed the initializations of struct
  13681. timeval variables.
  13682. * src/PeerInteractionCommand.h
  13683. (keepAliveCheckPoint): Changed the type to Time.
  13684. (chokeCheckPoint): Changed the type to Time.
  13685. (freqCheckPoint): Changed the type to Time.
  13686. (haveCheckTime): Changed the type to Time.
  13687. * src/PeerInteractionCommand.cc
  13688. (executeInternal): Rewritten using Time object.
  13689. (detectMessageFlooding): Rewritten using Time object.
  13690. (checkLongTimePeerChoking): Rewritten using Time object.
  13691. (sendKeepAlive): Rewritten using Time object.
  13692. (checkHave): Rewritten using Time object.
  13693. * src/SleepCommand.h
  13694. (checkPoint): Changed the type to Time.
  13695. * src/SleepCommand.cc
  13696. (SleepCommand): Removed the initialization of checkPoint.
  13697. (execute): Rewritten using Time object.
  13698. * src/TorrentAutoSaveCommand.h
  13699. (checkPoint): Changed the type to Time.
  13700. * src/TorrentAutoSaveCommand.cc
  13701. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  13702. (execute): Rewritten.
  13703. * src/DownloadCommand.h
  13704. (sw): Changed the type to Time.
  13705. * src/DownloadCommand.cc
  13706. (DownloadCommand): Removed the initialization of sw.
  13707. (executeInternal): Rewritten.
  13708. * src/RequestSlot.h
  13709. (dispatchedTime): Changed the type to Time.
  13710. * src/RequestSlot.cc
  13711. (RequestSlot): Removed the call to setDispatchedTime().
  13712. (setDispatchedTime): Rewirtten.
  13713. (isTimeout): Rewritten.
  13714. (getLatencyInMillis): Rewritten.
  13715. * src/TorrentDownloadEngine.h
  13716. (cp): Changed the type to Time[2].
  13717. (startup): Changed the type to Time.
  13718. * src/TorrentDownloadEngine.cc
  13719. (initStatistics): Rewritten.
  13720. (calculateStatistics): Rewritten.
  13721. * src/DownloadEngine.cc
  13722. (run): Rewritten.
  13723. To detect all attempts to connect to the tracker are failed:
  13724. * src/AbstractCommand.cc
  13725. (execute): Increment e->segmentMan->errors if a command aborted.
  13726. * src/SegmentMan.h
  13727. (errors): New variable.
  13728. * src/SegmentMan.cc
  13729. (SegmentMan): Added the initialization of errors.
  13730. (init): Added the initialization of errors.
  13731. * src/TrackerWatcherCommand.cc
  13732. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13733. request was failed.
  13734. To handle snubbed peers:
  13735. * src/PeerChokeCommand.cc
  13736. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13737. (execute): Snubbed peers don't get unchoked.
  13738. * src/PeerInteraction.h
  13739. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13740. * src/PeerInteraction.cc
  13741. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13742. back the requested 16k block in 60 seconds.
  13743. * src/PieceMessage.cc
  13744. (receivedAction): A peer's snubbed state is cleard if it sends
  13745. the requested 16k block in 60 seconds.
  13746. * src/Peer.h
  13747. (snubbing): New variable.
  13748. * src/Peer.cc
  13749. (resetStatus): Added snubbed = false.
  13750. To fix the bug that causes have message is not sent:
  13751. * src/PeerInteractionCommand.cc
  13752. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13753. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13754. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13755. * src/TorrentMan.h
  13756. (HaveEntry): New class.
  13757. (advertisePiece): Rewritten.
  13758. (getAdvertisedPieceIndexes): Rewritten.
  13759. (Haves): Changed the type.
  13760. (getAdvertisedPieceIndexes): Added an argument.
  13761. Others:
  13762. * src/TorrentMan.h
  13763. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13764. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13765. * src/TorrentMan.cc
  13766. (getPeer): Don't check the number of connections here.
  13767. (setupInternal1): Changed peerId.
  13768. * src/PeerInteractionCommand.h
  13769. (KEEP_ALIVE_INTERVAL): New definition.
  13770. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13771. * src/main.cc
  13772. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13773. * src/DownloadEngine.h: Removed unnecessary header includes.
  13774. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13775. To fix the bug that causes segfaults if a tracker returns a zero-length
  13776. list as "peers":
  13777. * src/TrackerUpdateCommand.cc
  13778. (execute): Added a check to see wether the type of peers is Data*.
  13779. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13780. * Release 0.5.0
  13781. To fix compile issue with gcc3:
  13782. * src/CancelMessage.h
  13783. (ID): Renamed as ID_t
  13784. (ID_t): New enum.
  13785. * src/RejectMessage.h
  13786. (ID): Renamed as ID_t
  13787. (ID_t): New enum.
  13788. * src/SuggestPieceMessage.h
  13789. (ID): Renamed as ID_t
  13790. (ID_t): New enum.
  13791. * src/AllowedFastMessage.h
  13792. (ID): Renamed as ID_t
  13793. (ID_t): New enum.
  13794. * src/PortMessage.h
  13795. (ID): Renamed as ID_t
  13796. (ID_t): New enum.
  13797. * src/HaveNoneMessage.h
  13798. (ID): Renamed as ID_t
  13799. (ID_t): New enum.
  13800. * src/KeepAliveMessage.h
  13801. (ID): Renamed as ID_t
  13802. (ID_t): New enum.
  13803. * src/HaveAllMessage.h
  13804. (ID): Renamed as ID_t
  13805. (ID_t): New enum.
  13806. * src/UnchokeMessage.h
  13807. (ID): Renamed as ID_t
  13808. (ID_t): New enum.
  13809. * src/BitfieldMessage.h
  13810. (ID): Renamed as ID_t
  13811. (ID_t): New enum.
  13812. * src/PieceMessage.h
  13813. (ID): Renamed as ID_t
  13814. (ID_t): New enum.
  13815. * src/RequestMessage.h
  13816. (ID): Renamed as ID_t
  13817. (ID_t): New enum.
  13818. * src/NotInterestedMessage.h
  13819. (ID): Renamed as ID_t
  13820. (ID_t): New enum.
  13821. * src/ChokeMessage.h
  13822. (ID): Renamed as ID_t
  13823. (ID_t): New enum.
  13824. * src/InterestedMessage.h
  13825. (ID): Renamed as ID_t
  13826. (ID_t): New enum.
  13827. * src/HaveMessage.h
  13828. (ID): Renamed as ID_t
  13829. (ID_t): New enum.
  13830. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13831. * src/PeerAbstractCommand.h
  13832. (beforeSocketCheck): Removed.
  13833. * src/PeerAbstractCommand.cc
  13834. Modified in order to call executeInternal() even if socket check
  13835. and upload limit check fail.
  13836. * src/PeerInteractionCommand.h
  13837. (keepAlive): Removed.
  13838. (sendKeepAlive): New function.
  13839. (checkHave): New function.
  13840. (beforeSocketCheck): Removed.
  13841. * src/PeerInteractionCommand.cc
  13842. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13843. calls to checkHave() and sendKeepAlive().
  13844. (keepAlive): Renamed to sendKeepAlive().
  13845. (sendKeepAlive): New function.
  13846. (beforeSocketCheck): Removed.
  13847. (checkHave): New function.
  13848. * src/BitfieldMan.cc
  13849. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13850. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13851. 0.
  13852. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13853. * src/TorrentMan.h
  13854. (UsedPieces): Removed.
  13855. (Pieces): New type definition.
  13856. * src/Piece.h: Updated doc.
  13857. * src/Peer.h
  13858. (totalLength): Removed.
  13859. * src/Peer.cc
  13860. (updateLatency): Fixed the latency calculation.
  13861. * src/TorrentMan.cc
  13862. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13863. than or equal to MAX_PEER_LIST_SIZE.
  13864. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13865. then return false.
  13866. (deleteOldErrorPeers): Rewritten.
  13867. (deleteUsedPiece): Fixed the miss use of STL remove.
  13868. * src/PeerInteraction.h
  13869. (Pieces): Removed.
  13870. (deleteTimeoutRequestSlot): Removed.
  13871. (deleteCompletedRequestSlot): Removed.
  13872. (checkRequestSlot): New function.
  13873. * src/PeerInteraction.cc
  13874. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13875. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13876. (checkRequestSlot): New function.
  13877. * src/DownloadEngine.cc
  13878. (run): Clear activeSockets before calling waitData().
  13879. (waitData): Removed a call to activeSockets.clear().
  13880. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13881. To attempt to handle EINTR:
  13882. * src/SocketCore.cc
  13883. (isReadable): Added EINTR handling.
  13884. (isWritable): Added EINTR handling.
  13885. To improve the performance:
  13886. * src/AbstractCommand.cc
  13887. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13888. * src/PeerInteractionCommand.h
  13889. (receiveMessage): Renamed as receiveMessages().
  13890. (receiveMessages): New function.
  13891. * src/PeerInteractionCommand.cc
  13892. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13893. () function. detectMessageFlooding() is moved here.
  13894. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13895. (). The flooding detection for have message is comment out.
  13896. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13897. Util::difftv().
  13898. (receiveMessage): Renamed as receiveMessages().
  13899. (receiveMessages): New function.
  13900. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13901. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13902. * src/SleepCommand.cc
  13903. (execute): Use Util::difftvsec() instead of Util::difftv().
  13904. * src/BitfieldMan.h
  13905. (getNthBitIndex): New function.
  13906. (hasMissingPiece): New function.
  13907. (getAllMissingIndexes): New function.
  13908. * src/BitfieldMan.cc
  13909. (countSetBit): Rewritten.
  13910. (getNthBitIndex): New function.
  13911. (getMissingIndexRandomly): Rewritten.
  13912. (hasMissingPiece): New function.
  13913. (getAllMissingIndexes): New function.
  13914. * src/TorrentMan.cc
  13915. (hasMissingPiece): New function.
  13916. (deleteUsedPiece): Rewritten using STL.
  13917. * src/PeerInteraction.cc
  13918. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13919. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13920. (addRequests): Updated the number of pending requests.
  13921. * src/PeerAbstractCommand.cc
  13922. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13923. (execute): Returns true if TorrentMan::isHalt() is true.
  13924. Corrected the condition of upload limit checking.
  13925. * src/Util.h
  13926. (countBit): New function.
  13927. * src/Util.cc
  13928. (nbits): New variable.
  13929. (countBit): New function.
  13930. * src/DownloadEngine.h
  13931. (SockCmdMap): New type definition.
  13932. (waitData): Added an argument.
  13933. (addSocket): Added an argument.
  13934. (addSocketForReadCheck): Added an argument.
  13935. (addSocketForWriteCheck): Added an argument.
  13936. * src/DownloadEngine.cc
  13937. (run): Executes only commands whose sockets are ready to read or write.
  13938. All commands are executed in every 1 second.
  13939. (waitData): Calls select() again if it returned
  13940. EINTR.
  13941. (addSocket): Saves socket and command object pair to the map.
  13942. (deleteSocket): Deletes socket and command object pair from the map.
  13943. (addSocketForReadCheck): Added an argument.
  13944. (addSocketForWriteCheck): Added an argument.
  13945. * src/DownloadCommand.cc
  13946. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13947. To send "event=stopped" to the tracker when the application finishes:
  13948. * src/PeerChokeCommand.h
  13949. (checkPoint): New variable.
  13950. * src/PeerChokeCommand.cc
  13951. (PeerChokeCommand): Added the initialization of checkPoint.
  13952. (execute): The interval check is now done by checkPoint, not
  13953. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13954. * src/TorrentMan.h
  13955. (halt): New function.
  13956. (hasMissingPiece): New function.
  13957. (isHalt): New function.
  13958. (setHalt): New function.
  13959. * src/TorrentMan.cc
  13960. (TorrentMan): Added the initialization of halt.
  13961. * src/TorrentAutoSaveCommand.h
  13962. (checkPoint): New variable.
  13963. * src/PeerListenCommand.cc
  13964. (execute): Returns true if TorrentMan::isHalt() is true.
  13965. * src/main.cc
  13966. (setSignalHander): Added flags argument.
  13967. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13968. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13969. Removed printDownloadAbortMessage() after torrent downloading loop.
  13970. * src/TorrentAutoSaveCommand.cc
  13971. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13972. (execute): Returns true if TorrentMan::isHalt() is true.
  13973. The interval check is now done by checkPoint, not SleepCommand.
  13974. * src/TrackerWatcherCommand.cc
  13975. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13976. event=stopped.
  13977. * src/TrackerUpdateCommand.cc
  13978. (prepareForRetry): Do not use SleepCommand here.
  13979. (execute): Returns true if TorrentMan::isHalt() is true.
  13980. Others:
  13981. * src/TorrentMan.cc
  13982. (getMissingPieceIndex): Updated log message.
  13983. * src/PeerInteraction.cc
  13984. (createPeerMessag): Updated log message.
  13985. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13986. To add the ability to download several pieces in mix in a command and
  13987. increase the number of request slots according to request-cancel
  13988. latency:
  13989. * src/PeerInteractionCommand.cc
  13990. (executeInternal): The number of messages to be received at a time
  13991. is increased from 10 to 50.
  13992. * src/LogFactory
  13993. (getInstance): Added NullLogger.
  13994. * src/NullLogger.h: New class.
  13995. * src/BitfieldMan.h
  13996. (getMissingIndex): New function.
  13997. * src/BitfieldMan.cc
  13998. (getMissingIndex): New function.
  13999. * src/TorrentMan.h
  14000. (checkOutPiece): New function.
  14001. (getMissingPieceIndex): New function.
  14002. (getMissingFastPieceIndex): New function.
  14003. (getMissingFastPiece): New function.
  14004. * src/TorrentMan.cc
  14005. (updatePiece): Rewritten using STL.
  14006. (syncPiece): Rewritten using STL.
  14007. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14008. checkOutPiece().
  14009. (getMissingPieceIndex): New function.
  14010. (getMissingFastPieceIndex): New function.
  14011. (getMissingFastPiece): New function.
  14012. (checkOutPiece): New function.
  14013. * src/PeerInteraction.h
  14014. (Pieces): New type definition.
  14015. (piece): Removed.
  14016. (pieces): New variable.
  14017. (getNewPieceAndSendInterest): Added the "piece" argument.
  14018. (abortPiece): Added the "piece" argument.
  14019. (abortAllPieces): New function.
  14020. (isInRequestSlot): New function.
  14021. (hasDownloadPiece): Added the "index" argument.
  14022. (setDownloadPiece): Removed.
  14023. (getDownloadPiece): Added the "index" argument.
  14024. (updatePiece): New function.
  14025. (createRequestMessage): Added the "index" argument.
  14026. * src/PeerInteraction.cc
  14027. (onChoked): Rewritten.
  14028. (abortPiece): Rewirtten.
  14029. (abortAllPieces): New function.
  14030. (deleteTimeoutRequestSlot): Rewritten.
  14031. Clarified code a little bit.
  14032. (deleteCompletedRequestSlot): Rewritten.
  14033. (isInRequestSlot): New function.
  14034. (syncPiece): Rewritten.
  14035. (updatePiece): New function.
  14036. (getNewPieceAndSendInterest): Rewritten.
  14037. (addRequests): Rewritten.
  14038. (getDownloadPiece): Rewritten.
  14039. (hasDownloadPiece): Rewritten.
  14040. (createRequestMessage): Added the "index" argument.
  14041. * src/common.h
  14042. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14043. (DIV_FLOOR): New definition.
  14044. * src/PieceMessage.cc
  14045. (receivedAction): Update request-piece latency here.
  14046. * src/RequestSlot.h
  14047. (getLatencyInMillis): New function.
  14048. * src/RequestSlot.cc
  14049. (isTimeout): Rewritten using getLatencyInMillis.
  14050. (getLatencyInMillis): New function.
  14051. * src/Piece.h
  14052. (operator==): New function.
  14053. (getMissingBlockIndex): New function.
  14054. * src/Piece.cc
  14055. (operator==): New function.
  14056. (getMissingBlockIndex): New function.
  14057. * src/Peer.h
  14058. (DEFAULT_LATENCY): New definition.
  14059. (latency): New variable.
  14060. (updateLatency): New function.
  14061. (getLatency): New function.
  14062. * src/Peer.cc
  14063. (resetStatus): Reset latecy.
  14064. (updateLatency): New function.
  14065. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14066. * src/SocketCore.cc
  14067. (isReadable): Added secure to the condition.
  14068. * src/HttpConnection.cc
  14069. (receiveResponse): Fixed a bug that causes no response header
  14070. exception.
  14071. * src/Peer.h
  14072. (getFastSet): Fixed the return value type.
  14073. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14074. To remove a wait from download loop:
  14075. * src/DownloadEngine.cc
  14076. (run): Comment out shortSleep.
  14077. To rewrite the message handling:
  14078. * src/SimplePeerMessage.h: New class.
  14079. * src/SimplePeerMessage.cc: New class.
  14080. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14081. (msg): New variable.
  14082. (create): New function.
  14083. (send): Removed.
  14084. (getMessage): New function.
  14085. (getMessageLength): New function.
  14086. * src/CancelMessage.cc
  14087. (create): New function.
  14088. (receivedAction): Replaced deleteRequestMessageInQueue with
  14089. rejectPieceMessageInQueue.
  14090. (send): Removed.
  14091. (getMessage): New function.
  14092. (getMessageLength): New function.
  14093. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14094. (msg): New variable.
  14095. (msgLength): New variable.
  14096. (~BitfieldMessage): Deleted msg.
  14097. (send): Removed.
  14098. (getMessage): New function.
  14099. (getMessageLength): New function.
  14100. * src/BitfieldMessage.cc
  14101. (create): New function.
  14102. (send): Removed.
  14103. (getMessage): New function.
  14104. (getMessageLength): New function.
  14105. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14106. (msg): New variable.
  14107. (sendPredicate): New function.
  14108. (onSendComplete): New function.
  14109. (send): Removed.
  14110. (getMessage): New function.
  14111. (getMessageLength): New function.
  14112. (create): New function.
  14113. * src/ChokeMessage.cc
  14114. (create): New function.
  14115. (send): Removed.
  14116. (sendPredicate): New function.
  14117. (getMessage): New function.
  14118. (getMessageLength): New function.
  14119. (onSendComplete): New function.
  14120. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14121. (msg): New variable.
  14122. (send): Removed.
  14123. (getMessage): New function.
  14124. (getMessageLength): New function.
  14125. * src/KeepAliveMessage.cc
  14126. (send): Removed.
  14127. (getMessage): New function.
  14128. (getMessageLength): New function.
  14129. * src/PortMessage.h
  14130. (create): New function.
  14131. (receivedAction): Updated log message.
  14132. * src/PortMessage.cc: New file.
  14133. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14134. (msg): New variable.
  14135. (sendPredicate): New function.
  14136. (onSendComplete): New function.
  14137. (create): New function.
  14138. (send): Removed.
  14139. (getMessage): New function.
  14140. (getMessageLength): New function.
  14141. * src/UnchokeMessage.cc
  14142. (create): New function.
  14143. (send): Removed.
  14144. (sendPredicate): New function.
  14145. (getMessage): New function.
  14146. (getMessageLength): New function.
  14147. (onSendComplete): New function.
  14148. * src/PieceMessage.h
  14149. (leftPieceDataLength): Removed.
  14150. (leftDataLength): New variable.
  14151. (headerSend): New variable.
  14152. (pendingCount): New variable.
  14153. (msgHeader): New variable.
  14154. (sendPieceData): New function.
  14155. (incrementPendingCount): New function.
  14156. (isPendingCountMax): New function.
  14157. (create): New function.
  14158. (getMessageHeader): New function.
  14159. (getMessageHeaderLength): New function.
  14160. * src/PieceMessage.cc
  14161. (create): New function.
  14162. (getMessageHeader): New function.
  14163. (getMessageHeaderLength): New function.
  14164. (send): Rewritten.
  14165. (sendPieceData): New function.
  14166. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14167. (msg): New variable.
  14168. (create): New function.
  14169. (getMessage): New function.
  14170. (getMessageLength): New function.
  14171. * src/HaveMessage.cc
  14172. (create): New function.
  14173. (send): Removed.
  14174. (sendPieceData): New function.
  14175. (getMessage): New function.
  14176. (getMessageLength): New function.
  14177. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14178. (msg): New variable.
  14179. (create): New function.
  14180. (send): Removed.
  14181. (getMessage): New function.
  14182. (getMessageLength): New function.
  14183. * src/RequestMessage.cc
  14184. (create): New function.
  14185. (receivedAction): Added the handling of fast extension.
  14186. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14187. (send): Removed.
  14188. (getMessage): New function.
  14189. (getMessageLength): New function.
  14190. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14191. (msg): New variable.
  14192. (sendPredicate): New function.
  14193. (onSendComplete): New function.
  14194. (create): New function.
  14195. (getMessage): New function.
  14196. (getMessageLength): New function.
  14197. * src/InterestedMessage.cc
  14198. (create): New function.
  14199. (send): Removed.
  14200. (sendPieceData): New function.
  14201. (getMessage): New function.
  14202. (getMessageLength): New function.
  14203. (onSendComplete): New function.
  14204. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14205. (msg): New variable.
  14206. (sendPieceData): New function.
  14207. (onSendComplete): New function.
  14208. (create): New function.
  14209. (send): Removed.
  14210. (getMessage): New function.
  14211. (getMessageLength): New function.
  14212. * src/NotInterestedMessage.cc
  14213. (create): New function.
  14214. (send): Removed.
  14215. (sendPredicate): New function.
  14216. (getMessage): New function.
  14217. (getMessageLength): New function.
  14218. (onSendComplete): New function.
  14219. * src/AllowedFastMessage.h: New class.
  14220. * src/AllowedFastMessage.cc: New class.
  14221. * src/RejectMessage.h: New class.
  14222. * src/RejectMessage.cc: New class.
  14223. * src/SuggestPieceMessage.h: New class.
  14224. * src/SuggestPieceMessage.cc: New class.
  14225. * src/HaveAllMessage.h: New class.
  14226. * src/HaveAllMessage.cc: New class.
  14227. * src/HaveNoneMessage.h: New class.
  14228. * src/HaveNoneMessage.cc: New class.
  14229. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14230. (msg): New variable.
  14231. (reserved): New variable.
  14232. (create): New function.
  14233. (getId): New function.
  14234. (receivedAction): New function.
  14235. (getMessage): New function.
  14236. (getMessageLength): New function.
  14237. (isFastExtensionSupported): New function.
  14238. * src/HandshakeMessage.cc
  14239. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14240. (create): New function.
  14241. (getMessage): New function.
  14242. (getMessageLength): New function.
  14243. (toString): Added the output of reserved field.
  14244. (check): Added const qualifier.
  14245. (isFastExtensionSupported): New function.
  14246. * src/PeerMessageUtil.h
  14247. (createChokeMessage): Removed.
  14248. (createUnchokeMessage): Removed.
  14249. (createInterestedMessage): Removed.
  14250. (createNotInterestedMessage): Removed.
  14251. (createHaveMessage): Removed.
  14252. (createBitfieldMessage): Removed.
  14253. (createRequestMessage): Removed.
  14254. (createCancelMessage): Removed.
  14255. (createPieceMessage): Removed.
  14256. (createPortMessage): Removed.
  14257. (createChokeMessage): Removed.
  14258. (createUnchokeMessage): Removed.
  14259. (createInterestedMessage): Removed.
  14260. (createNotInterestedMessage): Removed.
  14261. (createHaveMessage): Removed.
  14262. (createBitfieldMessage): Removed.
  14263. (createRequestMessage): Removed.
  14264. (createCancelMessage): Removed.
  14265. (createPieceMessage): Removed.
  14266. (createKeepAliveMessage): Removed.
  14267. (createHandshakeMessage): Removed.
  14268. (setIntParam): New function.
  14269. (createPeerMessageString): New function.
  14270. * src/PeerMessageUtil.cc
  14271. (createChokeMessage): Removed.
  14272. (createUnchokeMessage): Removed.
  14273. (createInterestedMessage): Removed.
  14274. (createNotInterestedMessage): Removed.
  14275. (createHaveMessage): Removed.
  14276. (createBitfieldMessage): Removed.
  14277. (createRequestMessage): Removed.
  14278. (createCancelMessage): Removed.
  14279. (createPieceMessage): Removed.
  14280. (createPortMessage): Removed.
  14281. (createRequestMessage): Removed.
  14282. (createCancelMessage): Removed.
  14283. (createPieceMessage): Removed.
  14284. (createHaveMessage): Removed.
  14285. (createChokeMessage): Removed.
  14286. (createUnchokeMessage): Removed.
  14287. (createInterestedMessage): Removed.
  14288. (createNotInterestedMessage): Removed.
  14289. (createBitfieldMessage): Removed.
  14290. (createKeepAliveMessage): Removed.
  14291. (createHandshakeMessage): Removed.
  14292. (setIntParam): New function.
  14293. (createPeerMessageString): New function.
  14294. * src/PeerConnection.h
  14295. (peer): Removed.
  14296. (torrentMan): Removed.
  14297. (createNLengthMessage): Removed.
  14298. (setIntParam): Removed.
  14299. (writeOutgoingMessageLog): Removed all overloaded functions.
  14300. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14301. (sendMessage): New function.
  14302. (sendHandshake): Removed.
  14303. (sendKeepAlive): Removed.
  14304. (sendChoke): Removed.
  14305. (sendUnchoke): Removed.
  14306. (sendInterested): Removed.
  14307. (sendNotInterested): Removed.
  14308. (sendHave): Removed.
  14309. (sendBitfield): Removed.
  14310. (sendRequest): Removed.
  14311. (sendPiece): Removed.
  14312. (sendPieceHeader): Removed.
  14313. (sendPieceData): Removed.
  14314. (sendCancel): Removed.
  14315. (getPeer): Removed.
  14316. * src/PeerConnection.cc
  14317. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14318. (sendHandshake): Removed.
  14319. (sendKeepAlive): Removed.
  14320. (createNLengthMessage): Removed.
  14321. (setIntParam): Removed.
  14322. (writeOutgoingMessageLog): Removed all overloaded functions.
  14323. (sendChoke): Removed.
  14324. (sendUnchoke): Removed.
  14325. (sendInterested): Removed.
  14326. (sendNotInterested): Removed.
  14327. (sendHave): Removed.
  14328. (sendBitfield): Removed.
  14329. (sendRequest): Removed.
  14330. (sendPiece): Removed.
  14331. (sendPieceHeader): Removed.
  14332. (sendPieceData): Removed.
  14333. (sendMessage): New function.
  14334. (sendCancel): Removed.
  14335. * src/PeerInteractionCommand.cc
  14336. (PeerInteractionCommand): Call setUploadLimit.
  14337. (executeInternal): Call setUploadLimit.
  14338. Added the handling of "inProgress" state of handshake message.
  14339. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14340. sendNow().
  14341. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14342. sendNow().
  14343. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14344. * src/TorrentMan.h
  14345. (PEER_ID_LENGTH): New definition.
  14346. (hasAllPieces): New function.
  14347. * src/TorrentMan.cc
  14348. (getMissingPiece): Added the handling of fast extension.
  14349. (cancelPiece): Call updatePiece().
  14350. (hasAllPieces): New function.
  14351. * src/PeerInteraction.h
  14352. (fastSet): New variable.
  14353. (getNewPieceAndSendInterest): Changed the return type to void.
  14354. (send): Renamed as sendMessages.
  14355. (deleteAllRequestSlot): Removed.
  14356. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14357. (cancelAllRequest): Removed all overloaded functions.
  14358. (deleteAllRequestSlot): Removed.
  14359. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14360. (rejectPieceMessageInQueue): New function.
  14361. (rejectAllPieceMessageInQueue): New function.
  14362. (onChoked): New function.
  14363. (isSendingMessageInProgress): New function.
  14364. (getCorrespondingRequestSlot): Changed its arguments.
  14365. (isInFastSet): New function.
  14366. (addFastSetIndex): New function.
  14367. (addRequests): New function.
  14368. (sendNow): Removed.
  14369. (trySendNow): Removed.
  14370. (sendBitfield): New function.
  14371. (sendAllowdFast): New function.
  14372. (createHaveAllMessage): New function.
  14373. (createHaveNoneMessage): New function.
  14374. (createRejectMessage): New function.
  14375. (createAllowedFastMessage): New function.
  14376. * src/PeerInteraction.cc
  14377. (send): Renamed as sendMessages.
  14378. (sendMessages): New function.
  14379. (MsgPushBack): New class.
  14380. (isSendingMessageInProgress): New function.
  14381. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14382. (rejectAllPieceMessageInQueue): New function.
  14383. Added the handling of fast extension.
  14384. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14385. (rejectPieceMessageInQueue): New function.
  14386. Added the handling of fast extension.
  14387. (deleteRequestSlot): Replaced for loop with std::find.
  14388. (onChoked): New function.
  14389. (deleteAllRequestSlot): Removed.
  14390. (abortPiece): Rewirtten.
  14391. (deleteTimeoutRequestSlot): Updated log messages.
  14392. (getCorrespondingRequestSlot): Changed its arguments.
  14393. (cancelAllRequest): Removed all overloaded functions.
  14394. (receiveHandshake): Added the check to see whether an incoming peer
  14395. supports fast extension.
  14396. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14397. PeerMessageUtil.
  14398. (createPeerMessage): Use create() of each message class instead of
  14399. PeerMessageUtil.
  14400. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14401. AllowedFastMessage were added.
  14402. (getNewPieceAndSendInterest): Changed its return value type to void.
  14403. Added the handling of fast extension.
  14404. (addRequests): New function.
  14405. (sendNow): Removed.
  14406. (sendHandshake): Rewritten.
  14407. (trySendNow): Removed.
  14408. (sendBitfield): New function.
  14409. (sendAllowdFast): New function.
  14410. (isInFastSet): New function.
  14411. (addFastSetIndex): New function.
  14412. (createRequestMessage): Use RequestMessage::create instead of
  14413. PeerMessageUtil.
  14414. (createCancelMessage): Use CancelMessage::create instead of
  14415. PeerMessageUtil.
  14416. (createPieceMessage): Use PieceMessage::create instead of
  14417. PeerMessageUtil.
  14418. (createHaveMessage): Use HaveMessage::create instead of
  14419. PeerMessageUtil.
  14420. (createChokeMessage): Use ChokeMessage::create instead of
  14421. PeerMessageUtil.
  14422. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14423. PeerMessageUtil.
  14424. (createInterestedMessage): Use InterestedMessage::create instead of
  14425. PeerMessageUtil.
  14426. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14427. of PeerMessageUtil.
  14428. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14429. PeerMessageUtil.
  14430. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14431. PeerMessageUtil.
  14432. (createHaveAllMessage): New function.
  14433. (createHaveNoneMessage): New function.
  14434. (createRejectMessage): New function.
  14435. (createAllowedFastMessage: New function.
  14436. * src/Util.h
  14437. (sha1Sum): New function.
  14438. (computeFastSet): New function.
  14439. * src/Util.cc
  14440. (sha1Sum): New function.
  14441. (computeFastSet): New function.
  14442. * src/Peer.h
  14443. (fastExtensionEnabled): New variable.
  14444. (fastSet): New variable.
  14445. (setAllBitfield): New function.
  14446. (setFastExtensionEnabled): New function.
  14447. (isFastExtensionEnabled): New function.
  14448. (addFastSetIndex): New function.
  14449. (getFastSet): New function.
  14450. (isInFastSet): New function.
  14451. (countFastSet): New function.
  14452. * src/Peer.cc
  14453. (isInFastSet): New function.
  14454. (addFastSetIndex): New function.
  14455. (setAllBitfield): New function.
  14456. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14457. sockets.
  14458. * src/PeerAbstractCommand.cc
  14459. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14460. and uploadLimit.
  14461. (execute): Changed the procedure of checking sockets. The upload speed
  14462. checking were added.
  14463. (setUploadLimit): New function.
  14464. (setUploadLimitCheck): New function.
  14465. * src/PeerAbstractCommand.h
  14466. (setUploadLimit): New function.
  14467. (setUploadLimitCheck): New function.
  14468. (uploadLimit): New variable.
  14469. (uploadLimitCheck): New variable.
  14470. To contact a tracker regularly:
  14471. * src/TrackerWatcherCommand.h (interval): New variable.
  14472. (checkPoint): New variable.
  14473. (TrackerWatcherCommand): Added interval argument.
  14474. * src/TrackerWatcherCommand.cc
  14475. (TrackerWatcherCommand): Initialized checkPoint.
  14476. (execute): Now a tracker is contacted in every specified period.
  14477. If peer list is not needed, send request with numwant=0.
  14478. * src/TrackerUpdateCommand.cc
  14479. (execute): Updated log messages.
  14480. * src/DownloadEngine.cc
  14481. (~DownloadEngine): Removed two asserts.
  14482. (waitData): Uncommented wfds. May be a bug fix.
  14483. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14484. * src/PeerInteractionCommand.h
  14485. (checkInactiveConnection): Removed.
  14486. * src/PeerInteractionCommand.cc
  14487. (executeInternal): Removed following function calls:
  14488. detectMessageFlooding(), checkLongTimePeerChoking and
  14489. checkInactiveConnection().
  14490. (checkInactiveConnection): Removed.
  14491. (detectMessageFlooding): Removed function call to
  14492. checkInactiveConnection().
  14493. * src/PeerMessageUtil.h
  14494. (createChokeMessage): New function. Overload.
  14495. (createUnchokeMessage): New function. Overload.
  14496. (createInterestedMessage): New function. Overload.
  14497. (createNotInterestedMessage): New function. Overload.
  14498. (createHaveMessage): New function. Overload.
  14499. (createBitfieldMessage): New function. Overload.
  14500. (createRequestMessage): New function. Overload.
  14501. (createCancelMessage): New function. Overload.
  14502. (createPieceMessage): New function. Overload.
  14503. (createKeepAliveMessage): New function. Overload.
  14504. * src/PeerMessageUtil.cc
  14505. (createChokeMessage): New function. Overload.
  14506. (createUnchokeMessage): New function. Overload.
  14507. (createInterestedMessage): New function. Overload.
  14508. (createNotInterestedMessage): New function. Overload.
  14509. (createHaveMessage): New function. Overload.
  14510. (createBitfieldMessage): New function. Overload.
  14511. (createRequestMessage): New function. Overload.
  14512. (createCancelMessage): New function. Overload.
  14513. (createPieceMessage): New function. Overload.
  14514. (createKeepAliveMessage): New function. Overload.
  14515. * src/SendMessageQueue.cc
  14516. (createRequestMessage): Use PeerMessageUtil.
  14517. (createCancelMessage): Use PeerMessageUtil.
  14518. (createPieceMessage): Use PeerMessageUtil.
  14519. (createHaveMessage): Use PeerMessageUtil.
  14520. (createChokeMessage): Use PeerMessageUtil.
  14521. (createUnchokeMessage): Use PeerMessageUtil.
  14522. (createInterestedMessage): Use PeerMessageUtil.
  14523. (createNotInterestedMessage): Use PeerMessageUtil.
  14524. (createBitfieldMessage): Use PeerMessageUtil.
  14525. (createKeepAliveMessage): Use PeerMessageUtil.
  14526. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14527. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14528. * src/PeerInteraction.h: New class.
  14529. * src/PeerInteraction.cc: New class.
  14530. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14531. Each peer message has its own class.
  14532. * src/PendingMessages.h: Removed.
  14533. * src/PendingMessages.cc: Removed. The sending process was moved to
  14534. each message class.
  14535. * src/RequestSlotMan.h: Removed.
  14536. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14537. SendMessageQueue.
  14538. * src/RequestMessage.h: New class.
  14539. * src/RequestMessage.cc: New class.
  14540. * src/CancelMessage.h: New class.
  14541. * src/CancelMessage.cc: New class.
  14542. * src/BitfieldMessage.h: New class.
  14543. * src/BitfieldMessage.cc: New class.
  14544. * src/ChokeMessage.h: New class.
  14545. * src/ChokeMessage.cc: New class.
  14546. * src/KeepAliveMessage.h: New class.
  14547. * src/KeepAliveMessage.cc: New class.
  14548. * src/PortMessage.h: New class.
  14549. * src/UnchokeMessage.h: New class.
  14550. * src/UnchokeMessage.cc: New class.
  14551. * src/PieceMessage.h: New class.
  14552. * src/PieceMessage.cc: New class.
  14553. * src/HaveMessage.h: New class.
  14554. * src/HaveMessage.cc: New class.
  14555. * src/BitfieldMessage.h: New class.
  14556. * src/BitfieldMessage.cc: New class.
  14557. * src/NotInterestedMessage.h: New class.
  14558. * src/NotInterestedMessage.cc: New class.
  14559. * src/InterestedMessage.h: New class.
  14560. * src/InterestedMessage.cc: New class.
  14561. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14562. (getSendMessageQueue): New function.
  14563. (setSendMessageQueue): New function.
  14564. * src/HandshakeMessage.cc: New class.
  14565. * src/PeerConnection.h (receiveMessage): Changed return value and
  14566. arguments.
  14567. (receiveHandshake): Changed return value and arguments.
  14568. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14569. here.
  14570. (receiveHandshake): Do not create handshake class here.
  14571. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14572. (piece): Removed.
  14573. (syncPiece): Removed.
  14574. (sendInterest): Removed.
  14575. (sendMessages): Removed.
  14576. (createRequestPendingMessage): Removed.
  14577. (checkPieceHash): Removed.
  14578. (erasePieceOnDisk): Removed.
  14579. (getNewPieceAndSendInterest): Removed.
  14580. (onGotNewPice): Removed.
  14581. (onGotWrongPiece): Removed.
  14582. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14583. Removed peerConnection, piece.
  14584. (~PeerInteractionCommand): Removed peerConnection.
  14585. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14586. (syncPiece): Moved to SendMessageQueue.
  14587. (decideChoking): Removed PendingMessage.
  14588. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14589. The action after receiving peer message was moved to each message
  14590. class.
  14591. (onGotNewPice): Moved to SendMessageQueue.
  14592. (onGotWrongPiece): Moved to SendMessageQueue.
  14593. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14594. (sendInterest): Moved to SendMessageQueue.
  14595. (createRequestPendingMessage): Removed.
  14596. (sendMessages): Moved to SendMessageQueue.
  14597. (onAbort): Use SendMessageQueue::abortPiece()
  14598. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14599. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14600. (checkPieceHash): Moved to SendMessageQueue.
  14601. (erasePieceOnDisk): Moved to SendMessageQueue.
  14602. * src/PeerMessageUtil.h
  14603. (createBitfieldMessage): Removed.
  14604. (createHaveMessage): Changed return value and arguments.
  14605. (createBitfieldMessage): Changed return value and arguments.
  14606. (createRequestCancelMessage): Removed.
  14607. (createPieceMessage): Changed return value and arguments.
  14608. (getShortIntParam): New function.
  14609. (checkIndex): Changed arguments.
  14610. (checkBegin): Changed arguments.
  14611. (checkLength): Changed arguments.
  14612. (checkPieceOffset): Removed.
  14613. (checkRange): New function.
  14614. (checkBitfield): Changed arguments.
  14615. (createPeerMessage): Removed.
  14616. (checkIntegrity): Removed.
  14617. (createHandshakeMessage): Changed arguments.
  14618. (createChokeMessage): New function.
  14619. (createUnchokeMessage): New function.
  14620. (createInterestedMessage): New function.
  14621. (createNotInterestedMessage): New function.
  14622. (createRequestMessage): New function.
  14623. (createCancelMessage): New function.
  14624. (createPortMessage): New function.
  14625. * src/PeerMessageUtil.cc
  14626. (createBitfieldMessage): Removed.
  14627. (createHaveMessage): Changed return value and arguments.
  14628. (createBitfieldMessage): Changed return value and arguments.
  14629. (createRequestCancelMessage): Removed.
  14630. (createPieceMessage): Changed return value and arguments.
  14631. (getShortIntParam): New function.
  14632. (checkIndex): Changed arguments.
  14633. (checkBegin): Changed arguments.
  14634. (checkLength): Changed arguments.
  14635. (checkPieceOffset): Removed.
  14636. (checkRange): New function.
  14637. (checkBitfield): Changed arguments.
  14638. (createPeerMessage): Removed.
  14639. (checkIntegrity): Removed.
  14640. (createHandshakeMessage): Changed arguments.
  14641. (createChokeMessage): New function.
  14642. (createUnchokeMessage): New function.
  14643. (createInterestedMessage): New function.
  14644. (createNotInterestedMessage): New function.
  14645. (createRequestMessage): New function.
  14646. (createCancelMessage): New function.
  14647. (createPortMessage): New function.
  14648. * src/PeerMessage.h
  14649. (id): Removed.
  14650. (index): Removed.
  14651. (begin): Removed.
  14652. (length): Removed.
  14653. (bitfield): Removed.
  14654. (bitfieldLength): Removed.
  14655. (block): Removed.
  14656. (blockLength): Removed.
  14657. (inProgress): New variable.
  14658. (cuid): New variable.
  14659. (peer): New variable.
  14660. (sendMessageQueue): New variable.
  14661. (logger): New variable.
  14662. (setBitfield): Removed.
  14663. (getBitfield): Removed.
  14664. (setBlock): Removed.
  14665. (getBlock): Removed.
  14666. (getBitfieldLength): Removed.
  14667. (getBlockLength): Removed.
  14668. (isInProgress): New function.
  14669. (toString): Made pure virtual.
  14670. (check): New function.
  14671. (send): New function.
  14672. (receivedAction): New function.
  14673. (getId): Made pure virtual.
  14674. (setId): Removed.
  14675. (getIndex): Removed.
  14676. (setIndex): Removed.
  14677. (getBegin): Removed.
  14678. (setBegin): Removed.
  14679. (getLength): Removed.
  14680. (setLength): Removed.
  14681. (getCuid): New function.
  14682. (setCuid): New function.
  14683. (getPeer): New function.
  14684. (setPeer): New function.
  14685. (getSendMessageQueue): New function.
  14686. (setSendMessageQueue): New function.
  14687. (ID): Removed.
  14688. * src/PeerMessage.cc
  14689. (setBitfield): Removed.
  14690. (setBlock): Removed.
  14691. (toString): Removed.
  14692. * src/TorrentMan.h
  14693. (getPieceLength): New function.
  14694. (getPieceLength): New function.
  14695. * src/SendMessageQueue.h
  14696. (REQUEST_TIME_OUT): New definition.
  14697. (RequestSlots): New definition.
  14698. (MessageQueue): New definition.
  14699. (requestSlotMan): Removed.
  14700. (pendingMessages): Removed.
  14701. (requestSlots): New variable.
  14702. (messageQueue): New variable.
  14703. (torrentMan): New variable.
  14704. (peerConnection): New variable.
  14705. (peer): New variable.
  14706. (piece): New variable.
  14707. (getNewPieceAndSendInterest): New function.
  14708. (createPeerMessage): New function.
  14709. (createHandshakeMessage): New function.
  14710. (send): Made private.
  14711. (setPeerMessageCommonProperty): New function.
  14712. (deleteAllRequestSlot): New function.
  14713. (deleteRequestMessageInQueue): New function.
  14714. (cancelAllRequest): Made private.
  14715. (cancelAllRequest): Made private.
  14716. (countRequestSlot): Made private.
  14717. (addPendingMessage): Removed.
  14718. (deletePendingPieceMessage): Removed.
  14719. (deletePendingRequestMessage): Removed.
  14720. (addMessage): New function.
  14721. (deletePieceMessageInQueue): New function.
  14722. (deleteTimeoutRequestSlot): Changed argument.
  14723. (deleteCompletedRequestSlot): Changed argument.
  14724. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14725. (getCorrespondingRequestSlot): New function.
  14726. (countPendingMessage): Removed.
  14727. (countMessageInQueue): New function.
  14728. (getTorrentMan): New function.
  14729. (getPeerConnection): New function.
  14730. (hasDownloadPiece): New function.
  14731. (getDownloadPiece): New function.
  14732. (setDownloadPiece): New function.
  14733. (syncPiece): New function.
  14734. (sendMessages): New function.
  14735. (sendNow): New function.
  14736. (trySendNow): New function.
  14737. (abortPiece): New function.
  14738. (sendHandshake): New function.
  14739. (receiveMessage): New function.
  14740. (receiveHandshake): New function.
  14741. (createRequestMessage): New function.
  14742. (createCancelMessage): New function.
  14743. (createPieceMessage): New function.
  14744. (createHaveMessage): New function.
  14745. (createChokeMessage): New function.
  14746. (createUnchokeMessage): New function.
  14747. (createInterestedMessage): New function.
  14748. (createNotInterestedMessage): New function.
  14749. (createBitfieldMessage): New function.
  14750. (createKeepAliveMessage): New function.
  14751. * src/SendMessageQueue.cc
  14752. (SendMessageQueue): Removed requestSlotMan.
  14753. Instantiated peerConnection here.
  14754. (~SendMessageQueue): Removed requestSlotMan.
  14755. Added deletion of peerConnection and the contents of messageQueue.
  14756. (send): Updated according to the change of messageQueue.
  14757. (addPendingMessage): Renamed to addMessage.
  14758. (addMessage): New function.
  14759. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14760. (deletePieceMessageInQueue): New function.
  14761. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14762. (deleteRequestMessageInQueue): New function.
  14763. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14764. here.
  14765. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14766. (...) was moved here.
  14767. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14768. moved here.
  14769. (deleteCompletedRequestSlot):
  14770. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14771. (getCorrespondingRequestSlot):
  14772. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14773. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14774. (countPendingMessage): Renamed to countMessageInQueue.
  14775. (countMessageInQueue): New function.
  14776. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14777. (receiveHandshake): New function.
  14778. (createHandshakeMessage): New function.
  14779. (receiveMessage): New function.
  14780. (createPeerMessage): New function.
  14781. (syncPiece): New function.
  14782. (getNewPieceAndSendInterest): New function.
  14783. (sendMessages): New function.
  14784. (sendNow): New function.
  14785. (trySendNow): New function.
  14786. (sendHandshake): New function.
  14787. (abortPiece): New function.
  14788. (getDownloadPiece): New function.
  14789. (getPeerMessageCommonProperty): New function.
  14790. (createRequestMessage): New function.
  14791. (createCancelMessage): New function.
  14792. (createPieceMessage): New function.
  14793. (createHaveMessage): New function.
  14794. (createChokeMessage): New function.
  14795. (createUnchokeMessage): New function.
  14796. (createInterestedMessage): New function.
  14797. (createNotInterestedMessage): New function.
  14798. (createBitfieldMessage): New function.
  14799. (createKeepAliveMessage): New function.
  14800. To add simple Content-Disposition support:
  14801. * src/HttpResponseCommand.h (determinFilename): New function.
  14802. * src/HttpResponseCommand.cc (executeInternal):
  14803. Use determinFilename(headers) instead of req->getFile() when comparing
  14804. filename.
  14805. (determinFilename): New function.
  14806. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14807. req->getFile().
  14808. (handleOtherEncoding): Use determinFilename(headers) instead of
  14809. req->getFile().
  14810. * src/Util.h (getContentDispositionFilename): New function.
  14811. * src/Util.cc (getContentDispositionFilename): New function.
  14812. * src/LogFactory.h (release): New function.
  14813. * src/LogFactory.cc (release): New function.
  14814. To fix a bug that causes out-of-bound exception when HTTP status
  14815. line is wrong:
  14816. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14817. size.
  14818. * src/common.h (Deleter): New class.
  14819. * src/SegmentMan.cc
  14820. (~SegmentMan): Added deletion of splitter and diskWriter.
  14821. * src/DownloadEngine.h
  14822. (Commands): Use deque.
  14823. (clearQueue): New function.
  14824. * src/DownloadEngine.cc
  14825. (~DownloadEngine): Added deletion of segmentMan.
  14826. (cleanQueue): New function.
  14827. * src/TorrentDownloadEngine.h
  14828. (TorrentDownloadEngine): The implementation was moved to
  14829. TorrentDownloadEngine.cc.
  14830. (~TorrentDownloadEngine): The implementation was moved to
  14831. TorrentDownloadEngine.cc.
  14832. * src/TorrentDownloadEngine.cc
  14833. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14834. * src/main.cc
  14835. (clearRequest): Removed.
  14836. (handler): Added deletion of e.
  14837. (torrentHandler): Added deletion of te.
  14838. (main): Do not share splitter.
  14839. Use Deleter instead of clearRequest.
  14840. Deletion of classes were updated.
  14841. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14842. * src/main.cc (main): Fixed typo.
  14843. * src/message.h: Fixed typo.
  14844. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14845. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14846. To add --select-file command-line option:
  14847. * src/Util.cc
  14848. (unfoldRange): New function.
  14849. (getNum): New function.
  14850. (unfoldSubRange): New function
  14851. * src/main.cc
  14852. (showUsage): Added help message.
  14853. (main): Added --select-file command-line option. Updated the layout of
  14854. file listing.
  14855. * src/common.h
  14856. (Integers): New definition.
  14857. * src/SocketCore.cc
  14858. (writeData): Removed timeout argument.
  14859. (readData): Removed timeout argument.
  14860. (peekData): Removed timeout argument.
  14861. * src/Socket.cc
  14862. (writeData): Removed timeout argument.
  14863. (readData): Removed timeout argument.
  14864. (peekData): Removed timeout argument.
  14865. * Release 0.4.1
  14866. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14867. To deploy upload rate based choking algorithm:
  14868. * src/PeerInteractionCommand.cc
  14869. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14870. peer currently used.
  14871. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14872. download completes. Simplified.
  14873. (receiveMessage): Updated.
  14874. * src/TorrentMan.h
  14875. (activePeers): New variable.
  14876. (addActivePeer): New function.
  14877. (getActivePeers): New function.
  14878. (deleteActivePeer): New function.
  14879. * src/TorrentMan.cc
  14880. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14881. * src/PeerAbstractCommand.cc
  14882. (onAbort): Use peer->resetStatus().
  14883. * src/main.cc
  14884. (PeerChokeCommand.h): Included.
  14885. (main): Added the instance of ChokingCommand to the command queue.
  14886. * src/Peer.h
  14887. (amChoking): Renamed from amChocking
  14888. (chokingRequired): New variable.
  14889. (optUnchoking): New variable.
  14890. (deltaUpload): New variable.
  14891. (deltaDownload): New variable.
  14892. (addDeltaUpload): New function.
  14893. (resetDeltaUpload): New function.
  14894. (addDeltaDownload): New function.
  14895. (resetDeltaDownload): New function.
  14896. (addPeerUpload): Added a call to addDeltaUpload.
  14897. (addPeerDownload): Added a call to addDeltaDownload.
  14898. * src/Peer.cc
  14899. (shouldBeChoking): Renamed from shouldChoke.
  14900. (resetStatus): New function.
  14901. * src/PeerChokeCommand.h: New class.
  14902. * src/PeerChokeCommand.cc: New class.
  14903. To add lazy upload speed limiter:
  14904. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14905. statistics calculation to TorrentDownloadEngine.
  14906. * src/TorrentConsoleDownloadEngine.cc
  14907. (sendStatistics): Renamed from printStatistics.
  14908. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14909. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14910. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14911. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14912. calculation.
  14913. (sendStatistics): New function as pure virtual function.
  14914. (getUploadSpeed): New function.
  14915. * src/TorrentDownloadEngine.cc
  14916. (initStatistics): New function.
  14917. (calculateSpeed): New function.
  14918. (calculateStatistics): New function.
  14919. * src/SendMessageQueue.h
  14920. (uploadLength): New variable.
  14921. (send): Added an argument.
  14922. (setUploadLimit): New function.
  14923. (getUploadLimit): New function.
  14924. * src/SendMessageQueue.cc
  14925. (send): Added upload speed limiter.
  14926. * src/prefs.h
  14927. (PREF_UPLOAD_LIMIT): New definition.
  14928. * src/PeerInteractionCommand.cc
  14929. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14930. * src/main.cc
  14931. (main): Added --upload-limit option
  14932. For bug fixes:
  14933. * src/main.cc
  14934. (showUsage): Corrected --listen-port help
  14935. Other changes:
  14936. * src/TorrentMan.cc
  14937. (getPeer): Return nullPeer if connection is grather than
  14938. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14939. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14940. To add some useful information to the exception message:
  14941. * src/SocketCore.cc : Updated messages.
  14942. * src/SegmentMan.cc :
  14943. * src/TorrentMan.cc : Updated messages.
  14944. * src/MultiDiskWriter.cc : Updated messages.
  14945. * src/Util.cc : Updated messages.
  14946. * src/AbstractDiskWriter.cc : Updated messages.
  14947. * src/PreAllocationDiskWriter.cc : Updated messages.
  14948. * src/message.cc : Added new messages. Updated some messages.
  14949. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14950. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14951. Updated threshold from 30 to 15.
  14952. * src/AbstractDiskWriter.h (filename): New variable.
  14953. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14954. (createFile): Assigned filename.
  14955. * src/main.cc: Updated the help message for http-auth-scheme.
  14956. * Release 0.4.0
  14957. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14958. To add TrackerUpdateCommand with which replaces
  14959. CompactTrackerResponseProcessor:
  14960. * src/TrackerWatcherCommand.h (req): Removed.
  14961. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14962. if the number of peer connections are less than 30.
  14963. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14964. * src/SegmentMan.h (diskWriter): New function.
  14965. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14966. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14967. (main): Use TrackerUpdateCommand.
  14968. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14969. (req): New variable.
  14970. (setTrackerResponseProcessor): Removed.
  14971. (getTrackerResponseProcessor): Removed.
  14972. (processTrackerResponse): Removed.
  14973. * src/DownloadEngine.h (diskWriter): Removed.
  14974. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14975. to torrentMan->processTrackerResponse().
  14976. To add Util::expandBuffer:
  14977. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14978. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14979. * src/Util.h (expandBuffer): New function.
  14980. To fix the bug that causes segmentation fault when "-l ." is specified
  14981. in command-line option:
  14982. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14983. (openFile): New function.
  14984. (closeFile): New function.
  14985. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14986. (~SimpleLogger): Call closeFile();
  14987. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14988. * src/main.cc (main): Added a check to see logger is configured
  14989. properly.
  14990. To enable HTTP authentication without specifying "--http-auth-scheme"
  14991. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14992. * src/HttpConnection.cc (createRequest): Send Authorization header
  14993. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14994. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14995. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14996. * src/Peer.cc (shouldChoke): Updated algorithm.
  14997. * src/message.h (EX_AUTH_FAILED): New definition.
  14998. (EX_FILE_OPEN): New definition.
  14999. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15000. if status == 401.
  15001. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15002. if req->isTorrent == true.
  15003. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15004. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15005. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15006. (createFile): Updated message.
  15007. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15008. To add a readout of estimated remaining time to normal HTTP/FTP
  15009. downloads:
  15010. * src/ConsoleDownloadEngine.h (startup): New variable.
  15011. (startupLength): New variable.
  15012. (isStartupLengthSet): New variable.
  15013. (avgSpeed): New variable.
  15014. (eta): New variable.
  15015. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15016. estimated remaining time.
  15017. (initStatistics): Initialized newly added variables.
  15018. (calculateStatistics): Calculate average speed and estimated remaining
  15019. time.
  15020. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15021. * src/TrackerDownloadCommand.h: Removed.
  15022. * src/TrackerDownloadCommand.cc: Removed.
  15023. * src/TrackerInitCommand.h: Removed.
  15024. * src/TrackerInitCommand.cc: Removed.
  15025. * src/TrackerUpdateCommand.h: Removed.
  15026. * src/TrackerUpdateCommand.cc: Removed.
  15027. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15028. url written in TrackerInitCommand was moved here. Do not create
  15029. tracker request command if torrentMan->trackers != 0.
  15030. * src/CompactTrackerResponseProcessor.h: New class.
  15031. * src/CompactTrackerResponseProcessor.cc: New class.
  15032. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15033. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15034. Decoupled TorrentDownloadEngine from this.
  15035. * src/SegmentMan.h (init): New function.
  15036. * src/SegmentMan.cc (init): New function.
  15037. * src/TorrentMan.h (responseProcessor): New variable.
  15038. (trackers): New variable.
  15039. (setTrackerResponseProcessor): New function.
  15040. (getTrackerResponseProcessor): New function.
  15041. (processTrackerResponse): New function.
  15042. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15043. (processTrackerResponse): New function.
  15044. * src/main.cc (main): Use ByteArrayDiskWriter and
  15045. CompactTrackerResponseProcessor.
  15046. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15047. processTrackerResponse().
  15048. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15049. readout.
  15050. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15051. which indicates download has completed.
  15052. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15053. (closeFile): fd >= 0, not fd > 0
  15054. * src/main.cc (main): Added short cut for show-files.
  15055. Added short cut for torrent-file.
  15056. Added new command-line option listen-port.
  15057. Updated i18n messages.
  15058. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15059. To add LogFactory which creates singleton logger:
  15060. * src/LogFactory.h: New class.
  15061. * src/LogFactory.cc: New class.
  15062. * src/Command.h (logger): New variable.
  15063. (Constructor): Use LogFactory.
  15064. * src/AbstractCommand.cc: Use Command::logger
  15065. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15066. Use LogFactory.
  15067. * src/SegmentSplitter.h : Made logger protected.
  15068. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15069. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15070. * src/DownloadEngine.h : Made logger protected.
  15071. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15072. * src/PeerInteractionCommand.cc : Use Command::logger.
  15073. * src/HttpResponseCommand.cc : Use Command::logger.
  15074. * src/SegmentMan.h : Made logger private.
  15075. * src/TorrentMan.h : Made logger private.
  15076. * src/TorrentMan.cc : Use LogFactory.
  15077. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15078. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15079. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15080. Use LogFactory.
  15081. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15082. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15083. Use LogFactory.
  15084. * src/DownloadCommand.cc : Use Command::logger.
  15085. * src/PeerAbstractCommand.cc : Use Command::logger.
  15086. * src/PeerListenCommand.cc : Use Command::logger.
  15087. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15088. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15089. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15090. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15091. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15092. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15093. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15094. Use LogFactory.
  15095. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15096. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15097. Use LogFactory.
  15098. * src/main.cc (main): Use LogFactory.
  15099. * src/DiskAdaptor.h (logger): New variable.
  15100. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15101. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15102. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15103. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15104. parameter to a tracker request.
  15105. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15106. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15107. * src/main.cc (setSignalHander): New function.
  15108. (main): Added a handler for SIGTERM.
  15109. (handler): Updated message.
  15110. (torrentHandler): Updated message.
  15111. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15112. * src/TorrentConsoleDownloadEngine.cc
  15113. (onPartialDownloadingCompletes): Renamed as
  15114. onSelectiveDownloadingCompletes.
  15115. (onSelectiveDownloadingCompletes): Updated message.
  15116. To add DiskAdaptor which abstract DiskWriter family:
  15117. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15118. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15119. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15120. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15121. MultiDiskAdaptor.h.
  15122. (readFileEntry): Changed its arguments.
  15123. (setup): setupDiskWriter is merged into this function.
  15124. (setupDiskWriter): Removed.
  15125. (setFileFilter): New function.
  15126. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15127. made in readFileEntry.
  15128. (getFilePath): Removed.
  15129. (getTempFilePath): Removed.
  15130. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15131. (fixFilename): Removed.
  15132. (copySingleFile): Removed.
  15133. (splitMultiFile): Removed.
  15134. (deleteTempFile): Removed.
  15135. (setFileEntriesToDownload): Removed.
  15136. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15137. (isSelectiveDownloadingMode): New function.
  15138. (setAllMultiFileRequestedState): Removed.
  15139. (finishPartialDownloadingMode): Renamed as
  15140. finishSelectiveDownloadingMode.
  15141. (finishSelectiveDownloadingMode): New function.
  15142. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15143. (getSelectedTotalLength): New function.
  15144. (onDownloadComplete): Use diskAdaptor.
  15145. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15146. (Range): Removed.
  15147. (setMultiFileEntries): Renamed as setFileEntries.
  15148. (setFileEntries): New function.
  15149. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15150. (pieceLength): New variable.
  15151. * src/main.cc (printDownloadCompeleteMessage): New function.
  15152. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15153. (main): Renamed torrent-show-files to show-files.
  15154. Rewritten file contents listing.
  15155. * src/TorrentMan.h (FileEntry): Removed.
  15156. (multiFileTopDir): Removed.
  15157. (multiFileEntries): Removed.
  15158. (diskWriter): Removed.
  15159. (diskAdaptor): New variable.
  15160. * src/DefaultDiskWriter.h (totalLength): New variable.
  15161. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15162. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15163. diskWriter.
  15164. * src/TorrentConsoleDownloadEngine.h
  15165. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15166. (partialTotalLength): Renamed as selectedTotalLength.
  15167. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15168. openExistingFile, otherwise call initAndOpenFile.
  15169. (closeFile): fd > 0, not fd != 0.
  15170. * src/DirectDiskAdaptor.h: New class.
  15171. * src/DirectDiskAdaptor.cc: New class.
  15172. * src/MultiDiskAdaptor.h: New class.
  15173. * src/MultiDiskAdaptor.cc: New class.
  15174. * src/CopyDiskAdaptor.h: New class.
  15175. * src/CopyDiskAdaptor.cc: New class.
  15176. * src/DiskAdaptor.h: New class.
  15177. * src/DiskAdaptor.cc: New class.
  15178. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15179. (PREF_SHOW_FILES): New definition.
  15180. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15181. To add the ability to download multi torrent into respective files
  15182. directly:
  15183. * src/DiskWriter.h (openFile): New function.
  15184. (seek): Removed.
  15185. * src/MultiDiskWriter.h: New class.
  15186. * src/MultiDiskWriter.cc: New class.
  15187. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15188. protected.
  15189. (openFile): New function.
  15190. * src/AbstractDiskWriter.cc (openFile): New function.
  15191. * src/prefs.h (V_FALSE): New definition.
  15192. (PREF_DIRECT_FILE_MAPPING): New definition.
  15193. * src/TorrentMan.h (setupDiskWriter): New function.
  15194. (setAllMultiFileRequestedState): New function.
  15195. (onDownloadComplete): New function.
  15196. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15197. (setupDiskWriter): New function.
  15198. (getFilePath): Updated.
  15199. (getTempFilePath): Updated.
  15200. (getSegmentFilePath): Updated.
  15201. (fixFilename): Updated.
  15202. (deleteTempFile): Updated.
  15203. (setAllMultiFileRequestedState): New function.
  15204. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15205. (finishPartialDownloadingMode): Reset requested flags.
  15206. (onDownloadComplete): New function.
  15207. * src/main.cc: Added --direct-file-mapping option.
  15208. Use TorrentMan::setupDiskWriter().
  15209. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15210. onDownloadComplete().
  15211. To fix ETA bug:
  15212. * src/Util.h (difftvsec): New function.
  15213. * src/Util.cc (difftvsec): New function.
  15214. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15215. type of "elapsed" instead of long long int.
  15216. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15217. The updates of statistics takes place every 1 seconds.
  15218. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15219. (calculateSpeed): Changed its argument signature.
  15220. * src/PeerMessage.cc (toString): Fixed message.
  15221. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15222. To print ETA:
  15223. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15224. completion handling when dealing with
  15225. TorrentMan::isPartialDownloadingMode() == true.
  15226. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15227. New function.
  15228. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15229. (sessionDownloadLength): New variable.
  15230. (avgSpeed): New variable.
  15231. (eta): New variable.
  15232. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15233. new variables: eta, avgSpeed, startup.
  15234. (calculateSpeed): Calculate average speed and ETA.
  15235. (printStatistics): Added ETA.
  15236. * src/Util.h (secfmt): New function.
  15237. * src/Util.cc (secfmt): New function.
  15238. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15239. To detect "keep alive" flooding:
  15240. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15241. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15242. variable: keepAliveCount.
  15243. (detectMessageFlooding): Added "keep alive" flooding detection.
  15244. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15245. received.
  15246. To add the ability to download only specified files in multi-file
  15247. torrent:
  15248. * src/BitfieldMan.h (filterBitfield): New variable.
  15249. (filterEnabled): New variable.
  15250. (setFilterBit): New function.
  15251. (enableFilter): New function.
  15252. (disableFilter): New function.
  15253. (isFilterEnabled): New function.
  15254. (getFilteredTotalLength): New function.
  15255. (getCompletedLength): New function.
  15256. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15257. filterBitfield, filterEnabled.
  15258. (CopyConstructor): Added filterBitfield and filterEnabled.
  15259. (operator==): Added filterBitfield and filterEnabled.
  15260. (Destructor): Added filterBitfield.
  15261. (getMissingIndex): Use filterBitfield.
  15262. (getMissingUnusedIndex): Use filterBitfield.
  15263. (getFirstMissingUnusedIndex): Use filterBitfield.
  15264. (getFirstMissingUnusedIndex): Use filterBitfield.
  15265. (getAllMissingIndexes): Use filterBitfield.
  15266. (countMissingBlock): Use filterBitfield.
  15267. (countBlock): Use filterBitfield.
  15268. (setBitInternal): Added new argument on.
  15269. (setUseBit): Use setBitInternal.
  15270. (unsetUseBit): Use setBitInternal.
  15271. (setBit): Use setBitInternal.
  15272. (unsetBit): Use setBitInternal.
  15273. (isAllBitSet): Use filterBitfield.
  15274. (setFilterBit): New function.
  15275. (addFilter): New function.
  15276. (enableFilter): New function.
  15277. (disableFilter): New function.
  15278. (clearFilter): New function.
  15279. (isFilterEnabled): New function.
  15280. (getFilteredTotalLength): New function.
  15281. (getCompletedLength): New function.
  15282. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15283. Initalized newly added variables.
  15284. [FileEntry](offset): New variable.
  15285. [FileEntry](extracted): New variable.
  15286. [FileEntry](requested): New variable.
  15287. (readFileEntry): New function.
  15288. (option): New variable.
  15289. (splitMultiFile): Removed const qualifier.
  15290. (fixFilename): Removed const qualifier.
  15291. (readFileEntryFromMetaInfoFile): New function.
  15292. (finishPartialDownloadingMode): New function.
  15293. (isPartialDownloadingMode): New function.
  15294. (setFileEntriesToDownload): New function.
  15295. (getCompletedLength): New function.
  15296. (getPartialTotalLength): New function.
  15297. * src/TorrentMan.cc (readFileEntry): New function.
  15298. (setup): Use readFileEntry. If no-preallocation option is specified,
  15299. use DefaultDiskWriter.
  15300. (readFileEntryFromMetaInfoFile): New function.
  15301. (fixFilename): Removed const qualifier.
  15302. (splitMultiFile): Removed const qualifier.
  15303. (setFileEntriesToDownload): New function.
  15304. (isPartialDownloadingMode): New function.
  15305. (finishPartialDownloadingMode): New function.
  15306. (getCompletedLength): New function.
  15307. (getPartialTotalLength): New function.
  15308. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15309. New variable.
  15310. (partialTotalLength): New variable.
  15311. (downloadLength): New variable.
  15312. (totalLength): New variable.
  15313. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15314. Added log.
  15315. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15316. partialTotalLength, downloadLength, totalLength.
  15317. (calculate): Calculate downloadLength and totalLength.
  15318. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15319. * src/main.cc (addCommand): Changed argument signature.
  15320. (main): Added new variable: args. Added new option "torrent-show-files"
  15321. "no-preallocation". Usage is not updated yet.
  15322. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15323. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15324. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15325. Attempt to add the ability to listing file entries in a .torrent file.
  15326. This feature is not yet complete.
  15327. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15328. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15329. (getName): New function.
  15330. * src/TorrentMan.h (getMultiFileEntries): New function.
  15331. (getName): New function.
  15332. * src/main.cc (main): Use above 2 funtion.
  15333. * Release 0.3.2
  15334. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15335. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15336. (detectMessageFlooding): Updated threshold value.
  15337. (checkLongTimePeerChoking): Updated timeout value.
  15338. (getNewPieceAndSendInterest): Added debug log.
  15339. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15340. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15341. (getPeer): Updated.
  15342. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15343. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15344. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15345. is localhost.
  15346. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15347. * src/PendingMessage.cc (processMessage): Not to send piece message
  15348. if peer is not interested in the pieces localhost has.
  15349. * src/Peer.cc (shouldChoke): Updated.
  15350. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15351. * src/Util.cc (isPowerOf): New function.
  15352. * src/Util.h (isPowerOf): New function.
  15353. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15354. whether or not it is power of 2.
  15355. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15356. Added new class SendMessageQueue that includes PendingMessages and
  15357. RequestSlotMan.
  15358. * src/SendMessageQueue.h: New class.
  15359. * src/SendMessageQueue.cc: New class.
  15360. * src/PendingMessage.h: Added new member variable blockIndex and its
  15361. accessors.
  15362. (createRequestMessage): Updated.
  15363. * src/PendingMessage.cc (createRequestMessage): Updated.
  15364. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15365. SendMessageQueue.
  15366. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15367. (receiveMessage): Updated with SendMessageQueue.
  15368. (deletePendingPieceMessage): Removed.
  15369. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15370. (sendInterest): Updated with SendMessageQueue.
  15371. (createRequestPendingMessage): Updated with SendMessageQueue.
  15372. (sendMessages): Updated with SendMessageQueue.
  15373. (onAbort): Updated with SendMessageQueue.
  15374. (keepAlive): Updated with SendMessageQueue.
  15375. (beforeSocketCheck): Updated SendMessageQueue.
  15376. * src/PeerInteractionCommand (sendMessages): Shuffle
  15377. missingBLockIndexes before using it.
  15378. Added its own timeout for peer connection.
  15379. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15380. setter.
  15381. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15382. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15383. Added setTimeout() call.
  15384. (executeInternal): Added setTimeout() call.
  15385. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15386. Added timeout.
  15387. (isTimeoutDetected): Updated.
  15388. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15389. option.
  15390. Added *simple* message flooding checker.
  15391. * src/PeerInteractionCommand.cc (executeInternal):
  15392. Added detectMessageFlooding() call.
  15393. (detectMessageFlooding): New function.
  15394. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15395. (beforeSocketCheck): Added detectMessageFlooding() call.
  15396. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15397. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15398. Removed deletePendingPieceMessage(), getRequestSlot(),
  15399. deleteRequestSlot(), deleteAllRequestSlot().
  15400. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15401. Added checkLongTimePeerChoking() call.
  15402. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15403. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15404. if duplicate == false.
  15405. The parameter "uploaded" and "downloaded" in the tracker request are
  15406. the size since the client sent the "started" event to the tracker.
  15407. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15408. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15409. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15410. getSessionDownloadedSize(), getSessionUploadedSize().
  15411. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15412. getSessionUploadedSize() instead of getDownloadedSize(),
  15413. getUploadedSize().
  15414. * src/PendingMessage.cc (processMessage): Do not send request message
  15415. if the peer is choking the client.
  15416. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15417. less than interval.
  15418. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15419. * configure.in: Added gnutls support. Added several CPP macros.
  15420. * m4/openssl.m4: Added.
  15421. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15422. readData(), peekData(). Added gnutls support.
  15423. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15424. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15425. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15426. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15427. Instead, added a check for whether setup method has executed
  15428. successfully.
  15429. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15430. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15431. * src/Makefile.am: Updated.
  15432. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15433. using whether OpenSSL or gcrypt, depending on the result of configure
  15434. script.
  15435. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15436. messageDigest.h.
  15437. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15438. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15439. Fixed memory leak.
  15440. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15441. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15442. Removed instantiation of TrackerInitCommand. Instead,
  15443. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15444. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15445. ENABLE_SSL.
  15446. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15447. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15448. If a piece is already acquired by another command, delete the request
  15449. slots for the piece.
  15450. * src/TrackerUpdateCommand.cc (execute):
  15451. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15452. Added a check whether peer list is null.
  15453. Fixed the bug that causes sending completed event to the tracker
  15454. several times.
  15455. * src/TrackerInitCommand.cc (execute):
  15456. Fixed the bug that causes sending completed event to the tracker
  15457. several times.
  15458. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15459. by using messageDigest.h.
  15460. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15461. * PeerConnection.cc: Replaced log message "keep-alive" with
  15462. "keep alive".
  15463. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15464. localhost long time.
  15465. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15466. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15467. at most 100 failure entry from the list. If with duplicate = false,
  15468. MAX_PEER_LIST is not checked.
  15469. * PeerListenCommand.cc: Fixed the argument order of log message.
  15470. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15471. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15472. Added warn().
  15473. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15474. Implemented warn().
  15475. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15476. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15477. * Request.h: Added AFTER_COMPLETED event.
  15478. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15479. instead of downloaded size and progress(%) after download completes.
  15480. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15481. message to the peer if it is interested in what localhost has
  15482. downloaded.
  15483. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15484. destination instead of just renaming it.
  15485. * TorrentMan.cc: Added deleteTempFile().
  15486. * PeerAbstractCommand.cc: do not stop execution after download
  15487. completes. This makes localhost a seeder.
  15488. * Util.{h,cc}: Added fileCopy().
  15489. * PeerListenCommand.cc: do not stop execution after download completes.
  15490. This makes localhost a seeder.
  15491. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15492. Added TorrentMan::deleteTempFile() to torrentHandler.
  15493. Initialized the variable dir as ".".
  15494. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15495. Deleted renameSingleFile().
  15496. Added copySingleFile(), deleteTempFile().
  15497. * DownloadEngine.h: Added virtual function afterEachIteration().
  15498. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15499. in onEndOfRun() to afterEachIteration().
  15500. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15501. true.
  15502. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15503. In rangedFileCopy(), added try-catch block to properly close file
  15504. descriptors.
  15505. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15506. Added afterEachIteration(), isFilenameFixed().
  15507. * Peer.cc: Changed choking strategy.
  15508. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15509. * TrackerInitCommand.cc: Send completed event only once.
  15510. * DownloadEngine.cc: Added a call to afterEachIteration().
  15511. * TrackerUpdateCommand.cc: Do not stop execution after download
  15512. completes.
  15513. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15514. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15515. received from a tracker.
  15516. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15517. Decreased the number of failure peers to delete to 0(just comment out
  15518. the line).
  15519. * Release 0.3.1
  15520. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15521. * PeerInteractionCommand.cc: added a call to
  15522. TorrentMan::unadvertisePiece in Destructor.
  15523. * PeerInteractionCommand.cc: make have message sent immediately
  15524. if the size of pending message queue is zero.
  15525. * TorrentMan.cc: set the maximum size of peer list to 250.
  15526. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15527. to deque.
  15528. * Util.cc: fixed rangedFileCopy.
  15529. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15530. to Constructor. Also, moved digest cleanup to Destructor.
  15531. * MetaFileUtil.cc: fixed memory leak
  15532. * replaced std::vector with std::deque.
  15533. * AbstractCommand.cc: casted timeout value to long long int.
  15534. * ChunkedEncoding.cc: fixed memory leak.
  15535. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15536. * SleepCommand.cc: casted timeout value to long long int.
  15537. * Data.cc: fixed memory leak.
  15538. * Data.cc: fixed toLLInt().
  15539. * BitfieldMan.cc: fixed memory leak.
  15540. * TorrentMan.cc: initialized storeDir to ".".
  15541. * TorrentMan.cc: fixed memory leak.
  15542. * TorrentMan.cc: corrected file paths of splitted files.
  15543. * PeerAbstractCommand.cc: casted timeout to long long int.
  15544. * main.cc: added delete(req) and delete(te->diskWriter).
  15545. * RequestSlot.cc: casted timeout value to long long int.
  15546. * Request.cc: fixed memory leak.
  15547. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15548. have the piece.
  15549. * Peer.{h,cc}: added hasPiece(int index).
  15550. * main.cc: corrected addCommand.
  15551. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15552. * BitTorrent protocol support added.
  15553. * Release 0.3.0
  15554. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15555. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15556. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15557. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15558. decoding did not work properly.
  15559. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15560. * DownloadEngine.h: included sys/time.h
  15561. * DownloadEngine.cc: remove sys/time.h
  15562. * Makefile.am (SUBDIRS): Add intl.
  15563. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15564. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15565. * main.cc: correct help message for --http-auth-scheme.
  15566. * main.cc: changed e-mail address for bug reports.
  15567. * ja.po: added japanese translation.
  15568. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15569. * SimpleLogger.cc: flush log file instead of stdout.
  15570. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15571. * main.cc: Fixed command-line option: max-tries
  15572. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15573. does not equal to seg.sp.
  15574. * DownloadCommand.cc: If EOF is got from the server and the total size
  15575. of file is not zero, then throw DlRetryEx.
  15576. * main.cc: Set the minium value of min-segment-size to 1024.
  15577. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15578. fails because of a regression since 0.2.0 release.
  15579. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15580. * HttpConnection.cc:
  15581. * common.h: defined the user agent name as macro
  15582. * DownloadEngine.{h, cc}:
  15583. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15584. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15585. * main.cc: Download complete/abort message is now generated by main.
  15586. * Makefile.am (SUBDIRS): Add m4.
  15587. (ACLOCAL_AMFLAGS): New variable.
  15588. (EXTRA_DIST): New variable.
  15589. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15590. * gettext: added gettext functionality
  15591. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15592. * AbstractCommand.cc:
  15593. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15594. unregister its cuid from SegmentMan.
  15595. * DownloadEngine.cc: .aria2 file was written when a downloading
  15596. failed with errors.
  15597. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15598. Added "User-Agent" header to CONNECT proxy request.
  15599. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15600. properly.
  15601. * Logger.h:
  15602. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15603. * ChunkedEncoding.cc: Added #include directive for strings.h
  15604. * Release 0.2.1
  15605. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15606. * Util.{h,cc}: added startsWith().
  15607. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15608. Util::endsWith().
  15609. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15610. * common.h: added #include directive of limit.h.
  15611. * DownloadEngine.cc: added #include directive of sys/time.h and
  15612. algorithm.
  15613. * Exception.h: added #include directive of stdio.h.
  15614. * AbstractCommand.h: added #include directive of sys/time.h.
  15615. * DownloadCommand.h: added #include directive of sys/time.h.
  15616. * *.h: added #include directive of common.h to all base classes.
  15617. subclasses' one was removed.
  15618. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15619. does not define these macros.
  15620. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15621. * Release 0.2.0
  15622. * main.cc:
  15623. * HttpInitiateConnectionCommand.{h,cc}:
  15624. * prefs.h:
  15625. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15626. We can now use GET command in http proxy.
  15627. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15628. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15629. that splits slowest segment of SegmentMan::commands vector.
  15630. This is the default split algorithm of aria2.
  15631. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15632. that splits first segment of SegmentMan::commands vector.
  15633. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15634. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15635. * Segment.h:
  15636. * SegmentMan.cc: Added speed field to Segment.h
  15637. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15638. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15639. * message.h: Change file size related %d to %lld.
  15640. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15641. * FtpInitiateConnectionCommand.{h,cc}:
  15642. * FtpNegotiationCommand.{h,cc}:
  15643. * FtpDownloadCommand.{h,cc}:
  15644. * FtpConnection.{h,cc}: Added FTP support
  15645. * SimpleLogger.cc: Log message now includes time information.
  15646. * main.cc: The value of --http-auth-scheme option is chagned from
  15647. 'BASIC' to 'basic'
  15648. * main.cc: Added --timeout command-line option.
  15649. * main.cc: Added --min-segment-size command-line option.
  15650. * main.cc: Added --max-retries command-line option.
  15651. * prefs.h: option string constants are now defined in prefs.h
  15652. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15653. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15654. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15655. with version 0.1.0's one.
  15656. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15657. * configure.in: Added --enable-ssl option to configure script.
  15658. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15659. cannot permit absoluteURI as Request-URI.
  15660. * HttpConnection.cc: Added Referer support.
  15661. * main.cc: Added referer command-line option.
  15662. * main.cc: Added rety-wait command-line option.
  15663. * Exception.h: Fixed formating bug in Exception::setMsg()
  15664. * SocketCore.{h,cc}:
  15665. * Socket.{h, cc}:
  15666. * Request.cc:
  15667. * InitiateConnectionCommandFactory.cc:
  15668. * HttpRequestCommand.cc: Added HTTPS support.
  15669. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  15670. for SocketCore.
  15671. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  15672. size is wrong
  15673. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  15674. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  15675. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  15676. * Release 0.1.0