ChangeLog 615 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712
  1. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  2. Removed --retry-wait option since the current architecture doesn't
  3. allow sleep for particular URI.
  4. * src/AbstractCommand.cc
  5. * src/OptionHandlerFactory.cc
  6. * src/download_helper.cc
  7. * src/prefs.cc
  8. * src/prefs.h
  9. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  10. Removed Retry-After header support. Since the current architecture
  11. doesn't allow sleep for particular URI.
  12. * src/HttpSkipResponseCommand.cc
  13. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  14. Updated the help message for --daemon option.
  15. * doc/aria2c.1.txt
  16. * src/usage_text.h
  17. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  18. Added our own daemon() function for systems which desn't have
  19. daemon(3).
  20. * configure.ac
  21. * src/Makefile.am
  22. * src/daemon.cc
  23. * src/daemon.h
  24. * src/option_processing.cc
  25. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  26. Simplified File::getCurrentDir()
  27. * src/File.cc
  28. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  29. Use exit() instead of _exit
  30. * src/RequestGroupMan.cc
  31. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  32. Replaced "CATEGORY" with "TAGS".
  33. * src/usage_text.h
  34. * doc/aria2c.1.txt
  35. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  36. Updated the help message for --help option.
  37. * src/usage_text.h
  38. * doc/aria2c.1.txt
  39. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  40. Updated man page for added help tags.
  41. * doc/aria2c.1.txt
  42. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  43. Added help category #file. Added #file tag to the options related
  44. to downloaded file.
  45. * src/OptionHandlerFactory.cc
  46. * src/help_tags.h
  47. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  48. Added help categories: #cookie and #hook. Added #https tag to
  49. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  50. * src/OptionHandlerFactory.cc
  51. * src/help_tags.h
  52. 2009-09-16 Tatsuhiro Tsujikawa <[email protected]>
  53. Made MSG_NOT_FILE translatable.
  54. * src/message.h
  55. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  56. Updated man page for --help option.
  57. * doc/aria2c.1.txt
  58. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  59. Updated doc.
  60. * src/XmlRpcMethod.h
  61. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  62. Help category now starts with "#" to distinguish a category from
  63. keyword search. For example, "http" categroy is now "#http". You
  64. can type "--help=#http" to get explanation of options related to
  65. http. If '#' is omitted, then the argument is treated as a keyword
  66. and aria2 searches options whose name includes the keyword and
  67. print matched ones. For example, "--help=http" will show options
  68. whose name includes "http".
  69. * src/OptionHandlerFactory.cc
  70. * src/help_tags.h
  71. * src/usage_text.h
  72. * src/version_usage.cc
  73. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  74. Documented missing experimental tag and newly added xml-rpc tag in
  75. man page.
  76. * doc/aria2c.1.txt
  77. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  78. Added xml-rpc help tag. Tagged xml-rpc related options with
  79. xml-rpc tag.
  80. * src/OptionHandlerFactory.cc
  81. * src/help_tags.h
  82. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  83. Updated message when a path is not a file. Updated common message
  84. for wrong option.
  85. * src/OptionHandlerException.cc
  86. * src/message.h
  87. 2009-09-10 Tatsuhiro Tsujikawa <[email protected]>
  88. Use File::isFile() instead of File::exists(). Updated message when
  89. a path is not a file.
  90. * src/OptionHandlerImpl.cc
  91. * src/message.h
  92. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  93. Fixed the bug that server performence profile is not updated when
  94. aria2c was terminated by emergency shutdown.
  95. * src/TrackerWatcherCommand.cc
  96. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  97. Use LocalFilePathOptionHandler for -T and -M option.
  98. Updated message of MSG_FILE_NOT_EXIST.
  99. * src/OptionHandlerFactory.cc
  100. * src/message.h
  101. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  102. Added LocalFilePathOptionHandler which check whether the specified
  103. file path does exist or not.
  104. * src/OptionHandlerImpl.cc
  105. * src/message.h
  106. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  107. Updated wiki page URI.
  108. * README
  109. * doc/aria2c.1.txt
  110. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  111. Added README.txt for xmlrpc directory.
  112. * doc/Makefile.am
  113. * doc/xmlrpc/README.txt
  114. 2009-09-06 Tatsuhiro Tsujikawa <[email protected]>
  115. Bump up version number to 1.6.0.
  116. * configure.ac
  117. 2009-09-01 Tatsuhiro Tsujikawa <[email protected]>
  118. Added XML-RPC client scripts written in ruby.
  119. * doc/Makefile.am
  120. * doc/xmlrpc/aria2mon
  121. * doc/xmlrpc/aria2rpc
  122. 2009-08-31 Tatsuhiro Tsujikawa <[email protected]>
  123. Added support for IPv6 literal address in URI. Now aria2 can
  124. handle URI such as http://[::1]/
  125. * src/HttpRequest.cc
  126. * src/HttpRequest.h
  127. * src/Request.cc
  128. * src/Request.h
  129. * test/HttpRequestTest.cc
  130. * test/OptionHandlerTest.cc
  131. * test/RequestTest.cc
  132. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  133. Fixed the bug that HTTP request header for XML-RPC request is not
  134. parsed properly.
  135. * src/HttpHeader.cc
  136. * src/HttpHeaderProcessor.cc
  137. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  138. Fixed the bug that XML-RPC authorization might be done before HTTP
  139. request header is fully received.
  140. * src/HttpServerCommand.cc
  141. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  142. Documented --xml-rpc-listen-all option in man page.
  143. * doc/aria2c.1.txt
  144. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  145. Added --xml-rpc-listen-all option. If true is given to this
  146. option, aria2 listens incoming XML-RPC requests on all network
  147. interfaces. If false is given, listens only on local loopback
  148. interface. The default value is false.
  149. * src/HttpListenCommand.cc
  150. * src/OptionHandlerFactory.cc
  151. * src/SocketCore.cc
  152. * src/SocketCore.h
  153. * src/prefs.cc
  154. * src/prefs.h
  155. * src/usage_text.h
  156. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  157. * Release 1.5.2
  158. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  159. Updated Ukrainian and Russian translations. Thanks to all
  160. translators.
  161. * po/ru.po
  162. * po/uk.po
  163. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  164. Bump up version number to 1.5.2
  165. * configure.ac
  166. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  167. Get comment, comment.utf-8, created by and creation date from
  168. .torrent file and print them in -S output.
  169. * src/bittorrent_helper.cc
  170. * src/bittorrent_helper.h
  171. * test/BittorrentHelperTest.cc
  172. * test/test.torrent
  173. * test/utf8.torrent
  174. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  175. Show exact file size along in -S option output.
  176. * src/Util.h
  177. * src/bittorrent_helper.cc
  178. * test/UtilTest.cc
  179. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  180. Avoided unnecessary memory allocation in
  181. BitfieldMan::getCompletedLength().
  182. * src/BitfieldMan.cc
  183. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  184. Fixed the bug that download fails if
  185. SocketCore::establishConnection() throws exception and aria2
  186. doesn't try another address.
  187. * src/AbstractCommand.cc
  188. * src/InitiateConnectionCommand.cc
  189. * src/message.h
  190. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  191. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  192. detected properly.
  193. * m4/sqlite3.m4
  194. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  195. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  196. because it causes compile error if PARAMS macro is defined.
  197. * src/XmlRpcElements.cc
  198. * src/XmlRpcElements.h
  199. * src/XmlRpcRequestParserStateImpl.cc
  200. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  201. * Release 1.5.1
  202. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  203. Bump up version number to 1.5.1
  204. * configure.ac
  205. 2009-07-25 Tatsuhiro Tsujikawa <[email protected]>
  206. Fixed compile error without BitTorrent support
  207. * src/DefaultBtProgressInfoFile.cc
  208. * src/DownloadEngine.cc
  209. * src/DownloadEngine.h
  210. 2009-07-24 Tatsuhiro Tsujikawa <[email protected]>
  211. Added missing '=' in Download Results
  212. * src/RequestGroupMan.cc
  213. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  214. Fixed compiler warning
  215. * src/DefaultBtProgressInfoFile.cc
  216. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  217. Fixed compiler warning on 32bit systems.
  218. * src/DownloadCommand.cc
  219. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  220. Call flush from ServerStatMan::save()
  221. * src/ServerStatMan.cc
  222. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  223. Check stream status after file is opened.
  224. * src/CookieStorage.cc
  225. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  226. Rewritten Signature::save()
  227. * src/Signature.cc
  228. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  229. Rewritten RequestGroupMan::saveServerStat()
  230. * src/RequestGroupMan.cc
  231. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  232. Rewritten stream error handling
  233. * src/DHTAutoSaveCommand.cc
  234. * src/DHTRoutingTableDeserializer.cc
  235. * src/DHTRoutingTableSerializer.cc
  236. * src/DHTSetup.cc
  237. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  238. Check stream status after file is opened.
  239. * src/DefaultBtProgressInfoFile.cc
  240. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  241. Rewritten stream error handling
  242. * src/DefaultBtProgressInfoFile.cc
  243. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  244. Make sure that stream is closed before renaming file. Unit test
  245. fails on mingw32 in the previous implementation.
  246. * src/CookieStorage.cc
  247. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  248. Fixed the unit test error without sqlite3
  249. * test/CookieStorageTest.cc
  250. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  251. Fixed the undefined reference error
  252. * test/HttpResponseTest.cc
  253. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  254. * Release 1.5.0
  255. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  256. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  257. Ukrainian translations. Thanks to all translators.
  258. * po/ru.po
  259. * po/it.po
  260. * po/da.po
  261. * po/bg.po
  262. * po/ja.po
  263. * po/uk.po
  264. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  265. Added missing src/Logger.cc
  266. * src/Logger.cc
  267. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  268. Rewritten Logger to avoiding constly virtual call.
  269. * src/LogFactory.cc
  270. * src/LogFactory.h
  271. * src/Logger.h
  272. * src/Makefile.am
  273. * src/Makefile.in
  274. * src/NullLogger.h: Removed.
  275. * src/SimpleLogger.cc
  276. * src/SimpleLogger.h
  277. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  278. Updated doc
  279. * src/main.cc
  280. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  281. Updated debug log message
  282. * src/AbstractCommand.cc
  283. * src/message.h
  284. 2009-07-16 Tatsuhiro Tsujikawa <[email protected]>
  285. Avoid to create zombie process when commands specified in
  286. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  287. X and NetBSD.
  288. * src/main.cc
  289. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  290. Fixed typo
  291. * src/usage_text.h
  292. * doc/aria2c.1.txt
  293. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  294. Documented 'errorCode' of tellStatus in man page.
  295. * doc/aria2c.1.txt
  296. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  297. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  298. This key is only available for stopped/completed downloads and its
  299. value is the error code defined in EXIT STATUS in man page.
  300. * src/XmlRpcMethodImpl.cc
  301. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  302. Fixed the bug that session download length is not updated when
  303. PeerStat is not fastest one.
  304. * src/SegmentMan.cc
  305. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  306. Updated doc.
  307. * doc/aria2c.1.txt
  308. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  309. Updated doc.
  310. * src/AbstractCommand.cc
  311. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  312. Handle the case when DownloadContext has no FileEntry.
  313. * src/XmlRpcMethodImpl.cc
  314. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  315. Handle the situation where struct option.name is char *.
  316. * configure.ac
  317. * src/OptionParser.cc
  318. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  319. Code cleanup
  320. * src/AbstractCommand.cc
  321. * src/DownloadCommand.cc
  322. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  323. Use option of each download to create AuthConfig instead of global
  324. option.
  325. * src/AuthConfigFactory.cc
  326. * src/AuthConfigFactory.h
  327. * src/FtpNegotiationCommand.cc
  328. * src/HttpRequest.cc
  329. * src/HttpRequest.h
  330. * src/HttpRequestCommand.cc
  331. * src/HttpSkipResponseCommand.cc
  332. * src/MultiUrlRequestInfo.cc
  333. * test/AuthConfigFactoryTest.cc
  334. * test/FtpConnectionTest.cc
  335. * test/HttpRequestTest.cc
  336. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  337. Don't call prepareForRetry(1) if all segments are ignored in
  338. SegmentMan.
  339. * src/AbstractCommand.cc
  340. * src/BitfieldMan.cc
  341. * src/BitfieldMan.h
  342. * src/SegmentMan.cc
  343. * src/SegmentMan.h
  344. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  345. Removed FileEntry::getAssociatedUris()
  346. * src/FileEntry.h
  347. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  348. Updated doc: TODO1.5 -> TODO
  349. * src/FileEntry.cc
  350. * src/HttpResponseCommand.cc
  351. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  352. Added assertion fileEntries.size() == 1 if BitTorrent is not
  353. involved.
  354. * src/RequestGroup.cc
  355. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  356. Eliminated duplicated filterBitfield initialization code.
  357. * src/BitfieldMan.cc
  358. * src/BitfieldMan.h
  359. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  360. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  361. relatively naive approach, though). For DownloadFailureException,
  362. we handle the case when req is null properly.
  363. * src/AbstractCommand.cc
  364. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  365. Added function returning suffix of control file to
  366. DefaultBtProgressInfoFile.
  367. * src/DefaultBtProgressInfoFile.cc
  368. * src/DefaultBtProgressInfoFile.h
  369. * src/RequestGroup.cc
  370. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  371. Documented getVersion in man page.
  372. * doc/aria2c.1.txt
  373. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  374. Documented type of offset and num for tellWaiting xml-rpc method.
  375. * doc/aria2c.1.txt
  376. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  377. Implemented getVersion xml-rpc method. This method returns struct
  378. which has 2 key-value pairs: "version" key is associated to the
  379. version of aria2, such as "1.5.0". "enabledFeatures" key is
  380. associated to the list of enabled features, such as "Async DNS",
  381. "BitTorrent".
  382. * src/FeatureConfig.h
  383. * src/XmlRpcMethodFactory.cc
  384. * src/XmlRpcMethodImpl.cc
  385. * src/XmlRpcMethodImpl.h
  386. * test/XmlRpcMethodTest.cc
  387. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  388. Removed TLS1.1 protocol support when aria2 is built with gnutls
  389. for compatibility issue.
  390. * src/SocketCore.cc
  391. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  392. Fixed compile error with openSSL
  393. * src/bittorrent_helper.cc
  394. * src/messageDigest.h
  395. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  396. Removed bad code: setting certificate type priority to key
  397. exchange priority.
  398. * src/SocketCore.cc
  399. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  400. Disconnect seeder if client is also in seed state.
  401. * src/BtBitfieldMessage.cc
  402. * src/BtHaveAllMessage.cc
  403. * src/BtHaveMessage.cc
  404. * src/message.h
  405. * test/BtBitfieldMessageTest.cc
  406. * test/BtHaveAllMessageTest.cc
  407. * test/BtHaveMessageTest.cc
  408. * test/MockPieceStorage.h
  409. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  410. Keep CreateRequestCommand in queue when no segment is available so
  411. that they can pick up pieces which slow BitTorrent peers are
  412. downloading.
  413. * src/AbstractCommand.cc
  414. * src/CreateRequestCommand.cc
  415. * src/CreateRequestCommand.h
  416. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  417. --bt-stop-timeout now only checks download speed.
  418. * src/BtStopDownloadCommand.cc
  419. * src/BtStopDownloadCommand.h
  420. * src/BtSetup.cc
  421. * src/usage_text.h
  422. * doc/aria2c.1.txt
  423. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  424. Fixed compile error regarding BUFSIZE.
  425. * src/DownloadCommand.cc
  426. * src/DownloadCommand.h
  427. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  428. Documented tellWaiting xml-rpc method in man page.
  429. * doc/aria2c.1.txt
  430. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  431. Bump up version number to 1.5.0
  432. * configure.ac
  433. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  434. Removed resolved TODO1.5
  435. * src/AbstractCommand.cc
  436. * src/DownloadCommand.cc
  437. * src/RequestGroup.cc
  438. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  439. Release pooled and in-flight Request objectsand URIResult objects
  440. in FileEntry after download completed.
  441. * src/DownloadContext.cc
  442. * src/DownloadContext.h
  443. * src/FileEntry.cc
  444. * src/FileEntry.h
  445. * src/RequestGroup.cc
  446. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  447. Set manual and source attribute in aria2c.1.txt
  448. * doc/aria2c.1.txt
  449. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  450. Documented that the default value of --use-head is 'false' in man
  451. page.
  452. * doc/aria2c.1.txt
  453. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  454. Added bt-stop-timeout option to -i list.
  455. * doc/aria2c.1.txt
  456. * src/download_helper.cc
  457. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  458. Fixed typo
  459. * doc/aria2c.1.txt
  460. * src/usage_text.h
  461. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  462. Removed peer-id-prefix option from -i list.
  463. * doc/aria2c.1.txt
  464. * src/download_helper.cc
  465. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  466. Fixed typo
  467. * doc/aria2c.1.txt
  468. * src/usage_text.h
  469. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  470. Documented --bt-stop-timeout option in man page.
  471. * doc/aria2c.1.txt
  472. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  473. Updated README regarding multi-file torrent web-seeding.
  474. * doc/README.txt
  475. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  476. Updated man page regarding multi-file torrent web-seeding.
  477. * doc/aria2c.1.txt
  478. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  479. Updated doc
  480. * src/version_usage.cc
  481. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  482. Winsock select() doesn't work if no socket is in FD_SET. To
  483. overcome this problem, a dummy socket is added to FD_SET and it is
  484. given to select().
  485. * src/SelectEventPoll.cc
  486. * src/SelectEventPoll.h
  487. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  488. Disabled --use-head option by default because --use-head=true
  489. causes problems on some web sites.
  490. * src/OptionHandlerFactory.cc
  491. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  492. Print URL List in -S option for torrent.
  493. * src/bittorrent_helper.cc
  494. * src/bittorrent_helper.h
  495. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  496. Allocate buffer in ctor of DownloadCommand.
  497. * src/DownloadCommand.cc
  498. * src/DownloadCommand.h
  499. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  500. Removed DiskAdaptor::onDownloadComplete()
  501. * src/DirectDiskAdaptor.cc
  502. * src/DirectDiskAdaptor.h
  503. * src/DiskAdaptor.h
  504. * src/MultiDiskAdaptor.cc
  505. * src/MultiDiskAdaptor.h
  506. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  507. Committed missing BtStopDownloadCommand.{cc,h}
  508. * src/BtStopDownloadCommand.cc
  509. * src/BtStopDownloadCommand.h
  510. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  511. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  512. download if the download speed is 0 and the number of seeder is 0
  513. in consecutive SEC seconds. By default, this function is disabled.
  514. * src/BtSetup.cc
  515. * src/Makefile.am
  516. * src/OptionHandlerFactory.cc
  517. * src/prefs.cc
  518. * src/prefs.h
  519. * src/usage_text.h
  520. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  521. Removed the call to DiskAdaptor::onDownloadComplete() from
  522. BtCheckIntegrityEntry and DefaultPieceStorage.
  523. * src/BtCheckIntegrityEntry.cc
  524. * src/DefaultPieceStorage.cc
  525. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  526. Commented out throw statements when number of piece is 0 to
  527. download 0 length torrent.
  528. * src/bittorrent_helper.cc
  529. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  530. Call RequestGroup::createNextCommandWithAdj() from
  531. BtFileAllocationEntry if at least one FileEntry has URI. The
  532. static function hasAssociatedUri in RequestGroup.cc is renamed as
  533. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  534. * src/BtFileAllocationEntry.cc
  535. * src/FileEntry.h
  536. * src/RequestGroup.cc
  537. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  538. Generate peer ID after SimpleRandomizer is initialized.
  539. * src/main.cc
  540. * src/option_processing.cc
  541. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  542. Removed unused method argument.
  543. * src/CreateRequestCommand.cc
  544. * src/RequestGroup.cc
  545. * src/RequestGroup.h
  546. * src/RequestGroupMan.cc
  547. * src/TrackerWatcherCommand.cc
  548. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  549. Made URI reusing function work.
  550. * src/CreateRequestCommand.cc
  551. * src/FileEntry.cc
  552. * src/FileEntry.h
  553. * test/FileEntryTest.cc
  554. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  555. Add formerly fastest PeerStat's sessionDownloadLength to new
  556. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  557. bytes in a session.
  558. * src/PeerStat.cc
  559. * src/SegmentMan.cc
  560. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  561. If pipelining is enabled, we can always pool socket.
  562. * src/HttpDownloadCommand.cc
  563. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  564. In a single file download, file size becomes known just after
  565. downloading, set total length to FileEntry object when download
  566. completed.
  567. * src/DownloadCommand.cc
  568. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  569. Use std::vector::reserve() for fileEntries and pieceHashes in
  570. bittorrent_helper
  571. * src/bittorrent_helper.cc
  572. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  573. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  574. Removed hidden option PREF_RESET_URI.
  575. * src/AbstractCommand.cc
  576. * src/OptionHandlerFactory.cc
  577. * src/prefs.cc
  578. * src/prefs.h
  579. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  580. Removed unused variable/function.
  581. * src/PeerStat.h
  582. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  583. Show first URL in Download Results if file path is not available.
  584. * src/FileEntry.h
  585. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  586. Throw exception if file path doesn't exist in FTP URL.
  587. * src/InitiateConnectionCommandFactory.cc
  588. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  589. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  590. * src/BitfieldMan.cc
  591. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  592. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  593. of PeerStat in SegmentMan. peerStats is used for calculating
  594. download speed. Therefore all active PeerStats should be in
  595. there. Another one is _fastestPeerStats and it only contains
  596. fastest PeerStat for each hostname/protocol pair. They are used
  597. for updating ServerStat.
  598. * src/DownloadCommand.cc
  599. * src/Request.h
  600. * src/RequestGroupMan.cc
  601. * src/SegmentMan.cc
  602. * src/SegmentMan.h
  603. * test/SegmentManTest.cc
  604. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  605. Try all available addresses returned by DNS until it gets
  606. connected in HTTP(S)/FTP download
  607. * src/AbstractCommand.cc
  608. * src/AbstractCommand.h
  609. * src/AbstractProxyRequestCommand.cc
  610. * src/AbstractProxyRequestCommand.h
  611. * src/DNSCache.h
  612. * src/DownloadEngine.cc
  613. * src/DownloadEngine.h
  614. * src/FtpInitiateConnectionCommand.cc
  615. * src/FtpInitiateConnectionCommand.h
  616. * src/FtpNegotiationCommand.cc
  617. * src/FtpNegotiationCommand.h
  618. * src/HttpInitiateConnectionCommand.cc
  619. * src/HttpInitiateConnectionCommand.h
  620. * src/HttpRequestCommand.cc
  621. * src/HttpRequestCommand.h
  622. * src/InitiateConnectionCommand.cc
  623. * src/InitiateConnectionCommand.h
  624. * test/DNSCacheTest.cc
  625. * test/Makefile.am
  626. * test/SimpleDNSCacheTest.cc
  627. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  628. Updated doc
  629. * src/download_helper.cc
  630. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  631. Refactored fieldMan ctor.
  632. * src/BitfieldMan.cc
  633. * src/BitfieldMan.h
  634. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  635. Don't print "No files to download." message if -S is given.
  636. * src/main.cc
  637. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  638. Set referer and method to newly created Request object.
  639. * src/CreateRequestCommand.cc
  640. * src/FileEntry.cc
  641. * src/FileEntry.h
  642. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  643. Removed ctor of AbstractCommand which doesn't take FileEntry.
  644. * src/AbstractCommand.cc
  645. * src/AbstractCommand.h
  646. * src/CreateRequestCommand.cc
  647. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  648. Get proxy download working
  649. * src/AbstractProxyRequestCommand.cc
  650. * src/AbstractProxyRequestCommand.h
  651. * src/AbstractProxyResponseCommand.cc
  652. * src/AbstractProxyResponseCommand.h
  653. * src/FtpInitiateConnectionCommand.cc
  654. * src/FtpTunnelRequestCommand.cc
  655. * src/FtpTunnelRequestCommand.h
  656. * src/FtpTunnelResponseCommand.cc
  657. * src/FtpTunnelResponseCommand.h
  658. * src/HttpInitiateConnectionCommand.cc
  659. * src/HttpProxyRequestCommand.cc
  660. * src/HttpProxyRequestCommand.h
  661. * src/HttpProxyResponseCommand.cc
  662. * src/HttpProxyResponseCommand.h
  663. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  664. Use SegmentMan::getSegment(cuid) for single file download.
  665. * src/AbstractCommand.cc
  666. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  667. Fixed bufSize calculation
  668. * src/DownloadCommand.cc
  669. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  670. Don't append "/" if base URI ends with "/".
  671. * src/bittorrent_helper.cc
  672. * test/url-list-multiFile.torrent
  673. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  674. HTTP pipelining is now working. Fixed Segmention fault in
  675. BitfieldMan's copy ctor.
  676. * src/AbstractCommand.cc
  677. * src/BitfieldMan.cc
  678. * src/BitfieldMan.h
  679. * src/DownloadCommand.cc
  680. * src/HttpDownloadCommand.cc
  681. * src/HttpRequest.cc
  682. * src/SegmentMan.cc
  683. * src/SegmentMan.h
  684. * test/BitfieldManTest.cc
  685. * test/SegmentManTest.cc
  686. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  687. Removed ServerHost. Same functionality is implemented using
  688. FileEntry's in-flight Request objects.
  689. * src/AbstractCommand.cc
  690. * src/BtDependency.cc
  691. * src/CreateRequestCommand.cc
  692. * src/FileEntry.cc
  693. * src/FileEntry.h
  694. * src/FtpNegotiationCommand.cc
  695. * src/HttpResponseCommand.cc
  696. * src/Makefile.am
  697. * src/Metalink2RequestGroup.cc
  698. * src/RequestGroup.cc
  699. * src/RequestGroup.h
  700. * src/ServerHost.cc: Removed
  701. * src/ServerHost.h: Removed
  702. * test/BtDependencyTest.cc
  703. * test/FileEntryTest.cc
  704. * test/RequestGroupTest.cc
  705. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  706. Rewritten PeerStat handling. In the previous implementation,
  707. faster command tries to find slower command. In this new
  708. implementation, slower command tries to find faster command.
  709. PeerStat is now created in each HTTP/FTP request to get download
  710. rate correctly. If the download range is small, the download rate
  711. tends to small and this will occur at the later stage of download.
  712. * src/AbstractCommand.cc
  713. * src/DownloadCommand.cc
  714. * src/FileEntry.cc
  715. * src/FileEntry.h
  716. * src/Request.cc
  717. * src/Request.h
  718. * src/RequestGroup.h
  719. * src/RequestGroupMan.cc
  720. * src/SegmentMan.cc
  721. * src/SegmentMan.h
  722. * test/SegmentManTest.cc
  723. 2009-06-29 Tatsuhiro Tsujikawa <[email protected]>
  724. Removed _uris from RequestGroup. All functions that refer to _uris
  725. were moved to FileEntry. Exit status code are now defined in
  726. DownloadResultCode.h.
  727. * src/AbstractCommand.cc
  728. * src/AdaptiveURISelector.cc
  729. * src/AdaptiveURISelector.h
  730. * src/AutoSaveCommand.cc
  731. * src/BtPostDownloadHandler.cc
  732. * src/CheckIntegrityDispatcherCommand.cc
  733. * src/CookieStorage.cc
  734. * src/DHTAutoSaveCommand.cc
  735. * src/DHTBucketRefreshCommand.cc
  736. * src/DHTEntryPointNameResolveCommand.cc
  737. * src/DHTInteractionCommand.cc
  738. * src/DHTPeerAnnounceCommand.cc
  739. * src/DHTTokenUpdateCommand.cc
  740. * src/DlAbortEx.h
  741. * src/DlRetryEx.h
  742. * src/DownloadCommand.cc
  743. * src/DownloadContext.h
  744. * src/DownloadFailureException.h
  745. * src/DownloadResult.h
  746. * src/DownloadResultCode.h
  747. * src/FeedbackURISelector.cc
  748. * src/FeedbackURISelector.h
  749. * src/FileEntry.cc
  750. * src/FileEntry.h
  751. * src/FtpNegotiationCommand.cc
  752. * src/HttpListenCommand.cc
  753. * src/HttpResponseCommand.cc
  754. * src/HttpServerResponseCommand.cc
  755. * src/HttpSkipResponseCommand.cc
  756. * src/InOrderURISelector.cc
  757. * src/InOrderURISelector.h
  758. * src/Makefile.am
  759. * src/Makefile.in
  760. * src/Metalink2RequestGroup.cc
  761. * src/MultiUrlRequestInfo.cc
  762. * src/MultiUrlRequestInfo.h
  763. * src/OptionHandlerFactory.cc
  764. * src/PeerListenCommand.cc
  765. * src/RecoverableException.h
  766. * src/RequestGroup.cc
  767. * src/RequestGroup.h
  768. * src/RequestGroupMan.cc
  769. * src/RequestGroupMan.h
  770. * src/TimedHaltCommand.cc
  771. * src/TrackerWatcherCommand.cc
  772. * src/URIResult.cc
  773. * src/URIResult.h
  774. * src/URISelector.h
  775. * src/XmlRpcMethodImpl.cc
  776. * src/bittorrent_helper.cc
  777. * src/bittorrent_helper.h
  778. * src/download_helper.cc
  779. * src/main.cc
  780. * src/option_processing.cc
  781. * test/BtDependencyTest.cc
  782. * test/BtPostDownloadHandlerTest.cc
  783. * test/CookieStorageTest.cc
  784. * test/DefaultBtMessageDispatcherTest.cc
  785. * test/DownloadHandlerFactoryTest.cc
  786. * test/DownloadHelperTest.cc
  787. * test/FeedbackURISelectorTest.cc
  788. * test/FileEntryTest.cc
  789. * test/InOrderURISelectorTest.cc
  790. * test/Metalink2RequestGroupTest.cc
  791. * test/MetalinkPostDownloadHandlerTest.cc
  792. * test/RequestGroupManTest.cc
  793. * test/RequestGroupTest.cc
  794. * test/XmlRpcMethodTest.cc
  795. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  796. Removed MockBtContext.h
  797. * test/Makefile.am
  798. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  799. Removed _currentRequest from StreamCheckIntegrityEntry and
  800. StreamFileAllocationEntry.
  801. * src/AbstractCommand.cc
  802. * src/HttpResponseCommand.cc
  803. * src/RequestGroup.cc
  804. * src/StreamCheckIntegrityEntry.cc
  805. * src/StreamCheckIntegrityEntry.h
  806. * src/StreamFileAllocationEntry.cc
  807. * src/StreamFileAllocationEntry.h
  808. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  809. Rewritten DownloadContext and removed SingleFileDownloadContext
  810. and BtContext and its derived classes. BitTorrent specific
  811. attributes are now set by DownloadContext::setAttribute() with key
  812. bittorrent::BITTORRENT.
  813. * src/AbstractBtMessage.cc
  814. * src/AbstractBtMessage.h
  815. * src/AbstractCommand.cc
  816. * src/AbstractCommand.h
  817. * src/AbstractProxyRequestCommand.cc
  818. * src/AbstractProxyResponseCommand.cc
  819. * src/ActivePeerConnectionCommand.cc
  820. * src/ActivePeerConnectionCommand.h
  821. * src/AnnounceList.cc
  822. * src/BtCheckIntegrityEntry.cc
  823. * src/BtConstants.h
  824. * src/BtContext.h: Removed
  825. * src/BtDependency.cc
  826. * src/BtExtendedMessage.cc
  827. * src/BtPieceMessage.cc
  828. * src/BtPieceMessage.h
  829. * src/BtPostDownloadHandler.cc
  830. * src/BtRegistry.cc
  831. * src/BtRegistry.h
  832. * src/BtSetup.cc
  833. * src/CheckIntegrityCommand.cc
  834. * src/CheckIntegrityEntry.cc
  835. * src/ChecksumCheckIntegrityEntry.cc
  836. * src/ConsoleStatCalc.cc
  837. * src/ContentTypeRequestGroupCriteria.cc
  838. * src/DHTGetPeersCommand.cc
  839. * src/DHTGetPeersCommand.h
  840. * src/DHTPeerLookupTask.cc
  841. * src/DHTPeerLookupTask.h
  842. * src/DHTTaskFactory.h
  843. * src/DHTTaskFactoryImpl.cc
  844. * src/DHTTaskFactoryImpl.h
  845. * src/DefaultBtAnnounce.cc
  846. * src/DefaultBtAnnounce.h
  847. * src/DefaultBtContext.cc: Removed
  848. * src/DefaultBtContext.h: Removed
  849. * src/DefaultBtInteractive.cc
  850. * src/DefaultBtInteractive.h
  851. * src/DefaultBtMessageDispatcher.cc
  852. * src/DefaultBtMessageDispatcher.h
  853. * src/DefaultBtMessageFactory.cc
  854. * src/DefaultBtMessageFactory.h
  855. * src/DefaultBtMessageReceiver.cc
  856. * src/DefaultBtMessageReceiver.h
  857. * src/DefaultBtProgressInfoFile.cc
  858. * src/DefaultBtRequestFactory.cc
  859. * src/DefaultBtRequestFactory.h
  860. * src/DefaultExtensionMessageFactory.cc
  861. * src/DefaultExtensionMessageFactory.h
  862. * src/DefaultPeerStorage.cc
  863. * src/DefaultPeerStorage.h
  864. * src/DefaultPieceStorage.cc
  865. * src/DefaultSegmentManFactory.cc
  866. * src/DiskAdaptor.cc
  867. * src/DiskAdaptor.h
  868. * src/DownloadContext.cc
  869. * src/DownloadContext.h
  870. * src/DownloadEngine.cc
  871. * src/DownloadEngineFactory.cc
  872. * src/DownloadHandler.cc
  873. * src/DownloadResult.h
  874. * src/FileAllocationCommand.cc
  875. * src/FileAllocationDispatcherCommand.cc
  876. * src/FileAllocationEntry.cc
  877. * src/FileEntry.h
  878. * src/FillRequestGroupCommand.cc
  879. * src/FtpDownloadCommand.cc
  880. * src/FtpFinishDownloadCommand.cc
  881. * src/FtpInitiateConnectionCommand.cc
  882. * src/FtpNegotiationCommand.cc
  883. * src/FtpTunnelRequestCommand.cc
  884. * src/FtpTunnelResponseCommand.cc
  885. * src/HandshakeExtensionMessage.cc
  886. * src/HandshakeExtensionMessage.h
  887. * src/HaveEraseCommand.cc
  888. * src/HttpDownloadCommand.cc
  889. * src/HttpInitiateConnectionCommand.cc
  890. * src/HttpProxyRequestCommand.cc
  891. * src/HttpProxyResponseCommand.cc
  892. * src/HttpRequest.cc
  893. * src/HttpRequest.h
  894. * src/HttpRequestCommand.cc
  895. * src/HttpResponseCommand.cc
  896. * src/HttpServerBodyCommand.cc
  897. * src/HttpServerCommand.cc
  898. * src/HttpSkipResponseCommand.cc
  899. * src/InitiateConnectionCommandFactory.cc
  900. * src/InitiatorMSEHandshakeCommand.cc
  901. * src/InitiatorMSEHandshakeCommand.h
  902. * src/IteratableChecksumValidator.cc
  903. * src/IteratableChecksumValidator.h
  904. * src/IteratableChunkChecksumValidator.cc
  905. * src/MSEHandshake.cc
  906. * src/MSEHandshake.h
  907. * src/Makefile.am
  908. * src/Makefile.in
  909. * src/Metalink2RequestGroup.cc
  910. * src/MetalinkPostDownloadHandler.cc
  911. * src/MultiDiskAdaptor.cc
  912. * src/MultiDiskAdaptor.h
  913. * src/MultiFileAllocationIterator.cc
  914. * src/MultiUrlRequestInfo.cc
  915. * src/PeerChokeCommand.cc
  916. * src/PeerChokeCommand.h
  917. * src/PeerInitiateConnectionCommand.cc
  918. * src/PeerInitiateConnectionCommand.h
  919. * src/PeerInteractionCommand.cc
  920. * src/PeerInteractionCommand.h
  921. * src/PeerReceiveHandshakeCommand.cc
  922. * src/PieceHashCheckIntegrityEntry.cc
  923. * src/RealtimeCommand.cc
  924. * src/ReceiverMSEHandshakeCommand.cc
  925. * src/RequestGroup.cc
  926. * src/RequestGroup.h
  927. * src/RequestGroupEntry.cc
  928. * src/RequestGroupMan.cc
  929. * src/SeedCheckCommand.cc
  930. * src/SeedCheckCommand.h
  931. * src/SegmentMan.cc
  932. * src/ShareRatioSeedCriteria.h
  933. * src/SingleFileDownloadContext.cc: Removed
  934. * src/SingleFileDownloadContext.h: Removed
  935. * src/SleepCommand.cc
  936. * src/StreamCheckIntegrityEntry.cc
  937. * src/TrackerWatcherCommand.cc
  938. * src/TrackerWatcherCommand.h
  939. * src/UnknownLengthPieceStorage.cc
  940. * src/Util.cc
  941. * src/Util.h
  942. * src/XmlRpcMethodImpl.cc
  943. * src/bittorrent_helper.cc
  944. * src/bittorrent_helper.h
  945. * src/download_helper.cc
  946. * src/main.cc
  947. * src/option_processing.cc
  948. * test/BitfieldManTest.cc
  949. * test/BittorrentHelperTest.cc
  950. * test/BtCancelMessageTest.cc
  951. * test/BtChokeMessageTest.cc
  952. * test/BtDependencyTest.cc
  953. * test/BtPieceMessageTest.cc
  954. * test/BtPostDownloadHandlerTest.cc
  955. * test/BtRegistryTest.cc
  956. * test/BtRejectMessageTest.cc
  957. * test/BtRequestMessageTest.cc
  958. * test/DHTPeerAnnounceStorageTest.cc
  959. * test/DefaultBtAnnounceTest.cc
  960. * test/DefaultBtContextTest.cc: Removed
  961. * test/DefaultBtMessageDispatcherTest.cc
  962. * test/DefaultBtMessageFactoryTest.cc
  963. * test/DefaultBtProgressInfoFileTest.cc
  964. * test/DefaultBtRequestFactoryTest.cc
  965. * test/DefaultExtensionMessageFactoryTest.cc
  966. * test/DefaultPeerStorageTest.cc
  967. * test/DefaultPieceStorageTest.cc
  968. * test/DirectDiskAdaptorTest.cc
  969. * test/DownloadContextTest.cc
  970. * test/DownloadHandlerFactoryTest.cc
  971. * test/DownloadHelperTest.cc
  972. * test/HandshakeExtensionMessageTest.cc
  973. * test/HttpRequestTest.cc
  974. * test/HttpResponseTest.cc
  975. * test/IteratableChecksumValidatorTest.cc
  976. * test/IteratableChunkChecksumValidatorTest.cc
  977. * test/MSEHandshakeTest.cc
  978. * test/Makefile.am
  979. * test/Makefile.in
  980. * test/Metalink2RequestGroupTest.cc
  981. * test/MetalinkPostDownloadHandlerTest.cc
  982. * test/MockBtContext.h: Removed
  983. * test/MockDHTTaskFactory.h
  984. * test/MockDownloadContext.h: Removed
  985. * test/MockPieceStorage.h
  986. * test/MultiDiskAdaptorTest.cc
  987. * test/MultiFileAllocationIteratorTest.cc
  988. * test/RequestGroupManTest.cc
  989. * test/RequestGroupTest.cc
  990. * test/SegmentManTest.cc
  991. * test/ShareRatioSeedCriteriaTest.cc
  992. * test/SingleFileDownloadContextTest.cc: Removed
  993. * test/UtilTest.cc
  994. * test/XmlRpcMethodTest.cc
  995. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  996. Added experimental support of WEB-Seeding for multi-file torrent.
  997. Due to fundamental changes in file handling in HTTP/FTP code, many
  998. functions are not working: PeerStat, ServerHost, proxy..etc
  999. * src/AbstractCommand.cc
  1000. * src/AbstractCommand.h
  1001. * src/BitfieldMan.cc
  1002. * src/BitfieldMan.h
  1003. * src/CreateRequestCommand.cc
  1004. * src/CreateRequestCommand.h
  1005. * src/DefaultPieceStorage.cc
  1006. * src/DefaultPieceStorage.h
  1007. * src/DownloadCommand.cc
  1008. * src/DownloadCommand.h
  1009. * src/DownloadContext.cc
  1010. * src/DownloadContext.h
  1011. * src/FileEntry.cc
  1012. * src/FileEntry.h
  1013. * src/FtpDownloadCommand.cc
  1014. * src/FtpDownloadCommand.h
  1015. * src/FtpFinishDownloadCommand.cc
  1016. * src/FtpFinishDownloadCommand.h
  1017. * src/FtpInitiateConnectionCommand.cc
  1018. * src/FtpInitiateConnectionCommand.h
  1019. * src/FtpNegotiationCommand.cc
  1020. * src/FtpNegotiationCommand.h
  1021. * src/FtpTunnelResponseCommand.cc
  1022. * src/HttpDownloadCommand.cc
  1023. * src/HttpDownloadCommand.h
  1024. * src/HttpInitiateConnectionCommand.cc
  1025. * src/HttpInitiateConnectionCommand.h
  1026. * src/HttpProxyResponseCommand.cc
  1027. * src/HttpRequest.cc
  1028. * src/HttpRequest.h
  1029. * src/HttpRequestCommand.cc
  1030. * src/HttpRequestCommand.h
  1031. * src/HttpResponseCommand.cc
  1032. * src/HttpResponseCommand.h
  1033. * src/HttpSkipResponseCommand.cc
  1034. * src/HttpSkipResponseCommand.h
  1035. * src/InitiateConnectionCommand.cc
  1036. * src/InitiateConnectionCommand.h
  1037. * src/InitiateConnectionCommandFactory.cc
  1038. * src/InitiateConnectionCommandFactory.h
  1039. * src/Makefile.am
  1040. * src/PieceStorage.h
  1041. * src/RequestGroup.cc
  1042. * src/RequestGroup.h
  1043. * src/RequestGroupMan.cc
  1044. * src/SegmentMan.cc
  1045. * src/SegmentMan.h
  1046. * src/SingleFileDownloadContext.h
  1047. * src/StreamFileAllocationEntry.cc
  1048. * src/TrackerWatcherCommand.cc
  1049. * src/UnknownLengthPieceStorage.cc
  1050. * src/UnknownLengthPieceStorage.h
  1051. * src/array_fun.h
  1052. * src/bitfield.h
  1053. * src/download_helper.cc
  1054. * test/DownloadContextTest.cc
  1055. * test/Makefile.am
  1056. * test/MockDownloadContext.h
  1057. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  1058. Added tellWaiting XML-RPC method.
  1059. * src/SingleFileDownloadContext.cc
  1060. * src/XmlRpcMethodFactory.cc
  1061. * src/XmlRpcMethodImpl.cc
  1062. * src/XmlRpcMethodImpl.h
  1063. * test/XmlRpcMethodTest.cc
  1064. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  1065. Updated CookieStorageTest
  1066. * test/CookieStorageTest.cc
  1067. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1068. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1069. handle excepion inside these functions.
  1070. * src/LibgnutlsTLSContext.cc
  1071. * src/LibgnutlsTLSContext.h
  1072. * src/LibsslTLSContext.cc
  1073. * src/LibsslTLSContext.h
  1074. * src/MultiUrlRequestInfo.cc
  1075. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1076. Added comment
  1077. * src/RequestGroup.cc
  1078. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1079. In CookieStorage::load() and saveNsFormat(), handle exception
  1080. inside the functions. When saving Cookies, first write temporary
  1081. file and after successful writes, then renames it to final
  1082. destination.
  1083. * src/CookieStorage.cc
  1084. * src/CookieStorage.h
  1085. * src/MultiUrlRequestInfo.cc
  1086. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1087. The default value of --dir option is the absolute path to the
  1088. current directory. If getcwd() is failed, then it is ".", which is
  1089. the same value with old implementation. This change is necessary
  1090. because after daemon() call, the current working directory is
  1091. changed to /.
  1092. * src/File.cc
  1093. * src/File.h
  1094. * src/OptionHandlerFactory.cc
  1095. * src/option_processing.cc
  1096. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1097. Call daemon() with arguments(0,0), which means daemon() changes
  1098. current working directory to / and redirects stdin, stdout and
  1099. stderr to /dev/null.
  1100. * src/option_processing.cc
  1101. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1102. Small performance optimizations.
  1103. * src/RequestGroupMan.cc
  1104. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  1105. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1106. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1107. * src/RequestGroupMan.cc
  1108. * src/RequestGroupMan.h
  1109. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  1110. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1111. setNoWiat(true) if newly created command calls
  1112. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1113. * src/HttpListenCommand.cc
  1114. * src/HttpServerBodyCommand.cc
  1115. * src/HttpServerCommand.cc
  1116. * src/HttpServerResponseCommand.cc
  1117. * src/InitiateConnectionCommand.cc
  1118. * src/RequestGroup.cc
  1119. * src/StreamFileAllocationEntry.cc
  1120. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  1121. Removed include vector
  1122. * src/BtRegistry.h
  1123. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  1124. Rewritten BtRegistry
  1125. * src/BtRegistry.cc
  1126. * src/BtRegistry.h
  1127. * src/BtSetup.cc
  1128. * src/ConsoleStatCalc.cc
  1129. * src/PeerInteractionCommand.cc
  1130. * src/PeerReceiveHandshakeCommand.cc
  1131. * src/ReceiverMSEHandshakeCommand.cc
  1132. * src/RequestGroup.cc
  1133. * src/XmlRpcMethodImpl.cc
  1134. * test/BtRegistryTest.cc
  1135. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1136. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1137. * src/DefaultBtProgressInfoFile.cc
  1138. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1139. Throw an exception if position is less than 0.
  1140. * src/XmlRpcMethodImpl.cc
  1141. * test/XmlRpcMethodTest.cc
  1142. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1143. Use writeFilePath() in ConsoleStatCalc.cc
  1144. * src/ConsoleStatCalc.cc
  1145. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1146. Receive the return value as const reference from
  1147. DownloadContext::getFileEntries().
  1148. * src/DefaultPieceStorage.cc
  1149. * src/RequestGroupMan.cc
  1150. * src/XmlRpcMethodImpl.cc
  1151. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1152. DownloadContext now has _fileEntries so that
  1153. DownloadContext::getFileEntries() can returns its const reference.
  1154. * src/DefaultBtContext.cc
  1155. * src/DefaultBtContext.h
  1156. * src/DownloadContext.cc
  1157. * src/DownloadContext.h
  1158. * src/SingleFileDownloadContext.cc
  1159. * src/SingleFileDownloadContext.h
  1160. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1161. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1162. writeFilePath() function template from RequestGroupMan.cc to
  1163. FileEntry.h
  1164. * src/FileEntry.h
  1165. * src/RequestGroupMan.cc
  1166. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1167. Documented 'position' parameter is starting from 0 in man page.
  1168. * doc/aria2c.1.txt
  1169. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  1170. Updated doc.
  1171. * src/MSEHandshake.cc
  1172. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  1173. Removed _acceptFeatures and its accessor functions from
  1174. RequestGroup since they are not used practically.
  1175. * src/HttpRequestCommand.cc
  1176. * src/RequestGroup.cc
  1177. * src/RequestGroup.h
  1178. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  1179. Removed member _maxTries from RequestGroup class to avoid
  1180. duplicate option value. Those classes who refer this variable
  1181. should use option value of PREF_MAX_TRIES directly.
  1182. * src/AbstractCommand.cc
  1183. * src/RequestGroup.cc
  1184. * src/RequestGroup.h
  1185. * src/TrackerWatcherCommand.cc
  1186. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1187. * Release 1.4.1
  1188. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1189. Fixed compiler warnings on netbsd
  1190. * src/DHTConnectionImpl.cc
  1191. * src/PeerListenCommand.cc
  1192. * src/PeerSessionResource.cc
  1193. * src/SegmentMan.cc
  1194. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1195. Updated Ukrainian translation. Thanks to all translators.
  1196. * po/uk.po
  1197. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1198. Bump up version number to 1.4.1.
  1199. * configure.ac
  1200. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1201. Added unit tests for strjoin, strconcat and strappend.
  1202. * test/a2functionalTest.cc
  1203. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1204. Rewritten strconcat and strappend using operator+ instead of
  1205. append().
  1206. * src/a2functional.h
  1207. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1208. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1209. is enabled.
  1210. * src/Makefile.am
  1211. * test/Makefile.am
  1212. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1213. Added countSeeder() function which counts seeder in the given
  1214. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1215. * src/ConsoleStatCalc.cc
  1216. * src/Peer.h
  1217. * src/XmlRpcMethodImpl.cc
  1218. * test/PeerTest.cc
  1219. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1220. Documented missing seeder in getPeers xml-rpc method.
  1221. Documented uploadLength and numSeeders.
  1222. * doc/aria2c.1.txt
  1223. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1224. Added uploadLength and numSeeders to the response of tellStatus
  1225. xml-rpc method. Assert that PeerStorage instance is not null
  1226. instead of checking if statement. It should be non-null in this
  1227. context.
  1228. * src/XmlRpcMethodImpl.cc
  1229. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1230. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1231. * src/XmlRpcResponse.cc
  1232. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1233. Avoid intermediate object during string concatenation.
  1234. * src/HttpRequest.cc
  1235. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1236. Added strjoin function template. Use it in pathJoin()
  1237. * src/Util.h
  1238. * src/a2functional.h
  1239. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1240. Avoid intermediate object during string concatenation. Replaced
  1241. post-increment unary operator with pre-increment one in for loop.
  1242. * src/AdaptiveURISelector.cc
  1243. * src/AnnounceList.cc
  1244. * src/AuthConfig.h
  1245. * src/BtBitfieldMessage.cc
  1246. * src/BtExtendedMessage.cc
  1247. * src/BtHandshakeMessage.cc
  1248. * src/BtPieceMessage.cc
  1249. * src/BtPortMessage.cc
  1250. * src/Cookie.cc
  1251. * src/DHTAnnouncePeerMessage.cc
  1252. * src/DHTAutoSaveCommand.cc
  1253. * src/DHTGetPeersReplyMessage.cc
  1254. * src/DHTNode.cc
  1255. * src/DHTQueryMessage.cc
  1256. * src/DHTResponseMessage.cc
  1257. * src/DHTUnknownMessage.cc
  1258. * src/DefaultBtAnnounce.cc
  1259. * src/DefaultBtContext.cc
  1260. * src/DefaultBtInteractive.cc
  1261. * src/DefaultBtProgressInfoFile.cc
  1262. * src/DefaultPeerStorage.cc
  1263. * src/DownloadEngine.cc
  1264. * src/FeatureConfig.cc
  1265. * src/File.cc
  1266. * src/FtpConnection.cc
  1267. * src/FtpNegotiationCommand.cc
  1268. * src/HandshakeExtensionMessage.cc
  1269. * src/HttpConnection.cc
  1270. * src/HttpRequest.cc
  1271. * src/HttpResponseCommand.cc
  1272. * src/HttpServer.cc
  1273. * src/IndexBtMessage.cc
  1274. * src/Metalink2RequestGroup.cc
  1275. * src/OptionHandlerImpl.h
  1276. * src/PStringBuildVisitor.cc
  1277. * src/Peer.cc
  1278. * src/PeerListenCommand.cc
  1279. * src/Piece.cc
  1280. * src/RangeBtMessage.cc
  1281. * src/Request.cc
  1282. * src/Request.h
  1283. * src/RequestGroup.cc
  1284. * src/RequestGroupMan.cc
  1285. * src/ServerStat.cc
  1286. * src/ServerStatMan.cc
  1287. * src/UTPexExtensionMessage.cc
  1288. * src/Util.cc
  1289. * src/a2functional.h
  1290. * src/download_helper.cc
  1291. * src/messageDigest.cc
  1292. 2009-06-04 Tatsuhiro Tsujikawa <[email protected]>
  1293. Unchoke a peer randomly at first and second choke round in seed
  1294. state.
  1295. * src/BtSeederStateChoke.cc
  1296. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1297. Added (sock_t) to quiet compiler warnings in MinGW
  1298. * src/SocketCore.cc
  1299. * src/SocketCore.h
  1300. 2009-06-02 Tatsuhiro Tsujikawa <[email protected]>
  1301. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1302. * src/EpollEventPoll.h
  1303. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1304. Added fork() emulation using CreateProcess() in MinGW
  1305. * src/RequestGroupMan.cc
  1306. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  1307. * Release 1.4.0
  1308. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  1309. Added utf8.torrent to EXTRA_DIST
  1310. * test/Makefile.am
  1311. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1312. Fixed docs of aria2.addMetalink xml-rpc method.
  1313. * doc/aria2c.1.txt
  1314. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1315. Added Slovak translation. Updated Ukrainian and Brazilian
  1316. Portuguese translation. Thanks to all translators.
  1317. * po/sk.po
  1318. * po/uk.po
  1319. * po/pt_BR.po
  1320. * po/LINGUAS
  1321. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1322. Added test case for XmlRpcProcessor to fail to parse malformed
  1323. document.
  1324. * test/XmlRpcRequestProcessorTest.cc
  1325. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1326. Removed *.gmo files in po because they are generated on 'make
  1327. dist'
  1328. * po/*.gmo
  1329. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1330. Documented max-concurrent-downloads of changeGlobalOption method
  1331. in man page.
  1332. * doc/aria2c.1.txt
  1333. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1334. Added max-concurrent-downloads option to changeGlobalOption
  1335. xml-rpc method. Rewritten loop conditional in
  1336. RequestGroupMan::fillRequestGroupFromReserver().
  1337. * src/RequestGroupMan.cc
  1338. * src/RequestGroupMan.h
  1339. * src/XmlRpcMethod.cc
  1340. * src/XmlRpcMethodImpl.cc
  1341. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1342. Documented position parameter in man page.
  1343. * doc/aria2c.1.txt
  1344. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1345. Added 'position' parameter to addUri, addTorrent and addMetalink
  1346. xml-rpc method.
  1347. * src/RequestGroupMan.cc
  1348. * src/RequestGroupMan.h
  1349. * src/XmlRpcMethodImpl.cc
  1350. * test/XmlRpcMethodTest.cc
  1351. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  1352. Removed Peer.cc from compile source list when --disable-bittorrent
  1353. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1354. takes Peer.
  1355. * src/DefaultPieceStorage.cc
  1356. * src/DefaultPieceStorage.h
  1357. * src/Makefile.am
  1358. * src/PieceStorage.h
  1359. * src/UnknownLengthPieceStorage.cc
  1360. * src/UnknownLengthPieceStorage.h
  1361. * test/MockPieceStorage.h
  1362. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  1363. Implemented getter methods in header files to give them more
  1364. chance of optimization.
  1365. Return const reference for SharadHandle if possible.
  1366. * src/AbstractAuthResolver.cc
  1367. * src/AbstractAuthResolver.h
  1368. * src/AbstractBtMessage.cc
  1369. * src/AbstractBtMessage.h
  1370. * src/AbstractSingleDiskAdaptor.cc
  1371. * src/AbstractSingleDiskAdaptor.h
  1372. * src/AsyncNameResolver.cc
  1373. * src/AsyncNameResolver.h
  1374. * src/BNode.cc
  1375. * src/BNode.h
  1376. * src/BitfieldMan.cc
  1377. * src/BitfieldMan.h
  1378. * src/BtAbortOutstandingRequestEvent.h
  1379. * src/BtExtendedMessage.cc
  1380. * src/BtExtendedMessage.h
  1381. * src/BtSeederStateChoke.cc
  1382. * src/BtSeederStateChoke.h
  1383. * src/Cookie.cc
  1384. * src/Cookie.h
  1385. * src/DHTBucket.cc
  1386. * src/DHTBucket.h
  1387. * src/DHTConnectionImpl.cc
  1388. * src/DHTConnectionImpl.h
  1389. * src/DHTFindNodeReplyMessage.cc
  1390. * src/DHTFindNodeReplyMessage.h
  1391. * src/DHTGetPeersReplyMessage.cc
  1392. * src/DHTGetPeersReplyMessage.h
  1393. * src/DHTInteractionCommand.cc
  1394. * src/DHTMessage.cc
  1395. * src/DHTMessage.h
  1396. * src/DHTMessageDispatcherImpl.cc
  1397. * src/DHTMessageEntry.cc
  1398. * src/DHTMessageReceiver.cc
  1399. * src/DHTMessageReceiver.h
  1400. * src/DHTMessageTrackerEntry.cc
  1401. * src/DHTMessageTrackerEntry.h
  1402. * src/DHTPeerAnnounceEntry.cc
  1403. * src/DHTPeerAnnounceEntry.h
  1404. * src/DHTPeerLookupTask.cc
  1405. * src/DHTPeerLookupTask.h
  1406. * src/DHTRoutingTableDeserializer.cc
  1407. * src/DHTRoutingTableDeserializer.h
  1408. * src/DefaultBtAnnounce.cc
  1409. * src/DefaultBtAnnounce.h
  1410. * src/DefaultBtMessageDispatcher.cc
  1411. * src/DefaultBtMessageDispatcher.h
  1412. * src/DefaultBtRequestFactory.cc
  1413. * src/DefaultBtRequestFactory.h
  1414. * src/DiskAdaptor.cc
  1415. * src/DiskAdaptor.h
  1416. * src/DownloadContext.cc
  1417. * src/DownloadContext.h
  1418. * src/DownloadEngine.cc
  1419. * src/DownloadEngine.h
  1420. * src/EpollEventPoll.cc
  1421. * src/EpollEventPoll.h
  1422. * src/FtpConnection.cc
  1423. * src/FtpConnection.h
  1424. * src/HttpConnection.cc
  1425. * src/HttpConnection.h
  1426. * src/HttpHeader.cc
  1427. * src/HttpHeader.h
  1428. * src/HttpRequest.cc
  1429. * src/HttpRequest.h
  1430. * src/HttpResponse.cc
  1431. * src/HttpResponse.h
  1432. * src/LibsslTLSContext.cc
  1433. * src/LibsslTLSContext.h
  1434. * src/MSEHandshake.cc
  1435. * src/MSEHandshake.h
  1436. * src/MetalinkEntry.cc
  1437. * src/MetalinkEntry.h
  1438. * src/MetalinkParserController.cc
  1439. * src/MetalinkParserController.h
  1440. * src/MetalinkParserStateMachine.cc
  1441. * src/MetalinkParserStateMachine.h
  1442. * src/MultiDiskAdaptor.cc
  1443. * src/MultiDiskAdaptor.h
  1444. * src/NetrcAuthResolver.cc
  1445. * src/NetrcAuthResolver.h
  1446. * src/Peer.cc
  1447. * src/Peer.h
  1448. * src/PeerSessionResource.cc
  1449. * src/PeerSessionResource.h
  1450. * src/Piece.cc
  1451. * src/Piece.h
  1452. * src/PieceStatMan.cc
  1453. * src/PieceStatMan.h
  1454. * src/Request.cc
  1455. * src/Request.h
  1456. * src/RequestGroup.cc
  1457. * src/RequestGroup.h
  1458. * src/RequestGroupMan.cc
  1459. * src/RequestGroupMan.h
  1460. * src/RequestSlot.cc
  1461. * src/RequestSlot.h
  1462. * src/SegmentMan.cc
  1463. * src/SegmentMan.h
  1464. * src/SelectEventPoll.cc
  1465. * src/SelectEventPoll.h
  1466. * src/ServerStat.cc
  1467. * src/ServerStat.h
  1468. * src/Signature.cc
  1469. * src/Signature.h
  1470. * src/URIResult.cc
  1471. * src/URIResult.h
  1472. * src/UTPexExtensionMessage.cc
  1473. * src/UTPexExtensionMessage.h
  1474. 2009-05-28 Tatsuhiro Tsujikawa <[email protected]>
  1475. Fixed compile error without BitTorrent and Metalink support.
  1476. * src/XmlRpcMethod.cc
  1477. * src/XmlRpcMethodFactory.cc
  1478. * src/XmlRpcMethodImpl.cc
  1479. * src/XmlRpcMethodImpl.h
  1480. * test/XmlRpcMethodTest.cc
  1481. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1482. Rewritten the help message for --allow-overwrite option.
  1483. * doc/aria2c.1.txt
  1484. * src/usage_text.h
  1485. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1486. Fixed typo
  1487. * doc/aria2c.1.txt
  1488. * src/usage_text.h
  1489. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1490. Updated README for 1.4.0 release. Use new table syntax of
  1491. asciidoc.
  1492. * README
  1493. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1494. Documented --xml-rpc-max-request-size option in man page.
  1495. * doc/aria2c.1.txt
  1496. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1497. Moved C_* constants from BtContext to DefaultBtContext.
  1498. * src/BtContext.cc: Removed.
  1499. * src/BtContext.h
  1500. * src/DefaultBtContext.cc
  1501. * src/DefaultBtContext.h
  1502. * src/Makefile.am
  1503. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1504. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1505. path key respectively when persing .torrent file.
  1506. * src/BtContext.cc
  1507. * src/BtContext.h
  1508. * src/DefaultBtContext.cc
  1509. * test/DefaultBtContextTest.cc
  1510. * test/utf8.torrent
  1511. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  1512. Added --xml-rpc-max-request-size option to limit the size of
  1513. XML-RPC request.
  1514. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  1515. Documented XML-RPC API in man page.
  1516. * doc/aria2c.1.txt
  1517. 2009-05-24 Tatsuhiro Tsujikawa <[email protected]>
  1518. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1519. will break strict-aliasing rules
  1520. * src/PeerConnection.cc
  1521. * test/DHTRoutingTableSerializerTest.cc
  1522. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1523. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1524. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1525. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1526. PKG_CHECK_MODULES macro uses latter name.
  1527. * m4/sqlite3.m4
  1528. * src/Makefile.am
  1529. * test/Makefile.am
  1530. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1531. Fixed typo
  1532. * configure.ac
  1533. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1534. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1535. presence of libgnutls using pkg-config first. If it fails, fall
  1536. back to old macro libgnutls.m4.
  1537. * configure.ac
  1538. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1539. Use s itself instead of !s.bad()
  1540. * src/CookieStorage.cc
  1541. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1542. Documented --on-download-* option and --save-cookies option in man
  1543. page.
  1544. * doc/aria2c.1.txt
  1545. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1546. Set possible values for --load-cookie option to "/path/to/file".
  1547. * src/OptionHandlerFactory.cc
  1548. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1549. Added --save-cookies option.
  1550. * src/Cookie.cc
  1551. * src/Cookie.h
  1552. * src/CookieStorage.cc
  1553. * src/CookieStorage.h
  1554. * src/MultiUrlRequestInfo.cc
  1555. * src/OptionHandlerFactory.cc
  1556. * src/prefs.cc
  1557. * src/prefs.h
  1558. * src/usage_text.h
  1559. * test/CookieStorageTest.cc
  1560. * test/CookieTest.cc
  1561. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1562. Removed tellAll XML-RPC command because its reponse tends to be
  1563. big if stopped/waiting downloads pile up.
  1564. * src/XmlRpcMethodFactory.cc
  1565. * src/XmlRpcMethodImpl.cc
  1566. * src/XmlRpcMethodImpl.h
  1567. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1568. Added the ability to execute command when download starts and
  1569. stops. You can also specify command for particular cases such as
  1570. complete/error download. Added --on-download-start,
  1571. --on-download-stop, --on-download-complete and --on-download-error
  1572. option.
  1573. * src/OptionHandlerFactory.cc
  1574. * src/RequestGroupMan.cc
  1575. * src/prefs.cc
  1576. * src/prefs.h
  1577. * src/usage_text.h
  1578. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1579. Fixed test error
  1580. * test/BencodeTest.cc
  1581. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1582. Added unit tests.
  1583. * test/XmlRpcMethodTest.cc
  1584. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1585. Made exception message more verbose.
  1586. * src/bencode.cc
  1587. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  1588. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1589. space in console readout. Also they are now shown in MiB/s if
  1590. speed > 1024KiB/s.
  1591. * src/ConsoleStatCalc.cc
  1592. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  1593. Added SEED to console output, which represents the number of
  1594. seeders currently the client is connecting to.
  1595. * src/ConsoleStatCalc.cc
  1596. * src/ConsoleStatCalc.h
  1597. * src/DownloadEngine.cc
  1598. * src/NullStatCalc.h
  1599. * src/StatCalc.h
  1600. 2009-05-18 Tatsuhiro Tsujikawa <[email protected]>
  1601. Added source filename(__FILE__) and line number(__LINE__) to
  1602. exception message.
  1603. * src/AbstractCommand.cc
  1604. * src/AbstractDiskWriter.cc
  1605. * src/AbstractProxyResponseCommand.cc
  1606. * src/BDE.h
  1607. * src/BtAllowedFastMessage.cc
  1608. * src/BtHandshakeMessageValidator.h
  1609. * src/BtHaveAllMessage.cc
  1610. * src/BtHaveNoneMessage.cc
  1611. * src/BtPieceMessage.cc
  1612. * src/BtRejectMessage.cc
  1613. * src/ChunkedDecoder.cc
  1614. * src/CookieStorage.cc
  1615. * src/DHTAnnouncePeerMessage.cc
  1616. * src/DHTEntryPointNameResolveCommand.cc
  1617. * src/DHTMessageFactoryImpl.cc
  1618. * src/DHTMessageTracker.cc
  1619. * src/DHTRoutingTableDeserializer.cc
  1620. * src/DHTRoutingTableSerializer.cc
  1621. * src/DHTSetup.cc
  1622. * src/DHTTokenTracker.cc
  1623. * src/DefaultBtAnnounce.cc
  1624. * src/DefaultBtContext.cc
  1625. * src/DefaultBtInteractive.cc
  1626. * src/DefaultBtMessageFactory.cc
  1627. * src/DefaultBtProgressInfoFile.cc
  1628. * src/DefaultExtensionMessageFactory.cc
  1629. * src/DlAbortEx.h
  1630. * src/DlRetryEx.h
  1631. * src/DownloadCommand.cc
  1632. * src/DownloadEngineFactory.cc
  1633. * src/DownloadFailureException.h
  1634. * src/Exception.cc
  1635. * src/Exception.h
  1636. * src/ExpatMetalinkProcessor.cc
  1637. * src/ExpatXmlRpcRequestProcessor.cc
  1638. * src/FallocFileAllocationIterator.cc
  1639. * src/FatalException.h
  1640. * src/FtpConnection.cc
  1641. * src/FtpFinishDownloadCommand.cc
  1642. * src/FtpInitiateConnectionCommand.cc
  1643. * src/FtpNegotiationCommand.cc
  1644. * src/GZipDecoder.cc
  1645. * src/HandshakeExtensionMessage.cc
  1646. * src/HttpConnection.cc
  1647. * src/HttpHeaderProcessor.cc
  1648. * src/HttpInitiateConnectionCommand.cc
  1649. * src/HttpResponse.cc
  1650. * src/HttpResponseCommand.cc
  1651. * src/HttpServer.cc
  1652. * src/HttpSkipResponseCommand.cc
  1653. * src/InitiateConnectionCommandFactory.cc
  1654. * src/IteratableChunkChecksumValidator.cc
  1655. * src/LibgcryptARC4Context.h
  1656. * src/LibgcryptARC4Decryptor.h
  1657. * src/LibgcryptARC4Encryptor.h
  1658. * src/LibgcryptDHKeyExchange.h
  1659. * src/LibgnutlsTLSContext.cc
  1660. * src/LibsslARC4Context.h
  1661. * src/LibsslARC4Decryptor.h
  1662. * src/LibsslARC4Encryptor.h
  1663. * src/LibsslDHKeyExchange.h
  1664. * src/LibsslTLSContext.cc
  1665. * src/MSEHandshake.cc
  1666. * src/MessageDigestHelper.cc
  1667. * src/MetalinkHelper.cc
  1668. * src/MultiDiskAdaptor.cc
  1669. * src/NameMatchOptionHandler.h
  1670. * src/NameResolver.cc
  1671. * src/Netrc.cc
  1672. * src/NsCookieParser.cc
  1673. * src/OptionHandlerException.cc
  1674. * src/OptionHandlerException.h
  1675. * src/OptionHandlerImpl.h
  1676. * src/OptionParser.cc
  1677. * src/ParameterizedStringParser.cc
  1678. * src/PeerAbstractCommand.cc
  1679. * src/PeerConnection.cc
  1680. * src/PeerMessageUtil.cc
  1681. * src/PeerReceiveHandshakeCommand.cc
  1682. * src/Platform.cc
  1683. * src/ReceiverMSEHandshakeCommand.cc
  1684. * src/RecoverableException.h
  1685. * src/RequestGroup.cc
  1686. * src/SimpleLogger.cc
  1687. * src/SocketCore.cc
  1688. * src/Sqlite3MozCookieParser.cc
  1689. * src/UTPexExtensionMessage.cc
  1690. * src/Util.cc
  1691. * src/XML2SAXMetalinkProcessor.cc
  1692. * src/Xml2XmlRpcRequestProcessor.cc
  1693. * src/XmlRpcMethodImpl.cc
  1694. * src/bencode.cc
  1695. * src/download_helper.cc
  1696. * src/messageDigest.h
  1697. * test/ExceptionTest.cc
  1698. * test/TestUtil.cc
  1699. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  1700. Bump up version number to 1.4.0
  1701. * configure.ac
  1702. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  1703. Added 2files.metalink to EXTRA_DIST
  1704. * test/Makefile.am
  1705. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1706. Added missing 2files.metalink
  1707. * test/2files.metalink
  1708. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1709. Show "[MEMORY]" prefix before filename in download summary if it
  1710. is downloaded into memory.
  1711. * src/DownloadResult.h
  1712. * src/RequestGroup.cc
  1713. * src/RequestGroupMan.cc
  1714. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1715. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1716. * src/ExpatXmlRpcRequestProcessor.cc
  1717. * src/Xml2XmlRpcRequestProcessor.cc
  1718. * src/message.h
  1719. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1720. Defined const BDEs to avoid duplicate instantiation.
  1721. Defined MSG_GID_NOT_PROVIDED.
  1722. * src/XmlRpcMethodImpl.cc
  1723. * src/message.h
  1724. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1725. Code cleanup
  1726. * src/Xml2XmlRpcRequestProcessor.cc
  1727. * src/Xml2XmlRpcRequestProcessor.h
  1728. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1729. Defined ENABLE_XML_RPC
  1730. * configure.ac
  1731. * configure
  1732. * config.h.in
  1733. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1734. Added ExpatXmlRpcRequestProcessor
  1735. * src/ExpatXmlRpcRequestProcessor.cc
  1736. * src/ExpatXmlRpcRequestProcessor.h
  1737. * src/Makefile.am
  1738. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1739. Added tests for addTorrent and addMetalink command.
  1740. * test/TestUtil.cc
  1741. * test/TestUtil.h
  1742. * test/XmlRpcMethodTest.cc
  1743. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1744. Corrected the description of --file-allocation option.
  1745. * doc/aria2c.1.txt
  1746. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1747. Added tellAll command.
  1748. * src/XmlRpcMethodFactory.cc
  1749. * src/XmlRpcMethodImpl.cc
  1750. * src/XmlRpcMethodImpl.h
  1751. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1752. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1753. * src/XmlRpcMethodImpl.cc
  1754. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1755. Added changeGlobalOption command. Currently,
  1756. max-overall-download-limit and max-overall-upload-limit option are
  1757. available.
  1758. * src/RequestGroupMan.h
  1759. * src/XmlRpcMethod.cc
  1760. * src/XmlRpcMethod.h
  1761. * src/XmlRpcMethodFactory.cc
  1762. * src/XmlRpcMethodImpl.cc
  1763. * src/XmlRpcMethodImpl.h
  1764. * test/XmlRpcMethodTest.cc
  1765. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1766. Added changeOption command. Currently, max-download-limit,
  1767. max-upload-limit option are available in this command.
  1768. * src/RequestGroup.h
  1769. * src/XmlRpcMethod.cc
  1770. * src/XmlRpcMethod.h
  1771. * src/XmlRpcMethodFactory.cc
  1772. * src/XmlRpcMethodImpl.cc
  1773. * src/XmlRpcMethodImpl.h
  1774. * test/XmlRpcMethodTest.cc
  1775. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1776. Added purgeDownloadResult command.
  1777. * src/RequestGroupMan.cc
  1778. * src/RequestGroupMan.h
  1779. * src/XmlRpcMethodFactory.cc
  1780. * src/XmlRpcMethodImpl.cc
  1781. * src/XmlRpcMethodImpl.h
  1782. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1783. Refactored.
  1784. * src/XmlRpcMethod.cc
  1785. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1786. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1787. XmlRpcResponse.
  1788. * src/HttpServerBodyCommand.cc
  1789. * src/Makefile.am
  1790. * src/XmlRpcMethod.cc
  1791. * src/XmlRpcMethod.h
  1792. * src/XmlRpcMethodImpl.cc
  1793. * src/XmlRpcResponse.cc
  1794. * src/XmlRpcResponse.h
  1795. * test/XmlRpcMethodTest.cc
  1796. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1797. In XML-RPC option struct, header and index-out option can take
  1798. array as value.
  1799. * src/XmlRpcMethod.cc
  1800. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1801. Removed unused option member from PeerConnection.
  1802. * src/InitiatorMSEHandshakeCommand.cc
  1803. * src/PeerConnection.cc
  1804. * src/PeerConnection.h
  1805. * src/PeerInteractionCommand.cc
  1806. * src/PeerReceiveHandshakeCommand.cc
  1807. * src/ReceiverMSEHandshakeCommand.cc
  1808. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1809. Added "seeder" key to getPeers response.
  1810. * src/XmlRpcMethodImpl.cc
  1811. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1812. Added addMetalink XML-RPC command.
  1813. * src/XmlRpcMethodFactory.cc
  1814. * src/XmlRpcMethodImpl.cc
  1815. * src/XmlRpcMethodImpl.h
  1816. * src/download_helper.cc
  1817. * src/download_helper.h
  1818. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1819. Fixed the bug that POU peers are never choked in seeding.
  1820. * src/BtSeederStateChoke.cc
  1821. * src/BtSeederStateChoke.h
  1822. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1823. Added web-seeding URI handling in addTorrent command.
  1824. * src/XmlRpcMethodImpl.cc
  1825. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1826. Added "length" key to getFiles response.
  1827. * src/XmlRpcMethodImpl.cc
  1828. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1829. Moved --no-netrc option from ftp option section to http/ftp option
  1830. section.
  1831. * doc/aria2c.1.txt
  1832. * src/OptionHandlerFactory.cc
  1833. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1834. Removed garbage "\" character before '
  1835. * doc/aria2c.1.txt
  1836. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1837. Removed garbage "\" character before http.
  1838. * doc/aria2c.1.txt
  1839. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1840. Documented additional options that can be specified in -i list.
  1841. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1842. and --xml-rpc-passwd. Removed --enable-http-server and
  1843. --http-server-listen-port.
  1844. * doc/aria2c.1.txt
  1845. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1846. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1847. * src/DefaultPeerStorage.cc
  1848. * src/DefaultPeerStorage.h
  1849. * src/PeerStorage.h
  1850. * src/XmlRpcMethodImpl.cc
  1851. * test/MockPeerStorage.h
  1852. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1853. Put a call to Socket::isReadable() in try block.
  1854. * src/HttpServerBodyCommand.cc
  1855. * src/HttpServerCommand.cc
  1856. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1857. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1858. exception , so it is now in try block.
  1859. * src/HttpServerResponseCommand.cc
  1860. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1861. Added "amChoking" and "peerChoking" key in getPeers response.
  1862. * src/XmlRpcMethodImpl.cc
  1863. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1864. Added test case for zero-length filter.
  1865. * test/BitfieldManTest.cc
  1866. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1867. getFiles command now returns file data for finished/stopped
  1868. downloads.
  1869. * src/XmlRpcMethodImpl.cc
  1870. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1871. DownloadResult now has the list of FileEntry. The download
  1872. summary displays the path of first selected file and the number of
  1873. remaining files for multi-file torrent.
  1874. * src/DownloadResult.h
  1875. * src/RequestGroup.cc
  1876. * src/RequestGroupMan.cc
  1877. * test/RequestGroupTest.cc
  1878. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1879. Fixed segmentation fault error when no file is selected in
  1880. multi-file torrent.
  1881. * src/BitfieldMan.cc
  1882. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1883. Escaped <,>,& character in XML-RPC response.
  1884. * src/XmlRpcMethod.cc
  1885. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1886. Throw DlAbortEx instead of FatalException during parsing options
  1887. because we don't want for aria2 to quit when bad option is passed
  1888. via XML-RPC.
  1889. * src/OptionHandlerException.cc
  1890. * src/OptionHandlerException.h
  1891. * src/OptionHandlerImpl.h
  1892. * src/OptionParser.cc
  1893. * src/OptionParser.h
  1894. * src/PStringSegment.cc
  1895. * src/ParameterizedStringParser.cc
  1896. * src/download_helper.cc
  1897. * test/ParameterizedStringParserTest.cc
  1898. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1899. Selecting files are now done in
  1900. DefaultBtContext::setFileFileter().
  1901. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1902. functions are removed because they are no longer used. Creating
  1903. filter in BitfieldMan is done in new funtion
  1904. PieceStorage::setupFileFilter()
  1905. * src/BtContext.cc
  1906. * src/BtContext.h
  1907. * src/DefaultBtContext.cc
  1908. * src/DefaultBtContext.h
  1909. * src/DefaultPieceStorage.cc
  1910. * src/DefaultPieceStorage.h
  1911. * src/DiskAdaptor.cc
  1912. * src/DiskAdaptor.h
  1913. * src/PieceStorage.h
  1914. * src/RequestGroup.cc
  1915. * src/UnknownLengthPieceStorage.h
  1916. * src/XmlRpcMethodImpl.cc
  1917. * test/DefaultBtContextTest.cc
  1918. * test/MockBtContext.h
  1919. * test/MockPieceStorage.h
  1920. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1921. Fixed compile error on Mac OS X
  1922. * src/HttpServer.cc
  1923. * src/XmlRpcMethod.h
  1924. * src/XmlRpcMethodImpl.cc
  1925. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1926. Use std::binary_search instead of std::find
  1927. * src/DefaultPieceStorage.cc
  1928. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1929. Removed unnecessary BDE() call; leave them to implicit conversion.
  1930. * src/XmlRpcMethodImpl.cc
  1931. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1932. Return connections and gid in string
  1933. * src/XmlRpcMethodImpl.cc
  1934. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1935. Renamed addURI as addUri
  1936. * src/XmlRpcMethodFactory.cc
  1937. * src/XmlRpcMethodImpl.cc
  1938. * src/XmlRpcMethodImpl.h
  1939. * test/XmlRpcMethodTest.cc
  1940. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1941. Renamed addTorrentFile as addTorrent
  1942. * src/XmlRpcMethodFactory.cc
  1943. * src/XmlRpcMethodImpl.cc
  1944. * src/XmlRpcMethodImpl.h
  1945. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1946. The information for files, URIs, peers are removed from the
  1947. reponse of TellaActive, TellStatus command because they tend to be
  1948. large. Instead they can be retrieved by the dedicated commands:
  1949. getFiles, getUris and getPeers respectively.
  1950. * src/XmlRpcMethodFactory.cc
  1951. * src/XmlRpcMethodImpl.cc
  1952. * src/XmlRpcMethodImpl.h
  1953. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1954. Removed --max-overall-upload-limit and
  1955. --max-overall-download-limit option from listRequestOptions.
  1956. * src/download_helper.cc
  1957. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1958. Log incoming host in HttpListenCommand.
  1959. * src/HttpListenCommand.cc
  1960. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1961. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1962. --xml-rpc-passwd option.
  1963. * src/HttpServer.cc
  1964. * src/HttpServer.h
  1965. * src/HttpServerCommand.cc
  1966. * src/OptionHandlerFactory.cc
  1967. * src/prefs.cc
  1968. * src/prefs.h
  1969. * src/usage_text.h
  1970. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1971. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1972. processing 0 length request.
  1973. * src/HttpServerBodyCommand.cc
  1974. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1975. Removed --enable-http-server and --http-server-listen-port
  1976. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1977. instead. The original feature for --enable-http-server that
  1978. reports download progress in HTML was officially removed. Persist
  1979. XML-RPC connection if client supports keep-alive.
  1980. * src/DownloadEngineFactory.cc
  1981. * src/HttpServerCommand.cc
  1982. * src/HttpServerResponseCommand.cc
  1983. * src/Makefile.am
  1984. * src/Makefile.in
  1985. * src/OptionHandlerFactory.cc
  1986. * src/RequestGroupMan.cc
  1987. * src/main.cc
  1988. * src/option_processing.cc
  1989. * src/prefs.cc
  1990. * src/prefs.h
  1991. * src/usage_text.h
  1992. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1993. Added "uris" key to the response of tellStatus command. Added
  1994. "connections" key to the response of tellStatus and tellActive
  1995. command.
  1996. * src/XmlRpcMethodImpl.cc
  1997. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1998. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1999. Added TellStatusXmlRpcMethod. Remove command can now remove
  2000. waiting RequestGroup.
  2001. * src/RequestGroupMan.cc
  2002. * src/RequestGroupMan.h
  2003. * src/XmlRpcMethodFactory.cc
  2004. * src/XmlRpcMethodImpl.cc
  2005. * src/XmlRpcMethodImpl.h
  2006. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2007. Initialized _peerId
  2008. * src/Peer.cc
  2009. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2010. Return fault structure for error. FailXmlRpcMethod is renamed as
  2011. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2012. in non-torrent download. Return single param value.
  2013. * src/XmlRpcMethod.cc
  2014. * src/XmlRpcMethodFactory.cc
  2015. * src/XmlRpcMethodImpl.cc
  2016. * src/XmlRpcMethodImpl.h
  2017. * test/XmlRpcMethodTest.cc
  2018. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2019. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2020. command.
  2021. * src/RequestGroup.cc
  2022. * src/RequestGroup.h
  2023. * src/RequestGroupMan.cc
  2024. * src/XmlRpcMethodImpl.cc
  2025. * test/RequestGroupTest.cc
  2026. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2027. Added more options that can be specified in -i list and xml-rpc
  2028. add* command.
  2029. * src/download_helper.h
  2030. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2031. The available options in -i list should be listed in
  2032. listRequestOptions().
  2033. * src/download_helper.cc
  2034. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2035. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2036. command.
  2037. * src/XmlRpcMethodImpl.cc
  2038. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2039. Now RequestGroup has its own copy of Option object. This will help
  2040. to give custom option for each RequestGroup.
  2041. addTorrentFile command now takes options.
  2042. * src/AbstractCommand.cc
  2043. * src/AbstractCommand.h
  2044. * src/AbstractProxyRequestCommand.cc
  2045. * src/ActivePeerConnectionCommand.cc
  2046. * src/ActivePeerConnectionCommand.h
  2047. * src/AdaptiveURISelector.cc
  2048. * src/BtCheckIntegrityEntry.cc
  2049. * src/BtDependency.cc
  2050. * src/BtDependency.h
  2051. * src/BtFileAllocationEntry.cc
  2052. * src/BtPostDownloadHandler.cc
  2053. * src/CheckIntegrityEntry.cc
  2054. * src/DownloadCommand.cc
  2055. * src/FtpDownloadCommand.cc
  2056. * src/FtpFinishDownloadCommand.cc
  2057. * src/FtpInitiateConnectionCommand.cc
  2058. * src/FtpNegotiationCommand.cc
  2059. * src/HttpInitiateConnectionCommand.cc
  2060. * src/HttpRequestCommand.cc
  2061. * src/HttpResponseCommand.cc
  2062. * src/HttpSkipResponseCommand.cc
  2063. * src/InitiateConnectionCommand.cc
  2064. * src/InitiateConnectionCommandFactory.cc
  2065. * src/InitiatorMSEHandshakeCommand.cc
  2066. * src/InitiatorMSEHandshakeCommand.h
  2067. * src/Metalink2RequestGroup.cc
  2068. * src/Metalink2RequestGroup.h
  2069. * src/MetalinkPostDownloadHandler.cc
  2070. * src/MultiUrlRequestInfo.cc
  2071. * src/MultiUrlRequestInfo.h
  2072. * src/PeerAbstractCommand.cc
  2073. * src/PeerInteractionCommand.cc
  2074. * src/PeerInteractionCommand.h
  2075. * src/PeerReceiveHandshakeCommand.cc
  2076. * src/PeerReceiveHandshakeCommand.h
  2077. * src/RequestGroup.cc
  2078. * src/RequestGroup.h
  2079. * src/TrackerWatcherCommand.cc
  2080. * src/TrackerWatcherCommand.h
  2081. * src/XmlRpcMethod.cc
  2082. * src/XmlRpcMethod.h
  2083. * src/XmlRpcMethodImpl.cc
  2084. * src/download_helper.cc
  2085. * src/download_helper.h
  2086. * src/main.cc
  2087. * test/BtDependencyTest.cc
  2088. * test/BtPostDownloadHandlerTest.cc
  2089. * test/DefaultBtMessageDispatcherTest.cc
  2090. * test/DownloadHandlerFactoryTest.cc
  2091. * test/DownloadHelperTest.cc
  2092. * test/Metalink2RequestGroupTest.cc
  2093. * test/MetalinkPostDownloadHandlerTest.cc
  2094. * test/RequestGroupManTest.cc
  2095. * test/RequestGroupTest.cc
  2096. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2097. Added tellActiveStatus xml-rpc command which reports download
  2098. status of active downloads.
  2099. * src/XmlRpcMethodFactory.cc
  2100. * src/XmlRpcMethodImpl.cc
  2101. * src/XmlRpcMethodImpl.h
  2102. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2103. Added addTorrentFile xml-rpc command which receives uploaded
  2104. torrent file and add download for it.
  2105. * src/RequestGroupMan.cc
  2106. * src/XmlRpcMethodFactory.cc
  2107. * src/XmlRpcMethodImpl.cc
  2108. * src/XmlRpcMethodImpl.h
  2109. * src/download_helper.cc
  2110. * src/download_helper.h
  2111. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2112. Added remove xml-rpc command which removes specified download.
  2113. There is a known issue: the removed unfinished downloads are
  2114. reported ERR when aria2 exits. They should be reported as INPR.
  2115. * src/RequestGroupMan.cc
  2116. * src/RequestGroupMan.h
  2117. * src/XmlRpcMethodFactory.cc
  2118. * src/XmlRpcMethodImpl.cc
  2119. * src/XmlRpcMethodImpl.h
  2120. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2121. If --enable-http-server is enabled, don't stop aria2 when all
  2122. download finished and don't quit when no files to download at
  2123. start up.
  2124. * src/RequestGroupMan.cc
  2125. * src/main.cc
  2126. * src/option_processing.cc
  2127. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2128. Added missing AM_CONDITIONAL
  2129. * configure.ac
  2130. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2131. Added xml-rpc functionality. Currently only addURI commad is
  2132. supported. To enable xml-rpc, run aria2 with
  2133. --enable-http-server. This option name is temporal and will be
  2134. changed. The feature that reports download progress in html format
  2135. is temporarily disabled.
  2136. * src/HttpServer.cc
  2137. * src/HttpServer.h
  2138. * src/HttpServerBodyCommand.cc
  2139. * src/HttpServerBodyCommand.h
  2140. * src/HttpServerCommand.cc
  2141. * src/HttpServerResponseCommand.cc
  2142. * src/Makefile.am
  2143. * src/OptionParser.cc
  2144. * src/OptionParser.h
  2145. * src/RequestGroupMan.cc
  2146. * src/RequestGroupMan.h
  2147. * src/XmlRpcMethod.cc
  2148. * src/XmlRpcMethod.h
  2149. * src/XmlRpcMethodFactory.cc
  2150. * src/XmlRpcMethodFactory.h
  2151. * src/XmlRpcMethodImpl.cc
  2152. * src/XmlRpcMethodImpl.h
  2153. * src/download_helper.cc
  2154. * src/download_helper.h
  2155. * test/Makefile.am
  2156. * test/XmlRpcMethodTest.cc
  2157. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2158. Added xml-rpc request parser. The supported value types are:
  2159. i4/int, string, double, struct, array, base64. Currently only
  2160. libxml2 version is provided.
  2161. * src/Xml2XmlRpcRequestProcessor.cc
  2162. * src/Xml2XmlRpcRequestProcessor.h
  2163. * src/XmlRpcElements.cc
  2164. * src/XmlRpcElements.h
  2165. * src/XmlRpcRequest.h
  2166. * src/XmlRpcRequestParserController.cc
  2167. * src/XmlRpcRequestParserController.h
  2168. * src/XmlRpcRequestParserState.h
  2169. * src/XmlRpcRequestParserStateImpl.cc
  2170. * src/XmlRpcRequestParserStateImpl.h
  2171. * src/XmlRpcRequestParserStateMachine.cc
  2172. * src/XmlRpcRequestParserStateMachine.h
  2173. * src/XmlRpcRequestProcessor.h
  2174. * test/XmlRpcRequestParserControllerTest.cc
  2175. * test/XmlRpcRequestProcessorTest.cc
  2176. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2177. * Release 1.3.3
  2178. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2179. Fixed compile error since r1202.
  2180. * src/ExpatMetalinkProcessor.cc
  2181. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2182. Updated Ukrainian, Russian and Simplified Chinese
  2183. translations. Thanks to all translators.
  2184. * po/ru.po
  2185. * po/uk.po
  2186. * po/zh_CN.po
  2187. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2188. Pass reference of Option object instead of pointer.
  2189. * src/download_helper.cc
  2190. * src/download_helper.h
  2191. * src/main.cc
  2192. * test/DownloadHelperTest.cc
  2193. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2194. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2195. from option directly. Instead, get them from RequestGroup.
  2196. * src/ActivePeerConnectionCommand.cc
  2197. * src/ActivePeerConnectionCommand.h
  2198. * src/PeerReceiveHandshakeCommand.cc
  2199. * src/RequestGroup.h
  2200. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2201. Removed unused uploadLimitCheck and uploadLimit from
  2202. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2203. PeerInteractionCommand.
  2204. * src/PeerAbstractCommand.cc
  2205. * src/PeerAbstractCommand.h
  2206. * src/PeerInteractionCommand.cc
  2207. * src/PeerInteractionCommand.h
  2208. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2209. Fixed broken file renaming feature since r1202.
  2210. * src/FtpNegotiationCommand.cc
  2211. * src/FtpNegotiationCommand.h
  2212. * src/HttpResponseCommand.cc
  2213. * src/RequestGroup.cc
  2214. * src/RequestGroup.h
  2215. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2216. Removed unused debug log
  2217. * src/SocketCore.cc
  2218. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2219. Generated configure and Makefile.in using autoconf 2.63 and
  2220. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2221. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2222. * configure.ac
  2223. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2224. Moved piece statistics stuff to new PieceStatMan class.
  2225. Refactored PieceSelector interface.
  2226. * src/DefaultPieceStorage.cc
  2227. * src/DefaultPieceStorage.h
  2228. * src/LongestSequencePieceSelector.cc
  2229. * src/LongestSequencePieceSelector.h
  2230. * src/Makefile.am
  2231. * src/PieceSelector.h
  2232. * src/PieceStatMan.cc
  2233. * src/PieceStatMan.h
  2234. * src/RarestPieceSelector.cc
  2235. * src/RarestPieceSelector.h
  2236. * src/RequestGroup.cc
  2237. * test/DefaultPieceStorageTest.cc
  2238. * test/InOrderPieceSelector.h
  2239. * test/Makefile.am
  2240. * test/PieceStatManTest.cc
  2241. * test/RarestPieceSelectorTest.cc
  2242. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2243. Added static member _protocolFamily to SocketCore. By default,
  2244. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2245. address. Sometime SocketCore::bind() and
  2246. SocketCore::establishConnection() use difference protocl family
  2247. and latter cannot connect to former. To avoid this situation, we
  2248. limit protocol family to AF_INET for unit tests.
  2249. * src/SocketCore.cc
  2250. * src/SocketCore.h
  2251. * test/AllTest.cc
  2252. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2253. Avoid std::bad_alloc for negative bencode string length.
  2254. * src/bencode.cc
  2255. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2256. Supported segmented downloading with chunked transfer encoding and
  2257. content-length.
  2258. * src/DownloadCommand.cc
  2259. * src/HttpResponseCommand.cc
  2260. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2261. Bump up version number to 1.3.3
  2262. * configure.ac
  2263. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2264. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2265. from 4096 to 65536 (for insanely large ftp login banners)
  2266. * src/FtpConnection.h
  2267. * test/FtpConnectionTest.cc
  2268. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2269. In DefaultBtContext::getActualBasePath(), return first
  2270. FileEntry::getPath() for single file torrent.
  2271. * src/DefaultBtContext.cc
  2272. * test/DefaultBtContextTest.cc
  2273. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2274. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2275. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2276. Removed _directIOAllowed member from DiskWriter.
  2277. * src/AbstractDiskWriter.cc
  2278. * src/AbstractDiskWriter.h
  2279. * src/AbstractSingleDiskAdaptor.cc
  2280. * src/AbstractSingleDiskAdaptor.h
  2281. * src/BinaryStream.h
  2282. * src/ByteArrayDiskWriter.h
  2283. * src/DefaultPieceStorage.cc
  2284. * src/DiskWriter.h
  2285. * src/MultiDiskAdaptor.cc
  2286. * src/MultiDiskAdaptor.h
  2287. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2288. Now the constructor of AbstractDiskWriter takes filename as an
  2289. argument and filename argument is removed from openFile(),
  2290. initAndOpenFile(), openExistingFile() interface. storeDir member
  2291. and its accessor functions are removed from DiskAdaptor because it
  2292. is not used anymore. size() member function of DefaultDiskWriter,
  2293. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2294. opening file.
  2295. * src/AbstractDiskWriter.cc
  2296. * src/AbstractDiskWriter.h
  2297. * src/AbstractSingleDiskAdaptor.cc
  2298. * src/AbstractSingleDiskAdaptor.h
  2299. * src/ByteArrayDiskWriter.cc
  2300. * src/ByteArrayDiskWriter.h
  2301. * src/ByteArrayDiskWriterFactory.cc
  2302. * src/ByteArrayDiskWriterFactory.h
  2303. * src/DefaultDiskWriter.cc
  2304. * src/DefaultDiskWriter.h
  2305. * src/DefaultDiskWriterFactory.cc
  2306. * src/DefaultDiskWriterFactory.h
  2307. * src/DefaultPieceStorage.cc
  2308. * src/DirectDiskAdaptor.cc
  2309. * src/DirectDiskAdaptor.h
  2310. * src/DiskAdaptor.h
  2311. * src/DiskWriter.h
  2312. * src/DiskWriterFactory.h
  2313. * src/MessageDigestHelper.cc
  2314. * src/MultiDiskAdaptor.cc
  2315. * src/RequestGroup.cc
  2316. * src/UnknownLengthPieceStorage.cc
  2317. * src/Util.cc
  2318. * test/DefaultDiskWriterTest.cc
  2319. * test/DirectDiskAdaptorTest.cc
  2320. * test/FallocFileAllocationIteratorTest.cc
  2321. * test/MessageDigestHelperTest.cc
  2322. * test/MetalinkProcessorTest.cc
  2323. * test/MultiDiskAdaptorTest.cc
  2324. * test/MultiFileAllocationIteratorTest.cc
  2325. * test/SingleFileAllocationIteratorTest.cc
  2326. * test/UtilTest.cc
  2327. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2328. Fixed the bug that aria2 aborts when --select-file is used. This
  2329. bug was introduced in r1199.
  2330. * src/MultiDiskAdaptor.cc
  2331. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2332. Code cleanup
  2333. * test/MockPieceStorage.cc
  2334. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2335. Fixed the bug that read-only file with wrong file size will cause
  2336. error because it cannot be truncated to the correct size. Now if
  2337. file size is different than the expected one, re-open file in
  2338. writable mode.
  2339. * src/AbstractSingleDiskAdaptor.cc
  2340. * src/AbstractSingleDiskAdaptor.h
  2341. * src/BtCheckIntegrityEntry.cc
  2342. * src/DiskAdaptor.h
  2343. * src/MultiDiskAdaptor.h
  2344. * src/RequestGroup.cc
  2345. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2346. Fixed the bug that with --check-integrity option aria2 reports
  2347. downloaded file size is 0 even if some parts of file is correctly
  2348. downloaded. This bug is reproducible for the download that a file
  2349. includes last piece is missing. This bug doesn't reveal for
  2350. single-torrent with file allocation on.
  2351. * src/IteratableChecksumValidator.cc
  2352. * test/IteratableChecksumValidatorTest.cc
  2353. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  2354. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2355. * src/RequestGroupMan.cc
  2356. * src/AdaptiveURISelector.cc
  2357. * src/AdaptiveURISelector.h
  2358. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2359. * Release 1.3.2
  2360. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2361. Updated README
  2362. * README
  2363. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2364. Updated Ukrainian translations. Thanks to Alexander10.
  2365. * po/uk.po
  2366. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2367. Code cleanup
  2368. * src/MetalinkParserStateMachine.cc
  2369. * src/MetalinkParserStateMachine.h
  2370. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2371. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2372. and expat simultaneously, MetalinkProcessor is now not base class
  2373. and it is directly implemented in XML2SAXMetalinkProcessor and
  2374. ExpatMetalinkProcessor.
  2375. * src/ExpatMetalinkProcessor.cc
  2376. * src/ExpatMetalinkProcessor.h
  2377. * src/Makefile.am
  2378. * src/MetalinkHelper.cc
  2379. * src/MetalinkProcessor.h
  2380. * src/MetalinkProcessorFactory.cc: Removed.
  2381. * src/MetalinkProcessorFactory.h: Removed
  2382. * src/XML2SAXMetalinkProcessor.cc
  2383. * src/XML2SAXMetalinkProcessor.h
  2384. * test/MetalinkProcessorTest.cc
  2385. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2386. Bump up version number to 1.3.2
  2387. * configure.ac
  2388. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2389. Added missing file.
  2390. * test/Makefile.am
  2391. * test/url-list-singleFileEndsWithSlash.torrent
  2392. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2393. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2394. request.
  2395. * src/AnnounceList.cc
  2396. * src/AnnounceList.h
  2397. * src/BDE.cc: Added
  2398. * src/BDE.h: Added
  2399. * src/DHTAbstractMessage.cc
  2400. * src/DHTAbstractMessage.h
  2401. * src/DHTAnnouncePeerMessage.cc
  2402. * src/DHTAnnouncePeerMessage.h
  2403. * src/DHTAnnouncePeerReplyMessage.cc
  2404. * src/DHTAnnouncePeerReplyMessage.h
  2405. * src/DHTFindNodeMessage.cc
  2406. * src/DHTFindNodeMessage.h
  2407. * src/DHTFindNodeReplyMessage.cc
  2408. * src/DHTFindNodeReplyMessage.h
  2409. * src/DHTGetPeersMessage.cc
  2410. * src/DHTGetPeersMessage.h
  2411. * src/DHTGetPeersReplyMessage.cc
  2412. * src/DHTGetPeersReplyMessage.h
  2413. * src/DHTMessageFactory.h
  2414. * src/DHTMessageFactoryImpl.cc
  2415. * src/DHTMessageFactoryImpl.h
  2416. * src/DHTMessageReceiver.cc
  2417. * src/DHTMessageTracker.cc
  2418. * src/DHTMessageTracker.h
  2419. * src/DHTPingMessage.cc
  2420. * src/DHTPingMessage.h
  2421. * src/DHTPingReplyMessage.cc
  2422. * src/DHTPingReplyMessage.h
  2423. * src/DHTQueryMessage.cc
  2424. * src/DHTQueryMessage.h
  2425. * src/DHTResponseMessage.cc
  2426. * src/DHTResponseMessage.h
  2427. * src/DefaultBtAnnounce.cc
  2428. * src/DefaultBtContext.cc
  2429. * src/DefaultBtContext.h
  2430. * src/HandshakeExtensionMessage.cc
  2431. * src/Makefile.am
  2432. * src/PeerListProcessor.h
  2433. * src/UTPexExtensionMessage.cc
  2434. * src/bencode.cc
  2435. * src/bencode.h
  2436. * test/AnnounceListTest.cc
  2437. * test/BDETest.cc: Added
  2438. * test/BencodeTest.cc
  2439. * test/DHTAnnouncePeerMessageTest.cc
  2440. * test/DHTAnnouncePeerReplyMessageTest.cc
  2441. * test/DHTFindNodeMessageTest.cc
  2442. * test/DHTFindNodeReplyMessageTest.cc
  2443. * test/DHTGetPeersMessageTest.cc
  2444. * test/DHTGetPeersReplyMessageTest.cc
  2445. * test/DHTMessageFactoryImplTest.cc
  2446. * test/DHTMessageTrackerTest.cc
  2447. * test/DHTPingMessageTest.cc
  2448. * test/DHTPingReplyMessageTest.cc
  2449. * test/Makefile.am
  2450. * test/MockDHTMessageFactory.h
  2451. * test/PeerListProcessorTest.cc
  2452. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2453. Use url-list (web-seeding) only for single-file torrent. This is
  2454. basically the same behavior with Metalink file with torrent and
  2455. URIs.
  2456. * src/RequestGroup.cc
  2457. * src/DefaultBtContext.cc
  2458. * test/DefaultBtContextTest.cc
  2459. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  2460. Rewritten expr
  2461. * src/array_fun.h
  2462. * test/array_funTest.cc
  2463. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  2464. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2465. * src/DefaultBtMessageDispatcher.cc
  2466. * src/a2algo.h
  2467. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2468. Removed ExtendedMessagingAware. Instead of using inheritance,
  2469. added ExtensionMessageRegistry and it is passed to
  2470. DefaultExtensionMessageFactory.
  2471. * src/DefaultBtInteractive.cc
  2472. * src/DefaultBtInteractive.h
  2473. * src/DefaultExtensionMessageFactory.cc
  2474. * src/DefaultExtensionMessageFactory.h
  2475. * src/ExtendedMessagingAware.h: Removed.
  2476. * src/ExtensionMessageFactory.h
  2477. * src/ExtensionMessageRegistry.h: Added.
  2478. * src/Makefile.am
  2479. * src/PeerInteractionCommand.cc
  2480. * test/DefaultExtensionMessageFactoryTest.cc
  2481. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2482. Fixed typo in log messages
  2483. * src/MSEHandshake.cc
  2484. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2485. Fixed the bug that prevents torrent download from finishing. The
  2486. bug doesn't reveal for all torrents. The torrents affected this
  2487. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2488. of pieces.
  2489. * src/bitfield.h
  2490. * test/bitfieldTest.cc
  2491. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  2492. Code cleanup
  2493. * src/PeerListProcessor.h
  2494. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2495. Removed RequestGroupAware
  2496. * src/AbstractCommand.cc
  2497. * src/AbstractCommand.h
  2498. * src/ActivePeerConnectionCommand.cc
  2499. * src/ActivePeerConnectionCommand.h
  2500. * src/DHTGetPeersCommand.cc
  2501. * src/DHTGetPeersCommand.h
  2502. * src/InitiatorMSEHandshakeCommand.cc
  2503. * src/InitiatorMSEHandshakeCommand.h
  2504. * src/Makefile.am
  2505. * src/PeerInitiateConnectionCommand.cc
  2506. * src/PeerInitiateConnectionCommand.h
  2507. * src/PeerInteractionCommand.cc
  2508. * src/PeerInteractionCommand.h
  2509. * src/RealtimeCommand.cc
  2510. * src/RealtimeCommand.h
  2511. * src/RequestGroupAware.cc: Removed
  2512. * src/RequestGroupAware.h: Removed
  2513. * src/SeedCheckCommand.cc
  2514. * src/SeedCheckCommand.h
  2515. * src/SleepCommand.cc
  2516. * src/TrackerWatcherCommand.cc
  2517. * src/TrackerWatcherCommand.h
  2518. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2519. Rewritten PeerListProcessor
  2520. * src/PeerListProcessor.h
  2521. * src/CompactPeerListProcessor.h: Removed
  2522. * src/CompactPeerListProcessor.cc: Removed
  2523. * src/DelegatingPeerListProcessor.cc: Removed.
  2524. * src/DefaultBtAnnounce.cc
  2525. * src/Makefile.am
  2526. * src/UTPexExtensionMessage.cc
  2527. * src/DefaultPeerListProcessor.h: Removed.
  2528. * src/DefaultPeerListProcessor.cc: Removed.
  2529. * src/DelegatingPeerListProcessor.h: Removed.
  2530. * test/Makefile.am
  2531. * test/PeerListProcessorTest.cc
  2532. * test/DefaultPeerListProcessorTest.cc: Removed.
  2533. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2534. Rewritten RequestGroupMan::calculateStat()
  2535. * src/RequestGroupMan.cc
  2536. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2537. Removed unnecessary virtual destructor for Request class.
  2538. * src/Request.cc
  2539. * src/Request.h
  2540. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  2541. Avoid dynamic_pointer_cast.
  2542. * src/DHTGetPeersCommand.cc
  2543. * src/DHTGetPeersCommand.h
  2544. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  2545. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2546. BtEvent.
  2547. * src/AbstractBtEventListener.h: Removed.
  2548. * src/AbstractBtMessage.cc
  2549. * src/AbstractBtMessage.h
  2550. * src/BtAbortOutstandingRequestEvent.h
  2551. * src/BtCancelSendingPieceEvent.h
  2552. * src/BtChokedEvent.h: Removed.
  2553. * src/BtChokingEvent.h
  2554. * src/BtEvent.h: Removed
  2555. * src/BtEventListener.h: Removed.
  2556. * src/BtMessage.h
  2557. * src/BtPieceMessage.cc
  2558. * src/BtPieceMessage.h
  2559. * src/BtRequestMessage.cc
  2560. * src/BtRequestMessage.h
  2561. * src/DefaultBtMessageDispatcher.cc
  2562. * src/Makefile.am
  2563. * src/a2functional.h
  2564. * test/BtPieceMessageTest.cc
  2565. * test/BtRequestMessageTest.cc
  2566. * test/DefaultBtMessageDispatcherTest.cc
  2567. * test/MockBtMessage.h
  2568. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  2569. Code cleanup
  2570. * src/RequestGroupMan.cc
  2571. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  2572. Code cleanup
  2573. * src/DownloadCommand.cc
  2574. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  2575. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2576. byte.
  2577. * src/DownloadCommand.cc
  2578. * src/bitfield.h
  2579. * test/bitfieldTest.cc
  2580. Fixed the bug that causes infinite loop if broken web server
  2581. returns chunked response without last "0" chunk-size marker and
  2582. closes connection.
  2583. * src/DownloadCommand.cc
  2584. Instantiate properly configured HttpDownloadCommand for
  2585. non-resumable downlaods.
  2586. * src/HttpResponseCommand.cc
  2587. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  2588. Rewritten array operation functions.
  2589. * src/BitfieldMan.cc
  2590. * src/array_fun.h
  2591. * test/array_funTest.cc
  2592. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  2593. Removed unused variable 'query'
  2594. * src/Request.cc
  2595. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  2596. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2597. accidentally set to false in r1162.
  2598. * configure.ac
  2599. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2600. Code cleanup
  2601. * src/BNode.cc
  2602. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2603. Increase prefixLength for the bucket which doesn't own local node
  2604. ID when splitting bucket.
  2605. * src/DHTBucket.cc
  2606. * test/DHTBucketTest.cc
  2607. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2608. * Release 1.3.1
  2609. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2610. Bump up version number to 1.3.1
  2611. * configure.ac
  2612. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  2613. Removed unused variable checkPoint. Also removed include directive
  2614. for TimeA2.h.
  2615. * src/SeedCheckCommand.h
  2616. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  2617. Fixed the bug that upload limit exceeds the value specified in
  2618. --seed-ratio option depending on the timing of the execution of
  2619. SeedCheckCommand.
  2620. * src/SeedCheckCommand.cc
  2621. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  2622. Fixed the bug that removed peer's session upload/download length
  2623. are counted twice in _cachedTransferStat before it is
  2624. re-calculated. This affected the calculation of shara ratio,
  2625. resulting aria2 wrongly determines that specified share ratio is
  2626. reached. Also fixed the typo in calculateStatFor function name.
  2627. * src/BtSetup.cc
  2628. * src/DefaultPeerStorage.cc
  2629. * src/ShareRatioSeedCriteria.h
  2630. * test/ShareRatioSeedCriteriaTest.cc
  2631. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  2632. * Release 1.3.0
  2633. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  2634. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2635. Nynorsk translations. Thanks to all translators.
  2636. * po/es.po
  2637. * po/ja.po
  2638. * po/nn.po
  2639. * po/ru.po
  2640. * po/uk.po
  2641. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  2642. Rewritten isInRange()
  2643. * src/DHTBucket.cc
  2644. * test/DHTBucketTest.cc
  2645. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  2646. Fixed typo
  2647. * doc/aria2c.1.txt
  2648. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  2649. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2650. malloc/realloc is not used.
  2651. * src/configure.ac
  2652. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2653. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2654. char* bitfield instead of stl container for efficiency.
  2655. PieceSelector::select now takes this
  2656. bitfield. RarestPieceSelector::select now also performs
  2657. efficiently for this change. bitfield namespace is introduced and
  2658. it has several helper functions to handle basic bitfield
  2659. operations such as test, count set bits, etc.
  2660. * src/BitfieldMan.cc
  2661. * src/BitfieldMan.h
  2662. * src/DefaultBtRequestFactory.cc
  2663. * src/DefaultPieceStorage.cc
  2664. * src/DefaultPieceStorage.h
  2665. * src/LongestSequencePieceSelector.cc
  2666. * src/LongestSequencePieceSelector.h
  2667. * src/Makefile.am
  2668. * src/Piece.cc
  2669. * src/Piece.h
  2670. * src/PieceSelector.h
  2671. * src/RarestPieceSelector.cc
  2672. * src/RarestPieceSelector.h
  2673. * src/Util.cc
  2674. * src/Util.h
  2675. * src/bitfield.h
  2676. * test/BitfieldManTest.cc
  2677. * test/LongestSequencePieceSelectorTest.cc
  2678. * test/Makefile.am
  2679. * test/RarestPieceSelectorTest.cc
  2680. * test/UtilTest.cc
  2681. * test/bitfieldTest.cc
  2682. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2683. Made accepted socket non-block.
  2684. * src/FtpNegotiationCommand.cc
  2685. * src/HttpListenCommand.cc
  2686. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2687. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2688. * src/AbstractSingleDiskAdaptor.cc
  2689. * src/DefaultPieceStorage.cc
  2690. * src/DiskAdaptor.h
  2691. * src/DiskAdaptor.h
  2692. * src/MultiFileAllocationIterator.cc
  2693. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2694. Run
  2695. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2696. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2697. it doesn't need to be called every time when
  2698. DefaultBtInteractive::doInteractionProcessing() is called.
  2699. * src/DefaultBtInteractive.cc
  2700. * src/DefaultBtInteractive.h
  2701. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2702. Documented 'falloc' in man page.
  2703. * doc/aria2c.1.txt
  2704. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2705. Updated doc
  2706. * src/usage_text.h
  2707. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2708. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2709. allocation mode uses posix_fallocate() system call to allocate
  2710. file on disk. If you are using newer file systems such as ext4
  2711. (with extents support), btrfs or xfs, 'falloc' is your best
  2712. choice. It allocates large(few GiB) files almost instantly. Don't
  2713. use 'falloc' with legacy file systems such as ext3 because it
  2714. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2715. until allocation finishes. 'falloc' may not be available if your
  2716. system doesn't have posix_fallocate() system call.
  2717. * configure.ac
  2718. * src/AbstractDiskWriter.cc
  2719. * src/AbstractDiskWriter.h
  2720. * src/AbstractSingleDiskAdaptor.cc
  2721. * src/BinaryStream.h
  2722. * src/BtCheckIntegrityEntry.cc
  2723. * src/ByteArrayDiskWriter.h
  2724. * src/CheckIntegrityEntry.cc
  2725. * src/CheckIntegrityEntry.h
  2726. * src/DefaultPieceStorage.cc
  2727. * src/DiskAdaptor.cc
  2728. * src/DiskAdaptor.h
  2729. * src/DiskWriter.h
  2730. * src/FallocFileAllocationIterator.cc
  2731. * src/FallocFileAllocationIterator.h
  2732. * src/FileAllocationEntry.cc
  2733. * src/FileAllocationEntry.h
  2734. * src/Makefile.am
  2735. * src/MultiFileAllocationIterator.cc
  2736. * src/MultiFileAllocationIterator.h
  2737. * src/OptionHandlerFactory.cc
  2738. * src/RequestGroup.cc
  2739. * src/StreamCheckIntegrityEntry.cc
  2740. * src/prefs.cc
  2741. * src/prefs.h
  2742. * src/usage_text.h
  2743. * test/FallocFileAllocationIteratorTest.cc
  2744. * test/Makefile.am
  2745. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2746. Removed duplicate enableDirectIO() call.
  2747. * src/MultiFileAllocationIterator.cc
  2748. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2749. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2750. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2751. cost of std::rotate().
  2752. * src/RarestPieceSelector.cc
  2753. * src/RarestPieceSelector.h
  2754. * test/RarestPieceSelectorTest.cc
  2755. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  2756. Updated usage doc for --bt-tracker-interval option.
  2757. * src/usage_text.h
  2758. * doc/aria2c.1.txt
  2759. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  2760. Documented --bt-tracker-interval option in man page.
  2761. * doc/aria2c.1.txt
  2762. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2763. Added an option to specify the interval between tracker requests.
  2764. If non-zero value is specified, aria2 uses it and ignores the
  2765. interval value in the response of tracker. If zero is specified,
  2766. aria2 determines the inteval value based on the tarcker response
  2767. and download progress.
  2768. * src/DefaultBtAnnounce.cc
  2769. * src/DefaultBtAnnounce.h
  2770. * src/OptionHandlerFactory.cc
  2771. * src/RequestGroup.cc
  2772. * src/prefs.cc
  2773. * src/prefs.h
  2774. * src/usage_text.h
  2775. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2776. Added operator+=, operator-=, operator-
  2777. * src/TransferStat.cc
  2778. * src/TransferStat.h
  2779. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2780. Refactored RarestPieceSelector to reduce CPU load, especially for
  2781. addPieceStats.
  2782. * src/RarestPieceSelector.cc
  2783. * src/RarestPieceSelector.h
  2784. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2785. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2786. getAllMissingBlockIndexes to reduce a call to
  2787. array_function_base::operator[].
  2788. * src/BitfieldMan.cc
  2789. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2790. Cached TransferStat/download speed to avoid to sum them up in each
  2791. call.
  2792. * src/DefaultPeerStorage.cc
  2793. * src/DefaultPeerStorage.h
  2794. * src/SegmentMan.cc
  2795. * src/SegmentMan.h
  2796. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  2797. Typedefed cuid_t as int32_t in Command.h
  2798. * src/CUIDCounter.h
  2799. * src/Command.cc
  2800. * src/Command.h
  2801. * src/DownloadEngine.cc
  2802. * src/DownloadEngine.h
  2803. * src/PeerStat.h
  2804. * src/SegmentMan.cc
  2805. * src/SegmentMan.h
  2806. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  2807. Reduced the number of calls to PeerStorage::calculateStat() and
  2808. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2809. transfer rate.
  2810. * src/DefaultBtInteractive.cc
  2811. * src/DefaultBtMessageDispatcher.cc
  2812. * src/DefaultPeerStorage.cc
  2813. * src/DefaultPeerStorage.h
  2814. * src/DownloadCommand.cc
  2815. * src/DownloadEngine.cc
  2816. * src/PeerStorage.h
  2817. * src/SegmentMan.cc
  2818. * src/SegmentMan.h
  2819. * test/MockPeerStorage.h
  2820. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2821. Prepended _dir+"/" after joining path elements in torrent file.
  2822. * src/DefaultBtContext.cc
  2823. * test/DefaultBtContextTest.cc
  2824. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2825. Added missing IndexBtMessageValidator.h
  2826. * src/Makefile.am
  2827. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2828. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2829. Chinese translations. Thank you for contributing our project.
  2830. * po/id.po
  2831. * po/it.po
  2832. * po/ru.po
  2833. * po/uk.po
  2834. * po/zh_CN.po
  2835. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2836. Updated README
  2837. * README
  2838. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2839. Bump up version number to 1.3.0
  2840. * configure.ac
  2841. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2842. Updated doc
  2843. * src/DefaultBtContext.h
  2844. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2845. Slice/joinPath for name of single torrent.
  2846. * src/DefaultBtContext.cc
  2847. * test/DefaultBtContextTest.cc
  2848. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2849. Updated man page: Documented --dry-run and --index-out
  2850. options. Changed the default value of --uri-selector and
  2851. --http-auth-challenge options. Removed --direct-file-mapping
  2852. option. Added example for --index-out
  2853. * doc/aria2c.1.txt
  2854. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2855. Updated TEXT_DRY_RUN
  2856. * src/usage_text.h
  2857. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2858. Changed the default value of --uri-selector option from 'inorder'
  2859. to 'feedback'
  2860. * src/OptionHandlerFactory.cc
  2861. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2862. Included current URI in exception message.
  2863. * src/AbstractCommand.cc
  2864. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2865. Renamed ServerStatURISelector as FeedbackURISelector.
  2866. * src/FeedbackURISelector.cc
  2867. * src/FeedbackURISelector.h
  2868. * src/Makefile.am
  2869. * src/RequestGroupMan.cc
  2870. * src/ServerStatURISelector.cc
  2871. * src/ServerStatURISelector.h
  2872. * test/FeedbackURISelectorTest.cc
  2873. * test/Makefile.am
  2874. * test/ServerStatURISelectorTest.cc
  2875. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2876. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2877. all URIs are tested and their timeout is not reached.
  2878. * src/AdaptiveURISelector.cc
  2879. * src/AdaptiveURISelector.h
  2880. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2881. Changed the default value of --http-auth-challenge option to false.
  2882. * src/OptionHandlerFactory.cc
  2883. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2884. Reuse URIs when all unused URIs run out.
  2885. * src/OptionHandlerFactory.cc
  2886. * src/RequestGroup.cc
  2887. * src/prefs.cc
  2888. * src/prefs.h
  2889. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2890. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2891. and BtRejectMessage are derived from RangeBtMessage class.
  2892. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2893. derived from IndexBtMessage class. BtChokeMessage,
  2894. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2895. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2896. ZeroBtMessage class.
  2897. * src/AbstractBtMessage.cc
  2898. * src/AbstractBtMessage.h
  2899. * src/BtAllowedFastMessage.cc
  2900. * src/BtAllowedFastMessage.h
  2901. * src/BtAllowedFastMessageValidator.h: Removed
  2902. * src/BtBitfieldMessage.cc
  2903. * src/BtBitfieldMessage.h
  2904. * src/BtCancelMessage.cc
  2905. * src/BtCancelMessage.h
  2906. * src/BtCancelMessageValidator.h: Removed
  2907. * src/BtChokeMessage.cc
  2908. * src/BtChokeMessage.h
  2909. * src/BtExtendedMessage.cc
  2910. * src/BtExtendedMessage.h
  2911. * src/BtHandshakeMessage.cc
  2912. * src/BtHandshakeMessage.h
  2913. * src/BtHaveAllMessage.cc
  2914. * src/BtHaveAllMessage.h
  2915. * src/BtHaveMessage.cc
  2916. * src/BtHaveMessage.h
  2917. * src/BtHaveMessageValidator.h: Removed
  2918. * src/BtHaveNoneMessage.cc
  2919. * src/BtHaveNoneMessage.h
  2920. * src/BtInterestedMessage.cc
  2921. * src/BtInterestedMessage.h
  2922. * src/BtKeepAliveMessage.cc
  2923. * src/BtKeepAliveMessage.h
  2924. * src/BtNotInterestedMessage.cc
  2925. * src/BtNotInterestedMessage.h
  2926. * src/BtPieceMessage.cc
  2927. * src/BtPieceMessage.h
  2928. * src/BtPortMessage.cc
  2929. * src/BtPortMessage.h
  2930. * src/BtRejectMessage.cc
  2931. * src/BtRejectMessage.h
  2932. * src/BtRejectMessageValidator.h: Removed
  2933. * src/BtRequestMessage.cc
  2934. * src/BtRequestMessage.h
  2935. * src/BtRequestMessageValidator.h: Removed
  2936. * src/BtSuggestPieceMessage.cc
  2937. * src/BtSuggestPieceMessage.h
  2938. * src/BtSuggestPieceMessageValidator.h: Removed
  2939. * src/BtUnchokeMessage.cc
  2940. * src/BtUnchokeMessage.h
  2941. * src/DefaultBtMessageFactory.cc
  2942. * src/IndexBtMessage.cc
  2943. * src/IndexBtMessage.h
  2944. * src/IndexBtMessageValidator.h
  2945. * src/Makefile.am
  2946. * src/PeerMessageUtil.cc
  2947. * src/PeerMessageUtil.h
  2948. * src/RangeBtMessage.cc
  2949. * src/RangeBtMessage.h
  2950. * src/RangeBtMessageValidator.h
  2951. * src/SimpleBtMessage.cc
  2952. * src/SimpleBtMessage.h
  2953. * src/ZeroBtMessage.cc
  2954. * src/ZeroBtMessage.h
  2955. * test/BtRequestMessageTest.cc
  2956. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  2957. Reverted usage_text.h to r1093 to avoid to lose translated
  2958. messages.
  2959. * src/usage_text.h
  2960. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  2961. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2962. declared as non-const previously is now const and defined in class
  2963. definition.
  2964. * src/AbstractBtMessage.cc
  2965. * src/AbstractBtMessage.h
  2966. * src/BtAllowedFastMessage.cc
  2967. * src/BtAllowedFastMessage.h
  2968. * src/BtBitfieldMessage.h
  2969. * src/BtCancelMessage.cc
  2970. * src/BtCancelMessage.h
  2971. * src/BtChokeMessage.cc
  2972. * src/BtChokeMessage.h
  2973. * src/BtExtendedMessage.cc
  2974. * src/BtExtendedMessage.h
  2975. * src/BtHandshakeMessage.cc
  2976. * src/BtHandshakeMessage.h
  2977. * src/BtHaveAllMessage.cc
  2978. * src/BtHaveAllMessage.h
  2979. * src/BtHaveMessage.cc
  2980. * src/BtHaveMessage.h
  2981. * src/BtHaveNoneMessage.cc
  2982. * src/BtHaveNoneMessage.h
  2983. * src/BtInterestedMessage.cc
  2984. * src/BtInterestedMessage.h
  2985. * src/BtKeepAliveMessage.cc
  2986. * src/BtKeepAliveMessage.h
  2987. * src/BtMessage.h
  2988. * src/BtNotInterestedMessage.cc
  2989. * src/BtNotInterestedMessage.h
  2990. * src/BtPieceMessage.h
  2991. * src/BtPortMessage.cc
  2992. * src/BtPortMessage.h
  2993. * src/BtRejectMessage.cc
  2994. * src/BtRejectMessage.h
  2995. * src/BtRequestMessage.cc
  2996. * src/BtRequestMessage.h
  2997. * src/BtSuggestPieceMessage.cc
  2998. * src/BtSuggestPieceMessage.h
  2999. * src/BtUnchokeMessage.cc
  3000. * src/BtUnchokeMessage.h
  3001. * src/SimpleBtMessage.cc
  3002. * src/SimpleBtMessage.h
  3003. * test/MockBtMessage.h
  3004. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  3005. Use FileEntry::exists()
  3006. * src/MultiDiskAdaptor.cc
  3007. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  3008. Added exists()
  3009. * src/FileEntry.cc
  3010. * src/FileEntry.h
  3011. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3012. Added missing prefix dir.
  3013. * src/download_helper.cc
  3014. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3015. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3016. * src/CopyDiskAdaptor.cc: Removed
  3017. * src/CopyDiskAdaptor.h: Removed
  3018. * src/DefaultPieceStorage.cc
  3019. * src/Makefile.am
  3020. * src/OptionHandlerFactory.cc
  3021. * src/prefs.cc
  3022. * src/prefs.h
  3023. * src/usage_text.h
  3024. * test/CopyDiskAdaptorTest.cc: Removed
  3025. * test/Makefile.am
  3026. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3027. Rewritten isSameFileBeingDownloaded()
  3028. * src/RequestGroupMan.cc
  3029. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3030. Removed getName() from DownloadContext. getName() is declared in
  3031. BtContext.
  3032. * src/BtContext.h
  3033. * src/DownloadContext.h
  3034. * src/SingleFileDownloadContext.cc
  3035. * src/SingleFileDownloadContext.h
  3036. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3037. in AbstractSingleDiskAdaptor.
  3038. * src/AbstractSingleDiskAdaptor.h
  3039. * src/DiskAdaptor.h
  3040. * src/MultiDiskAdaptor.h
  3041. * src/RequestGroup.cc
  3042. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3043. MultiDiskAdaptor.
  3044. * src/DefaultPieceStorage.cc
  3045. * src/MultiDiskAdaptor.cc
  3046. * src/MultiDiskAdaptor.h
  3047. * test/MultiDiskAdaptorTest.cc
  3048. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3049. FileEntry::getPath() contains store(top level) directory to
  3050. simplify path handling operation. In the previous implementation,
  3051. store directory is concatenated to FileEntry::getPath() in
  3052. DownloadContext.
  3053. * src/BtDependency.cc
  3054. * src/BtPostDownloadHandler.cc
  3055. * src/CopyDiskAdaptor.cc
  3056. * src/DefaultBtContext.cc
  3057. * src/DirectDiskAdaptor.cc
  3058. * src/FileEntry.cc
  3059. * src/FileEntry.h
  3060. * src/FtpNegotiationCommand.cc
  3061. * src/HttpResponse.cc
  3062. * src/HttpResponseCommand.cc
  3063. * src/Metalink2RequestGroup.cc
  3064. * src/MultiDiskAdaptor.cc
  3065. * src/MultiDiskAdaptor.h
  3066. * src/MultiFileAllocationIterator.cc
  3067. * src/RequestGroup.cc
  3068. * src/SingleFileDownloadContext.cc
  3069. * src/SingleFileDownloadContext.h
  3070. * src/download_helper.cc
  3071. * test/BtDependencyTest.cc
  3072. * test/CopyDiskAdaptorTest.cc
  3073. * test/DefaultBtContextTest.cc
  3074. * test/DefaultBtProgressInfoFileTest.cc
  3075. * test/DirectDiskAdaptorTest.cc
  3076. * test/DownloadHelperTest.cc
  3077. * test/FileEntryTest.cc
  3078. * test/MultiDiskAdaptorTest.cc
  3079. * test/MultiFileAllocationIteratorTest.cc
  3080. * test/RequestGroupTest.cc
  3081. * test/SingleFileDownloadContextTest.cc
  3082. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  3083. Fixed compiler warning
  3084. * src/download_helper.cc
  3085. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3086. Throw exception if same infohash torrent is now downloading.
  3087. * src/RequestGroup.cc
  3088. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3089. Added --dry-run option. In this mode, aria2 just checks whether
  3090. the remote file is available and doesn't download data. This
  3091. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3092. are canceled in this mode.
  3093. * src/FtpNegotiationCommand.cc
  3094. * src/HttpResponseCommand.cc
  3095. * src/HttpResponseCommand.h
  3096. * src/OptionHandlerFactory.cc
  3097. * src/RequestGroup.cc
  3098. * src/RequestGroupMan.cc
  3099. * src/prefs.cc
  3100. * src/prefs.h
  3101. * src/usage_text.h
  3102. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3103. Fixed compiler waring
  3104. * test/UriListParserTest.cc
  3105. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3106. Parse options in -i list using OptionParser.
  3107. * src/UriListParser.cc
  3108. * src/UriListParser.h
  3109. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3110. Don't reset URI in retry to avoid additional round trips because
  3111. of redirects.
  3112. * src/AbstractCommand.cc
  3113. * src/OptionHandlerFactory.cc
  3114. * src/prefs.cc
  3115. * src/prefs.h
  3116. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3117. Declared hide() in OptionHandler.
  3118. * src/NameMatchOptionHandler.h
  3119. * src/OptionHandler.h
  3120. * src/OptionHandlerImpl.h
  3121. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3122. Updated doc
  3123. * src/Peer.h
  3124. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  3125. Added log message in setStatusInternal()
  3126. * src/ServerStat.cc
  3127. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  3128. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3129. effectively exclude failed server.
  3130. * src/AbstractCommand.cc
  3131. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  3132. Added --index-out option to specify each file path for torrent.
  3133. Here index shown in --show-files option is used to specify which
  3134. file path should be altered. For example, to change the file path
  3135. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3136. option multiple times: --index-out=1=aria2.tar.bz2
  3137. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3138. available. This option can be specified in -i list.
  3139. * src/DefaultBtContext.cc
  3140. * src/DefaultBtContext.h
  3141. * src/MultiDiskAdaptor.cc
  3142. * src/MultiDiskAdaptor.h
  3143. * src/MultiFileAllocationIterator.cc
  3144. * src/OptionHandlerFactory.cc
  3145. * src/OptionHandlerImpl.h
  3146. * src/Util.cc
  3147. * src/Util.h
  3148. * src/download_helper.cc
  3149. * src/prefs.cc
  3150. * src/prefs.h
  3151. * src/usage_text.h
  3152. * test/DefaultBtContextTest.cc
  3153. * test/MultiDiskAdaptorTest.cc
  3154. * test/MultiFileAllocationIteratorTest.cc
  3155. * test/UtilTest.cc
  3156. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  3157. Use Util::pathJoin()
  3158. * src/MetalinkParserController.cc
  3159. * test/test.xml
  3160. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  3161. Use Util::pathJoin()
  3162. * src/DefaultBtContext.cc
  3163. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  3164. Added Util::pathJoin()
  3165. * src/Util.h
  3166. * test/UtilTest.cc
  3167. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  3168. Applied basename function to remove directory element in
  3169. content-disposition value.
  3170. Return empty string if content-disposition value is ".." or ".".
  3171. * src/Util.cc
  3172. * test/UtilTest.cc
  3173. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3174. Added --max-overall-download-limit in man page.
  3175. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3176. * doc/aria2c.1.txt
  3177. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3178. Added --max-overall-download-limit option. Now --max-upload-limit
  3179. option is not ignored when --max-overall-upload-limit option has
  3180. non-zero value. aria2 checks download(upload) speed in the order:
  3181. first checks overall speed limit and if it is not exceeded, then
  3182. checks speed limit per download. Thus you can specify both
  3183. value. For example, set --max-overall-download-limit=1M and
  3184. --max-download-limit=500K to prevent from one download from eating
  3185. all overall speed limit.
  3186. * src/DefaultBtInteractive.cc
  3187. * src/DefaultBtInteractive.h
  3188. * src/DefaultBtMessageDispatcher.cc
  3189. * src/DefaultBtMessageDispatcher.h
  3190. * src/DownloadCommand.cc
  3191. * src/DownloadCommand.h
  3192. * src/FtpNegotiationCommand.cc
  3193. * src/HttpResponseCommand.cc
  3194. * src/OptionHandlerFactory.cc
  3195. * src/PeerInteractionCommand.cc
  3196. * src/RequestGroup.cc
  3197. * src/RequestGroup.h
  3198. * src/RequestGroupMan.cc
  3199. * src/RequestGroupMan.h
  3200. * src/prefs.cc
  3201. * src/prefs.h
  3202. * src/usage_text.h
  3203. * test/DefaultBtMessageDispatcherTest.cc
  3204. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3205. Documented select-file option in Input File section.
  3206. Documented --http-auth-challenge option.
  3207. * doc/aria2c.1.txt
  3208. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3209. Now select-file can be specified in the uri list(-i list).
  3210. * src/BtContext.cc
  3211. * src/BtContext.h
  3212. * src/RequestGroup.cc
  3213. * src/Sequence.h
  3214. * src/download_helper.cc
  3215. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3216. Made the upper value of --max-concurrent-downloads options unlimited.
  3217. * src/OptionHandlerFactory.cc
  3218. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3219. Fixed the bug that disk writer is not created even if it shares
  3220. same piece with the preceding file if the length of previous file
  3221. is 0.
  3222. * src/MultiDiskAdaptor.cc
  3223. * test/MultiDiskAdaptorTest.cc
  3224. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  3225. In BitTorrent, Open files in read-only mode for hash check. After
  3226. that, re-open file in read/write mode only when the download is
  3227. not finished.
  3228. * src/AbstractDiskWriter.cc
  3229. * src/AbstractDiskWriter.h
  3230. * src/AbstractSingleDiskAdaptor.cc
  3231. * src/AbstractSingleDiskAdaptor.h
  3232. * src/BtCheckIntegrityEntry.cc
  3233. * src/DiskAdaptor.h
  3234. * src/DiskWriter.h
  3235. * src/MultiDiskAdaptor.cc
  3236. * src/MultiDiskAdaptor.h
  3237. * src/RequestGroup.cc
  3238. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  3239. Added --http-auth-challenge option. If it is set to true(by
  3240. default), aria2 sends HTTP authorization header only when it is
  3241. requested by the server. If false is set, then authorization
  3242. header is always sent to the server. This is useful for servers
  3243. that don't respond 401 code when authentication is required.
  3244. There is an exception: if username and password are embedded in
  3245. URI, authorization header is always sent to the server regardless
  3246. of this option.
  3247. * src/AuthConfigFactory.cc
  3248. * src/HttpSkipResponseCommand.cc
  3249. * src/OptionHandlerFactory.cc
  3250. * src/prefs.cc
  3251. * src/prefs.h
  3252. * src/usage_text.h
  3253. * test/AuthConfigFactoryTest.cc
  3254. * test/HttpRequestTest.cc
  3255. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3256. * Release 1.2.0
  3257. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3258. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3259. Thanks to all translators.
  3260. * po/es.po
  3261. * po/ja.po
  3262. * po/ru.po
  3263. * po/uk.po
  3264. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3265. Call deleteSocketForReadCheck() before socket is closed.
  3266. * src/HttpListenCommand.cc
  3267. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3268. Defined virtual destructor for BObject.
  3269. * src/bencode.h
  3270. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3271. Rewritten BDE to make it efficient.
  3272. * src/bencode.cc
  3273. * src/bencode.h
  3274. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3275. Removed function throw list.
  3276. * src/bencode.cc
  3277. * src/bencode.h
  3278. * test/BencodeTest.cc
  3279. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3280. Enclosed all URLs in double quotes in command-line examples.
  3281. * doc/aria2c.1.txt
  3282. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3283. Updated reference/see also section.
  3284. * README
  3285. * doc/aria2c.1.txt
  3286. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3287. Reorganized man page based on man man-pages.
  3288. * doc/aria2c.1.txt
  3289. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3290. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3291. because same documents are available in man page. Added
  3292. References section.
  3293. * README
  3294. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3295. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3296. PERFORMANCE PROFILE section.
  3297. * doc/aria2c.1.txt
  3298. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3299. Rewritten the section for configuration file.
  3300. * README
  3301. * doc/aria2c.1.txt
  3302. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3303. Fixed the segmentation fault during execution of choking algorithm
  3304. in leecher state because of broken compare operator
  3305. implementation.
  3306. * src/BtLeecherStateChoke.cc
  3307. * src/BtLeecherStateChoke.h
  3308. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3309. Open file in binary mode.
  3310. * src/CookieStorage.cc
  3311. * src/DHTSetup.cc
  3312. * src/DHTUtil.cc
  3313. * src/Netrc.cc
  3314. * src/NsCookieParser.cc
  3315. * src/ProtocolDetector.cc
  3316. * src/RequestGroupMan.cc
  3317. * src/Signature.cc
  3318. * src/bencode.cc
  3319. * src/download_helper.cc
  3320. * src/option_processing.cc
  3321. * test/CookieParserTest.cc
  3322. * test/DefaultBtProgressInfoFileTest.cc
  3323. * test/FileTest.cc
  3324. * test/GZipDecoderTest.cc
  3325. * test/RequestGroupManTest.cc
  3326. * test/SignatureTest.cc
  3327. * test/SingleFileAllocationIteratorTest.cc
  3328. * test/UriListParserTest.cc
  3329. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3330. Removed operator[] because it is ambiguous with built-in []
  3331. operator.
  3332. * src/array_fun.h
  3333. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3334. Fixed compile error
  3335. * src/OptionParser.cc
  3336. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3337. Added missing call to arrayWrapperConst
  3338. * test/array_funTest.cc
  3339. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3340. Use array_wrapper instead of array_ptr.
  3341. * src/DHTRoutingTableDeserializer.cc
  3342. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3343. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3344. * src/array_fun.h
  3345. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3346. Added array_wrapper template.
  3347. * src/array_fun.h
  3348. * test/array_funTest.cc
  3349. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3350. Use operator T* of array_ptr.
  3351. * src/OptionParser.cc
  3352. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3353. Use localhost instead of 127.0.0.1
  3354. * test/FtpConnectionTest.cc
  3355. * test/MSEHandshakeTest.cc
  3356. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3357. Added operator T*
  3358. * src/array_fun.h
  3359. * test/array_funTest.cc
  3360. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3361. Use dynamically allocated char array to detect memory access
  3362. violation.
  3363. * src/DHTRoutingTableDeserializer.cc
  3364. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3365. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3366. defined.
  3367. * src/PeerMessageUtil.cc
  3368. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3369. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3370. * configure.ac
  3371. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3372. Added a check to see struct sockaddr_in has sin_len member.
  3373. * configure.ac
  3374. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3375. Fixed buffer overrun.
  3376. * src/DHTRoutingTableDeserializer.cc
  3377. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3378. Added LL for long long int constant.
  3379. * test/FtpConnectionTest.cc
  3380. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3381. Casted to unsigned int to suppress compiler warning on netbsd.
  3382. * src/BtRuntime.h
  3383. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3384. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3385. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3386. type time_t.
  3387. * src/SimpleLogger.cc
  3388. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3389. Added test for FtpConnection::receiveSizeResponse().
  3390. * test/FtpConnectionTest.cc
  3391. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3392. Fix epoll error on the old kernel 2.6.8 or ealier.
  3393. * src/EpollEventPoll.cc
  3394. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3395. Use Util::parseLLInt instead of sscanf for portability. The
  3396. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3397. * src/FtpConnection.cc
  3398. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3399. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3400. block. It should not filter anything.
  3401. * src/BitfieldMan.cc
  3402. * src/ConsoleStatCalc.cc
  3403. * test/BitfieldManTest.cc
  3404. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3405. Fixed the bug that the boolean options that don't take arguments
  3406. don't work.
  3407. * src/OptionHandlerImpl.h
  3408. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3409. Fixed broken selected file BitTorrent download.
  3410. * src/MultiDiskAdaptor.cc
  3411. * test/MultiDiskAdaptorTest.cc
  3412. * test/MultiFileAllocationIteratorTest.cc
  3413. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3414. Fixed #define guard for EpollEventPoll
  3415. * src/EpollEventPoll.h
  3416. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3417. Wait 2 seconds. 1 second is sometimes not enough.
  3418. * test/TimeSeedCriteriaTest.cc
  3419. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3420. Use localhost instead of 127.0.0.1.
  3421. * test/DHTConnectionImplTest.cc
  3422. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3423. Suppressed compiler warning.
  3424. * src/AdaptiveURISelector.cc
  3425. * src/DefaultPieceStorage.cc
  3426. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3427. Defined virtual destructor.
  3428. * src/MetalinkParserState.h
  3429. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3430. Give NULL for second argument of getaddrinfo instead of "0".
  3431. * src/NameResolver.cc
  3432. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3433. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3434. included strptime doesn't parse data for this format.
  3435. * src/FtpConnection.cc
  3436. * test/FtpConnectionTest.cc
  3437. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3438. Removed tests giving -1 for unsigned argument.
  3439. * test/SingleFileDownloadContextTest.cc
  3440. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3441. Don't use sha256 in tests because it might not be supported by the
  3442. SSL library.
  3443. * test/MetalinkProcessorTest.cc
  3444. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3445. Removed tests giving -1 for unsigned argument.
  3446. * test/AlphaNumberDecoratorTest
  3447. * test/BitfieldManTest.cc
  3448. * test/DefaultBtContextTest.cc
  3449. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3450. Fixed compile error without libcares when epoll is available.
  3451. * src/EpollEventPoll.cc
  3452. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  3453. Included fstream instead of iostream.
  3454. * test/SignatureTest.cc
  3455. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3456. Removed #include <algorithm>
  3457. * test/RequestGroupTest.cc
  3458. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3459. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3460. using RequestGroup::extractURIResult().
  3461. * src/AdaptiveURISelector.cc
  3462. * src/RequestGroup.cc
  3463. * src/RequestGroup.h
  3464. * test/RequestGroupTest.cc
  3465. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3466. Added tests for array_ptr.
  3467. * test/array_funTest.cc
  3468. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3469. Don't send ip parameter to a tracker if ip parameter is empty
  3470. string.
  3471. * src/DefaultBtAnnounce.cc
  3472. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3473. Adjusted line feed.
  3474. * src/version_usage.cc
  3475. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3476. Print tags, possible values when OptionHandlerException is caught.
  3477. * src/option_processing.cc
  3478. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3479. Changed the message for FatalException.
  3480. * src/OptionParser.cc
  3481. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3482. Documented --bt-external-ip option in man page. Updated man pages
  3483. for --proxy-method option.
  3484. * doc/aria2c.1.txt
  3485. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3486. Use GET method for FTP via HTTP proxy.
  3487. * src/FtpInitiateConnectionCommand.cc
  3488. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3489. Changed the default value of --proxy-method option from 'tunnel'
  3490. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3491. option.
  3492. * src/AbstractCommand.cc
  3493. * src/AbstractCommand.h
  3494. * src/FtpInitiateConnectionCommand.cc
  3495. * src/HttpDownloadCommand.cc
  3496. * src/HttpInitiateConnectionCommand.cc
  3497. * src/HttpInitiateConnectionCommand.h
  3498. * src/OptionHandlerFactory.cc
  3499. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3500. Initialized _logger
  3501. * src/SelectEventPoll.cc
  3502. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3503. Defined a copy constructor for the same type.
  3504. * src/SharedHandle.h
  3505. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3506. Added OptionParser::parseArg() which internally uses getopt_long
  3507. to parse command-line options. All command-line options are now
  3508. configured by OptionHandler. No manual editing of struct option*
  3509. is required any more.
  3510. * src/NameMatchOptionHandler.h
  3511. * src/OptionHandler.h
  3512. * src/OptionHandlerFactory.cc
  3513. * src/OptionHandlerImpl.h
  3514. * src/OptionParser.cc
  3515. * src/OptionParser.h
  3516. * src/array_fun.h
  3517. * src/main.cc
  3518. * src/option_processing.cc
  3519. * test/OptionHandlerTest.cc
  3520. * test/OptionParserTest.cc
  3521. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3522. Fixed configure error with --disable-epoll
  3523. * configure.ac
  3524. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3525. Fixed compile error when HAVE_EPOLL is not defined.
  3526. Fixed linker error on bigendian systems.
  3527. * src/SocketCore.cc
  3528. * src/SocketCore.h
  3529. * test/DefaultBtProgressInfoFileTest.cc
  3530. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  3531. Added --bt-external-ip option. You can specify the external IP
  3532. address to report to a BitTorrent tracker. Although this function
  3533. is named 'external', it can accept any kind of IP addresses.
  3534. * src/DefaultBtAnnounce.cc
  3535. * src/OptionHandlerFactory.cc
  3536. * src/option_processing.cc
  3537. * src/prefs.cc
  3538. * src/prefs.h
  3539. * src/usage_text.h
  3540. * test/DefaultBtAnnounceTest.cc
  3541. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  3542. Extracted the algorithm to find the longest incremental sequence
  3543. as max_sequence template.
  3544. * src/LongestSequencePieceSelector.cc
  3545. * src/a2algo.h
  3546. * test/Makefile.am
  3547. * test/a2algoTest.cc
  3548. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  3549. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3550. * src/usage_text.h
  3551. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  3552. Updated doc for --uri-selector, --http-server-listen-port and
  3553. --enable-http-server option. Documented --event-poll option.
  3554. * doc/aria2c.1.txt
  3555. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  3556. Updated doc for --enable-http-server.
  3557. * src/usage_text.h
  3558. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  3559. Documented --http-server-listen-port and --enable-http-server in
  3560. man page.
  3561. * doc/aria2c.1.txt
  3562. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3563. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3564. translations. Thanks to all translators.
  3565. * po/es.po
  3566. * po/id.po
  3567. * po/it.po
  3568. * po/ru.po
  3569. * po/uk.po
  3570. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3571. Bump up version number to 1.2.0
  3572. * configure.ac
  3573. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3574. BtContext::getAnnounceTiers() now returns const reference.
  3575. * src/BtContext.h
  3576. * src/DefaultBtContext.cc
  3577. * src/DefaultBtContext.h
  3578. * test/MockBtContext.h
  3579. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3580. Change the number of retries for tracker request based on the
  3581. number of available tracker in a torrent file.
  3582. * src/TrackerWatcherCommand.cc
  3583. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3584. Added _maxTries property to RequestGroup and assign the option
  3585. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3586. RequestGroup::getMaxTries() instead of
  3587. Option::getAsInt(PREF_MAX_TRIES).
  3588. * src/AbstractCommand.cc
  3589. * src/RequestGroup.cc
  3590. * src/RequestGroup.h
  3591. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3592. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3593. Mandriva. I modified the patch: make RequestGroup have the
  3594. timeout value and AdaptiveURISelector directly modifies that
  3595. value.
  3596. * src/AbstractCommand.cc
  3597. * src/AdaptiveURISelector.cc
  3598. * src/AdaptiveURISelector.h
  3599. * src/FtpNegotiationCommand.cc
  3600. * src/RequestGroup.cc
  3601. * src/RequestGroup.h
  3602. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3603. Fixed compiler warning
  3604. * test/IteratableChecksumValidatorTest.cc
  3605. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3606. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3607. integrated downloads. This PieceSelector subclass finds the
  3608. longest continuous sequence in the available missing pieces and
  3609. selects the last index of such sequence. This makes HTTP/FTP
  3610. connections less interrupted by the pieces obtained by BitTorrent
  3611. peers.
  3612. * src/DefaultPieceStorage.cc
  3613. * src/DefaultPieceStorage.h
  3614. * src/LongestSequencePieceSelector.cc
  3615. * src/LongestSequencePieceSelector.h
  3616. * src/Makefile.am
  3617. * src/PieceSelector.h
  3618. * src/RarestPieceSelector.h
  3619. * src/RequestGroup.cc
  3620. * test/BtDependencyTest.cc
  3621. * test/DefaultPieceStorageTest.cc
  3622. * test/IteratableChecksumValidatorTest.cc
  3623. * test/LongestSequencePieceSelectorTest.cc
  3624. * test/Makefile.am
  3625. * test/SegmentManTest.cc
  3626. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3627. Fixed the bug that the average speed is wrong in
  3628. http/ftp/BitTorrent integrated download. Only the download bytes
  3629. in BitTorrent were considered.
  3630. * src/RequestGroup.cc
  3631. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3632. Choose port for BitTorrent/DHT randomly from the specified range.
  3633. * src/DHTConnectionImpl.cc
  3634. * src/PeerListenCommand.cc
  3635. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3636. Send HTTP Authorization header only if it is requested by the
  3637. server(response 401). There are some exceptions. The authorization
  3638. header for proxy is always sent if it is available without request
  3639. by the server. If username/password is specified in the URI, it
  3640. is immediately sent to the server without request by the server.
  3641. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3642. SharedHandle<AuthConfig>().
  3643. NetrcAuthResolver::resolveAuthConfig() returns
  3644. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3645. * src/AbstractAuthResolver.cc
  3646. * src/AbstractProxyRequestCommand.cc
  3647. * src/AuthConfigFactory.cc
  3648. * src/AuthConfigFactory.h
  3649. * src/HttpConnection.cc
  3650. * src/HttpRequest.cc
  3651. * src/HttpRequest.h
  3652. * src/HttpResponse.cc
  3653. * src/HttpResponseCommand.cc
  3654. * src/HttpSkipResponseCommand.cc
  3655. * test/AuthConfigFactoryTest.cc
  3656. * test/HttpRequestTest.cc
  3657. * test/HttpResponseTest.cc
  3658. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  3659. Remove leading "--" from help keyword and a substring after "="
  3660. from help keyword, so that one can query options by '-h--max-' or
  3661. '-hmax-peers=10'.
  3662. * src/option_processing.cc
  3663. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  3664. Rewritten PStringVisitor and its implementation.
  3665. * src/PStringBuildVisitor.cc
  3666. * src/PStringBuildVisitor.h
  3667. * src/PStringDatum.h
  3668. * src/PStringNumLoop.h
  3669. * src/PStringSegment.cc
  3670. * src/PStringSegment.h
  3671. * src/PStringSelect.h
  3672. * src/PStringVisitor.h
  3673. * src/download_helper.cc
  3674. * test/PStringBuildVisitorTest.cc
  3675. * test/ParameterizedStringParserTest.cc
  3676. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  3677. Persist connection between the built-in HTTP server and a client
  3678. if a client supports keep-alive. Fixed the bug that aria2 exits
  3679. when the HTTP server receives EOF from a client.
  3680. * src/HttpServer.cc
  3681. * src/HttpServer.h
  3682. * src/HttpServerCommand.cc
  3683. * src/HttpServerCommand.h
  3684. * src/HttpServerResponseCommand.cc
  3685. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  3686. Added experimental built-in HTTP server. Currently, when a client
  3687. accesses to the server, it responds with the current download
  3688. progress. By default, it is disabled. To enable the server, give
  3689. --enable-http-server option. To change the default port number
  3690. for the server to listen to, use --http-server-listen-port option.
  3691. The response HTML is very simple and refreshes it self each 1
  3692. second. Because of this refresh, you see flicker in normal web
  3693. browser such as Firefox. I recommend to use console-based browser
  3694. such as elinks, w3m. To connect to the server, run 'elinks
  3695. http://localhost:6800/' while running aria2. Please replace port
  3696. number '6800'(which is default) with your preference.
  3697. * src/DownloadEngineFactory.cc
  3698. * src/HttpHeader.cc
  3699. * src/HttpHeader.h
  3700. * src/HttpHeaderProcessor.cc
  3701. * src/HttpHeaderProcessor.h
  3702. * src/HttpListenCommand.cc
  3703. * src/HttpListenCommand.h
  3704. * src/HttpServer.cc
  3705. * src/HttpServer.h
  3706. * src/HttpServerCommand.cc
  3707. * src/HttpServerCommand.h
  3708. * src/HttpServerResponseCommand.cc
  3709. * src/HttpServerResponseCommand.h
  3710. * src/Makefile.am
  3711. * src/OptionHandlerFactory.cc
  3712. * src/Util.cc
  3713. * src/Util.h
  3714. * src/help_tags.h
  3715. * src/option_processing.cc
  3716. * src/prefs.cc
  3717. * src/prefs.h
  3718. * src/usage_text.h
  3719. * test/HttpHeaderProcessorTest.cc
  3720. * test/UtilTest.cc
  3721. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3722. Removed.
  3723. * src/CheckIntegrityMan.cc
  3724. * src/FileAllocationMan.cc
  3725. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3726. Made (piece) hash check sequential for each RequestGroup because
  3727. simultaneous hash check is slower than sequential execution.
  3728. * src/CheckIntegrityCommand.cc
  3729. * src/CheckIntegrityDispatcherCommand.cc
  3730. * src/CheckIntegrityDispatcherCommand.h
  3731. * src/CheckIntegrityMan.h
  3732. * src/ConsoleStatCalc.cc
  3733. * src/DownloadCommand.cc
  3734. * src/DownloadEngine.cc
  3735. * src/DownloadEngine.h
  3736. * src/DownloadEngineFactory.cc
  3737. * src/Makefile.am
  3738. * src/Makefile.in
  3739. * src/RequestGroup.cc
  3740. * src/StatCalc.h
  3741. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3742. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3743. SequentialDispatcherCommand.
  3744. * src/FileAllocationDispatcherCommand.cc
  3745. * src/SequentialDispatcherCommand.h
  3746. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3747. Rewritten FileAllocationDispatcherCommand using brand new
  3748. SequentialDispatcherCommand.
  3749. * src/DownloadEngineFactory.cc
  3750. * src/FileAllocationCommand.cc
  3751. * src/FileAllocationDispatcherCommand.cc
  3752. * src/FileAllocationDispatcherCommand.h
  3753. * src/Makefile.am
  3754. * src/SequentialDispatcherCommand.h
  3755. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3756. Replaced FileAllocationMan with
  3757. SequentialPicker<FileAllocationEntry>.
  3758. * src/BtCheckIntegrityEntry.cc
  3759. * src/ConsoleStatCalc.cc
  3760. * src/DownloadEngine.cc
  3761. * src/DownloadEngine.h
  3762. * src/DownloadEngineFactory.cc
  3763. * src/FileAllocationCommand.cc
  3764. * src/FileAllocationDispatcherCommand.cc
  3765. * src/FileAllocationMan.h
  3766. * src/Makefile.am
  3767. * src/SequentialPicker.h
  3768. * src/StatCalc.h
  3769. * src/StreamCheckIntegrityEntry.cc
  3770. * test/Makefile.am
  3771. * test/SequentialPickerTest.cc
  3772. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3773. Added doc for adaptive URI selector.
  3774. * doc/aria2c.1.txt
  3775. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3776. Added doc for adaptive URI selector.
  3777. * src/usage_text.h
  3778. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3779. Added doc for --bt-max-peers option.
  3780. * doc/aria2c.1.txt
  3781. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3782. Added doc for --bt-hash-check-seed option.
  3783. * doc/aria2c.1.txt
  3784. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3785. Documented exit codes.
  3786. * doc/aria2c.1.txt
  3787. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  3788. Added --bt-max-peers option to specify the maximum number of peers
  3789. per torrent. 0 means unlimited number of peers.
  3790. * src/ActivePeerConnectionCommand.cc
  3791. * src/BtRuntime.h
  3792. * src/DefaultPeerStorage.cc
  3793. * src/DefaultPeerStorage.h
  3794. * src/OptionHandlerFactory.cc
  3795. * src/RequestGroup.cc
  3796. * src/option_processing.cc
  3797. * src/prefs.cc
  3798. * src/prefs.h
  3799. * src/usage_text.h
  3800. * test/DefaultPeerStorageTest.cc
  3801. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  3802. Added --bt-hash-check-seed option. If true is given to this
  3803. option, after hash check using --check-integrity option and file
  3804. is complete, continue to seed file. If you want to check file and
  3805. download it only when it is damaged or incomplete, set this option
  3806. to false. This option has effect only on BitTorrent download.
  3807. The default value is true(This is the same behavior with the
  3808. previous release).
  3809. * src/BtCheckIntegrityEntry.cc
  3810. * src/OptionHandlerFactory.cc
  3811. * src/option_processing.cc
  3812. * src/prefs.cc
  3813. * src/prefs.h
  3814. * src/usage_text.h
  3815. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  3816. Updated copyright year.
  3817. * src/version_usage.cc
  3818. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  3819. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3820. * doc/aria2c.1.txt
  3821. * src/usage_text.h
  3822. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  3823. Made the max value of split option unlimited.
  3824. * doc/aria2c.1.txt
  3825. * src/OptionHandlerFactory.cc
  3826. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  3827. Fixed compile warning/error.
  3828. * src/DownloadResult.h
  3829. * src/HttpDownloadCommand.cc
  3830. * src/ServerStat.cc
  3831. * test/RequestGroupTest.cc
  3832. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  3833. Added --event-poll option to select the method for polling events.
  3834. The available methods are "select" and "epoll". "epoll" is
  3835. available on Linux only. The earlier release has the compile
  3836. option to choose from these methods.
  3837. * configure.ac
  3838. * src/RequestGroupMan.cc
  3839. * src/OptionHandlerFactory.cc
  3840. * src/EpollEventPoll.h
  3841. * src/StreamFileAllocationEntry.cc
  3842. * src/a2io.h
  3843. * src/SelectEventPoll.h
  3844. * src/option_processing.cc
  3845. * src/prefs.h
  3846. * src/EpollEventPoll.cc
  3847. * src/EventPoll.h
  3848. * src/SocketCore.h
  3849. * src/Makefile.am
  3850. * src/main.cc
  3851. * src/DownloadEngine.h
  3852. * src/SelectEventPoll.cc
  3853. * src/DownloadEngine.cc
  3854. * src/SocketCore.cc
  3855. * src/DownloadEngineFactory.cc
  3856. * src/Makefile.in
  3857. * src/prefs.cc
  3858. * src/usage_text.h
  3859. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  3860. Included RecoverableException.h from main.cc
  3861. * src/main.cc
  3862. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  3863. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3864. now returns last error encountered in the HTTP/FTP downloads as a
  3865. exit status value. If all downloads finished successfully, aria2
  3866. returns 0. The error code is defined in src/DownloadResult.h.
  3867. The error occurred in the download currently in progress is not
  3868. reported as a last error. If no error has encountered but there
  3869. are in progress or waiting downloads, aria2 returns 7.
  3870. * src/AbstractCommand.cc
  3871. * src/DlAbortEx.h
  3872. * src/DlRetryEx.h
  3873. * src/DownloadCommand.cc
  3874. * src/DownloadFailureException.h
  3875. * src/DownloadResult.h
  3876. * src/FtpNegotiationCommand.cc
  3877. * src/HttpSkipResponseCommand.cc
  3878. * src/Makefile.am
  3879. * src/MultiUrlRequestInfo.cc
  3880. * src/MultiUrlRequestInfo.h
  3881. * src/RecoverableException.h
  3882. * src/RequestGroup.cc
  3883. * src/RequestGroup.h
  3884. * src/RequestGroupMan.cc
  3885. * src/RequestGroupMan.h
  3886. * src/URIResult.cc
  3887. * src/URIResult.h
  3888. * src/main.cc
  3889. * src/option_processing.cc
  3890. * test/RequestGroupTest.cc
  3891. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  3892. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3893. patch adds AdaptiveURISelector, which selects one of the bests
  3894. mirrors for first and reserved connections. For supplementary
  3895. ones, it returns mirrors which has not been tested yet, and if
  3896. each of them already tested, returns mirrors which has to be
  3897. tested again. Otherwise, it doesn't return anymore mirrors.
  3898. * src/AdaptiveURISelector.cc
  3899. * src/AdaptiveURISelector.h
  3900. * src/FtpNegotiationCommand.cc
  3901. * src/HttpResponseCommand.cc
  3902. * src/Makefile.am
  3903. * src/Makefile.in
  3904. * src/OptionHandlerFactory.cc
  3905. * src/RequestGroup.cc
  3906. * src/RequestGroup.h
  3907. * src/RequestGroupMan.cc
  3908. * src/ServerStat.cc
  3909. * src/ServerStat.h
  3910. * src/ServerStatMan.cc
  3911. * src/SpeedCalc.cc
  3912. * src/URISelector.h
  3913. * src/prefs.cc
  3914. * src/prefs.h
  3915. * test/RequestGroupManTest.cc
  3916. * test/ServerStatManTest.cc
  3917. * test/ServerStatTest.cc
  3918. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  3919. Fixed unit test error.
  3920. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3921. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  3922. * Release 1.1.2
  3923. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  3924. Updated Russian translation. Thanks to the translators.
  3925. * po/ru.po
  3926. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  3927. Added the description of --use-head option to man page.
  3928. * doc/aria2c.1.txt
  3929. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  3930. Bump up version number to 1.1.2
  3931. * configure.ac
  3932. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  3933. Added --use-head option to toggle whether HEAD method should be
  3934. used in the first HTTP request. By default aria2 uses HEAD method
  3935. as the first request. When the server doesn't recognize HEAD, then
  3936. give aria2 --use-head=false to force aria2 to use GET method
  3937. instead.
  3938. * src/OptionHandlerFactory.cc
  3939. * src/RequestGroupMan.cc
  3940. * src/option_processing.cc
  3941. * src/prefs.cc
  3942. * src/prefs.h
  3943. * src/usage_text.h
  3944. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  3945. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3946. message is received before CHOKE message. The old implementation
  3947. doen't clear the use-bit of the piece when recieved REJECT
  3948. message.
  3949. * src/DefaultBtMessageDispatcher.cc
  3950. * test/DefaultBtMessageDispatcherTest.cc
  3951. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  3952. * Release 1.1.1
  3953. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  3954. Bump up version number to 1.1.1.
  3955. * configure.ac
  3956. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  3957. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3958. is printed repeatedly.
  3959. * src/ConsoleStatCalc.cc
  3960. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  3961. * Release 1.1.0
  3962. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  3963. Added ifdef clause for conditional compilation.
  3964. * src/main.cc
  3965. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  3966. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3967. translations. Thanks to all translators.
  3968. * po/ja.po
  3969. * po/ru.po
  3970. * po/uk.po
  3971. * po/zh_CN.po
  3972. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  3973. Added the preceding ">>> " before the message "Printing the
  3974. contents of file..." to make the output more readable.
  3975. * src/main.cc
  3976. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  3977. Added try-catch block in the loop in showFiles() to continue the
  3978. operation even if the exception occurred in one file.
  3979. * src/main.cc (showFiles)
  3980. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  3981. Made messages in showFiles() translatable.
  3982. * po/aria2.pot
  3983. * src/main.cc
  3984. * src/message.h
  3985. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  3986. Print the contents of Torrent/Metalink files are printed without
  3987. -T/-M options.
  3988. * src/main.cc
  3989. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3990. Escaped '--' with '\--'
  3991. * README
  3992. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3993. Updated "How to build" section in README. Mentioned about
  3994. --with-ca-bundle compile option.
  3995. * README
  3996. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3997. Bump up version number to 1.1.0.
  3998. * configure.ac
  3999. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4000. Added a note for --dht-listen-port option.
  4001. * doc/aria2c.1.txt
  4002. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4003. Update doc for --realtime-chunk-checksum option.
  4004. * doc/aria2c.1.txt
  4005. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4006. Update doc for --realtime-chunk-checksum option.
  4007. * src/usage_text.h
  4008. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4009. Updated French, Japanese, Russian and Ukrainian translations.
  4010. Thanks to all translators.
  4011. * po/fr.po
  4012. * po/ja.po
  4013. * po/ru.po
  4014. * po/uk.po
  4015. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4016. Renamed aria2c.pot to aria2.pot
  4017. * po/aria2.pot
  4018. * po/aria2c.pot: Removed.
  4019. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4020. Removed MetaEntry.h
  4021. * src/Makefile.am
  4022. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4023. Rename file by appending digits if a local file exists and its
  4024. file size is larger than that of remote file with --continue
  4025. option. The old implementation just throws exception in such case.
  4026. * src/RequestGroup.cc
  4027. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4028. Fixed the bug that download progress summary is not printed in the
  4029. interval specified by the option.
  4030. * src/ConsoleStatCalc.cc
  4031. * src/ConsoleStatCalc.h
  4032. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4033. Fixed compiler warning
  4034. * src/Cookie.cc
  4035. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4036. Fixed the cookie implementation based on RFC2965.
  4037. Now if a value in domain field is not started with dot, then
  4038. prepend dot. That means a cookie with domain=sf.net is sent to
  4039. wiki.sf.net.
  4040. * src/Cookie.cc
  4041. * test/CookieParserTest.cc
  4042. * test/CookieStorageTest.cc
  4043. * test/CookieTest.cc
  4044. * test/NsCookieParserTest.cc
  4045. * test/Sqlite3MozCookieParserTest.cc
  4046. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4047. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4048. is enabled and the server doesn't support keep-alive.
  4049. * src/AbstractCommand.cc
  4050. * src/DownloadCommand.cc
  4051. * src/HttpDownloadCommand.cc
  4052. * src/HttpDownloadCommand.h
  4053. * src/HttpResponseCommand.cc
  4054. * src/Request.cc
  4055. * src/Request.h
  4056. * test/RequestTest.cc
  4057. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4058. Removed Dictionary/List/Data and its related classes.
  4059. * src/BencodeVisitor.cc: Removed.
  4060. * src/BencodeVisitor.h: Removed.
  4061. * src/Data.cc: Removed.
  4062. * src/Data.h: Removed.
  4063. * src/Dictionary.cc: Removed.
  4064. * src/Dictionary.h: Removed.
  4065. * src/List.cc: Removed.
  4066. * src/List.h: Removed.
  4067. * src/Makefile.am
  4068. * src/MetaEntry.h: Removed.
  4069. * src/MetaEntryVisitor.h: Removed.
  4070. * src/MetaFileUtil.cc: Removed.
  4071. * src/MetaFileUtil.h: Removed.
  4072. * test/BencodeVisitorTest.cc: Removed.
  4073. * test/DataTest.cc: Removed.
  4074. * test/DictionaryTest.cc: Removed.
  4075. * test/ListTest.cc: Removed.
  4076. * test/Makefile.am
  4077. * test/MetaFileUtilTest.cc: Removed.
  4078. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4079. Removed include of MetaEntry.h
  4080. * test/DHTMessageTrackerEntryTest.cc
  4081. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4082. Use BDE instead of Dictionary/List/Data.
  4083. * src/AnnounceList.cc
  4084. * src/AnnounceList.h
  4085. * test/AnnounceListTest.cc
  4086. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4087. Use BDE instead of Dictionary/List/Data.
  4088. * src/DHTAbstractMessage.cc
  4089. * src/DHTAbstractMessage.h
  4090. * src/DHTAnnouncePeerMessage.cc
  4091. * src/DHTAnnouncePeerMessage.h
  4092. * src/DHTAnnouncePeerReplyMessage.cc
  4093. * src/DHTAnnouncePeerReplyMessage.h
  4094. * src/DHTFindNodeMessage.cc
  4095. * src/DHTFindNodeMessage.h
  4096. * src/DHTFindNodeReplyMessage.cc
  4097. * src/DHTFindNodeReplyMessage.h
  4098. * src/DHTGetPeersMessage.cc
  4099. * src/DHTGetPeersMessage.h
  4100. * src/DHTGetPeersReplyMessage.cc
  4101. * src/DHTGetPeersReplyMessage.h
  4102. * src/DHTMessageFactory.h
  4103. * src/DHTMessageFactoryImpl.cc
  4104. * src/DHTMessageFactoryImpl.h
  4105. * src/DHTMessageReceiver.cc
  4106. * src/DHTMessageTracker.cc
  4107. * src/DHTMessageTracker.h
  4108. * src/DHTPingMessage.cc
  4109. * src/DHTPingMessage.h
  4110. * src/DHTPingReplyMessage.cc
  4111. * src/DHTPingReplyMessage.h
  4112. * src/DHTQueryMessage.cc
  4113. * src/DHTQueryMessage.h
  4114. * src/DHTResponseMessage.cc
  4115. * src/DHTResponseMessage.h
  4116. * test/DHTAnnouncePeerMessageTest.cc
  4117. * test/DHTAnnouncePeerReplyMessageTest.cc
  4118. * test/DHTFindNodeMessageTest.cc
  4119. * test/DHTFindNodeReplyMessageTest.cc
  4120. * test/DHTGetPeersMessageTest.cc
  4121. * test/DHTGetPeersReplyMessageTest.cc
  4122. * test/DHTMessageFactoryImplTest.cc
  4123. * test/DHTMessageTrackerTest.cc
  4124. * test/DHTPingMessageTest.cc
  4125. * test/DHTPingReplyMessageTest.cc
  4126. * test/MockDHTMessageFactory.h
  4127. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4128. Added tests the case where length < 0 is specified.
  4129. * test/BencodeTest.cc
  4130. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4131. Fixed memory leak in decoderawstring()
  4132. * src/bencode.cc
  4133. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4134. Added missing #ifdef guard. Added uc() function for String and
  4135. removeKey() for Dict.
  4136. * src/bencode.cc
  4137. * src/bencode.h
  4138. * test/BencodeTest.cc
  4139. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  4140. Use BDE instead of Dictionary/List/Data.
  4141. * src/HandshakeExtensionMessage.cc
  4142. * src/HandshakeExtensionMessage.h
  4143. * test/HandshakeExtensionMessageTest.cc
  4144. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  4145. Added --max-overall-upload-limit option. This option limits the
  4146. overall upload speed. Stated in help message that the existing
  4147. --max-upload-limit option limits the upload speed per each
  4148. torrent. Man page is also updated.
  4149. * doc/aria2c.1.txt
  4150. * src/DefaultBtMessageDispatcher.cc
  4151. * src/DefaultBtMessageDispatcher.h
  4152. * src/OptionHandlerFactory.cc
  4153. * src/PeerInteractionCommand.cc
  4154. * src/option_processing.cc
  4155. * src/prefs.cc
  4156. * src/prefs.h
  4157. * src/usage_text.h
  4158. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  4159. Use BDE instead of Dictionary/List/Data classes.
  4160. * src/CompactPeerListProcessor.cc
  4161. * src/CompactPeerListProcessor.h
  4162. * src/DefaultBtAnnounce.cc
  4163. * src/DefaultBtContext.cc
  4164. * src/DefaultBtContext.h
  4165. * src/DefaultPeerListProcessor.cc
  4166. * src/DefaultPeerListProcessor.h
  4167. * src/DelegatingPeerListProcessor.cc
  4168. * src/DelegatingPeerListProcessor.h
  4169. * src/PeerListProcessor.h
  4170. * src/UTPexExtensionMessage.cc
  4171. * src/Util.h
  4172. * src/message.h
  4173. * test/DefaultBtContextTest.cc
  4174. * test/DefaultPeerListProcessorTest.cc
  4175. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  4176. Added bencode helper functions and BDE class.
  4177. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4178. * src/Makefile.am
  4179. * src/bencode.cc
  4180. * src/bencode.h
  4181. * test/BencodeTest.cc
  4182. * test/Makefile.am
  4183. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  4184. Fixed the bug that bad URI is sent to the tracker when the announe
  4185. URI in torrent file includes query.
  4186. * src/DefaultBtAnnounce.cc
  4187. * test/DefaultBtAnnounceTest.cc
  4188. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  4189. Added Option::blank().
  4190. Use !Option::blank(name) instead of Option::defined(name) for
  4191. the options that take filename.
  4192. * src/MultiUrlRequestInfo.cc
  4193. * src/Option.cc
  4194. * src/Option.h
  4195. * src/main.cc
  4196. * src/option_processing.cc
  4197. * test/OptionTest.cc
  4198. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  4199. Documented the default value of --check-certificate option in man
  4200. page.
  4201. * doc/aria2c.1.txt
  4202. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  4203. Enabled --check-certificate by default. Added compile
  4204. time(configure) option --with-ca-bundle to specify CA bundle.
  4205. Warn if --check-certificate=true and --ca-certificate is not
  4206. specified or loading CA certificate is failed.
  4207. * configure.ac
  4208. * src/MultiUrlRequestInfo.cc
  4209. * src/OptionHandlerFactory.cc
  4210. * src/message.h
  4211. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  4212. Mentioned https tag in help option.
  4213. * doc/aria2c.1.txt
  4214. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  4215. Added `https' tag to help option category. Added https tag to
  4216. --ca-certificate, --certificate, --check-certificate and
  4217. --private-key option.
  4218. * src/OptionHandlerFactory.cc
  4219. * src/help_tags.h
  4220. * src/option_processing.cc
  4221. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4222. Changed the package name from `aria2c' to `aria2' in order to fix
  4223. the packaging issue in Debian and Fedora. The name of the
  4224. executable is not changed.
  4225. * configure.ac
  4226. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4227. Fixed typos
  4228. * src/usage_text.h
  4229. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4230. Fixed typos and updated doc.
  4231. * README
  4232. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4233. Fixed typos
  4234. * doc/aria2c.1.txt
  4235. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4236. Fixed typos
  4237. * src/usage_text.h
  4238. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  4239. Print a message when no files to download.
  4240. * src/download_helper.cc
  4241. * src/main.cc
  4242. * src/message.h
  4243. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  4244. RFC3986 complied Percent-Encoding(urlencode).
  4245. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4246. ones.
  4247. * src/Request.cc
  4248. * src/Util.cc
  4249. * src/Util.h
  4250. * test/BtHandshakeMessageTest.cc
  4251. * test/DefaultBtAnnounceTest.cc
  4252. * test/DefaultBtContextTest.cc
  4253. * test/RequestTest.cc
  4254. * test/UtilTest.cc
  4255. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  4256. Fixed the bug that prevents aria2 from downloading 0-length files
  4257. via HTTP/FTP.
  4258. * src/DefaultBtContext.cc
  4259. * src/DefaultBtContext.h
  4260. * src/DownloadContext.h
  4261. * src/FtpNegotiationCommand.cc
  4262. * src/HttpResponseCommand.cc
  4263. * src/HttpResponseCommand.h
  4264. * src/RequestGroup.cc
  4265. * src/SingleFileDownloadContext.cc
  4266. * src/SingleFileDownloadContext.h
  4267. * test/BtPostDownloadHandlerTest.cc
  4268. * test/MetalinkPostDownloadHandlerTest.cc
  4269. * test/MockBtContext.h
  4270. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  4271. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4272. * src/option_processing.cc
  4273. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  4274. Applied aria2-1.0.1-mingw.patch.
  4275. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4276. mingw.
  4277. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4278. * src/SocketCore.cc
  4279. * src/a2netcompat.h
  4280. * test/SocketCoreTest.cc
  4281. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4282. * Release 1.0.1
  4283. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4284. Updated Ukrainian and Norwegian Nynorsk translations.
  4285. Thanks to all translators.
  4286. * po/nn.po
  4287. * po/uk.po
  4288. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4289. Don't show download result when -S option is used.
  4290. * src/main.cc
  4291. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4292. Bump up version number to 1.0.1
  4293. * configure.ac
  4294. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4295. Closed files after the test cases in MultiDiskWriterTest::
  4296. testResetDiskWriterEntries(). This will fix the unit test error
  4297. in mingw32 build.
  4298. * test/MultiDiskWriterTest.cc
  4299. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  4300. Use HEAD method to get file size from HTTP server for segmented
  4301. downloading.
  4302. The request to the BitTorrent Tracker always uses GET method because
  4303. the response of the tracker is small and it doesn't need segmented
  4304. download.
  4305. * src/FtpNegotiationCommand.cc
  4306. * src/HttpRequest.cc
  4307. * src/HttpResponseCommand.cc
  4308. * src/HttpSkipResponseCommand.cc
  4309. * src/RequestGroup.cc
  4310. * src/RequestGroup.h
  4311. * src/TrackerWatcherCommand.cc
  4312. * test/HttpRequestTest.cc
  4313. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  4314. Fixed the bug that causes floating exception when -T option is used and
  4315. no URIs are given.
  4316. * src/download_helper.cc
  4317. * test/DownloadHelperTest.cc
  4318. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4319. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4320. errors in MinGW:
  4321. Closed file after saving server stats (RequestGroupMan.cc)
  4322. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4323. Ignored case & handled 2-digit years (strptime.c)
  4324. Added missing suseconds_t definition (a2time.h)
  4325. Fixed socket CLOSE() define (SocketCore.cc)
  4326. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4327. Changed utime() test values from x000 to x00000 as MinGW failed on
  4328. values less than timezone offset from Unix epoch
  4329. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4330. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4331. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4332. handle negative dates (CookieParserTest.cc)
  4333. * src/a2time.h
  4334. * src/FtpConnection.cc
  4335. * src/RequestGroupMan.cc
  4336. * src/SocketCore.cc
  4337. * src/strptime.c
  4338. * test/CookieParserTest.cc
  4339. * test/CopyDiskAdaptorTest.cc
  4340. * test/FileTest.cc
  4341. * test/FtpConnectionTest.cc
  4342. * test/MultiDiskAdaptorTest.cc
  4343. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  4344. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4345. * doc/aria2c.1.txt
  4346. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4347. * Release 1.0.0
  4348. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4349. Added '~' to reserved characters.
  4350. * src/Util.cc
  4351. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4352. Do not urlencode Request::url in setUrl() because we want unmodified
  4353. URL using Request::getUrl()
  4354. * src/Request.cc
  4355. * src/Request.h
  4356. * test/RequestTest.cc
  4357. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4358. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4359. Thanks to all translators.
  4360. * po/bg.po
  4361. * po/fr.po
  4362. * po/ja.po
  4363. * po/ru.po
  4364. * po/uk.po
  4365. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4366. Bump up version number to 1.0.0
  4367. * configure.ac
  4368. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4369. Added nosqlite3 build to build_test.sh.
  4370. Renamed noxml as expat.
  4371. * build_test.sh
  4372. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4373. Updated INPUT FILE section.
  4374. * doc/aria2c.1.txt
  4375. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4376. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4377. on big endian systems because test .aria2 files are made for little
  4378. endian systems.
  4379. * test/DefaultBtProgressInfoFileTest.cc
  4380. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4381. Dropped ares support.
  4382. * README
  4383. * configure.ac
  4384. * m4/libares.m4: Removed.
  4385. * src/AsyncNameResolver.cc
  4386. * src/Makefile.am
  4387. * test/Makefile.am
  4388. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  4389. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4390. Removed const qualifier from DiskWriter::size().
  4391. * src/AbstractDiskWriter.cc
  4392. * src/AbstractDiskWriter.h
  4393. * src/ByteArrayDiskWriter.cc
  4394. * src/ByteArrayDiskWriter.h
  4395. * src/DiskWriter.h
  4396. * test/ByteArrayDiskWriterTest.cc
  4397. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  4398. Fixed the bug that causes segmentation fault/bus error during executing
  4399. choking algorithm while seeding. This is caused by improper
  4400. implementation of compare function which returns inconsistent results
  4401. depending on the timing of last unchoke.
  4402. * src/BtSeederStateChoke.cc
  4403. * src/BtSeederStateChoke.h
  4404. * src/DefaultPeerStorage.cc
  4405. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4406. Removed TODO
  4407. * TODO
  4408. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4409. Added a section that explains how to pass argument to options that
  4410. takes optional arguments with its short form.
  4411. * doc/aria2c.1.txt
  4412. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4413. Added -u for the short form of --max-upload-limit option.
  4414. * doc/aria2c.1.txt
  4415. * src/option_processing.cc
  4416. * src/usage_text.h
  4417. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4418. Added -V for the short form of --check-integrity option.
  4419. Now the argument of --check-integrity option is optional:
  4420. if it is omitted, it is evaluated as true.
  4421. * doc/aria2c.1.txt
  4422. * src/option_processing.cc
  4423. * src/usage_text.h
  4424. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4425. Made the default value of --ftp-pasv option set to true and it can take
  4426. true/false values.
  4427. * src/OptionHandlerFactory.cc
  4428. * src/option_processing.cc
  4429. * src/usage_text.h
  4430. * doc/aria2c.1.txt
  4431. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4432. Given custom random number generator to std::random_shuffle.
  4433. * src/AnnounceList.cc
  4434. * src/BtLeecherStateChoke.cc
  4435. * src/BtSeederStateChoke.cc
  4436. * src/DefaultBtRequestFactory.cc
  4437. * src/MetalinkEntry.cc
  4438. * src/RarestPieceSelector.cc
  4439. * src/SimpleRandomizer.cc
  4440. * src/SimpleRandomizer.h
  4441. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4442. Now the default value of --enable-direct-io is true.
  4443. * src/OptionHandlerFactory.cc
  4444. * doc/aria2c.1.txt
  4445. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4446. Erase peer before executing onReturningPeer and onErasingPeer
  4447. because choking algorithm called from onReturningPeer doesn't
  4448. like erasing peer in the active peer list.
  4449. * src/DefaultPeerStorage.cc
  4450. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4451. Instead of creating special filename in createDownloadResult() if
  4452. inMemoryDownload() is true, now it is done in getFilePath().
  4453. * src/RequestGroup.cc
  4454. * test/RequestGroupTest.cc
  4455. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4456. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4457. processed in memory. This is the fix for previous comment out.
  4458. * src/MemoryBufferPreDownloadHandler.cc
  4459. * src/RequestGroup.cc
  4460. * src/RequestGroup.h
  4461. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4462. Commented out the code which sets virtual directory path "[MEMORY]"
  4463. propagate directory to store to following RequestGroup.
  4464. * src/MemoryBufferPreDownloadHandler.cc
  4465. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4466. Bump up version number to 1.0.0b
  4467. * configure.ac
  4468. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4469. Added input_uris.txt to EXTRA_DIST
  4470. * test/Makefile.am
  4471. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4472. Removed PeerObject.h from Makefile.am
  4473. * src/Makefile.am
  4474. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4475. Avoid slow seeding
  4476. * src/PeerInteractionCommand.cc
  4477. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4478. Updated usage for -i option.
  4479. * src/usage_text.h (TEXT_INPUT_FILE)
  4480. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4481. Added INPUT FILE section to man page.
  4482. Escaped fake URLs.
  4483. * doc/aria2c.1.txt
  4484. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4485. Fixed wrong note position for -o option.
  4486. * doc/aria2c.1.txt
  4487. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4488. Fixed compile error without SSL/XML library.
  4489. * src/DefaultBtProgressInfoFile.cc
  4490. * src/DefaultBtProgressInfoFile.h
  4491. * src/FileMetalinkParserState.cc
  4492. * src/RequestGroup.h
  4493. * src/SocketCore.cc
  4494. * src/SocketCore.h
  4495. * src/VerificationMetalinkParserState.cc
  4496. * src/download_helper.h
  4497. * src/main.cc
  4498. * test/DefaultBtProgressInfoFileTest.cc
  4499. * test/DownloadHelperTest.cc
  4500. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  4501. Rewritten URI handling functions. They are now provided as a testable
  4502. functions.
  4503. * src/Makefile.am
  4504. * src/RequestGroup.cc
  4505. * src/RequestGroup.h
  4506. * src/download_helper.cc
  4507. * src/download_helper.h
  4508. * src/main.cc
  4509. * test/DownloadHelperTest.cc
  4510. * test/Makefile.am
  4511. * test/input_uris.txt
  4512. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  4513. Quickly terminate commands when ctrl-c is pressed.
  4514. * src/DownloadEngine.cc
  4515. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  4516. Quickly terminate idle commands when download finished.
  4517. * src/AbstractCommand.cc
  4518. * src/DownloadCommand.cc
  4519. * src/DownloadEngine.cc
  4520. * src/DownloadEngine.h
  4521. * src/SleepCommand.cc
  4522. * src/SleepCommand.h
  4523. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4524. Added the ability to specify output filename and directory in input
  4525. file.
  4526. Additional parameters are added in the following line of URIs
  4527. with proceeding white space(s), 1 parameter in 1 line.
  4528. The parameter names are the same with the command-line option name
  4529. without proceeding "--". Not all the options are available here:
  4530. at the moment, 'dir' and 'out' options are avialable.
  4531. Please note that out option has no effect against Metalink or BitTorrent
  4532. downloads.
  4533. Example input file:
  4534. http://host/foo-1.1.tar.bz2
  4535. out=foo.tar.bz2
  4536. dir=/tmp/downloads
  4537. http://host/thundermonkey-2.0.tar.bz2
  4538. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4539. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4540. thundermonkey-2.0.tar.bz2 is saved as
  4541. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4542. * src/BtPostDownloadHandler.cc
  4543. * src/Metalink2RequestGroup.cc
  4544. * src/Metalink2RequestGroup.h
  4545. * src/MetalinkPostDownloadHandler.cc
  4546. * src/UriListParser.cc
  4547. * src/UriListParser.h
  4548. * src/main.cc
  4549. * test/Metalink2RequestGroupTest.cc
  4550. * test/UriListParserTest.cc
  4551. * test/filelist1.txt
  4552. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4553. Fixed error when SSL library is not found.
  4554. * configure.ac
  4555. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4556. Cross referenced among -s, -C and -j options.
  4557. Updated usage of -C and -s options.
  4558. * src/usage_text.h
  4559. * doc/aria2c.1.txt
  4560. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4561. Fixed bad cast in 32bit platforms.
  4562. * test/DefaultPieceStorageTest.cc
  4563. (DefaultPieceStorageTest::testGetCompletedLength)
  4564. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4565. Fixed unit test fails on 32bit platforms.
  4566. * test/CookieParserTest.cc
  4567. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4568. Show an average download speed in Download results.
  4569. * src/BtFileAllocationEntry.cc
  4570. * src/DefaultPieceStorage.cc
  4571. * src/DownloadContext.cc
  4572. * src/DownloadContext.h
  4573. * src/DownloadResult.h
  4574. * src/RequestGroup.cc
  4575. * src/RequestGroupMan.cc
  4576. * src/StreamFileAllocationEntry.cc
  4577. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4578. Fixed the bug that metalink file is not processed if Content-Type
  4579. field has a paramter.
  4580. * src/HttpResponse.cc
  4581. * src/HttpResponse.h
  4582. * test/HttpResponseTest.cc
  4583. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  4584. Removed unused code.
  4585. * src/DefaultBtAnnounce.cc
  4586. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  4587. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4588. the value larger than DefaultPieceStorage::getTotalLength() when
  4589. in flight pieces are involved.
  4590. * src/DefaultPieceStorage.cc
  4591. * test/DefaultPieceStorageTest.cc
  4592. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4593. Bump up version number to 1.0.0a.
  4594. * configure.ac
  4595. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4596. Updated configure.ac
  4597. * configure.ac
  4598. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4599. Added usege for proxy.
  4600. * doc/aria2c.1.txt
  4601. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4602. Added usage for --ca-certificate, --certificate, --private-key and
  4603. --check-certificate options.
  4604. * doc/aria2c.1.txt
  4605. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4606. Updated man page
  4607. * doc/aria2c.1.txt
  4608. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4609. Added --no-proxy option. It receives comman separated hostname or
  4610. domains to which proxy should not be used.
  4611. aria2 honors the environment variable no_proxy to override no-proxy
  4612. value in configuration file. The user can override the environment
  4613. variable no_proxy with --no-proxy command-line option.
  4614. * src/AbstractCommand.cc
  4615. * src/OptionHandlerFactory.cc
  4616. * src/option_processing.cc
  4617. * src/prefs.cc
  4618. * src/prefs.h
  4619. * src/usage_text.h
  4620. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4621. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4622. The CA certificates are specified in --ca-certificate option.
  4623. By default, the verification is disabled. Use --check-certificate
  4624. option to enable it.
  4625. * src/HttpRequestCommand.cc
  4626. * src/LibgnutlsTLSContext.cc
  4627. * src/LibgnutlsTLSContext.h
  4628. * src/LibsslTLSContext.cc
  4629. * src/LibsslTLSContext.h
  4630. * src/MultiUrlRequestInfo.cc
  4631. * src/OptionHandlerFactory.cc
  4632. * src/SocketCore.cc
  4633. * src/SocketCore.h
  4634. * src/a2functional.h
  4635. * src/message.h
  4636. * src/option_processing.cc
  4637. * src/prefs.cc
  4638. * src/prefs.h
  4639. * src/usage_text.h
  4640. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  4641. Added client certificate authentication for SSL/TLS.
  4642. Currently a private key must be decrypted for use with aria2.
  4643. If a user accidentally gives encrypted file to aria2 then following
  4644. thing happens:
  4645. If encrypted private key is given to aria2, it behaves differently
  4646. depending on the ssl library it uses. If aria2 built with openssl then
  4647. openssl prompts the user for password. If aria2 build with gnutls then
  4648. aria2 exists with error at start up.
  4649. * src/DownloadEngineFactory.cc
  4650. * src/MultiUrlRequestInfo.cc
  4651. * src/OptionHandlerFactory.cc
  4652. * src/option_processing.cc
  4653. * src/prefs.cc
  4654. * src/prefs.h
  4655. * src/usage_text.h
  4656. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  4657. Introduced TLSContext that holds TLS related data that can be shared
  4658. with multiple SSL connections.
  4659. * src/DownloadEngineFactory.cc
  4660. * src/LibgnutlsTLSContext.cc
  4661. * src/LibgnutlsTLSContext.h
  4662. * src/LibsslTLSContext.cc
  4663. * src/LibsslTLSContext.h
  4664. * src/Makefile.am
  4665. * src/SocketCore.cc
  4666. * src/SocketCore.h
  4667. * src/TLSContext.h
  4668. * src/message.h
  4669. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  4670. Fixed the bug that the DiskWriter of the first FileEntry whose
  4671. `needsFileAllocation' property is false is not created
  4672. even if it shares a piece with next FileEntry which `requested' property
  4673. is true.
  4674. Fixed the bug that zero-length file is not created if pre file
  4675. allocation is not done.
  4676. * src/MultiDiskAdaptor.cc
  4677. * src/MultiDiskAdaptor.h
  4678. * test/MultiDiskAdaptorTest.cc
  4679. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4680. Added the ability to pool proxy connection.
  4681. The conneciton in FTP with proxy-method=GET is not pooled.
  4682. Proxy-Connection header will not be sent when sending CONNECT method.
  4683. * src/DownloadEngine.cc
  4684. * src/DownloadEngine.h
  4685. * src/FtpFinishDownloadCommand.cc
  4686. * src/FtpInitiateConnectionCommand.cc
  4687. * src/FtpNegotiationCommand.cc
  4688. * src/HttpDownloadCommand.cc
  4689. * src/HttpInitiateConnectionCommand.cc
  4690. * src/HttpRequest.cc
  4691. * src/HttpRequest.h
  4692. * src/HttpResponse.cc
  4693. * src/HttpSkipResponseCommand.cc
  4694. * test/HttpRequestTest.cc
  4695. * test/HttpResponseTest.cc
  4696. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4697. Handle date before epoch.
  4698. To create *bad* Time object, call Time::null().
  4699. * src/CookieParser.cc
  4700. * src/FtpConnection.cc
  4701. * src/FtpConnection.h
  4702. * src/FtpNegotiationCommand.cc
  4703. * src/RequestGroup.cc
  4704. * src/TimeA2.cc
  4705. * src/TimeA2.h
  4706. * test/CookieParserTest.cc
  4707. * test/FtpConnectionTest.cc
  4708. * test/TimeTest.cc
  4709. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4710. Added support for following envrionment variables: http_proxy,
  4711. https_proxy, ftp_proxy and all_proxy.
  4712. Each variable is equivalent to the aria2 option whose name is the
  4713. variable name with '_' replaced with '-'.
  4714. They overrides options specified in aria2.conf file.
  4715. The envrionment variables can be overrode using command-line option.
  4716. * src/option_processing.cc
  4717. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. Renamed --http-proxy-method as --proxy-method.
  4719. * src/AbstractCommand.cc
  4720. * src/FtpInitiateConnectionCommand.cc
  4721. * src/HttpInitiateConnectionCommand.cc
  4722. * src/OptionHandlerFactory.cc
  4723. * src/option_processing.cc
  4724. * src/prefs.cc
  4725. * src/prefs.h
  4726. * src/usage_text.h
  4727. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4728. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4729. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4730. Above 3 options and --http-proxy option can handle proxy in URL format
  4731. like: http://user:passwd@host:port.
  4732. If a proxy requires user/password, they must be specified in a URL.
  4733. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4734. instead.
  4735. * src/AbstractCommand.cc
  4736. * src/AbstractCommand.h
  4737. * src/AbstractProxyRequestCommand.cc
  4738. * src/AbstractProxyRequestCommand.h
  4739. * src/AuthConfigFactory.cc
  4740. * src/AuthConfigFactory.h
  4741. * src/FtpFinishDownloadCommand.cc
  4742. * src/FtpInitiateConnectionCommand.cc
  4743. * src/FtpInitiateConnectionCommand.h
  4744. * src/FtpNegotiationCommand.cc
  4745. * src/FtpTunnelRequestCommand.cc
  4746. * src/FtpTunnelRequestCommand.h
  4747. * src/HttpDownloadCommand.cc
  4748. * src/HttpInitiateConnectionCommand.cc
  4749. * src/HttpInitiateConnectionCommand.h
  4750. * src/HttpProxyRequestCommand.cc
  4751. * src/HttpProxyRequestCommand.h
  4752. * src/HttpRequest.cc
  4753. * src/HttpRequest.h
  4754. * src/HttpRequestCommand.cc
  4755. * src/HttpRequestCommand.h
  4756. * src/HttpSkipResponseCommand.cc
  4757. * src/InitiateConnectionCommand.cc
  4758. * src/InitiateConnectionCommand.h
  4759. * src/OptionHandlerFactory.cc
  4760. * src/OptionHandlerImpl.h
  4761. * src/Request.cc
  4762. * src/option_processing.cc
  4763. * src/prefs.cc
  4764. * src/prefs.h
  4765. * src/usage_text.h
  4766. * test/AuthConfigFactoryTest.cc
  4767. * test/HttpRequestTest.cc
  4768. * test/OptionHandlerTest.cc
  4769. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4770. Execute choking algorithm when unchoked and interested peer is
  4771. disconected.
  4772. * src/DefaultPeerStorage.cc
  4773. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Added testcase for BtNotInterestedMessage from unchoked peer.
  4775. * test/BtNotInterestedMessageTest.cc
  4776. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Execute choking algorithm when BtInterestedMessage arrives from
  4778. unchoked peer.
  4779. * src/BtInterestedMessage.cc
  4780. * src/BtInterestedMessage.h
  4781. * src/DefaultBtMessageFactory.cc
  4782. * test/BtInterestedMessageTest.cc
  4783. * test/MockPeerStorage.h
  4784. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4785. AuthConfigFactory is now part of DownloadEngine.
  4786. * src/AbstractProxyRequestCommand.cc
  4787. * src/AuthConfigFactory.h
  4788. * src/DownloadEngine.cc
  4789. * src/DownloadEngine.h
  4790. * src/FtpConnection.cc
  4791. * src/FtpConnection.h
  4792. * src/FtpNegotiationCommand.cc
  4793. * src/HttpConnection.cc
  4794. * src/HttpRequest.cc
  4795. * src/HttpRequest.h
  4796. * src/HttpRequestCommand.cc
  4797. * src/HttpResponse.cc
  4798. * src/HttpResponseCommand.cc
  4799. * src/HttpSkipResponseCommand.cc
  4800. * src/MultiUrlRequestInfo.cc
  4801. * src/main.cc
  4802. * test/FtpConnectionTest.cc
  4803. * test/HttpRequestTest.cc
  4804. * test/HttpResponseTest.cc
  4805. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4806. Corrected catched exception type.
  4807. * src/ServerStatMan.cc
  4808. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4809. DNSCache is now part of DownloadEngine.
  4810. * src/DNSCache.h
  4811. * src/DownloadEngine.cc
  4812. * src/DownloadEngine.h
  4813. * src/InitiateConnectionCommand.cc
  4814. * src/MultiUrlRequestInfo.cc
  4815. * test/Makefile.am
  4816. * test/Makefile.in
  4817. * test/SimpleDNSCacheTest.cc
  4818. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4819. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4820. DownloadEngine.
  4821. * src/ActivePeerConnectionCommand.cc
  4822. * src/BtSetup.cc
  4823. * src/CUIDCounter.h
  4824. * src/DHTSetup.cc
  4825. * src/DownloadCommand.cc
  4826. * src/DownloadEngine.cc
  4827. * src/DownloadEngine.h
  4828. * src/DownloadEngineFactory.cc
  4829. * src/FileAllocationDispatcherCommand.cc
  4830. * src/InitiatorMSEHandshakeCommand.cc
  4831. * src/PeerInitiateConnectionCommand.cc
  4832. * src/PeerInteractionCommand.cc
  4833. * src/PeerListenCommand.cc
  4834. * src/RequestGroup.cc
  4835. * src/StreamFileAllocationEntry.cc
  4836. * src/TrackerWatcherCommand.cc
  4837. * src/main.cc
  4838. * test/RequestGroupManTest.cc
  4839. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4840. Implemented commented code in BtSeederStateChoke
  4841. * src/BtSeederStateChoke.cc
  4842. * src/Peer.cc
  4843. * src/Peer.h
  4844. * src/PeerInteractionCommand.cc
  4845. * src/PeerSessionResource.cc
  4846. * src/PeerSessionResource.h
  4847. * test/MockBtMessageDispatcher.h
  4848. * test/PeerSessionResourceTest.cc
  4849. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4850. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4851. its object.
  4852. * src/AbstractBtMessage.cc
  4853. * src/ActivePeerConnectionCommand.cc
  4854. * src/ActivePeerConnectionCommand.h
  4855. * src/BtContextAwareCommand.cc
  4856. * src/BtContextAwareCommand.h
  4857. * src/BtExtendedMessage.cc
  4858. * src/BtExtendedMessage.h
  4859. * src/BtInterestedMessage.cc
  4860. * src/BtInterestedMessage.h
  4861. * src/BtNotInterestedMessage.cc
  4862. * src/BtNotInterestedMessage.h
  4863. * src/BtRegistry.cc
  4864. * src/BtRegistry.h
  4865. * src/BtSeederStateChoke.cc
  4866. * src/BtSetup.cc
  4867. * src/DHTGetPeersCommand.cc
  4868. * src/DHTGetPeersCommand.h
  4869. * src/DHTPeerAnnounceEntry.cc
  4870. * src/DHTPeerAnnounceEntry.h
  4871. * src/DHTPeerAnnounceStorage.cc
  4872. * src/DHTPeerAnnounceStorage.h
  4873. * src/DHTPeerLookupTask.cc
  4874. * src/DHTPeerLookupTask.h
  4875. * src/DHTSetup.cc
  4876. * src/DHTSetup.h
  4877. * src/DHTTaskFactory.h
  4878. * src/DHTTaskFactoryImpl.cc
  4879. * src/DHTTaskFactoryImpl.h
  4880. * src/DefaultBtAnnounce.cc
  4881. * src/DefaultBtInteractive.cc
  4882. * src/DefaultBtInteractive.h
  4883. * src/DefaultBtMessageDispatcher.cc
  4884. * src/DefaultBtMessageDispatcher.h
  4885. * src/DefaultBtMessageFactory.cc
  4886. * src/DefaultBtMessageFactory.h
  4887. * src/DefaultBtMessageReceiver.cc
  4888. * src/DefaultBtProgressInfoFile.cc
  4889. * src/DefaultBtProgressInfoFile.h
  4890. * src/DefaultBtRequestFactory.cc
  4891. * src/DefaultBtRequestFactory.h
  4892. * src/DefaultExtensionMessageFactory.cc
  4893. * src/DefaultExtensionMessageFactory.h
  4894. * src/DefaultPeerStorage.cc
  4895. * src/DefaultPeerStorage.h
  4896. * src/DownloadEngine.cc
  4897. * src/DownloadEngine.h
  4898. * src/InitiatorMSEHandshakeCommand.cc
  4899. * src/InitiatorMSEHandshakeCommand.h
  4900. * src/MSEHandshake.cc
  4901. * src/MSEHandshake.h
  4902. * src/Makefile.am
  4903. * src/Makefile.in
  4904. * src/PeerChokeCommand.cc
  4905. * src/PeerChokeCommand.h
  4906. * src/PeerInitiateConnectionCommand.cc
  4907. * src/PeerInitiateConnectionCommand.h
  4908. * src/PeerInteractionCommand.cc
  4909. * src/PeerInteractionCommand.h
  4910. * src/PeerObject.h
  4911. * src/PeerReceiveHandshakeCommand.cc
  4912. * src/PeerReceiveHandshakeCommand.h
  4913. * src/ReceiverMSEHandshakeCommand.cc
  4914. * src/RequestGroup.cc
  4915. * src/RequestGroup.h
  4916. * src/RequestGroupMan.cc
  4917. * src/RequestGroupMan.h
  4918. * src/SeedCheckCommand.cc
  4919. * src/SeedCheckCommand.h
  4920. * src/ShareRatioSeedCriteria.h
  4921. * src/SimpleBtMessage.cc
  4922. * src/TrackerWatcherCommand.cc
  4923. * src/TrackerWatcherCommand.h
  4924. * src/UTPexExtensionMessage.cc
  4925. * src/UTPexExtensionMessage.h
  4926. * test/BtCancelMessageTest.cc
  4927. * test/BtChokeMessageTest.cc
  4928. * test/BtExtendedMessageTest.cc
  4929. * test/BtInterestedMessageTest.cc
  4930. * test/BtNotInterestedMessageTest.cc
  4931. * test/BtPieceMessageTest.cc
  4932. * test/BtPortMessageTest.cc
  4933. * test/BtRegistryTest.cc
  4934. * test/BtRejectMessageTest.cc
  4935. * test/BtRequestMessageTest.cc
  4936. * test/DHTPeerAnnounceEntryTest.cc
  4937. * test/DHTPeerAnnounceStorageTest.cc
  4938. * test/DefaultBtMessageDispatcherTest.cc
  4939. * test/DefaultBtMessageFactoryTest.cc
  4940. * test/DefaultBtProgressInfoFileTest.cc
  4941. * test/DefaultBtRequestFactoryTest.cc
  4942. * test/DefaultExtensionMessageFactoryTest.cc
  4943. * test/MSEHandshakeTest.cc
  4944. * test/MockDHTTaskFactory.h
  4945. * test/ShareRatioSeedCriteriaTest.cc
  4946. * test/UTPexExtensionMessageTest.cc
  4947. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. Fixed compiler warning.
  4949. * test/UtilTest.cc
  4950. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4951. Treat Cookie object as session cookie if expiry = 0 is given.
  4952. With this change, you can specify session scoped cookies in an external
  4953. file setting expiry value to 0.
  4954. * src/Cookie.cc
  4955. * src/Cookie.h
  4956. * test/CookieParserTest.cc
  4957. * test/CookieStorageTest.cc
  4958. * test/CookieTest.cc
  4959. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Changed signature of DHTMessageFactory::createResponseMessage().
  4961. Removed unused validateIDMatch.
  4962. * src/DHTMessageFactory.h
  4963. * src/DHTMessageFactoryImpl.cc
  4964. * src/DHTMessageFactoryImpl.h
  4965. * src/DHTMessageTracker.cc
  4966. * test/DHTMessageFactoryImplTest.cc
  4967. * test/MockDHTMessageFactory.h
  4968. Dropped DHT message coming from same ID of localhost.
  4969. * src/DHTMessageReceiver.cc
  4970. Rejected adding node whose ID is the same as localhost's.
  4971. * src/DHTRoutingTable.cc
  4972. * test/BtPortMessageTest.cc
  4973. * test/DHTRoutingTableTest.cc
  4974. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4975. Pool connection when redirection occurs with Content-Length = 0.
  4976. * src/HttpSkipResponseCommand.cc
  4977. * src/HttpSkipResponseCommand.h
  4978. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Fixed the bug that causes time out when redirection occurs with
  4980. content-length 0.
  4981. * src/HttpResponseCommand.cc
  4982. * src/HttpSkipResponseCommand.cc
  4983. * src/HttpSkipResponseCommand.h
  4984. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4985. Now each status legends is shown only when it appears in Download
  4986. Result. If Download Result has no item, then status legend will not
  4987. be printed.
  4988. * src/RequestGroupMan.cc
  4989. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4990. Removed duplicate creation of OptionHandlers.
  4991. * src/option_processing.cc
  4992. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4993. Fixed the bug that causes segmentation fault when accessing files which
  4994. don't exist or are not included in --select-file option while
  4995. validating chunk checksum.
  4996. * src/MultiDiskAdaptor.cc
  4997. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. Fixed compiler warning.
  4999. * test/UtilTest.cc
  5000. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5001. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5002. * src/IteratableChecksumValidator.cc
  5003. * src/IteratableChunkChecksumValidator.cc
  5004. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5005. * Release 0.16.2
  5006. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. Added Serbian translation. Updated Ukrainian translation.
  5008. Thanks to all translators.
  5009. * po/sr.po
  5010. * po/uk.po
  5011. * po/LINGUAS
  5012. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5013. Bump up version number to 0.16.2
  5014. * configure.ac
  5015. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5016. Added length equality test to operator== to drop a piece message
  5017. whose length does not match to the requested one.
  5018. * src/RequestSlot.cc
  5019. * test/DefaultBtMessageDispatcherTest.cc
  5020. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5022. recieved.
  5023. In this fix, if a request larger than 16KiB length is received, aria2
  5024. disconnects the peer.
  5025. * src/BtConstants.h
  5026. * src/PeerMessageUtil.cc
  5027. * src/PeerMessageUtil.h
  5028. * test/BtRequestMessageTest.cc
  5029. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. * Release 0.16.1
  5031. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5032. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5033. * doc/aria2c.1.txt
  5034. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5035. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5036. Updated French, Simplified Chinese and Japanese translations.
  5037. Thanks to all translators.
  5038. en@quot and en@boldquot are also added.
  5039. * po/LINGUAS
  5040. * po/fr.po
  5041. * po/ja.po
  5042. * po/uk.po
  5043. * po/vi.po
  5044. * po/zh_CN.po
  5045. * po/zh_TW.po
  5046. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5047. Bump up version number to 0.16.1.
  5048. * configure.ac
  5049. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5050. Updated README.
  5051. * README
  5052. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5054. not to replace '--' with em dash character.
  5055. * doc/aria2c.1.txt
  5056. * doc/makeman
  5057. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5058. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5059. every SEC seconds.
  5060. * src/DownloadEngineFactory.cc
  5061. * src/OptionHandlerFactory.cc
  5062. * src/option_processing.cc
  5063. * src/usage_text.h
  5064. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5065. Fixed compile warning on linux-amd64
  5066. * src/FtpConnection.cc
  5067. * src/IteratableChunkChecksumValidator.cc
  5068. * src/MultiDiskAdaptor.cc
  5069. Fixed the bug that unit test fails on linux-amd64
  5070. * test/UtilTest.cc
  5071. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5072. Added --dht-file-path option to change the path to dht.dat, which is a
  5073. serialized DHT routing table.
  5074. * src/OptionHandlerFactory.cc
  5075. * src/option_processing.cc
  5076. * src/usage_text.h
  5077. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5078. Fixed possible underflow.
  5079. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5080. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Fixed the bug that last character in URI is not encoded.
  5082. * src/Request.cc
  5083. * test/RequestTest.cc
  5084. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Fixed the bug that referer header field contains fragment.
  5086. Now Request class removes fragment part of URI and encodes it
  5087. in Request::setUri() and setReferer().
  5088. * src/Request.h
  5089. * src/Request.cc
  5090. * test/RequestTest.cc
  5091. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. Added missing m4 macros.
  5093. * m4/cppunit.m4
  5094. * m4/libgcrypt.m4
  5095. * m4/libgnutls-extra.m4
  5096. * m4/libgnutls.m4
  5097. * m4/libxml2.m4
  5098. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Fixed compile error with gcc-4.4(snapshot)
  5100. * src/File.cc
  5101. * src/FtpConnection.cc
  5102. * src/OptionHandlerImpl.h
  5103. * src/Util.cc
  5104. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Removed assert()
  5106. * src/SocketBuffer.cc (SocketBuffer::send)
  5107. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. Changed the type of _numNewConnection to unsigned int.
  5109. * src/ActivePeerConnectionCommand.cc
  5110. * src/ActivePeerConnectionCommand.h
  5111. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5112. * Release 0.16.0
  5113. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5114. Updated doc
  5115. * README
  5116. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5117. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5118. translations. Thanks to all translators.
  5119. * po/bg.po
  5120. * po/de.po
  5121. * po/fr.po
  5122. * po/ja.po
  5123. * po/zh_CN.po
  5124. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5125. Bump up version number to 0.16.0.
  5126. * configure.ac
  5127. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5129. int32_t.
  5130. Changed the type of count to int32_t.
  5131. * src/Metalink2RequestGroup.cc
  5132. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5133. Added test for Time::elapsed(time_t).
  5134. * test/TimeTest.cc
  5135. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5136. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5137. Util::difftv() should be used instead.
  5138. * src/TimeA2.cc
  5139. * src/TimeA2.h
  5140. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. Made socket for dht connections non-blocking
  5142. * src/DHTAbstractMessage.cc
  5143. * src/DHTAbstractMessage.h
  5144. * src/DHTConnection.h
  5145. * src/DHTConnectionImpl.cc
  5146. * src/DHTConnectionImpl.h
  5147. * src/DHTMessage.h
  5148. * src/DHTMessageDispatcherImpl.cc
  5149. * src/DHTMessageDispatcherImpl.h
  5150. * src/DHTUnknownMessage.cc
  5151. * src/DHTUnknownMessage.h
  5152. * src/SocketCore.cc
  5153. * src/SocketCore.h
  5154. * test/MockDHTMessage.h
  5155. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Changed the type of offset to int.
  5157. * src/ParameterizedStringParser.cc
  5158. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5159. Made getAsInt() return int32_t
  5160. * src/Option.h
  5161. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5162. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5163. build.
  5164. * configure.ac
  5165. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Use sqlite3_open if sqlite3_open_v2 is not available.
  5167. * src/Sqlite3MozCookieParser.cc
  5168. * src/Sqlite3MozCookieParser.h
  5169. * m4/sqlite3.m4
  5170. * test/Sqlite3MozCookieParserTest.cc
  5171. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5172. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5173. * src/BtPieceMessage.cc
  5174. * src/DHTPeerAnnounceStorage.cc
  5175. * src/DefaultPieceStorage.cc
  5176. * src/DownloadCommand.cc
  5177. * src/DownloadEngine.cc
  5178. * src/FtpConnection.cc
  5179. * src/PeerConnection.cc
  5180. * src/PeerMessageUtil.cc
  5181. * src/RequestGroup.cc
  5182. * src/RequestGroupMan.cc
  5183. * src/SimpleBtMessage.cc
  5184. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5185. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5186. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5187. * src/AbstractDiskWriter.cc
  5188. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Don't set Request::supportsPersistentConnection() in HttpConnection
  5190. since this code is also used in AbstractProxyResponseCommand.
  5191. Moved those code to HttpResponse.
  5192. * src/HttpResponse.cc
  5193. * src/HttpResponse.h
  5194. * src/HttpConnection.cc
  5195. * src/HttpConnection.h
  5196. * src/HttpResponseCommand.cc
  5197. * test/HttpResponseTest.cc
  5198. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5199. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5200. The configuration is minimum: no torrent, no metalink, so there may be
  5201. other compile error on their code.
  5202. * src/a2netcompat.h
  5203. * src/File.cc
  5204. * src/File.h
  5205. * src/SocketCore.cc
  5206. * src/SocketCore.h
  5207. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5208. Made a socket of incoming peer non-blocking.
  5209. * src/PeerListenCommand.cc
  5210. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5212. whole message data is not sent in one send() call.
  5213. * src/BtPieceMessage.cc
  5214. * src/BtPieceMessage.h
  5215. * src/PeerConnection.cc
  5216. * src/PeerConnection.h
  5217. * src/SimpleBtMessage.cc
  5218. * src/SimpleBtMessage.h
  5219. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5220. Fixed the bug that aria2 downloads faster than max-download-limit when
  5221. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5222. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5223. , instead of sum of them.
  5224. * src/ActivePeerConnectionCommand.cc
  5225. * src/DefaultBtInteractive.cc
  5226. * src/DownloadCommand.cc
  5227. * src/PeerInteractionCommand.cc
  5228. * src/PeerReceiveHandshakeCommand.cc
  5229. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5230. Fixed the bug that HTTPS download fails.
  5231. * src/AbstractCommand.cc
  5232. * src/AbstractCommand.h
  5233. * src/DownloadCommand.cc
  5234. * src/FtpConnection.cc
  5235. * src/HttpConnection.cc
  5236. * src/HttpRequestCommand.cc
  5237. * src/HttpResponseCommand.cc
  5238. * src/HttpSkipResponseCommand.cc
  5239. * src/MSEHandshake.cc
  5240. * src/PeerConnection.cc
  5241. * src/SocketCore.cc
  5242. * src/SocketCore.h
  5243. Fixed the bug that aria2 doesn't download whole content body and cannot
  5244. reuse connection if chunked transfer encoding and gzip content encoding
  5245. are set.
  5246. * src/DownloadCommand.cc
  5247. * src/HttpSkipResponseCommand.cc
  5248. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Updated man page.
  5250. * doc/aria2c.1.txt
  5251. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5252. When error occurred while aria2 was parsing an .aria2.conf file, print
  5253. the usage of the option that caused error.
  5254. * src/option_processing.cc
  5255. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5256. Fixed compile error on OptionHandlerException
  5257. * src/Makefile.am
  5258. * src/OptionHandlerException.cc
  5259. * src/OptionHandlerException.h
  5260. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. Moved message of the error to OptionHandlerException.h
  5262. * src/NameMatchOptionHandler.h
  5263. * src/OptionHandlerException.h
  5264. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5265. When error occurs while aria2 is parsing an command-line option, print
  5266. the usage of the option.
  5267. * src/Makefile.am
  5268. * src/NameMatchOptionHandler.h
  5269. * src/OptionHandlerException.h
  5270. * src/option_processing.cc
  5271. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Reverted previous change.
  5273. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5274. username is not in URI.
  5275. * src/HttpRequest.cc
  5276. * src/Request.cc
  5277. * test/HttpRequestTest.cc
  5278. * test/RequestTest.cc
  5279. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5280. Now colon is required for username and password in FTP URL, like:
  5281. ftp://username:password@host.
  5282. If colon is not there, aria2 don't parse it as a username. For example,
  5283. aria2 don't retrieve username from ftp://username@host.
  5284. This fix was made in order to login FTP server via non-transparent ftp
  5285. proxy.
  5286. * src/Request.cc
  5287. * test/RequestTest.cc
  5288. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Use netrc for HTTP.
  5290. Now FTP user/password is sent in Authorization header when
  5291. --ftp-via-http-proxy=get is given.
  5292. * src/AuthConfigFactory.cc
  5293. * src/HttpRequest.cc
  5294. * src/HttpRequest.h
  5295. * src/NetrcAuthResolver.cc
  5296. * src/NetrcAuthResolver.h
  5297. * src/OptionHandlerFactory.cc
  5298. * src/option_processing.cc
  5299. * src/prefs.cc
  5300. * src/prefs.h
  5301. * test/AuthConfigFactoryTest.cc
  5302. * test/HttpRequestTest.cc
  5303. * test/NetrcAuthResolverTest.cc
  5304. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5305. Issue PWD command first and get working directory and use it as a prefix
  5306. for CWD command.
  5307. * src/DownloadEngine.cc
  5308. * src/DownloadEngine.h
  5309. * src/FtpConnection.cc
  5310. * src/FtpConnection.h
  5311. * src/FtpFinishDownloadCommand.cc
  5312. * src/FtpInitiateConnectionCommand.cc
  5313. * src/FtpNegotiationCommand.cc
  5314. * src/FtpNegotiationCommand.h
  5315. * test/FtpConnectionTest.cc
  5316. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5317. Removed default user/pass for FTP user/pass, since it should not have
  5318. precedence over netrc configuration by default.
  5319. * src/OptionHandlerFactory.cc
  5320. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. Added debug log for socket event.
  5322. * src/AbstractCommand.cc
  5323. * src/PeerAbstractCommand.cc
  5324. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5325. Log microseconds.
  5326. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5327. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5328. Replaced HelpItem.cc with OptionHandler.cc.
  5329. * po/POTFILES.in
  5330. Updated po files with 'make update-po'
  5331. * po/aria2c.pot
  5332. * po/*.po
  5333. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. Removed possible values from the text.
  5335. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5336. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5337. Removed unused preferences:
  5338. PREF_NO_PREALLOCATION
  5339. PREF_STDOUT_LOG
  5340. PREF_TRACKER_MAX_TRIES
  5341. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5342. PREF_MIN_SEGMENT_SIZE
  5343. * src/option_processing.cc
  5344. * src/prefs.cc
  5345. * src/prefs.h
  5346. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5347. Integrated HelpItem into OptionParser to ease the workload for adding
  5348. new options. Removed default value from usage text.
  5349. * src/HelpItem.cc: Removed.
  5350. * src/HelpItem.h: Removed.
  5351. * src/HelpItemFactory.cc: Removed.
  5352. * src/HelpItemFactory.h: Removed.
  5353. * src/Makefile.am
  5354. * src/Makefile.in
  5355. * src/NameMatchOptionHandler.h
  5356. * src/OptionHandler.cc
  5357. * src/OptionHandler.h
  5358. * src/OptionHandlerFactory.cc
  5359. * src/OptionHandlerImpl.h
  5360. * src/OptionParser.cc
  5361. * src/OptionParser.h
  5362. * src/TagContainer.cc: Removed.
  5363. * src/TagContainer.h: Removed.
  5364. * src/TaggedItem.cc: Removed.
  5365. * src/TaggedItem.h: Removed.
  5366. * src/main.cc
  5367. * src/option_processing.cc
  5368. * src/usage_text.h
  5369. * src/version_usage.cc
  5370. * test/HelpItemTest.cc: Removed.
  5371. * test/Makefile.am
  5372. * test/Makefile.in
  5373. * test/OptionHandlerTest.cc
  5374. * test/OptionParserTest.cc
  5375. * test/TagContainerTest.cc: Removed.
  5376. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5377. Moved `TransferStat stat = ...' to inside the `if' clause.
  5378. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5379. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5380. Fixed the bug that a block in a piece is requested when same block is
  5381. already requested to the same peer in end game mode.
  5382. * src/BtRequestFactory.h
  5383. * src/DefaultBtInteractive.cc
  5384. * src/DefaultBtRequestFactory.cc
  5385. * src/DefaultBtRequestFactory.h
  5386. * src/DefaultPieceStorage.cc
  5387. * src/DefaultPieceStorage.h
  5388. * src/PieceStorage.h
  5389. * src/UnknownLengthPieceStorage.cc
  5390. * src/UnknownLengthPieceStorage.h
  5391. * test/DefaultBtRequestFactoryTest.cc
  5392. * test/DefaultPieceStorageTest.cc
  5393. * test/MockBtRequestFactory.h
  5394. * test/MockPieceStorage.h
  5395. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5396. Removed _uploadLength and _downloadLength from PeerSessionResource
  5397. and use PeerStat::_sessionUploadLength and
  5398. PeerStat::_sessionDownloadLength.
  5399. * src/PeerSessionResource.cc
  5400. * src/PeerSessionResource.h
  5401. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Fixed the bug that prefixLength of split bucket which doesn't include
  5403. local node ID is incremented.
  5404. * src/DHTBucket.cc
  5405. * src/DHTBucket.h
  5406. * test/DHTBucketTest.cc
  5407. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Added cookies.sqlite to EXTRA_DIST
  5409. * test/Makefile.am
  5410. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5411. Added Turkish translation. Updated French, German, Russian and
  5412. Simplified Chinese translations. Thanks to all translators.
  5413. * po/LINGUAS
  5414. * po/de.po
  5415. * po/fr.po
  5416. * po/ru.po
  5417. * po/tr.po
  5418. * po/zh_CN.po
  5419. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Added deliminating text to the beginning of the log so that one can find
  5421. where the log starts easily.
  5422. * src/main.cc
  5423. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5424. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5425. to fix compile error when async DNS is not enabled by configuration.
  5426. * src/AbstractCommand.cc
  5427. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5428. If establishing conneciton to a server is failed, then mark error on
  5429. its ServerStat.
  5430. Added the cause of error to log when error event occurred.
  5431. Moved message string to message.h for translation.
  5432. * src/AbstractCommand.cc
  5433. * src/AbstractCommand.h
  5434. * src/FtpNegotiationCommand.cc
  5435. * src/HttpRequestCommand.cc
  5436. * src/PeerAbstractCommand.cc
  5437. * src/message.h
  5438. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5439. Added the function to get error message from socket.
  5440. * src/SocketCore.cc
  5441. * src/SocketCore.h
  5442. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5443. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5444. * src/RequestGroupMan.cc
  5445. * src/RequestGroupMan.h
  5446. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5447. If error event is received in epoll, then abort download immediately.
  5448. * src/AbstractCommand.cc
  5449. * src/Command.cc
  5450. * src/Command.h
  5451. * src/DownloadEngine.cc
  5452. * src/PeerAbstractCommand.cc
  5453. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5454. Added usage message for --uri-selector, --server-stat-of,
  5455. --server-stat-in, --server-stat-timeout options.
  5456. * src/HelpItemFactory.cc
  5457. * src/usage_text.h
  5458. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5459. Added upper limit of FTP response buffer. The current implementation
  5460. uses 4096bytes as a limit.
  5461. * src/FtpConnection.cc
  5462. * src/FtpConnection.h
  5463. * test/FtpConnectionTest.cc
  5464. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5465. Use non-blocking socket for TCP communication to avoid possible
  5466. blocking due to buffer full.
  5467. * src/AbstractProxyRequestCommand.cc
  5468. * src/FtpConnection.cc
  5469. * src/FtpConnection.h
  5470. * src/FtpNegotiationCommand.cc
  5471. * src/FtpNegotiationCommand.h
  5472. * src/HttpConnection.cc
  5473. * src/HttpConnection.h
  5474. * src/HttpRequestCommand.cc
  5475. * src/InitiatorMSEHandshakeCommand.cc
  5476. * src/InitiatorMSEHandshakeCommand.h
  5477. * src/MSEHandshake.cc
  5478. * src/MSEHandshake.h
  5479. * src/Makefile.am
  5480. * src/PeerConnection.cc
  5481. * src/PeerConnection.h
  5482. * src/PeerInteractionCommand.cc
  5483. * src/PeerListenCommand.cc
  5484. * src/ReceiverMSEHandshakeCommand.cc
  5485. * src/ReceiverMSEHandshakeCommand.h
  5486. * src/SocketBuffer.cc
  5487. * src/SocketBuffer.h
  5488. * src/SocketCore.cc
  5489. * src/SocketCore.h
  5490. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5491. Call setStatusRealtime() in constructor.
  5492. * src/RealtimeCommand.cc
  5493. * src/RealtimeCommand.h
  5494. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5495. Call Download::setNoWait(true) to execute newly created command without
  5496. a pause.
  5497. * src/AbstractCommand.cc
  5498. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5499. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5500. found' error from HTTP/FTP server NUM times without getting single
  5501. bytes of data, then force the download to fail.
  5502. Basically aria2 tris all URIs available. So if long list of URIs are
  5503. specified in Metalink, then aria2 will take a long time to fail
  5504. eventually if all URIs are outdated. This option eases this situation
  5505. to limit the number of servers to try.
  5506. * src/FtpNegotiationCommand.cc
  5507. * src/HelpItemFactory.cc
  5508. * src/HttpResponseCommand.cc
  5509. * src/OptionHandlerFactory.cc
  5510. * src/PeerStat.h
  5511. * src/RequestGroup.cc
  5512. * src/RequestGroup.h
  5513. * src/SegmentMan.cc
  5514. * src/SegmentMan.h
  5515. * src/option_processing.cc
  5516. * src/prefs.cc
  5517. * src/prefs.h
  5518. * src/usage_text.h
  5519. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5520. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5521. response even if more than one response is in it.
  5522. * src/FtpConnection.cc
  5523. * src/FtpConnection.h
  5524. * test/FtpConnectionTest.cc
  5525. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5526. Merged from stable-0.15
  5527. * m4/libcares.m4
  5528. Use pkg-config
  5529. * m4/sqlite3.m4
  5530. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Removed unnecessary if statement.
  5532. * src/DefaultPieceStorage.cc (initPieceStorage)
  5533. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Added --connect-timeout option to specify connect timeout in seconds.
  5535. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5536. connecting to BitTorrent peer is not controlled by this option.
  5537. * src/AbstractProxyRequestCommand.cc
  5538. * src/FtpNegotiationCommand.cc
  5539. * src/HelpItemFactory.cc
  5540. * src/HttpRequestCommand.cc
  5541. * src/OptionHandlerFactory.cc
  5542. * src/option_processing.cc
  5543. * src/prefs.cc
  5544. * src/prefs.h
  5545. * src/usage_text.h
  5546. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Added help message for -R option.
  5548. * src/HelpItemFactory.cc
  5549. * src/usage_text.h
  5550. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5551. Added the message that the time is in local time zone.
  5552. * src/RequestGroup.cc
  5553. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5554. Implemented the ability to get timestamp from remote FTP server using
  5555. MDTM command described in RFC3659.
  5556. * src/FtpConnection.cc
  5557. * src/FtpConnection.h
  5558. * src/FtpNegotiationCommand.cc
  5559. * src/FtpNegotiationCommand.h
  5560. * test/FtpConnectionTest.cc
  5561. * test/Makefile.am
  5562. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5563. Implemented the ability to get timestamp from remote HTTP server and
  5564. apply it to local file. To enable this feature, --remote-time option
  5565. is added. No usage text has been written yet.
  5566. If several servers returns difference timestamp, then aria2 uses latest
  5567. one.
  5568. * src/CopyDiskAdaptor.cc
  5569. * src/CopyDiskAdaptor.h
  5570. * src/DirectDiskAdaptor.cc
  5571. * src/DirectDiskAdaptor.h
  5572. * src/DiskAdaptor.h
  5573. * src/File.cc
  5574. * src/File.h
  5575. * src/HttpHeader.cc
  5576. * src/HttpHeader.h
  5577. * src/HttpResponse.cc
  5578. * src/HttpResponse.h
  5579. * src/HttpResponseCommand.cc
  5580. * src/HttpResponseCommand.h
  5581. * src/MultiDiskAdaptor.cc
  5582. * src/MultiDiskAdaptor.h
  5583. * src/OptionHandlerFactory.cc
  5584. * src/RequestGroup.cc
  5585. * src/RequestGroup.h
  5586. * src/RequestGroupMan.cc
  5587. * src/option_processing.cc
  5588. * src/prefs.cc
  5589. * src/prefs.h
  5590. * test/CopyDiskAdaptorTest.cc
  5591. * test/FileTest.cc
  5592. * test/Makefile.am
  5593. * test/Makefile.in
  5594. * test/MultiDiskAdaptorTest.cc
  5595. * test/TestUtil.cc
  5596. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5597. Fixed the bug that DiskWriterEntry is not created when its
  5598. FileEntry.isRequested() is false and it doesn't share a piece with
  5599. other FileEntries that are requested. This bug causes segmentation fault
  5600. in the end.
  5601. * src/MultiDiskAdaptor.cc
  5602. * src/MultiDiskAdaptor.h
  5603. * src/MultiFileAllocationIterator.cc
  5604. * test/MultiDiskAdaptorTest.cc
  5605. * test/MultiFileAllocationIteratorTest.cc
  5606. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5608. called if the number of file entries are greater than max open files.
  5609. * src/AbstractSingleDiskAdaptor.cc
  5610. * src/AbstractSingleDiskAdaptor.h
  5611. * src/DiskAdaptor.h
  5612. * src/MultiDiskAdaptor.cc
  5613. * src/MultiDiskAdaptor.h
  5614. * test/MultiDiskAdaptorTest.cc
  5615. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5616. Added a constuctor that receives struct timeval.
  5617. Added operator<.
  5618. * src/TimeA2.cc
  5619. * src/TimeA2.h
  5620. * test/TimeTest.cc
  5621. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5622. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5623. * src/CookieParser.cc
  5624. * test/CookieParserTest.cc
  5625. * test/HttpResponseTest.cc
  5626. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Implmented the functions to parse date.
  5628. * src/TimeA2.cc
  5629. * src/TimeA2.h
  5630. * test/TimeTest.cc
  5631. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5632. Added "Firefox3 Cookie" feature to FeatureConfig
  5633. * src/FeatureConfig.cc
  5634. * src/FeatureConfig.h
  5635. * test/FeatureConfigTest.cc
  5636. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Bump up version number to 0.16.0b
  5638. * configure.ac
  5639. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5640. Use pkg-config if is is available.
  5641. * m4/openssl.m4
  5642. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5643. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5644. * src/BtAnnounce.h
  5645. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. If an error occurred with a URI, remove identical URI from remaining
  5647. URI list because it is likely that same error occurred in the end and it
  5648. is waste of time.
  5649. * src/AbstractCommand.cc
  5650. * src/RequestGroup.cc
  5651. * src/RequestGroup.h
  5652. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5653. Removed wrong comment.
  5654. * src/DefaultPeerStorage.cc
  5655. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5657. Added return value of getpid() to argument of srand() to achieve more
  5658. randomized value.
  5659. * src/SimpleRandomizer.cc
  5660. * src/SimpleRandomizer.h
  5661. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5662. Contact tracker frequently when the number of connections are 0 and
  5663. download is not finished yet.
  5664. * src/ActivePeerConnectionCommand.cc
  5665. * src/BtAnnounce.h
  5666. * src/DefaultBtAnnounce.cc
  5667. * src/DefaultBtAnnounce.h
  5668. * test/MockBtAnnounce.h
  5669. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5670. Moved threshold values to UTPexExtensionMessage.
  5671. * src/DefaultBtInteractive.cc
  5672. * src/Peer.cc
  5673. * src/Peer.h
  5674. * src/UTPexExtensionMessage.cc
  5675. * src/UTPexExtensionMessage.h
  5676. * test/UTPexExtensionMessageTest.cc
  5677. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Added _incoming member to Peer class and made it true if the peer
  5679. initiated connection. Don't add those peer to UTPex message.
  5680. If extended handshake is received, assign _incoming to false.
  5681. * src/DefaultBtInteractive.cc
  5682. * src/HandshakeExtensionMessage.cc
  5683. * src/Peer.cc
  5684. * src/Peer.h
  5685. * src/PeerListenCommand.cc
  5686. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5687. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5688. Encoding Decoder. Removed size threshold for turning off on the fly
  5689. inflation because resulting file may or may not be inflated depending
  5690. on the file size and I think it is not expected by users.
  5691. This change fixes segmentation fault when Metalink file contains gzipped
  5692. file and its filesize is provided.
  5693. * src/HttpResponseCommand.cc
  5694. * src/HttpResponseCommand.h
  5695. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5696. Made Cookie immutable.
  5697. * src/Cookie.cc
  5698. * src/Cookie.h
  5699. * src/CookieParser.cc
  5700. * src/CookieParser.h
  5701. * src/CookieStorage.cc
  5702. * test/CookieParserTest.cc
  5703. * test/CookieStorageTest.cc
  5704. * test/NsCookieParserTest.cc
  5705. * test/Sqlite3MozCookieParserTest.cc
  5706. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5707. Removed CookieBox, CookieBoxFactory.
  5708. * src/CookieBox.cc
  5709. * src/CookieBox.h
  5710. * src/CookieBoxFactory.cc
  5711. * src/CookieBoxFactory.h
  5712. * src/Makefile.am
  5713. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5714. Use CookieStorage class instead of CookieBox class.
  5715. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5716. * src/AbstractProxyRequestCommand.cc
  5717. * src/CookieStorage.cc
  5718. * src/DownloadEngine.cc
  5719. * src/DownloadEngine.h
  5720. * src/HttpConnection.cc
  5721. * src/HttpConnection.h
  5722. * src/HttpRequest.cc
  5723. * src/HttpRequest.h
  5724. * src/HttpRequestCommand.cc
  5725. * src/HttpResponse.cc
  5726. * src/HttpResponseCommand.cc
  5727. * src/HttpSkipResponseCommand.cc
  5728. * src/Makefile.am
  5729. * src/MultiUrlRequestInfo.cc
  5730. * src/Request.cc
  5731. * src/Request.h
  5732. * src/main.cc
  5733. * test/AllTest.cc
  5734. * test/CookieStorageTest.cc
  5735. * test/CookieTest.cc
  5736. * test/HttpRequestTest.cc
  5737. * test/HttpResponseTest.cc
  5738. * test/Makefile.am
  5739. * test/NsCookieParserTest.cc
  5740. * test/Sqlite3MozCookieParserTest.cc
  5741. * test/nscookietest.txt
  5742. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5743. Updated
  5744. * test/Cookies.sqlite
  5745. * test/nscookietest.txt
  5746. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Added tests for CookieStorage::load()
  5748. * test/CookieStorageTest.cc
  5749. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Added CookieStorage class which is based on RFC2109 and manages cookies
  5751. more strictly than CookieBox and CookieBoxFactory class.
  5752. * src/CookieStorage.cc
  5753. * src/CookieStorage.h
  5754. * src/Cookie.cc
  5755. * src/Cookie.h
  5756. * test/CookieStorageTest.cc
  5757. * test/CookieTest.cc
  5758. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5759. Fixed the bug that commands are created more than the number of pieces.
  5760. * src/RequestGroup.cc
  5761. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5762. Fixed infinite loop bug in FTP when SIZE command failed.
  5763. * src/FtpNegotiationCommand.cc
  5764. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5765. Removed DirectDiskAdaptorTest.h
  5766. * test/Makefile.am
  5767. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5768. Fixed chunk checksum validation cannot detect trailing garbage data.
  5769. BUG#2074141
  5770. * src/AbstractSingleDiskAdaptor.cc
  5771. * src/AbstractSingleDiskAdaptor.h
  5772. * src/CheckIntegrityEntry.cc
  5773. * src/CheckIntegrityEntry.h
  5774. * src/DiskAdaptor.h
  5775. * src/MultiDiskAdaptor.cc
  5776. * src/MultiDiskAdaptor.h
  5777. * src/RequestGroup.cc
  5778. * test/DirectDiskAdaptorTest.cc
  5779. * test/MultiDiskAdaptorTest.cc
  5780. * test/TestUtil.cc
  5781. * test/TestUtil.h
  5782. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5783. Bump up version number of dht.dat file to 3. In version 3 format, time
  5784. is stored in 64bit, network byte order.
  5785. New build can load old format(version 2) but it saves the file in new
  5786. format. It means once you used new build, your dht.dat becomes
  5787. incompatible with older build.
  5788. * src/DHTRoutingTableDeserializer.cc
  5789. * src/DHTRoutingTableSerializer.cc
  5790. * test/DHTRoutingTableSerializerTest.cc
  5791. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5792. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5793. * test/Makefile.am
  5794. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5795. Bump up version number of .aria2 control file to 0001.
  5796. New aria2 can still load version 0000 file but it saves the file in
  5797. version 0001 format. It means that new aria2 can resume download
  5798. started by old aria2 but the opposite is not true.
  5799. * src/DefaultBtProgressInfoFile.cc
  5800. * src/DefaultBtProgressInfoFile.h
  5801. * test/DefaultBtProgressInfoFileTest.cc
  5802. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. Added ntoh64 and hton64 as inline functions.
  5804. * src/Util.cc
  5805. * test/UtilTest.cc
  5806. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Added sqlite3 depenency and Firefox3 cookie support.
  5808. * README
  5809. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5810. State that firefox3 cookie is supported explicitly in the usage.
  5811. * src/usage_text.h
  5812. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5813. Externalized message.
  5814. * src/RequestGroupMan.cc
  5815. * src/message.h
  5816. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Save temporary file first and rename to the destination on success.
  5818. Added test cases.
  5819. * src/RequestGroupMan.cc
  5820. * test/RequestGroupManTest.cc
  5821. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5822. Fixed the bug that the number of connected peer is exceeding the limit
  5823. (55 by default) in seeding mode.
  5824. Multiplied 0.8 to _maxUploadSpeedLimit.
  5825. * src/ActivePeerConnectionCommand.cc
  5826. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Clear table item.
  5828. * src/Dictionary.cc
  5829. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Fixed error handling of lseek.
  5831. * src/AbstractDiskWriter.cc
  5832. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5833. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5834. style cookie file.
  5835. * src/usage_text.h
  5836. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5837. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5838. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5839. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5840. * src/Util.cc
  5841. * src/Util.h
  5842. * src/CookieParser.cc
  5843. * test/UtilTest.cc
  5844. * test/CookieParserTest.cc
  5845. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5846. Separate the implementation to load old mozilla format of cookie to
  5847. NsCookieParser class.
  5848. * src/CookieBoxFactory.cc
  5849. * src/CookieBoxFactory.h
  5850. * src/NsCookieParser.cc
  5851. * src/NsCookieParser.h
  5852. * test/NsCookieParserTest.cc
  5853. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5854. Made parse() const
  5855. * src/Sqlite3MozCookieParser.cc
  5856. * src/Sqlite3MozCookieParser.h
  5857. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5858. Added firefox3 cookie support based on the patch submitted by
  5859. tizianomueller.
  5860. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5861. this functionality.
  5862. * configure.ac
  5863. * m4/sqlite3.m4
  5864. * src/CookieBoxFactory.cc
  5865. * src/CookieBoxFactory.h
  5866. * src/Makefile.am
  5867. * src/Makefile.in
  5868. * src/Sqlite3MozCookieParser.cc
  5869. * src/Sqlite3MozCookieParser.h
  5870. * src/main.cc
  5871. * test/CookieBoxFactoryTest.cc
  5872. * test/Makefile.am
  5873. * test/Makefile.in
  5874. * test/Sqlite3MozCookieParserTest.cc
  5875. * test/badcookies.sqlite
  5876. * test/cookies.sqlite
  5877. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Added Danish and Greek translations.
  5879. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5880. Great thanks to all translators.
  5881. * po/LINGUAS
  5882. * po/el.po
  5883. * po/da.po
  5884. * po/es.po
  5885. * po/ca.po
  5886. * po/nn.po
  5887. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5888. Fixed man page: --follow-bittorrent should be --follow-torrent
  5889. * doc/aria2c.1.txt
  5890. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5891. Fixed: numCommand is less than the value specified in -C option.
  5892. * src/RequestGroup.cc
  5893. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Fixed occasional assertion failure in PieceSegment.
  5895. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5896. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5897. creation of duplicate segments and one of the segment was finished then
  5898. assertion failure was caused.
  5899. * src/SegmentMan.cc
  5900. * test/SegmentManTest.cc
  5901. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5902. Added options to load/save the server's performance/status to a file
  5903. and the timeout to drop their data.
  5904. --server-stat-of=FILE specifies the file to which performance data
  5905. is saved.
  5906. --server-stat-if=FILE specifies the file to read previously saved
  5907. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5908. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5909. TIMEOUT is specified in seconds and the default value is 24hours.
  5910. * src/MultiUrlRequestInfo.cc
  5911. * src/OptionHandlerFactory.cc
  5912. * src/RequestGroupMan.cc
  5913. * src/RequestGroupMan.h
  5914. * src/ServerStatMan.cc
  5915. * src/ServerStatMan.h
  5916. * src/option_processing.cc
  5917. * src/prefs.cc
  5918. * src/prefs.h
  5919. * test/ServerStatManTest.cc
  5920. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5922. * src/ServerStatMan.cc
  5923. * src/ServerStatMan.h
  5924. * test/ServerStatManTest.cc
  5925. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. Implemented ServerStatMan::load(...) function and its test case.
  5927. * src/ServerStat.cc
  5928. * src/ServerStat.h
  5929. * src/ServerStatMan.cc
  5930. * test/ServerStatManTest.cc
  5931. * test/ServerStatTest.cc
  5932. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5933. Use time_t instead of int32_t. Use int64_t where milli second is
  5934. expected.
  5935. * src/TimeA2.cc
  5936. * src/TimeA2.h
  5937. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Implemented ServerStatMan::save(...) function and its test case.
  5939. * src/ServerStat.cc
  5940. * src/ServerStat.h
  5941. * src/ServerStatMan.cc
  5942. * src/ServerStatMan.h
  5943. * test/ServerStatManTest.cc
  5944. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. Now aria2 uses name attribute in Metalink as local filename in
  5946. BitTorrent downloads. BUG#2033999
  5947. * src/BtContext.h
  5948. * src/BtDependency.cc
  5949. * src/DefaultBtContext.cc
  5950. * src/DefaultBtContext.h
  5951. * src/SingleFileDownloadContext.cc
  5952. * src/SingleFileDownloadContext.h
  5953. * test/BtDependencyTest.cc
  5954. * test/DefaultBtContextTest.cc
  5955. * test/MockBtContext.h
  5956. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5957. Added AC_C_BIGENDIAN
  5958. * src/configure.ac
  5959. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5960. Limited numCommand less than or equal to the number of piece.
  5961. * src/RequestGroup.cc
  5962. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5963. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5964. directive.
  5965. * test/DefaultPieceStorageTest.cc
  5966. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5967. Fixed memory leak in test code
  5968. * test/AnnounceListTest.cc
  5969. * test/DefaultPeerListProcessorTest.cc
  5970. * test/DefaultPeerStorageTest.cc
  5971. * test/MetaFileUtilTest.cc
  5972. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5974. * src/DefaultPieceStorage.cc
  5975. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5976. Initialized _directIOAllowed
  5977. * src/MultiDiskAdaptor.cc
  5978. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5979. Fixed memory leak
  5980. * src/GZipDecoder.cc
  5981. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5982. Fixed memory leak
  5983. * src/MetalinkParserStateMachine.cc
  5984. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Fixed memory leak
  5986. * src/Dictionary.cc
  5987. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Fixed memory leak
  5989. * src/IteratableChunkChecksumValidator.h
  5990. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5991. Fixed unmatched malloc/free.
  5992. * src/IteratableChunkChecksumValidator.cc
  5993. * src/IteratableChecksumValidator.cc
  5994. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Removed max chunk size check. This change fixes BUG#2040169
  5996. * src/ChunkedDecoder.cc
  5997. * src/ChunkedDecoder.h
  5998. * test/ChunkedDecoderTest.cc
  5999. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Implemented download speed based URI selection algorithm.
  6001. Introduced new option --uri-selector.
  6002. If --uri-selector=feedback is given, aria2 uses download speed observed
  6003. in the previous downloads and chooses fastest server in the URI list.
  6004. Currently at most 10 URIs are considered to introduce randomeness for
  6005. finding better servers. The speed is average download speed in the
  6006. downloads.
  6007. On the other hand, if --uri-selector=inorder is given, which is default,
  6008. URI is tried in order in URI list.
  6009. The usage text for the new option has not been written yet.
  6010. * src/AbstractCommand.cc
  6011. * src/DownloadCommand.cc
  6012. * src/DownloadEngine.cc
  6013. * src/DownloadEngineFactory.cc
  6014. * src/InOrderURISelector.cc
  6015. * src/InOrderURISelector.h
  6016. * src/OptionHandlerFactory.cc
  6017. * src/PeerStat.h
  6018. * src/RequestGroup.cc
  6019. * src/RequestGroup.h
  6020. * src/RequestGroupMan.cc
  6021. * src/RequestGroupMan.h
  6022. * src/SegmentMan.cc
  6023. * src/SegmentMan.h
  6024. * src/ServerStat.cc
  6025. * src/ServerStat.h
  6026. * src/ServerStatMan.cc
  6027. * src/ServerStatMan.h
  6028. * src/ServerStatURISelector.cc
  6029. * src/ServerStatURISelector.h
  6030. * src/URISelector.h
  6031. * src/option_processing.cc
  6032. * src/prefs.cc
  6033. * src/prefs.h
  6034. * test/InOrderURISelectorTest.cc
  6035. * test/RequestGroupManTest.cc
  6036. * test/ServerStatManTest.cc
  6037. * test/ServerStatURISelectorTest.cc
  6038. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. * Release 0.15.1+2
  6040. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6041. Bump up version number to 0.15.1+2
  6042. * configure.ac
  6043. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6044. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6045. * m4/aria2_arg.m4
  6046. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. * Release 0.15.1+1
  6048. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6049. Bump up version number to 0.15.1+1
  6050. * configure.ac
  6051. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6052. Fixed the bug that causes segmentaion fault when resuming download
  6053. using metalink without size tag. Reproducible only using HTTP URI.
  6054. * src/HttpResponseCommand.cc
  6055. * src/FtpNegotiationCommand.cc
  6056. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. * Release 0.15.1
  6058. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6059. Updated Bulgarian and French translations, thanks to all translators.
  6060. * po/bg.po
  6061. * po/fr.po
  6062. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6063. Bump up version number to 0.15.1
  6064. * configure.ac
  6065. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6066. Avoid repeated call of gettimeofday() when calculating speed.
  6067. * src/SpeedCalc.cc
  6068. * src/SpeedCalc.h
  6069. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Removed writable check when socket's send buffer is full in BitTorrent
  6071. downloads to lower CPU usage.
  6072. * src/PeerInteractionCommand.cc
  6073. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. Fixed broken gzip inflation.
  6075. Turn off segmented downloading if gzip content is smaller than or equal
  6076. to 1MiB and inflate the data on the fly, because HTTP response header
  6077. doesn't contain the length of inflated file we can't determin where
  6078. the chunk of data should be written.
  6079. On the other hand, if gzip content is larger than 1MB, then turn off
  6080. on the fly inflation, because some servers returns "content-type: gzip"
  6081. for *.tgz, *.gz files.
  6082. * src/DownloadCommand.cc
  6083. * src/HttpResponseCommand.cc
  6084. * src/HttpResponseCommand.h
  6085. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Applied tizianomueller's patch to fix compile error.
  6087. * test/BitfieldManTest.cc
  6088. * test/BtRequestMessageTest.cc
  6089. * test/DefaultBtContextTest.cc
  6090. * test/DefaultDiskWriterTest.cc
  6091. * test/DefaultPieceStorageTest.cc
  6092. * test/HttpHeaderProcessorTest.cc
  6093. * test/HttpResponseTest.cc
  6094. * test/Metalink2RequestGroupTest.cc
  6095. * test/MetalinkParserControllerTest.cc
  6096. * test/MetalinkProcessorTest.cc
  6097. * test/PeerSessionResourceTest.cc
  6098. * test/UtilTest.cc
  6099. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6100. * Release 0.15.0
  6101. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6102. Reordered src files in POTFILES.in so that usage text appears first.
  6103. * po/POTFILES.in
  6104. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6105. Bump up version number to 0.15.0
  6106. * configure.ac
  6107. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. Added Bulgarian translation.
  6109. Updated Catalan, Spanish, French and Japanese translations.
  6110. Thanks to all translators.
  6111. * po/LINGUAS
  6112. * po/bg.po
  6113. * po/ca.po
  6114. * po/es.po
  6115. * po/fr.po
  6116. * po/ja.po
  6117. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6118. Updated feature list. Added libz for dependency section.
  6119. Added a description about unit testing using CppUnit.
  6120. * README
  6121. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6122. Added a test for libz. Quoted where it is necessary.
  6123. * build_test.sh
  6124. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6125. Added GZip to `Enabled Features' list.
  6126. * src/FeatureConfig.cc
  6127. * src/FeatureConfig.h
  6128. * test/FeatureConfigTest.cc
  6129. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6130. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6131. the transfer has not yet started.
  6132. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6133. * src/SegmentMan.cc
  6134. * src/SegmentMan.h
  6135. * test/SegmentManTest.cc
  6136. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6137. Cache last calculated average download/upload speed.
  6138. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6139. cached value.
  6140. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6141. * src/PeerStat.h
  6142. * src/SpeedCalc.cc
  6143. * src/SpeedCalc.h
  6144. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Call parseUrl directly.
  6146. * src/Request.cc (resetUrl)
  6147. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6148. Supported absolute/relative path in Location header field.
  6149. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6150. * src/HttpHeader.cc
  6151. * src/HttpHeader.h
  6152. * src/HttpResponse.cc
  6153. * src/HttpSkipResponseCommand.cc
  6154. * src/Request.cc
  6155. * test/HttpHeaderTest.cc
  6156. * test/HttpResponseTest.cc
  6157. * test/RequestTest.cc
  6158. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Changed help text for --load-cookie option.
  6160. * doc/aria2c.1.txt
  6161. * src/usage_text.h
  6162. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Regenerated test/Makefile.in to remove stale ChangeLog.
  6164. * test/Makefile.in
  6165. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Updated po files.
  6167. * po/aria2c.pot
  6168. * po/*.po
  6169. * po/*.gmo
  6170. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. Bump up version number to 0.15.0b
  6172. * configure.ac
  6173. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Externalize messages.
  6175. * src/RequestGroupMan.cc
  6176. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6177. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Use File::exists() instead of File::isFile() to allow non-regular file
  6179. such as block special files.
  6180. * src/AbstractDiskWriter.cc
  6181. * src/MultiDiskWriter.cc
  6182. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6183. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6184. * src/gai_strerror.h
  6185. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Fixed compile error. Thanks gknauf for the patch.
  6187. * src/asctime_r.c
  6188. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Included asctime_r.h from a2time.h.
  6190. * src/a2time.h
  6191. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Added a message "aria2 doesn't verify signature" to log message when
  6193. signature file is saved.
  6194. * src/RequestGroupMan.cc
  6195. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Added the ability to save signature when download is completed if
  6197. signature is available. The filename of signature file is the path to
  6198. download file followed by ".sig". If it already exists, then signature
  6199. will not be saved.
  6200. * src/RequestGroupMan.cc
  6201. * src/Signature.cc
  6202. * test/SignatureTest.cc
  6203. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6204. Updated the descriptions for --bt-seed-unverified.
  6205. * doc/aria2c.1
  6206. * doc/aria2c.1.html
  6207. * doc/aria2c.1.txt
  6208. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6210. that this is not going to verify files using piece hashes.
  6211. * src/HelpItemFactory.cc
  6212. * src/OptionHandlerFactory.cc
  6213. * src/RequestGroup.cc
  6214. * src/option_processing.cc
  6215. * src/prefs.cc
  6216. * src/prefs.h
  6217. * src/usage_text.h
  6218. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6219. Added the ability to retrieve signature from Metalink file.
  6220. A retrieved signature is stored in Signature class and it is held by
  6221. DownloadContext class. Note that aria2 doesn't verify signature.
  6222. * src/DownloadContext.cc
  6223. * src/DownloadContext.h
  6224. * src/Makefile.am
  6225. * src/Makefile.in
  6226. * src/Metalink2RequestGroup.cc
  6227. * src/MetalinkEntry.cc
  6228. * src/MetalinkEntry.h
  6229. * src/MetalinkParserController.cc
  6230. * src/MetalinkParserController.h
  6231. * src/MetalinkParserStateMachine.cc
  6232. * src/MetalinkParserStateMachine.h
  6233. * src/Signature.cc
  6234. * src/Signature.h
  6235. * src/SignatureMetalinkParserState.cc
  6236. * src/SignatureMetalinkParserState.h
  6237. * src/VerificationMetalinkParserState.cc
  6238. * src/VerificationMetalinkParserState.h
  6239. * test/Metalink2RequestGroupTest.cc
  6240. * test/MetalinkParserControllerTest.cc
  6241. * test/MetalinkProcessorTest.cc
  6242. * test/test.xml
  6243. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6244. Close DiskAdaptor after renaming file.
  6245. * src/RequestGroup.cc
  6246. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Corrected indentation
  6248. * src/DefaultBtProgressInfoFile.cc
  6249. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6250. Moved the calls of std::ios::exceptions() inside of try-catch block
  6251. because if an error occurred in constructor of std::fstream, then
  6252. exception is thrown immediately when std::ios::exceptions() is called
  6253. which results unhandled exception and aria2c aborts.
  6254. * src/DefaultBtProgressInfoFile.cc
  6255. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. Added the test for the previous change in DefaultBtContext.cc
  6257. * test/DefaultBtContextTest.cc
  6258. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6259. Fixed the bug that causes infinite loop when the number of pieces are
  6260. fewer than allowed fast set size which is 10 by default.
  6261. * src/DefaultBtContext.cc
  6262. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6263. Updated the descriptions for -j, -s. Added --bt-seed.
  6264. * doc/aria2c.1
  6265. * doc/aria2c.1.html
  6266. * doc/aria2c.1.txt
  6267. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6268. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6269. aria2 seeds previously downloaded files without validating piece hashs.
  6270. * src/HelpItemFactory.cc
  6271. * src/OptionHandlerFactory.cc
  6272. * src/RequestGroup.cc
  6273. * src/option_processing.cc
  6274. * src/prefs.cc
  6275. * src/prefs.h
  6276. * src/usage_text.h
  6277. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. Updated DESCRIPTION of man page.
  6279. * doc/aria2c.1
  6280. * doc/aria2c.1.html
  6281. * doc/aria2c.1.txt
  6282. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6283. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6284. Don't define `struct addrinfo' when __sun is defined.
  6285. * src/getaddrinfo.h
  6286. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6287. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6288. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6289. second argument is of type `struct _stati64'. Otherwise it is defined as
  6290. `struct stat'.
  6291. * src/AbstractDiskWriter.cc
  6292. * src/File.cc
  6293. * src/File.h
  6294. * src/a2io.h
  6295. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6296. Fixed the compile error in hurd-i386
  6297. See the original bug report:
  6298. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6299. * src/a2io.h
  6300. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6301. Code cleanup.
  6302. * src/PeerAbstractCommand.cc
  6303. * src/PeerAbstractCommand.h
  6304. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Removed TransferEncoding.
  6306. * src/DownloadCommand.cc
  6307. * src/DownloadCommand.h
  6308. * src/HttpResponseCommand.cc
  6309. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. Updated po files.
  6311. * po/aria2c.pot
  6312. * po/*.po
  6313. * po/*.gmo
  6314. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6316. * src/A2STR.cc
  6317. * src/A2STR.h
  6318. * src/ChunkedDecoder.cc
  6319. * src/ChunkedDecoder.h
  6320. * src/ChunkedEncoding.cc: Removed
  6321. * src/ChunkedEncoding.h: Removed
  6322. * src/DownloadCommand.cc
  6323. * src/DownloadCommand.h
  6324. * src/HttpDownloadCommand.cc
  6325. * src/HttpResponse.cc
  6326. * src/HttpResponse.h
  6327. * src/HttpResponseCommand.cc
  6328. * src/HttpSkipResponseCommand.cc
  6329. * src/HttpSkipResponseCommand.h
  6330. * src/Makefile.am
  6331. * src/TransferEncoding.h: Removed
  6332. * test/ChunkedDecoderTest.cc
  6333. * test/ChunkedEncodingTest.cc: Removed
  6334. * test/HttpResponseTest.cc
  6335. * test/Makefile.am
  6336. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Use append instead of insert.
  6338. * src/GZipDecoder.cc
  6339. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Updated doc
  6341. * src/Decoder.h
  6342. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6343. Updated usage text for -s option.
  6344. * src/usage_text.h
  6345. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6347. * src/Request.cc
  6348. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6349. Cleaned up configure.ac.
  6350. * configure.ac
  6351. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6352. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6353. AC_ARG_ENABLE.
  6354. * configure.ac
  6355. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6357. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6358. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6359. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6360. fly and writes decoded data to a local disk.
  6361. * README
  6362. * README.html
  6363. * configure.ac
  6364. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6365. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6366. * m4/libz.m4
  6367. * src/Decoder.h
  6368. * src/DownloadCommand.cc
  6369. * src/DownloadCommand.h
  6370. * src/Exception.h
  6371. * src/GZipDecoder.cc
  6372. * src/GZipDecoder.h
  6373. * src/HttpHeader.cc
  6374. * src/HttpHeader.h
  6375. * src/HttpRequest.cc
  6376. * src/HttpRequest.h
  6377. * src/HttpResponse.cc
  6378. * src/HttpResponse.h
  6379. * src/HttpResponseCommand.cc
  6380. * src/Makefile.am
  6381. * test/GZipDecoderTest.cc
  6382. * test/HttpRequestTest.cc
  6383. * test/HttpResponseTest.cc
  6384. * test/Makefile.am
  6385. * test/Makefile.in
  6386. * test/gzip_decode_test.gz
  6387. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6388. Clarified usage of -j option.
  6389. * src/usage_text.h
  6390. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6391. Disabled getting size from the response of RETR.
  6392. If SIZE command failed, then disable resuming and segmented downloading.
  6393. * src/FtpConnection.cc
  6394. * src/FtpConnection.h
  6395. * src/FtpNegotiationCommand.cc
  6396. * src/FtpNegotiationCommand.h
  6397. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6398. Use digits to find first byte of file size, which makes the intention
  6399. of the code clearer.
  6400. * src/FtpConnection.cc
  6401. Don't call validateTotalLength() when size is 0.
  6402. * src/FtpNegotiationCommand.cc
  6403. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6404. Updated po files.
  6405. * po/aria2c.pot
  6406. * po/*.gmo
  6407. * po/*.po
  6408. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6409. Clarified usage text for --split option.
  6410. * src/usage_text.h
  6411. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6412. Bump up version number to 0.15.0dev. "dev" means "development"
  6413. version, which means I started the development of the next release!
  6414. * src/configure.ac
  6415. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6416. If FTP server returns negative response with REST raw command and
  6417. requested range is not 0, throw exception. If requested range is 0,
  6418. continue download a file from 0 byte.
  6419. * src/FtpNegotiationCommand.cc
  6420. * src/FtpNegotiationCommand.h
  6421. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6422. Supported FTP server which don't recognize SIZE raw command.
  6423. If SIZE raw command is failed, aria2 will try to get file size
  6424. from the response of RETR raw command. If both attempts are failed,
  6425. then resuming and segmented downloading are disabled.
  6426. * src/FtpConnection.cc
  6427. * src/FtpConnection.h
  6428. * src/FtpNegotiationCommand.cc
  6429. * src/FtpNegotiationCommand.h
  6430. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. * Release 0.14.0+1
  6432. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6433. Bump up version number to 0.14.0+1
  6434. * src/configure.ac
  6435. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6436. Fixed the code that refers static member variable from non-static
  6437. context.
  6438. * src/DefaultPeerStorage.cc
  6439. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. * Release 0.14.0
  6441. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6442. Added build test script
  6443. * build_test.sh
  6444. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6445. Updated ja.po
  6446. * src/ja.po
  6447. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6448. Bump up version number to 0.14.0
  6449. * src/configure.ac
  6450. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6451. Updated ja.po and fr.po. Great thanks for french translators and
  6452. Sebastien WILLEMIJNS.
  6453. * po/fr.po
  6454. * po/ja.po
  6455. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6456. Added configure option to enable/disable epoll support.
  6457. * configure.ac
  6458. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. Updated man page.
  6460. * doc/aria2c.1.txt
  6461. * doc/aria2c.1
  6462. * doc/aria2c.1.html
  6463. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6464. Added missing default value '5' to the usage of --split option.
  6465. * src/HelpItemFactory.cc
  6466. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6467. Filled up pieces based on the number of missing blocks, rather than
  6468. simplay the number of piece * block length.
  6469. * src/BtRequestFactory.h
  6470. * src/DefaultBtInteractive.cc
  6471. * src/DefaultBtInteractive.h
  6472. * src/DefaultBtRequestFactory.cc
  6473. * src/DefaultBtRequestFactory.h
  6474. * src/Piece.cc
  6475. * src/Piece.h
  6476. * test/BitfieldManTest.cc
  6477. * test/DefaultBtRequestFactoryTest.cc
  6478. * test/MockBtRequestFactory.h
  6479. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6480. Made _epEvents a member variable.
  6481. * src/DownloadEngine.cc
  6482. * src/DownloadEngine.h
  6483. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6484. Cancel download if http redirect is bounded more than 20 times.
  6485. * src/AbstractCommand.cc
  6486. * src/HttpSkipResponseCommand.cc
  6487. * src/Request.cc
  6488. * src/Request.h
  6489. * test/RequestTest.cc
  6490. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6491. Fixed unhandled exception(removed keyword `new').
  6492. * src/SocketCore.cc (initEPOLL)
  6493. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6494. Removed visit(const MetaEntry*)
  6495. * src/MetaEntryVisitor.h:
  6496. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6497. and made them virtual.
  6498. * src/BencodeVisitor.h
  6499. * src/BencodeVisitor.cc
  6500. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6501. Updated po files.
  6502. * po/aria2c.pot
  6503. * po/*.po
  6504. * po/*.gmo
  6505. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6507. the number of socket to watch out.
  6508. * src/PeerInteractionCommand.cc
  6509. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. When there is not enough space in disk when writing a chunk of data,
  6511. aria2 now prints the message to the console to warn user and aborts
  6512. its download. Not all downloads are canceled because some downloads
  6513. may use another disk or partition. BUG#1640332
  6514. * src/AbstractDiskWriter.cc
  6515. * src/PeerAbstractCommand.cc
  6516. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6517. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6518. setHaltRequested(true) to cancel download.
  6519. * src/PeerInteractionCommand.h
  6520. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6521. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6522. socket from int to sock_t as sockets are unsigned in Windows.
  6523. For AsyncNameResolver, DownloadEngine, I did additional modification
  6524. for the portion of the code changed according to epoll support.
  6525. I defined sock_t in a2netcompat.h to use sock_t without including
  6526. SocketCore.h.
  6527. * src/AsyncNameResolver.cc
  6528. * src/AsyncNameResolver.h
  6529. * src/DownloadEngine.cc
  6530. * src/DownloadEngine.h
  6531. * src/SocketCore.cc
  6532. * src/SocketCore.h
  6533. * src/a2netcompat.h
  6534. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6536. changes in the patch were applied.
  6537. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6538. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6539. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6540. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6542. a2io.h and common.h were modified.
  6543. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6544. MinGW.
  6545. * src/common.h: Changed off_t to 64 bit in MinGW.
  6546. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6548. only a2netcompat.h is modified.
  6549. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6550. directives.
  6551. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6553. only gai_strerror.h is modified.
  6554. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6555. winsock errors in MinGW.
  6556. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6558. follow sources are applied.
  6559. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6560. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6561. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6562. I included locale.h from Platform.cc.
  6563. * src/main.cc: Moved common setup/teardown code to Platform class.
  6564. * test/AllTest.cc: Use Platform class.
  6565. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6566. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6567. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6568. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6569. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6570. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6571. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6572. aria2-0.13.2+1-mingw-2.patch.
  6573. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6574. systems which don't have termious.h. I moved the directive inside of
  6575. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6576. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6577. anyway.
  6578. * src/asctime_r.h
  6579. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6580. I added 2nd argument to the prototype declaration.
  6581. * src/StringFormat.cc: Get rid of vasprintf.
  6582. * src/getaddrinfo.h: Fixed constants.
  6583. * configure.ac: Added the check for asctime_r function.
  6584. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6585. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6586. Added writable test for Socket when the sending message is in progress.
  6587. Usually the sending message is piece message. Without wriable check,
  6588. upload latency is dropped to more than 1sec.
  6589. * src/PeerInteractionCommand.cc
  6590. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Create only requested files and files which shares a piece with
  6592. requested file in multi-torrent downloads. Directory structures are
  6593. also created in the same rule.
  6594. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6595. DiskWriterEntry as in the previous implementation.
  6596. * src/MultiDiskWriter.cc
  6597. * src/MultiFileAllocationIterator.cc
  6598. * src/MultiFileAllocationIterator.h
  6599. * test/MultiFileAllocationIteratorTest.cc
  6600. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Commented out -lprofiler
  6602. * src/Makefile.am
  6603. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Bump up version number to 0.14.0b.
  6605. * src/configure.ac
  6606. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6607. Actively establish connection to peers in seeding, when peer cache
  6608. is not full and max upload speed limit is not reached.
  6609. * src/ActivePeerConnectionCommand.cc
  6610. * src/ActivePeerConnectionCommand.h
  6611. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6613. to make room more fleshy, recently found peers.
  6614. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6615. it.
  6616. * src/DefaultPeerStorage.cc
  6617. * test/DefaultPeerStorageTest.cc
  6618. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Returns cached data only when the previous receiveHandshake() is called
  6620. with peek = true.
  6621. * src/PeerConnection.cc (receiveHandshake)
  6622. * src/PeerConnection.h (receiveHandshake)
  6623. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6624. Changed default value of -s option from 1 to 5.
  6625. Also max value of -s option is changed from 5 to 16.
  6626. * src/HelpItemFactory.cc
  6627. * src/OptionHandlerFactory.cc
  6628. * src/option_processing.cc
  6629. * src/usage_text.h
  6630. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6631. Changed -s options behavior. Now it means the number of connections
  6632. made simultaneously in each http/ftp download.
  6633. If 1 URL is specified, the behavior is the same with old implementation.
  6634. If -s N is given and more than N URLs are specified, first N URLs are
  6635. used and remaining URLs are used for backup. If less than N URLs are
  6636. specified, some of URLs are used more than once so that totally N
  6637. connections are made simultaneously.
  6638. * src/main.cc
  6639. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Included missing iosfwd or ostream header.
  6641. * src/RequestGroupMan.cc
  6642. * src/TaggedItem.cc
  6643. * src/TaggedItem.h
  6644. * src/Util.cc
  6645. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6646. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6647. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6648. * src/HttpConnection.cc: Included missing sstream.
  6649. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6650. Added --bt-max-open-files option.
  6651. * src/DefaultPieceStorage.cc
  6652. * src/HelpItemFactory.cc
  6653. * src/MultiDiskAdaptor.cc
  6654. * src/MultiDiskAdaptor.h
  6655. * src/OptionHandlerFactory.cc
  6656. * src/option_processing.cc
  6657. * src/prefs.cc
  6658. * src/prefs.h
  6659. * src/usage_text.h
  6660. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6661. Fixed the bug that aria2 aborts when a path to a directory is given
  6662. in command-line.
  6663. * src/ProtocolDetector.cc
  6664. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6665. Limited the number files opened in each BitTorrent download. The default
  6666. value is 100. The option to change this value will be added.
  6667. * src/MultiDiskAdaptor.cc
  6668. * src/MultiDiskAdaptor.h
  6669. * src/MultiFileAllocationIterator.cc
  6670. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Fixed the bug that HTTP downloads don't start with old libraries.
  6672. * src/HttpHeaderProcessor.cc
  6673. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Use empty() instead of size() > 0.
  6675. * src/HttpConnection.cc
  6676. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6677. Drop connection if the incoming peer ID is the same with localhost's
  6678. one. The previous implementation drops connection when incoming peer's
  6679. IP address is the same with localhost's one.
  6680. * src/PeerListenCommand.cc
  6681. * src/DefaultBtInteractive.cc
  6682. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6683. Returns cached data without checking whether socket is readable
  6684. if the cache is available.
  6685. * src/PeerConnection.cc (receiveHandshake)
  6686. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6687. Included stdint.h
  6688. * src/common.h
  6689. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Removed duplicate HAVE_GETTIMEOFDAY
  6691. * src/Makefile.am
  6692. * src/Makefile.in
  6693. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. Use interval as a minInterval when minInterval is not supplied.
  6695. * src/DefaultBtAnnounce.cc
  6696. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6698. attempt is failed, then 2nd attempt get kicked out more quickly.
  6699. And it is now static const member of DefaultBtAnnounce.
  6700. * src/DefaultBtAnnounce.h
  6701. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6703. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6704. * src/ActivePeerConnectionCommand.cc
  6705. * src/BtConstants.h
  6706. * src/BtRuntime.h
  6707. * src/DHTGetPeersCommand.cc
  6708. * src/DefaultBtAnnounce.cc
  6709. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6710. BtRuntime::MAX_PEERS.
  6711. * src/DefaultPeerStorage.h
  6712. * src/InitiatorMSEHandshakeCommand.cc
  6713. * src/PeerInitiateConnectionCommand.cc
  6714. * src/PeerInteractionCommand.cc
  6715. * src/PeerReceiveHandshakeCommand.cc
  6716. * src/TrackerWatcherCommand.cc
  6717. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6718. Always Connect to _numNewConnection
  6719. * src/ActivePeerConnectionCommand.cc
  6720. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6721. Made `begin' unsigned int.
  6722. * src/GrowSegment.h
  6723. * src/Piece.cc
  6724. * src/Piece.h
  6725. * src/PiecedSegment.cc
  6726. * src/PiecedSegment.h
  6727. * src/Segment.h
  6728. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6729. Calculate piece hash when data is arrived if the data is arrived in
  6730. order. This removes additional read operation for hash calculation.
  6731. If the data is arrived in out of order, the hash is calucated when the
  6732. piece is completed. This is the same behavior as the old implementation.
  6733. * src/BtPieceMessage.cc
  6734. * src/DefaultBtProgressInfoFile.cc
  6735. * src/DefaultPieceStorage.cc
  6736. * src/DownloadCommand.cc
  6737. * src/DownloadCommand.h
  6738. * src/DownloadEngine.cc
  6739. * src/GrowSegment.cc
  6740. * src/GrowSegment.h
  6741. * src/Piece.cc
  6742. * src/Piece.h
  6743. * src/PiecedSegment.cc
  6744. * src/PiecedSegment.h
  6745. * src/Segment.h
  6746. * test/PieceTest.cc
  6747. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Try to keep the ordering of outgoing piece message.
  6749. * src/DefaultBtMessageDispatcher.cc
  6750. (DefaultBtMessageDispatcher::sendMessages)
  6751. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Fixed busy loop when error/hup epoll events occur.
  6753. * src/AbstractCommand.cc
  6754. * src/PeerAbstractCommand.cc
  6755. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6756. Added --bt-request-peer-speed-limit option, which was a constant
  6757. SLOW_SPEED_THRESHOLD.
  6758. * src/ActivePeerConnectionCommand.cc
  6759. * src/ActivePeerConnectionCommand.h
  6760. * src/BtConstants.h
  6761. * src/HelpItemFactory.cc
  6762. * src/OptionHandlerFactory.cc
  6763. * src/PeerReceiveHandshakeCommand.cc
  6764. * src/option_processing.cc
  6765. * src/prefs.cc
  6766. * src/prefs.h
  6767. * src/usage_text.h
  6768. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6769. Removed repeated call of getTopDirPath(). Instead, call it once and
  6770. cache the result.
  6771. * src/MultiDiskAdaptor.cc
  6772. * src/MultiDiskAdaptor.h
  6773. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6774. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Fixed compile error on debian etch.
  6776. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6777. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6778. it is undefined.
  6779. * src/Util.cc (ULLONG_MAX)
  6780. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6781. Added epoll support. Use epoll if it is available. If not, use select.
  6782. When async dns is enabled in compile time, epoll support is enabled
  6783. only when aria2 is built with c-ares. This condition statement is
  6784. defined in a2io.h.
  6785. Currently aria2 supports both c-ares and ares, but ares is maintained
  6786. for quite a while and debian already has c-ares package, ares support
  6787. will be dropped in the future version.
  6788. * configure.ac
  6789. * src/AbstractCommand.cc
  6790. * src/AsyncNameResolver.cc
  6791. * src/AsyncNameResolver.h
  6792. * src/Command.cc
  6793. * src/Command.h
  6794. * src/DownloadEngine.cc
  6795. * src/DownloadEngine.h
  6796. * src/PeerAbstractCommand.cc
  6797. * src/SocketCore.cc
  6798. * src/SocketCore.h
  6799. * src/a2io.h
  6800. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6801. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6802. directive.
  6803. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6804. Do not do write operation to /dev/null file.
  6805. * src/LogFactory.cc
  6806. * src/SimpleLogger.cc
  6807. Replaced vasprintf with vsnprintf
  6808. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6809. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6810. * src/BtRequestMessage.cc
  6811. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6812. for segmentation fault caused by previous commit.
  6813. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Reduced the usage of gettimeofday().
  6815. * src/DefaultBtMessageDispatcher.cc
  6816. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6817. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6818. * src/RequestSlot.cc
  6819. * src/RequestSlot.h
  6820. (RequestSlot::isTimeout)
  6821. Made RequestSlot have a reference to Piece object to avoid find
  6822. Piece repeatedly.
  6823. * src/DefaultBtMessageDispatcher.cc
  6824. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6825. * src/RequestSlot.cc
  6826. * src/RequestSlot.h
  6827. (RequestSlot::getPiece)
  6828. * test/DefaultBtMessageDispatcherTest.cc
  6829. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6830. * src/TimeA2.cc
  6831. * src/TimeA2.h
  6832. (Time::difference): New function.
  6833. (Time::elapsed): Done optimization.
  6834. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6835. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6836. directive.
  6837. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6838. * src/option_processing.cc: Added missing `defined' keyword to #if
  6839. directive.
  6840. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Bump up version number to 0.13.2+1
  6842. * src/configure.ac
  6843. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6844. Refactored broken outstanding piece handling.
  6845. * src/DefaultPieceStorage.cc
  6846. * src/DefaultPieceStorage.h
  6847. * src/Piece.cc
  6848. * src/Piece.h
  6849. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6850. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6851. name collision of static variable and predefined macro.
  6852. * src/BtContext.cc
  6853. * src/BtContext.h
  6854. * src/CookieBoxFactory.cc
  6855. * src/CookieBoxFactory.h
  6856. * src/CookieParser.cc
  6857. * src/CookieParser.h
  6858. * src/DefaultBtContext.cc
  6859. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. * src/RequestGroup.cc
  6861. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6862. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. * Release 0.13.2
  6864. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6866. * po/fr.po
  6867. * po/ja.po
  6868. * po/aria2c.pot
  6869. * po/*.po
  6870. * po/*.gmo
  6871. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Bump up version number to 0.13.2
  6873. * src/configure.ac
  6874. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6875. Refactord.
  6876. * src/RequestGroupMan.cc
  6877. (removeStoppedGroup)
  6878. (fillRequestGroupFromReserver)
  6879. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Fixed compile error on Ubuntu.
  6881. * src/BtPieceMessage.cc
  6882. * src/MessageDigestHelper.cc
  6883. * src/Util.cc
  6884. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Fixed compile error when configured with --disable-bittorrent
  6886. * test/DownloadHandlerFactoryTest.cc
  6887. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6888. Done make update-po
  6889. * po/aria2c.pot
  6890. * po/*.po
  6891. * po/*.gmo
  6892. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Bump up version number to 0.13.2rc.
  6894. * src/configure.ac
  6895. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Made option name bold. Updated SYNOPSIS to make it more readable.
  6897. * doc/aria2c.1.txt
  6898. * doc/aria2c.1
  6899. * doc/aria2c.1.html
  6900. * src/version_usage.cc
  6901. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6902. Refactored. Use std::string instead of size and char*.
  6903. * Data.cc
  6904. * Data.h
  6905. * test/Data.cc
  6906. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. Added trimSelf(). Rewritten trim() to use trimSelf().
  6908. * Util.cc
  6909. * Util.h
  6910. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6912. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Fixed compile error when configured with --disable-metalink.
  6914. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6915. * test/FeatureConfigTest.cc
  6916. * test/DownloadHandlerFactoryTest.cc
  6917. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6918. Fixed compile error when configured with --without-gnutls
  6919. --without-openssl
  6920. * src/main.cc
  6921. * test/DefaultBtProgressInfoFileTest.cc
  6922. * test/SegmentManTest.cc
  6923. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Fixed compile error with OpenSSL.
  6925. * src/IteratableChunkChecksumValidator.cc
  6926. * src/LibsslDHKeyExchange.h
  6927. * src/MessageDigestHelper.cc
  6928. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6929. Revert the default value of --max-concurrent-downloads to 5.
  6930. Revert the default value of --metalink-servers to 5.
  6931. Man pages was also updated.
  6932. * src/option_processing.cc
  6933. * doc/aria2c.1.txt
  6934. * doc/aria2c.1.html
  6935. * doc/aria2c.1
  6936. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Returns const reference:
  6938. DownloadContext::getPieceHash, DownloadContext::getName,
  6939. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6940. BtContext::getInfoHashAsString,
  6941. * src/BtContext.h
  6942. * src/DefaultBtContext.cc
  6943. * src/DefaultBtContext.h
  6944. * src/DownloadContext.h
  6945. * src/SingleFileDownloadContext.h
  6946. * test/MockBtContext.h
  6947. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6948. * src/RequestGroup.h (getDir): Removed.
  6949. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6950. Returns const reference. The internal urlencode function was optimized
  6951. a little bit.
  6952. * src/Request.cc
  6953. * src/Request.h
  6954. * src/HttpRequest.cc
  6955. * src/HttpRequest.h
  6956. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6957. Defined option name and possible values as std::string to reduce
  6958. temporary string object creation in runtime.
  6959. * src/HelpItemFactory.cc
  6960. * src/LogFactory.cc
  6961. * src/Option.cc
  6962. * src/OptionHandlerFactory.cc
  6963. * src/option_processing.cc
  6964. * src/prefs.cc
  6965. * src/prefs.h
  6966. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6967. Return const reference.
  6968. * src/DownloadHandlerConstants.cc
  6969. * src/DownloadHandlerConstants.h
  6970. (getMetalinkExtensions)
  6971. (getMetalinkContentTypes)
  6972. (getBtExtensions)
  6973. (getBtContentTypes)
  6974. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. * src/HttpHeader.cc (get): Rewritten.
  6976. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6977. Make HttpHeader::getFirst(...) return const reference.
  6978. * src/HttpHeader.cc
  6979. * src/HttpHeader.h
  6980. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6981. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6982. it with V_TRUE.
  6983. * src/DefaultPieceStorage.cc
  6984. * src/DownloadCommand.cc
  6985. * src/FtpNegotiationCommand.cc
  6986. * src/HttpRequest.cc
  6987. * src/InitiateConnectionCommand.cc
  6988. * src/RequestGroup.cc
  6989. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6990. Made Option::get(...) return const reference of std::string.
  6991. * src/Option.cc
  6992. * src/Option.h
  6993. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6994. Replaced std:copy with insert.
  6995. * src/DefaultBtMessageDispatcher.cc
  6996. * src/DefaultPieceStorage.cc
  6997. * src/DownloadEngineFactory.cc
  6998. * src/RequestGroup.cc
  6999. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7000. Included SocketCore.h to fix compiler warning.
  7001. * src/InitiateConnectionCommand.cc
  7002. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7003. Put piece selection strategy algorithm to RarestPieceSelector class,
  7004. Added a switch to choose whether randomized selection so that unit
  7005. tests emit same results in, possibly, win32.
  7006. * src/DefaultPieceStorage.cc
  7007. * src/DefaultPieceStorage.h
  7008. * src/RarestPieceSelector.cc
  7009. * src/RarestPieceSelector.h
  7010. * test/DefaultPieceStorageTest.cc
  7011. * test/RarestPieceSelectorTest.cc
  7012. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7013. Don't pool connection if HTTP proxy is enabled.
  7014. * src/FtpFinishDownloadCommand.cc
  7015. * src/FtpNegotiationCommand.cc
  7016. * src/HttpSkipResponseCommand.cc
  7017. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7019. * src/AbstractCommand.cc
  7020. * src/AbstractCommand.h
  7021. * src/ActivePeerConnectionCommand.cc
  7022. * src/FtpInitiateConnectionCommand.cc
  7023. * src/HttpInitiateConnectionCommand.cc
  7024. * src/InitiateConnectionCommandFactory.cc
  7025. * src/PeerAbstractCommand.cc
  7026. * src/PeerAbstractCommand.h
  7027. * src/PeerInitiateConnectionCommand.cc
  7028. * src/TrackerWatcherCommand.cc
  7029. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7030. Sort RequestSlot in ascending order and manipulate them using
  7031. lower_bound.
  7032. * src/DefaultBtMessageDispatcher.cc
  7033. * src/DefaultBtMessageDispatcher.h
  7034. (getMessageQueue): Added const qualifier.
  7035. (getRequestSlots): Added const qualifier.
  7036. (sendMessages): Use empty() instead of size().
  7037. (doCancelSendingPieceAction): Use HandleEvent object.
  7038. (doAbortOutstandingRequestAction): Rewritten.
  7039. (doChokedAction): Rewritten.
  7040. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7041. (isOutstandingRequest): Rewritten.
  7042. (getOutstandingRequest): Rewritten.
  7043. (removeOutstandingRequest): Rewritten.
  7044. (addOutstandingRequest): Rewritten.
  7045. * src/RequestSlot.cc
  7046. * src/RequestSlot.h
  7047. (operator=): Rewritten.
  7048. (operator!=): New function.
  7049. (operator<): New function.
  7050. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. * src/DefaultBtRequestFactory.cc
  7052. (doChokedAction): Rewritten.
  7053. (removeCompletedPiece): Rewritten.
  7054. (removeTargetPiece): Rewritten.
  7055. (createRequestMessages): Added the debug log.
  7056. (createRequestMessagesOnEndGame: Added the debug log.
  7057. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7058. Added the debug log message.
  7059. * src/BtPieceMessage.cc (doReceivedAction)
  7060. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7061. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7062. used lower_bound to process them rather than linear search.
  7063. * src/DHTPeerAnnounceStorage.cc
  7064. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7065. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7066. peer has at least one completed piece.
  7067. * src/Peer.cc
  7068. * src/Peer.h
  7069. * src/PeerInteractionCommand.cc
  7070. * src/PeerSessionResource.cc
  7071. * src/PeerSessionResource.h
  7072. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7073. Removed unnecessary sorting
  7074. * src/DefaultPieceStorage (DefaultPieceStorage)
  7075. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7076. Rewritten the portion of the code that mangaes allowed fast indexes.
  7077. * src/PeerSessionResource.cc
  7078. * src/PeerSessionResource.h
  7079. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. Removed the invalid string including '\r' from ru.po and
  7081. did make update-po.
  7082. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. Added --log-level and --summary-interval to man page.
  7084. * doc/aria2c.1.txt
  7085. * doc/aria2c.1.html
  7086. * doc/aria2c.1
  7087. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Added --log-level option to specify log level. Log messages under
  7089. the specified level are not output. Default value is `debug'.
  7090. * src/HelpItemFactory.cc
  7091. * src/LogFactory.cc
  7092. * src/LogFactory.h
  7093. * src/Logger.h
  7094. * src/OptionHandlerFactory.cc
  7095. * src/SimpleLogger.cc
  7096. * src/SimpleLogger.h
  7097. * src/main.cc
  7098. * src/option_processing.cc
  7099. * src/prefs.h
  7100. * src/usage_text.h
  7101. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Print download progress summary of all parallel downloads in specified
  7103. interval, default 60 secs. While aria2 could download several files
  7104. in parallel (see -j option), it displayed just first download progress,
  7105. and the other downloads are hidden from the users. This new feature
  7106. prints all downloads currently in-progress to the console so that you
  7107. can check the status of all downloads. The interval can be adjusted
  7108. by --summary-interval option.
  7109. The progress readout is now cut so that all fits in the one line of
  7110. console.
  7111. * src/ConsoleStatCalc.cc
  7112. * src/ConsoleStatCalc.h
  7113. * src/HelpItemFactory.cc
  7114. * src/OptionHandlerFactory.cc
  7115. * src/RequestGroupMan.cc
  7116. * src/RequestGroupMan.h
  7117. * src/main.cc
  7118. * src/option_processing.cc
  7119. * src/prefs.h
  7120. * src/usage_text.h
  7121. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7123. * src/DownloadEngine.cc (DownloadEngine)
  7124. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7126. defined.
  7127. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7128. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Use erase+lower_bound+insert instead of sort.
  7130. * src/DefaultPieceStorage.cc (addPieceStats)
  7131. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7133. * src/A2STR.cc
  7134. * src/A2STR.h
  7135. * src/OptionParser.cc (parse)
  7136. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Defined fake filename `[tracker.announce]' as static const std::string.
  7138. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7139. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7140. Defined default filename `index.html' as static const std::string
  7141. * src/SingleFileDownloadContext.cc
  7142. * src/SingleFileDownloadContext.h
  7143. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7144. Defined "[MEMORY]" as static const std::string.
  7145. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7146. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7147. Defined control file's version number as static const std::string.
  7148. * src/DefaultBtProgressInfoFile.cc
  7149. * src/DefaultBtProgressInfoFile.h
  7150. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7151. Use Request::METHOD_GET
  7152. * src/RequestGroup.cc (createNextCommandWithAdj)
  7153. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Defined "OK", "ERR", "INPR" as static const std::string
  7155. * src/RequestGroupMan.cc (showDownloadResults)
  7156. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Defined default client used in extended handshake as static const
  7158. std::string
  7159. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7160. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7162. * src/HttpConnection.cc (eraseConfidentialInfo)
  7163. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7164. Defined default ftp user and password as static const std::string
  7165. * src/AuthConfigFactory.cc
  7166. * src/AuthConfigFactory.h
  7167. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Defined strings used in netrc as static const std::string
  7169. * src/Netrc.cc
  7170. * src/Netrc.h
  7171. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7172. Defined HTTP status as static const std::string
  7173. * src/AbstractProxyResponseCommand.cc
  7174. * src/HttpHeader.cc
  7175. * src/HttpHeader.h
  7176. * src/HttpResponse.cc
  7177. * src/HttpResponseCommand.cc
  7178. * src/HttpSkipResponseCommand.cc
  7179. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Defined "\r\n", "A", "I" as static const std::string
  7181. * src/A2STR.cc
  7182. * src/A2STR.h
  7183. * src/FtpConnection.cc
  7184. * src/FtpConnection.h
  7185. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Added COLON_C(".") and used it in Request::parseUrl()
  7187. * src/A2STR.cc
  7188. * src/A2STR.h
  7189. * src/Request.cc (parseUrl)
  7190. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7191. Changed the type of padName from `const std::string&' to `const char*'.
  7192. * src/MSEHandshake.cc (verifyPadLength)
  7193. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Defined "sha1" as static const std::string.
  7195. * src/MetalinkParserController.cc
  7196. * src/MetalinkParserController.h
  7197. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Defined message digest algorithm name as static const std::string
  7199. * src/DHTTokenTracker.cc
  7200. * src/DHTUtil.cc
  7201. * src/DefaultBtContext.cc
  7202. * src/MSEHandshake.cc
  7203. * src/MessageDigestHelper.cc
  7204. * src/Peer.cc
  7205. * src/messageDigest.cc
  7206. * src/messageDigest.h
  7207. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. Made string literals used in SAX parser static const std::string.
  7209. * src/FileMetalinkParserState.cc
  7210. * src/FileMetalinkParserState.h
  7211. * src/FilesMetalinkParserState.cc
  7212. * src/FilesMetalinkParserState.h
  7213. * src/InitialMetalinkParserState.cc
  7214. * src/InitialMetalinkParserState.h
  7215. * src/MetalinkMetalinkParserState.cc
  7216. * src/MetalinkMetalinkParserState.h
  7217. * src/PiecesMetalinkParserState.cc
  7218. * src/PiecesMetalinkParserState.h
  7219. * src/ResourcesMetalinkParserState.cc
  7220. * src/ResourcesMetalinkParserState.h
  7221. * src/VerificationMetalinkParserState.cc
  7222. * src/VerificationMetalinkParserState.h
  7223. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7224. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7225. * src/A2STR.cc
  7226. * src/A2STR.h
  7227. * src/File.cc
  7228. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. Defined static const std::string IP("ip"), PORT("port") and use them
  7230. instead of string literals.
  7231. * src/DefaultPeerListProcessor.cc
  7232. * src/DefaultPeerListProcessor.h
  7233. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Made string literals for torrent file processing static const
  7235. std::string.
  7236. * src/BtContext.cc
  7237. * src/BtContext.h
  7238. * src/DefaultBtContext.cc
  7239. * src/DefaultBtContext.h
  7240. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. Made string literal for tracker response static const std::string
  7242. * src/BtAnnounce.cc
  7243. * src/BtAnnounce.h
  7244. * src/DefaultBtAnnounce.cc
  7245. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Use DHTMessage::T instead of "t".
  7247. * src/DHTMessageTracker.cc (messageArrived)
  7248. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7249. Made keyName static const. Made trimmed charset static const
  7250. std::string.
  7251. * src/Util.cc (getContentDispositionFilename)
  7252. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7253. Made USER_AGENT const. Made "/" static const std::string.
  7254. * src/A2STR.cc
  7255. * src/A2STR.h
  7256. * src/HttpRequest.cc
  7257. * src/HttpRequest.h
  7258. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Made string listeral to static const std::string:
  7260. "Content-Range", "Content-Length"
  7261. * src/HttpHeader.cc
  7262. * src/HttpHeader.h
  7263. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Made string listeral to static const std::string.
  7265. * src/HttpConnection.cc
  7266. * src/HttpHeader.cc
  7267. * src/HttpHeader.h
  7268. * src/HttpResponse.cc
  7269. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Made string listeral to static const std::string.
  7271. * src/A2STR.cc
  7272. * src/A2STR.h
  7273. * src/SimpleLogger.cc
  7274. * src/SimpleLogger.h
  7275. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Made string literal to static const std::string.
  7277. Rewritten CookieParser::setField.
  7278. * src/A2STR.cc
  7279. * src/A2STR.h
  7280. * src/CookieBoxFactory.cc
  7281. * src/CookieBoxFactory.h
  7282. * src/CookieParser.cc
  7283. * src/CookieParser.h
  7284. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7285. Made string literal to static const std::string
  7286. * src/DHTAbstractMessage.cc
  7287. * src/DHTAnnouncePeerMessage.cc
  7288. * src/DHTAnnouncePeerMessage.h
  7289. * src/DHTAnnouncePeerReplyMessage.cc
  7290. * src/DHTAnnouncePeerReplyMessage.h
  7291. * src/DHTFindNodeMessage.cc
  7292. * src/DHTFindNodeMessage.h
  7293. * src/DHTFindNodeReplyMessage.cc
  7294. * src/DHTFindNodeReplyMessage.h
  7295. * src/DHTGetPeersMessage.cc
  7296. * src/DHTGetPeersMessage.h
  7297. * src/DHTGetPeersReplyMessage.cc
  7298. * src/DHTGetPeersReplyMessage.h
  7299. * src/DHTMessage.cc
  7300. * src/DHTMessage.h
  7301. * src/DHTMessageFactoryImpl.cc
  7302. * src/DHTMessageReceiver.cc
  7303. * src/DHTPingMessage.cc
  7304. * src/DHTPingMessage.h
  7305. * src/DHTPingReplyMessage.cc
  7306. * src/DHTPingReplyMessage.h
  7307. * src/DHTQueryMessage.cc
  7308. * src/DHTQueryMessage.h
  7309. * src/DHTResponseMessage.cc
  7310. * src/DHTResponseMessage.h
  7311. * src/DHTUnknownMessage.cc
  7312. * src/DHTUnknownMessage.h
  7313. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7314. Made string literal to static const std::string
  7315. * src/BtChokeMessage.cc (toString)
  7316. * src/BtHaveAllMessage.cc (toString)
  7317. * src/BtHaveNoneMessage.cc (toString)
  7318. * src/BtInterestedMessage.cc (toString)
  7319. * src/BtNotInterestedMessage.cc (toString)
  7320. * src/BtUnchokeMessage.cc (toString)
  7321. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7322. Replaced "" with static const variable A2STR::NIL.
  7323. Replaced string comparison against "" with std::string::empty().
  7324. Added PROTO_* to Request class and use them as a protocol string
  7325. constant.
  7326. Made "started", "stopped", "completed" static const variable in
  7327. AnnounceList class.
  7328. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Updated translations. Great thanks to translators.
  7330. * po/ca.po
  7331. * po/de.po
  7332. * po/fr.po
  7333. * po/it.po
  7334. * po/ja.po
  7335. * po/ru.po
  7336. * po/zh_CN.po
  7337. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7338. Updated man page; categorized options and fixed typo.
  7339. * doc/aria2c.1.txt
  7340. * doc/aria2c.1.html
  7341. * doc/aria2c.1
  7342. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7343. Removed const ref
  7344. * src/MetalinkEntry.cc (AddProtocolPreference)
  7345. * src/RequestGroup.cc (FindServerHostByHostname)
  7346. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7347. Rewritten Accept-Features handling.
  7348. * src/HttpRequestCommand.cc (createHttpRequest)
  7349. * src/a2functional.h
  7350. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Changed method signature:
  7352. DHTAbstractNodeLookupTask::toEntries
  7353. * src/DHTAbstractNodeLookupTask.cc
  7354. * src/DHTAbstractNodeLookupTask.h
  7355. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7356. Changed method signature:
  7357. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7358. * src/BtContext.h
  7359. * src/DefaultBtContext.cc
  7360. * src/DefaultBtContext.h
  7361. * src/DefaultBtInteractive.cc
  7362. * test/DefaultBtContextTest.cc
  7363. * test/MockBtContext.h
  7364. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Changed method signature:
  7366. MultiFileAllocationIterator::makeDiskWriterEntries
  7367. * src/MultiFileAllocationIterator.cc
  7368. * src/MultiFileAllocationIterator.h
  7369. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7370. Changed method sinature:
  7371. MetalinkEntry::toFileEntry,
  7372. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7373. Metalinker::queryEntry
  7374. * src/Metalink2RequestGroup.cc
  7375. * src/MetalinkEntry.cc
  7376. * src/MetalinkEntry.h
  7377. * src/MetalinkHelper.cc
  7378. * src/MetalinkHelper.h
  7379. * src/Metalinker.cc
  7380. * src/Metalinker.h
  7381. * src/main.cc
  7382. * test/MetalinkHelperTest.cc
  7383. * test/MetalinkerTest.cc
  7384. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Changed method sinature:
  7386. RequestGroup::getURIs
  7387. * src/RequestGroup.cc
  7388. * src/RequestGroup.h
  7389. * test/Metalink2RequestGroupTest.cc
  7390. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Changed method signature:
  7392. PeerListProcessor::extractPeer
  7393. * src/CompactPeerListProcessor.cc
  7394. * src/CompactPeerListProcessor.h
  7395. * src/DefaultBtAnnounce.cc
  7396. * src/DefaultPeerListProcessor.cc
  7397. * src/DefaultPeerListProcessor.h
  7398. * src/DelegatingPeerListProcessor.cc
  7399. * src/DelegatingPeerListProcessor.h
  7400. * src/PeerListProcessor.h
  7401. * src/UTPexExtensionMessage.cc
  7402. * test/DefaultPeerListProcessorTest.cc
  7403. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7404. Changed method signature:
  7405. BtRequestFactory::createRequestMessages,
  7406. BtRequestFactory::createRequestMessagesOnEndGame
  7407. * src/BtRequestFactory.h
  7408. * src/DefaultBtInteractive.cc
  7409. * src/DefaultBtRequestFactory.cc
  7410. * src/DefaultBtRequestFactory.h
  7411. * test/DefaultBtRequestFactoryTest.cc
  7412. * test/MockBtRequestFactory.h
  7413. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Changed method signature:
  7415. PieceStorage::getInFlightPieces
  7416. * src/DefaultBtProgressInfoFile.cc
  7417. * src/DefaultPieceStorage.cc
  7418. * src/DefaultPieceStorage.h
  7419. * src/PieceStorage.h
  7420. * src/UnknownLengthPieceStorage.cc
  7421. * src/UnknownLengthPieceStorage.h
  7422. * test/DefaultBtProgressInfoFileTest.cc
  7423. * test/MockPieceStorage.h
  7424. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7425. Changed method signature:
  7426. PostDownloadHandler::getNextRequestGroups
  7427. Metalink2RequestGroup::generate
  7428. RequestGroup::postDownloadProcessing
  7429. * src/BtPostDownloadHandler.cc
  7430. * src/BtPostDownloadHandler.h
  7431. * src/Metalink2RequestGroup.cc
  7432. * src/Metalink2RequestGroup.h
  7433. * src/MetalinkPostDownloadHandler.cc
  7434. * src/MetalinkPostDownloadHandler.h
  7435. * src/PostDownloadHandler.h
  7436. * src/RequestGroup.cc
  7437. * src/RequestGroup.h
  7438. * src/RequestGroupMan.cc
  7439. * src/main.cc
  7440. * test/BtPostDownloadHandlerTest.cc
  7441. * test/Metalink2RequestGroupTest.cc
  7442. * test/MetalinkPostDownloadHandlerTest.cc
  7443. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Rewritten AccRequestGroup
  7445. * src/main.cc
  7446. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7447. Rewritten.
  7448. * src/TaggedItem.cc (toTagString)
  7449. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Rewritten Accept-Features handling.
  7451. * src/HttpRequestCommand.cc (createHttpRequest)
  7452. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. Rewritten accept types handling.
  7454. * HttpRequest.cc (createRequest)
  7455. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Rewritten
  7457. * src/FeatureConfig.cc (featureSummary)
  7458. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. Changed method signature:
  7460. PeerStorage::getActivePeers
  7461. * src/DHTPeerAnnounceEntry.cc
  7462. * src/DefaultPeerStorage.cc
  7463. * src/DefaultPeerStorage.h
  7464. * src/PeerStorage.h
  7465. * test/DefaultPeerStorageTest.cc
  7466. * test/MockPeerStorage.h
  7467. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7468. Changed method signature:
  7469. DHTPeerAnnounceStorage::getPeers,
  7470. DHTPeerAnnounceEntry::getPeers
  7471. * src/DHTGetPeersMessage.cc
  7472. * src/DHTPeerAnnounceEntry.cc
  7473. * src/DHTPeerAnnounceEntry.h
  7474. * src/DHTPeerAnnounceStorage.cc
  7475. * src/DHTPeerAnnounceStorage.h
  7476. * test/DHTAnnouncePeerMessageTest.cc
  7477. * test/DHTPeerAnnounceEntryTest.cc
  7478. * test/DHTPeerAnnounceStorageTest.cc
  7479. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7480. Changed method signature:
  7481. NameResolver::resolve
  7482. * src/DHTEntryPointNameResolveCommand.cc
  7483. * src/InitiateConnectionCommand.cc
  7484. * src/NameResolver.cc
  7485. * src/NameResolver.h
  7486. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7487. Changed method signature:
  7488. PieceStorage::getAdvertisedPieceIndexes
  7489. * src/DefaultBtInteractive.cc
  7490. * src/DefaultPieceStorage.cc
  7491. * src/DefaultPieceStorage.h
  7492. * src/PieceStorage.h
  7493. * src/UnknownLengthPieceStorage.h
  7494. * test/MockPieceStorage.h
  7495. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7496. Changed method signature:
  7497. SegmentMan::getInFlightSegment
  7498. * src/AbstractCommand.cc
  7499. * src/SegmentMan.cc
  7500. * src/SegmentMan.h
  7501. * test/SegmentManTest.cc
  7502. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. Changed method signature:
  7504. DHTAbstractNodeLookupTask::getNodesFromMessage
  7505. * src/DHTAbstractNodeLookupTask.cc
  7506. * src/DHTAbstractNodeLookupTask.h
  7507. * src/DHTNodeLookupTask.cc
  7508. * src/DHTNodeLookupTask.h
  7509. * src/DHTPeerLookupTask.cc
  7510. * src/DHTPeerLookupTask.h
  7511. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7512. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7513. * src/AbstractCommand.cc
  7514. * src/BtCheckIntegrityEntry.cc
  7515. * src/BtCheckIntegrityEntry.h
  7516. * src/BtFileAllocationEntry.cc
  7517. * src/BtFileAllocationEntry.h
  7518. * src/BtSetup.cc
  7519. * src/BtSetup.h
  7520. * src/CheckIntegrityCommand.cc
  7521. * src/CheckIntegrityEntry.h
  7522. * src/ChecksumCheckIntegrityEntry.cc
  7523. * src/ChecksumCheckIntegrityEntry.h
  7524. * src/DHTSetup.cc
  7525. * src/DHTSetup.h
  7526. * src/DownloadEngine.cc
  7527. * src/FileAllocationCommand.cc
  7528. * src/FileAllocationEntry.h
  7529. * src/RequestGroup.cc
  7530. * src/RequestGroup.h
  7531. * src/RequestGroupMan.cc
  7532. * src/RequestGroupMan.h
  7533. * src/StreamCheckIntegrityEntry.cc
  7534. * src/StreamCheckIntegrityEntry.h
  7535. * src/StreamFileAllocationEntry.cc
  7536. * src/StreamFileAllocationEntry.h
  7537. * src/TrackerWatcherCommand.cc
  7538. * src/a2functional.h
  7539. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Changed method signature:
  7541. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7542. DHTBucket::getGoodNodes,
  7543. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7544. * src/BNode.cc
  7545. * src/BNode.h
  7546. * src/DHTAbstractNodeLookupTask.cc
  7547. * src/DHTAutoSaveCommand.cc
  7548. * src/DHTBucket.cc
  7549. * src/DHTBucket.h
  7550. * src/DHTBucketRefreshTask.cc
  7551. * src/DHTFindNodeMessage.cc
  7552. * src/DHTGetPeersMessage.cc
  7553. * src/DHTRoutingTable.cc
  7554. * src/DHTRoutingTable.h
  7555. * test/BNodeTest.cc
  7556. * test/DHTBucketTest.cc
  7557. * test/DHTRoutingTableTest.cc
  7558. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7559. In piece selection functions, Pass std::deque<...> by reference rather
  7560. than returning it.
  7561. * src/BitfieldMan.cc
  7562. * src/BitfieldMan.h
  7563. * src/DefaultBtRequestFactory.cc
  7564. * src/DefaultPieceStorage.cc
  7565. * src/Piece.cc
  7566. * src/Piece.h
  7567. * test/BitfieldManTest.cc
  7568. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Implemented rarest piece first piece selection strategy.
  7570. * src/AbstractBtMessage.cc
  7571. * src/AbstractBtMessage.h
  7572. * src/BitfieldMan.cc
  7573. * src/BitfieldMan.h
  7574. * src/BtBitfieldMessage.cc
  7575. * src/BtHaveAllMessage.cc
  7576. * src/BtHaveMessage.cc
  7577. * src/DefaultPieceStorage.cc
  7578. * src/DefaultPieceStorage.h
  7579. * src/PeerInteractionCommand.cc
  7580. * src/PieceStorage.h
  7581. * src/UnknownLengthPieceStorage.h
  7582. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7583. Rewritten readData and writeData.
  7584. * src/MultiDiskAdaptor.cc
  7585. * src/MultiDiskAdaptor.h
  7586. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Move \n out of the message "Usage: ...".
  7588. * src/version_usage.cc
  7589. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Bump up version number to 0.13.2b.
  7591. * configure.ac
  7592. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7593. Added const qualifier to argument Exception& e.
  7594. * src/Logger.h
  7595. * src/SimpleLogger.cc
  7596. * src/SimpleLogger.h
  7597. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Pool connection when CWD, SIZE command fails.
  7599. * src/FtpNegotiationCommand.cc
  7600. * src/FtpNegotiationCommand.h
  7601. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7602. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7603. * src/HttpResponseCommand.cc
  7604. * src/HttpSkipResponseCommand.cc
  7605. * src/HttpSkipResponseCommand.h
  7606. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Pool connection when a server returns 4xx, 5xx responses.
  7608. * src/HttpNullDownloadCommand.cc
  7609. * src/HttpNullDownloadCommand.h
  7610. * src/HttpResponse.cc
  7611. * src/HttpResponse.h
  7612. * src/HttpResponseCommand.cc
  7613. * src/HttpResponseCommand.h
  7614. * test/HttpResponseTest.cc
  7615. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. Print usage when no URL is specifed or bad command-line option is
  7617. specified.
  7618. * src/HelpItemFactory.cc
  7619. * src/help_tags.h
  7620. * src/option_processing.cc
  7621. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7622. Removed duplicate log message.
  7623. * src/AbstractCommand.cc (asyncResolveHostname)
  7624. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7626. Changed -j option's default value from 5 to 1.
  7627. Added new examples using protocol auto detection feature.
  7628. Removed -T, -M usage where it can be omitted.
  7629. * doc/aria2c.1.txt
  7630. * doc/aria2c.1.html
  7631. * doc/aria2c.1.txt
  7632. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7633. Updated command-line usage text, so that it tells users that they
  7634. can specify any number of torrent files and metalink files in
  7635. command-line.
  7636. * src/version_usage.cc
  7637. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7638. Changed the default value of -j option to 1.
  7639. * src/HelpItemFactory.cc
  7640. * src/option_processing.cc
  7641. * src/usage_text.h
  7642. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Added the ability to reuse connection in FTP and it is enabled by
  7644. default. It can be disabled by --ftp-reuse-connection=false option.
  7645. * src/Command.cc
  7646. * src/DownloadCommand.cc
  7647. * src/FtpDownloadCommand.cc
  7648. * src/FtpDownloadCommand.h
  7649. * src/FtpFinishDownloadCommand.cc
  7650. * src/FtpFinishDownloadCommand.h
  7651. * src/FtpInitiateConnectionCommand.cc
  7652. * src/FtpNegotiationCommand.cc
  7653. * src/FtpNegotiationCommand.h
  7654. * src/HelpItemFactory.cc
  7655. * src/Makefile.am
  7656. * src/Makefile.in
  7657. * src/OptionHandlerFactory.cc
  7658. * src/option_processing.cc
  7659. * src/prefs.h
  7660. * src/usage_text.h
  7661. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7662. Call Command::transitStatus() before calling Command::execute(),
  7663. so that the status change made in execute() is not cleared.
  7664. * src/DownloadEngine.cc
  7665. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. Removed forward declaration of SocketCore class.
  7667. * src/HttpDownloadCommand.h
  7668. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7669. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7670. in InitiateConnectionCommandFactory. They should be set only when
  7671. the protocol is HTTP or HTTPS.
  7672. * src/InitiateConnectionCommandFactory.cc
  7673. * src/RequestGroup.cc
  7674. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7675. Fixed infinite loop in checksum checking.
  7676. * src/IteratableChecksumValidator.cc
  7677. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Set _supportsPersistentConnection to true by default.
  7679. * src/Request.cc
  7680. * src/RequestGroup.cc
  7681. * test/HttpRequestTest.cc
  7682. * test/RequestTest.cc
  7683. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7684. Added timeout to socket pool. The default timeout is 15 seconds,
  7685. which is the same value Apache uses.
  7686. * src/DownloadEngine.cc
  7687. * src/DownloadEngine.h
  7688. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Fixed misuse of multimap::find()
  7690. * src/HttpHeader.cc
  7691. * test/HttpHeaderTest.cc
  7692. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7693. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7694. option.
  7695. The asynchronous DNS is not capable of IPv6 yet.
  7696. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7697. least for HTTP download.
  7698. * src/AbstractCommand.cc
  7699. * src/AbstractCommand.h
  7700. * src/AsyncNameResolver.cc
  7701. * src/AsyncNameResolver.h
  7702. * src/DHTEntryPointNameResolveCommand.cc
  7703. * src/DHTEntryPointNameResolveCommand.h
  7704. * src/DownloadEngine.cc
  7705. * src/DownloadEngine.h
  7706. * src/FtpInitiateConnectionCommand.cc
  7707. * src/FtpInitiateConnectionCommand.h
  7708. * src/HelpItemFactory.cc
  7709. * src/HttpInitiateConnectionCommand.cc
  7710. * src/HttpInitiateConnectionCommand.h
  7711. * src/InitiateConnectionCommand.cc
  7712. * src/InitiateConnectionCommand.h
  7713. * src/Makefile.am
  7714. * src/Makefile.in
  7715. * src/NameResolver.cc
  7716. * src/NameResolver.h
  7717. * src/OptionHandlerFactory.cc
  7718. * src/SocketCore.cc
  7719. * src/SocketCore.h
  7720. * src/Util.cc
  7721. * src/Util.h
  7722. * src/option_processing.cc
  7723. * src/prefs.h
  7724. * src/usage_text.h
  7725. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Updated man page: --quiet, --header were added.
  7727. --metalink-servers and --enable-http-keep-alive option were updated.
  7728. * doc/aria2c.1
  7729. * doc/aria2c.1.html
  7730. * doc/aria2c.1.txt
  7731. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7732. Enable HTTP keep-alive by default.
  7733. * src/HelpItemFactory.cc
  7734. * src/option_processing.cc
  7735. * src/usage_text.h
  7736. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Disable http keep-alive if the remote server is not HTTP/1.1.
  7738. * src/HttpConnection.cc
  7739. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7740. Receive content body of 302 response so that the connection can be
  7741. reused later when http keep-alive is enabled.
  7742. * src/HttpNullDownloadCommand.cc
  7743. * src/HttpNullDownloadCommand.h
  7744. * src/HttpResponseCommand.cc
  7745. * src/HttpResponseCommand.h
  7746. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. const SharedHandle<Request> -> const SharedHandle<Request>&
  7748. * src/FtpDowndloadCommand.cc
  7749. * src/FtpDowndloadCommand.h
  7750. * src/HttpDownloadCommand.cc
  7751. * src/HttpDownloadCommand.h
  7752. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7753. Fixed the bug that the control file(.aria2 file) is not renamed
  7754. according to tryAutoFileRenaming().
  7755. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7756. its control file exist, use them and continue download.
  7757. The old implementation didn't take into account of control file's
  7758. existence, so basically you couldn't continue download of renamed file.
  7759. * src/BtProgressInfoFile.h
  7760. * src/DefaultBtProgressInfoFile.cc
  7761. * src/DefaultBtProgressInfoFile.h
  7762. * src/NullProgressInfoFile.h
  7763. * src/RequestGroup.cc
  7764. * test/DefaultBtProgressInfoFileTest.cc
  7765. * test/MockBtProgressInfoFile.h
  7766. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Change the default value of --metalink-servers option from `5' to `1'.
  7768. * src/HelpItemFactory.cc
  7769. * src/option_processing.cc
  7770. * src/usage_text.h
  7771. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Reimplemented transparent metalink using Accept request header.
  7773. * src/HttpRequest.cc
  7774. * src/HttpRequest.h
  7775. * src/HttpRequestCommand.cc
  7776. * src/Metalink2RequestGroup.cc
  7777. * src/RequestGroup.cc
  7778. * src/RequestGroup.h
  7779. * test/HttpRequestTest.cc
  7780. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Bump up version number to 0.13.2a
  7782. * configure.ac
  7783. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. Updated configure.ac using the result of autoscan.
  7785. * configure.ac
  7786. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Fixed compilation error without gcrypt/openssl.
  7788. * src/DownloadCommand.cc
  7789. * src/DownloadCommand.h
  7790. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Reorganized version information so that it can be displayed in a
  7792. standard terminal screen without scrolling.
  7793. Removed http, ftp from Configuration section, because they are always
  7794. enabled.
  7795. * src/FeatureConfig.cc
  7796. * src/FeatureConfig.h
  7797. * src/main.cc
  7798. * src/messageDigest.cc
  7799. * src/messageDigest.h
  7800. * src/version_usage.cc
  7801. * test/FeatureConfigTest.cc
  7802. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7803. Masked user ID in log.
  7804. * src/FtpConnection.cc (sendUser)
  7805. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Removed query part from filename in HTTP download. The query part means
  7807. the substring after "?" in URL. Firefox seems do the same thing.
  7808. A query part is sometimes very long and not suitable to filename,
  7809. so I think it is better to remove it from filename.
  7810. * src/HttpRequest.cc
  7811. * src/HttpRequest.h
  7812. * src/Request.cc
  7813. * src/Request.h
  7814. * test/HttpRequestTest.cc
  7815. * test/RequestTest.cc
  7816. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7817. Rewritten Exception class. Throw exception object, not its pointer and
  7818. catch by reference, so that remove problematic delete operator for
  7819. catched exception.
  7820. * src/Exception.cc
  7821. * src/Exception.h
  7822. * test/ExceptionTest.cc
  7823. * src/*: All files throwing/catching exception.
  7824. * test/*: All files throwing/catching exception.
  7825. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Now auto protocol detection is enabled without -Z option.
  7827. But there is a important difference between with/without -Z optoin.
  7828. For example, if you type:
  7829. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7830. then, aria2 interprets there are 3 request groups:
  7831. (1) http://host/file, http://mirror/file <-- multi-source download
  7832. (2) file1.torrent
  7833. (3) file2.metalink
  7834. On the other hand, if you invoke above command with -Z option, it is
  7835. interpreted as 4 request groups:
  7836. (1) http://host/file
  7837. (2) file1.torrent
  7838. (3) file2.metalink
  7839. (4) http://mirror/file
  7840. I think usually user don't mix multi-source URLs and torrent files, so
  7841. there is no big problem here.
  7842. * src/main.cc
  7843. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Fixed the bug that causes segmentaion fault when reading XML containing
  7845. unescapsed character like '&'.
  7846. Also a modification was made which avoids adding unnecessary
  7847. characters stack and appending unused string.
  7848. * src/ExpatMetalinkProcessor.cc
  7849. * src/FileMetalinkParserState.h
  7850. * src/FilesMetalinkParserState.h
  7851. * src/FinMetalinkParserState.h
  7852. * src/HashMetalinkParserState.h
  7853. * src/InitialMetalinkParserState.h
  7854. * src/LanguageMetalinkParserState.h
  7855. * src/MetalinkMetalinkParserState.h
  7856. * src/MetalinkParserState.h
  7857. * src/MetalinkParserStateMachine.cc
  7858. * src/MetalinkParserStateMachine.h
  7859. * src/OSMetalinkParserState.h
  7860. * src/PieceHashMetalinkParserState.h
  7861. * src/PiecesMetalinkParserState.h
  7862. * src/ResourcesMetalinkParserState.h
  7863. * src/SizeMetalinkParserState.h
  7864. * src/SkipTagMetalinkParserState.h
  7865. * src/URLMetalinkParserState.h
  7866. * src/VerificationMetalinkParserState.h
  7867. * src/VersionMetalinkParserState.h
  7868. * src/XML2SAXMetalinkProcessor.cc
  7869. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7870. Added StringFormat class, which internally calls vasprintf.
  7871. operator<< is defined for this class, so it can be used with iostream
  7872. classes nicely. SimpleLogger and following functions are rewritten
  7873. using StringFormat class.
  7874. Besides, now Logger class's methods are non-const, many classes
  7875. that has a const Logger* as a member variable are modified to remove
  7876. const qualifier from the variable declaration.
  7877. * src/HelpItemFactory.cc
  7878. * src/Request.cc
  7879. * src/SimpleLogger.cc
  7880. * src/StringFormat.cc
  7881. * src/StringFormat.h
  7882. * src/Util.cc
  7883. * src/option_processing.cc
  7884. * src/version_usage.cc
  7885. * test/StringFormatTest.cc
  7886. * src/*.h: The classes that has const Logger* as a member variable.
  7887. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7888. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7889. failed. Also fixed memory link when exception is thrown there.
  7890. * src/main.cc (AccRequestGroup)
  7891. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Added build-in "Accept-Features" support. For now only "metalink" is
  7893. used in this header field.
  7894. This "metalink" value is removed from the list when connecting URLs
  7895. fed by metalink file to avoid loop in "transparent" metlaink.
  7896. * src/HttpRequest.cc
  7897. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7898. header is also held in this variable. Also renamed setUserHeaders as
  7899. addHeader and it was rewritten to add header not just to clear the old
  7900. value.
  7901. * src/HttpRequestCommand.cc
  7902. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7903. from "Accept-Features" list.
  7904. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7905. default.
  7906. * src/RequestGroup.h
  7907. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7908. * src/a2functional.h: Included <string> because Concat class depends on
  7909. it.
  7910. * test/HttpRequestTest.cc
  7911. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Added comment
  7913. * src/RequestGroup.cc (createNextCommand)
  7914. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Capitalized METHOD_GET and METHOD_HEAD
  7916. * src/Request.cc
  7917. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7918. Added getDownloadResults() method
  7919. * src/RequestGroupMan.cc
  7920. * src/RequestGroupMan.h
  7921. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Fixed the bug that aria2 exits when commands is empty() but
  7923. _routineCommands are not.
  7924. * src/DownloadEngine.cc
  7925. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7926. Use the default value pulled from Option object in HelpItemFactory.
  7927. except options whose defualt value is embedded in a usage text.
  7928. * src/HelpItemFactory.cc
  7929. * src/HelpItemFactory.h
  7930. * src/option_processing.cc
  7931. * src/version_usage.cc
  7932. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7933. Added --quiet option to make aria2 quiet (no console output).
  7934. --quiet option is tagged with ADVANCED.
  7935. * src/HelpItemFactory.cc
  7936. * src/LogFactory.cc
  7937. * src/LogFactory.h
  7938. * src/MultiUrlRequestInfo.cc
  7939. * src/MultiUrlRequestInfo.h
  7940. * src/NullStatCalc.h: New class. This class prints nothing.
  7941. * src/OptionHandlerFactory.cc
  7942. * src/main.cc
  7943. * src/option_processing.cc
  7944. * src/prefs.h
  7945. * src/usage_text.h
  7946. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7948. * src/HelpItemFactory.cc (createHelpItems):
  7949. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Fixed compilation error in ExpatMetalinkProcessor.cc
  7951. * src/ExpatMetalinkProcessor.cc
  7952. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Reuse socket if the origin server supports HTTP keep-alive and
  7954. --enable-http-keep-alive or --enable-http-pipelining is given.
  7955. The current implementation doesn't reuse the connections established
  7956. against proxy server.
  7957. * src/AbstractCommand.cc
  7958. * src/DownloadEngine.cc
  7959. * src/DownloadEngine.h
  7960. * src/HttpDownloadCommand.cc
  7961. * src/HttpInitiateConnectionCommand.cc
  7962. * src/HttpResponseCommand.cc
  7963. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7964. Rewritten HTTP keep-alive and pipelining routine.
  7965. * src/AbstractCommand.cc
  7966. * src/HttpConnection.cc
  7967. * src/HttpDownloadCommand.cc
  7968. * src/HttpRequest.cc
  7969. * src/HttpRequestCommand.cc
  7970. * src/HttpResponseCommand.cc
  7971. * src/Request.cc
  7972. * src/Request.h
  7973. * src/RequestGroup.cc
  7974. * test/HttpRequestTest.cc
  7975. * test/HttpResponseTest.cc
  7976. * test/RequestTest.cc
  7977. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7978. Added missing setUserHeaders call
  7979. * src/HttpRequestCommand.cc
  7980. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7981. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7982. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7983. waste of time because it is more likey false.
  7984. * src/FileAllocationDispatcherCommand.cc (execute)
  7985. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. Now HTTP status and version are a member variable of HttpHeader.
  7987. HTTP status is processed as a string, not integer.
  7988. * src/AbstractProxyResponseCommand.cc
  7989. * src/HttpConnection.cc
  7990. * src/HttpHeader.cc
  7991. * src/HttpHeader.h
  7992. * src/HttpHeaderProcessor.cc
  7993. * src/HttpHeaderProcessor.h
  7994. * src/HttpResponse.cc
  7995. * src/HttpResponse.h
  7996. * test/HttpHeaderProcessorTest.cc
  7997. * test/HttpResponseTest.cc
  7998. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7999. Added --header option. You can specify any number of additional HTTP headers
  8000. like:
  8001. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8002. Unlike other commad-line option, you can use --header option multiple times.
  8003. * src/HelpItemFactory.cc
  8004. * src/HttpRequest.{cc, h}
  8005. * src/HttpRequestCommand.cc
  8006. * src/OptionHandlerFactory.cc
  8007. * src/OptionHandlerImpl.h
  8008. * src/option_processing.cc
  8009. * src/prefs.h
  8010. * src/usage_text.h
  8011. * test/HttpRequestTest.cc (testUserHeaders)
  8012. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8013. Eliminates the time lag between sequential downloads and commands in
  8014. the same RequestGroup.
  8015. In old implementation, aria2 occasionally waits 1 seconds before
  8016. executing next command or RequestGroup.
  8017. This is really a waste of time, and new implementation eliminates
  8018. this unnecessary time lag.
  8019. * src/AbstractCommand.cc
  8020. * src/AutoSaveCommand.cc
  8021. * src/CheckIntegrityCommand.cc
  8022. * src/Command.{cc, h}
  8023. * src/DownloadEngine.{cc, h}
  8024. * src/DownloadEngineFactory.cc
  8025. * src/FileAllocationCommand.cc
  8026. * src/FileAllocationDispatcherCommand.cc
  8027. * src/FillRequestGroupCommand.cc
  8028. * src/FtpInitiateConnectionCommand.cc
  8029. * src/HaveEraseCommand.cc
  8030. * src/HttpInitiateConnectionCommand.cc
  8031. * src/HttpResponseCommand.cc
  8032. * src/RealtimeCommand.cc
  8033. * src/RequestGroup.cc
  8034. * src/RequestGroupMan.cc
  8035. * src/StreamFileAllocationEntry.cc
  8036. * src/TimeBasedCommand.{cc, h}
  8037. * src/TimedHaltCommand.cc
  8038. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8040. keyword explicit and SharedHandle's default constructor initializes
  8041. its internal obj to null, old implementation initializes it using
  8042. obj's default constructor.
  8043. To assign null, write SharedHandle<T> x(...); x.reset();
  8044. TODO: test/SharedHandleTest.cc needs more tests.
  8045. * src/SharedHandle.h
  8046. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Fixed type in man page.
  8048. * doc/aria2c.1.txt
  8049. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8051. * src/SimpleLogger.{cc, h}
  8052. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. Implemented auto protocol detection.
  8054. Now you can do:
  8055. aria2c -Z http://host/file file1.torrent file2.metalink
  8056. (Note: -Z option is required for auto protcol detection.)
  8057. Then aria2c downloads 3 files simultaneously:
  8058. 1. http://host/file
  8059. 2. file1.torrent <-- read local torrent file
  8060. 3. file2.metalink <-- read local Metalink file.
  8061. Same thing goes with -i option. Assume your uris.txt contans:
  8062. http://host/file
  8063. file1.torrent
  8064. file2.metalink
  8065. Then you can do: aria2c -i uris.txt
  8066. (Note: -Z option is not needed if -i option is given.)
  8067. * src/main.cc
  8068. * src/ProtocolDetector.{cc, h}
  8069. * test/ProtocolDetectorTest.cc
  8070. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8071. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8072. installed
  8073. * src/ARC4Encryptor.h
  8074. * src/ARC4Decryptor.h
  8075. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Renamed argument from 'errno' to 'err', since errno is confused with
  8077. errno defined in errno.h.
  8078. * src/LibgcryptARC4Decryptor.h
  8079. * src/LibgcryptARC4Context.h
  8080. * src/LibgcryptDHKeyExchange.h
  8081. * src/LibgcryptARC4Encryptor.h
  8082. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. Rewritten choking algorithm.
  8084. * src/PeerChokeCommand.{cc, h}
  8085. * src/BtInterestedMessage.cc
  8086. * src/PeerSessionResource.{cc, h}
  8087. * src/DefaultPeerStorage.{cc, h}
  8088. * src/BtNotInterestedMessage.cc
  8089. * src/DefaultBtMessageDispatcher.{cc, h}
  8090. * src/BtMessageDispatcher.h
  8091. * src/Peer.{cc, h}
  8092. * src/BtLeecherStateChoke.{cc, h}
  8093. * src/BtSetup.cc
  8094. * src/BtSeederStateChoke.{cc, h}
  8095. * src/PeerStorage.h
  8096. * test/MockPeerStorage.h
  8097. * test/MockBtMessageDispatcher.h
  8098. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8099. Fixed compilation error on x84-64 platform.
  8100. * src/AuthConfig.cc: Included ostream.
  8101. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8102. Rewritten getBasename() and getDirname(), without standard library
  8103. basename(), dirname().
  8104. * src/File.cc
  8105. * test/FileTest.cc
  8106. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8107. Added Simplified Chinese translation. Also updated the following
  8108. translations: Polish, Dutch, German. Great thanks to all translators.
  8109. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. Suppress content-range error when 'Content-Range' response header
  8111. doesn't contains bytes-unit specifier 'bytes'
  8112. * src/HttpHeader.cc (getRange)
  8113. * test/HttpHeaderTest.cc
  8114. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Fixed compilation error with g++-4.3
  8116. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. Added missing include files for MinGW
  8118. * test/HttpHeaderProcessorTest.cc
  8119. * test/DHTRoutingTableSerializerTest.cc
  8120. * test/DHTRoutingTableDeserializerTest.cc
  8121. * test/UriListParserTest.cc
  8122. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Now download line is printed nicely with no garbage at the end of
  8124. line. I use ioctl to get the columns of terminal.
  8125. If stdout is redirected to another device, instead of carriage return,
  8126. end of line '\n' character is used. This is feature request#1909659
  8127. * src/ConsoleStatCalc.cc (calculateStat)
  8128. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. Included a2time.h
  8130. * src/DHTMessageDispatcher.h
  8131. * src/DHTMessageEntry.h
  8132. * src/DHTReplaceNodeTask.h
  8133. * src/DHTMessageTracker.h
  8134. * src/Util.h
  8135. * src/CookieBox.h
  8136. * src/SocketCore.h
  8137. * src/DefaultBtMessageDispatcher.h
  8138. * src/SocketCore.cc
  8139. * src/Util.cc
  8140. * src/DHTPingTask.h
  8141. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. Fixed high memory footprint when DHT is enabled.
  8143. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8144. queued than it is processed and the queue is getting longer. As a
  8145. consequence, momory usage is increased.
  8146. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8147. replacement cache in DHTBucket which is described in Kademlia paper.
  8148. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8149. DHTReplaceNodeTask.
  8150. * src/DHTBucket.{h, cc}
  8151. (cacheNode): New function.
  8152. (getCachedNodes): New function.
  8153. (dropNode): Push back cached node to _nodes.
  8154. * test/DHTBucketTest.cc
  8155. (testCacheNode): New test
  8156. (testDropNode): New test
  8157. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8159. the unused 4KB memory when ssl is not used.
  8160. * src/SocketCore.cc
  8161. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Added summary log for peer announce storage.
  8163. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8164. Removed cast
  8165. * src/DefaultPeerStorage.cc (addPeer)
  8166. Log exception message
  8167. * src/DHTMessageTracker.cc (handleTimeout)
  8168. Fixed casting
  8169. * test/HttpRequestTest.cc
  8170. * test/MetalinkProcessorTest.cc
  8171. * test/PieceTest.cc
  8172. * test/MetalinkEntryTest.cc
  8173. * test/SequenceTest.cc
  8174. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8175. * src/ParameterizedStringParser.cc (createLoop):
  8176. Removed unused variable sstep.
  8177. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8178. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8179. * src/Util.{h, cc}
  8180. (parseUInt): New function.
  8181. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8182. The actual range is uint32_t.
  8183. * test/UtilTest.cc
  8184. * src/ParameterizedStringParser.cc:
  8185. Use Util::parseUInt() for loop variables.
  8186. * test/ParameterizedStringParserTest.cc
  8187. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8188. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Rewritten the functions for binding port.
  8190. * src/DHTConnectionImpl.{h, cc}
  8191. * src/PeerListenCommand.{h, cc}
  8192. * src/DHTSetup.cc
  8193. * src/BtSetup.cc
  8194. * test/DHTConnectionImplTest.cc
  8195. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. type cleanup for allmost all remaining files.
  8197. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Type clarification
  8199. * src/PeerSessionResource.{h, cc}
  8200. * src/DefaultPieceStorage.{h, cc}
  8201. * src/Peer.{h, cc}
  8202. * test/PeerSessionResourceTest.cc
  8203. Use div function
  8204. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8205. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8206. Type clarification
  8207. * src/DefaultPeerStorage.{h, cc}
  8208. * test/DefaultPeerStorageTest.cc
  8209. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8210. Type clarification: size_t for length or size, uint64_t for file
  8211. length, off_t for file offset.
  8212. * src/DefaultBtProgressInfoFile.cc
  8213. * src/DefaultBtContext.{h, cc}
  8214. * src/DefaultBtInteractive.cc
  8215. * src/DownloadCommand.{h, cc}
  8216. * src/IteratableChunkChecksumValidator.{h, cc}
  8217. * src/SegmentMan.{h, cc}
  8218. * src/SingleFileDownloadContext.{h, cc}
  8219. * src/IteratableChecksumValidator.{h, cc}
  8220. * src/BtContext.h
  8221. * src/IteratableValidator.h
  8222. * src/DownloadContext.h
  8223. * test/SingleFileDownloadContextTest.cc
  8224. * test/DefaultBtContextTest.cc
  8225. * test/MockBtContext.h
  8226. * test/Metalink2RequestGroupTest.cc
  8227. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. Type clarification: size_t for length or size, uint64_t for file
  8229. length, off_t for file offset.
  8230. * src/PiecedSegment.cc
  8231. * src/GrowSegment.h
  8232. * src/DefaultBtRequestFactory.h
  8233. * src/DefaultBtProgressInfoFile.cc
  8234. * src/UnknownLengthPieceStorage.h
  8235. * src/DefaultPieceStorage.cc
  8236. * src/UnknownLengthPieceStorage.cc
  8237. * src/DefaultBtInteractive.cc
  8238. * src/GrowSegment.cc
  8239. * src/BitfieldMan.h
  8240. * src/DownloadCommand.cc
  8241. * src/BtRequestFactory.h
  8242. * src/PiecedSegment.h
  8243. * src/DefaultPieceStorage.h
  8244. * src/Piece.cc
  8245. * src/DefaultBtRequestFactory.cc
  8246. * src/PieceStorage.h
  8247. * src/Segment.h
  8248. * src/Piece.h
  8249. * src/BitfieldMan.cc
  8250. * src/Util.cc
  8251. * test/DefaultBtProgressInfoFileTest.cc
  8252. * test/DefaultPieceStorageTest.cc
  8253. * test/MockPieceStorage.h
  8254. * test/BtRequestMessageTest.cc
  8255. * test/DefaultBtMessageDispatcherTest.cc
  8256. * test/BitfieldManTest.cc
  8257. * test/GrowSegmentTest.cc
  8258. * test/PieceTest.cc
  8259. * test/SegmentTest.cc
  8260. * test/SegmentManTest.cc
  8261. * test/DefaultBtRequestFactoryTest.cc
  8262. * test/MockBtRequestFactory.h
  8263. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Fixed compilation error with --disable-nls
  8265. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8266. in gettext.h causes the problem.
  8267. * src/common.h
  8268. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Removed subPiece related functions.
  8270. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8271. * src/DefaultPieceStorage.{h, cc}
  8272. * test/PieceTest.cc
  8273. * test/DefaultPieceStorageTest.cc
  8274. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Use unsigned char for data store.
  8276. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8277. Bump up version number to 0.13.0+1
  8278. * configure.ac
  8279. * Release 0.13.0+1
  8280. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Changed inactive connection timeout to 120.
  8282. To accept more mulually interested peers, disconnect peer when there
  8283. is no interest between us after certain time passed.
  8284. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8285. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8287. when compiled with async DNS support.
  8288. * src/DownloadEngine.cc
  8289. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8290. value '10' will be a little bit short when some DNS servers are
  8291. offline and several DNS servers are tried. It should be configured
  8292. by command-line option.
  8293. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Merged Ross's mingw patch.
  8295. * src/DHTRoutingTableDeserializer.cc
  8296. * src/DHTRoutingTableSerializer.cc
  8297. * src/Platform.{h, cc}
  8298. * src/timegm.h
  8299. * src/gettimeofday.h
  8300. * src/getaddrinfo.h
  8301. * src/SocketCore.h
  8302. * src/common.h
  8303. * src/inet_aton.h
  8304. * src/DownloadEngine.h
  8305. * src/gai_strerror.h
  8306. * src/a2netcompat.h
  8307. * configure.ac
  8308. * configure
  8309. * aclocal.m4
  8310. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8311. Included missing iostream.
  8312. * test/AllTest.cc
  8313. * test/BtDependencyTest.cc
  8314. * test/BtExtendedMessageTest.cc
  8315. * test/DHTConnectionImplTest.cc
  8316. * test/DHTMessageFactoryImplTest.cc
  8317. * test/DHTMessageTrackerEntryTest.cc
  8318. * test/DHTNodeTest.cc
  8319. * test/DHTRoutingTableSerializerTest.cc
  8320. * test/DefaultBtAnnounceTest.cc
  8321. * test/DefaultBtContextTest.cc
  8322. * test/DefaultBtMessageFactoryTest.cc
  8323. * test/DefaultExtensionMessageFactoryTest.cc
  8324. * test/HandshakeExtensionMessageTest.cc
  8325. * test/HttpResponseTest.cc
  8326. * test/MetalinkProcessorTest.cc
  8327. * test/MultiFileAllocationIteratorTest.cc
  8328. * test/SocketCoreTest.cc
  8329. * test/UTPexExtensionMessageTest.cc
  8330. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8331. Reorganized includes.
  8332. * src/NameResolver.cc
  8333. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Fixed compilation error without ares/c-ares
  8335. * src/NameResolver.h:
  8336. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Added a test for large file.
  8338. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8339. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8340. Fixed the bug that file size is ignored if size > INT32_MAX
  8341. * src/SizeMetalinkParserState.cc (endElement):
  8342. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8343. Bump up version number to 0.13.0
  8344. * configure.ac
  8345. * Release 0.13.0
  8346. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. Updated Makfefile.am to make 'make dist' work.
  8348. Now packaged filename is aria2c-VERSION.tar.bz2.
  8349. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8350. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8351. Large file support is now configured by configure script.
  8352. * configure.ac
  8353. Removed unsused source files
  8354. * src/
  8355. * test/
  8356. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8357. Peer.h and BtContext.h respectively.
  8358. * src/Peer.h
  8359. * src/BtContext.h
  8360. Updated translations.
  8361. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8362. translations. Great thanks to all translators!;)
  8363. * po/*.{po, gmo}
  8364. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8366. statically declared sha1 MessageDigestContext.
  8367. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8368. initialization of short-lived MessageDigestContext.
  8369. * src/MessageDigestHelper.{h, cc}
  8370. * src/main.cc
  8371. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8372. the initialization of MessageDigestContext every time in validating
  8373. chunk checksum.
  8374. * src/DownloadCommand.{h, cc}
  8375. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. Add a file descriptor which connected to fast peer(latency<1500) to
  8377. select(). This change reduced CPU load.
  8378. * src/PeerInteractionCommand.cc
  8379. * src/DefaultBtInteractive.{h, cc}
  8380. * src/BtInteractive.h
  8381. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8382. Fixed the previous insufficient fix for possible busy loop.
  8383. * src/MSEHandshake.cc (identifyHandshakeType)
  8384. Removed unused functions.
  8385. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8386. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8387. Fixed possible busy loop if first 20 bytes are not received for a few
  8388. minutes.
  8389. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8390. * src/ReceiverMSEHandshakeCommand.cc
  8391. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. Fixed compilation error
  8393. * src/ExpatMetalinkProcessor.cc
  8394. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8395. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8396. * src/DHTBucket.cc
  8397. Removed unnecessary cast.
  8398. * src/HandshakeExtensionMessage.cc
  8399. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8401. is missing.
  8402. * src/OptionHandlerFactory.cc
  8403. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Fixed the bug that HAVE message is not sent for a piece they are
  8405. downloaded fom http/ftp server before any BitTorrent handshake is done
  8406. with peers.
  8407. * src/DefaultBtInteractive.cc
  8408. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8410. * src/Makefile.am
  8411. * src/Makefile.in
  8412. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Updated README. Added html version of README and man page.
  8414. * README
  8415. * README.html
  8416. * readme2html: Shell script to generate README.html from README using
  8417. asciidoc.
  8418. * doc/aria2c.1.html
  8419. * doc/makeman: Added the line to generate aria2c.1.html
  8420. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. Fixed offset calculation.
  8422. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8423. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Rewritten itos and uitos using template. llitos and ullitos are
  8425. replaced with itos and uitos respectively.
  8426. * src/Util.{h, cc}
  8427. * test/UtilTest.cc
  8428. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8430. of the number of bytes required for storing public key and shared
  8431. secret.
  8432. * src/LibgcryptDHKeyExchange.h
  8433. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8434. * src/MSEHandshake.cc
  8435. * test/DHKeyExchangeTest.cc
  8436. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Removed since they are not used.
  8438. * src/Xml2MetalinkProcessor.{h, cc}
  8439. * src/Socket.cc
  8440. * src/SegmentSplitter.{h, cc}
  8441. * test/Xml2MetalinkProcessorTest.cc
  8442. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8443. Fixed the bug that prevents aria2 from stopping other than by pressing
  8444. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8445. option. aria2 doesn't stop even after --seed-time is satisfied and
  8446. continues to output blank lines in the console.
  8447. * src/ReceiverMSEHandshakeCommand.cc
  8448. * src/PeerReceiveHandshakeCommand.cc
  8449. * src/PeerListenCommand.cc
  8450. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Bump up version number to 0.13.0rc
  8452. * configure.ac
  8453. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Updated man page and some usage text.
  8455. * doc/aria2c.1.txt
  8456. * src/usage_text.h
  8457. * po/*.{po, gmo}
  8458. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8459. Updated translations. Added Finnish and Hebrew translations.
  8460. Great thanks to all translators!
  8461. * po/*.{po, gmo}
  8462. * po/LINGUAS
  8463. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Log more detailed information about each message.
  8465. * src/DHTQueryMessage.{h, cc}
  8466. * src/DHTGetPeersMessage.{h, cc}
  8467. * src/DHTFindNodeReplyMessage.{h, cc}
  8468. * src/DHTGetPeersReplyMessage.{h, cc}
  8469. * src/DHTAnnouncePeerMessage.{h, cc}
  8470. * src/DHTResponseMessage.{h, cc}
  8471. * src/DHTFindNodeMessage.{h, cc}
  8472. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8473. Use constants defined in prefs.h
  8474. * src/option_processing.cc
  8475. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8476. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8477. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. Make room for future enchancements for IPv6 addresses.
  8479. Bump up version number of dht.dat file format to 2.
  8480. Not compatible with previous version.
  8481. * src/DHTRoutingTableSerializer.cc
  8482. * src/DHTRoutingTableDeserializer.cc
  8483. * test/DHTRoutingTableSerializerTest.cc
  8484. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Added handling for the return values from
  8486. PeerMessageUtil::createcompact().
  8487. * src/DefaultBtContext.cc (computeFastSet):
  8488. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Fixed abort when peer's ip address is IPv4-mapped address.
  8490. * src/DefaultBtContext.cc (computeFastSet)
  8491. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8492. cannot handle IPv4-mapped addresses.
  8493. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8494. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Proper return value handling for OpenSSL functions.
  8496. * src/LibsslDHKeyExchange.h
  8497. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Random bytes generation using libgcrypt and OpenSSL.
  8499. * src/DHTUtil.{h, cc}
  8500. * test/DHTUtilTest.cc
  8501. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8503. received.
  8504. * src/DHTMessageReceiver.cc (receiveMessage)
  8505. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. Fixed the bug that a return code is always 0. BUG#1897704
  8507. If error occurred during the download or there exist unfinished
  8508. downloads, aria2 returns with code 1.
  8509. * src/RequestGroupMan.{h, cc}
  8510. * src/MultiUrlRequestInfo.{h, cc}
  8511. * src/main.cc
  8512. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. IPv6 support for SocketCore class.
  8514. TODO: In SocketCore::establishConnection(), this is insufficient to
  8515. determin the failure of connect() here because the socket is
  8516. non-blocking state. The next addresses should be tried after select().
  8517. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8518. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8519. instead which address family independent.
  8520. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8521. information in a compact peer format which is for IPv4 only.
  8522. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8523. this is a spec of BitTorrent protocol.
  8524. * src/SocketCore.{h, cc}
  8525. * src/PeerMessageUtil.cc
  8526. * test/SocketCoreTest.cc
  8527. * test/PeerMessageUtilTest.cc
  8528. * test/DHTConnectionImplTest.cc
  8529. Handle IPv4-mapped addresses.
  8530. * src/DHTNode.cc: Now identity is determined by node id.
  8531. * src/DHTMessageTrackerEntry.cc
  8532. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8533. should handle it.
  8534. * src/DHTRoutingTableDeserializer.cc
  8535. * src/DHTMessageFactoryImpl.cc
  8536. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Change the unit of --stop option from a minute to a second.
  8538. * src/usage_text.h
  8539. * src/DownloadEngineFactory.cc
  8540. * src/OptionHandlerFactory.cc
  8541. * src/message.h
  8542. * src/TimedHaltCommand.cc
  8543. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Make listening socket non-block mode.
  8545. * src/FtpConnection.cc
  8546. * src/FtpNegotiationCommand.{h, cc}
  8547. * src/PeerListenCommand.cc
  8548. Fixed the bug that cause slow ftp negotiation.
  8549. * src/FtpNegotiationCommand.{h, cc}
  8550. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. Added basic tag to --enable-dht, --dht-listen-port option.
  8552. * src/HelpItemFactory.cc (createHelpItems)
  8553. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Updated text.
  8555. * src/usage_text.h
  8556. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8558. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. Determin _threadtholdSpeed in each constructor for
  8560. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8561. * src/ActivePeerConnectionCommand.{h, cc}
  8562. * src/PeerReceiveHandshakeCommand.{h, cc}
  8563. * src/BtSetup.cc
  8564. * src/BtConstants.h
  8565. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. Added --bt-min-crypto-level and --bt-require-crypto options.
  8567. * src/OptionHandlerFactory.cc
  8568. * src/MSEHandshake.cc
  8569. * src/HelpItemFactory.cc
  8570. * src/option_processing.cc
  8571. * src/ReceiverMSEHandshakeCommand.cc
  8572. * src/prefs.h
  8573. * src/DefaultBtAnnounce.cc
  8574. * src/InitiatorMSEHandshakeCommand.cc
  8575. * src/usage_text.h
  8576. * test/MSEHandshakeTest.cc
  8577. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Bump version number to 0.13.0b
  8579. * configure.ac
  8580. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. Updated doc.
  8582. * src/MessageDigestHelper.h:
  8583. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Use raw message digest as a token instead of its hexadecimal
  8585. representation.
  8586. * src/DHTTokenTracker.cc (generateToken)
  8587. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8588. Added Message Stream Encryption(MSE) support.
  8589. Currently, aria2 accepts incoming connections with Obfuscation Header
  8590. and legacy BitTorrent Header and establishes connections with
  8591. Obfuscation Header first and if failed then retry with legacy
  8592. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8593. choose ARC4. The new option to change the default behavior is planned.
  8594. For tracker extension, "supportcrypto=1" is added statically.
  8595. * src/PeerInitiateConnectionCommand.{h, cc}
  8596. * src/PeerConnection.{h, cc}
  8597. * src/HandleRegistry.h
  8598. * src/SocketCore.h
  8599. * src/PeerReceiveHandshakeCommand.{h, cc}
  8600. * src/BtRegistry.{h, cc}
  8601. * src/PeerListenCommand.cc
  8602. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8603. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8604. * src/MSEHandshake.{h, cc}
  8605. * src/ARC4Encryptor.h
  8606. * src/ARC4Decryptor.h
  8607. * src/LibgcryptARC4Encryptor.h
  8608. * src/LibgcryptARC4Decryptor.h
  8609. * src/LibgcryptARC4Context.h
  8610. * src/LibsslARC4Encryptor.h
  8611. * src/LibsslARC4Decryptor.h
  8612. * src/LibsslARC4Context.h
  8613. * src/DHKeyExchange.h
  8614. * src/LibgcryptDHKeyExchange.h
  8615. * src/LibsslDHKeyExchange.h
  8616. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8617. * test/DefaultBtAnnounceTest.cc
  8618. * test/ARC4Test.cc
  8619. * test/DHKeyExchangeTest.cc
  8620. Removed prepareForRetry() because it is not used.
  8621. * src/PeerAbstractCommand.{h, cc}
  8622. * src/PeerInteractionCommand.{h, cc}
  8623. * src/PeerInitiateConnectionCommand.{h, cc}
  8624. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8625. Added the ability to load nodes from torrent file. These nodes are
  8626. added to the routing table when downloading that torrent.
  8627. * src/BtContext.h
  8628. * src/DefaultBtContext.{h, cc}
  8629. * src/DHTSetup.cc
  8630. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8631. hostname and port pair, and resolves all of them.
  8632. * src/NameResolver.{h, cc}: Added reset().
  8633. * src/RequestGroup.cc
  8634. * test/DefaultBtContextTest.cc
  8635. * test/MockBtContext.h
  8636. Removed assert() from DefaultBtContext and throw exception instead.
  8637. * src/DefaultBtContext.cc
  8638. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8639. Fixed segmentation fault bug when exiting if dht is disabled.
  8640. * src/RequestGroup.cc
  8641. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8642. Fixed typo in log message and define the message in message.h
  8643. * src/TimedHaltCommand.cc
  8644. * src/message.h
  8645. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Included RecoverableException.h to fix compilation error.
  8647. * test/DHTMessageFactoryImplTest.cc
  8648. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8650. * test/DHTPingMessageTest.cc
  8651. * test/DHTGetPeersMessageTest.cc
  8652. * test/DHTFindNodeMessageTest.cc
  8653. * test/DHTAnnouncePeerMessageTest.cc
  8654. * test/MockDHTMessage.h
  8655. * test/MockDHTMessageFactory.h
  8656. * test/MockDHTMessageDispatcher.h: New class.
  8657. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8659. virtual.
  8660. * src/DHTMessageDispatcher.h
  8661. * src/DHTMessageDispatcherImpl.{h, cc}
  8662. * src/DHTSetup.cc
  8663. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Adding handling of DHT error message. Just log error message and
  8665. throw exception.
  8666. * src/DHTMessageFactoryImpl.cc
  8667. * test/DHTMessageFactoryImplTest.cc
  8668. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8669. Added handling of dynamic cast failure.
  8670. * src/DHTNodeLookupTask.cc
  8671. * src/DHTPeerLookupTask.cc
  8672. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. Added the ability to stop aria2 itself when given time has passed
  8674. from start. Use --stop option to specify time in minutes.
  8675. When 0 is given, this feature is disabled.
  8676. * src/OptionHandlerFactory.cc
  8677. * src/TimeBasedCommand.h: Make _interval protected scope.
  8678. * src/HelpItemFactory.cc
  8679. * src/option_processing.cc
  8680. * src/prefs.h
  8681. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8682. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8683. Without this modification, the result list shows "ERR" when aria2 is
  8684. stopped by --stop option. It should be "INPR".
  8685. * src/DownloadEngine.{h, cc}
  8686. * src/DownloadEngineFactory.cc
  8687. * src/usage_text.h
  8688. * src/TimedHaltCommand.{h, cc}: New class.
  8689. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8690. Bootstrap through node added by port message.
  8691. Currently bootstrap is executed if the number of buckets in routing
  8692. table is 1.
  8693. * src/BtPortMessage.{h, cc}
  8694. * src/DefaultBtMessageFactory.{h, cc}
  8695. * src/PeerInteractionCommand.cc
  8696. * test/BtPortMessageTest.cc
  8697. * test/MockDHTTask.h
  8698. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. Extract the Peer class's member variables, which are only needed after
  8700. PeerInteractionCommand, into PeerSessionResource class.
  8701. This class is instantiated in PeerInteractionCommand class's ctor and
  8702. released in its dtor.
  8703. This will make Peer class lightweight and uses less memory for peers
  8704. which are not connected and wait in the queue.
  8705. * src/PeerChokeCommand.cc
  8706. * src/PeerSessionResource.{h, cc}
  8707. * src/PeerInteractionCommand.cc
  8708. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8709. * src/DefaultBtInteractive.cc
  8710. * src/BtPieceMessage.cc
  8711. * src/BtInterestedMessage.cc
  8712. * src/BtUnchokeMessage.cc
  8713. * src/DefaultPeerStorage.{h, cc}
  8714. * src/PeerInitiateConnectionCommand.cc
  8715. * src/ActivePeerConnectionCommand.cc
  8716. * src/BtNotInterestedMessage.cc
  8717. * src/DefaultBtMessageDispatcher.cc
  8718. * src/BtChokeMessage.cc
  8719. * src/BtRequestMessage.cc
  8720. * src/Peer.{h, cc}
  8721. * src/BtRegistry.h
  8722. * src/TrackerWatcherCommand.cc
  8723. * src/PeerReceiveHandshakeCommand.cc
  8724. * test/BtExtendedMessageTest.cc
  8725. * test/BtAllowedFastMessageTest.cc
  8726. * test/BtCancelMessageTest.cc
  8727. * test/DefaultPieceStorageTest.cc
  8728. * test/BtBitfieldMessageTest.cc
  8729. * test/BtHaveMessageTest.cc
  8730. * test/BtNotInterestedMessageTest.cc
  8731. * test/BtRequestMessageTest.cc
  8732. * test/PeerSessionResourceTest.cc
  8733. * test/DefaultBtMessageDispatcherTest.cc
  8734. * test/PeerTest.cc
  8735. * test/BtInterestedMessageTest.cc
  8736. * test/BtRejectMessageTest.cc
  8737. * test/BtChokeMessageTest.cc
  8738. * test/DefaultPeerStorageTest.cc
  8739. * test/BtHaveNoneMessageTest.cc
  8740. * test/BtHaveAllMessageTest.cc
  8741. * test/DefaultExtensionMessageFactoryTest.cc
  8742. * test/BtUnchokeMessageTest.cc
  8743. * test/DefaultBtMessageFactoryTest.cc
  8744. * test/HandshakeExtensionMessageTest.cc
  8745. * test/UTPexExtensionMessageTest.cc
  8746. * test/DefaultBtRequestFactoryTest.cc
  8747. * test/BtPieceMessageTest.cc
  8748. Removed typedef PeerStats.
  8749. * src/PeerStat.h
  8750. * src/SegmentMan.cc
  8751. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Added std namespace to copy, remove_copy, back_inserter,
  8753. front_inserter.
  8754. * src/RequestGroupMan.cc
  8755. * src/DefaultPieceStorage.cc
  8756. * src/StreamFileAllocationEntry.cc
  8757. * src/BtFileAllocationEntry.cc
  8758. * src/RequestGroup.cc
  8759. * src/MetalinkEntry.cc
  8760. * src/DelegatingPeerListProcessor.cc
  8761. * src/DefaultBtRequestFactory.cc
  8762. * src/DefaultBtMessageDispatcher.cc
  8763. * src/version_usage.cc: Included <algorithm>
  8764. * src/main.cc
  8765. * src/MetalinkParserController.cc
  8766. * src/DefaultBtContext.cc
  8767. * src/DownloadEngineFactory.cc
  8768. * src/a2algo.h
  8769. Removed.
  8770. * test/StreamUriListParserTest.cc
  8771. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8772. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8773. ActivePeerConnectionCommand when it is given and
  8774. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8775. * src/ActivePeerConnectionCommand.{h, cc}
  8776. * src/BtSetup.cc
  8777. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Only add socket to DownloadEngine's select routine when peer or
  8779. localhost is unchoked and interested. This lowers CPU usage a
  8780. little bit.
  8781. * src/PeerInteractionCommand.cc
  8782. * src/PeerAbstractCommand.{h, cc}
  8783. * src/BtInteractive.h
  8784. * src/DefaultBtInteractive.{h, cc}
  8785. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8786. Revert previous change because get_peers message is needed for
  8787. announce_peer anyway.
  8788. * src/DHTGetPeersCommand.cc
  8789. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8790. Request peers thought DHT only when download hasn't finished.
  8791. * src/DHTGetPeersCommand.cc
  8792. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8794. * src/DHTBucketRefreshTask.{h, cc}
  8795. * src/DHTSetup.cc
  8796. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8798. standard classes.
  8799. Included string.h where mem* function are used.
  8800. Added namespace aria2.
  8801. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8802. Create directory before saving DHT routing table.
  8803. Now ios::failure is now handled properly.
  8804. * src/DHTAutoSaveCommand.cc
  8805. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8806. Removed unnecessary cerr.
  8807. * src/DownloadEngine.cc
  8808. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8809. Catch exception inside DHTMessageReceiver::receiveMessage().
  8810. Log unknown message.
  8811. * src/DHTMessageReceiver.{h, cc}
  8812. * src/DHTMessageFactory.h
  8813. * src/DHTMessageFactoryImpl.{h, cc}
  8814. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8815. * src/DHTInteractionCommand.cc
  8816. * src/DHTUnknownMessage.{h, cc}
  8817. * test/DHTUnknownMessageTest.cc
  8818. * test/MockDHTMessageFactory.h
  8819. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Commented out ip address comparison because a host can have multiple
  8821. ip addresses and it is hard to predict the hostname is resolved into
  8822. which one.
  8823. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8824. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. * po/Makefile.in: Removed since this is generated by configure.
  8826. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Fixed compiler warning about redefinition of SIZE_MAX.
  8828. Use common.h instead of config.h directly here.
  8829. * src/Platform.{h, cc}
  8830. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8831. here.
  8832. * common.h
  8833. 2008-02-02 gettextize <[email protected]>
  8834. Updated gettext related files.
  8835. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8836. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8837. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Added DHT functionality, compatible with mainline.
  8839. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8840. You may need to specify entry point to DHT network using
  8841. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8842. Use --dht-listen-port to specify port number. Make sure that your
  8843. firewall configuration can pass through UDP traffic to the port.
  8844. The routing table is saved in $HOME/.aria2/dht.dat.
  8845. * src/DHT*
  8846. * src/BNode.{h, cc}
  8847. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8848. particular torrent.
  8849. * src/Data.cc: Rewritten ctor.
  8850. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8851. --dht-entry-point.
  8852. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8853. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8854. ends, remove BtContext from DHTPeerAnnounceStorage.
  8855. * src/BtPortMessage.{h, cc}: Rewritten.
  8856. * src/message.h
  8857. * src/OptionHandlerImpl.cc
  8858. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8859. --dht-entry-point.
  8860. * src/Dictionary.{h, cc} (remove): New function.
  8861. * src/prefs.h
  8862. * src/DefaultBtMessageFactory.h
  8863. * src/BtHandshakeMessage.cc
  8864. * src/ActivePeerConnectionCommand.cc
  8865. * src/SocketCore.{h, cc}: Added datagram socket support.
  8866. * src/DefaultBtMessageFactory.cc
  8867. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8868. Create DHT commands.
  8869. * src/BtMessageFactory.h
  8870. * src/PeerMessageUtil.{h, cc}
  8871. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8872. Fixed the bug that log file is not written when configuration file doesn't exist.
  8873. This is caused by using Logger class before LogFactory is not configured.
  8874. BUG #1875079
  8875. * src/option_processing.cc
  8876. Warning message "configuration doesn't exist" is only printed when --conf is
  8877. given.
  8878. * src/option_processing.cc
  8879. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8880. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8881. ShaVisitor is now deprecated and slated to be removed.
  8882. * src/DefaultBtContext.cc
  8883. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Externalize message to message.h
  8885. * src/Platform.cc
  8886. * src/message.h
  8887. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8888. Set default domain and default path to cookie.
  8889. * src/HttpResponse.cc
  8890. * src/CookieBox.{h, cc}
  8891. * src/CookieParser.{h, cc}
  8892. * test/CookieParserTest.cc
  8893. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Added --no-conf and --conf-path command-line option.
  8895. --no-conf option disables loading aria2.conf file.
  8896. --conf-path option changes the configuration file path. The default
  8897. file path is $HOME/.aria2/aria2.conf
  8898. Added a warning message when the configuration file is not found.
  8899. * src/HelpItemFactory.cc
  8900. * src/option_processing.cc
  8901. * src/prefs.h
  8902. * src/usage_text.h
  8903. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Added the message to inform users that other help categories are
  8905. available in -h option.
  8906. * src/version_usage.cc
  8907. * src/TagContainer.{h, cc}
  8908. * test/TagContainerTest.cc
  8909. * src/TaggedItem.{h, cc}
  8910. * test/TaggedItemTest.cc
  8911. * src/HelpItem.h
  8912. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8914. from PiecedSegment's ctor.
  8915. Previously Piece::getAllMissingBlockIndexes() is called from
  8916. PiecedSegment() but it is rather expensive since only first element is
  8917. used.
  8918. * src/PiecedSegment.cc
  8919. * src/Piece.{h, cc}
  8920. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8922. each time these functions are called.
  8923. * src/BitfieldMan.{h, cc}
  8924. * test/BitfieldManTest.cc
  8925. * src/array_fun.h
  8926. * test/array_funTest.cc
  8927. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8928. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8929. filtered. Removed unnecessary cast to int32_t.
  8930. * src/BitfieldMan.{h, cc}
  8931. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8932. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8933. payload length(4bytes) are received. This happens because lenbufLength
  8934. is not updated in this particular case and successive call of
  8935. receiveMessage() overwrites payload length with bytes recieved which
  8936. are payload body.
  8937. * src/PeerConnection.{h, cc}
  8938. * src/message.h
  8939. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8940. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8941. peer if there are peers that have same ipaddr and port.
  8942. I've experiened segmentation fault and "pure virtual function was
  8943. called" error.
  8944. * src/Peer.h
  8945. * test/PeerTest.cc
  8946. * src/DefaultPeerStorage.cc
  8947. * test/DefaultPeerStorageTest.cc
  8948. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Removed a call to isPowerOf() because it is no longer necessary here
  8950. and a request block is not always power of 2.
  8951. BUG#1866924
  8952. * src/PeerMessageUtil.cc (checkLength)
  8953. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Fixed the bug that always first found Segment is removed from
  8955. usedSegmentEntries. Removed unused functions.
  8956. * src/SegmentMan.{h, cc}
  8957. * test/SegmentManTest.cc
  8958. Fixed the bug that ServerHost is not removed.
  8959. * src/RequestGroup.cc
  8960. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8961. Fixed the bug that SegmentMan::completeSegment() is not called
  8962. even if Segment is complete when --lowest-speed-limit is enabled.
  8963. BUG#1864525
  8964. * src/DownloadCommand.{h, cc}
  8965. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8966. Fixed: hash algorithm 'sha1' is always used.
  8967. * src/DownloadCommand.cc (validatePieceHash)
  8968. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Added --enable-peer-exchange command-line option.
  8970. * src/OptionHandlerFactory.cc
  8971. * src/HelpItemFactory.cc
  8972. * src/option_processing.cc
  8973. * src/usage_text.h
  8974. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8975. Move extension from BtRuntime to ExtensionMessageFactory, because
  8976. extension can be specified per peer, not per torrent.
  8977. * src/DefaultBtInteractive.cc
  8978. * src/BtRuntime.h
  8979. * src/ExtendedMessagingAware.h
  8980. * src/ExtensionMessageFactory.h
  8981. * src/DefaultExtensionMessageFactory.cc
  8982. * test/DefaultExtensionMessageFactoryTest.cc
  8983. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8984. Added categorized option help. Specify category using --help option.
  8985. Also added the ability to search options in forward match.
  8986. * src/HelpItem.{h, cc}
  8987. * test/HelpItemTest.cc
  8988. * src/HelpItemFactory.{h, cc}
  8989. * src/TagContainer.{h, cc}
  8990. * test/TagContainerTest.cc
  8991. * src/option_processing.cc
  8992. * src/prefs.h
  8993. * src/TaggedItem.{h, cc}
  8994. * test/TaggedItemTest.cc
  8995. * src/version_usage.cc
  8996. * src/help_tags.h
  8997. * src/usage_text.h
  8998. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8999. Fixed segmentation fault when bad torrent metainfo is parsed.
  9000. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9001. and then throw exception or skip it.
  9002. * src/DefaultBtContext.{h, cc}
  9003. * test/DefaultBtContextTest.cc
  9004. * src/AnnounceList.cc
  9005. * src/CompactPeerListProcessor.cc
  9006. * src/message.h
  9007. * src/DefaultBtAnnounce.{h, cc}
  9008. * test/DefaultBtAnnounceTest.cc
  9009. * src/BencodeVisitor.cc
  9010. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Added missing "B"(=Byte). So now the message looks like this:
  9012. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9013. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9014. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. Show the seed ratio after torrent downloads.
  9016. For example, after torrent download completed and --seed-time and
  9017. --seed-ratio conditions are fulfilled, following message is printed
  9018. right after "Download complete: .....":
  9019. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9020. * src/RequestGroupMan.cc
  9021. * src/RequestGroup.{h, cc}
  9022. * src/message.h
  9023. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9024. Remove a defunct control file. A defunct control file means that while
  9025. it exists, but the corresponding download file is missing.
  9026. After its removal, a download restarts from the beginning.
  9027. * src/RequestGroup.cc
  9028. * src/message.h
  9029. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9030. Allocate bitfield in Peer when it is really used. More specifically,
  9031. bitfield in Peer is allocated after the connection is established and
  9032. deallocated when the connection is dropped.
  9033. Since 2 parameters(piece length and total length) was removed from the
  9034. constructor of Peer class, many test classes were modified accordingly.
  9035. See svn log for more detailed information.
  9036. * src/PeerInteractionCommand.cc
  9037. * src/CompactPeerListProcessor.cc
  9038. * src/Peer.cc
  9039. * src/DefaultPeerListProcessor.cc
  9040. * src/PeerListenCommand.cc
  9041. * src/PeerReceiveHandshakeCommand.cc
  9042. Fixed memory leak
  9043. * src/Piece.cc
  9044. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9046. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9047. command-line options.
  9048. * src/option_processing.cc
  9049. * src/ActivePeerConnectionCommand.cc
  9050. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Send have message to peer if it already has the piece.
  9052. * src/BtHaveMessage.{h, cc}
  9053. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9054. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9055. port.
  9056. * src/DefaultPeerStorage.{h, cc}
  9057. * test/DefaultPeerStorageTest.cc
  9058. * src/HandshakeExtensionMessage.cc
  9059. * test/HandshakeExtensionMessageTest.cc
  9060. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9061. * src/PeerStorage.h
  9062. * test/MockPeerStorage.h
  9063. * src/PeerListenCommand.cc
  9064. * src/PeerReceiveHandshakeCommand.cc
  9065. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. Added --metalink-enable-unique-protocol option.
  9067. * src/Metalink2RequestGroup.cc
  9068. * src/option_processing.cc
  9069. * src/prefs.h
  9070. * src/version_usage.cc
  9071. * doc/aria2c.1.txt
  9072. * doc/aria2c.1
  9073. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Allow a peer in incomingPeer to be added peers.
  9075. * src/DefaultPeerStorage.cc
  9076. * test/DefaultPeerStorageTest.cc
  9077. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9079. I could reproduce this bug in following procedure:
  9080. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9081. 2. Restart aria2.
  9082. 3. You see the download stopped around 99%.
  9083. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9084. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9085. If timeout is reached, then _nextCommand is unused and it may contains
  9086. segments and they won't be canceled. Actually, timeout is not needed
  9087. here because if the server dropped connection, then retry is made.
  9088. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9089. Added uTorrent compatible Peer Exchange.
  9090. * src/BencodeVisitor.{h, cc}
  9091. * test/BencodeVisitorTest.cc
  9092. * src/BtConstants.h
  9093. * src/BtContext.h: Added 'private' flag.
  9094. * src/BtExtendedMessage.{h, cc}
  9095. * test/BtExtendedMessageTest.cc
  9096. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9097. reserved field.
  9098. * test/BtHandshakeMessageTest.cc
  9099. * src/BtMessageFactory.h
  9100. * src/BtRegistry.h
  9101. * src/BtRuntime.h: This class holds default extension message IDs for
  9102. aria2. By default, aria2 uses ID 8 for ut_pex.
  9103. * src/DefaultBtContext.cc
  9104. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9105. When it is true, aria2 enables ut_pex. This value is set by
  9106. PeerInteractionCommand.
  9107. * src/DefaultBtMessageFactory.{h, cc}
  9108. * test/DefaultBtMessageFactoryTest.cc
  9109. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9110. handling to DefaultBtInteractive class.
  9111. * src/DefaultExtensionMessageFactory.{h, cc}
  9112. * test/DefaultExtensionMessageFactoryTest.cc
  9113. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9114. the container(peers and incomingPeers. The equality is determined by
  9115. Peer::id).
  9116. * test/DefaultPeerStorageTest.cc
  9117. * src/ExtensionMessage.h
  9118. * test/MockExtensionMessage.h
  9119. * src/ExtensionMessageFactory.h
  9120. * test/MockExtensionMessageFactory.h
  9121. * src/HandshakeExtensionMessage.{h, cc}
  9122. * test/HandshakeExtensionMessageTest.cc
  9123. * src/MetaEntry.h
  9124. * src/Peer.{h, cc}
  9125. * src/PeerInteractionCommand.cc
  9126. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9127. addIncomingPeer.
  9128. * src/PeerMessageUtil.{h, cc}
  9129. * src/PeerObject.h
  9130. * src/UTPexExtensionMessage.{h, cc}
  9131. * test/UTPexExtensionMessageTest.cc
  9132. * src/message.h
  9133. * src/prefs.h
  9134. Fixed the bug that returns incomplete data when it contains null
  9135. character. A convenient constructor was also added.
  9136. * src/Data.{h, cc}
  9137. Rewritten.
  9138. * src/CompactPeerListProcessor.cc
  9139. Fixed typos.
  9140. * src/message.h
  9141. * src/MetaFileUtil.cc
  9142. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Added "Status Legend" label to the explanation text of 'stat' in
  9144. download result and moved it to the last. BUG#1848214
  9145. * src/RequestGroupMan.cc
  9146. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9147. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9148. * src/Makefie.am
  9149. * test/Makefile.am
  9150. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Fixed the bug that prevents aria2 from loading cookie file when expire
  9152. value is greater than 2^31-1. BUG#1851066
  9153. * src/CookieBoxFactory.cc
  9154. * test/CookieBoxFactoryTest.cc
  9155. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Fixed possible memory leak when an exception is thrown.
  9157. * src/XML2SAXMetalinkProcessor.cc
  9158. Added Expat support. If both libxml2 and Expat are installed, then
  9159. libxml2 is used by default.
  9160. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9161. ExpatMetalinkProcessor according to the configuration.
  9162. * src/ExpatMetalinkProcessor.{h, cc}
  9163. * src/main.cc: Removed libxml2 specific header and init/free function.
  9164. * src/MetalinkProcessorFactory.{h, cc}
  9165. * src/MetalinkHelper.cc
  9166. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9167. * src/MetalinkProcessor.h
  9168. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9169. MetalinkProcessorTest is used instead.
  9170. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9171. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9172. MetalinkProcessorFactory::newInstance().
  9173. * m4/libexpat.m4
  9174. * configure.ac: Added configuration options for libexpat.
  9175. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. Disabled -s option in metalink download.
  9177. * src/Metalink2RequestGroup.cc
  9178. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9179. If several protocols are available for a mirror in metalink file,
  9180. aria2 now use one of them. --metalink-preferred-protocol option was
  9181. added to specify the preference of protocol.
  9182. * src/AbstractCommand.cc
  9183. * src/OptionHandlerFactory.cc
  9184. * src/ServerHost.{h, cc}
  9185. * src/Metalink2RequestGroup.cc
  9186. * src/RequestGroup.{h, cc}
  9187. * test/RequestGroupTest.cc
  9188. * src/option_processing.cc
  9189. * src/prefs.h
  9190. * src/HttpResponseCommand.cc
  9191. * src/MetalinkResource.{h, cc}
  9192. * src/FtpNegotiationCommand.cc
  9193. * src/MetalinkEntry.{h, cc}
  9194. * src/MetalinkEntryTest.cc
  9195. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9196. Code cleanup and added debug log.
  9197. * src/PeerConnection.cc
  9198. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9199. Compiler error fix: applied the patch by Tiziano Mueller
  9200. * src/RequestGroup.cc
  9201. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9202. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9203. in stopped and completed event.
  9204. * src/AnnounceList.{h, cc}
  9205. * test/AnnounceListTest.cc
  9206. * src/DefaultBtAnnounce.cc
  9207. * test/DefaultBtAnnounceTest.cc
  9208. Sorted URLs.
  9209. * test/Metalink2RequestGroupTest.cc
  9210. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Removed unnecessary string copy. Updated doc and corrected indentation.
  9212. * src/Base64.cc
  9213. Fixed compilation warnings
  9214. * test/DataTest.cc
  9215. * test/HttpRequestTest.cc
  9216. * test/MetaFileUtilTest.cc
  9217. * test/RequestTest.cc
  9218. * Release 0.12.0
  9219. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Updated translations
  9221. * po/{de,fr,ja,nl,ru}.po
  9222. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9223. translations. Many thanks to translators.
  9224. * po/{ca,es,it,pt_BR,sv}.po
  9225. * po/LINGUAS
  9226. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Added a notice about URL
  9228. * src/version_usage.cc
  9229. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9230. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9231. aria2 repeatedly sends stopped request when tracker returns error code.
  9232. * src/AnnounceList.cc
  9233. * test/AnnounceListTest.cc
  9234. * src/AnnounceTier.h
  9235. Added a message when ctrl-c is hit.
  9236. Now second ctrl-c is also handled in signal handler.
  9237. * src/RequestGroupMan.{h, cc}
  9238. * src/RequestGroup.{h, cc}
  9239. * src/MultiUrlRequestInfo.cc
  9240. * src/DownloadEngine.cc
  9241. * src/TrackerWatcherCommand.cc
  9242. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Code cleanup
  9244. * src/Base64.cc (encode)
  9245. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. Changed Direct/IO enable/disable procesure in file allocation routine.
  9247. * src/SingleFileAllocationIterator.cc
  9248. (SingleFileAllocationIterator):
  9249. Disable directIO if offset is not multiple of 512.
  9250. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9251. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9252. Enable created SingleFileAllocationIterator's directIO.
  9253. * src/FileAllocationEntry.cc
  9254. (FileAllocationEntry): Enable directIO here.
  9255. (~FileAllocationEntry): Disable directIO here.
  9256. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9258. * src/Peer.{h, cc}
  9259. * src/DefaultPieceStorage.cc
  9260. * test/DefaultPieceStorageTest.cc
  9261. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9262. Rewritten direct I/O support routine
  9263. * src/SingleFileAllocationIterator.cc
  9264. * src/MultiDiskAdaptor.{h, cc}
  9265. * src/ByteArrayDiskWriter.h
  9266. * src/AbstractSingleDiskAdaptor.h
  9267. * src/AbstractDiskWriter.cc
  9268. * src/DefaultPieceStorage.cc
  9269. * src/DiskWriter.h
  9270. * src/BinaryStream.h
  9271. * src/IteratableChunkChecksumValidator.cc
  9272. * src/IteratableChecksumValidator.cc
  9273. * src/CheckIntegrityEntry.cc
  9274. * src/FileAllocationEntry.cc
  9275. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9276. Fixed typo
  9277. * src/version_usage.cc
  9278. Updated doc
  9279. * doc/aria2c.1.txt
  9280. * doc/aria2c.1
  9281. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9282. Fixed compile error without message digest support.
  9283. * src/FileMetalinkParserState.cc
  9284. * src/MetalinkParserController.{h, cc}
  9285. * test/XML2SAXMetalinkProcessorTest.cc
  9286. * test/MetalinkParserControllerTest.cc
  9287. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Enable direct I/O support in checksum checking.
  9289. * src/IteratableChunkChecksumValidator.{h, cc}
  9290. * test/IteratableChunkChecksumValidatorTest.cc
  9291. * src/CheckIntegrityEntry.cc
  9292. * src/PieceHashCheckIntegrityEntry.cc
  9293. * src/IteratableChecksumValidator.{h, cc}
  9294. * src/BtCheckIntegrityEntry.cc: Added doc.
  9295. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Added --allow-piece-length-change option.
  9297. * src/DefaultBtProgressInfoFile.cc
  9298. * test/DefaultBtProgressInfoFileTest.cc
  9299. * src/OptionHandlerFactory.cc
  9300. * src/option_processing.cc
  9301. * src/prefs.h
  9302. * src/version_usage.cc
  9303. * doc/aria2c.1.txt
  9304. * doc/aria2c.1
  9305. Fixed: duplicated result entry appears when exception is thrown in
  9306. RequestGroup::createInitiateConnectionCommand().
  9307. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9308. Add RequestGroup to _requestGroup after RequetGroup::
  9309. createInitiateConnectionCommand() succeeds.
  9310. Externalized message
  9311. * src/XML2SAXMetalinkProcessor.cc
  9312. * src/message.h
  9313. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Forced download abort when received negative response from http/ftp
  9315. server.
  9316. * src/HttpResponseCommand.cc
  9317. * src/FtpNegotiationCommand.cc
  9318. * src/HttpResponse.cc
  9319. * src/FtpConnection.cc
  9320. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9322. the predecessor, Xml2MetalinkParser class.
  9323. I tested them against 94KB metalink file with 1234 chunk checksums.
  9324. The new one parsed it in 22msec, while it took 6000msec with old one.
  9325. * src/XML2SAXMetalinkProcessor.{h, cc}
  9326. * test/XML2SAXMetalinkProcessorTest.cc
  9327. * src/MetalinkParserController.{h, cc}
  9328. * test/MetalinkParserControllerTest.cc
  9329. * src/MetalinkParserState.h: Also added 16 subclasses.
  9330. * src/main.cc
  9331. * src/Metalink2RequestGroup.cc
  9332. * src/MetalinkHelper.cc
  9333. * src/MetalinkEntry.cc
  9334. * src/ChunkChecksum.h
  9335. Rewritten Base64 class for better performance.
  9336. * src/Base64.{h, cc}
  9337. * test/Base64Test.cc
  9338. * src/HttpRequest.cc
  9339. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9340. Fixed the bug#1841757: aria2 will connect to server to only get
  9341. file size.
  9342. * src/StreamFileAllocationEntry.cc
  9343. * src/option_processing.cc
  9344. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9345. downloads.
  9346. * src/FtpNegotiationCommand.cc
  9347. Suppressed wrong message when finding PreDownloadHandler
  9348. * src/RequestGroup.cc
  9349. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9350. Updated usage
  9351. * src/version_usage.cc
  9352. Updated man page
  9353. * doc/aria2c.1.txt
  9354. * doc/aria2c.1
  9355. Updated po files
  9356. * po/aria2c.pot
  9357. * po/*.po
  9358. * po/*.gmo
  9359. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. Eliminated g++-4.2 warning
  9361. * src/DownloadHandlerConstants.{h, cc}
  9362. * src/Util.cc
  9363. * test/MetaFileUtilTest.cc
  9364. * test/PStringBuildVisitorTest.cc
  9365. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9366. * src/RequestGroup.cc
  9367. * src/BtCheckIntegrityEntry.cc
  9368. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Fixed a2io.h
  9370. * src/a2io.h
  9371. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. Added direct I/O support. The current implementation uses O_DIRECT,
  9373. which is not posix standard and is tested on linux 2.6.21.
  9374. Currently only file allocation uses direct I/O.
  9375. * src/SingleFileAllocationIterator.{h, cc}
  9376. * test/SingleFileAllocationIteratorTest.cc
  9377. * src/MultiFileAllocationIterator.{h, cc}
  9378. * test/MultiFileAllocationIteratorTest.cc
  9379. * src/BinaryStream.h
  9380. * src/DiskWriter.h
  9381. * src/AbstractDiskWriter.{h, cc}
  9382. * src/ByteArrayDiskWriter.h
  9383. * src/DiskAdaptor.h
  9384. * src/AbstractSingleDiskAdaptor.{h, cc}
  9385. * src/MultiDiskAdaptor.{h, cc}
  9386. * src/FileAllocationEntry.cc
  9387. * src/Util.{h, cc}
  9388. * src/OptionHandlerFactory.cc
  9389. * src/prefs.h
  9390. * src/version_usage.cc
  9391. * src/option_processing.cc
  9392. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9393. handleException.
  9394. * src/MultiFileAllocationIterator.cc
  9395. Added EINTR handling
  9396. * src/SocketCore.cc
  9397. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9398. Updated usage
  9399. * src/version_usage.cc
  9400. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. Applied Ross's patch for MinGW port.
  9402. * src/DownloadEngine.h
  9403. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9404. Set Content-Type to SingleFileDownloadContext when http response is
  9405. received.
  9406. * src/HttpResponseCommand.cc
  9407. * src/HttpResponse.{h, cc}
  9408. * test/HttpResponseTest.cc
  9409. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Rewritten to add content-type support.
  9411. * src/DownloadHandler.{h, cc}
  9412. * src/BtPostDownloadHandler.{h, cc}
  9413. * test/BtPostDownloadHandlerTest.cc
  9414. * src/MetalinkPostDownloadHandler.{h, cc}
  9415. * test/MetalinkPostDownloadHandlerTest.cc
  9416. * src/PostDownloadHandler.{h, cc}
  9417. * src/DownloadHandlerConstants.{h, cc}
  9418. * src/RequestGroup.cc
  9419. * src/HttpResponseCommand.cc
  9420. * src/FtpNegotiationCommand.cc
  9421. * src/SingleFileDownloadContext.{h, cc}
  9422. * src/RequestGroup.h
  9423. * src/RequestGroupCriteria.h
  9424. * src/ContentTypeRequestGroupCriteria.h
  9425. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9426. If it is give, metalink/torrent file is not written to the disk, but
  9427. just is kept in memory. Parsing is occurred on memory.
  9428. * src/MetalinkHelper.{h, cc}
  9429. * src/MetalinkProcessor.h
  9430. * src/Xml2MetalinkProcessor.{h, cc}
  9431. * test/Xml2MetalinkProcessorTest.cc
  9432. * src/DownloadHandlerFactory.{h, cc}
  9433. * test/DownloadHandlerFactoryTest.cc
  9434. * src/PreDownloadHandler.{h, cc}
  9435. * src/OptionHandlerFactory.cc
  9436. * src/DefaultBtContext.{h, cc}
  9437. * test/DefaultBtContextTest.cc
  9438. * src/version_usage.cc
  9439. * src/Metalink2RequestGroup.{h, cc}
  9440. * src/RequestGroup.{h, cc}
  9441. * src/a2functional.h
  9442. * test/a2functionalTest.cc
  9443. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9444. * src/OptionHandlerImpl.h
  9445. * src/prefs.h
  9446. * src/Util.{h, cc}
  9447. * test/UtilTest.cc
  9448. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9449. memory usage.
  9450. * src/RequestGroupMan.{h, cc}
  9451. * src/DownloadEngine.cc
  9452. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9453. WeakHandle to SharedHandle because WeakHandle could be null.
  9454. * src/RequestGroup.{h, cc}
  9455. * src/DownloadEngineFactory.cc
  9456. * src/DownloadResult.h
  9457. Set totalLength after download finished
  9458. * src/UnknownLengthPieceStorage.{h, cc}
  9459. Keep torrent file specified in metalink in memory.
  9460. * src/Metalink2RequestGroup.cc
  9461. * src/BtDependency.cc
  9462. * src/TrueRequestGroupCriteria.h
  9463. Fixed the bug: seekg is used where seekp should be used.
  9464. * src/ByteArrayDiskWriter.cc
  9465. * test/ByteArraydiskWriterTest.cc
  9466. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. Fixed syntax error
  9468. * test/SequenceTest.cc
  9469. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9471. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9472. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9473. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9474. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9475. Added the check to see whether ares_host_callback accepts timeouts
  9476. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9477. * src/NameResolver.{h, cc}
  9478. * m4/libcares.m4
  9479. * configure.ac: Set C++ for language choice.
  9480. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Fixed: compilation fails without c-ares/ares
  9482. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9483. Generate http/ftp commands only when download is incomplete.
  9484. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9485. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Corrected typo. Examples are removed since they are available in man
  9487. page.
  9488. * src/version_usage.cc
  9489. Updated man page.
  9490. * doc/aria2c.1
  9491. * doc/aria2c.1.txt
  9492. * doc/makeman: Commented out sed command.
  9493. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Throw DlAbortEx when a remote file is not found.
  9495. * src/HttpResponse.cc
  9496. * src/FtpNegotiationCommand.cc
  9497. * src/message.h
  9498. Overwrite an existing file if --allow-overwrite=true is given.
  9499. * src/RequestGroup.cc
  9500. Removed unused functions
  9501. * src/AbstractCommand.h
  9502. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9503. Removed 'extern' from 'extern typedef ...' in src/*.h
  9504. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Updated usage
  9506. * src/version_usage.cc
  9507. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9508. Trim announce URL
  9509. * src/DefaultBtContext.cc
  9510. * test/ShaVisitorTest.cc
  9511. Trim argument s. Give trimed s to exception constructor.
  9512. * src/Util.cc (parseInt)(parseLLInt)
  9513. * test/UtilTest.cc
  9514. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Set precision back to 1.
  9516. * src/ConsoleStatCalc.cc (calculateStat)
  9517. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Replaced strtol with Util::parseInt
  9519. * src/ChunkedEncoding.cc
  9520. * src/HttpConnection.cc
  9521. * src/CookieBoxFactory.cc
  9522. * src/ParameterizedStringParser.cc
  9523. * src/Util.cc
  9524. * test/UtilTest.cc
  9525. * test/OptionHandlerTest.cc
  9526. * src/Request.cc
  9527. Throw exception when empty string is given. The message for exception
  9528. changed.
  9529. * src/Util.cc (parseInt)(parseLLInt)
  9530. * src/message.h
  9531. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9533. set to 1.
  9534. * src/ConsoleStatCalc.cc (calculateStat)
  9535. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. Preallocate non-requested file which is adjacent forward to requested
  9537. file('requested' files means the files given in --select-file option)
  9538. if they share a same piece.
  9539. This fixes long pause in the file system which doesn't support sparse
  9540. files like FAT32 while downloading.
  9541. * src/MultiFileAllocationIterator.{h, cc}
  9542. * test/MultiFileAllocationIteratorTest.cc
  9543. * src/FileEntry.{h, cc}
  9544. Removed unused _option.
  9545. * src/MultiDiskAdaptor.h
  9546. * test/MultiDiskAdaptorTest.cc
  9547. * src/DefaultPieceStorage.cc
  9548. Set the default value of --seed-ratio to 1.0.
  9549. If 0.0 is given, then seeding continues regardless of share ratio.
  9550. * src/version_usage.cc
  9551. * src/option_processing.cc
  9552. * src/BtSetup.cc
  9553. * doc/aria2c.1.txt
  9554. * doc/aria2c.1
  9555. Fixed: Selective download is not working in BitTorrent
  9556. * src/RequestGroup.cc
  9557. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9558. * src/PieceStorage.h
  9559. * test/MockPieceStorage.h
  9560. * src/UnknownLengthPieceStorage.h
  9561. * src/DefaultPieceStorage.{h, cc}
  9562. * src/Metalink2RequestGroup.cc
  9563. * src/RequestGroup.cc
  9564. * src/Sequence.h
  9565. * test/SequenceTest.cc
  9566. * src/IntSequence.h
  9567. * src/message.h
  9568. * src/Util.{h, cc}
  9569. * test/UtilTest.cc
  9570. Added new function 'parse' to catch exception thrown by subclass's
  9571. parseArg
  9572. * src/OptionHandler.h
  9573. * src/OptionParser.cc
  9574. * src/NameMatchOptionHandler.h
  9575. * src/OptionHandlerImpl.h
  9576. * test/OptionHandlerTest.cc
  9577. Added IntegerRangeOptionHandler. Used for --listen-port and
  9578. --select-file. Now --listen-port accepts range of port.
  9579. * src/OptionHandlerFactory.cc
  9580. * src/version_usage.cc
  9581. * src/OptionHandlerImpl.h
  9582. * src/option_processing.cc
  9583. * src/BtSetup.cc
  9584. * src/PeerListenCommand.{h, cc}
  9585. * doc/aria2c.1.txt
  9586. * doc/aria2c.1
  9587. Implemented operator< for Exception class to provide easy way to print
  9588. exception stack trace.
  9589. * src/Exception.{h, cc}
  9590. * src/main.cc
  9591. * src/option_processing.cc
  9592. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9593. * src/version_usage.cc
  9594. (showVersion): Reworked.
  9595. (showUsage): Added examples.
  9596. Removed Hint for total length and file name.
  9597. * src/Metalink2RequestGroup.cc
  9598. * src/RequestGroup.{h, cc}
  9599. * src/HttpResponseCommand.cc
  9600. * src/FtpNegotiationCommand.cc
  9601. Now --follow-torrent and --follow-metalink option work properly.
  9602. * src/RequestGroup.cc
  9603. Updated man page
  9604. * doc/aria2c.1.txt
  9605. * doc/aria2c.1
  9606. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Removed.
  9608. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9609. Use Segment::operator==()
  9610. * src/HttpConnection.cc
  9611. * src/Segment.h
  9612. Updated usage
  9613. * src/version_usage.cc
  9614. Added EINTR treatment.
  9615. * src/SocketCore.cc
  9616. * src/AbstractDiskWriter.cc
  9617. Rewritten.
  9618. * src/Util.cc (rangedFileCopy)
  9619. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9620. Fixed typo.
  9621. * src/version_usage.cc
  9622. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Implemented. Now -c option works fine.
  9624. * src/DefaultPieceStorage.cc (markPiecesDone)
  9625. * test/DefaultPieceStorageTest.cc
  9626. Removed.
  9627. * src/SegmentMan.{h, cc}
  9628. (markAllPiecesDone)
  9629. (markPieceDone)
  9630. Synchronized po files with
  9631. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9632. * src/fr.po
  9633. * src/ru.po
  9634. * src/de.po
  9635. * src/ja.po
  9636. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9637. Added ifdef and some modifications to compile without BitTorrent,
  9638. Metalink, MessageDigest
  9639. support.
  9640. * src/PieceHashCheckIntegrityEntry.cc
  9641. * src/MetalinkEntry.h
  9642. * src/version_usage.cc
  9643. * src/main.cc
  9644. * src/DownloadEngine.{h, cc}
  9645. * src/Metalink2RequestGroup.cc
  9646. * src/Peer.cc
  9647. * src/RequestGroup.cc
  9648. * src/MetalinkHelper.cc
  9649. * test/DefaultPieceStorageTest.cc
  9650. * test/MetalinkPostDownloadHandlerTest.cc
  9651. * test/Metalink2RequestGroupTest.cc
  9652. Hide TOTAL SPD when all downloads complete.
  9653. * src/ConsoleStatCalc.cc
  9654. Log target system information.
  9655. * src/main.cc
  9656. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Now --metalink-location accepts a comma-deliminated list of locations.
  9658. * src/MetalinkEntry.{h, cc}
  9659. * test/MetalinkEntryTest.cc
  9660. * src/version_usage.cc
  9661. * src/Metalink2RequestGroup.cc
  9662. * src/Xml2MetalinkProcessor.cc
  9663. * test/Xml2MetalinkProcessorTest.cc
  9664. * doc/aria2c.1.txt
  9665. * doc/aria2c.1
  9666. * src/Util.cc (toUpper)(toLower): Rewritten.
  9667. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9668. Added the ability to detect duplicate download entry which is about to
  9669. download the same file other RequestGroup is downloading.
  9670. * src/RequestGroup.cc
  9671. * src/HttpResponseCommand.cc
  9672. * src/FtpNegotiationCommand.cc
  9673. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9674. Recalculates download progress when loading a control file,
  9675. if the piece length of DownloadContext is different from the one saved
  9676. in the control file. Currently in-flight pieces are ignored.
  9677. * src/DefaultBtProgressInfoFile.cc
  9678. * test/DefaultBtProgressInfoFileTest.cc
  9679. * src/Util.{h, cc}
  9680. * test/UtilTest.cc
  9681. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9682. Do not rotate tiers in announce-list.
  9683. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9684. AnnounceList::allTiersFailed() used instead to detect whether all
  9685. tiers are tried and failed.
  9686. * test/DefaultBtAnnounceTest.cc
  9687. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9688. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9689. * test/AnnounceListTest.cc
  9690. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9691. clause. Catch RecoverableException instead of DlRetryEx instead.
  9692. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. Implemented checksum validation feature(1 checksum for each file)
  9694. The validation takes place after the download.
  9695. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9696. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9697. * src/CheckIntegrityCommand.cc: Changed log message.
  9698. * src/Metalink2RequestGroup.cc: Set checksum to
  9699. SingleFileDownloadContext.
  9700. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9701. PieceHashCheckIntegrity class.
  9702. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9703. PieceHashCheckIntegrity class.
  9704. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9705. * src/IteratableValidator.h: New class.
  9706. * src/message.h
  9707. * src/CheckIntegrityEntry.{h, cc}
  9708. * src/IteratableChunkChecksumValidator.{h, cc}
  9709. * src/SingleFileDownloadContext.h
  9710. * src/DownloadCommand.cc
  9711. --allow-overwrite=true is no longer needed to check file integrity
  9712. before download in BitTorrent download.
  9713. * src/RequestGroup.cc (getInitialCommand)
  9714. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9715. throws exception.
  9716. * src/RequestGroupMan.cc (getInitialCommands)
  9717. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. urlencode the given url inside Request::parseUrl(...)
  9719. * src/Request.{h, cc}
  9720. * src/Util.{h, cc}
  9721. * test/RequestTest.cc
  9722. Removed #!metalink3! notation support because it is deleted from
  9723. the metalink specification.
  9724. * src/Request.{h, cc}
  9725. * test/RequestTest.cc
  9726. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9727. Don't connect server before checking file integrity at startup, if
  9728. filesize and output file path are known.
  9729. * src/AbstractCommand.cc
  9730. * src/StreamFileAllocationEntry.cc
  9731. * src/Metalink2RequestGroup.cc
  9732. * src/RequestGroup.{h, cc}
  9733. * src/HttpResponseCommand.cc
  9734. * src/FtpNegotiationCommand.cc
  9735. Added DownloadFailureException. If it is thrown, RequestGroup should
  9736. halt.
  9737. * src/AbstractCommand.cc
  9738. * src/DownloadFailureException.h
  9739. * src/RequestGroup.cc
  9740. Catch RecoverableException, instead of DlAbortEx.
  9741. * src/RequestGroupMan.cc
  9742. * src/FillRequestGroupCommand.cc
  9743. * src/MetaFileUtil.cc
  9744. * src/IteratableChunkChecksumValidator.cc
  9745. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9746. getGID())
  9747. * src/CheckIntegrityCommand.cc
  9748. * src/message.h
  9749. Print gid instead of idx.
  9750. * src/RequestGroupMan.cc
  9751. Removed exception throwers declaration.
  9752. * src/DirectDiskAdaptor.{h, cc}
  9753. * src/SocketCore.{h, cc}
  9754. * src/MultiDiskAdaptor.{h, cc}
  9755. * src/HttpConnection.{h, cc}
  9756. * src/HttpResponse.{h, cc}
  9757. * src/DiskAdaptor.{h, cc}
  9758. * src/CopyDiskAdaptor.{h, cc}
  9759. * src/MultiDiskAdaptor.{h, cc}
  9760. * src/HttpHeaderProcessor.{h, cc}
  9761. * src/AbstractSingleDiskAdaptor.{h, cc}
  9762. * src/Util.{h, cc}
  9763. * test/UtilTest.cc
  9764. * src/DefaultDiskWriter.{h, cc}
  9765. * src/FtpConnection.{h, cc}
  9766. * src/AbstractDiskWriter.{h, cc}
  9767. Removed duplicate code.
  9768. * src/StreamCheckIntegrityEntry.cc
  9769. Removed unnecessary include.
  9770. * src/DiskWriter.h
  9771. Included Exception.h
  9772. * src/option_processing.cc
  9773. Included 2 files and added doc
  9774. * src/TrackerWatcherCommand.cc
  9775. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9776. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9777. Changed CheckIntegrityEntry interface so that it can define
  9778. the action when all the chunk checksums are valid.
  9779. * src/CheckIntegrityEntry.h
  9780. * src/StreamCheckIntegrityEntry.{h, cc}
  9781. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9782. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9783. to exit rather than doing seeding. So, it would be good to toggle this
  9784. behavior.
  9785. * src/CheckIntegrityCommand.cc
  9786. * src/AbstractCommand.cc
  9787. * src/RequestGroup.cc
  9788. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9789. Reflect the download length of in-flight pieces.
  9790. It makes the download length readout more precise.
  9791. * src/DefaultPieceStorage.{h, cc}
  9792. * test/DefaultPieceStorageTest.cc
  9793. * src/a2functional.h
  9794. * test/a2functionalTest.cc
  9795. Lower CPU load when --max-download-limit is used.
  9796. There is up and down in speed indicator when enabling
  9797. http-pipelining but a download goes well. I think the problem is that
  9798. because http-pipelining is enabled, DownloadCommand is created for
  9799. each segment and in its constructor, PeerStat::downloadStart() is
  9800. called. In PeerStat::downloadStart(), speed calculation object is
  9801. reseted, which makes download speed zero.
  9802. * src/DownloadCommand.cc
  9803. Rewritten using accumulate.
  9804. * src/RequestGroupMan.cc (calculateStat)
  9805. Code clearnup.
  9806. * src/FtpNegotiationCommand.cc
  9807. * src/HttpResponseCommand.cc
  9808. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. Fixed: Can not resume: aria2 reports download already finished.
  9810. * src/AbstractCommand.{h, cc}
  9811. * src/HttpResponseCommand.cc
  9812. * src/FtpNegotiateCommand.cc
  9813. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9814. Now a file is stored in the directory specified in .metalnk file
  9815. (file[@name]).
  9816. * src/Metalink2RequestGroup.cc
  9817. Create the directory structure when opening the file if it doesn't
  9818. exist.
  9819. * src/AbstractDiskWriter.cc
  9820. * src/Util.{h, cc}
  9821. * src/File.h
  9822. * test/UtilTest.cc
  9823. Removed file name comparison
  9824. * src/Metalink2RequestGroup.cc
  9825. * src/HttpResponseCommand.cc
  9826. Rewritten using Util::mkdirs()
  9827. * src/FileEntry.cc (setupDir)
  9828. * test/FileEntryTest.cc
  9829. Updated doc
  9830. * src/SingleFileDownloadContext.h
  9831. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Now SleepCommand dispatches nextCommand when halt is requested.
  9833. It avoids a possible long wait after hitting CTRL-C.
  9834. * src/SleepCommand.{h, cc}
  9835. * src/RequestGroupAware.{h, cc}
  9836. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9837. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9838. to open listen port, then remove the port number from the tracker
  9839. request.
  9840. * src/DefaultBtAnnounce.cc
  9841. * test/DefaultBtAnnounceTest.cc
  9842. * test/MockPieceStorage.h
  9843. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9844. them more testable.
  9845. * src/DefaultBtAnnounce.{h, cc}
  9846. * src/DefaultBtContext.{h, cc}
  9847. * src/Util.{h, cc}
  9848. * test/DefaultBtAnnounceTest.cc
  9849. * test/DefaultBtContextTest.cc
  9850. * test/UtilTest.cc
  9851. Added 'B' to upload bytes readout.
  9852. * src/ConsoleStatCalc.cc
  9853. Now the listen port for BitTorrent download is opened when it is
  9854. needed.
  9855. * src/DownloadEngineFactory.cc
  9856. * src/BtSetup.{h, cc}
  9857. * src/PeerListenCommand.{h, cc}
  9858. Now an exception thrown while parsing tracker response is now logged.
  9859. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9860. called, which means no retry is made in this case, assuming a tracker
  9861. has a problem.
  9862. * src/TrackerWatcherCommand.cc
  9863. Fixed: downloading a file whose length is unkown fails.
  9864. * src/DownloadCommand.cc
  9865. Simplified prepareForNextSegment()
  9866. * src/DownloadCommand.cc
  9867. Updated
  9868. * po/POTFILES.in
  9869. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. Re-implemented a file listing for Metalink, which was dropped while
  9871. http/ftp/torrent integration was being implemented.
  9872. * src/MetalinkHelper.{h, cc}: New class.
  9873. * test/MetalinkHelperTest.cc
  9874. * src/main.cc
  9875. * src/Metalink2RequestGroup.cc
  9876. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9877. Added the ability to display the detailed torrent file information.
  9878. Now -S option gives not only a file listing, but also total download
  9879. length, info hash, announce URI, piece length, the number of pieces,
  9880. and mode(single or multi-torrent).
  9881. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9882. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9883. KiB)
  9884. * test/UtilTest.cc
  9885. * src/main.cc
  9886. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9887. Added ftp://USER:PASSWD@Servername automatic parsing.
  9888. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9889. _password. Recognize username and password in URI.
  9890. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9891. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9892. * src/RequestFactory.{h, cc}: Removed.
  9893. * src/AuthConfigFactory.{h, cc}: New class.
  9894. * src/FtpConnection.cc: Use AuthConfigFactory.
  9895. * src/HttpRequest.cc: Use AuthConfigFactory.
  9896. * test/HttpRequestTest.cc: Updated.
  9897. * test/RequestTest.cc: Updated.
  9898. * test/AuthConfigFactoryTest.cc: New class.
  9899. * test/RequestFactoryTest.cc: Removed.
  9900. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Use RequestGroup::allDownloadFinished() to decide whether the control
  9902. file should be removed or saved.
  9903. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9904. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9905. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9906. Use File::renameTo()
  9907. * src/DefaultBtProgressInfoFile.cc
  9908. Added --no-file-allocation-limit command-line option.
  9909. * src/version_usage.cc
  9910. * src/option_processing.cc
  9911. * src/OptionHandlerFactory.cc
  9912. * src/RequestGroup.{h, cc}
  9913. * src/BtCheckIntegrityEntry.cc
  9914. * src/StreamCheckIntegrityEntry.cc
  9915. * src/prefs.h
  9916. * doc/aria2c.1.txt
  9917. * doc/aria2c.1
  9918. Now prealloc is the default value for --file-allocation option.
  9919. * src/version_usage.cc
  9920. * src/option_processing.cc
  9921. * doc/aria2c.1.txt
  9922. * doc/aria2c.1
  9923. Don't URL-encode user-agent.
  9924. * src/HttpRequest.cc
  9925. Updated translations
  9926. * po/LINGUAS: Added nl for Dutch translation.
  9927. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9928. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9929. * po/POTFILES.in: Updated.
  9930. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Added the ability to recognize url-list in a torrent file.
  9932. The retrieved URLs are attached to the corresponding FileEntry.
  9933. * src/DefaultBtContext.{h, cc}
  9934. * src/FileEntry.{h, cc}
  9935. * test/DefaultBtContextTest.cc
  9936. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9937. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9938. after the download finishes.
  9939. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9940. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9941. the data smaller than block length.
  9942. A block length can be specified by constructor's argument.
  9943. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9944. Get a missing piece in the range of given FileEntry. This function is
  9945. not used in the program yet.
  9946. * src/Util.h: Added some macros.
  9947. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. Added HTTP/1.1 keep alive and pipelining support.
  9949. See --enable-http-keep-alive and --enable-http-pipelining option.
  9950. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9951. Segment.
  9952. * src/HttpDownloadCommand.{h, cc}
  9953. * src/OptionHandlerFactory.cc
  9954. * src/HttpConnection.{h, cc}
  9955. * src/version_usage.cc
  9956. * src/HttpInitiateConnectionCommand.cc
  9957. * src/FtpInitiateConnectionCommand.cc
  9958. * src/Segment.h
  9959. * src/HttpRequestCommand.{h, cc}
  9960. * src/option_processing.cc
  9961. * src/prefs.h
  9962. * src/HttpResponseCommand.cc
  9963. * src/SegmentMan.{h, cc}
  9964. * src/FtpNegotiateCommand.cc
  9965. * src/HttpProxyResponseCommand.cc
  9966. * src/Request.cc
  9967. * src/HttpRequest.cc
  9968. * src/DownloadCommand.cc
  9969. * test/HttpRequestTest.cc
  9970. * test/RequestTest.cc
  9971. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9972. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9973. finished.
  9974. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9975. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9976. catching it inside the method.
  9977. When no file entry is found in a metalink without querying user
  9978. preferences, throw the exception with the error message that suggests
  9979. metalink file is probably broken.
  9980. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9981. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9983. processed.
  9984. * src/RequestGroupMan.cc (removeStoppedGroup)
  9985. Added debug message.
  9986. * src/BtPostDownloadHandler.cc
  9987. * src/MetalinkPostDownloadHandler.cc
  9988. * src/PostDownloadHandler.{h, cc}
  9989. * src/RequestGroup.cc
  9990. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9991. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9992. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9993. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9994. stops and there are any unfinished or in-progress downloads.
  9995. Added the legend of "stat".
  9996. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. Throw exception when chunck checksum verification fails.
  9998. * src/DownloadCommand.cc (validatePieceHash): New function.
  9999. * src/PiecedSegment.{h, cc} (clear): New function.
  10000. * src/GrowSegment.{h, cc} (clear): New function.
  10001. * src/Segment.h (clear): New function.
  10002. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10003. * test/SegmentTest.cc
  10004. * test/GrowSegmentTest.cc
  10005. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. Do not send referer when redirected.
  10007. * src/Request.cc (redirectUrl)
  10008. * test/RequestTest.cc
  10009. * test/HttpRequestTest.cc
  10010. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10011. Implemented BitTorrent/http/ftp integrated download.
  10012. I've rewritten lots of files and now some headers have forward
  10013. class declarations to reduce compile time.
  10014. The implementation is extremely alpha stage, I recommend to use this
  10015. for testing purpose only.
  10016. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. Fixed the compilation error on 64bit platform.
  10018. * test/HttpHeaderProcessorTest.cc
  10019. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10020. Merged Ross's patch that fixes compilation problem in MinGW
  10021. * test/DefaultBtProgressInfoFileTest.cc
  10022. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Updated fr.po by sebone
  10024. * po/fr.po
  10025. Updated man page.
  10026. * doc/aria2c.1.txt
  10027. * Release 0.11.3
  10028. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10029. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10030. failure in Metalink.
  10031. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10032. Automatically save *.aria2 control file of http/ftp download in every
  10033. 60 seconds.
  10034. * src/AutoSaveCommand.{h, cc}: New class.
  10035. * src/TimeBasedCommand.{h, cc}: New class.
  10036. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10037. Disable parameterized URI support by default. Added -P option to
  10038. enable the feature.
  10039. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10040. * src/OptionHandlerFactory.cc
  10041. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10042. Updated Japanese translation.
  10043. * po/ja.po
  10044. Updated man page.
  10045. * doc/aria2c.1.txt
  10046. * Release 0.11.3-rc
  10047. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10049. it is successful, then renamed to *.aria2.
  10050. This prevents *.aria2 file from being truncated or corrupted when
  10051. file system becomes out of space.
  10052. * src/DefaultBtProgressInfoFile.cc (save)
  10053. * src/SegmentMan.cc (save)
  10054. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10055. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10056. Reduced the fragmentation of bitfield in http/ftp download.
  10057. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10058. * test/BitfieldManTest.cc
  10059. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10060. Added the ability to disable segmented download in .metalink.
  10061. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10062. 'url' tag.
  10063. * src/MetalinkEntry.{h, cc}
  10064. * src/RequestResource.{h, cc}
  10065. * src/MetalinkRequestInfo.cc
  10066. * src/Xml2MetalinkProcessor.cc
  10067. * test/Xml2MetalinkProcessorTest.cc
  10068. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10069. Added parameterized URI support.
  10070. * src/main.cc: -Z option added.
  10071. * src/OptionHandlerFactory.cc
  10072. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10073. * src/PStringDatum.h: New class.
  10074. * src/PStringSegment.{h,cc}: New class.
  10075. * src/PStringNumLoop.h: New class.
  10076. * src/PStringSelect.h: New class.
  10077. * src/NumberDecorator.h: New class.
  10078. * src/FixedWidthNumberDecorator.h: New class.
  10079. * src/AlphaNumberDecorator.h: New class.
  10080. * src/PStringVisitor.h: New class.
  10081. * src/PStringBuildVisitor.{h,cc}: New class.
  10082. * src/ParameterizedStringParser.{h,cc}: New class.
  10083. * src/Util.{h,cc}
  10084. (isNumber): New function.
  10085. (isLowercase): New function.
  10086. (isUppercase): New function.
  10087. (alphaToNum): New function.
  10088. * test/ParameterizedStringParserTest.cc: New class.
  10089. * test/AlphaNumberDecoratorTest.cc: New class.
  10090. * test/PStringBuildVisitorTest.cc: New class.
  10091. * test/UtilTest.cc
  10092. (testIsNumber): New function.
  10093. (testIsLowercase): New function.
  10094. (testIsUppercase): New function.
  10095. (testAlphaToNum): New function.
  10096. Added '\n' after the error message
  10097. * src/RequestInfo.h (printDownloadAbortMessage)
  10098. Added auto file renaming feature in http(s)/ftp download.
  10099. * src/main.cc: Added --auto-file-renaming command-line option.
  10100. * src/OptionHandlerFactory.cc
  10101. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10102. * src/RequestGroup.{h, cc}
  10103. (shouldCancelDownloadForSafety): Rewritten
  10104. (tryAutoFileRenaming): New function.
  10105. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10106. * src/HttpResponseCommand.cc
  10107. (executeInternal): Removed the call to RequestGroupMan::
  10108. isSameFileBeingDownloaded()
  10109. * src/FtpNegotiateCommand.cc
  10110. (recvSize): Removed the call to RequestGroupMan::
  10111. isSameFileBeingDownloaded()
  10112. * test/RequestGroupTest.cc: New class.
  10113. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10115. IO.
  10116. * src/DefaultBtProgressInfoFile.cc
  10117. * src/MetaFileUtil.cc
  10118. * src/SimpleLogger.cc
  10119. * src/SegmentMan.cc
  10120. * src/Util.cc
  10121. * src/Platform.cc
  10122. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10123. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10124. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10125. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10126. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10127. Fixed the bug that prevents file allocation is not done when
  10128. dowloading multi-torrent file.
  10129. * src/AbstractDiskWriter.cc (openFile)
  10130. Increase the maximum number of -j option from 15 to 45.
  10131. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10132. Added fr.po, thanks to Charles Landemaine.
  10133. * po/fr.po
  10134. * po/LINGUAS
  10135. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10136. gcc 3.4.4 support:
  10137. * src/DefaultBtContext.cc: int32_t -> int
  10138. * src/main.cc: int -> int32_t, int32_t -> int
  10139. * src/messageDigest.h: uint32_t -> unsigned int
  10140. * src/NameResolver.h: int32_t -> int
  10141. * src/PeerConnection.cc: int -> int32_t
  10142. * src/SpeedCalc.cc: int32_t -> int
  10143. * src/TrackerUpdateCommand.h: int -> int32_t
  10144. * src/Util.cc: int32_t -> int
  10145. * src/Util.h: int32_t -> int
  10146. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10147. * test/AnnounceListTest.cc: int -> int32_t
  10148. * test/ChunkedEncodingTest.cc: int -> int32_t
  10149. * test/DataTest.cc: int -> int32_t
  10150. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10151. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10152. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10153. * test/FeatureConfigTest.cc: int -> int32_t
  10154. * test/MetalinkEntryTest.cc: int -> int32_t
  10155. * test/MockBtRequestFactory.h: int -> int32_t
  10156. * test/MockPieceStorage.h: int -> int32_t
  10157. * test/OptionTest.cc: int -> int32_t
  10158. * test/RequestTest.cc: int -> int32_t
  10159. * test/SegmentManTest.cc: int -> int32_t
  10160. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10161. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10162. Move sleep functions to Util class:
  10163. * src/Util.cc
  10164. (sleep): New function.
  10165. (usleep): New function.
  10166. * src/DownloadCommand.cc: sleep -> Util::sleep
  10167. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10168. MinGW build enhancements. The following files are added:
  10169. * src/timegm.{c,h}
  10170. Changes to support the above new files:
  10171. * configure.ac
  10172. * src/Makefile.am
  10173. * src/a2time.h
  10174. * src/Util.cc:
  10175. * src/strptime.c: Added support for %Z option.
  10176. Fixed MinGW non-blocking bug.
  10177. * src/SocketCore.cc
  10178. * src/HttpRequestCommand.cc
  10179. Miscellenous build fixes/enhancements.
  10180. * configure.ac: Added summary report.
  10181. * src/Platform.h: Tweaked #include's.
  10182. * src/a2netcompat.h: Tweaked #include's.
  10183. * src/strptime.h: Tweaked #include's.
  10184. * src/gai_strerror.c: Tweaked #include's.
  10185. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10186. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10187. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10188. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10189. Increased the initial connection size in BitTorrent download to 40.
  10190. * src/BtRuntime.h
  10191. Added the usage message of --peer-id-prefix option.
  10192. * src/main.cc
  10193. * Release 0.11.2
  10194. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10195. MessageDigestHelper is introduced in order to simplify the use
  10196. of message digest. Removed repeated code.
  10197. The message digest algorithm is now specified by string, like "sha1",
  10198. "md5".
  10199. * src/messageDigest.{h, cc}
  10200. * src/MessageDigestHelper.{h, cc}: New class.
  10201. * src/DefaultPieceStorage.cc
  10202. * src/DefaultBtContext.{h, cc}
  10203. (computeFastSet): New function.
  10204. (setInfoHash): Added for unit testing.
  10205. (setNumPieces): Added for unit testing.
  10206. * src/DefaultBtInteractive.cc
  10207. * src/BtPieceMessage.cc
  10208. * src/Peer.cc
  10209. * src/Checksum.h
  10210. * src/message.h
  10211. * src/IteratableChecksumValidator.h
  10212. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10213. inside it.
  10214. * src/SegmentMan.{h, cc}
  10215. (checkIntegrity): Removed.
  10216. * src/IteratableChunkChecksumValidator.{h, cc}
  10217. * src/Util.h
  10218. (sha1Sum): Removed.
  10219. (simpleMessageDigest): Removed.
  10220. (fileChecksum): Removed.
  10221. (computeFastSet): Removed.
  10222. * src/ShaVisitor.cc
  10223. * src/ChunkChecksum.h
  10224. * src/DownloadCommand.cc
  10225. Removed messageDigest virtual functions.
  10226. * src/MultiDiskAdaptor.{h, cc}
  10227. * src/DiskAdaptor.h
  10228. * src/ByteArrayDiskWriter.h
  10229. * src/DiskWriter.h
  10230. * src/DiskAdaptorWriter.h
  10231. * src/AbstractSingleDiskAdaptor.{h, cc}
  10232. * src/AbstractDiskWriter.{h, cc}
  10233. Fixed comilation error when message digest is disabled.
  10234. * src/MetalinkEntry.{h, cc}
  10235. * src/MetalinkRequestInfo.cc
  10236. Removed srandom and random.
  10237. * src/SimpleRandomizer.h
  10238. Added size() virtual function to DiskAdaptor
  10239. * src/MultiDiskAdaptor.h
  10240. Fixed the bug that causes that files are not opened correctly in
  10241. multi-file torrent.
  10242. * src/TorrentRequestInfo.cc
  10243. * src/MultiDiskAdaptor.cc
  10244. Added SHA256 support
  10245. * src/messageDigest.cc
  10246. * src/Xml2MetalinkProcessor.cc
  10247. Show supported message digest algorithms
  10248. * src/main.cc
  10249. Updated contact info.
  10250. * src/main.cc
  10251. Applied Ross's patch
  10252. * src/a2netcompat.h
  10253. * src/main.cc
  10254. Fixed the bug that prevents a remote metalink from not being processed
  10255. even if '-o foo.metalink' is specified.
  10256. * src/MetalinkRequestInfo.cc
  10257. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10258. Merged Dan's patch:
  10259. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10260. Use va_copy to avoid core dump on amd64:
  10261. * src/SimpleLogger.cc
  10262. Updated contact info.
  10263. * src/main.cc
  10264. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10265. digest is not available.
  10266. * src/MetalinkEntry.h
  10267. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10268. Make a2netcompat.h include a2io.h to fix compilation error:
  10269. * src/a2netcompat.h
  10270. * src/SocketCore.cc: Removed include of a2io.h
  10271. * src/Util.cc: Removed include of a2io.h
  10272. Gather time related functions to a2time.h:
  10273. * src/a2time.h: New file.
  10274. * src/DefaultPeerStorage.cc
  10275. * src/SimpleLogger.cc
  10276. * src/Util.{h, cc}
  10277. * src/SimpleRandomizer.h
  10278. * src/TimeA2.{h,cc}
  10279. * src/DownloadCommand.cc
  10280. * src/main.cc
  10281. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10282. a2netcompat.h:
  10283. * src/NameResolver.cc
  10284. Fixed compilation error without openssl:
  10285. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10286. Added default block to suppress compiler warnings:
  10287. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10288. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10289. MinGW build enhancements. The following files are added:
  10290. * src/gai_strerror.{c,h}
  10291. * src/gettimeofday.{c,h}
  10292. Changes to support the above new files:
  10293. * configure.ac
  10294. * src/Makefile.am
  10295. * src/a2netcompat.h
  10296. * src/TimeA2.cc
  10297. * src/DefaultPeerStorage.cc
  10298. * src/NameResolver.cc: removed mingw_strerror() function.
  10299. * src/SocketCore.cc: removed mingw_strerror() function.
  10300. Miscellaneous MinGW build fixes.
  10301. * src/a2io.h: Use _lseeki64() instead of lseek()
  10302. * src/common.h
  10303. * src/DefaultFileAllocator.cc
  10304. * src/GlowFileAllocator.cc
  10305. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10306. * src/NameResolver.cc
  10307. (callback): Changed int32_t to int.
  10308. (resolve): Changed int32_t to int.
  10309. * src/Platform.cc
  10310. * src/Platform.h
  10311. * test/MultiDiskWriterTest.cc
  10312. * test/PeerMessageUtilTest.cc
  10313. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10314. Other enhancements and fixes.
  10315. * src/HttpRequestCommand.cc
  10316. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10317. * src/SocketCore.cc:
  10318. (error): New function to abstract errno/WSAGetLastError().
  10319. (errorMsg): New function to abstract errno/WSAGetLastError().
  10320. (initiateSecureConnection): Added more detailed error reporting.
  10321. * src/SocketCore.h: Added private variable blocking, to allow
  10322. proper handling of OpenSSL psuedo-errors.
  10323. * src/message.h
  10324. (EX_SSL_INIT_FAILURE)
  10325. (EX_SSL_IO_ERROR)
  10326. (EX_SSL_PROTOCOL_ERROR)
  10327. (EX_SSL_UNKNOWN_ERROR)
  10328. (EX_SSL_CONNECT_ERROR)
  10329. (EX_SOCKET_BLOCKING)
  10330. (EX_SOCKET_NONBLOCKING)
  10331. (EX_SOCKET_UNKNOWN_ERROR)
  10332. * src/Util.cc
  10333. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10334. reserved name.
  10335. (httpGMT): Fixed typo.
  10336. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10337. Merged Ross's win32 patch(manually)
  10338. In the course of merging, following files are added.
  10339. * src/strptime.{h,c}
  10340. * src/libgen.{h,c}
  10341. * src/inet_aton.{h,c}
  10342. * src/Platform.{h,cc}
  10343. * src/localtime_r.{h,c}
  10344. * src/getaddrinfo.{h,c}
  10345. I've gethered network related things, and put them to following file:
  10346. * src/a2netcompat.h
  10347. Also io related things are put to following file:
  10348. * src/a2io.h
  10349. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10350. * src/message.h
  10351. (MSG_ALLOCATION_COMPLETED)
  10352. (EX_TOO_LARGE_FILE)
  10353. (EX_SIZE_MISMATCH)
  10354. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10355. (EX_INVALID_CHUNK_CHECKSUM)
  10356. (EX_INVALID_RANGE_HEADER)
  10357. * src/FileAllocationCommand.cc
  10358. * src/HttpResponse.cc
  10359. * src/RequestGroup.cc
  10360. * src/MultiDiskAdaptor.cc
  10361. * src/OptionHandlerImpl.h
  10362. * src/HttpResponseCommand.cc
  10363. * src/FtpNegotiateCommand.cc
  10364. * src/IteratableChecksumValidator.cc
  10365. * src/SegmentMan.cc
  10366. * src/ChunkChecksumValidator.cc
  10367. Added Randomizer::getRandomNumber(long int)
  10368. * src/Randomizer.h (getRandomNumber)
  10369. * src/SimpleRandomizer.h (getRandomNumber)
  10370. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10371. * src/Util.cc (randomAlpha): Use this new function.
  10372. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10373. Converted int's to in32_t. long long int's are also converted to
  10374. int64_t
  10375. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. Fixed the bug that prevents cookies from being sent to the server
  10377. if the domain of cookie is FQDN and starts with ".".
  10378. * src/Cookie.cc (match)
  10379. To add the ability to change peer id.
  10380. * src/DefaultBtContext.h
  10381. (_peerIdPrefix): New variable
  10382. (setPeerIdPrefix): New function.
  10383. * src/torrentRequestInfo.cc
  10384. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10385. DefaultBtContext.
  10386. * src/main.cc (main): Added peer-id-prefix command-line option.
  10387. The usage message is not added yet.
  10388. * src/DefaultBtContext.cc
  10389. (generatePeerId): Use _peerIdPrefix.
  10390. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10391. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. Fixed the bug that prevents filename in content-disposition from
  10393. being retrieved when filename is not quoted.
  10394. * src/Util.cc (getContentDispositionFilename)
  10395. Fixed the bug that causes infinate loop and memory leak when file open
  10396. operation failed.
  10397. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10398. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10399. Fixed the bug that causes segfault when all URIs specified are
  10400. unsupported.
  10401. * src/RequestGroupMan.cc (getInitialCommands)
  10402. Check if RequestGroup::createNextCommand() returns empty list of
  10403. commands.
  10404. * src/RequestGroup.cc (createNextCommand)
  10405. Change log level from info to error so that users can notice that
  10406. an error occurred.
  10407. Fixed the bug that causes segfault when a zero-sized file is
  10408. downloaded.
  10409. * src/BitfieldMan.cc (isAllBitSet)
  10410. Return true if bitfieldLength is 0.
  10411. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10412. * src/main.cc
  10413. (showUsage): Added 3 usage examples for metalink download.
  10414. Replace MetalinkChunkChecksum with ChunkChecksum.
  10415. * src/MetalinkChunkChecksum.h: Removed.
  10416. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10417. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10418. * src/Xml2MetalinkProcessor.cc
  10419. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10420. * src/MetalinkRequestInfo.cc (execute)
  10421. * Release 0.11.1
  10422. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10423. Reads URIs from stdin when "-i -" is specified.
  10424. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10425. * src/UriListParser.h, src/UriListParser.cc: New class.
  10426. * src/StreamUriListParser.h: New class.
  10427. * src/FileUriListParser.h: New class.
  10428. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10429. instead of UriFileListParser.
  10430. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10431. Made console readout more readable.
  10432. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10433. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10434. Fix the bug that causes -s option not to work.
  10435. * src/main.cc (main)
  10436. * src/a2algo.h: New file.
  10437. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. Create directory structure specified in metalink file.
  10439. * src/RequestGroup.h, src/RequestGroup.cc
  10440. (initAndOpenFile): Create a directory to store files if it does not
  10441. exist.
  10442. (getDir): New function.
  10443. Added ETA and download speed for an individual file to readout.
  10444. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10445. * src/RequestGroup.h
  10446. (calculateDownloadSpeed): New function.
  10447. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. Made -S option work with metalink file and provided selective download
  10449. to metalink.
  10450. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10451. (filename): Removed.
  10452. (file): New variable.
  10453. (size): Removed.
  10454. (operator=): Updated.
  10455. (getPath): New function.
  10456. (getLength): New function.
  10457. (toFileEntry): New function.
  10458. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10459. (execute): Use toStream.
  10460. (showFileEntry): Removed.
  10461. * src/MetalinkRequestInfo.h
  10462. (targetFiles): New variable.
  10463. (setTargetFiles): New variable.
  10464. * src/MetalinkRequestInfo.cc
  10465. (execute): Added the ability to print file information included in
  10466. a metalink file.
  10467. Added selective download mode to metalink.
  10468. * src/main.cc
  10469. (showUsage): Updated to denote that -S and --select-file options are
  10470. applicable to metalink.
  10471. * src/FileEntry.h
  10472. (operator=): New function.
  10473. (getBasename): New function.
  10474. (getDirname): New function.
  10475. * src/Util.h, src/Util.cc
  10476. (toStream): New function.
  10477. * src/Xml2MetalinkProcessor.cc: Updated.
  10478. Made aria2 work with metalink with directory structure.
  10479. * src/File.h, src/File.cc
  10480. (getBasename): New function.
  10481. (getDirname): New function.
  10482. * src/RequestGroup.h, src/RequestGroup.cc
  10483. (_topDir): New variable.
  10484. (setTopDir): New function.
  10485. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10486. Rewrote HTTP header parsing with stringstream.
  10487. * src/HttpConnection.h, src/HttpConnection.cc
  10488. (HttpRequestEntry): New class.
  10489. (headerBuf): Removed.
  10490. (headerBufLength): Removed.
  10491. (outstandingHttpRequests): Now its element type is
  10492. HttpRequestEntryHandle.
  10493. (findEndOfHeader): Removed.
  10494. (receiveResponse): Rewritten.
  10495. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10496. Updated doc for -j option to notice that it should be used with -i
  10497. option.
  10498. * src/main.cc (showUsage)
  10499. Removed unused classes.
  10500. * src/RequestInfo.h
  10501. (FileInfo): Removed.
  10502. (checksum): Removed.
  10503. (fileInfo): Removed.
  10504. (setChecksum): Removed.
  10505. (getChecksum): Removed.
  10506. (getFileInfo): Removed.
  10507. Use ISO units.
  10508. * src/ConsoleDownloadEngine.cc
  10509. * src/TorrentConsoleDownloadEngine.cc
  10510. * src/Util.cc (abbrevSize)
  10511. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10512. Added the default listening ports to the help message.
  10513. * src/main.cc (showUsage)
  10514. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10515. Reduce the number of calls to gettimeofday to lower CPU load.
  10516. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10517. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10518. * src/Peer.h (calculateUploadSpeed): New function.
  10519. (calculateDownloadSpeed): New function.
  10520. * src/DefaultPeerStorage.cc
  10521. (CalculateStat): Added _now variable.
  10522. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10523. and Peer::calculateUploadSpeed(const struct timeval&)
  10524. Drop connection if no request or piece message is exchanged in
  10525. a certain interval.
  10526. * src/DefaultBtInteractive.h
  10527. (btRuntime): New variable.
  10528. (inactiveCheckPoint): New variable.
  10529. (checkActiveInteraction): New function.
  10530. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10531. request or piece message is received.
  10532. (checkActiveInteraction): New function.
  10533. (doInteractionProcessing): Call checkActiveInteraction.
  10534. Fixed the bug that causes remote Metalink and Torrent files are not
  10535. processed.
  10536. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10537. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. Changed format of log file.
  10539. * src/SimpleLogger.cc
  10540. * Release 0.11.0
  10541. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. * src/AbstractCommand.cc
  10543. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10544. MSG_MAX_TRY from error to info.
  10545. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10546. * src/message.h
  10547. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10548. (MSG_DOWNLOAD_ABORTED): Added %s.
  10549. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10550. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10551. * src/PeerAbstractCommand.cc
  10552. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10553. * src/Request.h
  10554. (cookieBox): Made ShardHandle.
  10555. * src/RequestGroup.h, src/RequestGroup.cc
  10556. (createNextCommandWithAdj): New function.
  10557. * src/FileAllocationCommand.cc
  10558. (executeInternal): Use createNextCommandWithAdj().
  10559. * src/CheckIntegrityCommand.cc
  10560. (executeInternal): Use createNextCommandWithAdj().
  10561. Added --load-cookies command-option.
  10562. * src/OptionHandlerFactory.cc
  10563. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10564. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10565. Now aria2 can handle cookie's expiration date.
  10566. * src/Cookie.h (expires): Changed its type to time_t.
  10567. * src/main.cc: Added --load-cookies command-line option.
  10568. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10569. * src/Util.h, src/Util.cc (httpGMT): New function.
  10570. * src/Request.cc (Request): Initialize cookieBox using
  10571. CookieBoxFactory.
  10572. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10573. * src/CookieParser.h, src/CookieParser.cc: New class.
  10574. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10575. * src/HttpResponseCommand.cc
  10576. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10577. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10578. download.
  10579. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. Added -j command-line option.
  10581. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10582. * src/main.cc
  10583. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10584. Rewritten using stringstream.
  10585. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10586. Rewritten using stringstream.
  10587. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10588. Make download size shown in MB, KB.
  10589. * src/ConsoleDownloadEngine.h (sendStatistics)
  10590. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10591. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10592. Accept incoming connections if download rate is low.
  10593. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10594. (_lowestSpeedLimit): New variable.
  10595. (setLowestSpeedLimit): New function.
  10596. (execute): Accept incoming connections if download rate is low.
  10597. MAX_PEERS is ignored in this case.
  10598. Disable PREF_OUT in multiple concurrent download:
  10599. * src/RequestGroup.h, src/RequestGroup.cc
  10600. (setUserDefinedFilename): New function.
  10601. * src/DownloadEngineFactory.cc
  10602. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10603. concurrent download.
  10604. * src/DefaultSegmentManFactory.cc
  10605. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10606. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10608. Added its overloaded method.
  10609. * src/RequestGroup.h
  10610. (_numConcurrentCommand): New variable.
  10611. (setNumConcurrentCommand): New function.
  10612. * src/RequestGroup.cc
  10613. Abort download if same file is being downloaded concurrently.
  10614. * src/RequestGroup.h, src/RequestGroupMan.cc
  10615. (isSameFileBeingDownloaded): New function.
  10616. * src/HttpResponseCommand.cc (executeInternal)
  10617. * src/FtpNegotiateCommand.cc (recvSize)
  10618. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10619. * main.cc: Added help message for -i option.
  10620. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10621. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10622. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10623. * src/MetalinkEntry.h
  10624. (checksum): Changed to ChecksumHandle
  10625. * src/MetalinkRequestInfo.cc
  10626. (checksum): Changed to ChecksumHandle
  10627. * src/File.cc
  10628. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10629. * src/common.h
  10630. (DIR_OPEN_MODE): New definition
  10631. * src/RequestGroup.cc
  10632. (prepareForNextAction): Added an argument.
  10633. * src/message.h
  10634. (MSG_GOOD_CHECKSUM): New definition
  10635. (MSG_BAD_CHECKSUM): New definition
  10636. * src/HttpResponseCommand.cc
  10637. (handleDefaultEncoding): Continue download sequence in new
  10638. non-segmented download.
  10639. * src/FileAllocationEntry.h
  10640. (_nextDownloadCommand): New variable.
  10641. * src/DownloadCommand.cc
  10642. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10643. available.
  10644. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10645. * src/IteratableChecksumValidator.h,
  10646. src/IteratableChecksumValidator.cc: New class.
  10647. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10648. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10649. Change file mode to 666:
  10650. * src/common.h (OPEN_MODE): New definition.
  10651. * src/File.cc
  10652. * src/Util.cc
  10653. * src/Directry.cc
  10654. * src/AbstractDiskWriter.cc
  10655. Change the level of log message "download aborted" to debug:
  10656. * src/PeerAbstractCommand.cc (execute)
  10657. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10658. * src/TrackerWatcherCommand.cc
  10659. (createCommand): Sleep some seconds after request failed.
  10660. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10661. then abort tracker request.
  10662. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10663. * Added the simultaneous download feature.
  10664. * src/main.cc: Print "Exception caught: " when exception is caught.
  10665. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10666. * src/ActivePeerConnectionCommand.cc
  10667. * src/PeerInteractionCommand.cc
  10668. * src/BtRuntime.h
  10669. (cuidCounter): Removed.
  10670. (getNewCuid): Removed.
  10671. * src/DownloadEngineFactory.cc
  10672. * src/PeerListenCommand.cc
  10673. * src/TrackerUpdateCommand.cc
  10674. * src/PeerInitiateConnectionCommand.cc
  10675. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10676. * src/PeerAbstractCommand.cc
  10677. (onAbort): Call PeerStorage::returnPeer()
  10678. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10679. (incomingPeers): New variable.
  10680. (addIncomingPeer): New function.
  10681. (returnPeer): New function.
  10682. (onErasingPeer): New function.
  10683. (addPeer): push_back -> push_front
  10684. (getActivePeers): Rewritten.
  10685. (calculateStat): Rewritten.
  10686. * src/PeerStorage.h
  10687. (TransferStat::copy): New function.
  10688. (TransferStat::TransferStat): New function.
  10689. (TransferStat::operator=): New function.
  10690. (addIncomingPeer): New function.
  10691. (returnPeer): New function.
  10692. * src/PeerListenCommand.cc
  10693. (execute): Use PeerStorage::addIncomingPeer() instead of
  10694. Peer::addPeer().
  10695. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10696. Connect to a peer actively when download speed is lower than specified
  10697. speed in torrent download:
  10698. * src/ActivePeerConnectionCommand.h: New class.
  10699. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10700. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10701. * src/main.cc: Fixed the bug that prevents download if .netrc
  10702. doesn't exist.
  10703. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10704. To cache resolved hostname:
  10705. * src/AbstractCommand.h, src/AbstractCommand.cc
  10706. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10707. Added dns cache.
  10708. * src/FtpInitiateConnectionCommand.cc
  10709. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10710. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10711. NameResolver working without ares.
  10712. * src/TorrentRequestInfo.cc
  10713. (execute): Don't cache dns in torrent download.
  10714. * src/HttpInitiateConnectionCommand.cc
  10715. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10716. * src/DNSCache.h: New class.
  10717. * src/UrlRequestInfo.cc
  10718. (execute): Use dns cache.
  10719. In http request, suppress port number in http request header if port
  10720. is 80 or 443:
  10721. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10722. request header if port is 80 or 443.
  10723. (createProxyRequest): Allways send port number.
  10724. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10725. To add the command-line option which disables netrc support:
  10726. * src/OptionHandlerFactory.cc
  10727. (createOptionHandlers): Added PREF_NO_NETRC.
  10728. * src/main.cc: Added -n option.
  10729. * src/prefs.h (PREF_NO_NETRC): New definition.
  10730. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10731. V_TRUE.
  10732. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10733. is V_FALSE. This may get configurable in the future release.
  10734. To clear peer's error status by time basis:
  10735. * src/PeerAbstractCommand.cc
  10736. (onAbort): Call Peer::startBadCondition().
  10737. * src/Peer.h, src/Peer.cc
  10738. (error): Removed.
  10739. (_badConditionStartTime): New variable.
  10740. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10741. (startBadCondition): New function.
  10742. (isGood): New function.
  10743. * src/DefaultPeerStorage.cc
  10744. (addPeer): Use Peer::isGood().
  10745. (FindFinePeer): Use Peer::isGood().
  10746. Always include port number in http request header:
  10747. * src/HttpRequest.cc (getHostText): Always include port number in
  10748. http request header.
  10749. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10750. To the ability to read options from a config file:
  10751. * src/main.cc: Command-line parameter validation is delegated to
  10752. OptionHandler class.
  10753. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10754. * src/Option.h, src/Option.cc (clear): New function.
  10755. * src/OptionParser.h, src/OptionParser.cc: New class.
  10756. * src/OptionHandler.h: New class.
  10757. * src/NameMatchOptionHandler.h: New class.
  10758. * src/OptionHandlerImpl.h: New classes.
  10759. * src/prefs.h: '_' -> '-'
  10760. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10761. (FTP_PASV): New definition.
  10762. * src/Util.h, src/Util.cc (getRealSize): New function.
  10763. To disable netrc support if .netrc file does not have correct
  10764. permissions:
  10765. * src/File.h, src/File.cc (mode): New function.
  10766. To prevent confidential information to be logged:
  10767. * src/HttpConnection.h, src/HttpConnection.cc
  10768. (eraseConfidentialInfo): New function.
  10769. (sendRequest): Call eraseConfidentialInfo().
  10770. (sendProxyRequest): Call eraseConfidentialInfo().
  10771. * src/main.cc: Validate permissions of .netrc file.
  10772. To add --user-agent command-line option:
  10773. * src/main.cc: Added new command line option: --user-agent
  10774. * src/prefs.h (PREF_USER_AGENT): New definition.
  10775. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10776. parameter to HttpRequest object.
  10777. * src/AbstractProxyRequestCommand.cc
  10778. (executeInternal): Set user-agent option parameter to HttpRequest
  10779. object.
  10780. Marged the patches from Dan Fandrich.
  10781. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10782. Use filename and size from Metalink file instead of sending HEAD
  10783. request:
  10784. * src/UrlRequestInfo.h
  10785. (_filename): New variable.
  10786. (_totalLength): New variable.
  10787. (setTotalLength): New variable.
  10788. (setFilename): New variable.
  10789. * src/MetalinkRequestInfo.cc
  10790. (execute): Set filename and size to UrlRequestInfo
  10791. * src/UrlRequestInfo.cc
  10792. (execute): Use filename and size from Metalink instead of seding
  10793. HEAD request to servers.
  10794. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10795. To add the ability to resume downloading a partially downloaded file
  10796. which is downloaded from the beginning:
  10797. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10798. takes this role.
  10799. * src/main.cc: Added -c option.
  10800. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10801. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10802. * src/prefs.h (PREF_CONTINUE): New definition.
  10803. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10804. * src/DefaultDiskWriter.cc
  10805. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10806. * src/AbstractDiskWriter.h
  10807. (glowFileAllocator): New variable.
  10808. * src/AbstractDiskWriter.cc
  10809. (openExistingFile): Now preallocate file space from the end of the
  10810. existing file if totalLength argument is specified and grater than 0.
  10811. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10812. to download exists in local, continue the download of the file.
  10813. --allow-overwrite=true is assumed in this context.
  10814. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10815. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10816. Throw exception if --check-integrity=true is specified but chunk
  10817. checksums are not provided:
  10818. * src/UrlRequestInfo.cc
  10819. Do not print URLs to stdout:
  10820. * src/UrlRequestInfo.cc
  10821. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10822. * src/Request.h: Use AuthResolver to get authentication information.
  10823. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10824. set to RequestFactory object.
  10825. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10826. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10827. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10828. create Request object.
  10829. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10830. To integrate Netrc into exsiting classes:
  10831. * src/Request.h
  10832. (_userDefinedAuthConfig): New variable.
  10833. (findNetrcAuthenticator): New function.
  10834. (segment): Removed.
  10835. (setUserDefinedAuthConfig): New function.
  10836. (resolveHttpAuthConfigItem): New function.
  10837. (resolveFtpAuthConfigItem): New function.
  10838. (resolveHttpProxyAuthConfigItem): New function.
  10839. * src/HttpRequest.h
  10840. (authConfig): Removed.
  10841. (proxyAuthConfig): Removed.
  10842. (setAuthConfig): Removed.
  10843. (setProxyAuthConfig): Removed.
  10844. * src/UrlRequest.h
  10845. (getHeadResult): Added a parameter: authConfigHandle
  10846. * src/common.h
  10847. (SingletonHolder.h): New include.
  10848. * src/main.cc
  10849. (Netrc.h): New include.
  10850. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10851. Added initial value of PREF_NETRC_PATH.
  10852. Added the initialization of netrc.
  10853. * src/AuthConfig.h: New class.
  10854. * src/prefs.h
  10855. (PREF_NETRC_PATH): New definition.
  10856. * src/HttpAuthConfig.h: Removed.
  10857. * src/Netrc.cc
  10858. (getRequiredNextToken): New function.
  10859. (skipMacdef): New function.
  10860. (parse): Rewritten.
  10861. * src/Netrc.h
  10862. (getRequiredNextToken): New function.
  10863. (skipMacdef): New function.
  10864. * src/Util.h, src/Util.cc
  10865. (getHomeDir): New function.
  10866. * src/TrackerWatcherComand.cc
  10867. (createRequestCommand): Use AuthConfig.
  10868. * src/FtpConnection.cc
  10869. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10870. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10871. * src/Request.cc
  10872. (findNetrcAuthenticator): New function.
  10873. (resolveHttpAuthConfigItem): New function.
  10874. (resolveFtpAuthConfigItem): New function.
  10875. (resolveHttpProxyAuthConfigItem): New function.
  10876. * src/UrlRequestInfo.cc: Use AuthConfig.
  10877. * src/HttpRequest.cc
  10878. (createRequest): Use authConfig.
  10879. (getProxyAuthString): Use authConfig.
  10880. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10881. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10882. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10883. To reduce overhead to find commands whose socket is either
  10884. readable or writable in the download engine loop:
  10885. * src/Command.h, src/Command.cc
  10886. (STATUS): New enum.
  10887. (status): New variable.
  10888. (statusMatch): New function.
  10889. (setStatusActive): New function.
  10890. (setStatusInactive): New function.
  10891. * src/DownloadEngine.h, src/DownloadEngine.cc
  10892. (executeCommand): New function.
  10893. (run): Simplified.
  10894. (waitData): Call Command::setStatusActive() when command's socket is
  10895. readable or writable.
  10896. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10897. To handle Segment as SegmentHandle:
  10898. * src/AbstractCommand.cc (execute): Rewritten.
  10899. * src/SegmentMan.h: Segment -> SegmentHandle
  10900. Introducded HttpResponse class, HttpRequest class to improve code
  10901. extensiveness and make it clear:
  10902. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10903. HttpResponse class.
  10904. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10905. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10906. * src/HttpConnection.cc: Contruction of http request were moved to
  10907. HttpRequest class.
  10908. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10909. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10910. * src/HttpAuthConfig.h: New class.
  10911. * src/Range.h: New class.
  10912. To make FtpTunnel{Request, Response}Command and
  10913. HttpProxy{Request, Response}Command derived from
  10914. AbstractProxy{Request, Response}Command:
  10915. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10916. Derived from AbstractProxyRequestCommand class.
  10917. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10918. Derived from AbstractProxyResponseCommand class.
  10919. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10920. Derived from AbstractProxyRequestCommand class.
  10921. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10922. Derived from AbstractProxyResponseCommand class.
  10923. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10924. : New class.
  10925. * src/AbstractProxyResponseCommand.h,
  10926. src/AbstractProxyResponseCommand.cc: New class.
  10927. To add netrc support:
  10928. * src/Netrc.h, src/Netrc.cc: New class.
  10929. * src/Util.h, src/Util.cc (split): New function.
  10930. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10931. "Content-Range" header instead of "Range" header.
  10932. * src/HttpHeader.h
  10933. (getStatus): Removed.
  10934. (setStatus): Removed.
  10935. * src/Segment.h
  10936. (getPositionToWrite): New function.
  10937. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10938. * src/HttpHeader.h
  10939. (Range.h): New include.
  10940. (status): New variable.
  10941. (HttpHeader): Initialized status with 0.
  10942. (getStatus): New function.
  10943. (setStatus): New function.
  10944. (getRange): New function.
  10945. (HttpHeaderHandle): New function.
  10946. * src/HttpHeader.cc
  10947. (getRange): New function.
  10948. * src/Request.h
  10949. (RequestWeakHandle): New definition.
  10950. * src/HttpConnection.h
  10951. (HttpConnectionHandle): New type definition.
  10952. * src/HttpConnection.cc
  10953. (receiveResponse): Set HTTP status to headers.
  10954. * src/main.cc
  10955. (showUsage): Fixed typo.
  10956. * src/Segment.h
  10957. (SegmentHandle): New type definition.
  10958. * src/BitfieldMan.h
  10959. (getMissingUnusedLength): New function.
  10960. * src/BitfieldMan.cc
  10961. (getMissingUnusedLength): New function.
  10962. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10963. To fix static initialization order problem:
  10964. * src/BitfieldManFactory.h
  10965. (defaultRandomizer): Removed.
  10966. (factory): New variable.
  10967. (getNewFactory): Removed.
  10968. (getFactoryInstance): New function.
  10969. (setDefaultRandomizer): Rewritten.
  10970. (getDefaultRandomizer): Rewritten.
  10971. * src/BitfieldManFactory.cc
  10972. (defaultRandomizer): Removed.
  10973. (factory): Initialized to 0.
  10974. (BitfieldManFactory): Initialized randomizer to 0.
  10975. * src/DefaultPieceStorage.cc
  10976. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10977. * src/Peer.cc
  10978. (Peer): getNewFactory() -> getFactoryInstance()
  10979. * src/SegmentMan.cc
  10980. (initBitfield): getNewFactory() -> getFactoryInstance()
  10981. * src/Piece.cc
  10982. (Piece): getNewFactory() -> getFactoryInstance()
  10983. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10984. To fix the bug that causes crash on Max OS X:
  10985. * src/SimpleRandomizer.h
  10986. (getInstance): Create new instance if the static variable is null.
  10987. * src/SimpleRandomizer.cc
  10988. (randomizer): Initialized to 0.
  10989. * src/BitfieldManFactory.h
  10990. (getNewFactory): Removed the call to setRandomizer().
  10991. To fix the miscalculation of the range of checksum:
  10992. * src/BitfieldMan.h
  10993. (isBitSetOffsetRange): New function.
  10994. * src/BitfieldMan.cc
  10995. (isBitSetOffsetRange): New function.
  10996. * src/SegmentMan.cc
  10997. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10998. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10999. * Release 0.10.1
  11000. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11001. To lower CPU usage in BitTorrent download when --max-upload-limit
  11002. command-line option specified:
  11003. * src/DefaultBtMessageDispatcher.cc
  11004. (sendMessages): Calculate uploading speed only when current message
  11005. is uploading data and is not sent yet.
  11006. * src/DefaultPeerStorage.h
  11007. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11008. * src/HttpResponseCommand.cc
  11009. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11010. This fixes compile error in Soralis 10.
  11011. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11012. To fix segfault in Metalink download:
  11013. * src/UrlRequestInfo.h
  11014. (filename): Removed.
  11015. (totalLength): Removed.
  11016. (setTotalLength): Removed.
  11017. (setFilename): Removed.
  11018. * src/MetalinkRequestInfo.cc
  11019. (execute): Do not set filename and totalLength to reqInfo.
  11020. Set chunk checksum to reqInfo if it is not null.
  11021. * src/HttpResponseCommand.cc
  11022. (executeInternal): Fixed filename in log.
  11023. (handleDefaultEncoding): Removed the call to initBitfield() and
  11024. markAllPiecesDone().
  11025. (handleOtherEncoding): Added HEAD method handling.
  11026. * src/FtpNegotiateCommand.cc
  11027. (executeInternal): Added SEQ_HEAD_OK handling.
  11028. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11029. return false.
  11030. * src/FtpNegotiateCommand.h
  11031. (SEQ_HEAD_OK): New definition.
  11032. * src/SegmentMan.cc
  11033. (initBitfield): Delete bitfield.
  11034. (isChunkChecksumValidationReady): Fixed the condition.
  11035. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11036. works fine.
  11037. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11038. * src/Xml2MetalinkProcessor.h
  11039. (xpathExists): New function.
  11040. * src/Xml2MetalinkProcessor.cc
  11041. (xpathExists): New function.
  11042. Not to send HEAD request if filename and size are available in Metalink
  11043. file:
  11044. * src/UrlRequestInfo.h
  11045. (filename): New variable.
  11046. (totalLength): New variable.
  11047. (setTotalLength): New function.
  11048. (setFilename): New function.
  11049. * src/MetalinkRequestInfo.cc
  11050. (execute): Set filename and size to UrlRequestInfo.
  11051. * src/MetalinkEntry.cc
  11052. (MetalinkEntry): Initialize size with 0.
  11053. * src/UrlRequestInfo.cc
  11054. (execute): Set filename and size to SegmentMan.
  11055. Not to download rest of the files after selected files are downloaded
  11056. in BitTorrent:
  11057. * src/PieceStorage.h
  11058. (allDownloadFinished): New function.
  11059. * src/DefaultBtAnnounce.cc
  11060. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11061. downloadFinished.
  11062. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11063. * src/DefaultPieceStorage.cc
  11064. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11065. Commented out the call to finishSelectiveDownloadingMode().
  11066. (downloadFinished): Call isFilteredAllBitSet() instead of
  11067. isAllBitSet().
  11068. (allDownloadFinished): New function.
  11069. * src/DefaultBtInteractive.cc
  11070. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11071. downloadFinished().
  11072. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11073. * src/TorrentDownloadEngine.cc
  11074. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11075. * src/BitfieldMan.h
  11076. (isFilteredAllBitSet): New function.
  11077. * src/ShareRatioSeedCriteria.h
  11078. (PieceStorage.h): New include.
  11079. (pieceStorage): New variable.
  11080. (evaluate):
  11081. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11082. * src/BitfieldMan.cc
  11083. (isFilteredAllBitSet): New function.
  11084. (isAllBitSet): Filter is not took into account.
  11085. Rename --force-truncate as --allow-overwrite:
  11086. * src/TorrentRequestInfo.cc
  11087. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11088. * src/main.cc
  11089. (showUsage): --force-truncate -> --allow-overwrite
  11090. * src/message.h
  11091. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11092. * src/prefs.h
  11093. (PREF_FORCE_TRUNCATE): Removed.
  11094. (PREF_ALLOW_OVERWRITE): New definition.
  11095. * src/SegmentMan.cc
  11096. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11097. * src/MetalinkRequestInfo.cc
  11098. (execute): Queueing message are now logged in info level.
  11099. * src/common.h
  11100. (LONG_LONG_MAX): Removed.
  11101. (LONG_LONG_MIN): Removed.
  11102. * src/HttpResponseCommand.cc
  11103. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11104. * src/FtpNegotiateCommand.cc
  11105. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11106. * src/main.cc
  11107. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11108. command-line option.
  11109. (main): Added --check-integriy and --realtime-chunk-checksum
  11110. command-line option.
  11111. --force-truncate -> --allow-overwrite
  11112. Set initial value of --check-integrity option to false.
  11113. Don't show usage when error occurs while persing command-line options.
  11114. Removed deprecated --upload-limit option.
  11115. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11116. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11117. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11118. * src/BtAllowedFastMessage.cc:
  11119. * src/BtBitfieldMessage.cc
  11120. * src/BtCancelMessage.cc
  11121. * src/BtChokeMessage.cc
  11122. * src/BtHaveAllMessage.cc
  11123. * src/BtHaveMessage.cc
  11124. * src/BtHaveNoneMessage.cc
  11125. * src/BtInterestedMessage.cc
  11126. * src/BtNotInterestedMessage.cc
  11127. * src/BtPieceMessage.cc
  11128. * src/BtPortMessage.cc
  11129. * src/BtRejectMessage.cc
  11130. * src/BtRequestMessage.cc
  11131. * src/BtSuggestPieceMessage.cc
  11132. * src/BtUnchokeMessage.cc
  11133. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11134. files are affected.
  11135. * src/ChunkChecksumValidator.cc
  11136. * src/SegmentMan.cc
  11137. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11138. To add chunk checksum validation:
  11139. * src/MetalinkEntry.h
  11140. (MetalinkChunkChecksum.h): New include.
  11141. (chunkChecksum): New variable.
  11142. * src/Request.h
  11143. (method): New variable.
  11144. (setMethod): New function.
  11145. (getMethod): New function.
  11146. (METHOD_GET): New static constant.
  11147. (METHOD_HEAD): New static constant.
  11148. * src/Xml2MetalinkProcessor.h
  11149. (getPieceHash): New function.
  11150. * src/PieceStorage.h
  11151. (markAllPiecesDone): New function.
  11152. (checkIntegrity): New function.
  11153. * src/FileAllocator.h
  11154. (NullFileAllocationMonitor.h): New include.
  11155. (FileAllocator): Initialize fileAllocationMonitor with new
  11156. NullFileAllocationMonitor().
  11157. * src/MultiDiskAdaptor.h
  11158. (messageDigest.h): Remove include.
  11159. (ctx): Removed.
  11160. (hashUpdate): Added ctx.
  11161. (MultiDiskAdaptor): Removed ctx.
  11162. (sha1Sum): Renamed as messageDigest.
  11163. (messageDigest): New function.
  11164. * src/UrlRequestInfo.h
  11165. (HeadResult): New class.
  11166. (digestAlgo): New variable.
  11167. (chunkChecksumLength): New variable.
  11168. (chunkChecksums): New variable.
  11169. (getHeadResult): New function.
  11170. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11171. (setDigestAlgo): New function.
  11172. (setChunkChecksumLength): New function.
  11173. (setChunkChecksums): New function.
  11174. * src/DefaultPieceStorage.cc
  11175. (DiskAdaptorWriter.h): New include.
  11176. (ChunkChecksumValidator.h): New include.
  11177. (markAllPiecesDone): New function.
  11178. (checkIntegrity): New function.
  11179. * src/DefaultBtContext.h
  11180. (getPieceHashes): New function.
  11181. * src/TorrentRequestInfo.cc
  11182. (execute): Try to validate chunk checksum if file already exists and
  11183. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11184. * src/messageDigest.h
  11185. (~MessageDigestContext): Added digestFree().
  11186. * src/MetalinkRequestInfo.cc
  11187. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11188. * src/DiskAdaptor.h
  11189. (messageDigest.h): New include.
  11190. (sha1Sum): Renamed as messageDigest.
  11191. (messageDigest): New function.
  11192. * src/DownloadCommand.h
  11193. (PeerStat.h): New include.
  11194. (maxDownloadSpeedLimit): New variable.
  11195. (startupIdleTime): New variable.
  11196. (lowestDownloadSpeedLimit): New variable.
  11197. (peerStat): New variable.
  11198. (setMaxDownloadSpeedLimit): New function.
  11199. (setStartupIdleTime): New function.
  11200. (setLowestDownloadSPeedLimit): New function.
  11201. * src/BtContext.h
  11202. (getPieceHashes): New function.
  11203. * src/main.cc
  11204. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11205. option to true for testing purpose.
  11206. * src/BtPieceMessage.cc
  11207. (checkPieceHash): Use messageDigest
  11208. * src/DownloadEngine.cc
  11209. (SetDescriptor): Removed.
  11210. (AccumulateActiveCommand): Removed.
  11211. (waitData): Rewritten.
  11212. (updateFdSet): Rewritten.
  11213. * src/MultiDiskAdaptor.cc
  11214. (hashUpdate): Added ctx.
  11215. (sha1Sum): Renamed as messageDigest.
  11216. (messageDigest): New function.
  11217. * src/BitfieldMan.h
  11218. (isBitRangeSet): New function.
  11219. (unsetBitRange): New function.
  11220. * src/ByteArrayDiskWriter.h
  11221. (sha1Sum): Renamed as messageDigest.
  11222. (messageDigest): New function.
  11223. * src/ConsoleDownloadEngine.cc
  11224. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11225. * src/DiskWriter.h
  11226. (messageDigest.h): New include.
  11227. (sha1Sum): Renamed as messageDigest.
  11228. (messageDigest): New function.
  11229. * src/ChunkChecksumValidator.h: New class.
  11230. * src/DiskAdaptorWriter.h: New class.
  11231. * src/prefs.h
  11232. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11233. (PREF_CHECK_INTEGRITY): New definition.
  11234. * src/HttpResponseCommand.cc
  11235. (handleDefaultEncoding): Added method "HEAD" handling.
  11236. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11237. (handleOtherEncoding):
  11238. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11239. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11240. startupIdleTime, lowestDownloadSpeedLimit to command.
  11241. * src/SegmentMan.h
  11242. (getSegmentEntryByIndex): New function.
  11243. (getSegmentEntryByCuid): New function.
  11244. (getSegmentEntryIteratorByCuid): New function.
  11245. (diskWriter): DiskWriter -> DiskWriterHandle
  11246. (pieceHashes): New variable.
  11247. (chunkHashLength): New variable.
  11248. (digestAlgo): New variable.
  11249. (FindPeerStat): Removed.
  11250. (getPeerStat): Rewritten.
  11251. (markAllPiecesDone): New function.
  11252. (checkIntegrity): New function.
  11253. (tryChunkChecksumValidation): New function.
  11254. (isChunkChecksumValidationReady): New function.
  11255. * src/BitfieldMan.cc
  11256. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11257. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11258. blocks to 0.
  11259. (isBitRangeSet): New function.
  11260. (unsetBitRange): New function.
  11261. * src/FtpNegotiateCommand.cc
  11262. (executeInternal): Set maxDownloadSpeedLimit,
  11263. startupIdleTime, lowestDownloadSpeedLimit to command.
  11264. (recvSize): Added method "HEAD" handling.
  11265. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11266. * src/AbstractSingleDiskAdaptor.cc
  11267. (sha1Sum): Renamed as messageDigest.
  11268. (messageDigest): New function.
  11269. * src/AbstractSingleDiskAdaptor.h
  11270. (sha1Sum): Renamed as messageDigest.
  11271. (messageDigest): New function.
  11272. * src/Util.h
  11273. (indexRange): New function.
  11274. * src/MetalinkEntry.cc
  11275. (MetalinkEntry): Initialized chunkChecksum to 0.
  11276. * src/ShaVisitor.cc
  11277. (~ShaVisitor): Removed the call to ctx.digestFree().
  11278. * src/SegmentMan.cc
  11279. (ChunkChecksumValidator.h): New include.
  11280. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11281. to DIGEST_ALGO_SHA1.
  11282. (~SegmentMan): Removed diskWriter.
  11283. (FindSegmentEntryByIndex): Removed.
  11284. (FindSegmentEntryByCuid): Removed.
  11285. (checkoutSegment): Rewritten.
  11286. (findSlowerSegmentEntry): Rewritten.
  11287. (getSegment): Rewritten.
  11288. (updateSegment): Rewritten.
  11289. (completeSegment): Rewritten.
  11290. (markAllPiecesDone): New function.
  11291. (checkIntegrity): New function.
  11292. (isChunkChecksumValidationReady): New function.
  11293. (tryChunkChecksumValidation): New function.
  11294. * src/Xml2MetalinkProcessor.cc
  11295. (getEntry): Get size and set it to entry.
  11296. Get chunk checksum and set it to entry.
  11297. (getPieceHash): New function.
  11298. * src/Util.cc
  11299. (sha1Sum): Removed ctx.digestFree()
  11300. (fileChecksum): Removed ctx.digestFree()
  11301. (indexRange): New function.
  11302. * src/Request.cc
  11303. (METHOD_GET): New variable.
  11304. (METHOD_HEAD): New variable.
  11305. (Request): Added method.
  11306. * src/UrlRequestInfo.cc
  11307. (FatalException.h): New include.
  11308. (message.h): New include.
  11309. (operator<<): Added operator<< for class HeadResult.
  11310. (getHeadResult): New function.
  11311. (execute): Get filename and size in separate download engine.
  11312. * src/ChunkChecksumValidator.cc: New class.
  11313. * src/DownloadCommand.cc:
  11314. (DownloadCommand): Added peerStat.
  11315. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11316. the value from Option.
  11317. The buffer size is now 16KB.
  11318. Use peerStat member instead of getting it from SegmentMan.
  11319. Use startupIdleTime member instead of gettingit from Option.
  11320. Added chunk checksum validation.
  11321. * src/AbstractDiskWriter.cc
  11322. (AbstractDiskWriter): Removed ctx.
  11323. (~AbstractDiskWriter): Removed ctx.digestFree()
  11324. (writeDataInternal): Returns the return value of write.
  11325. (readDataInternal): Returns the return value of read.
  11326. (sha1Sum): Renamed as messageDigest
  11327. (messageDigest): New function.
  11328. * src/AbstractDiwkWriter.h
  11329. (messageDigest.h): Removed include.
  11330. (ctx): Removed.
  11331. (sha1Sum): Renamed as messageDigest
  11332. (messageDigest): New function.
  11333. * src/DefaultPieceStorage.h
  11334. (markAllPiecesDone): New function.
  11335. (checkIntegrity): New function.
  11336. * src/NullFileAllocationMonitor.h: New class.
  11337. * src/MetalinkChunkChecksum.h: New class.
  11338. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11339. To decrease CPU usage in bittorrent download, calculation results in
  11340. BitfieldMan were cached and realtime fetching PeerObject was removed
  11341. with WeakHandle introduced. Option values are set to the objects
  11342. by setter before download begins.
  11343. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11344. * src/DefaultBtRequestFactory.h
  11345. (dispatcher): BtMessageDispatcherHandle ->
  11346. BtMessageDispatcherWeakHandle.
  11347. (messageFactory): New variable.
  11348. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11349. BtMessageDispatcherWeakHandle.
  11350. (setBtMessageFactory): New function.
  11351. * src/DefaultBtMessageDispatcher.cc:
  11352. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11353. from Option.
  11354. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11355. feating the value from Option.
  11356. Use messageFactory member.
  11357. * src/PeerInteractionCommand.cc
  11358. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11359. Add reverse dependencies to factory object.
  11360. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11361. dispatcher.
  11362. Set messageFactory to receiver.
  11363. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11364. btInteractive.
  11365. Set receiver to peerObject.
  11366. Set maxDownloadSpeedLimit to this.
  11367. (executeInternal): Use maxDownloadSpeedLimit member.
  11368. * src/BtChokeMessage.cc
  11369. (doReceivedAction): Use dispatcher, requestFactory member.
  11370. (onSendComplete): Use dispatcher member.
  11371. * src/PeerInteractionCommand.h
  11372. (maxDownloadSpeedLimit): New variable.
  11373. * src/DefaultBtMessageReceiver.h
  11374. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11375. (dispatcher):
  11376. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11377. (messageFactory): New variable.
  11378. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11379. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11380. (setDispatcher):
  11381. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11382. (setBtMessageFactory): New function.
  11383. * src/DefaultBtInteractive.cc
  11384. (initiateHandshake): Use messageFactory member.
  11385. (addBitfieldMessageToQueue): Use messageFactory member.
  11386. (addAllowedFastMessageToQueue): Use messageFactory member.
  11387. (decideChoking): Use messageFactory member.
  11388. (checkHave): Use messageFactory member.
  11389. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11390. (receiveMessages): Use maxDownloadSpeedLimit member.
  11391. (decideInterest): Use messageFactory member.
  11392. * src/BtRequestMessage.cc
  11393. (doReceivedAction): Use messageFactory, dispatcher member.
  11394. (onQueued): Use dispatcher member.
  11395. * src/BtPieceMessage.cc
  11396. (doReceivedAction): Use dispatcher member.
  11397. (send): Use peerConnection member.
  11398. (onWrongPiece): Use requestFactory member.
  11399. (handleChokingEvent): Use messageFactory, dispatcher member.
  11400. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11401. * src/BtMessageDispatcher.h
  11402. (BtMessageDispatcherWeakHandle): New type definition.
  11403. * src/SimpleBtMessage.cc
  11404. (send): Use peerConnection member.
  11405. * src/BtRejectMessage.cc
  11406. (doReceivedAction): Use dispatcher member.
  11407. * src/DefaultBtMessageDispatcher.h
  11408. (Option.h): Removed include.
  11409. (messageFactory): New variable.
  11410. (option): Removed.
  11411. (maxUploadSpeedLimit): New variable.
  11412. (requestTimeout): New variable.
  11413. (DefaultBtMessageDispatcher): Removed option.
  11414. Added maxUploadSpeedLimit, requestTimeout.
  11415. (setOption): Removed.
  11416. (getOption): Removed.
  11417. (setMaxUploadSpeedLimit): New function.
  11418. (setRequestTimeout): New function.
  11419. (setBtMessageFactory): New function.
  11420. * src/DefaultBtInteractive.h
  11421. (btMessageReceiver):
  11422. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11423. (dispatcher):
  11424. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11425. (btRequestFactory):
  11426. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11427. (peerConnection):
  11428. PeerConnectionHandle -> PeerConnectionWeakHandle
  11429. (messageFactory): New variable.
  11430. (option): Removed.
  11431. (keepAliveInterval): New variable.
  11432. (maxDownloadSpeedLimit): New variable.
  11433. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11434. (setBtMessageReceiver):
  11435. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11436. (setDispatcher):
  11437. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11438. (setBtRequestFactory):
  11439. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11440. (setPeerConnection):
  11441. PeerConnectionHandle -> PeerConnectionWeakHandle
  11442. (setOption): Removed.
  11443. (setKeepAliveInterval): New function.
  11444. (setMaxDownloadSpeedLimit): New function.
  11445. (setBtMessageFactory): New function.
  11446. * src/BitfieldMan.h
  11447. (cachedNumMissingBlock): New variable.
  11448. (cachedNumFilteredBlock): New variable.
  11449. (cachedCompletedLength): New variable.
  11450. (cachedFilteredComletedLength): New variable.
  11451. (cachedFilteredTotalLength): New variable.
  11452. (countMissingBlockNow): New function.
  11453. (countFilteredBlockNow): New function.
  11454. (getFilteredTotalLengthNow): New function.
  11455. (getCompletedLengthNow): New function.
  11456. (getFilteredCompletedLengthNow): New function.
  11457. (updateCache): New function.
  11458. * src/AbstractBtMessage.h
  11459. (BtMessageDispatcher.h): New include.
  11460. (PeerConnection.h): New include.
  11461. (BtRequestFactory.h): New include
  11462. (BtMessageFactory.h): New include.
  11463. (dispatcher): New variable.
  11464. (messageFactory): New variable.
  11465. (peerConnection: New variable.
  11466. (setBtMessageDispatcher): New function.
  11467. (setPeerConnection): New function.
  11468. (setBtMessageFactory): New function.
  11469. (setBtRequestFactory): New function.
  11470. * src/DefaultBtMessageFactory.cc
  11471. (setCommonProperty): Set dispatcher, requestFactory, this,
  11472. peerConnection to msg.
  11473. * src/BtRegistry.h
  11474. (BT_MESSAGE_RECEIVER): New macro.
  11475. * src/PeerConnection.h
  11476. (PeerConnectionWeakHandle): New type definition.
  11477. * src/BtMessageFactory.h
  11478. (BtMessageFactoryWeakHandle): New type definition.
  11479. * src/BitfieldMan.cc
  11480. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11481. cachedCompletedLength, cachedFilteredComletedLength,
  11482. cachedFilteredTotalLength.
  11483. Call updateCache().
  11484. (countMissingBlock): Return cachedNumMissingBlock.
  11485. (countMissingBlockNow): New function.
  11486. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11487. (countFilteredBlockNow): New function.
  11488. (setBit): Call updateCache().
  11489. (unsetBit): Call updateCache().
  11490. (setBitfield): Call updateCache().
  11491. (clearAllBit): Call updateCache().
  11492. (setAllBit): Use setBitInternal instead of setBit.
  11493. Call updateCache().
  11494. (addFilter): Call updateCache().
  11495. (enableFilter): Call updateCache().
  11496. (disableFilter): Call updateCache().
  11497. (clearFilter): Call updateCache().
  11498. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11499. (getFilteredTotalLengthNow): New function.
  11500. (getCompletedLength): Return cachedCompletedLength.
  11501. (getCompletedLengthNow): New function.
  11502. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11503. (getFilteredCompletedLengthNow): New function.
  11504. (updateCache): New function.
  11505. * src/BtMessageReceiver.h
  11506. (BtMessageReceiverWeakHandle): New type definition.
  11507. * src/DefaultBtMessageReceiver.cc
  11508. (receiveHandshake): Use messageFactory member.
  11509. (sendHandshake): Use messageFactory member.
  11510. (receiveMessage): Use messageFactory member.
  11511. * src/DefaultBtMessageFactory.h
  11512. (dispatcher): New variable.
  11513. (requestFactory): New variable.
  11514. (peerConnection): New variablle.
  11515. (setBtMessageDispatcher): New function.
  11516. (setBtRequestFactory): New function.
  11517. (setPeerConnection): New function.
  11518. * src/SharedHandle.h
  11519. (RefCount): New class.
  11520. (WeakHandle): New class.
  11521. * src/PeerObject.h
  11522. (BtMessageReceiver.h): New include.
  11523. (PeerObject): Added btMessageReceiver.
  11524. (btMessageReceiver): New variable.
  11525. * src/Util.cc
  11526. (countBit): Simplified.
  11527. * src/BtCancelMessage.cc
  11528. (doReceivedAction): Use dispatcher member.
  11529. * src/BtRequestFactory.h
  11530. (BtRequestFactoryWeakHandle): New type definition.
  11531. * src/PeerStorage.h
  11532. (downloadSpeed): int -> uint32_t
  11533. (uploadSpeed): int -> uint32_t
  11534. (sessionDownloadLength): long long int -> uint64_t
  11535. (sessionUploadLength): long long int -> uint64_t
  11536. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11537. To add RecoverableException, FatalException:
  11538. * src/AbstractCommand.cc
  11539. (onAbort): Exception -> RecoverableException
  11540. * src/PeerAbstractCommand.h
  11541. (RecoverableException.h): New include.
  11542. (onAbort): Exception -> RecoverableException.
  11543. * src/PeerInteractionCommand.cc
  11544. (onAbort): Exception -> RecoverableException.
  11545. * src/PeerAbstractCommand.cc
  11546. (execute): Exception -> RecoverableException.
  11547. (onAbort): Exception -> RecoverableException.
  11548. * src/TorrentRequestInfo.cc
  11549. (execute): Exception -> RecoverableException.
  11550. * src/MetalinkRequestInfo.cc
  11551. (execute): Exception -> RecoverableException.
  11552. * src/MetaFileUtil.cc: RecoverableException.
  11553. * src/AbstractCommand.h
  11554. (onAbort): Exception -> RecoverableException.
  11555. * src/DlRetryEx.h: Exception -> RecoverableException.
  11556. * src/DlAbortEx.h: Exception -> RecoverableException.
  11557. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11558. * src/Util.cc: Exception -> RecoverableException.
  11559. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11560. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11561. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11562. To make ID static const int
  11563. * src/BtInterestedMessage.h
  11564. (ID_t): Removed.
  11565. (ID): New variable.
  11566. (getId): Made non-const.
  11567. * src/BtPieceMessage.h
  11568. (ID_t): Removed.
  11569. (ID): New variable.
  11570. (getId): Made non-const.
  11571. * src/BtChokeMessage.h
  11572. (ID_t): Removed.
  11573. (ID): New variable.
  11574. (getId): Made non-const.
  11575. * src/BtHaveAllMessage.h
  11576. (ID_t): Removed.
  11577. (ID): New variable.
  11578. (getId): Made non-const.
  11579. * src/BtKeepAliveMessage.h
  11580. (ID_t): Removed.
  11581. (ID): New variable.
  11582. (getId): Made non-const.
  11583. * src/BtHandshakeMessage.h
  11584. (ID): New variable.
  11585. (getId): Made non-const.
  11586. * src/BtSuggestPieceMessage.h
  11587. (ID_t): Removed.
  11588. (ID): New variable.
  11589. (getId): Made non-const.
  11590. * src/BtPortMessage.h
  11591. (ID_t): Removed.
  11592. (ID): New variable.
  11593. (getId): Made non-const.
  11594. * src/AbstractBtMessage.h
  11595. (id): Removed.
  11596. (AbstractBtMessage): Removed id.
  11597. (getId): Removed.
  11598. * src/BtHaveMessage.h
  11599. (ID_t): Removed.
  11600. (ID): New variable.
  11601. (getId): Made non-const.
  11602. * src/BtAllowedFastMessage.h
  11603. (ID_t): Removed.
  11604. (ID): New variable.
  11605. (getId): Made non-const.
  11606. * src/BtCancelMessage.h
  11607. (ID_t): Removed.
  11608. (ID): New variable.
  11609. (getId): Made non-const.
  11610. * src/BtNotInterestedMessage.h
  11611. (ID_t): Removed.
  11612. (ID): New variable.
  11613. (getId): Made non-const.
  11614. * src/BtChokeMessage.h
  11615. (ID_t): Removed.
  11616. (ID): New variable.
  11617. (getId): Made non-const.
  11618. * src/BtRejectMessage.h
  11619. (ID_t): Removed.
  11620. (ID): New variable.
  11621. (getId): Made non-const.
  11622. * src/BtBitfieldMessage.h
  11623. (ID_t): Removed.
  11624. (ID): New variable.
  11625. (getId): Made non-const.
  11626. * src/BtUnchokeMessage.h
  11627. (ID_t): Removed.
  11628. (ID): New variable.
  11629. (getId): Made non-const.
  11630. * src/BtRequestMessage.h
  11631. (ID_t): Removed.
  11632. (ID): New variable.
  11633. (getId): Made non-const.
  11634. * src/BtHaveMessage.h
  11635. (ID_t): Removed.
  11636. (ID): New variable.
  11637. (getId): Made non-const.
  11638. To add --force-truncate command-line option and a check whether
  11639. the file already exists:
  11640. * src/DirectDiskAdaptor.h
  11641. (getFilePath): Made virtual public.
  11642. * src/MultiDiskAdaptor.h
  11643. (File.h): New include.
  11644. (DiskWriterEntry::fileEntry): Made private.
  11645. (DiskWriterEntry::fileExists): New function.
  11646. (DiskWriterEntry::getFileEntry): New function.
  11647. (fileExists): New function.
  11648. (getFilePath): New function.
  11649. * src/TorrentRequestInfo.cc
  11650. (FatalException.h): New include.
  11651. (message.h): New include.
  11652. (RecoverableException.h): New include.
  11653. (execute): Added a check whether file is already exists or not.
  11654. * src/DiskAdaptor.h
  11655. (fileExists): New function.
  11656. (getFilePath): New function.
  11657. * src/main.cc
  11658. (showUsage): Added an explanation of --force-truncate command-line
  11659. option.
  11660. (main): Added --force-truncate command-line option.
  11661. * src/Exception.h
  11662. (setMsg): buf[256] -> buf[1024]
  11663. * src/CopyDiskWriter.h
  11664. (getFilePath): Made public virtual.
  11665. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11666. (fileExists): New function.
  11667. * src/DownloadEngineFactory.cc
  11668. (newTorrentConsoleEngine): Don't open file here.
  11669. * src/message.h
  11670. (EX_FILE_ALREADY_EXISTS): New definition.
  11671. * src/prefs.h
  11672. (PREF_FOECE_TRUNCATE): New definition.
  11673. * src/HttpResponseCommand.cc
  11674. (handleDefaultEncoding): Added a check whether the file already exists.
  11675. * src/SegmentMan.h
  11676. (fileExists): New function.
  11677. (shouldCancelDownloadForSafety): New function.
  11678. * src/FtpNegotiateCommand.cc
  11679. (recvSize): Added a check whether the file already exists.
  11680. * src/AbstractSingleDiskAdaptor.cc
  11681. (File.h): New include.
  11682. (fileExists): New function.
  11683. * src/AbstractSingleDiskAdaptor.h
  11684. (getFilePath): Removed.
  11685. (fileExists): New function.
  11686. * src/SegmentMan.cc
  11687. (fileExists): New function.
  11688. (shouldCancelDownloadForSafety): New function.
  11689. To fix regression bug in torrent downloading:
  11690. * src/DefaultBtRequestFactory.cc
  11691. (doChokedAction): New function.
  11692. * src/DefaultBtRequestFactory.h
  11693. (doChokedAction): New function.
  11694. * src/DefaultBtMessageDispatcher.cc
  11695. (doChokedAction): Do not delete request if its target is in allowed
  11696. fast set.
  11697. * src/DefaultBtInteractive.cc
  11698. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11699. (sendKeepAlive): Send keep alive message even if the outgoing message
  11700. queue is not empty.
  11701. (decideInterest): Simplified the code.
  11702. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11703. it is already called when BtChokeMessage is received from a peer.
  11704. * src/BtRequestFactory.h
  11705. (doChokedAction): New function.
  11706. To clean up code:
  11707. * src/PeerInteractionCommand.h
  11708. (executeInternal): Added virtual keyword explicitly.
  11709. (prepareForRetry): Added virtual keyword explicitly.
  11710. (prepareForNextPeer): Added virtual keyword explicitly.
  11711. (onAbort): Added virtual keyword explicitly.
  11712. * src/RequestSlot.cc
  11713. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11714. * src/BtPieceMessage.cc
  11715. (doReceivedAction): Added a debug log of piece's bitfield.
  11716. * src/Piece.h
  11717. (getBitfieldLength): New function.
  11718. * src/ByteArrayDiskWriter.cc
  11719. (clear): Added buf = 0 to avoid double free corruption.
  11720. * src/FileAllocator.cc
  11721. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11722. Added cp.reset().
  11723. * src/BitfieldMan.h
  11724. (operator=): Rewritten.
  11725. * src/BitfieldMan.cc
  11726. (BitfieldMan): Initialized bitfield, useBitfield.
  11727. * src/PeerConnection.cc
  11728. (receiveMessage): Added a call to socket->readable() after getting
  11729. message length to avoid possible EOF.
  11730. * src/Util.cc
  11731. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11732. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11733. To add an ability to pre-allocate file space:
  11734. * src/DirectDiskAdaptor.h: Rewritten.
  11735. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11736. * src/MultiDiskAdaptor.h: Rewritten.
  11737. * src/DefaultPieceStorage.cc
  11738. (MultiDiskWriter.h): Removed include.
  11739. (PreAllocationDiskWriter.h): Removed include.
  11740. (FileAllocationMonitor.h): New include.
  11741. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11742. (initStorage): Rewritten.
  11743. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11744. * src/FileAllocator.h: New class.
  11745. * src/FileAllocator.cc: New class.
  11746. * src/FileAllocationMonitor.h: New class.
  11747. * src/FileAllocationMonitor.cc: New class.
  11748. * src/ConsoleFileAllocationMonitor.h: New class.
  11749. * src/ConsoleFileAllocationMonitor.cc: New class.
  11750. * src/AbstractSingleDiskAdaptor.h: New class.
  11751. * src/AbstractSingleDiskAdaptor.cc: New class.
  11752. * src/DiskAdaptor.h
  11753. (Directory.h): Removed include.
  11754. (DiskWriter.h): Removed include.
  11755. (FileEntry.h): Removed include.
  11756. (diskWriter): Removed.
  11757. (DiskAdaptor): Removed diskWriter.
  11758. (openFile): Made pure virtual.
  11759. (closeFile): Made pure virtual.
  11760. (openExistingFile): Made pure virtual.
  11761. (initAndOpenFile): Made pure virtual.
  11762. (writeData): Made pure virtual.
  11763. (readData): Made pure virtual.
  11764. (sha1Sum): Made pure virtual.
  11765. (getStoreDir): Returns const reference of storeDir.
  11766. (DiskAdaptorHandle): New type definition.
  11767. * src/main.cc
  11768. (ConsoleFileAllocationMonitor.h): New include.
  11769. (showUsage): Added default value description of -s option.
  11770. Added the description of --file-allocation option.
  11771. (main): Set default value of --file-allocation option to 'none'.
  11772. Added --file-allocation command-line option.
  11773. Setup FileAllocationMonitorFactory.
  11774. * src/FtpInitiateConnectionCommand.cc
  11775. (executeInternal): Removed diskWriter related processing, which was
  11776. moved to FtpNegotiationCommand.cc.
  11777. * src/DirectDiskAdaptor.cc
  11778. (getFilePath): Made non-const.
  11779. * src/CopyDiskAdaptor.h
  11780. (DiskAdaptor.h): Removed include.
  11781. (DiskWriter.h): Removed include.
  11782. (AbstractSingleDiskAdaptor.h): New include.
  11783. (getFilePath): Made non-const. Added virtual keyword.
  11784. (CopyDiskAdaptor): Removed diskWriter.
  11785. (getTempFile): Returns const reference.
  11786. (CopyDiskAdaptorHandle): New type definition.
  11787. * src/ByteArrayDiskWriter.cc
  11788. (clear): Simplified.
  11789. (initAndOpenFile): Rewritten.
  11790. (openFile): Call initAndOpenFile()
  11791. * src/MultiDiskAdaptor.cc: Rewritten.
  11792. * src/DownloadEngineFactory.cc
  11793. (FileAllocator.h): New include.
  11794. (FileAllocationMonitor.h): New include.
  11795. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11796. create DefaultDiskWriter with file allocator.
  11797. * src/DiskWriter.h
  11798. (initAndOpenFile): Added totalLength argument.
  11799. (openFile): Added totalLength argument.
  11800. * src/prefs.h
  11801. (PREF_FILE_ALLOCATION): New definition.
  11802. (V_PREALLOC): New definition.
  11803. (V_NONE): New definition.
  11804. * src/HttpResponseCommand.cc
  11805. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11806. size.
  11807. * src/FtpNegotiateCommand.cc
  11808. (Util.h): New include.
  11809. (recvSize): Open file here.
  11810. * src/Util.h
  11811. (ullitos): New function.
  11812. * src/CopyDiskWriter.h
  11813. (getFilePath): Made non-const.
  11814. * src/DefaultDiskWriter.h
  11815. (Option.h): New include.
  11816. (totalLength): Removed.
  11817. (DefaultDiskWriter): Removed totalLength.
  11818. (initAndOpenFile): Added totalLength argument.
  11819. (DefaultDiskWriterHandle): New type definition.
  11820. (createNewDiskWriter): New function.
  11821. * src/Util.cc
  11822. (ullitos): New function.
  11823. * src/DefaultDiskWriter.cc
  11824. (message.h): New include.
  11825. (FileAllocator.h): New include.
  11826. (prefs.h): New include.
  11827. (Util.h): New include.
  11828. (DefaultDiskWriter): Removed totalLength.
  11829. (initAndOpenFile): Added file allocation.
  11830. (createNewDiskWriter): New function. Just for temporary solution.
  11831. It will be rewritten later.
  11832. * src/DiskAdaptor.cc
  11833. (DiskAdaptor): Removed diskWriter.
  11834. * src/AbstractDiskWriter.cc
  11835. (LogFactory.h): New include.
  11836. (AbstractDiskWriter): Added fileAllocator, logger.
  11837. (openFile): Added totalLength argument.
  11838. * src/AbstractDiskWriter.h
  11839. (FileAllocator.h): New include.
  11840. (Logger.h): New include.
  11841. (fileAllocator): New variable.
  11842. (logger): New variable.
  11843. (openFile): Added totalLength argument. Added virtual keyword
  11844. explicitly.
  11845. (openExistingFile): Added totalLength argument. Added virtual keyword
  11846. explicitly.
  11847. (closeFile): Added virtual keyword explicitly.
  11848. (sha1Sum): Added virtual keyword explicitly.
  11849. (writeData): Added virtual keyword explicitly.
  11850. (readData): Added virtual keyword explicitly.
  11851. (setFileAllocator): New function.
  11852. * src/DefaultPieceStorage.h
  11853. (FileAllocator.h): New include.
  11854. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11855. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11856. * src/FileProgressMonitor.h: New class.
  11857. To compile aria2 on PC-BSD:
  11858. * src/DefaultBtContext.cc
  11859. (libgen.h): New include.
  11860. To fix memory leak:
  11861. * src/Exception.h
  11862. (~Exception): Delete cause. Fixed memory leak.
  11863. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11864. Rewritten a portion of bittorrent implementation:
  11865. * src/BtMessageValidator.h: New class.
  11866. * src/BtBitfieldMessageValidator.h: New class.
  11867. * src/BtHandshakeMessageValidator.h: New class.
  11868. * src/BtRequestMessageValidator.h: New class.
  11869. * src/BtSuggestPieceMessageValidator.h: New class.
  11870. * src/BtAllowedFastMessageValidator.h: New class.
  11871. * src/BtRejectMessageValidator.h: New class.
  11872. * src/BtCancelMessageValidator.h: New class.
  11873. * src/BtPieceMessageValidator.h: New class.
  11874. * src/BtHaveMessageValidator.h: New class.
  11875. * src/BtEventListener.h: New class.
  11876. * src/AbstractBtEventListener.h: New class.
  11877. * src/BtEvent.h: New class.
  11878. * src/BtChokingEvent.h: New class.
  11879. * src/BtChokedEvent.h: New class.
  11880. * src/BtCancelSendingPieceEvent.h: New class.
  11881. * src/BtAbortOutstandingRequestEvent.h: New class.
  11882. * src/Randomizer.h: New class.
  11883. * src/SimpleRandomizer.h: New class.
  11884. * src/BtMessage.h: New class.
  11885. * src/AbstractBtMessage.h: New class.
  11886. * src/SimpleBtMessage.h: New class.
  11887. * src/BtHaveMessage.h: New class.
  11888. * src/BtInterestedMessage.h: New class.
  11889. * src/BtAllowedFastMessage.h: New class.
  11890. * src/BtUnchokeMessage.h: New class.
  11891. * src/BtCancelMessage.h: New class.
  11892. * src/BtNotInterestedMessage.h: New class.
  11893. * src/BtChokeMessage.h: New class.
  11894. * src/BtHaveNoneMessage.h: New class.
  11895. * src/BtHandshakeMessage.h: New class.
  11896. * src/BtSuggestPieceMessage.h: New class.
  11897. * src/BtHaveMessage.h: New class.
  11898. * src/BtPieceMessage.h: New class.
  11899. * src/BtHaveAllMessage.h: New class.
  11900. * src/BtKeepAliveMessage.h: New class.
  11901. * src/BtPortMessage.h: New class.
  11902. * src/BtRejectMessage.h: New class.
  11903. * src/BtBitfieldMessage.h: New class.
  11904. * src/BtRequestMessage.h: New class.
  11905. * src/DefaultBtRequestFactory.h: New class.
  11906. * src/DefaultBtMessageReceiver.h: New class.
  11907. * src/BtInteractive.h: New class.
  11908. * src/BtMessageDispatcher.h: New class.
  11909. * src/DefaultBtMessageDispatcher.h: New class.
  11910. * src/DefaultBtInteractive.h: New class.
  11911. * src/BitfieldManFactory.h: New class.
  11912. * src/HandleRegistry.h: New class.
  11913. * src/BtMessageFactory.h: New class.
  11914. * src/BtMessageReceiver.h: New class.
  11915. * src/DefaultBtMessageFactory.h: New class.
  11916. * src/PeerObject.h: New class.
  11917. * src/BtRequestFactory.h: New class.
  11918. * src/SuggestPieceMessage.h: Removed.
  11919. * src/PortMessage.h: Removed.
  11920. * src/SuggestPieceMessage.h: Removed.
  11921. * src/KeepAliveMessage.h: Removed.
  11922. * src/HandshakeMessage.h: Removed.
  11923. * src/PeerInteraction.h: Removed.
  11924. * src/UnchokeMessage.h: Removed.
  11925. * src/PieceMessage.h: Removed.
  11926. * src/RequestMessage.h: Removed.
  11927. * src/InterestedMessage.h: Removed.
  11928. * src/HaveMessage.h: Removed.
  11929. * src/CancelMessage.h: Removed.
  11930. * src/RejectMessage.h: Removed.
  11931. * src/AllowedFastMessage.h: Removed.
  11932. * src/HaveNoneMessage.h: Removed.
  11933. * src/SimplePeerMessage.h: Removed.
  11934. * src/HaveAllMessage.h: Removed.
  11935. * src/BitfieldMessage.h: Removed.
  11936. * src/PeerMessageFactory.h: Removed.
  11937. * src/NotInterestedMessage.h: Removed.
  11938. * src/ChokeMessage.h: Removed.
  11939. * src/PeerMessage.h: Removed.
  11940. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11941. To know root cause of exception:
  11942. * src/Exception.h
  11943. (cause): New variable.
  11944. (Exception): Added a parameter.
  11945. (getMsg): Return const reference to msg.
  11946. (getCause): New function.
  11947. * src/DlRetryEx.h
  11948. (DlRetryEx): Added a parameter 'cause'.
  11949. Added an overloaded constructor.
  11950. (DlAbortEx): Added a parameter 'cause'.
  11951. Added an overloaded constructor.
  11952. * src/SimpleLogger.cc
  11953. (writeLog): Log nested exception messages recursively.
  11954. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11955. * src/DefaultBtProgressInfoFile.cc
  11956. (load): Fixed memory leak when the infohash doesn't match.
  11957. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11958. * src/DefaultPeerStorage.cc
  11959. (calculateStat): Simplified the code by combining 2 loops into 1.
  11960. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11961. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11962. for BitTorrent download:
  11963. * src/PeerAbstractCommand.cc
  11964. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11965. * src/main.cc:
  11966. (timeoutSpecified): Removed.
  11967. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11968. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11969. * src/TorrentRequestInfo.cc
  11970. (timeoutSpecified): Removed.
  11971. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11972. timeout value.
  11973. * src/prefs.h
  11974. (PREF_BT_TIMEOUT): New definition.
  11975. Delete unused variables:
  11976. * src/TorrentRequestInfo.cc
  11977. (requestInfo): Removed.
  11978. Move setSignalHander to Util::setGlobalSignalHandler:
  11979. * src/TorrentRequestInfo.cc:
  11980. setSignalHander -> Util::setGlobalSignalHandler
  11981. * src/main.cc
  11982. (setSignalHander): Removed.
  11983. (main): setSignalHander -> Util::setGlobalSignalHandler
  11984. * src/Util.h
  11985. (setGlobalSignalHandler): New function.
  11986. * src/Util.cc
  11987. (setGlobalSignalHandler): New function.
  11988. * src/UrlRequestInfo.cc:
  11989. setSignalHander -> Util::setGlobalSignalHandler
  11990. Reset peer status in order to exit gracefully:
  11991. * src/PeerAbstractCommand.cc
  11992. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11993. To fix the bug that causes the number of bytes uploaded is not saved
  11994. to .aria2 file:
  11995. * src/DefaultPeerStorage.h
  11996. (removedPeerSessionDownloadLength): New variable.
  11997. (removedPeerSessionUploadLength): New variable.
  11998. * src/DefaultPeerStorage.cc
  11999. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12000. removedPeerSessionUploadLength(0).
  12001. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12002. through all peers, and then add removedPeerSessionDownloadLength(
  12003. removedPeerSessionUploadLength) to it.
  12004. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12005. (to) the peer to removedPeerSessionDownloadLength
  12006. (removedPeerSessionUploadLength).
  12007. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12008. To add Metalink location option:
  12009. * src/MetalinkRequestInfo.cc
  12010. (execute): Call MetalinkEntry::setLocationPreference()
  12011. * src/main.cc
  12012. (showUsage): Added the help message for --metalink-location option.
  12013. (main): Added --metalink-location option.
  12014. * src/prefs.h
  12015. (PREF_METALINK_LOCATION): New definition.
  12016. * src/MetalinkEntry.cc
  12017. (AddLocationPreference): New function object.
  12018. (setLocationPreference): New function.
  12019. * src/Xml2MetalinkProcessor.cc
  12020. (getResource): Set location attribute to MetalinkResource
  12021. To show URLs to download
  12022. * src/UrlRequestInfo.h
  12023. (printUrls): New function.
  12024. To add multiple <file> Metalink support:
  12025. * src/MetalinkEntry.h
  12026. (MetalinkResources): Removed.
  12027. (setLocationPreference): New function.
  12028. (MetalinkEntryHandle): New type definition.
  12029. (MetalinkEntries): New type definition.
  12030. * src/Xml2MetalinkProcessor.h
  12031. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12032. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12033. (parseFile): Metalinker* -> MetalinkerHandle
  12034. * src/UrlRequestInfo.h
  12035. (execute): RequestInfo* -> RequestInfos
  12036. * src/MetalinkRequestInfo.cc
  12037. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12038. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12039. (execute): RequestInfo* -> RequestInfos
  12040. Added multiple <file> support. Print filename when it is queued.
  12041. * src/MetalinkRequestInfo.h
  12042. (execute): RequestInfo* -> RequestInfos
  12043. (getDownloadEngine): Removed.
  12044. * src/RequestInfo.h
  12045. (RequestInfoHandle): New type definition.
  12046. (RequestInfos): New type definition.
  12047. (execute): RequestInfo* -> RequestInfos
  12048. (getDownloadEngine): Removed.
  12049. * src/MetalinkResource.h
  12050. (MetalinkResourceHandle): New type definition.
  12051. (MetalinkResources): New type definition.
  12052. * src/MetalinkEntry.cc
  12053. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12054. because the element is now of type MetalinkResourceHandle.
  12055. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12056. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12057. (dropUnsupportedResource): Removed the deletion of the elements of
  12058. resources because the element is now of type MetalinkResourceHandle.
  12059. * src/Xml2MetalinkProcessor.cc
  12060. (parseFile): Metalinker* -> MetalinkerHandle
  12061. MetalinkEntry* -> MetalinkEntryHandle
  12062. Removed try-catch block.
  12063. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12064. MetalinkResource* -> MetalinkResourceHandle
  12065. Removed try-catch block.
  12066. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12067. Free result by using xmlXPathFreeObject()
  12068. * src/Metalinker.cc
  12069. (~Metalinker): Removed the deletion of entries.
  12070. MetalinkEntry* -> MetalinkEntryHandle
  12071. (queryEntry): Add multiple <file> Metalink support.
  12072. * src/Metalinker.h
  12073. (MetalinkEntries): Removed.
  12074. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12075. * src/MetalinkProcessor.h
  12076. (parseFile): Metalinker* -> MetalinkerHandle
  12077. Bug fixes:
  12078. * src/PeerChokeCommand.cc
  12079. (execute): cat01->cat02
  12080. * src/DefaultPieceStorage.cc
  12081. (DefaultPieceStorage): Added diskAdaptor(0)
  12082. * src/TrackerWatcherComand.cc:
  12083. (execute): Use btAnnounce->noMoreAnnounce()
  12084. to determin whether the function returns true or not.
  12085. * src/TrackerUpdateCommand.cc:
  12086. (execute): Use btAnnounce->noMoreAnnounce()
  12087. to determin whether the function returns true or not.
  12088. * src/FtpConnection.cc
  12089. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12090. This is the fix of the busy loop bug.
  12091. * src/DownloadCommand.cc
  12092. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12093. cached PeerStat.
  12094. The value of "name" entry in torrent file is now set by
  12095. *DiskAdaptor::setTopDir(...) methods.
  12096. * src/MultiDiskAdaptor.h
  12097. (topDir): New variable.
  12098. (setTopDir): New function.
  12099. (getTopDir): New function.
  12100. * src/MultiDiskAdaptor.cc
  12101. (getFilePath): Concat storDir, "/" and topDir.
  12102. (mkdir): Use getFilePath() to get the directory path for output.
  12103. * src/DefaultPieceStorage.cc
  12104. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12105. CopyDiskAdaptor.
  12106. * src/CopyDiskAdaptor.h
  12107. (topDir): New variable.
  12108. (setTopDir): New function.
  12109. (getTopDir): New function.
  12110. * src/CopyDiskAdaptor.cc
  12111. (fixFilename): Updated.
  12112. Misc
  12113. * src/UrlRequestInfo.h
  12114. (e): Removed.
  12115. (UrlRequestInfo): Removed e.
  12116. (getDownloadEngine): Removed.
  12117. * src/UrlRequestInfo.cc
  12118. (handler): Rewritten.
  12119. (printUrls): New function.
  12120. (execute): Call printUrls().
  12121. * src/HandshakeMessage.cc
  12122. (check): peerinteraction->getBtContext() -> btContext
  12123. * src/PeerInteraction.h
  12124. (getBtContext): Removed.
  12125. * src/TorrentRequestInfo.h
  12126. (execute): RequestInfo* -> RequestInfos
  12127. (getDownloadEngine): Removed.
  12128. * src/TorrentRequestInfo.cc
  12129. (haltRequested): Removed.
  12130. (btHaltRequested): New variable.
  12131. (torrentHandler): haltRequested -> btHaltRequested
  12132. (execute): RequestInfo* -> RequestInfos
  12133. * src/TorrentConsoleDownloadEngine.cc
  12134. (afterEachIteration): haltRequested -> btHaltRequested.
  12135. * src/ConsoleDownloadEngine.h
  12136. (initStatistics): Added virtual.
  12137. (calculateStatistics): Added virtual.
  12138. (onEndOfRun): Added virtual.
  12139. (afterEachIteration): Added virtual.
  12140. * src/ConsoleDownloadEngine.cc
  12141. (haltRequested): New variable.
  12142. (afterEachIteration): New function.
  12143. * src/main.cc
  12144. (requestInfo): Removed.
  12145. * src/SegmentMan.cc
  12146. (findSlowerSegmentEntry): Refactored.
  12147. * Release 0.9.0
  12148. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12149. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12150. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12151. * src/TorrentMan.h: Removed.
  12152. * src/TorrentMan.cc: Removed.
  12153. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12154. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12155. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12156. * src/PeerAbstractCommand.cc: Use btRuntime.
  12157. * src/BtContextAwareCommand.h: New class.
  12158. * src/FileEntry.h: Added accessor methods for following variables.
  12159. (path): Made private.
  12160. (length): Made private.
  12161. (offset): Made private.
  12162. (extracted): Made private.
  12163. (requested): Made private.
  12164. (FileEntries): New definition.
  12165. (FileEntryHandle): New definition.
  12166. * src/FileEntry.cc: New file.
  12167. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12168. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12169. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12170. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12171. * src/PieceStorage.h: New file.
  12172. * src/PeerInteractionCommand.h: Use btContext.
  12173. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12174. btRuntime.
  12175. * src/DefaultBtProgressInfoFile.h: New file.
  12176. * src/DefaultBtProgressInfoFile.cc: New file.
  12177. * src/File.cc
  12178. (Util.h): New include.
  12179. (mkdirs): New function.
  12180. * src/MultiDiskAdaptor.h
  12181. (mkdir): New function.
  12182. * src/PeerListProcessor.h
  12183. (Peers): Removed.
  12184. * src/PeerInteraction.h
  12185. (torrentMan): Removed.
  12186. (btContext): New variable.
  12187. (peerStorage): New variable.
  12188. (pieceStorage): New variable.
  12189. (btAnnounce): New variable.
  12190. (getTorrentMan): Removed.
  12191. (getBtContext): New function.
  12192. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12193. btAnnounce.
  12194. * src/HandshakeMessage.h
  12195. (TorrentMan.h): Removed.
  12196. * src/HandshakeMessage.cc: Use btContext.
  12197. * src/DefaultBtAnnounce.cc: New file.
  12198. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12199. * src/DefaultPieceStorage.cc: New file.
  12200. * src/DefaultBtContext.h: New file.
  12201. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12202. Use the accessor methods of FileEntry.
  12203. * src/CookieBox.cc: Updated to use Util::slice().
  12204. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12205. * src/common.h (SharedHandle.h): New include.
  12206. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12207. pieceStorage.
  12208. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12209. * src/DiskAdaptor.h
  12210. (topDir): Removed.
  12211. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12212. (setTopDir): Removed.
  12213. (getTopDir): Removed.
  12214. * src/BtContext.h: New file.
  12215. * src/DefaultPeerStorage.h: New file.
  12216. * src/PieceMessage.h (TorrentMan.h): Removed.
  12217. * src/RequestMessage.h (TorrentMan.h): Removed.
  12218. * src/TorrentDownloadEngine.h
  12219. (uploadLength): New variable.
  12220. (btContext): New variable.
  12221. (btRuntime): New variable.
  12222. (pieceStorage): New variable.
  12223. (peerStorage): New variable.
  12224. (btAnnounce): New variable.
  12225. (btProgressInfoFile): New variable.
  12226. (torrentMan): Removed.
  12227. (setBtContext): New function.
  12228. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12229. peerStorage, btAnnounce, btProgressInfoFile.
  12230. * src/Piece.h
  12231. (toString): New function.
  12232. (Pieces): New type definition.
  12233. * src/Peer.h
  12234. (active): New variable.
  12235. (Peer): Added active.
  12236. (activate): Set active to true.
  12237. (deactivate): Set active to false.
  12238. (isActive): New function.
  12239. (Peers): New type definition.
  12240. * src/DirectDiskAdaptor.cc
  12241. (getFilePath): Use the accessor methods of FileEntry.
  12242. * src/TorrentConsoleDownloadEngine.h
  12243. (afterEachIteration): New function.
  12244. * src/TorrentConsoleDownloadEngine.cc
  12245. (haltRequested): New variable.
  12246. (sendStatistics): Use pieceStorage, btRuntime.
  12247. (afterEachIteration): New function.
  12248. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12249. * src/Directry.h
  12250. (Directory): New function.
  12251. (DirectoryHandle): New type definition.
  12252. * src/BtProgressInfoFile.h: New file.
  12253. * src/RequestMessage.cc: Use pieceStorage.
  12254. * src/BtRuntime.h: New file.
  12255. * src/DefaultBtContext.cc: New file.
  12256. * src/BitfieldMan.h
  12257. (getCompletedLength): New function(private).
  12258. (getCompletedLength): New function.
  12259. (getFilteredCompletedLength): New function.
  12260. * src/BitfieldMan.h
  12261. (getCompletedLength): New function(private).
  12262. (getCompletedLength): New function.
  12263. (getFilteredCompletedLength): New function.
  12264. * src/MultiDiskAdaptor.cc
  12265. (mkdir): New function.
  12266. (openFile): Call mkdir().
  12267. (initAndOpenFile): Call mkdir().
  12268. * src/CancelMessage.h
  12269. (TorrentMan.h): Removed.
  12270. * src/RejectMessage.h
  12271. (TorrentMan.h): Removed.
  12272. * src/DownloadEngineFactory.cc
  12273. (DefaultPieceStorage.h): New include.
  12274. (DefaultPeerStorage.h): New include.
  12275. (DefaultBtAnnounce.h): New include.
  12276. (DefaultBtProgressInfoFile.h): New include.
  12277. (newTorrentConsoleEngine): Rewritten.
  12278. * src/ShareRatioSeedCriteria.h
  12279. (torrentMan): Removed.
  12280. (btContext): New variable.
  12281. (peerStorage): New variable.
  12282. (btRuntime): New variable.
  12283. (evaluate): Use btContext, btRuntime, peerStorage.
  12284. * src/AnnounceTier.h: New file.
  12285. * src/BtAnnounce.h: New file.
  12286. * src/BtRegistry.h: New file.
  12287. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12288. * src/PeerConnection.h (TorrentMan.h): Removed.
  12289. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12290. * src/Util.h
  12291. (slice): Added an argument.
  12292. * src/Util.cc
  12293. (slice): Added an argument to control whether trim is made or not.
  12294. * src/PeerStorage.h: New file.
  12295. * src/BtRegistry.cc: New file.
  12296. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12297. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12298. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12299. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12300. * src/TorrentRequestInfo.h
  12301. (e): Removed.
  12302. (showFileEntry): Added an argument.
  12303. (getDownloadEngine): Return 0.
  12304. * src/DefaultBtAnnounce.h: New file.
  12305. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12306. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12307. * src/PeerMessageFactory.h
  12308. (btContext): New variable.
  12309. (pieceStorage): New variable.
  12310. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12311. btAnnounce.
  12312. * src/DiskAdaptor.cc
  12313. (DiskAdaptor): Removed topDir.
  12314. (~DiskAdaptor): Removed topDir.
  12315. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12316. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12317. * src/File.h (mkdirs): New function.
  12318. * src/DefaultPeerStorage): New file.
  12319. * src/DownloadEngineFactory.h
  12320. (newTorrentConsoleEngine): Use btContext.
  12321. * src/BtContextAwareCommand.cc: New file.
  12322. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12323. * src/PeerMessage.h
  12324. (btContext): New variable.
  12325. (peerStorage): New variable.
  12326. (pieceStorage): New variable.
  12327. (setBtContext): New function.
  12328. * src/Directry.cc
  12329. (Directory): New function.
  12330. (createDir): Do nothing if name.size() == 0.
  12331. * src/AnnounceList.h
  12332. (AnnounceTier): Removed.
  12333. (AnnounceTiers): Removed.
  12334. * src/DefaultPieceStorage.h: New file.
  12335. * src/Piece.cc (toString): New function.
  12336. To fix typo:
  12337. * src/main.cc (showVersion): Fixed typo.
  12338. To fix compile warning:
  12339. * src/DelegatingPeerListProcessor.cc
  12340. (canHandle): Added "return false".
  12341. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12342. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12343. make the process of announce request testable.
  12344. * src/TrackerWatcherCommand.h
  12345. (TimeA2.h): Removed.
  12346. (interval): Removed.
  12347. (checkPoint): Removed.
  12348. (createRequestCommand): Added an argument 'url'.
  12349. (TrackerWatherCommand): Removed interval.
  12350. (createCommand): New function.
  12351. * src/DownloadEngineFactory.cc
  12352. (newTorrentConsoleEngine): Updated according to the changes in
  12353. TrackerWatherCommand.
  12354. * src/TorrentMan.cc
  12355. (DelegatingPeerListProcessor.h): New includes.
  12356. (TorrentMan): Added the initialization of announceInterval.
  12357. (isStoppedAnnounceReady): New function.
  12358. (isCompletedAnnounceReady): New function.
  12359. (isDefaultAnnounceReady): New function.
  12360. (isAnnounceReady): New function.
  12361. (getAnnounceUrl): New function.
  12362. (announceStart): New function.
  12363. (announceFailure): New function.
  12364. (announceSuccess): New function.
  12365. (isAllAnnounceFailed): New function.
  12366. (resetAnnounce): New function.
  12367. (processAnnounceResponse): New function.
  12368. (needMorePeerConnection): New function.
  12369. (noMoreAnnounce): New function.
  12370. * src/TrackerUpdateCommand.h
  12371. (getTrackerResponse): int->size_t
  12372. * src/TorrentMan.h
  12373. (isStoppedAnnounceReady): New function.
  12374. (isCompletedAnnounceReady): New function.
  12375. (isDefaultAnnounceReady): New function.
  12376. (announceInterval): New variable.
  12377. (isAnnounceReady): New function.
  12378. (getAnnounceUrl): New function.
  12379. (announceStart): New function.
  12380. (announceFailure): New function.
  12381. (announceSuccess): New function.
  12382. (isAllAnnounceFailed): New function.
  12383. (resetAnnounce): New function.
  12384. (processAnnounceResponse): New function.
  12385. (needMorePeerConnection): New function.
  12386. (noMoreAnnounce): New function.
  12387. * src/TrackerWatcherCommand.cc
  12388. (TrackerWatherCommand): Removed interval and checkPoint.
  12389. (execute): Rewritten.
  12390. (createCommand): New function.
  12391. (createRequestCommand): Rewritten.
  12392. * src/TrackerUpdateCommand.cc
  12393. (MetaFileUtil.h): Removed.
  12394. (DelegatingPeerListProcessor.h): Removed.
  12395. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12396. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12397. Request -> RequestHandle:
  12398. * src/HttpResponseCommand.h: Request->RequestHandle
  12399. * src/AbstractCommand.cc: Request->RequestHandle
  12400. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12401. * src/HttpRequestCommand.cc: Request->RequestHandle
  12402. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12403. * src/AbstractCommand.h: Request->RequestHandle
  12404. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12405. * src/HttpResponseCommand.cc: Request->RequestHandle
  12406. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12407. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12408. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12409. * src/HttpConnection.h: Request->RequestHandle
  12410. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12411. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12412. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12413. * src/DownloadCommand.h: Request->RequestHandle
  12414. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12415. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12416. * src/HttpRequestCommand.h: Request->RequestHandle
  12417. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12418. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12419. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12420. * src/HttpDownloadCommand.h: Request->RequestHandle
  12421. * src/FtpConnection.cc: Request->RequestHandle
  12422. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12423. * src/UrlRequestInfo.cc: Request->RequestHandle
  12424. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12425. * src/HttpConnection.h: Request->RequestHandle
  12426. * src/DownloadCommand.cc: Request->RequestHandle
  12427. * src/FtpConnection.h: Request->RequestHandle
  12428. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12429. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12430. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12431. * src/Request.h
  12432. (SharedHandle.h): New include.
  12433. (RequestHandle): New type definition.
  12434. (Requests): Redefined.
  12435. To add MULTITRACKER support:
  12436. * src/TrackerWatcherCommand.h
  12437. (createRequestCommand): New function.
  12438. * src/DownloadEngineFactory.cc
  12439. (newTorrentConsoleEngine): Removed req.
  12440. * src/prefs.h
  12441. (PREF_TRACKER_MAX_TRIES): New definition.
  12442. * src/TorrentMan.cc
  12443. (TorrentMan): Removed req. Added trackerNumTry.
  12444. (~TorrentMan): Removed req.
  12445. (setupInternal1): Added announceList.
  12446. * src/TorrentRequestInfo.cc
  12447. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12448. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12449. * src/main.cc
  12450. (main): Added PREF_TRACKER_MAX_TRIES.
  12451. * src/TorrentMan.h
  12452. (Request.h): Removed.
  12453. (AnnounceList.h): New include.
  12454. (trackerNumTry): New variable.
  12455. (req): Removed.
  12456. (announceList): New variable.
  12457. * src/TrackerWatcherCommand.cc
  12458. (execute): Rewritten.
  12459. (createRequestCommand): New function.
  12460. * src/TrackerUpdateCommand.cc
  12461. (execute): Updated with the use of AnnounceList.
  12462. * src/AnnounceList.cc: New class.
  12463. * src/AnnounceList.h: New class.
  12464. To fix typo:
  12465. * src/prefs.h
  12466. (PREF_MAX_TRIES): max_try->max_tries
  12467. To not to decode "+" as space in URL decode:
  12468. * src/Util.cc
  12469. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12470. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12471. To add timeout to async name resolution:
  12472. * src/AbstractCommand.h
  12473. (nameResolveFinished): New function. This is not elegant way. It needs
  12474. to be more refined.
  12475. (nameResolverCheck): New variable.
  12476. * src/AbstractCommand.cc
  12477. (AbstractCommand): Added nameResolverCheck.
  12478. (execute): Added the check whether the name resolution has finished.
  12479. (setNameResolverCheck): Set nameResolverCheck to true.
  12480. (disableNameResolverCheck): Set nameResolverCheck to false.
  12481. (nameResolverFinished): New function.
  12482. * src/FtpInitiateConnectionCommand.h
  12483. (nameResolverFinished): New function.
  12484. * src/FtpInitiateConnectionCommand.cc
  12485. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12486. * src/HttpInitiateConnectionCommand.h
  12487. (nameResolverFinished): New function.
  12488. * src/HttpInitiateConnectionCommand.cc
  12489. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12490. * src/prefs.h
  12491. (PREF_DNS_TIMEOUT): New definition.
  12492. * src/main.cc
  12493. (main): Added PREF_DNS_TIMEOUT.
  12494. To add the support for a non-compact response from a tracker:
  12495. * src/PeerListProcessor.h: New class.
  12496. * src/DefaultPeerListProcessor.h: New class.
  12497. * src/DefaultPeerListProcessor.cc: New class.
  12498. * src/CompactPeerListProcessor.h: New class.
  12499. * src/CompactPeerListProcessor.cc: New class.
  12500. * src/DelegatingPeerListProcessor.h: New class.
  12501. * src/DelegatingPeerListProcessor.cc: New class.
  12502. * src/TorrentMan.cc
  12503. (addPeer): New function(overload).
  12504. (addPeer): Delete unused peers only when new peer is added.
  12505. * src/TorrentMan.h
  12506. (PeerListProcessor.h): Included.
  12507. (Peers): Removed.
  12508. (addPeer): New function(overload).
  12509. * src/TrackerUpdateCommand.cc
  12510. (netinet/in.h): Removed.
  12511. (DelegatingPeerListProcessor.h): Included.
  12512. (execute): Updated to use DelegatingPeerListProcessor.
  12513. To fix the memory leak in TorrentMan::peers:
  12514. * src/PeerAbstractCommand.cc
  12515. (onAbort): Added peer->resetStatus().
  12516. * src/Peer.h
  12517. (resetStatus): Made public.
  12518. To improve the precision of the speed calculation:
  12519. * src/SpeedCalc.h
  12520. (nextInterval): New variable.
  12521. * src/SpeedCalc.cc
  12522. (reset): Added nextInterval.
  12523. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12524. (changeSw): Set nextInterval to 15 seconds relative to the current
  12525. instant time.
  12526. * src/main.cc
  12527. (showVersion): Updated.
  12528. (showUsage): Updated.
  12529. * Release 0.8.1
  12530. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12531. * src/main.cc
  12532. (showUsage): Commented out --min-segment-size option.
  12533. (main): Commented out --min-segment-size option.
  12534. * Release 0.8.0
  12535. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12536. * src/*.{h,cc}:
  12537. Added an exception to the license which allows linking with OpenSSL.
  12538. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12539. * src/AbstractCommand.cc
  12540. (execute): Check whether the download has finished before checking
  12541. socket status.
  12542. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12543. Do not exit even if no segment is available.
  12544. * src/prefs.h
  12545. (PREF_STARTUP_IDLE_TIME): New definition.
  12546. * src/PeerInteractionCommand.cc
  12547. (executeInternal): Removed max speed limit. Because it performs bad.
  12548. (receiveMessages): Added max speed limit. This was better than above,
  12549. but still a little bit to be desired. Sometimes the download speed
  12550. became much faster than I specified.
  12551. * src/SpeedCalc.h
  12552. (start): New variable.
  12553. (accumulatedLength): New variable.
  12554. (getAvgSpeed): New function.
  12555. * src/SpeedCalc.cc
  12556. (reset): Added start, accumulatedLength.
  12557. (update): Added calculation of an average speed.
  12558. (getAvgSpeed): New function.
  12559. * src/DownloadCommand.h
  12560. (sw): Removed.
  12561. * src/main.cc
  12562. (main): Added PREF_STARTUP_IDLE_TIME.
  12563. * src/PeerStat.h
  12564. (STATUS): Added REQUEST_IDLE.
  12565. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12566. (getAvgDownloadSpeed): New function
  12567. (requestIdle): New function.
  12568. * src/SegmentMan.h
  12569. (SegmentEntryHandle): New type definition.
  12570. (SegmentEntries): Now holds SegmentEntryHandle.
  12571. (findSlowerSegmentEntry): New funtion.
  12572. * src/SegmentMan.cc
  12573. (save): Updated according to the changes in SegmentEntries.
  12574. (read): Updated according to the changes in SegmentEntries.
  12575. (FindSegmentEntryByIndex): Updated according to the changes in
  12576. SegmentEntries.
  12577. (FindSegmentEntryByCuid): Updated according to the changes in
  12578. SegmentEntries.
  12579. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12580. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12581. Renamed uitr as itr.
  12582. (findSlowerSegmentEntry): New function.
  12583. (getSegment): Updated according to the changes in SegmentEntries.
  12584. Added the feature that cancels the segment with slow server and fast
  12585. one takes it over.
  12586. (cancelSegment): Updated according to the changes in SegmentEntries.
  12587. (getDownloadLength): Updated according to the changes in
  12588. SegmentEntries.
  12589. (init): Assigned 0 to bitfield after deleting it.
  12590. * src/DownloadCommand.cc
  12591. (STARTUP_IDLE_TIME): Removed.
  12592. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12593. * src/PeerChokeCommand.cc
  12594. (optUnchokingPeer): Updated according to the changes in Peer.
  12595. (ResetDelta): Removed.
  12596. (UploadFaster): Updated according to the changes in Peer.
  12597. (DownloadFaster): Updated according to the changes in Peer.
  12598. (execute): I clarify the meaning of "upload" and "download" here.
  12599. "upload" means the transfer from localhost to remote host.
  12600. "download" means the transfer from remote host to localhost.
  12601. Based on this rule, I swapped orderByUploadRate and
  12602. orderByDownloadRate.
  12603. * src/PeerInteractionCommand.cc
  12604. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12605. (executeInternal): Removed the argument of
  12606. peerInteraction->sendMessages().
  12607. (receiveMessages): Rewritten download speed limit.
  12608. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12609. * src/HttpResponseCommand.cc
  12610. (handleDefaultEncoding): If file size is unknown in torrent request,
  12611. do not call segmentMan->initBitfield() here.
  12612. Disabled persistent connection feature in torrent request.
  12613. * src/UrlRequestInfo.h
  12614. (UrlRequestInfo): Removed const qualifier from option.
  12615. * src/TorrentMan.h
  12616. (TransferStat): New class.
  12617. (deltaDownloadLength): Removed.
  12618. (deltaUploadLength): Removed.
  12619. (addDeltaDownloadLength): Removed.
  12620. (getDeltaDownloadLength): Removed.
  12621. (resetDeltaDownloadLength): Removed.
  12622. (addDeltaUploadLength): Removed.
  12623. (getDeltaUploadLength): Removed.
  12624. (resetDeltaUploadLength): Removed.
  12625. (addActivePeer): Added peer->activate().
  12626. (deleteActivePeer): Added peer->deactivate().
  12627. (calculateStat): New function.
  12628. * src/TorrentMan.cc
  12629. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12630. (calculateStat): New function.
  12631. * src/PeerInteraction.h
  12632. (uploadLimit): Removed.
  12633. (option): New variable.
  12634. (setUploadLimit): Removed.
  12635. (getUploadSpeed): Removed.
  12636. (sendMessages): Removed the argument "currentUploadSpeed".
  12637. * src/PeerInteraction.cc
  12638. (prefs.h): Included.
  12639. (PeerInteraction): Removed uploadLimit. Added option.
  12640. (sendMessages): Rewritten upload speed limit.
  12641. (sendHandshake): Removed the argument from sendMessages().
  12642. (sendBitfield): Removed the argument from sendMessages().
  12643. * src/PeerAbstractCommand.cc
  12644. (execute): Commented out the portion of upload limit.
  12645. (onAbort): Removed peer->resetStatus().
  12646. * src/TorrentRequestInfo.cc
  12647. (timeoutSpecified): Declared extern.
  12648. (execute): Set timeout to 180 if timeout is not specified by.
  12649. command-line.
  12650. * src/PieceMessage.cc
  12651. (receivedAction): Added peer->updateDownloadLength().
  12652. Removed peer->addPeerUpload().
  12653. Removed torrentMan->addDeltaDownloadLength().
  12654. (send): Added peer->updateUploadLength().
  12655. Removed peer->addPeerDownload().
  12656. Removed torrentMan->addDeltaUploadLength().
  12657. * src/main.cc
  12658. (timeoutSpecified): New variable.
  12659. (main): Set timeoutSpecified to false.
  12660. If the command-line option "--upload-limit" is specified, then
  12661. timeoutSpecified is set to true. This option will remain in the next
  12662. release, but be deprecated in the future release.
  12663. * src/TorrentRequestInfo.h
  12664. (TorrentRequestInfo): Removed const qualifier from op.
  12665. * src/PeerStat.h
  12666. (uploadSpeed): New variable.
  12667. (PeerStat): Added default value to cuid.
  12668. (calculateUploadSpeed): New function.
  12669. (updateUploadLength): New function.
  12670. (getMaxUploadSpeed): New function.
  12671. (getAvgUploadSpeed): New function.
  12672. (reset): Added uploadSpeed. Set status to IDLE.
  12673. * src/TorrentDownloadEngine.h
  12674. (cp): Declared as Time.
  12675. (sessionDownloadLengthArray): Removed.
  12676. (sessionUploadLengthArray): Removed.
  12677. (currentCp): Removed.
  12678. (lastCalcStat): New variable
  12679. (lastElapsed): Removed.
  12680. (sessionDownloadLength): Removed.
  12681. (calculateStat): New function.
  12682. * src/TorrentDownloadEngine.cc
  12683. (initStatistics): Removed lastElapsed, cp[],
  12684. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12685. currentCp, sessionDownloadLength.
  12686. Added cp.reset() and lastCalcStat.reset().
  12687. (calculateSpeed): Changed the name of the argument.
  12688. (calculateStatistics): Rewritten.
  12689. (calculateStat): New function.
  12690. * src/Peer.h
  12691. (PeerStat.h): Included.
  12692. (peerUpload): Removed.
  12693. (peerDownload): Removed.
  12694. (peerStat): New variable.
  12695. (sessionUploadLength): New variable.
  12696. (sessionDownloadLength): New variable.
  12697. (deltaUpload): Removed.
  12698. (deltaDownload): Removed.
  12699. (resetStatus): Made private.
  12700. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12701. Removed peerUpload, peerDownload.
  12702. (updateUploadLength): New function.
  12703. (addDeltaUpload): Removed.
  12704. (updateDownloadLength): New function.
  12705. (resetDeltaUpload): Removed.
  12706. (getDeltaUpload): Removed.
  12707. (addDeltaDownload): Removed.
  12708. (calculateUploadSpeed): New function.
  12709. (resetDeltaDownload): Removed.
  12710. (getDeltaDownload): Removed.
  12711. (calculateDownloadSpeed): New function.
  12712. (getSessionUploadLength): New function.
  12713. (getSessionDownloadLength): New function.
  12714. (activate): New function.
  12715. (deactivate): New function.
  12716. (addPeerUpload): Removed.
  12717. (setPeerUpload): Removed.
  12718. (getPeerUpload): Removed.
  12719. (addPeerDownload): Removed.
  12720. (setPeerDownload): Removed.
  12721. (getPeerDownload): Removed.
  12722. * src/Peer.cc
  12723. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12724. * src/MetalinkRequestInfo.h
  12725. (MetalinkRequestInfo): Removed const qualifier from op.
  12726. * src/RequestInfo.h
  12727. (op): Removed const qualifier.
  12728. (RequestInfo): Removed const qualifier from op.
  12729. * src/prefs.h
  12730. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12731. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12732. * src/PeerInteractionCommand.cc
  12733. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12734. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12735. * src/PeerInteraction.cc
  12736. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12737. * src/main.cc
  12738. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12739. Added the description of "--max-download-limit" option.
  12740. Removed the description of "--upload-limit" option.
  12741. Added the description of "--max-upload-limit" option.
  12742. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12743. Added "--max-download-limit" option and "--max-upload-limit" option.
  12744. Added the warning message if "--upload-limit" option is used.
  12745. * src/DownloadCommand.cc
  12746. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12747. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12748. To rewrite segment download mechanism for HTTP/FTP download.
  12749. Use BitfieldMan to manage segment download.
  12750. * src/HttpResponseCommand.h
  12751. (executeInternal): Pass the reference of segment.
  12752. * src/AbstractCommand.cc
  12753. (prepareForRetry): Call segmentMan->cancelSegment here.
  12754. (onAbort): Call segmentMan->cancelSegment here.
  12755. * src/HttpDownloadCommand.cc
  12756. (prepareForNextSegment): New function.
  12757. * src/DownloadEngineFactory.cc
  12758. (newConsoleEngine): Removed splitter.
  12759. (newTorrentConsoleEngine): Removed splitter.
  12760. * src/Request.h
  12761. (segment): Renamed from seg.
  12762. * src/FtpInitiateConnectionCommand.h
  12763. (executeInternal): Pass the reference of segment.
  12764. * src/AbstractCommand.h
  12765. (executeInternal): Pass the reference of segment.
  12766. * src/pref.h
  12767. (PREF_SEGMENT_SIZE): New definition.
  12768. * src/HttpProxyRequestCommand.h
  12769. (executeInternal): Pass the reference of segment.
  12770. * src/HttpResponseCommand.cc
  12771. (checkResponse): Allowed status 206 when a request range starts 0.
  12772. (handleDefaultEncoding): Rewritten the code related to Segment.
  12773. (handleOtherEncoding): Rewritten the code related to Segment.
  12774. * src/SegmentMan.h
  12775. (SegmentEntry): New class.
  12776. (SegmentEntries): New type definition.
  12777. (bitfield): New variable.
  12778. (usedSegmentEntries): New variable.
  12779. (onNullBitfield): New function.
  12780. (checkoutSegment): New function.
  12781. (segments): Removed.
  12782. (splitter): Removed.
  12783. (unregisterId): Removed.
  12784. (getSegment): New function(overload)
  12785. (getDownloadedSize): Removed.
  12786. (cancelSegment): New function.
  12787. (completeSegment): New function.
  12788. (initBitfield): New function.
  12789. (hasSegment): New function.
  12790. (getDownloadLength): New function.
  12791. * src/BitfieldMan.h
  12792. (getStartIndex): New function.
  12793. (getEndIndex): New function.
  12794. (getMissingUnusedIndex): New function(overload).
  12795. (getSparseMissingUnusedIndex): New function.
  12796. * src/BitfieldMan.cc
  12797. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12798. (getMissingUnusedIndex): New function(overload).
  12799. (Range): New class.
  12800. (getStartIndex): New function.
  12801. (getEndIndex): New function.
  12802. (getSparseMissingUnusedIndex): New function.
  12803. (isBitSetInternal): Return false if the given index is less than 0.
  12804. * src/HttpInitiateConnectionCommand.h
  12805. (executeInternal): Pass the reference of segment.
  12806. * src/FtpNegotiateCommand.h
  12807. (executeInternal): Pass the reference of segment.
  12808. * src/FtpNegotiateCommand.cc
  12809. (recvSize): Initialize bitfield here.
  12810. * src/FtpTunnelResponseCommand.h
  12811. (executeInternal): Pass the reference of segment.
  12812. * src/HttpConnection.cc
  12813. (createRequest): Rewritten range header processing.
  12814. * src/DownloadCommand.h
  12815. (executeInternal): Pass the reference of segment.
  12816. (prepareForRetry): Removed.
  12817. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12818. function.
  12819. * src/main.cc
  12820. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12821. * src/SegmentMan.cc
  12822. (SegmentMan): Added bitfield. Removed splitter.
  12823. (~SegmentMan): Added bitfield. Removed splitter.
  12824. (unregisterId): Removed.
  12825. (getSegment): Rewritten.
  12826. (updateSegment): Rewritten.
  12827. (save): Rewritten.
  12828. (read): Rewritten.
  12829. (finished): Rewritten.
  12830. (getDownloadedSize): Removed.
  12831. (initBitfield): New function.
  12832. (FindSegmentEntryByIndex): New function object.
  12833. (FindSegmentEntryByCuid): New function object.
  12834. (checkoutSegment): New function.
  12835. (onNullBitfield): New function.
  12836. (getSegment): New function(overload).
  12837. (CancelSegment): New function object.
  12838. (cancelSegment): New function.
  12839. (completeSegment): New function.
  12840. (hasSegment): New function.
  12841. (getDownloadLength): New function.
  12842. * src/FtpInitiateConnectionCommand.cc
  12843. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12844. * src/Segment.h: Rewritten.
  12845. * src/Segment.cc (operator<<): New function.
  12846. * src/HttpDownloadCommand.h
  12847. (prepareForNextSegment): New function.
  12848. * src/Request.cc
  12849. (resetUrl): Made segment null.
  12850. * src/DownloadEngine.cc
  12851. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12852. * src/HttpProxyRequestCommand.h
  12853. (executeInternal): Pass the reference of segment.
  12854. * src/DownloadCommand.cc
  12855. (executeInternal): Rewritten the code related to Segment.
  12856. (prepareForRetry): Removed.
  12857. (prepareForNextSegment): Rewritten.
  12858. * src/FtpTunnelResponseCommand.h
  12859. (executeInternal): Pass the reference of segment.
  12860. To add HTTP 1.1 persistent connection support(experimental)
  12861. * src/HttpRequestCommand.cc
  12862. (executeInternal): Disable keep alive if it is disabled by
  12863. configuration.
  12864. * src/Request.h
  12865. (keepAlive): New variable.
  12866. (isKeepAlive): New function.
  12867. (setKeepAlive): New function.
  12868. * src/pref.h
  12869. (PREF_HTTP_KEEP_ALIVE): New definition.
  12870. * src/HttpResponseCommand.cc
  12871. (executeInternal): Check the remote server supports keep alive.
  12872. * src/HttpConnection.cc
  12873. (createRequest): Send "Connection: close" only if keep alive is
  12874. disabled.
  12875. * src/main.cc
  12876. (main):
  12877. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12878. To add max download speed limit:
  12879. * src/pref.h
  12880. (PREF_MAX_SPEED_LIMIT): New definition.
  12881. * src/PeerInteractionCommand.cc
  12882. (executeInternal): Added max download speed limit. Not tested yet.
  12883. * src/SegmentMan.h
  12884. (PeerStats): New type definition.
  12885. (peerStats): New variable.
  12886. (registerPeerStat): New function.
  12887. (FindPeerStat): New function object.
  12888. (getPeerStat): New function.
  12889. (calculateDownloadSpeed): New function.
  12890. * src/SpeedCalc.h: New class.
  12891. * src/SpeedCalc.cc: New class.
  12892. * src/main.cc
  12893. (main):
  12894. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12895. download speed is not restricted).
  12896. * src/PeerStat.h: New class.
  12897. * src/SegmentMan.cc
  12898. (registerPeerStat): New function.
  12899. (calculateDownloadSpeed): New function.
  12900. * src/DownloadCommand.cc
  12901. (STARTUP_IDLE_TIME): New definition.
  12902. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12903. downloadStart.
  12904. (~DownloadCommand): Call peerStat->downloadStop.
  12905. (executeInternal): Added download speed limitter. Rewritten lowest
  12906. speed limitter.
  12907. * src/HttpConnection.cc
  12908. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12909. * src/AbstractCommand.cc
  12910. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12911. Added hostname to the error message.
  12912. * src/ConsoleDownloadEngine.cc
  12913. (calculateStatistics): Initialize psize with dlSize.
  12914. * src/PieceMessage.cc
  12915. (receivedAction): Do not call peerInteraction->abortPiece here.
  12916. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12917. * src/BitfieldMan.h
  12918. (clearAllUseBit): New function.
  12919. (setAllUseBit): New function.
  12920. * src/BitfieldMan.cc
  12921. (clearAllBit): Do not clear useBitfield here.
  12922. (clearAllUseBit): New function.
  12923. (setAllUseBit): New function.
  12924. * src/Piece.cc
  12925. (clearAllBlock): Call bitfield->clearAllUseBit().
  12926. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12927. To make filename URL-decoded:
  12928. * src/HttpResponseCommand.h: Updated doc.
  12929. * src/HttpResponseCommand.cc
  12930. (determinFilename): Made filename URL-decoded.
  12931. * src/FtpInitiateConnectionCommand.cc
  12932. (executeInternal): Made filename URL-decoded.
  12933. * src/Util.h (urldecode): New function.
  12934. * src/Util.cc (urldecode): New function.
  12935. To fix a bug that caused assertion failure in ares_strerror:
  12936. * src/NameResolver.cc (callback): Fixed the bug.
  12937. * Release 0.7.3
  12938. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12939. To add --seed-time and --seed-ratio command-line option:
  12940. * src/Option.h (getAsDouble): New function.
  12941. * src/Option.cc (getAsDouble): New function.
  12942. * src/SeedCheckCommand.h: New class.
  12943. * src/SeedCheckCommand.cc: New class.
  12944. * src/DownloadEngineFactory.cc
  12945. (SeedCheckCommand.h): Included.
  12946. (UnionSeedCriteria.h): Included.
  12947. (TimeSeedCriteria.h): Included.
  12948. (ShareRatioSeedCriteria.h): Included.
  12949. (newTorrentConsoleEngine): Added the processing of seed option.
  12950. * src/SeedCriteria.h: New class.
  12951. * src/ShareRatioSeedCriteria.h: New class.
  12952. * src/TimeSeedCriteria.h: New class.
  12953. * src/UnionSeedCriteria.h: New class.
  12954. * src/prefs.h
  12955. (PREF_SEED_TIME): New definition.
  12956. (PREF_SEED_RATIO): New definition.
  12957. * src/main.cc
  12958. (showUsage): Added --seed-time and --seed-ratio option.
  12959. (main): Added --seed-time and --seed-ratio option.
  12960. Made default log file name "/dev/null".
  12961. * src/SharedHandle.h
  12962. (SharedHandle): Copy constructor. Made it assignable from the
  12963. SharedHandle of the subclasses.
  12964. (operator=): Made it assignable from the SharedHandle of the
  12965. subclasses.
  12966. (getRefCount): New function.
  12967. To add notice log level and the switch to write log to stdout. This
  12968. switch is configurable per log level.
  12969. * src/Logger.h
  12970. (notice): New function.
  12971. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12972. constant.
  12973. * src/LogFactory.cc
  12974. (getInstance): The use of NullLogger was removed. A log message with
  12975. notice log level was made written to stdout along with log file.
  12976. * src/NullLogger.h
  12977. (notice): New function.
  12978. * src/SimpleLogger.h
  12979. (writeHeader): Added the 'file' argument.
  12980. (writeLog): Added the 'file' argument.
  12981. (writeFile): New function.
  12982. (stdoutField): New variable.
  12983. (SimpleLogger): Removed the default constructor.
  12984. (SimpleLogger): Made the default value of logfile 0.
  12985. (debug): Added 'virtual' keyword.
  12986. (info): Added 'virtual' keyword.
  12987. (warn): Added 'virtual' keyword.
  12988. (error): Added 'virtual' keyword.
  12989. (notice): New function.
  12990. (setStdout): New function.
  12991. * src/SimpleLogger.cc
  12992. (WRITE_LOG): Replaced writeLog with writeFile.
  12993. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12994. (SimpleLogger): Removed the default constructor.
  12995. (setStdout): New function.
  12996. (writeLog): Added the handling of NOTICE log level.
  12997. (writeFile): New function.
  12998. (notice): New function.
  12999. * src/TorrentMan.h: Updated doc.
  13000. * src/BitfieldMan.h: Updated doc.
  13001. * src/TrackerWatcherCommand.cc
  13002. (execute): Return true if error occurred in the request to the tracker
  13003. and halt is requested.
  13004. * src/TrackerUpdateCommand.cc
  13005. (execute): Return true if error occurred in the request to the tracker
  13006. and halt is requested.
  13007. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13008. DownloadEngine:
  13009. * src/TorrentConsoleDownloadEngine.h
  13010. (onSelectiveDownloadingCompletes): Removed.
  13011. * src/TorrentConsoleDownloadEngine.cc
  13012. (onSelectiveDownloadingCompletes): Removed.
  13013. * src/TorrentDownloadEngine.h
  13014. (onEndOfRun): Added 'virtual' keyword.
  13015. (afterEachIteration): Removed.
  13016. (onSelectiveDownloadingCompletes): Removed.
  13017. * src/TorrentDownloadEngine.cc
  13018. (onEndOfRun): Removed filenameFixed.
  13019. (afterEachIteration): Removed.
  13020. * src/TorrentMan.cc
  13021. (completePiece): Call onDownloadComplete here.
  13022. (onDownloadComplete): Added 2 log messages.
  13023. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13024. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13025. * src/NameResolver.h: Added the prototype declaration of callback().
  13026. To support c-ares library:
  13027. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13028. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13029. * src/FtpInitiateConnectionCommand.h:
  13030. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13031. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13032. * src/HttpInitiateConnectionCommand.h:
  13033. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13034. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13035. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13036. #1542285 by tizianomueller)
  13037. * src/HttpInitiateConnectionCommand.cc:
  13038. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13039. * src/FtpInitiateConnectionCommand.cc:
  13040. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13041. * src/DownloadEngine.h:
  13042. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13043. * src/DownloadEngine.cc:
  13044. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13045. To fix the bug that causes compilation failure with metalink-support
  13046. disabled(bug#1543587):
  13047. * src/main.cc: Fixed with the patch by tizianomueller.
  13048. * Release 0.7.2
  13049. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13050. * src/main.cc
  13051. (main): Added a message to inform users that aria2 is starting to
  13052. verify checksum.
  13053. * src/RequestInfo.cc
  13054. (printDownloadAbortMessage): Added a message to inform users that
  13055. transfer can be resumed.
  13056. * src/FeatureConfig.cc
  13057. (FEATURE_ASYNC_DNS): New definition.
  13058. (FeatureConfig): Added aysnc DNS entry.
  13059. To replace CommandUuid with Command* in SocketEntry and
  13060. NameResolverEntry:
  13061. * src/DownloadEngine.h
  13062. (CommandUuids): Removed.
  13063. (SocketEntry::commandUuid): Removed.
  13064. (SocketEntry::command): New variable.
  13065. (SocketEntry::SocketEntry): Updated.
  13066. (SocketEntry::operator==): Updated.
  13067. (NameResolverEntry::commandUuid): Removed.
  13068. (NameResolverEntry::command): New variable.
  13069. (NameResolverEntry::NameResolverEntry): Updated.
  13070. (NameResolverEntry::operator==): Updated.
  13071. (waitData): Changed the argument type.
  13072. (addSocketForReadCheck): Changed the argument type.
  13073. (deleteSocketForReadCheck): Changed the argument type.
  13074. (addSocketForWriteCheck): Changed the argument type.
  13075. (deleteSocketForWriteCheck): Changed the argument type.
  13076. (addNameResolverCheck): Changed the argument type.
  13077. (deleteNameResolverCheck): Changed the argument type.
  13078. * src/DownloadEngine.cc
  13079. (FindCommand): Removed.
  13080. (run): Removed activeUuid. Added activeCommands instead.
  13081. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13082. (AccumulateActiveCommand): New function object.
  13083. (waitData): Use AccumulateActiveCommand.
  13084. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13085. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13086. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13087. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13088. (addNameResolverCheck): Use Command instead of CommandUuid.
  13089. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13090. * src/AbstractCommand.cc
  13091. (disableReadCheckSocket): Updated according to the changes in
  13092. DownloadEngine.
  13093. (setReadCheckSocket): Updated according to the changes in
  13094. DownloadEngine.
  13095. (disableWriteCheckSocket): Updated according to the changes in
  13096. DownloadEngine.
  13097. (setWriteCheckSocket): Updated according to the changes in
  13098. DownloadEngine.
  13099. (setNameResolverCheck): Updated according to the changes in
  13100. DownloadEngine.
  13101. (disableNameResolverCheck): Updated according to the changes in
  13102. DownloadEngine.
  13103. * src/AbstractCommand.cc
  13104. (disableReadCheckSocket): Updated according to the changes in
  13105. DownloadEngine.
  13106. (setReadCheckSocket): Updated according to the changes in
  13107. DownloadEngine.
  13108. (disableWriteCheckSocket): Updated according to the changes in
  13109. DownloadEngine.
  13110. (setWriteCheckSocket): Updated according to the changes in
  13111. DownloadEngine.
  13112. * release 0.7.1
  13113. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13114. To handle the case where some BitTorrent tracker requires all letters
  13115. except for [A-Za-z0-9] is URL encoded.
  13116. * src/Util.h
  13117. (torrentUrlencode): New function.
  13118. * src/Util.cc
  13119. (ctype.h): Included.
  13120. (torrentUrlencode): New function.
  13121. * src/TrackerWatcherCommand.cc
  13122. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13123. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13124. To add asynchronous DNS support(libares):
  13125. * src/AbstractCommand.h
  13126. (setNameResolverCheck): New function.
  13127. (disableNameResolverCheck): New function
  13128. (resolveHostname): New function.
  13129. * src/AbstractCommand.cc
  13130. (setNameResolverCheck): New function.
  13131. (disableNameResolverCheck): New function
  13132. (resolveHostname): New function.
  13133. * src/FtpInitiateConnectionCommand.h
  13134. (nameResolver): New function.
  13135. * src/FtpInitiateConnectionCommand.cc
  13136. (Util.h): Included.
  13137. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13138. disableWriteCheckSocket.
  13139. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13140. (executeInternal): Added async DNS support.
  13141. * src/HttpInitiateConnectionCommand.h
  13142. (nameResolver): New function.
  13143. * src/HttpInitiateConnectionCommand.cc
  13144. (DlRetryEx.h): Included.
  13145. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13146. disableWriteCheckSocket.
  13147. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13148. (executeInternal): Added async DNS support.
  13149. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13150. by extern "C" declaration.
  13151. * src/NameResolver.cc: New class.
  13152. * src/Util.h:
  13153. (isNumberAndDotsNotation): New function
  13154. * src/Util.cc
  13155. (isNumberAndDotsNotation): New function.
  13156. * src/DownloadEngine.h
  13157. (NameResolver.h): Included.
  13158. (NameResolverEntry): New class.
  13159. (NameResolverEntries): New type definition.
  13160. (addNameResolverCheck): New function.
  13161. (deleteNameResolverCheck): New function.
  13162. * src/DownloadEngine.cc
  13163. (run): Initialize cp with 0.
  13164. (SetDescriptor::operator()): Added for NameResolverEntry.
  13165. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13166. (waitData): Check nameResolver entries.
  13167. (updateFdSet): Update fds in nameResolver entries.
  13168. (addNameResolverCheck): New function.
  13169. (deleteNameResolverCheck): new function.
  13170. * src/PeerInteractionCommand.cc
  13171. (executeInternal): Fixed wrong socket handling.
  13172. * src/main.cc
  13173. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13174. * src/Util.cc
  13175. (fileChecksum): Removed the call to ctx.digestReset().
  13176. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13177. * po/ru.po: Azamat sent me Russian translation.
  13178. * src/FtpNegotiateCommand.cc
  13179. (recvGreeting): Call disableWriteCheckSocket just after
  13180. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13181. (recvRetr): Recognized status code 125 as a acceptable response code.
  13182. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13183. case-insesitive filesystem(BUG#1531057).
  13184. * src/Time.h: Renamed as TimeA2.h.
  13185. * src/Time.cc: Renamed as TimeA2.cc.
  13186. * src/TimeA2.h: New class.
  13187. * src/TimeA2.cc: New class.
  13188. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13189. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13190. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13191. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13192. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13193. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13194. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13195. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13196. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13197. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13198. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13199. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13200. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13201. * release 0.7.0
  13202. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13203. * src/PeerChokeCommand.h
  13204. (PeerChokeCommand): Rearranged the arguments.
  13205. * src/PeerChokeCommand.cc
  13206. (PeerChokeCommand): Rearranged the arguments.
  13207. * src/MetalinkEntry.h
  13208. (Checksum.h): Included.
  13209. (md5): Removed.
  13210. (sha1): Removed.
  13211. (checksum): New variable.
  13212. (operator=): Updated.
  13213. (check): Removed.
  13214. * src/prefs.h
  13215. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13216. (PREF_FOLLOW_TORRENT): New definition.
  13217. (PREF_SELECT_FILE): New definition.
  13218. (PREF_FOLLOW_METALINK): New definition.
  13219. * src/MetalinkResource.h
  13220. (TYPE_HTTPS): Added to enum TYPE.
  13221. * src/TorrentMan.cc
  13222. (~TorrentMan): Rewritten.
  13223. * src/MultiDiskWriter.cc
  13224. (MultiDiskAdaptor): Updated according to the changes in
  13225. MessageDigestContext.
  13226. (~MultiDiskAdaptor): Updated according to the changes in
  13227. MessageDigestContext.
  13228. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13229. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13230. * src/Util.h
  13231. (fileChecksum): Updated according to the changes in
  13232. MessageDigestContext.
  13233. * src/Util.cc
  13234. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13235. (fileChecksum): Updated according to the changes in
  13236. MessageDigestContext.
  13237. * src/messageDigest.h: Rewritten.
  13238. * src/MetalinkEntry.cc
  13239. (check): Removed.
  13240. (Supported): Updated.
  13241. (dropUnsupportedResource): Fixed a memory leak.
  13242. * src/ShaVisitor.cc
  13243. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13244. (~ShaVisitor): Updated according to the changes in
  13245. MessageDigestContext.
  13246. (visit): Updated according to the changes in MessageDigestContext.
  13247. * src/main.cc
  13248. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13249. command-line option added.
  13250. * src/DownloadEngine.h
  13251. (SocketEntry): New class.
  13252. (SocketEntries): New definition.
  13253. (PairFind): Removed.
  13254. (SockCmdMap): Removed.
  13255. * src/DownloadEngine.cc
  13256. (DownloadEngine): Rewritten.
  13257. (~DownloadEngine): Rewritten.
  13258. (run): Renamed activeCommandUuids as activeUuids.
  13259. (SetDescriptor): Rewritten.
  13260. (AccumulateActiveCommandUuid): Removed.
  13261. (AccumulateActiveUuid): New function object.
  13262. (waitData): Rewritten.
  13263. (updateFdSet): Rewritten.
  13264. (addSocket): Rewritten.
  13265. (deleteSocket): Rewritten.
  13266. (addSocketForReadCheck): Rewritten.
  13267. (deleteSocketForReadCheck): Rewritten.
  13268. (addSocketForWriteCheck): Rewritten.
  13269. (deleteSocketForWriteCheck): Rewritten.
  13270. * src/Xml2MetalinkProcessor.cc
  13271. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13272. * src/DownloadCommand.cc
  13273. (executeInternal): Added the check routine for lowest speed limit.
  13274. * src/AbstractDiskWriter.cc
  13275. (AbstractDiskWriter): Updated according to the changes in
  13276. MessageDigestContext.
  13277. (~AbstractDiskWriter): Updated according to the changes in
  13278. MessageDigestContext.
  13279. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13280. * src/RequestInfo.h: New class.
  13281. * src/UrlRequestInfo.h: New class.
  13282. * src/UrlRequestInfo.cc: New class.
  13283. * src/TorrentRequestInfo.h: New class.
  13284. * src/TorrentRequestInfo.cc: New class.
  13285. * src/MetalinkRequestInfo.h: New class.
  13286. * src/MetalinkRequestInfo.cc: New class.
  13287. * src/Checksum.h: New class.
  13288. * src/DownloadEngineFactory.h: New class.
  13289. * src/DownloadEngineFactory.cc: New class.
  13290. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13291. * src/Option.h
  13292. (getAsBool): New function.
  13293. * src/Option.cc
  13294. (prefs.h): Included.
  13295. (defined): 0-length value is now recognized as undefined.
  13296. (getAsInt): Rewritten.
  13297. (getAsLLInt): Rewritten.
  13298. (getAsBool): New function.
  13299. * src/FeatureConfig.h: Rewritten.
  13300. * src/FeatureConfig.cc: Rewritten.
  13301. * src/prefs.h
  13302. (PREF_STDOUT_LOG): New definition.
  13303. (PREF_LOG): New definition.
  13304. (PREF_DIR): New definition.
  13305. (PREF_OUT): New definition.
  13306. (PREF_SPLIT): New definition.
  13307. (PREF_DAEMON): New definition.
  13308. (PREF_REFERER): New definition.
  13309. (PREF_TORRENT_FILE): New definition.
  13310. (PREF_LISTEN_PORT): New definition.
  13311. (PREF_METALINK_FILE): New definition.
  13312. (PREF_METALINK_VERSION): New definition.
  13313. (PREF_METALINK_LANGUAGE): New definition.
  13314. (PREF_METALINK_OS): New definition.
  13315. (PREF_METALINK_SERVERS): New definition.
  13316. * src/main.cc
  13317. (main): Following command-line parameters are now put into Option
  13318. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13319. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13320. metalinkLanguage, metalinkOs, metalinkServers
  13321. To fix the bug that aria2 can not handle http response header properly.
  13322. * src/HttpHeader.cc
  13323. (put): Made name lowercased.
  13324. (defined): Made name lowercased.
  13325. (getFirst): Made name lowercased.
  13326. (get): Made name lowercased.
  13327. (getFirstAsInt): Rewritten.
  13328. (getFirstAsLLInt): Rewritten.
  13329. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13330. * src/TorrentMan.h:
  13331. (advertisePiece): Updated doc.
  13332. (getAdvertisedPieceIndexes): Updated doc.
  13333. (removeAdvertisedPiece); New function.
  13334. * src/TorrentMan.cc
  13335. (FindElapsedHave): New function object.
  13336. (removeAdvertisedPiece): New function.
  13337. * src/HaveEraseCommand.h: New class.
  13338. * src/HaveEraseCommand.cc: New class.
  13339. * src/FeatureConfig.h: New class.
  13340. * src/FeatureConfig.cc: New class.
  13341. * src/Request.h
  13342. (defaultPorts): Removed.
  13343. * src/Request.cc
  13344. (FeatureConfig.h): Included.
  13345. (Request): Removed the statements related to defaultPorts.
  13346. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13347. A default port number is now retrieved from FeatureConfig.
  13348. * src/main.cc
  13349. (HaveEraseCommand.h): Included.
  13350. (showVersion): Added the output of feature list.
  13351. (main): Added HaveEraseCommand to command queue in BitTorrent
  13352. downloading.
  13353. * src/PeerInteractionCommand.h
  13354. (chokeCheckPoint): Commented out.
  13355. (periodicExecPoint): New variable.
  13356. * src/PeerInteractionCommand.cc
  13357. (executeInternal): Following methods are now called in at least every
  13358. 0.5 seconds to reduce CPU usage:
  13359. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13360. checkHave(), sendKeepAlive().
  13361. (checkLongTimePeerChoking): Commented out.
  13362. * src/BitfieldMan.h
  13363. (getNthBitIndex): Changed the method signature.
  13364. (getMissingIndexRandomly): Changed the method signature.
  13365. * src/BitfieldMan.cc
  13366. (getNthBitIndex): Rewritten
  13367. (getMissingIndexRandomly): Rewritten.
  13368. (hasMissingPiece): Rewritten.
  13369. (getMissingIndex): Refactored.
  13370. (getMissingUnusedIndex); Refactored.
  13371. (getMissingIndex): Refactored.
  13372. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13373. * src/PeerMessage.h
  13374. (Piece.h): Included.
  13375. (SharedHandle.h): Included.
  13376. (invalidate): New variable.
  13377. (uploading): New variable.
  13378. (isInvalidate): New function.
  13379. (isUploading): New function.
  13380. (onPush): New function.
  13381. (onChoked): New function.
  13382. (onCanceled): New function.
  13383. (onAbortPiece): New function.
  13384. (PeerMessageHandle): New type definition.
  13385. * src/PeerMessage.cc
  13386. (PeerMessage): Added the initialization for invalidate and uploading.
  13387. * src/CancelMessage.h
  13388. (CancelMessage): Rewritten.
  13389. * src/RejectMessage.h
  13390. (RejectMessage): Rewritten.
  13391. * src/Metalinker.h
  13392. (operator=): Defined.
  13393. * src/MetaEntry.h
  13394. (operator=): Defined.
  13395. * src/MetalinkResource.h
  13396. (operator=): Defined.
  13397. * src/AllowedFastMessage.h
  13398. (AllowedFastMessage): Rewritten.
  13399. * src/HandshakeMessage.h
  13400. (HandshakeMessage): New function(overload).
  13401. * src/HandshakeMessage.cc
  13402. (HandshakeMessage): Rewritten.
  13403. (init): New function.
  13404. * src/HaveMessage.h
  13405. (HaveMessage): Rewritten.
  13406. * src/Time.h
  13407. (operator=): Defined the function body here.
  13408. * src/Time.cc
  13409. (operator=): Removed.
  13410. * src/SocketCore.h
  13411. (operator==): Defined here.
  13412. (operator!=): Defined here.
  13413. (operator<): Defined here.
  13414. * src/SocketCore.cc
  13415. (operator==): Removed.
  13416. (operator<): Removed.
  13417. * src/BitfieldMan.h
  13418. (operator=): Defined the function body here.
  13419. * src/BitfieldMan.cc
  13420. (operator=): Removed.
  13421. * src/TorrentMan.h
  13422. (deleteErrorPeer): Removed.
  13423. (deleteUnusedPeer); New function.
  13424. * src/TorrentMan.cc
  13425. (addPeer): Call deleteUnusedPeer.
  13426. (deleteErrorPeer): Removed.
  13427. (deleteUnusedPeer): New function.
  13428. * src/PeerAbstractCommand.h
  13429. (setNoCheck): New function.
  13430. (noCheck): New variable.
  13431. * src/PeerAbstractCommand.cc
  13432. (PeerAbstractCommand): Added the initialization of noCheck.
  13433. (execute): Added a check for noCheck.
  13434. (setNoCheck): New function.
  13435. * src/Util.h
  13436. (stdio.h): Included.
  13437. * src/Util.cc
  13438. (unistd.h): Included.
  13439. * src/DefaultDiskWriter.cc
  13440. (unistd.h): Included.
  13441. * src/Peer.h
  13442. (operator==): Defined the function body here.
  13443. (operator!=): Defined the function body here.
  13444. * src/Peer.cc
  13445. (operator==): Removed.
  13446. (operator!=): Removed.
  13447. * src/Piece.h
  13448. (Piece): Defined the function body here(copy constructor).
  13449. (operator=): Defined the function body here.
  13450. (operator==): Defined the function body here.
  13451. * src/Piece.cc
  13452. (Piece): Removed(copy constructor).
  13453. (operator=): Removed.
  13454. (operator==): Removed.
  13455. * src/PeerMessageUtil.h
  13456. (ChokeMessage.h): Removed.
  13457. (UnchokeMessage.h): Removed.
  13458. (InterestedMessage.h): Removed.
  13459. (NotInterestedMessage.h): Removed.
  13460. (HaveMessage.h): Removed.
  13461. (BitfieldMessage.h): Removed.
  13462. (RequestMessage.h): Removed.
  13463. (CancelMessage.h): Removed.
  13464. (PieceMessage.h): Removed.
  13465. (HandshakeMessage.h): Removed.
  13466. (KeepAliveMessage.h): Removed.
  13467. (PortMessage.h): Removed.
  13468. (HaveAllMessage.h): Removed.
  13469. (HaveNoneMessage.h): Removed.
  13470. (PeerConnection.h): Removed.
  13471. (HandshakeMessage.h): Included.
  13472. * src/BitfieldMessage.h
  13473. (init): New function.
  13474. (BitfieldMessage): Rewritten.
  13475. (BitfieldMessage): New function(overload).
  13476. * src/RequestSlot.h
  13477. (operator=): Defined the function body here.
  13478. (operator==): Defined the function body here.
  13479. * src/RequestSlot.cc
  13480. (operator=): Removed.
  13481. (operator==): Removed.
  13482. To remove the dependency on the PeerMessage subclass from
  13483. PeerInteraction:
  13484. * src/PeerMessageFactory.h: New class.
  13485. * src/PeerMessageFactory.cc: New class.
  13486. * src/SimplePeerMessage.cc
  13487. (send): If invalidate is true then do nothing.
  13488. * src/PeerInteractionCommand.cc
  13489. (HandshakeMessage.h): Included.
  13490. (KeepAliveMessage.h): Included.
  13491. (ChokeMessage.h): Included.
  13492. (UnchokeMessage.h): Included.
  13493. (HaveMessage.h): Included.
  13494. (executeInternal): Call setNoCheck().
  13495. Removed setWriteCheckSocket(socket).
  13496. * src/PeerInteraction.h
  13497. (ChokeMessage.h): Removed.
  13498. (UnchokeMessage.h): Removed.
  13499. (InterestedMessage.h): Removed.
  13500. (NotInterestedMessage.h): Removed.
  13501. (HaveMessage.h): Removed.
  13502. (BitfieldMessage.h): Removed.
  13503. (RequestMessage.h): Removed.
  13504. (CancelMessage.h): Removed.
  13505. (PieceMessage.h): Removed.
  13506. (HandshakeMessage.h): Removed.
  13507. (KeepAliveMessage.h): Removed.
  13508. (PortMessage.h): Removed.
  13509. (HaveAllMessage.h): Removed.
  13510. (HaveNoneMessage.h): Removed.
  13511. (RejectMessage.h): Removed.
  13512. (AllowedFastMessage.h): Removed.
  13513. (SuggestPieceMessage.h): Removed.
  13514. (PeerMessageFactory.h): Included.
  13515. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13516. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13517. (PeerMessageFactory): New variable.
  13518. (createPeerMessage): Removed.
  13519. (createHandshakeMessage): Removed.
  13520. (setPeerMessageCommonProperty): Removed.
  13521. (addRequestSlot): New function.
  13522. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13523. (getPeerMessageFactory): New function.
  13524. (createRequestMessage): Removed.
  13525. (createCancelMessage): Removed.
  13526. (createPieceMessage): Removed.
  13527. (createHaveMessage): Removed.
  13528. (createChokeMessage): Removed.
  13529. (createUnchokeMessage): Removed.
  13530. (createInterestedMessage): Removed.
  13531. (createNotInterestedMessage): Removed.
  13532. (createBitfieldMessage): Removed.
  13533. (createKeepAliveMessage): Removed.
  13534. (createHaveAllMessage): Removed.
  13535. (createHaveNoneMessage): Removed.
  13536. (createRejectMessage): Removed.
  13537. (createAllowedFastMessage): Removed.
  13538. * src/PeerInteraction.cc
  13539. (PeerInteraction): Allocate PeerMessageFactory here.
  13540. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13541. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13542. PieceMessage::ID.
  13543. (addMessage): Simplified by using PeerMessage::onPush().
  13544. (addRequestSlot): New function.
  13545. (rejectAllPieceMessageInQueue): Simplified by using
  13546. PeerMessage::onChoked().
  13547. (rejectPieceMessageInQueue): Simplified by using
  13548. PeerMessage::onCanceled().
  13549. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13550. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13551. (createHandshakeMessage): Removed.
  13552. (createPeerMessage): Removed.
  13553. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13554. (setPeerMessageCommonProperty): Removed.
  13555. (createRequestMessage): Removed.
  13556. (createCancelMessage): Removed.
  13557. (createPieceMessage): Removed.
  13558. (createHaveMessage): Removed.
  13559. (createChokeMessage): Removed.
  13560. (createUnchokeMessage): Removed.
  13561. (createInterestedMessage): Removed.
  13562. (createNotInterestedMessage): Removed.
  13563. (createBitfieldMessage): Removed.
  13564. (createKeepAliveMessage): Removed.
  13565. (createHaveAllMessage): Removed.
  13566. (createHaveNoneMessage): Removed.
  13567. (createRejectMessage): Removed.
  13568. (createAllowedFastMessage): Removed.
  13569. * src/PieceMessage.h
  13570. (createRejectMessage): New function.
  13571. (PieceMessage): Rewritten.
  13572. (onChoked): New function.
  13573. (onCanceled): New function.
  13574. * src/PieceMessage.cc
  13575. (send): If invalidate is true then do nothing, just return.
  13576. (createRejectMessage): New function.
  13577. (onChoked): New function.
  13578. (onCanceled): New function.
  13579. * src/RequestMessage.h
  13580. (RequestMessage): Rewritten.
  13581. (onPush): New function.
  13582. (onAbortPiece): New function.
  13583. * src/RequestMessage.cc
  13584. (onPush): New function.
  13585. (onAbortPiece): New function.
  13586. Update fd_set when a socket is added or deleted in order to improve
  13587. performance:
  13588. * src/DownloadEngine.h
  13589. (rfdset): New variable.
  13590. (wfdset): New variable.
  13591. (updateFdSet): New function.
  13592. * src/DownloadEngine.cc
  13593. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13594. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13595. (waitData): Copy rfdset and wfdset.
  13596. (updateFdSet): New function.
  13597. (addSocket): Call updateFdSet.
  13598. (deleteSocket): Call updateFdSet.
  13599. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13600. To add the support for Metalink3.0 backward compatible links:
  13601. * src/Request.h
  13602. (SAFE_CHARS): Added '#'.
  13603. (METALINK_MARK): New definition.
  13604. * src/Request.cc
  13605. (parseUrl): Added the support for Metalink3.0 backward compatible
  13606. links.
  13607. etc
  13608. * src/PeerInteraction.cc
  13609. (MsgPushBack): Removed.
  13610. (sendMessages): Use STL copy and back_inserter.
  13611. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13612. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13613. * src/TorrentMan.h
  13614. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13615. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13616. * src/SharedHandle.h: New class.
  13617. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13618. * src/HttpResponseCommand.h
  13619. (HttpResponseCommand): Wrapped Socket.
  13620. * src/SocketCore.h
  13621. (operator==): New function.
  13622. (operator!=): New function.
  13623. (operator<): New function.
  13624. (getSockfd): New function.
  13625. (isOpen): New function.
  13626. (writeData): New function.
  13627. * src/SocketCore.cc
  13628. (operator==): New function.
  13629. (operator!=): New function.
  13630. (operator<): New function.
  13631. * src/AbstractCommand.h
  13632. (socket): Changed its type to SocketHandle.
  13633. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13634. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13635. (disableReadCheckSocket): New function.
  13636. (disableWriteCheckSocket): New function.
  13637. (readCheckTarget): Changed its type to SocketHandle.
  13638. (writeCheckTarget): Changed its type to SocketHandle.
  13639. (AbstractCommand): Replaced Socket with SocketHandle.
  13640. * src/AbstractCommand.cc
  13641. (AbstractCommand): Replaced Socket with SocketHandle.
  13642. (~AbstractCommand): Removed the deallocation for Socket object.
  13643. (disableReadCheckSocket): New function.
  13644. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13645. (disableWriteCheckSocket): New function.
  13646. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13647. * src/HttpDownloadCommand.cc
  13648. (DownloadCommand): Replaced Socket with SocketHandle.
  13649. * src/PeerAbstractCommand.h
  13650. (socket): Changed its type to SocketHandle.
  13651. (peer): Changed its type to PeerHandle.
  13652. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13653. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13654. (disableReadCheckSocket): New function.
  13655. (disableWriteCheckSocket): New function.
  13656. (readCheckTarget): Changed its type to SocketHandle.
  13657. (writeCheckTarget): Changed its type to SocketHandle.
  13658. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13659. Replaced Peer with PeerHandle.
  13660. * src/HttpRequestCommand.cc
  13661. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13662. Use disableReadCheckSocket.
  13663. * src/PeerInitiateConnectionCommand.h
  13664. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13665. * src/PeerChokeCommand.cc
  13666. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13667. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13668. (execute): Use PeerHandle.
  13669. * src/PeerConnection.h
  13670. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13671. (socket): Changed its type to SocketHandle.
  13672. (PeerConnection): Replaced Socket with SocketHandle.
  13673. * src/PeerConnection.cc
  13674. (PeerConnection): Replaced Socket with SocketHandle.
  13675. * src/PeerInteractionCommand.h
  13676. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13677. Replaced Peer with PeerHandle.
  13678. * src/PeerInteractionCommand.cc
  13679. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13680. Replaced Peer with PeerHandle.
  13681. (executeInternal): Use disableWriteCheckSocket.
  13682. Use HandshakeMessageHandle.
  13683. (receiveMessages): Use PeerMessageHandle.
  13684. (prepareForNextPeer): Use PeerHandle.
  13685. * src/HttpProxyRequestCommand.h
  13686. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13687. * src/HttpResponseCommand.cc
  13688. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13689. * src/TorrentMan.cc
  13690. (nullPeer): Added external reference.
  13691. (~TorrentMan): Removed the deallocation of the elements of peers.
  13692. (addPeer): Rewritten.
  13693. (isPeerAvailable): Use nullPeer.
  13694. (deleteOldpeers): Replaced with deleteErrorPeer.
  13695. (deleteErrorPeer): New function.
  13696. (getPeer): Use PeerHandle and nullPeer.
  13697. (hasMissingPiece): Replaced Peer with PeerHandle.
  13698. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13699. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13700. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13701. (getMissingPiece): Replaced Peer with PeerHandle.
  13702. * src/FtpNegotiateCommand.cc
  13703. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13704. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13705. (recvGreeting): Use disableWriteCheckSocket.
  13706. (recvPasv): Removed the allocation of Socket.
  13707. Use disableReadCheckSocket.
  13708. (sendRestPasv): Use disableWriteCheckSocket.
  13709. (recvRetr): Changed assertion.
  13710. * src/PeerInteraction.h
  13711. (SharedHandle.h): Included SharedHandle.h.
  13712. (PeerMessageHandle): New type definition.
  13713. (HandshakeMessageHandle): New type definition.
  13714. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13715. (peer): Changed its type to PeerHandle.
  13716. (createHandshakeMessage): Replaced HandshakeMessage with
  13717. HandshakeMessageHandle.
  13718. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13719. (PeerInteraction): Replaced Peer with PeerHandle.
  13720. Replaced Socket with SocketHandle.
  13721. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13722. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13723. (receiveHandshake): Replaced HandshakeMessage with
  13724. HandshakeMessageHandle.
  13725. * src/PeerInteraction.cc
  13726. (PeerInteraction): Replaced Peer with PeerHandle.
  13727. Replaced Socket with SocketHandle.
  13728. (~PeerInteraction): Removed the deallocation of the elements of
  13729. messageQueue.
  13730. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13731. (isSendingMessageInProgress): Replaced PeerMessage with
  13732. PeerMessageHandle.
  13733. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13734. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13735. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13736. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13737. (abortPiece): Use PeerMessageHandle.
  13738. (receiveHandshake): Replaced HandshakeMessage with
  13739. HandshakeMessageHandle. Removed try-catch block.
  13740. (createHandshakeMessage): Replaced HandshakeMessage with
  13741. HandshakeMessageHandle.
  13742. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13743. Removed try-catch block.
  13744. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13745. * src/HttpProxyResponseCommand.cc
  13746. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13747. * src/FtpTunnelResponseCommand.h
  13748. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13749. * src/HttpConnection.cc
  13750. (HttpConnection): Replaced Socket with SocketHandle.
  13751. * src/PeerAbstractCommand.cc
  13752. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13753. (~PeerAbstractCommand): Removed the deallocation of socket.
  13754. Use disableReadCheckSocket, disableWriteCheckSocket.
  13755. (disableReadCheckSocket): New function.
  13756. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13757. (disableWriteCheckSocket): New function.
  13758. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13759. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13760. * src/FtpTunnelRequestCommand.cc
  13761. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13762. (~FtpTunnelRequestCommand): Corrected indentation.
  13763. * src/DownloadCommand.h
  13764. (DownloadCommand): Replaced Socket with SocketHandle.
  13765. * src/PeerListenCommand.cc
  13766. (PeerListenCommand): Removed the initialization of socket.
  13767. (~PeerListenCommand): Removed the deallocation of socket.
  13768. (bindPort): Use SocketHandle.
  13769. (execute): Use SocketHandle and PeerHandle.
  13770. * src/FtpDowndloadCommand.cc
  13771. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13772. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13773. * src/main.cc
  13774. (main): Corrected indentation.
  13775. * src/HttpInitiateConnectionCommand.cc
  13776. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13777. (executeInternal): Removed the allocation of socket.
  13778. * src/HttpRequestCommand.h
  13779. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13780. * src/FtpNegotiationCommand.h
  13781. (dataSocket): Changed its type to SocketHandle.
  13782. (serverSocket): Changed its type to SocketHandle.
  13783. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13784. * src/TorrentMan.h
  13785. (MAX_PEER_UPDATE): Removed.
  13786. (MAX_PEERS): New definition.
  13787. (Peers): The element is now of type PeerHandle.
  13788. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13789. (getPeer): Replaced Peer with PeerHandle.
  13790. (deleteOldErrorPeers): Removed.
  13791. (deleteErrorPeer): New function.
  13792. (hasMissingPiece): Replaced Peer with PeerHandle.
  13793. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13794. (getMissingPiece): Replaced Peer with PeerHandle.
  13795. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13796. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13797. (addActivePeer): Replaced Peer with PeerHandle.
  13798. (deleteActivePeer): Replaced Peer with PeerHandle.
  13799. Added a check for the return value of find.
  13800. * src/FtpTunnelResponseCommand.cc
  13801. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13802. * src/FtpInitiateConnectionCommand.cc
  13803. (executeInternal): Removed the allocation of socket.
  13804. * src/DownloadEngine.h
  13805. (Sockets): An element is now of type SocketHandle.
  13806. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13807. (CommandUuids): New type definition.
  13808. (rsockets): Changed its type to SockCmdMap.
  13809. (wsockets): Changed its type to SockCmdMap.
  13810. (addSocket): Rewritten.
  13811. (deleteSocket): Rewritten.
  13812. (addSocketForReadCheck): Rewritten.
  13813. (deleteSocketForReadCheck): Rewritten.
  13814. (addSocketForWriteCheck): Rewritten.
  13815. (deleteSocketForWriteCheck): Rewritten.
  13816. (PairFind): New template class.
  13817. * src/HttpDownloadCommand.h
  13818. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13819. * src/FtpConnection.cc
  13820. (FtpConnection): Replaced Socket with SocketHandle.
  13821. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13822. block.
  13823. * src/InitiateConnectionCommandFactory.cc
  13824. (DlAbortEx.h): Included DlAbortEx.h.
  13825. (createInitiateConnectionCommand): Throw exception if the protocol of
  13826. requested URI is not supported.
  13827. * src/Peer.cc
  13828. (nullPeer): Changed its type to PeerHandle.
  13829. (operator==): New function.
  13830. (operator!=): New function.
  13831. * src/Peer.h
  13832. (SharedHandle.h): Included SharedHandle.h.
  13833. (operator==): New function.
  13834. (operator!=): New function.
  13835. (Peer): Added the default constructor.
  13836. Use resetStatus() to initialize member variables.
  13837. (nullPeer): Removed.
  13838. * src/TrackerUpdateCommand.cc
  13839. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13840. with MIN_PEERS.
  13841. * src/PeerListenCommand.h
  13842. (socket): Changed its type to SocketHandle.
  13843. * src/Command.h
  13844. (CommandUuid): New type definition.
  13845. (uuid): New variable.
  13846. (uuidGen): New variable.
  13847. (Command): Added the initialization of uuid.
  13848. (getUuid): New function.
  13849. * src/Socket.h
  13850. (Socket): Removed.
  13851. (SocketHandle): New type definition.
  13852. * src/DownloadEngine.h
  13853. (FindCommand): New function object.
  13854. (run): The portion of socket check was rewritten.
  13855. (SetDescriptor): New function object.
  13856. (AccumulateActiveCommandUuid): New function object.
  13857. (waitData): Rewritten.
  13858. (addSocket): Rewritten.
  13859. (deleteSocket): Rewritten.
  13860. (addSocketForReadCheck): Rewritten.
  13861. (addSocketForWriteCheck): Rewritten.
  13862. (deleteSocketForReadCheck): Rewritten.
  13863. (deleteSocketForWriteCheck): Rewritten.
  13864. * src/HttpProxyResponseCommand.h
  13865. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13866. * src/HttpConnection.h
  13867. (socket): Changed its type to SocketHandle.
  13868. (HttpConnection): Replaced Socket with SocketHandle.
  13869. * src/PeerInitiateConnectionCommand.cc
  13870. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13871. (executeInternal): Removed the allocation of socket.
  13872. (prepareForNextPeer): Use PeerHandle.
  13873. * src/PeerMessage.h
  13874. (peer): Changed its type to PeerHandle.
  13875. (getPeer): Replaced Peer with PeerHandle.
  13876. (setPeer): Replaced Peer with PeerHandle.
  13877. * src/DownloadCommand.cc
  13878. (DownloadCommand): Replaced Socket with SocketHandle.
  13879. * src/FtpConnection.h
  13880. (socket): Changed its type to SocketHandle.
  13881. (FtpConnection): Replaced Socket with SocketHandle.
  13882. (sendPort); Replaced Socket with SocketHandle.
  13883. * src/FtpDowndloadCommand.h
  13884. (ctrlSocket): Changed its type to SocketHandle.
  13885. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13886. * src/HttpProxyRequestCommand.cc
  13887. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13888. * src/FtpTunnelRequestCommand.h
  13889. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13890. etc
  13891. * src/PeerChokeCommand.h
  13892. (setAllPeerChoked): Removed.
  13893. (setAllPeerResetDelta): Removed.
  13894. * src/PeerChokeCommand.cc
  13895. (setAllPeerChoked): Removed.
  13896. (ChokePeer): New function object.
  13897. (setAllPeerResetDelta): Removed.
  13898. (ResetDelta): New function object.
  13899. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13900. (execute): Show download speed when the local node is a seeder.
  13901. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13902. using STL.
  13903. * src/TrackerWatcherCommand.h
  13904. (MIN_PEERS): Removed.
  13905. * src/TorrentMan.cc
  13906. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13907. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13908. To fix the bug that .aria2 file is not saved if downloading is stopped
  13909. by the errors:it results that aria2 can not resume downloading:
  13910. * src/main.cc
  13911. (normalDownload): Added the call to save().
  13912. (main): Added the deletion of the elements in 'reserved'.
  13913. To fix log:
  13914. * src/PeerInteraction.cc
  13915. (receiveHandshake): Fixed log.
  13916. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13917. To improve download performance in BitTorrent:
  13918. * src/TorrentMan.cc
  13919. (getPeer): Check the number of connections. Return nullPeer if
  13920. it is greater than MAX_PEER_UPDATE.
  13921. This code was originally here, but was removed in 0.5.1.
  13922. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13923. To improve the conditional compilation:
  13924. * src/MultiDiskWriter.h:
  13925. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13926. * src/MultiDiskWriter.cc:
  13927. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13928. * src/Util.h:
  13929. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13930. Added ENABLE_BITTORRENT around computeFastSet().
  13931. * src/Util.cc:
  13932. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13933. Added ENABLE_BITTORRENT around computeFastSet().
  13934. * src/messageDigest.h:
  13935. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13936. * src/ShaVisitor.h:
  13937. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13938. * src/ShaVisitor.cc:
  13939. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13940. * src/main.cc:
  13941. Added ENABLE_BITTORRENT around includes and blocks related to
  13942. BitTorrent.
  13943. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13944. digest support is not available.
  13945. * src/AbstractDiskWriter.h:
  13946. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13947. * src/AbstractDiskWriter.cc:
  13948. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13949. * src/MetalinkEntry.cc
  13950. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13951. support is not available.
  13952. To add command-line options for Metalink:
  13953. * src/main.cc:
  13954. Added metalink-version, metalink-language, metalink-os,
  13955. follow-metalink.
  13956. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13957. * src/main.cc: Use these definition.
  13958. * Release 0.6.0
  13959. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13960. To add Metalink support(http/ftp only):
  13961. * src/AbstractCommand.h
  13962. (tryReserved): New function.
  13963. * src/AbstractCommand.cc
  13964. (execute): Call tryReserved().
  13965. (tryReserved): New function.
  13966. * src/Request.h
  13967. (Requests): New type definition.
  13968. * src/SegmentMan.h
  13969. (reserved): New variable.
  13970. * src/Util.h
  13971. (fileChecksum): New function.
  13972. (toUpper): New function.
  13973. (toLower): New function.
  13974. * src/Util.cc
  13975. (messageDigest.h): Included.
  13976. (trim): Trim \r\n\t.
  13977. (fileChecksum): New function.
  13978. (toUpper): New function.
  13979. (toLower): New function.
  13980. * src/main.cc
  13981. (normalDownload): New function.
  13982. (main): Added 2 command-line options: metalink-file,
  13983. metalink-connection. Their usage has not been written yet.
  13984. * src/MetalinkProcessor.h: New class.
  13985. * src/Xml2MetalinkProcessor.h: New class.
  13986. * src/Xml2MetalinkProcessor.cc: New class.
  13987. * src/MetalinkEntry.h: New class.
  13988. * src/MetalinkEntry.cc: New class.
  13989. * src/MetalinkResource.h: New class.
  13990. * src/MetalinkResource.cc: New class.
  13991. To add md5 message digest checking:
  13992. * src/messageDigest.h: Rewritten.
  13993. * src/MultiDiskWriter.cc: Updated according to the changes in
  13994. messageDigest.h.
  13995. * src/ShaVisitor.cc: Updated according to the changes in
  13996. messageDigest.h.
  13997. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13998. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13999. messageDigest.h.
  14000. To fix a bug that causes segfault when the payload length in peer
  14001. message is less than 0:
  14002. * src/PeerConnection.cc:
  14003. (receiveMessage): Fixed the bug.
  14004. * src/PeerMessageUtil.cc
  14005. (checkLength): Throw an exception if length is less than or equals to
  14006. 0.
  14007. To add new interfaces to Base64 encoding/decoding:
  14008. * src/Base64.h
  14009. (part_encode): Changed the method signature.
  14010. (encode): New function(overload).
  14011. (decode): New function(overload).
  14012. * src/Base64.cc
  14013. (part_encode): Rewritten.
  14014. (encode): Rewritten.
  14015. (encode): New function(overload).
  14016. To prevent a peer to download same piece if there is an error in
  14017. checksum:
  14018. * src/PieceMessage.cc
  14019. (receivedAction): Call peerInteraction->abortPiece().
  14020. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14021. To fix the bug that causes same have message is sent many times to
  14022. a single peer.
  14023. * src/Time.cc
  14024. (isNewer): Use Util::difftv().
  14025. * src/Util.cc
  14026. (difftv): Added a cast to (long long int).
  14027. * src/TorrentMan.cc
  14028. (advertisePiece): Use push_front.
  14029. (getAdvertisedPieceIndexes): A performance improvement was made.
  14030. To fix the bug that sends tracker requests without a sleep interval
  14031. when the number of connections is less than 15.
  14032. * src/TrackerWatcherCommand.cc
  14033. (execute): Now the number of connections is not a factor to decide
  14034. whether or not a tracker request should be sent or not.
  14035. * src/Time.h
  14036. (setTimeInSec): New function.
  14037. * src/Time.cc
  14038. (setTimeInSec): New function.
  14039. etc.
  14040. * src/ChokeMessage.cc
  14041. (receivedAction): Removed peer->snubbing = false
  14042. * src/PeerConnection.h
  14043. (receiveHandshake): Updated doc.
  14044. * src/TorrentMan.h
  14045. (getAdvertisedPieceIndexes): Updated the method signature.
  14046. * src/TorrentMan.cc
  14047. (getAdvertisedPieceIndexes): Updated the method signature.
  14048. * src/Time.h
  14049. (getTimeInMicros): Added a cast to (long long int).
  14050. (getTimeInMillis): Added a cast to (long long int).
  14051. * Release 0.5.2
  14052. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14053. To make a listening socket non-block:
  14054. * src/SocketCore.h
  14055. (setNonBlockingMode): New function.
  14056. * src/SocketCore.cc
  14057. (setNonBlockingMode): New function.
  14058. (beginListen): Added a call to setNonBlockingMode().
  14059. (acceptConnection): Call setNonBlockingMode().
  14060. (setBlockingMode): Updated.
  14061. To handle tracker's NAT-checking:
  14062. * src/PeerConnection.cc
  14063. (receiveHandshake): 'msg' param is filled with received data and
  14064. its length is assigned to 'length' param, even if all handshake
  14065. message is not yet received.
  14066. * src/PeerInteractionCommand.cc
  14067. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14068. a new peer connects to localhost.
  14069. A call to peerInteraction->sendHandshake() was removed because
  14070. it is called from peerInteraction->receiveHandshake(true).
  14071. * src/PeerInteraction.h
  14072. (quickReplied): New variable.
  14073. (receiveHandshake): Added an argument.
  14074. * src/PeerInteraction.cc
  14075. (PeerInteraction): Added the initialization of quickReplied.
  14076. (receiveHandshake): Send handshake message as soon as the info hash
  14077. in a handshake message from a peer is correct.
  14078. To change the random part of peer id and key parameter:
  14079. * src/TorrentMan.h
  14080. (key): New variable.
  14081. * src/TorrentMan.cc
  14082. (setupInternal1): Use Util::randomAlpha() to generate random part
  14083. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14084. key is also generated by Util::randomAlpha() and it is now 8 character
  14085. long.
  14086. * src/Util.h
  14087. (randomAlpha): New function.
  14088. * src/Util.cc
  14089. (randomAlpha): New function.
  14090. * src/TrackerWatcherCommand.cc
  14091. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14092. Added no_peer_id=1.
  14093. Set snubbing flag to false when a choke message is received from a
  14094. snubbed peer.
  14095. * src/ChokeMessage.cc
  14096. (receivedAction): Set snubbing flag to false.
  14097. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14098. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14099. * src/SimpleLogger.h (writeHeader): New function.
  14100. * src/SimpleLogger.cc (writeHeader): New function.
  14101. (writeLog): Fixed the bug that causes segfaults if exception message
  14102. contains an unescaped "%" character.
  14103. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14104. when a tracker request fails.
  14105. * src/Request.cc (parseUrl): Query string is now handled properly.
  14106. * Release 0.5.1
  14107. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14108. To add Time class which represents a specific instant in time and
  14109. its precision is microseconds. Time checking procedures were rewritten
  14110. using this object.
  14111. * src/Time.h: New class.
  14112. * src/Time.cc: New class.
  14113. * src/AbstractCommand.h
  14114. (updateCheckPoint): Removed.
  14115. (isTimeoutDetected): Removed.
  14116. (checkPoint): Changed the type to Time.
  14117. (timeout): New variable.
  14118. (setTimeout): New function.
  14119. * src/AbstractCommand.cc
  14120. (AbstractCommand): Removed the initialization of checkPoint.
  14121. Added the initialization of timeout.
  14122. (updateCheckPoint): Removed.
  14123. (isTimeoutDetected): Removed.
  14124. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14125. * src/PeerChokeCommand.h
  14126. (checkPoint): Changed the type to Time.
  14127. * src/PeerChokeCommand.cc
  14128. (PeerChokeCommand): Removed the initialization of checkPoint.
  14129. (execute): Rewritten using Time object.
  14130. * src/TrackerWatcherCommand.h
  14131. (checkPoint): Changed the type to Time.
  14132. * src/TrackerWatcherCommand.cc
  14133. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14134. (execute): Rewritten.
  14135. * src/ConsoleDownloadEngine.h
  14136. (cp): Changed the type to Time.
  14137. (startup): Changed the type to Time.
  14138. * src/ConsoleDownloadEngine.cc
  14139. (initStatistics): Use cp.reset(), startup.reset().
  14140. (calculateStatistics): Rewritten using Time object.
  14141. * src/PeerAbstractCommand.h
  14142. (updateCheckPoint): Removed.
  14143. (isTimeoutDetected): Removed.
  14144. (checkPoint): Changed the type to Time.
  14145. * src/PeerAbstractCommand.cc
  14146. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14147. (updateCheckPoint): Removed.
  14148. (isTimeoutDetected): Removed.
  14149. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14150. * src/PeerInteractionCommand.cc
  14151. (PeerInteractionCommand): Removed the initializations of struct
  14152. timeval variables.
  14153. * src/PeerInteractionCommand.h
  14154. (keepAliveCheckPoint): Changed the type to Time.
  14155. (chokeCheckPoint): Changed the type to Time.
  14156. (freqCheckPoint): Changed the type to Time.
  14157. (haveCheckTime): Changed the type to Time.
  14158. * src/PeerInteractionCommand.cc
  14159. (executeInternal): Rewritten using Time object.
  14160. (detectMessageFlooding): Rewritten using Time object.
  14161. (checkLongTimePeerChoking): Rewritten using Time object.
  14162. (sendKeepAlive): Rewritten using Time object.
  14163. (checkHave): Rewritten using Time object.
  14164. * src/SleepCommand.h
  14165. (checkPoint): Changed the type to Time.
  14166. * src/SleepCommand.cc
  14167. (SleepCommand): Removed the initialization of checkPoint.
  14168. (execute): Rewritten using Time object.
  14169. * src/TorrentAutoSaveCommand.h
  14170. (checkPoint): Changed the type to Time.
  14171. * src/TorrentAutoSaveCommand.cc
  14172. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14173. (execute): Rewritten.
  14174. * src/DownloadCommand.h
  14175. (sw): Changed the type to Time.
  14176. * src/DownloadCommand.cc
  14177. (DownloadCommand): Removed the initialization of sw.
  14178. (executeInternal): Rewritten.
  14179. * src/RequestSlot.h
  14180. (dispatchedTime): Changed the type to Time.
  14181. * src/RequestSlot.cc
  14182. (RequestSlot): Removed the call to setDispatchedTime().
  14183. (setDispatchedTime): Rewirtten.
  14184. (isTimeout): Rewritten.
  14185. (getLatencyInMillis): Rewritten.
  14186. * src/TorrentDownloadEngine.h
  14187. (cp): Changed the type to Time[2].
  14188. (startup): Changed the type to Time.
  14189. * src/TorrentDownloadEngine.cc
  14190. (initStatistics): Rewritten.
  14191. (calculateStatistics): Rewritten.
  14192. * src/DownloadEngine.cc
  14193. (run): Rewritten.
  14194. To detect all attempts to connect to the tracker are failed:
  14195. * src/AbstractCommand.cc
  14196. (execute): Increment e->segmentMan->errors if a command aborted.
  14197. * src/SegmentMan.h
  14198. (errors): New variable.
  14199. * src/SegmentMan.cc
  14200. (SegmentMan): Added the initialization of errors.
  14201. (init): Added the initialization of errors.
  14202. * src/TrackerWatcherCommand.cc
  14203. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14204. request was failed.
  14205. To handle snubbed peers:
  14206. * src/PeerChokeCommand.cc
  14207. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14208. (execute): Snubbed peers don't get unchoked.
  14209. * src/PeerInteraction.h
  14210. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14211. * src/PeerInteraction.cc
  14212. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14213. back the requested 16k block in 60 seconds.
  14214. * src/PieceMessage.cc
  14215. (receivedAction): A peer's snubbed state is cleard if it sends
  14216. the requested 16k block in 60 seconds.
  14217. * src/Peer.h
  14218. (snubbing): New variable.
  14219. * src/Peer.cc
  14220. (resetStatus): Added snubbed = false.
  14221. To fix the bug that causes have message is not sent:
  14222. * src/PeerInteractionCommand.cc
  14223. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14224. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14225. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14226. * src/TorrentMan.h
  14227. (HaveEntry): New class.
  14228. (advertisePiece): Rewritten.
  14229. (getAdvertisedPieceIndexes): Rewritten.
  14230. (Haves): Changed the type.
  14231. (getAdvertisedPieceIndexes): Added an argument.
  14232. Others:
  14233. * src/TorrentMan.h
  14234. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14235. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14236. * src/TorrentMan.cc
  14237. (getPeer): Don't check the number of connections here.
  14238. (setupInternal1): Changed peerId.
  14239. * src/PeerInteractionCommand.h
  14240. (KEEP_ALIVE_INTERVAL): New definition.
  14241. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14242. * src/main.cc
  14243. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14244. * src/DownloadEngine.h: Removed unnecessary header includes.
  14245. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14246. To fix the bug that causes segfaults if a tracker returns a zero-length
  14247. list as "peers":
  14248. * src/TrackerUpdateCommand.cc
  14249. (execute): Added a check to see wether the type of peers is Data*.
  14250. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14251. * Release 0.5.0
  14252. To fix compile issue with gcc3:
  14253. * src/CancelMessage.h
  14254. (ID): Renamed as ID_t
  14255. (ID_t): New enum.
  14256. * src/RejectMessage.h
  14257. (ID): Renamed as ID_t
  14258. (ID_t): New enum.
  14259. * src/SuggestPieceMessage.h
  14260. (ID): Renamed as ID_t
  14261. (ID_t): New enum.
  14262. * src/AllowedFastMessage.h
  14263. (ID): Renamed as ID_t
  14264. (ID_t): New enum.
  14265. * src/PortMessage.h
  14266. (ID): Renamed as ID_t
  14267. (ID_t): New enum.
  14268. * src/HaveNoneMessage.h
  14269. (ID): Renamed as ID_t
  14270. (ID_t): New enum.
  14271. * src/KeepAliveMessage.h
  14272. (ID): Renamed as ID_t
  14273. (ID_t): New enum.
  14274. * src/HaveAllMessage.h
  14275. (ID): Renamed as ID_t
  14276. (ID_t): New enum.
  14277. * src/UnchokeMessage.h
  14278. (ID): Renamed as ID_t
  14279. (ID_t): New enum.
  14280. * src/BitfieldMessage.h
  14281. (ID): Renamed as ID_t
  14282. (ID_t): New enum.
  14283. * src/PieceMessage.h
  14284. (ID): Renamed as ID_t
  14285. (ID_t): New enum.
  14286. * src/RequestMessage.h
  14287. (ID): Renamed as ID_t
  14288. (ID_t): New enum.
  14289. * src/NotInterestedMessage.h
  14290. (ID): Renamed as ID_t
  14291. (ID_t): New enum.
  14292. * src/ChokeMessage.h
  14293. (ID): Renamed as ID_t
  14294. (ID_t): New enum.
  14295. * src/InterestedMessage.h
  14296. (ID): Renamed as ID_t
  14297. (ID_t): New enum.
  14298. * src/HaveMessage.h
  14299. (ID): Renamed as ID_t
  14300. (ID_t): New enum.
  14301. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14302. * src/PeerAbstractCommand.h
  14303. (beforeSocketCheck): Removed.
  14304. * src/PeerAbstractCommand.cc
  14305. Modified in order to call executeInternal() even if socket check
  14306. and upload limit check fail.
  14307. * src/PeerInteractionCommand.h
  14308. (keepAlive): Removed.
  14309. (sendKeepAlive): New function.
  14310. (checkHave): New function.
  14311. (beforeSocketCheck): Removed.
  14312. * src/PeerInteractionCommand.cc
  14313. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14314. calls to checkHave() and sendKeepAlive().
  14315. (keepAlive): Renamed to sendKeepAlive().
  14316. (sendKeepAlive): New function.
  14317. (beforeSocketCheck): Removed.
  14318. (checkHave): New function.
  14319. * src/BitfieldMan.cc
  14320. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14321. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14322. 0.
  14323. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14324. * src/TorrentMan.h
  14325. (UsedPieces): Removed.
  14326. (Pieces): New type definition.
  14327. * src/Piece.h: Updated doc.
  14328. * src/Peer.h
  14329. (totalLength): Removed.
  14330. * src/Peer.cc
  14331. (updateLatency): Fixed the latency calculation.
  14332. * src/TorrentMan.cc
  14333. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14334. than or equal to MAX_PEER_LIST_SIZE.
  14335. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14336. then return false.
  14337. (deleteOldErrorPeers): Rewritten.
  14338. (deleteUsedPiece): Fixed the miss use of STL remove.
  14339. * src/PeerInteraction.h
  14340. (Pieces): Removed.
  14341. (deleteTimeoutRequestSlot): Removed.
  14342. (deleteCompletedRequestSlot): Removed.
  14343. (checkRequestSlot): New function.
  14344. * src/PeerInteraction.cc
  14345. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14346. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14347. (checkRequestSlot): New function.
  14348. * src/DownloadEngine.cc
  14349. (run): Clear activeSockets before calling waitData().
  14350. (waitData): Removed a call to activeSockets.clear().
  14351. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14352. To attempt to handle EINTR:
  14353. * src/SocketCore.cc
  14354. (isReadable): Added EINTR handling.
  14355. (isWritable): Added EINTR handling.
  14356. To improve the performance:
  14357. * src/AbstractCommand.cc
  14358. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14359. * src/PeerInteractionCommand.h
  14360. (receiveMessage): Renamed as receiveMessages().
  14361. (receiveMessages): New function.
  14362. * src/PeerInteractionCommand.cc
  14363. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14364. () function. detectMessageFlooding() is moved here.
  14365. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14366. (). The flooding detection for have message is comment out.
  14367. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14368. Util::difftv().
  14369. (receiveMessage): Renamed as receiveMessages().
  14370. (receiveMessages): New function.
  14371. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14372. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14373. * src/SleepCommand.cc
  14374. (execute): Use Util::difftvsec() instead of Util::difftv().
  14375. * src/BitfieldMan.h
  14376. (getNthBitIndex): New function.
  14377. (hasMissingPiece): New function.
  14378. (getAllMissingIndexes): New function.
  14379. * src/BitfieldMan.cc
  14380. (countSetBit): Rewritten.
  14381. (getNthBitIndex): New function.
  14382. (getMissingIndexRandomly): Rewritten.
  14383. (hasMissingPiece): New function.
  14384. (getAllMissingIndexes): New function.
  14385. * src/TorrentMan.cc
  14386. (hasMissingPiece): New function.
  14387. (deleteUsedPiece): Rewritten using STL.
  14388. * src/PeerInteraction.cc
  14389. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14390. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14391. (addRequests): Updated the number of pending requests.
  14392. * src/PeerAbstractCommand.cc
  14393. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14394. (execute): Returns true if TorrentMan::isHalt() is true.
  14395. Corrected the condition of upload limit checking.
  14396. * src/Util.h
  14397. (countBit): New function.
  14398. * src/Util.cc
  14399. (nbits): New variable.
  14400. (countBit): New function.
  14401. * src/DownloadEngine.h
  14402. (SockCmdMap): New type definition.
  14403. (waitData): Added an argument.
  14404. (addSocket): Added an argument.
  14405. (addSocketForReadCheck): Added an argument.
  14406. (addSocketForWriteCheck): Added an argument.
  14407. * src/DownloadEngine.cc
  14408. (run): Executes only commands whose sockets are ready to read or write.
  14409. All commands are executed in every 1 second.
  14410. (waitData): Calls select() again if it returned
  14411. EINTR.
  14412. (addSocket): Saves socket and command object pair to the map.
  14413. (deleteSocket): Deletes socket and command object pair from the map.
  14414. (addSocketForReadCheck): Added an argument.
  14415. (addSocketForWriteCheck): Added an argument.
  14416. * src/DownloadCommand.cc
  14417. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14418. To send "event=stopped" to the tracker when the application finishes:
  14419. * src/PeerChokeCommand.h
  14420. (checkPoint): New variable.
  14421. * src/PeerChokeCommand.cc
  14422. (PeerChokeCommand): Added the initialization of checkPoint.
  14423. (execute): The interval check is now done by checkPoint, not
  14424. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14425. * src/TorrentMan.h
  14426. (halt): New function.
  14427. (hasMissingPiece): New function.
  14428. (isHalt): New function.
  14429. (setHalt): New function.
  14430. * src/TorrentMan.cc
  14431. (TorrentMan): Added the initialization of halt.
  14432. * src/TorrentAutoSaveCommand.h
  14433. (checkPoint): New variable.
  14434. * src/PeerListenCommand.cc
  14435. (execute): Returns true if TorrentMan::isHalt() is true.
  14436. * src/main.cc
  14437. (setSignalHander): Added flags argument.
  14438. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14439. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14440. Removed printDownloadAbortMessage() after torrent downloading loop.
  14441. * src/TorrentAutoSaveCommand.cc
  14442. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14443. (execute): Returns true if TorrentMan::isHalt() is true.
  14444. The interval check is now done by checkPoint, not SleepCommand.
  14445. * src/TrackerWatcherCommand.cc
  14446. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14447. event=stopped.
  14448. * src/TrackerUpdateCommand.cc
  14449. (prepareForRetry): Do not use SleepCommand here.
  14450. (execute): Returns true if TorrentMan::isHalt() is true.
  14451. Others:
  14452. * src/TorrentMan.cc
  14453. (getMissingPieceIndex): Updated log message.
  14454. * src/PeerInteraction.cc
  14455. (createPeerMessag): Updated log message.
  14456. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14457. To add the ability to download several pieces in mix in a command and
  14458. increase the number of request slots according to request-cancel
  14459. latency:
  14460. * src/PeerInteractionCommand.cc
  14461. (executeInternal): The number of messages to be received at a time
  14462. is increased from 10 to 50.
  14463. * src/LogFactory
  14464. (getInstance): Added NullLogger.
  14465. * src/NullLogger.h: New class.
  14466. * src/BitfieldMan.h
  14467. (getMissingIndex): New function.
  14468. * src/BitfieldMan.cc
  14469. (getMissingIndex): New function.
  14470. * src/TorrentMan.h
  14471. (checkOutPiece): New function.
  14472. (getMissingPieceIndex): New function.
  14473. (getMissingFastPieceIndex): New function.
  14474. (getMissingFastPiece): New function.
  14475. * src/TorrentMan.cc
  14476. (updatePiece): Rewritten using STL.
  14477. (syncPiece): Rewritten using STL.
  14478. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14479. checkOutPiece().
  14480. (getMissingPieceIndex): New function.
  14481. (getMissingFastPieceIndex): New function.
  14482. (getMissingFastPiece): New function.
  14483. (checkOutPiece): New function.
  14484. * src/PeerInteraction.h
  14485. (Pieces): New type definition.
  14486. (piece): Removed.
  14487. (pieces): New variable.
  14488. (getNewPieceAndSendInterest): Added the "piece" argument.
  14489. (abortPiece): Added the "piece" argument.
  14490. (abortAllPieces): New function.
  14491. (isInRequestSlot): New function.
  14492. (hasDownloadPiece): Added the "index" argument.
  14493. (setDownloadPiece): Removed.
  14494. (getDownloadPiece): Added the "index" argument.
  14495. (updatePiece): New function.
  14496. (createRequestMessage): Added the "index" argument.
  14497. * src/PeerInteraction.cc
  14498. (onChoked): Rewritten.
  14499. (abortPiece): Rewirtten.
  14500. (abortAllPieces): New function.
  14501. (deleteTimeoutRequestSlot): Rewritten.
  14502. Clarified code a little bit.
  14503. (deleteCompletedRequestSlot): Rewritten.
  14504. (isInRequestSlot): New function.
  14505. (syncPiece): Rewritten.
  14506. (updatePiece): New function.
  14507. (getNewPieceAndSendInterest): Rewritten.
  14508. (addRequests): Rewritten.
  14509. (getDownloadPiece): Rewritten.
  14510. (hasDownloadPiece): Rewritten.
  14511. (createRequestMessage): Added the "index" argument.
  14512. * src/common.h
  14513. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14514. (DIV_FLOOR): New definition.
  14515. * src/PieceMessage.cc
  14516. (receivedAction): Update request-piece latency here.
  14517. * src/RequestSlot.h
  14518. (getLatencyInMillis): New function.
  14519. * src/RequestSlot.cc
  14520. (isTimeout): Rewritten using getLatencyInMillis.
  14521. (getLatencyInMillis): New function.
  14522. * src/Piece.h
  14523. (operator==): New function.
  14524. (getMissingBlockIndex): New function.
  14525. * src/Piece.cc
  14526. (operator==): New function.
  14527. (getMissingBlockIndex): New function.
  14528. * src/Peer.h
  14529. (DEFAULT_LATENCY): New definition.
  14530. (latency): New variable.
  14531. (updateLatency): New function.
  14532. (getLatency): New function.
  14533. * src/Peer.cc
  14534. (resetStatus): Reset latecy.
  14535. (updateLatency): New function.
  14536. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14537. * src/SocketCore.cc
  14538. (isReadable): Added secure to the condition.
  14539. * src/HttpConnection.cc
  14540. (receiveResponse): Fixed a bug that causes no response header
  14541. exception.
  14542. * src/Peer.h
  14543. (getFastSet): Fixed the return value type.
  14544. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14545. To remove a wait from download loop:
  14546. * src/DownloadEngine.cc
  14547. (run): Comment out shortSleep.
  14548. To rewrite the message handling:
  14549. * src/SimplePeerMessage.h: New class.
  14550. * src/SimplePeerMessage.cc: New class.
  14551. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14552. (msg): New variable.
  14553. (create): New function.
  14554. (send): Removed.
  14555. (getMessage): New function.
  14556. (getMessageLength): New function.
  14557. * src/CancelMessage.cc
  14558. (create): New function.
  14559. (receivedAction): Replaced deleteRequestMessageInQueue with
  14560. rejectPieceMessageInQueue.
  14561. (send): Removed.
  14562. (getMessage): New function.
  14563. (getMessageLength): New function.
  14564. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14565. (msg): New variable.
  14566. (msgLength): New variable.
  14567. (~BitfieldMessage): Deleted msg.
  14568. (send): Removed.
  14569. (getMessage): New function.
  14570. (getMessageLength): New function.
  14571. * src/BitfieldMessage.cc
  14572. (create): New function.
  14573. (send): Removed.
  14574. (getMessage): New function.
  14575. (getMessageLength): New function.
  14576. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14577. (msg): New variable.
  14578. (sendPredicate): New function.
  14579. (onSendComplete): New function.
  14580. (send): Removed.
  14581. (getMessage): New function.
  14582. (getMessageLength): New function.
  14583. (create): New function.
  14584. * src/ChokeMessage.cc
  14585. (create): New function.
  14586. (send): Removed.
  14587. (sendPredicate): New function.
  14588. (getMessage): New function.
  14589. (getMessageLength): New function.
  14590. (onSendComplete): New function.
  14591. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14592. (msg): New variable.
  14593. (send): Removed.
  14594. (getMessage): New function.
  14595. (getMessageLength): New function.
  14596. * src/KeepAliveMessage.cc
  14597. (send): Removed.
  14598. (getMessage): New function.
  14599. (getMessageLength): New function.
  14600. * src/PortMessage.h
  14601. (create): New function.
  14602. (receivedAction): Updated log message.
  14603. * src/PortMessage.cc: New file.
  14604. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14605. (msg): New variable.
  14606. (sendPredicate): New function.
  14607. (onSendComplete): New function.
  14608. (create): New function.
  14609. (send): Removed.
  14610. (getMessage): New function.
  14611. (getMessageLength): New function.
  14612. * src/UnchokeMessage.cc
  14613. (create): New function.
  14614. (send): Removed.
  14615. (sendPredicate): New function.
  14616. (getMessage): New function.
  14617. (getMessageLength): New function.
  14618. (onSendComplete): New function.
  14619. * src/PieceMessage.h
  14620. (leftPieceDataLength): Removed.
  14621. (leftDataLength): New variable.
  14622. (headerSend): New variable.
  14623. (pendingCount): New variable.
  14624. (msgHeader): New variable.
  14625. (sendPieceData): New function.
  14626. (incrementPendingCount): New function.
  14627. (isPendingCountMax): New function.
  14628. (create): New function.
  14629. (getMessageHeader): New function.
  14630. (getMessageHeaderLength): New function.
  14631. * src/PieceMessage.cc
  14632. (create): New function.
  14633. (getMessageHeader): New function.
  14634. (getMessageHeaderLength): New function.
  14635. (send): Rewritten.
  14636. (sendPieceData): New function.
  14637. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14638. (msg): New variable.
  14639. (create): New function.
  14640. (getMessage): New function.
  14641. (getMessageLength): New function.
  14642. * src/HaveMessage.cc
  14643. (create): New function.
  14644. (send): Removed.
  14645. (sendPieceData): New function.
  14646. (getMessage): New function.
  14647. (getMessageLength): New function.
  14648. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14649. (msg): New variable.
  14650. (create): New function.
  14651. (send): Removed.
  14652. (getMessage): New function.
  14653. (getMessageLength): New function.
  14654. * src/RequestMessage.cc
  14655. (create): New function.
  14656. (receivedAction): Added the handling of fast extension.
  14657. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14658. (send): Removed.
  14659. (getMessage): New function.
  14660. (getMessageLength): New function.
  14661. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14662. (msg): New variable.
  14663. (sendPredicate): New function.
  14664. (onSendComplete): New function.
  14665. (create): New function.
  14666. (getMessage): New function.
  14667. (getMessageLength): New function.
  14668. * src/InterestedMessage.cc
  14669. (create): New function.
  14670. (send): Removed.
  14671. (sendPieceData): New function.
  14672. (getMessage): New function.
  14673. (getMessageLength): New function.
  14674. (onSendComplete): New function.
  14675. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14676. (msg): New variable.
  14677. (sendPieceData): New function.
  14678. (onSendComplete): New function.
  14679. (create): New function.
  14680. (send): Removed.
  14681. (getMessage): New function.
  14682. (getMessageLength): New function.
  14683. * src/NotInterestedMessage.cc
  14684. (create): New function.
  14685. (send): Removed.
  14686. (sendPredicate): New function.
  14687. (getMessage): New function.
  14688. (getMessageLength): New function.
  14689. (onSendComplete): New function.
  14690. * src/AllowedFastMessage.h: New class.
  14691. * src/AllowedFastMessage.cc: New class.
  14692. * src/RejectMessage.h: New class.
  14693. * src/RejectMessage.cc: New class.
  14694. * src/SuggestPieceMessage.h: New class.
  14695. * src/SuggestPieceMessage.cc: New class.
  14696. * src/HaveAllMessage.h: New class.
  14697. * src/HaveAllMessage.cc: New class.
  14698. * src/HaveNoneMessage.h: New class.
  14699. * src/HaveNoneMessage.cc: New class.
  14700. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14701. (msg): New variable.
  14702. (reserved): New variable.
  14703. (create): New function.
  14704. (getId): New function.
  14705. (receivedAction): New function.
  14706. (getMessage): New function.
  14707. (getMessageLength): New function.
  14708. (isFastExtensionSupported): New function.
  14709. * src/HandshakeMessage.cc
  14710. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14711. (create): New function.
  14712. (getMessage): New function.
  14713. (getMessageLength): New function.
  14714. (toString): Added the output of reserved field.
  14715. (check): Added const qualifier.
  14716. (isFastExtensionSupported): New function.
  14717. * src/PeerMessageUtil.h
  14718. (createChokeMessage): Removed.
  14719. (createUnchokeMessage): Removed.
  14720. (createInterestedMessage): Removed.
  14721. (createNotInterestedMessage): Removed.
  14722. (createHaveMessage): Removed.
  14723. (createBitfieldMessage): Removed.
  14724. (createRequestMessage): Removed.
  14725. (createCancelMessage): Removed.
  14726. (createPieceMessage): Removed.
  14727. (createPortMessage): Removed.
  14728. (createChokeMessage): Removed.
  14729. (createUnchokeMessage): Removed.
  14730. (createInterestedMessage): Removed.
  14731. (createNotInterestedMessage): Removed.
  14732. (createHaveMessage): Removed.
  14733. (createBitfieldMessage): Removed.
  14734. (createRequestMessage): Removed.
  14735. (createCancelMessage): Removed.
  14736. (createPieceMessage): Removed.
  14737. (createKeepAliveMessage): Removed.
  14738. (createHandshakeMessage): Removed.
  14739. (setIntParam): New function.
  14740. (createPeerMessageString): New function.
  14741. * src/PeerMessageUtil.cc
  14742. (createChokeMessage): Removed.
  14743. (createUnchokeMessage): Removed.
  14744. (createInterestedMessage): Removed.
  14745. (createNotInterestedMessage): Removed.
  14746. (createHaveMessage): Removed.
  14747. (createBitfieldMessage): Removed.
  14748. (createRequestMessage): Removed.
  14749. (createCancelMessage): Removed.
  14750. (createPieceMessage): Removed.
  14751. (createPortMessage): Removed.
  14752. (createRequestMessage): Removed.
  14753. (createCancelMessage): Removed.
  14754. (createPieceMessage): Removed.
  14755. (createHaveMessage): Removed.
  14756. (createChokeMessage): Removed.
  14757. (createUnchokeMessage): Removed.
  14758. (createInterestedMessage): Removed.
  14759. (createNotInterestedMessage): Removed.
  14760. (createBitfieldMessage): Removed.
  14761. (createKeepAliveMessage): Removed.
  14762. (createHandshakeMessage): Removed.
  14763. (setIntParam): New function.
  14764. (createPeerMessageString): New function.
  14765. * src/PeerConnection.h
  14766. (peer): Removed.
  14767. (torrentMan): Removed.
  14768. (createNLengthMessage): Removed.
  14769. (setIntParam): Removed.
  14770. (writeOutgoingMessageLog): Removed all overloaded functions.
  14771. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14772. (sendMessage): New function.
  14773. (sendHandshake): Removed.
  14774. (sendKeepAlive): Removed.
  14775. (sendChoke): Removed.
  14776. (sendUnchoke): Removed.
  14777. (sendInterested): Removed.
  14778. (sendNotInterested): Removed.
  14779. (sendHave): Removed.
  14780. (sendBitfield): Removed.
  14781. (sendRequest): Removed.
  14782. (sendPiece): Removed.
  14783. (sendPieceHeader): Removed.
  14784. (sendPieceData): Removed.
  14785. (sendCancel): Removed.
  14786. (getPeer): Removed.
  14787. * src/PeerConnection.cc
  14788. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14789. (sendHandshake): Removed.
  14790. (sendKeepAlive): Removed.
  14791. (createNLengthMessage): Removed.
  14792. (setIntParam): Removed.
  14793. (writeOutgoingMessageLog): Removed all overloaded functions.
  14794. (sendChoke): Removed.
  14795. (sendUnchoke): Removed.
  14796. (sendInterested): Removed.
  14797. (sendNotInterested): Removed.
  14798. (sendHave): Removed.
  14799. (sendBitfield): Removed.
  14800. (sendRequest): Removed.
  14801. (sendPiece): Removed.
  14802. (sendPieceHeader): Removed.
  14803. (sendPieceData): Removed.
  14804. (sendMessage): New function.
  14805. (sendCancel): Removed.
  14806. * src/PeerInteractionCommand.cc
  14807. (PeerInteractionCommand): Call setUploadLimit.
  14808. (executeInternal): Call setUploadLimit.
  14809. Added the handling of "inProgress" state of handshake message.
  14810. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14811. sendNow().
  14812. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14813. sendNow().
  14814. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14815. * src/TorrentMan.h
  14816. (PEER_ID_LENGTH): New definition.
  14817. (hasAllPieces): New function.
  14818. * src/TorrentMan.cc
  14819. (getMissingPiece): Added the handling of fast extension.
  14820. (cancelPiece): Call updatePiece().
  14821. (hasAllPieces): New function.
  14822. * src/PeerInteraction.h
  14823. (fastSet): New variable.
  14824. (getNewPieceAndSendInterest): Changed the return type to void.
  14825. (send): Renamed as sendMessages.
  14826. (deleteAllRequestSlot): Removed.
  14827. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14828. (cancelAllRequest): Removed all overloaded functions.
  14829. (deleteAllRequestSlot): Removed.
  14830. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14831. (rejectPieceMessageInQueue): New function.
  14832. (rejectAllPieceMessageInQueue): New function.
  14833. (onChoked): New function.
  14834. (isSendingMessageInProgress): New function.
  14835. (getCorrespondingRequestSlot): Changed its arguments.
  14836. (isInFastSet): New function.
  14837. (addFastSetIndex): New function.
  14838. (addRequests): New function.
  14839. (sendNow): Removed.
  14840. (trySendNow): Removed.
  14841. (sendBitfield): New function.
  14842. (sendAllowdFast): New function.
  14843. (createHaveAllMessage): New function.
  14844. (createHaveNoneMessage): New function.
  14845. (createRejectMessage): New function.
  14846. (createAllowedFastMessage): New function.
  14847. * src/PeerInteraction.cc
  14848. (send): Renamed as sendMessages.
  14849. (sendMessages): New function.
  14850. (MsgPushBack): New class.
  14851. (isSendingMessageInProgress): New function.
  14852. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14853. (rejectAllPieceMessageInQueue): New function.
  14854. Added the handling of fast extension.
  14855. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14856. (rejectPieceMessageInQueue): New function.
  14857. Added the handling of fast extension.
  14858. (deleteRequestSlot): Replaced for loop with std::find.
  14859. (onChoked): New function.
  14860. (deleteAllRequestSlot): Removed.
  14861. (abortPiece): Rewirtten.
  14862. (deleteTimeoutRequestSlot): Updated log messages.
  14863. (getCorrespondingRequestSlot): Changed its arguments.
  14864. (cancelAllRequest): Removed all overloaded functions.
  14865. (receiveHandshake): Added the check to see whether an incoming peer
  14866. supports fast extension.
  14867. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14868. PeerMessageUtil.
  14869. (createPeerMessage): Use create() of each message class instead of
  14870. PeerMessageUtil.
  14871. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14872. AllowedFastMessage were added.
  14873. (getNewPieceAndSendInterest): Changed its return value type to void.
  14874. Added the handling of fast extension.
  14875. (addRequests): New function.
  14876. (sendNow): Removed.
  14877. (sendHandshake): Rewritten.
  14878. (trySendNow): Removed.
  14879. (sendBitfield): New function.
  14880. (sendAllowdFast): New function.
  14881. (isInFastSet): New function.
  14882. (addFastSetIndex): New function.
  14883. (createRequestMessage): Use RequestMessage::create instead of
  14884. PeerMessageUtil.
  14885. (createCancelMessage): Use CancelMessage::create instead of
  14886. PeerMessageUtil.
  14887. (createPieceMessage): Use PieceMessage::create instead of
  14888. PeerMessageUtil.
  14889. (createHaveMessage): Use HaveMessage::create instead of
  14890. PeerMessageUtil.
  14891. (createChokeMessage): Use ChokeMessage::create instead of
  14892. PeerMessageUtil.
  14893. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14894. PeerMessageUtil.
  14895. (createInterestedMessage): Use InterestedMessage::create instead of
  14896. PeerMessageUtil.
  14897. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14898. of PeerMessageUtil.
  14899. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14900. PeerMessageUtil.
  14901. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14902. PeerMessageUtil.
  14903. (createHaveAllMessage): New function.
  14904. (createHaveNoneMessage): New function.
  14905. (createRejectMessage): New function.
  14906. (createAllowedFastMessage: New function.
  14907. * src/Util.h
  14908. (sha1Sum): New function.
  14909. (computeFastSet): New function.
  14910. * src/Util.cc
  14911. (sha1Sum): New function.
  14912. (computeFastSet): New function.
  14913. * src/Peer.h
  14914. (fastExtensionEnabled): New variable.
  14915. (fastSet): New variable.
  14916. (setAllBitfield): New function.
  14917. (setFastExtensionEnabled): New function.
  14918. (isFastExtensionEnabled): New function.
  14919. (addFastSetIndex): New function.
  14920. (getFastSet): New function.
  14921. (isInFastSet): New function.
  14922. (countFastSet): New function.
  14923. * src/Peer.cc
  14924. (isInFastSet): New function.
  14925. (addFastSetIndex): New function.
  14926. (setAllBitfield): New function.
  14927. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14928. sockets.
  14929. * src/PeerAbstractCommand.cc
  14930. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14931. and uploadLimit.
  14932. (execute): Changed the procedure of checking sockets. The upload speed
  14933. checking were added.
  14934. (setUploadLimit): New function.
  14935. (setUploadLimitCheck): New function.
  14936. * src/PeerAbstractCommand.h
  14937. (setUploadLimit): New function.
  14938. (setUploadLimitCheck): New function.
  14939. (uploadLimit): New variable.
  14940. (uploadLimitCheck): New variable.
  14941. To contact a tracker regularly:
  14942. * src/TrackerWatcherCommand.h (interval): New variable.
  14943. (checkPoint): New variable.
  14944. (TrackerWatcherCommand): Added interval argument.
  14945. * src/TrackerWatcherCommand.cc
  14946. (TrackerWatcherCommand): Initialized checkPoint.
  14947. (execute): Now a tracker is contacted in every specified period.
  14948. If peer list is not needed, send request with numwant=0.
  14949. * src/TrackerUpdateCommand.cc
  14950. (execute): Updated log messages.
  14951. * src/DownloadEngine.cc
  14952. (~DownloadEngine): Removed two asserts.
  14953. (waitData): Uncommented wfds. May be a bug fix.
  14954. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14955. * src/PeerInteractionCommand.h
  14956. (checkInactiveConnection): Removed.
  14957. * src/PeerInteractionCommand.cc
  14958. (executeInternal): Removed following function calls:
  14959. detectMessageFlooding(), checkLongTimePeerChoking and
  14960. checkInactiveConnection().
  14961. (checkInactiveConnection): Removed.
  14962. (detectMessageFlooding): Removed function call to
  14963. checkInactiveConnection().
  14964. * src/PeerMessageUtil.h
  14965. (createChokeMessage): New function. Overload.
  14966. (createUnchokeMessage): New function. Overload.
  14967. (createInterestedMessage): New function. Overload.
  14968. (createNotInterestedMessage): New function. Overload.
  14969. (createHaveMessage): New function. Overload.
  14970. (createBitfieldMessage): New function. Overload.
  14971. (createRequestMessage): New function. Overload.
  14972. (createCancelMessage): New function. Overload.
  14973. (createPieceMessage): New function. Overload.
  14974. (createKeepAliveMessage): New function. Overload.
  14975. * src/PeerMessageUtil.cc
  14976. (createChokeMessage): New function. Overload.
  14977. (createUnchokeMessage): New function. Overload.
  14978. (createInterestedMessage): New function. Overload.
  14979. (createNotInterestedMessage): New function. Overload.
  14980. (createHaveMessage): New function. Overload.
  14981. (createBitfieldMessage): New function. Overload.
  14982. (createRequestMessage): New function. Overload.
  14983. (createCancelMessage): New function. Overload.
  14984. (createPieceMessage): New function. Overload.
  14985. (createKeepAliveMessage): New function. Overload.
  14986. * src/SendMessageQueue.cc
  14987. (createRequestMessage): Use PeerMessageUtil.
  14988. (createCancelMessage): Use PeerMessageUtil.
  14989. (createPieceMessage): Use PeerMessageUtil.
  14990. (createHaveMessage): Use PeerMessageUtil.
  14991. (createChokeMessage): Use PeerMessageUtil.
  14992. (createUnchokeMessage): Use PeerMessageUtil.
  14993. (createInterestedMessage): Use PeerMessageUtil.
  14994. (createNotInterestedMessage): Use PeerMessageUtil.
  14995. (createBitfieldMessage): Use PeerMessageUtil.
  14996. (createKeepAliveMessage): Use PeerMessageUtil.
  14997. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14998. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14999. * src/PeerInteraction.h: New class.
  15000. * src/PeerInteraction.cc: New class.
  15001. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15002. Each peer message has its own class.
  15003. * src/PendingMessages.h: Removed.
  15004. * src/PendingMessages.cc: Removed. The sending process was moved to
  15005. each message class.
  15006. * src/RequestSlotMan.h: Removed.
  15007. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15008. SendMessageQueue.
  15009. * src/RequestMessage.h: New class.
  15010. * src/RequestMessage.cc: New class.
  15011. * src/CancelMessage.h: New class.
  15012. * src/CancelMessage.cc: New class.
  15013. * src/BitfieldMessage.h: New class.
  15014. * src/BitfieldMessage.cc: New class.
  15015. * src/ChokeMessage.h: New class.
  15016. * src/ChokeMessage.cc: New class.
  15017. * src/KeepAliveMessage.h: New class.
  15018. * src/KeepAliveMessage.cc: New class.
  15019. * src/PortMessage.h: New class.
  15020. * src/UnchokeMessage.h: New class.
  15021. * src/UnchokeMessage.cc: New class.
  15022. * src/PieceMessage.h: New class.
  15023. * src/PieceMessage.cc: New class.
  15024. * src/HaveMessage.h: New class.
  15025. * src/HaveMessage.cc: New class.
  15026. * src/BitfieldMessage.h: New class.
  15027. * src/BitfieldMessage.cc: New class.
  15028. * src/NotInterestedMessage.h: New class.
  15029. * src/NotInterestedMessage.cc: New class.
  15030. * src/InterestedMessage.h: New class.
  15031. * src/InterestedMessage.cc: New class.
  15032. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15033. (getSendMessageQueue): New function.
  15034. (setSendMessageQueue): New function.
  15035. * src/HandshakeMessage.cc: New class.
  15036. * src/PeerConnection.h (receiveMessage): Changed return value and
  15037. arguments.
  15038. (receiveHandshake): Changed return value and arguments.
  15039. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15040. here.
  15041. (receiveHandshake): Do not create handshake class here.
  15042. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15043. (piece): Removed.
  15044. (syncPiece): Removed.
  15045. (sendInterest): Removed.
  15046. (sendMessages): Removed.
  15047. (createRequestPendingMessage): Removed.
  15048. (checkPieceHash): Removed.
  15049. (erasePieceOnDisk): Removed.
  15050. (getNewPieceAndSendInterest): Removed.
  15051. (onGotNewPice): Removed.
  15052. (onGotWrongPiece): Removed.
  15053. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15054. Removed peerConnection, piece.
  15055. (~PeerInteractionCommand): Removed peerConnection.
  15056. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15057. (syncPiece): Moved to SendMessageQueue.
  15058. (decideChoking): Removed PendingMessage.
  15059. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15060. The action after receiving peer message was moved to each message
  15061. class.
  15062. (onGotNewPice): Moved to SendMessageQueue.
  15063. (onGotWrongPiece): Moved to SendMessageQueue.
  15064. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15065. (sendInterest): Moved to SendMessageQueue.
  15066. (createRequestPendingMessage): Removed.
  15067. (sendMessages): Moved to SendMessageQueue.
  15068. (onAbort): Use SendMessageQueue::abortPiece()
  15069. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15070. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15071. (checkPieceHash): Moved to SendMessageQueue.
  15072. (erasePieceOnDisk): Moved to SendMessageQueue.
  15073. * src/PeerMessageUtil.h
  15074. (createBitfieldMessage): Removed.
  15075. (createHaveMessage): Changed return value and arguments.
  15076. (createBitfieldMessage): Changed return value and arguments.
  15077. (createRequestCancelMessage): Removed.
  15078. (createPieceMessage): Changed return value and arguments.
  15079. (getShortIntParam): New function.
  15080. (checkIndex): Changed arguments.
  15081. (checkBegin): Changed arguments.
  15082. (checkLength): Changed arguments.
  15083. (checkPieceOffset): Removed.
  15084. (checkRange): New function.
  15085. (checkBitfield): Changed arguments.
  15086. (createPeerMessage): Removed.
  15087. (checkIntegrity): Removed.
  15088. (createHandshakeMessage): Changed arguments.
  15089. (createChokeMessage): New function.
  15090. (createUnchokeMessage): New function.
  15091. (createInterestedMessage): New function.
  15092. (createNotInterestedMessage): New function.
  15093. (createRequestMessage): New function.
  15094. (createCancelMessage): New function.
  15095. (createPortMessage): New function.
  15096. * src/PeerMessageUtil.cc
  15097. (createBitfieldMessage): Removed.
  15098. (createHaveMessage): Changed return value and arguments.
  15099. (createBitfieldMessage): Changed return value and arguments.
  15100. (createRequestCancelMessage): Removed.
  15101. (createPieceMessage): Changed return value and arguments.
  15102. (getShortIntParam): New function.
  15103. (checkIndex): Changed arguments.
  15104. (checkBegin): Changed arguments.
  15105. (checkLength): Changed arguments.
  15106. (checkPieceOffset): Removed.
  15107. (checkRange): New function.
  15108. (checkBitfield): Changed arguments.
  15109. (createPeerMessage): Removed.
  15110. (checkIntegrity): Removed.
  15111. (createHandshakeMessage): Changed arguments.
  15112. (createChokeMessage): New function.
  15113. (createUnchokeMessage): New function.
  15114. (createInterestedMessage): New function.
  15115. (createNotInterestedMessage): New function.
  15116. (createRequestMessage): New function.
  15117. (createCancelMessage): New function.
  15118. (createPortMessage): New function.
  15119. * src/PeerMessage.h
  15120. (id): Removed.
  15121. (index): Removed.
  15122. (begin): Removed.
  15123. (length): Removed.
  15124. (bitfield): Removed.
  15125. (bitfieldLength): Removed.
  15126. (block): Removed.
  15127. (blockLength): Removed.
  15128. (inProgress): New variable.
  15129. (cuid): New variable.
  15130. (peer): New variable.
  15131. (sendMessageQueue): New variable.
  15132. (logger): New variable.
  15133. (setBitfield): Removed.
  15134. (getBitfield): Removed.
  15135. (setBlock): Removed.
  15136. (getBlock): Removed.
  15137. (getBitfieldLength): Removed.
  15138. (getBlockLength): Removed.
  15139. (isInProgress): New function.
  15140. (toString): Made pure virtual.
  15141. (check): New function.
  15142. (send): New function.
  15143. (receivedAction): New function.
  15144. (getId): Made pure virtual.
  15145. (setId): Removed.
  15146. (getIndex): Removed.
  15147. (setIndex): Removed.
  15148. (getBegin): Removed.
  15149. (setBegin): Removed.
  15150. (getLength): Removed.
  15151. (setLength): Removed.
  15152. (getCuid): New function.
  15153. (setCuid): New function.
  15154. (getPeer): New function.
  15155. (setPeer): New function.
  15156. (getSendMessageQueue): New function.
  15157. (setSendMessageQueue): New function.
  15158. (ID): Removed.
  15159. * src/PeerMessage.cc
  15160. (setBitfield): Removed.
  15161. (setBlock): Removed.
  15162. (toString): Removed.
  15163. * src/TorrentMan.h
  15164. (getPieceLength): New function.
  15165. (getPieceLength): New function.
  15166. * src/SendMessageQueue.h
  15167. (REQUEST_TIME_OUT): New definition.
  15168. (RequestSlots): New definition.
  15169. (MessageQueue): New definition.
  15170. (requestSlotMan): Removed.
  15171. (pendingMessages): Removed.
  15172. (requestSlots): New variable.
  15173. (messageQueue): New variable.
  15174. (torrentMan): New variable.
  15175. (peerConnection): New variable.
  15176. (peer): New variable.
  15177. (piece): New variable.
  15178. (getNewPieceAndSendInterest): New function.
  15179. (createPeerMessage): New function.
  15180. (createHandshakeMessage): New function.
  15181. (send): Made private.
  15182. (setPeerMessageCommonProperty): New function.
  15183. (deleteAllRequestSlot): New function.
  15184. (deleteRequestMessageInQueue): New function.
  15185. (cancelAllRequest): Made private.
  15186. (cancelAllRequest): Made private.
  15187. (countRequestSlot): Made private.
  15188. (addPendingMessage): Removed.
  15189. (deletePendingPieceMessage): Removed.
  15190. (deletePendingRequestMessage): Removed.
  15191. (addMessage): New function.
  15192. (deletePieceMessageInQueue): New function.
  15193. (deleteTimeoutRequestSlot): Changed argument.
  15194. (deleteCompletedRequestSlot): Changed argument.
  15195. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15196. (getCorrespondingRequestSlot): New function.
  15197. (countPendingMessage): Removed.
  15198. (countMessageInQueue): New function.
  15199. (getTorrentMan): New function.
  15200. (getPeerConnection): New function.
  15201. (hasDownloadPiece): New function.
  15202. (getDownloadPiece): New function.
  15203. (setDownloadPiece): New function.
  15204. (syncPiece): New function.
  15205. (sendMessages): New function.
  15206. (sendNow): New function.
  15207. (trySendNow): New function.
  15208. (abortPiece): New function.
  15209. (sendHandshake): New function.
  15210. (receiveMessage): New function.
  15211. (receiveHandshake): New function.
  15212. (createRequestMessage): New function.
  15213. (createCancelMessage): New function.
  15214. (createPieceMessage): New function.
  15215. (createHaveMessage): New function.
  15216. (createChokeMessage): New function.
  15217. (createUnchokeMessage): New function.
  15218. (createInterestedMessage): New function.
  15219. (createNotInterestedMessage): New function.
  15220. (createBitfieldMessage): New function.
  15221. (createKeepAliveMessage): New function.
  15222. * src/SendMessageQueue.cc
  15223. (SendMessageQueue): Removed requestSlotMan.
  15224. Instantiated peerConnection here.
  15225. (~SendMessageQueue): Removed requestSlotMan.
  15226. Added deletion of peerConnection and the contents of messageQueue.
  15227. (send): Updated according to the change of messageQueue.
  15228. (addPendingMessage): Renamed to addMessage.
  15229. (addMessage): New function.
  15230. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15231. (deletePieceMessageInQueue): New function.
  15232. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15233. (deleteRequestMessageInQueue): New function.
  15234. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15235. here.
  15236. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15237. (...) was moved here.
  15238. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15239. moved here.
  15240. (deleteCompletedRequestSlot):
  15241. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15242. (getCorrespondingRequestSlot):
  15243. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15244. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15245. (countPendingMessage): Renamed to countMessageInQueue.
  15246. (countMessageInQueue): New function.
  15247. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15248. (receiveHandshake): New function.
  15249. (createHandshakeMessage): New function.
  15250. (receiveMessage): New function.
  15251. (createPeerMessage): New function.
  15252. (syncPiece): New function.
  15253. (getNewPieceAndSendInterest): New function.
  15254. (sendMessages): New function.
  15255. (sendNow): New function.
  15256. (trySendNow): New function.
  15257. (sendHandshake): New function.
  15258. (abortPiece): New function.
  15259. (getDownloadPiece): New function.
  15260. (getPeerMessageCommonProperty): New function.
  15261. (createRequestMessage): New function.
  15262. (createCancelMessage): New function.
  15263. (createPieceMessage): New function.
  15264. (createHaveMessage): New function.
  15265. (createChokeMessage): New function.
  15266. (createUnchokeMessage): New function.
  15267. (createInterestedMessage): New function.
  15268. (createNotInterestedMessage): New function.
  15269. (createBitfieldMessage): New function.
  15270. (createKeepAliveMessage): New function.
  15271. To add simple Content-Disposition support:
  15272. * src/HttpResponseCommand.h (determinFilename): New function.
  15273. * src/HttpResponseCommand.cc (executeInternal):
  15274. Use determinFilename(headers) instead of req->getFile() when comparing
  15275. filename.
  15276. (determinFilename): New function.
  15277. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15278. req->getFile().
  15279. (handleOtherEncoding): Use determinFilename(headers) instead of
  15280. req->getFile().
  15281. * src/Util.h (getContentDispositionFilename): New function.
  15282. * src/Util.cc (getContentDispositionFilename): New function.
  15283. * src/LogFactory.h (release): New function.
  15284. * src/LogFactory.cc (release): New function.
  15285. To fix a bug that causes out-of-bound exception when HTTP status
  15286. line is wrong:
  15287. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15288. size.
  15289. * src/common.h (Deleter): New class.
  15290. * src/SegmentMan.cc
  15291. (~SegmentMan): Added deletion of splitter and diskWriter.
  15292. * src/DownloadEngine.h
  15293. (Commands): Use deque.
  15294. (clearQueue): New function.
  15295. * src/DownloadEngine.cc
  15296. (~DownloadEngine): Added deletion of segmentMan.
  15297. (cleanQueue): New function.
  15298. * src/TorrentDownloadEngine.h
  15299. (TorrentDownloadEngine): The implementation was moved to
  15300. TorrentDownloadEngine.cc.
  15301. (~TorrentDownloadEngine): The implementation was moved to
  15302. TorrentDownloadEngine.cc.
  15303. * src/TorrentDownloadEngine.cc
  15304. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15305. * src/main.cc
  15306. (clearRequest): Removed.
  15307. (handler): Added deletion of e.
  15308. (torrentHandler): Added deletion of te.
  15309. (main): Do not share splitter.
  15310. Use Deleter instead of clearRequest.
  15311. Deletion of classes were updated.
  15312. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15313. * src/main.cc (main): Fixed typo.
  15314. * src/message.h: Fixed typo.
  15315. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15316. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15317. To add --select-file command-line option:
  15318. * src/Util.cc
  15319. (unfoldRange): New function.
  15320. (getNum): New function.
  15321. (unfoldSubRange): New function
  15322. * src/main.cc
  15323. (showUsage): Added help message.
  15324. (main): Added --select-file command-line option. Updated the layout of
  15325. file listing.
  15326. * src/common.h
  15327. (Integers): New definition.
  15328. * src/SocketCore.cc
  15329. (writeData): Removed timeout argument.
  15330. (readData): Removed timeout argument.
  15331. (peekData): Removed timeout argument.
  15332. * src/Socket.cc
  15333. (writeData): Removed timeout argument.
  15334. (readData): Removed timeout argument.
  15335. (peekData): Removed timeout argument.
  15336. * Release 0.4.1
  15337. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15338. To deploy upload rate based choking algorithm:
  15339. * src/PeerInteractionCommand.cc
  15340. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15341. peer currently used.
  15342. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15343. download completes. Simplified.
  15344. (receiveMessage): Updated.
  15345. * src/TorrentMan.h
  15346. (activePeers): New variable.
  15347. (addActivePeer): New function.
  15348. (getActivePeers): New function.
  15349. (deleteActivePeer): New function.
  15350. * src/TorrentMan.cc
  15351. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15352. * src/PeerAbstractCommand.cc
  15353. (onAbort): Use peer->resetStatus().
  15354. * src/main.cc
  15355. (PeerChokeCommand.h): Included.
  15356. (main): Added the instance of ChokingCommand to the command queue.
  15357. * src/Peer.h
  15358. (amChoking): Renamed from amChocking
  15359. (chokingRequired): New variable.
  15360. (optUnchoking): New variable.
  15361. (deltaUpload): New variable.
  15362. (deltaDownload): New variable.
  15363. (addDeltaUpload): New function.
  15364. (resetDeltaUpload): New function.
  15365. (addDeltaDownload): New function.
  15366. (resetDeltaDownload): New function.
  15367. (addPeerUpload): Added a call to addDeltaUpload.
  15368. (addPeerDownload): Added a call to addDeltaDownload.
  15369. * src/Peer.cc
  15370. (shouldBeChoking): Renamed from shouldChoke.
  15371. (resetStatus): New function.
  15372. * src/PeerChokeCommand.h: New class.
  15373. * src/PeerChokeCommand.cc: New class.
  15374. To add lazy upload speed limiter:
  15375. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15376. statistics calculation to TorrentDownloadEngine.
  15377. * src/TorrentConsoleDownloadEngine.cc
  15378. (sendStatistics): Renamed from printStatistics.
  15379. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15380. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15381. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15382. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15383. calculation.
  15384. (sendStatistics): New function as pure virtual function.
  15385. (getUploadSpeed): New function.
  15386. * src/TorrentDownloadEngine.cc
  15387. (initStatistics): New function.
  15388. (calculateSpeed): New function.
  15389. (calculateStatistics): New function.
  15390. * src/SendMessageQueue.h
  15391. (uploadLength): New variable.
  15392. (send): Added an argument.
  15393. (setUploadLimit): New function.
  15394. (getUploadLimit): New function.
  15395. * src/SendMessageQueue.cc
  15396. (send): Added upload speed limiter.
  15397. * src/prefs.h
  15398. (PREF_UPLOAD_LIMIT): New definition.
  15399. * src/PeerInteractionCommand.cc
  15400. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15401. * src/main.cc
  15402. (main): Added --upload-limit option
  15403. For bug fixes:
  15404. * src/main.cc
  15405. (showUsage): Corrected --listen-port help
  15406. Other changes:
  15407. * src/TorrentMan.cc
  15408. (getPeer): Return nullPeer if connection is grather than
  15409. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15410. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15411. To add some useful information to the exception message:
  15412. * src/SocketCore.cc : Updated messages.
  15413. * src/SegmentMan.cc :
  15414. * src/TorrentMan.cc : Updated messages.
  15415. * src/MultiDiskWriter.cc : Updated messages.
  15416. * src/Util.cc : Updated messages.
  15417. * src/AbstractDiskWriter.cc : Updated messages.
  15418. * src/PreAllocationDiskWriter.cc : Updated messages.
  15419. * src/message.cc : Added new messages. Updated some messages.
  15420. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15421. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15422. Updated threshold from 30 to 15.
  15423. * src/AbstractDiskWriter.h (filename): New variable.
  15424. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15425. (createFile): Assigned filename.
  15426. * src/main.cc: Updated the help message for http-auth-scheme.
  15427. * Release 0.4.0
  15428. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15429. To add TrackerUpdateCommand with which replaces
  15430. CompactTrackerResponseProcessor:
  15431. * src/TrackerWatcherCommand.h (req): Removed.
  15432. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15433. if the number of peer connections are less than 30.
  15434. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15435. * src/SegmentMan.h (diskWriter): New function.
  15436. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15437. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15438. (main): Use TrackerUpdateCommand.
  15439. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15440. (req): New variable.
  15441. (setTrackerResponseProcessor): Removed.
  15442. (getTrackerResponseProcessor): Removed.
  15443. (processTrackerResponse): Removed.
  15444. * src/DownloadEngine.h (diskWriter): Removed.
  15445. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15446. to torrentMan->processTrackerResponse().
  15447. To add Util::expandBuffer:
  15448. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15449. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15450. * src/Util.h (expandBuffer): New function.
  15451. To fix the bug that causes segmentation fault when "-l ." is specified
  15452. in command-line option:
  15453. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15454. (openFile): New function.
  15455. (closeFile): New function.
  15456. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15457. (~SimpleLogger): Call closeFile();
  15458. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15459. * src/main.cc (main): Added a check to see logger is configured
  15460. properly.
  15461. To enable HTTP authentication without specifying "--http-auth-scheme"
  15462. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15463. * src/HttpConnection.cc (createRequest): Send Authorization header
  15464. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15465. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15466. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15467. * src/Peer.cc (shouldChoke): Updated algorithm.
  15468. * src/message.h (EX_AUTH_FAILED): New definition.
  15469. (EX_FILE_OPEN): New definition.
  15470. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15471. if status == 401.
  15472. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15473. if req->isTorrent == true.
  15474. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15475. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15476. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15477. (createFile): Updated message.
  15478. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15479. To add a readout of estimated remaining time to normal HTTP/FTP
  15480. downloads:
  15481. * src/ConsoleDownloadEngine.h (startup): New variable.
  15482. (startupLength): New variable.
  15483. (isStartupLengthSet): New variable.
  15484. (avgSpeed): New variable.
  15485. (eta): New variable.
  15486. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15487. estimated remaining time.
  15488. (initStatistics): Initialized newly added variables.
  15489. (calculateStatistics): Calculate average speed and estimated remaining
  15490. time.
  15491. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15492. * src/TrackerDownloadCommand.h: Removed.
  15493. * src/TrackerDownloadCommand.cc: Removed.
  15494. * src/TrackerInitCommand.h: Removed.
  15495. * src/TrackerInitCommand.cc: Removed.
  15496. * src/TrackerUpdateCommand.h: Removed.
  15497. * src/TrackerUpdateCommand.cc: Removed.
  15498. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15499. url written in TrackerInitCommand was moved here. Do not create
  15500. tracker request command if torrentMan->trackers != 0.
  15501. * src/CompactTrackerResponseProcessor.h: New class.
  15502. * src/CompactTrackerResponseProcessor.cc: New class.
  15503. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15504. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15505. Decoupled TorrentDownloadEngine from this.
  15506. * src/SegmentMan.h (init): New function.
  15507. * src/SegmentMan.cc (init): New function.
  15508. * src/TorrentMan.h (responseProcessor): New variable.
  15509. (trackers): New variable.
  15510. (setTrackerResponseProcessor): New function.
  15511. (getTrackerResponseProcessor): New function.
  15512. (processTrackerResponse): New function.
  15513. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15514. (processTrackerResponse): New function.
  15515. * src/main.cc (main): Use ByteArrayDiskWriter and
  15516. CompactTrackerResponseProcessor.
  15517. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15518. processTrackerResponse().
  15519. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15520. readout.
  15521. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15522. which indicates download has completed.
  15523. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15524. (closeFile): fd >= 0, not fd > 0
  15525. * src/main.cc (main): Added short cut for show-files.
  15526. Added short cut for torrent-file.
  15527. Added new command-line option listen-port.
  15528. Updated i18n messages.
  15529. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15530. To add LogFactory which creates singleton logger:
  15531. * src/LogFactory.h: New class.
  15532. * src/LogFactory.cc: New class.
  15533. * src/Command.h (logger): New variable.
  15534. (Constructor): Use LogFactory.
  15535. * src/AbstractCommand.cc: Use Command::logger
  15536. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15537. Use LogFactory.
  15538. * src/SegmentSplitter.h : Made logger protected.
  15539. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15540. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15541. * src/DownloadEngine.h : Made logger protected.
  15542. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15543. * src/PeerInteractionCommand.cc : Use Command::logger.
  15544. * src/HttpResponseCommand.cc : Use Command::logger.
  15545. * src/SegmentMan.h : Made logger private.
  15546. * src/TorrentMan.h : Made logger private.
  15547. * src/TorrentMan.cc : Use LogFactory.
  15548. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15549. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15550. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15551. Use LogFactory.
  15552. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15553. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15554. Use LogFactory.
  15555. * src/DownloadCommand.cc : Use Command::logger.
  15556. * src/PeerAbstractCommand.cc : Use Command::logger.
  15557. * src/PeerListenCommand.cc : Use Command::logger.
  15558. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15559. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15560. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15561. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15562. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15563. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15564. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15565. Use LogFactory.
  15566. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15567. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15568. Use LogFactory.
  15569. * src/main.cc (main): Use LogFactory.
  15570. * src/DiskAdaptor.h (logger): New variable.
  15571. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15572. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15573. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15574. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15575. parameter to a tracker request.
  15576. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15577. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15578. * src/main.cc (setSignalHander): New function.
  15579. (main): Added a handler for SIGTERM.
  15580. (handler): Updated message.
  15581. (torrentHandler): Updated message.
  15582. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15583. * src/TorrentConsoleDownloadEngine.cc
  15584. (onPartialDownloadingCompletes): Renamed as
  15585. onSelectiveDownloadingCompletes.
  15586. (onSelectiveDownloadingCompletes): Updated message.
  15587. To add DiskAdaptor which abstract DiskWriter family:
  15588. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15589. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15590. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15591. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15592. MultiDiskAdaptor.h.
  15593. (readFileEntry): Changed its arguments.
  15594. (setup): setupDiskWriter is merged into this function.
  15595. (setupDiskWriter): Removed.
  15596. (setFileFilter): New function.
  15597. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15598. made in readFileEntry.
  15599. (getFilePath): Removed.
  15600. (getTempFilePath): Removed.
  15601. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15602. (fixFilename): Removed.
  15603. (copySingleFile): Removed.
  15604. (splitMultiFile): Removed.
  15605. (deleteTempFile): Removed.
  15606. (setFileEntriesToDownload): Removed.
  15607. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15608. (isSelectiveDownloadingMode): New function.
  15609. (setAllMultiFileRequestedState): Removed.
  15610. (finishPartialDownloadingMode): Renamed as
  15611. finishSelectiveDownloadingMode.
  15612. (finishSelectiveDownloadingMode): New function.
  15613. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15614. (getSelectedTotalLength): New function.
  15615. (onDownloadComplete): Use diskAdaptor.
  15616. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15617. (Range): Removed.
  15618. (setMultiFileEntries): Renamed as setFileEntries.
  15619. (setFileEntries): New function.
  15620. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15621. (pieceLength): New variable.
  15622. * src/main.cc (printDownloadCompeleteMessage): New function.
  15623. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15624. (main): Renamed torrent-show-files to show-files.
  15625. Rewritten file contents listing.
  15626. * src/TorrentMan.h (FileEntry): Removed.
  15627. (multiFileTopDir): Removed.
  15628. (multiFileEntries): Removed.
  15629. (diskWriter): Removed.
  15630. (diskAdaptor): New variable.
  15631. * src/DefaultDiskWriter.h (totalLength): New variable.
  15632. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15633. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15634. diskWriter.
  15635. * src/TorrentConsoleDownloadEngine.h
  15636. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15637. (partialTotalLength): Renamed as selectedTotalLength.
  15638. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15639. openExistingFile, otherwise call initAndOpenFile.
  15640. (closeFile): fd > 0, not fd != 0.
  15641. * src/DirectDiskAdaptor.h: New class.
  15642. * src/DirectDiskAdaptor.cc: New class.
  15643. * src/MultiDiskAdaptor.h: New class.
  15644. * src/MultiDiskAdaptor.cc: New class.
  15645. * src/CopyDiskAdaptor.h: New class.
  15646. * src/CopyDiskAdaptor.cc: New class.
  15647. * src/DiskAdaptor.h: New class.
  15648. * src/DiskAdaptor.cc: New class.
  15649. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15650. (PREF_SHOW_FILES): New definition.
  15651. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15652. To add the ability to download multi torrent into respective files
  15653. directly:
  15654. * src/DiskWriter.h (openFile): New function.
  15655. (seek): Removed.
  15656. * src/MultiDiskWriter.h: New class.
  15657. * src/MultiDiskWriter.cc: New class.
  15658. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15659. protected.
  15660. (openFile): New function.
  15661. * src/AbstractDiskWriter.cc (openFile): New function.
  15662. * src/prefs.h (V_FALSE): New definition.
  15663. (PREF_DIRECT_FILE_MAPPING): New definition.
  15664. * src/TorrentMan.h (setupDiskWriter): New function.
  15665. (setAllMultiFileRequestedState): New function.
  15666. (onDownloadComplete): New function.
  15667. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15668. (setupDiskWriter): New function.
  15669. (getFilePath): Updated.
  15670. (getTempFilePath): Updated.
  15671. (getSegmentFilePath): Updated.
  15672. (fixFilename): Updated.
  15673. (deleteTempFile): Updated.
  15674. (setAllMultiFileRequestedState): New function.
  15675. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15676. (finishPartialDownloadingMode): Reset requested flags.
  15677. (onDownloadComplete): New function.
  15678. * src/main.cc: Added --direct-file-mapping option.
  15679. Use TorrentMan::setupDiskWriter().
  15680. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15681. onDownloadComplete().
  15682. To fix ETA bug:
  15683. * src/Util.h (difftvsec): New function.
  15684. * src/Util.cc (difftvsec): New function.
  15685. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15686. type of "elapsed" instead of long long int.
  15687. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15688. The updates of statistics takes place every 1 seconds.
  15689. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15690. (calculateSpeed): Changed its argument signature.
  15691. * src/PeerMessage.cc (toString): Fixed message.
  15692. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15693. To print ETA:
  15694. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15695. completion handling when dealing with
  15696. TorrentMan::isPartialDownloadingMode() == true.
  15697. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15698. New function.
  15699. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15700. (sessionDownloadLength): New variable.
  15701. (avgSpeed): New variable.
  15702. (eta): New variable.
  15703. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15704. new variables: eta, avgSpeed, startup.
  15705. (calculateSpeed): Calculate average speed and ETA.
  15706. (printStatistics): Added ETA.
  15707. * src/Util.h (secfmt): New function.
  15708. * src/Util.cc (secfmt): New function.
  15709. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15710. To detect "keep alive" flooding:
  15711. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15712. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15713. variable: keepAliveCount.
  15714. (detectMessageFlooding): Added "keep alive" flooding detection.
  15715. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15716. received.
  15717. To add the ability to download only specified files in multi-file
  15718. torrent:
  15719. * src/BitfieldMan.h (filterBitfield): New variable.
  15720. (filterEnabled): New variable.
  15721. (setFilterBit): New function.
  15722. (enableFilter): New function.
  15723. (disableFilter): New function.
  15724. (isFilterEnabled): New function.
  15725. (getFilteredTotalLength): New function.
  15726. (getCompletedLength): New function.
  15727. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15728. filterBitfield, filterEnabled.
  15729. (CopyConstructor): Added filterBitfield and filterEnabled.
  15730. (operator==): Added filterBitfield and filterEnabled.
  15731. (Destructor): Added filterBitfield.
  15732. (getMissingIndex): Use filterBitfield.
  15733. (getMissingUnusedIndex): Use filterBitfield.
  15734. (getFirstMissingUnusedIndex): Use filterBitfield.
  15735. (getFirstMissingUnusedIndex): Use filterBitfield.
  15736. (getAllMissingIndexes): Use filterBitfield.
  15737. (countMissingBlock): Use filterBitfield.
  15738. (countBlock): Use filterBitfield.
  15739. (setBitInternal): Added new argument on.
  15740. (setUseBit): Use setBitInternal.
  15741. (unsetUseBit): Use setBitInternal.
  15742. (setBit): Use setBitInternal.
  15743. (unsetBit): Use setBitInternal.
  15744. (isAllBitSet): Use filterBitfield.
  15745. (setFilterBit): New function.
  15746. (addFilter): New function.
  15747. (enableFilter): New function.
  15748. (disableFilter): New function.
  15749. (clearFilter): New function.
  15750. (isFilterEnabled): New function.
  15751. (getFilteredTotalLength): New function.
  15752. (getCompletedLength): New function.
  15753. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15754. Initalized newly added variables.
  15755. [FileEntry](offset): New variable.
  15756. [FileEntry](extracted): New variable.
  15757. [FileEntry](requested): New variable.
  15758. (readFileEntry): New function.
  15759. (option): New variable.
  15760. (splitMultiFile): Removed const qualifier.
  15761. (fixFilename): Removed const qualifier.
  15762. (readFileEntryFromMetaInfoFile): New function.
  15763. (finishPartialDownloadingMode): New function.
  15764. (isPartialDownloadingMode): New function.
  15765. (setFileEntriesToDownload): New function.
  15766. (getCompletedLength): New function.
  15767. (getPartialTotalLength): New function.
  15768. * src/TorrentMan.cc (readFileEntry): New function.
  15769. (setup): Use readFileEntry. If no-preallocation option is specified,
  15770. use DefaultDiskWriter.
  15771. (readFileEntryFromMetaInfoFile): New function.
  15772. (fixFilename): Removed const qualifier.
  15773. (splitMultiFile): Removed const qualifier.
  15774. (setFileEntriesToDownload): New function.
  15775. (isPartialDownloadingMode): New function.
  15776. (finishPartialDownloadingMode): New function.
  15777. (getCompletedLength): New function.
  15778. (getPartialTotalLength): New function.
  15779. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15780. New variable.
  15781. (partialTotalLength): New variable.
  15782. (downloadLength): New variable.
  15783. (totalLength): New variable.
  15784. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15785. Added log.
  15786. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15787. partialTotalLength, downloadLength, totalLength.
  15788. (calculate): Calculate downloadLength and totalLength.
  15789. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15790. * src/main.cc (addCommand): Changed argument signature.
  15791. (main): Added new variable: args. Added new option "torrent-show-files"
  15792. "no-preallocation". Usage is not updated yet.
  15793. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15794. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15795. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15796. Attempt to add the ability to listing file entries in a .torrent file.
  15797. This feature is not yet complete.
  15798. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15799. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15800. (getName): New function.
  15801. * src/TorrentMan.h (getMultiFileEntries): New function.
  15802. (getName): New function.
  15803. * src/main.cc (main): Use above 2 funtion.
  15804. * Release 0.3.2
  15805. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15806. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15807. (detectMessageFlooding): Updated threshold value.
  15808. (checkLongTimePeerChoking): Updated timeout value.
  15809. (getNewPieceAndSendInterest): Added debug log.
  15810. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15811. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15812. (getPeer): Updated.
  15813. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15814. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15815. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15816. is localhost.
  15817. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15818. * src/PendingMessage.cc (processMessage): Not to send piece message
  15819. if peer is not interested in the pieces localhost has.
  15820. * src/Peer.cc (shouldChoke): Updated.
  15821. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15822. * src/Util.cc (isPowerOf): New function.
  15823. * src/Util.h (isPowerOf): New function.
  15824. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15825. whether or not it is power of 2.
  15826. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15827. Added new class SendMessageQueue that includes PendingMessages and
  15828. RequestSlotMan.
  15829. * src/SendMessageQueue.h: New class.
  15830. * src/SendMessageQueue.cc: New class.
  15831. * src/PendingMessage.h: Added new member variable blockIndex and its
  15832. accessors.
  15833. (createRequestMessage): Updated.
  15834. * src/PendingMessage.cc (createRequestMessage): Updated.
  15835. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15836. SendMessageQueue.
  15837. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15838. (receiveMessage): Updated with SendMessageQueue.
  15839. (deletePendingPieceMessage): Removed.
  15840. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15841. (sendInterest): Updated with SendMessageQueue.
  15842. (createRequestPendingMessage): Updated with SendMessageQueue.
  15843. (sendMessages): Updated with SendMessageQueue.
  15844. (onAbort): Updated with SendMessageQueue.
  15845. (keepAlive): Updated with SendMessageQueue.
  15846. (beforeSocketCheck): Updated SendMessageQueue.
  15847. * src/PeerInteractionCommand (sendMessages): Shuffle
  15848. missingBLockIndexes before using it.
  15849. Added its own timeout for peer connection.
  15850. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15851. setter.
  15852. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15853. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15854. Added setTimeout() call.
  15855. (executeInternal): Added setTimeout() call.
  15856. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15857. Added timeout.
  15858. (isTimeoutDetected): Updated.
  15859. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15860. option.
  15861. Added *simple* message flooding checker.
  15862. * src/PeerInteractionCommand.cc (executeInternal):
  15863. Added detectMessageFlooding() call.
  15864. (detectMessageFlooding): New function.
  15865. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15866. (beforeSocketCheck): Added detectMessageFlooding() call.
  15867. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15868. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15869. Removed deletePendingPieceMessage(), getRequestSlot(),
  15870. deleteRequestSlot(), deleteAllRequestSlot().
  15871. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15872. Added checkLongTimePeerChoking() call.
  15873. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15874. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15875. if duplicate == false.
  15876. The parameter "uploaded" and "downloaded" in the tracker request are
  15877. the size since the client sent the "started" event to the tracker.
  15878. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15879. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15880. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15881. getSessionDownloadedSize(), getSessionUploadedSize().
  15882. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15883. getSessionUploadedSize() instead of getDownloadedSize(),
  15884. getUploadedSize().
  15885. * src/PendingMessage.cc (processMessage): Do not send request message
  15886. if the peer is choking the client.
  15887. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15888. less than interval.
  15889. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15890. * configure.in: Added gnutls support. Added several CPP macros.
  15891. * m4/openssl.m4: Added.
  15892. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15893. readData(), peekData(). Added gnutls support.
  15894. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15895. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15896. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15897. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15898. Instead, added a check for whether setup method has executed
  15899. successfully.
  15900. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15901. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15902. * src/Makefile.am: Updated.
  15903. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15904. using whether OpenSSL or gcrypt, depending on the result of configure
  15905. script.
  15906. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15907. messageDigest.h.
  15908. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15909. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15910. Fixed memory leak.
  15911. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15912. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15913. Removed instantiation of TrackerInitCommand. Instead,
  15914. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15915. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15916. ENABLE_SSL.
  15917. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15918. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15919. If a piece is already acquired by another command, delete the request
  15920. slots for the piece.
  15921. * src/TrackerUpdateCommand.cc (execute):
  15922. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15923. Added a check whether peer list is null.
  15924. Fixed the bug that causes sending completed event to the tracker
  15925. several times.
  15926. * src/TrackerInitCommand.cc (execute):
  15927. Fixed the bug that causes sending completed event to the tracker
  15928. several times.
  15929. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15930. by using messageDigest.h.
  15931. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15932. * PeerConnection.cc: Replaced log message "keep-alive" with
  15933. "keep alive".
  15934. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15935. localhost long time.
  15936. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15937. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15938. at most 100 failure entry from the list. If with duplicate = false,
  15939. MAX_PEER_LIST is not checked.
  15940. * PeerListenCommand.cc: Fixed the argument order of log message.
  15941. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15942. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15943. Added warn().
  15944. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15945. Implemented warn().
  15946. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15947. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15948. * Request.h: Added AFTER_COMPLETED event.
  15949. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15950. instead of downloaded size and progress(%) after download completes.
  15951. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15952. message to the peer if it is interested in what localhost has
  15953. downloaded.
  15954. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15955. destination instead of just renaming it.
  15956. * TorrentMan.cc: Added deleteTempFile().
  15957. * PeerAbstractCommand.cc: do not stop execution after download
  15958. completes. This makes localhost a seeder.
  15959. * Util.{h,cc}: Added fileCopy().
  15960. * PeerListenCommand.cc: do not stop execution after download completes.
  15961. This makes localhost a seeder.
  15962. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15963. Added TorrentMan::deleteTempFile() to torrentHandler.
  15964. Initialized the variable dir as ".".
  15965. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15966. Deleted renameSingleFile().
  15967. Added copySingleFile(), deleteTempFile().
  15968. * DownloadEngine.h: Added virtual function afterEachIteration().
  15969. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15970. in onEndOfRun() to afterEachIteration().
  15971. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15972. true.
  15973. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15974. In rangedFileCopy(), added try-catch block to properly close file
  15975. descriptors.
  15976. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15977. Added afterEachIteration(), isFilenameFixed().
  15978. * Peer.cc: Changed choking strategy.
  15979. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15980. * TrackerInitCommand.cc: Send completed event only once.
  15981. * DownloadEngine.cc: Added a call to afterEachIteration().
  15982. * TrackerUpdateCommand.cc: Do not stop execution after download
  15983. completes.
  15984. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15985. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15986. received from a tracker.
  15987. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15988. Decreased the number of failure peers to delete to 0(just comment out
  15989. the line).
  15990. * Release 0.3.1
  15991. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15992. * PeerInteractionCommand.cc: added a call to
  15993. TorrentMan::unadvertisePiece in Destructor.
  15994. * PeerInteractionCommand.cc: make have message sent immediately
  15995. if the size of pending message queue is zero.
  15996. * TorrentMan.cc: set the maximum size of peer list to 250.
  15997. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15998. to deque.
  15999. * Util.cc: fixed rangedFileCopy.
  16000. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16001. to Constructor. Also, moved digest cleanup to Destructor.
  16002. * MetaFileUtil.cc: fixed memory leak
  16003. * replaced std::vector with std::deque.
  16004. * AbstractCommand.cc: casted timeout value to long long int.
  16005. * ChunkedEncoding.cc: fixed memory leak.
  16006. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16007. * SleepCommand.cc: casted timeout value to long long int.
  16008. * Data.cc: fixed memory leak.
  16009. * Data.cc: fixed toLLInt().
  16010. * BitfieldMan.cc: fixed memory leak.
  16011. * TorrentMan.cc: initialized storeDir to ".".
  16012. * TorrentMan.cc: fixed memory leak.
  16013. * TorrentMan.cc: corrected file paths of splitted files.
  16014. * PeerAbstractCommand.cc: casted timeout to long long int.
  16015. * main.cc: added delete(req) and delete(te->diskWriter).
  16016. * RequestSlot.cc: casted timeout value to long long int.
  16017. * Request.cc: fixed memory leak.
  16018. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16019. have the piece.
  16020. * Peer.{h,cc}: added hasPiece(int index).
  16021. * main.cc: corrected addCommand.
  16022. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16023. * BitTorrent protocol support added.
  16024. * Release 0.3.0
  16025. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16026. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16027. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16028. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16029. decoding did not work properly.
  16030. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16031. * DownloadEngine.h: included sys/time.h
  16032. * DownloadEngine.cc: remove sys/time.h
  16033. * Makefile.am (SUBDIRS): Add intl.
  16034. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16035. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16036. * main.cc: correct help message for --http-auth-scheme.
  16037. * main.cc: changed e-mail address for bug reports.
  16038. * ja.po: added japanese translation.
  16039. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16040. * SimpleLogger.cc: flush log file instead of stdout.
  16041. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16042. * main.cc: Fixed command-line option: max-tries
  16043. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16044. does not equal to seg.sp.
  16045. * DownloadCommand.cc: If EOF is got from the server and the total size
  16046. of file is not zero, then throw DlRetryEx.
  16047. * main.cc: Set the minium value of min-segment-size to 1024.
  16048. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16049. fails because of a regression since 0.2.0 release.
  16050. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16051. * HttpConnection.cc:
  16052. * common.h: defined the user agent name as macro
  16053. * DownloadEngine.{h, cc}:
  16054. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16055. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16056. * main.cc: Download complete/abort message is now generated by main.
  16057. * Makefile.am (SUBDIRS): Add m4.
  16058. (ACLOCAL_AMFLAGS): New variable.
  16059. (EXTRA_DIST): New variable.
  16060. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16061. * gettext: added gettext functionality
  16062. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16063. * AbstractCommand.cc:
  16064. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16065. unregister its cuid from SegmentMan.
  16066. * DownloadEngine.cc: .aria2 file was written when a downloading
  16067. failed with errors.
  16068. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16069. Added "User-Agent" header to CONNECT proxy request.
  16070. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16071. properly.
  16072. * Logger.h:
  16073. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16074. * ChunkedEncoding.cc: Added #include directive for strings.h
  16075. * Release 0.2.1
  16076. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16077. * Util.{h,cc}: added startsWith().
  16078. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16079. Util::endsWith().
  16080. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16081. * common.h: added #include directive of limit.h.
  16082. * DownloadEngine.cc: added #include directive of sys/time.h and
  16083. algorithm.
  16084. * Exception.h: added #include directive of stdio.h.
  16085. * AbstractCommand.h: added #include directive of sys/time.h.
  16086. * DownloadCommand.h: added #include directive of sys/time.h.
  16087. * *.h: added #include directive of common.h to all base classes.
  16088. subclasses' one was removed.
  16089. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16090. does not define these macros.
  16091. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16092. * Release 0.2.0
  16093. * main.cc:
  16094. * HttpInitiateConnectionCommand.{h,cc}:
  16095. * prefs.h:
  16096. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16097. We can now use GET command in http proxy.
  16098. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16099. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16100. that splits slowest segment of SegmentMan::commands vector.
  16101. This is the default split algorithm of aria2.
  16102. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16103. that splits first segment of SegmentMan::commands vector.
  16104. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16105. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16106. * Segment.h:
  16107. * SegmentMan.cc: Added speed field to Segment.h
  16108. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16109. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16110. * message.h: Change file size related %d to %lld.
  16111. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16112. * FtpInitiateConnectionCommand.{h,cc}:
  16113. * FtpNegotiationCommand.{h,cc}:
  16114. * FtpDownloadCommand.{h,cc}:
  16115. * FtpConnection.{h,cc}: Added FTP support
  16116. * SimpleLogger.cc: Log message now includes time information.
  16117. * main.cc: The value of --http-auth-scheme option is chagned from
  16118. 'BASIC' to 'basic'
  16119. * main.cc: Added --timeout command-line option.
  16120. * main.cc: Added --min-segment-size command-line option.
  16121. * main.cc: Added --max-retries command-line option.
  16122. * prefs.h: option string constants are now defined in prefs.h
  16123. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16124. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16125. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16126. with version 0.1.0's one.
  16127. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16128. * configure.in: Added --enable-ssl option to configure script.
  16129. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16130. cannot permit absoluteURI as Request-URI.
  16131. * HttpConnection.cc: Added Referer support.
  16132. * main.cc: Added referer command-line option.
  16133. * main.cc: Added rety-wait command-line option.
  16134. * Exception.h: Fixed formating bug in Exception::setMsg()
  16135. * SocketCore.{h,cc}:
  16136. * Socket.{h, cc}:
  16137. * Request.cc:
  16138. * InitiateConnectionCommandFactory.cc:
  16139. * HttpRequestCommand.cc: Added HTTPS support.
  16140. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16141. for SocketCore.
  16142. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16143. size is wrong
  16144. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16145. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16146. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16147. * Release 0.1.0