ChangeLog 587 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710
  1. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Removed _uris from RequestGroup. All functions that refer to _uris
  3. were moved to FileEntry. Exit status code are now defined in
  4. DownloadResultCode.h.
  5. * src/AbstractCommand.cc
  6. * src/AdaptiveURISelector.cc
  7. * src/AdaptiveURISelector.h
  8. * src/AutoSaveCommand.cc
  9. * src/BtPostDownloadHandler.cc
  10. * src/CheckIntegrityDispatcherCommand.cc
  11. * src/CookieStorage.cc
  12. * src/DHTAutoSaveCommand.cc
  13. * src/DHTBucketRefreshCommand.cc
  14. * src/DHTEntryPointNameResolveCommand.cc
  15. * src/DHTInteractionCommand.cc
  16. * src/DHTPeerAnnounceCommand.cc
  17. * src/DHTTokenUpdateCommand.cc
  18. * src/DlAbortEx.h
  19. * src/DlRetryEx.h
  20. * src/DownloadCommand.cc
  21. * src/DownloadContext.h
  22. * src/DownloadFailureException.h
  23. * src/DownloadResult.h
  24. * src/DownloadResultCode.h
  25. * src/FeedbackURISelector.cc
  26. * src/FeedbackURISelector.h
  27. * src/FileEntry.cc
  28. * src/FileEntry.h
  29. * src/FtpNegotiationCommand.cc
  30. * src/HttpListenCommand.cc
  31. * src/HttpResponseCommand.cc
  32. * src/HttpServerResponseCommand.cc
  33. * src/HttpSkipResponseCommand.cc
  34. * src/InOrderURISelector.cc
  35. * src/InOrderURISelector.h
  36. * src/Makefile.am
  37. * src/Makefile.in
  38. * src/Metalink2RequestGroup.cc
  39. * src/MultiUrlRequestInfo.cc
  40. * src/MultiUrlRequestInfo.h
  41. * src/OptionHandlerFactory.cc
  42. * src/PeerListenCommand.cc
  43. * src/RecoverableException.h
  44. * src/RequestGroup.cc
  45. * src/RequestGroup.h
  46. * src/RequestGroupMan.cc
  47. * src/RequestGroupMan.h
  48. * src/TimedHaltCommand.cc
  49. * src/TrackerWatcherCommand.cc
  50. * src/URIResult.cc
  51. * src/URIResult.h
  52. * src/URISelector.h
  53. * src/XmlRpcMethodImpl.cc
  54. * src/bittorrent_helper.cc
  55. * src/bittorrent_helper.h
  56. * src/download_helper.cc
  57. * src/main.cc
  58. * src/option_processing.cc
  59. * test/BtDependencyTest.cc
  60. * test/BtPostDownloadHandlerTest.cc
  61. * test/CookieStorageTest.cc
  62. * test/DefaultBtMessageDispatcherTest.cc
  63. * test/DownloadHandlerFactoryTest.cc
  64. * test/DownloadHelperTest.cc
  65. * test/FeedbackURISelectorTest.cc
  66. * test/FileEntryTest.cc
  67. * test/InOrderURISelectorTest.cc
  68. * test/Metalink2RequestGroupTest.cc
  69. * test/MetalinkPostDownloadHandlerTest.cc
  70. * test/RequestGroupManTest.cc
  71. * test/RequestGroupTest.cc
  72. * test/XmlRpcMethodTest.cc
  73. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Removed MockBtContext.h
  75. * test/Makefile.am
  76. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Removed _currentRequest from StreamCheckIntegrityEntry and
  78. StreamFileAllocationEntry.
  79. * src/AbstractCommand.cc
  80. * src/HttpResponseCommand.cc
  81. * src/RequestGroup.cc
  82. * src/StreamCheckIntegrityEntry.cc
  83. * src/StreamCheckIntegrityEntry.h
  84. * src/StreamFileAllocationEntry.cc
  85. * src/StreamFileAllocationEntry.h
  86. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Rewritten DownloadContext and removed SingleFileDownloadContext
  88. and BtContext and its derived classes. BitTorrent specific
  89. attributes are now set by DownloadContext::setAttribute() with key
  90. bittorrent::BITTORRENT.
  91. * src/AbstractBtMessage.cc
  92. * src/AbstractBtMessage.h
  93. * src/AbstractCommand.cc
  94. * src/AbstractCommand.h
  95. * src/AbstractProxyRequestCommand.cc
  96. * src/AbstractProxyResponseCommand.cc
  97. * src/ActivePeerConnectionCommand.cc
  98. * src/ActivePeerConnectionCommand.h
  99. * src/AnnounceList.cc
  100. * src/BtCheckIntegrityEntry.cc
  101. * src/BtConstants.h
  102. * src/BtContext.h: Removed
  103. * src/BtDependency.cc
  104. * src/BtExtendedMessage.cc
  105. * src/BtPieceMessage.cc
  106. * src/BtPieceMessage.h
  107. * src/BtPostDownloadHandler.cc
  108. * src/BtRegistry.cc
  109. * src/BtRegistry.h
  110. * src/BtSetup.cc
  111. * src/CheckIntegrityCommand.cc
  112. * src/CheckIntegrityEntry.cc
  113. * src/ChecksumCheckIntegrityEntry.cc
  114. * src/ConsoleStatCalc.cc
  115. * src/ContentTypeRequestGroupCriteria.cc
  116. * src/DHTGetPeersCommand.cc
  117. * src/DHTGetPeersCommand.h
  118. * src/DHTPeerLookupTask.cc
  119. * src/DHTPeerLookupTask.h
  120. * src/DHTTaskFactory.h
  121. * src/DHTTaskFactoryImpl.cc
  122. * src/DHTTaskFactoryImpl.h
  123. * src/DefaultBtAnnounce.cc
  124. * src/DefaultBtAnnounce.h
  125. * src/DefaultBtContext.cc: Removed
  126. * src/DefaultBtContext.h: Removed
  127. * src/DefaultBtInteractive.cc
  128. * src/DefaultBtInteractive.h
  129. * src/DefaultBtMessageDispatcher.cc
  130. * src/DefaultBtMessageDispatcher.h
  131. * src/DefaultBtMessageFactory.cc
  132. * src/DefaultBtMessageFactory.h
  133. * src/DefaultBtMessageReceiver.cc
  134. * src/DefaultBtMessageReceiver.h
  135. * src/DefaultBtProgressInfoFile.cc
  136. * src/DefaultBtRequestFactory.cc
  137. * src/DefaultBtRequestFactory.h
  138. * src/DefaultExtensionMessageFactory.cc
  139. * src/DefaultExtensionMessageFactory.h
  140. * src/DefaultPeerStorage.cc
  141. * src/DefaultPeerStorage.h
  142. * src/DefaultPieceStorage.cc
  143. * src/DefaultSegmentManFactory.cc
  144. * src/DiskAdaptor.cc
  145. * src/DiskAdaptor.h
  146. * src/DownloadContext.cc
  147. * src/DownloadContext.h
  148. * src/DownloadEngine.cc
  149. * src/DownloadEngineFactory.cc
  150. * src/DownloadHandler.cc
  151. * src/DownloadResult.h
  152. * src/FileAllocationCommand.cc
  153. * src/FileAllocationDispatcherCommand.cc
  154. * src/FileAllocationEntry.cc
  155. * src/FileEntry.h
  156. * src/FillRequestGroupCommand.cc
  157. * src/FtpDownloadCommand.cc
  158. * src/FtpFinishDownloadCommand.cc
  159. * src/FtpInitiateConnectionCommand.cc
  160. * src/FtpNegotiationCommand.cc
  161. * src/FtpTunnelRequestCommand.cc
  162. * src/FtpTunnelResponseCommand.cc
  163. * src/HandshakeExtensionMessage.cc
  164. * src/HandshakeExtensionMessage.h
  165. * src/HaveEraseCommand.cc
  166. * src/HttpDownloadCommand.cc
  167. * src/HttpInitiateConnectionCommand.cc
  168. * src/HttpProxyRequestCommand.cc
  169. * src/HttpProxyResponseCommand.cc
  170. * src/HttpRequest.cc
  171. * src/HttpRequest.h
  172. * src/HttpRequestCommand.cc
  173. * src/HttpResponseCommand.cc
  174. * src/HttpServerBodyCommand.cc
  175. * src/HttpServerCommand.cc
  176. * src/HttpSkipResponseCommand.cc
  177. * src/InitiateConnectionCommandFactory.cc
  178. * src/InitiatorMSEHandshakeCommand.cc
  179. * src/InitiatorMSEHandshakeCommand.h
  180. * src/IteratableChecksumValidator.cc
  181. * src/IteratableChecksumValidator.h
  182. * src/IteratableChunkChecksumValidator.cc
  183. * src/MSEHandshake.cc
  184. * src/MSEHandshake.h
  185. * src/Makefile.am
  186. * src/Makefile.in
  187. * src/Metalink2RequestGroup.cc
  188. * src/MetalinkPostDownloadHandler.cc
  189. * src/MultiDiskAdaptor.cc
  190. * src/MultiDiskAdaptor.h
  191. * src/MultiFileAllocationIterator.cc
  192. * src/MultiUrlRequestInfo.cc
  193. * src/PeerChokeCommand.cc
  194. * src/PeerChokeCommand.h
  195. * src/PeerInitiateConnectionCommand.cc
  196. * src/PeerInitiateConnectionCommand.h
  197. * src/PeerInteractionCommand.cc
  198. * src/PeerInteractionCommand.h
  199. * src/PeerReceiveHandshakeCommand.cc
  200. * src/PieceHashCheckIntegrityEntry.cc
  201. * src/RealtimeCommand.cc
  202. * src/ReceiverMSEHandshakeCommand.cc
  203. * src/RequestGroup.cc
  204. * src/RequestGroup.h
  205. * src/RequestGroupEntry.cc
  206. * src/RequestGroupMan.cc
  207. * src/SeedCheckCommand.cc
  208. * src/SeedCheckCommand.h
  209. * src/SegmentMan.cc
  210. * src/ShareRatioSeedCriteria.h
  211. * src/SingleFileDownloadContext.cc: Removed
  212. * src/SingleFileDownloadContext.h: Removed
  213. * src/SleepCommand.cc
  214. * src/StreamCheckIntegrityEntry.cc
  215. * src/TrackerWatcherCommand.cc
  216. * src/TrackerWatcherCommand.h
  217. * src/UnknownLengthPieceStorage.cc
  218. * src/Util.cc
  219. * src/Util.h
  220. * src/XmlRpcMethodImpl.cc
  221. * src/bittorrent_helper.cc
  222. * src/bittorrent_helper.h
  223. * src/download_helper.cc
  224. * src/main.cc
  225. * src/option_processing.cc
  226. * test/BitfieldManTest.cc
  227. * test/BittorrentHelperTest.cc
  228. * test/BtCancelMessageTest.cc
  229. * test/BtChokeMessageTest.cc
  230. * test/BtDependencyTest.cc
  231. * test/BtPieceMessageTest.cc
  232. * test/BtPostDownloadHandlerTest.cc
  233. * test/BtRegistryTest.cc
  234. * test/BtRejectMessageTest.cc
  235. * test/BtRequestMessageTest.cc
  236. * test/DHTPeerAnnounceStorageTest.cc
  237. * test/DefaultBtAnnounceTest.cc
  238. * test/DefaultBtContextTest.cc: Removed
  239. * test/DefaultBtMessageDispatcherTest.cc
  240. * test/DefaultBtMessageFactoryTest.cc
  241. * test/DefaultBtProgressInfoFileTest.cc
  242. * test/DefaultBtRequestFactoryTest.cc
  243. * test/DefaultExtensionMessageFactoryTest.cc
  244. * test/DefaultPeerStorageTest.cc
  245. * test/DefaultPieceStorageTest.cc
  246. * test/DirectDiskAdaptorTest.cc
  247. * test/DownloadContextTest.cc
  248. * test/DownloadHandlerFactoryTest.cc
  249. * test/DownloadHelperTest.cc
  250. * test/HandshakeExtensionMessageTest.cc
  251. * test/HttpRequestTest.cc
  252. * test/HttpResponseTest.cc
  253. * test/IteratableChecksumValidatorTest.cc
  254. * test/IteratableChunkChecksumValidatorTest.cc
  255. * test/MSEHandshakeTest.cc
  256. * test/Makefile.am
  257. * test/Makefile.in
  258. * test/Metalink2RequestGroupTest.cc
  259. * test/MetalinkPostDownloadHandlerTest.cc
  260. * test/MockBtContext.h: Removed
  261. * test/MockDHTTaskFactory.h
  262. * test/MockDownloadContext.h: Removed
  263. * test/MockPieceStorage.h
  264. * test/MultiDiskAdaptorTest.cc
  265. * test/MultiFileAllocationIteratorTest.cc
  266. * test/RequestGroupManTest.cc
  267. * test/RequestGroupTest.cc
  268. * test/SegmentManTest.cc
  269. * test/ShareRatioSeedCriteriaTest.cc
  270. * test/SingleFileDownloadContextTest.cc: Removed
  271. * test/UtilTest.cc
  272. * test/XmlRpcMethodTest.cc
  273. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  274. Added experimental support of WEB-Seeding for multi-file torrent.
  275. Due to fundamental changes in file handling in HTTP/FTP code, many
  276. functions are not working: PeerStat, ServerHost, proxy..etc
  277. * src/AbstractCommand.cc
  278. * src/AbstractCommand.h
  279. * src/BitfieldMan.cc
  280. * src/BitfieldMan.h
  281. * src/CreateRequestCommand.cc
  282. * src/CreateRequestCommand.h
  283. * src/DefaultPieceStorage.cc
  284. * src/DefaultPieceStorage.h
  285. * src/DownloadCommand.cc
  286. * src/DownloadCommand.h
  287. * src/DownloadContext.cc
  288. * src/DownloadContext.h
  289. * src/FileEntry.cc
  290. * src/FileEntry.h
  291. * src/FtpDownloadCommand.cc
  292. * src/FtpDownloadCommand.h
  293. * src/FtpFinishDownloadCommand.cc
  294. * src/FtpFinishDownloadCommand.h
  295. * src/FtpInitiateConnectionCommand.cc
  296. * src/FtpInitiateConnectionCommand.h
  297. * src/FtpNegotiationCommand.cc
  298. * src/FtpNegotiationCommand.h
  299. * src/FtpTunnelResponseCommand.cc
  300. * src/HttpDownloadCommand.cc
  301. * src/HttpDownloadCommand.h
  302. * src/HttpInitiateConnectionCommand.cc
  303. * src/HttpInitiateConnectionCommand.h
  304. * src/HttpProxyResponseCommand.cc
  305. * src/HttpRequest.cc
  306. * src/HttpRequest.h
  307. * src/HttpRequestCommand.cc
  308. * src/HttpRequestCommand.h
  309. * src/HttpResponseCommand.cc
  310. * src/HttpResponseCommand.h
  311. * src/HttpSkipResponseCommand.cc
  312. * src/HttpSkipResponseCommand.h
  313. * src/InitiateConnectionCommand.cc
  314. * src/InitiateConnectionCommand.h
  315. * src/InitiateConnectionCommandFactory.cc
  316. * src/InitiateConnectionCommandFactory.h
  317. * src/Makefile.am
  318. * src/PieceStorage.h
  319. * src/RequestGroup.cc
  320. * src/RequestGroup.h
  321. * src/RequestGroupMan.cc
  322. * src/SegmentMan.cc
  323. * src/SegmentMan.h
  324. * src/SingleFileDownloadContext.h
  325. * src/StreamFileAllocationEntry.cc
  326. * src/TrackerWatcherCommand.cc
  327. * src/UnknownLengthPieceStorage.cc
  328. * src/UnknownLengthPieceStorage.h
  329. * src/array_fun.h
  330. * src/bitfield.h
  331. * src/download_helper.cc
  332. * test/DownloadContextTest.cc
  333. * test/Makefile.am
  334. * test/MockDownloadContext.h
  335. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. Added tellWaiting XML-RPC method.
  337. * src/SingleFileDownloadContext.cc
  338. * src/XmlRpcMethodFactory.cc
  339. * src/XmlRpcMethodImpl.cc
  340. * src/XmlRpcMethodImpl.h
  341. * test/XmlRpcMethodTest.cc
  342. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Updated CookieStorageTest
  344. * test/CookieStorageTest.cc
  345. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  347. handle excepion inside these functions.
  348. * src/LibgnutlsTLSContext.cc
  349. * src/LibgnutlsTLSContext.h
  350. * src/LibsslTLSContext.cc
  351. * src/LibsslTLSContext.h
  352. * src/MultiUrlRequestInfo.cc
  353. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  354. Added comment
  355. * src/RequestGroup.cc
  356. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. In CookieStorage::load() and saveNsFormat(), handle exception
  358. inside the functions. When saving Cookies, first write temporary
  359. file and after successful writes, then renames it to final
  360. destination.
  361. * src/CookieStorage.cc
  362. * src/CookieStorage.h
  363. * src/MultiUrlRequestInfo.cc
  364. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. The default value of --dir option is the absolute path to the
  366. current directory. If getcwd() is failed, then it is ".", which is
  367. the same value with old implementation. This change is necessary
  368. because after daemon() call, the current working directory is
  369. changed to /.
  370. * src/File.cc
  371. * src/File.h
  372. * src/OptionHandlerFactory.cc
  373. * src/option_processing.cc
  374. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Call daemon() with arguments(0,0), which means daemon() changes
  376. current working directory to / and redirects stdin, stdout and
  377. stderr to /dev/null.
  378. * src/option_processing.cc
  379. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Small performance optimizations.
  381. * src/RequestGroupMan.cc
  382. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Added _xmlRpc member variable to RequestGroupMan to reduce the
  384. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  385. * src/RequestGroupMan.cc
  386. * src/RequestGroupMan.h
  387. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  389. setNoWiat(true) if newly created command calls
  390. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  391. * src/HttpListenCommand.cc
  392. * src/HttpServerBodyCommand.cc
  393. * src/HttpServerCommand.cc
  394. * src/HttpServerResponseCommand.cc
  395. * src/InitiateConnectionCommand.cc
  396. * src/RequestGroup.cc
  397. * src/StreamFileAllocationEntry.cc
  398. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Removed include vector
  400. * src/BtRegistry.h
  401. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Rewritten BtRegistry
  403. * src/BtRegistry.cc
  404. * src/BtRegistry.h
  405. * src/BtSetup.cc
  406. * src/ConsoleStatCalc.cc
  407. * src/PeerInteractionCommand.cc
  408. * src/PeerReceiveHandshakeCommand.cc
  409. * src/ReceiverMSEHandshakeCommand.cc
  410. * src/RequestGroup.cc
  411. * src/XmlRpcMethodImpl.cc
  412. * test/BtRegistryTest.cc
  413. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  415. * src/DefaultBtProgressInfoFile.cc
  416. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  417. Throw an exception if position is less than 0.
  418. * src/XmlRpcMethodImpl.cc
  419. * test/XmlRpcMethodTest.cc
  420. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Use writeFilePath() in ConsoleStatCalc.cc
  422. * src/ConsoleStatCalc.cc
  423. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Receive the return value as const reference from
  425. DownloadContext::getFileEntries().
  426. * src/DefaultPieceStorage.cc
  427. * src/RequestGroupMan.cc
  428. * src/XmlRpcMethodImpl.cc
  429. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. DownloadContext now has _fileEntries so that
  431. DownloadContext::getFileEntries() can returns its const reference.
  432. * src/DefaultBtContext.cc
  433. * src/DefaultBtContext.h
  434. * src/DownloadContext.cc
  435. * src/DownloadContext.h
  436. * src/SingleFileDownloadContext.cc
  437. * src/SingleFileDownloadContext.h
  438. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  439. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  440. writeFilePath() function template from RequestGroupMan.cc to
  441. FileEntry.h
  442. * src/FileEntry.h
  443. * src/RequestGroupMan.cc
  444. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Documented 'position' parameter is starting from 0 in man page.
  446. * doc/aria2c.1.txt
  447. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Updated doc.
  449. * src/MSEHandshake.cc
  450. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  451. Removed _acceptFeatures and its accessor functions from
  452. RequestGroup since they are not used practically.
  453. * src/HttpRequestCommand.cc
  454. * src/RequestGroup.cc
  455. * src/RequestGroup.h
  456. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  457. Removed member _maxTries from RequestGroup class to avoid
  458. duplicate option value. Those classes who refer this variable
  459. should use option value of PREF_MAX_TRIES directly.
  460. * src/AbstractCommand.cc
  461. * src/RequestGroup.cc
  462. * src/RequestGroup.h
  463. * src/TrackerWatcherCommand.cc
  464. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  465. * Release 1.4.1
  466. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Fixed compiler warnings on netbsd
  468. * src/DHTConnectionImpl.cc
  469. * src/PeerListenCommand.cc
  470. * src/PeerSessionResource.cc
  471. * src/SegmentMan.cc
  472. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  473. Updated Ukrainian translation. Thanks to all translators.
  474. * po/uk.po
  475. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Bump up version number to 1.4.1.
  477. * configure.ac
  478. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Added unit tests for strjoin, strconcat and strappend.
  480. * test/a2functionalTest.cc
  481. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. Rewritten strconcat and strappend using operator+ instead of
  483. append().
  484. * src/a2functional.h
  485. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  487. is enabled.
  488. * src/Makefile.am
  489. * test/Makefile.am
  490. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Added countSeeder() function which counts seeder in the given
  492. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  493. * src/ConsoleStatCalc.cc
  494. * src/Peer.h
  495. * src/XmlRpcMethodImpl.cc
  496. * test/PeerTest.cc
  497. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Documented missing seeder in getPeers xml-rpc method.
  499. Documented uploadLength and numSeeders.
  500. * doc/aria2c.1.txt
  501. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Added uploadLength and numSeeders to the response of tellStatus
  503. xml-rpc method. Assert that PeerStorage instance is not null
  504. instead of checking if statement. It should be non-null in this
  505. context.
  506. * src/XmlRpcMethodImpl.cc
  507. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  509. * src/XmlRpcResponse.cc
  510. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Avoid intermediate object during string concatenation.
  512. * src/HttpRequest.cc
  513. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Added strjoin function template. Use it in pathJoin()
  515. * src/Util.h
  516. * src/a2functional.h
  517. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Avoid intermediate object during string concatenation. Replaced
  519. post-increment unary operator with pre-increment one in for loop.
  520. * src/AdaptiveURISelector.cc
  521. * src/AnnounceList.cc
  522. * src/AuthConfig.h
  523. * src/BtBitfieldMessage.cc
  524. * src/BtExtendedMessage.cc
  525. * src/BtHandshakeMessage.cc
  526. * src/BtPieceMessage.cc
  527. * src/BtPortMessage.cc
  528. * src/Cookie.cc
  529. * src/DHTAnnouncePeerMessage.cc
  530. * src/DHTAutoSaveCommand.cc
  531. * src/DHTGetPeersReplyMessage.cc
  532. * src/DHTNode.cc
  533. * src/DHTQueryMessage.cc
  534. * src/DHTResponseMessage.cc
  535. * src/DHTUnknownMessage.cc
  536. * src/DefaultBtAnnounce.cc
  537. * src/DefaultBtContext.cc
  538. * src/DefaultBtInteractive.cc
  539. * src/DefaultBtProgressInfoFile.cc
  540. * src/DefaultPeerStorage.cc
  541. * src/DownloadEngine.cc
  542. * src/FeatureConfig.cc
  543. * src/File.cc
  544. * src/FtpConnection.cc
  545. * src/FtpNegotiationCommand.cc
  546. * src/HandshakeExtensionMessage.cc
  547. * src/HttpConnection.cc
  548. * src/HttpRequest.cc
  549. * src/HttpResponseCommand.cc
  550. * src/HttpServer.cc
  551. * src/IndexBtMessage.cc
  552. * src/Metalink2RequestGroup.cc
  553. * src/OptionHandlerImpl.h
  554. * src/PStringBuildVisitor.cc
  555. * src/Peer.cc
  556. * src/PeerListenCommand.cc
  557. * src/Piece.cc
  558. * src/RangeBtMessage.cc
  559. * src/Request.cc
  560. * src/Request.h
  561. * src/RequestGroup.cc
  562. * src/RequestGroupMan.cc
  563. * src/ServerStat.cc
  564. * src/ServerStatMan.cc
  565. * src/UTPexExtensionMessage.cc
  566. * src/Util.cc
  567. * src/a2functional.h
  568. * src/download_helper.cc
  569. * src/messageDigest.cc
  570. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Unchoke a peer randomly at first and second choke round in seed
  572. state.
  573. * src/BtSeederStateChoke.cc
  574. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  575. Added (sock_t) to quiet compiler warnings in MinGW
  576. * src/SocketCore.cc
  577. * src/SocketCore.h
  578. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  580. * src/EpollEventPoll.h
  581. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  582. Added fork() emulation using CreateProcess() in MinGW
  583. * src/RequestGroupMan.cc
  584. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. * Release 1.4.0
  586. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  587. Added utf8.torrent to EXTRA_DIST
  588. * test/Makefile.am
  589. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  590. Fixed docs of aria2.addMetalink xml-rpc method.
  591. * doc/aria2c.1.txt
  592. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Added Slovak translation. Updated Ukrainian and Brazilian
  594. Portuguese translation. Thanks to all translators.
  595. * po/sk.po
  596. * po/uk.po
  597. * po/pt_BR.po
  598. * po/LINGUAS
  599. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  600. Added test case for XmlRpcProcessor to fail to parse malformed
  601. document.
  602. * test/XmlRpcRequestProcessorTest.cc
  603. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Removed *.gmo files in po because they are generated on 'make
  605. dist'
  606. * po/*.gmo
  607. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Documented max-concurrent-downloads of changeGlobalOption method
  609. in man page.
  610. * doc/aria2c.1.txt
  611. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  612. Added max-concurrent-downloads option to changeGlobalOption
  613. xml-rpc method. Rewritten loop conditional in
  614. RequestGroupMan::fillRequestGroupFromReserver().
  615. * src/RequestGroupMan.cc
  616. * src/RequestGroupMan.h
  617. * src/XmlRpcMethod.cc
  618. * src/XmlRpcMethodImpl.cc
  619. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Documented position parameter in man page.
  621. * doc/aria2c.1.txt
  622. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Added 'position' parameter to addUri, addTorrent and addMetalink
  624. xml-rpc method.
  625. * src/RequestGroupMan.cc
  626. * src/RequestGroupMan.h
  627. * src/XmlRpcMethodImpl.cc
  628. * test/XmlRpcMethodTest.cc
  629. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Removed Peer.cc from compile source list when --disable-bittorrent
  631. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  632. takes Peer.
  633. * src/DefaultPieceStorage.cc
  634. * src/DefaultPieceStorage.h
  635. * src/Makefile.am
  636. * src/PieceStorage.h
  637. * src/UnknownLengthPieceStorage.cc
  638. * src/UnknownLengthPieceStorage.h
  639. * test/MockPieceStorage.h
  640. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. Implemented getter methods in header files to give them more
  642. chance of optimization.
  643. Return const reference for SharadHandle if possible.
  644. * src/AbstractAuthResolver.cc
  645. * src/AbstractAuthResolver.h
  646. * src/AbstractBtMessage.cc
  647. * src/AbstractBtMessage.h
  648. * src/AbstractSingleDiskAdaptor.cc
  649. * src/AbstractSingleDiskAdaptor.h
  650. * src/AsyncNameResolver.cc
  651. * src/AsyncNameResolver.h
  652. * src/BNode.cc
  653. * src/BNode.h
  654. * src/BitfieldMan.cc
  655. * src/BitfieldMan.h
  656. * src/BtAbortOutstandingRequestEvent.h
  657. * src/BtExtendedMessage.cc
  658. * src/BtExtendedMessage.h
  659. * src/BtSeederStateChoke.cc
  660. * src/BtSeederStateChoke.h
  661. * src/Cookie.cc
  662. * src/Cookie.h
  663. * src/DHTBucket.cc
  664. * src/DHTBucket.h
  665. * src/DHTConnectionImpl.cc
  666. * src/DHTConnectionImpl.h
  667. * src/DHTFindNodeReplyMessage.cc
  668. * src/DHTFindNodeReplyMessage.h
  669. * src/DHTGetPeersReplyMessage.cc
  670. * src/DHTGetPeersReplyMessage.h
  671. * src/DHTInteractionCommand.cc
  672. * src/DHTMessage.cc
  673. * src/DHTMessage.h
  674. * src/DHTMessageDispatcherImpl.cc
  675. * src/DHTMessageEntry.cc
  676. * src/DHTMessageReceiver.cc
  677. * src/DHTMessageReceiver.h
  678. * src/DHTMessageTrackerEntry.cc
  679. * src/DHTMessageTrackerEntry.h
  680. * src/DHTPeerAnnounceEntry.cc
  681. * src/DHTPeerAnnounceEntry.h
  682. * src/DHTPeerLookupTask.cc
  683. * src/DHTPeerLookupTask.h
  684. * src/DHTRoutingTableDeserializer.cc
  685. * src/DHTRoutingTableDeserializer.h
  686. * src/DefaultBtAnnounce.cc
  687. * src/DefaultBtAnnounce.h
  688. * src/DefaultBtMessageDispatcher.cc
  689. * src/DefaultBtMessageDispatcher.h
  690. * src/DefaultBtRequestFactory.cc
  691. * src/DefaultBtRequestFactory.h
  692. * src/DiskAdaptor.cc
  693. * src/DiskAdaptor.h
  694. * src/DownloadContext.cc
  695. * src/DownloadContext.h
  696. * src/DownloadEngine.cc
  697. * src/DownloadEngine.h
  698. * src/EpollEventPoll.cc
  699. * src/EpollEventPoll.h
  700. * src/FtpConnection.cc
  701. * src/FtpConnection.h
  702. * src/HttpConnection.cc
  703. * src/HttpConnection.h
  704. * src/HttpHeader.cc
  705. * src/HttpHeader.h
  706. * src/HttpRequest.cc
  707. * src/HttpRequest.h
  708. * src/HttpResponse.cc
  709. * src/HttpResponse.h
  710. * src/LibsslTLSContext.cc
  711. * src/LibsslTLSContext.h
  712. * src/MSEHandshake.cc
  713. * src/MSEHandshake.h
  714. * src/MetalinkEntry.cc
  715. * src/MetalinkEntry.h
  716. * src/MetalinkParserController.cc
  717. * src/MetalinkParserController.h
  718. * src/MetalinkParserStateMachine.cc
  719. * src/MetalinkParserStateMachine.h
  720. * src/MultiDiskAdaptor.cc
  721. * src/MultiDiskAdaptor.h
  722. * src/NetrcAuthResolver.cc
  723. * src/NetrcAuthResolver.h
  724. * src/Peer.cc
  725. * src/Peer.h
  726. * src/PeerSessionResource.cc
  727. * src/PeerSessionResource.h
  728. * src/Piece.cc
  729. * src/Piece.h
  730. * src/PieceStatMan.cc
  731. * src/PieceStatMan.h
  732. * src/Request.cc
  733. * src/Request.h
  734. * src/RequestGroup.cc
  735. * src/RequestGroup.h
  736. * src/RequestGroupMan.cc
  737. * src/RequestGroupMan.h
  738. * src/RequestSlot.cc
  739. * src/RequestSlot.h
  740. * src/SegmentMan.cc
  741. * src/SegmentMan.h
  742. * src/SelectEventPoll.cc
  743. * src/SelectEventPoll.h
  744. * src/ServerStat.cc
  745. * src/ServerStat.h
  746. * src/Signature.cc
  747. * src/Signature.h
  748. * src/URIResult.cc
  749. * src/URIResult.h
  750. * src/UTPexExtensionMessage.cc
  751. * src/UTPexExtensionMessage.h
  752. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Fixed compile error without BitTorrent and Metalink support.
  754. * src/XmlRpcMethod.cc
  755. * src/XmlRpcMethodFactory.cc
  756. * src/XmlRpcMethodImpl.cc
  757. * src/XmlRpcMethodImpl.h
  758. * test/XmlRpcMethodTest.cc
  759. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Rewritten the help message for --allow-overwrite option.
  761. * doc/aria2c.1.txt
  762. * src/usage_text.h
  763. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Fixed typo
  765. * doc/aria2c.1.txt
  766. * src/usage_text.h
  767. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  768. Updated README for 1.4.0 release. Use new table syntax of
  769. asciidoc.
  770. * README
  771. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Documented --xml-rpc-max-request-size option in man page.
  773. * doc/aria2c.1.txt
  774. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Moved C_* constants from BtContext to DefaultBtContext.
  776. * src/BtContext.cc: Removed.
  777. * src/BtContext.h
  778. * src/DefaultBtContext.cc
  779. * src/DefaultBtContext.h
  780. * src/Makefile.am
  781. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Use name.utf-8 and path.utf-8 key in higher priority than name and
  783. path key respectively when persing .torrent file.
  784. * src/BtContext.cc
  785. * src/BtContext.h
  786. * src/DefaultBtContext.cc
  787. * test/DefaultBtContextTest.cc
  788. * test/utf8.torrent
  789. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Added --xml-rpc-max-request-size option to limit the size of
  791. XML-RPC request.
  792. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Documented XML-RPC API in man page.
  794. * doc/aria2c.1.txt
  795. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  797. will break strict-aliasing rules
  798. * src/PeerConnection.cc
  799. * test/DHTRoutingTableSerializerTest.cc
  800. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  802. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  803. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  804. PKG_CHECK_MODULES macro uses latter name.
  805. * m4/sqlite3.m4
  806. * src/Makefile.am
  807. * test/Makefile.am
  808. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Fixed typo
  810. * configure.ac
  811. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  813. presence of libgnutls using pkg-config first. If it fails, fall
  814. back to old macro libgnutls.m4.
  815. * configure.ac
  816. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Use s itself instead of !s.bad()
  818. * src/CookieStorage.cc
  819. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Documented --on-download-* option and --save-cookies option in man
  821. page.
  822. * doc/aria2c.1.txt
  823. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Set possible values for --load-cookie option to "/path/to/file".
  825. * src/OptionHandlerFactory.cc
  826. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. Added --save-cookies option.
  828. * src/Cookie.cc
  829. * src/Cookie.h
  830. * src/CookieStorage.cc
  831. * src/CookieStorage.h
  832. * src/MultiUrlRequestInfo.cc
  833. * src/OptionHandlerFactory.cc
  834. * src/prefs.cc
  835. * src/prefs.h
  836. * src/usage_text.h
  837. * test/CookieStorageTest.cc
  838. * test/CookieTest.cc
  839. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Removed tellAll XML-RPC command because its reponse tends to be
  841. big if stopped/waiting downloads pile up.
  842. * src/XmlRpcMethodFactory.cc
  843. * src/XmlRpcMethodImpl.cc
  844. * src/XmlRpcMethodImpl.h
  845. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Added the ability to execute command when download starts and
  847. stops. You can also specify command for particular cases such as
  848. complete/error download. Added --on-download-start,
  849. --on-download-stop, --on-download-complete and --on-download-error
  850. option.
  851. * src/OptionHandlerFactory.cc
  852. * src/RequestGroupMan.cc
  853. * src/prefs.cc
  854. * src/prefs.h
  855. * src/usage_text.h
  856. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Fixed test error
  858. * test/BencodeTest.cc
  859. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Added unit tests.
  861. * test/XmlRpcMethodTest.cc
  862. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  863. Made exception message more verbose.
  864. * src/bencode.cc
  865. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  867. space in console readout. Also they are now shown in MiB/s if
  868. speed > 1024KiB/s.
  869. * src/ConsoleStatCalc.cc
  870. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Added SEED to console output, which represents the number of
  872. seeders currently the client is connecting to.
  873. * src/ConsoleStatCalc.cc
  874. * src/ConsoleStatCalc.h
  875. * src/DownloadEngine.cc
  876. * src/NullStatCalc.h
  877. * src/StatCalc.h
  878. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. Added source filename(__FILE__) and line number(__LINE__) to
  880. exception message.
  881. * src/AbstractCommand.cc
  882. * src/AbstractDiskWriter.cc
  883. * src/AbstractProxyResponseCommand.cc
  884. * src/BDE.h
  885. * src/BtAllowedFastMessage.cc
  886. * src/BtHandshakeMessageValidator.h
  887. * src/BtHaveAllMessage.cc
  888. * src/BtHaveNoneMessage.cc
  889. * src/BtPieceMessage.cc
  890. * src/BtRejectMessage.cc
  891. * src/ChunkedDecoder.cc
  892. * src/CookieStorage.cc
  893. * src/DHTAnnouncePeerMessage.cc
  894. * src/DHTEntryPointNameResolveCommand.cc
  895. * src/DHTMessageFactoryImpl.cc
  896. * src/DHTMessageTracker.cc
  897. * src/DHTRoutingTableDeserializer.cc
  898. * src/DHTRoutingTableSerializer.cc
  899. * src/DHTSetup.cc
  900. * src/DHTTokenTracker.cc
  901. * src/DefaultBtAnnounce.cc
  902. * src/DefaultBtContext.cc
  903. * src/DefaultBtInteractive.cc
  904. * src/DefaultBtMessageFactory.cc
  905. * src/DefaultBtProgressInfoFile.cc
  906. * src/DefaultExtensionMessageFactory.cc
  907. * src/DlAbortEx.h
  908. * src/DlRetryEx.h
  909. * src/DownloadCommand.cc
  910. * src/DownloadEngineFactory.cc
  911. * src/DownloadFailureException.h
  912. * src/Exception.cc
  913. * src/Exception.h
  914. * src/ExpatMetalinkProcessor.cc
  915. * src/ExpatXmlRpcRequestProcessor.cc
  916. * src/FallocFileAllocationIterator.cc
  917. * src/FatalException.h
  918. * src/FtpConnection.cc
  919. * src/FtpFinishDownloadCommand.cc
  920. * src/FtpInitiateConnectionCommand.cc
  921. * src/FtpNegotiationCommand.cc
  922. * src/GZipDecoder.cc
  923. * src/HandshakeExtensionMessage.cc
  924. * src/HttpConnection.cc
  925. * src/HttpHeaderProcessor.cc
  926. * src/HttpInitiateConnectionCommand.cc
  927. * src/HttpResponse.cc
  928. * src/HttpResponseCommand.cc
  929. * src/HttpServer.cc
  930. * src/HttpSkipResponseCommand.cc
  931. * src/InitiateConnectionCommandFactory.cc
  932. * src/IteratableChunkChecksumValidator.cc
  933. * src/LibgcryptARC4Context.h
  934. * src/LibgcryptARC4Decryptor.h
  935. * src/LibgcryptARC4Encryptor.h
  936. * src/LibgcryptDHKeyExchange.h
  937. * src/LibgnutlsTLSContext.cc
  938. * src/LibsslARC4Context.h
  939. * src/LibsslARC4Decryptor.h
  940. * src/LibsslARC4Encryptor.h
  941. * src/LibsslDHKeyExchange.h
  942. * src/LibsslTLSContext.cc
  943. * src/MSEHandshake.cc
  944. * src/MessageDigestHelper.cc
  945. * src/MetalinkHelper.cc
  946. * src/MultiDiskAdaptor.cc
  947. * src/NameMatchOptionHandler.h
  948. * src/NameResolver.cc
  949. * src/Netrc.cc
  950. * src/NsCookieParser.cc
  951. * src/OptionHandlerException.cc
  952. * src/OptionHandlerException.h
  953. * src/OptionHandlerImpl.h
  954. * src/OptionParser.cc
  955. * src/ParameterizedStringParser.cc
  956. * src/PeerAbstractCommand.cc
  957. * src/PeerConnection.cc
  958. * src/PeerMessageUtil.cc
  959. * src/PeerReceiveHandshakeCommand.cc
  960. * src/Platform.cc
  961. * src/ReceiverMSEHandshakeCommand.cc
  962. * src/RecoverableException.h
  963. * src/RequestGroup.cc
  964. * src/SimpleLogger.cc
  965. * src/SocketCore.cc
  966. * src/Sqlite3MozCookieParser.cc
  967. * src/UTPexExtensionMessage.cc
  968. * src/Util.cc
  969. * src/XML2SAXMetalinkProcessor.cc
  970. * src/Xml2XmlRpcRequestProcessor.cc
  971. * src/XmlRpcMethodImpl.cc
  972. * src/bencode.cc
  973. * src/download_helper.cc
  974. * src/messageDigest.h
  975. * test/ExceptionTest.cc
  976. * test/TestUtil.cc
  977. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. Bump up version number to 1.4.0
  979. * configure.ac
  980. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Added 2files.metalink to EXTRA_DIST
  982. * test/Makefile.am
  983. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Added missing 2files.metalink
  985. * test/2files.metalink
  986. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Show "[MEMORY]" prefix before filename in download summary if it
  988. is downloaded into memory.
  989. * src/DownloadResult.h
  990. * src/RequestGroup.cc
  991. * src/RequestGroupMan.cc
  992. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  994. * src/ExpatXmlRpcRequestProcessor.cc
  995. * src/Xml2XmlRpcRequestProcessor.cc
  996. * src/message.h
  997. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Defined const BDEs to avoid duplicate instantiation.
  999. Defined MSG_GID_NOT_PROVIDED.
  1000. * src/XmlRpcMethodImpl.cc
  1001. * src/message.h
  1002. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Code cleanup
  1004. * src/Xml2XmlRpcRequestProcessor.cc
  1005. * src/Xml2XmlRpcRequestProcessor.h
  1006. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Defined ENABLE_XML_RPC
  1008. * configure.ac
  1009. * configure
  1010. * config.h.in
  1011. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1012. Added ExpatXmlRpcRequestProcessor
  1013. * src/ExpatXmlRpcRequestProcessor.cc
  1014. * src/ExpatXmlRpcRequestProcessor.h
  1015. * src/Makefile.am
  1016. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Added tests for addTorrent and addMetalink command.
  1018. * test/TestUtil.cc
  1019. * test/TestUtil.h
  1020. * test/XmlRpcMethodTest.cc
  1021. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Corrected the description of --file-allocation option.
  1023. * doc/aria2c.1.txt
  1024. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1025. Added tellAll command.
  1026. * src/XmlRpcMethodFactory.cc
  1027. * src/XmlRpcMethodImpl.cc
  1028. * src/XmlRpcMethodImpl.h
  1029. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1030. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1031. * src/XmlRpcMethodImpl.cc
  1032. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Added changeGlobalOption command. Currently,
  1034. max-overall-download-limit and max-overall-upload-limit option are
  1035. available.
  1036. * src/RequestGroupMan.h
  1037. * src/XmlRpcMethod.cc
  1038. * src/XmlRpcMethod.h
  1039. * src/XmlRpcMethodFactory.cc
  1040. * src/XmlRpcMethodImpl.cc
  1041. * src/XmlRpcMethodImpl.h
  1042. * test/XmlRpcMethodTest.cc
  1043. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Added changeOption command. Currently, max-download-limit,
  1045. max-upload-limit option are available in this command.
  1046. * src/RequestGroup.h
  1047. * src/XmlRpcMethod.cc
  1048. * src/XmlRpcMethod.h
  1049. * src/XmlRpcMethodFactory.cc
  1050. * src/XmlRpcMethodImpl.cc
  1051. * src/XmlRpcMethodImpl.h
  1052. * test/XmlRpcMethodTest.cc
  1053. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Added purgeDownloadResult command.
  1055. * src/RequestGroupMan.cc
  1056. * src/RequestGroupMan.h
  1057. * src/XmlRpcMethodFactory.cc
  1058. * src/XmlRpcMethodImpl.cc
  1059. * src/XmlRpcMethodImpl.h
  1060. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Refactored.
  1062. * src/XmlRpcMethod.cc
  1063. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1065. XmlRpcResponse.
  1066. * src/HttpServerBodyCommand.cc
  1067. * src/Makefile.am
  1068. * src/XmlRpcMethod.cc
  1069. * src/XmlRpcMethod.h
  1070. * src/XmlRpcMethodImpl.cc
  1071. * src/XmlRpcResponse.cc
  1072. * src/XmlRpcResponse.h
  1073. * test/XmlRpcMethodTest.cc
  1074. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. In XML-RPC option struct, header and index-out option can take
  1076. array as value.
  1077. * src/XmlRpcMethod.cc
  1078. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Removed unused option member from PeerConnection.
  1080. * src/InitiatorMSEHandshakeCommand.cc
  1081. * src/PeerConnection.cc
  1082. * src/PeerConnection.h
  1083. * src/PeerInteractionCommand.cc
  1084. * src/PeerReceiveHandshakeCommand.cc
  1085. * src/ReceiverMSEHandshakeCommand.cc
  1086. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Added "seeder" key to getPeers response.
  1088. * src/XmlRpcMethodImpl.cc
  1089. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Added addMetalink XML-RPC command.
  1091. * src/XmlRpcMethodFactory.cc
  1092. * src/XmlRpcMethodImpl.cc
  1093. * src/XmlRpcMethodImpl.h
  1094. * src/download_helper.cc
  1095. * src/download_helper.h
  1096. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Fixed the bug that POU peers are never choked in seeding.
  1098. * src/BtSeederStateChoke.cc
  1099. * src/BtSeederStateChoke.h
  1100. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1101. Added web-seeding URI handling in addTorrent command.
  1102. * src/XmlRpcMethodImpl.cc
  1103. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1104. Added "length" key to getFiles response.
  1105. * src/XmlRpcMethodImpl.cc
  1106. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1107. Moved --no-netrc option from ftp option section to http/ftp option
  1108. section.
  1109. * doc/aria2c.1.txt
  1110. * src/OptionHandlerFactory.cc
  1111. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Removed garbage "\" character before '
  1113. * doc/aria2c.1.txt
  1114. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Removed garbage "\" character before http.
  1116. * doc/aria2c.1.txt
  1117. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Documented additional options that can be specified in -i list.
  1119. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1120. and --xml-rpc-passwd. Removed --enable-http-server and
  1121. --http-server-listen-port.
  1122. * doc/aria2c.1.txt
  1123. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1125. * src/DefaultPeerStorage.cc
  1126. * src/DefaultPeerStorage.h
  1127. * src/PeerStorage.h
  1128. * src/XmlRpcMethodImpl.cc
  1129. * test/MockPeerStorage.h
  1130. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Put a call to Socket::isReadable() in try block.
  1132. * src/HttpServerBodyCommand.cc
  1133. * src/HttpServerCommand.cc
  1134. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1135. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1136. exception , so it is now in try block.
  1137. * src/HttpServerResponseCommand.cc
  1138. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Added "amChoking" and "peerChoking" key in getPeers response.
  1140. * src/XmlRpcMethodImpl.cc
  1141. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Added test case for zero-length filter.
  1143. * test/BitfieldManTest.cc
  1144. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1145. getFiles command now returns file data for finished/stopped
  1146. downloads.
  1147. * src/XmlRpcMethodImpl.cc
  1148. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1149. DownloadResult now has the list of FileEntry. The download
  1150. summary displays the path of first selected file and the number of
  1151. remaining files for multi-file torrent.
  1152. * src/DownloadResult.h
  1153. * src/RequestGroup.cc
  1154. * src/RequestGroupMan.cc
  1155. * test/RequestGroupTest.cc
  1156. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. Fixed segmentation fault error when no file is selected in
  1158. multi-file torrent.
  1159. * src/BitfieldMan.cc
  1160. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Escaped <,>,& character in XML-RPC response.
  1162. * src/XmlRpcMethod.cc
  1163. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Throw DlAbortEx instead of FatalException during parsing options
  1165. because we don't want for aria2 to quit when bad option is passed
  1166. via XML-RPC.
  1167. * src/OptionHandlerException.cc
  1168. * src/OptionHandlerException.h
  1169. * src/OptionHandlerImpl.h
  1170. * src/OptionParser.cc
  1171. * src/OptionParser.h
  1172. * src/PStringSegment.cc
  1173. * src/ParameterizedStringParser.cc
  1174. * src/download_helper.cc
  1175. * test/ParameterizedStringParserTest.cc
  1176. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Selecting files are now done in
  1178. DefaultBtContext::setFileFileter().
  1179. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1180. functions are removed because they are no longer used. Creating
  1181. filter in BitfieldMan is done in new funtion
  1182. PieceStorage::setupFileFilter()
  1183. * src/BtContext.cc
  1184. * src/BtContext.h
  1185. * src/DefaultBtContext.cc
  1186. * src/DefaultBtContext.h
  1187. * src/DefaultPieceStorage.cc
  1188. * src/DefaultPieceStorage.h
  1189. * src/DiskAdaptor.cc
  1190. * src/DiskAdaptor.h
  1191. * src/PieceStorage.h
  1192. * src/RequestGroup.cc
  1193. * src/UnknownLengthPieceStorage.h
  1194. * src/XmlRpcMethodImpl.cc
  1195. * test/DefaultBtContextTest.cc
  1196. * test/MockBtContext.h
  1197. * test/MockPieceStorage.h
  1198. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Fixed compile error on Mac OS X
  1200. * src/HttpServer.cc
  1201. * src/XmlRpcMethod.h
  1202. * src/XmlRpcMethodImpl.cc
  1203. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Use std::binary_search instead of std::find
  1205. * src/DefaultPieceStorage.cc
  1206. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Removed unnecessary BDE() call; leave them to implicit conversion.
  1208. * src/XmlRpcMethodImpl.cc
  1209. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1210. Return connections and gid in string
  1211. * src/XmlRpcMethodImpl.cc
  1212. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Renamed addURI as addUri
  1214. * src/XmlRpcMethodFactory.cc
  1215. * src/XmlRpcMethodImpl.cc
  1216. * src/XmlRpcMethodImpl.h
  1217. * test/XmlRpcMethodTest.cc
  1218. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Renamed addTorrentFile as addTorrent
  1220. * src/XmlRpcMethodFactory.cc
  1221. * src/XmlRpcMethodImpl.cc
  1222. * src/XmlRpcMethodImpl.h
  1223. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. The information for files, URIs, peers are removed from the
  1225. reponse of TellaActive, TellStatus command because they tend to be
  1226. large. Instead they can be retrieved by the dedicated commands:
  1227. getFiles, getUris and getPeers respectively.
  1228. * src/XmlRpcMethodFactory.cc
  1229. * src/XmlRpcMethodImpl.cc
  1230. * src/XmlRpcMethodImpl.h
  1231. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Removed --max-overall-upload-limit and
  1233. --max-overall-download-limit option from listRequestOptions.
  1234. * src/download_helper.cc
  1235. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. Log incoming host in HttpListenCommand.
  1237. * src/HttpListenCommand.cc
  1238. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1239. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1240. --xml-rpc-passwd option.
  1241. * src/HttpServer.cc
  1242. * src/HttpServer.h
  1243. * src/HttpServerCommand.cc
  1244. * src/OptionHandlerFactory.cc
  1245. * src/prefs.cc
  1246. * src/prefs.h
  1247. * src/usage_text.h
  1248. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1250. processing 0 length request.
  1251. * src/HttpServerBodyCommand.cc
  1252. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Removed --enable-http-server and --http-server-listen-port
  1254. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1255. instead. The original feature for --enable-http-server that
  1256. reports download progress in HTML was officially removed. Persist
  1257. XML-RPC connection if client supports keep-alive.
  1258. * src/DownloadEngineFactory.cc
  1259. * src/HttpServerCommand.cc
  1260. * src/HttpServerResponseCommand.cc
  1261. * src/Makefile.am
  1262. * src/Makefile.in
  1263. * src/OptionHandlerFactory.cc
  1264. * src/RequestGroupMan.cc
  1265. * src/main.cc
  1266. * src/option_processing.cc
  1267. * src/prefs.cc
  1268. * src/prefs.h
  1269. * src/usage_text.h
  1270. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Added "uris" key to the response of tellStatus command. Added
  1272. "connections" key to the response of tellStatus and tellActive
  1273. command.
  1274. * src/XmlRpcMethodImpl.cc
  1275. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1277. Added TellStatusXmlRpcMethod. Remove command can now remove
  1278. waiting RequestGroup.
  1279. * src/RequestGroupMan.cc
  1280. * src/RequestGroupMan.h
  1281. * src/XmlRpcMethodFactory.cc
  1282. * src/XmlRpcMethodImpl.cc
  1283. * src/XmlRpcMethodImpl.h
  1284. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Initialized _peerId
  1286. * src/Peer.cc
  1287. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1288. Return fault structure for error. FailXmlRpcMethod is renamed as
  1289. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1290. in non-torrent download. Return single param value.
  1291. * src/XmlRpcMethod.cc
  1292. * src/XmlRpcMethodFactory.cc
  1293. * src/XmlRpcMethodImpl.cc
  1294. * src/XmlRpcMethodImpl.h
  1295. * test/XmlRpcMethodTest.cc
  1296. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1298. command.
  1299. * src/RequestGroup.cc
  1300. * src/RequestGroup.h
  1301. * src/RequestGroupMan.cc
  1302. * src/XmlRpcMethodImpl.cc
  1303. * test/RequestGroupTest.cc
  1304. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Added more options that can be specified in -i list and xml-rpc
  1306. add* command.
  1307. * src/download_helper.h
  1308. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. The available options in -i list should be listed in
  1310. listRequestOptions().
  1311. * src/download_helper.cc
  1312. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1314. command.
  1315. * src/XmlRpcMethodImpl.cc
  1316. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Now RequestGroup has its own copy of Option object. This will help
  1318. to give custom option for each RequestGroup.
  1319. addTorrentFile command now takes options.
  1320. * src/AbstractCommand.cc
  1321. * src/AbstractCommand.h
  1322. * src/AbstractProxyRequestCommand.cc
  1323. * src/ActivePeerConnectionCommand.cc
  1324. * src/ActivePeerConnectionCommand.h
  1325. * src/AdaptiveURISelector.cc
  1326. * src/BtCheckIntegrityEntry.cc
  1327. * src/BtDependency.cc
  1328. * src/BtDependency.h
  1329. * src/BtFileAllocationEntry.cc
  1330. * src/BtPostDownloadHandler.cc
  1331. * src/CheckIntegrityEntry.cc
  1332. * src/DownloadCommand.cc
  1333. * src/FtpDownloadCommand.cc
  1334. * src/FtpFinishDownloadCommand.cc
  1335. * src/FtpInitiateConnectionCommand.cc
  1336. * src/FtpNegotiationCommand.cc
  1337. * src/HttpInitiateConnectionCommand.cc
  1338. * src/HttpRequestCommand.cc
  1339. * src/HttpResponseCommand.cc
  1340. * src/HttpSkipResponseCommand.cc
  1341. * src/InitiateConnectionCommand.cc
  1342. * src/InitiateConnectionCommandFactory.cc
  1343. * src/InitiatorMSEHandshakeCommand.cc
  1344. * src/InitiatorMSEHandshakeCommand.h
  1345. * src/Metalink2RequestGroup.cc
  1346. * src/Metalink2RequestGroup.h
  1347. * src/MetalinkPostDownloadHandler.cc
  1348. * src/MultiUrlRequestInfo.cc
  1349. * src/MultiUrlRequestInfo.h
  1350. * src/PeerAbstractCommand.cc
  1351. * src/PeerInteractionCommand.cc
  1352. * src/PeerInteractionCommand.h
  1353. * src/PeerReceiveHandshakeCommand.cc
  1354. * src/PeerReceiveHandshakeCommand.h
  1355. * src/RequestGroup.cc
  1356. * src/RequestGroup.h
  1357. * src/TrackerWatcherCommand.cc
  1358. * src/TrackerWatcherCommand.h
  1359. * src/XmlRpcMethod.cc
  1360. * src/XmlRpcMethod.h
  1361. * src/XmlRpcMethodImpl.cc
  1362. * src/download_helper.cc
  1363. * src/download_helper.h
  1364. * src/main.cc
  1365. * test/BtDependencyTest.cc
  1366. * test/BtPostDownloadHandlerTest.cc
  1367. * test/DefaultBtMessageDispatcherTest.cc
  1368. * test/DownloadHandlerFactoryTest.cc
  1369. * test/DownloadHelperTest.cc
  1370. * test/Metalink2RequestGroupTest.cc
  1371. * test/MetalinkPostDownloadHandlerTest.cc
  1372. * test/RequestGroupManTest.cc
  1373. * test/RequestGroupTest.cc
  1374. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Added tellActiveStatus xml-rpc command which reports download
  1376. status of active downloads.
  1377. * src/XmlRpcMethodFactory.cc
  1378. * src/XmlRpcMethodImpl.cc
  1379. * src/XmlRpcMethodImpl.h
  1380. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Added addTorrentFile xml-rpc command which receives uploaded
  1382. torrent file and add download for it.
  1383. * src/RequestGroupMan.cc
  1384. * src/XmlRpcMethodFactory.cc
  1385. * src/XmlRpcMethodImpl.cc
  1386. * src/XmlRpcMethodImpl.h
  1387. * src/download_helper.cc
  1388. * src/download_helper.h
  1389. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Added remove xml-rpc command which removes specified download.
  1391. There is a known issue: the removed unfinished downloads are
  1392. reported ERR when aria2 exits. They should be reported as INPR.
  1393. * src/RequestGroupMan.cc
  1394. * src/RequestGroupMan.h
  1395. * src/XmlRpcMethodFactory.cc
  1396. * src/XmlRpcMethodImpl.cc
  1397. * src/XmlRpcMethodImpl.h
  1398. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. If --enable-http-server is enabled, don't stop aria2 when all
  1400. download finished and don't quit when no files to download at
  1401. start up.
  1402. * src/RequestGroupMan.cc
  1403. * src/main.cc
  1404. * src/option_processing.cc
  1405. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Added missing AM_CONDITIONAL
  1407. * configure.ac
  1408. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. Added xml-rpc functionality. Currently only addURI commad is
  1410. supported. To enable xml-rpc, run aria2 with
  1411. --enable-http-server. This option name is temporal and will be
  1412. changed. The feature that reports download progress in html format
  1413. is temporarily disabled.
  1414. * src/HttpServer.cc
  1415. * src/HttpServer.h
  1416. * src/HttpServerBodyCommand.cc
  1417. * src/HttpServerBodyCommand.h
  1418. * src/HttpServerCommand.cc
  1419. * src/HttpServerResponseCommand.cc
  1420. * src/Makefile.am
  1421. * src/OptionParser.cc
  1422. * src/OptionParser.h
  1423. * src/RequestGroupMan.cc
  1424. * src/RequestGroupMan.h
  1425. * src/XmlRpcMethod.cc
  1426. * src/XmlRpcMethod.h
  1427. * src/XmlRpcMethodFactory.cc
  1428. * src/XmlRpcMethodFactory.h
  1429. * src/XmlRpcMethodImpl.cc
  1430. * src/XmlRpcMethodImpl.h
  1431. * src/download_helper.cc
  1432. * src/download_helper.h
  1433. * test/Makefile.am
  1434. * test/XmlRpcMethodTest.cc
  1435. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Added xml-rpc request parser. The supported value types are:
  1437. i4/int, string, double, struct, array, base64. Currently only
  1438. libxml2 version is provided.
  1439. * src/Xml2XmlRpcRequestProcessor.cc
  1440. * src/Xml2XmlRpcRequestProcessor.h
  1441. * src/XmlRpcElements.cc
  1442. * src/XmlRpcElements.h
  1443. * src/XmlRpcRequest.h
  1444. * src/XmlRpcRequestParserController.cc
  1445. * src/XmlRpcRequestParserController.h
  1446. * src/XmlRpcRequestParserState.h
  1447. * src/XmlRpcRequestParserStateImpl.cc
  1448. * src/XmlRpcRequestParserStateImpl.h
  1449. * src/XmlRpcRequestParserStateMachine.cc
  1450. * src/XmlRpcRequestParserStateMachine.h
  1451. * src/XmlRpcRequestProcessor.h
  1452. * test/XmlRpcRequestParserControllerTest.cc
  1453. * test/XmlRpcRequestProcessorTest.cc
  1454. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. * Release 1.3.3
  1456. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Fixed compile error since r1202.
  1458. * src/ExpatMetalinkProcessor.cc
  1459. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1460. Updated Ukrainian, Russian and Simplified Chinese
  1461. translations. Thanks to all translators.
  1462. * po/ru.po
  1463. * po/uk.po
  1464. * po/zh_CN.po
  1465. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Pass reference of Option object instead of pointer.
  1467. * src/download_helper.cc
  1468. * src/download_helper.h
  1469. * src/main.cc
  1470. * test/DownloadHelperTest.cc
  1471. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1473. from option directly. Instead, get them from RequestGroup.
  1474. * src/ActivePeerConnectionCommand.cc
  1475. * src/ActivePeerConnectionCommand.h
  1476. * src/PeerReceiveHandshakeCommand.cc
  1477. * src/RequestGroup.h
  1478. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Removed unused uploadLimitCheck and uploadLimit from
  1480. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1481. PeerInteractionCommand.
  1482. * src/PeerAbstractCommand.cc
  1483. * src/PeerAbstractCommand.h
  1484. * src/PeerInteractionCommand.cc
  1485. * src/PeerInteractionCommand.h
  1486. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. Fixed broken file renaming feature since r1202.
  1488. * src/FtpNegotiationCommand.cc
  1489. * src/FtpNegotiationCommand.h
  1490. * src/HttpResponseCommand.cc
  1491. * src/RequestGroup.cc
  1492. * src/RequestGroup.h
  1493. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Removed unused debug log
  1495. * src/SocketCore.cc
  1496. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Generated configure and Makefile.in using autoconf 2.63 and
  1498. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1499. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1500. * configure.ac
  1501. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Moved piece statistics stuff to new PieceStatMan class.
  1503. Refactored PieceSelector interface.
  1504. * src/DefaultPieceStorage.cc
  1505. * src/DefaultPieceStorage.h
  1506. * src/LongestSequencePieceSelector.cc
  1507. * src/LongestSequencePieceSelector.h
  1508. * src/Makefile.am
  1509. * src/PieceSelector.h
  1510. * src/PieceStatMan.cc
  1511. * src/PieceStatMan.h
  1512. * src/RarestPieceSelector.cc
  1513. * src/RarestPieceSelector.h
  1514. * src/RequestGroup.cc
  1515. * test/DefaultPieceStorageTest.cc
  1516. * test/InOrderPieceSelector.h
  1517. * test/Makefile.am
  1518. * test/PieceStatManTest.cc
  1519. * test/RarestPieceSelectorTest.cc
  1520. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1521. Added static member _protocolFamily to SocketCore. By default,
  1522. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1523. address. Sometime SocketCore::bind() and
  1524. SocketCore::establishConnection() use difference protocl family
  1525. and latter cannot connect to former. To avoid this situation, we
  1526. limit protocol family to AF_INET for unit tests.
  1527. * src/SocketCore.cc
  1528. * src/SocketCore.h
  1529. * test/AllTest.cc
  1530. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1531. Avoid std::bad_alloc for negative bencode string length.
  1532. * src/bencode.cc
  1533. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Supported segmented downloading with chunked transfer encoding and
  1535. content-length.
  1536. * src/DownloadCommand.cc
  1537. * src/HttpResponseCommand.cc
  1538. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Bump up version number to 1.3.3
  1540. * configure.ac
  1541. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1543. from 4096 to 65536 (for insanely large ftp login banners)
  1544. * src/FtpConnection.h
  1545. * test/FtpConnectionTest.cc
  1546. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. In DefaultBtContext::getActualBasePath(), return first
  1548. FileEntry::getPath() for single file torrent.
  1549. * src/DefaultBtContext.cc
  1550. * test/DefaultBtContextTest.cc
  1551. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1553. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1554. Removed _directIOAllowed member from DiskWriter.
  1555. * src/AbstractDiskWriter.cc
  1556. * src/AbstractDiskWriter.h
  1557. * src/AbstractSingleDiskAdaptor.cc
  1558. * src/AbstractSingleDiskAdaptor.h
  1559. * src/BinaryStream.h
  1560. * src/ByteArrayDiskWriter.h
  1561. * src/DefaultPieceStorage.cc
  1562. * src/DiskWriter.h
  1563. * src/MultiDiskAdaptor.cc
  1564. * src/MultiDiskAdaptor.h
  1565. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Now the constructor of AbstractDiskWriter takes filename as an
  1567. argument and filename argument is removed from openFile(),
  1568. initAndOpenFile(), openExistingFile() interface. storeDir member
  1569. and its accessor functions are removed from DiskAdaptor because it
  1570. is not used anymore. size() member function of DefaultDiskWriter,
  1571. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1572. opening file.
  1573. * src/AbstractDiskWriter.cc
  1574. * src/AbstractDiskWriter.h
  1575. * src/AbstractSingleDiskAdaptor.cc
  1576. * src/AbstractSingleDiskAdaptor.h
  1577. * src/ByteArrayDiskWriter.cc
  1578. * src/ByteArrayDiskWriter.h
  1579. * src/ByteArrayDiskWriterFactory.cc
  1580. * src/ByteArrayDiskWriterFactory.h
  1581. * src/DefaultDiskWriter.cc
  1582. * src/DefaultDiskWriter.h
  1583. * src/DefaultDiskWriterFactory.cc
  1584. * src/DefaultDiskWriterFactory.h
  1585. * src/DefaultPieceStorage.cc
  1586. * src/DirectDiskAdaptor.cc
  1587. * src/DirectDiskAdaptor.h
  1588. * src/DiskAdaptor.h
  1589. * src/DiskWriter.h
  1590. * src/DiskWriterFactory.h
  1591. * src/MessageDigestHelper.cc
  1592. * src/MultiDiskAdaptor.cc
  1593. * src/RequestGroup.cc
  1594. * src/UnknownLengthPieceStorage.cc
  1595. * src/Util.cc
  1596. * test/DefaultDiskWriterTest.cc
  1597. * test/DirectDiskAdaptorTest.cc
  1598. * test/FallocFileAllocationIteratorTest.cc
  1599. * test/MessageDigestHelperTest.cc
  1600. * test/MetalinkProcessorTest.cc
  1601. * test/MultiDiskAdaptorTest.cc
  1602. * test/MultiFileAllocationIteratorTest.cc
  1603. * test/SingleFileAllocationIteratorTest.cc
  1604. * test/UtilTest.cc
  1605. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Fixed the bug that aria2 aborts when --select-file is used. This
  1607. bug was introduced in r1199.
  1608. * src/MultiDiskAdaptor.cc
  1609. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Code cleanup
  1611. * test/MockPieceStorage.cc
  1612. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1613. Fixed the bug that read-only file with wrong file size will cause
  1614. error because it cannot be truncated to the correct size. Now if
  1615. file size is different than the expected one, re-open file in
  1616. writable mode.
  1617. * src/AbstractSingleDiskAdaptor.cc
  1618. * src/AbstractSingleDiskAdaptor.h
  1619. * src/BtCheckIntegrityEntry.cc
  1620. * src/DiskAdaptor.h
  1621. * src/MultiDiskAdaptor.h
  1622. * src/RequestGroup.cc
  1623. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Fixed the bug that with --check-integrity option aria2 reports
  1625. downloaded file size is 0 even if some parts of file is correctly
  1626. downloaded. This bug is reproducible for the download that a file
  1627. includes last piece is missing. This bug doesn't reveal for
  1628. single-torrent with file allocation on.
  1629. * src/IteratableChecksumValidator.cc
  1630. * test/IteratableChecksumValidatorTest.cc
  1631. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1633. * src/RequestGroupMan.cc
  1634. * src/AdaptiveURISelector.cc
  1635. * src/AdaptiveURISelector.h
  1636. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. * Release 1.3.2
  1638. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Updated README
  1640. * README
  1641. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1642. Updated Ukrainian translations. Thanks to Alexander10.
  1643. * po/uk.po
  1644. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1645. Code cleanup
  1646. * src/MetalinkParserStateMachine.cc
  1647. * src/MetalinkParserStateMachine.h
  1648. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1650. and expat simultaneously, MetalinkProcessor is now not base class
  1651. and it is directly implemented in XML2SAXMetalinkProcessor and
  1652. ExpatMetalinkProcessor.
  1653. * src/ExpatMetalinkProcessor.cc
  1654. * src/ExpatMetalinkProcessor.h
  1655. * src/Makefile.am
  1656. * src/MetalinkHelper.cc
  1657. * src/MetalinkProcessor.h
  1658. * src/MetalinkProcessorFactory.cc: Removed.
  1659. * src/MetalinkProcessorFactory.h: Removed
  1660. * src/XML2SAXMetalinkProcessor.cc
  1661. * src/XML2SAXMetalinkProcessor.h
  1662. * test/MetalinkProcessorTest.cc
  1663. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Bump up version number to 1.3.2
  1665. * configure.ac
  1666. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Added missing file.
  1668. * test/Makefile.am
  1669. * test/url-list-singleFileEndsWithSlash.torrent
  1670. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1672. request.
  1673. * src/AnnounceList.cc
  1674. * src/AnnounceList.h
  1675. * src/BDE.cc: Added
  1676. * src/BDE.h: Added
  1677. * src/DHTAbstractMessage.cc
  1678. * src/DHTAbstractMessage.h
  1679. * src/DHTAnnouncePeerMessage.cc
  1680. * src/DHTAnnouncePeerMessage.h
  1681. * src/DHTAnnouncePeerReplyMessage.cc
  1682. * src/DHTAnnouncePeerReplyMessage.h
  1683. * src/DHTFindNodeMessage.cc
  1684. * src/DHTFindNodeMessage.h
  1685. * src/DHTFindNodeReplyMessage.cc
  1686. * src/DHTFindNodeReplyMessage.h
  1687. * src/DHTGetPeersMessage.cc
  1688. * src/DHTGetPeersMessage.h
  1689. * src/DHTGetPeersReplyMessage.cc
  1690. * src/DHTGetPeersReplyMessage.h
  1691. * src/DHTMessageFactory.h
  1692. * src/DHTMessageFactoryImpl.cc
  1693. * src/DHTMessageFactoryImpl.h
  1694. * src/DHTMessageReceiver.cc
  1695. * src/DHTMessageTracker.cc
  1696. * src/DHTMessageTracker.h
  1697. * src/DHTPingMessage.cc
  1698. * src/DHTPingMessage.h
  1699. * src/DHTPingReplyMessage.cc
  1700. * src/DHTPingReplyMessage.h
  1701. * src/DHTQueryMessage.cc
  1702. * src/DHTQueryMessage.h
  1703. * src/DHTResponseMessage.cc
  1704. * src/DHTResponseMessage.h
  1705. * src/DefaultBtAnnounce.cc
  1706. * src/DefaultBtContext.cc
  1707. * src/DefaultBtContext.h
  1708. * src/HandshakeExtensionMessage.cc
  1709. * src/Makefile.am
  1710. * src/PeerListProcessor.h
  1711. * src/UTPexExtensionMessage.cc
  1712. * src/bencode.cc
  1713. * src/bencode.h
  1714. * test/AnnounceListTest.cc
  1715. * test/BDETest.cc: Added
  1716. * test/BencodeTest.cc
  1717. * test/DHTAnnouncePeerMessageTest.cc
  1718. * test/DHTAnnouncePeerReplyMessageTest.cc
  1719. * test/DHTFindNodeMessageTest.cc
  1720. * test/DHTFindNodeReplyMessageTest.cc
  1721. * test/DHTGetPeersMessageTest.cc
  1722. * test/DHTGetPeersReplyMessageTest.cc
  1723. * test/DHTMessageFactoryImplTest.cc
  1724. * test/DHTMessageTrackerTest.cc
  1725. * test/DHTPingMessageTest.cc
  1726. * test/DHTPingReplyMessageTest.cc
  1727. * test/Makefile.am
  1728. * test/MockDHTMessageFactory.h
  1729. * test/PeerListProcessorTest.cc
  1730. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Use url-list (web-seeding) only for single-file torrent. This is
  1732. basically the same behavior with Metalink file with torrent and
  1733. URIs.
  1734. * src/RequestGroup.cc
  1735. * src/DefaultBtContext.cc
  1736. * test/DefaultBtContextTest.cc
  1737. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Rewritten expr
  1739. * src/array_fun.h
  1740. * test/array_funTest.cc
  1741. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1742. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1743. * src/DefaultBtMessageDispatcher.cc
  1744. * src/a2algo.h
  1745. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. Removed ExtendedMessagingAware. Instead of using inheritance,
  1747. added ExtensionMessageRegistry and it is passed to
  1748. DefaultExtensionMessageFactory.
  1749. * src/DefaultBtInteractive.cc
  1750. * src/DefaultBtInteractive.h
  1751. * src/DefaultExtensionMessageFactory.cc
  1752. * src/DefaultExtensionMessageFactory.h
  1753. * src/ExtendedMessagingAware.h: Removed.
  1754. * src/ExtensionMessageFactory.h
  1755. * src/ExtensionMessageRegistry.h: Added.
  1756. * src/Makefile.am
  1757. * src/PeerInteractionCommand.cc
  1758. * test/DefaultExtensionMessageFactoryTest.cc
  1759. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1760. Fixed typo in log messages
  1761. * src/MSEHandshake.cc
  1762. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. Fixed the bug that prevents torrent download from finishing. The
  1764. bug doesn't reveal for all torrents. The torrents affected this
  1765. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1766. of pieces.
  1767. * src/bitfield.h
  1768. * test/bitfieldTest.cc
  1769. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1770. Code cleanup
  1771. * src/PeerListProcessor.h
  1772. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Removed RequestGroupAware
  1774. * src/AbstractCommand.cc
  1775. * src/AbstractCommand.h
  1776. * src/ActivePeerConnectionCommand.cc
  1777. * src/ActivePeerConnectionCommand.h
  1778. * src/DHTGetPeersCommand.cc
  1779. * src/DHTGetPeersCommand.h
  1780. * src/InitiatorMSEHandshakeCommand.cc
  1781. * src/InitiatorMSEHandshakeCommand.h
  1782. * src/Makefile.am
  1783. * src/PeerInitiateConnectionCommand.cc
  1784. * src/PeerInitiateConnectionCommand.h
  1785. * src/PeerInteractionCommand.cc
  1786. * src/PeerInteractionCommand.h
  1787. * src/RealtimeCommand.cc
  1788. * src/RealtimeCommand.h
  1789. * src/RequestGroupAware.cc: Removed
  1790. * src/RequestGroupAware.h: Removed
  1791. * src/SeedCheckCommand.cc
  1792. * src/SeedCheckCommand.h
  1793. * src/SleepCommand.cc
  1794. * src/TrackerWatcherCommand.cc
  1795. * src/TrackerWatcherCommand.h
  1796. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Rewritten PeerListProcessor
  1798. * src/PeerListProcessor.h
  1799. * src/CompactPeerListProcessor.h: Removed
  1800. * src/CompactPeerListProcessor.cc: Removed
  1801. * src/DelegatingPeerListProcessor.cc: Removed.
  1802. * src/DefaultBtAnnounce.cc
  1803. * src/Makefile.am
  1804. * src/UTPexExtensionMessage.cc
  1805. * src/DefaultPeerListProcessor.h: Removed.
  1806. * src/DefaultPeerListProcessor.cc: Removed.
  1807. * src/DelegatingPeerListProcessor.h: Removed.
  1808. * test/Makefile.am
  1809. * test/PeerListProcessorTest.cc
  1810. * test/DefaultPeerListProcessorTest.cc: Removed.
  1811. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Rewritten RequestGroupMan::calculateStat()
  1813. * src/RequestGroupMan.cc
  1814. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Removed unnecessary virtual destructor for Request class.
  1816. * src/Request.cc
  1817. * src/Request.h
  1818. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Avoid dynamic_pointer_cast.
  1820. * src/DHTGetPeersCommand.cc
  1821. * src/DHTGetPeersCommand.h
  1822. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  1824. BtEvent.
  1825. * src/AbstractBtEventListener.h: Removed.
  1826. * src/AbstractBtMessage.cc
  1827. * src/AbstractBtMessage.h
  1828. * src/BtAbortOutstandingRequestEvent.h
  1829. * src/BtCancelSendingPieceEvent.h
  1830. * src/BtChokedEvent.h: Removed.
  1831. * src/BtChokingEvent.h
  1832. * src/BtEvent.h: Removed
  1833. * src/BtEventListener.h: Removed.
  1834. * src/BtMessage.h
  1835. * src/BtPieceMessage.cc
  1836. * src/BtPieceMessage.h
  1837. * src/BtRequestMessage.cc
  1838. * src/BtRequestMessage.h
  1839. * src/DefaultBtMessageDispatcher.cc
  1840. * src/Makefile.am
  1841. * src/a2functional.h
  1842. * test/BtPieceMessageTest.cc
  1843. * test/BtRequestMessageTest.cc
  1844. * test/DefaultBtMessageDispatcherTest.cc
  1845. * test/MockBtMessage.h
  1846. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. Code cleanup
  1848. * src/RequestGroupMan.cc
  1849. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. Code cleanup
  1851. * src/DownloadCommand.cc
  1852. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Fixed segmentation fault when GZipDecoder::decode() returns 0
  1854. byte.
  1855. * src/DownloadCommand.cc
  1856. * src/bitfield.h
  1857. * test/bitfieldTest.cc
  1858. Fixed the bug that causes infinite loop if broken web server
  1859. returns chunked response without last "0" chunk-size marker and
  1860. closes connection.
  1861. * src/DownloadCommand.cc
  1862. Instantiate properly configured HttpDownloadCommand for
  1863. non-resumable downlaods.
  1864. * src/HttpResponseCommand.cc
  1865. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Rewritten array operation functions.
  1867. * src/BitfieldMan.cc
  1868. * src/array_fun.h
  1869. * test/array_funTest.cc
  1870. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Removed unused variable 'query'
  1872. * src/Request.cc
  1873. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  1875. accidentally set to false in r1162.
  1876. * configure.ac
  1877. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Code cleanup
  1879. * src/BNode.cc
  1880. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. Increase prefixLength for the bucket which doesn't own local node
  1882. ID when splitting bucket.
  1883. * src/DHTBucket.cc
  1884. * test/DHTBucketTest.cc
  1885. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1886. * Release 1.3.1
  1887. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Bump up version number to 1.3.1
  1889. * configure.ac
  1890. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Removed unused variable checkPoint. Also removed include directive
  1892. for TimeA2.h.
  1893. * src/SeedCheckCommand.h
  1894. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. Fixed the bug that upload limit exceeds the value specified in
  1896. --seed-ratio option depending on the timing of the execution of
  1897. SeedCheckCommand.
  1898. * src/SeedCheckCommand.cc
  1899. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1900. Fixed the bug that removed peer's session upload/download length
  1901. are counted twice in _cachedTransferStat before it is
  1902. re-calculated. This affected the calculation of shara ratio,
  1903. resulting aria2 wrongly determines that specified share ratio is
  1904. reached. Also fixed the typo in calculateStatFor function name.
  1905. * src/BtSetup.cc
  1906. * src/DefaultPeerStorage.cc
  1907. * src/ShareRatioSeedCriteria.h
  1908. * test/ShareRatioSeedCriteriaTest.cc
  1909. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1910. * Release 1.3.0
  1911. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  1913. Nynorsk translations. Thanks to all translators.
  1914. * po/es.po
  1915. * po/ja.po
  1916. * po/nn.po
  1917. * po/ru.po
  1918. * po/uk.po
  1919. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Rewritten isInRange()
  1921. * src/DHTBucket.cc
  1922. * test/DHTBucketTest.cc
  1923. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Fixed typo
  1925. * doc/aria2c.1.txt
  1926. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  1928. malloc/realloc is not used.
  1929. * src/configure.ac
  1930. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1931. BitfieldMan::getMissingIndexes family functions now takes unsigned
  1932. char* bitfield instead of stl container for efficiency.
  1933. PieceSelector::select now takes this
  1934. bitfield. RarestPieceSelector::select now also performs
  1935. efficiently for this change. bitfield namespace is introduced and
  1936. it has several helper functions to handle basic bitfield
  1937. operations such as test, count set bits, etc.
  1938. * src/BitfieldMan.cc
  1939. * src/BitfieldMan.h
  1940. * src/DefaultBtRequestFactory.cc
  1941. * src/DefaultPieceStorage.cc
  1942. * src/DefaultPieceStorage.h
  1943. * src/LongestSequencePieceSelector.cc
  1944. * src/LongestSequencePieceSelector.h
  1945. * src/Makefile.am
  1946. * src/Piece.cc
  1947. * src/Piece.h
  1948. * src/PieceSelector.h
  1949. * src/RarestPieceSelector.cc
  1950. * src/RarestPieceSelector.h
  1951. * src/Util.cc
  1952. * src/Util.h
  1953. * src/bitfield.h
  1954. * test/BitfieldManTest.cc
  1955. * test/LongestSequencePieceSelectorTest.cc
  1956. * test/Makefile.am
  1957. * test/RarestPieceSelectorTest.cc
  1958. * test/UtilTest.cc
  1959. * test/bitfieldTest.cc
  1960. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Made accepted socket non-block.
  1962. * src/FtpNegotiationCommand.cc
  1963. * src/HttpListenCommand.cc
  1964. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1965. Guarded #ifdef HAVE_POSIX_FALLOCATE
  1966. * src/AbstractSingleDiskAdaptor.cc
  1967. * src/DefaultPieceStorage.cc
  1968. * src/DiskAdaptor.h
  1969. * src/DiskAdaptor.h
  1970. * src/MultiFileAllocationIterator.cc
  1971. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. Run
  1973. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  1974. in every 1 sec. The timeout of RequestSlot is 60s by default and
  1975. it doesn't need to be called every time when
  1976. DefaultBtInteractive::doInteractionProcessing() is called.
  1977. * src/DefaultBtInteractive.cc
  1978. * src/DefaultBtInteractive.h
  1979. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1980. Documented 'falloc' in man page.
  1981. * doc/aria2c.1.txt
  1982. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1983. Updated doc
  1984. * src/usage_text.h
  1985. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Added 'falloc' parameter for --file-allocation option. 'falloc'
  1987. allocation mode uses posix_fallocate() system call to allocate
  1988. file on disk. If you are using newer file systems such as ext4
  1989. (with extents support), btrfs or xfs, 'falloc' is your best
  1990. choice. It allocates large(few GiB) files almost instantly. Don't
  1991. use 'falloc' with legacy file systems such as ext3 because it
  1992. takes almost same time as 'prealloc' and it blocks aria2 entirely
  1993. until allocation finishes. 'falloc' may not be available if your
  1994. system doesn't have posix_fallocate() system call.
  1995. * configure.ac
  1996. * src/AbstractDiskWriter.cc
  1997. * src/AbstractDiskWriter.h
  1998. * src/AbstractSingleDiskAdaptor.cc
  1999. * src/BinaryStream.h
  2000. * src/BtCheckIntegrityEntry.cc
  2001. * src/ByteArrayDiskWriter.h
  2002. * src/CheckIntegrityEntry.cc
  2003. * src/CheckIntegrityEntry.h
  2004. * src/DefaultPieceStorage.cc
  2005. * src/DiskAdaptor.cc
  2006. * src/DiskAdaptor.h
  2007. * src/DiskWriter.h
  2008. * src/FallocFileAllocationIterator.cc
  2009. * src/FallocFileAllocationIterator.h
  2010. * src/FileAllocationEntry.cc
  2011. * src/FileAllocationEntry.h
  2012. * src/Makefile.am
  2013. * src/MultiFileAllocationIterator.cc
  2014. * src/MultiFileAllocationIterator.h
  2015. * src/OptionHandlerFactory.cc
  2016. * src/RequestGroup.cc
  2017. * src/StreamCheckIntegrityEntry.cc
  2018. * src/prefs.cc
  2019. * src/prefs.h
  2020. * src/usage_text.h
  2021. * test/FallocFileAllocationIteratorTest.cc
  2022. * test/Makefile.am
  2023. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Removed duplicate enableDirectIO() call.
  2025. * src/MultiFileAllocationIterator.cc
  2026. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2027. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2028. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2029. cost of std::rotate().
  2030. * src/RarestPieceSelector.cc
  2031. * src/RarestPieceSelector.h
  2032. * test/RarestPieceSelectorTest.cc
  2033. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2034. Updated usage doc for --bt-tracker-interval option.
  2035. * src/usage_text.h
  2036. * doc/aria2c.1.txt
  2037. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2038. Documented --bt-tracker-interval option in man page.
  2039. * doc/aria2c.1.txt
  2040. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. Added an option to specify the interval between tracker requests.
  2042. If non-zero value is specified, aria2 uses it and ignores the
  2043. interval value in the response of tracker. If zero is specified,
  2044. aria2 determines the inteval value based on the tarcker response
  2045. and download progress.
  2046. * src/DefaultBtAnnounce.cc
  2047. * src/DefaultBtAnnounce.h
  2048. * src/OptionHandlerFactory.cc
  2049. * src/RequestGroup.cc
  2050. * src/prefs.cc
  2051. * src/prefs.h
  2052. * src/usage_text.h
  2053. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Added operator+=, operator-=, operator-
  2055. * src/TransferStat.cc
  2056. * src/TransferStat.h
  2057. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Refactored RarestPieceSelector to reduce CPU load, especially for
  2059. addPieceStats.
  2060. * src/RarestPieceSelector.cc
  2061. * src/RarestPieceSelector.h
  2062. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2064. getAllMissingBlockIndexes to reduce a call to
  2065. array_function_base::operator[].
  2066. * src/BitfieldMan.cc
  2067. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2068. Cached TransferStat/download speed to avoid to sum them up in each
  2069. call.
  2070. * src/DefaultPeerStorage.cc
  2071. * src/DefaultPeerStorage.h
  2072. * src/SegmentMan.cc
  2073. * src/SegmentMan.h
  2074. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2075. Typedefed cuid_t as int32_t in Command.h
  2076. * src/CUIDCounter.h
  2077. * src/Command.cc
  2078. * src/Command.h
  2079. * src/DownloadEngine.cc
  2080. * src/DownloadEngine.h
  2081. * src/PeerStat.h
  2082. * src/SegmentMan.cc
  2083. * src/SegmentMan.h
  2084. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2085. Reduced the number of calls to PeerStorage::calculateStat() and
  2086. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2087. transfer rate.
  2088. * src/DefaultBtInteractive.cc
  2089. * src/DefaultBtMessageDispatcher.cc
  2090. * src/DefaultPeerStorage.cc
  2091. * src/DefaultPeerStorage.h
  2092. * src/DownloadCommand.cc
  2093. * src/DownloadEngine.cc
  2094. * src/PeerStorage.h
  2095. * src/SegmentMan.cc
  2096. * src/SegmentMan.h
  2097. * test/MockPeerStorage.h
  2098. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Prepended _dir+"/" after joining path elements in torrent file.
  2100. * src/DefaultBtContext.cc
  2101. * test/DefaultBtContextTest.cc
  2102. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Added missing IndexBtMessageValidator.h
  2104. * src/Makefile.am
  2105. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2106. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2107. Chinese translations. Thank you for contributing our project.
  2108. * po/id.po
  2109. * po/it.po
  2110. * po/ru.po
  2111. * po/uk.po
  2112. * po/zh_CN.po
  2113. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Updated README
  2115. * README
  2116. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Bump up version number to 1.3.0
  2118. * configure.ac
  2119. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2120. Updated doc
  2121. * src/DefaultBtContext.h
  2122. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Slice/joinPath for name of single torrent.
  2124. * src/DefaultBtContext.cc
  2125. * test/DefaultBtContextTest.cc
  2126. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Updated man page: Documented --dry-run and --index-out
  2128. options. Changed the default value of --uri-selector and
  2129. --http-auth-challenge options. Removed --direct-file-mapping
  2130. option. Added example for --index-out
  2131. * doc/aria2c.1.txt
  2132. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Updated TEXT_DRY_RUN
  2134. * src/usage_text.h
  2135. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Changed the default value of --uri-selector option from 'inorder'
  2137. to 'feedback'
  2138. * src/OptionHandlerFactory.cc
  2139. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. Included current URI in exception message.
  2141. * src/AbstractCommand.cc
  2142. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Renamed ServerStatURISelector as FeedbackURISelector.
  2144. * src/FeedbackURISelector.cc
  2145. * src/FeedbackURISelector.h
  2146. * src/Makefile.am
  2147. * src/RequestGroupMan.cc
  2148. * src/ServerStatURISelector.cc
  2149. * src/ServerStatURISelector.h
  2150. * test/FeedbackURISelectorTest.cc
  2151. * test/Makefile.am
  2152. * test/ServerStatURISelectorTest.cc
  2153. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2155. all URIs are tested and their timeout is not reached.
  2156. * src/AdaptiveURISelector.cc
  2157. * src/AdaptiveURISelector.h
  2158. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Changed the default value of --http-auth-challenge option to false.
  2160. * src/OptionHandlerFactory.cc
  2161. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2162. Reuse URIs when all unused URIs run out.
  2163. * src/OptionHandlerFactory.cc
  2164. * src/RequestGroup.cc
  2165. * src/prefs.cc
  2166. * src/prefs.h
  2167. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2168. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2169. and BtRejectMessage are derived from RangeBtMessage class.
  2170. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2171. derived from IndexBtMessage class. BtChokeMessage,
  2172. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2173. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2174. ZeroBtMessage class.
  2175. * src/AbstractBtMessage.cc
  2176. * src/AbstractBtMessage.h
  2177. * src/BtAllowedFastMessage.cc
  2178. * src/BtAllowedFastMessage.h
  2179. * src/BtAllowedFastMessageValidator.h: Removed
  2180. * src/BtBitfieldMessage.cc
  2181. * src/BtBitfieldMessage.h
  2182. * src/BtCancelMessage.cc
  2183. * src/BtCancelMessage.h
  2184. * src/BtCancelMessageValidator.h: Removed
  2185. * src/BtChokeMessage.cc
  2186. * src/BtChokeMessage.h
  2187. * src/BtExtendedMessage.cc
  2188. * src/BtExtendedMessage.h
  2189. * src/BtHandshakeMessage.cc
  2190. * src/BtHandshakeMessage.h
  2191. * src/BtHaveAllMessage.cc
  2192. * src/BtHaveAllMessage.h
  2193. * src/BtHaveMessage.cc
  2194. * src/BtHaveMessage.h
  2195. * src/BtHaveMessageValidator.h: Removed
  2196. * src/BtHaveNoneMessage.cc
  2197. * src/BtHaveNoneMessage.h
  2198. * src/BtInterestedMessage.cc
  2199. * src/BtInterestedMessage.h
  2200. * src/BtKeepAliveMessage.cc
  2201. * src/BtKeepAliveMessage.h
  2202. * src/BtNotInterestedMessage.cc
  2203. * src/BtNotInterestedMessage.h
  2204. * src/BtPieceMessage.cc
  2205. * src/BtPieceMessage.h
  2206. * src/BtPortMessage.cc
  2207. * src/BtPortMessage.h
  2208. * src/BtRejectMessage.cc
  2209. * src/BtRejectMessage.h
  2210. * src/BtRejectMessageValidator.h: Removed
  2211. * src/BtRequestMessage.cc
  2212. * src/BtRequestMessage.h
  2213. * src/BtRequestMessageValidator.h: Removed
  2214. * src/BtSuggestPieceMessage.cc
  2215. * src/BtSuggestPieceMessage.h
  2216. * src/BtSuggestPieceMessageValidator.h: Removed
  2217. * src/BtUnchokeMessage.cc
  2218. * src/BtUnchokeMessage.h
  2219. * src/DefaultBtMessageFactory.cc
  2220. * src/IndexBtMessage.cc
  2221. * src/IndexBtMessage.h
  2222. * src/IndexBtMessageValidator.h
  2223. * src/Makefile.am
  2224. * src/PeerMessageUtil.cc
  2225. * src/PeerMessageUtil.h
  2226. * src/RangeBtMessage.cc
  2227. * src/RangeBtMessage.h
  2228. * src/RangeBtMessageValidator.h
  2229. * src/SimpleBtMessage.cc
  2230. * src/SimpleBtMessage.h
  2231. * src/ZeroBtMessage.cc
  2232. * src/ZeroBtMessage.h
  2233. * test/BtRequestMessageTest.cc
  2234. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Reverted usage_text.h to r1093 to avoid to lose translated
  2236. messages.
  2237. * src/usage_text.h
  2238. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2240. declared as non-const previously is now const and defined in class
  2241. definition.
  2242. * src/AbstractBtMessage.cc
  2243. * src/AbstractBtMessage.h
  2244. * src/BtAllowedFastMessage.cc
  2245. * src/BtAllowedFastMessage.h
  2246. * src/BtBitfieldMessage.h
  2247. * src/BtCancelMessage.cc
  2248. * src/BtCancelMessage.h
  2249. * src/BtChokeMessage.cc
  2250. * src/BtChokeMessage.h
  2251. * src/BtExtendedMessage.cc
  2252. * src/BtExtendedMessage.h
  2253. * src/BtHandshakeMessage.cc
  2254. * src/BtHandshakeMessage.h
  2255. * src/BtHaveAllMessage.cc
  2256. * src/BtHaveAllMessage.h
  2257. * src/BtHaveMessage.cc
  2258. * src/BtHaveMessage.h
  2259. * src/BtHaveNoneMessage.cc
  2260. * src/BtHaveNoneMessage.h
  2261. * src/BtInterestedMessage.cc
  2262. * src/BtInterestedMessage.h
  2263. * src/BtKeepAliveMessage.cc
  2264. * src/BtKeepAliveMessage.h
  2265. * src/BtMessage.h
  2266. * src/BtNotInterestedMessage.cc
  2267. * src/BtNotInterestedMessage.h
  2268. * src/BtPieceMessage.h
  2269. * src/BtPortMessage.cc
  2270. * src/BtPortMessage.h
  2271. * src/BtRejectMessage.cc
  2272. * src/BtRejectMessage.h
  2273. * src/BtRequestMessage.cc
  2274. * src/BtRequestMessage.h
  2275. * src/BtSuggestPieceMessage.cc
  2276. * src/BtSuggestPieceMessage.h
  2277. * src/BtUnchokeMessage.cc
  2278. * src/BtUnchokeMessage.h
  2279. * src/SimpleBtMessage.cc
  2280. * src/SimpleBtMessage.h
  2281. * test/MockBtMessage.h
  2282. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Use FileEntry::exists()
  2284. * src/MultiDiskAdaptor.cc
  2285. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2286. Added exists()
  2287. * src/FileEntry.cc
  2288. * src/FileEntry.h
  2289. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2290. Added missing prefix dir.
  2291. * src/download_helper.cc
  2292. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2294. * src/CopyDiskAdaptor.cc: Removed
  2295. * src/CopyDiskAdaptor.h: Removed
  2296. * src/DefaultPieceStorage.cc
  2297. * src/Makefile.am
  2298. * src/OptionHandlerFactory.cc
  2299. * src/prefs.cc
  2300. * src/prefs.h
  2301. * src/usage_text.h
  2302. * test/CopyDiskAdaptorTest.cc: Removed
  2303. * test/Makefile.am
  2304. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Rewritten isSameFileBeingDownloaded()
  2306. * src/RequestGroupMan.cc
  2307. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Removed getName() from DownloadContext. getName() is declared in
  2309. BtContext.
  2310. * src/BtContext.h
  2311. * src/DownloadContext.h
  2312. * src/SingleFileDownloadContext.cc
  2313. * src/SingleFileDownloadContext.h
  2314. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2315. in AbstractSingleDiskAdaptor.
  2316. * src/AbstractSingleDiskAdaptor.h
  2317. * src/DiskAdaptor.h
  2318. * src/MultiDiskAdaptor.h
  2319. * src/RequestGroup.cc
  2320. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2321. MultiDiskAdaptor.
  2322. * src/DefaultPieceStorage.cc
  2323. * src/MultiDiskAdaptor.cc
  2324. * src/MultiDiskAdaptor.h
  2325. * test/MultiDiskAdaptorTest.cc
  2326. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2327. FileEntry::getPath() contains store(top level) directory to
  2328. simplify path handling operation. In the previous implementation,
  2329. store directory is concatenated to FileEntry::getPath() in
  2330. DownloadContext.
  2331. * src/BtDependency.cc
  2332. * src/BtPostDownloadHandler.cc
  2333. * src/CopyDiskAdaptor.cc
  2334. * src/DefaultBtContext.cc
  2335. * src/DirectDiskAdaptor.cc
  2336. * src/FileEntry.cc
  2337. * src/FileEntry.h
  2338. * src/FtpNegotiationCommand.cc
  2339. * src/HttpResponse.cc
  2340. * src/HttpResponseCommand.cc
  2341. * src/Metalink2RequestGroup.cc
  2342. * src/MultiDiskAdaptor.cc
  2343. * src/MultiDiskAdaptor.h
  2344. * src/MultiFileAllocationIterator.cc
  2345. * src/RequestGroup.cc
  2346. * src/SingleFileDownloadContext.cc
  2347. * src/SingleFileDownloadContext.h
  2348. * src/download_helper.cc
  2349. * test/BtDependencyTest.cc
  2350. * test/CopyDiskAdaptorTest.cc
  2351. * test/DefaultBtContextTest.cc
  2352. * test/DefaultBtProgressInfoFileTest.cc
  2353. * test/DirectDiskAdaptorTest.cc
  2354. * test/DownloadHelperTest.cc
  2355. * test/FileEntryTest.cc
  2356. * test/MultiDiskAdaptorTest.cc
  2357. * test/MultiFileAllocationIteratorTest.cc
  2358. * test/RequestGroupTest.cc
  2359. * test/SingleFileDownloadContextTest.cc
  2360. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2361. Fixed compiler warning
  2362. * src/download_helper.cc
  2363. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2364. Throw exception if same infohash torrent is now downloading.
  2365. * src/RequestGroup.cc
  2366. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2367. Added --dry-run option. In this mode, aria2 just checks whether
  2368. the remote file is available and doesn't download data. This
  2369. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2370. are canceled in this mode.
  2371. * src/FtpNegotiationCommand.cc
  2372. * src/HttpResponseCommand.cc
  2373. * src/HttpResponseCommand.h
  2374. * src/OptionHandlerFactory.cc
  2375. * src/RequestGroup.cc
  2376. * src/RequestGroupMan.cc
  2377. * src/prefs.cc
  2378. * src/prefs.h
  2379. * src/usage_text.h
  2380. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Fixed compiler waring
  2382. * test/UriListParserTest.cc
  2383. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Parse options in -i list using OptionParser.
  2385. * src/UriListParser.cc
  2386. * src/UriListParser.h
  2387. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2388. Don't reset URI in retry to avoid additional round trips because
  2389. of redirects.
  2390. * src/AbstractCommand.cc
  2391. * src/OptionHandlerFactory.cc
  2392. * src/prefs.cc
  2393. * src/prefs.h
  2394. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Declared hide() in OptionHandler.
  2396. * src/NameMatchOptionHandler.h
  2397. * src/OptionHandler.h
  2398. * src/OptionHandlerImpl.h
  2399. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2400. Updated doc
  2401. * src/Peer.h
  2402. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2403. Added log message in setStatusInternal()
  2404. * src/ServerStat.cc
  2405. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2406. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2407. effectively exclude failed server.
  2408. * src/AbstractCommand.cc
  2409. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Added --index-out option to specify each file path for torrent.
  2411. Here index shown in --show-files option is used to specify which
  2412. file path should be altered. For example, to change the file path
  2413. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  2414. option multiple times: --index-out=1=aria2.tar.bz2
  2415. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  2416. available. This option can be specified in -i list.
  2417. * src/DefaultBtContext.cc
  2418. * src/DefaultBtContext.h
  2419. * src/MultiDiskAdaptor.cc
  2420. * src/MultiDiskAdaptor.h
  2421. * src/MultiFileAllocationIterator.cc
  2422. * src/OptionHandlerFactory.cc
  2423. * src/OptionHandlerImpl.h
  2424. * src/Util.cc
  2425. * src/Util.h
  2426. * src/download_helper.cc
  2427. * src/prefs.cc
  2428. * src/prefs.h
  2429. * src/usage_text.h
  2430. * test/DefaultBtContextTest.cc
  2431. * test/MultiDiskAdaptorTest.cc
  2432. * test/MultiFileAllocationIteratorTest.cc
  2433. * test/UtilTest.cc
  2434. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Use Util::pathJoin()
  2436. * src/MetalinkParserController.cc
  2437. * test/test.xml
  2438. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Use Util::pathJoin()
  2440. * src/DefaultBtContext.cc
  2441. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. Added Util::pathJoin()
  2443. * src/Util.h
  2444. * test/UtilTest.cc
  2445. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2446. Applied basename function to remove directory element in
  2447. content-disposition value.
  2448. Return empty string if content-disposition value is ".." or ".".
  2449. * src/Util.cc
  2450. * test/UtilTest.cc
  2451. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Added --max-overall-download-limit in man page.
  2453. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  2454. * doc/aria2c.1.txt
  2455. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Added --max-overall-download-limit option. Now --max-upload-limit
  2457. option is not ignored when --max-overall-upload-limit option has
  2458. non-zero value. aria2 checks download(upload) speed in the order:
  2459. first checks overall speed limit and if it is not exceeded, then
  2460. checks speed limit per download. Thus you can specify both
  2461. value. For example, set --max-overall-download-limit=1M and
  2462. --max-download-limit=500K to prevent from one download from eating
  2463. all overall speed limit.
  2464. * src/DefaultBtInteractive.cc
  2465. * src/DefaultBtInteractive.h
  2466. * src/DefaultBtMessageDispatcher.cc
  2467. * src/DefaultBtMessageDispatcher.h
  2468. * src/DownloadCommand.cc
  2469. * src/DownloadCommand.h
  2470. * src/FtpNegotiationCommand.cc
  2471. * src/HttpResponseCommand.cc
  2472. * src/OptionHandlerFactory.cc
  2473. * src/PeerInteractionCommand.cc
  2474. * src/RequestGroup.cc
  2475. * src/RequestGroup.h
  2476. * src/RequestGroupMan.cc
  2477. * src/RequestGroupMan.h
  2478. * src/prefs.cc
  2479. * src/prefs.h
  2480. * src/usage_text.h
  2481. * test/DefaultBtMessageDispatcherTest.cc
  2482. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2483. Documented select-file option in Input File section.
  2484. Documented --http-auth-challenge option.
  2485. * doc/aria2c.1.txt
  2486. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2487. Now select-file can be specified in the uri list(-i list).
  2488. * src/BtContext.cc
  2489. * src/BtContext.h
  2490. * src/RequestGroup.cc
  2491. * src/Sequence.h
  2492. * src/download_helper.cc
  2493. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2494. Made the upper value of --max-concurrent-downloads options unlimited.
  2495. * src/OptionHandlerFactory.cc
  2496. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2497. Fixed the bug that disk writer is not created even if it shares
  2498. same piece with the preceding file if the length of previous file
  2499. is 0.
  2500. * src/MultiDiskAdaptor.cc
  2501. * test/MultiDiskAdaptorTest.cc
  2502. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. In BitTorrent, Open files in read-only mode for hash check. After
  2504. that, re-open file in read/write mode only when the download is
  2505. not finished.
  2506. * src/AbstractDiskWriter.cc
  2507. * src/AbstractDiskWriter.h
  2508. * src/AbstractSingleDiskAdaptor.cc
  2509. * src/AbstractSingleDiskAdaptor.h
  2510. * src/BtCheckIntegrityEntry.cc
  2511. * src/DiskAdaptor.h
  2512. * src/DiskWriter.h
  2513. * src/MultiDiskAdaptor.cc
  2514. * src/MultiDiskAdaptor.h
  2515. * src/RequestGroup.cc
  2516. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2517. Added --http-auth-challenge option. If it is set to true(by
  2518. default), aria2 sends HTTP authorization header only when it is
  2519. requested by the server. If false is set, then authorization
  2520. header is always sent to the server. This is useful for servers
  2521. that don't respond 401 code when authentication is required.
  2522. There is an exception: if username and password are embedded in
  2523. URI, authorization header is always sent to the server regardless
  2524. of this option.
  2525. * src/AuthConfigFactory.cc
  2526. * src/HttpSkipResponseCommand.cc
  2527. * src/OptionHandlerFactory.cc
  2528. * src/prefs.cc
  2529. * src/prefs.h
  2530. * src/usage_text.h
  2531. * test/AuthConfigFactoryTest.cc
  2532. * test/HttpRequestTest.cc
  2533. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2534. * Release 1.2.0
  2535. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2537. Thanks to all translators.
  2538. * po/es.po
  2539. * po/ja.po
  2540. * po/ru.po
  2541. * po/uk.po
  2542. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2543. Call deleteSocketForReadCheck() before socket is closed.
  2544. * src/HttpListenCommand.cc
  2545. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2546. Defined virtual destructor for BObject.
  2547. * src/bencode.h
  2548. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2549. Rewritten BDE to make it efficient.
  2550. * src/bencode.cc
  2551. * src/bencode.h
  2552. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2553. Removed function throw list.
  2554. * src/bencode.cc
  2555. * src/bencode.h
  2556. * test/BencodeTest.cc
  2557. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2558. Enclosed all URLs in double quotes in command-line examples.
  2559. * doc/aria2c.1.txt
  2560. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Updated reference/see also section.
  2562. * README
  2563. * doc/aria2c.1.txt
  2564. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Reorganized man page based on man man-pages.
  2566. * doc/aria2c.1.txt
  2567. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2569. because same documents are available in man page. Added
  2570. References section.
  2571. * README
  2572. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2573. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2574. PERFORMANCE PROFILE section.
  2575. * doc/aria2c.1.txt
  2576. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Rewritten the section for configuration file.
  2578. * README
  2579. * doc/aria2c.1.txt
  2580. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Fixed the segmentation fault during execution of choking algorithm
  2582. in leecher state because of broken compare operator
  2583. implementation.
  2584. * src/BtLeecherStateChoke.cc
  2585. * src/BtLeecherStateChoke.h
  2586. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2587. Open file in binary mode.
  2588. * src/CookieStorage.cc
  2589. * src/DHTSetup.cc
  2590. * src/DHTUtil.cc
  2591. * src/Netrc.cc
  2592. * src/NsCookieParser.cc
  2593. * src/ProtocolDetector.cc
  2594. * src/RequestGroupMan.cc
  2595. * src/Signature.cc
  2596. * src/bencode.cc
  2597. * src/download_helper.cc
  2598. * src/option_processing.cc
  2599. * test/CookieParserTest.cc
  2600. * test/DefaultBtProgressInfoFileTest.cc
  2601. * test/FileTest.cc
  2602. * test/GZipDecoderTest.cc
  2603. * test/RequestGroupManTest.cc
  2604. * test/SignatureTest.cc
  2605. * test/SingleFileAllocationIteratorTest.cc
  2606. * test/UriListParserTest.cc
  2607. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2608. Removed operator[] because it is ambiguous with built-in []
  2609. operator.
  2610. * src/array_fun.h
  2611. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Fixed compile error
  2613. * src/OptionParser.cc
  2614. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. Added missing call to arrayWrapperConst
  2616. * test/array_funTest.cc
  2617. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Use array_wrapper instead of array_ptr.
  2619. * src/DHTRoutingTableDeserializer.cc
  2620. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2622. * src/array_fun.h
  2623. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. Added array_wrapper template.
  2625. * src/array_fun.h
  2626. * test/array_funTest.cc
  2627. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Use operator T* of array_ptr.
  2629. * src/OptionParser.cc
  2630. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2631. Use localhost instead of 127.0.0.1
  2632. * test/FtpConnectionTest.cc
  2633. * test/MSEHandshakeTest.cc
  2634. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Added operator T*
  2636. * src/array_fun.h
  2637. * test/array_funTest.cc
  2638. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2639. Use dynamically allocated char array to detect memory access
  2640. violation.
  2641. * src/DHTRoutingTableDeserializer.cc
  2642. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2644. defined.
  2645. * src/PeerMessageUtil.cc
  2646. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2647. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2648. * configure.ac
  2649. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2650. Added a check to see struct sockaddr_in has sin_len member.
  2651. * configure.ac
  2652. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. Fixed buffer overrun.
  2654. * src/DHTRoutingTableDeserializer.cc
  2655. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2656. Added LL for long long int constant.
  2657. * test/FtpConnectionTest.cc
  2658. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Casted to unsigned int to suppress compiler warning on netbsd.
  2660. * src/BtRuntime.h
  2661. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2662. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2663. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2664. type time_t.
  2665. * src/SimpleLogger.cc
  2666. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Added test for FtpConnection::receiveSizeResponse().
  2668. * test/FtpConnectionTest.cc
  2669. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2670. Fix epoll error on the old kernel 2.6.8 or ealier.
  2671. * src/EpollEventPoll.cc
  2672. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2673. Use Util::parseLLInt instead of sscanf for portability. The
  2674. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2675. * src/FtpConnection.cc
  2676. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2678. block. It should not filter anything.
  2679. * src/BitfieldMan.cc
  2680. * src/ConsoleStatCalc.cc
  2681. * test/BitfieldManTest.cc
  2682. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2683. Fixed the bug that the boolean options that don't take arguments
  2684. don't work.
  2685. * src/OptionHandlerImpl.h
  2686. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2687. Fixed broken selected file BitTorrent download.
  2688. * src/MultiDiskAdaptor.cc
  2689. * test/MultiDiskAdaptorTest.cc
  2690. * test/MultiFileAllocationIteratorTest.cc
  2691. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Fixed #define guard for EpollEventPoll
  2693. * src/EpollEventPoll.h
  2694. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Wait 2 seconds. 1 second is sometimes not enough.
  2696. * test/TimeSeedCriteriaTest.cc
  2697. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Use localhost instead of 127.0.0.1.
  2699. * test/DHTConnectionImplTest.cc
  2700. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. Suppressed compiler warning.
  2702. * src/AdaptiveURISelector.cc
  2703. * src/DefaultPieceStorage.cc
  2704. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2705. Defined virtual destructor.
  2706. * src/MetalinkParserState.h
  2707. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2708. Give NULL for second argument of getaddrinfo instead of "0".
  2709. * src/NameResolver.cc
  2710. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2711. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2712. included strptime doesn't parse data for this format.
  2713. * src/FtpConnection.cc
  2714. * test/FtpConnectionTest.cc
  2715. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Removed tests giving -1 for unsigned argument.
  2717. * test/SingleFileDownloadContextTest.cc
  2718. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Don't use sha256 in tests because it might not be supported by the
  2720. SSL library.
  2721. * test/MetalinkProcessorTest.cc
  2722. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2723. Removed tests giving -1 for unsigned argument.
  2724. * test/AlphaNumberDecoratorTest
  2725. * test/BitfieldManTest.cc
  2726. * test/DefaultBtContextTest.cc
  2727. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. Fixed compile error without libcares when epoll is available.
  2729. * src/EpollEventPoll.cc
  2730. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Included fstream instead of iostream.
  2732. * test/SignatureTest.cc
  2733. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. Removed #include <algorithm>
  2735. * test/RequestGroupTest.cc
  2736. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2738. using RequestGroup::extractURIResult().
  2739. * src/AdaptiveURISelector.cc
  2740. * src/RequestGroup.cc
  2741. * src/RequestGroup.h
  2742. * test/RequestGroupTest.cc
  2743. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Added tests for array_ptr.
  2745. * test/array_funTest.cc
  2746. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Don't send ip parameter to a tracker if ip parameter is empty
  2748. string.
  2749. * src/DefaultBtAnnounce.cc
  2750. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Adjusted line feed.
  2752. * src/version_usage.cc
  2753. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Print tags, possible values when OptionHandlerException is caught.
  2755. * src/option_processing.cc
  2756. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2757. Changed the message for FatalException.
  2758. * src/OptionParser.cc
  2759. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Documented --bt-external-ip option in man page. Updated man pages
  2761. for --proxy-method option.
  2762. * doc/aria2c.1.txt
  2763. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Use GET method for FTP via HTTP proxy.
  2765. * src/FtpInitiateConnectionCommand.cc
  2766. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Changed the default value of --proxy-method option from 'tunnel'
  2768. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2769. option.
  2770. * src/AbstractCommand.cc
  2771. * src/AbstractCommand.h
  2772. * src/FtpInitiateConnectionCommand.cc
  2773. * src/HttpDownloadCommand.cc
  2774. * src/HttpInitiateConnectionCommand.cc
  2775. * src/HttpInitiateConnectionCommand.h
  2776. * src/OptionHandlerFactory.cc
  2777. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. Initialized _logger
  2779. * src/SelectEventPoll.cc
  2780. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Defined a copy constructor for the same type.
  2782. * src/SharedHandle.h
  2783. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2784. Added OptionParser::parseArg() which internally uses getopt_long
  2785. to parse command-line options. All command-line options are now
  2786. configured by OptionHandler. No manual editing of struct option*
  2787. is required any more.
  2788. * src/NameMatchOptionHandler.h
  2789. * src/OptionHandler.h
  2790. * src/OptionHandlerFactory.cc
  2791. * src/OptionHandlerImpl.h
  2792. * src/OptionParser.cc
  2793. * src/OptionParser.h
  2794. * src/array_fun.h
  2795. * src/main.cc
  2796. * src/option_processing.cc
  2797. * test/OptionHandlerTest.cc
  2798. * test/OptionParserTest.cc
  2799. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Fixed configure error with --disable-epoll
  2801. * configure.ac
  2802. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Fixed compile error when HAVE_EPOLL is not defined.
  2804. Fixed linker error on bigendian systems.
  2805. * src/SocketCore.cc
  2806. * src/SocketCore.h
  2807. * test/DefaultBtProgressInfoFileTest.cc
  2808. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2809. Added --bt-external-ip option. You can specify the external IP
  2810. address to report to a BitTorrent tracker. Although this function
  2811. is named 'external', it can accept any kind of IP addresses.
  2812. * src/DefaultBtAnnounce.cc
  2813. * src/OptionHandlerFactory.cc
  2814. * src/option_processing.cc
  2815. * src/prefs.cc
  2816. * src/prefs.h
  2817. * src/usage_text.h
  2818. * test/DefaultBtAnnounceTest.cc
  2819. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2820. Extracted the algorithm to find the longest incremental sequence
  2821. as max_sequence template.
  2822. * src/LongestSequencePieceSelector.cc
  2823. * src/a2algo.h
  2824. * test/Makefile.am
  2825. * test/a2algoTest.cc
  2826. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  2828. * src/usage_text.h
  2829. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2830. Updated doc for --uri-selector, --http-server-listen-port and
  2831. --enable-http-server option. Documented --event-poll option.
  2832. * doc/aria2c.1.txt
  2833. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Updated doc for --enable-http-server.
  2835. * src/usage_text.h
  2836. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Documented --http-server-listen-port and --enable-http-server in
  2838. man page.
  2839. * doc/aria2c.1.txt
  2840. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2841. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  2842. translations. Thanks to all translators.
  2843. * po/es.po
  2844. * po/id.po
  2845. * po/it.po
  2846. * po/ru.po
  2847. * po/uk.po
  2848. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2849. Bump up version number to 1.2.0
  2850. * configure.ac
  2851. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. BtContext::getAnnounceTiers() now returns const reference.
  2853. * src/BtContext.h
  2854. * src/DefaultBtContext.cc
  2855. * src/DefaultBtContext.h
  2856. * test/MockBtContext.h
  2857. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2858. Change the number of retries for tracker request based on the
  2859. number of available tracker in a torrent file.
  2860. * src/TrackerWatcherCommand.cc
  2861. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Added _maxTries property to RequestGroup and assign the option
  2863. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  2864. RequestGroup::getMaxTries() instead of
  2865. Option::getAsInt(PREF_MAX_TRIES).
  2866. * src/AbstractCommand.cc
  2867. * src/RequestGroup.cc
  2868. * src/RequestGroup.h
  2869. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  2871. Mandriva. I modified the patch: make RequestGroup have the
  2872. timeout value and AdaptiveURISelector directly modifies that
  2873. value.
  2874. * src/AbstractCommand.cc
  2875. * src/AdaptiveURISelector.cc
  2876. * src/AdaptiveURISelector.h
  2877. * src/FtpNegotiationCommand.cc
  2878. * src/RequestGroup.cc
  2879. * src/RequestGroup.h
  2880. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. Fixed compiler warning
  2882. * test/IteratableChecksumValidatorTest.cc
  2883. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  2885. integrated downloads. This PieceSelector subclass finds the
  2886. longest continuous sequence in the available missing pieces and
  2887. selects the last index of such sequence. This makes HTTP/FTP
  2888. connections less interrupted by the pieces obtained by BitTorrent
  2889. peers.
  2890. * src/DefaultPieceStorage.cc
  2891. * src/DefaultPieceStorage.h
  2892. * src/LongestSequencePieceSelector.cc
  2893. * src/LongestSequencePieceSelector.h
  2894. * src/Makefile.am
  2895. * src/PieceSelector.h
  2896. * src/RarestPieceSelector.h
  2897. * src/RequestGroup.cc
  2898. * test/BtDependencyTest.cc
  2899. * test/DefaultPieceStorageTest.cc
  2900. * test/IteratableChecksumValidatorTest.cc
  2901. * test/LongestSequencePieceSelectorTest.cc
  2902. * test/Makefile.am
  2903. * test/SegmentManTest.cc
  2904. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2905. Fixed the bug that the average speed is wrong in
  2906. http/ftp/BitTorrent integrated download. Only the download bytes
  2907. in BitTorrent were considered.
  2908. * src/RequestGroup.cc
  2909. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. Choose port for BitTorrent/DHT randomly from the specified range.
  2911. * src/DHTConnectionImpl.cc
  2912. * src/PeerListenCommand.cc
  2913. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Send HTTP Authorization header only if it is requested by the
  2915. server(response 401). There are some exceptions. The authorization
  2916. header for proxy is always sent if it is available without request
  2917. by the server. If username/password is specified in the URI, it
  2918. is immediately sent to the server without request by the server.
  2919. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  2920. SharedHandle<AuthConfig>().
  2921. NetrcAuthResolver::resolveAuthConfig() returns
  2922. SharedHandle<AuthConfig>() if no AuthConfig is available.
  2923. * src/AbstractAuthResolver.cc
  2924. * src/AbstractProxyRequestCommand.cc
  2925. * src/AuthConfigFactory.cc
  2926. * src/AuthConfigFactory.h
  2927. * src/HttpConnection.cc
  2928. * src/HttpRequest.cc
  2929. * src/HttpRequest.h
  2930. * src/HttpResponse.cc
  2931. * src/HttpResponseCommand.cc
  2932. * src/HttpSkipResponseCommand.cc
  2933. * test/AuthConfigFactoryTest.cc
  2934. * test/HttpRequestTest.cc
  2935. * test/HttpResponseTest.cc
  2936. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2937. Remove leading "--" from help keyword and a substring after "="
  2938. from help keyword, so that one can query options by '-h--max-' or
  2939. '-hmax-peers=10'.
  2940. * src/option_processing.cc
  2941. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2942. Rewritten PStringVisitor and its implementation.
  2943. * src/PStringBuildVisitor.cc
  2944. * src/PStringBuildVisitor.h
  2945. * src/PStringDatum.h
  2946. * src/PStringNumLoop.h
  2947. * src/PStringSegment.cc
  2948. * src/PStringSegment.h
  2949. * src/PStringSelect.h
  2950. * src/PStringVisitor.h
  2951. * src/download_helper.cc
  2952. * test/PStringBuildVisitorTest.cc
  2953. * test/ParameterizedStringParserTest.cc
  2954. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2955. Persist connection between the built-in HTTP server and a client
  2956. if a client supports keep-alive. Fixed the bug that aria2 exits
  2957. when the HTTP server receives EOF from a client.
  2958. * src/HttpServer.cc
  2959. * src/HttpServer.h
  2960. * src/HttpServerCommand.cc
  2961. * src/HttpServerCommand.h
  2962. * src/HttpServerResponseCommand.cc
  2963. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Added experimental built-in HTTP server. Currently, when a client
  2965. accesses to the server, it responds with the current download
  2966. progress. By default, it is disabled. To enable the server, give
  2967. --enable-http-server option. To change the default port number
  2968. for the server to listen to, use --http-server-listen-port option.
  2969. The response HTML is very simple and refreshes it self each 1
  2970. second. Because of this refresh, you see flicker in normal web
  2971. browser such as Firefox. I recommend to use console-based browser
  2972. such as elinks, w3m. To connect to the server, run 'elinks
  2973. http://localhost:6800/' while running aria2. Please replace port
  2974. number '6800'(which is default) with your preference.
  2975. * src/DownloadEngineFactory.cc
  2976. * src/HttpHeader.cc
  2977. * src/HttpHeader.h
  2978. * src/HttpHeaderProcessor.cc
  2979. * src/HttpHeaderProcessor.h
  2980. * src/HttpListenCommand.cc
  2981. * src/HttpListenCommand.h
  2982. * src/HttpServer.cc
  2983. * src/HttpServer.h
  2984. * src/HttpServerCommand.cc
  2985. * src/HttpServerCommand.h
  2986. * src/HttpServerResponseCommand.cc
  2987. * src/HttpServerResponseCommand.h
  2988. * src/Makefile.am
  2989. * src/OptionHandlerFactory.cc
  2990. * src/Util.cc
  2991. * src/Util.h
  2992. * src/help_tags.h
  2993. * src/option_processing.cc
  2994. * src/prefs.cc
  2995. * src/prefs.h
  2996. * src/usage_text.h
  2997. * test/HttpHeaderProcessorTest.cc
  2998. * test/UtilTest.cc
  2999. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. Removed.
  3001. * src/CheckIntegrityMan.cc
  3002. * src/FileAllocationMan.cc
  3003. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3004. Made (piece) hash check sequential for each RequestGroup because
  3005. simultaneous hash check is slower than sequential execution.
  3006. * src/CheckIntegrityCommand.cc
  3007. * src/CheckIntegrityDispatcherCommand.cc
  3008. * src/CheckIntegrityDispatcherCommand.h
  3009. * src/CheckIntegrityMan.h
  3010. * src/ConsoleStatCalc.cc
  3011. * src/DownloadCommand.cc
  3012. * src/DownloadEngine.cc
  3013. * src/DownloadEngine.h
  3014. * src/DownloadEngineFactory.cc
  3015. * src/Makefile.am
  3016. * src/Makefile.in
  3017. * src/RequestGroup.cc
  3018. * src/StatCalc.h
  3019. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3021. SequentialDispatcherCommand.
  3022. * src/FileAllocationDispatcherCommand.cc
  3023. * src/SequentialDispatcherCommand.h
  3024. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Rewritten FileAllocationDispatcherCommand using brand new
  3026. SequentialDispatcherCommand.
  3027. * src/DownloadEngineFactory.cc
  3028. * src/FileAllocationCommand.cc
  3029. * src/FileAllocationDispatcherCommand.cc
  3030. * src/FileAllocationDispatcherCommand.h
  3031. * src/Makefile.am
  3032. * src/SequentialDispatcherCommand.h
  3033. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3034. Replaced FileAllocationMan with
  3035. SequentialPicker<FileAllocationEntry>.
  3036. * src/BtCheckIntegrityEntry.cc
  3037. * src/ConsoleStatCalc.cc
  3038. * src/DownloadEngine.cc
  3039. * src/DownloadEngine.h
  3040. * src/DownloadEngineFactory.cc
  3041. * src/FileAllocationCommand.cc
  3042. * src/FileAllocationDispatcherCommand.cc
  3043. * src/FileAllocationMan.h
  3044. * src/Makefile.am
  3045. * src/SequentialPicker.h
  3046. * src/StatCalc.h
  3047. * src/StreamCheckIntegrityEntry.cc
  3048. * test/Makefile.am
  3049. * test/SequentialPickerTest.cc
  3050. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3051. Added doc for adaptive URI selector.
  3052. * doc/aria2c.1.txt
  3053. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Added doc for adaptive URI selector.
  3055. * src/usage_text.h
  3056. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3057. Added doc for --bt-max-peers option.
  3058. * doc/aria2c.1.txt
  3059. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3060. Added doc for --bt-hash-check-seed option.
  3061. * doc/aria2c.1.txt
  3062. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3063. Documented exit codes.
  3064. * doc/aria2c.1.txt
  3065. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Added --bt-max-peers option to specify the maximum number of peers
  3067. per torrent. 0 means unlimited number of peers.
  3068. * src/ActivePeerConnectionCommand.cc
  3069. * src/BtRuntime.h
  3070. * src/DefaultPeerStorage.cc
  3071. * src/DefaultPeerStorage.h
  3072. * src/OptionHandlerFactory.cc
  3073. * src/RequestGroup.cc
  3074. * src/option_processing.cc
  3075. * src/prefs.cc
  3076. * src/prefs.h
  3077. * src/usage_text.h
  3078. * test/DefaultPeerStorageTest.cc
  3079. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3080. Added --bt-hash-check-seed option. If true is given to this
  3081. option, after hash check using --check-integrity option and file
  3082. is complete, continue to seed file. If you want to check file and
  3083. download it only when it is damaged or incomplete, set this option
  3084. to false. This option has effect only on BitTorrent download.
  3085. The default value is true(This is the same behavior with the
  3086. previous release).
  3087. * src/BtCheckIntegrityEntry.cc
  3088. * src/OptionHandlerFactory.cc
  3089. * src/option_processing.cc
  3090. * src/prefs.cc
  3091. * src/prefs.h
  3092. * src/usage_text.h
  3093. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3094. Updated copyright year.
  3095. * src/version_usage.cc
  3096. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3097. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3098. * doc/aria2c.1.txt
  3099. * src/usage_text.h
  3100. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3101. Made the max value of split option unlimited.
  3102. * doc/aria2c.1.txt
  3103. * src/OptionHandlerFactory.cc
  3104. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3105. Fixed compile warning/error.
  3106. * src/DownloadResult.h
  3107. * src/HttpDownloadCommand.cc
  3108. * src/ServerStat.cc
  3109. * test/RequestGroupTest.cc
  3110. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Added --event-poll option to select the method for polling events.
  3112. The available methods are "select" and "epoll". "epoll" is
  3113. available on Linux only. The earlier release has the compile
  3114. option to choose from these methods.
  3115. * configure.ac
  3116. * src/RequestGroupMan.cc
  3117. * src/OptionHandlerFactory.cc
  3118. * src/EpollEventPoll.h
  3119. * src/StreamFileAllocationEntry.cc
  3120. * src/a2io.h
  3121. * src/SelectEventPoll.h
  3122. * src/option_processing.cc
  3123. * src/prefs.h
  3124. * src/EpollEventPoll.cc
  3125. * src/EventPoll.h
  3126. * src/SocketCore.h
  3127. * src/Makefile.am
  3128. * src/main.cc
  3129. * src/DownloadEngine.h
  3130. * src/SelectEventPoll.cc
  3131. * src/DownloadEngine.cc
  3132. * src/SocketCore.cc
  3133. * src/DownloadEngineFactory.cc
  3134. * src/Makefile.in
  3135. * src/prefs.cc
  3136. * src/usage_text.h
  3137. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Included RecoverableException.h from main.cc
  3139. * src/main.cc
  3140. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3142. now returns last error encountered in the HTTP/FTP downloads as a
  3143. exit status value. If all downloads finished successfully, aria2
  3144. returns 0. The error code is defined in src/DownloadResult.h.
  3145. The error occurred in the download currently in progress is not
  3146. reported as a last error. If no error has encountered but there
  3147. are in progress or waiting downloads, aria2 returns 7.
  3148. * src/AbstractCommand.cc
  3149. * src/DlAbortEx.h
  3150. * src/DlRetryEx.h
  3151. * src/DownloadCommand.cc
  3152. * src/DownloadFailureException.h
  3153. * src/DownloadResult.h
  3154. * src/FtpNegotiationCommand.cc
  3155. * src/HttpSkipResponseCommand.cc
  3156. * src/Makefile.am
  3157. * src/MultiUrlRequestInfo.cc
  3158. * src/MultiUrlRequestInfo.h
  3159. * src/RecoverableException.h
  3160. * src/RequestGroup.cc
  3161. * src/RequestGroup.h
  3162. * src/RequestGroupMan.cc
  3163. * src/RequestGroupMan.h
  3164. * src/URIResult.cc
  3165. * src/URIResult.h
  3166. * src/main.cc
  3167. * src/option_processing.cc
  3168. * test/RequestGroupTest.cc
  3169. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3171. patch adds AdaptiveURISelector, which selects one of the bests
  3172. mirrors for first and reserved connections. For supplementary
  3173. ones, it returns mirrors which has not been tested yet, and if
  3174. each of them already tested, returns mirrors which has to be
  3175. tested again. Otherwise, it doesn't return anymore mirrors.
  3176. * src/AdaptiveURISelector.cc
  3177. * src/AdaptiveURISelector.h
  3178. * src/FtpNegotiationCommand.cc
  3179. * src/HttpResponseCommand.cc
  3180. * src/Makefile.am
  3181. * src/Makefile.in
  3182. * src/OptionHandlerFactory.cc
  3183. * src/RequestGroup.cc
  3184. * src/RequestGroup.h
  3185. * src/RequestGroupMan.cc
  3186. * src/ServerStat.cc
  3187. * src/ServerStat.h
  3188. * src/ServerStatMan.cc
  3189. * src/SpeedCalc.cc
  3190. * src/URISelector.h
  3191. * src/prefs.cc
  3192. * src/prefs.h
  3193. * test/RequestGroupManTest.cc
  3194. * test/ServerStatManTest.cc
  3195. * test/ServerStatTest.cc
  3196. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3197. Fixed unit test error.
  3198. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3199. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3200. * Release 1.1.2
  3201. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. Updated Russian translation. Thanks to the translators.
  3203. * po/ru.po
  3204. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3205. Added the description of --use-head option to man page.
  3206. * doc/aria2c.1.txt
  3207. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3208. Bump up version number to 1.1.2
  3209. * configure.ac
  3210. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3211. Added --use-head option to toggle whether HEAD method should be
  3212. used in the first HTTP request. By default aria2 uses HEAD method
  3213. as the first request. When the server doesn't recognize HEAD, then
  3214. give aria2 --use-head=false to force aria2 to use GET method
  3215. instead.
  3216. * src/OptionHandlerFactory.cc
  3217. * src/RequestGroupMan.cc
  3218. * src/option_processing.cc
  3219. * src/prefs.cc
  3220. * src/prefs.h
  3221. * src/usage_text.h
  3222. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3223. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3224. message is received before CHOKE message. The old implementation
  3225. doen't clear the use-bit of the piece when recieved REJECT
  3226. message.
  3227. * src/DefaultBtMessageDispatcher.cc
  3228. * test/DefaultBtMessageDispatcherTest.cc
  3229. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3230. * Release 1.1.1
  3231. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Bump up version number to 1.1.1.
  3233. * configure.ac
  3234. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3235. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3236. is printed repeatedly.
  3237. * src/ConsoleStatCalc.cc
  3238. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3239. * Release 1.1.0
  3240. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3241. Added ifdef clause for conditional compilation.
  3242. * src/main.cc
  3243. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3245. translations. Thanks to all translators.
  3246. * po/ja.po
  3247. * po/ru.po
  3248. * po/uk.po
  3249. * po/zh_CN.po
  3250. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Added the preceding ">>> " before the message "Printing the
  3252. contents of file..." to make the output more readable.
  3253. * src/main.cc
  3254. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3255. Added try-catch block in the loop in showFiles() to continue the
  3256. operation even if the exception occurred in one file.
  3257. * src/main.cc (showFiles)
  3258. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Made messages in showFiles() translatable.
  3260. * po/aria2.pot
  3261. * src/main.cc
  3262. * src/message.h
  3263. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3264. Print the contents of Torrent/Metalink files are printed without
  3265. -T/-M options.
  3266. * src/main.cc
  3267. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3268. Escaped '--' with '\--'
  3269. * README
  3270. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Updated "How to build" section in README. Mentioned about
  3272. --with-ca-bundle compile option.
  3273. * README
  3274. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Bump up version number to 1.1.0.
  3276. * configure.ac
  3277. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3278. Added a note for --dht-listen-port option.
  3279. * doc/aria2c.1.txt
  3280. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Update doc for --realtime-chunk-checksum option.
  3282. * doc/aria2c.1.txt
  3283. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3284. Update doc for --realtime-chunk-checksum option.
  3285. * src/usage_text.h
  3286. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3287. Updated French, Japanese, Russian and Ukrainian translations.
  3288. Thanks to all translators.
  3289. * po/fr.po
  3290. * po/ja.po
  3291. * po/ru.po
  3292. * po/uk.po
  3293. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3294. Renamed aria2c.pot to aria2.pot
  3295. * po/aria2.pot
  3296. * po/aria2c.pot: Removed.
  3297. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3298. Removed MetaEntry.h
  3299. * src/Makefile.am
  3300. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3301. Rename file by appending digits if a local file exists and its
  3302. file size is larger than that of remote file with --continue
  3303. option. The old implementation just throws exception in such case.
  3304. * src/RequestGroup.cc
  3305. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Fixed the bug that download progress summary is not printed in the
  3307. interval specified by the option.
  3308. * src/ConsoleStatCalc.cc
  3309. * src/ConsoleStatCalc.h
  3310. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Fixed compiler warning
  3312. * src/Cookie.cc
  3313. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Fixed the cookie implementation based on RFC2965.
  3315. Now if a value in domain field is not started with dot, then
  3316. prepend dot. That means a cookie with domain=sf.net is sent to
  3317. wiki.sf.net.
  3318. * src/Cookie.cc
  3319. * test/CookieParserTest.cc
  3320. * test/CookieStorageTest.cc
  3321. * test/CookieTest.cc
  3322. * test/NsCookieParserTest.cc
  3323. * test/Sqlite3MozCookieParserTest.cc
  3324. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3326. is enabled and the server doesn't support keep-alive.
  3327. * src/AbstractCommand.cc
  3328. * src/DownloadCommand.cc
  3329. * src/HttpDownloadCommand.cc
  3330. * src/HttpDownloadCommand.h
  3331. * src/HttpResponseCommand.cc
  3332. * src/Request.cc
  3333. * src/Request.h
  3334. * test/RequestTest.cc
  3335. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3336. Removed Dictionary/List/Data and its related classes.
  3337. * src/BencodeVisitor.cc: Removed.
  3338. * src/BencodeVisitor.h: Removed.
  3339. * src/Data.cc: Removed.
  3340. * src/Data.h: Removed.
  3341. * src/Dictionary.cc: Removed.
  3342. * src/Dictionary.h: Removed.
  3343. * src/List.cc: Removed.
  3344. * src/List.h: Removed.
  3345. * src/Makefile.am
  3346. * src/MetaEntry.h: Removed.
  3347. * src/MetaEntryVisitor.h: Removed.
  3348. * src/MetaFileUtil.cc: Removed.
  3349. * src/MetaFileUtil.h: Removed.
  3350. * test/BencodeVisitorTest.cc: Removed.
  3351. * test/DataTest.cc: Removed.
  3352. * test/DictionaryTest.cc: Removed.
  3353. * test/ListTest.cc: Removed.
  3354. * test/Makefile.am
  3355. * test/MetaFileUtilTest.cc: Removed.
  3356. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3357. Removed include of MetaEntry.h
  3358. * test/DHTMessageTrackerEntryTest.cc
  3359. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3360. Use BDE instead of Dictionary/List/Data.
  3361. * src/AnnounceList.cc
  3362. * src/AnnounceList.h
  3363. * test/AnnounceListTest.cc
  3364. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3365. Use BDE instead of Dictionary/List/Data.
  3366. * src/DHTAbstractMessage.cc
  3367. * src/DHTAbstractMessage.h
  3368. * src/DHTAnnouncePeerMessage.cc
  3369. * src/DHTAnnouncePeerMessage.h
  3370. * src/DHTAnnouncePeerReplyMessage.cc
  3371. * src/DHTAnnouncePeerReplyMessage.h
  3372. * src/DHTFindNodeMessage.cc
  3373. * src/DHTFindNodeMessage.h
  3374. * src/DHTFindNodeReplyMessage.cc
  3375. * src/DHTFindNodeReplyMessage.h
  3376. * src/DHTGetPeersMessage.cc
  3377. * src/DHTGetPeersMessage.h
  3378. * src/DHTGetPeersReplyMessage.cc
  3379. * src/DHTGetPeersReplyMessage.h
  3380. * src/DHTMessageFactory.h
  3381. * src/DHTMessageFactoryImpl.cc
  3382. * src/DHTMessageFactoryImpl.h
  3383. * src/DHTMessageReceiver.cc
  3384. * src/DHTMessageTracker.cc
  3385. * src/DHTMessageTracker.h
  3386. * src/DHTPingMessage.cc
  3387. * src/DHTPingMessage.h
  3388. * src/DHTPingReplyMessage.cc
  3389. * src/DHTPingReplyMessage.h
  3390. * src/DHTQueryMessage.cc
  3391. * src/DHTQueryMessage.h
  3392. * src/DHTResponseMessage.cc
  3393. * src/DHTResponseMessage.h
  3394. * test/DHTAnnouncePeerMessageTest.cc
  3395. * test/DHTAnnouncePeerReplyMessageTest.cc
  3396. * test/DHTFindNodeMessageTest.cc
  3397. * test/DHTFindNodeReplyMessageTest.cc
  3398. * test/DHTGetPeersMessageTest.cc
  3399. * test/DHTGetPeersReplyMessageTest.cc
  3400. * test/DHTMessageFactoryImplTest.cc
  3401. * test/DHTMessageTrackerTest.cc
  3402. * test/DHTPingMessageTest.cc
  3403. * test/DHTPingReplyMessageTest.cc
  3404. * test/MockDHTMessageFactory.h
  3405. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3406. Added tests the case where length < 0 is specified.
  3407. * test/BencodeTest.cc
  3408. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3409. Fixed memory leak in decoderawstring()
  3410. * src/bencode.cc
  3411. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3412. Added missing #ifdef guard. Added uc() function for String and
  3413. removeKey() for Dict.
  3414. * src/bencode.cc
  3415. * src/bencode.h
  3416. * test/BencodeTest.cc
  3417. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Use BDE instead of Dictionary/List/Data.
  3419. * src/HandshakeExtensionMessage.cc
  3420. * src/HandshakeExtensionMessage.h
  3421. * test/HandshakeExtensionMessageTest.cc
  3422. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3423. Added --max-overall-upload-limit option. This option limits the
  3424. overall upload speed. Stated in help message that the existing
  3425. --max-upload-limit option limits the upload speed per each
  3426. torrent. Man page is also updated.
  3427. * doc/aria2c.1.txt
  3428. * src/DefaultBtMessageDispatcher.cc
  3429. * src/DefaultBtMessageDispatcher.h
  3430. * src/OptionHandlerFactory.cc
  3431. * src/PeerInteractionCommand.cc
  3432. * src/option_processing.cc
  3433. * src/prefs.cc
  3434. * src/prefs.h
  3435. * src/usage_text.h
  3436. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3437. Use BDE instead of Dictionary/List/Data classes.
  3438. * src/CompactPeerListProcessor.cc
  3439. * src/CompactPeerListProcessor.h
  3440. * src/DefaultBtAnnounce.cc
  3441. * src/DefaultBtContext.cc
  3442. * src/DefaultBtContext.h
  3443. * src/DefaultPeerListProcessor.cc
  3444. * src/DefaultPeerListProcessor.h
  3445. * src/DelegatingPeerListProcessor.cc
  3446. * src/DelegatingPeerListProcessor.h
  3447. * src/PeerListProcessor.h
  3448. * src/UTPexExtensionMessage.cc
  3449. * src/Util.h
  3450. * src/message.h
  3451. * test/DefaultBtContextTest.cc
  3452. * test/DefaultPeerListProcessorTest.cc
  3453. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3454. Added bencode helper functions and BDE class.
  3455. They will replace MetaFileUtil and Dictionary/List/Data classes.
  3456. * src/Makefile.am
  3457. * src/bencode.cc
  3458. * src/bencode.h
  3459. * test/BencodeTest.cc
  3460. * test/Makefile.am
  3461. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3462. Fixed the bug that bad URI is sent to the tracker when the announe
  3463. URI in torrent file includes query.
  3464. * src/DefaultBtAnnounce.cc
  3465. * test/DefaultBtAnnounceTest.cc
  3466. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3467. Added Option::blank().
  3468. Use !Option::blank(name) instead of Option::defined(name) for
  3469. the options that take filename.
  3470. * src/MultiUrlRequestInfo.cc
  3471. * src/Option.cc
  3472. * src/Option.h
  3473. * src/main.cc
  3474. * src/option_processing.cc
  3475. * test/OptionTest.cc
  3476. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3477. Documented the default value of --check-certificate option in man
  3478. page.
  3479. * doc/aria2c.1.txt
  3480. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3481. Enabled --check-certificate by default. Added compile
  3482. time(configure) option --with-ca-bundle to specify CA bundle.
  3483. Warn if --check-certificate=true and --ca-certificate is not
  3484. specified or loading CA certificate is failed.
  3485. * configure.ac
  3486. * src/MultiUrlRequestInfo.cc
  3487. * src/OptionHandlerFactory.cc
  3488. * src/message.h
  3489. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3490. Mentioned https tag in help option.
  3491. * doc/aria2c.1.txt
  3492. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3493. Added `https' tag to help option category. Added https tag to
  3494. --ca-certificate, --certificate, --check-certificate and
  3495. --private-key option.
  3496. * src/OptionHandlerFactory.cc
  3497. * src/help_tags.h
  3498. * src/option_processing.cc
  3499. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Changed the package name from `aria2c' to `aria2' in order to fix
  3501. the packaging issue in Debian and Fedora. The name of the
  3502. executable is not changed.
  3503. * configure.ac
  3504. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3505. Fixed typos
  3506. * src/usage_text.h
  3507. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Fixed typos and updated doc.
  3509. * README
  3510. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3511. Fixed typos
  3512. * doc/aria2c.1.txt
  3513. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3514. Fixed typos
  3515. * src/usage_text.h
  3516. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3517. Print a message when no files to download.
  3518. * src/download_helper.cc
  3519. * src/main.cc
  3520. * src/message.h
  3521. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. RFC3986 complied Percent-Encoding(urlencode).
  3523. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3524. ones.
  3525. * src/Request.cc
  3526. * src/Util.cc
  3527. * src/Util.h
  3528. * test/BtHandshakeMessageTest.cc
  3529. * test/DefaultBtAnnounceTest.cc
  3530. * test/DefaultBtContextTest.cc
  3531. * test/RequestTest.cc
  3532. * test/UtilTest.cc
  3533. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Fixed the bug that prevents aria2 from downloading 0-length files
  3535. via HTTP/FTP.
  3536. * src/DefaultBtContext.cc
  3537. * src/DefaultBtContext.h
  3538. * src/DownloadContext.h
  3539. * src/FtpNegotiationCommand.cc
  3540. * src/HttpResponseCommand.cc
  3541. * src/HttpResponseCommand.h
  3542. * src/RequestGroup.cc
  3543. * src/SingleFileDownloadContext.cc
  3544. * src/SingleFileDownloadContext.h
  3545. * test/BtPostDownloadHandlerTest.cc
  3546. * test/MetalinkPostDownloadHandlerTest.cc
  3547. * test/MockBtContext.h
  3548. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3550. * src/option_processing.cc
  3551. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Applied aria2-1.0.1-mingw.patch.
  3553. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3554. mingw.
  3555. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3556. * src/SocketCore.cc
  3557. * src/a2netcompat.h
  3558. * test/SocketCoreTest.cc
  3559. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3560. * Release 1.0.1
  3561. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Updated Ukrainian and Norwegian Nynorsk translations.
  3563. Thanks to all translators.
  3564. * po/nn.po
  3565. * po/uk.po
  3566. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. Don't show download result when -S option is used.
  3568. * src/main.cc
  3569. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3570. Bump up version number to 1.0.1
  3571. * configure.ac
  3572. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3573. Closed files after the test cases in MultiDiskWriterTest::
  3574. testResetDiskWriterEntries(). This will fix the unit test error
  3575. in mingw32 build.
  3576. * test/MultiDiskWriterTest.cc
  3577. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3578. Use HEAD method to get file size from HTTP server for segmented
  3579. downloading.
  3580. The request to the BitTorrent Tracker always uses GET method because
  3581. the response of the tracker is small and it doesn't need segmented
  3582. download.
  3583. * src/FtpNegotiationCommand.cc
  3584. * src/HttpRequest.cc
  3585. * src/HttpResponseCommand.cc
  3586. * src/HttpSkipResponseCommand.cc
  3587. * src/RequestGroup.cc
  3588. * src/RequestGroup.h
  3589. * src/TrackerWatcherCommand.cc
  3590. * test/HttpRequestTest.cc
  3591. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3592. Fixed the bug that causes floating exception when -T option is used and
  3593. no URIs are given.
  3594. * src/download_helper.cc
  3595. * test/DownloadHelperTest.cc
  3596. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3597. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3598. errors in MinGW:
  3599. Closed file after saving server stats (RequestGroupMan.cc)
  3600. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3601. Ignored case & handled 2-digit years (strptime.c)
  3602. Added missing suseconds_t definition (a2time.h)
  3603. Fixed socket CLOSE() define (SocketCore.cc)
  3604. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3605. Changed utime() test values from x000 to x00000 as MinGW failed on
  3606. values less than timezone offset from Unix epoch
  3607. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3608. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3609. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3610. handle negative dates (CookieParserTest.cc)
  3611. * src/a2time.h
  3612. * src/FtpConnection.cc
  3613. * src/RequestGroupMan.cc
  3614. * src/SocketCore.cc
  3615. * src/strptime.c
  3616. * test/CookieParserTest.cc
  3617. * test/CopyDiskAdaptorTest.cc
  3618. * test/FileTest.cc
  3619. * test/FtpConnectionTest.cc
  3620. * test/MultiDiskAdaptorTest.cc
  3621. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3622. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3623. * doc/aria2c.1.txt
  3624. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3625. * Release 1.0.0
  3626. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3627. Added '~' to reserved characters.
  3628. * src/Util.cc
  3629. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3630. Do not urlencode Request::url in setUrl() because we want unmodified
  3631. URL using Request::getUrl()
  3632. * src/Request.cc
  3633. * src/Request.h
  3634. * test/RequestTest.cc
  3635. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3636. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3637. Thanks to all translators.
  3638. * po/bg.po
  3639. * po/fr.po
  3640. * po/ja.po
  3641. * po/ru.po
  3642. * po/uk.po
  3643. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3644. Bump up version number to 1.0.0
  3645. * configure.ac
  3646. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3647. Added nosqlite3 build to build_test.sh.
  3648. Renamed noxml as expat.
  3649. * build_test.sh
  3650. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3651. Updated INPUT FILE section.
  3652. * doc/aria2c.1.txt
  3653. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3654. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3655. on big endian systems because test .aria2 files are made for little
  3656. endian systems.
  3657. * test/DefaultBtProgressInfoFileTest.cc
  3658. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3659. Dropped ares support.
  3660. * README
  3661. * configure.ac
  3662. * m4/libares.m4: Removed.
  3663. * src/AsyncNameResolver.cc
  3664. * src/Makefile.am
  3665. * test/Makefile.am
  3666. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3667. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3668. Removed const qualifier from DiskWriter::size().
  3669. * src/AbstractDiskWriter.cc
  3670. * src/AbstractDiskWriter.h
  3671. * src/ByteArrayDiskWriter.cc
  3672. * src/ByteArrayDiskWriter.h
  3673. * src/DiskWriter.h
  3674. * test/ByteArrayDiskWriterTest.cc
  3675. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3676. Fixed the bug that causes segmentation fault/bus error during executing
  3677. choking algorithm while seeding. This is caused by improper
  3678. implementation of compare function which returns inconsistent results
  3679. depending on the timing of last unchoke.
  3680. * src/BtSeederStateChoke.cc
  3681. * src/BtSeederStateChoke.h
  3682. * src/DefaultPeerStorage.cc
  3683. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Removed TODO
  3685. * TODO
  3686. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Added a section that explains how to pass argument to options that
  3688. takes optional arguments with its short form.
  3689. * doc/aria2c.1.txt
  3690. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Added -u for the short form of --max-upload-limit option.
  3692. * doc/aria2c.1.txt
  3693. * src/option_processing.cc
  3694. * src/usage_text.h
  3695. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3696. Added -V for the short form of --check-integrity option.
  3697. Now the argument of --check-integrity option is optional:
  3698. if it is omitted, it is evaluated as true.
  3699. * doc/aria2c.1.txt
  3700. * src/option_processing.cc
  3701. * src/usage_text.h
  3702. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3703. Made the default value of --ftp-pasv option set to true and it can take
  3704. true/false values.
  3705. * src/OptionHandlerFactory.cc
  3706. * src/option_processing.cc
  3707. * src/usage_text.h
  3708. * doc/aria2c.1.txt
  3709. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Given custom random number generator to std::random_shuffle.
  3711. * src/AnnounceList.cc
  3712. * src/BtLeecherStateChoke.cc
  3713. * src/BtSeederStateChoke.cc
  3714. * src/DefaultBtRequestFactory.cc
  3715. * src/MetalinkEntry.cc
  3716. * src/RarestPieceSelector.cc
  3717. * src/SimpleRandomizer.cc
  3718. * src/SimpleRandomizer.h
  3719. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3720. Now the default value of --enable-direct-io is true.
  3721. * src/OptionHandlerFactory.cc
  3722. * doc/aria2c.1.txt
  3723. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3724. Erase peer before executing onReturningPeer and onErasingPeer
  3725. because choking algorithm called from onReturningPeer doesn't
  3726. like erasing peer in the active peer list.
  3727. * src/DefaultPeerStorage.cc
  3728. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Instead of creating special filename in createDownloadResult() if
  3730. inMemoryDownload() is true, now it is done in getFilePath().
  3731. * src/RequestGroup.cc
  3732. * test/RequestGroupTest.cc
  3733. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3734. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3735. processed in memory. This is the fix for previous comment out.
  3736. * src/MemoryBufferPreDownloadHandler.cc
  3737. * src/RequestGroup.cc
  3738. * src/RequestGroup.h
  3739. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Commented out the code which sets virtual directory path "[MEMORY]"
  3741. propagate directory to store to following RequestGroup.
  3742. * src/MemoryBufferPreDownloadHandler.cc
  3743. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Bump up version number to 1.0.0b
  3745. * configure.ac
  3746. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Added input_uris.txt to EXTRA_DIST
  3748. * test/Makefile.am
  3749. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3750. Removed PeerObject.h from Makefile.am
  3751. * src/Makefile.am
  3752. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3753. Avoid slow seeding
  3754. * src/PeerInteractionCommand.cc
  3755. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Updated usage for -i option.
  3757. * src/usage_text.h (TEXT_INPUT_FILE)
  3758. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Added INPUT FILE section to man page.
  3760. Escaped fake URLs.
  3761. * doc/aria2c.1.txt
  3762. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3763. Fixed wrong note position for -o option.
  3764. * doc/aria2c.1.txt
  3765. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3766. Fixed compile error without SSL/XML library.
  3767. * src/DefaultBtProgressInfoFile.cc
  3768. * src/DefaultBtProgressInfoFile.h
  3769. * src/FileMetalinkParserState.cc
  3770. * src/RequestGroup.h
  3771. * src/SocketCore.cc
  3772. * src/SocketCore.h
  3773. * src/VerificationMetalinkParserState.cc
  3774. * src/download_helper.h
  3775. * src/main.cc
  3776. * test/DefaultBtProgressInfoFileTest.cc
  3777. * test/DownloadHelperTest.cc
  3778. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3779. Rewritten URI handling functions. They are now provided as a testable
  3780. functions.
  3781. * src/Makefile.am
  3782. * src/RequestGroup.cc
  3783. * src/RequestGroup.h
  3784. * src/download_helper.cc
  3785. * src/download_helper.h
  3786. * src/main.cc
  3787. * test/DownloadHelperTest.cc
  3788. * test/Makefile.am
  3789. * test/input_uris.txt
  3790. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3791. Quickly terminate commands when ctrl-c is pressed.
  3792. * src/DownloadEngine.cc
  3793. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Quickly terminate idle commands when download finished.
  3795. * src/AbstractCommand.cc
  3796. * src/DownloadCommand.cc
  3797. * src/DownloadEngine.cc
  3798. * src/DownloadEngine.h
  3799. * src/SleepCommand.cc
  3800. * src/SleepCommand.h
  3801. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3802. Added the ability to specify output filename and directory in input
  3803. file.
  3804. Additional parameters are added in the following line of URIs
  3805. with proceeding white space(s), 1 parameter in 1 line.
  3806. The parameter names are the same with the command-line option name
  3807. without proceeding "--". Not all the options are available here:
  3808. at the moment, 'dir' and 'out' options are avialable.
  3809. Please note that out option has no effect against Metalink or BitTorrent
  3810. downloads.
  3811. Example input file:
  3812. http://host/foo-1.1.tar.bz2
  3813. out=foo.tar.bz2
  3814. dir=/tmp/downloads
  3815. http://host/thundermonkey-2.0.tar.bz2
  3816. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  3817. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  3818. thundermonkey-2.0.tar.bz2 is saved as
  3819. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  3820. * src/BtPostDownloadHandler.cc
  3821. * src/Metalink2RequestGroup.cc
  3822. * src/Metalink2RequestGroup.h
  3823. * src/MetalinkPostDownloadHandler.cc
  3824. * src/UriListParser.cc
  3825. * src/UriListParser.h
  3826. * src/main.cc
  3827. * test/Metalink2RequestGroupTest.cc
  3828. * test/UriListParserTest.cc
  3829. * test/filelist1.txt
  3830. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3831. Fixed error when SSL library is not found.
  3832. * configure.ac
  3833. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3834. Cross referenced among -s, -C and -j options.
  3835. Updated usage of -C and -s options.
  3836. * src/usage_text.h
  3837. * doc/aria2c.1.txt
  3838. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3839. Fixed bad cast in 32bit platforms.
  3840. * test/DefaultPieceStorageTest.cc
  3841. (DefaultPieceStorageTest::testGetCompletedLength)
  3842. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3843. Fixed unit test fails on 32bit platforms.
  3844. * test/CookieParserTest.cc
  3845. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3846. Show an average download speed in Download results.
  3847. * src/BtFileAllocationEntry.cc
  3848. * src/DefaultPieceStorage.cc
  3849. * src/DownloadContext.cc
  3850. * src/DownloadContext.h
  3851. * src/DownloadResult.h
  3852. * src/RequestGroup.cc
  3853. * src/RequestGroupMan.cc
  3854. * src/StreamFileAllocationEntry.cc
  3855. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3856. Fixed the bug that metalink file is not processed if Content-Type
  3857. field has a paramter.
  3858. * src/HttpResponse.cc
  3859. * src/HttpResponse.h
  3860. * test/HttpResponseTest.cc
  3861. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3862. Removed unused code.
  3863. * src/DefaultBtAnnounce.cc
  3864. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3865. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  3866. the value larger than DefaultPieceStorage::getTotalLength() when
  3867. in flight pieces are involved.
  3868. * src/DefaultPieceStorage.cc
  3869. * test/DefaultPieceStorageTest.cc
  3870. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3871. Bump up version number to 1.0.0a.
  3872. * configure.ac
  3873. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3874. Updated configure.ac
  3875. * configure.ac
  3876. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3877. Added usege for proxy.
  3878. * doc/aria2c.1.txt
  3879. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3880. Added usage for --ca-certificate, --certificate, --private-key and
  3881. --check-certificate options.
  3882. * doc/aria2c.1.txt
  3883. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3884. Updated man page
  3885. * doc/aria2c.1.txt
  3886. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3887. Added --no-proxy option. It receives comman separated hostname or
  3888. domains to which proxy should not be used.
  3889. aria2 honors the environment variable no_proxy to override no-proxy
  3890. value in configuration file. The user can override the environment
  3891. variable no_proxy with --no-proxy command-line option.
  3892. * src/AbstractCommand.cc
  3893. * src/OptionHandlerFactory.cc
  3894. * src/option_processing.cc
  3895. * src/prefs.cc
  3896. * src/prefs.h
  3897. * src/usage_text.h
  3898. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3899. Added the ability to verify peer in SSL/TLS using given CA certificates.
  3900. The CA certificates are specified in --ca-certificate option.
  3901. By default, the verification is disabled. Use --check-certificate
  3902. option to enable it.
  3903. * src/HttpRequestCommand.cc
  3904. * src/LibgnutlsTLSContext.cc
  3905. * src/LibgnutlsTLSContext.h
  3906. * src/LibsslTLSContext.cc
  3907. * src/LibsslTLSContext.h
  3908. * src/MultiUrlRequestInfo.cc
  3909. * src/OptionHandlerFactory.cc
  3910. * src/SocketCore.cc
  3911. * src/SocketCore.h
  3912. * src/a2functional.h
  3913. * src/message.h
  3914. * src/option_processing.cc
  3915. * src/prefs.cc
  3916. * src/prefs.h
  3917. * src/usage_text.h
  3918. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. Added client certificate authentication for SSL/TLS.
  3920. Currently a private key must be decrypted for use with aria2.
  3921. If a user accidentally gives encrypted file to aria2 then following
  3922. thing happens:
  3923. If encrypted private key is given to aria2, it behaves differently
  3924. depending on the ssl library it uses. If aria2 built with openssl then
  3925. openssl prompts the user for password. If aria2 build with gnutls then
  3926. aria2 exists with error at start up.
  3927. * src/DownloadEngineFactory.cc
  3928. * src/MultiUrlRequestInfo.cc
  3929. * src/OptionHandlerFactory.cc
  3930. * src/option_processing.cc
  3931. * src/prefs.cc
  3932. * src/prefs.h
  3933. * src/usage_text.h
  3934. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3935. Introduced TLSContext that holds TLS related data that can be shared
  3936. with multiple SSL connections.
  3937. * src/DownloadEngineFactory.cc
  3938. * src/LibgnutlsTLSContext.cc
  3939. * src/LibgnutlsTLSContext.h
  3940. * src/LibsslTLSContext.cc
  3941. * src/LibsslTLSContext.h
  3942. * src/Makefile.am
  3943. * src/SocketCore.cc
  3944. * src/SocketCore.h
  3945. * src/TLSContext.h
  3946. * src/message.h
  3947. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3948. Fixed the bug that the DiskWriter of the first FileEntry whose
  3949. `needsFileAllocation' property is false is not created
  3950. even if it shares a piece with next FileEntry which `requested' property
  3951. is true.
  3952. Fixed the bug that zero-length file is not created if pre file
  3953. allocation is not done.
  3954. * src/MultiDiskAdaptor.cc
  3955. * src/MultiDiskAdaptor.h
  3956. * test/MultiDiskAdaptorTest.cc
  3957. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3958. Added the ability to pool proxy connection.
  3959. The conneciton in FTP with proxy-method=GET is not pooled.
  3960. Proxy-Connection header will not be sent when sending CONNECT method.
  3961. * src/DownloadEngine.cc
  3962. * src/DownloadEngine.h
  3963. * src/FtpFinishDownloadCommand.cc
  3964. * src/FtpInitiateConnectionCommand.cc
  3965. * src/FtpNegotiationCommand.cc
  3966. * src/HttpDownloadCommand.cc
  3967. * src/HttpInitiateConnectionCommand.cc
  3968. * src/HttpRequest.cc
  3969. * src/HttpRequest.h
  3970. * src/HttpResponse.cc
  3971. * src/HttpSkipResponseCommand.cc
  3972. * test/HttpRequestTest.cc
  3973. * test/HttpResponseTest.cc
  3974. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3975. Handle date before epoch.
  3976. To create *bad* Time object, call Time::null().
  3977. * src/CookieParser.cc
  3978. * src/FtpConnection.cc
  3979. * src/FtpConnection.h
  3980. * src/FtpNegotiationCommand.cc
  3981. * src/RequestGroup.cc
  3982. * src/TimeA2.cc
  3983. * src/TimeA2.h
  3984. * test/CookieParserTest.cc
  3985. * test/FtpConnectionTest.cc
  3986. * test/TimeTest.cc
  3987. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3988. Added support for following envrionment variables: http_proxy,
  3989. https_proxy, ftp_proxy and all_proxy.
  3990. Each variable is equivalent to the aria2 option whose name is the
  3991. variable name with '_' replaced with '-'.
  3992. They overrides options specified in aria2.conf file.
  3993. The envrionment variables can be overrode using command-line option.
  3994. * src/option_processing.cc
  3995. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. Renamed --http-proxy-method as --proxy-method.
  3997. * src/AbstractCommand.cc
  3998. * src/FtpInitiateConnectionCommand.cc
  3999. * src/HttpInitiateConnectionCommand.cc
  4000. * src/OptionHandlerFactory.cc
  4001. * src/option_processing.cc
  4002. * src/prefs.cc
  4003. * src/prefs.h
  4004. * src/usage_text.h
  4005. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4006. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4007. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4008. Above 3 options and --http-proxy option can handle proxy in URL format
  4009. like: http://user:passwd@host:port.
  4010. If a proxy requires user/password, they must be specified in a URL.
  4011. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4012. instead.
  4013. * src/AbstractCommand.cc
  4014. * src/AbstractCommand.h
  4015. * src/AbstractProxyRequestCommand.cc
  4016. * src/AbstractProxyRequestCommand.h
  4017. * src/AuthConfigFactory.cc
  4018. * src/AuthConfigFactory.h
  4019. * src/FtpFinishDownloadCommand.cc
  4020. * src/FtpInitiateConnectionCommand.cc
  4021. * src/FtpInitiateConnectionCommand.h
  4022. * src/FtpNegotiationCommand.cc
  4023. * src/FtpTunnelRequestCommand.cc
  4024. * src/FtpTunnelRequestCommand.h
  4025. * src/HttpDownloadCommand.cc
  4026. * src/HttpInitiateConnectionCommand.cc
  4027. * src/HttpInitiateConnectionCommand.h
  4028. * src/HttpProxyRequestCommand.cc
  4029. * src/HttpProxyRequestCommand.h
  4030. * src/HttpRequest.cc
  4031. * src/HttpRequest.h
  4032. * src/HttpRequestCommand.cc
  4033. * src/HttpRequestCommand.h
  4034. * src/HttpSkipResponseCommand.cc
  4035. * src/InitiateConnectionCommand.cc
  4036. * src/InitiateConnectionCommand.h
  4037. * src/OptionHandlerFactory.cc
  4038. * src/OptionHandlerImpl.h
  4039. * src/Request.cc
  4040. * src/option_processing.cc
  4041. * src/prefs.cc
  4042. * src/prefs.h
  4043. * src/usage_text.h
  4044. * test/AuthConfigFactoryTest.cc
  4045. * test/HttpRequestTest.cc
  4046. * test/OptionHandlerTest.cc
  4047. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4048. Execute choking algorithm when unchoked and interested peer is
  4049. disconected.
  4050. * src/DefaultPeerStorage.cc
  4051. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4052. Added testcase for BtNotInterestedMessage from unchoked peer.
  4053. * test/BtNotInterestedMessageTest.cc
  4054. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4055. Execute choking algorithm when BtInterestedMessage arrives from
  4056. unchoked peer.
  4057. * src/BtInterestedMessage.cc
  4058. * src/BtInterestedMessage.h
  4059. * src/DefaultBtMessageFactory.cc
  4060. * test/BtInterestedMessageTest.cc
  4061. * test/MockPeerStorage.h
  4062. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4063. AuthConfigFactory is now part of DownloadEngine.
  4064. * src/AbstractProxyRequestCommand.cc
  4065. * src/AuthConfigFactory.h
  4066. * src/DownloadEngine.cc
  4067. * src/DownloadEngine.h
  4068. * src/FtpConnection.cc
  4069. * src/FtpConnection.h
  4070. * src/FtpNegotiationCommand.cc
  4071. * src/HttpConnection.cc
  4072. * src/HttpRequest.cc
  4073. * src/HttpRequest.h
  4074. * src/HttpRequestCommand.cc
  4075. * src/HttpResponse.cc
  4076. * src/HttpResponseCommand.cc
  4077. * src/HttpSkipResponseCommand.cc
  4078. * src/MultiUrlRequestInfo.cc
  4079. * src/main.cc
  4080. * test/FtpConnectionTest.cc
  4081. * test/HttpRequestTest.cc
  4082. * test/HttpResponseTest.cc
  4083. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4084. Corrected catched exception type.
  4085. * src/ServerStatMan.cc
  4086. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4087. DNSCache is now part of DownloadEngine.
  4088. * src/DNSCache.h
  4089. * src/DownloadEngine.cc
  4090. * src/DownloadEngine.h
  4091. * src/InitiateConnectionCommand.cc
  4092. * src/MultiUrlRequestInfo.cc
  4093. * test/Makefile.am
  4094. * test/Makefile.in
  4095. * test/SimpleDNSCacheTest.cc
  4096. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4097. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4098. DownloadEngine.
  4099. * src/ActivePeerConnectionCommand.cc
  4100. * src/BtSetup.cc
  4101. * src/CUIDCounter.h
  4102. * src/DHTSetup.cc
  4103. * src/DownloadCommand.cc
  4104. * src/DownloadEngine.cc
  4105. * src/DownloadEngine.h
  4106. * src/DownloadEngineFactory.cc
  4107. * src/FileAllocationDispatcherCommand.cc
  4108. * src/InitiatorMSEHandshakeCommand.cc
  4109. * src/PeerInitiateConnectionCommand.cc
  4110. * src/PeerInteractionCommand.cc
  4111. * src/PeerListenCommand.cc
  4112. * src/RequestGroup.cc
  4113. * src/StreamFileAllocationEntry.cc
  4114. * src/TrackerWatcherCommand.cc
  4115. * src/main.cc
  4116. * test/RequestGroupManTest.cc
  4117. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4118. Implemented commented code in BtSeederStateChoke
  4119. * src/BtSeederStateChoke.cc
  4120. * src/Peer.cc
  4121. * src/Peer.h
  4122. * src/PeerInteractionCommand.cc
  4123. * src/PeerSessionResource.cc
  4124. * src/PeerSessionResource.h
  4125. * test/MockBtMessageDispatcher.h
  4126. * test/PeerSessionResourceTest.cc
  4127. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4128. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4129. its object.
  4130. * src/AbstractBtMessage.cc
  4131. * src/ActivePeerConnectionCommand.cc
  4132. * src/ActivePeerConnectionCommand.h
  4133. * src/BtContextAwareCommand.cc
  4134. * src/BtContextAwareCommand.h
  4135. * src/BtExtendedMessage.cc
  4136. * src/BtExtendedMessage.h
  4137. * src/BtInterestedMessage.cc
  4138. * src/BtInterestedMessage.h
  4139. * src/BtNotInterestedMessage.cc
  4140. * src/BtNotInterestedMessage.h
  4141. * src/BtRegistry.cc
  4142. * src/BtRegistry.h
  4143. * src/BtSeederStateChoke.cc
  4144. * src/BtSetup.cc
  4145. * src/DHTGetPeersCommand.cc
  4146. * src/DHTGetPeersCommand.h
  4147. * src/DHTPeerAnnounceEntry.cc
  4148. * src/DHTPeerAnnounceEntry.h
  4149. * src/DHTPeerAnnounceStorage.cc
  4150. * src/DHTPeerAnnounceStorage.h
  4151. * src/DHTPeerLookupTask.cc
  4152. * src/DHTPeerLookupTask.h
  4153. * src/DHTSetup.cc
  4154. * src/DHTSetup.h
  4155. * src/DHTTaskFactory.h
  4156. * src/DHTTaskFactoryImpl.cc
  4157. * src/DHTTaskFactoryImpl.h
  4158. * src/DefaultBtAnnounce.cc
  4159. * src/DefaultBtInteractive.cc
  4160. * src/DefaultBtInteractive.h
  4161. * src/DefaultBtMessageDispatcher.cc
  4162. * src/DefaultBtMessageDispatcher.h
  4163. * src/DefaultBtMessageFactory.cc
  4164. * src/DefaultBtMessageFactory.h
  4165. * src/DefaultBtMessageReceiver.cc
  4166. * src/DefaultBtProgressInfoFile.cc
  4167. * src/DefaultBtProgressInfoFile.h
  4168. * src/DefaultBtRequestFactory.cc
  4169. * src/DefaultBtRequestFactory.h
  4170. * src/DefaultExtensionMessageFactory.cc
  4171. * src/DefaultExtensionMessageFactory.h
  4172. * src/DefaultPeerStorage.cc
  4173. * src/DefaultPeerStorage.h
  4174. * src/DownloadEngine.cc
  4175. * src/DownloadEngine.h
  4176. * src/InitiatorMSEHandshakeCommand.cc
  4177. * src/InitiatorMSEHandshakeCommand.h
  4178. * src/MSEHandshake.cc
  4179. * src/MSEHandshake.h
  4180. * src/Makefile.am
  4181. * src/Makefile.in
  4182. * src/PeerChokeCommand.cc
  4183. * src/PeerChokeCommand.h
  4184. * src/PeerInitiateConnectionCommand.cc
  4185. * src/PeerInitiateConnectionCommand.h
  4186. * src/PeerInteractionCommand.cc
  4187. * src/PeerInteractionCommand.h
  4188. * src/PeerObject.h
  4189. * src/PeerReceiveHandshakeCommand.cc
  4190. * src/PeerReceiveHandshakeCommand.h
  4191. * src/ReceiverMSEHandshakeCommand.cc
  4192. * src/RequestGroup.cc
  4193. * src/RequestGroup.h
  4194. * src/RequestGroupMan.cc
  4195. * src/RequestGroupMan.h
  4196. * src/SeedCheckCommand.cc
  4197. * src/SeedCheckCommand.h
  4198. * src/ShareRatioSeedCriteria.h
  4199. * src/SimpleBtMessage.cc
  4200. * src/TrackerWatcherCommand.cc
  4201. * src/TrackerWatcherCommand.h
  4202. * src/UTPexExtensionMessage.cc
  4203. * src/UTPexExtensionMessage.h
  4204. * test/BtCancelMessageTest.cc
  4205. * test/BtChokeMessageTest.cc
  4206. * test/BtExtendedMessageTest.cc
  4207. * test/BtInterestedMessageTest.cc
  4208. * test/BtNotInterestedMessageTest.cc
  4209. * test/BtPieceMessageTest.cc
  4210. * test/BtPortMessageTest.cc
  4211. * test/BtRegistryTest.cc
  4212. * test/BtRejectMessageTest.cc
  4213. * test/BtRequestMessageTest.cc
  4214. * test/DHTPeerAnnounceEntryTest.cc
  4215. * test/DHTPeerAnnounceStorageTest.cc
  4216. * test/DefaultBtMessageDispatcherTest.cc
  4217. * test/DefaultBtMessageFactoryTest.cc
  4218. * test/DefaultBtProgressInfoFileTest.cc
  4219. * test/DefaultBtRequestFactoryTest.cc
  4220. * test/DefaultExtensionMessageFactoryTest.cc
  4221. * test/MSEHandshakeTest.cc
  4222. * test/MockDHTTaskFactory.h
  4223. * test/ShareRatioSeedCriteriaTest.cc
  4224. * test/UTPexExtensionMessageTest.cc
  4225. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. Fixed compiler warning.
  4227. * test/UtilTest.cc
  4228. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4229. Treat Cookie object as session cookie if expiry = 0 is given.
  4230. With this change, you can specify session scoped cookies in an external
  4231. file setting expiry value to 0.
  4232. * src/Cookie.cc
  4233. * src/Cookie.h
  4234. * test/CookieParserTest.cc
  4235. * test/CookieStorageTest.cc
  4236. * test/CookieTest.cc
  4237. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4238. Changed signature of DHTMessageFactory::createResponseMessage().
  4239. Removed unused validateIDMatch.
  4240. * src/DHTMessageFactory.h
  4241. * src/DHTMessageFactoryImpl.cc
  4242. * src/DHTMessageFactoryImpl.h
  4243. * src/DHTMessageTracker.cc
  4244. * test/DHTMessageFactoryImplTest.cc
  4245. * test/MockDHTMessageFactory.h
  4246. Dropped DHT message coming from same ID of localhost.
  4247. * src/DHTMessageReceiver.cc
  4248. Rejected adding node whose ID is the same as localhost's.
  4249. * src/DHTRoutingTable.cc
  4250. * test/BtPortMessageTest.cc
  4251. * test/DHTRoutingTableTest.cc
  4252. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4253. Pool connection when redirection occurs with Content-Length = 0.
  4254. * src/HttpSkipResponseCommand.cc
  4255. * src/HttpSkipResponseCommand.h
  4256. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4257. Fixed the bug that causes time out when redirection occurs with
  4258. content-length 0.
  4259. * src/HttpResponseCommand.cc
  4260. * src/HttpSkipResponseCommand.cc
  4261. * src/HttpSkipResponseCommand.h
  4262. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Now each status legends is shown only when it appears in Download
  4264. Result. If Download Result has no item, then status legend will not
  4265. be printed.
  4266. * src/RequestGroupMan.cc
  4267. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4268. Removed duplicate creation of OptionHandlers.
  4269. * src/option_processing.cc
  4270. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4271. Fixed the bug that causes segmentation fault when accessing files which
  4272. don't exist or are not included in --select-file option while
  4273. validating chunk checksum.
  4274. * src/MultiDiskAdaptor.cc
  4275. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4276. Fixed compiler warning.
  4277. * test/UtilTest.cc
  4278. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4279. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4280. * src/IteratableChecksumValidator.cc
  4281. * src/IteratableChunkChecksumValidator.cc
  4282. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4283. * Release 0.16.2
  4284. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4285. Added Serbian translation. Updated Ukrainian translation.
  4286. Thanks to all translators.
  4287. * po/sr.po
  4288. * po/uk.po
  4289. * po/LINGUAS
  4290. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4291. Bump up version number to 0.16.2
  4292. * configure.ac
  4293. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4294. Added length equality test to operator== to drop a piece message
  4295. whose length does not match to the requested one.
  4296. * src/RequestSlot.cc
  4297. * test/DefaultBtMessageDispatcherTest.cc
  4298. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4300. recieved.
  4301. In this fix, if a request larger than 16KiB length is received, aria2
  4302. disconnects the peer.
  4303. * src/BtConstants.h
  4304. * src/PeerMessageUtil.cc
  4305. * src/PeerMessageUtil.h
  4306. * test/BtRequestMessageTest.cc
  4307. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4308. * Release 0.16.1
  4309. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4310. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4311. * doc/aria2c.1.txt
  4312. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4313. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4314. Updated French, Simplified Chinese and Japanese translations.
  4315. Thanks to all translators.
  4316. en@quot and en@boldquot are also added.
  4317. * po/LINGUAS
  4318. * po/fr.po
  4319. * po/ja.po
  4320. * po/uk.po
  4321. * po/vi.po
  4322. * po/zh_CN.po
  4323. * po/zh_TW.po
  4324. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4325. Bump up version number to 0.16.1.
  4326. * configure.ac
  4327. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4328. Updated README.
  4329. * README
  4330. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4331. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4332. not to replace '--' with em dash character.
  4333. * doc/aria2c.1.txt
  4334. * doc/makeman
  4335. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4336. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4337. every SEC seconds.
  4338. * src/DownloadEngineFactory.cc
  4339. * src/OptionHandlerFactory.cc
  4340. * src/option_processing.cc
  4341. * src/usage_text.h
  4342. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4343. Fixed compile warning on linux-amd64
  4344. * src/FtpConnection.cc
  4345. * src/IteratableChunkChecksumValidator.cc
  4346. * src/MultiDiskAdaptor.cc
  4347. Fixed the bug that unit test fails on linux-amd64
  4348. * test/UtilTest.cc
  4349. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Added --dht-file-path option to change the path to dht.dat, which is a
  4351. serialized DHT routing table.
  4352. * src/OptionHandlerFactory.cc
  4353. * src/option_processing.cc
  4354. * src/usage_text.h
  4355. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4356. Fixed possible underflow.
  4357. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4358. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4359. Fixed the bug that last character in URI is not encoded.
  4360. * src/Request.cc
  4361. * test/RequestTest.cc
  4362. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4363. Fixed the bug that referer header field contains fragment.
  4364. Now Request class removes fragment part of URI and encodes it
  4365. in Request::setUri() and setReferer().
  4366. * src/Request.h
  4367. * src/Request.cc
  4368. * test/RequestTest.cc
  4369. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4370. Added missing m4 macros.
  4371. * m4/cppunit.m4
  4372. * m4/libgcrypt.m4
  4373. * m4/libgnutls-extra.m4
  4374. * m4/libgnutls.m4
  4375. * m4/libxml2.m4
  4376. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4377. Fixed compile error with gcc-4.4(snapshot)
  4378. * src/File.cc
  4379. * src/FtpConnection.cc
  4380. * src/OptionHandlerImpl.h
  4381. * src/Util.cc
  4382. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4383. Removed assert()
  4384. * src/SocketBuffer.cc (SocketBuffer::send)
  4385. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4386. Changed the type of _numNewConnection to unsigned int.
  4387. * src/ActivePeerConnectionCommand.cc
  4388. * src/ActivePeerConnectionCommand.h
  4389. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4390. * Release 0.16.0
  4391. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4392. Updated doc
  4393. * README
  4394. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4395. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4396. translations. Thanks to all translators.
  4397. * po/bg.po
  4398. * po/de.po
  4399. * po/fr.po
  4400. * po/ja.po
  4401. * po/zh_CN.po
  4402. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4403. Bump up version number to 0.16.0.
  4404. * configure.ac
  4405. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4406. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4407. int32_t.
  4408. Changed the type of count to int32_t.
  4409. * src/Metalink2RequestGroup.cc
  4410. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. Added test for Time::elapsed(time_t).
  4412. * test/TimeTest.cc
  4413. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  4415. Util::difftv() should be used instead.
  4416. * src/TimeA2.cc
  4417. * src/TimeA2.h
  4418. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4419. Made socket for dht connections non-blocking
  4420. * src/DHTAbstractMessage.cc
  4421. * src/DHTAbstractMessage.h
  4422. * src/DHTConnection.h
  4423. * src/DHTConnectionImpl.cc
  4424. * src/DHTConnectionImpl.h
  4425. * src/DHTMessage.h
  4426. * src/DHTMessageDispatcherImpl.cc
  4427. * src/DHTMessageDispatcherImpl.h
  4428. * src/DHTUnknownMessage.cc
  4429. * src/DHTUnknownMessage.h
  4430. * src/SocketCore.cc
  4431. * src/SocketCore.h
  4432. * test/MockDHTMessage.h
  4433. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4434. Changed the type of offset to int.
  4435. * src/ParameterizedStringParser.cc
  4436. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4437. Made getAsInt() return int32_t
  4438. * src/Option.h
  4439. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  4441. build.
  4442. * configure.ac
  4443. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4444. Use sqlite3_open if sqlite3_open_v2 is not available.
  4445. * src/Sqlite3MozCookieParser.cc
  4446. * src/Sqlite3MozCookieParser.h
  4447. * m4/sqlite3.m4
  4448. * test/Sqlite3MozCookieParserTest.cc
  4449. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4450. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  4451. * src/BtPieceMessage.cc
  4452. * src/DHTPeerAnnounceStorage.cc
  4453. * src/DefaultPieceStorage.cc
  4454. * src/DownloadCommand.cc
  4455. * src/DownloadEngine.cc
  4456. * src/FtpConnection.cc
  4457. * src/PeerConnection.cc
  4458. * src/PeerMessageUtil.cc
  4459. * src/RequestGroup.cc
  4460. * src/RequestGroupMan.cc
  4461. * src/SimpleBtMessage.cc
  4462. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4463. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  4464. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4465. * src/AbstractDiskWriter.cc
  4466. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4467. Don't set Request::supportsPersistentConnection() in HttpConnection
  4468. since this code is also used in AbstractProxyResponseCommand.
  4469. Moved those code to HttpResponse.
  4470. * src/HttpResponse.cc
  4471. * src/HttpResponse.h
  4472. * src/HttpConnection.cc
  4473. * src/HttpConnection.h
  4474. * src/HttpResponseCommand.cc
  4475. * test/HttpResponseTest.cc
  4476. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4477. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4478. The configuration is minimum: no torrent, no metalink, so there may be
  4479. other compile error on their code.
  4480. * src/a2netcompat.h
  4481. * src/File.cc
  4482. * src/File.h
  4483. * src/SocketCore.cc
  4484. * src/SocketCore.h
  4485. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4486. Made a socket of incoming peer non-blocking.
  4487. * src/PeerListenCommand.cc
  4488. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4490. whole message data is not sent in one send() call.
  4491. * src/BtPieceMessage.cc
  4492. * src/BtPieceMessage.h
  4493. * src/PeerConnection.cc
  4494. * src/PeerConnection.h
  4495. * src/SimpleBtMessage.cc
  4496. * src/SimpleBtMessage.h
  4497. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4498. Fixed the bug that aria2 downloads faster than max-download-limit when
  4499. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4500. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4501. , instead of sum of them.
  4502. * src/ActivePeerConnectionCommand.cc
  4503. * src/DefaultBtInteractive.cc
  4504. * src/DownloadCommand.cc
  4505. * src/PeerInteractionCommand.cc
  4506. * src/PeerReceiveHandshakeCommand.cc
  4507. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4508. Fixed the bug that HTTPS download fails.
  4509. * src/AbstractCommand.cc
  4510. * src/AbstractCommand.h
  4511. * src/DownloadCommand.cc
  4512. * src/FtpConnection.cc
  4513. * src/HttpConnection.cc
  4514. * src/HttpRequestCommand.cc
  4515. * src/HttpResponseCommand.cc
  4516. * src/HttpSkipResponseCommand.cc
  4517. * src/MSEHandshake.cc
  4518. * src/PeerConnection.cc
  4519. * src/SocketCore.cc
  4520. * src/SocketCore.h
  4521. Fixed the bug that aria2 doesn't download whole content body and cannot
  4522. reuse connection if chunked transfer encoding and gzip content encoding
  4523. are set.
  4524. * src/DownloadCommand.cc
  4525. * src/HttpSkipResponseCommand.cc
  4526. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4527. Updated man page.
  4528. * doc/aria2c.1.txt
  4529. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4530. When error occurred while aria2 was parsing an .aria2.conf file, print
  4531. the usage of the option that caused error.
  4532. * src/option_processing.cc
  4533. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. Fixed compile error on OptionHandlerException
  4535. * src/Makefile.am
  4536. * src/OptionHandlerException.cc
  4537. * src/OptionHandlerException.h
  4538. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4539. Moved message of the error to OptionHandlerException.h
  4540. * src/NameMatchOptionHandler.h
  4541. * src/OptionHandlerException.h
  4542. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4543. When error occurs while aria2 is parsing an command-line option, print
  4544. the usage of the option.
  4545. * src/Makefile.am
  4546. * src/NameMatchOptionHandler.h
  4547. * src/OptionHandlerException.h
  4548. * src/option_processing.cc
  4549. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4550. Reverted previous change.
  4551. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4552. username is not in URI.
  4553. * src/HttpRequest.cc
  4554. * src/Request.cc
  4555. * test/HttpRequestTest.cc
  4556. * test/RequestTest.cc
  4557. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. Now colon is required for username and password in FTP URL, like:
  4559. ftp://username:password@host.
  4560. If colon is not there, aria2 don't parse it as a username. For example,
  4561. aria2 don't retrieve username from ftp://username@host.
  4562. This fix was made in order to login FTP server via non-transparent ftp
  4563. proxy.
  4564. * src/Request.cc
  4565. * test/RequestTest.cc
  4566. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4567. Use netrc for HTTP.
  4568. Now FTP user/password is sent in Authorization header when
  4569. --ftp-via-http-proxy=get is given.
  4570. * src/AuthConfigFactory.cc
  4571. * src/HttpRequest.cc
  4572. * src/HttpRequest.h
  4573. * src/NetrcAuthResolver.cc
  4574. * src/NetrcAuthResolver.h
  4575. * src/OptionHandlerFactory.cc
  4576. * src/option_processing.cc
  4577. * src/prefs.cc
  4578. * src/prefs.h
  4579. * test/AuthConfigFactoryTest.cc
  4580. * test/HttpRequestTest.cc
  4581. * test/NetrcAuthResolverTest.cc
  4582. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4583. Issue PWD command first and get working directory and use it as a prefix
  4584. for CWD command.
  4585. * src/DownloadEngine.cc
  4586. * src/DownloadEngine.h
  4587. * src/FtpConnection.cc
  4588. * src/FtpConnection.h
  4589. * src/FtpFinishDownloadCommand.cc
  4590. * src/FtpInitiateConnectionCommand.cc
  4591. * src/FtpNegotiationCommand.cc
  4592. * src/FtpNegotiationCommand.h
  4593. * test/FtpConnectionTest.cc
  4594. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4595. Removed default user/pass for FTP user/pass, since it should not have
  4596. precedence over netrc configuration by default.
  4597. * src/OptionHandlerFactory.cc
  4598. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4599. Added debug log for socket event.
  4600. * src/AbstractCommand.cc
  4601. * src/PeerAbstractCommand.cc
  4602. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4603. Log microseconds.
  4604. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4605. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4606. Replaced HelpItem.cc with OptionHandler.cc.
  4607. * po/POTFILES.in
  4608. Updated po files with 'make update-po'
  4609. * po/aria2c.pot
  4610. * po/*.po
  4611. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4612. Removed possible values from the text.
  4613. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4614. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4615. Removed unused preferences:
  4616. PREF_NO_PREALLOCATION
  4617. PREF_STDOUT_LOG
  4618. PREF_TRACKER_MAX_TRIES
  4619. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4620. PREF_MIN_SEGMENT_SIZE
  4621. * src/option_processing.cc
  4622. * src/prefs.cc
  4623. * src/prefs.h
  4624. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4625. Integrated HelpItem into OptionParser to ease the workload for adding
  4626. new options. Removed default value from usage text.
  4627. * src/HelpItem.cc: Removed.
  4628. * src/HelpItem.h: Removed.
  4629. * src/HelpItemFactory.cc: Removed.
  4630. * src/HelpItemFactory.h: Removed.
  4631. * src/Makefile.am
  4632. * src/Makefile.in
  4633. * src/NameMatchOptionHandler.h
  4634. * src/OptionHandler.cc
  4635. * src/OptionHandler.h
  4636. * src/OptionHandlerFactory.cc
  4637. * src/OptionHandlerImpl.h
  4638. * src/OptionParser.cc
  4639. * src/OptionParser.h
  4640. * src/TagContainer.cc: Removed.
  4641. * src/TagContainer.h: Removed.
  4642. * src/TaggedItem.cc: Removed.
  4643. * src/TaggedItem.h: Removed.
  4644. * src/main.cc
  4645. * src/option_processing.cc
  4646. * src/usage_text.h
  4647. * src/version_usage.cc
  4648. * test/HelpItemTest.cc: Removed.
  4649. * test/Makefile.am
  4650. * test/Makefile.in
  4651. * test/OptionHandlerTest.cc
  4652. * test/OptionParserTest.cc
  4653. * test/TagContainerTest.cc: Removed.
  4654. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4655. Moved `TransferStat stat = ...' to inside the `if' clause.
  4656. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4657. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4658. Fixed the bug that a block in a piece is requested when same block is
  4659. already requested to the same peer in end game mode.
  4660. * src/BtRequestFactory.h
  4661. * src/DefaultBtInteractive.cc
  4662. * src/DefaultBtRequestFactory.cc
  4663. * src/DefaultBtRequestFactory.h
  4664. * src/DefaultPieceStorage.cc
  4665. * src/DefaultPieceStorage.h
  4666. * src/PieceStorage.h
  4667. * src/UnknownLengthPieceStorage.cc
  4668. * src/UnknownLengthPieceStorage.h
  4669. * test/DefaultBtRequestFactoryTest.cc
  4670. * test/DefaultPieceStorageTest.cc
  4671. * test/MockBtRequestFactory.h
  4672. * test/MockPieceStorage.h
  4673. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4674. Removed _uploadLength and _downloadLength from PeerSessionResource
  4675. and use PeerStat::_sessionUploadLength and
  4676. PeerStat::_sessionDownloadLength.
  4677. * src/PeerSessionResource.cc
  4678. * src/PeerSessionResource.h
  4679. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4680. Fixed the bug that prefixLength of split bucket which doesn't include
  4681. local node ID is incremented.
  4682. * src/DHTBucket.cc
  4683. * src/DHTBucket.h
  4684. * test/DHTBucketTest.cc
  4685. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4686. Added cookies.sqlite to EXTRA_DIST
  4687. * test/Makefile.am
  4688. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4689. Added Turkish translation. Updated French, German, Russian and
  4690. Simplified Chinese translations. Thanks to all translators.
  4691. * po/LINGUAS
  4692. * po/de.po
  4693. * po/fr.po
  4694. * po/ru.po
  4695. * po/tr.po
  4696. * po/zh_CN.po
  4697. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4698. Added deliminating text to the beginning of the log so that one can find
  4699. where the log starts easily.
  4700. * src/main.cc
  4701. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4702. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4703. to fix compile error when async DNS is not enabled by configuration.
  4704. * src/AbstractCommand.cc
  4705. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. If establishing conneciton to a server is failed, then mark error on
  4707. its ServerStat.
  4708. Added the cause of error to log when error event occurred.
  4709. Moved message string to message.h for translation.
  4710. * src/AbstractCommand.cc
  4711. * src/AbstractCommand.h
  4712. * src/FtpNegotiationCommand.cc
  4713. * src/HttpRequestCommand.cc
  4714. * src/PeerAbstractCommand.cc
  4715. * src/message.h
  4716. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4717. Added the function to get error message from socket.
  4718. * src/SocketCore.cc
  4719. * src/SocketCore.h
  4720. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4722. * src/RequestGroupMan.cc
  4723. * src/RequestGroupMan.h
  4724. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4725. If error event is received in epoll, then abort download immediately.
  4726. * src/AbstractCommand.cc
  4727. * src/Command.cc
  4728. * src/Command.h
  4729. * src/DownloadEngine.cc
  4730. * src/PeerAbstractCommand.cc
  4731. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4732. Added usage message for --uri-selector, --server-stat-of,
  4733. --server-stat-in, --server-stat-timeout options.
  4734. * src/HelpItemFactory.cc
  4735. * src/usage_text.h
  4736. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4737. Added upper limit of FTP response buffer. The current implementation
  4738. uses 4096bytes as a limit.
  4739. * src/FtpConnection.cc
  4740. * src/FtpConnection.h
  4741. * test/FtpConnectionTest.cc
  4742. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Use non-blocking socket for TCP communication to avoid possible
  4744. blocking due to buffer full.
  4745. * src/AbstractProxyRequestCommand.cc
  4746. * src/FtpConnection.cc
  4747. * src/FtpConnection.h
  4748. * src/FtpNegotiationCommand.cc
  4749. * src/FtpNegotiationCommand.h
  4750. * src/HttpConnection.cc
  4751. * src/HttpConnection.h
  4752. * src/HttpRequestCommand.cc
  4753. * src/InitiatorMSEHandshakeCommand.cc
  4754. * src/InitiatorMSEHandshakeCommand.h
  4755. * src/MSEHandshake.cc
  4756. * src/MSEHandshake.h
  4757. * src/Makefile.am
  4758. * src/PeerConnection.cc
  4759. * src/PeerConnection.h
  4760. * src/PeerInteractionCommand.cc
  4761. * src/PeerListenCommand.cc
  4762. * src/ReceiverMSEHandshakeCommand.cc
  4763. * src/ReceiverMSEHandshakeCommand.h
  4764. * src/SocketBuffer.cc
  4765. * src/SocketBuffer.h
  4766. * src/SocketCore.cc
  4767. * src/SocketCore.h
  4768. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4769. Call setStatusRealtime() in constructor.
  4770. * src/RealtimeCommand.cc
  4771. * src/RealtimeCommand.h
  4772. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4773. Call Download::setNoWait(true) to execute newly created command without
  4774. a pause.
  4775. * src/AbstractCommand.cc
  4776. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4778. found' error from HTTP/FTP server NUM times without getting single
  4779. bytes of data, then force the download to fail.
  4780. Basically aria2 tris all URIs available. So if long list of URIs are
  4781. specified in Metalink, then aria2 will take a long time to fail
  4782. eventually if all URIs are outdated. This option eases this situation
  4783. to limit the number of servers to try.
  4784. * src/FtpNegotiationCommand.cc
  4785. * src/HelpItemFactory.cc
  4786. * src/HttpResponseCommand.cc
  4787. * src/OptionHandlerFactory.cc
  4788. * src/PeerStat.h
  4789. * src/RequestGroup.cc
  4790. * src/RequestGroup.h
  4791. * src/SegmentMan.cc
  4792. * src/SegmentMan.h
  4793. * src/option_processing.cc
  4794. * src/prefs.cc
  4795. * src/prefs.h
  4796. * src/usage_text.h
  4797. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4798. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4799. response even if more than one response is in it.
  4800. * src/FtpConnection.cc
  4801. * src/FtpConnection.h
  4802. * test/FtpConnectionTest.cc
  4803. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4804. Merged from stable-0.15
  4805. * m4/libcares.m4
  4806. Use pkg-config
  4807. * m4/sqlite3.m4
  4808. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4809. Removed unnecessary if statement.
  4810. * src/DefaultPieceStorage.cc (initPieceStorage)
  4811. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4812. Added --connect-timeout option to specify connect timeout in seconds.
  4813. This option is in effect for HTTP/FTP/proxy server. The timeout for
  4814. connecting to BitTorrent peer is not controlled by this option.
  4815. * src/AbstractProxyRequestCommand.cc
  4816. * src/FtpNegotiationCommand.cc
  4817. * src/HelpItemFactory.cc
  4818. * src/HttpRequestCommand.cc
  4819. * src/OptionHandlerFactory.cc
  4820. * src/option_processing.cc
  4821. * src/prefs.cc
  4822. * src/prefs.h
  4823. * src/usage_text.h
  4824. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4825. Added help message for -R option.
  4826. * src/HelpItemFactory.cc
  4827. * src/usage_text.h
  4828. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Added the message that the time is in local time zone.
  4830. * src/RequestGroup.cc
  4831. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4832. Implemented the ability to get timestamp from remote FTP server using
  4833. MDTM command described in RFC3659.
  4834. * src/FtpConnection.cc
  4835. * src/FtpConnection.h
  4836. * src/FtpNegotiationCommand.cc
  4837. * src/FtpNegotiationCommand.h
  4838. * test/FtpConnectionTest.cc
  4839. * test/Makefile.am
  4840. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4841. Implemented the ability to get timestamp from remote HTTP server and
  4842. apply it to local file. To enable this feature, --remote-time option
  4843. is added. No usage text has been written yet.
  4844. If several servers returns difference timestamp, then aria2 uses latest
  4845. one.
  4846. * src/CopyDiskAdaptor.cc
  4847. * src/CopyDiskAdaptor.h
  4848. * src/DirectDiskAdaptor.cc
  4849. * src/DirectDiskAdaptor.h
  4850. * src/DiskAdaptor.h
  4851. * src/File.cc
  4852. * src/File.h
  4853. * src/HttpHeader.cc
  4854. * src/HttpHeader.h
  4855. * src/HttpResponse.cc
  4856. * src/HttpResponse.h
  4857. * src/HttpResponseCommand.cc
  4858. * src/HttpResponseCommand.h
  4859. * src/MultiDiskAdaptor.cc
  4860. * src/MultiDiskAdaptor.h
  4861. * src/OptionHandlerFactory.cc
  4862. * src/RequestGroup.cc
  4863. * src/RequestGroup.h
  4864. * src/RequestGroupMan.cc
  4865. * src/option_processing.cc
  4866. * src/prefs.cc
  4867. * src/prefs.h
  4868. * test/CopyDiskAdaptorTest.cc
  4869. * test/FileTest.cc
  4870. * test/Makefile.am
  4871. * test/Makefile.in
  4872. * test/MultiDiskAdaptorTest.cc
  4873. * test/TestUtil.cc
  4874. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4875. Fixed the bug that DiskWriterEntry is not created when its
  4876. FileEntry.isRequested() is false and it doesn't share a piece with
  4877. other FileEntries that are requested. This bug causes segmentation fault
  4878. in the end.
  4879. * src/MultiDiskAdaptor.cc
  4880. * src/MultiDiskAdaptor.h
  4881. * src/MultiFileAllocationIterator.cc
  4882. * test/MultiDiskAdaptorTest.cc
  4883. * test/MultiFileAllocationIteratorTest.cc
  4884. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4885. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  4886. called if the number of file entries are greater than max open files.
  4887. * src/AbstractSingleDiskAdaptor.cc
  4888. * src/AbstractSingleDiskAdaptor.h
  4889. * src/DiskAdaptor.h
  4890. * src/MultiDiskAdaptor.cc
  4891. * src/MultiDiskAdaptor.h
  4892. * test/MultiDiskAdaptorTest.cc
  4893. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4894. Added a constuctor that receives struct timeval.
  4895. Added operator<.
  4896. * src/TimeA2.cc
  4897. * src/TimeA2.h
  4898. * test/TimeTest.cc
  4899. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  4901. * src/CookieParser.cc
  4902. * test/CookieParserTest.cc
  4903. * test/HttpResponseTest.cc
  4904. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4905. Implmented the functions to parse date.
  4906. * src/TimeA2.cc
  4907. * src/TimeA2.h
  4908. * test/TimeTest.cc
  4909. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4910. Added "Firefox3 Cookie" feature to FeatureConfig
  4911. * src/FeatureConfig.cc
  4912. * src/FeatureConfig.h
  4913. * test/FeatureConfigTest.cc
  4914. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4915. Bump up version number to 0.16.0b
  4916. * configure.ac
  4917. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4918. Use pkg-config if is is available.
  4919. * m4/openssl.m4
  4920. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4921. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  4922. * src/BtAnnounce.h
  4923. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4924. If an error occurred with a URI, remove identical URI from remaining
  4925. URI list because it is likely that same error occurred in the end and it
  4926. is waste of time.
  4927. * src/AbstractCommand.cc
  4928. * src/RequestGroup.cc
  4929. * src/RequestGroup.h
  4930. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Removed wrong comment.
  4932. * src/DefaultPeerStorage.cc
  4933. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4934. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  4935. Added return value of getpid() to argument of srand() to achieve more
  4936. randomized value.
  4937. * src/SimpleRandomizer.cc
  4938. * src/SimpleRandomizer.h
  4939. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4940. Contact tracker frequently when the number of connections are 0 and
  4941. download is not finished yet.
  4942. * src/ActivePeerConnectionCommand.cc
  4943. * src/BtAnnounce.h
  4944. * src/DefaultBtAnnounce.cc
  4945. * src/DefaultBtAnnounce.h
  4946. * test/MockBtAnnounce.h
  4947. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. Moved threshold values to UTPexExtensionMessage.
  4949. * src/DefaultBtInteractive.cc
  4950. * src/Peer.cc
  4951. * src/Peer.h
  4952. * src/UTPexExtensionMessage.cc
  4953. * src/UTPexExtensionMessage.h
  4954. * test/UTPexExtensionMessageTest.cc
  4955. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4956. Added _incoming member to Peer class and made it true if the peer
  4957. initiated connection. Don't add those peer to UTPex message.
  4958. If extended handshake is received, assign _incoming to false.
  4959. * src/DefaultBtInteractive.cc
  4960. * src/HandshakeExtensionMessage.cc
  4961. * src/Peer.cc
  4962. * src/Peer.h
  4963. * src/PeerListenCommand.cc
  4964. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4965. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  4966. Encoding Decoder. Removed size threshold for turning off on the fly
  4967. inflation because resulting file may or may not be inflated depending
  4968. on the file size and I think it is not expected by users.
  4969. This change fixes segmentation fault when Metalink file contains gzipped
  4970. file and its filesize is provided.
  4971. * src/HttpResponseCommand.cc
  4972. * src/HttpResponseCommand.h
  4973. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4974. Made Cookie immutable.
  4975. * src/Cookie.cc
  4976. * src/Cookie.h
  4977. * src/CookieParser.cc
  4978. * src/CookieParser.h
  4979. * src/CookieStorage.cc
  4980. * test/CookieParserTest.cc
  4981. * test/CookieStorageTest.cc
  4982. * test/NsCookieParserTest.cc
  4983. * test/Sqlite3MozCookieParserTest.cc
  4984. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4985. Removed CookieBox, CookieBoxFactory.
  4986. * src/CookieBox.cc
  4987. * src/CookieBox.h
  4988. * src/CookieBoxFactory.cc
  4989. * src/CookieBoxFactory.h
  4990. * src/Makefile.am
  4991. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4992. Use CookieStorage class instead of CookieBox class.
  4993. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  4994. * src/AbstractProxyRequestCommand.cc
  4995. * src/CookieStorage.cc
  4996. * src/DownloadEngine.cc
  4997. * src/DownloadEngine.h
  4998. * src/HttpConnection.cc
  4999. * src/HttpConnection.h
  5000. * src/HttpRequest.cc
  5001. * src/HttpRequest.h
  5002. * src/HttpRequestCommand.cc
  5003. * src/HttpResponse.cc
  5004. * src/HttpResponseCommand.cc
  5005. * src/HttpSkipResponseCommand.cc
  5006. * src/Makefile.am
  5007. * src/MultiUrlRequestInfo.cc
  5008. * src/Request.cc
  5009. * src/Request.h
  5010. * src/main.cc
  5011. * test/AllTest.cc
  5012. * test/CookieStorageTest.cc
  5013. * test/CookieTest.cc
  5014. * test/HttpRequestTest.cc
  5015. * test/HttpResponseTest.cc
  5016. * test/Makefile.am
  5017. * test/NsCookieParserTest.cc
  5018. * test/Sqlite3MozCookieParserTest.cc
  5019. * test/nscookietest.txt
  5020. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Updated
  5022. * test/Cookies.sqlite
  5023. * test/nscookietest.txt
  5024. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5025. Added tests for CookieStorage::load()
  5026. * test/CookieStorageTest.cc
  5027. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5028. Added CookieStorage class which is based on RFC2109 and manages cookies
  5029. more strictly than CookieBox and CookieBoxFactory class.
  5030. * src/CookieStorage.cc
  5031. * src/CookieStorage.h
  5032. * src/Cookie.cc
  5033. * src/Cookie.h
  5034. * test/CookieStorageTest.cc
  5035. * test/CookieTest.cc
  5036. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5037. Fixed the bug that commands are created more than the number of pieces.
  5038. * src/RequestGroup.cc
  5039. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5040. Fixed infinite loop bug in FTP when SIZE command failed.
  5041. * src/FtpNegotiationCommand.cc
  5042. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5043. Removed DirectDiskAdaptorTest.h
  5044. * test/Makefile.am
  5045. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5046. Fixed chunk checksum validation cannot detect trailing garbage data.
  5047. BUG#2074141
  5048. * src/AbstractSingleDiskAdaptor.cc
  5049. * src/AbstractSingleDiskAdaptor.h
  5050. * src/CheckIntegrityEntry.cc
  5051. * src/CheckIntegrityEntry.h
  5052. * src/DiskAdaptor.h
  5053. * src/MultiDiskAdaptor.cc
  5054. * src/MultiDiskAdaptor.h
  5055. * src/RequestGroup.cc
  5056. * test/DirectDiskAdaptorTest.cc
  5057. * test/MultiDiskAdaptorTest.cc
  5058. * test/TestUtil.cc
  5059. * test/TestUtil.h
  5060. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. Bump up version number of dht.dat file to 3. In version 3 format, time
  5062. is stored in 64bit, network byte order.
  5063. New build can load old format(version 2) but it saves the file in new
  5064. format. It means once you used new build, your dht.dat becomes
  5065. incompatible with older build.
  5066. * src/DHTRoutingTableDeserializer.cc
  5067. * src/DHTRoutingTableSerializer.cc
  5068. * test/DHTRoutingTableSerializerTest.cc
  5069. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5070. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5071. * test/Makefile.am
  5072. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5073. Bump up version number of .aria2 control file to 0001.
  5074. New aria2 can still load version 0000 file but it saves the file in
  5075. version 0001 format. It means that new aria2 can resume download
  5076. started by old aria2 but the opposite is not true.
  5077. * src/DefaultBtProgressInfoFile.cc
  5078. * src/DefaultBtProgressInfoFile.h
  5079. * test/DefaultBtProgressInfoFileTest.cc
  5080. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Added ntoh64 and hton64 as inline functions.
  5082. * src/Util.cc
  5083. * test/UtilTest.cc
  5084. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Added sqlite3 depenency and Firefox3 cookie support.
  5086. * README
  5087. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. State that firefox3 cookie is supported explicitly in the usage.
  5089. * src/usage_text.h
  5090. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Externalized message.
  5092. * src/RequestGroupMan.cc
  5093. * src/message.h
  5094. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5095. Save temporary file first and rename to the destination on success.
  5096. Added test cases.
  5097. * src/RequestGroupMan.cc
  5098. * test/RequestGroupManTest.cc
  5099. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5100. Fixed the bug that the number of connected peer is exceeding the limit
  5101. (55 by default) in seeding mode.
  5102. Multiplied 0.8 to _maxUploadSpeedLimit.
  5103. * src/ActivePeerConnectionCommand.cc
  5104. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Clear table item.
  5106. * src/Dictionary.cc
  5107. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. Fixed error handling of lseek.
  5109. * src/AbstractDiskWriter.cc
  5110. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5111. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5112. style cookie file.
  5113. * src/usage_text.h
  5114. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5115. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5116. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5117. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5118. * src/Util.cc
  5119. * src/Util.h
  5120. * src/CookieParser.cc
  5121. * test/UtilTest.cc
  5122. * test/CookieParserTest.cc
  5123. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5124. Separate the implementation to load old mozilla format of cookie to
  5125. NsCookieParser class.
  5126. * src/CookieBoxFactory.cc
  5127. * src/CookieBoxFactory.h
  5128. * src/NsCookieParser.cc
  5129. * src/NsCookieParser.h
  5130. * test/NsCookieParserTest.cc
  5131. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Made parse() const
  5133. * src/Sqlite3MozCookieParser.cc
  5134. * src/Sqlite3MozCookieParser.h
  5135. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5136. Added firefox3 cookie support based on the patch submitted by
  5137. tizianomueller.
  5138. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5139. this functionality.
  5140. * configure.ac
  5141. * m4/sqlite3.m4
  5142. * src/CookieBoxFactory.cc
  5143. * src/CookieBoxFactory.h
  5144. * src/Makefile.am
  5145. * src/Makefile.in
  5146. * src/Sqlite3MozCookieParser.cc
  5147. * src/Sqlite3MozCookieParser.h
  5148. * src/main.cc
  5149. * test/CookieBoxFactoryTest.cc
  5150. * test/Makefile.am
  5151. * test/Makefile.in
  5152. * test/Sqlite3MozCookieParserTest.cc
  5153. * test/badcookies.sqlite
  5154. * test/cookies.sqlite
  5155. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Added Danish and Greek translations.
  5157. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5158. Great thanks to all translators.
  5159. * po/LINGUAS
  5160. * po/el.po
  5161. * po/da.po
  5162. * po/es.po
  5163. * po/ca.po
  5164. * po/nn.po
  5165. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Fixed man page: --follow-bittorrent should be --follow-torrent
  5167. * doc/aria2c.1.txt
  5168. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Fixed: numCommand is less than the value specified in -C option.
  5170. * src/RequestGroup.cc
  5171. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5172. Fixed occasional assertion failure in PieceSegment.
  5173. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5174. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5175. creation of duplicate segments and one of the segment was finished then
  5176. assertion failure was caused.
  5177. * src/SegmentMan.cc
  5178. * test/SegmentManTest.cc
  5179. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5180. Added options to load/save the server's performance/status to a file
  5181. and the timeout to drop their data.
  5182. --server-stat-of=FILE specifies the file to which performance data
  5183. is saved.
  5184. --server-stat-if=FILE specifies the file to read previously saved
  5185. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5186. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5187. TIMEOUT is specified in seconds and the default value is 24hours.
  5188. * src/MultiUrlRequestInfo.cc
  5189. * src/OptionHandlerFactory.cc
  5190. * src/RequestGroupMan.cc
  5191. * src/RequestGroupMan.h
  5192. * src/ServerStatMan.cc
  5193. * src/ServerStatMan.h
  5194. * src/option_processing.cc
  5195. * src/prefs.cc
  5196. * src/prefs.h
  5197. * test/ServerStatManTest.cc
  5198. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5199. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5200. * src/ServerStatMan.cc
  5201. * src/ServerStatMan.h
  5202. * test/ServerStatManTest.cc
  5203. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5204. Implemented ServerStatMan::load(...) function and its test case.
  5205. * src/ServerStat.cc
  5206. * src/ServerStat.h
  5207. * src/ServerStatMan.cc
  5208. * test/ServerStatManTest.cc
  5209. * test/ServerStatTest.cc
  5210. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Use time_t instead of int32_t. Use int64_t where milli second is
  5212. expected.
  5213. * src/TimeA2.cc
  5214. * src/TimeA2.h
  5215. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Implemented ServerStatMan::save(...) function and its test case.
  5217. * src/ServerStat.cc
  5218. * src/ServerStat.h
  5219. * src/ServerStatMan.cc
  5220. * src/ServerStatMan.h
  5221. * test/ServerStatManTest.cc
  5222. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5223. Now aria2 uses name attribute in Metalink as local filename in
  5224. BitTorrent downloads. BUG#2033999
  5225. * src/BtContext.h
  5226. * src/BtDependency.cc
  5227. * src/DefaultBtContext.cc
  5228. * src/DefaultBtContext.h
  5229. * src/SingleFileDownloadContext.cc
  5230. * src/SingleFileDownloadContext.h
  5231. * test/BtDependencyTest.cc
  5232. * test/DefaultBtContextTest.cc
  5233. * test/MockBtContext.h
  5234. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5235. Added AC_C_BIGENDIAN
  5236. * src/configure.ac
  5237. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5238. Limited numCommand less than or equal to the number of piece.
  5239. * src/RequestGroup.cc
  5240. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5242. directive.
  5243. * test/DefaultPieceStorageTest.cc
  5244. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5245. Fixed memory leak in test code
  5246. * test/AnnounceListTest.cc
  5247. * test/DefaultPeerListProcessorTest.cc
  5248. * test/DefaultPeerStorageTest.cc
  5249. * test/MetaFileUtilTest.cc
  5250. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5251. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5252. * src/DefaultPieceStorage.cc
  5253. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5254. Initialized _directIOAllowed
  5255. * src/MultiDiskAdaptor.cc
  5256. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5257. Fixed memory leak
  5258. * src/GZipDecoder.cc
  5259. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5260. Fixed memory leak
  5261. * src/MetalinkParserStateMachine.cc
  5262. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5263. Fixed memory leak
  5264. * src/Dictionary.cc
  5265. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5266. Fixed memory leak
  5267. * src/IteratableChunkChecksumValidator.h
  5268. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5269. Fixed unmatched malloc/free.
  5270. * src/IteratableChunkChecksumValidator.cc
  5271. * src/IteratableChecksumValidator.cc
  5272. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5273. Removed max chunk size check. This change fixes BUG#2040169
  5274. * src/ChunkedDecoder.cc
  5275. * src/ChunkedDecoder.h
  5276. * test/ChunkedDecoderTest.cc
  5277. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Implemented download speed based URI selection algorithm.
  5279. Introduced new option --uri-selector.
  5280. If --uri-selector=feedback is given, aria2 uses download speed observed
  5281. in the previous downloads and chooses fastest server in the URI list.
  5282. Currently at most 10 URIs are considered to introduce randomeness for
  5283. finding better servers. The speed is average download speed in the
  5284. downloads.
  5285. On the other hand, if --uri-selector=inorder is given, which is default,
  5286. URI is tried in order in URI list.
  5287. The usage text for the new option has not been written yet.
  5288. * src/AbstractCommand.cc
  5289. * src/DownloadCommand.cc
  5290. * src/DownloadEngine.cc
  5291. * src/DownloadEngineFactory.cc
  5292. * src/InOrderURISelector.cc
  5293. * src/InOrderURISelector.h
  5294. * src/OptionHandlerFactory.cc
  5295. * src/PeerStat.h
  5296. * src/RequestGroup.cc
  5297. * src/RequestGroup.h
  5298. * src/RequestGroupMan.cc
  5299. * src/RequestGroupMan.h
  5300. * src/SegmentMan.cc
  5301. * src/SegmentMan.h
  5302. * src/ServerStat.cc
  5303. * src/ServerStat.h
  5304. * src/ServerStatMan.cc
  5305. * src/ServerStatMan.h
  5306. * src/ServerStatURISelector.cc
  5307. * src/ServerStatURISelector.h
  5308. * src/URISelector.h
  5309. * src/option_processing.cc
  5310. * src/prefs.cc
  5311. * src/prefs.h
  5312. * test/InOrderURISelectorTest.cc
  5313. * test/RequestGroupManTest.cc
  5314. * test/ServerStatManTest.cc
  5315. * test/ServerStatURISelectorTest.cc
  5316. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5317. * Release 0.15.1+2
  5318. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Bump up version number to 0.15.1+2
  5320. * configure.ac
  5321. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5322. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5323. * m4/aria2_arg.m4
  5324. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5325. * Release 0.15.1+1
  5326. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5327. Bump up version number to 0.15.1+1
  5328. * configure.ac
  5329. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Fixed the bug that causes segmentaion fault when resuming download
  5331. using metalink without size tag. Reproducible only using HTTP URI.
  5332. * src/HttpResponseCommand.cc
  5333. * src/FtpNegotiationCommand.cc
  5334. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5335. * Release 0.15.1
  5336. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5337. Updated Bulgarian and French translations, thanks to all translators.
  5338. * po/bg.po
  5339. * po/fr.po
  5340. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. Bump up version number to 0.15.1
  5342. * configure.ac
  5343. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5344. Avoid repeated call of gettimeofday() when calculating speed.
  5345. * src/SpeedCalc.cc
  5346. * src/SpeedCalc.h
  5347. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5348. Removed writable check when socket's send buffer is full in BitTorrent
  5349. downloads to lower CPU usage.
  5350. * src/PeerInteractionCommand.cc
  5351. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5352. Fixed broken gzip inflation.
  5353. Turn off segmented downloading if gzip content is smaller than or equal
  5354. to 1MiB and inflate the data on the fly, because HTTP response header
  5355. doesn't contain the length of inflated file we can't determin where
  5356. the chunk of data should be written.
  5357. On the other hand, if gzip content is larger than 1MB, then turn off
  5358. on the fly inflation, because some servers returns "content-type: gzip"
  5359. for *.tgz, *.gz files.
  5360. * src/DownloadCommand.cc
  5361. * src/HttpResponseCommand.cc
  5362. * src/HttpResponseCommand.h
  5363. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5364. Applied tizianomueller's patch to fix compile error.
  5365. * test/BitfieldManTest.cc
  5366. * test/BtRequestMessageTest.cc
  5367. * test/DefaultBtContextTest.cc
  5368. * test/DefaultDiskWriterTest.cc
  5369. * test/DefaultPieceStorageTest.cc
  5370. * test/HttpHeaderProcessorTest.cc
  5371. * test/HttpResponseTest.cc
  5372. * test/Metalink2RequestGroupTest.cc
  5373. * test/MetalinkParserControllerTest.cc
  5374. * test/MetalinkProcessorTest.cc
  5375. * test/PeerSessionResourceTest.cc
  5376. * test/UtilTest.cc
  5377. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5378. * Release 0.15.0
  5379. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5380. Reordered src files in POTFILES.in so that usage text appears first.
  5381. * po/POTFILES.in
  5382. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5383. Bump up version number to 0.15.0
  5384. * configure.ac
  5385. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5386. Added Bulgarian translation.
  5387. Updated Catalan, Spanish, French and Japanese translations.
  5388. Thanks to all translators.
  5389. * po/LINGUAS
  5390. * po/bg.po
  5391. * po/ca.po
  5392. * po/es.po
  5393. * po/fr.po
  5394. * po/ja.po
  5395. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5396. Updated feature list. Added libz for dependency section.
  5397. Added a description about unit testing using CppUnit.
  5398. * README
  5399. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5400. Added a test for libz. Quoted where it is necessary.
  5401. * build_test.sh
  5402. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5403. Added GZip to `Enabled Features' list.
  5404. * src/FeatureConfig.cc
  5405. * src/FeatureConfig.h
  5406. * test/FeatureConfigTest.cc
  5407. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5409. the transfer has not yet started.
  5410. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5411. * src/SegmentMan.cc
  5412. * src/SegmentMan.h
  5413. * test/SegmentManTest.cc
  5414. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5415. Cache last calculated average download/upload speed.
  5416. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  5417. cached value.
  5418. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  5419. * src/PeerStat.h
  5420. * src/SpeedCalc.cc
  5421. * src/SpeedCalc.h
  5422. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5423. Call parseUrl directly.
  5424. * src/Request.cc (resetUrl)
  5425. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5426. Supported absolute/relative path in Location header field.
  5427. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  5428. * src/HttpHeader.cc
  5429. * src/HttpHeader.h
  5430. * src/HttpResponse.cc
  5431. * src/HttpSkipResponseCommand.cc
  5432. * src/Request.cc
  5433. * test/HttpHeaderTest.cc
  5434. * test/HttpResponseTest.cc
  5435. * test/RequestTest.cc
  5436. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5437. Changed help text for --load-cookie option.
  5438. * doc/aria2c.1.txt
  5439. * src/usage_text.h
  5440. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Regenerated test/Makefile.in to remove stale ChangeLog.
  5442. * test/Makefile.in
  5443. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5444. Updated po files.
  5445. * po/aria2c.pot
  5446. * po/*.po
  5447. * po/*.gmo
  5448. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5449. Bump up version number to 0.15.0b
  5450. * configure.ac
  5451. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5452. Externalize messages.
  5453. * src/RequestGroupMan.cc
  5454. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  5455. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5456. Use File::exists() instead of File::isFile() to allow non-regular file
  5457. such as block special files.
  5458. * src/AbstractDiskWriter.cc
  5459. * src/MultiDiskWriter.cc
  5460. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5461. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  5462. * src/gai_strerror.h
  5463. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. Fixed compile error. Thanks gknauf for the patch.
  5465. * src/asctime_r.c
  5466. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Included asctime_r.h from a2time.h.
  5468. * src/a2time.h
  5469. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5470. Added a message "aria2 doesn't verify signature" to log message when
  5471. signature file is saved.
  5472. * src/RequestGroupMan.cc
  5473. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5474. Added the ability to save signature when download is completed if
  5475. signature is available. The filename of signature file is the path to
  5476. download file followed by ".sig". If it already exists, then signature
  5477. will not be saved.
  5478. * src/RequestGroupMan.cc
  5479. * src/Signature.cc
  5480. * test/SignatureTest.cc
  5481. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5482. Updated the descriptions for --bt-seed-unverified.
  5483. * doc/aria2c.1
  5484. * doc/aria2c.1.html
  5485. * doc/aria2c.1.txt
  5486. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5487. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5488. that this is not going to verify files using piece hashes.
  5489. * src/HelpItemFactory.cc
  5490. * src/OptionHandlerFactory.cc
  5491. * src/RequestGroup.cc
  5492. * src/option_processing.cc
  5493. * src/prefs.cc
  5494. * src/prefs.h
  5495. * src/usage_text.h
  5496. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Added the ability to retrieve signature from Metalink file.
  5498. A retrieved signature is stored in Signature class and it is held by
  5499. DownloadContext class. Note that aria2 doesn't verify signature.
  5500. * src/DownloadContext.cc
  5501. * src/DownloadContext.h
  5502. * src/Makefile.am
  5503. * src/Makefile.in
  5504. * src/Metalink2RequestGroup.cc
  5505. * src/MetalinkEntry.cc
  5506. * src/MetalinkEntry.h
  5507. * src/MetalinkParserController.cc
  5508. * src/MetalinkParserController.h
  5509. * src/MetalinkParserStateMachine.cc
  5510. * src/MetalinkParserStateMachine.h
  5511. * src/Signature.cc
  5512. * src/Signature.h
  5513. * src/SignatureMetalinkParserState.cc
  5514. * src/SignatureMetalinkParserState.h
  5515. * src/VerificationMetalinkParserState.cc
  5516. * src/VerificationMetalinkParserState.h
  5517. * test/Metalink2RequestGroupTest.cc
  5518. * test/MetalinkParserControllerTest.cc
  5519. * test/MetalinkProcessorTest.cc
  5520. * test/test.xml
  5521. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5522. Close DiskAdaptor after renaming file.
  5523. * src/RequestGroup.cc
  5524. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5525. Corrected indentation
  5526. * src/DefaultBtProgressInfoFile.cc
  5527. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5528. Moved the calls of std::ios::exceptions() inside of try-catch block
  5529. because if an error occurred in constructor of std::fstream, then
  5530. exception is thrown immediately when std::ios::exceptions() is called
  5531. which results unhandled exception and aria2c aborts.
  5532. * src/DefaultBtProgressInfoFile.cc
  5533. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Added the test for the previous change in DefaultBtContext.cc
  5535. * test/DefaultBtContextTest.cc
  5536. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5537. Fixed the bug that causes infinite loop when the number of pieces are
  5538. fewer than allowed fast set size which is 10 by default.
  5539. * src/DefaultBtContext.cc
  5540. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5541. Updated the descriptions for -j, -s. Added --bt-seed.
  5542. * doc/aria2c.1
  5543. * doc/aria2c.1.html
  5544. * doc/aria2c.1.txt
  5545. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5547. aria2 seeds previously downloaded files without validating piece hashs.
  5548. * src/HelpItemFactory.cc
  5549. * src/OptionHandlerFactory.cc
  5550. * src/RequestGroup.cc
  5551. * src/option_processing.cc
  5552. * src/prefs.cc
  5553. * src/prefs.h
  5554. * src/usage_text.h
  5555. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5556. Updated DESCRIPTION of man page.
  5557. * doc/aria2c.1
  5558. * doc/aria2c.1.html
  5559. * doc/aria2c.1.txt
  5560. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5561. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5562. Don't define `struct addrinfo' when __sun is defined.
  5563. * src/getaddrinfo.h
  5564. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5565. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5566. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5567. second argument is of type `struct _stati64'. Otherwise it is defined as
  5568. `struct stat'.
  5569. * src/AbstractDiskWriter.cc
  5570. * src/File.cc
  5571. * src/File.h
  5572. * src/a2io.h
  5573. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5574. Fixed the compile error in hurd-i386
  5575. See the original bug report:
  5576. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5577. * src/a2io.h
  5578. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5579. Code cleanup.
  5580. * src/PeerAbstractCommand.cc
  5581. * src/PeerAbstractCommand.h
  5582. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. Removed TransferEncoding.
  5584. * src/DownloadCommand.cc
  5585. * src/DownloadCommand.h
  5586. * src/HttpResponseCommand.cc
  5587. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Updated po files.
  5589. * po/aria2c.pot
  5590. * po/*.po
  5591. * po/*.gmo
  5592. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5593. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5594. * src/A2STR.cc
  5595. * src/A2STR.h
  5596. * src/ChunkedDecoder.cc
  5597. * src/ChunkedDecoder.h
  5598. * src/ChunkedEncoding.cc: Removed
  5599. * src/ChunkedEncoding.h: Removed
  5600. * src/DownloadCommand.cc
  5601. * src/DownloadCommand.h
  5602. * src/HttpDownloadCommand.cc
  5603. * src/HttpResponse.cc
  5604. * src/HttpResponse.h
  5605. * src/HttpResponseCommand.cc
  5606. * src/HttpSkipResponseCommand.cc
  5607. * src/HttpSkipResponseCommand.h
  5608. * src/Makefile.am
  5609. * src/TransferEncoding.h: Removed
  5610. * test/ChunkedDecoderTest.cc
  5611. * test/ChunkedEncodingTest.cc: Removed
  5612. * test/HttpResponseTest.cc
  5613. * test/Makefile.am
  5614. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5615. Use append instead of insert.
  5616. * src/GZipDecoder.cc
  5617. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. Updated doc
  5619. * src/Decoder.h
  5620. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5621. Updated usage text for -s option.
  5622. * src/usage_text.h
  5623. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5625. * src/Request.cc
  5626. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Cleaned up configure.ac.
  5628. * configure.ac
  5629. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5630. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5631. AC_ARG_ENABLE.
  5632. * configure.ac
  5633. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5635. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5636. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5637. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5638. fly and writes decoded data to a local disk.
  5639. * README
  5640. * README.html
  5641. * configure.ac
  5642. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5643. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5644. * m4/libz.m4
  5645. * src/Decoder.h
  5646. * src/DownloadCommand.cc
  5647. * src/DownloadCommand.h
  5648. * src/Exception.h
  5649. * src/GZipDecoder.cc
  5650. * src/GZipDecoder.h
  5651. * src/HttpHeader.cc
  5652. * src/HttpHeader.h
  5653. * src/HttpRequest.cc
  5654. * src/HttpRequest.h
  5655. * src/HttpResponse.cc
  5656. * src/HttpResponse.h
  5657. * src/HttpResponseCommand.cc
  5658. * src/Makefile.am
  5659. * test/GZipDecoderTest.cc
  5660. * test/HttpRequestTest.cc
  5661. * test/HttpResponseTest.cc
  5662. * test/Makefile.am
  5663. * test/Makefile.in
  5664. * test/gzip_decode_test.gz
  5665. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Clarified usage of -j option.
  5667. * src/usage_text.h
  5668. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5669. Disabled getting size from the response of RETR.
  5670. If SIZE command failed, then disable resuming and segmented downloading.
  5671. * src/FtpConnection.cc
  5672. * src/FtpConnection.h
  5673. * src/FtpNegotiationCommand.cc
  5674. * src/FtpNegotiationCommand.h
  5675. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5676. Use digits to find first byte of file size, which makes the intention
  5677. of the code clearer.
  5678. * src/FtpConnection.cc
  5679. Don't call validateTotalLength() when size is 0.
  5680. * src/FtpNegotiationCommand.cc
  5681. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5682. Updated po files.
  5683. * po/aria2c.pot
  5684. * po/*.gmo
  5685. * po/*.po
  5686. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5687. Clarified usage text for --split option.
  5688. * src/usage_text.h
  5689. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Bump up version number to 0.15.0dev. "dev" means "development"
  5691. version, which means I started the development of the next release!
  5692. * src/configure.ac
  5693. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5694. If FTP server returns negative response with REST raw command and
  5695. requested range is not 0, throw exception. If requested range is 0,
  5696. continue download a file from 0 byte.
  5697. * src/FtpNegotiationCommand.cc
  5698. * src/FtpNegotiationCommand.h
  5699. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Supported FTP server which don't recognize SIZE raw command.
  5701. If SIZE raw command is failed, aria2 will try to get file size
  5702. from the response of RETR raw command. If both attempts are failed,
  5703. then resuming and segmented downloading are disabled.
  5704. * src/FtpConnection.cc
  5705. * src/FtpConnection.h
  5706. * src/FtpNegotiationCommand.cc
  5707. * src/FtpNegotiationCommand.h
  5708. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5709. * Release 0.14.0+1
  5710. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5711. Bump up version number to 0.14.0+1
  5712. * src/configure.ac
  5713. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5714. Fixed the code that refers static member variable from non-static
  5715. context.
  5716. * src/DefaultPeerStorage.cc
  5717. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5718. * Release 0.14.0
  5719. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5720. Added build test script
  5721. * build_test.sh
  5722. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5723. Updated ja.po
  5724. * src/ja.po
  5725. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5726. Bump up version number to 0.14.0
  5727. * src/configure.ac
  5728. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5729. Updated ja.po and fr.po. Great thanks for french translators and
  5730. Sebastien WILLEMIJNS.
  5731. * po/fr.po
  5732. * po/ja.po
  5733. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. Added configure option to enable/disable epoll support.
  5735. * configure.ac
  5736. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Updated man page.
  5738. * doc/aria2c.1.txt
  5739. * doc/aria2c.1
  5740. * doc/aria2c.1.html
  5741. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5742. Added missing default value '5' to the usage of --split option.
  5743. * src/HelpItemFactory.cc
  5744. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. Filled up pieces based on the number of missing blocks, rather than
  5746. simplay the number of piece * block length.
  5747. * src/BtRequestFactory.h
  5748. * src/DefaultBtInteractive.cc
  5749. * src/DefaultBtInteractive.h
  5750. * src/DefaultBtRequestFactory.cc
  5751. * src/DefaultBtRequestFactory.h
  5752. * src/Piece.cc
  5753. * src/Piece.h
  5754. * test/BitfieldManTest.cc
  5755. * test/DefaultBtRequestFactoryTest.cc
  5756. * test/MockBtRequestFactory.h
  5757. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5758. Made _epEvents a member variable.
  5759. * src/DownloadEngine.cc
  5760. * src/DownloadEngine.h
  5761. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5762. Cancel download if http redirect is bounded more than 20 times.
  5763. * src/AbstractCommand.cc
  5764. * src/HttpSkipResponseCommand.cc
  5765. * src/Request.cc
  5766. * src/Request.h
  5767. * test/RequestTest.cc
  5768. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. Fixed unhandled exception(removed keyword `new').
  5770. * src/SocketCore.cc (initEPOLL)
  5771. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5772. Removed visit(const MetaEntry*)
  5773. * src/MetaEntryVisitor.h:
  5774. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5775. and made them virtual.
  5776. * src/BencodeVisitor.h
  5777. * src/BencodeVisitor.cc
  5778. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Updated po files.
  5780. * po/aria2c.pot
  5781. * po/*.po
  5782. * po/*.gmo
  5783. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5785. the number of socket to watch out.
  5786. * src/PeerInteractionCommand.cc
  5787. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5788. When there is not enough space in disk when writing a chunk of data,
  5789. aria2 now prints the message to the console to warn user and aborts
  5790. its download. Not all downloads are canceled because some downloads
  5791. may use another disk or partition. BUG#1640332
  5792. * src/AbstractDiskWriter.cc
  5793. * src/PeerAbstractCommand.cc
  5794. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5795. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5796. setHaltRequested(true) to cancel download.
  5797. * src/PeerInteractionCommand.h
  5798. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5800. socket from int to sock_t as sockets are unsigned in Windows.
  5801. For AsyncNameResolver, DownloadEngine, I did additional modification
  5802. for the portion of the code changed according to epoll support.
  5803. I defined sock_t in a2netcompat.h to use sock_t without including
  5804. SocketCore.h.
  5805. * src/AsyncNameResolver.cc
  5806. * src/AsyncNameResolver.h
  5807. * src/DownloadEngine.cc
  5808. * src/DownloadEngine.h
  5809. * src/SocketCore.cc
  5810. * src/SocketCore.h
  5811. * src/a2netcompat.h
  5812. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5813. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  5814. changes in the patch were applied.
  5815. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  5816. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  5817. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  5818. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5819. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  5820. a2io.h and common.h were modified.
  5821. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  5822. MinGW.
  5823. * src/common.h: Changed off_t to 64 bit in MinGW.
  5824. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5825. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5826. only a2netcompat.h is modified.
  5827. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  5828. directives.
  5829. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5831. only gai_strerror.h is modified.
  5832. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  5833. winsock errors in MinGW.
  5834. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  5836. follow sources are applied.
  5837. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  5838. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  5839. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  5840. I included locale.h from Platform.cc.
  5841. * src/main.cc: Moved common setup/teardown code to Platform class.
  5842. * test/AllTest.cc: Use Platform class.
  5843. Set locale to C in AllTest.cc to prevent the messages to be localized.
  5844. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5845. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  5846. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  5847. * test/HttpRequestTest.cc: Casted to off_t where it should.
  5848. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5849. Applied Ross's aria2-0.13.2+1-mingw.patch and
  5850. aria2-0.13.2+1-mingw-2.patch.
  5851. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  5852. systems which don't have termious.h. I moved the directive inside of
  5853. if(isTTY) { ... clause so that line is wiped out without termious.h.
  5854. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  5855. anyway.
  5856. * src/asctime_r.h
  5857. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  5858. I added 2nd argument to the prototype declaration.
  5859. * src/StringFormat.cc: Get rid of vasprintf.
  5860. * src/getaddrinfo.h: Fixed constants.
  5861. * configure.ac: Added the check for asctime_r function.
  5862. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  5863. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5864. Added writable test for Socket when the sending message is in progress.
  5865. Usually the sending message is piece message. Without wriable check,
  5866. upload latency is dropped to more than 1sec.
  5867. * src/PeerInteractionCommand.cc
  5868. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. Create only requested files and files which shares a piece with
  5870. requested file in multi-torrent downloads. Directory structures are
  5871. also created in the same rule.
  5872. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  5873. DiskWriterEntry as in the previous implementation.
  5874. * src/MultiDiskWriter.cc
  5875. * src/MultiFileAllocationIterator.cc
  5876. * src/MultiFileAllocationIterator.h
  5877. * test/MultiFileAllocationIteratorTest.cc
  5878. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5879. Commented out -lprofiler
  5880. * src/Makefile.am
  5881. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5882. Bump up version number to 0.14.0b.
  5883. * src/configure.ac
  5884. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5885. Actively establish connection to peers in seeding, when peer cache
  5886. is not full and max upload speed limit is not reached.
  5887. * src/ActivePeerConnectionCommand.cc
  5888. * src/ActivePeerConnectionCommand.h
  5889. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  5891. to make room more fleshy, recently found peers.
  5892. Peer::_badConditionStartTime is not used anymore. Consider to remove
  5893. it.
  5894. * src/DefaultPeerStorage.cc
  5895. * test/DefaultPeerStorageTest.cc
  5896. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5897. Returns cached data only when the previous receiveHandshake() is called
  5898. with peek = true.
  5899. * src/PeerConnection.cc (receiveHandshake)
  5900. * src/PeerConnection.h (receiveHandshake)
  5901. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5902. Changed default value of -s option from 1 to 5.
  5903. Also max value of -s option is changed from 5 to 16.
  5904. * src/HelpItemFactory.cc
  5905. * src/OptionHandlerFactory.cc
  5906. * src/option_processing.cc
  5907. * src/usage_text.h
  5908. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5909. Changed -s options behavior. Now it means the number of connections
  5910. made simultaneously in each http/ftp download.
  5911. If 1 URL is specified, the behavior is the same with old implementation.
  5912. If -s N is given and more than N URLs are specified, first N URLs are
  5913. used and remaining URLs are used for backup. If less than N URLs are
  5914. specified, some of URLs are used more than once so that totally N
  5915. connections are made simultaneously.
  5916. * src/main.cc
  5917. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5918. Included missing iosfwd or ostream header.
  5919. * src/RequestGroupMan.cc
  5920. * src/TaggedItem.cc
  5921. * src/TaggedItem.h
  5922. * src/Util.cc
  5923. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5924. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  5925. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  5926. * src/HttpConnection.cc: Included missing sstream.
  5927. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5928. Added --bt-max-open-files option.
  5929. * src/DefaultPieceStorage.cc
  5930. * src/HelpItemFactory.cc
  5931. * src/MultiDiskAdaptor.cc
  5932. * src/MultiDiskAdaptor.h
  5933. * src/OptionHandlerFactory.cc
  5934. * src/option_processing.cc
  5935. * src/prefs.cc
  5936. * src/prefs.h
  5937. * src/usage_text.h
  5938. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5939. Fixed the bug that aria2 aborts when a path to a directory is given
  5940. in command-line.
  5941. * src/ProtocolDetector.cc
  5942. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5943. Limited the number files opened in each BitTorrent download. The default
  5944. value is 100. The option to change this value will be added.
  5945. * src/MultiDiskAdaptor.cc
  5946. * src/MultiDiskAdaptor.h
  5947. * src/MultiFileAllocationIterator.cc
  5948. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. Fixed the bug that HTTP downloads don't start with old libraries.
  5950. * src/HttpHeaderProcessor.cc
  5951. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. Use empty() instead of size() > 0.
  5953. * src/HttpConnection.cc
  5954. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Drop connection if the incoming peer ID is the same with localhost's
  5956. one. The previous implementation drops connection when incoming peer's
  5957. IP address is the same with localhost's one.
  5958. * src/PeerListenCommand.cc
  5959. * src/DefaultBtInteractive.cc
  5960. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5961. Returns cached data without checking whether socket is readable
  5962. if the cache is available.
  5963. * src/PeerConnection.cc (receiveHandshake)
  5964. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. Included stdint.h
  5966. * src/common.h
  5967. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5968. Removed duplicate HAVE_GETTIMEOFDAY
  5969. * src/Makefile.am
  5970. * src/Makefile.in
  5971. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5972. Use interval as a minInterval when minInterval is not supplied.
  5973. * src/DefaultBtAnnounce.cc
  5974. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5975. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  5976. attempt is failed, then 2nd attempt get kicked out more quickly.
  5977. And it is now static const member of DefaultBtAnnounce.
  5978. * src/DefaultBtAnnounce.h
  5979. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5980. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  5981. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  5982. * src/ActivePeerConnectionCommand.cc
  5983. * src/BtConstants.h
  5984. * src/BtRuntime.h
  5985. * src/DHTGetPeersCommand.cc
  5986. * src/DefaultBtAnnounce.cc
  5987. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  5988. BtRuntime::MAX_PEERS.
  5989. * src/DefaultPeerStorage.h
  5990. * src/InitiatorMSEHandshakeCommand.cc
  5991. * src/PeerInitiateConnectionCommand.cc
  5992. * src/PeerInteractionCommand.cc
  5993. * src/PeerReceiveHandshakeCommand.cc
  5994. * src/TrackerWatcherCommand.cc
  5995. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5996. Always Connect to _numNewConnection
  5997. * src/ActivePeerConnectionCommand.cc
  5998. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. Made `begin' unsigned int.
  6000. * src/GrowSegment.h
  6001. * src/Piece.cc
  6002. * src/Piece.h
  6003. * src/PiecedSegment.cc
  6004. * src/PiecedSegment.h
  6005. * src/Segment.h
  6006. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6007. Calculate piece hash when data is arrived if the data is arrived in
  6008. order. This removes additional read operation for hash calculation.
  6009. If the data is arrived in out of order, the hash is calucated when the
  6010. piece is completed. This is the same behavior as the old implementation.
  6011. * src/BtPieceMessage.cc
  6012. * src/DefaultBtProgressInfoFile.cc
  6013. * src/DefaultPieceStorage.cc
  6014. * src/DownloadCommand.cc
  6015. * src/DownloadCommand.h
  6016. * src/DownloadEngine.cc
  6017. * src/GrowSegment.cc
  6018. * src/GrowSegment.h
  6019. * src/Piece.cc
  6020. * src/Piece.h
  6021. * src/PiecedSegment.cc
  6022. * src/PiecedSegment.h
  6023. * src/Segment.h
  6024. * test/PieceTest.cc
  6025. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6026. Try to keep the ordering of outgoing piece message.
  6027. * src/DefaultBtMessageDispatcher.cc
  6028. (DefaultBtMessageDispatcher::sendMessages)
  6029. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6030. Fixed busy loop when error/hup epoll events occur.
  6031. * src/AbstractCommand.cc
  6032. * src/PeerAbstractCommand.cc
  6033. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6034. Added --bt-request-peer-speed-limit option, which was a constant
  6035. SLOW_SPEED_THRESHOLD.
  6036. * src/ActivePeerConnectionCommand.cc
  6037. * src/ActivePeerConnectionCommand.h
  6038. * src/BtConstants.h
  6039. * src/HelpItemFactory.cc
  6040. * src/OptionHandlerFactory.cc
  6041. * src/PeerReceiveHandshakeCommand.cc
  6042. * src/option_processing.cc
  6043. * src/prefs.cc
  6044. * src/prefs.h
  6045. * src/usage_text.h
  6046. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Removed repeated call of getTopDirPath(). Instead, call it once and
  6048. cache the result.
  6049. * src/MultiDiskAdaptor.cc
  6050. * src/MultiDiskAdaptor.h
  6051. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6052. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6053. Fixed compile error on debian etch.
  6054. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6055. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6056. it is undefined.
  6057. * src/Util.cc (ULLONG_MAX)
  6058. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6059. Added epoll support. Use epoll if it is available. If not, use select.
  6060. When async dns is enabled in compile time, epoll support is enabled
  6061. only when aria2 is built with c-ares. This condition statement is
  6062. defined in a2io.h.
  6063. Currently aria2 supports both c-ares and ares, but ares is maintained
  6064. for quite a while and debian already has c-ares package, ares support
  6065. will be dropped in the future version.
  6066. * configure.ac
  6067. * src/AbstractCommand.cc
  6068. * src/AsyncNameResolver.cc
  6069. * src/AsyncNameResolver.h
  6070. * src/Command.cc
  6071. * src/Command.h
  6072. * src/DownloadEngine.cc
  6073. * src/DownloadEngine.h
  6074. * src/PeerAbstractCommand.cc
  6075. * src/SocketCore.cc
  6076. * src/SocketCore.h
  6077. * src/a2io.h
  6078. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6080. directive.
  6081. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6082. Do not do write operation to /dev/null file.
  6083. * src/LogFactory.cc
  6084. * src/SimpleLogger.cc
  6085. Replaced vasprintf with vsnprintf
  6086. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6087. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6088. * src/BtRequestMessage.cc
  6089. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6090. for segmentation fault caused by previous commit.
  6091. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6092. Reduced the usage of gettimeofday().
  6093. * src/DefaultBtMessageDispatcher.cc
  6094. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6095. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6096. * src/RequestSlot.cc
  6097. * src/RequestSlot.h
  6098. (RequestSlot::isTimeout)
  6099. Made RequestSlot have a reference to Piece object to avoid find
  6100. Piece repeatedly.
  6101. * src/DefaultBtMessageDispatcher.cc
  6102. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6103. * src/RequestSlot.cc
  6104. * src/RequestSlot.h
  6105. (RequestSlot::getPiece)
  6106. * test/DefaultBtMessageDispatcherTest.cc
  6107. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. * src/TimeA2.cc
  6109. * src/TimeA2.h
  6110. (Time::difference): New function.
  6111. (Time::elapsed): Done optimization.
  6112. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6113. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6114. directive.
  6115. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. * src/option_processing.cc: Added missing `defined' keyword to #if
  6117. directive.
  6118. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6119. Bump up version number to 0.13.2+1
  6120. * src/configure.ac
  6121. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6122. Refactored broken outstanding piece handling.
  6123. * src/DefaultPieceStorage.cc
  6124. * src/DefaultPieceStorage.h
  6125. * src/Piece.cc
  6126. * src/Piece.h
  6127. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6129. name collision of static variable and predefined macro.
  6130. * src/BtContext.cc
  6131. * src/BtContext.h
  6132. * src/CookieBoxFactory.cc
  6133. * src/CookieBoxFactory.h
  6134. * src/CookieParser.cc
  6135. * src/CookieParser.h
  6136. * src/DefaultBtContext.cc
  6137. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. * src/RequestGroup.cc
  6139. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6140. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. * Release 0.13.2
  6142. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6144. * po/fr.po
  6145. * po/ja.po
  6146. * po/aria2c.pot
  6147. * po/*.po
  6148. * po/*.gmo
  6149. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Bump up version number to 0.13.2
  6151. * src/configure.ac
  6152. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Refactord.
  6154. * src/RequestGroupMan.cc
  6155. (removeStoppedGroup)
  6156. (fillRequestGroupFromReserver)
  6157. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6158. Fixed compile error on Ubuntu.
  6159. * src/BtPieceMessage.cc
  6160. * src/MessageDigestHelper.cc
  6161. * src/Util.cc
  6162. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Fixed compile error when configured with --disable-bittorrent
  6164. * test/DownloadHandlerFactoryTest.cc
  6165. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Done make update-po
  6167. * po/aria2c.pot
  6168. * po/*.po
  6169. * po/*.gmo
  6170. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. Bump up version number to 0.13.2rc.
  6172. * src/configure.ac
  6173. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Made option name bold. Updated SYNOPSIS to make it more readable.
  6175. * doc/aria2c.1.txt
  6176. * doc/aria2c.1
  6177. * doc/aria2c.1.html
  6178. * src/version_usage.cc
  6179. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6180. Refactored. Use std::string instead of size and char*.
  6181. * Data.cc
  6182. * Data.h
  6183. * test/Data.cc
  6184. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Added trimSelf(). Rewritten trim() to use trimSelf().
  6186. * Util.cc
  6187. * Util.h
  6188. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6190. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6191. Fixed compile error when configured with --disable-metalink.
  6192. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6193. * test/FeatureConfigTest.cc
  6194. * test/DownloadHandlerFactoryTest.cc
  6195. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Fixed compile error when configured with --without-gnutls
  6197. --without-openssl
  6198. * src/main.cc
  6199. * test/DefaultBtProgressInfoFileTest.cc
  6200. * test/SegmentManTest.cc
  6201. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Fixed compile error with OpenSSL.
  6203. * src/IteratableChunkChecksumValidator.cc
  6204. * src/LibsslDHKeyExchange.h
  6205. * src/MessageDigestHelper.cc
  6206. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. Revert the default value of --max-concurrent-downloads to 5.
  6208. Revert the default value of --metalink-servers to 5.
  6209. Man pages was also updated.
  6210. * src/option_processing.cc
  6211. * doc/aria2c.1.txt
  6212. * doc/aria2c.1.html
  6213. * doc/aria2c.1
  6214. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6215. Returns const reference:
  6216. DownloadContext::getPieceHash, DownloadContext::getName,
  6217. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6218. BtContext::getInfoHashAsString,
  6219. * src/BtContext.h
  6220. * src/DefaultBtContext.cc
  6221. * src/DefaultBtContext.h
  6222. * src/DownloadContext.h
  6223. * src/SingleFileDownloadContext.h
  6224. * test/MockBtContext.h
  6225. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. * src/RequestGroup.h (getDir): Removed.
  6227. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6228. Returns const reference. The internal urlencode function was optimized
  6229. a little bit.
  6230. * src/Request.cc
  6231. * src/Request.h
  6232. * src/HttpRequest.cc
  6233. * src/HttpRequest.h
  6234. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6235. Defined option name and possible values as std::string to reduce
  6236. temporary string object creation in runtime.
  6237. * src/HelpItemFactory.cc
  6238. * src/LogFactory.cc
  6239. * src/Option.cc
  6240. * src/OptionHandlerFactory.cc
  6241. * src/option_processing.cc
  6242. * src/prefs.cc
  6243. * src/prefs.h
  6244. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Return const reference.
  6246. * src/DownloadHandlerConstants.cc
  6247. * src/DownloadHandlerConstants.h
  6248. (getMetalinkExtensions)
  6249. (getMetalinkContentTypes)
  6250. (getBtExtensions)
  6251. (getBtContentTypes)
  6252. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6253. * src/HttpHeader.cc (get): Rewritten.
  6254. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Make HttpHeader::getFirst(...) return const reference.
  6256. * src/HttpHeader.cc
  6257. * src/HttpHeader.h
  6258. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6259. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6260. it with V_TRUE.
  6261. * src/DefaultPieceStorage.cc
  6262. * src/DownloadCommand.cc
  6263. * src/FtpNegotiationCommand.cc
  6264. * src/HttpRequest.cc
  6265. * src/InitiateConnectionCommand.cc
  6266. * src/RequestGroup.cc
  6267. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6268. Made Option::get(...) return const reference of std::string.
  6269. * src/Option.cc
  6270. * src/Option.h
  6271. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6272. Replaced std:copy with insert.
  6273. * src/DefaultBtMessageDispatcher.cc
  6274. * src/DefaultPieceStorage.cc
  6275. * src/DownloadEngineFactory.cc
  6276. * src/RequestGroup.cc
  6277. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. Included SocketCore.h to fix compiler warning.
  6279. * src/InitiateConnectionCommand.cc
  6280. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6281. Put piece selection strategy algorithm to RarestPieceSelector class,
  6282. Added a switch to choose whether randomized selection so that unit
  6283. tests emit same results in, possibly, win32.
  6284. * src/DefaultPieceStorage.cc
  6285. * src/DefaultPieceStorage.h
  6286. * src/RarestPieceSelector.cc
  6287. * src/RarestPieceSelector.h
  6288. * test/DefaultPieceStorageTest.cc
  6289. * test/RarestPieceSelectorTest.cc
  6290. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. Don't pool connection if HTTP proxy is enabled.
  6292. * src/FtpFinishDownloadCommand.cc
  6293. * src/FtpNegotiationCommand.cc
  6294. * src/HttpSkipResponseCommand.cc
  6295. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6296. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6297. * src/AbstractCommand.cc
  6298. * src/AbstractCommand.h
  6299. * src/ActivePeerConnectionCommand.cc
  6300. * src/FtpInitiateConnectionCommand.cc
  6301. * src/HttpInitiateConnectionCommand.cc
  6302. * src/InitiateConnectionCommandFactory.cc
  6303. * src/PeerAbstractCommand.cc
  6304. * src/PeerAbstractCommand.h
  6305. * src/PeerInitiateConnectionCommand.cc
  6306. * src/TrackerWatcherCommand.cc
  6307. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Sort RequestSlot in ascending order and manipulate them using
  6309. lower_bound.
  6310. * src/DefaultBtMessageDispatcher.cc
  6311. * src/DefaultBtMessageDispatcher.h
  6312. (getMessageQueue): Added const qualifier.
  6313. (getRequestSlots): Added const qualifier.
  6314. (sendMessages): Use empty() instead of size().
  6315. (doCancelSendingPieceAction): Use HandleEvent object.
  6316. (doAbortOutstandingRequestAction): Rewritten.
  6317. (doChokedAction): Rewritten.
  6318. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6319. (isOutstandingRequest): Rewritten.
  6320. (getOutstandingRequest): Rewritten.
  6321. (removeOutstandingRequest): Rewritten.
  6322. (addOutstandingRequest): Rewritten.
  6323. * src/RequestSlot.cc
  6324. * src/RequestSlot.h
  6325. (operator=): Rewritten.
  6326. (operator!=): New function.
  6327. (operator<): New function.
  6328. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6329. * src/DefaultBtRequestFactory.cc
  6330. (doChokedAction): Rewritten.
  6331. (removeCompletedPiece): Rewritten.
  6332. (removeTargetPiece): Rewritten.
  6333. (createRequestMessages): Added the debug log.
  6334. (createRequestMessagesOnEndGame: Added the debug log.
  6335. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Added the debug log message.
  6337. * src/BtPieceMessage.cc (doReceivedAction)
  6338. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6340. used lower_bound to process them rather than linear search.
  6341. * src/DHTPeerAnnounceStorage.cc
  6342. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6343. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6344. peer has at least one completed piece.
  6345. * src/Peer.cc
  6346. * src/Peer.h
  6347. * src/PeerInteractionCommand.cc
  6348. * src/PeerSessionResource.cc
  6349. * src/PeerSessionResource.h
  6350. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6351. Removed unnecessary sorting
  6352. * src/DefaultPieceStorage (DefaultPieceStorage)
  6353. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. Rewritten the portion of the code that mangaes allowed fast indexes.
  6355. * src/PeerSessionResource.cc
  6356. * src/PeerSessionResource.h
  6357. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6358. Removed the invalid string including '\r' from ru.po and
  6359. did make update-po.
  6360. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6361. Added --log-level and --summary-interval to man page.
  6362. * doc/aria2c.1.txt
  6363. * doc/aria2c.1.html
  6364. * doc/aria2c.1
  6365. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6366. Added --log-level option to specify log level. Log messages under
  6367. the specified level are not output. Default value is `debug'.
  6368. * src/HelpItemFactory.cc
  6369. * src/LogFactory.cc
  6370. * src/LogFactory.h
  6371. * src/Logger.h
  6372. * src/OptionHandlerFactory.cc
  6373. * src/SimpleLogger.cc
  6374. * src/SimpleLogger.h
  6375. * src/main.cc
  6376. * src/option_processing.cc
  6377. * src/prefs.h
  6378. * src/usage_text.h
  6379. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6380. Print download progress summary of all parallel downloads in specified
  6381. interval, default 60 secs. While aria2 could download several files
  6382. in parallel (see -j option), it displayed just first download progress,
  6383. and the other downloads are hidden from the users. This new feature
  6384. prints all downloads currently in-progress to the console so that you
  6385. can check the status of all downloads. The interval can be adjusted
  6386. by --summary-interval option.
  6387. The progress readout is now cut so that all fits in the one line of
  6388. console.
  6389. * src/ConsoleStatCalc.cc
  6390. * src/ConsoleStatCalc.h
  6391. * src/HelpItemFactory.cc
  6392. * src/OptionHandlerFactory.cc
  6393. * src/RequestGroupMan.cc
  6394. * src/RequestGroupMan.h
  6395. * src/main.cc
  6396. * src/option_processing.cc
  6397. * src/prefs.h
  6398. * src/usage_text.h
  6399. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6401. * src/DownloadEngine.cc (DownloadEngine)
  6402. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6404. defined.
  6405. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6406. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Use erase+lower_bound+insert instead of sort.
  6408. * src/DefaultPieceStorage.cc (addPieceStats)
  6409. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6410. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6411. * src/A2STR.cc
  6412. * src/A2STR.h
  6413. * src/OptionParser.cc (parse)
  6414. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6415. Defined fake filename `[tracker.announce]' as static const std::string.
  6416. * src/TrackerWatcherCommand.cc (createRequestGroup)
  6417. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6418. Defined default filename `index.html' as static const std::string
  6419. * src/SingleFileDownloadContext.cc
  6420. * src/SingleFileDownloadContext.h
  6421. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6422. Defined "[MEMORY]" as static const std::string.
  6423. * src/MemoryBufferPreDownloadHandler.cc (execute)
  6424. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6425. Defined control file's version number as static const std::string.
  6426. * src/DefaultBtProgressInfoFile.cc
  6427. * src/DefaultBtProgressInfoFile.h
  6428. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Use Request::METHOD_GET
  6430. * src/RequestGroup.cc (createNextCommandWithAdj)
  6431. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Defined "OK", "ERR", "INPR" as static const std::string
  6433. * src/RequestGroupMan.cc (showDownloadResults)
  6434. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. Defined default client used in extended handshake as static const
  6436. std::string
  6437. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  6438. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6439. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  6440. * src/HttpConnection.cc (eraseConfidentialInfo)
  6441. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6442. Defined default ftp user and password as static const std::string
  6443. * src/AuthConfigFactory.cc
  6444. * src/AuthConfigFactory.h
  6445. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Defined strings used in netrc as static const std::string
  6447. * src/Netrc.cc
  6448. * src/Netrc.h
  6449. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Defined HTTP status as static const std::string
  6451. * src/AbstractProxyResponseCommand.cc
  6452. * src/HttpHeader.cc
  6453. * src/HttpHeader.h
  6454. * src/HttpResponse.cc
  6455. * src/HttpResponseCommand.cc
  6456. * src/HttpSkipResponseCommand.cc
  6457. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Defined "\r\n", "A", "I" as static const std::string
  6459. * src/A2STR.cc
  6460. * src/A2STR.h
  6461. * src/FtpConnection.cc
  6462. * src/FtpConnection.h
  6463. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6464. Added COLON_C(".") and used it in Request::parseUrl()
  6465. * src/A2STR.cc
  6466. * src/A2STR.h
  6467. * src/Request.cc (parseUrl)
  6468. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6469. Changed the type of padName from `const std::string&' to `const char*'.
  6470. * src/MSEHandshake.cc (verifyPadLength)
  6471. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6472. Defined "sha1" as static const std::string.
  6473. * src/MetalinkParserController.cc
  6474. * src/MetalinkParserController.h
  6475. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6476. Defined message digest algorithm name as static const std::string
  6477. * src/DHTTokenTracker.cc
  6478. * src/DHTUtil.cc
  6479. * src/DefaultBtContext.cc
  6480. * src/MSEHandshake.cc
  6481. * src/MessageDigestHelper.cc
  6482. * src/Peer.cc
  6483. * src/messageDigest.cc
  6484. * src/messageDigest.h
  6485. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6486. Made string literals used in SAX parser static const std::string.
  6487. * src/FileMetalinkParserState.cc
  6488. * src/FileMetalinkParserState.h
  6489. * src/FilesMetalinkParserState.cc
  6490. * src/FilesMetalinkParserState.h
  6491. * src/InitialMetalinkParserState.cc
  6492. * src/InitialMetalinkParserState.h
  6493. * src/MetalinkMetalinkParserState.cc
  6494. * src/MetalinkMetalinkParserState.h
  6495. * src/PiecesMetalinkParserState.cc
  6496. * src/PiecesMetalinkParserState.h
  6497. * src/ResourcesMetalinkParserState.cc
  6498. * src/ResourcesMetalinkParserState.h
  6499. * src/VerificationMetalinkParserState.cc
  6500. * src/VerificationMetalinkParserState.h
  6501. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6503. * src/A2STR.cc
  6504. * src/A2STR.h
  6505. * src/File.cc
  6506. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6507. Defined static const std::string IP("ip"), PORT("port") and use them
  6508. instead of string literals.
  6509. * src/DefaultPeerListProcessor.cc
  6510. * src/DefaultPeerListProcessor.h
  6511. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6512. Made string literals for torrent file processing static const
  6513. std::string.
  6514. * src/BtContext.cc
  6515. * src/BtContext.h
  6516. * src/DefaultBtContext.cc
  6517. * src/DefaultBtContext.h
  6518. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6519. Made string literal for tracker response static const std::string
  6520. * src/BtAnnounce.cc
  6521. * src/BtAnnounce.h
  6522. * src/DefaultBtAnnounce.cc
  6523. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Use DHTMessage::T instead of "t".
  6525. * src/DHTMessageTracker.cc (messageArrived)
  6526. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6527. Made keyName static const. Made trimmed charset static const
  6528. std::string.
  6529. * src/Util.cc (getContentDispositionFilename)
  6530. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6531. Made USER_AGENT const. Made "/" static const std::string.
  6532. * src/A2STR.cc
  6533. * src/A2STR.h
  6534. * src/HttpRequest.cc
  6535. * src/HttpRequest.h
  6536. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. Made string listeral to static const std::string:
  6538. "Content-Range", "Content-Length"
  6539. * src/HttpHeader.cc
  6540. * src/HttpHeader.h
  6541. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6542. Made string listeral to static const std::string.
  6543. * src/HttpConnection.cc
  6544. * src/HttpHeader.cc
  6545. * src/HttpHeader.h
  6546. * src/HttpResponse.cc
  6547. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6548. Made string listeral to static const std::string.
  6549. * src/A2STR.cc
  6550. * src/A2STR.h
  6551. * src/SimpleLogger.cc
  6552. * src/SimpleLogger.h
  6553. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Made string literal to static const std::string.
  6555. Rewritten CookieParser::setField.
  6556. * src/A2STR.cc
  6557. * src/A2STR.h
  6558. * src/CookieBoxFactory.cc
  6559. * src/CookieBoxFactory.h
  6560. * src/CookieParser.cc
  6561. * src/CookieParser.h
  6562. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6563. Made string literal to static const std::string
  6564. * src/DHTAbstractMessage.cc
  6565. * src/DHTAnnouncePeerMessage.cc
  6566. * src/DHTAnnouncePeerMessage.h
  6567. * src/DHTAnnouncePeerReplyMessage.cc
  6568. * src/DHTAnnouncePeerReplyMessage.h
  6569. * src/DHTFindNodeMessage.cc
  6570. * src/DHTFindNodeMessage.h
  6571. * src/DHTFindNodeReplyMessage.cc
  6572. * src/DHTFindNodeReplyMessage.h
  6573. * src/DHTGetPeersMessage.cc
  6574. * src/DHTGetPeersMessage.h
  6575. * src/DHTGetPeersReplyMessage.cc
  6576. * src/DHTGetPeersReplyMessage.h
  6577. * src/DHTMessage.cc
  6578. * src/DHTMessage.h
  6579. * src/DHTMessageFactoryImpl.cc
  6580. * src/DHTMessageReceiver.cc
  6581. * src/DHTPingMessage.cc
  6582. * src/DHTPingMessage.h
  6583. * src/DHTPingReplyMessage.cc
  6584. * src/DHTPingReplyMessage.h
  6585. * src/DHTQueryMessage.cc
  6586. * src/DHTQueryMessage.h
  6587. * src/DHTResponseMessage.cc
  6588. * src/DHTResponseMessage.h
  6589. * src/DHTUnknownMessage.cc
  6590. * src/DHTUnknownMessage.h
  6591. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Made string literal to static const std::string
  6593. * src/BtChokeMessage.cc (toString)
  6594. * src/BtHaveAllMessage.cc (toString)
  6595. * src/BtHaveNoneMessage.cc (toString)
  6596. * src/BtInterestedMessage.cc (toString)
  6597. * src/BtNotInterestedMessage.cc (toString)
  6598. * src/BtUnchokeMessage.cc (toString)
  6599. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. Replaced "" with static const variable A2STR::NIL.
  6601. Replaced string comparison against "" with std::string::empty().
  6602. Added PROTO_* to Request class and use them as a protocol string
  6603. constant.
  6604. Made "started", "stopped", "completed" static const variable in
  6605. AnnounceList class.
  6606. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6607. Updated translations. Great thanks to translators.
  6608. * po/ca.po
  6609. * po/de.po
  6610. * po/fr.po
  6611. * po/it.po
  6612. * po/ja.po
  6613. * po/ru.po
  6614. * po/zh_CN.po
  6615. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Updated man page; categorized options and fixed typo.
  6617. * doc/aria2c.1.txt
  6618. * doc/aria2c.1.html
  6619. * doc/aria2c.1
  6620. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6621. Removed const ref
  6622. * src/MetalinkEntry.cc (AddProtocolPreference)
  6623. * src/RequestGroup.cc (FindServerHostByHostname)
  6624. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Rewritten Accept-Features handling.
  6626. * src/HttpRequestCommand.cc (createHttpRequest)
  6627. * src/a2functional.h
  6628. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6629. Changed method signature:
  6630. DHTAbstractNodeLookupTask::toEntries
  6631. * src/DHTAbstractNodeLookupTask.cc
  6632. * src/DHTAbstractNodeLookupTask.h
  6633. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6634. Changed method signature:
  6635. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6636. * src/BtContext.h
  6637. * src/DefaultBtContext.cc
  6638. * src/DefaultBtContext.h
  6639. * src/DefaultBtInteractive.cc
  6640. * test/DefaultBtContextTest.cc
  6641. * test/MockBtContext.h
  6642. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Changed method signature:
  6644. MultiFileAllocationIterator::makeDiskWriterEntries
  6645. * src/MultiFileAllocationIterator.cc
  6646. * src/MultiFileAllocationIterator.h
  6647. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6648. Changed method sinature:
  6649. MetalinkEntry::toFileEntry,
  6650. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6651. Metalinker::queryEntry
  6652. * src/Metalink2RequestGroup.cc
  6653. * src/MetalinkEntry.cc
  6654. * src/MetalinkEntry.h
  6655. * src/MetalinkHelper.cc
  6656. * src/MetalinkHelper.h
  6657. * src/Metalinker.cc
  6658. * src/Metalinker.h
  6659. * src/main.cc
  6660. * test/MetalinkHelperTest.cc
  6661. * test/MetalinkerTest.cc
  6662. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Changed method sinature:
  6664. RequestGroup::getURIs
  6665. * src/RequestGroup.cc
  6666. * src/RequestGroup.h
  6667. * test/Metalink2RequestGroupTest.cc
  6668. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6669. Changed method signature:
  6670. PeerListProcessor::extractPeer
  6671. * src/CompactPeerListProcessor.cc
  6672. * src/CompactPeerListProcessor.h
  6673. * src/DefaultBtAnnounce.cc
  6674. * src/DefaultPeerListProcessor.cc
  6675. * src/DefaultPeerListProcessor.h
  6676. * src/DelegatingPeerListProcessor.cc
  6677. * src/DelegatingPeerListProcessor.h
  6678. * src/PeerListProcessor.h
  6679. * src/UTPexExtensionMessage.cc
  6680. * test/DefaultPeerListProcessorTest.cc
  6681. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Changed method signature:
  6683. BtRequestFactory::createRequestMessages,
  6684. BtRequestFactory::createRequestMessagesOnEndGame
  6685. * src/BtRequestFactory.h
  6686. * src/DefaultBtInteractive.cc
  6687. * src/DefaultBtRequestFactory.cc
  6688. * src/DefaultBtRequestFactory.h
  6689. * test/DefaultBtRequestFactoryTest.cc
  6690. * test/MockBtRequestFactory.h
  6691. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. Changed method signature:
  6693. PieceStorage::getInFlightPieces
  6694. * src/DefaultBtProgressInfoFile.cc
  6695. * src/DefaultPieceStorage.cc
  6696. * src/DefaultPieceStorage.h
  6697. * src/PieceStorage.h
  6698. * src/UnknownLengthPieceStorage.cc
  6699. * src/UnknownLengthPieceStorage.h
  6700. * test/DefaultBtProgressInfoFileTest.cc
  6701. * test/MockPieceStorage.h
  6702. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6703. Changed method signature:
  6704. PostDownloadHandler::getNextRequestGroups
  6705. Metalink2RequestGroup::generate
  6706. RequestGroup::postDownloadProcessing
  6707. * src/BtPostDownloadHandler.cc
  6708. * src/BtPostDownloadHandler.h
  6709. * src/Metalink2RequestGroup.cc
  6710. * src/Metalink2RequestGroup.h
  6711. * src/MetalinkPostDownloadHandler.cc
  6712. * src/MetalinkPostDownloadHandler.h
  6713. * src/PostDownloadHandler.h
  6714. * src/RequestGroup.cc
  6715. * src/RequestGroup.h
  6716. * src/RequestGroupMan.cc
  6717. * src/main.cc
  6718. * test/BtPostDownloadHandlerTest.cc
  6719. * test/Metalink2RequestGroupTest.cc
  6720. * test/MetalinkPostDownloadHandlerTest.cc
  6721. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6722. Rewritten AccRequestGroup
  6723. * src/main.cc
  6724. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Rewritten.
  6726. * src/TaggedItem.cc (toTagString)
  6727. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Rewritten Accept-Features handling.
  6729. * src/HttpRequestCommand.cc (createHttpRequest)
  6730. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6731. Rewritten accept types handling.
  6732. * HttpRequest.cc (createRequest)
  6733. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6734. Rewritten
  6735. * src/FeatureConfig.cc (featureSummary)
  6736. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6737. Changed method signature:
  6738. PeerStorage::getActivePeers
  6739. * src/DHTPeerAnnounceEntry.cc
  6740. * src/DefaultPeerStorage.cc
  6741. * src/DefaultPeerStorage.h
  6742. * src/PeerStorage.h
  6743. * test/DefaultPeerStorageTest.cc
  6744. * test/MockPeerStorage.h
  6745. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6746. Changed method signature:
  6747. DHTPeerAnnounceStorage::getPeers,
  6748. DHTPeerAnnounceEntry::getPeers
  6749. * src/DHTGetPeersMessage.cc
  6750. * src/DHTPeerAnnounceEntry.cc
  6751. * src/DHTPeerAnnounceEntry.h
  6752. * src/DHTPeerAnnounceStorage.cc
  6753. * src/DHTPeerAnnounceStorage.h
  6754. * test/DHTAnnouncePeerMessageTest.cc
  6755. * test/DHTPeerAnnounceEntryTest.cc
  6756. * test/DHTPeerAnnounceStorageTest.cc
  6757. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6758. Changed method signature:
  6759. NameResolver::resolve
  6760. * src/DHTEntryPointNameResolveCommand.cc
  6761. * src/InitiateConnectionCommand.cc
  6762. * src/NameResolver.cc
  6763. * src/NameResolver.h
  6764. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6765. Changed method signature:
  6766. PieceStorage::getAdvertisedPieceIndexes
  6767. * src/DefaultBtInteractive.cc
  6768. * src/DefaultPieceStorage.cc
  6769. * src/DefaultPieceStorage.h
  6770. * src/PieceStorage.h
  6771. * src/UnknownLengthPieceStorage.h
  6772. * test/MockPieceStorage.h
  6773. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Changed method signature:
  6775. SegmentMan::getInFlightSegment
  6776. * src/AbstractCommand.cc
  6777. * src/SegmentMan.cc
  6778. * src/SegmentMan.h
  6779. * test/SegmentManTest.cc
  6780. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6781. Changed method signature:
  6782. DHTAbstractNodeLookupTask::getNodesFromMessage
  6783. * src/DHTAbstractNodeLookupTask.cc
  6784. * src/DHTAbstractNodeLookupTask.h
  6785. * src/DHTNodeLookupTask.cc
  6786. * src/DHTNodeLookupTask.h
  6787. * src/DHTPeerLookupTask.cc
  6788. * src/DHTPeerLookupTask.h
  6789. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6790. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6791. * src/AbstractCommand.cc
  6792. * src/BtCheckIntegrityEntry.cc
  6793. * src/BtCheckIntegrityEntry.h
  6794. * src/BtFileAllocationEntry.cc
  6795. * src/BtFileAllocationEntry.h
  6796. * src/BtSetup.cc
  6797. * src/BtSetup.h
  6798. * src/CheckIntegrityCommand.cc
  6799. * src/CheckIntegrityEntry.h
  6800. * src/ChecksumCheckIntegrityEntry.cc
  6801. * src/ChecksumCheckIntegrityEntry.h
  6802. * src/DHTSetup.cc
  6803. * src/DHTSetup.h
  6804. * src/DownloadEngine.cc
  6805. * src/FileAllocationCommand.cc
  6806. * src/FileAllocationEntry.h
  6807. * src/RequestGroup.cc
  6808. * src/RequestGroup.h
  6809. * src/RequestGroupMan.cc
  6810. * src/RequestGroupMan.h
  6811. * src/StreamCheckIntegrityEntry.cc
  6812. * src/StreamCheckIntegrityEntry.h
  6813. * src/StreamFileAllocationEntry.cc
  6814. * src/StreamFileAllocationEntry.h
  6815. * src/TrackerWatcherCommand.cc
  6816. * src/a2functional.h
  6817. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. Changed method signature:
  6819. BNode::findClosestKNodes, BNode:: enumerateBucket,
  6820. DHTBucket::getGoodNodes,
  6821. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  6822. * src/BNode.cc
  6823. * src/BNode.h
  6824. * src/DHTAbstractNodeLookupTask.cc
  6825. * src/DHTAutoSaveCommand.cc
  6826. * src/DHTBucket.cc
  6827. * src/DHTBucket.h
  6828. * src/DHTBucketRefreshTask.cc
  6829. * src/DHTFindNodeMessage.cc
  6830. * src/DHTGetPeersMessage.cc
  6831. * src/DHTRoutingTable.cc
  6832. * src/DHTRoutingTable.h
  6833. * test/BNodeTest.cc
  6834. * test/DHTBucketTest.cc
  6835. * test/DHTRoutingTableTest.cc
  6836. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. In piece selection functions, Pass std::deque<...> by reference rather
  6838. than returning it.
  6839. * src/BitfieldMan.cc
  6840. * src/BitfieldMan.h
  6841. * src/DefaultBtRequestFactory.cc
  6842. * src/DefaultPieceStorage.cc
  6843. * src/Piece.cc
  6844. * src/Piece.h
  6845. * test/BitfieldManTest.cc
  6846. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6847. Implemented rarest piece first piece selection strategy.
  6848. * src/AbstractBtMessage.cc
  6849. * src/AbstractBtMessage.h
  6850. * src/BitfieldMan.cc
  6851. * src/BitfieldMan.h
  6852. * src/BtBitfieldMessage.cc
  6853. * src/BtHaveAllMessage.cc
  6854. * src/BtHaveMessage.cc
  6855. * src/DefaultPieceStorage.cc
  6856. * src/DefaultPieceStorage.h
  6857. * src/PeerInteractionCommand.cc
  6858. * src/PieceStorage.h
  6859. * src/UnknownLengthPieceStorage.h
  6860. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6861. Rewritten readData and writeData.
  6862. * src/MultiDiskAdaptor.cc
  6863. * src/MultiDiskAdaptor.h
  6864. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Move \n out of the message "Usage: ...".
  6866. * src/version_usage.cc
  6867. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. Bump up version number to 0.13.2b.
  6869. * configure.ac
  6870. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6871. Added const qualifier to argument Exception& e.
  6872. * src/Logger.h
  6873. * src/SimpleLogger.cc
  6874. * src/SimpleLogger.h
  6875. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Pool connection when CWD, SIZE command fails.
  6877. * src/FtpNegotiationCommand.cc
  6878. * src/FtpNegotiationCommand.h
  6879. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  6881. * src/HttpResponseCommand.cc
  6882. * src/HttpSkipResponseCommand.cc
  6883. * src/HttpSkipResponseCommand.h
  6884. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Pool connection when a server returns 4xx, 5xx responses.
  6886. * src/HttpNullDownloadCommand.cc
  6887. * src/HttpNullDownloadCommand.h
  6888. * src/HttpResponse.cc
  6889. * src/HttpResponse.h
  6890. * src/HttpResponseCommand.cc
  6891. * src/HttpResponseCommand.h
  6892. * test/HttpResponseTest.cc
  6893. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Print usage when no URL is specifed or bad command-line option is
  6895. specified.
  6896. * src/HelpItemFactory.cc
  6897. * src/help_tags.h
  6898. * src/option_processing.cc
  6899. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6900. Removed duplicate log message.
  6901. * src/AbstractCommand.cc (asyncResolveHostname)
  6902. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6903. Updated man page: --async-dns and --ftp-reuse-connection were added.
  6904. Changed -j option's default value from 5 to 1.
  6905. Added new examples using protocol auto detection feature.
  6906. Removed -T, -M usage where it can be omitted.
  6907. * doc/aria2c.1.txt
  6908. * doc/aria2c.1.html
  6909. * doc/aria2c.1.txt
  6910. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Updated command-line usage text, so that it tells users that they
  6912. can specify any number of torrent files and metalink files in
  6913. command-line.
  6914. * src/version_usage.cc
  6915. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Changed the default value of -j option to 1.
  6917. * src/HelpItemFactory.cc
  6918. * src/option_processing.cc
  6919. * src/usage_text.h
  6920. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6921. Added the ability to reuse connection in FTP and it is enabled by
  6922. default. It can be disabled by --ftp-reuse-connection=false option.
  6923. * src/Command.cc
  6924. * src/DownloadCommand.cc
  6925. * src/FtpDownloadCommand.cc
  6926. * src/FtpDownloadCommand.h
  6927. * src/FtpFinishDownloadCommand.cc
  6928. * src/FtpFinishDownloadCommand.h
  6929. * src/FtpInitiateConnectionCommand.cc
  6930. * src/FtpNegotiationCommand.cc
  6931. * src/FtpNegotiationCommand.h
  6932. * src/HelpItemFactory.cc
  6933. * src/Makefile.am
  6934. * src/Makefile.in
  6935. * src/OptionHandlerFactory.cc
  6936. * src/option_processing.cc
  6937. * src/prefs.h
  6938. * src/usage_text.h
  6939. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Call Command::transitStatus() before calling Command::execute(),
  6941. so that the status change made in execute() is not cleared.
  6942. * src/DownloadEngine.cc
  6943. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Removed forward declaration of SocketCore class.
  6945. * src/HttpDownloadCommand.h
  6946. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  6948. in InitiateConnectionCommandFactory. They should be set only when
  6949. the protocol is HTTP or HTTPS.
  6950. * src/InitiateConnectionCommandFactory.cc
  6951. * src/RequestGroup.cc
  6952. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Fixed infinite loop in checksum checking.
  6954. * src/IteratableChecksumValidator.cc
  6955. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Set _supportsPersistentConnection to true by default.
  6957. * src/Request.cc
  6958. * src/RequestGroup.cc
  6959. * test/HttpRequestTest.cc
  6960. * test/RequestTest.cc
  6961. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6962. Added timeout to socket pool. The default timeout is 15 seconds,
  6963. which is the same value Apache uses.
  6964. * src/DownloadEngine.cc
  6965. * src/DownloadEngine.h
  6966. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6967. Fixed misuse of multimap::find()
  6968. * src/HttpHeader.cc
  6969. * test/HttpHeaderTest.cc
  6970. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  6972. option.
  6973. The asynchronous DNS is not capable of IPv6 yet.
  6974. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  6975. least for HTTP download.
  6976. * src/AbstractCommand.cc
  6977. * src/AbstractCommand.h
  6978. * src/AsyncNameResolver.cc
  6979. * src/AsyncNameResolver.h
  6980. * src/DHTEntryPointNameResolveCommand.cc
  6981. * src/DHTEntryPointNameResolveCommand.h
  6982. * src/DownloadEngine.cc
  6983. * src/DownloadEngine.h
  6984. * src/FtpInitiateConnectionCommand.cc
  6985. * src/FtpInitiateConnectionCommand.h
  6986. * src/HelpItemFactory.cc
  6987. * src/HttpInitiateConnectionCommand.cc
  6988. * src/HttpInitiateConnectionCommand.h
  6989. * src/InitiateConnectionCommand.cc
  6990. * src/InitiateConnectionCommand.h
  6991. * src/Makefile.am
  6992. * src/Makefile.in
  6993. * src/NameResolver.cc
  6994. * src/NameResolver.h
  6995. * src/OptionHandlerFactory.cc
  6996. * src/SocketCore.cc
  6997. * src/SocketCore.h
  6998. * src/Util.cc
  6999. * src/Util.h
  7000. * src/option_processing.cc
  7001. * src/prefs.h
  7002. * src/usage_text.h
  7003. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Updated man page: --quiet, --header were added.
  7005. --metalink-servers and --enable-http-keep-alive option were updated.
  7006. * doc/aria2c.1
  7007. * doc/aria2c.1.html
  7008. * doc/aria2c.1.txt
  7009. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Enable HTTP keep-alive by default.
  7011. * src/HelpItemFactory.cc
  7012. * src/option_processing.cc
  7013. * src/usage_text.h
  7014. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7015. Disable http keep-alive if the remote server is not HTTP/1.1.
  7016. * src/HttpConnection.cc
  7017. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Receive content body of 302 response so that the connection can be
  7019. reused later when http keep-alive is enabled.
  7020. * src/HttpNullDownloadCommand.cc
  7021. * src/HttpNullDownloadCommand.h
  7022. * src/HttpResponseCommand.cc
  7023. * src/HttpResponseCommand.h
  7024. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. const SharedHandle<Request> -> const SharedHandle<Request>&
  7026. * src/FtpDowndloadCommand.cc
  7027. * src/FtpDowndloadCommand.h
  7028. * src/HttpDownloadCommand.cc
  7029. * src/HttpDownloadCommand.h
  7030. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Fixed the bug that the control file(.aria2 file) is not renamed
  7032. according to tryAutoFileRenaming().
  7033. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7034. its control file exist, use them and continue download.
  7035. The old implementation didn't take into account of control file's
  7036. existence, so basically you couldn't continue download of renamed file.
  7037. * src/BtProgressInfoFile.h
  7038. * src/DefaultBtProgressInfoFile.cc
  7039. * src/DefaultBtProgressInfoFile.h
  7040. * src/NullProgressInfoFile.h
  7041. * src/RequestGroup.cc
  7042. * test/DefaultBtProgressInfoFileTest.cc
  7043. * test/MockBtProgressInfoFile.h
  7044. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7045. Change the default value of --metalink-servers option from `5' to `1'.
  7046. * src/HelpItemFactory.cc
  7047. * src/option_processing.cc
  7048. * src/usage_text.h
  7049. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. Reimplemented transparent metalink using Accept request header.
  7051. * src/HttpRequest.cc
  7052. * src/HttpRequest.h
  7053. * src/HttpRequestCommand.cc
  7054. * src/Metalink2RequestGroup.cc
  7055. * src/RequestGroup.cc
  7056. * src/RequestGroup.h
  7057. * test/HttpRequestTest.cc
  7058. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Bump up version number to 0.13.2a
  7060. * configure.ac
  7061. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. Updated configure.ac using the result of autoscan.
  7063. * configure.ac
  7064. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7065. Fixed compilation error without gcrypt/openssl.
  7066. * src/DownloadCommand.cc
  7067. * src/DownloadCommand.h
  7068. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7069. Reorganized version information so that it can be displayed in a
  7070. standard terminal screen without scrolling.
  7071. Removed http, ftp from Configuration section, because they are always
  7072. enabled.
  7073. * src/FeatureConfig.cc
  7074. * src/FeatureConfig.h
  7075. * src/main.cc
  7076. * src/messageDigest.cc
  7077. * src/messageDigest.h
  7078. * src/version_usage.cc
  7079. * test/FeatureConfigTest.cc
  7080. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7081. Masked user ID in log.
  7082. * src/FtpConnection.cc (sendUser)
  7083. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. Removed query part from filename in HTTP download. The query part means
  7085. the substring after "?" in URL. Firefox seems do the same thing.
  7086. A query part is sometimes very long and not suitable to filename,
  7087. so I think it is better to remove it from filename.
  7088. * src/HttpRequest.cc
  7089. * src/HttpRequest.h
  7090. * src/Request.cc
  7091. * src/Request.h
  7092. * test/HttpRequestTest.cc
  7093. * test/RequestTest.cc
  7094. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7095. Rewritten Exception class. Throw exception object, not its pointer and
  7096. catch by reference, so that remove problematic delete operator for
  7097. catched exception.
  7098. * src/Exception.cc
  7099. * src/Exception.h
  7100. * test/ExceptionTest.cc
  7101. * src/*: All files throwing/catching exception.
  7102. * test/*: All files throwing/catching exception.
  7103. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7104. Now auto protocol detection is enabled without -Z option.
  7105. But there is a important difference between with/without -Z optoin.
  7106. For example, if you type:
  7107. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7108. then, aria2 interprets there are 3 request groups:
  7109. (1) http://host/file, http://mirror/file <-- multi-source download
  7110. (2) file1.torrent
  7111. (3) file2.metalink
  7112. On the other hand, if you invoke above command with -Z option, it is
  7113. interpreted as 4 request groups:
  7114. (1) http://host/file
  7115. (2) file1.torrent
  7116. (3) file2.metalink
  7117. (4) http://mirror/file
  7118. I think usually user don't mix multi-source URLs and torrent files, so
  7119. there is no big problem here.
  7120. * src/main.cc
  7121. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Fixed the bug that causes segmentaion fault when reading XML containing
  7123. unescapsed character like '&'.
  7124. Also a modification was made which avoids adding unnecessary
  7125. characters stack and appending unused string.
  7126. * src/ExpatMetalinkProcessor.cc
  7127. * src/FileMetalinkParserState.h
  7128. * src/FilesMetalinkParserState.h
  7129. * src/FinMetalinkParserState.h
  7130. * src/HashMetalinkParserState.h
  7131. * src/InitialMetalinkParserState.h
  7132. * src/LanguageMetalinkParserState.h
  7133. * src/MetalinkMetalinkParserState.h
  7134. * src/MetalinkParserState.h
  7135. * src/MetalinkParserStateMachine.cc
  7136. * src/MetalinkParserStateMachine.h
  7137. * src/OSMetalinkParserState.h
  7138. * src/PieceHashMetalinkParserState.h
  7139. * src/PiecesMetalinkParserState.h
  7140. * src/ResourcesMetalinkParserState.h
  7141. * src/SizeMetalinkParserState.h
  7142. * src/SkipTagMetalinkParserState.h
  7143. * src/URLMetalinkParserState.h
  7144. * src/VerificationMetalinkParserState.h
  7145. * src/VersionMetalinkParserState.h
  7146. * src/XML2SAXMetalinkProcessor.cc
  7147. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Added StringFormat class, which internally calls vasprintf.
  7149. operator<< is defined for this class, so it can be used with iostream
  7150. classes nicely. SimpleLogger and following functions are rewritten
  7151. using StringFormat class.
  7152. Besides, now Logger class's methods are non-const, many classes
  7153. that has a const Logger* as a member variable are modified to remove
  7154. const qualifier from the variable declaration.
  7155. * src/HelpItemFactory.cc
  7156. * src/Request.cc
  7157. * src/SimpleLogger.cc
  7158. * src/StringFormat.cc
  7159. * src/StringFormat.h
  7160. * src/Util.cc
  7161. * src/option_processing.cc
  7162. * src/version_usage.cc
  7163. * test/StringFormatTest.cc
  7164. * src/*.h: The classes that has const Logger* as a member variable.
  7165. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7166. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7167. failed. Also fixed memory link when exception is thrown there.
  7168. * src/main.cc (AccRequestGroup)
  7169. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. Added build-in "Accept-Features" support. For now only "metalink" is
  7171. used in this header field.
  7172. This "metalink" value is removed from the list when connecting URLs
  7173. fed by metalink file to avoid loop in "transparent" metlaink.
  7174. * src/HttpRequest.cc
  7175. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7176. header is also held in this variable. Also renamed setUserHeaders as
  7177. addHeader and it was rewritten to add header not just to clear the old
  7178. value.
  7179. * src/HttpRequestCommand.cc
  7180. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7181. from "Accept-Features" list.
  7182. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7183. default.
  7184. * src/RequestGroup.h
  7185. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7186. * src/a2functional.h: Included <string> because Concat class depends on
  7187. it.
  7188. * test/HttpRequestTest.cc
  7189. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Added comment
  7191. * src/RequestGroup.cc (createNextCommand)
  7192. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Capitalized METHOD_GET and METHOD_HEAD
  7194. * src/Request.cc
  7195. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7196. Added getDownloadResults() method
  7197. * src/RequestGroupMan.cc
  7198. * src/RequestGroupMan.h
  7199. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7200. Fixed the bug that aria2 exits when commands is empty() but
  7201. _routineCommands are not.
  7202. * src/DownloadEngine.cc
  7203. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Use the default value pulled from Option object in HelpItemFactory.
  7205. except options whose defualt value is embedded in a usage text.
  7206. * src/HelpItemFactory.cc
  7207. * src/HelpItemFactory.h
  7208. * src/option_processing.cc
  7209. * src/version_usage.cc
  7210. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7211. Added --quiet option to make aria2 quiet (no console output).
  7212. --quiet option is tagged with ADVANCED.
  7213. * src/HelpItemFactory.cc
  7214. * src/LogFactory.cc
  7215. * src/LogFactory.h
  7216. * src/MultiUrlRequestInfo.cc
  7217. * src/MultiUrlRequestInfo.h
  7218. * src/NullStatCalc.h: New class. This class prints nothing.
  7219. * src/OptionHandlerFactory.cc
  7220. * src/main.cc
  7221. * src/option_processing.cc
  7222. * src/prefs.h
  7223. * src/usage_text.h
  7224. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7225. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7226. * src/HelpItemFactory.cc (createHelpItems):
  7227. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Fixed compilation error in ExpatMetalinkProcessor.cc
  7229. * src/ExpatMetalinkProcessor.cc
  7230. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Reuse socket if the origin server supports HTTP keep-alive and
  7232. --enable-http-keep-alive or --enable-http-pipelining is given.
  7233. The current implementation doesn't reuse the connections established
  7234. against proxy server.
  7235. * src/AbstractCommand.cc
  7236. * src/DownloadEngine.cc
  7237. * src/DownloadEngine.h
  7238. * src/HttpDownloadCommand.cc
  7239. * src/HttpInitiateConnectionCommand.cc
  7240. * src/HttpResponseCommand.cc
  7241. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. Rewritten HTTP keep-alive and pipelining routine.
  7243. * src/AbstractCommand.cc
  7244. * src/HttpConnection.cc
  7245. * src/HttpDownloadCommand.cc
  7246. * src/HttpRequest.cc
  7247. * src/HttpRequestCommand.cc
  7248. * src/HttpResponseCommand.cc
  7249. * src/Request.cc
  7250. * src/Request.h
  7251. * src/RequestGroup.cc
  7252. * test/HttpRequestTest.cc
  7253. * test/HttpResponseTest.cc
  7254. * test/RequestTest.cc
  7255. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7256. Added missing setUserHeaders call
  7257. * src/HttpRequestCommand.cc
  7258. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7260. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7261. waste of time because it is more likey false.
  7262. * src/FileAllocationDispatcherCommand.cc (execute)
  7263. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Now HTTP status and version are a member variable of HttpHeader.
  7265. HTTP status is processed as a string, not integer.
  7266. * src/AbstractProxyResponseCommand.cc
  7267. * src/HttpConnection.cc
  7268. * src/HttpHeader.cc
  7269. * src/HttpHeader.h
  7270. * src/HttpHeaderProcessor.cc
  7271. * src/HttpHeaderProcessor.h
  7272. * src/HttpResponse.cc
  7273. * src/HttpResponse.h
  7274. * test/HttpHeaderProcessorTest.cc
  7275. * test/HttpResponseTest.cc
  7276. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7277. Added --header option. You can specify any number of additional HTTP headers
  7278. like:
  7279. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7280. Unlike other commad-line option, you can use --header option multiple times.
  7281. * src/HelpItemFactory.cc
  7282. * src/HttpRequest.{cc, h}
  7283. * src/HttpRequestCommand.cc
  7284. * src/OptionHandlerFactory.cc
  7285. * src/OptionHandlerImpl.h
  7286. * src/option_processing.cc
  7287. * src/prefs.h
  7288. * src/usage_text.h
  7289. * test/HttpRequestTest.cc (testUserHeaders)
  7290. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Eliminates the time lag between sequential downloads and commands in
  7292. the same RequestGroup.
  7293. In old implementation, aria2 occasionally waits 1 seconds before
  7294. executing next command or RequestGroup.
  7295. This is really a waste of time, and new implementation eliminates
  7296. this unnecessary time lag.
  7297. * src/AbstractCommand.cc
  7298. * src/AutoSaveCommand.cc
  7299. * src/CheckIntegrityCommand.cc
  7300. * src/Command.{cc, h}
  7301. * src/DownloadEngine.{cc, h}
  7302. * src/DownloadEngineFactory.cc
  7303. * src/FileAllocationCommand.cc
  7304. * src/FileAllocationDispatcherCommand.cc
  7305. * src/FillRequestGroupCommand.cc
  7306. * src/FtpInitiateConnectionCommand.cc
  7307. * src/HaveEraseCommand.cc
  7308. * src/HttpInitiateConnectionCommand.cc
  7309. * src/HttpResponseCommand.cc
  7310. * src/RealtimeCommand.cc
  7311. * src/RequestGroup.cc
  7312. * src/RequestGroupMan.cc
  7313. * src/StreamFileAllocationEntry.cc
  7314. * src/TimeBasedCommand.{cc, h}
  7315. * src/TimedHaltCommand.cc
  7316. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7317. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7318. keyword explicit and SharedHandle's default constructor initializes
  7319. its internal obj to null, old implementation initializes it using
  7320. obj's default constructor.
  7321. To assign null, write SharedHandle<T> x(...); x.reset();
  7322. TODO: test/SharedHandleTest.cc needs more tests.
  7323. * src/SharedHandle.h
  7324. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7325. Fixed type in man page.
  7326. * doc/aria2c.1.txt
  7327. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7328. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7329. * src/SimpleLogger.{cc, h}
  7330. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7331. Implemented auto protocol detection.
  7332. Now you can do:
  7333. aria2c -Z http://host/file file1.torrent file2.metalink
  7334. (Note: -Z option is required for auto protcol detection.)
  7335. Then aria2c downloads 3 files simultaneously:
  7336. 1. http://host/file
  7337. 2. file1.torrent <-- read local torrent file
  7338. 3. file2.metalink <-- read local Metalink file.
  7339. Same thing goes with -i option. Assume your uris.txt contans:
  7340. http://host/file
  7341. file1.torrent
  7342. file2.metalink
  7343. Then you can do: aria2c -i uris.txt
  7344. (Note: -Z option is not needed if -i option is given.)
  7345. * src/main.cc
  7346. * src/ProtocolDetector.{cc, h}
  7347. * test/ProtocolDetectorTest.cc
  7348. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7350. installed
  7351. * src/ARC4Encryptor.h
  7352. * src/ARC4Decryptor.h
  7353. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Renamed argument from 'errno' to 'err', since errno is confused with
  7355. errno defined in errno.h.
  7356. * src/LibgcryptARC4Decryptor.h
  7357. * src/LibgcryptARC4Context.h
  7358. * src/LibgcryptDHKeyExchange.h
  7359. * src/LibgcryptARC4Encryptor.h
  7360. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7361. Rewritten choking algorithm.
  7362. * src/PeerChokeCommand.{cc, h}
  7363. * src/BtInterestedMessage.cc
  7364. * src/PeerSessionResource.{cc, h}
  7365. * src/DefaultPeerStorage.{cc, h}
  7366. * src/BtNotInterestedMessage.cc
  7367. * src/DefaultBtMessageDispatcher.{cc, h}
  7368. * src/BtMessageDispatcher.h
  7369. * src/Peer.{cc, h}
  7370. * src/BtLeecherStateChoke.{cc, h}
  7371. * src/BtSetup.cc
  7372. * src/BtSeederStateChoke.{cc, h}
  7373. * src/PeerStorage.h
  7374. * test/MockPeerStorage.h
  7375. * test/MockBtMessageDispatcher.h
  7376. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7377. Fixed compilation error on x84-64 platform.
  7378. * src/AuthConfig.cc: Included ostream.
  7379. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7380. Rewritten getBasename() and getDirname(), without standard library
  7381. basename(), dirname().
  7382. * src/File.cc
  7383. * test/FileTest.cc
  7384. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Added Simplified Chinese translation. Also updated the following
  7386. translations: Polish, Dutch, German. Great thanks to all translators.
  7387. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. Suppress content-range error when 'Content-Range' response header
  7389. doesn't contains bytes-unit specifier 'bytes'
  7390. * src/HttpHeader.cc (getRange)
  7391. * test/HttpHeaderTest.cc
  7392. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Fixed compilation error with g++-4.3
  7394. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7395. Added missing include files for MinGW
  7396. * test/HttpHeaderProcessorTest.cc
  7397. * test/DHTRoutingTableSerializerTest.cc
  7398. * test/DHTRoutingTableDeserializerTest.cc
  7399. * test/UriListParserTest.cc
  7400. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7401. Now download line is printed nicely with no garbage at the end of
  7402. line. I use ioctl to get the columns of terminal.
  7403. If stdout is redirected to another device, instead of carriage return,
  7404. end of line '\n' character is used. This is feature request#1909659
  7405. * src/ConsoleStatCalc.cc (calculateStat)
  7406. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. Included a2time.h
  7408. * src/DHTMessageDispatcher.h
  7409. * src/DHTMessageEntry.h
  7410. * src/DHTReplaceNodeTask.h
  7411. * src/DHTMessageTracker.h
  7412. * src/Util.h
  7413. * src/CookieBox.h
  7414. * src/SocketCore.h
  7415. * src/DefaultBtMessageDispatcher.h
  7416. * src/SocketCore.cc
  7417. * src/Util.cc
  7418. * src/DHTPingTask.h
  7419. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7420. Fixed high memory footprint when DHT is enabled.
  7421. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  7422. queued than it is processed and the queue is getting longer. As a
  7423. consequence, momory usage is increased.
  7424. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  7425. replacement cache in DHTBucket which is described in Kademlia paper.
  7426. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  7427. DHTReplaceNodeTask.
  7428. * src/DHTBucket.{h, cc}
  7429. (cacheNode): New function.
  7430. (getCachedNodes): New function.
  7431. (dropNode): Push back cached node to _nodes.
  7432. * test/DHTBucketTest.cc
  7433. (testCacheNode): New test
  7434. (testDropNode): New test
  7435. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7436. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  7437. the unused 4KB memory when ssl is not used.
  7438. * src/SocketCore.cc
  7439. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7440. Added summary log for peer announce storage.
  7441. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  7442. Removed cast
  7443. * src/DefaultPeerStorage.cc (addPeer)
  7444. Log exception message
  7445. * src/DHTMessageTracker.cc (handleTimeout)
  7446. Fixed casting
  7447. * test/HttpRequestTest.cc
  7448. * test/MetalinkProcessorTest.cc
  7449. * test/PieceTest.cc
  7450. * test/MetalinkEntryTest.cc
  7451. * test/SequenceTest.cc
  7452. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. * src/ParameterizedStringParser.cc (createLoop):
  7454. Removed unused variable sstep.
  7455. * src/AlphaNumberDecorator.h (decode): Rewritten.
  7456. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7457. * src/Util.{h, cc}
  7458. (parseUInt): New function.
  7459. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  7460. The actual range is uint32_t.
  7461. * test/UtilTest.cc
  7462. * src/ParameterizedStringParser.cc:
  7463. Use Util::parseUInt() for loop variables.
  7464. * test/ParameterizedStringParserTest.cc
  7465. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7466. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Rewritten the functions for binding port.
  7468. * src/DHTConnectionImpl.{h, cc}
  7469. * src/PeerListenCommand.{h, cc}
  7470. * src/DHTSetup.cc
  7471. * src/BtSetup.cc
  7472. * test/DHTConnectionImplTest.cc
  7473. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. type cleanup for allmost all remaining files.
  7475. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. Type clarification
  7477. * src/PeerSessionResource.{h, cc}
  7478. * src/DefaultPieceStorage.{h, cc}
  7479. * src/Peer.{h, cc}
  7480. * test/PeerSessionResourceTest.cc
  7481. Use div function
  7482. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7483. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7484. Type clarification
  7485. * src/DefaultPeerStorage.{h, cc}
  7486. * test/DefaultPeerStorageTest.cc
  7487. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Type clarification: size_t for length or size, uint64_t for file
  7489. length, off_t for file offset.
  7490. * src/DefaultBtProgressInfoFile.cc
  7491. * src/DefaultBtContext.{h, cc}
  7492. * src/DefaultBtInteractive.cc
  7493. * src/DownloadCommand.{h, cc}
  7494. * src/IteratableChunkChecksumValidator.{h, cc}
  7495. * src/SegmentMan.{h, cc}
  7496. * src/SingleFileDownloadContext.{h, cc}
  7497. * src/IteratableChecksumValidator.{h, cc}
  7498. * src/BtContext.h
  7499. * src/IteratableValidator.h
  7500. * src/DownloadContext.h
  7501. * test/SingleFileDownloadContextTest.cc
  7502. * test/DefaultBtContextTest.cc
  7503. * test/MockBtContext.h
  7504. * test/Metalink2RequestGroupTest.cc
  7505. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Type clarification: size_t for length or size, uint64_t for file
  7507. length, off_t for file offset.
  7508. * src/PiecedSegment.cc
  7509. * src/GrowSegment.h
  7510. * src/DefaultBtRequestFactory.h
  7511. * src/DefaultBtProgressInfoFile.cc
  7512. * src/UnknownLengthPieceStorage.h
  7513. * src/DefaultPieceStorage.cc
  7514. * src/UnknownLengthPieceStorage.cc
  7515. * src/DefaultBtInteractive.cc
  7516. * src/GrowSegment.cc
  7517. * src/BitfieldMan.h
  7518. * src/DownloadCommand.cc
  7519. * src/BtRequestFactory.h
  7520. * src/PiecedSegment.h
  7521. * src/DefaultPieceStorage.h
  7522. * src/Piece.cc
  7523. * src/DefaultBtRequestFactory.cc
  7524. * src/PieceStorage.h
  7525. * src/Segment.h
  7526. * src/Piece.h
  7527. * src/BitfieldMan.cc
  7528. * src/Util.cc
  7529. * test/DefaultBtProgressInfoFileTest.cc
  7530. * test/DefaultPieceStorageTest.cc
  7531. * test/MockPieceStorage.h
  7532. * test/BtRequestMessageTest.cc
  7533. * test/DefaultBtMessageDispatcherTest.cc
  7534. * test/BitfieldManTest.cc
  7535. * test/GrowSegmentTest.cc
  7536. * test/PieceTest.cc
  7537. * test/SegmentTest.cc
  7538. * test/SegmentManTest.cc
  7539. * test/DefaultBtRequestFactoryTest.cc
  7540. * test/MockBtRequestFactory.h
  7541. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Fixed compilation error with --disable-nls
  7543. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7544. in gettext.h causes the problem.
  7545. * src/common.h
  7546. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Removed subPiece related functions.
  7548. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7549. * src/DefaultPieceStorage.{h, cc}
  7550. * test/PieceTest.cc
  7551. * test/DefaultPieceStorageTest.cc
  7552. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7553. Use unsigned char for data store.
  7554. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. Bump up version number to 0.13.0+1
  7556. * configure.ac
  7557. * Release 0.13.0+1
  7558. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7559. Changed inactive connection timeout to 120.
  7560. To accept more mulually interested peers, disconnect peer when there
  7561. is no interest between us after certain time passed.
  7562. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7563. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7564. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7565. when compiled with async DNS support.
  7566. * src/DownloadEngine.cc
  7567. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7568. value '10' will be a little bit short when some DNS servers are
  7569. offline and several DNS servers are tried. It should be configured
  7570. by command-line option.
  7571. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Merged Ross's mingw patch.
  7573. * src/DHTRoutingTableDeserializer.cc
  7574. * src/DHTRoutingTableSerializer.cc
  7575. * src/Platform.{h, cc}
  7576. * src/timegm.h
  7577. * src/gettimeofday.h
  7578. * src/getaddrinfo.h
  7579. * src/SocketCore.h
  7580. * src/common.h
  7581. * src/inet_aton.h
  7582. * src/DownloadEngine.h
  7583. * src/gai_strerror.h
  7584. * src/a2netcompat.h
  7585. * configure.ac
  7586. * configure
  7587. * aclocal.m4
  7588. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. Included missing iostream.
  7590. * test/AllTest.cc
  7591. * test/BtDependencyTest.cc
  7592. * test/BtExtendedMessageTest.cc
  7593. * test/DHTConnectionImplTest.cc
  7594. * test/DHTMessageFactoryImplTest.cc
  7595. * test/DHTMessageTrackerEntryTest.cc
  7596. * test/DHTNodeTest.cc
  7597. * test/DHTRoutingTableSerializerTest.cc
  7598. * test/DefaultBtAnnounceTest.cc
  7599. * test/DefaultBtContextTest.cc
  7600. * test/DefaultBtMessageFactoryTest.cc
  7601. * test/DefaultExtensionMessageFactoryTest.cc
  7602. * test/HandshakeExtensionMessageTest.cc
  7603. * test/HttpResponseTest.cc
  7604. * test/MetalinkProcessorTest.cc
  7605. * test/MultiFileAllocationIteratorTest.cc
  7606. * test/SocketCoreTest.cc
  7607. * test/UTPexExtensionMessageTest.cc
  7608. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. Reorganized includes.
  7610. * src/NameResolver.cc
  7611. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Fixed compilation error without ares/c-ares
  7613. * src/NameResolver.h:
  7614. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Added a test for large file.
  7616. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7617. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Fixed the bug that file size is ignored if size > INT32_MAX
  7619. * src/SizeMetalinkParserState.cc (endElement):
  7620. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Bump up version number to 0.13.0
  7622. * configure.ac
  7623. * Release 0.13.0
  7624. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Updated Makfefile.am to make 'make dist' work.
  7626. Now packaged filename is aria2c-VERSION.tar.bz2.
  7627. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7628. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7629. Large file support is now configured by configure script.
  7630. * configure.ac
  7631. Removed unsused source files
  7632. * src/
  7633. * test/
  7634. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7635. Peer.h and BtContext.h respectively.
  7636. * src/Peer.h
  7637. * src/BtContext.h
  7638. Updated translations.
  7639. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7640. translations. Great thanks to all translators!;)
  7641. * po/*.{po, gmo}
  7642. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7644. statically declared sha1 MessageDigestContext.
  7645. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7646. initialization of short-lived MessageDigestContext.
  7647. * src/MessageDigestHelper.{h, cc}
  7648. * src/main.cc
  7649. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7650. the initialization of MessageDigestContext every time in validating
  7651. chunk checksum.
  7652. * src/DownloadCommand.{h, cc}
  7653. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. Add a file descriptor which connected to fast peer(latency<1500) to
  7655. select(). This change reduced CPU load.
  7656. * src/PeerInteractionCommand.cc
  7657. * src/DefaultBtInteractive.{h, cc}
  7658. * src/BtInteractive.h
  7659. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Fixed the previous insufficient fix for possible busy loop.
  7661. * src/MSEHandshake.cc (identifyHandshakeType)
  7662. Removed unused functions.
  7663. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7664. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7665. Fixed possible busy loop if first 20 bytes are not received for a few
  7666. minutes.
  7667. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7668. * src/ReceiverMSEHandshakeCommand.cc
  7669. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Fixed compilation error
  7671. * src/ExpatMetalinkProcessor.cc
  7672. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7673. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7674. * src/DHTBucket.cc
  7675. Removed unnecessary cast.
  7676. * src/HandshakeExtensionMessage.cc
  7677. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7679. is missing.
  7680. * src/OptionHandlerFactory.cc
  7681. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Fixed the bug that HAVE message is not sent for a piece they are
  7683. downloaded fom http/ftp server before any BitTorrent handshake is done
  7684. with peers.
  7685. * src/DefaultBtInteractive.cc
  7686. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7687. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7688. * src/Makefile.am
  7689. * src/Makefile.in
  7690. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. Updated README. Added html version of README and man page.
  7692. * README
  7693. * README.html
  7694. * readme2html: Shell script to generate README.html from README using
  7695. asciidoc.
  7696. * doc/aria2c.1.html
  7697. * doc/makeman: Added the line to generate aria2c.1.html
  7698. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7699. Fixed offset calculation.
  7700. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7701. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Rewritten itos and uitos using template. llitos and ullitos are
  7703. replaced with itos and uitos respectively.
  7704. * src/Util.{h, cc}
  7705. * test/UtilTest.cc
  7706. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7707. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7708. of the number of bytes required for storing public key and shared
  7709. secret.
  7710. * src/LibgcryptDHKeyExchange.h
  7711. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7712. * src/MSEHandshake.cc
  7713. * test/DHKeyExchangeTest.cc
  7714. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7715. Removed since they are not used.
  7716. * src/Xml2MetalinkProcessor.{h, cc}
  7717. * src/Socket.cc
  7718. * src/SegmentSplitter.{h, cc}
  7719. * test/Xml2MetalinkProcessorTest.cc
  7720. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Fixed the bug that prevents aria2 from stopping other than by pressing
  7722. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7723. option. aria2 doesn't stop even after --seed-time is satisfied and
  7724. continues to output blank lines in the console.
  7725. * src/ReceiverMSEHandshakeCommand.cc
  7726. * src/PeerReceiveHandshakeCommand.cc
  7727. * src/PeerListenCommand.cc
  7728. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7729. Bump up version number to 0.13.0rc
  7730. * configure.ac
  7731. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7732. Updated man page and some usage text.
  7733. * doc/aria2c.1.txt
  7734. * src/usage_text.h
  7735. * po/*.{po, gmo}
  7736. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Updated translations. Added Finnish and Hebrew translations.
  7738. Great thanks to all translators!
  7739. * po/*.{po, gmo}
  7740. * po/LINGUAS
  7741. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7742. Log more detailed information about each message.
  7743. * src/DHTQueryMessage.{h, cc}
  7744. * src/DHTGetPeersMessage.{h, cc}
  7745. * src/DHTFindNodeReplyMessage.{h, cc}
  7746. * src/DHTGetPeersReplyMessage.{h, cc}
  7747. * src/DHTAnnouncePeerMessage.{h, cc}
  7748. * src/DHTResponseMessage.{h, cc}
  7749. * src/DHTFindNodeMessage.{h, cc}
  7750. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7751. Use constants defined in prefs.h
  7752. * src/option_processing.cc
  7753. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7754. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7755. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7756. Make room for future enchancements for IPv6 addresses.
  7757. Bump up version number of dht.dat file format to 2.
  7758. Not compatible with previous version.
  7759. * src/DHTRoutingTableSerializer.cc
  7760. * src/DHTRoutingTableDeserializer.cc
  7761. * test/DHTRoutingTableSerializerTest.cc
  7762. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Added handling for the return values from
  7764. PeerMessageUtil::createcompact().
  7765. * src/DefaultBtContext.cc (computeFastSet):
  7766. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Fixed abort when peer's ip address is IPv4-mapped address.
  7768. * src/DefaultBtContext.cc (computeFastSet)
  7769. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7770. cannot handle IPv4-mapped addresses.
  7771. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7772. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Proper return value handling for OpenSSL functions.
  7774. * src/LibsslDHKeyExchange.h
  7775. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Random bytes generation using libgcrypt and OpenSSL.
  7777. * src/DHTUtil.{h, cc}
  7778. * test/DHTUtilTest.cc
  7779. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7780. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7781. received.
  7782. * src/DHTMessageReceiver.cc (receiveMessage)
  7783. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. Fixed the bug that a return code is always 0. BUG#1897704
  7785. If error occurred during the download or there exist unfinished
  7786. downloads, aria2 returns with code 1.
  7787. * src/RequestGroupMan.{h, cc}
  7788. * src/MultiUrlRequestInfo.{h, cc}
  7789. * src/main.cc
  7790. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. IPv6 support for SocketCore class.
  7792. TODO: In SocketCore::establishConnection(), this is insufficient to
  7793. determin the failure of connect() here because the socket is
  7794. non-blocking state. The next addresses should be tried after select().
  7795. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7796. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7797. instead which address family independent.
  7798. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7799. information in a compact peer format which is for IPv4 only.
  7800. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7801. this is a spec of BitTorrent protocol.
  7802. * src/SocketCore.{h, cc}
  7803. * src/PeerMessageUtil.cc
  7804. * test/SocketCoreTest.cc
  7805. * test/PeerMessageUtilTest.cc
  7806. * test/DHTConnectionImplTest.cc
  7807. Handle IPv4-mapped addresses.
  7808. * src/DHTNode.cc: Now identity is determined by node id.
  7809. * src/DHTMessageTrackerEntry.cc
  7810. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  7811. should handle it.
  7812. * src/DHTRoutingTableDeserializer.cc
  7813. * src/DHTMessageFactoryImpl.cc
  7814. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Change the unit of --stop option from a minute to a second.
  7816. * src/usage_text.h
  7817. * src/DownloadEngineFactory.cc
  7818. * src/OptionHandlerFactory.cc
  7819. * src/message.h
  7820. * src/TimedHaltCommand.cc
  7821. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Make listening socket non-block mode.
  7823. * src/FtpConnection.cc
  7824. * src/FtpNegotiationCommand.{h, cc}
  7825. * src/PeerListenCommand.cc
  7826. Fixed the bug that cause slow ftp negotiation.
  7827. * src/FtpNegotiationCommand.{h, cc}
  7828. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Added basic tag to --enable-dht, --dht-listen-port option.
  7830. * src/HelpItemFactory.cc (createHelpItems)
  7831. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. Updated text.
  7833. * src/usage_text.h
  7834. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7835. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  7836. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Determin _threadtholdSpeed in each constructor for
  7838. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  7839. * src/ActivePeerConnectionCommand.{h, cc}
  7840. * src/PeerReceiveHandshakeCommand.{h, cc}
  7841. * src/BtSetup.cc
  7842. * src/BtConstants.h
  7843. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Added --bt-min-crypto-level and --bt-require-crypto options.
  7845. * src/OptionHandlerFactory.cc
  7846. * src/MSEHandshake.cc
  7847. * src/HelpItemFactory.cc
  7848. * src/option_processing.cc
  7849. * src/ReceiverMSEHandshakeCommand.cc
  7850. * src/prefs.h
  7851. * src/DefaultBtAnnounce.cc
  7852. * src/InitiatorMSEHandshakeCommand.cc
  7853. * src/usage_text.h
  7854. * test/MSEHandshakeTest.cc
  7855. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Bump version number to 0.13.0b
  7857. * configure.ac
  7858. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Updated doc.
  7860. * src/MessageDigestHelper.h:
  7861. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. Use raw message digest as a token instead of its hexadecimal
  7863. representation.
  7864. * src/DHTTokenTracker.cc (generateToken)
  7865. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. Added Message Stream Encryption(MSE) support.
  7867. Currently, aria2 accepts incoming connections with Obfuscation Header
  7868. and legacy BitTorrent Header and establishes connections with
  7869. Obfuscation Header first and if failed then retry with legacy
  7870. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  7871. choose ARC4. The new option to change the default behavior is planned.
  7872. For tracker extension, "supportcrypto=1" is added statically.
  7873. * src/PeerInitiateConnectionCommand.{h, cc}
  7874. * src/PeerConnection.{h, cc}
  7875. * src/HandleRegistry.h
  7876. * src/SocketCore.h
  7877. * src/PeerReceiveHandshakeCommand.{h, cc}
  7878. * src/BtRegistry.{h, cc}
  7879. * src/PeerListenCommand.cc
  7880. * src/InitiatorMSEHandshakeCommand.{h, cc}
  7881. * src/ReceiverMSEHandshakeCommand.{h, cc}
  7882. * src/MSEHandshake.{h, cc}
  7883. * src/ARC4Encryptor.h
  7884. * src/ARC4Decryptor.h
  7885. * src/LibgcryptARC4Encryptor.h
  7886. * src/LibgcryptARC4Decryptor.h
  7887. * src/LibgcryptARC4Context.h
  7888. * src/LibsslARC4Encryptor.h
  7889. * src/LibsslARC4Decryptor.h
  7890. * src/LibsslARC4Context.h
  7891. * src/DHKeyExchange.h
  7892. * src/LibgcryptDHKeyExchange.h
  7893. * src/LibsslDHKeyExchange.h
  7894. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  7895. * test/DefaultBtAnnounceTest.cc
  7896. * test/ARC4Test.cc
  7897. * test/DHKeyExchangeTest.cc
  7898. Removed prepareForRetry() because it is not used.
  7899. * src/PeerAbstractCommand.{h, cc}
  7900. * src/PeerInteractionCommand.{h, cc}
  7901. * src/PeerInitiateConnectionCommand.{h, cc}
  7902. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7903. Added the ability to load nodes from torrent file. These nodes are
  7904. added to the routing table when downloading that torrent.
  7905. * src/BtContext.h
  7906. * src/DefaultBtContext.{h, cc}
  7907. * src/DHTSetup.cc
  7908. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  7909. hostname and port pair, and resolves all of them.
  7910. * src/NameResolver.{h, cc}: Added reset().
  7911. * src/RequestGroup.cc
  7912. * test/DefaultBtContextTest.cc
  7913. * test/MockBtContext.h
  7914. Removed assert() from DefaultBtContext and throw exception instead.
  7915. * src/DefaultBtContext.cc
  7916. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. Fixed segmentation fault bug when exiting if dht is disabled.
  7918. * src/RequestGroup.cc
  7919. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7920. Fixed typo in log message and define the message in message.h
  7921. * src/TimedHaltCommand.cc
  7922. * src/message.h
  7923. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Included RecoverableException.h to fix compilation error.
  7925. * test/DHTMessageFactoryImplTest.cc
  7926. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7927. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  7928. * test/DHTPingMessageTest.cc
  7929. * test/DHTGetPeersMessageTest.cc
  7930. * test/DHTFindNodeMessageTest.cc
  7931. * test/DHTAnnouncePeerMessageTest.cc
  7932. * test/MockDHTMessage.h
  7933. * test/MockDHTMessageFactory.h
  7934. * test/MockDHTMessageDispatcher.h: New class.
  7935. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7936. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  7937. virtual.
  7938. * src/DHTMessageDispatcher.h
  7939. * src/DHTMessageDispatcherImpl.{h, cc}
  7940. * src/DHTSetup.cc
  7941. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. Adding handling of DHT error message. Just log error message and
  7943. throw exception.
  7944. * src/DHTMessageFactoryImpl.cc
  7945. * test/DHTMessageFactoryImplTest.cc
  7946. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Added handling of dynamic cast failure.
  7948. * src/DHTNodeLookupTask.cc
  7949. * src/DHTPeerLookupTask.cc
  7950. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7951. Added the ability to stop aria2 itself when given time has passed
  7952. from start. Use --stop option to specify time in minutes.
  7953. When 0 is given, this feature is disabled.
  7954. * src/OptionHandlerFactory.cc
  7955. * src/TimeBasedCommand.h: Make _interval protected scope.
  7956. * src/HelpItemFactory.cc
  7957. * src/option_processing.cc
  7958. * src/prefs.h
  7959. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  7960. before calling RequestGroupMan::fillRequestGroupFromReserver().
  7961. Without this modification, the result list shows "ERR" when aria2 is
  7962. stopped by --stop option. It should be "INPR".
  7963. * src/DownloadEngine.{h, cc}
  7964. * src/DownloadEngineFactory.cc
  7965. * src/usage_text.h
  7966. * src/TimedHaltCommand.{h, cc}: New class.
  7967. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Bootstrap through node added by port message.
  7969. Currently bootstrap is executed if the number of buckets in routing
  7970. table is 1.
  7971. * src/BtPortMessage.{h, cc}
  7972. * src/DefaultBtMessageFactory.{h, cc}
  7973. * src/PeerInteractionCommand.cc
  7974. * test/BtPortMessageTest.cc
  7975. * test/MockDHTTask.h
  7976. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. Extract the Peer class's member variables, which are only needed after
  7978. PeerInteractionCommand, into PeerSessionResource class.
  7979. This class is instantiated in PeerInteractionCommand class's ctor and
  7980. released in its dtor.
  7981. This will make Peer class lightweight and uses less memory for peers
  7982. which are not connected and wait in the queue.
  7983. * src/PeerChokeCommand.cc
  7984. * src/PeerSessionResource.{h, cc}
  7985. * src/PeerInteractionCommand.cc
  7986. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  7987. * src/DefaultBtInteractive.cc
  7988. * src/BtPieceMessage.cc
  7989. * src/BtInterestedMessage.cc
  7990. * src/BtUnchokeMessage.cc
  7991. * src/DefaultPeerStorage.{h, cc}
  7992. * src/PeerInitiateConnectionCommand.cc
  7993. * src/ActivePeerConnectionCommand.cc
  7994. * src/BtNotInterestedMessage.cc
  7995. * src/DefaultBtMessageDispatcher.cc
  7996. * src/BtChokeMessage.cc
  7997. * src/BtRequestMessage.cc
  7998. * src/Peer.{h, cc}
  7999. * src/BtRegistry.h
  8000. * src/TrackerWatcherCommand.cc
  8001. * src/PeerReceiveHandshakeCommand.cc
  8002. * test/BtExtendedMessageTest.cc
  8003. * test/BtAllowedFastMessageTest.cc
  8004. * test/BtCancelMessageTest.cc
  8005. * test/DefaultPieceStorageTest.cc
  8006. * test/BtBitfieldMessageTest.cc
  8007. * test/BtHaveMessageTest.cc
  8008. * test/BtNotInterestedMessageTest.cc
  8009. * test/BtRequestMessageTest.cc
  8010. * test/PeerSessionResourceTest.cc
  8011. * test/DefaultBtMessageDispatcherTest.cc
  8012. * test/PeerTest.cc
  8013. * test/BtInterestedMessageTest.cc
  8014. * test/BtRejectMessageTest.cc
  8015. * test/BtChokeMessageTest.cc
  8016. * test/DefaultPeerStorageTest.cc
  8017. * test/BtHaveNoneMessageTest.cc
  8018. * test/BtHaveAllMessageTest.cc
  8019. * test/DefaultExtensionMessageFactoryTest.cc
  8020. * test/BtUnchokeMessageTest.cc
  8021. * test/DefaultBtMessageFactoryTest.cc
  8022. * test/HandshakeExtensionMessageTest.cc
  8023. * test/UTPexExtensionMessageTest.cc
  8024. * test/DefaultBtRequestFactoryTest.cc
  8025. * test/BtPieceMessageTest.cc
  8026. Removed typedef PeerStats.
  8027. * src/PeerStat.h
  8028. * src/SegmentMan.cc
  8029. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8030. Added std namespace to copy, remove_copy, back_inserter,
  8031. front_inserter.
  8032. * src/RequestGroupMan.cc
  8033. * src/DefaultPieceStorage.cc
  8034. * src/StreamFileAllocationEntry.cc
  8035. * src/BtFileAllocationEntry.cc
  8036. * src/RequestGroup.cc
  8037. * src/MetalinkEntry.cc
  8038. * src/DelegatingPeerListProcessor.cc
  8039. * src/DefaultBtRequestFactory.cc
  8040. * src/DefaultBtMessageDispatcher.cc
  8041. * src/version_usage.cc: Included <algorithm>
  8042. * src/main.cc
  8043. * src/MetalinkParserController.cc
  8044. * src/DefaultBtContext.cc
  8045. * src/DownloadEngineFactory.cc
  8046. * src/a2algo.h
  8047. Removed.
  8048. * test/StreamUriListParserTest.cc
  8049. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8051. ActivePeerConnectionCommand when it is given and
  8052. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8053. * src/ActivePeerConnectionCommand.{h, cc}
  8054. * src/BtSetup.cc
  8055. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Only add socket to DownloadEngine's select routine when peer or
  8057. localhost is unchoked and interested. This lowers CPU usage a
  8058. little bit.
  8059. * src/PeerInteractionCommand.cc
  8060. * src/PeerAbstractCommand.{h, cc}
  8061. * src/BtInteractive.h
  8062. * src/DefaultBtInteractive.{h, cc}
  8063. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Revert previous change because get_peers message is needed for
  8065. announce_peer anyway.
  8066. * src/DHTGetPeersCommand.cc
  8067. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8068. Request peers thought DHT only when download hasn't finished.
  8069. * src/DHTGetPeersCommand.cc
  8070. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8071. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8072. * src/DHTBucketRefreshTask.{h, cc}
  8073. * src/DHTSetup.cc
  8074. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8076. standard classes.
  8077. Included string.h where mem* function are used.
  8078. Added namespace aria2.
  8079. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Create directory before saving DHT routing table.
  8081. Now ios::failure is now handled properly.
  8082. * src/DHTAutoSaveCommand.cc
  8083. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8084. Removed unnecessary cerr.
  8085. * src/DownloadEngine.cc
  8086. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8087. Catch exception inside DHTMessageReceiver::receiveMessage().
  8088. Log unknown message.
  8089. * src/DHTMessageReceiver.{h, cc}
  8090. * src/DHTMessageFactory.h
  8091. * src/DHTMessageFactoryImpl.{h, cc}
  8092. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8093. * src/DHTInteractionCommand.cc
  8094. * src/DHTUnknownMessage.{h, cc}
  8095. * test/DHTUnknownMessageTest.cc
  8096. * test/MockDHTMessageFactory.h
  8097. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Commented out ip address comparison because a host can have multiple
  8099. ip addresses and it is hard to predict the hostname is resolved into
  8100. which one.
  8101. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8102. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. * po/Makefile.in: Removed since this is generated by configure.
  8104. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. Fixed compiler warning about redefinition of SIZE_MAX.
  8106. Use common.h instead of config.h directly here.
  8107. * src/Platform.{h, cc}
  8108. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8109. here.
  8110. * common.h
  8111. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8112. Updated gettext related files.
  8113. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8114. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8115. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Added DHT functionality, compatible with mainline.
  8117. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8118. You may need to specify entry point to DHT network using
  8119. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8120. Use --dht-listen-port to specify port number. Make sure that your
  8121. firewall configuration can pass through UDP traffic to the port.
  8122. The routing table is saved in $HOME/.aria2/dht.dat.
  8123. * src/DHT*
  8124. * src/BNode.{h, cc}
  8125. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8126. particular torrent.
  8127. * src/Data.cc: Rewritten ctor.
  8128. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8129. --dht-entry-point.
  8130. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8131. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8132. ends, remove BtContext from DHTPeerAnnounceStorage.
  8133. * src/BtPortMessage.{h, cc}: Rewritten.
  8134. * src/message.h
  8135. * src/OptionHandlerImpl.cc
  8136. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8137. --dht-entry-point.
  8138. * src/Dictionary.{h, cc} (remove): New function.
  8139. * src/prefs.h
  8140. * src/DefaultBtMessageFactory.h
  8141. * src/BtHandshakeMessage.cc
  8142. * src/ActivePeerConnectionCommand.cc
  8143. * src/SocketCore.{h, cc}: Added datagram socket support.
  8144. * src/DefaultBtMessageFactory.cc
  8145. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8146. Create DHT commands.
  8147. * src/BtMessageFactory.h
  8148. * src/PeerMessageUtil.{h, cc}
  8149. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Fixed the bug that log file is not written when configuration file doesn't exist.
  8151. This is caused by using Logger class before LogFactory is not configured.
  8152. BUG #1875079
  8153. * src/option_processing.cc
  8154. Warning message "configuration doesn't exist" is only printed when --conf is
  8155. given.
  8156. * src/option_processing.cc
  8157. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8159. ShaVisitor is now deprecated and slated to be removed.
  8160. * src/DefaultBtContext.cc
  8161. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Externalize message to message.h
  8163. * src/Platform.cc
  8164. * src/message.h
  8165. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8166. Set default domain and default path to cookie.
  8167. * src/HttpResponse.cc
  8168. * src/CookieBox.{h, cc}
  8169. * src/CookieParser.{h, cc}
  8170. * test/CookieParserTest.cc
  8171. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. Added --no-conf and --conf-path command-line option.
  8173. --no-conf option disables loading aria2.conf file.
  8174. --conf-path option changes the configuration file path. The default
  8175. file path is $HOME/.aria2/aria2.conf
  8176. Added a warning message when the configuration file is not found.
  8177. * src/HelpItemFactory.cc
  8178. * src/option_processing.cc
  8179. * src/prefs.h
  8180. * src/usage_text.h
  8181. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8182. Added the message to inform users that other help categories are
  8183. available in -h option.
  8184. * src/version_usage.cc
  8185. * src/TagContainer.{h, cc}
  8186. * test/TagContainerTest.cc
  8187. * src/TaggedItem.{h, cc}
  8188. * test/TaggedItemTest.cc
  8189. * src/HelpItem.h
  8190. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8192. from PiecedSegment's ctor.
  8193. Previously Piece::getAllMissingBlockIndexes() is called from
  8194. PiecedSegment() but it is rather expensive since only first element is
  8195. used.
  8196. * src/PiecedSegment.cc
  8197. * src/Piece.{h, cc}
  8198. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8199. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8200. each time these functions are called.
  8201. * src/BitfieldMan.{h, cc}
  8202. * test/BitfieldManTest.cc
  8203. * src/array_fun.h
  8204. * test/array_funTest.cc
  8205. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8206. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8207. filtered. Removed unnecessary cast to int32_t.
  8208. * src/BitfieldMan.{h, cc}
  8209. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8210. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8211. payload length(4bytes) are received. This happens because lenbufLength
  8212. is not updated in this particular case and successive call of
  8213. receiveMessage() overwrites payload length with bytes recieved which
  8214. are payload body.
  8215. * src/PeerConnection.{h, cc}
  8216. * src/message.h
  8217. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8219. peer if there are peers that have same ipaddr and port.
  8220. I've experiened segmentation fault and "pure virtual function was
  8221. called" error.
  8222. * src/Peer.h
  8223. * test/PeerTest.cc
  8224. * src/DefaultPeerStorage.cc
  8225. * test/DefaultPeerStorageTest.cc
  8226. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Removed a call to isPowerOf() because it is no longer necessary here
  8228. and a request block is not always power of 2.
  8229. BUG#1866924
  8230. * src/PeerMessageUtil.cc (checkLength)
  8231. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8232. Fixed the bug that always first found Segment is removed from
  8233. usedSegmentEntries. Removed unused functions.
  8234. * src/SegmentMan.{h, cc}
  8235. * test/SegmentManTest.cc
  8236. Fixed the bug that ServerHost is not removed.
  8237. * src/RequestGroup.cc
  8238. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Fixed the bug that SegmentMan::completeSegment() is not called
  8240. even if Segment is complete when --lowest-speed-limit is enabled.
  8241. BUG#1864525
  8242. * src/DownloadCommand.{h, cc}
  8243. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8244. Fixed: hash algorithm 'sha1' is always used.
  8245. * src/DownloadCommand.cc (validatePieceHash)
  8246. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8247. Added --enable-peer-exchange command-line option.
  8248. * src/OptionHandlerFactory.cc
  8249. * src/HelpItemFactory.cc
  8250. * src/option_processing.cc
  8251. * src/usage_text.h
  8252. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. Move extension from BtRuntime to ExtensionMessageFactory, because
  8254. extension can be specified per peer, not per torrent.
  8255. * src/DefaultBtInteractive.cc
  8256. * src/BtRuntime.h
  8257. * src/ExtendedMessagingAware.h
  8258. * src/ExtensionMessageFactory.h
  8259. * src/DefaultExtensionMessageFactory.cc
  8260. * test/DefaultExtensionMessageFactoryTest.cc
  8261. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. Added categorized option help. Specify category using --help option.
  8263. Also added the ability to search options in forward match.
  8264. * src/HelpItem.{h, cc}
  8265. * test/HelpItemTest.cc
  8266. * src/HelpItemFactory.{h, cc}
  8267. * src/TagContainer.{h, cc}
  8268. * test/TagContainerTest.cc
  8269. * src/option_processing.cc
  8270. * src/prefs.h
  8271. * src/TaggedItem.{h, cc}
  8272. * test/TaggedItemTest.cc
  8273. * src/version_usage.cc
  8274. * src/help_tags.h
  8275. * src/usage_text.h
  8276. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8277. Fixed segmentation fault when bad torrent metainfo is parsed.
  8278. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8279. and then throw exception or skip it.
  8280. * src/DefaultBtContext.{h, cc}
  8281. * test/DefaultBtContextTest.cc
  8282. * src/AnnounceList.cc
  8283. * src/CompactPeerListProcessor.cc
  8284. * src/message.h
  8285. * src/DefaultBtAnnounce.{h, cc}
  8286. * test/DefaultBtAnnounceTest.cc
  8287. * src/BencodeVisitor.cc
  8288. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Added missing "B"(=Byte). So now the message looks like this:
  8290. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8291. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8292. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Show the seed ratio after torrent downloads.
  8294. For example, after torrent download completed and --seed-time and
  8295. --seed-ratio conditions are fulfilled, following message is printed
  8296. right after "Download complete: .....":
  8297. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8298. * src/RequestGroupMan.cc
  8299. * src/RequestGroup.{h, cc}
  8300. * src/message.h
  8301. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Remove a defunct control file. A defunct control file means that while
  8303. it exists, but the corresponding download file is missing.
  8304. After its removal, a download restarts from the beginning.
  8305. * src/RequestGroup.cc
  8306. * src/message.h
  8307. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. Allocate bitfield in Peer when it is really used. More specifically,
  8309. bitfield in Peer is allocated after the connection is established and
  8310. deallocated when the connection is dropped.
  8311. Since 2 parameters(piece length and total length) was removed from the
  8312. constructor of Peer class, many test classes were modified accordingly.
  8313. See svn log for more detailed information.
  8314. * src/PeerInteractionCommand.cc
  8315. * src/CompactPeerListProcessor.cc
  8316. * src/Peer.cc
  8317. * src/DefaultPeerListProcessor.cc
  8318. * src/PeerListenCommand.cc
  8319. * src/PeerReceiveHandshakeCommand.cc
  8320. Fixed memory leak
  8321. * src/Piece.cc
  8322. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8324. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8325. command-line options.
  8326. * src/option_processing.cc
  8327. * src/ActivePeerConnectionCommand.cc
  8328. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8329. Send have message to peer if it already has the piece.
  8330. * src/BtHaveMessage.{h, cc}
  8331. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8332. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8333. port.
  8334. * src/DefaultPeerStorage.{h, cc}
  8335. * test/DefaultPeerStorageTest.cc
  8336. * src/HandshakeExtensionMessage.cc
  8337. * test/HandshakeExtensionMessageTest.cc
  8338. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8339. * src/PeerStorage.h
  8340. * test/MockPeerStorage.h
  8341. * src/PeerListenCommand.cc
  8342. * src/PeerReceiveHandshakeCommand.cc
  8343. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Added --metalink-enable-unique-protocol option.
  8345. * src/Metalink2RequestGroup.cc
  8346. * src/option_processing.cc
  8347. * src/prefs.h
  8348. * src/version_usage.cc
  8349. * doc/aria2c.1.txt
  8350. * doc/aria2c.1
  8351. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Allow a peer in incomingPeer to be added peers.
  8353. * src/DefaultPeerStorage.cc
  8354. * test/DefaultPeerStorageTest.cc
  8355. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8357. I could reproduce this bug in following procedure:
  8358. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8359. 2. Restart aria2.
  8360. 3. You see the download stopped around 99%.
  8361. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8362. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8363. If timeout is reached, then _nextCommand is unused and it may contains
  8364. segments and they won't be canceled. Actually, timeout is not needed
  8365. here because if the server dropped connection, then retry is made.
  8366. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8367. Added uTorrent compatible Peer Exchange.
  8368. * src/BencodeVisitor.{h, cc}
  8369. * test/BencodeVisitorTest.cc
  8370. * src/BtConstants.h
  8371. * src/BtContext.h: Added 'private' flag.
  8372. * src/BtExtendedMessage.{h, cc}
  8373. * test/BtExtendedMessageTest.cc
  8374. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8375. reserved field.
  8376. * test/BtHandshakeMessageTest.cc
  8377. * src/BtMessageFactory.h
  8378. * src/BtRegistry.h
  8379. * src/BtRuntime.h: This class holds default extension message IDs for
  8380. aria2. By default, aria2 uses ID 8 for ut_pex.
  8381. * src/DefaultBtContext.cc
  8382. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8383. When it is true, aria2 enables ut_pex. This value is set by
  8384. PeerInteractionCommand.
  8385. * src/DefaultBtMessageFactory.{h, cc}
  8386. * test/DefaultBtMessageFactoryTest.cc
  8387. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8388. handling to DefaultBtInteractive class.
  8389. * src/DefaultExtensionMessageFactory.{h, cc}
  8390. * test/DefaultExtensionMessageFactoryTest.cc
  8391. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8392. the container(peers and incomingPeers. The equality is determined by
  8393. Peer::id).
  8394. * test/DefaultPeerStorageTest.cc
  8395. * src/ExtensionMessage.h
  8396. * test/MockExtensionMessage.h
  8397. * src/ExtensionMessageFactory.h
  8398. * test/MockExtensionMessageFactory.h
  8399. * src/HandshakeExtensionMessage.{h, cc}
  8400. * test/HandshakeExtensionMessageTest.cc
  8401. * src/MetaEntry.h
  8402. * src/Peer.{h, cc}
  8403. * src/PeerInteractionCommand.cc
  8404. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8405. addIncomingPeer.
  8406. * src/PeerMessageUtil.{h, cc}
  8407. * src/PeerObject.h
  8408. * src/UTPexExtensionMessage.{h, cc}
  8409. * test/UTPexExtensionMessageTest.cc
  8410. * src/message.h
  8411. * src/prefs.h
  8412. Fixed the bug that returns incomplete data when it contains null
  8413. character. A convenient constructor was also added.
  8414. * src/Data.{h, cc}
  8415. Rewritten.
  8416. * src/CompactPeerListProcessor.cc
  8417. Fixed typos.
  8418. * src/message.h
  8419. * src/MetaFileUtil.cc
  8420. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. Added "Status Legend" label to the explanation text of 'stat' in
  8422. download result and moved it to the last. BUG#1848214
  8423. * src/RequestGroupMan.cc
  8424. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8425. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  8426. * src/Makefie.am
  8427. * test/Makefile.am
  8428. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. Fixed the bug that prevents aria2 from loading cookie file when expire
  8430. value is greater than 2^31-1. BUG#1851066
  8431. * src/CookieBoxFactory.cc
  8432. * test/CookieBoxFactoryTest.cc
  8433. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8434. Fixed possible memory leak when an exception is thrown.
  8435. * src/XML2SAXMetalinkProcessor.cc
  8436. Added Expat support. If both libxml2 and Expat are installed, then
  8437. libxml2 is used by default.
  8438. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  8439. ExpatMetalinkProcessor according to the configuration.
  8440. * src/ExpatMetalinkProcessor.{h, cc}
  8441. * src/main.cc: Removed libxml2 specific header and init/free function.
  8442. * src/MetalinkProcessorFactory.{h, cc}
  8443. * src/MetalinkHelper.cc
  8444. * src/Metalinker.h: Removed unnecessary libxml2 header.
  8445. * src/MetalinkProcessor.h
  8446. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  8447. MetalinkProcessorTest is used instead.
  8448. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  8449. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  8450. MetalinkProcessorFactory::newInstance().
  8451. * m4/libexpat.m4
  8452. * configure.ac: Added configuration options for libexpat.
  8453. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Disabled -s option in metalink download.
  8455. * src/Metalink2RequestGroup.cc
  8456. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8457. If several protocols are available for a mirror in metalink file,
  8458. aria2 now use one of them. --metalink-preferred-protocol option was
  8459. added to specify the preference of protocol.
  8460. * src/AbstractCommand.cc
  8461. * src/OptionHandlerFactory.cc
  8462. * src/ServerHost.{h, cc}
  8463. * src/Metalink2RequestGroup.cc
  8464. * src/RequestGroup.{h, cc}
  8465. * test/RequestGroupTest.cc
  8466. * src/option_processing.cc
  8467. * src/prefs.h
  8468. * src/HttpResponseCommand.cc
  8469. * src/MetalinkResource.{h, cc}
  8470. * src/FtpNegotiationCommand.cc
  8471. * src/MetalinkEntry.{h, cc}
  8472. * src/MetalinkEntryTest.cc
  8473. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8474. Code cleanup and added debug log.
  8475. * src/PeerConnection.cc
  8476. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8477. Compiler error fix: applied the patch by Tiziano Mueller
  8478. * src/RequestGroup.cc
  8479. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8480. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8481. in stopped and completed event.
  8482. * src/AnnounceList.{h, cc}
  8483. * test/AnnounceListTest.cc
  8484. * src/DefaultBtAnnounce.cc
  8485. * test/DefaultBtAnnounceTest.cc
  8486. Sorted URLs.
  8487. * test/Metalink2RequestGroupTest.cc
  8488. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Removed unnecessary string copy. Updated doc and corrected indentation.
  8490. * src/Base64.cc
  8491. Fixed compilation warnings
  8492. * test/DataTest.cc
  8493. * test/HttpRequestTest.cc
  8494. * test/MetaFileUtilTest.cc
  8495. * test/RequestTest.cc
  8496. * Release 0.12.0
  8497. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Updated translations
  8499. * po/{de,fr,ja,nl,ru}.po
  8500. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8501. translations. Many thanks to translators.
  8502. * po/{ca,es,it,pt_BR,sv}.po
  8503. * po/LINGUAS
  8504. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Added a notice about URL
  8506. * src/version_usage.cc
  8507. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8508. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8509. aria2 repeatedly sends stopped request when tracker returns error code.
  8510. * src/AnnounceList.cc
  8511. * test/AnnounceListTest.cc
  8512. * src/AnnounceTier.h
  8513. Added a message when ctrl-c is hit.
  8514. Now second ctrl-c is also handled in signal handler.
  8515. * src/RequestGroupMan.{h, cc}
  8516. * src/RequestGroup.{h, cc}
  8517. * src/MultiUrlRequestInfo.cc
  8518. * src/DownloadEngine.cc
  8519. * src/TrackerWatcherCommand.cc
  8520. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Code cleanup
  8522. * src/Base64.cc (encode)
  8523. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. Changed Direct/IO enable/disable procesure in file allocation routine.
  8525. * src/SingleFileAllocationIterator.cc
  8526. (SingleFileAllocationIterator):
  8527. Disable directIO if offset is not multiple of 512.
  8528. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8529. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8530. Enable created SingleFileAllocationIterator's directIO.
  8531. * src/FileAllocationEntry.cc
  8532. (FileAllocationEntry): Enable directIO here.
  8533. (~FileAllocationEntry): Disable directIO here.
  8534. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8536. * src/Peer.{h, cc}
  8537. * src/DefaultPieceStorage.cc
  8538. * test/DefaultPieceStorageTest.cc
  8539. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Rewritten direct I/O support routine
  8541. * src/SingleFileAllocationIterator.cc
  8542. * src/MultiDiskAdaptor.{h, cc}
  8543. * src/ByteArrayDiskWriter.h
  8544. * src/AbstractSingleDiskAdaptor.h
  8545. * src/AbstractDiskWriter.cc
  8546. * src/DefaultPieceStorage.cc
  8547. * src/DiskWriter.h
  8548. * src/BinaryStream.h
  8549. * src/IteratableChunkChecksumValidator.cc
  8550. * src/IteratableChecksumValidator.cc
  8551. * src/CheckIntegrityEntry.cc
  8552. * src/FileAllocationEntry.cc
  8553. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Fixed typo
  8555. * src/version_usage.cc
  8556. Updated doc
  8557. * doc/aria2c.1.txt
  8558. * doc/aria2c.1
  8559. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8560. Fixed compile error without message digest support.
  8561. * src/FileMetalinkParserState.cc
  8562. * src/MetalinkParserController.{h, cc}
  8563. * test/XML2SAXMetalinkProcessorTest.cc
  8564. * test/MetalinkParserControllerTest.cc
  8565. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. Enable direct I/O support in checksum checking.
  8567. * src/IteratableChunkChecksumValidator.{h, cc}
  8568. * test/IteratableChunkChecksumValidatorTest.cc
  8569. * src/CheckIntegrityEntry.cc
  8570. * src/PieceHashCheckIntegrityEntry.cc
  8571. * src/IteratableChecksumValidator.{h, cc}
  8572. * src/BtCheckIntegrityEntry.cc: Added doc.
  8573. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8574. Added --allow-piece-length-change option.
  8575. * src/DefaultBtProgressInfoFile.cc
  8576. * test/DefaultBtProgressInfoFileTest.cc
  8577. * src/OptionHandlerFactory.cc
  8578. * src/option_processing.cc
  8579. * src/prefs.h
  8580. * src/version_usage.cc
  8581. * doc/aria2c.1.txt
  8582. * doc/aria2c.1
  8583. Fixed: duplicated result entry appears when exception is thrown in
  8584. RequestGroup::createInitiateConnectionCommand().
  8585. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8586. Add RequestGroup to _requestGroup after RequetGroup::
  8587. createInitiateConnectionCommand() succeeds.
  8588. Externalized message
  8589. * src/XML2SAXMetalinkProcessor.cc
  8590. * src/message.h
  8591. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. Forced download abort when received negative response from http/ftp
  8593. server.
  8594. * src/HttpResponseCommand.cc
  8595. * src/FtpNegotiationCommand.cc
  8596. * src/HttpResponse.cc
  8597. * src/FtpConnection.cc
  8598. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8600. the predecessor, Xml2MetalinkParser class.
  8601. I tested them against 94KB metalink file with 1234 chunk checksums.
  8602. The new one parsed it in 22msec, while it took 6000msec with old one.
  8603. * src/XML2SAXMetalinkProcessor.{h, cc}
  8604. * test/XML2SAXMetalinkProcessorTest.cc
  8605. * src/MetalinkParserController.{h, cc}
  8606. * test/MetalinkParserControllerTest.cc
  8607. * src/MetalinkParserState.h: Also added 16 subclasses.
  8608. * src/main.cc
  8609. * src/Metalink2RequestGroup.cc
  8610. * src/MetalinkHelper.cc
  8611. * src/MetalinkEntry.cc
  8612. * src/ChunkChecksum.h
  8613. Rewritten Base64 class for better performance.
  8614. * src/Base64.{h, cc}
  8615. * test/Base64Test.cc
  8616. * src/HttpRequest.cc
  8617. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8618. Fixed the bug#1841757: aria2 will connect to server to only get
  8619. file size.
  8620. * src/StreamFileAllocationEntry.cc
  8621. * src/option_processing.cc
  8622. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8623. downloads.
  8624. * src/FtpNegotiationCommand.cc
  8625. Suppressed wrong message when finding PreDownloadHandler
  8626. * src/RequestGroup.cc
  8627. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8628. Updated usage
  8629. * src/version_usage.cc
  8630. Updated man page
  8631. * doc/aria2c.1.txt
  8632. * doc/aria2c.1
  8633. Updated po files
  8634. * po/aria2c.pot
  8635. * po/*.po
  8636. * po/*.gmo
  8637. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8638. Eliminated g++-4.2 warning
  8639. * src/DownloadHandlerConstants.{h, cc}
  8640. * src/Util.cc
  8641. * test/MetaFileUtilTest.cc
  8642. * test/PStringBuildVisitorTest.cc
  8643. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8644. * src/RequestGroup.cc
  8645. * src/BtCheckIntegrityEntry.cc
  8646. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Fixed a2io.h
  8648. * src/a2io.h
  8649. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Added direct I/O support. The current implementation uses O_DIRECT,
  8651. which is not posix standard and is tested on linux 2.6.21.
  8652. Currently only file allocation uses direct I/O.
  8653. * src/SingleFileAllocationIterator.{h, cc}
  8654. * test/SingleFileAllocationIteratorTest.cc
  8655. * src/MultiFileAllocationIterator.{h, cc}
  8656. * test/MultiFileAllocationIteratorTest.cc
  8657. * src/BinaryStream.h
  8658. * src/DiskWriter.h
  8659. * src/AbstractDiskWriter.{h, cc}
  8660. * src/ByteArrayDiskWriter.h
  8661. * src/DiskAdaptor.h
  8662. * src/AbstractSingleDiskAdaptor.{h, cc}
  8663. * src/MultiDiskAdaptor.{h, cc}
  8664. * src/FileAllocationEntry.cc
  8665. * src/Util.{h, cc}
  8666. * src/OptionHandlerFactory.cc
  8667. * src/prefs.h
  8668. * src/version_usage.cc
  8669. * src/option_processing.cc
  8670. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8671. handleException.
  8672. * src/MultiFileAllocationIterator.cc
  8673. Added EINTR handling
  8674. * src/SocketCore.cc
  8675. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8676. Updated usage
  8677. * src/version_usage.cc
  8678. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8679. Applied Ross's patch for MinGW port.
  8680. * src/DownloadEngine.h
  8681. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. Set Content-Type to SingleFileDownloadContext when http response is
  8683. received.
  8684. * src/HttpResponseCommand.cc
  8685. * src/HttpResponse.{h, cc}
  8686. * test/HttpResponseTest.cc
  8687. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Rewritten to add content-type support.
  8689. * src/DownloadHandler.{h, cc}
  8690. * src/BtPostDownloadHandler.{h, cc}
  8691. * test/BtPostDownloadHandlerTest.cc
  8692. * src/MetalinkPostDownloadHandler.{h, cc}
  8693. * test/MetalinkPostDownloadHandlerTest.cc
  8694. * src/PostDownloadHandler.{h, cc}
  8695. * src/DownloadHandlerConstants.{h, cc}
  8696. * src/RequestGroup.cc
  8697. * src/HttpResponseCommand.cc
  8698. * src/FtpNegotiationCommand.cc
  8699. * src/SingleFileDownloadContext.{h, cc}
  8700. * src/RequestGroup.h
  8701. * src/RequestGroupCriteria.h
  8702. * src/ContentTypeRequestGroupCriteria.h
  8703. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8704. If it is give, metalink/torrent file is not written to the disk, but
  8705. just is kept in memory. Parsing is occurred on memory.
  8706. * src/MetalinkHelper.{h, cc}
  8707. * src/MetalinkProcessor.h
  8708. * src/Xml2MetalinkProcessor.{h, cc}
  8709. * test/Xml2MetalinkProcessorTest.cc
  8710. * src/DownloadHandlerFactory.{h, cc}
  8711. * test/DownloadHandlerFactoryTest.cc
  8712. * src/PreDownloadHandler.{h, cc}
  8713. * src/OptionHandlerFactory.cc
  8714. * src/DefaultBtContext.{h, cc}
  8715. * test/DefaultBtContextTest.cc
  8716. * src/version_usage.cc
  8717. * src/Metalink2RequestGroup.{h, cc}
  8718. * src/RequestGroup.{h, cc}
  8719. * src/a2functional.h
  8720. * test/a2functionalTest.cc
  8721. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8722. * src/OptionHandlerImpl.h
  8723. * src/prefs.h
  8724. * src/Util.{h, cc}
  8725. * test/UtilTest.cc
  8726. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8727. memory usage.
  8728. * src/RequestGroupMan.{h, cc}
  8729. * src/DownloadEngine.cc
  8730. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8731. WeakHandle to SharedHandle because WeakHandle could be null.
  8732. * src/RequestGroup.{h, cc}
  8733. * src/DownloadEngineFactory.cc
  8734. * src/DownloadResult.h
  8735. Set totalLength after download finished
  8736. * src/UnknownLengthPieceStorage.{h, cc}
  8737. Keep torrent file specified in metalink in memory.
  8738. * src/Metalink2RequestGroup.cc
  8739. * src/BtDependency.cc
  8740. * src/TrueRequestGroupCriteria.h
  8741. Fixed the bug: seekg is used where seekp should be used.
  8742. * src/ByteArrayDiskWriter.cc
  8743. * test/ByteArraydiskWriterTest.cc
  8744. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8745. Fixed syntax error
  8746. * test/SequenceTest.cc
  8747. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8749. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8750. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8751. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8752. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Added the check to see whether ares_host_callback accepts timeouts
  8754. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8755. * src/NameResolver.{h, cc}
  8756. * m4/libcares.m4
  8757. * configure.ac: Set C++ for language choice.
  8758. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. Fixed: compilation fails without c-ares/ares
  8760. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8761. Generate http/ftp commands only when download is incomplete.
  8762. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8763. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8764. Corrected typo. Examples are removed since they are available in man
  8765. page.
  8766. * src/version_usage.cc
  8767. Updated man page.
  8768. * doc/aria2c.1
  8769. * doc/aria2c.1.txt
  8770. * doc/makeman: Commented out sed command.
  8771. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8772. Throw DlAbortEx when a remote file is not found.
  8773. * src/HttpResponse.cc
  8774. * src/FtpNegotiationCommand.cc
  8775. * src/message.h
  8776. Overwrite an existing file if --allow-overwrite=true is given.
  8777. * src/RequestGroup.cc
  8778. Removed unused functions
  8779. * src/AbstractCommand.h
  8780. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. Removed 'extern' from 'extern typedef ...' in src/*.h
  8782. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. Updated usage
  8784. * src/version_usage.cc
  8785. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8786. Trim announce URL
  8787. * src/DefaultBtContext.cc
  8788. * test/ShaVisitorTest.cc
  8789. Trim argument s. Give trimed s to exception constructor.
  8790. * src/Util.cc (parseInt)(parseLLInt)
  8791. * test/UtilTest.cc
  8792. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Set precision back to 1.
  8794. * src/ConsoleStatCalc.cc (calculateStat)
  8795. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8796. Replaced strtol with Util::parseInt
  8797. * src/ChunkedEncoding.cc
  8798. * src/HttpConnection.cc
  8799. * src/CookieBoxFactory.cc
  8800. * src/ParameterizedStringParser.cc
  8801. * src/Util.cc
  8802. * test/UtilTest.cc
  8803. * test/OptionHandlerTest.cc
  8804. * src/Request.cc
  8805. Throw exception when empty string is given. The message for exception
  8806. changed.
  8807. * src/Util.cc (parseInt)(parseLLInt)
  8808. * src/message.h
  8809. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Set precision to 2 because share ratio is rounded into 1.0 if precision
  8811. set to 1.
  8812. * src/ConsoleStatCalc.cc (calculateStat)
  8813. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Preallocate non-requested file which is adjacent forward to requested
  8815. file('requested' files means the files given in --select-file option)
  8816. if they share a same piece.
  8817. This fixes long pause in the file system which doesn't support sparse
  8818. files like FAT32 while downloading.
  8819. * src/MultiFileAllocationIterator.{h, cc}
  8820. * test/MultiFileAllocationIteratorTest.cc
  8821. * src/FileEntry.{h, cc}
  8822. Removed unused _option.
  8823. * src/MultiDiskAdaptor.h
  8824. * test/MultiDiskAdaptorTest.cc
  8825. * src/DefaultPieceStorage.cc
  8826. Set the default value of --seed-ratio to 1.0.
  8827. If 0.0 is given, then seeding continues regardless of share ratio.
  8828. * src/version_usage.cc
  8829. * src/option_processing.cc
  8830. * src/BtSetup.cc
  8831. * doc/aria2c.1.txt
  8832. * doc/aria2c.1
  8833. Fixed: Selective download is not working in BitTorrent
  8834. * src/RequestGroup.cc
  8835. Introduced Sequence class. Use this instead of Util::unfoldRange()
  8836. * src/PieceStorage.h
  8837. * test/MockPieceStorage.h
  8838. * src/UnknownLengthPieceStorage.h
  8839. * src/DefaultPieceStorage.{h, cc}
  8840. * src/Metalink2RequestGroup.cc
  8841. * src/RequestGroup.cc
  8842. * src/Sequence.h
  8843. * test/SequenceTest.cc
  8844. * src/IntSequence.h
  8845. * src/message.h
  8846. * src/Util.{h, cc}
  8847. * test/UtilTest.cc
  8848. Added new function 'parse' to catch exception thrown by subclass's
  8849. parseArg
  8850. * src/OptionHandler.h
  8851. * src/OptionParser.cc
  8852. * src/NameMatchOptionHandler.h
  8853. * src/OptionHandlerImpl.h
  8854. * test/OptionHandlerTest.cc
  8855. Added IntegerRangeOptionHandler. Used for --listen-port and
  8856. --select-file. Now --listen-port accepts range of port.
  8857. * src/OptionHandlerFactory.cc
  8858. * src/version_usage.cc
  8859. * src/OptionHandlerImpl.h
  8860. * src/option_processing.cc
  8861. * src/BtSetup.cc
  8862. * src/PeerListenCommand.{h, cc}
  8863. * doc/aria2c.1.txt
  8864. * doc/aria2c.1
  8865. Implemented operator< for Exception class to provide easy way to print
  8866. exception stack trace.
  8867. * src/Exception.{h, cc}
  8868. * src/main.cc
  8869. * src/option_processing.cc
  8870. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8871. * src/version_usage.cc
  8872. (showVersion): Reworked.
  8873. (showUsage): Added examples.
  8874. Removed Hint for total length and file name.
  8875. * src/Metalink2RequestGroup.cc
  8876. * src/RequestGroup.{h, cc}
  8877. * src/HttpResponseCommand.cc
  8878. * src/FtpNegotiationCommand.cc
  8879. Now --follow-torrent and --follow-metalink option work properly.
  8880. * src/RequestGroup.cc
  8881. Updated man page
  8882. * doc/aria2c.1.txt
  8883. * doc/aria2c.1
  8884. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. Removed.
  8886. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  8887. Use Segment::operator==()
  8888. * src/HttpConnection.cc
  8889. * src/Segment.h
  8890. Updated usage
  8891. * src/version_usage.cc
  8892. Added EINTR treatment.
  8893. * src/SocketCore.cc
  8894. * src/AbstractDiskWriter.cc
  8895. Rewritten.
  8896. * src/Util.cc (rangedFileCopy)
  8897. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. Fixed typo.
  8899. * src/version_usage.cc
  8900. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Implemented. Now -c option works fine.
  8902. * src/DefaultPieceStorage.cc (markPiecesDone)
  8903. * test/DefaultPieceStorageTest.cc
  8904. Removed.
  8905. * src/SegmentMan.{h, cc}
  8906. (markAllPiecesDone)
  8907. (markPieceDone)
  8908. Synchronized po files with
  8909. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  8910. * src/fr.po
  8911. * src/ru.po
  8912. * src/de.po
  8913. * src/ja.po
  8914. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Added ifdef and some modifications to compile without BitTorrent,
  8916. Metalink, MessageDigest
  8917. support.
  8918. * src/PieceHashCheckIntegrityEntry.cc
  8919. * src/MetalinkEntry.h
  8920. * src/version_usage.cc
  8921. * src/main.cc
  8922. * src/DownloadEngine.{h, cc}
  8923. * src/Metalink2RequestGroup.cc
  8924. * src/Peer.cc
  8925. * src/RequestGroup.cc
  8926. * src/MetalinkHelper.cc
  8927. * test/DefaultPieceStorageTest.cc
  8928. * test/MetalinkPostDownloadHandlerTest.cc
  8929. * test/Metalink2RequestGroupTest.cc
  8930. Hide TOTAL SPD when all downloads complete.
  8931. * src/ConsoleStatCalc.cc
  8932. Log target system information.
  8933. * src/main.cc
  8934. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8935. Now --metalink-location accepts a comma-deliminated list of locations.
  8936. * src/MetalinkEntry.{h, cc}
  8937. * test/MetalinkEntryTest.cc
  8938. * src/version_usage.cc
  8939. * src/Metalink2RequestGroup.cc
  8940. * src/Xml2MetalinkProcessor.cc
  8941. * test/Xml2MetalinkProcessorTest.cc
  8942. * doc/aria2c.1.txt
  8943. * doc/aria2c.1
  8944. * src/Util.cc (toUpper)(toLower): Rewritten.
  8945. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Added the ability to detect duplicate download entry which is about to
  8947. download the same file other RequestGroup is downloading.
  8948. * src/RequestGroup.cc
  8949. * src/HttpResponseCommand.cc
  8950. * src/FtpNegotiationCommand.cc
  8951. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8952. Recalculates download progress when loading a control file,
  8953. if the piece length of DownloadContext is different from the one saved
  8954. in the control file. Currently in-flight pieces are ignored.
  8955. * src/DefaultBtProgressInfoFile.cc
  8956. * test/DefaultBtProgressInfoFileTest.cc
  8957. * src/Util.{h, cc}
  8958. * test/UtilTest.cc
  8959. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8960. Do not rotate tiers in announce-list.
  8961. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  8962. AnnounceList::allTiersFailed() used instead to detect whether all
  8963. tiers are tried and failed.
  8964. * test/DefaultBtAnnounceTest.cc
  8965. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  8966. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  8967. * test/AnnounceListTest.cc
  8968. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  8969. clause. Catch RecoverableException instead of DlRetryEx instead.
  8970. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8971. Implemented checksum validation feature(1 checksum for each file)
  8972. The validation takes place after the download.
  8973. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  8974. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  8975. * src/CheckIntegrityCommand.cc: Changed log message.
  8976. * src/Metalink2RequestGroup.cc: Set checksum to
  8977. SingleFileDownloadContext.
  8978. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  8979. PieceHashCheckIntegrity class.
  8980. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  8981. PieceHashCheckIntegrity class.
  8982. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  8983. * src/IteratableValidator.h: New class.
  8984. * src/message.h
  8985. * src/CheckIntegrityEntry.{h, cc}
  8986. * src/IteratableChunkChecksumValidator.{h, cc}
  8987. * src/SingleFileDownloadContext.h
  8988. * src/DownloadCommand.cc
  8989. --allow-overwrite=true is no longer needed to check file integrity
  8990. before download in BitTorrent download.
  8991. * src/RequestGroup.cc (getInitialCommand)
  8992. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  8993. throws exception.
  8994. * src/RequestGroupMan.cc (getInitialCommands)
  8995. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8996. urlencode the given url inside Request::parseUrl(...)
  8997. * src/Request.{h, cc}
  8998. * src/Util.{h, cc}
  8999. * test/RequestTest.cc
  9000. Removed #!metalink3! notation support because it is deleted from
  9001. the metalink specification.
  9002. * src/Request.{h, cc}
  9003. * test/RequestTest.cc
  9004. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9005. Don't connect server before checking file integrity at startup, if
  9006. filesize and output file path are known.
  9007. * src/AbstractCommand.cc
  9008. * src/StreamFileAllocationEntry.cc
  9009. * src/Metalink2RequestGroup.cc
  9010. * src/RequestGroup.{h, cc}
  9011. * src/HttpResponseCommand.cc
  9012. * src/FtpNegotiationCommand.cc
  9013. Added DownloadFailureException. If it is thrown, RequestGroup should
  9014. halt.
  9015. * src/AbstractCommand.cc
  9016. * src/DownloadFailureException.h
  9017. * src/RequestGroup.cc
  9018. Catch RecoverableException, instead of DlAbortEx.
  9019. * src/RequestGroupMan.cc
  9020. * src/FillRequestGroupCommand.cc
  9021. * src/MetaFileUtil.cc
  9022. * src/IteratableChunkChecksumValidator.cc
  9023. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9024. getGID())
  9025. * src/CheckIntegrityCommand.cc
  9026. * src/message.h
  9027. Print gid instead of idx.
  9028. * src/RequestGroupMan.cc
  9029. Removed exception throwers declaration.
  9030. * src/DirectDiskAdaptor.{h, cc}
  9031. * src/SocketCore.{h, cc}
  9032. * src/MultiDiskAdaptor.{h, cc}
  9033. * src/HttpConnection.{h, cc}
  9034. * src/HttpResponse.{h, cc}
  9035. * src/DiskAdaptor.{h, cc}
  9036. * src/CopyDiskAdaptor.{h, cc}
  9037. * src/MultiDiskAdaptor.{h, cc}
  9038. * src/HttpHeaderProcessor.{h, cc}
  9039. * src/AbstractSingleDiskAdaptor.{h, cc}
  9040. * src/Util.{h, cc}
  9041. * test/UtilTest.cc
  9042. * src/DefaultDiskWriter.{h, cc}
  9043. * src/FtpConnection.{h, cc}
  9044. * src/AbstractDiskWriter.{h, cc}
  9045. Removed duplicate code.
  9046. * src/StreamCheckIntegrityEntry.cc
  9047. Removed unnecessary include.
  9048. * src/DiskWriter.h
  9049. Included Exception.h
  9050. * src/option_processing.cc
  9051. Included 2 files and added doc
  9052. * src/TrackerWatcherCommand.cc
  9053. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9054. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9055. Changed CheckIntegrityEntry interface so that it can define
  9056. the action when all the chunk checksums are valid.
  9057. * src/CheckIntegrityEntry.h
  9058. * src/StreamCheckIntegrityEntry.{h, cc}
  9059. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9060. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9061. to exit rather than doing seeding. So, it would be good to toggle this
  9062. behavior.
  9063. * src/CheckIntegrityCommand.cc
  9064. * src/AbstractCommand.cc
  9065. * src/RequestGroup.cc
  9066. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. Reflect the download length of in-flight pieces.
  9068. It makes the download length readout more precise.
  9069. * src/DefaultPieceStorage.{h, cc}
  9070. * test/DefaultPieceStorageTest.cc
  9071. * src/a2functional.h
  9072. * test/a2functionalTest.cc
  9073. Lower CPU load when --max-download-limit is used.
  9074. There is up and down in speed indicator when enabling
  9075. http-pipelining but a download goes well. I think the problem is that
  9076. because http-pipelining is enabled, DownloadCommand is created for
  9077. each segment and in its constructor, PeerStat::downloadStart() is
  9078. called. In PeerStat::downloadStart(), speed calculation object is
  9079. reseted, which makes download speed zero.
  9080. * src/DownloadCommand.cc
  9081. Rewritten using accumulate.
  9082. * src/RequestGroupMan.cc (calculateStat)
  9083. Code clearnup.
  9084. * src/FtpNegotiationCommand.cc
  9085. * src/HttpResponseCommand.cc
  9086. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. Fixed: Can not resume: aria2 reports download already finished.
  9088. * src/AbstractCommand.{h, cc}
  9089. * src/HttpResponseCommand.cc
  9090. * src/FtpNegotiateCommand.cc
  9091. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Now a file is stored in the directory specified in .metalnk file
  9093. (file[@name]).
  9094. * src/Metalink2RequestGroup.cc
  9095. Create the directory structure when opening the file if it doesn't
  9096. exist.
  9097. * src/AbstractDiskWriter.cc
  9098. * src/Util.{h, cc}
  9099. * src/File.h
  9100. * test/UtilTest.cc
  9101. Removed file name comparison
  9102. * src/Metalink2RequestGroup.cc
  9103. * src/HttpResponseCommand.cc
  9104. Rewritten using Util::mkdirs()
  9105. * src/FileEntry.cc (setupDir)
  9106. * test/FileEntryTest.cc
  9107. Updated doc
  9108. * src/SingleFileDownloadContext.h
  9109. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Now SleepCommand dispatches nextCommand when halt is requested.
  9111. It avoids a possible long wait after hitting CTRL-C.
  9112. * src/SleepCommand.{h, cc}
  9113. * src/RequestGroupAware.{h, cc}
  9114. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9116. to open listen port, then remove the port number from the tracker
  9117. request.
  9118. * src/DefaultBtAnnounce.cc
  9119. * test/DefaultBtAnnounceTest.cc
  9120. * test/MockPieceStorage.h
  9121. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9122. them more testable.
  9123. * src/DefaultBtAnnounce.{h, cc}
  9124. * src/DefaultBtContext.{h, cc}
  9125. * src/Util.{h, cc}
  9126. * test/DefaultBtAnnounceTest.cc
  9127. * test/DefaultBtContextTest.cc
  9128. * test/UtilTest.cc
  9129. Added 'B' to upload bytes readout.
  9130. * src/ConsoleStatCalc.cc
  9131. Now the listen port for BitTorrent download is opened when it is
  9132. needed.
  9133. * src/DownloadEngineFactory.cc
  9134. * src/BtSetup.{h, cc}
  9135. * src/PeerListenCommand.{h, cc}
  9136. Now an exception thrown while parsing tracker response is now logged.
  9137. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9138. called, which means no retry is made in this case, assuming a tracker
  9139. has a problem.
  9140. * src/TrackerWatcherCommand.cc
  9141. Fixed: downloading a file whose length is unkown fails.
  9142. * src/DownloadCommand.cc
  9143. Simplified prepareForNextSegment()
  9144. * src/DownloadCommand.cc
  9145. Updated
  9146. * po/POTFILES.in
  9147. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9148. Re-implemented a file listing for Metalink, which was dropped while
  9149. http/ftp/torrent integration was being implemented.
  9150. * src/MetalinkHelper.{h, cc}: New class.
  9151. * test/MetalinkHelperTest.cc
  9152. * src/main.cc
  9153. * src/Metalink2RequestGroup.cc
  9154. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9155. Added the ability to display the detailed torrent file information.
  9156. Now -S option gives not only a file listing, but also total download
  9157. length, info hash, announce URI, piece length, the number of pieces,
  9158. and mode(single or multi-torrent).
  9159. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9160. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9161. KiB)
  9162. * test/UtilTest.cc
  9163. * src/main.cc
  9164. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Added ftp://USER:PASSWD@Servername automatic parsing.
  9166. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9167. _password. Recognize username and password in URI.
  9168. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9169. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9170. * src/RequestFactory.{h, cc}: Removed.
  9171. * src/AuthConfigFactory.{h, cc}: New class.
  9172. * src/FtpConnection.cc: Use AuthConfigFactory.
  9173. * src/HttpRequest.cc: Use AuthConfigFactory.
  9174. * test/HttpRequestTest.cc: Updated.
  9175. * test/RequestTest.cc: Updated.
  9176. * test/AuthConfigFactoryTest.cc: New class.
  9177. * test/RequestFactoryTest.cc: Removed.
  9178. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9179. Use RequestGroup::allDownloadFinished() to decide whether the control
  9180. file should be removed or saved.
  9181. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9182. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9183. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. Use File::renameTo()
  9185. * src/DefaultBtProgressInfoFile.cc
  9186. Added --no-file-allocation-limit command-line option.
  9187. * src/version_usage.cc
  9188. * src/option_processing.cc
  9189. * src/OptionHandlerFactory.cc
  9190. * src/RequestGroup.{h, cc}
  9191. * src/BtCheckIntegrityEntry.cc
  9192. * src/StreamCheckIntegrityEntry.cc
  9193. * src/prefs.h
  9194. * doc/aria2c.1.txt
  9195. * doc/aria2c.1
  9196. Now prealloc is the default value for --file-allocation option.
  9197. * src/version_usage.cc
  9198. * src/option_processing.cc
  9199. * doc/aria2c.1.txt
  9200. * doc/aria2c.1
  9201. Don't URL-encode user-agent.
  9202. * src/HttpRequest.cc
  9203. Updated translations
  9204. * po/LINGUAS: Added nl for Dutch translation.
  9205. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9206. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9207. * po/POTFILES.in: Updated.
  9208. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. Added the ability to recognize url-list in a torrent file.
  9210. The retrieved URLs are attached to the corresponding FileEntry.
  9211. * src/DefaultBtContext.{h, cc}
  9212. * src/FileEntry.{h, cc}
  9213. * test/DefaultBtContextTest.cc
  9214. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9216. after the download finishes.
  9217. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9218. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9219. the data smaller than block length.
  9220. A block length can be specified by constructor's argument.
  9221. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9222. Get a missing piece in the range of given FileEntry. This function is
  9223. not used in the program yet.
  9224. * src/Util.h: Added some macros.
  9225. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9226. Added HTTP/1.1 keep alive and pipelining support.
  9227. See --enable-http-keep-alive and --enable-http-pipelining option.
  9228. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9229. Segment.
  9230. * src/HttpDownloadCommand.{h, cc}
  9231. * src/OptionHandlerFactory.cc
  9232. * src/HttpConnection.{h, cc}
  9233. * src/version_usage.cc
  9234. * src/HttpInitiateConnectionCommand.cc
  9235. * src/FtpInitiateConnectionCommand.cc
  9236. * src/Segment.h
  9237. * src/HttpRequestCommand.{h, cc}
  9238. * src/option_processing.cc
  9239. * src/prefs.h
  9240. * src/HttpResponseCommand.cc
  9241. * src/SegmentMan.{h, cc}
  9242. * src/FtpNegotiateCommand.cc
  9243. * src/HttpProxyResponseCommand.cc
  9244. * src/Request.cc
  9245. * src/HttpRequest.cc
  9246. * src/DownloadCommand.cc
  9247. * test/HttpRequestTest.cc
  9248. * test/RequestTest.cc
  9249. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9251. finished.
  9252. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9253. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9254. catching it inside the method.
  9255. When no file entry is found in a metalink without querying user
  9256. preferences, throw the exception with the error message that suggests
  9257. metalink file is probably broken.
  9258. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9259. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9261. processed.
  9262. * src/RequestGroupMan.cc (removeStoppedGroup)
  9263. Added debug message.
  9264. * src/BtPostDownloadHandler.cc
  9265. * src/MetalinkPostDownloadHandler.cc
  9266. * src/PostDownloadHandler.{h, cc}
  9267. * src/RequestGroup.cc
  9268. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9269. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9270. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9271. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9272. stops and there are any unfinished or in-progress downloads.
  9273. Added the legend of "stat".
  9274. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9275. Throw exception when chunck checksum verification fails.
  9276. * src/DownloadCommand.cc (validatePieceHash): New function.
  9277. * src/PiecedSegment.{h, cc} (clear): New function.
  9278. * src/GrowSegment.{h, cc} (clear): New function.
  9279. * src/Segment.h (clear): New function.
  9280. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9281. * test/SegmentTest.cc
  9282. * test/GrowSegmentTest.cc
  9283. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Do not send referer when redirected.
  9285. * src/Request.cc (redirectUrl)
  9286. * test/RequestTest.cc
  9287. * test/HttpRequestTest.cc
  9288. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. Implemented BitTorrent/http/ftp integrated download.
  9290. I've rewritten lots of files and now some headers have forward
  9291. class declarations to reduce compile time.
  9292. The implementation is extremely alpha stage, I recommend to use this
  9293. for testing purpose only.
  9294. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9295. Fixed the compilation error on 64bit platform.
  9296. * test/HttpHeaderProcessorTest.cc
  9297. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9298. Merged Ross's patch that fixes compilation problem in MinGW
  9299. * test/DefaultBtProgressInfoFileTest.cc
  9300. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9301. Updated fr.po by sebone
  9302. * po/fr.po
  9303. Updated man page.
  9304. * doc/aria2c.1.txt
  9305. * Release 0.11.3
  9306. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9307. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9308. failure in Metalink.
  9309. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9310. Automatically save *.aria2 control file of http/ftp download in every
  9311. 60 seconds.
  9312. * src/AutoSaveCommand.{h, cc}: New class.
  9313. * src/TimeBasedCommand.{h, cc}: New class.
  9314. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9315. Disable parameterized URI support by default. Added -P option to
  9316. enable the feature.
  9317. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9318. * src/OptionHandlerFactory.cc
  9319. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9320. Updated Japanese translation.
  9321. * po/ja.po
  9322. Updated man page.
  9323. * doc/aria2c.1.txt
  9324. * Release 0.11.3-rc
  9325. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9326. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9327. it is successful, then renamed to *.aria2.
  9328. This prevents *.aria2 file from being truncated or corrupted when
  9329. file system becomes out of space.
  9330. * src/DefaultBtProgressInfoFile.cc (save)
  9331. * src/SegmentMan.cc (save)
  9332. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9333. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9334. Reduced the fragmentation of bitfield in http/ftp download.
  9335. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9336. * test/BitfieldManTest.cc
  9337. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Added the ability to disable segmented download in .metalink.
  9339. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9340. 'url' tag.
  9341. * src/MetalinkEntry.{h, cc}
  9342. * src/RequestResource.{h, cc}
  9343. * src/MetalinkRequestInfo.cc
  9344. * src/Xml2MetalinkProcessor.cc
  9345. * test/Xml2MetalinkProcessorTest.cc
  9346. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. Added parameterized URI support.
  9348. * src/main.cc: -Z option added.
  9349. * src/OptionHandlerFactory.cc
  9350. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9351. * src/PStringDatum.h: New class.
  9352. * src/PStringSegment.{h,cc}: New class.
  9353. * src/PStringNumLoop.h: New class.
  9354. * src/PStringSelect.h: New class.
  9355. * src/NumberDecorator.h: New class.
  9356. * src/FixedWidthNumberDecorator.h: New class.
  9357. * src/AlphaNumberDecorator.h: New class.
  9358. * src/PStringVisitor.h: New class.
  9359. * src/PStringBuildVisitor.{h,cc}: New class.
  9360. * src/ParameterizedStringParser.{h,cc}: New class.
  9361. * src/Util.{h,cc}
  9362. (isNumber): New function.
  9363. (isLowercase): New function.
  9364. (isUppercase): New function.
  9365. (alphaToNum): New function.
  9366. * test/ParameterizedStringParserTest.cc: New class.
  9367. * test/AlphaNumberDecoratorTest.cc: New class.
  9368. * test/PStringBuildVisitorTest.cc: New class.
  9369. * test/UtilTest.cc
  9370. (testIsNumber): New function.
  9371. (testIsLowercase): New function.
  9372. (testIsUppercase): New function.
  9373. (testAlphaToNum): New function.
  9374. Added '\n' after the error message
  9375. * src/RequestInfo.h (printDownloadAbortMessage)
  9376. Added auto file renaming feature in http(s)/ftp download.
  9377. * src/main.cc: Added --auto-file-renaming command-line option.
  9378. * src/OptionHandlerFactory.cc
  9379. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9380. * src/RequestGroup.{h, cc}
  9381. (shouldCancelDownloadForSafety): Rewritten
  9382. (tryAutoFileRenaming): New function.
  9383. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9384. * src/HttpResponseCommand.cc
  9385. (executeInternal): Removed the call to RequestGroupMan::
  9386. isSameFileBeingDownloaded()
  9387. * src/FtpNegotiateCommand.cc
  9388. (recvSize): Removed the call to RequestGroupMan::
  9389. isSameFileBeingDownloaded()
  9390. * test/RequestGroupTest.cc: New class.
  9391. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9392. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9393. IO.
  9394. * src/DefaultBtProgressInfoFile.cc
  9395. * src/MetaFileUtil.cc
  9396. * src/SimpleLogger.cc
  9397. * src/SegmentMan.cc
  9398. * src/Util.cc
  9399. * src/Platform.cc
  9400. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9402. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9404. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9405. Fixed the bug that prevents file allocation is not done when
  9406. dowloading multi-torrent file.
  9407. * src/AbstractDiskWriter.cc (openFile)
  9408. Increase the maximum number of -j option from 15 to 45.
  9409. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9410. Added fr.po, thanks to Charles Landemaine.
  9411. * po/fr.po
  9412. * po/LINGUAS
  9413. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9414. gcc 3.4.4 support:
  9415. * src/DefaultBtContext.cc: int32_t -> int
  9416. * src/main.cc: int -> int32_t, int32_t -> int
  9417. * src/messageDigest.h: uint32_t -> unsigned int
  9418. * src/NameResolver.h: int32_t -> int
  9419. * src/PeerConnection.cc: int -> int32_t
  9420. * src/SpeedCalc.cc: int32_t -> int
  9421. * src/TrackerUpdateCommand.h: int -> int32_t
  9422. * src/Util.cc: int32_t -> int
  9423. * src/Util.h: int32_t -> int
  9424. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  9425. * test/AnnounceListTest.cc: int -> int32_t
  9426. * test/ChunkedEncodingTest.cc: int -> int32_t
  9427. * test/DataTest.cc: int -> int32_t
  9428. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  9429. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  9430. * test/DefaultPieceStorageTest.cc: int -> int32_t
  9431. * test/FeatureConfigTest.cc: int -> int32_t
  9432. * test/MetalinkEntryTest.cc: int -> int32_t
  9433. * test/MockBtRequestFactory.h: int -> int32_t
  9434. * test/MockPieceStorage.h: int -> int32_t
  9435. * test/OptionTest.cc: int -> int32_t
  9436. * test/RequestTest.cc: int -> int32_t
  9437. * test/SegmentManTest.cc: int -> int32_t
  9438. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  9439. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9440. Move sleep functions to Util class:
  9441. * src/Util.cc
  9442. (sleep): New function.
  9443. (usleep): New function.
  9444. * src/DownloadCommand.cc: sleep -> Util::sleep
  9445. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  9446. MinGW build enhancements. The following files are added:
  9447. * src/timegm.{c,h}
  9448. Changes to support the above new files:
  9449. * configure.ac
  9450. * src/Makefile.am
  9451. * src/a2time.h
  9452. * src/Util.cc:
  9453. * src/strptime.c: Added support for %Z option.
  9454. Fixed MinGW non-blocking bug.
  9455. * src/SocketCore.cc
  9456. * src/HttpRequestCommand.cc
  9457. Miscellenous build fixes/enhancements.
  9458. * configure.ac: Added summary report.
  9459. * src/Platform.h: Tweaked #include's.
  9460. * src/a2netcompat.h: Tweaked #include's.
  9461. * src/strptime.h: Tweaked #include's.
  9462. * src/gai_strerror.c: Tweaked #include's.
  9463. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  9464. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9465. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9466. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. Increased the initial connection size in BitTorrent download to 40.
  9468. * src/BtRuntime.h
  9469. Added the usage message of --peer-id-prefix option.
  9470. * src/main.cc
  9471. * Release 0.11.2
  9472. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9473. MessageDigestHelper is introduced in order to simplify the use
  9474. of message digest. Removed repeated code.
  9475. The message digest algorithm is now specified by string, like "sha1",
  9476. "md5".
  9477. * src/messageDigest.{h, cc}
  9478. * src/MessageDigestHelper.{h, cc}: New class.
  9479. * src/DefaultPieceStorage.cc
  9480. * src/DefaultBtContext.{h, cc}
  9481. (computeFastSet): New function.
  9482. (setInfoHash): Added for unit testing.
  9483. (setNumPieces): Added for unit testing.
  9484. * src/DefaultBtInteractive.cc
  9485. * src/BtPieceMessage.cc
  9486. * src/Peer.cc
  9487. * src/Checksum.h
  9488. * src/message.h
  9489. * src/IteratableChecksumValidator.h
  9490. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9491. inside it.
  9492. * src/SegmentMan.{h, cc}
  9493. (checkIntegrity): Removed.
  9494. * src/IteratableChunkChecksumValidator.{h, cc}
  9495. * src/Util.h
  9496. (sha1Sum): Removed.
  9497. (simpleMessageDigest): Removed.
  9498. (fileChecksum): Removed.
  9499. (computeFastSet): Removed.
  9500. * src/ShaVisitor.cc
  9501. * src/ChunkChecksum.h
  9502. * src/DownloadCommand.cc
  9503. Removed messageDigest virtual functions.
  9504. * src/MultiDiskAdaptor.{h, cc}
  9505. * src/DiskAdaptor.h
  9506. * src/ByteArrayDiskWriter.h
  9507. * src/DiskWriter.h
  9508. * src/DiskAdaptorWriter.h
  9509. * src/AbstractSingleDiskAdaptor.{h, cc}
  9510. * src/AbstractDiskWriter.{h, cc}
  9511. Fixed comilation error when message digest is disabled.
  9512. * src/MetalinkEntry.{h, cc}
  9513. * src/MetalinkRequestInfo.cc
  9514. Removed srandom and random.
  9515. * src/SimpleRandomizer.h
  9516. Added size() virtual function to DiskAdaptor
  9517. * src/MultiDiskAdaptor.h
  9518. Fixed the bug that causes that files are not opened correctly in
  9519. multi-file torrent.
  9520. * src/TorrentRequestInfo.cc
  9521. * src/MultiDiskAdaptor.cc
  9522. Added SHA256 support
  9523. * src/messageDigest.cc
  9524. * src/Xml2MetalinkProcessor.cc
  9525. Show supported message digest algorithms
  9526. * src/main.cc
  9527. Updated contact info.
  9528. * src/main.cc
  9529. Applied Ross's patch
  9530. * src/a2netcompat.h
  9531. * src/main.cc
  9532. Fixed the bug that prevents a remote metalink from not being processed
  9533. even if '-o foo.metalink' is specified.
  9534. * src/MetalinkRequestInfo.cc
  9535. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. Merged Dan's patch:
  9537. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9538. Use va_copy to avoid core dump on amd64:
  9539. * src/SimpleLogger.cc
  9540. Updated contact info.
  9541. * src/main.cc
  9542. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9543. digest is not available.
  9544. * src/MetalinkEntry.h
  9545. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. Make a2netcompat.h include a2io.h to fix compilation error:
  9547. * src/a2netcompat.h
  9548. * src/SocketCore.cc: Removed include of a2io.h
  9549. * src/Util.cc: Removed include of a2io.h
  9550. Gather time related functions to a2time.h:
  9551. * src/a2time.h: New file.
  9552. * src/DefaultPeerStorage.cc
  9553. * src/SimpleLogger.cc
  9554. * src/Util.{h, cc}
  9555. * src/SimpleRandomizer.h
  9556. * src/TimeA2.{h,cc}
  9557. * src/DownloadCommand.cc
  9558. * src/main.cc
  9559. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9560. a2netcompat.h:
  9561. * src/NameResolver.cc
  9562. Fixed compilation error without openssl:
  9563. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9564. Added default block to suppress compiler warnings:
  9565. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9566. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9567. MinGW build enhancements. The following files are added:
  9568. * src/gai_strerror.{c,h}
  9569. * src/gettimeofday.{c,h}
  9570. Changes to support the above new files:
  9571. * configure.ac
  9572. * src/Makefile.am
  9573. * src/a2netcompat.h
  9574. * src/TimeA2.cc
  9575. * src/DefaultPeerStorage.cc
  9576. * src/NameResolver.cc: removed mingw_strerror() function.
  9577. * src/SocketCore.cc: removed mingw_strerror() function.
  9578. Miscellaneous MinGW build fixes.
  9579. * src/a2io.h: Use _lseeki64() instead of lseek()
  9580. * src/common.h
  9581. * src/DefaultFileAllocator.cc
  9582. * src/GlowFileAllocator.cc
  9583. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9584. * src/NameResolver.cc
  9585. (callback): Changed int32_t to int.
  9586. (resolve): Changed int32_t to int.
  9587. * src/Platform.cc
  9588. * src/Platform.h
  9589. * test/MultiDiskWriterTest.cc
  9590. * test/PeerMessageUtilTest.cc
  9591. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9592. Other enhancements and fixes.
  9593. * src/HttpRequestCommand.cc
  9594. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9595. * src/SocketCore.cc:
  9596. (error): New function to abstract errno/WSAGetLastError().
  9597. (errorMsg): New function to abstract errno/WSAGetLastError().
  9598. (initiateSecureConnection): Added more detailed error reporting.
  9599. * src/SocketCore.h: Added private variable blocking, to allow
  9600. proper handling of OpenSSL psuedo-errors.
  9601. * src/message.h
  9602. (EX_SSL_INIT_FAILURE)
  9603. (EX_SSL_IO_ERROR)
  9604. (EX_SSL_PROTOCOL_ERROR)
  9605. (EX_SSL_UNKNOWN_ERROR)
  9606. (EX_SSL_CONNECT_ERROR)
  9607. (EX_SOCKET_BLOCKING)
  9608. (EX_SOCKET_NONBLOCKING)
  9609. (EX_SOCKET_UNKNOWN_ERROR)
  9610. * src/Util.cc
  9611. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9612. reserved name.
  9613. (httpGMT): Fixed typo.
  9614. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Merged Ross's win32 patch(manually)
  9616. In the course of merging, following files are added.
  9617. * src/strptime.{h,c}
  9618. * src/libgen.{h,c}
  9619. * src/inet_aton.{h,c}
  9620. * src/Platform.{h,cc}
  9621. * src/localtime_r.{h,c}
  9622. * src/getaddrinfo.{h,c}
  9623. I've gethered network related things, and put them to following file:
  9624. * src/a2netcompat.h
  9625. Also io related things are put to following file:
  9626. * src/a2io.h
  9627. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9628. * src/message.h
  9629. (MSG_ALLOCATION_COMPLETED)
  9630. (EX_TOO_LARGE_FILE)
  9631. (EX_SIZE_MISMATCH)
  9632. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9633. (EX_INVALID_CHUNK_CHECKSUM)
  9634. (EX_INVALID_RANGE_HEADER)
  9635. * src/FileAllocationCommand.cc
  9636. * src/HttpResponse.cc
  9637. * src/RequestGroup.cc
  9638. * src/MultiDiskAdaptor.cc
  9639. * src/OptionHandlerImpl.h
  9640. * src/HttpResponseCommand.cc
  9641. * src/FtpNegotiateCommand.cc
  9642. * src/IteratableChecksumValidator.cc
  9643. * src/SegmentMan.cc
  9644. * src/ChunkChecksumValidator.cc
  9645. Added Randomizer::getRandomNumber(long int)
  9646. * src/Randomizer.h (getRandomNumber)
  9647. * src/SimpleRandomizer.h (getRandomNumber)
  9648. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9649. * src/Util.cc (randomAlpha): Use this new function.
  9650. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9651. Converted int's to in32_t. long long int's are also converted to
  9652. int64_t
  9653. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Fixed the bug that prevents cookies from being sent to the server
  9655. if the domain of cookie is FQDN and starts with ".".
  9656. * src/Cookie.cc (match)
  9657. To add the ability to change peer id.
  9658. * src/DefaultBtContext.h
  9659. (_peerIdPrefix): New variable
  9660. (setPeerIdPrefix): New function.
  9661. * src/torrentRequestInfo.cc
  9662. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9663. DefaultBtContext.
  9664. * src/main.cc (main): Added peer-id-prefix command-line option.
  9665. The usage message is not added yet.
  9666. * src/DefaultBtContext.cc
  9667. (generatePeerId): Use _peerIdPrefix.
  9668. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9669. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. Fixed the bug that prevents filename in content-disposition from
  9671. being retrieved when filename is not quoted.
  9672. * src/Util.cc (getContentDispositionFilename)
  9673. Fixed the bug that causes infinate loop and memory leak when file open
  9674. operation failed.
  9675. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9676. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9677. Fixed the bug that causes segfault when all URIs specified are
  9678. unsupported.
  9679. * src/RequestGroupMan.cc (getInitialCommands)
  9680. Check if RequestGroup::createNextCommand() returns empty list of
  9681. commands.
  9682. * src/RequestGroup.cc (createNextCommand)
  9683. Change log level from info to error so that users can notice that
  9684. an error occurred.
  9685. Fixed the bug that causes segfault when a zero-sized file is
  9686. downloaded.
  9687. * src/BitfieldMan.cc (isAllBitSet)
  9688. Return true if bitfieldLength is 0.
  9689. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9690. * src/main.cc
  9691. (showUsage): Added 3 usage examples for metalink download.
  9692. Replace MetalinkChunkChecksum with ChunkChecksum.
  9693. * src/MetalinkChunkChecksum.h: Removed.
  9694. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9695. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9696. * src/Xml2MetalinkProcessor.cc
  9697. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9698. * src/MetalinkRequestInfo.cc (execute)
  9699. * Release 0.11.1
  9700. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9701. Reads URIs from stdin when "-i -" is specified.
  9702. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9703. * src/UriListParser.h, src/UriListParser.cc: New class.
  9704. * src/StreamUriListParser.h: New class.
  9705. * src/FileUriListParser.h: New class.
  9706. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9707. instead of UriFileListParser.
  9708. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9709. Made console readout more readable.
  9710. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9711. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9712. Fix the bug that causes -s option not to work.
  9713. * src/main.cc (main)
  9714. * src/a2algo.h: New file.
  9715. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9716. Create directory structure specified in metalink file.
  9717. * src/RequestGroup.h, src/RequestGroup.cc
  9718. (initAndOpenFile): Create a directory to store files if it does not
  9719. exist.
  9720. (getDir): New function.
  9721. Added ETA and download speed for an individual file to readout.
  9722. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9723. * src/RequestGroup.h
  9724. (calculateDownloadSpeed): New function.
  9725. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Made -S option work with metalink file and provided selective download
  9727. to metalink.
  9728. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9729. (filename): Removed.
  9730. (file): New variable.
  9731. (size): Removed.
  9732. (operator=): Updated.
  9733. (getPath): New function.
  9734. (getLength): New function.
  9735. (toFileEntry): New function.
  9736. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9737. (execute): Use toStream.
  9738. (showFileEntry): Removed.
  9739. * src/MetalinkRequestInfo.h
  9740. (targetFiles): New variable.
  9741. (setTargetFiles): New variable.
  9742. * src/MetalinkRequestInfo.cc
  9743. (execute): Added the ability to print file information included in
  9744. a metalink file.
  9745. Added selective download mode to metalink.
  9746. * src/main.cc
  9747. (showUsage): Updated to denote that -S and --select-file options are
  9748. applicable to metalink.
  9749. * src/FileEntry.h
  9750. (operator=): New function.
  9751. (getBasename): New function.
  9752. (getDirname): New function.
  9753. * src/Util.h, src/Util.cc
  9754. (toStream): New function.
  9755. * src/Xml2MetalinkProcessor.cc: Updated.
  9756. Made aria2 work with metalink with directory structure.
  9757. * src/File.h, src/File.cc
  9758. (getBasename): New function.
  9759. (getDirname): New function.
  9760. * src/RequestGroup.h, src/RequestGroup.cc
  9761. (_topDir): New variable.
  9762. (setTopDir): New function.
  9763. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9764. Rewrote HTTP header parsing with stringstream.
  9765. * src/HttpConnection.h, src/HttpConnection.cc
  9766. (HttpRequestEntry): New class.
  9767. (headerBuf): Removed.
  9768. (headerBufLength): Removed.
  9769. (outstandingHttpRequests): Now its element type is
  9770. HttpRequestEntryHandle.
  9771. (findEndOfHeader): Removed.
  9772. (receiveResponse): Rewritten.
  9773. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9774. Updated doc for -j option to notice that it should be used with -i
  9775. option.
  9776. * src/main.cc (showUsage)
  9777. Removed unused classes.
  9778. * src/RequestInfo.h
  9779. (FileInfo): Removed.
  9780. (checksum): Removed.
  9781. (fileInfo): Removed.
  9782. (setChecksum): Removed.
  9783. (getChecksum): Removed.
  9784. (getFileInfo): Removed.
  9785. Use ISO units.
  9786. * src/ConsoleDownloadEngine.cc
  9787. * src/TorrentConsoleDownloadEngine.cc
  9788. * src/Util.cc (abbrevSize)
  9789. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Added the default listening ports to the help message.
  9791. * src/main.cc (showUsage)
  9792. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9793. Reduce the number of calls to gettimeofday to lower CPU load.
  9794. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9795. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9796. * src/Peer.h (calculateUploadSpeed): New function.
  9797. (calculateDownloadSpeed): New function.
  9798. * src/DefaultPeerStorage.cc
  9799. (CalculateStat): Added _now variable.
  9800. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9801. and Peer::calculateUploadSpeed(const struct timeval&)
  9802. Drop connection if no request or piece message is exchanged in
  9803. a certain interval.
  9804. * src/DefaultBtInteractive.h
  9805. (btRuntime): New variable.
  9806. (inactiveCheckPoint): New variable.
  9807. (checkActiveInteraction): New function.
  9808. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  9809. request or piece message is received.
  9810. (checkActiveInteraction): New function.
  9811. (doInteractionProcessing): Call checkActiveInteraction.
  9812. Fixed the bug that causes remote Metalink and Torrent files are not
  9813. processed.
  9814. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  9815. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9816. Changed format of log file.
  9817. * src/SimpleLogger.cc
  9818. * Release 0.11.0
  9819. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9820. * src/AbstractCommand.cc
  9821. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  9822. MSG_MAX_TRY from error to info.
  9823. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  9824. * src/message.h
  9825. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  9826. (MSG_DOWNLOAD_ABORTED): Added %s.
  9827. (MSG_RESTARTING_DOWNLOAD): Added %s.
  9828. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  9829. * src/PeerAbstractCommand.cc
  9830. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  9831. * src/Request.h
  9832. (cookieBox): Made ShardHandle.
  9833. * src/RequestGroup.h, src/RequestGroup.cc
  9834. (createNextCommandWithAdj): New function.
  9835. * src/FileAllocationCommand.cc
  9836. (executeInternal): Use createNextCommandWithAdj().
  9837. * src/CheckIntegrityCommand.cc
  9838. (executeInternal): Use createNextCommandWithAdj().
  9839. Added --load-cookies command-option.
  9840. * src/OptionHandlerFactory.cc
  9841. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  9842. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  9843. Now aria2 can handle cookie's expiration date.
  9844. * src/Cookie.h (expires): Changed its type to time_t.
  9845. * src/main.cc: Added --load-cookies command-line option.
  9846. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  9847. * src/Util.h, src/Util.cc (httpGMT): New function.
  9848. * src/Request.cc (Request): Initialize cookieBox using
  9849. CookieBoxFactory.
  9850. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  9851. * src/CookieParser.h, src/CookieParser.cc: New class.
  9852. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  9853. * src/HttpResponseCommand.cc
  9854. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  9855. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  9856. download.
  9857. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9858. Added -j command-line option.
  9859. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9860. * src/main.cc
  9861. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  9862. Rewritten using stringstream.
  9863. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  9864. Rewritten using stringstream.
  9865. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Make download size shown in MB, KB.
  9867. * src/ConsoleDownloadEngine.h (sendStatistics)
  9868. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  9869. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. Accept incoming connections if download rate is low.
  9871. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  9872. (_lowestSpeedLimit): New variable.
  9873. (setLowestSpeedLimit): New function.
  9874. (execute): Accept incoming connections if download rate is low.
  9875. MAX_PEERS is ignored in this case.
  9876. Disable PREF_OUT in multiple concurrent download:
  9877. * src/RequestGroup.h, src/RequestGroup.cc
  9878. (setUserDefinedFilename): New function.
  9879. * src/DownloadEngineFactory.cc
  9880. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  9881. concurrent download.
  9882. * src/DefaultSegmentManFactory.cc
  9883. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  9884. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9885. RequestGroup::getNextCommand() was renamed to createNextCommand().
  9886. Added its overloaded method.
  9887. * src/RequestGroup.h
  9888. (_numConcurrentCommand): New variable.
  9889. (setNumConcurrentCommand): New function.
  9890. * src/RequestGroup.cc
  9891. Abort download if same file is being downloaded concurrently.
  9892. * src/RequestGroup.h, src/RequestGroupMan.cc
  9893. (isSameFileBeingDownloaded): New function.
  9894. * src/HttpResponseCommand.cc (executeInternal)
  9895. * src/FtpNegotiateCommand.cc (recvSize)
  9896. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  9897. * main.cc: Added help message for -i option.
  9898. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9899. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  9900. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  9901. * src/MetalinkEntry.h
  9902. (checksum): Changed to ChecksumHandle
  9903. * src/MetalinkRequestInfo.cc
  9904. (checksum): Changed to ChecksumHandle
  9905. * src/File.cc
  9906. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  9907. * src/common.h
  9908. (DIR_OPEN_MODE): New definition
  9909. * src/RequestGroup.cc
  9910. (prepareForNextAction): Added an argument.
  9911. * src/message.h
  9912. (MSG_GOOD_CHECKSUM): New definition
  9913. (MSG_BAD_CHECKSUM): New definition
  9914. * src/HttpResponseCommand.cc
  9915. (handleDefaultEncoding): Continue download sequence in new
  9916. non-segmented download.
  9917. * src/FileAllocationEntry.h
  9918. (_nextDownloadCommand): New variable.
  9919. * src/DownloadCommand.cc
  9920. (prepareForNextSegment): Create ChecksumCommand if checksum is
  9921. available.
  9922. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  9923. * src/IteratableChecksumValidator.h,
  9924. src/IteratableChecksumValidator.cc: New class.
  9925. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  9926. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Change file mode to 666:
  9928. * src/common.h (OPEN_MODE): New definition.
  9929. * src/File.cc
  9930. * src/Util.cc
  9931. * src/Directry.cc
  9932. * src/AbstractDiskWriter.cc
  9933. Change the level of log message "download aborted" to debug:
  9934. * src/PeerAbstractCommand.cc (execute)
  9935. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  9936. * src/TrackerWatcherCommand.cc
  9937. (createCommand): Sleep some seconds after request failed.
  9938. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  9939. then abort tracker request.
  9940. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9941. * Added the simultaneous download feature.
  9942. * src/main.cc: Print "Exception caught: " when exception is caught.
  9943. Use CUIDCounter instead of BtRuntime::getNewCuid():
  9944. * src/ActivePeerConnectionCommand.cc
  9945. * src/PeerInteractionCommand.cc
  9946. * src/BtRuntime.h
  9947. (cuidCounter): Removed.
  9948. (getNewCuid): Removed.
  9949. * src/DownloadEngineFactory.cc
  9950. * src/PeerListenCommand.cc
  9951. * src/TrackerUpdateCommand.cc
  9952. * src/PeerInitiateConnectionCommand.cc
  9953. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. * src/PeerAbstractCommand.cc
  9955. (onAbort): Call PeerStorage::returnPeer()
  9956. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  9957. (incomingPeers): New variable.
  9958. (addIncomingPeer): New function.
  9959. (returnPeer): New function.
  9960. (onErasingPeer): New function.
  9961. (addPeer): push_back -> push_front
  9962. (getActivePeers): Rewritten.
  9963. (calculateStat): Rewritten.
  9964. * src/PeerStorage.h
  9965. (TransferStat::copy): New function.
  9966. (TransferStat::TransferStat): New function.
  9967. (TransferStat::operator=): New function.
  9968. (addIncomingPeer): New function.
  9969. (returnPeer): New function.
  9970. * src/PeerListenCommand.cc
  9971. (execute): Use PeerStorage::addIncomingPeer() instead of
  9972. Peer::addPeer().
  9973. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9974. Connect to a peer actively when download speed is lower than specified
  9975. speed in torrent download:
  9976. * src/ActivePeerConnectionCommand.h: New class.
  9977. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9978. * src/HttpRequest.cc (createRequest): url-encode user-agent
  9979. * src/main.cc: Fixed the bug that prevents download if .netrc
  9980. doesn't exist.
  9981. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. To cache resolved hostname:
  9983. * src/AbstractCommand.h, src/AbstractCommand.cc
  9984. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  9985. Added dns cache.
  9986. * src/FtpInitiateConnectionCommand.cc
  9987. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  9988. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  9989. NameResolver working without ares.
  9990. * src/TorrentRequestInfo.cc
  9991. (execute): Don't cache dns in torrent download.
  9992. * src/HttpInitiateConnectionCommand.cc
  9993. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  9994. * src/DNSCache.h: New class.
  9995. * src/UrlRequestInfo.cc
  9996. (execute): Use dns cache.
  9997. In http request, suppress port number in http request header if port
  9998. is 80 or 443:
  9999. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10000. request header if port is 80 or 443.
  10001. (createProxyRequest): Allways send port number.
  10002. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10003. To add the command-line option which disables netrc support:
  10004. * src/OptionHandlerFactory.cc
  10005. (createOptionHandlers): Added PREF_NO_NETRC.
  10006. * src/main.cc: Added -n option.
  10007. * src/prefs.h (PREF_NO_NETRC): New definition.
  10008. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10009. V_TRUE.
  10010. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10011. is V_FALSE. This may get configurable in the future release.
  10012. To clear peer's error status by time basis:
  10013. * src/PeerAbstractCommand.cc
  10014. (onAbort): Call Peer::startBadCondition().
  10015. * src/Peer.h, src/Peer.cc
  10016. (error): Removed.
  10017. (_badConditionStartTime): New variable.
  10018. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10019. (startBadCondition): New function.
  10020. (isGood): New function.
  10021. * src/DefaultPeerStorage.cc
  10022. (addPeer): Use Peer::isGood().
  10023. (FindFinePeer): Use Peer::isGood().
  10024. Always include port number in http request header:
  10025. * src/HttpRequest.cc (getHostText): Always include port number in
  10026. http request header.
  10027. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10028. To the ability to read options from a config file:
  10029. * src/main.cc: Command-line parameter validation is delegated to
  10030. OptionHandler class.
  10031. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10032. * src/Option.h, src/Option.cc (clear): New function.
  10033. * src/OptionParser.h, src/OptionParser.cc: New class.
  10034. * src/OptionHandler.h: New class.
  10035. * src/NameMatchOptionHandler.h: New class.
  10036. * src/OptionHandlerImpl.h: New classes.
  10037. * src/prefs.h: '_' -> '-'
  10038. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10039. (FTP_PASV): New definition.
  10040. * src/Util.h, src/Util.cc (getRealSize): New function.
  10041. To disable netrc support if .netrc file does not have correct
  10042. permissions:
  10043. * src/File.h, src/File.cc (mode): New function.
  10044. To prevent confidential information to be logged:
  10045. * src/HttpConnection.h, src/HttpConnection.cc
  10046. (eraseConfidentialInfo): New function.
  10047. (sendRequest): Call eraseConfidentialInfo().
  10048. (sendProxyRequest): Call eraseConfidentialInfo().
  10049. * src/main.cc: Validate permissions of .netrc file.
  10050. To add --user-agent command-line option:
  10051. * src/main.cc: Added new command line option: --user-agent
  10052. * src/prefs.h (PREF_USER_AGENT): New definition.
  10053. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10054. parameter to HttpRequest object.
  10055. * src/AbstractProxyRequestCommand.cc
  10056. (executeInternal): Set user-agent option parameter to HttpRequest
  10057. object.
  10058. Marged the patches from Dan Fandrich.
  10059. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10060. Use filename and size from Metalink file instead of sending HEAD
  10061. request:
  10062. * src/UrlRequestInfo.h
  10063. (_filename): New variable.
  10064. (_totalLength): New variable.
  10065. (setTotalLength): New variable.
  10066. (setFilename): New variable.
  10067. * src/MetalinkRequestInfo.cc
  10068. (execute): Set filename and size to UrlRequestInfo
  10069. * src/UrlRequestInfo.cc
  10070. (execute): Use filename and size from Metalink instead of seding
  10071. HEAD request to servers.
  10072. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. To add the ability to resume downloading a partially downloaded file
  10074. which is downloaded from the beginning:
  10075. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10076. takes this role.
  10077. * src/main.cc: Added -c option.
  10078. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10079. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10080. * src/prefs.h (PREF_CONTINUE): New definition.
  10081. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10082. * src/DefaultDiskWriter.cc
  10083. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10084. * src/AbstractDiskWriter.h
  10085. (glowFileAllocator): New variable.
  10086. * src/AbstractDiskWriter.cc
  10087. (openExistingFile): Now preallocate file space from the end of the
  10088. existing file if totalLength argument is specified and grater than 0.
  10089. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10090. to download exists in local, continue the download of the file.
  10091. --allow-overwrite=true is assumed in this context.
  10092. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10093. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10094. Throw exception if --check-integrity=true is specified but chunk
  10095. checksums are not provided:
  10096. * src/UrlRequestInfo.cc
  10097. Do not print URLs to stdout:
  10098. * src/UrlRequestInfo.cc
  10099. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10100. * src/Request.h: Use AuthResolver to get authentication information.
  10101. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10102. set to RequestFactory object.
  10103. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10104. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10105. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10106. create Request object.
  10107. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10108. To integrate Netrc into exsiting classes:
  10109. * src/Request.h
  10110. (_userDefinedAuthConfig): New variable.
  10111. (findNetrcAuthenticator): New function.
  10112. (segment): Removed.
  10113. (setUserDefinedAuthConfig): New function.
  10114. (resolveHttpAuthConfigItem): New function.
  10115. (resolveFtpAuthConfigItem): New function.
  10116. (resolveHttpProxyAuthConfigItem): New function.
  10117. * src/HttpRequest.h
  10118. (authConfig): Removed.
  10119. (proxyAuthConfig): Removed.
  10120. (setAuthConfig): Removed.
  10121. (setProxyAuthConfig): Removed.
  10122. * src/UrlRequest.h
  10123. (getHeadResult): Added a parameter: authConfigHandle
  10124. * src/common.h
  10125. (SingletonHolder.h): New include.
  10126. * src/main.cc
  10127. (Netrc.h): New include.
  10128. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10129. Added initial value of PREF_NETRC_PATH.
  10130. Added the initialization of netrc.
  10131. * src/AuthConfig.h: New class.
  10132. * src/prefs.h
  10133. (PREF_NETRC_PATH): New definition.
  10134. * src/HttpAuthConfig.h: Removed.
  10135. * src/Netrc.cc
  10136. (getRequiredNextToken): New function.
  10137. (skipMacdef): New function.
  10138. (parse): Rewritten.
  10139. * src/Netrc.h
  10140. (getRequiredNextToken): New function.
  10141. (skipMacdef): New function.
  10142. * src/Util.h, src/Util.cc
  10143. (getHomeDir): New function.
  10144. * src/TrackerWatcherComand.cc
  10145. (createRequestCommand): Use AuthConfig.
  10146. * src/FtpConnection.cc
  10147. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10148. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10149. * src/Request.cc
  10150. (findNetrcAuthenticator): New function.
  10151. (resolveHttpAuthConfigItem): New function.
  10152. (resolveFtpAuthConfigItem): New function.
  10153. (resolveHttpProxyAuthConfigItem): New function.
  10154. * src/UrlRequestInfo.cc: Use AuthConfig.
  10155. * src/HttpRequest.cc
  10156. (createRequest): Use authConfig.
  10157. (getProxyAuthString): Use authConfig.
  10158. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10159. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10160. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10161. To reduce overhead to find commands whose socket is either
  10162. readable or writable in the download engine loop:
  10163. * src/Command.h, src/Command.cc
  10164. (STATUS): New enum.
  10165. (status): New variable.
  10166. (statusMatch): New function.
  10167. (setStatusActive): New function.
  10168. (setStatusInactive): New function.
  10169. * src/DownloadEngine.h, src/DownloadEngine.cc
  10170. (executeCommand): New function.
  10171. (run): Simplified.
  10172. (waitData): Call Command::setStatusActive() when command's socket is
  10173. readable or writable.
  10174. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10175. To handle Segment as SegmentHandle:
  10176. * src/AbstractCommand.cc (execute): Rewritten.
  10177. * src/SegmentMan.h: Segment -> SegmentHandle
  10178. Introducded HttpResponse class, HttpRequest class to improve code
  10179. extensiveness and make it clear:
  10180. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10181. HttpResponse class.
  10182. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10183. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10184. * src/HttpConnection.cc: Contruction of http request were moved to
  10185. HttpRequest class.
  10186. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10187. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10188. * src/HttpAuthConfig.h: New class.
  10189. * src/Range.h: New class.
  10190. To make FtpTunnel{Request, Response}Command and
  10191. HttpProxy{Request, Response}Command derived from
  10192. AbstractProxy{Request, Response}Command:
  10193. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10194. Derived from AbstractProxyRequestCommand class.
  10195. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10196. Derived from AbstractProxyResponseCommand class.
  10197. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10198. Derived from AbstractProxyRequestCommand class.
  10199. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10200. Derived from AbstractProxyResponseCommand class.
  10201. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10202. : New class.
  10203. * src/AbstractProxyResponseCommand.h,
  10204. src/AbstractProxyResponseCommand.cc: New class.
  10205. To add netrc support:
  10206. * src/Netrc.h, src/Netrc.cc: New class.
  10207. * src/Util.h, src/Util.cc (split): New function.
  10208. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10209. "Content-Range" header instead of "Range" header.
  10210. * src/HttpHeader.h
  10211. (getStatus): Removed.
  10212. (setStatus): Removed.
  10213. * src/Segment.h
  10214. (getPositionToWrite): New function.
  10215. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. * src/HttpHeader.h
  10217. (Range.h): New include.
  10218. (status): New variable.
  10219. (HttpHeader): Initialized status with 0.
  10220. (getStatus): New function.
  10221. (setStatus): New function.
  10222. (getRange): New function.
  10223. (HttpHeaderHandle): New function.
  10224. * src/HttpHeader.cc
  10225. (getRange): New function.
  10226. * src/Request.h
  10227. (RequestWeakHandle): New definition.
  10228. * src/HttpConnection.h
  10229. (HttpConnectionHandle): New type definition.
  10230. * src/HttpConnection.cc
  10231. (receiveResponse): Set HTTP status to headers.
  10232. * src/main.cc
  10233. (showUsage): Fixed typo.
  10234. * src/Segment.h
  10235. (SegmentHandle): New type definition.
  10236. * src/BitfieldMan.h
  10237. (getMissingUnusedLength): New function.
  10238. * src/BitfieldMan.cc
  10239. (getMissingUnusedLength): New function.
  10240. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10241. To fix static initialization order problem:
  10242. * src/BitfieldManFactory.h
  10243. (defaultRandomizer): Removed.
  10244. (factory): New variable.
  10245. (getNewFactory): Removed.
  10246. (getFactoryInstance): New function.
  10247. (setDefaultRandomizer): Rewritten.
  10248. (getDefaultRandomizer): Rewritten.
  10249. * src/BitfieldManFactory.cc
  10250. (defaultRandomizer): Removed.
  10251. (factory): Initialized to 0.
  10252. (BitfieldManFactory): Initialized randomizer to 0.
  10253. * src/DefaultPieceStorage.cc
  10254. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10255. * src/Peer.cc
  10256. (Peer): getNewFactory() -> getFactoryInstance()
  10257. * src/SegmentMan.cc
  10258. (initBitfield): getNewFactory() -> getFactoryInstance()
  10259. * src/Piece.cc
  10260. (Piece): getNewFactory() -> getFactoryInstance()
  10261. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. To fix the bug that causes crash on Max OS X:
  10263. * src/SimpleRandomizer.h
  10264. (getInstance): Create new instance if the static variable is null.
  10265. * src/SimpleRandomizer.cc
  10266. (randomizer): Initialized to 0.
  10267. * src/BitfieldManFactory.h
  10268. (getNewFactory): Removed the call to setRandomizer().
  10269. To fix the miscalculation of the range of checksum:
  10270. * src/BitfieldMan.h
  10271. (isBitSetOffsetRange): New function.
  10272. * src/BitfieldMan.cc
  10273. (isBitSetOffsetRange): New function.
  10274. * src/SegmentMan.cc
  10275. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10276. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10277. * Release 0.10.1
  10278. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10279. To lower CPU usage in BitTorrent download when --max-upload-limit
  10280. command-line option specified:
  10281. * src/DefaultBtMessageDispatcher.cc
  10282. (sendMessages): Calculate uploading speed only when current message
  10283. is uploading data and is not sent yet.
  10284. * src/DefaultPeerStorage.h
  10285. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10286. * src/HttpResponseCommand.cc
  10287. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10288. This fixes compile error in Soralis 10.
  10289. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. To fix segfault in Metalink download:
  10291. * src/UrlRequestInfo.h
  10292. (filename): Removed.
  10293. (totalLength): Removed.
  10294. (setTotalLength): Removed.
  10295. (setFilename): Removed.
  10296. * src/MetalinkRequestInfo.cc
  10297. (execute): Do not set filename and totalLength to reqInfo.
  10298. Set chunk checksum to reqInfo if it is not null.
  10299. * src/HttpResponseCommand.cc
  10300. (executeInternal): Fixed filename in log.
  10301. (handleDefaultEncoding): Removed the call to initBitfield() and
  10302. markAllPiecesDone().
  10303. (handleOtherEncoding): Added HEAD method handling.
  10304. * src/FtpNegotiateCommand.cc
  10305. (executeInternal): Added SEQ_HEAD_OK handling.
  10306. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10307. return false.
  10308. * src/FtpNegotiateCommand.h
  10309. (SEQ_HEAD_OK): New definition.
  10310. * src/SegmentMan.cc
  10311. (initBitfield): Delete bitfield.
  10312. (isChunkChecksumValidationReady): Fixed the condition.
  10313. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10314. works fine.
  10315. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10316. * src/Xml2MetalinkProcessor.h
  10317. (xpathExists): New function.
  10318. * src/Xml2MetalinkProcessor.cc
  10319. (xpathExists): New function.
  10320. Not to send HEAD request if filename and size are available in Metalink
  10321. file:
  10322. * src/UrlRequestInfo.h
  10323. (filename): New variable.
  10324. (totalLength): New variable.
  10325. (setTotalLength): New function.
  10326. (setFilename): New function.
  10327. * src/MetalinkRequestInfo.cc
  10328. (execute): Set filename and size to UrlRequestInfo.
  10329. * src/MetalinkEntry.cc
  10330. (MetalinkEntry): Initialize size with 0.
  10331. * src/UrlRequestInfo.cc
  10332. (execute): Set filename and size to SegmentMan.
  10333. Not to download rest of the files after selected files are downloaded
  10334. in BitTorrent:
  10335. * src/PieceStorage.h
  10336. (allDownloadFinished): New function.
  10337. * src/DefaultBtAnnounce.cc
  10338. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10339. downloadFinished.
  10340. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10341. * src/DefaultPieceStorage.cc
  10342. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10343. Commented out the call to finishSelectiveDownloadingMode().
  10344. (downloadFinished): Call isFilteredAllBitSet() instead of
  10345. isAllBitSet().
  10346. (allDownloadFinished): New function.
  10347. * src/DefaultBtInteractive.cc
  10348. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10349. downloadFinished().
  10350. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10351. * src/TorrentDownloadEngine.cc
  10352. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10353. * src/BitfieldMan.h
  10354. (isFilteredAllBitSet): New function.
  10355. * src/ShareRatioSeedCriteria.h
  10356. (PieceStorage.h): New include.
  10357. (pieceStorage): New variable.
  10358. (evaluate):
  10359. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10360. * src/BitfieldMan.cc
  10361. (isFilteredAllBitSet): New function.
  10362. (isAllBitSet): Filter is not took into account.
  10363. Rename --force-truncate as --allow-overwrite:
  10364. * src/TorrentRequestInfo.cc
  10365. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10366. * src/main.cc
  10367. (showUsage): --force-truncate -> --allow-overwrite
  10368. * src/message.h
  10369. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10370. * src/prefs.h
  10371. (PREF_FORCE_TRUNCATE): Removed.
  10372. (PREF_ALLOW_OVERWRITE): New definition.
  10373. * src/SegmentMan.cc
  10374. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10375. * src/MetalinkRequestInfo.cc
  10376. (execute): Queueing message are now logged in info level.
  10377. * src/common.h
  10378. (LONG_LONG_MAX): Removed.
  10379. (LONG_LONG_MIN): Removed.
  10380. * src/HttpResponseCommand.cc
  10381. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10382. * src/FtpNegotiateCommand.cc
  10383. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10384. * src/main.cc
  10385. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10386. command-line option.
  10387. (main): Added --check-integriy and --realtime-chunk-checksum
  10388. command-line option.
  10389. --force-truncate -> --allow-overwrite
  10390. Set initial value of --check-integrity option to false.
  10391. Don't show usage when error occurs while persing command-line options.
  10392. Removed deprecated --upload-limit option.
  10393. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10394. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10395. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10396. * src/BtAllowedFastMessage.cc:
  10397. * src/BtBitfieldMessage.cc
  10398. * src/BtCancelMessage.cc
  10399. * src/BtChokeMessage.cc
  10400. * src/BtHaveAllMessage.cc
  10401. * src/BtHaveMessage.cc
  10402. * src/BtHaveNoneMessage.cc
  10403. * src/BtInterestedMessage.cc
  10404. * src/BtNotInterestedMessage.cc
  10405. * src/BtPieceMessage.cc
  10406. * src/BtPortMessage.cc
  10407. * src/BtRejectMessage.cc
  10408. * src/BtRequestMessage.cc
  10409. * src/BtSuggestPieceMessage.cc
  10410. * src/BtUnchokeMessage.cc
  10411. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10412. files are affected.
  10413. * src/ChunkChecksumValidator.cc
  10414. * src/SegmentMan.cc
  10415. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10416. To add chunk checksum validation:
  10417. * src/MetalinkEntry.h
  10418. (MetalinkChunkChecksum.h): New include.
  10419. (chunkChecksum): New variable.
  10420. * src/Request.h
  10421. (method): New variable.
  10422. (setMethod): New function.
  10423. (getMethod): New function.
  10424. (METHOD_GET): New static constant.
  10425. (METHOD_HEAD): New static constant.
  10426. * src/Xml2MetalinkProcessor.h
  10427. (getPieceHash): New function.
  10428. * src/PieceStorage.h
  10429. (markAllPiecesDone): New function.
  10430. (checkIntegrity): New function.
  10431. * src/FileAllocator.h
  10432. (NullFileAllocationMonitor.h): New include.
  10433. (FileAllocator): Initialize fileAllocationMonitor with new
  10434. NullFileAllocationMonitor().
  10435. * src/MultiDiskAdaptor.h
  10436. (messageDigest.h): Remove include.
  10437. (ctx): Removed.
  10438. (hashUpdate): Added ctx.
  10439. (MultiDiskAdaptor): Removed ctx.
  10440. (sha1Sum): Renamed as messageDigest.
  10441. (messageDigest): New function.
  10442. * src/UrlRequestInfo.h
  10443. (HeadResult): New class.
  10444. (digestAlgo): New variable.
  10445. (chunkChecksumLength): New variable.
  10446. (chunkChecksums): New variable.
  10447. (getHeadResult): New function.
  10448. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  10449. (setDigestAlgo): New function.
  10450. (setChunkChecksumLength): New function.
  10451. (setChunkChecksums): New function.
  10452. * src/DefaultPieceStorage.cc
  10453. (DiskAdaptorWriter.h): New include.
  10454. (ChunkChecksumValidator.h): New include.
  10455. (markAllPiecesDone): New function.
  10456. (checkIntegrity): New function.
  10457. * src/DefaultBtContext.h
  10458. (getPieceHashes): New function.
  10459. * src/TorrentRequestInfo.cc
  10460. (execute): Try to validate chunk checksum if file already exists and
  10461. .aria2 file doesn't there and user allows aria2 to overwrite it.
  10462. * src/messageDigest.h
  10463. (~MessageDigestContext): Added digestFree().
  10464. * src/MetalinkRequestInfo.cc
  10465. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10466. * src/DiskAdaptor.h
  10467. (messageDigest.h): New include.
  10468. (sha1Sum): Renamed as messageDigest.
  10469. (messageDigest): New function.
  10470. * src/DownloadCommand.h
  10471. (PeerStat.h): New include.
  10472. (maxDownloadSpeedLimit): New variable.
  10473. (startupIdleTime): New variable.
  10474. (lowestDownloadSpeedLimit): New variable.
  10475. (peerStat): New variable.
  10476. (setMaxDownloadSpeedLimit): New function.
  10477. (setStartupIdleTime): New function.
  10478. (setLowestDownloadSPeedLimit): New function.
  10479. * src/BtContext.h
  10480. (getPieceHashes): New function.
  10481. * src/main.cc
  10482. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10483. option to true for testing purpose.
  10484. * src/BtPieceMessage.cc
  10485. (checkPieceHash): Use messageDigest
  10486. * src/DownloadEngine.cc
  10487. (SetDescriptor): Removed.
  10488. (AccumulateActiveCommand): Removed.
  10489. (waitData): Rewritten.
  10490. (updateFdSet): Rewritten.
  10491. * src/MultiDiskAdaptor.cc
  10492. (hashUpdate): Added ctx.
  10493. (sha1Sum): Renamed as messageDigest.
  10494. (messageDigest): New function.
  10495. * src/BitfieldMan.h
  10496. (isBitRangeSet): New function.
  10497. (unsetBitRange): New function.
  10498. * src/ByteArrayDiskWriter.h
  10499. (sha1Sum): Renamed as messageDigest.
  10500. (messageDigest): New function.
  10501. * src/ConsoleDownloadEngine.cc
  10502. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10503. * src/DiskWriter.h
  10504. (messageDigest.h): New include.
  10505. (sha1Sum): Renamed as messageDigest.
  10506. (messageDigest): New function.
  10507. * src/ChunkChecksumValidator.h: New class.
  10508. * src/DiskAdaptorWriter.h: New class.
  10509. * src/prefs.h
  10510. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10511. (PREF_CHECK_INTEGRITY): New definition.
  10512. * src/HttpResponseCommand.cc
  10513. (handleDefaultEncoding): Added method "HEAD" handling.
  10514. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10515. (handleOtherEncoding):
  10516. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10517. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10518. startupIdleTime, lowestDownloadSpeedLimit to command.
  10519. * src/SegmentMan.h
  10520. (getSegmentEntryByIndex): New function.
  10521. (getSegmentEntryByCuid): New function.
  10522. (getSegmentEntryIteratorByCuid): New function.
  10523. (diskWriter): DiskWriter -> DiskWriterHandle
  10524. (pieceHashes): New variable.
  10525. (chunkHashLength): New variable.
  10526. (digestAlgo): New variable.
  10527. (FindPeerStat): Removed.
  10528. (getPeerStat): Rewritten.
  10529. (markAllPiecesDone): New function.
  10530. (checkIntegrity): New function.
  10531. (tryChunkChecksumValidation): New function.
  10532. (isChunkChecksumValidationReady): New function.
  10533. * src/BitfieldMan.cc
  10534. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10535. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10536. blocks to 0.
  10537. (isBitRangeSet): New function.
  10538. (unsetBitRange): New function.
  10539. * src/FtpNegotiateCommand.cc
  10540. (executeInternal): Set maxDownloadSpeedLimit,
  10541. startupIdleTime, lowestDownloadSpeedLimit to command.
  10542. (recvSize): Added method "HEAD" handling.
  10543. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10544. * src/AbstractSingleDiskAdaptor.cc
  10545. (sha1Sum): Renamed as messageDigest.
  10546. (messageDigest): New function.
  10547. * src/AbstractSingleDiskAdaptor.h
  10548. (sha1Sum): Renamed as messageDigest.
  10549. (messageDigest): New function.
  10550. * src/Util.h
  10551. (indexRange): New function.
  10552. * src/MetalinkEntry.cc
  10553. (MetalinkEntry): Initialized chunkChecksum to 0.
  10554. * src/ShaVisitor.cc
  10555. (~ShaVisitor): Removed the call to ctx.digestFree().
  10556. * src/SegmentMan.cc
  10557. (ChunkChecksumValidator.h): New include.
  10558. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10559. to DIGEST_ALGO_SHA1.
  10560. (~SegmentMan): Removed diskWriter.
  10561. (FindSegmentEntryByIndex): Removed.
  10562. (FindSegmentEntryByCuid): Removed.
  10563. (checkoutSegment): Rewritten.
  10564. (findSlowerSegmentEntry): Rewritten.
  10565. (getSegment): Rewritten.
  10566. (updateSegment): Rewritten.
  10567. (completeSegment): Rewritten.
  10568. (markAllPiecesDone): New function.
  10569. (checkIntegrity): New function.
  10570. (isChunkChecksumValidationReady): New function.
  10571. (tryChunkChecksumValidation): New function.
  10572. * src/Xml2MetalinkProcessor.cc
  10573. (getEntry): Get size and set it to entry.
  10574. Get chunk checksum and set it to entry.
  10575. (getPieceHash): New function.
  10576. * src/Util.cc
  10577. (sha1Sum): Removed ctx.digestFree()
  10578. (fileChecksum): Removed ctx.digestFree()
  10579. (indexRange): New function.
  10580. * src/Request.cc
  10581. (METHOD_GET): New variable.
  10582. (METHOD_HEAD): New variable.
  10583. (Request): Added method.
  10584. * src/UrlRequestInfo.cc
  10585. (FatalException.h): New include.
  10586. (message.h): New include.
  10587. (operator<<): Added operator<< for class HeadResult.
  10588. (getHeadResult): New function.
  10589. (execute): Get filename and size in separate download engine.
  10590. * src/ChunkChecksumValidator.cc: New class.
  10591. * src/DownloadCommand.cc:
  10592. (DownloadCommand): Added peerStat.
  10593. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10594. the value from Option.
  10595. The buffer size is now 16KB.
  10596. Use peerStat member instead of getting it from SegmentMan.
  10597. Use startupIdleTime member instead of gettingit from Option.
  10598. Added chunk checksum validation.
  10599. * src/AbstractDiskWriter.cc
  10600. (AbstractDiskWriter): Removed ctx.
  10601. (~AbstractDiskWriter): Removed ctx.digestFree()
  10602. (writeDataInternal): Returns the return value of write.
  10603. (readDataInternal): Returns the return value of read.
  10604. (sha1Sum): Renamed as messageDigest
  10605. (messageDigest): New function.
  10606. * src/AbstractDiwkWriter.h
  10607. (messageDigest.h): Removed include.
  10608. (ctx): Removed.
  10609. (sha1Sum): Renamed as messageDigest
  10610. (messageDigest): New function.
  10611. * src/DefaultPieceStorage.h
  10612. (markAllPiecesDone): New function.
  10613. (checkIntegrity): New function.
  10614. * src/NullFileAllocationMonitor.h: New class.
  10615. * src/MetalinkChunkChecksum.h: New class.
  10616. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10617. To decrease CPU usage in bittorrent download, calculation results in
  10618. BitfieldMan were cached and realtime fetching PeerObject was removed
  10619. with WeakHandle introduced. Option values are set to the objects
  10620. by setter before download begins.
  10621. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10622. * src/DefaultBtRequestFactory.h
  10623. (dispatcher): BtMessageDispatcherHandle ->
  10624. BtMessageDispatcherWeakHandle.
  10625. (messageFactory): New variable.
  10626. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10627. BtMessageDispatcherWeakHandle.
  10628. (setBtMessageFactory): New function.
  10629. * src/DefaultBtMessageDispatcher.cc:
  10630. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10631. from Option.
  10632. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10633. feating the value from Option.
  10634. Use messageFactory member.
  10635. * src/PeerInteractionCommand.cc
  10636. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10637. Add reverse dependencies to factory object.
  10638. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10639. dispatcher.
  10640. Set messageFactory to receiver.
  10641. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10642. btInteractive.
  10643. Set receiver to peerObject.
  10644. Set maxDownloadSpeedLimit to this.
  10645. (executeInternal): Use maxDownloadSpeedLimit member.
  10646. * src/BtChokeMessage.cc
  10647. (doReceivedAction): Use dispatcher, requestFactory member.
  10648. (onSendComplete): Use dispatcher member.
  10649. * src/PeerInteractionCommand.h
  10650. (maxDownloadSpeedLimit): New variable.
  10651. * src/DefaultBtMessageReceiver.h
  10652. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10653. (dispatcher):
  10654. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10655. (messageFactory): New variable.
  10656. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10657. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10658. (setDispatcher):
  10659. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10660. (setBtMessageFactory): New function.
  10661. * src/DefaultBtInteractive.cc
  10662. (initiateHandshake): Use messageFactory member.
  10663. (addBitfieldMessageToQueue): Use messageFactory member.
  10664. (addAllowedFastMessageToQueue): Use messageFactory member.
  10665. (decideChoking): Use messageFactory member.
  10666. (checkHave): Use messageFactory member.
  10667. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10668. (receiveMessages): Use maxDownloadSpeedLimit member.
  10669. (decideInterest): Use messageFactory member.
  10670. * src/BtRequestMessage.cc
  10671. (doReceivedAction): Use messageFactory, dispatcher member.
  10672. (onQueued): Use dispatcher member.
  10673. * src/BtPieceMessage.cc
  10674. (doReceivedAction): Use dispatcher member.
  10675. (send): Use peerConnection member.
  10676. (onWrongPiece): Use requestFactory member.
  10677. (handleChokingEvent): Use messageFactory, dispatcher member.
  10678. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10679. * src/BtMessageDispatcher.h
  10680. (BtMessageDispatcherWeakHandle): New type definition.
  10681. * src/SimpleBtMessage.cc
  10682. (send): Use peerConnection member.
  10683. * src/BtRejectMessage.cc
  10684. (doReceivedAction): Use dispatcher member.
  10685. * src/DefaultBtMessageDispatcher.h
  10686. (Option.h): Removed include.
  10687. (messageFactory): New variable.
  10688. (option): Removed.
  10689. (maxUploadSpeedLimit): New variable.
  10690. (requestTimeout): New variable.
  10691. (DefaultBtMessageDispatcher): Removed option.
  10692. Added maxUploadSpeedLimit, requestTimeout.
  10693. (setOption): Removed.
  10694. (getOption): Removed.
  10695. (setMaxUploadSpeedLimit): New function.
  10696. (setRequestTimeout): New function.
  10697. (setBtMessageFactory): New function.
  10698. * src/DefaultBtInteractive.h
  10699. (btMessageReceiver):
  10700. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10701. (dispatcher):
  10702. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10703. (btRequestFactory):
  10704. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10705. (peerConnection):
  10706. PeerConnectionHandle -> PeerConnectionWeakHandle
  10707. (messageFactory): New variable.
  10708. (option): Removed.
  10709. (keepAliveInterval): New variable.
  10710. (maxDownloadSpeedLimit): New variable.
  10711. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10712. (setBtMessageReceiver):
  10713. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10714. (setDispatcher):
  10715. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10716. (setBtRequestFactory):
  10717. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10718. (setPeerConnection):
  10719. PeerConnectionHandle -> PeerConnectionWeakHandle
  10720. (setOption): Removed.
  10721. (setKeepAliveInterval): New function.
  10722. (setMaxDownloadSpeedLimit): New function.
  10723. (setBtMessageFactory): New function.
  10724. * src/BitfieldMan.h
  10725. (cachedNumMissingBlock): New variable.
  10726. (cachedNumFilteredBlock): New variable.
  10727. (cachedCompletedLength): New variable.
  10728. (cachedFilteredComletedLength): New variable.
  10729. (cachedFilteredTotalLength): New variable.
  10730. (countMissingBlockNow): New function.
  10731. (countFilteredBlockNow): New function.
  10732. (getFilteredTotalLengthNow): New function.
  10733. (getCompletedLengthNow): New function.
  10734. (getFilteredCompletedLengthNow): New function.
  10735. (updateCache): New function.
  10736. * src/AbstractBtMessage.h
  10737. (BtMessageDispatcher.h): New include.
  10738. (PeerConnection.h): New include.
  10739. (BtRequestFactory.h): New include
  10740. (BtMessageFactory.h): New include.
  10741. (dispatcher): New variable.
  10742. (messageFactory): New variable.
  10743. (peerConnection: New variable.
  10744. (setBtMessageDispatcher): New function.
  10745. (setPeerConnection): New function.
  10746. (setBtMessageFactory): New function.
  10747. (setBtRequestFactory): New function.
  10748. * src/DefaultBtMessageFactory.cc
  10749. (setCommonProperty): Set dispatcher, requestFactory, this,
  10750. peerConnection to msg.
  10751. * src/BtRegistry.h
  10752. (BT_MESSAGE_RECEIVER): New macro.
  10753. * src/PeerConnection.h
  10754. (PeerConnectionWeakHandle): New type definition.
  10755. * src/BtMessageFactory.h
  10756. (BtMessageFactoryWeakHandle): New type definition.
  10757. * src/BitfieldMan.cc
  10758. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10759. cachedCompletedLength, cachedFilteredComletedLength,
  10760. cachedFilteredTotalLength.
  10761. Call updateCache().
  10762. (countMissingBlock): Return cachedNumMissingBlock.
  10763. (countMissingBlockNow): New function.
  10764. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10765. (countFilteredBlockNow): New function.
  10766. (setBit): Call updateCache().
  10767. (unsetBit): Call updateCache().
  10768. (setBitfield): Call updateCache().
  10769. (clearAllBit): Call updateCache().
  10770. (setAllBit): Use setBitInternal instead of setBit.
  10771. Call updateCache().
  10772. (addFilter): Call updateCache().
  10773. (enableFilter): Call updateCache().
  10774. (disableFilter): Call updateCache().
  10775. (clearFilter): Call updateCache().
  10776. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10777. (getFilteredTotalLengthNow): New function.
  10778. (getCompletedLength): Return cachedCompletedLength.
  10779. (getCompletedLengthNow): New function.
  10780. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10781. (getFilteredCompletedLengthNow): New function.
  10782. (updateCache): New function.
  10783. * src/BtMessageReceiver.h
  10784. (BtMessageReceiverWeakHandle): New type definition.
  10785. * src/DefaultBtMessageReceiver.cc
  10786. (receiveHandshake): Use messageFactory member.
  10787. (sendHandshake): Use messageFactory member.
  10788. (receiveMessage): Use messageFactory member.
  10789. * src/DefaultBtMessageFactory.h
  10790. (dispatcher): New variable.
  10791. (requestFactory): New variable.
  10792. (peerConnection): New variablle.
  10793. (setBtMessageDispatcher): New function.
  10794. (setBtRequestFactory): New function.
  10795. (setPeerConnection): New function.
  10796. * src/SharedHandle.h
  10797. (RefCount): New class.
  10798. (WeakHandle): New class.
  10799. * src/PeerObject.h
  10800. (BtMessageReceiver.h): New include.
  10801. (PeerObject): Added btMessageReceiver.
  10802. (btMessageReceiver): New variable.
  10803. * src/Util.cc
  10804. (countBit): Simplified.
  10805. * src/BtCancelMessage.cc
  10806. (doReceivedAction): Use dispatcher member.
  10807. * src/BtRequestFactory.h
  10808. (BtRequestFactoryWeakHandle): New type definition.
  10809. * src/PeerStorage.h
  10810. (downloadSpeed): int -> uint32_t
  10811. (uploadSpeed): int -> uint32_t
  10812. (sessionDownloadLength): long long int -> uint64_t
  10813. (sessionUploadLength): long long int -> uint64_t
  10814. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10815. To add RecoverableException, FatalException:
  10816. * src/AbstractCommand.cc
  10817. (onAbort): Exception -> RecoverableException
  10818. * src/PeerAbstractCommand.h
  10819. (RecoverableException.h): New include.
  10820. (onAbort): Exception -> RecoverableException.
  10821. * src/PeerInteractionCommand.cc
  10822. (onAbort): Exception -> RecoverableException.
  10823. * src/PeerAbstractCommand.cc
  10824. (execute): Exception -> RecoverableException.
  10825. (onAbort): Exception -> RecoverableException.
  10826. * src/TorrentRequestInfo.cc
  10827. (execute): Exception -> RecoverableException.
  10828. * src/MetalinkRequestInfo.cc
  10829. (execute): Exception -> RecoverableException.
  10830. * src/MetaFileUtil.cc: RecoverableException.
  10831. * src/AbstractCommand.h
  10832. (onAbort): Exception -> RecoverableException.
  10833. * src/DlRetryEx.h: Exception -> RecoverableException.
  10834. * src/DlAbortEx.h: Exception -> RecoverableException.
  10835. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  10836. * src/Util.cc: Exception -> RecoverableException.
  10837. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  10838. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  10839. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  10840. To make ID static const int
  10841. * src/BtInterestedMessage.h
  10842. (ID_t): Removed.
  10843. (ID): New variable.
  10844. (getId): Made non-const.
  10845. * src/BtPieceMessage.h
  10846. (ID_t): Removed.
  10847. (ID): New variable.
  10848. (getId): Made non-const.
  10849. * src/BtChokeMessage.h
  10850. (ID_t): Removed.
  10851. (ID): New variable.
  10852. (getId): Made non-const.
  10853. * src/BtHaveAllMessage.h
  10854. (ID_t): Removed.
  10855. (ID): New variable.
  10856. (getId): Made non-const.
  10857. * src/BtKeepAliveMessage.h
  10858. (ID_t): Removed.
  10859. (ID): New variable.
  10860. (getId): Made non-const.
  10861. * src/BtHandshakeMessage.h
  10862. (ID): New variable.
  10863. (getId): Made non-const.
  10864. * src/BtSuggestPieceMessage.h
  10865. (ID_t): Removed.
  10866. (ID): New variable.
  10867. (getId): Made non-const.
  10868. * src/BtPortMessage.h
  10869. (ID_t): Removed.
  10870. (ID): New variable.
  10871. (getId): Made non-const.
  10872. * src/AbstractBtMessage.h
  10873. (id): Removed.
  10874. (AbstractBtMessage): Removed id.
  10875. (getId): Removed.
  10876. * src/BtHaveMessage.h
  10877. (ID_t): Removed.
  10878. (ID): New variable.
  10879. (getId): Made non-const.
  10880. * src/BtAllowedFastMessage.h
  10881. (ID_t): Removed.
  10882. (ID): New variable.
  10883. (getId): Made non-const.
  10884. * src/BtCancelMessage.h
  10885. (ID_t): Removed.
  10886. (ID): New variable.
  10887. (getId): Made non-const.
  10888. * src/BtNotInterestedMessage.h
  10889. (ID_t): Removed.
  10890. (ID): New variable.
  10891. (getId): Made non-const.
  10892. * src/BtChokeMessage.h
  10893. (ID_t): Removed.
  10894. (ID): New variable.
  10895. (getId): Made non-const.
  10896. * src/BtRejectMessage.h
  10897. (ID_t): Removed.
  10898. (ID): New variable.
  10899. (getId): Made non-const.
  10900. * src/BtBitfieldMessage.h
  10901. (ID_t): Removed.
  10902. (ID): New variable.
  10903. (getId): Made non-const.
  10904. * src/BtUnchokeMessage.h
  10905. (ID_t): Removed.
  10906. (ID): New variable.
  10907. (getId): Made non-const.
  10908. * src/BtRequestMessage.h
  10909. (ID_t): Removed.
  10910. (ID): New variable.
  10911. (getId): Made non-const.
  10912. * src/BtHaveMessage.h
  10913. (ID_t): Removed.
  10914. (ID): New variable.
  10915. (getId): Made non-const.
  10916. To add --force-truncate command-line option and a check whether
  10917. the file already exists:
  10918. * src/DirectDiskAdaptor.h
  10919. (getFilePath): Made virtual public.
  10920. * src/MultiDiskAdaptor.h
  10921. (File.h): New include.
  10922. (DiskWriterEntry::fileEntry): Made private.
  10923. (DiskWriterEntry::fileExists): New function.
  10924. (DiskWriterEntry::getFileEntry): New function.
  10925. (fileExists): New function.
  10926. (getFilePath): New function.
  10927. * src/TorrentRequestInfo.cc
  10928. (FatalException.h): New include.
  10929. (message.h): New include.
  10930. (RecoverableException.h): New include.
  10931. (execute): Added a check whether file is already exists or not.
  10932. * src/DiskAdaptor.h
  10933. (fileExists): New function.
  10934. (getFilePath): New function.
  10935. * src/main.cc
  10936. (showUsage): Added an explanation of --force-truncate command-line
  10937. option.
  10938. (main): Added --force-truncate command-line option.
  10939. * src/Exception.h
  10940. (setMsg): buf[256] -> buf[1024]
  10941. * src/CopyDiskWriter.h
  10942. (getFilePath): Made public virtual.
  10943. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  10944. (fileExists): New function.
  10945. * src/DownloadEngineFactory.cc
  10946. (newTorrentConsoleEngine): Don't open file here.
  10947. * src/message.h
  10948. (EX_FILE_ALREADY_EXISTS): New definition.
  10949. * src/prefs.h
  10950. (PREF_FOECE_TRUNCATE): New definition.
  10951. * src/HttpResponseCommand.cc
  10952. (handleDefaultEncoding): Added a check whether the file already exists.
  10953. * src/SegmentMan.h
  10954. (fileExists): New function.
  10955. (shouldCancelDownloadForSafety): New function.
  10956. * src/FtpNegotiateCommand.cc
  10957. (recvSize): Added a check whether the file already exists.
  10958. * src/AbstractSingleDiskAdaptor.cc
  10959. (File.h): New include.
  10960. (fileExists): New function.
  10961. * src/AbstractSingleDiskAdaptor.h
  10962. (getFilePath): Removed.
  10963. (fileExists): New function.
  10964. * src/SegmentMan.cc
  10965. (fileExists): New function.
  10966. (shouldCancelDownloadForSafety): New function.
  10967. To fix regression bug in torrent downloading:
  10968. * src/DefaultBtRequestFactory.cc
  10969. (doChokedAction): New function.
  10970. * src/DefaultBtRequestFactory.h
  10971. (doChokedAction): New function.
  10972. * src/DefaultBtMessageDispatcher.cc
  10973. (doChokedAction): Do not delete request if its target is in allowed
  10974. fast set.
  10975. * src/DefaultBtInteractive.cc
  10976. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  10977. (sendKeepAlive): Send keep alive message even if the outgoing message
  10978. queue is not empty.
  10979. (decideInterest): Simplified the code.
  10980. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  10981. it is already called when BtChokeMessage is received from a peer.
  10982. * src/BtRequestFactory.h
  10983. (doChokedAction): New function.
  10984. To clean up code:
  10985. * src/PeerInteractionCommand.h
  10986. (executeInternal): Added virtual keyword explicitly.
  10987. (prepareForRetry): Added virtual keyword explicitly.
  10988. (prepareForNextPeer): Added virtual keyword explicitly.
  10989. (onAbort): Added virtual keyword explicitly.
  10990. * src/RequestSlot.cc
  10991. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  10992. * src/BtPieceMessage.cc
  10993. (doReceivedAction): Added a debug log of piece's bitfield.
  10994. * src/Piece.h
  10995. (getBitfieldLength): New function.
  10996. * src/ByteArrayDiskWriter.cc
  10997. (clear): Added buf = 0 to avoid double free corruption.
  10998. * src/FileAllocator.cc
  10999. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11000. Added cp.reset().
  11001. * src/BitfieldMan.h
  11002. (operator=): Rewritten.
  11003. * src/BitfieldMan.cc
  11004. (BitfieldMan): Initialized bitfield, useBitfield.
  11005. * src/PeerConnection.cc
  11006. (receiveMessage): Added a call to socket->readable() after getting
  11007. message length to avoid possible EOF.
  11008. * src/Util.cc
  11009. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11010. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11011. To add an ability to pre-allocate file space:
  11012. * src/DirectDiskAdaptor.h: Rewritten.
  11013. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11014. * src/MultiDiskAdaptor.h: Rewritten.
  11015. * src/DefaultPieceStorage.cc
  11016. (MultiDiskWriter.h): Removed include.
  11017. (PreAllocationDiskWriter.h): Removed include.
  11018. (FileAllocationMonitor.h): New include.
  11019. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11020. (initStorage): Rewritten.
  11021. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11022. * src/FileAllocator.h: New class.
  11023. * src/FileAllocator.cc: New class.
  11024. * src/FileAllocationMonitor.h: New class.
  11025. * src/FileAllocationMonitor.cc: New class.
  11026. * src/ConsoleFileAllocationMonitor.h: New class.
  11027. * src/ConsoleFileAllocationMonitor.cc: New class.
  11028. * src/AbstractSingleDiskAdaptor.h: New class.
  11029. * src/AbstractSingleDiskAdaptor.cc: New class.
  11030. * src/DiskAdaptor.h
  11031. (Directory.h): Removed include.
  11032. (DiskWriter.h): Removed include.
  11033. (FileEntry.h): Removed include.
  11034. (diskWriter): Removed.
  11035. (DiskAdaptor): Removed diskWriter.
  11036. (openFile): Made pure virtual.
  11037. (closeFile): Made pure virtual.
  11038. (openExistingFile): Made pure virtual.
  11039. (initAndOpenFile): Made pure virtual.
  11040. (writeData): Made pure virtual.
  11041. (readData): Made pure virtual.
  11042. (sha1Sum): Made pure virtual.
  11043. (getStoreDir): Returns const reference of storeDir.
  11044. (DiskAdaptorHandle): New type definition.
  11045. * src/main.cc
  11046. (ConsoleFileAllocationMonitor.h): New include.
  11047. (showUsage): Added default value description of -s option.
  11048. Added the description of --file-allocation option.
  11049. (main): Set default value of --file-allocation option to 'none'.
  11050. Added --file-allocation command-line option.
  11051. Setup FileAllocationMonitorFactory.
  11052. * src/FtpInitiateConnectionCommand.cc
  11053. (executeInternal): Removed diskWriter related processing, which was
  11054. moved to FtpNegotiationCommand.cc.
  11055. * src/DirectDiskAdaptor.cc
  11056. (getFilePath): Made non-const.
  11057. * src/CopyDiskAdaptor.h
  11058. (DiskAdaptor.h): Removed include.
  11059. (DiskWriter.h): Removed include.
  11060. (AbstractSingleDiskAdaptor.h): New include.
  11061. (getFilePath): Made non-const. Added virtual keyword.
  11062. (CopyDiskAdaptor): Removed diskWriter.
  11063. (getTempFile): Returns const reference.
  11064. (CopyDiskAdaptorHandle): New type definition.
  11065. * src/ByteArrayDiskWriter.cc
  11066. (clear): Simplified.
  11067. (initAndOpenFile): Rewritten.
  11068. (openFile): Call initAndOpenFile()
  11069. * src/MultiDiskAdaptor.cc: Rewritten.
  11070. * src/DownloadEngineFactory.cc
  11071. (FileAllocator.h): New include.
  11072. (FileAllocationMonitor.h): New include.
  11073. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11074. create DefaultDiskWriter with file allocator.
  11075. * src/DiskWriter.h
  11076. (initAndOpenFile): Added totalLength argument.
  11077. (openFile): Added totalLength argument.
  11078. * src/prefs.h
  11079. (PREF_FILE_ALLOCATION): New definition.
  11080. (V_PREALLOC): New definition.
  11081. (V_NONE): New definition.
  11082. * src/HttpResponseCommand.cc
  11083. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11084. size.
  11085. * src/FtpNegotiateCommand.cc
  11086. (Util.h): New include.
  11087. (recvSize): Open file here.
  11088. * src/Util.h
  11089. (ullitos): New function.
  11090. * src/CopyDiskWriter.h
  11091. (getFilePath): Made non-const.
  11092. * src/DefaultDiskWriter.h
  11093. (Option.h): New include.
  11094. (totalLength): Removed.
  11095. (DefaultDiskWriter): Removed totalLength.
  11096. (initAndOpenFile): Added totalLength argument.
  11097. (DefaultDiskWriterHandle): New type definition.
  11098. (createNewDiskWriter): New function.
  11099. * src/Util.cc
  11100. (ullitos): New function.
  11101. * src/DefaultDiskWriter.cc
  11102. (message.h): New include.
  11103. (FileAllocator.h): New include.
  11104. (prefs.h): New include.
  11105. (Util.h): New include.
  11106. (DefaultDiskWriter): Removed totalLength.
  11107. (initAndOpenFile): Added file allocation.
  11108. (createNewDiskWriter): New function. Just for temporary solution.
  11109. It will be rewritten later.
  11110. * src/DiskAdaptor.cc
  11111. (DiskAdaptor): Removed diskWriter.
  11112. * src/AbstractDiskWriter.cc
  11113. (LogFactory.h): New include.
  11114. (AbstractDiskWriter): Added fileAllocator, logger.
  11115. (openFile): Added totalLength argument.
  11116. * src/AbstractDiskWriter.h
  11117. (FileAllocator.h): New include.
  11118. (Logger.h): New include.
  11119. (fileAllocator): New variable.
  11120. (logger): New variable.
  11121. (openFile): Added totalLength argument. Added virtual keyword
  11122. explicitly.
  11123. (openExistingFile): Added totalLength argument. Added virtual keyword
  11124. explicitly.
  11125. (closeFile): Added virtual keyword explicitly.
  11126. (sha1Sum): Added virtual keyword explicitly.
  11127. (writeData): Added virtual keyword explicitly.
  11128. (readData): Added virtual keyword explicitly.
  11129. (setFileAllocator): New function.
  11130. * src/DefaultPieceStorage.h
  11131. (FileAllocator.h): New include.
  11132. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11133. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11134. * src/FileProgressMonitor.h: New class.
  11135. To compile aria2 on PC-BSD:
  11136. * src/DefaultBtContext.cc
  11137. (libgen.h): New include.
  11138. To fix memory leak:
  11139. * src/Exception.h
  11140. (~Exception): Delete cause. Fixed memory leak.
  11141. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11142. Rewritten a portion of bittorrent implementation:
  11143. * src/BtMessageValidator.h: New class.
  11144. * src/BtBitfieldMessageValidator.h: New class.
  11145. * src/BtHandshakeMessageValidator.h: New class.
  11146. * src/BtRequestMessageValidator.h: New class.
  11147. * src/BtSuggestPieceMessageValidator.h: New class.
  11148. * src/BtAllowedFastMessageValidator.h: New class.
  11149. * src/BtRejectMessageValidator.h: New class.
  11150. * src/BtCancelMessageValidator.h: New class.
  11151. * src/BtPieceMessageValidator.h: New class.
  11152. * src/BtHaveMessageValidator.h: New class.
  11153. * src/BtEventListener.h: New class.
  11154. * src/AbstractBtEventListener.h: New class.
  11155. * src/BtEvent.h: New class.
  11156. * src/BtChokingEvent.h: New class.
  11157. * src/BtChokedEvent.h: New class.
  11158. * src/BtCancelSendingPieceEvent.h: New class.
  11159. * src/BtAbortOutstandingRequestEvent.h: New class.
  11160. * src/Randomizer.h: New class.
  11161. * src/SimpleRandomizer.h: New class.
  11162. * src/BtMessage.h: New class.
  11163. * src/AbstractBtMessage.h: New class.
  11164. * src/SimpleBtMessage.h: New class.
  11165. * src/BtHaveMessage.h: New class.
  11166. * src/BtInterestedMessage.h: New class.
  11167. * src/BtAllowedFastMessage.h: New class.
  11168. * src/BtUnchokeMessage.h: New class.
  11169. * src/BtCancelMessage.h: New class.
  11170. * src/BtNotInterestedMessage.h: New class.
  11171. * src/BtChokeMessage.h: New class.
  11172. * src/BtHaveNoneMessage.h: New class.
  11173. * src/BtHandshakeMessage.h: New class.
  11174. * src/BtSuggestPieceMessage.h: New class.
  11175. * src/BtHaveMessage.h: New class.
  11176. * src/BtPieceMessage.h: New class.
  11177. * src/BtHaveAllMessage.h: New class.
  11178. * src/BtKeepAliveMessage.h: New class.
  11179. * src/BtPortMessage.h: New class.
  11180. * src/BtRejectMessage.h: New class.
  11181. * src/BtBitfieldMessage.h: New class.
  11182. * src/BtRequestMessage.h: New class.
  11183. * src/DefaultBtRequestFactory.h: New class.
  11184. * src/DefaultBtMessageReceiver.h: New class.
  11185. * src/BtInteractive.h: New class.
  11186. * src/BtMessageDispatcher.h: New class.
  11187. * src/DefaultBtMessageDispatcher.h: New class.
  11188. * src/DefaultBtInteractive.h: New class.
  11189. * src/BitfieldManFactory.h: New class.
  11190. * src/HandleRegistry.h: New class.
  11191. * src/BtMessageFactory.h: New class.
  11192. * src/BtMessageReceiver.h: New class.
  11193. * src/DefaultBtMessageFactory.h: New class.
  11194. * src/PeerObject.h: New class.
  11195. * src/BtRequestFactory.h: New class.
  11196. * src/SuggestPieceMessage.h: Removed.
  11197. * src/PortMessage.h: Removed.
  11198. * src/SuggestPieceMessage.h: Removed.
  11199. * src/KeepAliveMessage.h: Removed.
  11200. * src/HandshakeMessage.h: Removed.
  11201. * src/PeerInteraction.h: Removed.
  11202. * src/UnchokeMessage.h: Removed.
  11203. * src/PieceMessage.h: Removed.
  11204. * src/RequestMessage.h: Removed.
  11205. * src/InterestedMessage.h: Removed.
  11206. * src/HaveMessage.h: Removed.
  11207. * src/CancelMessage.h: Removed.
  11208. * src/RejectMessage.h: Removed.
  11209. * src/AllowedFastMessage.h: Removed.
  11210. * src/HaveNoneMessage.h: Removed.
  11211. * src/SimplePeerMessage.h: Removed.
  11212. * src/HaveAllMessage.h: Removed.
  11213. * src/BitfieldMessage.h: Removed.
  11214. * src/PeerMessageFactory.h: Removed.
  11215. * src/NotInterestedMessage.h: Removed.
  11216. * src/ChokeMessage.h: Removed.
  11217. * src/PeerMessage.h: Removed.
  11218. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11219. To know root cause of exception:
  11220. * src/Exception.h
  11221. (cause): New variable.
  11222. (Exception): Added a parameter.
  11223. (getMsg): Return const reference to msg.
  11224. (getCause): New function.
  11225. * src/DlRetryEx.h
  11226. (DlRetryEx): Added a parameter 'cause'.
  11227. Added an overloaded constructor.
  11228. (DlAbortEx): Added a parameter 'cause'.
  11229. Added an overloaded constructor.
  11230. * src/SimpleLogger.cc
  11231. (writeLog): Log nested exception messages recursively.
  11232. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11233. * src/DefaultBtProgressInfoFile.cc
  11234. (load): Fixed memory leak when the infohash doesn't match.
  11235. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11236. * src/DefaultPeerStorage.cc
  11237. (calculateStat): Simplified the code by combining 2 loops into 1.
  11238. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11239. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11240. for BitTorrent download:
  11241. * src/PeerAbstractCommand.cc
  11242. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11243. * src/main.cc:
  11244. (timeoutSpecified): Removed.
  11245. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11246. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11247. * src/TorrentRequestInfo.cc
  11248. (timeoutSpecified): Removed.
  11249. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11250. timeout value.
  11251. * src/prefs.h
  11252. (PREF_BT_TIMEOUT): New definition.
  11253. Delete unused variables:
  11254. * src/TorrentRequestInfo.cc
  11255. (requestInfo): Removed.
  11256. Move setSignalHander to Util::setGlobalSignalHandler:
  11257. * src/TorrentRequestInfo.cc:
  11258. setSignalHander -> Util::setGlobalSignalHandler
  11259. * src/main.cc
  11260. (setSignalHander): Removed.
  11261. (main): setSignalHander -> Util::setGlobalSignalHandler
  11262. * src/Util.h
  11263. (setGlobalSignalHandler): New function.
  11264. * src/Util.cc
  11265. (setGlobalSignalHandler): New function.
  11266. * src/UrlRequestInfo.cc:
  11267. setSignalHander -> Util::setGlobalSignalHandler
  11268. Reset peer status in order to exit gracefully:
  11269. * src/PeerAbstractCommand.cc
  11270. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11271. To fix the bug that causes the number of bytes uploaded is not saved
  11272. to .aria2 file:
  11273. * src/DefaultPeerStorage.h
  11274. (removedPeerSessionDownloadLength): New variable.
  11275. (removedPeerSessionUploadLength): New variable.
  11276. * src/DefaultPeerStorage.cc
  11277. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11278. removedPeerSessionUploadLength(0).
  11279. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11280. through all peers, and then add removedPeerSessionDownloadLength(
  11281. removedPeerSessionUploadLength) to it.
  11282. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11283. (to) the peer to removedPeerSessionDownloadLength
  11284. (removedPeerSessionUploadLength).
  11285. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11286. To add Metalink location option:
  11287. * src/MetalinkRequestInfo.cc
  11288. (execute): Call MetalinkEntry::setLocationPreference()
  11289. * src/main.cc
  11290. (showUsage): Added the help message for --metalink-location option.
  11291. (main): Added --metalink-location option.
  11292. * src/prefs.h
  11293. (PREF_METALINK_LOCATION): New definition.
  11294. * src/MetalinkEntry.cc
  11295. (AddLocationPreference): New function object.
  11296. (setLocationPreference): New function.
  11297. * src/Xml2MetalinkProcessor.cc
  11298. (getResource): Set location attribute to MetalinkResource
  11299. To show URLs to download
  11300. * src/UrlRequestInfo.h
  11301. (printUrls): New function.
  11302. To add multiple <file> Metalink support:
  11303. * src/MetalinkEntry.h
  11304. (MetalinkResources): Removed.
  11305. (setLocationPreference): New function.
  11306. (MetalinkEntryHandle): New type definition.
  11307. (MetalinkEntries): New type definition.
  11308. * src/Xml2MetalinkProcessor.h
  11309. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11310. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11311. (parseFile): Metalinker* -> MetalinkerHandle
  11312. * src/UrlRequestInfo.h
  11313. (execute): RequestInfo* -> RequestInfos
  11314. * src/MetalinkRequestInfo.cc
  11315. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11316. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11317. (execute): RequestInfo* -> RequestInfos
  11318. Added multiple <file> support. Print filename when it is queued.
  11319. * src/MetalinkRequestInfo.h
  11320. (execute): RequestInfo* -> RequestInfos
  11321. (getDownloadEngine): Removed.
  11322. * src/RequestInfo.h
  11323. (RequestInfoHandle): New type definition.
  11324. (RequestInfos): New type definition.
  11325. (execute): RequestInfo* -> RequestInfos
  11326. (getDownloadEngine): Removed.
  11327. * src/MetalinkResource.h
  11328. (MetalinkResourceHandle): New type definition.
  11329. (MetalinkResources): New type definition.
  11330. * src/MetalinkEntry.cc
  11331. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11332. because the element is now of type MetalinkResourceHandle.
  11333. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11334. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11335. (dropUnsupportedResource): Removed the deletion of the elements of
  11336. resources because the element is now of type MetalinkResourceHandle.
  11337. * src/Xml2MetalinkProcessor.cc
  11338. (parseFile): Metalinker* -> MetalinkerHandle
  11339. MetalinkEntry* -> MetalinkEntryHandle
  11340. Removed try-catch block.
  11341. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11342. MetalinkResource* -> MetalinkResourceHandle
  11343. Removed try-catch block.
  11344. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11345. Free result by using xmlXPathFreeObject()
  11346. * src/Metalinker.cc
  11347. (~Metalinker): Removed the deletion of entries.
  11348. MetalinkEntry* -> MetalinkEntryHandle
  11349. (queryEntry): Add multiple <file> Metalink support.
  11350. * src/Metalinker.h
  11351. (MetalinkEntries): Removed.
  11352. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11353. * src/MetalinkProcessor.h
  11354. (parseFile): Metalinker* -> MetalinkerHandle
  11355. Bug fixes:
  11356. * src/PeerChokeCommand.cc
  11357. (execute): cat01->cat02
  11358. * src/DefaultPieceStorage.cc
  11359. (DefaultPieceStorage): Added diskAdaptor(0)
  11360. * src/TrackerWatcherComand.cc:
  11361. (execute): Use btAnnounce->noMoreAnnounce()
  11362. to determin whether the function returns true or not.
  11363. * src/TrackerUpdateCommand.cc:
  11364. (execute): Use btAnnounce->noMoreAnnounce()
  11365. to determin whether the function returns true or not.
  11366. * src/FtpConnection.cc
  11367. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11368. This is the fix of the busy loop bug.
  11369. * src/DownloadCommand.cc
  11370. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11371. cached PeerStat.
  11372. The value of "name" entry in torrent file is now set by
  11373. *DiskAdaptor::setTopDir(...) methods.
  11374. * src/MultiDiskAdaptor.h
  11375. (topDir): New variable.
  11376. (setTopDir): New function.
  11377. (getTopDir): New function.
  11378. * src/MultiDiskAdaptor.cc
  11379. (getFilePath): Concat storDir, "/" and topDir.
  11380. (mkdir): Use getFilePath() to get the directory path for output.
  11381. * src/DefaultPieceStorage.cc
  11382. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11383. CopyDiskAdaptor.
  11384. * src/CopyDiskAdaptor.h
  11385. (topDir): New variable.
  11386. (setTopDir): New function.
  11387. (getTopDir): New function.
  11388. * src/CopyDiskAdaptor.cc
  11389. (fixFilename): Updated.
  11390. Misc
  11391. * src/UrlRequestInfo.h
  11392. (e): Removed.
  11393. (UrlRequestInfo): Removed e.
  11394. (getDownloadEngine): Removed.
  11395. * src/UrlRequestInfo.cc
  11396. (handler): Rewritten.
  11397. (printUrls): New function.
  11398. (execute): Call printUrls().
  11399. * src/HandshakeMessage.cc
  11400. (check): peerinteraction->getBtContext() -> btContext
  11401. * src/PeerInteraction.h
  11402. (getBtContext): Removed.
  11403. * src/TorrentRequestInfo.h
  11404. (execute): RequestInfo* -> RequestInfos
  11405. (getDownloadEngine): Removed.
  11406. * src/TorrentRequestInfo.cc
  11407. (haltRequested): Removed.
  11408. (btHaltRequested): New variable.
  11409. (torrentHandler): haltRequested -> btHaltRequested
  11410. (execute): RequestInfo* -> RequestInfos
  11411. * src/TorrentConsoleDownloadEngine.cc
  11412. (afterEachIteration): haltRequested -> btHaltRequested.
  11413. * src/ConsoleDownloadEngine.h
  11414. (initStatistics): Added virtual.
  11415. (calculateStatistics): Added virtual.
  11416. (onEndOfRun): Added virtual.
  11417. (afterEachIteration): Added virtual.
  11418. * src/ConsoleDownloadEngine.cc
  11419. (haltRequested): New variable.
  11420. (afterEachIteration): New function.
  11421. * src/main.cc
  11422. (requestInfo): Removed.
  11423. * src/SegmentMan.cc
  11424. (findSlowerSegmentEntry): Refactored.
  11425. * Release 0.9.0
  11426. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11427. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  11428. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  11429. * src/TorrentMan.h: Removed.
  11430. * src/TorrentMan.cc: Removed.
  11431. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  11432. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  11433. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  11434. * src/PeerAbstractCommand.cc: Use btRuntime.
  11435. * src/BtContextAwareCommand.h: New class.
  11436. * src/FileEntry.h: Added accessor methods for following variables.
  11437. (path): Made private.
  11438. (length): Made private.
  11439. (offset): Made private.
  11440. (extracted): Made private.
  11441. (requested): Made private.
  11442. (FileEntries): New definition.
  11443. (FileEntryHandle): New definition.
  11444. * src/FileEntry.cc: New file.
  11445. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  11446. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  11447. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  11448. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  11449. * src/PieceStorage.h: New file.
  11450. * src/PeerInteractionCommand.h: Use btContext.
  11451. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  11452. btRuntime.
  11453. * src/DefaultBtProgressInfoFile.h: New file.
  11454. * src/DefaultBtProgressInfoFile.cc: New file.
  11455. * src/File.cc
  11456. (Util.h): New include.
  11457. (mkdirs): New function.
  11458. * src/MultiDiskAdaptor.h
  11459. (mkdir): New function.
  11460. * src/PeerListProcessor.h
  11461. (Peers): Removed.
  11462. * src/PeerInteraction.h
  11463. (torrentMan): Removed.
  11464. (btContext): New variable.
  11465. (peerStorage): New variable.
  11466. (pieceStorage): New variable.
  11467. (btAnnounce): New variable.
  11468. (getTorrentMan): Removed.
  11469. (getBtContext): New function.
  11470. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11471. btAnnounce.
  11472. * src/HandshakeMessage.h
  11473. (TorrentMan.h): Removed.
  11474. * src/HandshakeMessage.cc: Use btContext.
  11475. * src/DefaultBtAnnounce.cc: New file.
  11476. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11477. * src/DefaultPieceStorage.cc: New file.
  11478. * src/DefaultBtContext.h: New file.
  11479. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11480. Use the accessor methods of FileEntry.
  11481. * src/CookieBox.cc: Updated to use Util::slice().
  11482. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11483. * src/common.h (SharedHandle.h): New include.
  11484. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11485. pieceStorage.
  11486. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11487. * src/DiskAdaptor.h
  11488. (topDir): Removed.
  11489. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11490. (setTopDir): Removed.
  11491. (getTopDir): Removed.
  11492. * src/BtContext.h: New file.
  11493. * src/DefaultPeerStorage.h: New file.
  11494. * src/PieceMessage.h (TorrentMan.h): Removed.
  11495. * src/RequestMessage.h (TorrentMan.h): Removed.
  11496. * src/TorrentDownloadEngine.h
  11497. (uploadLength): New variable.
  11498. (btContext): New variable.
  11499. (btRuntime): New variable.
  11500. (pieceStorage): New variable.
  11501. (peerStorage): New variable.
  11502. (btAnnounce): New variable.
  11503. (btProgressInfoFile): New variable.
  11504. (torrentMan): Removed.
  11505. (setBtContext): New function.
  11506. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11507. peerStorage, btAnnounce, btProgressInfoFile.
  11508. * src/Piece.h
  11509. (toString): New function.
  11510. (Pieces): New type definition.
  11511. * src/Peer.h
  11512. (active): New variable.
  11513. (Peer): Added active.
  11514. (activate): Set active to true.
  11515. (deactivate): Set active to false.
  11516. (isActive): New function.
  11517. (Peers): New type definition.
  11518. * src/DirectDiskAdaptor.cc
  11519. (getFilePath): Use the accessor methods of FileEntry.
  11520. * src/TorrentConsoleDownloadEngine.h
  11521. (afterEachIteration): New function.
  11522. * src/TorrentConsoleDownloadEngine.cc
  11523. (haltRequested): New variable.
  11524. (sendStatistics): Use pieceStorage, btRuntime.
  11525. (afterEachIteration): New function.
  11526. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11527. * src/Directry.h
  11528. (Directory): New function.
  11529. (DirectoryHandle): New type definition.
  11530. * src/BtProgressInfoFile.h: New file.
  11531. * src/RequestMessage.cc: Use pieceStorage.
  11532. * src/BtRuntime.h: New file.
  11533. * src/DefaultBtContext.cc: New file.
  11534. * src/BitfieldMan.h
  11535. (getCompletedLength): New function(private).
  11536. (getCompletedLength): New function.
  11537. (getFilteredCompletedLength): New function.
  11538. * src/BitfieldMan.h
  11539. (getCompletedLength): New function(private).
  11540. (getCompletedLength): New function.
  11541. (getFilteredCompletedLength): New function.
  11542. * src/MultiDiskAdaptor.cc
  11543. (mkdir): New function.
  11544. (openFile): Call mkdir().
  11545. (initAndOpenFile): Call mkdir().
  11546. * src/CancelMessage.h
  11547. (TorrentMan.h): Removed.
  11548. * src/RejectMessage.h
  11549. (TorrentMan.h): Removed.
  11550. * src/DownloadEngineFactory.cc
  11551. (DefaultPieceStorage.h): New include.
  11552. (DefaultPeerStorage.h): New include.
  11553. (DefaultBtAnnounce.h): New include.
  11554. (DefaultBtProgressInfoFile.h): New include.
  11555. (newTorrentConsoleEngine): Rewritten.
  11556. * src/ShareRatioSeedCriteria.h
  11557. (torrentMan): Removed.
  11558. (btContext): New variable.
  11559. (peerStorage): New variable.
  11560. (btRuntime): New variable.
  11561. (evaluate): Use btContext, btRuntime, peerStorage.
  11562. * src/AnnounceTier.h: New file.
  11563. * src/BtAnnounce.h: New file.
  11564. * src/BtRegistry.h: New file.
  11565. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11566. * src/PeerConnection.h (TorrentMan.h): Removed.
  11567. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11568. * src/Util.h
  11569. (slice): Added an argument.
  11570. * src/Util.cc
  11571. (slice): Added an argument to control whether trim is made or not.
  11572. * src/PeerStorage.h: New file.
  11573. * src/BtRegistry.cc: New file.
  11574. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11575. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11576. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11577. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11578. * src/TorrentRequestInfo.h
  11579. (e): Removed.
  11580. (showFileEntry): Added an argument.
  11581. (getDownloadEngine): Return 0.
  11582. * src/DefaultBtAnnounce.h: New file.
  11583. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11584. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11585. * src/PeerMessageFactory.h
  11586. (btContext): New variable.
  11587. (pieceStorage): New variable.
  11588. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11589. btAnnounce.
  11590. * src/DiskAdaptor.cc
  11591. (DiskAdaptor): Removed topDir.
  11592. (~DiskAdaptor): Removed topDir.
  11593. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11594. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11595. * src/File.h (mkdirs): New function.
  11596. * src/DefaultPeerStorage): New file.
  11597. * src/DownloadEngineFactory.h
  11598. (newTorrentConsoleEngine): Use btContext.
  11599. * src/BtContextAwareCommand.cc: New file.
  11600. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11601. * src/PeerMessage.h
  11602. (btContext): New variable.
  11603. (peerStorage): New variable.
  11604. (pieceStorage): New variable.
  11605. (setBtContext): New function.
  11606. * src/Directry.cc
  11607. (Directory): New function.
  11608. (createDir): Do nothing if name.size() == 0.
  11609. * src/AnnounceList.h
  11610. (AnnounceTier): Removed.
  11611. (AnnounceTiers): Removed.
  11612. * src/DefaultPieceStorage.h: New file.
  11613. * src/Piece.cc (toString): New function.
  11614. To fix typo:
  11615. * src/main.cc (showVersion): Fixed typo.
  11616. To fix compile warning:
  11617. * src/DelegatingPeerListProcessor.cc
  11618. (canHandle): Added "return false".
  11619. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11620. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11621. make the process of announce request testable.
  11622. * src/TrackerWatcherCommand.h
  11623. (TimeA2.h): Removed.
  11624. (interval): Removed.
  11625. (checkPoint): Removed.
  11626. (createRequestCommand): Added an argument 'url'.
  11627. (TrackerWatherCommand): Removed interval.
  11628. (createCommand): New function.
  11629. * src/DownloadEngineFactory.cc
  11630. (newTorrentConsoleEngine): Updated according to the changes in
  11631. TrackerWatherCommand.
  11632. * src/TorrentMan.cc
  11633. (DelegatingPeerListProcessor.h): New includes.
  11634. (TorrentMan): Added the initialization of announceInterval.
  11635. (isStoppedAnnounceReady): New function.
  11636. (isCompletedAnnounceReady): New function.
  11637. (isDefaultAnnounceReady): New function.
  11638. (isAnnounceReady): New function.
  11639. (getAnnounceUrl): New function.
  11640. (announceStart): New function.
  11641. (announceFailure): New function.
  11642. (announceSuccess): New function.
  11643. (isAllAnnounceFailed): New function.
  11644. (resetAnnounce): New function.
  11645. (processAnnounceResponse): New function.
  11646. (needMorePeerConnection): New function.
  11647. (noMoreAnnounce): New function.
  11648. * src/TrackerUpdateCommand.h
  11649. (getTrackerResponse): int->size_t
  11650. * src/TorrentMan.h
  11651. (isStoppedAnnounceReady): New function.
  11652. (isCompletedAnnounceReady): New function.
  11653. (isDefaultAnnounceReady): New function.
  11654. (announceInterval): New variable.
  11655. (isAnnounceReady): New function.
  11656. (getAnnounceUrl): New function.
  11657. (announceStart): New function.
  11658. (announceFailure): New function.
  11659. (announceSuccess): New function.
  11660. (isAllAnnounceFailed): New function.
  11661. (resetAnnounce): New function.
  11662. (processAnnounceResponse): New function.
  11663. (needMorePeerConnection): New function.
  11664. (noMoreAnnounce): New function.
  11665. * src/TrackerWatcherCommand.cc
  11666. (TrackerWatherCommand): Removed interval and checkPoint.
  11667. (execute): Rewritten.
  11668. (createCommand): New function.
  11669. (createRequestCommand): Rewritten.
  11670. * src/TrackerUpdateCommand.cc
  11671. (MetaFileUtil.h): Removed.
  11672. (DelegatingPeerListProcessor.h): Removed.
  11673. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11674. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11675. Request -> RequestHandle:
  11676. * src/HttpResponseCommand.h: Request->RequestHandle
  11677. * src/AbstractCommand.cc: Request->RequestHandle
  11678. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11679. * src/HttpRequestCommand.cc: Request->RequestHandle
  11680. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11681. * src/AbstractCommand.h: Request->RequestHandle
  11682. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11683. * src/HttpResponseCommand.cc: Request->RequestHandle
  11684. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11685. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11686. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11687. * src/HttpConnection.h: Request->RequestHandle
  11688. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11689. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11690. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11691. * src/DownloadCommand.h: Request->RequestHandle
  11692. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11693. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11694. * src/HttpRequestCommand.h: Request->RequestHandle
  11695. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11696. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11697. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11698. * src/HttpDownloadCommand.h: Request->RequestHandle
  11699. * src/FtpConnection.cc: Request->RequestHandle
  11700. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11701. * src/UrlRequestInfo.cc: Request->RequestHandle
  11702. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11703. * src/HttpConnection.h: Request->RequestHandle
  11704. * src/DownloadCommand.cc: Request->RequestHandle
  11705. * src/FtpConnection.h: Request->RequestHandle
  11706. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11707. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11708. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11709. * src/Request.h
  11710. (SharedHandle.h): New include.
  11711. (RequestHandle): New type definition.
  11712. (Requests): Redefined.
  11713. To add MULTITRACKER support:
  11714. * src/TrackerWatcherCommand.h
  11715. (createRequestCommand): New function.
  11716. * src/DownloadEngineFactory.cc
  11717. (newTorrentConsoleEngine): Removed req.
  11718. * src/prefs.h
  11719. (PREF_TRACKER_MAX_TRIES): New definition.
  11720. * src/TorrentMan.cc
  11721. (TorrentMan): Removed req. Added trackerNumTry.
  11722. (~TorrentMan): Removed req.
  11723. (setupInternal1): Added announceList.
  11724. * src/TorrentRequestInfo.cc
  11725. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11726. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11727. * src/main.cc
  11728. (main): Added PREF_TRACKER_MAX_TRIES.
  11729. * src/TorrentMan.h
  11730. (Request.h): Removed.
  11731. (AnnounceList.h): New include.
  11732. (trackerNumTry): New variable.
  11733. (req): Removed.
  11734. (announceList): New variable.
  11735. * src/TrackerWatcherCommand.cc
  11736. (execute): Rewritten.
  11737. (createRequestCommand): New function.
  11738. * src/TrackerUpdateCommand.cc
  11739. (execute): Updated with the use of AnnounceList.
  11740. * src/AnnounceList.cc: New class.
  11741. * src/AnnounceList.h: New class.
  11742. To fix typo:
  11743. * src/prefs.h
  11744. (PREF_MAX_TRIES): max_try->max_tries
  11745. To not to decode "+" as space in URL decode:
  11746. * src/Util.cc
  11747. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11748. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11749. To add timeout to async name resolution:
  11750. * src/AbstractCommand.h
  11751. (nameResolveFinished): New function. This is not elegant way. It needs
  11752. to be more refined.
  11753. (nameResolverCheck): New variable.
  11754. * src/AbstractCommand.cc
  11755. (AbstractCommand): Added nameResolverCheck.
  11756. (execute): Added the check whether the name resolution has finished.
  11757. (setNameResolverCheck): Set nameResolverCheck to true.
  11758. (disableNameResolverCheck): Set nameResolverCheck to false.
  11759. (nameResolverFinished): New function.
  11760. * src/FtpInitiateConnectionCommand.h
  11761. (nameResolverFinished): New function.
  11762. * src/FtpInitiateConnectionCommand.cc
  11763. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11764. * src/HttpInitiateConnectionCommand.h
  11765. (nameResolverFinished): New function.
  11766. * src/HttpInitiateConnectionCommand.cc
  11767. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11768. * src/prefs.h
  11769. (PREF_DNS_TIMEOUT): New definition.
  11770. * src/main.cc
  11771. (main): Added PREF_DNS_TIMEOUT.
  11772. To add the support for a non-compact response from a tracker:
  11773. * src/PeerListProcessor.h: New class.
  11774. * src/DefaultPeerListProcessor.h: New class.
  11775. * src/DefaultPeerListProcessor.cc: New class.
  11776. * src/CompactPeerListProcessor.h: New class.
  11777. * src/CompactPeerListProcessor.cc: New class.
  11778. * src/DelegatingPeerListProcessor.h: New class.
  11779. * src/DelegatingPeerListProcessor.cc: New class.
  11780. * src/TorrentMan.cc
  11781. (addPeer): New function(overload).
  11782. (addPeer): Delete unused peers only when new peer is added.
  11783. * src/TorrentMan.h
  11784. (PeerListProcessor.h): Included.
  11785. (Peers): Removed.
  11786. (addPeer): New function(overload).
  11787. * src/TrackerUpdateCommand.cc
  11788. (netinet/in.h): Removed.
  11789. (DelegatingPeerListProcessor.h): Included.
  11790. (execute): Updated to use DelegatingPeerListProcessor.
  11791. To fix the memory leak in TorrentMan::peers:
  11792. * src/PeerAbstractCommand.cc
  11793. (onAbort): Added peer->resetStatus().
  11794. * src/Peer.h
  11795. (resetStatus): Made public.
  11796. To improve the precision of the speed calculation:
  11797. * src/SpeedCalc.h
  11798. (nextInterval): New variable.
  11799. * src/SpeedCalc.cc
  11800. (reset): Added nextInterval.
  11801. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11802. (changeSw): Set nextInterval to 15 seconds relative to the current
  11803. instant time.
  11804. * src/main.cc
  11805. (showVersion): Updated.
  11806. (showUsage): Updated.
  11807. * Release 0.8.1
  11808. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11809. * src/main.cc
  11810. (showUsage): Commented out --min-segment-size option.
  11811. (main): Commented out --min-segment-size option.
  11812. * Release 0.8.0
  11813. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11814. * src/*.{h,cc}:
  11815. Added an exception to the license which allows linking with OpenSSL.
  11816. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11817. * src/AbstractCommand.cc
  11818. (execute): Check whether the download has finished before checking
  11819. socket status.
  11820. Return true if peerStat->getStatus() == REQUEST_IDLE.
  11821. Do not exit even if no segment is available.
  11822. * src/prefs.h
  11823. (PREF_STARTUP_IDLE_TIME): New definition.
  11824. * src/PeerInteractionCommand.cc
  11825. (executeInternal): Removed max speed limit. Because it performs bad.
  11826. (receiveMessages): Added max speed limit. This was better than above,
  11827. but still a little bit to be desired. Sometimes the download speed
  11828. became much faster than I specified.
  11829. * src/SpeedCalc.h
  11830. (start): New variable.
  11831. (accumulatedLength): New variable.
  11832. (getAvgSpeed): New function.
  11833. * src/SpeedCalc.cc
  11834. (reset): Added start, accumulatedLength.
  11835. (update): Added calculation of an average speed.
  11836. (getAvgSpeed): New function.
  11837. * src/DownloadCommand.h
  11838. (sw): Removed.
  11839. * src/main.cc
  11840. (main): Added PREF_STARTUP_IDLE_TIME.
  11841. * src/PeerStat.h
  11842. (STATUS): Added REQUEST_IDLE.
  11843. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  11844. (getAvgDownloadSpeed): New function
  11845. (requestIdle): New function.
  11846. * src/SegmentMan.h
  11847. (SegmentEntryHandle): New type definition.
  11848. (SegmentEntries): Now holds SegmentEntryHandle.
  11849. (findSlowerSegmentEntry): New funtion.
  11850. * src/SegmentMan.cc
  11851. (save): Updated according to the changes in SegmentEntries.
  11852. (read): Updated according to the changes in SegmentEntries.
  11853. (FindSegmentEntryByIndex): Updated according to the changes in
  11854. SegmentEntries.
  11855. (FindSegmentEntryByCuid): Updated according to the changes in
  11856. SegmentEntries.
  11857. (checkoutSegment): Updated according to the changes in SegmentEntries.
  11858. (onNullBitfield): Updated according to the changes in SegmentEntries.
  11859. Renamed uitr as itr.
  11860. (findSlowerSegmentEntry): New function.
  11861. (getSegment): Updated according to the changes in SegmentEntries.
  11862. Added the feature that cancels the segment with slow server and fast
  11863. one takes it over.
  11864. (cancelSegment): Updated according to the changes in SegmentEntries.
  11865. (getDownloadLength): Updated according to the changes in
  11866. SegmentEntries.
  11867. (init): Assigned 0 to bitfield after deleting it.
  11868. * src/DownloadCommand.cc
  11869. (STARTUP_IDLE_TIME): Removed.
  11870. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  11871. * src/PeerChokeCommand.cc
  11872. (optUnchokingPeer): Updated according to the changes in Peer.
  11873. (ResetDelta): Removed.
  11874. (UploadFaster): Updated according to the changes in Peer.
  11875. (DownloadFaster): Updated according to the changes in Peer.
  11876. (execute): I clarify the meaning of "upload" and "download" here.
  11877. "upload" means the transfer from localhost to remote host.
  11878. "download" means the transfer from remote host to localhost.
  11879. Based on this rule, I swapped orderByUploadRate and
  11880. orderByDownloadRate.
  11881. * src/PeerInteractionCommand.cc
  11882. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  11883. (executeInternal): Removed the argument of
  11884. peerInteraction->sendMessages().
  11885. (receiveMessages): Rewritten download speed limit.
  11886. (sendKeepAlive): Removed peerInteraction->sendMessages().
  11887. * src/HttpResponseCommand.cc
  11888. (handleDefaultEncoding): If file size is unknown in torrent request,
  11889. do not call segmentMan->initBitfield() here.
  11890. Disabled persistent connection feature in torrent request.
  11891. * src/UrlRequestInfo.h
  11892. (UrlRequestInfo): Removed const qualifier from option.
  11893. * src/TorrentMan.h
  11894. (TransferStat): New class.
  11895. (deltaDownloadLength): Removed.
  11896. (deltaUploadLength): Removed.
  11897. (addDeltaDownloadLength): Removed.
  11898. (getDeltaDownloadLength): Removed.
  11899. (resetDeltaDownloadLength): Removed.
  11900. (addDeltaUploadLength): Removed.
  11901. (getDeltaUploadLength): Removed.
  11902. (resetDeltaUploadLength): Removed.
  11903. (addActivePeer): Added peer->activate().
  11904. (deleteActivePeer): Added peer->deactivate().
  11905. (calculateStat): New function.
  11906. * src/TorrentMan.cc
  11907. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  11908. (calculateStat): New function.
  11909. * src/PeerInteraction.h
  11910. (uploadLimit): Removed.
  11911. (option): New variable.
  11912. (setUploadLimit): Removed.
  11913. (getUploadSpeed): Removed.
  11914. (sendMessages): Removed the argument "currentUploadSpeed".
  11915. * src/PeerInteraction.cc
  11916. (prefs.h): Included.
  11917. (PeerInteraction): Removed uploadLimit. Added option.
  11918. (sendMessages): Rewritten upload speed limit.
  11919. (sendHandshake): Removed the argument from sendMessages().
  11920. (sendBitfield): Removed the argument from sendMessages().
  11921. * src/PeerAbstractCommand.cc
  11922. (execute): Commented out the portion of upload limit.
  11923. (onAbort): Removed peer->resetStatus().
  11924. * src/TorrentRequestInfo.cc
  11925. (timeoutSpecified): Declared extern.
  11926. (execute): Set timeout to 180 if timeout is not specified by.
  11927. command-line.
  11928. * src/PieceMessage.cc
  11929. (receivedAction): Added peer->updateDownloadLength().
  11930. Removed peer->addPeerUpload().
  11931. Removed torrentMan->addDeltaDownloadLength().
  11932. (send): Added peer->updateUploadLength().
  11933. Removed peer->addPeerDownload().
  11934. Removed torrentMan->addDeltaUploadLength().
  11935. * src/main.cc
  11936. (timeoutSpecified): New variable.
  11937. (main): Set timeoutSpecified to false.
  11938. If the command-line option "--upload-limit" is specified, then
  11939. timeoutSpecified is set to true. This option will remain in the next
  11940. release, but be deprecated in the future release.
  11941. * src/TorrentRequestInfo.h
  11942. (TorrentRequestInfo): Removed const qualifier from op.
  11943. * src/PeerStat.h
  11944. (uploadSpeed): New variable.
  11945. (PeerStat): Added default value to cuid.
  11946. (calculateUploadSpeed): New function.
  11947. (updateUploadLength): New function.
  11948. (getMaxUploadSpeed): New function.
  11949. (getAvgUploadSpeed): New function.
  11950. (reset): Added uploadSpeed. Set status to IDLE.
  11951. * src/TorrentDownloadEngine.h
  11952. (cp): Declared as Time.
  11953. (sessionDownloadLengthArray): Removed.
  11954. (sessionUploadLengthArray): Removed.
  11955. (currentCp): Removed.
  11956. (lastCalcStat): New variable
  11957. (lastElapsed): Removed.
  11958. (sessionDownloadLength): Removed.
  11959. (calculateStat): New function.
  11960. * src/TorrentDownloadEngine.cc
  11961. (initStatistics): Removed lastElapsed, cp[],
  11962. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  11963. currentCp, sessionDownloadLength.
  11964. Added cp.reset() and lastCalcStat.reset().
  11965. (calculateSpeed): Changed the name of the argument.
  11966. (calculateStatistics): Rewritten.
  11967. (calculateStat): New function.
  11968. * src/Peer.h
  11969. (PeerStat.h): Included.
  11970. (peerUpload): Removed.
  11971. (peerDownload): Removed.
  11972. (peerStat): New variable.
  11973. (sessionUploadLength): New variable.
  11974. (sessionDownloadLength): New variable.
  11975. (deltaUpload): Removed.
  11976. (deltaDownload): Removed.
  11977. (resetStatus): Made private.
  11978. (Peer): Added sessionUploadLength, sessionDownloadLength.
  11979. Removed peerUpload, peerDownload.
  11980. (updateUploadLength): New function.
  11981. (addDeltaUpload): Removed.
  11982. (updateDownloadLength): New function.
  11983. (resetDeltaUpload): Removed.
  11984. (getDeltaUpload): Removed.
  11985. (addDeltaDownload): Removed.
  11986. (calculateUploadSpeed): New function.
  11987. (resetDeltaDownload): Removed.
  11988. (getDeltaDownload): Removed.
  11989. (calculateDownloadSpeed): New function.
  11990. (getSessionUploadLength): New function.
  11991. (getSessionDownloadLength): New function.
  11992. (activate): New function.
  11993. (deactivate): New function.
  11994. (addPeerUpload): Removed.
  11995. (setPeerUpload): Removed.
  11996. (getPeerUpload): Removed.
  11997. (addPeerDownload): Removed.
  11998. (setPeerDownload): Removed.
  11999. (getPeerDownload): Removed.
  12000. * src/Peer.cc
  12001. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12002. * src/MetalinkRequestInfo.h
  12003. (MetalinkRequestInfo): Removed const qualifier from op.
  12004. * src/RequestInfo.h
  12005. (op): Removed const qualifier.
  12006. (RequestInfo): Removed const qualifier from op.
  12007. * src/prefs.h
  12008. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12009. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12010. * src/PeerInteractionCommand.cc
  12011. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12012. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12013. * src/PeerInteraction.cc
  12014. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12015. * src/main.cc
  12016. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12017. Added the description of "--max-download-limit" option.
  12018. Removed the description of "--upload-limit" option.
  12019. Added the description of "--max-upload-limit" option.
  12020. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12021. Added "--max-download-limit" option and "--max-upload-limit" option.
  12022. Added the warning message if "--upload-limit" option is used.
  12023. * src/DownloadCommand.cc
  12024. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12025. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12026. To rewrite segment download mechanism for HTTP/FTP download.
  12027. Use BitfieldMan to manage segment download.
  12028. * src/HttpResponseCommand.h
  12029. (executeInternal): Pass the reference of segment.
  12030. * src/AbstractCommand.cc
  12031. (prepareForRetry): Call segmentMan->cancelSegment here.
  12032. (onAbort): Call segmentMan->cancelSegment here.
  12033. * src/HttpDownloadCommand.cc
  12034. (prepareForNextSegment): New function.
  12035. * src/DownloadEngineFactory.cc
  12036. (newConsoleEngine): Removed splitter.
  12037. (newTorrentConsoleEngine): Removed splitter.
  12038. * src/Request.h
  12039. (segment): Renamed from seg.
  12040. * src/FtpInitiateConnectionCommand.h
  12041. (executeInternal): Pass the reference of segment.
  12042. * src/AbstractCommand.h
  12043. (executeInternal): Pass the reference of segment.
  12044. * src/pref.h
  12045. (PREF_SEGMENT_SIZE): New definition.
  12046. * src/HttpProxyRequestCommand.h
  12047. (executeInternal): Pass the reference of segment.
  12048. * src/HttpResponseCommand.cc
  12049. (checkResponse): Allowed status 206 when a request range starts 0.
  12050. (handleDefaultEncoding): Rewritten the code related to Segment.
  12051. (handleOtherEncoding): Rewritten the code related to Segment.
  12052. * src/SegmentMan.h
  12053. (SegmentEntry): New class.
  12054. (SegmentEntries): New type definition.
  12055. (bitfield): New variable.
  12056. (usedSegmentEntries): New variable.
  12057. (onNullBitfield): New function.
  12058. (checkoutSegment): New function.
  12059. (segments): Removed.
  12060. (splitter): Removed.
  12061. (unregisterId): Removed.
  12062. (getSegment): New function(overload)
  12063. (getDownloadedSize): Removed.
  12064. (cancelSegment): New function.
  12065. (completeSegment): New function.
  12066. (initBitfield): New function.
  12067. (hasSegment): New function.
  12068. (getDownloadLength): New function.
  12069. * src/BitfieldMan.h
  12070. (getStartIndex): New function.
  12071. (getEndIndex): New function.
  12072. (getMissingUnusedIndex): New function(overload).
  12073. (getSparseMissingUnusedIndex): New function.
  12074. * src/BitfieldMan.cc
  12075. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12076. (getMissingUnusedIndex): New function(overload).
  12077. (Range): New class.
  12078. (getStartIndex): New function.
  12079. (getEndIndex): New function.
  12080. (getSparseMissingUnusedIndex): New function.
  12081. (isBitSetInternal): Return false if the given index is less than 0.
  12082. * src/HttpInitiateConnectionCommand.h
  12083. (executeInternal): Pass the reference of segment.
  12084. * src/FtpNegotiateCommand.h
  12085. (executeInternal): Pass the reference of segment.
  12086. * src/FtpNegotiateCommand.cc
  12087. (recvSize): Initialize bitfield here.
  12088. * src/FtpTunnelResponseCommand.h
  12089. (executeInternal): Pass the reference of segment.
  12090. * src/HttpConnection.cc
  12091. (createRequest): Rewritten range header processing.
  12092. * src/DownloadCommand.h
  12093. (executeInternal): Pass the reference of segment.
  12094. (prepareForRetry): Removed.
  12095. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12096. function.
  12097. * src/main.cc
  12098. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12099. * src/SegmentMan.cc
  12100. (SegmentMan): Added bitfield. Removed splitter.
  12101. (~SegmentMan): Added bitfield. Removed splitter.
  12102. (unregisterId): Removed.
  12103. (getSegment): Rewritten.
  12104. (updateSegment): Rewritten.
  12105. (save): Rewritten.
  12106. (read): Rewritten.
  12107. (finished): Rewritten.
  12108. (getDownloadedSize): Removed.
  12109. (initBitfield): New function.
  12110. (FindSegmentEntryByIndex): New function object.
  12111. (FindSegmentEntryByCuid): New function object.
  12112. (checkoutSegment): New function.
  12113. (onNullBitfield): New function.
  12114. (getSegment): New function(overload).
  12115. (CancelSegment): New function object.
  12116. (cancelSegment): New function.
  12117. (completeSegment): New function.
  12118. (hasSegment): New function.
  12119. (getDownloadLength): New function.
  12120. * src/FtpInitiateConnectionCommand.cc
  12121. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12122. * src/Segment.h: Rewritten.
  12123. * src/Segment.cc (operator<<): New function.
  12124. * src/HttpDownloadCommand.h
  12125. (prepareForNextSegment): New function.
  12126. * src/Request.cc
  12127. (resetUrl): Made segment null.
  12128. * src/DownloadEngine.cc
  12129. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12130. * src/HttpProxyRequestCommand.h
  12131. (executeInternal): Pass the reference of segment.
  12132. * src/DownloadCommand.cc
  12133. (executeInternal): Rewritten the code related to Segment.
  12134. (prepareForRetry): Removed.
  12135. (prepareForNextSegment): Rewritten.
  12136. * src/FtpTunnelResponseCommand.h
  12137. (executeInternal): Pass the reference of segment.
  12138. To add HTTP 1.1 persistent connection support(experimental)
  12139. * src/HttpRequestCommand.cc
  12140. (executeInternal): Disable keep alive if it is disabled by
  12141. configuration.
  12142. * src/Request.h
  12143. (keepAlive): New variable.
  12144. (isKeepAlive): New function.
  12145. (setKeepAlive): New function.
  12146. * src/pref.h
  12147. (PREF_HTTP_KEEP_ALIVE): New definition.
  12148. * src/HttpResponseCommand.cc
  12149. (executeInternal): Check the remote server supports keep alive.
  12150. * src/HttpConnection.cc
  12151. (createRequest): Send "Connection: close" only if keep alive is
  12152. disabled.
  12153. * src/main.cc
  12154. (main):
  12155. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12156. To add max download speed limit:
  12157. * src/pref.h
  12158. (PREF_MAX_SPEED_LIMIT): New definition.
  12159. * src/PeerInteractionCommand.cc
  12160. (executeInternal): Added max download speed limit. Not tested yet.
  12161. * src/SegmentMan.h
  12162. (PeerStats): New type definition.
  12163. (peerStats): New variable.
  12164. (registerPeerStat): New function.
  12165. (FindPeerStat): New function object.
  12166. (getPeerStat): New function.
  12167. (calculateDownloadSpeed): New function.
  12168. * src/SpeedCalc.h: New class.
  12169. * src/SpeedCalc.cc: New class.
  12170. * src/main.cc
  12171. (main):
  12172. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12173. download speed is not restricted).
  12174. * src/PeerStat.h: New class.
  12175. * src/SegmentMan.cc
  12176. (registerPeerStat): New function.
  12177. (calculateDownloadSpeed): New function.
  12178. * src/DownloadCommand.cc
  12179. (STARTUP_IDLE_TIME): New definition.
  12180. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12181. downloadStart.
  12182. (~DownloadCommand): Call peerStat->downloadStop.
  12183. (executeInternal): Added download speed limitter. Rewritten lowest
  12184. speed limitter.
  12185. * src/HttpConnection.cc
  12186. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12187. * src/AbstractCommand.cc
  12188. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12189. Added hostname to the error message.
  12190. * src/ConsoleDownloadEngine.cc
  12191. (calculateStatistics): Initialize psize with dlSize.
  12192. * src/PieceMessage.cc
  12193. (receivedAction): Do not call peerInteraction->abortPiece here.
  12194. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12195. * src/BitfieldMan.h
  12196. (clearAllUseBit): New function.
  12197. (setAllUseBit): New function.
  12198. * src/BitfieldMan.cc
  12199. (clearAllBit): Do not clear useBitfield here.
  12200. (clearAllUseBit): New function.
  12201. (setAllUseBit): New function.
  12202. * src/Piece.cc
  12203. (clearAllBlock): Call bitfield->clearAllUseBit().
  12204. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12205. To make filename URL-decoded:
  12206. * src/HttpResponseCommand.h: Updated doc.
  12207. * src/HttpResponseCommand.cc
  12208. (determinFilename): Made filename URL-decoded.
  12209. * src/FtpInitiateConnectionCommand.cc
  12210. (executeInternal): Made filename URL-decoded.
  12211. * src/Util.h (urldecode): New function.
  12212. * src/Util.cc (urldecode): New function.
  12213. To fix a bug that caused assertion failure in ares_strerror:
  12214. * src/NameResolver.cc (callback): Fixed the bug.
  12215. * Release 0.7.3
  12216. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12217. To add --seed-time and --seed-ratio command-line option:
  12218. * src/Option.h (getAsDouble): New function.
  12219. * src/Option.cc (getAsDouble): New function.
  12220. * src/SeedCheckCommand.h: New class.
  12221. * src/SeedCheckCommand.cc: New class.
  12222. * src/DownloadEngineFactory.cc
  12223. (SeedCheckCommand.h): Included.
  12224. (UnionSeedCriteria.h): Included.
  12225. (TimeSeedCriteria.h): Included.
  12226. (ShareRatioSeedCriteria.h): Included.
  12227. (newTorrentConsoleEngine): Added the processing of seed option.
  12228. * src/SeedCriteria.h: New class.
  12229. * src/ShareRatioSeedCriteria.h: New class.
  12230. * src/TimeSeedCriteria.h: New class.
  12231. * src/UnionSeedCriteria.h: New class.
  12232. * src/prefs.h
  12233. (PREF_SEED_TIME): New definition.
  12234. (PREF_SEED_RATIO): New definition.
  12235. * src/main.cc
  12236. (showUsage): Added --seed-time and --seed-ratio option.
  12237. (main): Added --seed-time and --seed-ratio option.
  12238. Made default log file name "/dev/null".
  12239. * src/SharedHandle.h
  12240. (SharedHandle): Copy constructor. Made it assignable from the
  12241. SharedHandle of the subclasses.
  12242. (operator=): Made it assignable from the SharedHandle of the
  12243. subclasses.
  12244. (getRefCount): New function.
  12245. To add notice log level and the switch to write log to stdout. This
  12246. switch is configurable per log level.
  12247. * src/Logger.h
  12248. (notice): New function.
  12249. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12250. constant.
  12251. * src/LogFactory.cc
  12252. (getInstance): The use of NullLogger was removed. A log message with
  12253. notice log level was made written to stdout along with log file.
  12254. * src/NullLogger.h
  12255. (notice): New function.
  12256. * src/SimpleLogger.h
  12257. (writeHeader): Added the 'file' argument.
  12258. (writeLog): Added the 'file' argument.
  12259. (writeFile): New function.
  12260. (stdoutField): New variable.
  12261. (SimpleLogger): Removed the default constructor.
  12262. (SimpleLogger): Made the default value of logfile 0.
  12263. (debug): Added 'virtual' keyword.
  12264. (info): Added 'virtual' keyword.
  12265. (warn): Added 'virtual' keyword.
  12266. (error): Added 'virtual' keyword.
  12267. (notice): New function.
  12268. (setStdout): New function.
  12269. * src/SimpleLogger.cc
  12270. (WRITE_LOG): Replaced writeLog with writeFile.
  12271. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12272. (SimpleLogger): Removed the default constructor.
  12273. (setStdout): New function.
  12274. (writeLog): Added the handling of NOTICE log level.
  12275. (writeFile): New function.
  12276. (notice): New function.
  12277. * src/TorrentMan.h: Updated doc.
  12278. * src/BitfieldMan.h: Updated doc.
  12279. * src/TrackerWatcherCommand.cc
  12280. (execute): Return true if error occurred in the request to the tracker
  12281. and halt is requested.
  12282. * src/TrackerUpdateCommand.cc
  12283. (execute): Return true if error occurred in the request to the tracker
  12284. and halt is requested.
  12285. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12286. DownloadEngine:
  12287. * src/TorrentConsoleDownloadEngine.h
  12288. (onSelectiveDownloadingCompletes): Removed.
  12289. * src/TorrentConsoleDownloadEngine.cc
  12290. (onSelectiveDownloadingCompletes): Removed.
  12291. * src/TorrentDownloadEngine.h
  12292. (onEndOfRun): Added 'virtual' keyword.
  12293. (afterEachIteration): Removed.
  12294. (onSelectiveDownloadingCompletes): Removed.
  12295. * src/TorrentDownloadEngine.cc
  12296. (onEndOfRun): Removed filenameFixed.
  12297. (afterEachIteration): Removed.
  12298. * src/TorrentMan.cc
  12299. (completePiece): Call onDownloadComplete here.
  12300. (onDownloadComplete): Added 2 log messages.
  12301. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12302. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12303. * src/NameResolver.h: Added the prototype declaration of callback().
  12304. To support c-ares library:
  12305. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12306. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12307. * src/FtpInitiateConnectionCommand.h:
  12308. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12309. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12310. * src/HttpInitiateConnectionCommand.h:
  12311. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12312. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12313. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12314. #1542285 by tizianomueller)
  12315. * src/HttpInitiateConnectionCommand.cc:
  12316. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12317. * src/FtpInitiateConnectionCommand.cc:
  12318. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12319. * src/DownloadEngine.h:
  12320. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12321. * src/DownloadEngine.cc:
  12322. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12323. To fix the bug that causes compilation failure with metalink-support
  12324. disabled(bug#1543587):
  12325. * src/main.cc: Fixed with the patch by tizianomueller.
  12326. * Release 0.7.2
  12327. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12328. * src/main.cc
  12329. (main): Added a message to inform users that aria2 is starting to
  12330. verify checksum.
  12331. * src/RequestInfo.cc
  12332. (printDownloadAbortMessage): Added a message to inform users that
  12333. transfer can be resumed.
  12334. * src/FeatureConfig.cc
  12335. (FEATURE_ASYNC_DNS): New definition.
  12336. (FeatureConfig): Added aysnc DNS entry.
  12337. To replace CommandUuid with Command* in SocketEntry and
  12338. NameResolverEntry:
  12339. * src/DownloadEngine.h
  12340. (CommandUuids): Removed.
  12341. (SocketEntry::commandUuid): Removed.
  12342. (SocketEntry::command): New variable.
  12343. (SocketEntry::SocketEntry): Updated.
  12344. (SocketEntry::operator==): Updated.
  12345. (NameResolverEntry::commandUuid): Removed.
  12346. (NameResolverEntry::command): New variable.
  12347. (NameResolverEntry::NameResolverEntry): Updated.
  12348. (NameResolverEntry::operator==): Updated.
  12349. (waitData): Changed the argument type.
  12350. (addSocketForReadCheck): Changed the argument type.
  12351. (deleteSocketForReadCheck): Changed the argument type.
  12352. (addSocketForWriteCheck): Changed the argument type.
  12353. (deleteSocketForWriteCheck): Changed the argument type.
  12354. (addNameResolverCheck): Changed the argument type.
  12355. (deleteNameResolverCheck): Changed the argument type.
  12356. * src/DownloadEngine.cc
  12357. (FindCommand): Removed.
  12358. (run): Removed activeUuid. Added activeCommands instead.
  12359. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12360. (AccumulateActiveCommand): New function object.
  12361. (waitData): Use AccumulateActiveCommand.
  12362. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12363. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12364. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12365. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12366. (addNameResolverCheck): Use Command instead of CommandUuid.
  12367. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12368. * src/AbstractCommand.cc
  12369. (disableReadCheckSocket): Updated according to the changes in
  12370. DownloadEngine.
  12371. (setReadCheckSocket): Updated according to the changes in
  12372. DownloadEngine.
  12373. (disableWriteCheckSocket): Updated according to the changes in
  12374. DownloadEngine.
  12375. (setWriteCheckSocket): Updated according to the changes in
  12376. DownloadEngine.
  12377. (setNameResolverCheck): Updated according to the changes in
  12378. DownloadEngine.
  12379. (disableNameResolverCheck): Updated according to the changes in
  12380. DownloadEngine.
  12381. * src/AbstractCommand.cc
  12382. (disableReadCheckSocket): Updated according to the changes in
  12383. DownloadEngine.
  12384. (setReadCheckSocket): Updated according to the changes in
  12385. DownloadEngine.
  12386. (disableWriteCheckSocket): Updated according to the changes in
  12387. DownloadEngine.
  12388. (setWriteCheckSocket): Updated according to the changes in
  12389. DownloadEngine.
  12390. * release 0.7.1
  12391. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12392. To handle the case where some BitTorrent tracker requires all letters
  12393. except for [A-Za-z0-9] is URL encoded.
  12394. * src/Util.h
  12395. (torrentUrlencode): New function.
  12396. * src/Util.cc
  12397. (ctype.h): Included.
  12398. (torrentUrlencode): New function.
  12399. * src/TrackerWatcherCommand.cc
  12400. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12401. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12402. To add asynchronous DNS support(libares):
  12403. * src/AbstractCommand.h
  12404. (setNameResolverCheck): New function.
  12405. (disableNameResolverCheck): New function
  12406. (resolveHostname): New function.
  12407. * src/AbstractCommand.cc
  12408. (setNameResolverCheck): New function.
  12409. (disableNameResolverCheck): New function
  12410. (resolveHostname): New function.
  12411. * src/FtpInitiateConnectionCommand.h
  12412. (nameResolver): New function.
  12413. * src/FtpInitiateConnectionCommand.cc
  12414. (Util.h): Included.
  12415. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  12416. disableWriteCheckSocket.
  12417. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  12418. (executeInternal): Added async DNS support.
  12419. * src/HttpInitiateConnectionCommand.h
  12420. (nameResolver): New function.
  12421. * src/HttpInitiateConnectionCommand.cc
  12422. (DlRetryEx.h): Included.
  12423. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  12424. disableWriteCheckSocket.
  12425. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  12426. (executeInternal): Added async DNS support.
  12427. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  12428. by extern "C" declaration.
  12429. * src/NameResolver.cc: New class.
  12430. * src/Util.h:
  12431. (isNumberAndDotsNotation): New function
  12432. * src/Util.cc
  12433. (isNumberAndDotsNotation): New function.
  12434. * src/DownloadEngine.h
  12435. (NameResolver.h): Included.
  12436. (NameResolverEntry): New class.
  12437. (NameResolverEntries): New type definition.
  12438. (addNameResolverCheck): New function.
  12439. (deleteNameResolverCheck): New function.
  12440. * src/DownloadEngine.cc
  12441. (run): Initialize cp with 0.
  12442. (SetDescriptor::operator()): Added for NameResolverEntry.
  12443. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  12444. (waitData): Check nameResolver entries.
  12445. (updateFdSet): Update fds in nameResolver entries.
  12446. (addNameResolverCheck): New function.
  12447. (deleteNameResolverCheck): new function.
  12448. * src/PeerInteractionCommand.cc
  12449. (executeInternal): Fixed wrong socket handling.
  12450. * src/main.cc
  12451. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  12452. * src/Util.cc
  12453. (fileChecksum): Removed the call to ctx.digestReset().
  12454. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12455. * po/ru.po: Azamat sent me Russian translation.
  12456. * src/FtpNegotiateCommand.cc
  12457. (recvGreeting): Call disableWriteCheckSocket just after
  12458. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  12459. (recvRetr): Recognized status code 125 as a acceptable response code.
  12460. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  12461. case-insesitive filesystem(BUG#1531057).
  12462. * src/Time.h: Renamed as TimeA2.h.
  12463. * src/Time.cc: Renamed as TimeA2.cc.
  12464. * src/TimeA2.h: New class.
  12465. * src/TimeA2.cc: New class.
  12466. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12467. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12468. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12469. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12470. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12471. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12472. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12473. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12474. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12475. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12476. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12477. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12478. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12479. * release 0.7.0
  12480. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12481. * src/PeerChokeCommand.h
  12482. (PeerChokeCommand): Rearranged the arguments.
  12483. * src/PeerChokeCommand.cc
  12484. (PeerChokeCommand): Rearranged the arguments.
  12485. * src/MetalinkEntry.h
  12486. (Checksum.h): Included.
  12487. (md5): Removed.
  12488. (sha1): Removed.
  12489. (checksum): New variable.
  12490. (operator=): Updated.
  12491. (check): Removed.
  12492. * src/prefs.h
  12493. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12494. (PREF_FOLLOW_TORRENT): New definition.
  12495. (PREF_SELECT_FILE): New definition.
  12496. (PREF_FOLLOW_METALINK): New definition.
  12497. * src/MetalinkResource.h
  12498. (TYPE_HTTPS): Added to enum TYPE.
  12499. * src/TorrentMan.cc
  12500. (~TorrentMan): Rewritten.
  12501. * src/MultiDiskWriter.cc
  12502. (MultiDiskAdaptor): Updated according to the changes in
  12503. MessageDigestContext.
  12504. (~MultiDiskAdaptor): Updated according to the changes in
  12505. MessageDigestContext.
  12506. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12507. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12508. * src/Util.h
  12509. (fileChecksum): Updated according to the changes in
  12510. MessageDigestContext.
  12511. * src/Util.cc
  12512. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12513. (fileChecksum): Updated according to the changes in
  12514. MessageDigestContext.
  12515. * src/messageDigest.h: Rewritten.
  12516. * src/MetalinkEntry.cc
  12517. (check): Removed.
  12518. (Supported): Updated.
  12519. (dropUnsupportedResource): Fixed a memory leak.
  12520. * src/ShaVisitor.cc
  12521. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12522. (~ShaVisitor): Updated according to the changes in
  12523. MessageDigestContext.
  12524. (visit): Updated according to the changes in MessageDigestContext.
  12525. * src/main.cc
  12526. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12527. command-line option added.
  12528. * src/DownloadEngine.h
  12529. (SocketEntry): New class.
  12530. (SocketEntries): New definition.
  12531. (PairFind): Removed.
  12532. (SockCmdMap): Removed.
  12533. * src/DownloadEngine.cc
  12534. (DownloadEngine): Rewritten.
  12535. (~DownloadEngine): Rewritten.
  12536. (run): Renamed activeCommandUuids as activeUuids.
  12537. (SetDescriptor): Rewritten.
  12538. (AccumulateActiveCommandUuid): Removed.
  12539. (AccumulateActiveUuid): New function object.
  12540. (waitData): Rewritten.
  12541. (updateFdSet): Rewritten.
  12542. (addSocket): Rewritten.
  12543. (deleteSocket): Rewritten.
  12544. (addSocketForReadCheck): Rewritten.
  12545. (deleteSocketForReadCheck): Rewritten.
  12546. (addSocketForWriteCheck): Rewritten.
  12547. (deleteSocketForWriteCheck): Rewritten.
  12548. * src/Xml2MetalinkProcessor.cc
  12549. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12550. * src/DownloadCommand.cc
  12551. (executeInternal): Added the check routine for lowest speed limit.
  12552. * src/AbstractDiskWriter.cc
  12553. (AbstractDiskWriter): Updated according to the changes in
  12554. MessageDigestContext.
  12555. (~AbstractDiskWriter): Updated according to the changes in
  12556. MessageDigestContext.
  12557. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12558. * src/RequestInfo.h: New class.
  12559. * src/UrlRequestInfo.h: New class.
  12560. * src/UrlRequestInfo.cc: New class.
  12561. * src/TorrentRequestInfo.h: New class.
  12562. * src/TorrentRequestInfo.cc: New class.
  12563. * src/MetalinkRequestInfo.h: New class.
  12564. * src/MetalinkRequestInfo.cc: New class.
  12565. * src/Checksum.h: New class.
  12566. * src/DownloadEngineFactory.h: New class.
  12567. * src/DownloadEngineFactory.cc: New class.
  12568. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12569. * src/Option.h
  12570. (getAsBool): New function.
  12571. * src/Option.cc
  12572. (prefs.h): Included.
  12573. (defined): 0-length value is now recognized as undefined.
  12574. (getAsInt): Rewritten.
  12575. (getAsLLInt): Rewritten.
  12576. (getAsBool): New function.
  12577. * src/FeatureConfig.h: Rewritten.
  12578. * src/FeatureConfig.cc: Rewritten.
  12579. * src/prefs.h
  12580. (PREF_STDOUT_LOG): New definition.
  12581. (PREF_LOG): New definition.
  12582. (PREF_DIR): New definition.
  12583. (PREF_OUT): New definition.
  12584. (PREF_SPLIT): New definition.
  12585. (PREF_DAEMON): New definition.
  12586. (PREF_REFERER): New definition.
  12587. (PREF_TORRENT_FILE): New definition.
  12588. (PREF_LISTEN_PORT): New definition.
  12589. (PREF_METALINK_FILE): New definition.
  12590. (PREF_METALINK_VERSION): New definition.
  12591. (PREF_METALINK_LANGUAGE): New definition.
  12592. (PREF_METALINK_OS): New definition.
  12593. (PREF_METALINK_SERVERS): New definition.
  12594. * src/main.cc
  12595. (main): Following command-line parameters are now put into Option
  12596. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12597. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12598. metalinkLanguage, metalinkOs, metalinkServers
  12599. To fix the bug that aria2 can not handle http response header properly.
  12600. * src/HttpHeader.cc
  12601. (put): Made name lowercased.
  12602. (defined): Made name lowercased.
  12603. (getFirst): Made name lowercased.
  12604. (get): Made name lowercased.
  12605. (getFirstAsInt): Rewritten.
  12606. (getFirstAsLLInt): Rewritten.
  12607. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12608. * src/TorrentMan.h:
  12609. (advertisePiece): Updated doc.
  12610. (getAdvertisedPieceIndexes): Updated doc.
  12611. (removeAdvertisedPiece); New function.
  12612. * src/TorrentMan.cc
  12613. (FindElapsedHave): New function object.
  12614. (removeAdvertisedPiece): New function.
  12615. * src/HaveEraseCommand.h: New class.
  12616. * src/HaveEraseCommand.cc: New class.
  12617. * src/FeatureConfig.h: New class.
  12618. * src/FeatureConfig.cc: New class.
  12619. * src/Request.h
  12620. (defaultPorts): Removed.
  12621. * src/Request.cc
  12622. (FeatureConfig.h): Included.
  12623. (Request): Removed the statements related to defaultPorts.
  12624. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12625. A default port number is now retrieved from FeatureConfig.
  12626. * src/main.cc
  12627. (HaveEraseCommand.h): Included.
  12628. (showVersion): Added the output of feature list.
  12629. (main): Added HaveEraseCommand to command queue in BitTorrent
  12630. downloading.
  12631. * src/PeerInteractionCommand.h
  12632. (chokeCheckPoint): Commented out.
  12633. (periodicExecPoint): New variable.
  12634. * src/PeerInteractionCommand.cc
  12635. (executeInternal): Following methods are now called in at least every
  12636. 0.5 seconds to reduce CPU usage:
  12637. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12638. checkHave(), sendKeepAlive().
  12639. (checkLongTimePeerChoking): Commented out.
  12640. * src/BitfieldMan.h
  12641. (getNthBitIndex): Changed the method signature.
  12642. (getMissingIndexRandomly): Changed the method signature.
  12643. * src/BitfieldMan.cc
  12644. (getNthBitIndex): Rewritten
  12645. (getMissingIndexRandomly): Rewritten.
  12646. (hasMissingPiece): Rewritten.
  12647. (getMissingIndex): Refactored.
  12648. (getMissingUnusedIndex); Refactored.
  12649. (getMissingIndex): Refactored.
  12650. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12651. * src/PeerMessage.h
  12652. (Piece.h): Included.
  12653. (SharedHandle.h): Included.
  12654. (invalidate): New variable.
  12655. (uploading): New variable.
  12656. (isInvalidate): New function.
  12657. (isUploading): New function.
  12658. (onPush): New function.
  12659. (onChoked): New function.
  12660. (onCanceled): New function.
  12661. (onAbortPiece): New function.
  12662. (PeerMessageHandle): New type definition.
  12663. * src/PeerMessage.cc
  12664. (PeerMessage): Added the initialization for invalidate and uploading.
  12665. * src/CancelMessage.h
  12666. (CancelMessage): Rewritten.
  12667. * src/RejectMessage.h
  12668. (RejectMessage): Rewritten.
  12669. * src/Metalinker.h
  12670. (operator=): Defined.
  12671. * src/MetaEntry.h
  12672. (operator=): Defined.
  12673. * src/MetalinkResource.h
  12674. (operator=): Defined.
  12675. * src/AllowedFastMessage.h
  12676. (AllowedFastMessage): Rewritten.
  12677. * src/HandshakeMessage.h
  12678. (HandshakeMessage): New function(overload).
  12679. * src/HandshakeMessage.cc
  12680. (HandshakeMessage): Rewritten.
  12681. (init): New function.
  12682. * src/HaveMessage.h
  12683. (HaveMessage): Rewritten.
  12684. * src/Time.h
  12685. (operator=): Defined the function body here.
  12686. * src/Time.cc
  12687. (operator=): Removed.
  12688. * src/SocketCore.h
  12689. (operator==): Defined here.
  12690. (operator!=): Defined here.
  12691. (operator<): Defined here.
  12692. * src/SocketCore.cc
  12693. (operator==): Removed.
  12694. (operator<): Removed.
  12695. * src/BitfieldMan.h
  12696. (operator=): Defined the function body here.
  12697. * src/BitfieldMan.cc
  12698. (operator=): Removed.
  12699. * src/TorrentMan.h
  12700. (deleteErrorPeer): Removed.
  12701. (deleteUnusedPeer); New function.
  12702. * src/TorrentMan.cc
  12703. (addPeer): Call deleteUnusedPeer.
  12704. (deleteErrorPeer): Removed.
  12705. (deleteUnusedPeer): New function.
  12706. * src/PeerAbstractCommand.h
  12707. (setNoCheck): New function.
  12708. (noCheck): New variable.
  12709. * src/PeerAbstractCommand.cc
  12710. (PeerAbstractCommand): Added the initialization of noCheck.
  12711. (execute): Added a check for noCheck.
  12712. (setNoCheck): New function.
  12713. * src/Util.h
  12714. (stdio.h): Included.
  12715. * src/Util.cc
  12716. (unistd.h): Included.
  12717. * src/DefaultDiskWriter.cc
  12718. (unistd.h): Included.
  12719. * src/Peer.h
  12720. (operator==): Defined the function body here.
  12721. (operator!=): Defined the function body here.
  12722. * src/Peer.cc
  12723. (operator==): Removed.
  12724. (operator!=): Removed.
  12725. * src/Piece.h
  12726. (Piece): Defined the function body here(copy constructor).
  12727. (operator=): Defined the function body here.
  12728. (operator==): Defined the function body here.
  12729. * src/Piece.cc
  12730. (Piece): Removed(copy constructor).
  12731. (operator=): Removed.
  12732. (operator==): Removed.
  12733. * src/PeerMessageUtil.h
  12734. (ChokeMessage.h): Removed.
  12735. (UnchokeMessage.h): Removed.
  12736. (InterestedMessage.h): Removed.
  12737. (NotInterestedMessage.h): Removed.
  12738. (HaveMessage.h): Removed.
  12739. (BitfieldMessage.h): Removed.
  12740. (RequestMessage.h): Removed.
  12741. (CancelMessage.h): Removed.
  12742. (PieceMessage.h): Removed.
  12743. (HandshakeMessage.h): Removed.
  12744. (KeepAliveMessage.h): Removed.
  12745. (PortMessage.h): Removed.
  12746. (HaveAllMessage.h): Removed.
  12747. (HaveNoneMessage.h): Removed.
  12748. (PeerConnection.h): Removed.
  12749. (HandshakeMessage.h): Included.
  12750. * src/BitfieldMessage.h
  12751. (init): New function.
  12752. (BitfieldMessage): Rewritten.
  12753. (BitfieldMessage): New function(overload).
  12754. * src/RequestSlot.h
  12755. (operator=): Defined the function body here.
  12756. (operator==): Defined the function body here.
  12757. * src/RequestSlot.cc
  12758. (operator=): Removed.
  12759. (operator==): Removed.
  12760. To remove the dependency on the PeerMessage subclass from
  12761. PeerInteraction:
  12762. * src/PeerMessageFactory.h: New class.
  12763. * src/PeerMessageFactory.cc: New class.
  12764. * src/SimplePeerMessage.cc
  12765. (send): If invalidate is true then do nothing.
  12766. * src/PeerInteractionCommand.cc
  12767. (HandshakeMessage.h): Included.
  12768. (KeepAliveMessage.h): Included.
  12769. (ChokeMessage.h): Included.
  12770. (UnchokeMessage.h): Included.
  12771. (HaveMessage.h): Included.
  12772. (executeInternal): Call setNoCheck().
  12773. Removed setWriteCheckSocket(socket).
  12774. * src/PeerInteraction.h
  12775. (ChokeMessage.h): Removed.
  12776. (UnchokeMessage.h): Removed.
  12777. (InterestedMessage.h): Removed.
  12778. (NotInterestedMessage.h): Removed.
  12779. (HaveMessage.h): Removed.
  12780. (BitfieldMessage.h): Removed.
  12781. (RequestMessage.h): Removed.
  12782. (CancelMessage.h): Removed.
  12783. (PieceMessage.h): Removed.
  12784. (HandshakeMessage.h): Removed.
  12785. (KeepAliveMessage.h): Removed.
  12786. (PortMessage.h): Removed.
  12787. (HaveAllMessage.h): Removed.
  12788. (HaveNoneMessage.h): Removed.
  12789. (RejectMessage.h): Removed.
  12790. (AllowedFastMessage.h): Removed.
  12791. (SuggestPieceMessage.h): Removed.
  12792. (PeerMessageFactory.h): Included.
  12793. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12794. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12795. (PeerMessageFactory): New variable.
  12796. (createPeerMessage): Removed.
  12797. (createHandshakeMessage): Removed.
  12798. (setPeerMessageCommonProperty): Removed.
  12799. (addRequestSlot): New function.
  12800. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12801. (getPeerMessageFactory): New function.
  12802. (createRequestMessage): Removed.
  12803. (createCancelMessage): Removed.
  12804. (createPieceMessage): Removed.
  12805. (createHaveMessage): Removed.
  12806. (createChokeMessage): Removed.
  12807. (createUnchokeMessage): Removed.
  12808. (createInterestedMessage): Removed.
  12809. (createNotInterestedMessage): Removed.
  12810. (createBitfieldMessage): Removed.
  12811. (createKeepAliveMessage): Removed.
  12812. (createHaveAllMessage): Removed.
  12813. (createHaveNoneMessage): Removed.
  12814. (createRejectMessage): Removed.
  12815. (createAllowedFastMessage): Removed.
  12816. * src/PeerInteraction.cc
  12817. (PeerInteraction): Allocate PeerMessageFactory here.
  12818. (~PeerInteraction): Deallocate PeerMessageFactory here.
  12819. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  12820. PieceMessage::ID.
  12821. (addMessage): Simplified by using PeerMessage::onPush().
  12822. (addRequestSlot): New function.
  12823. (rejectAllPieceMessageInQueue): Simplified by using
  12824. PeerMessage::onChoked().
  12825. (rejectPieceMessageInQueue): Simplified by using
  12826. PeerMessage::onCanceled().
  12827. (abortPiece): Simplified by using PeerMessage::abortPiece().
  12828. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12829. (createHandshakeMessage): Removed.
  12830. (createPeerMessage): Removed.
  12831. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  12832. (setPeerMessageCommonProperty): Removed.
  12833. (createRequestMessage): Removed.
  12834. (createCancelMessage): Removed.
  12835. (createPieceMessage): Removed.
  12836. (createHaveMessage): Removed.
  12837. (createChokeMessage): Removed.
  12838. (createUnchokeMessage): Removed.
  12839. (createInterestedMessage): Removed.
  12840. (createNotInterestedMessage): Removed.
  12841. (createBitfieldMessage): Removed.
  12842. (createKeepAliveMessage): Removed.
  12843. (createHaveAllMessage): Removed.
  12844. (createHaveNoneMessage): Removed.
  12845. (createRejectMessage): Removed.
  12846. (createAllowedFastMessage): Removed.
  12847. * src/PieceMessage.h
  12848. (createRejectMessage): New function.
  12849. (PieceMessage): Rewritten.
  12850. (onChoked): New function.
  12851. (onCanceled): New function.
  12852. * src/PieceMessage.cc
  12853. (send): If invalidate is true then do nothing, just return.
  12854. (createRejectMessage): New function.
  12855. (onChoked): New function.
  12856. (onCanceled): New function.
  12857. * src/RequestMessage.h
  12858. (RequestMessage): Rewritten.
  12859. (onPush): New function.
  12860. (onAbortPiece): New function.
  12861. * src/RequestMessage.cc
  12862. (onPush): New function.
  12863. (onAbortPiece): New function.
  12864. Update fd_set when a socket is added or deleted in order to improve
  12865. performance:
  12866. * src/DownloadEngine.h
  12867. (rfdset): New variable.
  12868. (wfdset): New variable.
  12869. (updateFdSet): New function.
  12870. * src/DownloadEngine.cc
  12871. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  12872. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  12873. (waitData): Copy rfdset and wfdset.
  12874. (updateFdSet): New function.
  12875. (addSocket): Call updateFdSet.
  12876. (deleteSocket): Call updateFdSet.
  12877. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12878. To add the support for Metalink3.0 backward compatible links:
  12879. * src/Request.h
  12880. (SAFE_CHARS): Added '#'.
  12881. (METALINK_MARK): New definition.
  12882. * src/Request.cc
  12883. (parseUrl): Added the support for Metalink3.0 backward compatible
  12884. links.
  12885. etc
  12886. * src/PeerInteraction.cc
  12887. (MsgPushBack): Removed.
  12888. (sendMessages): Use STL copy and back_inserter.
  12889. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  12890. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  12891. * src/TorrentMan.h
  12892. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  12893. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12894. * src/SharedHandle.h: New class.
  12895. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  12896. * src/HttpResponseCommand.h
  12897. (HttpResponseCommand): Wrapped Socket.
  12898. * src/SocketCore.h
  12899. (operator==): New function.
  12900. (operator!=): New function.
  12901. (operator<): New function.
  12902. (getSockfd): New function.
  12903. (isOpen): New function.
  12904. (writeData): New function.
  12905. * src/SocketCore.cc
  12906. (operator==): New function.
  12907. (operator!=): New function.
  12908. (operator<): New function.
  12909. * src/AbstractCommand.h
  12910. (socket): Changed its type to SocketHandle.
  12911. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12912. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12913. (disableReadCheckSocket): New function.
  12914. (disableWriteCheckSocket): New function.
  12915. (readCheckTarget): Changed its type to SocketHandle.
  12916. (writeCheckTarget): Changed its type to SocketHandle.
  12917. (AbstractCommand): Replaced Socket with SocketHandle.
  12918. * src/AbstractCommand.cc
  12919. (AbstractCommand): Replaced Socket with SocketHandle.
  12920. (~AbstractCommand): Removed the deallocation for Socket object.
  12921. (disableReadCheckSocket): New function.
  12922. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12923. (disableWriteCheckSocket): New function.
  12924. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12925. * src/HttpDownloadCommand.cc
  12926. (DownloadCommand): Replaced Socket with SocketHandle.
  12927. * src/PeerAbstractCommand.h
  12928. (socket): Changed its type to SocketHandle.
  12929. (peer): Changed its type to PeerHandle.
  12930. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12931. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12932. (disableReadCheckSocket): New function.
  12933. (disableWriteCheckSocket): New function.
  12934. (readCheckTarget): Changed its type to SocketHandle.
  12935. (writeCheckTarget): Changed its type to SocketHandle.
  12936. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12937. Replaced Peer with PeerHandle.
  12938. * src/HttpRequestCommand.cc
  12939. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12940. Use disableReadCheckSocket.
  12941. * src/PeerInitiateConnectionCommand.h
  12942. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12943. * src/PeerChokeCommand.cc
  12944. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  12945. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  12946. (execute): Use PeerHandle.
  12947. * src/PeerConnection.h
  12948. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  12949. (socket): Changed its type to SocketHandle.
  12950. (PeerConnection): Replaced Socket with SocketHandle.
  12951. * src/PeerConnection.cc
  12952. (PeerConnection): Replaced Socket with SocketHandle.
  12953. * src/PeerInteractionCommand.h
  12954. (PeerInteractionCommand): Replaced socket with SocketHandle.
  12955. Replaced Peer with PeerHandle.
  12956. * src/PeerInteractionCommand.cc
  12957. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  12958. Replaced Peer with PeerHandle.
  12959. (executeInternal): Use disableWriteCheckSocket.
  12960. Use HandshakeMessageHandle.
  12961. (receiveMessages): Use PeerMessageHandle.
  12962. (prepareForNextPeer): Use PeerHandle.
  12963. * src/HttpProxyRequestCommand.h
  12964. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12965. * src/HttpResponseCommand.cc
  12966. (HttpResponseCommand): Replaced Socket with SocketHandle.
  12967. * src/TorrentMan.cc
  12968. (nullPeer): Added external reference.
  12969. (~TorrentMan): Removed the deallocation of the elements of peers.
  12970. (addPeer): Rewritten.
  12971. (isPeerAvailable): Use nullPeer.
  12972. (deleteOldpeers): Replaced with deleteErrorPeer.
  12973. (deleteErrorPeer): New function.
  12974. (getPeer): Use PeerHandle and nullPeer.
  12975. (hasMissingPiece): Replaced Peer with PeerHandle.
  12976. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12977. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12978. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12979. (getMissingPiece): Replaced Peer with PeerHandle.
  12980. * src/FtpNegotiateCommand.cc
  12981. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  12982. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  12983. (recvGreeting): Use disableWriteCheckSocket.
  12984. (recvPasv): Removed the allocation of Socket.
  12985. Use disableReadCheckSocket.
  12986. (sendRestPasv): Use disableWriteCheckSocket.
  12987. (recvRetr): Changed assertion.
  12988. * src/PeerInteraction.h
  12989. (SharedHandle.h): Included SharedHandle.h.
  12990. (PeerMessageHandle): New type definition.
  12991. (HandshakeMessageHandle): New type definition.
  12992. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  12993. (peer): Changed its type to PeerHandle.
  12994. (createHandshakeMessage): Replaced HandshakeMessage with
  12995. HandshakeMessageHandle.
  12996. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  12997. (PeerInteraction): Replaced Peer with PeerHandle.
  12998. Replaced Socket with SocketHandle.
  12999. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13000. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13001. (receiveHandshake): Replaced HandshakeMessage with
  13002. HandshakeMessageHandle.
  13003. * src/PeerInteraction.cc
  13004. (PeerInteraction): Replaced Peer with PeerHandle.
  13005. Replaced Socket with SocketHandle.
  13006. (~PeerInteraction): Removed the deallocation of the elements of
  13007. messageQueue.
  13008. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13009. (isSendingMessageInProgress): Replaced PeerMessage with
  13010. PeerMessageHandle.
  13011. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13012. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13013. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13014. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13015. (abortPiece): Use PeerMessageHandle.
  13016. (receiveHandshake): Replaced HandshakeMessage with
  13017. HandshakeMessageHandle. Removed try-catch block.
  13018. (createHandshakeMessage): Replaced HandshakeMessage with
  13019. HandshakeMessageHandle.
  13020. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13021. Removed try-catch block.
  13022. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13023. * src/HttpProxyResponseCommand.cc
  13024. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13025. * src/FtpTunnelResponseCommand.h
  13026. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13027. * src/HttpConnection.cc
  13028. (HttpConnection): Replaced Socket with SocketHandle.
  13029. * src/PeerAbstractCommand.cc
  13030. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13031. (~PeerAbstractCommand): Removed the deallocation of socket.
  13032. Use disableReadCheckSocket, disableWriteCheckSocket.
  13033. (disableReadCheckSocket): New function.
  13034. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13035. (disableWriteCheckSocket): New function.
  13036. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13037. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13038. * src/FtpTunnelRequestCommand.cc
  13039. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13040. (~FtpTunnelRequestCommand): Corrected indentation.
  13041. * src/DownloadCommand.h
  13042. (DownloadCommand): Replaced Socket with SocketHandle.
  13043. * src/PeerListenCommand.cc
  13044. (PeerListenCommand): Removed the initialization of socket.
  13045. (~PeerListenCommand): Removed the deallocation of socket.
  13046. (bindPort): Use SocketHandle.
  13047. (execute): Use SocketHandle and PeerHandle.
  13048. * src/FtpDowndloadCommand.cc
  13049. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13050. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13051. * src/main.cc
  13052. (main): Corrected indentation.
  13053. * src/HttpInitiateConnectionCommand.cc
  13054. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13055. (executeInternal): Removed the allocation of socket.
  13056. * src/HttpRequestCommand.h
  13057. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13058. * src/FtpNegotiationCommand.h
  13059. (dataSocket): Changed its type to SocketHandle.
  13060. (serverSocket): Changed its type to SocketHandle.
  13061. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13062. * src/TorrentMan.h
  13063. (MAX_PEER_UPDATE): Removed.
  13064. (MAX_PEERS): New definition.
  13065. (Peers): The element is now of type PeerHandle.
  13066. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13067. (getPeer): Replaced Peer with PeerHandle.
  13068. (deleteOldErrorPeers): Removed.
  13069. (deleteErrorPeer): New function.
  13070. (hasMissingPiece): Replaced Peer with PeerHandle.
  13071. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13072. (getMissingPiece): Replaced Peer with PeerHandle.
  13073. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13074. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13075. (addActivePeer): Replaced Peer with PeerHandle.
  13076. (deleteActivePeer): Replaced Peer with PeerHandle.
  13077. Added a check for the return value of find.
  13078. * src/FtpTunnelResponseCommand.cc
  13079. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13080. * src/FtpInitiateConnectionCommand.cc
  13081. (executeInternal): Removed the allocation of socket.
  13082. * src/DownloadEngine.h
  13083. (Sockets): An element is now of type SocketHandle.
  13084. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13085. (CommandUuids): New type definition.
  13086. (rsockets): Changed its type to SockCmdMap.
  13087. (wsockets): Changed its type to SockCmdMap.
  13088. (addSocket): Rewritten.
  13089. (deleteSocket): Rewritten.
  13090. (addSocketForReadCheck): Rewritten.
  13091. (deleteSocketForReadCheck): Rewritten.
  13092. (addSocketForWriteCheck): Rewritten.
  13093. (deleteSocketForWriteCheck): Rewritten.
  13094. (PairFind): New template class.
  13095. * src/HttpDownloadCommand.h
  13096. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13097. * src/FtpConnection.cc
  13098. (FtpConnection): Replaced Socket with SocketHandle.
  13099. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13100. block.
  13101. * src/InitiateConnectionCommandFactory.cc
  13102. (DlAbortEx.h): Included DlAbortEx.h.
  13103. (createInitiateConnectionCommand): Throw exception if the protocol of
  13104. requested URI is not supported.
  13105. * src/Peer.cc
  13106. (nullPeer): Changed its type to PeerHandle.
  13107. (operator==): New function.
  13108. (operator!=): New function.
  13109. * src/Peer.h
  13110. (SharedHandle.h): Included SharedHandle.h.
  13111. (operator==): New function.
  13112. (operator!=): New function.
  13113. (Peer): Added the default constructor.
  13114. Use resetStatus() to initialize member variables.
  13115. (nullPeer): Removed.
  13116. * src/TrackerUpdateCommand.cc
  13117. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13118. with MIN_PEERS.
  13119. * src/PeerListenCommand.h
  13120. (socket): Changed its type to SocketHandle.
  13121. * src/Command.h
  13122. (CommandUuid): New type definition.
  13123. (uuid): New variable.
  13124. (uuidGen): New variable.
  13125. (Command): Added the initialization of uuid.
  13126. (getUuid): New function.
  13127. * src/Socket.h
  13128. (Socket): Removed.
  13129. (SocketHandle): New type definition.
  13130. * src/DownloadEngine.h
  13131. (FindCommand): New function object.
  13132. (run): The portion of socket check was rewritten.
  13133. (SetDescriptor): New function object.
  13134. (AccumulateActiveCommandUuid): New function object.
  13135. (waitData): Rewritten.
  13136. (addSocket): Rewritten.
  13137. (deleteSocket): Rewritten.
  13138. (addSocketForReadCheck): Rewritten.
  13139. (addSocketForWriteCheck): Rewritten.
  13140. (deleteSocketForReadCheck): Rewritten.
  13141. (deleteSocketForWriteCheck): Rewritten.
  13142. * src/HttpProxyResponseCommand.h
  13143. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13144. * src/HttpConnection.h
  13145. (socket): Changed its type to SocketHandle.
  13146. (HttpConnection): Replaced Socket with SocketHandle.
  13147. * src/PeerInitiateConnectionCommand.cc
  13148. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13149. (executeInternal): Removed the allocation of socket.
  13150. (prepareForNextPeer): Use PeerHandle.
  13151. * src/PeerMessage.h
  13152. (peer): Changed its type to PeerHandle.
  13153. (getPeer): Replaced Peer with PeerHandle.
  13154. (setPeer): Replaced Peer with PeerHandle.
  13155. * src/DownloadCommand.cc
  13156. (DownloadCommand): Replaced Socket with SocketHandle.
  13157. * src/FtpConnection.h
  13158. (socket): Changed its type to SocketHandle.
  13159. (FtpConnection): Replaced Socket with SocketHandle.
  13160. (sendPort); Replaced Socket with SocketHandle.
  13161. * src/FtpDowndloadCommand.h
  13162. (ctrlSocket): Changed its type to SocketHandle.
  13163. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13164. * src/HttpProxyRequestCommand.cc
  13165. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13166. * src/FtpTunnelRequestCommand.h
  13167. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13168. etc
  13169. * src/PeerChokeCommand.h
  13170. (setAllPeerChoked): Removed.
  13171. (setAllPeerResetDelta): Removed.
  13172. * src/PeerChokeCommand.cc
  13173. (setAllPeerChoked): Removed.
  13174. (ChokePeer): New function object.
  13175. (setAllPeerResetDelta): Removed.
  13176. (ResetDelta): New function object.
  13177. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13178. (execute): Show download speed when the local node is a seeder.
  13179. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13180. using STL.
  13181. * src/TrackerWatcherCommand.h
  13182. (MIN_PEERS): Removed.
  13183. * src/TorrentMan.cc
  13184. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13185. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13186. To fix the bug that .aria2 file is not saved if downloading is stopped
  13187. by the errors:it results that aria2 can not resume downloading:
  13188. * src/main.cc
  13189. (normalDownload): Added the call to save().
  13190. (main): Added the deletion of the elements in 'reserved'.
  13191. To fix log:
  13192. * src/PeerInteraction.cc
  13193. (receiveHandshake): Fixed log.
  13194. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13195. To improve download performance in BitTorrent:
  13196. * src/TorrentMan.cc
  13197. (getPeer): Check the number of connections. Return nullPeer if
  13198. it is greater than MAX_PEER_UPDATE.
  13199. This code was originally here, but was removed in 0.5.1.
  13200. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13201. To improve the conditional compilation:
  13202. * src/MultiDiskWriter.h:
  13203. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13204. * src/MultiDiskWriter.cc:
  13205. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13206. * src/Util.h:
  13207. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13208. Added ENABLE_BITTORRENT around computeFastSet().
  13209. * src/Util.cc:
  13210. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13211. Added ENABLE_BITTORRENT around computeFastSet().
  13212. * src/messageDigest.h:
  13213. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13214. * src/ShaVisitor.h:
  13215. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13216. * src/ShaVisitor.cc:
  13217. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13218. * src/main.cc:
  13219. Added ENABLE_BITTORRENT around includes and blocks related to
  13220. BitTorrent.
  13221. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13222. digest support is not available.
  13223. * src/AbstractDiskWriter.h:
  13224. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13225. * src/AbstractDiskWriter.cc:
  13226. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13227. * src/MetalinkEntry.cc
  13228. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13229. support is not available.
  13230. To add command-line options for Metalink:
  13231. * src/main.cc:
  13232. Added metalink-version, metalink-language, metalink-os,
  13233. follow-metalink.
  13234. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13235. * src/main.cc: Use these definition.
  13236. * Release 0.6.0
  13237. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13238. To add Metalink support(http/ftp only):
  13239. * src/AbstractCommand.h
  13240. (tryReserved): New function.
  13241. * src/AbstractCommand.cc
  13242. (execute): Call tryReserved().
  13243. (tryReserved): New function.
  13244. * src/Request.h
  13245. (Requests): New type definition.
  13246. * src/SegmentMan.h
  13247. (reserved): New variable.
  13248. * src/Util.h
  13249. (fileChecksum): New function.
  13250. (toUpper): New function.
  13251. (toLower): New function.
  13252. * src/Util.cc
  13253. (messageDigest.h): Included.
  13254. (trim): Trim \r\n\t.
  13255. (fileChecksum): New function.
  13256. (toUpper): New function.
  13257. (toLower): New function.
  13258. * src/main.cc
  13259. (normalDownload): New function.
  13260. (main): Added 2 command-line options: metalink-file,
  13261. metalink-connection. Their usage has not been written yet.
  13262. * src/MetalinkProcessor.h: New class.
  13263. * src/Xml2MetalinkProcessor.h: New class.
  13264. * src/Xml2MetalinkProcessor.cc: New class.
  13265. * src/MetalinkEntry.h: New class.
  13266. * src/MetalinkEntry.cc: New class.
  13267. * src/MetalinkResource.h: New class.
  13268. * src/MetalinkResource.cc: New class.
  13269. To add md5 message digest checking:
  13270. * src/messageDigest.h: Rewritten.
  13271. * src/MultiDiskWriter.cc: Updated according to the changes in
  13272. messageDigest.h.
  13273. * src/ShaVisitor.cc: Updated according to the changes in
  13274. messageDigest.h.
  13275. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13276. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13277. messageDigest.h.
  13278. To fix a bug that causes segfault when the payload length in peer
  13279. message is less than 0:
  13280. * src/PeerConnection.cc:
  13281. (receiveMessage): Fixed the bug.
  13282. * src/PeerMessageUtil.cc
  13283. (checkLength): Throw an exception if length is less than or equals to
  13284. 0.
  13285. To add new interfaces to Base64 encoding/decoding:
  13286. * src/Base64.h
  13287. (part_encode): Changed the method signature.
  13288. (encode): New function(overload).
  13289. (decode): New function(overload).
  13290. * src/Base64.cc
  13291. (part_encode): Rewritten.
  13292. (encode): Rewritten.
  13293. (encode): New function(overload).
  13294. To prevent a peer to download same piece if there is an error in
  13295. checksum:
  13296. * src/PieceMessage.cc
  13297. (receivedAction): Call peerInteraction->abortPiece().
  13298. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13299. To fix the bug that causes same have message is sent many times to
  13300. a single peer.
  13301. * src/Time.cc
  13302. (isNewer): Use Util::difftv().
  13303. * src/Util.cc
  13304. (difftv): Added a cast to (long long int).
  13305. * src/TorrentMan.cc
  13306. (advertisePiece): Use push_front.
  13307. (getAdvertisedPieceIndexes): A performance improvement was made.
  13308. To fix the bug that sends tracker requests without a sleep interval
  13309. when the number of connections is less than 15.
  13310. * src/TrackerWatcherCommand.cc
  13311. (execute): Now the number of connections is not a factor to decide
  13312. whether or not a tracker request should be sent or not.
  13313. * src/Time.h
  13314. (setTimeInSec): New function.
  13315. * src/Time.cc
  13316. (setTimeInSec): New function.
  13317. etc.
  13318. * src/ChokeMessage.cc
  13319. (receivedAction): Removed peer->snubbing = false
  13320. * src/PeerConnection.h
  13321. (receiveHandshake): Updated doc.
  13322. * src/TorrentMan.h
  13323. (getAdvertisedPieceIndexes): Updated the method signature.
  13324. * src/TorrentMan.cc
  13325. (getAdvertisedPieceIndexes): Updated the method signature.
  13326. * src/Time.h
  13327. (getTimeInMicros): Added a cast to (long long int).
  13328. (getTimeInMillis): Added a cast to (long long int).
  13329. * Release 0.5.2
  13330. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13331. To make a listening socket non-block:
  13332. * src/SocketCore.h
  13333. (setNonBlockingMode): New function.
  13334. * src/SocketCore.cc
  13335. (setNonBlockingMode): New function.
  13336. (beginListen): Added a call to setNonBlockingMode().
  13337. (acceptConnection): Call setNonBlockingMode().
  13338. (setBlockingMode): Updated.
  13339. To handle tracker's NAT-checking:
  13340. * src/PeerConnection.cc
  13341. (receiveHandshake): 'msg' param is filled with received data and
  13342. its length is assigned to 'length' param, even if all handshake
  13343. message is not yet received.
  13344. * src/PeerInteractionCommand.cc
  13345. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13346. a new peer connects to localhost.
  13347. A call to peerInteraction->sendHandshake() was removed because
  13348. it is called from peerInteraction->receiveHandshake(true).
  13349. * src/PeerInteraction.h
  13350. (quickReplied): New variable.
  13351. (receiveHandshake): Added an argument.
  13352. * src/PeerInteraction.cc
  13353. (PeerInteraction): Added the initialization of quickReplied.
  13354. (receiveHandshake): Send handshake message as soon as the info hash
  13355. in a handshake message from a peer is correct.
  13356. To change the random part of peer id and key parameter:
  13357. * src/TorrentMan.h
  13358. (key): New variable.
  13359. * src/TorrentMan.cc
  13360. (setupInternal1): Use Util::randomAlpha() to generate random part
  13361. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13362. key is also generated by Util::randomAlpha() and it is now 8 character
  13363. long.
  13364. * src/Util.h
  13365. (randomAlpha): New function.
  13366. * src/Util.cc
  13367. (randomAlpha): New function.
  13368. * src/TrackerWatcherCommand.cc
  13369. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13370. Added no_peer_id=1.
  13371. Set snubbing flag to false when a choke message is received from a
  13372. snubbed peer.
  13373. * src/ChokeMessage.cc
  13374. (receivedAction): Set snubbing flag to false.
  13375. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13376. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13377. * src/SimpleLogger.h (writeHeader): New function.
  13378. * src/SimpleLogger.cc (writeHeader): New function.
  13379. (writeLog): Fixed the bug that causes segfaults if exception message
  13380. contains an unescaped "%" character.
  13381. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13382. when a tracker request fails.
  13383. * src/Request.cc (parseUrl): Query string is now handled properly.
  13384. * Release 0.5.1
  13385. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13386. To add Time class which represents a specific instant in time and
  13387. its precision is microseconds. Time checking procedures were rewritten
  13388. using this object.
  13389. * src/Time.h: New class.
  13390. * src/Time.cc: New class.
  13391. * src/AbstractCommand.h
  13392. (updateCheckPoint): Removed.
  13393. (isTimeoutDetected): Removed.
  13394. (checkPoint): Changed the type to Time.
  13395. (timeout): New variable.
  13396. (setTimeout): New function.
  13397. * src/AbstractCommand.cc
  13398. (AbstractCommand): Removed the initialization of checkPoint.
  13399. Added the initialization of timeout.
  13400. (updateCheckPoint): Removed.
  13401. (isTimeoutDetected): Removed.
  13402. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13403. * src/PeerChokeCommand.h
  13404. (checkPoint): Changed the type to Time.
  13405. * src/PeerChokeCommand.cc
  13406. (PeerChokeCommand): Removed the initialization of checkPoint.
  13407. (execute): Rewritten using Time object.
  13408. * src/TrackerWatcherCommand.h
  13409. (checkPoint): Changed the type to Time.
  13410. * src/TrackerWatcherCommand.cc
  13411. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13412. (execute): Rewritten.
  13413. * src/ConsoleDownloadEngine.h
  13414. (cp): Changed the type to Time.
  13415. (startup): Changed the type to Time.
  13416. * src/ConsoleDownloadEngine.cc
  13417. (initStatistics): Use cp.reset(), startup.reset().
  13418. (calculateStatistics): Rewritten using Time object.
  13419. * src/PeerAbstractCommand.h
  13420. (updateCheckPoint): Removed.
  13421. (isTimeoutDetected): Removed.
  13422. (checkPoint): Changed the type to Time.
  13423. * src/PeerAbstractCommand.cc
  13424. (PeerAbstractCommand): Removed the initialization of checkPoint.
  13425. (updateCheckPoint): Removed.
  13426. (isTimeoutDetected): Removed.
  13427. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13428. * src/PeerInteractionCommand.cc
  13429. (PeerInteractionCommand): Removed the initializations of struct
  13430. timeval variables.
  13431. * src/PeerInteractionCommand.h
  13432. (keepAliveCheckPoint): Changed the type to Time.
  13433. (chokeCheckPoint): Changed the type to Time.
  13434. (freqCheckPoint): Changed the type to Time.
  13435. (haveCheckTime): Changed the type to Time.
  13436. * src/PeerInteractionCommand.cc
  13437. (executeInternal): Rewritten using Time object.
  13438. (detectMessageFlooding): Rewritten using Time object.
  13439. (checkLongTimePeerChoking): Rewritten using Time object.
  13440. (sendKeepAlive): Rewritten using Time object.
  13441. (checkHave): Rewritten using Time object.
  13442. * src/SleepCommand.h
  13443. (checkPoint): Changed the type to Time.
  13444. * src/SleepCommand.cc
  13445. (SleepCommand): Removed the initialization of checkPoint.
  13446. (execute): Rewritten using Time object.
  13447. * src/TorrentAutoSaveCommand.h
  13448. (checkPoint): Changed the type to Time.
  13449. * src/TorrentAutoSaveCommand.cc
  13450. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  13451. (execute): Rewritten.
  13452. * src/DownloadCommand.h
  13453. (sw): Changed the type to Time.
  13454. * src/DownloadCommand.cc
  13455. (DownloadCommand): Removed the initialization of sw.
  13456. (executeInternal): Rewritten.
  13457. * src/RequestSlot.h
  13458. (dispatchedTime): Changed the type to Time.
  13459. * src/RequestSlot.cc
  13460. (RequestSlot): Removed the call to setDispatchedTime().
  13461. (setDispatchedTime): Rewirtten.
  13462. (isTimeout): Rewritten.
  13463. (getLatencyInMillis): Rewritten.
  13464. * src/TorrentDownloadEngine.h
  13465. (cp): Changed the type to Time[2].
  13466. (startup): Changed the type to Time.
  13467. * src/TorrentDownloadEngine.cc
  13468. (initStatistics): Rewritten.
  13469. (calculateStatistics): Rewritten.
  13470. * src/DownloadEngine.cc
  13471. (run): Rewritten.
  13472. To detect all attempts to connect to the tracker are failed:
  13473. * src/AbstractCommand.cc
  13474. (execute): Increment e->segmentMan->errors if a command aborted.
  13475. * src/SegmentMan.h
  13476. (errors): New variable.
  13477. * src/SegmentMan.cc
  13478. (SegmentMan): Added the initialization of errors.
  13479. (init): Added the initialization of errors.
  13480. * src/TrackerWatcherCommand.cc
  13481. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13482. request was failed.
  13483. To handle snubbed peers:
  13484. * src/PeerChokeCommand.cc
  13485. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13486. (execute): Snubbed peers don't get unchoked.
  13487. * src/PeerInteraction.h
  13488. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13489. * src/PeerInteraction.cc
  13490. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13491. back the requested 16k block in 60 seconds.
  13492. * src/PieceMessage.cc
  13493. (receivedAction): A peer's snubbed state is cleard if it sends
  13494. the requested 16k block in 60 seconds.
  13495. * src/Peer.h
  13496. (snubbing): New variable.
  13497. * src/Peer.cc
  13498. (resetStatus): Added snubbed = false.
  13499. To fix the bug that causes have message is not sent:
  13500. * src/PeerInteractionCommand.cc
  13501. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13502. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13503. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13504. * src/TorrentMan.h
  13505. (HaveEntry): New class.
  13506. (advertisePiece): Rewritten.
  13507. (getAdvertisedPieceIndexes): Rewritten.
  13508. (Haves): Changed the type.
  13509. (getAdvertisedPieceIndexes): Added an argument.
  13510. Others:
  13511. * src/TorrentMan.h
  13512. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13513. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13514. * src/TorrentMan.cc
  13515. (getPeer): Don't check the number of connections here.
  13516. (setupInternal1): Changed peerId.
  13517. * src/PeerInteractionCommand.h
  13518. (KEEP_ALIVE_INTERVAL): New definition.
  13519. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13520. * src/main.cc
  13521. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13522. * src/DownloadEngine.h: Removed unnecessary header includes.
  13523. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13524. To fix the bug that causes segfaults if a tracker returns a zero-length
  13525. list as "peers":
  13526. * src/TrackerUpdateCommand.cc
  13527. (execute): Added a check to see wether the type of peers is Data*.
  13528. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13529. * Release 0.5.0
  13530. To fix compile issue with gcc3:
  13531. * src/CancelMessage.h
  13532. (ID): Renamed as ID_t
  13533. (ID_t): New enum.
  13534. * src/RejectMessage.h
  13535. (ID): Renamed as ID_t
  13536. (ID_t): New enum.
  13537. * src/SuggestPieceMessage.h
  13538. (ID): Renamed as ID_t
  13539. (ID_t): New enum.
  13540. * src/AllowedFastMessage.h
  13541. (ID): Renamed as ID_t
  13542. (ID_t): New enum.
  13543. * src/PortMessage.h
  13544. (ID): Renamed as ID_t
  13545. (ID_t): New enum.
  13546. * src/HaveNoneMessage.h
  13547. (ID): Renamed as ID_t
  13548. (ID_t): New enum.
  13549. * src/KeepAliveMessage.h
  13550. (ID): Renamed as ID_t
  13551. (ID_t): New enum.
  13552. * src/HaveAllMessage.h
  13553. (ID): Renamed as ID_t
  13554. (ID_t): New enum.
  13555. * src/UnchokeMessage.h
  13556. (ID): Renamed as ID_t
  13557. (ID_t): New enum.
  13558. * src/BitfieldMessage.h
  13559. (ID): Renamed as ID_t
  13560. (ID_t): New enum.
  13561. * src/PieceMessage.h
  13562. (ID): Renamed as ID_t
  13563. (ID_t): New enum.
  13564. * src/RequestMessage.h
  13565. (ID): Renamed as ID_t
  13566. (ID_t): New enum.
  13567. * src/NotInterestedMessage.h
  13568. (ID): Renamed as ID_t
  13569. (ID_t): New enum.
  13570. * src/ChokeMessage.h
  13571. (ID): Renamed as ID_t
  13572. (ID_t): New enum.
  13573. * src/InterestedMessage.h
  13574. (ID): Renamed as ID_t
  13575. (ID_t): New enum.
  13576. * src/HaveMessage.h
  13577. (ID): Renamed as ID_t
  13578. (ID_t): New enum.
  13579. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13580. * src/PeerAbstractCommand.h
  13581. (beforeSocketCheck): Removed.
  13582. * src/PeerAbstractCommand.cc
  13583. Modified in order to call executeInternal() even if socket check
  13584. and upload limit check fail.
  13585. * src/PeerInteractionCommand.h
  13586. (keepAlive): Removed.
  13587. (sendKeepAlive): New function.
  13588. (checkHave): New function.
  13589. (beforeSocketCheck): Removed.
  13590. * src/PeerInteractionCommand.cc
  13591. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13592. calls to checkHave() and sendKeepAlive().
  13593. (keepAlive): Renamed to sendKeepAlive().
  13594. (sendKeepAlive): New function.
  13595. (beforeSocketCheck): Removed.
  13596. (checkHave): New function.
  13597. * src/BitfieldMan.cc
  13598. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13599. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13600. 0.
  13601. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13602. * src/TorrentMan.h
  13603. (UsedPieces): Removed.
  13604. (Pieces): New type definition.
  13605. * src/Piece.h: Updated doc.
  13606. * src/Peer.h
  13607. (totalLength): Removed.
  13608. * src/Peer.cc
  13609. (updateLatency): Fixed the latency calculation.
  13610. * src/TorrentMan.cc
  13611. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13612. than or equal to MAX_PEER_LIST_SIZE.
  13613. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13614. then return false.
  13615. (deleteOldErrorPeers): Rewritten.
  13616. (deleteUsedPiece): Fixed the miss use of STL remove.
  13617. * src/PeerInteraction.h
  13618. (Pieces): Removed.
  13619. (deleteTimeoutRequestSlot): Removed.
  13620. (deleteCompletedRequestSlot): Removed.
  13621. (checkRequestSlot): New function.
  13622. * src/PeerInteraction.cc
  13623. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13624. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13625. (checkRequestSlot): New function.
  13626. * src/DownloadEngine.cc
  13627. (run): Clear activeSockets before calling waitData().
  13628. (waitData): Removed a call to activeSockets.clear().
  13629. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13630. To attempt to handle EINTR:
  13631. * src/SocketCore.cc
  13632. (isReadable): Added EINTR handling.
  13633. (isWritable): Added EINTR handling.
  13634. To improve the performance:
  13635. * src/AbstractCommand.cc
  13636. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13637. * src/PeerInteractionCommand.h
  13638. (receiveMessage): Renamed as receiveMessages().
  13639. (receiveMessages): New function.
  13640. * src/PeerInteractionCommand.cc
  13641. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13642. () function. detectMessageFlooding() is moved here.
  13643. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13644. (). The flooding detection for have message is comment out.
  13645. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13646. Util::difftv().
  13647. (receiveMessage): Renamed as receiveMessages().
  13648. (receiveMessages): New function.
  13649. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13650. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13651. * src/SleepCommand.cc
  13652. (execute): Use Util::difftvsec() instead of Util::difftv().
  13653. * src/BitfieldMan.h
  13654. (getNthBitIndex): New function.
  13655. (hasMissingPiece): New function.
  13656. (getAllMissingIndexes): New function.
  13657. * src/BitfieldMan.cc
  13658. (countSetBit): Rewritten.
  13659. (getNthBitIndex): New function.
  13660. (getMissingIndexRandomly): Rewritten.
  13661. (hasMissingPiece): New function.
  13662. (getAllMissingIndexes): New function.
  13663. * src/TorrentMan.cc
  13664. (hasMissingPiece): New function.
  13665. (deleteUsedPiece): Rewritten using STL.
  13666. * src/PeerInteraction.cc
  13667. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13668. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13669. (addRequests): Updated the number of pending requests.
  13670. * src/PeerAbstractCommand.cc
  13671. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13672. (execute): Returns true if TorrentMan::isHalt() is true.
  13673. Corrected the condition of upload limit checking.
  13674. * src/Util.h
  13675. (countBit): New function.
  13676. * src/Util.cc
  13677. (nbits): New variable.
  13678. (countBit): New function.
  13679. * src/DownloadEngine.h
  13680. (SockCmdMap): New type definition.
  13681. (waitData): Added an argument.
  13682. (addSocket): Added an argument.
  13683. (addSocketForReadCheck): Added an argument.
  13684. (addSocketForWriteCheck): Added an argument.
  13685. * src/DownloadEngine.cc
  13686. (run): Executes only commands whose sockets are ready to read or write.
  13687. All commands are executed in every 1 second.
  13688. (waitData): Calls select() again if it returned
  13689. EINTR.
  13690. (addSocket): Saves socket and command object pair to the map.
  13691. (deleteSocket): Deletes socket and command object pair from the map.
  13692. (addSocketForReadCheck): Added an argument.
  13693. (addSocketForWriteCheck): Added an argument.
  13694. * src/DownloadCommand.cc
  13695. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13696. To send "event=stopped" to the tracker when the application finishes:
  13697. * src/PeerChokeCommand.h
  13698. (checkPoint): New variable.
  13699. * src/PeerChokeCommand.cc
  13700. (PeerChokeCommand): Added the initialization of checkPoint.
  13701. (execute): The interval check is now done by checkPoint, not
  13702. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13703. * src/TorrentMan.h
  13704. (halt): New function.
  13705. (hasMissingPiece): New function.
  13706. (isHalt): New function.
  13707. (setHalt): New function.
  13708. * src/TorrentMan.cc
  13709. (TorrentMan): Added the initialization of halt.
  13710. * src/TorrentAutoSaveCommand.h
  13711. (checkPoint): New variable.
  13712. * src/PeerListenCommand.cc
  13713. (execute): Returns true if TorrentMan::isHalt() is true.
  13714. * src/main.cc
  13715. (setSignalHander): Added flags argument.
  13716. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13717. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13718. Removed printDownloadAbortMessage() after torrent downloading loop.
  13719. * src/TorrentAutoSaveCommand.cc
  13720. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13721. (execute): Returns true if TorrentMan::isHalt() is true.
  13722. The interval check is now done by checkPoint, not SleepCommand.
  13723. * src/TrackerWatcherCommand.cc
  13724. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13725. event=stopped.
  13726. * src/TrackerUpdateCommand.cc
  13727. (prepareForRetry): Do not use SleepCommand here.
  13728. (execute): Returns true if TorrentMan::isHalt() is true.
  13729. Others:
  13730. * src/TorrentMan.cc
  13731. (getMissingPieceIndex): Updated log message.
  13732. * src/PeerInteraction.cc
  13733. (createPeerMessag): Updated log message.
  13734. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13735. To add the ability to download several pieces in mix in a command and
  13736. increase the number of request slots according to request-cancel
  13737. latency:
  13738. * src/PeerInteractionCommand.cc
  13739. (executeInternal): The number of messages to be received at a time
  13740. is increased from 10 to 50.
  13741. * src/LogFactory
  13742. (getInstance): Added NullLogger.
  13743. * src/NullLogger.h: New class.
  13744. * src/BitfieldMan.h
  13745. (getMissingIndex): New function.
  13746. * src/BitfieldMan.cc
  13747. (getMissingIndex): New function.
  13748. * src/TorrentMan.h
  13749. (checkOutPiece): New function.
  13750. (getMissingPieceIndex): New function.
  13751. (getMissingFastPieceIndex): New function.
  13752. (getMissingFastPiece): New function.
  13753. * src/TorrentMan.cc
  13754. (updatePiece): Rewritten using STL.
  13755. (syncPiece): Rewritten using STL.
  13756. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13757. checkOutPiece().
  13758. (getMissingPieceIndex): New function.
  13759. (getMissingFastPieceIndex): New function.
  13760. (getMissingFastPiece): New function.
  13761. (checkOutPiece): New function.
  13762. * src/PeerInteraction.h
  13763. (Pieces): New type definition.
  13764. (piece): Removed.
  13765. (pieces): New variable.
  13766. (getNewPieceAndSendInterest): Added the "piece" argument.
  13767. (abortPiece): Added the "piece" argument.
  13768. (abortAllPieces): New function.
  13769. (isInRequestSlot): New function.
  13770. (hasDownloadPiece): Added the "index" argument.
  13771. (setDownloadPiece): Removed.
  13772. (getDownloadPiece): Added the "index" argument.
  13773. (updatePiece): New function.
  13774. (createRequestMessage): Added the "index" argument.
  13775. * src/PeerInteraction.cc
  13776. (onChoked): Rewritten.
  13777. (abortPiece): Rewirtten.
  13778. (abortAllPieces): New function.
  13779. (deleteTimeoutRequestSlot): Rewritten.
  13780. Clarified code a little bit.
  13781. (deleteCompletedRequestSlot): Rewritten.
  13782. (isInRequestSlot): New function.
  13783. (syncPiece): Rewritten.
  13784. (updatePiece): New function.
  13785. (getNewPieceAndSendInterest): Rewritten.
  13786. (addRequests): Rewritten.
  13787. (getDownloadPiece): Rewritten.
  13788. (hasDownloadPiece): Rewritten.
  13789. (createRequestMessage): Added the "index" argument.
  13790. * src/common.h
  13791. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13792. (DIV_FLOOR): New definition.
  13793. * src/PieceMessage.cc
  13794. (receivedAction): Update request-piece latency here.
  13795. * src/RequestSlot.h
  13796. (getLatencyInMillis): New function.
  13797. * src/RequestSlot.cc
  13798. (isTimeout): Rewritten using getLatencyInMillis.
  13799. (getLatencyInMillis): New function.
  13800. * src/Piece.h
  13801. (operator==): New function.
  13802. (getMissingBlockIndex): New function.
  13803. * src/Piece.cc
  13804. (operator==): New function.
  13805. (getMissingBlockIndex): New function.
  13806. * src/Peer.h
  13807. (DEFAULT_LATENCY): New definition.
  13808. (latency): New variable.
  13809. (updateLatency): New function.
  13810. (getLatency): New function.
  13811. * src/Peer.cc
  13812. (resetStatus): Reset latecy.
  13813. (updateLatency): New function.
  13814. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13815. * src/SocketCore.cc
  13816. (isReadable): Added secure to the condition.
  13817. * src/HttpConnection.cc
  13818. (receiveResponse): Fixed a bug that causes no response header
  13819. exception.
  13820. * src/Peer.h
  13821. (getFastSet): Fixed the return value type.
  13822. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13823. To remove a wait from download loop:
  13824. * src/DownloadEngine.cc
  13825. (run): Comment out shortSleep.
  13826. To rewrite the message handling:
  13827. * src/SimplePeerMessage.h: New class.
  13828. * src/SimplePeerMessage.cc: New class.
  13829. * src/CancelMessage.h: Derived from SimplePeerMessage.
  13830. (msg): New variable.
  13831. (create): New function.
  13832. (send): Removed.
  13833. (getMessage): New function.
  13834. (getMessageLength): New function.
  13835. * src/CancelMessage.cc
  13836. (create): New function.
  13837. (receivedAction): Replaced deleteRequestMessageInQueue with
  13838. rejectPieceMessageInQueue.
  13839. (send): Removed.
  13840. (getMessage): New function.
  13841. (getMessageLength): New function.
  13842. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  13843. (msg): New variable.
  13844. (msgLength): New variable.
  13845. (~BitfieldMessage): Deleted msg.
  13846. (send): Removed.
  13847. (getMessage): New function.
  13848. (getMessageLength): New function.
  13849. * src/BitfieldMessage.cc
  13850. (create): New function.
  13851. (send): Removed.
  13852. (getMessage): New function.
  13853. (getMessageLength): New function.
  13854. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  13855. (msg): New variable.
  13856. (sendPredicate): New function.
  13857. (onSendComplete): New function.
  13858. (send): Removed.
  13859. (getMessage): New function.
  13860. (getMessageLength): New function.
  13861. (create): New function.
  13862. * src/ChokeMessage.cc
  13863. (create): New function.
  13864. (send): Removed.
  13865. (sendPredicate): New function.
  13866. (getMessage): New function.
  13867. (getMessageLength): New function.
  13868. (onSendComplete): New function.
  13869. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  13870. (msg): New variable.
  13871. (send): Removed.
  13872. (getMessage): New function.
  13873. (getMessageLength): New function.
  13874. * src/KeepAliveMessage.cc
  13875. (send): Removed.
  13876. (getMessage): New function.
  13877. (getMessageLength): New function.
  13878. * src/PortMessage.h
  13879. (create): New function.
  13880. (receivedAction): Updated log message.
  13881. * src/PortMessage.cc: New file.
  13882. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  13883. (msg): New variable.
  13884. (sendPredicate): New function.
  13885. (onSendComplete): New function.
  13886. (create): New function.
  13887. (send): Removed.
  13888. (getMessage): New function.
  13889. (getMessageLength): New function.
  13890. * src/UnchokeMessage.cc
  13891. (create): New function.
  13892. (send): Removed.
  13893. (sendPredicate): New function.
  13894. (getMessage): New function.
  13895. (getMessageLength): New function.
  13896. (onSendComplete): New function.
  13897. * src/PieceMessage.h
  13898. (leftPieceDataLength): Removed.
  13899. (leftDataLength): New variable.
  13900. (headerSend): New variable.
  13901. (pendingCount): New variable.
  13902. (msgHeader): New variable.
  13903. (sendPieceData): New function.
  13904. (incrementPendingCount): New function.
  13905. (isPendingCountMax): New function.
  13906. (create): New function.
  13907. (getMessageHeader): New function.
  13908. (getMessageHeaderLength): New function.
  13909. * src/PieceMessage.cc
  13910. (create): New function.
  13911. (getMessageHeader): New function.
  13912. (getMessageHeaderLength): New function.
  13913. (send): Rewritten.
  13914. (sendPieceData): New function.
  13915. * src/HaveMessage.h: Derived from SimplePeerMessage.
  13916. (msg): New variable.
  13917. (create): New function.
  13918. (getMessage): New function.
  13919. (getMessageLength): New function.
  13920. * src/HaveMessage.cc
  13921. (create): New function.
  13922. (send): Removed.
  13923. (sendPieceData): New function.
  13924. (getMessage): New function.
  13925. (getMessageLength): New function.
  13926. * src/RequestMessage.h: Derived from SimplePeerMessage.
  13927. (msg): New variable.
  13928. (create): New function.
  13929. (send): Removed.
  13930. (getMessage): New function.
  13931. (getMessageLength): New function.
  13932. * src/RequestMessage.cc
  13933. (create): New function.
  13934. (receivedAction): Added the handling of fast extension.
  13935. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  13936. (send): Removed.
  13937. (getMessage): New function.
  13938. (getMessageLength): New function.
  13939. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  13940. (msg): New variable.
  13941. (sendPredicate): New function.
  13942. (onSendComplete): New function.
  13943. (create): New function.
  13944. (getMessage): New function.
  13945. (getMessageLength): New function.
  13946. * src/InterestedMessage.cc
  13947. (create): New function.
  13948. (send): Removed.
  13949. (sendPieceData): New function.
  13950. (getMessage): New function.
  13951. (getMessageLength): New function.
  13952. (onSendComplete): New function.
  13953. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  13954. (msg): New variable.
  13955. (sendPieceData): New function.
  13956. (onSendComplete): New function.
  13957. (create): New function.
  13958. (send): Removed.
  13959. (getMessage): New function.
  13960. (getMessageLength): New function.
  13961. * src/NotInterestedMessage.cc
  13962. (create): New function.
  13963. (send): Removed.
  13964. (sendPredicate): New function.
  13965. (getMessage): New function.
  13966. (getMessageLength): New function.
  13967. (onSendComplete): New function.
  13968. * src/AllowedFastMessage.h: New class.
  13969. * src/AllowedFastMessage.cc: New class.
  13970. * src/RejectMessage.h: New class.
  13971. * src/RejectMessage.cc: New class.
  13972. * src/SuggestPieceMessage.h: New class.
  13973. * src/SuggestPieceMessage.cc: New class.
  13974. * src/HaveAllMessage.h: New class.
  13975. * src/HaveAllMessage.cc: New class.
  13976. * src/HaveNoneMessage.h: New class.
  13977. * src/HaveNoneMessage.cc: New class.
  13978. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  13979. (msg): New variable.
  13980. (reserved): New variable.
  13981. (create): New function.
  13982. (getId): New function.
  13983. (receivedAction): New function.
  13984. (getMessage): New function.
  13985. (getMessageLength): New function.
  13986. (isFastExtensionSupported): New function.
  13987. * src/HandshakeMessage.cc
  13988. (HandshakeMessage): Moved here from HandshakeMessage.h.
  13989. (create): New function.
  13990. (getMessage): New function.
  13991. (getMessageLength): New function.
  13992. (toString): Added the output of reserved field.
  13993. (check): Added const qualifier.
  13994. (isFastExtensionSupported): New function.
  13995. * src/PeerMessageUtil.h
  13996. (createChokeMessage): Removed.
  13997. (createUnchokeMessage): Removed.
  13998. (createInterestedMessage): Removed.
  13999. (createNotInterestedMessage): Removed.
  14000. (createHaveMessage): Removed.
  14001. (createBitfieldMessage): Removed.
  14002. (createRequestMessage): Removed.
  14003. (createCancelMessage): Removed.
  14004. (createPieceMessage): Removed.
  14005. (createPortMessage): Removed.
  14006. (createChokeMessage): Removed.
  14007. (createUnchokeMessage): Removed.
  14008. (createInterestedMessage): Removed.
  14009. (createNotInterestedMessage): Removed.
  14010. (createHaveMessage): Removed.
  14011. (createBitfieldMessage): Removed.
  14012. (createRequestMessage): Removed.
  14013. (createCancelMessage): Removed.
  14014. (createPieceMessage): Removed.
  14015. (createKeepAliveMessage): Removed.
  14016. (createHandshakeMessage): Removed.
  14017. (setIntParam): New function.
  14018. (createPeerMessageString): New function.
  14019. * src/PeerMessageUtil.cc
  14020. (createChokeMessage): Removed.
  14021. (createUnchokeMessage): Removed.
  14022. (createInterestedMessage): Removed.
  14023. (createNotInterestedMessage): Removed.
  14024. (createHaveMessage): Removed.
  14025. (createBitfieldMessage): Removed.
  14026. (createRequestMessage): Removed.
  14027. (createCancelMessage): Removed.
  14028. (createPieceMessage): Removed.
  14029. (createPortMessage): Removed.
  14030. (createRequestMessage): Removed.
  14031. (createCancelMessage): Removed.
  14032. (createPieceMessage): Removed.
  14033. (createHaveMessage): Removed.
  14034. (createChokeMessage): Removed.
  14035. (createUnchokeMessage): Removed.
  14036. (createInterestedMessage): Removed.
  14037. (createNotInterestedMessage): Removed.
  14038. (createBitfieldMessage): Removed.
  14039. (createKeepAliveMessage): Removed.
  14040. (createHandshakeMessage): Removed.
  14041. (setIntParam): New function.
  14042. (createPeerMessageString): New function.
  14043. * src/PeerConnection.h
  14044. (peer): Removed.
  14045. (torrentMan): Removed.
  14046. (createNLengthMessage): Removed.
  14047. (setIntParam): Removed.
  14048. (writeOutgoingMessageLog): Removed all overloaded functions.
  14049. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14050. (sendMessage): New function.
  14051. (sendHandshake): Removed.
  14052. (sendKeepAlive): Removed.
  14053. (sendChoke): Removed.
  14054. (sendUnchoke): Removed.
  14055. (sendInterested): Removed.
  14056. (sendNotInterested): Removed.
  14057. (sendHave): Removed.
  14058. (sendBitfield): Removed.
  14059. (sendRequest): Removed.
  14060. (sendPiece): Removed.
  14061. (sendPieceHeader): Removed.
  14062. (sendPieceData): Removed.
  14063. (sendCancel): Removed.
  14064. (getPeer): Removed.
  14065. * src/PeerConnection.cc
  14066. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14067. (sendHandshake): Removed.
  14068. (sendKeepAlive): Removed.
  14069. (createNLengthMessage): Removed.
  14070. (setIntParam): Removed.
  14071. (writeOutgoingMessageLog): Removed all overloaded functions.
  14072. (sendChoke): Removed.
  14073. (sendUnchoke): Removed.
  14074. (sendInterested): Removed.
  14075. (sendNotInterested): Removed.
  14076. (sendHave): Removed.
  14077. (sendBitfield): Removed.
  14078. (sendRequest): Removed.
  14079. (sendPiece): Removed.
  14080. (sendPieceHeader): Removed.
  14081. (sendPieceData): Removed.
  14082. (sendMessage): New function.
  14083. (sendCancel): Removed.
  14084. * src/PeerInteractionCommand.cc
  14085. (PeerInteractionCommand): Call setUploadLimit.
  14086. (executeInternal): Call setUploadLimit.
  14087. Added the handling of "inProgress" state of handshake message.
  14088. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14089. sendNow().
  14090. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14091. sendNow().
  14092. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14093. * src/TorrentMan.h
  14094. (PEER_ID_LENGTH): New definition.
  14095. (hasAllPieces): New function.
  14096. * src/TorrentMan.cc
  14097. (getMissingPiece): Added the handling of fast extension.
  14098. (cancelPiece): Call updatePiece().
  14099. (hasAllPieces): New function.
  14100. * src/PeerInteraction.h
  14101. (fastSet): New variable.
  14102. (getNewPieceAndSendInterest): Changed the return type to void.
  14103. (send): Renamed as sendMessages.
  14104. (deleteAllRequestSlot): Removed.
  14105. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14106. (cancelAllRequest): Removed all overloaded functions.
  14107. (deleteAllRequestSlot): Removed.
  14108. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14109. (rejectPieceMessageInQueue): New function.
  14110. (rejectAllPieceMessageInQueue): New function.
  14111. (onChoked): New function.
  14112. (isSendingMessageInProgress): New function.
  14113. (getCorrespondingRequestSlot): Changed its arguments.
  14114. (isInFastSet): New function.
  14115. (addFastSetIndex): New function.
  14116. (addRequests): New function.
  14117. (sendNow): Removed.
  14118. (trySendNow): Removed.
  14119. (sendBitfield): New function.
  14120. (sendAllowdFast): New function.
  14121. (createHaveAllMessage): New function.
  14122. (createHaveNoneMessage): New function.
  14123. (createRejectMessage): New function.
  14124. (createAllowedFastMessage): New function.
  14125. * src/PeerInteraction.cc
  14126. (send): Renamed as sendMessages.
  14127. (sendMessages): New function.
  14128. (MsgPushBack): New class.
  14129. (isSendingMessageInProgress): New function.
  14130. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14131. (rejectAllPieceMessageInQueue): New function.
  14132. Added the handling of fast extension.
  14133. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14134. (rejectPieceMessageInQueue): New function.
  14135. Added the handling of fast extension.
  14136. (deleteRequestSlot): Replaced for loop with std::find.
  14137. (onChoked): New function.
  14138. (deleteAllRequestSlot): Removed.
  14139. (abortPiece): Rewirtten.
  14140. (deleteTimeoutRequestSlot): Updated log messages.
  14141. (getCorrespondingRequestSlot): Changed its arguments.
  14142. (cancelAllRequest): Removed all overloaded functions.
  14143. (receiveHandshake): Added the check to see whether an incoming peer
  14144. supports fast extension.
  14145. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14146. PeerMessageUtil.
  14147. (createPeerMessage): Use create() of each message class instead of
  14148. PeerMessageUtil.
  14149. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14150. AllowedFastMessage were added.
  14151. (getNewPieceAndSendInterest): Changed its return value type to void.
  14152. Added the handling of fast extension.
  14153. (addRequests): New function.
  14154. (sendNow): Removed.
  14155. (sendHandshake): Rewritten.
  14156. (trySendNow): Removed.
  14157. (sendBitfield): New function.
  14158. (sendAllowdFast): New function.
  14159. (isInFastSet): New function.
  14160. (addFastSetIndex): New function.
  14161. (createRequestMessage): Use RequestMessage::create instead of
  14162. PeerMessageUtil.
  14163. (createCancelMessage): Use CancelMessage::create instead of
  14164. PeerMessageUtil.
  14165. (createPieceMessage): Use PieceMessage::create instead of
  14166. PeerMessageUtil.
  14167. (createHaveMessage): Use HaveMessage::create instead of
  14168. PeerMessageUtil.
  14169. (createChokeMessage): Use ChokeMessage::create instead of
  14170. PeerMessageUtil.
  14171. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14172. PeerMessageUtil.
  14173. (createInterestedMessage): Use InterestedMessage::create instead of
  14174. PeerMessageUtil.
  14175. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14176. of PeerMessageUtil.
  14177. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14178. PeerMessageUtil.
  14179. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14180. PeerMessageUtil.
  14181. (createHaveAllMessage): New function.
  14182. (createHaveNoneMessage): New function.
  14183. (createRejectMessage): New function.
  14184. (createAllowedFastMessage: New function.
  14185. * src/Util.h
  14186. (sha1Sum): New function.
  14187. (computeFastSet): New function.
  14188. * src/Util.cc
  14189. (sha1Sum): New function.
  14190. (computeFastSet): New function.
  14191. * src/Peer.h
  14192. (fastExtensionEnabled): New variable.
  14193. (fastSet): New variable.
  14194. (setAllBitfield): New function.
  14195. (setFastExtensionEnabled): New function.
  14196. (isFastExtensionEnabled): New function.
  14197. (addFastSetIndex): New function.
  14198. (getFastSet): New function.
  14199. (isInFastSet): New function.
  14200. (countFastSet): New function.
  14201. * src/Peer.cc
  14202. (isInFastSet): New function.
  14203. (addFastSetIndex): New function.
  14204. (setAllBitfield): New function.
  14205. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14206. sockets.
  14207. * src/PeerAbstractCommand.cc
  14208. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14209. and uploadLimit.
  14210. (execute): Changed the procedure of checking sockets. The upload speed
  14211. checking were added.
  14212. (setUploadLimit): New function.
  14213. (setUploadLimitCheck): New function.
  14214. * src/PeerAbstractCommand.h
  14215. (setUploadLimit): New function.
  14216. (setUploadLimitCheck): New function.
  14217. (uploadLimit): New variable.
  14218. (uploadLimitCheck): New variable.
  14219. To contact a tracker regularly:
  14220. * src/TrackerWatcherCommand.h (interval): New variable.
  14221. (checkPoint): New variable.
  14222. (TrackerWatcherCommand): Added interval argument.
  14223. * src/TrackerWatcherCommand.cc
  14224. (TrackerWatcherCommand): Initialized checkPoint.
  14225. (execute): Now a tracker is contacted in every specified period.
  14226. If peer list is not needed, send request with numwant=0.
  14227. * src/TrackerUpdateCommand.cc
  14228. (execute): Updated log messages.
  14229. * src/DownloadEngine.cc
  14230. (~DownloadEngine): Removed two asserts.
  14231. (waitData): Uncommented wfds. May be a bug fix.
  14232. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14233. * src/PeerInteractionCommand.h
  14234. (checkInactiveConnection): Removed.
  14235. * src/PeerInteractionCommand.cc
  14236. (executeInternal): Removed following function calls:
  14237. detectMessageFlooding(), checkLongTimePeerChoking and
  14238. checkInactiveConnection().
  14239. (checkInactiveConnection): Removed.
  14240. (detectMessageFlooding): Removed function call to
  14241. checkInactiveConnection().
  14242. * src/PeerMessageUtil.h
  14243. (createChokeMessage): New function. Overload.
  14244. (createUnchokeMessage): New function. Overload.
  14245. (createInterestedMessage): New function. Overload.
  14246. (createNotInterestedMessage): New function. Overload.
  14247. (createHaveMessage): New function. Overload.
  14248. (createBitfieldMessage): New function. Overload.
  14249. (createRequestMessage): New function. Overload.
  14250. (createCancelMessage): New function. Overload.
  14251. (createPieceMessage): New function. Overload.
  14252. (createKeepAliveMessage): New function. Overload.
  14253. * src/PeerMessageUtil.cc
  14254. (createChokeMessage): New function. Overload.
  14255. (createUnchokeMessage): New function. Overload.
  14256. (createInterestedMessage): New function. Overload.
  14257. (createNotInterestedMessage): New function. Overload.
  14258. (createHaveMessage): New function. Overload.
  14259. (createBitfieldMessage): New function. Overload.
  14260. (createRequestMessage): New function. Overload.
  14261. (createCancelMessage): New function. Overload.
  14262. (createPieceMessage): New function. Overload.
  14263. (createKeepAliveMessage): New function. Overload.
  14264. * src/SendMessageQueue.cc
  14265. (createRequestMessage): Use PeerMessageUtil.
  14266. (createCancelMessage): Use PeerMessageUtil.
  14267. (createPieceMessage): Use PeerMessageUtil.
  14268. (createHaveMessage): Use PeerMessageUtil.
  14269. (createChokeMessage): Use PeerMessageUtil.
  14270. (createUnchokeMessage): Use PeerMessageUtil.
  14271. (createInterestedMessage): Use PeerMessageUtil.
  14272. (createNotInterestedMessage): Use PeerMessageUtil.
  14273. (createBitfieldMessage): Use PeerMessageUtil.
  14274. (createKeepAliveMessage): Use PeerMessageUtil.
  14275. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14276. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14277. * src/PeerInteraction.h: New class.
  14278. * src/PeerInteraction.cc: New class.
  14279. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14280. Each peer message has its own class.
  14281. * src/PendingMessages.h: Removed.
  14282. * src/PendingMessages.cc: Removed. The sending process was moved to
  14283. each message class.
  14284. * src/RequestSlotMan.h: Removed.
  14285. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14286. SendMessageQueue.
  14287. * src/RequestMessage.h: New class.
  14288. * src/RequestMessage.cc: New class.
  14289. * src/CancelMessage.h: New class.
  14290. * src/CancelMessage.cc: New class.
  14291. * src/BitfieldMessage.h: New class.
  14292. * src/BitfieldMessage.cc: New class.
  14293. * src/ChokeMessage.h: New class.
  14294. * src/ChokeMessage.cc: New class.
  14295. * src/KeepAliveMessage.h: New class.
  14296. * src/KeepAliveMessage.cc: New class.
  14297. * src/PortMessage.h: New class.
  14298. * src/UnchokeMessage.h: New class.
  14299. * src/UnchokeMessage.cc: New class.
  14300. * src/PieceMessage.h: New class.
  14301. * src/PieceMessage.cc: New class.
  14302. * src/HaveMessage.h: New class.
  14303. * src/HaveMessage.cc: New class.
  14304. * src/BitfieldMessage.h: New class.
  14305. * src/BitfieldMessage.cc: New class.
  14306. * src/NotInterestedMessage.h: New class.
  14307. * src/NotInterestedMessage.cc: New class.
  14308. * src/InterestedMessage.h: New class.
  14309. * src/InterestedMessage.cc: New class.
  14310. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14311. (getSendMessageQueue): New function.
  14312. (setSendMessageQueue): New function.
  14313. * src/HandshakeMessage.cc: New class.
  14314. * src/PeerConnection.h (receiveMessage): Changed return value and
  14315. arguments.
  14316. (receiveHandshake): Changed return value and arguments.
  14317. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14318. here.
  14319. (receiveHandshake): Do not create handshake class here.
  14320. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14321. (piece): Removed.
  14322. (syncPiece): Removed.
  14323. (sendInterest): Removed.
  14324. (sendMessages): Removed.
  14325. (createRequestPendingMessage): Removed.
  14326. (checkPieceHash): Removed.
  14327. (erasePieceOnDisk): Removed.
  14328. (getNewPieceAndSendInterest): Removed.
  14329. (onGotNewPice): Removed.
  14330. (onGotWrongPiece): Removed.
  14331. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14332. Removed peerConnection, piece.
  14333. (~PeerInteractionCommand): Removed peerConnection.
  14334. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14335. (syncPiece): Moved to SendMessageQueue.
  14336. (decideChoking): Removed PendingMessage.
  14337. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14338. The action after receiving peer message was moved to each message
  14339. class.
  14340. (onGotNewPice): Moved to SendMessageQueue.
  14341. (onGotWrongPiece): Moved to SendMessageQueue.
  14342. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14343. (sendInterest): Moved to SendMessageQueue.
  14344. (createRequestPendingMessage): Removed.
  14345. (sendMessages): Moved to SendMessageQueue.
  14346. (onAbort): Use SendMessageQueue::abortPiece()
  14347. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14348. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14349. (checkPieceHash): Moved to SendMessageQueue.
  14350. (erasePieceOnDisk): Moved to SendMessageQueue.
  14351. * src/PeerMessageUtil.h
  14352. (createBitfieldMessage): Removed.
  14353. (createHaveMessage): Changed return value and arguments.
  14354. (createBitfieldMessage): Changed return value and arguments.
  14355. (createRequestCancelMessage): Removed.
  14356. (createPieceMessage): Changed return value and arguments.
  14357. (getShortIntParam): New function.
  14358. (checkIndex): Changed arguments.
  14359. (checkBegin): Changed arguments.
  14360. (checkLength): Changed arguments.
  14361. (checkPieceOffset): Removed.
  14362. (checkRange): New function.
  14363. (checkBitfield): Changed arguments.
  14364. (createPeerMessage): Removed.
  14365. (checkIntegrity): Removed.
  14366. (createHandshakeMessage): Changed arguments.
  14367. (createChokeMessage): New function.
  14368. (createUnchokeMessage): New function.
  14369. (createInterestedMessage): New function.
  14370. (createNotInterestedMessage): New function.
  14371. (createRequestMessage): New function.
  14372. (createCancelMessage): New function.
  14373. (createPortMessage): New function.
  14374. * src/PeerMessageUtil.cc
  14375. (createBitfieldMessage): Removed.
  14376. (createHaveMessage): Changed return value and arguments.
  14377. (createBitfieldMessage): Changed return value and arguments.
  14378. (createRequestCancelMessage): Removed.
  14379. (createPieceMessage): Changed return value and arguments.
  14380. (getShortIntParam): New function.
  14381. (checkIndex): Changed arguments.
  14382. (checkBegin): Changed arguments.
  14383. (checkLength): Changed arguments.
  14384. (checkPieceOffset): Removed.
  14385. (checkRange): New function.
  14386. (checkBitfield): Changed arguments.
  14387. (createPeerMessage): Removed.
  14388. (checkIntegrity): Removed.
  14389. (createHandshakeMessage): Changed arguments.
  14390. (createChokeMessage): New function.
  14391. (createUnchokeMessage): New function.
  14392. (createInterestedMessage): New function.
  14393. (createNotInterestedMessage): New function.
  14394. (createRequestMessage): New function.
  14395. (createCancelMessage): New function.
  14396. (createPortMessage): New function.
  14397. * src/PeerMessage.h
  14398. (id): Removed.
  14399. (index): Removed.
  14400. (begin): Removed.
  14401. (length): Removed.
  14402. (bitfield): Removed.
  14403. (bitfieldLength): Removed.
  14404. (block): Removed.
  14405. (blockLength): Removed.
  14406. (inProgress): New variable.
  14407. (cuid): New variable.
  14408. (peer): New variable.
  14409. (sendMessageQueue): New variable.
  14410. (logger): New variable.
  14411. (setBitfield): Removed.
  14412. (getBitfield): Removed.
  14413. (setBlock): Removed.
  14414. (getBlock): Removed.
  14415. (getBitfieldLength): Removed.
  14416. (getBlockLength): Removed.
  14417. (isInProgress): New function.
  14418. (toString): Made pure virtual.
  14419. (check): New function.
  14420. (send): New function.
  14421. (receivedAction): New function.
  14422. (getId): Made pure virtual.
  14423. (setId): Removed.
  14424. (getIndex): Removed.
  14425. (setIndex): Removed.
  14426. (getBegin): Removed.
  14427. (setBegin): Removed.
  14428. (getLength): Removed.
  14429. (setLength): Removed.
  14430. (getCuid): New function.
  14431. (setCuid): New function.
  14432. (getPeer): New function.
  14433. (setPeer): New function.
  14434. (getSendMessageQueue): New function.
  14435. (setSendMessageQueue): New function.
  14436. (ID): Removed.
  14437. * src/PeerMessage.cc
  14438. (setBitfield): Removed.
  14439. (setBlock): Removed.
  14440. (toString): Removed.
  14441. * src/TorrentMan.h
  14442. (getPieceLength): New function.
  14443. (getPieceLength): New function.
  14444. * src/SendMessageQueue.h
  14445. (REQUEST_TIME_OUT): New definition.
  14446. (RequestSlots): New definition.
  14447. (MessageQueue): New definition.
  14448. (requestSlotMan): Removed.
  14449. (pendingMessages): Removed.
  14450. (requestSlots): New variable.
  14451. (messageQueue): New variable.
  14452. (torrentMan): New variable.
  14453. (peerConnection): New variable.
  14454. (peer): New variable.
  14455. (piece): New variable.
  14456. (getNewPieceAndSendInterest): New function.
  14457. (createPeerMessage): New function.
  14458. (createHandshakeMessage): New function.
  14459. (send): Made private.
  14460. (setPeerMessageCommonProperty): New function.
  14461. (deleteAllRequestSlot): New function.
  14462. (deleteRequestMessageInQueue): New function.
  14463. (cancelAllRequest): Made private.
  14464. (cancelAllRequest): Made private.
  14465. (countRequestSlot): Made private.
  14466. (addPendingMessage): Removed.
  14467. (deletePendingPieceMessage): Removed.
  14468. (deletePendingRequestMessage): Removed.
  14469. (addMessage): New function.
  14470. (deletePieceMessageInQueue): New function.
  14471. (deleteTimeoutRequestSlot): Changed argument.
  14472. (deleteCompletedRequestSlot): Changed argument.
  14473. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14474. (getCorrespondingRequestSlot): New function.
  14475. (countPendingMessage): Removed.
  14476. (countMessageInQueue): New function.
  14477. (getTorrentMan): New function.
  14478. (getPeerConnection): New function.
  14479. (hasDownloadPiece): New function.
  14480. (getDownloadPiece): New function.
  14481. (setDownloadPiece): New function.
  14482. (syncPiece): New function.
  14483. (sendMessages): New function.
  14484. (sendNow): New function.
  14485. (trySendNow): New function.
  14486. (abortPiece): New function.
  14487. (sendHandshake): New function.
  14488. (receiveMessage): New function.
  14489. (receiveHandshake): New function.
  14490. (createRequestMessage): New function.
  14491. (createCancelMessage): New function.
  14492. (createPieceMessage): New function.
  14493. (createHaveMessage): New function.
  14494. (createChokeMessage): New function.
  14495. (createUnchokeMessage): New function.
  14496. (createInterestedMessage): New function.
  14497. (createNotInterestedMessage): New function.
  14498. (createBitfieldMessage): New function.
  14499. (createKeepAliveMessage): New function.
  14500. * src/SendMessageQueue.cc
  14501. (SendMessageQueue): Removed requestSlotMan.
  14502. Instantiated peerConnection here.
  14503. (~SendMessageQueue): Removed requestSlotMan.
  14504. Added deletion of peerConnection and the contents of messageQueue.
  14505. (send): Updated according to the change of messageQueue.
  14506. (addPendingMessage): Renamed to addMessage.
  14507. (addMessage): New function.
  14508. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14509. (deletePieceMessageInQueue): New function.
  14510. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14511. (deleteRequestMessageInQueue): New function.
  14512. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14513. here.
  14514. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14515. (...) was moved here.
  14516. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14517. moved here.
  14518. (deleteCompletedRequestSlot):
  14519. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14520. (getCorrespondingRequestSlot):
  14521. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14522. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14523. (countPendingMessage): Renamed to countMessageInQueue.
  14524. (countMessageInQueue): New function.
  14525. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14526. (receiveHandshake): New function.
  14527. (createHandshakeMessage): New function.
  14528. (receiveMessage): New function.
  14529. (createPeerMessage): New function.
  14530. (syncPiece): New function.
  14531. (getNewPieceAndSendInterest): New function.
  14532. (sendMessages): New function.
  14533. (sendNow): New function.
  14534. (trySendNow): New function.
  14535. (sendHandshake): New function.
  14536. (abortPiece): New function.
  14537. (getDownloadPiece): New function.
  14538. (getPeerMessageCommonProperty): New function.
  14539. (createRequestMessage): New function.
  14540. (createCancelMessage): New function.
  14541. (createPieceMessage): New function.
  14542. (createHaveMessage): New function.
  14543. (createChokeMessage): New function.
  14544. (createUnchokeMessage): New function.
  14545. (createInterestedMessage): New function.
  14546. (createNotInterestedMessage): New function.
  14547. (createBitfieldMessage): New function.
  14548. (createKeepAliveMessage): New function.
  14549. To add simple Content-Disposition support:
  14550. * src/HttpResponseCommand.h (determinFilename): New function.
  14551. * src/HttpResponseCommand.cc (executeInternal):
  14552. Use determinFilename(headers) instead of req->getFile() when comparing
  14553. filename.
  14554. (determinFilename): New function.
  14555. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14556. req->getFile().
  14557. (handleOtherEncoding): Use determinFilename(headers) instead of
  14558. req->getFile().
  14559. * src/Util.h (getContentDispositionFilename): New function.
  14560. * src/Util.cc (getContentDispositionFilename): New function.
  14561. * src/LogFactory.h (release): New function.
  14562. * src/LogFactory.cc (release): New function.
  14563. To fix a bug that causes out-of-bound exception when HTTP status
  14564. line is wrong:
  14565. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14566. size.
  14567. * src/common.h (Deleter): New class.
  14568. * src/SegmentMan.cc
  14569. (~SegmentMan): Added deletion of splitter and diskWriter.
  14570. * src/DownloadEngine.h
  14571. (Commands): Use deque.
  14572. (clearQueue): New function.
  14573. * src/DownloadEngine.cc
  14574. (~DownloadEngine): Added deletion of segmentMan.
  14575. (cleanQueue): New function.
  14576. * src/TorrentDownloadEngine.h
  14577. (TorrentDownloadEngine): The implementation was moved to
  14578. TorrentDownloadEngine.cc.
  14579. (~TorrentDownloadEngine): The implementation was moved to
  14580. TorrentDownloadEngine.cc.
  14581. * src/TorrentDownloadEngine.cc
  14582. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14583. * src/main.cc
  14584. (clearRequest): Removed.
  14585. (handler): Added deletion of e.
  14586. (torrentHandler): Added deletion of te.
  14587. (main): Do not share splitter.
  14588. Use Deleter instead of clearRequest.
  14589. Deletion of classes were updated.
  14590. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14591. * src/main.cc (main): Fixed typo.
  14592. * src/message.h: Fixed typo.
  14593. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14594. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14595. To add --select-file command-line option:
  14596. * src/Util.cc
  14597. (unfoldRange): New function.
  14598. (getNum): New function.
  14599. (unfoldSubRange): New function
  14600. * src/main.cc
  14601. (showUsage): Added help message.
  14602. (main): Added --select-file command-line option. Updated the layout of
  14603. file listing.
  14604. * src/common.h
  14605. (Integers): New definition.
  14606. * src/SocketCore.cc
  14607. (writeData): Removed timeout argument.
  14608. (readData): Removed timeout argument.
  14609. (peekData): Removed timeout argument.
  14610. * src/Socket.cc
  14611. (writeData): Removed timeout argument.
  14612. (readData): Removed timeout argument.
  14613. (peekData): Removed timeout argument.
  14614. * Release 0.4.1
  14615. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14616. To deploy upload rate based choking algorithm:
  14617. * src/PeerInteractionCommand.cc
  14618. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14619. peer currently used.
  14620. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14621. download completes. Simplified.
  14622. (receiveMessage): Updated.
  14623. * src/TorrentMan.h
  14624. (activePeers): New variable.
  14625. (addActivePeer): New function.
  14626. (getActivePeers): New function.
  14627. (deleteActivePeer): New function.
  14628. * src/TorrentMan.cc
  14629. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14630. * src/PeerAbstractCommand.cc
  14631. (onAbort): Use peer->resetStatus().
  14632. * src/main.cc
  14633. (PeerChokeCommand.h): Included.
  14634. (main): Added the instance of ChokingCommand to the command queue.
  14635. * src/Peer.h
  14636. (amChoking): Renamed from amChocking
  14637. (chokingRequired): New variable.
  14638. (optUnchoking): New variable.
  14639. (deltaUpload): New variable.
  14640. (deltaDownload): New variable.
  14641. (addDeltaUpload): New function.
  14642. (resetDeltaUpload): New function.
  14643. (addDeltaDownload): New function.
  14644. (resetDeltaDownload): New function.
  14645. (addPeerUpload): Added a call to addDeltaUpload.
  14646. (addPeerDownload): Added a call to addDeltaDownload.
  14647. * src/Peer.cc
  14648. (shouldBeChoking): Renamed from shouldChoke.
  14649. (resetStatus): New function.
  14650. * src/PeerChokeCommand.h: New class.
  14651. * src/PeerChokeCommand.cc: New class.
  14652. To add lazy upload speed limiter:
  14653. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14654. statistics calculation to TorrentDownloadEngine.
  14655. * src/TorrentConsoleDownloadEngine.cc
  14656. (sendStatistics): Renamed from printStatistics.
  14657. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14658. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14659. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14660. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14661. calculation.
  14662. (sendStatistics): New function as pure virtual function.
  14663. (getUploadSpeed): New function.
  14664. * src/TorrentDownloadEngine.cc
  14665. (initStatistics): New function.
  14666. (calculateSpeed): New function.
  14667. (calculateStatistics): New function.
  14668. * src/SendMessageQueue.h
  14669. (uploadLength): New variable.
  14670. (send): Added an argument.
  14671. (setUploadLimit): New function.
  14672. (getUploadLimit): New function.
  14673. * src/SendMessageQueue.cc
  14674. (send): Added upload speed limiter.
  14675. * src/prefs.h
  14676. (PREF_UPLOAD_LIMIT): New definition.
  14677. * src/PeerInteractionCommand.cc
  14678. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14679. * src/main.cc
  14680. (main): Added --upload-limit option
  14681. For bug fixes:
  14682. * src/main.cc
  14683. (showUsage): Corrected --listen-port help
  14684. Other changes:
  14685. * src/TorrentMan.cc
  14686. (getPeer): Return nullPeer if connection is grather than
  14687. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14688. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14689. To add some useful information to the exception message:
  14690. * src/SocketCore.cc : Updated messages.
  14691. * src/SegmentMan.cc :
  14692. * src/TorrentMan.cc : Updated messages.
  14693. * src/MultiDiskWriter.cc : Updated messages.
  14694. * src/Util.cc : Updated messages.
  14695. * src/AbstractDiskWriter.cc : Updated messages.
  14696. * src/PreAllocationDiskWriter.cc : Updated messages.
  14697. * src/message.cc : Added new messages. Updated some messages.
  14698. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14699. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14700. Updated threshold from 30 to 15.
  14701. * src/AbstractDiskWriter.h (filename): New variable.
  14702. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14703. (createFile): Assigned filename.
  14704. * src/main.cc: Updated the help message for http-auth-scheme.
  14705. * Release 0.4.0
  14706. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14707. To add TrackerUpdateCommand with which replaces
  14708. CompactTrackerResponseProcessor:
  14709. * src/TrackerWatcherCommand.h (req): Removed.
  14710. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14711. if the number of peer connections are less than 30.
  14712. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14713. * src/SegmentMan.h (diskWriter): New function.
  14714. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14715. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14716. (main): Use TrackerUpdateCommand.
  14717. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14718. (req): New variable.
  14719. (setTrackerResponseProcessor): Removed.
  14720. (getTrackerResponseProcessor): Removed.
  14721. (processTrackerResponse): Removed.
  14722. * src/DownloadEngine.h (diskWriter): Removed.
  14723. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14724. to torrentMan->processTrackerResponse().
  14725. To add Util::expandBuffer:
  14726. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14727. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14728. * src/Util.h (expandBuffer): New function.
  14729. To fix the bug that causes segmentation fault when "-l ." is specified
  14730. in command-line option:
  14731. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14732. (openFile): New function.
  14733. (closeFile): New function.
  14734. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14735. (~SimpleLogger): Call closeFile();
  14736. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14737. * src/main.cc (main): Added a check to see logger is configured
  14738. properly.
  14739. To enable HTTP authentication without specifying "--http-auth-scheme"
  14740. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14741. * src/HttpConnection.cc (createRequest): Send Authorization header
  14742. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14743. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14744. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14745. * src/Peer.cc (shouldChoke): Updated algorithm.
  14746. * src/message.h (EX_AUTH_FAILED): New definition.
  14747. (EX_FILE_OPEN): New definition.
  14748. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14749. if status == 401.
  14750. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14751. if req->isTorrent == true.
  14752. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14753. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14754. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14755. (createFile): Updated message.
  14756. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14757. To add a readout of estimated remaining time to normal HTTP/FTP
  14758. downloads:
  14759. * src/ConsoleDownloadEngine.h (startup): New variable.
  14760. (startupLength): New variable.
  14761. (isStartupLengthSet): New variable.
  14762. (avgSpeed): New variable.
  14763. (eta): New variable.
  14764. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14765. estimated remaining time.
  14766. (initStatistics): Initialized newly added variables.
  14767. (calculateStatistics): Calculate average speed and estimated remaining
  14768. time.
  14769. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14770. * src/TrackerDownloadCommand.h: Removed.
  14771. * src/TrackerDownloadCommand.cc: Removed.
  14772. * src/TrackerInitCommand.h: Removed.
  14773. * src/TrackerInitCommand.cc: Removed.
  14774. * src/TrackerUpdateCommand.h: Removed.
  14775. * src/TrackerUpdateCommand.cc: Removed.
  14776. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14777. url written in TrackerInitCommand was moved here. Do not create
  14778. tracker request command if torrentMan->trackers != 0.
  14779. * src/CompactTrackerResponseProcessor.h: New class.
  14780. * src/CompactTrackerResponseProcessor.cc: New class.
  14781. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14782. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14783. Decoupled TorrentDownloadEngine from this.
  14784. * src/SegmentMan.h (init): New function.
  14785. * src/SegmentMan.cc (init): New function.
  14786. * src/TorrentMan.h (responseProcessor): New variable.
  14787. (trackers): New variable.
  14788. (setTrackerResponseProcessor): New function.
  14789. (getTrackerResponseProcessor): New function.
  14790. (processTrackerResponse): New function.
  14791. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14792. (processTrackerResponse): New function.
  14793. * src/main.cc (main): Use ByteArrayDiskWriter and
  14794. CompactTrackerResponseProcessor.
  14795. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14796. processTrackerResponse().
  14797. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14798. readout.
  14799. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14800. which indicates download has completed.
  14801. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14802. (closeFile): fd >= 0, not fd > 0
  14803. * src/main.cc (main): Added short cut for show-files.
  14804. Added short cut for torrent-file.
  14805. Added new command-line option listen-port.
  14806. Updated i18n messages.
  14807. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14808. To add LogFactory which creates singleton logger:
  14809. * src/LogFactory.h: New class.
  14810. * src/LogFactory.cc: New class.
  14811. * src/Command.h (logger): New variable.
  14812. (Constructor): Use LogFactory.
  14813. * src/AbstractCommand.cc: Use Command::logger
  14814. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  14815. Use LogFactory.
  14816. * src/SegmentSplitter.h : Made logger protected.
  14817. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  14818. * src/SegmentMan.cc (Constructor): Use LogFactory.
  14819. * src/DownloadEngine.h : Made logger protected.
  14820. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  14821. * src/PeerInteractionCommand.cc : Use Command::logger.
  14822. * src/HttpResponseCommand.cc : Use Command::logger.
  14823. * src/SegmentMan.h : Made logger private.
  14824. * src/TorrentMan.h : Made logger private.
  14825. * src/TorrentMan.cc : Use LogFactory.
  14826. * src/FtpNegotiateCommand.cc : Use Command::logger.
  14827. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  14828. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  14829. Use LogFactory.
  14830. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  14831. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  14832. Use LogFactory.
  14833. * src/DownloadCommand.cc : Use Command::logger.
  14834. * src/PeerAbstractCommand.cc : Use Command::logger.
  14835. * src/PeerListenCommand.cc : Use Command::logger.
  14836. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  14837. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  14838. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  14839. * src/TrackerWatcherCommand.cc : Use Command::logger.
  14840. * src/TrackerUpdateCommand.cc : Use Command::logger.
  14841. * src/TrackerDownloadCommand.cc : Use Command::logger.
  14842. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  14843. Use LogFactory.
  14844. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  14845. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  14846. Use LogFactory.
  14847. * src/main.cc (main): Use LogFactory.
  14848. * src/DiskAdaptor.h (logger): New variable.
  14849. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  14850. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  14851. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14852. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  14853. parameter to a tracker request.
  14854. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  14855. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  14856. * src/main.cc (setSignalHander): New function.
  14857. (main): Added a handler for SIGTERM.
  14858. (handler): Updated message.
  14859. (torrentHandler): Updated message.
  14860. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14861. * src/TorrentConsoleDownloadEngine.cc
  14862. (onPartialDownloadingCompletes): Renamed as
  14863. onSelectiveDownloadingCompletes.
  14864. (onSelectiveDownloadingCompletes): Updated message.
  14865. To add DiskAdaptor which abstract DiskWriter family:
  14866. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  14867. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  14868. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  14869. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  14870. MultiDiskAdaptor.h.
  14871. (readFileEntry): Changed its arguments.
  14872. (setup): setupDiskWriter is merged into this function.
  14873. (setupDiskWriter): Removed.
  14874. (setFileFilter): New function.
  14875. (readFileEntryFromMetaInfoFile): Updated according to the changes
  14876. made in readFileEntry.
  14877. (getFilePath): Removed.
  14878. (getTempFilePath): Removed.
  14879. (getSegmentFilePath): Updated due to the removal of getFilePath.
  14880. (fixFilename): Removed.
  14881. (copySingleFile): Removed.
  14882. (splitMultiFile): Removed.
  14883. (deleteTempFile): Removed.
  14884. (setFileEntriesToDownload): Removed.
  14885. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  14886. (isSelectiveDownloadingMode): New function.
  14887. (setAllMultiFileRequestedState): Removed.
  14888. (finishPartialDownloadingMode): Renamed as
  14889. finishSelectiveDownloadingMode.
  14890. (finishSelectiveDownloadingMode): New function.
  14891. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  14892. (getSelectedTotalLength): New function.
  14893. (onDownloadComplete): Use diskAdaptor.
  14894. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  14895. (Range): Removed.
  14896. (setMultiFileEntries): Renamed as setFileEntries.
  14897. (setFileEntries): New function.
  14898. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  14899. (pieceLength): New variable.
  14900. * src/main.cc (printDownloadCompeleteMessage): New function.
  14901. (torrentHandler): Use diskAdaptor instead of diskWriter.
  14902. (main): Renamed torrent-show-files to show-files.
  14903. Rewritten file contents listing.
  14904. * src/TorrentMan.h (FileEntry): Removed.
  14905. (multiFileTopDir): Removed.
  14906. (multiFileEntries): Removed.
  14907. (diskWriter): Removed.
  14908. (diskAdaptor): New variable.
  14909. * src/DefaultDiskWriter.h (totalLength): New variable.
  14910. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  14911. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  14912. diskWriter.
  14913. * src/TorrentConsoleDownloadEngine.h
  14914. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  14915. (partialTotalLength): Renamed as selectedTotalLength.
  14916. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  14917. openExistingFile, otherwise call initAndOpenFile.
  14918. (closeFile): fd > 0, not fd != 0.
  14919. * src/DirectDiskAdaptor.h: New class.
  14920. * src/DirectDiskAdaptor.cc: New class.
  14921. * src/MultiDiskAdaptor.h: New class.
  14922. * src/MultiDiskAdaptor.cc: New class.
  14923. * src/CopyDiskAdaptor.h: New class.
  14924. * src/CopyDiskAdaptor.cc: New class.
  14925. * src/DiskAdaptor.h: New class.
  14926. * src/DiskAdaptor.cc: New class.
  14927. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  14928. (PREF_SHOW_FILES): New definition.
  14929. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14930. To add the ability to download multi torrent into respective files
  14931. directly:
  14932. * src/DiskWriter.h (openFile): New function.
  14933. (seek): Removed.
  14934. * src/MultiDiskWriter.h: New class.
  14935. * src/MultiDiskWriter.cc: New class.
  14936. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  14937. protected.
  14938. (openFile): New function.
  14939. * src/AbstractDiskWriter.cc (openFile): New function.
  14940. * src/prefs.h (V_FALSE): New definition.
  14941. (PREF_DIRECT_FILE_MAPPING): New definition.
  14942. * src/TorrentMan.h (setupDiskWriter): New function.
  14943. (setAllMultiFileRequestedState): New function.
  14944. (onDownloadComplete): New function.
  14945. * src/TorrentMan.cc : Included MultiDiskWriter.h
  14946. (setupDiskWriter): New function.
  14947. (getFilePath): Updated.
  14948. (getTempFilePath): Updated.
  14949. (getSegmentFilePath): Updated.
  14950. (fixFilename): Updated.
  14951. (deleteTempFile): Updated.
  14952. (setAllMultiFileRequestedState): New function.
  14953. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  14954. (finishPartialDownloadingMode): Reset requested flags.
  14955. (onDownloadComplete): New function.
  14956. * src/main.cc: Added --direct-file-mapping option.
  14957. Use TorrentMan::setupDiskWriter().
  14958. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  14959. onDownloadComplete().
  14960. To fix ETA bug:
  14961. * src/Util.h (difftvsec): New function.
  14962. * src/Util.cc (difftvsec): New function.
  14963. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  14964. type of "elapsed" instead of long long int.
  14965. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  14966. The updates of statistics takes place every 1 seconds.
  14967. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  14968. (calculateSpeed): Changed its argument signature.
  14969. * src/PeerMessage.cc (toString): Fixed message.
  14970. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14971. To print ETA:
  14972. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  14973. completion handling when dealing with
  14974. TorrentMan::isPartialDownloadingMode() == true.
  14975. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  14976. New function.
  14977. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  14978. (sessionDownloadLength): New variable.
  14979. (avgSpeed): New variable.
  14980. (eta): New variable.
  14981. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  14982. new variables: eta, avgSpeed, startup.
  14983. (calculateSpeed): Calculate average speed and ETA.
  14984. (printStatistics): Added ETA.
  14985. * src/Util.h (secfmt): New function.
  14986. * src/Util.cc (secfmt): New function.
  14987. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14988. To detect "keep alive" flooding:
  14989. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  14990. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  14991. variable: keepAliveCount.
  14992. (detectMessageFlooding): Added "keep alive" flooding detection.
  14993. (receiveMessage): Increase keepAliveCount when "keep alive" message
  14994. received.
  14995. To add the ability to download only specified files in multi-file
  14996. torrent:
  14997. * src/BitfieldMan.h (filterBitfield): New variable.
  14998. (filterEnabled): New variable.
  14999. (setFilterBit): New function.
  15000. (enableFilter): New function.
  15001. (disableFilter): New function.
  15002. (isFilterEnabled): New function.
  15003. (getFilteredTotalLength): New function.
  15004. (getCompletedLength): New function.
  15005. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15006. filterBitfield, filterEnabled.
  15007. (CopyConstructor): Added filterBitfield and filterEnabled.
  15008. (operator==): Added filterBitfield and filterEnabled.
  15009. (Destructor): Added filterBitfield.
  15010. (getMissingIndex): Use filterBitfield.
  15011. (getMissingUnusedIndex): Use filterBitfield.
  15012. (getFirstMissingUnusedIndex): Use filterBitfield.
  15013. (getFirstMissingUnusedIndex): Use filterBitfield.
  15014. (getAllMissingIndexes): Use filterBitfield.
  15015. (countMissingBlock): Use filterBitfield.
  15016. (countBlock): Use filterBitfield.
  15017. (setBitInternal): Added new argument on.
  15018. (setUseBit): Use setBitInternal.
  15019. (unsetUseBit): Use setBitInternal.
  15020. (setBit): Use setBitInternal.
  15021. (unsetBit): Use setBitInternal.
  15022. (isAllBitSet): Use filterBitfield.
  15023. (setFilterBit): New function.
  15024. (addFilter): New function.
  15025. (enableFilter): New function.
  15026. (disableFilter): New function.
  15027. (clearFilter): New function.
  15028. (isFilterEnabled): New function.
  15029. (getFilteredTotalLength): New function.
  15030. (getCompletedLength): New function.
  15031. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15032. Initalized newly added variables.
  15033. [FileEntry](offset): New variable.
  15034. [FileEntry](extracted): New variable.
  15035. [FileEntry](requested): New variable.
  15036. (readFileEntry): New function.
  15037. (option): New variable.
  15038. (splitMultiFile): Removed const qualifier.
  15039. (fixFilename): Removed const qualifier.
  15040. (readFileEntryFromMetaInfoFile): New function.
  15041. (finishPartialDownloadingMode): New function.
  15042. (isPartialDownloadingMode): New function.
  15043. (setFileEntriesToDownload): New function.
  15044. (getCompletedLength): New function.
  15045. (getPartialTotalLength): New function.
  15046. * src/TorrentMan.cc (readFileEntry): New function.
  15047. (setup): Use readFileEntry. If no-preallocation option is specified,
  15048. use DefaultDiskWriter.
  15049. (readFileEntryFromMetaInfoFile): New function.
  15050. (fixFilename): Removed const qualifier.
  15051. (splitMultiFile): Removed const qualifier.
  15052. (setFileEntriesToDownload): New function.
  15053. (isPartialDownloadingMode): New function.
  15054. (finishPartialDownloadingMode): New function.
  15055. (getCompletedLength): New function.
  15056. (getPartialTotalLength): New function.
  15057. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15058. New variable.
  15059. (partialTotalLength): New variable.
  15060. (downloadLength): New variable.
  15061. (totalLength): New variable.
  15062. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15063. Added log.
  15064. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15065. partialTotalLength, downloadLength, totalLength.
  15066. (calculate): Calculate downloadLength and totalLength.
  15067. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15068. * src/main.cc (addCommand): Changed argument signature.
  15069. (main): Added new variable: args. Added new option "torrent-show-files"
  15070. "no-preallocation". Usage is not updated yet.
  15071. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15072. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15073. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15074. Attempt to add the ability to listing file entries in a .torrent file.
  15075. This feature is not yet complete.
  15076. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15077. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15078. (getName): New function.
  15079. * src/TorrentMan.h (getMultiFileEntries): New function.
  15080. (getName): New function.
  15081. * src/main.cc (main): Use above 2 funtion.
  15082. * Release 0.3.2
  15083. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15084. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15085. (detectMessageFlooding): Updated threshold value.
  15086. (checkLongTimePeerChoking): Updated timeout value.
  15087. (getNewPieceAndSendInterest): Added debug log.
  15088. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15089. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15090. (getPeer): Updated.
  15091. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15092. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15093. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15094. is localhost.
  15095. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15096. * src/PendingMessage.cc (processMessage): Not to send piece message
  15097. if peer is not interested in the pieces localhost has.
  15098. * src/Peer.cc (shouldChoke): Updated.
  15099. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15100. * src/Util.cc (isPowerOf): New function.
  15101. * src/Util.h (isPowerOf): New function.
  15102. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15103. whether or not it is power of 2.
  15104. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15105. Added new class SendMessageQueue that includes PendingMessages and
  15106. RequestSlotMan.
  15107. * src/SendMessageQueue.h: New class.
  15108. * src/SendMessageQueue.cc: New class.
  15109. * src/PendingMessage.h: Added new member variable blockIndex and its
  15110. accessors.
  15111. (createRequestMessage): Updated.
  15112. * src/PendingMessage.cc (createRequestMessage): Updated.
  15113. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15114. SendMessageQueue.
  15115. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15116. (receiveMessage): Updated with SendMessageQueue.
  15117. (deletePendingPieceMessage): Removed.
  15118. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15119. (sendInterest): Updated with SendMessageQueue.
  15120. (createRequestPendingMessage): Updated with SendMessageQueue.
  15121. (sendMessages): Updated with SendMessageQueue.
  15122. (onAbort): Updated with SendMessageQueue.
  15123. (keepAlive): Updated with SendMessageQueue.
  15124. (beforeSocketCheck): Updated SendMessageQueue.
  15125. * src/PeerInteractionCommand (sendMessages): Shuffle
  15126. missingBLockIndexes before using it.
  15127. Added its own timeout for peer connection.
  15128. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15129. setter.
  15130. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15131. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15132. Added setTimeout() call.
  15133. (executeInternal): Added setTimeout() call.
  15134. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15135. Added timeout.
  15136. (isTimeoutDetected): Updated.
  15137. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15138. option.
  15139. Added *simple* message flooding checker.
  15140. * src/PeerInteractionCommand.cc (executeInternal):
  15141. Added detectMessageFlooding() call.
  15142. (detectMessageFlooding): New function.
  15143. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15144. (beforeSocketCheck): Added detectMessageFlooding() call.
  15145. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15146. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15147. Removed deletePendingPieceMessage(), getRequestSlot(),
  15148. deleteRequestSlot(), deleteAllRequestSlot().
  15149. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15150. Added checkLongTimePeerChoking() call.
  15151. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15152. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15153. if duplicate == false.
  15154. The parameter "uploaded" and "downloaded" in the tracker request are
  15155. the size since the client sent the "started" event to the tracker.
  15156. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15157. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15158. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15159. getSessionDownloadedSize(), getSessionUploadedSize().
  15160. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15161. getSessionUploadedSize() instead of getDownloadedSize(),
  15162. getUploadedSize().
  15163. * src/PendingMessage.cc (processMessage): Do not send request message
  15164. if the peer is choking the client.
  15165. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15166. less than interval.
  15167. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15168. * configure.in: Added gnutls support. Added several CPP macros.
  15169. * m4/openssl.m4: Added.
  15170. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15171. readData(), peekData(). Added gnutls support.
  15172. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15173. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15174. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15175. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15176. Instead, added a check for whether setup method has executed
  15177. successfully.
  15178. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15179. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15180. * src/Makefile.am: Updated.
  15181. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15182. using whether OpenSSL or gcrypt, depending on the result of configure
  15183. script.
  15184. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15185. messageDigest.h.
  15186. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15187. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15188. Fixed memory leak.
  15189. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15190. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15191. Removed instantiation of TrackerInitCommand. Instead,
  15192. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15193. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15194. ENABLE_SSL.
  15195. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15196. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15197. If a piece is already acquired by another command, delete the request
  15198. slots for the piece.
  15199. * src/TrackerUpdateCommand.cc (execute):
  15200. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15201. Added a check whether peer list is null.
  15202. Fixed the bug that causes sending completed event to the tracker
  15203. several times.
  15204. * src/TrackerInitCommand.cc (execute):
  15205. Fixed the bug that causes sending completed event to the tracker
  15206. several times.
  15207. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15208. by using messageDigest.h.
  15209. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15210. * PeerConnection.cc: Replaced log message "keep-alive" with
  15211. "keep alive".
  15212. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15213. localhost long time.
  15214. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15215. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15216. at most 100 failure entry from the list. If with duplicate = false,
  15217. MAX_PEER_LIST is not checked.
  15218. * PeerListenCommand.cc: Fixed the argument order of log message.
  15219. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15220. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15221. Added warn().
  15222. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15223. Implemented warn().
  15224. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15225. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15226. * Request.h: Added AFTER_COMPLETED event.
  15227. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15228. instead of downloaded size and progress(%) after download completes.
  15229. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15230. message to the peer if it is interested in what localhost has
  15231. downloaded.
  15232. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15233. destination instead of just renaming it.
  15234. * TorrentMan.cc: Added deleteTempFile().
  15235. * PeerAbstractCommand.cc: do not stop execution after download
  15236. completes. This makes localhost a seeder.
  15237. * Util.{h,cc}: Added fileCopy().
  15238. * PeerListenCommand.cc: do not stop execution after download completes.
  15239. This makes localhost a seeder.
  15240. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15241. Added TorrentMan::deleteTempFile() to torrentHandler.
  15242. Initialized the variable dir as ".".
  15243. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15244. Deleted renameSingleFile().
  15245. Added copySingleFile(), deleteTempFile().
  15246. * DownloadEngine.h: Added virtual function afterEachIteration().
  15247. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15248. in onEndOfRun() to afterEachIteration().
  15249. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15250. true.
  15251. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15252. In rangedFileCopy(), added try-catch block to properly close file
  15253. descriptors.
  15254. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15255. Added afterEachIteration(), isFilenameFixed().
  15256. * Peer.cc: Changed choking strategy.
  15257. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15258. * TrackerInitCommand.cc: Send completed event only once.
  15259. * DownloadEngine.cc: Added a call to afterEachIteration().
  15260. * TrackerUpdateCommand.cc: Do not stop execution after download
  15261. completes.
  15262. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15263. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15264. received from a tracker.
  15265. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15266. Decreased the number of failure peers to delete to 0(just comment out
  15267. the line).
  15268. * Release 0.3.1
  15269. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15270. * PeerInteractionCommand.cc: added a call to
  15271. TorrentMan::unadvertisePiece in Destructor.
  15272. * PeerInteractionCommand.cc: make have message sent immediately
  15273. if the size of pending message queue is zero.
  15274. * TorrentMan.cc: set the maximum size of peer list to 250.
  15275. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15276. to deque.
  15277. * Util.cc: fixed rangedFileCopy.
  15278. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15279. to Constructor. Also, moved digest cleanup to Destructor.
  15280. * MetaFileUtil.cc: fixed memory leak
  15281. * replaced std::vector with std::deque.
  15282. * AbstractCommand.cc: casted timeout value to long long int.
  15283. * ChunkedEncoding.cc: fixed memory leak.
  15284. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15285. * SleepCommand.cc: casted timeout value to long long int.
  15286. * Data.cc: fixed memory leak.
  15287. * Data.cc: fixed toLLInt().
  15288. * BitfieldMan.cc: fixed memory leak.
  15289. * TorrentMan.cc: initialized storeDir to ".".
  15290. * TorrentMan.cc: fixed memory leak.
  15291. * TorrentMan.cc: corrected file paths of splitted files.
  15292. * PeerAbstractCommand.cc: casted timeout to long long int.
  15293. * main.cc: added delete(req) and delete(te->diskWriter).
  15294. * RequestSlot.cc: casted timeout value to long long int.
  15295. * Request.cc: fixed memory leak.
  15296. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15297. have the piece.
  15298. * Peer.{h,cc}: added hasPiece(int index).
  15299. * main.cc: corrected addCommand.
  15300. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15301. * BitTorrent protocol support added.
  15302. * Release 0.3.0
  15303. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15304. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15305. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15306. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15307. decoding did not work properly.
  15308. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15309. * DownloadEngine.h: included sys/time.h
  15310. * DownloadEngine.cc: remove sys/time.h
  15311. * Makefile.am (SUBDIRS): Add intl.
  15312. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15313. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15314. * main.cc: correct help message for --http-auth-scheme.
  15315. * main.cc: changed e-mail address for bug reports.
  15316. * ja.po: added japanese translation.
  15317. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15318. * SimpleLogger.cc: flush log file instead of stdout.
  15319. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15320. * main.cc: Fixed command-line option: max-tries
  15321. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15322. does not equal to seg.sp.
  15323. * DownloadCommand.cc: If EOF is got from the server and the total size
  15324. of file is not zero, then throw DlRetryEx.
  15325. * main.cc: Set the minium value of min-segment-size to 1024.
  15326. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15327. fails because of a regression since 0.2.0 release.
  15328. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15329. * HttpConnection.cc:
  15330. * common.h: defined the user agent name as macro
  15331. * DownloadEngine.{h, cc}:
  15332. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15333. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15334. * main.cc: Download complete/abort message is now generated by main.
  15335. * Makefile.am (SUBDIRS): Add m4.
  15336. (ACLOCAL_AMFLAGS): New variable.
  15337. (EXTRA_DIST): New variable.
  15338. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15339. * gettext: added gettext functionality
  15340. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15341. * AbstractCommand.cc:
  15342. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15343. unregister its cuid from SegmentMan.
  15344. * DownloadEngine.cc: .aria2 file was written when a downloading
  15345. failed with errors.
  15346. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15347. Added "User-Agent" header to CONNECT proxy request.
  15348. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15349. properly.
  15350. * Logger.h:
  15351. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15352. * ChunkedEncoding.cc: Added #include directive for strings.h
  15353. * Release 0.2.1
  15354. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15355. * Util.{h,cc}: added startsWith().
  15356. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15357. Util::endsWith().
  15358. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15359. * common.h: added #include directive of limit.h.
  15360. * DownloadEngine.cc: added #include directive of sys/time.h and
  15361. algorithm.
  15362. * Exception.h: added #include directive of stdio.h.
  15363. * AbstractCommand.h: added #include directive of sys/time.h.
  15364. * DownloadCommand.h: added #include directive of sys/time.h.
  15365. * *.h: added #include directive of common.h to all base classes.
  15366. subclasses' one was removed.
  15367. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15368. does not define these macros.
  15369. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15370. * Release 0.2.0
  15371. * main.cc:
  15372. * HttpInitiateConnectionCommand.{h,cc}:
  15373. * prefs.h:
  15374. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15375. We can now use GET command in http proxy.
  15376. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15377. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15378. that splits slowest segment of SegmentMan::commands vector.
  15379. This is the default split algorithm of aria2.
  15380. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15381. that splits first segment of SegmentMan::commands vector.
  15382. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15383. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15384. * Segment.h:
  15385. * SegmentMan.cc: Added speed field to Segment.h
  15386. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15387. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15388. * message.h: Change file size related %d to %lld.
  15389. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15390. * FtpInitiateConnectionCommand.{h,cc}:
  15391. * FtpNegotiationCommand.{h,cc}:
  15392. * FtpDownloadCommand.{h,cc}:
  15393. * FtpConnection.{h,cc}: Added FTP support
  15394. * SimpleLogger.cc: Log message now includes time information.
  15395. * main.cc: The value of --http-auth-scheme option is chagned from
  15396. 'BASIC' to 'basic'
  15397. * main.cc: Added --timeout command-line option.
  15398. * main.cc: Added --min-segment-size command-line option.
  15399. * main.cc: Added --max-retries command-line option.
  15400. * prefs.h: option string constants are now defined in prefs.h
  15401. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15402. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15403. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15404. with version 0.1.0's one.
  15405. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15406. * configure.in: Added --enable-ssl option to configure script.
  15407. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15408. cannot permit absoluteURI as Request-URI.
  15409. * HttpConnection.cc: Added Referer support.
  15410. * main.cc: Added referer command-line option.
  15411. * main.cc: Added rety-wait command-line option.
  15412. * Exception.h: Fixed formating bug in Exception::setMsg()
  15413. * SocketCore.{h,cc}:
  15414. * Socket.{h, cc}:
  15415. * Request.cc:
  15416. * InitiateConnectionCommandFactory.cc:
  15417. * HttpRequestCommand.cc: Added HTTPS support.
  15418. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  15419. for SocketCore.
  15420. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  15421. size is wrong
  15422. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  15423. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  15424. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  15425. * Release 0.1.0