ChangeLog 680 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919
  1. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  3. not found' in the N times(N is where --max-file-not-found=N, N>0)
  4. in a row without single '200 OK' response.
  5. * src/RequestGroup.cc.
  6. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  8. readout by 80 characters in mingw32 build. Catch exception in
  9. DHTMessageReceiver::receiveMessage().
  10. * src/AbstractDiskWriter.cc
  11. * src/ConsoleStatCalc.cc
  12. * src/DHTMessageReceiver.cc
  13. * src/File.cc
  14. * src/RequestGroupMan.cc
  15. * src/a2io.h
  16. * test/FileTest.cc
  17. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Fixed compile error with intel compiler
  19. * src/XmlRpcMethodImpl.cc
  20. * src/XmlRpcMethodImpl.h
  21. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Release 1.8.1
  23. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Updated Swedish, Russian and Italian translations. Thanks to all
  25. translators.
  26. * po/it.po
  27. * po/ru.po
  28. * po/sv.po
  29. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Fixed broken OptionParser::findByName().
  31. * src/OptionParser.cc
  32. * test/OptionParserTest.cc
  33. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Fixed test error without BitTorrent support.
  35. * test/XmlRpcMethodTest.cc
  36. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Fixed compile error without GNUTLS/OpenSSL.
  38. * src/util.cc
  39. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Changed compression level to Z_DEFAULT_COMPRESSION.
  41. * src/GZipEncoder.cc
  42. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Added missing command line options: --http-no-cache,
  44. --bt-save-metadata and --bt-metadata-only.
  45. * doc/xmlrpc/aria2rpc
  46. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  48. client accepts gzip content encoding.
  49. * src/A2STR.cc
  50. * src/A2STR.h
  51. * src/GZipEncoder.cc
  52. * src/GZipEncoder.h
  53. * src/HttpHeader.cc
  54. * src/HttpHeader.h
  55. * src/HttpServer.cc
  56. * src/HttpServer.h
  57. * src/HttpServerBodyCommand.cc
  58. * src/HttpServerCommand.cc
  59. * src/Makefile.am
  60. * src/XmlRpcResponse.cc
  61. * src/XmlRpcResponse.h
  62. * test/GZipEncoderTest.cc
  63. * test/Makefile.am
  64. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Added XML-RPC client sample code in Python.
  66. * doc/aria2c.1.txt
  67. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  68. Updated po templates.
  69. * po/aria2.pot
  70. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  71. Bump up version number to 1.8.1
  72. * configure.ac
  73. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Added version number to man page. Updated copyright year in man
  75. page.
  76. * doc/aria2c.1.txt
  77. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Rewritten toTagString
  79. * src/NameMatchOptionHandler.cc
  80. * test/OptionHandlerTest.cc
  81. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Added dir and files key to the response struct of aria2.tellStatus
  83. XML-RPC method. The value associated with files key is the list
  84. of files. Its element is the same struct used in aria2.getFiles
  85. XML-RPC method. Added uris key to the response struct of
  86. aria2.getFiles XML-RPC method. The value associated with uris key
  87. is the list of URIs. Its element is the same struct used in
  88. aria2.getUris XML-RPC method.
  89. * doc/aria2c.1.txt
  90. * src/XmlRpcMethodImpl.cc
  91. * test/XmlRpcMethodTest.cc
  92. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Added aria2.getSessionInfo XML-RPC method. This method returns a
  94. struct containing Session ID, which is generated each time when
  95. aria2 is invoked.
  96. * doc/aria2c.1.txt
  97. * doc/xmlrpc/aria2rpc
  98. * src/DownloadEngine.cc
  99. * src/DownloadEngine.h
  100. * src/XmlRpcMethodFactory.cc
  101. * src/XmlRpcMethodImpl.cc
  102. * src/XmlRpcMethodImpl.h
  103. * test/XmlRpcMethodTest.cc
  104. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Moved generateRandomKey() from bittorrent_helper to util.
  106. * src/DHTBucket.cc
  107. * src/DHTNode.cc
  108. * src/bittorrent_helper.cc
  109. * src/bittorrent_helper.h
  110. * src/util.cc
  111. * src/util.h
  112. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Updated doc about GID.
  114. * doc/aria2c.1.txt
  115. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  117. accepts a negative integer. 'offset' == -1 points last download
  118. in the waiting queue and 'offset' == -2 points the download before
  119. the last download, and so on. The downloads in the response are in
  120. reversed order.
  121. * doc/aria2c.1.txt
  122. * src/XmlRpcMethodImpl.cc
  123. * src/XmlRpcMethodImpl.h
  124. * test/XmlRpcMethodTest.cc
  125. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. Added --human-readable option. This option, when true is given,
  127. prints sizes and speed in human readable format(e.g., 1.2Ki,
  128. 3.4Mi) in the console readout. The default value is true and it
  129. looks exactly the same as aria2-1.8.0. So the 'new feature'
  130. appears when false is given. In this case, sizes and speed are
  131. printed without in bytes. No Ki, Mi units conversion is used.
  132. This may be useful for a program to parse the output of aria2.
  133. * doc/aria2c.1.txt
  134. * src/ConsoleStatCalc.cc
  135. * src/ConsoleStatCalc.h
  136. * src/OptionHandlerFactory.cc
  137. * src/main.cc
  138. * src/prefs.cc
  139. * src/prefs.h
  140. * src/usage_text.h
  141. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  143. option accepts empty string "". When "" is given, it erases
  144. previously defined proxy.
  145. * doc/aria2c.1.txt
  146. * src/OptionHandlerImpl.h
  147. * src/usage_text.h
  148. * test/OptionHandlerTest.cc
  149. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Code cleanup for proxy URI handling.
  151. * src/AbstractCommand.cc
  152. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Added --bt-metadata-only option. If true is given to this option,
  154. aria2 downloads metadata only. The file(s) described in metadata
  155. will not be downloaded. This option has effect only when
  156. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  157. * doc/aria2c.1.txt
  158. * src/OptionHandlerFactory.cc
  159. * src/UTMetadataPostDownloadHandler.cc
  160. * src/download_helper.cc
  161. * src/prefs.cc
  162. * src/prefs.h
  163. * src/usage_text.h
  164. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Fixed memory leak. Commands stored in std::deque<Command*> are not
  166. deleted when exception is thrown. Make sure that when passing
  167. std::deque<Command*> to function to store Commands, handle
  168. exception and delete these Commands.
  169. * src/AbstractCommand.cc
  170. * src/CheckIntegrityCommand.cc
  171. * src/FileAllocationCommand.cc
  172. * src/RequestGroup.cc
  173. * src/TrackerWatcherCommand.cc
  174. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  176. * src/A2STR.cc
  177. * src/A2STR.h
  178. * src/FtpNegotiationCommand.cc
  179. * src/HttpResponseCommand.cc
  180. * src/util.cc
  181. * src/util.h
  182. * test/UtilTest.cc
  183. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Treat --dir="" as --dir="."
  185. * src/FtpNegotiationCommand.cc
  186. * src/HttpResponseCommand.cc
  187. * src/Metalink2RequestGroup.cc
  188. * src/UTMetadataPostDownloadHandler.cc
  189. * src/bittorrent_helper.cc
  190. * src/download_helper.cc
  191. * src/util.cc
  192. * src/util.h
  193. * test/UtilTest.cc
  194. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Code clean up.
  196. * src/main.cc
  197. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Reset GID to 1 when they reach maximum value. Rewritten
  199. CUIDCounter::newID()
  200. * src/CUIDCounter.h
  201. * src/RequestGroup.cc
  202. * src/RequestGroup.h
  203. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Documented --http-no-cache option in man page.
  205. * doc/aria2c.1.txt
  206. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Added --http-no-cache option. When true is given, aria2 sends
  208. Cache-Control: no-cache and Pragma: no-cache header to avoid
  209. cached content. If false is given , these headers are not sent
  210. and you can add Cache-Control header with a directive you like
  211. using --header option.
  212. * src/HttpRequest.cc
  213. * src/HttpRequest.h
  214. * src/HttpRequestCommand.cc
  215. * src/OptionHandlerFactory.cc
  216. * src/download_helper.cc
  217. * src/prefs.cc
  218. * src/prefs.h
  219. * src/usage_text.h
  220. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Removed Logger from OptionParser. When OptionParser is used to
  222. parse options at bootstrap, LogFactory is not configured yet
  223. properly. When LogFactory is used in OptionParser, it initializes
  224. itself to return a logger which has no ability to write log to the
  225. disk.
  226. * src/OptionParser.cc
  227. * src/OptionParser.h
  228. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Added following sentance to the help message of --out option:
  230. --out option is ignored when -Z is used.
  231. * doc/aria2c.1.txt
  232. * src/usage_text.h
  233. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Added --bt-save-metadata option to -i list options.
  235. * doc/aria2c.1.txt
  236. * src/download_helper.cc
  237. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  239. additional libraries.
  240. * src/MultiUrlRequestInfo.cc
  241. * src/NameResolver.cc
  242. * src/SelectEventPoll.cc
  243. * src/SelectEventPoll.h
  244. * src/SocketCore.cc
  245. * src/SocketCore.h
  246. * src/a2netcompat.h
  247. * src/daemon.cc
  248. * src/main.cc
  249. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Fixed typo.
  251. * src/DHTMessageReceiver.cc
  252. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Fixed the bug that causes segmentation fault if unknown option is
  254. put in aria2.conf file. BUG#2928303
  255. * src/OptionParser.cc
  256. * src/OptionParser.h
  257. * src/option_processing.cc
  258. * test/OptionParserTest.cc
  259. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Ignore port message with port=0.
  261. * src/BtPortMessage.cc
  262. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Run autoupdate
  264. * configure.ac
  265. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Updated autoconf/automake auxiliary files.
  267. * INSTALL
  268. * config.guess
  269. * config.sub
  270. * depcomp
  271. * install-sh
  272. * m4/intldir.m4
  273. * missing
  274. * mkinstalldirs
  275. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Removed unused function.
  277. * src/SharedHandle.h
  278. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Find pooled socket using all cached addresses.
  280. * src/DNSCache.h
  281. * src/DownloadEngine.cc
  282. * src/DownloadEngine.h
  283. * src/InitiateConnectionCommand.cc
  284. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Updated copyright year.
  286. * src/version_usage.cc
  287. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Pool connection if _contentEncodingDecoder is used and server
  289. supports persistent connection.
  290. * src/HttpDownloadCommand.cc
  291. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  292. Updated doc.
  293. * src/DownloadCommand.cc
  294. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Untabify. Fixed one line in copyright which is longer than 80
  296. columns.
  297. * src
  298. * test
  299. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Release 1.8.0
  301. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  302. Updated po templates.
  303. * po/aria2.pot
  304. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Documented --bt-save-metadata option in man page.
  306. * doc/aria2c.1.txt
  307. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  308. Fixed usage of --bt-save-metadata option.
  309. * src/usage_text.h
  310. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Updated po templates.
  312. * po/aria2.pot
  313. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  314. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  315. causes name resolution error when none of network interface has
  316. IPv4 address.
  317. * src/main.cc
  318. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Bump up version number to 1.8.0.
  320. * configure.ac
  321. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Use info hash as a filename when saving BitTorrent metadata.
  323. * src/UTMetadataPostDownloadHandler.cc
  324. * test/UTMetadataPostDownloadHandlerTest.cc
  325. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Documented system.multicall XML-RPC method in man page.
  327. * doc/aria2c.1.txt
  328. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Added signal handler for SIGHUP to save .aria2 file when terminal
  330. is closed. The handler is the same one for SIGINT and SIGTERM.
  331. * src/MultiUrlRequestInfo.cc
  332. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  333. Defined method name in XmlRpcMethod subclasses.
  334. * src/XmlRpcMethodFactory.cc
  335. * src/XmlRpcMethodImpl.cc
  336. * src/XmlRpcMethodImpl.h
  337. * test/XmlRpcMethodTest.cc
  338. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Added system.multicall XML-RPC method.
  340. * src/XmlRpcMethod.cc
  341. * src/XmlRpcMethod.h
  342. * src/XmlRpcMethodFactory.cc
  343. * src/XmlRpcMethodImpl.cc
  344. * src/XmlRpcMethodImpl.h
  345. * test/XmlRpcMethodTest.cc
  346. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Check structure depth when decoding.
  348. * src/bencode.cc
  349. * src/bencode.h
  350. * test/BencodeTest.cc
  351. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Documented tellStopped XML-RPC method in man page.
  353. * doc/aria2c.1.txt
  354. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  355. Added tellStopped XML-RPC method to aria2rpc.
  356. * doc/xmlrpc/aria2rpc
  357. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  358. Added tellStopped XML-RPC method. This method returns stopped
  359. download in the specified range. It takes same parameters with
  360. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  361. * src/XmlRpcMethodFactory.cc
  362. * src/XmlRpcMethodImpl.cc
  363. * src/XmlRpcMethodImpl.h
  364. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  366. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  367. when conducting unit tests because they fail if networking
  368. interface is not configured with IPv4 address.
  369. * src/NameResolver.cc
  370. * src/SocketCore.cc
  371. * src/SocketCore.h
  372. * src/a2netcompat.h
  373. * test/AllTest.cc
  374. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Fixed unit test error
  376. * test/UTMetadataPostDownloadHandlerTest.cc
  377. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Defined static string constants for efficiency.
  379. * src/XmlRpcMethodImpl.cc
  380. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Added --bt-save-metadata option. When true is given, it saves
  382. metadata as .torrent file. This option has effect only when
  383. BitTorrent Magnet URI is used. The filename is name in metadata
  384. with suffix .torrent. The directory to be saved is the same
  385. directory where download file is saved. If the same file already
  386. exists, metdata is not saved.
  387. * src/OptionHandlerFactory.cc
  388. * src/UTMetadataPostDownloadHandler.cc
  389. * src/UTMetadataPostDownloadHandler.h
  390. * src/message.h
  391. * src/prefs.cc
  392. * src/prefs.h
  393. * src/usage_text.h
  394. * test/UTMetadataDataExtensionMessageTest.cc
  395. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Added util::saveAs() function. Use it in Signature::save().
  397. * src/Signature.cc
  398. * src/util.cc
  399. * src/util.h
  400. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Upcase info hash in Magnet URI.
  402. * doc/aria2c.1.txt
  403. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Refactored RequestGroupMan::changeReservedGroupPosition()
  405. * src/RequestGroupMan.cc
  406. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Updated the description for aria2.addTorrent XML-RPC method.
  408. * doc/aria2c.1.txt
  409. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  410. Added changePosition to aria2rpc.
  411. * doc/xmlrpc/aria2rpc
  412. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Documented changePosition XML-RPC method in man page.
  414. * doc/aria2c.1.txt
  415. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  417. pos and how. This method changes the position of download denoted
  418. by gid. If how is POS_SET, it moves the download to a position
  419. relative to the beginning of the queue. If how is POS_CUR, it
  420. moves the download to a position relative to the current
  421. position. If how is POS_END, it moves the download to a position
  422. relative to the end of the queue. If the destination position is
  423. less than 0 or beyond the end of the queue, it moves the download
  424. to the beginning or the end of the queue respectively. Returns
  425. the destination position.
  426. * src/RequestGroupMan.cc
  427. * src/RequestGroupMan.h
  428. * src/XmlRpcMethodFactory.cc
  429. * src/XmlRpcMethodImpl.cc
  430. * src/XmlRpcMethodImpl.h
  431. * test/RequestGroupManTest.cc
  432. * test/XmlRpcMethodTest.cc
  433. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Added getOption and getGlobalOption to aria2rpc.
  435. * doc/xmlrpc/aria2rpc
  436. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Documented getOption and getGlobalOption XML-RPC method in man
  438. page
  439. * doc/aria2c.1.txt
  440. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. Added getOption and getGlobalOption XML-RPC method. getOption
  442. takes GID as a parameter and returns its options as struct.
  443. getGlobalOption takes no parameter and returns global
  444. options. Because global option is used as a template for the
  445. option of newly added downloads, it includes options returned by
  446. getOption.
  447. * src/Option.h
  448. * src/XmlRpcMethodFactory.cc
  449. * src/XmlRpcMethodImpl.cc
  450. * src/XmlRpcMethodImpl.h
  451. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  452. Sort _optionHandlers in OptionParser by name in ascending order.
  453. Use vector instead of deque for efficiency.
  454. * src/OptionHandler.h
  455. * src/OptionHandlerFactory.h
  456. * src/OptionParser.cc
  457. * src/OptionParser.h
  458. * src/version_usage.cc
  459. * test/OptionParserTest.cc
  460. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Code cleanup
  462. * src/XmlRpcMethod.cc
  463. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Documented about followedBy and belongsTo in man page.
  465. * doc/aria2c.1.txt
  466. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Added following 2 keys, followedBy and belongsTo, to the response
  468. of tellStatus.
  469. followedBy: List of GIDs which are generated by the consequence of
  470. this download. For example, when aria2 downloaded Metalink file,
  471. it generates downloads described in it(see *--follow-metalink*
  472. option). This value is useful to track these auto generated
  473. downloads. If there is no such downloads, this key will not be
  474. included in the response.
  475. belongsTo: GID of a parent download. Some downloads are a part of
  476. another download. For example, if a file in Metalink has
  477. BitTorrent resource, the download of .torrent is a part of that
  478. file. If this download has no parent, this key will not be
  479. included in the response.
  480. * src/BtPostDownloadHandler.cc
  481. * src/DownloadResult.h
  482. * src/Metalink2RequestGroup.cc
  483. * src/MetalinkPostDownloadHandler.cc
  484. * src/RequestGroup.cc
  485. * src/RequestGroup.h
  486. * src/UTMetadataPostDownloadHandler.cc
  487. * src/XmlRpcMethodImpl.cc
  488. * src/XmlRpcMethodImpl.h
  489. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  490. Assigned BObject in BDE() to avoid segmentation fault when calling
  491. methods of BDE::none().
  492. * src/BDE.cc
  493. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  494. Show info hash in Magnet URI in upper case letters in -S output.
  495. * src/bittorrent_helper.cc
  496. * test/BittorrentHelperTest.cc
  497. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Removed old useless comment
  499. * src/MultiUrlRequestInfo.cc
  500. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  502. not properly used in configure script and failed to detect gnutls.
  503. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  504. and the initialization of pkg-config is done in first occurrence
  505. of PKG_CHECK_MODULES which is not executed because it is inside of
  506. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  507. * configure.ac
  508. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Release 1.7.2
  510. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Fixed the bug that RequestGroupMan::downloadFinished() returns
  512. true even if all downloads haven't finished, especially when
  513. PostDownloadHandler is involved. Changed the condition so that it
  514. only returns true if both _requestGroups and _reservedGroups are
  515. empty.
  516. * src/RequestGroupMan.cc
  517. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Log listening port for BitTorrent/DHT in notice level.
  519. * src/DHTConnectionImpl.cc
  520. * src/PeerListenCommand.cc
  521. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Updated po templates.
  523. * po/aria2.pot
  524. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Bump up version number to 1.7.2
  526. * configure.ac
  527. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  528. Changed default value of --enable-dht from 'false' to 'true'.
  529. * doc/aria2c.1.txt
  530. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Enabled DHT by default because of Magnet URI support. To disable
  532. DHT, use --enable-dht=false
  533. * src/OptionHandlerFactory.cc
  534. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Print Magnet URI in -S output.
  536. * src/AnnounceList.cc
  537. * src/bittorrent_helper.cc
  538. * src/bittorrent_helper.h
  539. * test/BittorrentHelperTest.cc
  540. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  541. Added --bt-prioritize-piece option to aria2rpc.
  542. * doc/xmlrpc/aria2rpc
  543. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  544. Refer Magnet URI in --help. Made some cosmetic changes.
  545. * src/version_usage.cc
  546. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Updated -T and -M option.
  548. * doc/aria2c.1.txt
  549. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Fixed typo
  551. * doc/aria2c.1.txt
  552. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Fixed the bug that line separator is missing in horizontal bar.
  554. * doc/xmlrpc/aria2mon
  555. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Updated usage text for --metalink-file option.
  557. * src/usage_text.h
  558. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. If '-' is given as an argument to --metalink-file option, aria2
  560. reads Metalink file from stdin.
  561. * src/OptionHandlerFactory.cc
  562. * src/OptionHandlerImpl.h
  563. * src/a2io.h
  564. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Fixed the bug that aria2 listens wrong port if --interface option
  566. is used.
  567. * src/SocketCore.cc
  568. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Fixed the bug that query parameter in magnet URI is not decoded.
  570. * src/magnet.cc
  571. * test/MagnetTest.cc
  572. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Specified defaultSize as an argument for easy testing.
  574. * src/util.cc
  575. * src/util.h
  576. * test/UtilTest.cc
  577. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Release 1.7.1
  579. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Bump up version number to 1.7.1
  581. * configure.ac
  582. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Fixed the bug --bt-prioritize-piece=tail is not working.
  584. * src/util.cc
  585. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Release 1.7.0
  587. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Updated po templates.
  589. * po/aria2.pot
  590. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Updated help message for --bt-prioritize-piece. Some cosmetic
  592. changes.
  593. * doc/aria2c.1.txt
  594. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  596. * src/usage_text.h
  597. * src/util.cc
  598. * test/UtilTest.cc
  599. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  600. Updated Russian, Ukrainian, German and French translations.
  601. Thanks to all translators involved.
  602. * po/de.po
  603. * po/fr.po
  604. * po/ru.po
  605. * po/uk.po
  606. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Mentioned about pkg-config
  608. * README
  609. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Fixed typo. Referred --index-out option in BitTorrent notes.
  611. * README
  612. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Store all addresses found by getifaddrs() and getaddrinfo(). In
  614. bind, try all addresses until success
  615. * src/SocketCore.cc
  616. * src/SocketCore.h
  617. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Updated po templates.
  619. * po/aria2.pot
  620. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Bump up version number to 1.7.0
  622. * configure.ac
  623. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Fixed compile error if ENABLE_BITTORRENT is undefined.
  625. * src/DefaultPieceStorage.cc
  626. * src/DefaultPieceStorage.h
  627. * src/PieceStorage.h
  628. * src/UnknownLengthPieceStorage.cc
  629. * src/UnknownLengthPieceStorage.h
  630. * test/MockPieceStorage.h
  631. * test/ProtocolDetectorTest.cc
  632. * test/XmlRpcMethodTest.cc
  633. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Documented in man page that if getifaddrs() is missing,
  635. --interface option doesn't accept interface name.
  636. * doc/aria2c.1.txt
  637. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  639. * src/DefaultBtAnnounce.cc
  640. * src/DefaultBtAnnounce.h
  641. * test/DefaultBtAnnounceTest.cc
  642. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Fixed the bug that connection is always dropped if handshake
  644. message in extension protocol don't have metadata_size.
  645. src/HandshakeExtensionMessage.cc
  646. * src/HandshakeExtensionMessage.cc
  647. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  649. text saying DHT is recommended when Magnet URI is provided.
  650. * doc/aria2c.1.txt
  651. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  653. URI is supplied. Notify user that they should consider enabling
  654. DHT if they use Magnet URI.
  655. * src/RequestGroup.cc
  656. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Added --disable-ipv6 option to disable IPv6.
  658. * doc/aria2c.1.txt
  659. * src/InitiateConnectionCommand.cc
  660. * src/NameResolver.cc
  661. * src/NameResolver.h
  662. * src/OptionHandlerFactory.cc
  663. * src/main.cc
  664. * src/prefs.cc
  665. * src/prefs.h
  666. * src/usage_text.h
  667. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Updated usage text for --bt-prioritize-piece option.
  669. * doc/aria2c.1.txt
  670. * src/usage_text.h
  671. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. In configure script, if --with-PACKAGE and --enable-FEATURE are
  673. given and PACKAGE is missing in the system or FEATURE cannot be
  674. enabled, print error message and stop the script.
  675. * configure.ac
  676. * m4/aria2_arg.m4
  677. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Halt metadata download immediately when metadata download is done.
  679. Don't wait unresponsive tracker.
  680. * src/ByteArrayDiskWriter.h
  681. * src/DefaultBtInteractive.cc
  682. * src/DefaultExtensionMessageFactory.cc
  683. * src/DefaultExtensionMessageFactory.h
  684. * src/PeerInteractionCommand.cc
  685. * src/UTMetadataDataExtensionMessage.cc
  686. * src/UTMetadataDataExtensionMessage.h
  687. * src/UTMetadataRequestExtensionMessage.cc
  688. * test/UTMetadataDataExtensionMessageTest.cc
  689. * test/UTMetadataRequestExtensionMessageTest.cc
  690. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Documented --interface option in man page.
  692. * doc/aria2c.1.txt
  693. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Try resolved address in the order received from the resolver.
  695. * src/DNSCache.h
  696. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Added debug logs.
  698. * src/SocketCore.cc
  699. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  700. Fixed type of tail to uint64_t
  701. * src/util.cc
  702. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Added --interface option. This feature binds sockets to given
  704. interface. You can specify interface name, IP address and
  705. hostname.
  706. * configure.ac
  707. * src/OptionHandlerFactory.cc
  708. * src/SocketCore.cc
  709. * src/SocketCore.h
  710. * src/main.cc
  711. * src/message.h
  712. * src/prefs.cc
  713. * src/prefs.h
  714. * src/usage_text.h
  715. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Updated man page for bt-prioritize-piece option in -i list.
  717. * doc/aria2c.1.txt
  718. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Added bt-prioritize-piece option to -i list.
  720. * src/download_helper.cc
  721. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Removed --http-auth-scheme option from man page.
  723. * doc/aria2c.1.txt
  724. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Removed --http-auth-scheme option since it doesn't do nothing.
  726. * src/OptionHandlerFactory.cc
  727. * src/prefs.cc
  728. * src/prefs.h
  729. * src/usage_text.h
  730. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Adjusted the number of peer info which get_peers reply message can
  732. carry.
  733. * src/DHTGetPeersReplyMessage.cc
  734. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Added extension_message_test_helper.h to aria2c_SOURCES.
  736. * test/Makefile.am
  737. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Documented --bt-prioritize-piece option in man page.
  739. * doc/aria2c.1.txt
  740. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Added option --bt-prioritize-piece. This option instruct aria2 to
  742. try to download first and last pieces of each file first. The
  743. argument can contain 2 keywords:head and tail. To include both
  744. keywords, they must be separated by comma. These keywords can take
  745. one parameter, SIZE. For example , if head=SIZE is specified,
  746. pieces in the range of first SIZE bytes of each file get higher
  747. priority. tail=SIZE means the range of last SIZE bytes of each
  748. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  749. * src/DefaultPieceStorage.h
  750. * src/Makefile.am
  751. * src/OptionHandlerFactory.cc
  752. * src/OptionHandlerImpl.h
  753. * src/PriorityPieceSelector.cc
  754. * src/PriorityPieceSelector.h
  755. * src/RequestGroup.cc
  756. * src/prefs.cc
  757. * src/prefs.h
  758. * src/usage_text.h
  759. * src/util.cc
  760. * src/util.h
  761. * test/Makefile.am
  762. * test/MockPieceSelector.h
  763. * test/PriorityPieceSelectorTest.cc
  764. * test/UtilTest.cc
  765. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Fixed typo
  767. * src/HttpRequest.h
  768. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. In Magnet URI with tr parameter, put each announce URI in separate
  770. tier.
  771. * src/bittorrent_helper.cc
  772. * test/BittorrentHelperTest.cc
  773. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  774. Renamed ExtensionMessage::getBencodedData() as
  775. ExtensionMessage::getPayload()
  776. * src/BtExtendedMessage.cc
  777. * src/ExtensionMessage.h
  778. * src/HandshakeExtensionMessage.cc
  779. * src/HandshakeExtensionMessage.h
  780. * src/UTMetadataDataExtensionMessage.cc
  781. * src/UTMetadataDataExtensionMessage.h
  782. * src/UTMetadataRejectExtensionMessage.cc
  783. * src/UTMetadataRejectExtensionMessage.h
  784. * src/UTMetadataRequestExtensionMessage.cc
  785. * src/UTMetadataRequestExtensionMessage.h
  786. * src/UTPexExtensionMessage.cc
  787. * src/UTPexExtensionMessage.h
  788. * test/HandshakeExtensionMessageTest.cc
  789. * test/MockExtensionMessage.h
  790. * test/UTMetadataDataExtensionMessageTest.cc
  791. * test/UTMetadataRejectExtensionMessageTest.cc
  792. * test/UTMetadataRequestExtensionMessageTest.cc
  793. * test/UTPexExtensionMessageTest.cc
  794. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  795. Updated man page for BitTorrent Magnet URI.
  796. * doc/aria2c.1.txt
  797. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Call DownloadContext::setOwnerRequestGroup() in
  799. RequestGroup::setDownloadContext().
  800. * src/BtDependency.cc
  801. * src/RequestGroup.cc
  802. * src/RequestGroup.h
  803. * src/download_helper.cc
  804. * test/DefaultBtMessageDispatcherTest.cc
  805. * test/DefaultExtensionMessageFactoryTest.cc
  806. * test/HandshakeExtensionMessageTest.cc
  807. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  809. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  810. from metadata, use new metadata2Torrent() function.
  811. * src/BtDependency.cc
  812. * src/UTMetadataPostDownloadHandler.cc
  813. * src/bittorrent_helper.cc
  814. * src/bittorrent_helper.h
  815. * test/BittorrentHelperTest.cc
  816. * test/BtDependencyTest.cc
  817. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Use createRequestGroupForUri to create the download for torrent
  819. file.
  820. * src/Metalink2RequestGroup.cc
  821. * test/Metalink2RequestGroupTest.cc
  822. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Fixed typo
  824. * src/DownloadContext.h
  825. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Use createRequestGroupForBitTorrent()
  827. * src/BtPostDownloadHandler.cc
  828. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Added remove().
  830. * src/Option.cc
  831. * src/Option.h
  832. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Removed options which is only valid for URIs specified in
  834. command-line. If they are left, because op is used as a template
  835. for new RequestGroup(such as created in XML-RPC command,
  836. BtPostDownloadHandler etc), they causes unintentional effect.
  837. * src/main.cc
  838. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  839. Refer to option value of PREF_OUT only in download_helper.
  840. * src/FtpNegotiationCommand.cc
  841. * src/HttpResponseCommand.cc
  842. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  844. * src/download_helper.cc
  845. * src/download_helper.h
  846. * src/XmlRpcMethodImpl.cc
  847. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Updated man page for changeOption XML-RPC method.
  849. * doc/aria2c.1.txt
  850. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Added --bt-max-peers option to changeOption XML-RPC method.
  852. * src/XmlRpcMethod.cc
  853. * src/XmlRpcMethodImpl.cc
  854. * test/XmlRpcMethodTest.cc
  855. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  857. * test/XmlRpcMethodTest.cc
  858. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Removed redundant DownloadContext::hasAttribute(...) calls.
  860. * src/ConsoleStatCalc.cc
  861. * src/RequestGroup.cc
  862. * src/XmlRpcMethodImpl.cc
  863. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Changed the number of tracker request attempt from 5 to 2.
  865. * src/TrackerWatcherCommand.cc
  866. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Use host and protocol in original URI, because URI selector
  868. selects URI based on original URI, not redirected one.
  869. * src/Request.cc
  870. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Fixed the bug which causes segmentation fault with tellWaiting
  872. XML-RPC method when BitTorrent download is waiting. The key of
  873. BtRegistry is changed from info hash to GID, because it is
  874. registered per RequestGroup, not info hash.
  875. * src/BtRegistry.cc
  876. * src/BtRegistry.h
  877. * src/BtSetup.cc
  878. * src/ConsoleStatCalc.cc
  879. * src/InitiatorMSEHandshakeCommand.cc
  880. * src/PeerInitiateConnectionCommand.cc
  881. * src/PeerInteractionCommand.cc
  882. * src/PeerInteractionCommand.h
  883. * src/PeerReceiveHandshakeCommand.cc
  884. * src/RequestGroup.cc
  885. * src/XmlRpcMethodImpl.cc
  886. * test/BtRegistryTest.cc
  887. * test/XmlRpcMethodTest.cc
  888. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Updated man page for changeOption XML-RPC method.
  890. * doc/aria2c.1.txt
  891. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  893. method.
  894. * src/XmlRpcMethod.cc
  895. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Documented about BitTorrent Magnet URI in man page.
  897. * doc/aria2c.1.txt
  898. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Fixed the bug that trackers in BitTorrent Magnet URI are not
  900. inherited to generated RequestGroup.
  901. * src/UTMetadataPostDownloadHandler.cc
  902. * test/UTMetadataPostDownloadHandlerTest.cc
  903. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Prepended "[METADATA]" before dn.
  905. * src/bittorrent_helper.cc
  906. * test/BittorrentHelperTest.cc
  907. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  908. Rewritten Magnet URI parser.
  909. * src/Makefile.am
  910. * src/ProtocolDetector.cc
  911. * src/bittorrent_helper.cc
  912. * src/bittorrent_helper.h
  913. * src/download_helper.cc
  914. * src/magnet.cc
  915. * src/magnet.h
  916. * test/BittorrentHelperTest.cc
  917. * test/MagnetTest.cc
  918. * test/Makefile.am
  919. * test/ProtocolDetectorTest.cc
  920. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. Use hton64
  922. * src/base32.cc
  923. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Added Base32 encoded BitTorrent Magnet Link support.
  925. * src/Makefile.am
  926. * src/base32.cc
  927. * src/base32.h
  928. * src/bittorrent_helper.cc
  929. * test/Base32Test.cc
  930. * test/BittorrentHelperTest.cc
  931. * test/Makefile.am
  932. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Added BitTorrent Magnet Link support. Base32 encoded link is not
  934. supported yet. Fixed typo in method name in RequestGroup. In
  935. metadataGetMode, don't show "Your share ratio was ..." message.
  936. * src/DefaultBtInteractive.cc
  937. * src/DefaultBtInteractive.h
  938. * src/DownloadHandlerFactory.cc
  939. * src/DownloadHandlerFactory.h
  940. * src/HandshakeExtensionMessage.cc
  941. * src/Makefile.am
  942. * src/Metalink2RequestGroup.cc
  943. * src/PeerInteractionCommand.cc
  944. * src/RequestGroup.cc
  945. * src/RequestGroup.h
  946. * src/UTMetadataPostDownloadHandler.cc
  947. * src/UTMetadataPostDownloadHandler.h
  948. * src/download_helper.cc
  949. * test/HandshakeExtensionMessageTest.cc
  950. * test/Makefile.am
  951. * test/UTMetadataPostDownloadHandlerTest.cc
  952. * test/UTMetadataRejectExtensionMessageTest.cc
  953. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. In metadataGetMode, don't show SEEDING.
  955. * src/ConsoleStatCalc.cc
  956. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  957. Fixed ut_metadata data handling. Implemented
  958. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  959. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  960. metadata_size is received.
  961. * src/DefaultExtensionMessageFactory.cc
  962. * src/DefaultExtensionMessageFactory.h
  963. * src/HandshakeExtensionMessage.cc
  964. * src/HandshakeExtensionMessage.h
  965. * src/UTMetadataDataExtensionMessage.cc
  966. * src/UTMetadataDataExtensionMessage.h
  967. * src/UTMetadataRequestExtensionMessage.cc
  968. * src/UTMetadataRequestFactory.cc
  969. * src/UTMetadataRequestFactory.h
  970. * src/UTMetadataRequestTracker.cc
  971. * src/UTMetadataRequestTracker.h
  972. * test/DefaultExtensionMessageFactoryTest.cc
  973. * test/HandshakeExtensionMessageTest.cc
  974. * test/MockBtMessage.h
  975. * test/UTMetadataDataExtensionMessageTest.cc
  976. * test/UTMetadataRequestExtensionMessageTest.cc
  977. * test/UTMetadataRequestFactoryTest.cc
  978. * test/UTMetadataRequestTrackerTest.cc
  979. * test/extension_message_test_helper.h
  980. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Drop connection if ut_metadata reject message is received.
  982. * src/UTMetadataRejectExtensionMessage.cc
  983. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  985. get high enough in that mode.
  986. * src/ActivePeerConnectionCommand.cc
  987. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Added BitTorrent magnet link support to ProtocolDetector.
  989. * src/ProtocolDetector.cc
  990. * src/ProtocolDetector.h
  991. * test/ProtocolDetectorTest.cc
  992. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Don't inject validator into BtMessage in metadataGetMode because
  994. most of the checks depends on the total length of download but it
  995. is unknown. Delegate metadataGetMode to BtMessage.
  996. * src/DefaultBtMessageFactory.cc
  997. * src/DefaultBtMessageFactory.h
  998. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1000. * src/DefaultPieceStorage.h
  1001. * src/PieceStorage.h
  1002. * src/UnknownLengthPieceStorage.h
  1003. * test/MockPieceStorage.h
  1004. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Added markTotalLengthIsKnown().
  1006. * src/DownloadContext.h
  1007. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1009. missing. If metadata is missing, always use DHT when it is ready.
  1010. * src/BtSetup.cc
  1011. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1012. Added parseMagnetLink(). Hex encoded info hash is supported.
  1013. Base32 encoded info hash is not supported yet.
  1014. * src/bittorrent_helper.cc
  1015. * src/bittorrent_helper.h
  1016. * test/BittorrentHelperTest.cc
  1017. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Added FromHex()
  1019. * src/util.cc
  1020. * src/util.h
  1021. * test/UtilTest.cc
  1022. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Added _metadataGetMode member variable. It toggles the action when
  1024. messages are received: usually they almost do nothing if
  1025. _metadataGetMode is true.
  1026. * src/AbstractBtMessage.cc
  1027. * src/AbstractBtMessage.h
  1028. * src/BtAllowedFastMessage.cc
  1029. * src/BtBitfieldMessage.cc
  1030. * src/BtCancelMessage.cc
  1031. * src/BtChokeMessage.cc
  1032. * src/BtHaveAllMessage.cc
  1033. * src/BtHaveMessage.cc
  1034. * src/BtInterestedMessage.cc
  1035. * src/BtNotInterestedMessage.cc
  1036. * src/BtPieceMessage.cc
  1037. * src/BtRejectMessage.cc
  1038. * src/BtRequestMessage.cc
  1039. * src/BtUnchokeMessage.cc
  1040. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Added bencode::decode overload functions. They have extra argument
  1042. 'end', passed by reference. 'end' points to the beyond the last
  1043. position of data used in decoding process.
  1044. * src/bencode.cc
  1045. * src/bencode.h
  1046. * test/BencodeTest.cc
  1047. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1048. Initial support of Extension for Peers to Send Metadata
  1049. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1050. metadata from swarm.
  1051. * src/BtConstants.h
  1052. * src/DefaultBtInteractive.cc
  1053. * src/DefaultExtensionMessageFactory.cc
  1054. * src/DefaultExtensionMessageFactory.h
  1055. * src/ExtensionMessage.h
  1056. * src/ExtensionMessageRegistry.h
  1057. * src/HandshakeExtensionMessage.cc
  1058. * src/HandshakeExtensionMessage.h
  1059. * src/Makefile.am
  1060. * src/PeerConnection.h
  1061. * src/PeerInteractionCommand.cc
  1062. * src/UTMetadataDataExtensionMessage.cc
  1063. * src/UTMetadataDataExtensionMessage.h
  1064. * src/UTMetadataExtensionMessage.cc
  1065. * src/UTMetadataExtensionMessage.h
  1066. * src/UTMetadataRejectExtensionMessage.cc
  1067. * src/UTMetadataRejectExtensionMessage.h
  1068. * src/UTMetadataRequestExtensionMessage.cc
  1069. * src/UTMetadataRequestExtensionMessage.h
  1070. * src/bittorrent_helper.cc
  1071. * src/bittorrent_helper.h
  1072. * test/BittorrentHelperTest.cc
  1073. * test/DefaultExtensionMessageFactoryTest.cc
  1074. * test/HandshakeExtensionMessageTest.cc
  1075. * test/Makefile.am
  1076. * test/UTMetadataDataExtensionMessageTest.cc
  1077. * test/UTMetadataRejectExtensionMessageTest.cc
  1078. * test/UTMetadataRequestExtensionMessageTest.cc
  1079. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Cancel segment in prepareForRetry() because there is a chance that
  1081. the command has segments.
  1082. * src/CreateRequestCommand.cc
  1083. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1084. Fixed the bug that slow server is not knocked down in favor of
  1085. faster one.
  1086. * src/AbstractCommand.cc
  1087. * src/DefaultPieceStorage.cc
  1088. * src/DefaultPieceStorage.h
  1089. * src/PieceStorage.h
  1090. * src/UnknownLengthPieceStorage.cc
  1091. * src/UnknownLengthPieceStorage.h
  1092. * test/MockPieceStorage.h
  1093. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1094. Fixed the bug that Request object is not added to
  1095. _inFlightRequests in findFasterRequest().
  1096. * src/FileEntry.cc
  1097. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Changed the strategry of how to increase the number of outstanding
  1099. requests. Now the number is doubled if there are no outstanding
  1100. requests after receiving messages.
  1101. * src/BtConstants.h
  1102. * src/DefaultBtInteractive.cc
  1103. * src/DefaultBtInteractive.h
  1104. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Check socket for reading if there are outstanding requests.
  1106. * src/PeerInteractionCommand.cc
  1107. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Moved frequently called methods to header file so they get
  1109. inlined.
  1110. * src/RequestSlot.cc
  1111. * src/RequestSlot.h
  1112. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1113. Copied in_addr instead of just casting from char* which might
  1114. violate strict aliasing rules.
  1115. * src/AsyncNameResolver.cc
  1116. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Use dynamic_pointer_cast
  1118. * test/BtPieceMessageTest.cc
  1119. * test/BtRequestMessageTest.cc
  1120. * test/DefaultBtRequestFactoryTest.cc
  1121. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Added testSetUrl20()
  1123. * test/RequestTest.cc
  1124. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Code cleanup
  1126. * src/bittorrent_helper.cc
  1127. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Use C++ style cast
  1129. * src/AsyncNameResolver.cc
  1130. * src/Base64.h
  1131. * src/BtBitfieldMessage.cc
  1132. * src/BtHandshakeMessage.cc
  1133. * src/DefaultBtMessageFactory.cc
  1134. * src/DefaultBtProgressInfoFile.cc
  1135. * src/EpollEventPoll.cc
  1136. * src/ExpatMetalinkProcessor.cc
  1137. * src/IteratableChecksumValidator.cc
  1138. * src/IteratableChunkChecksumValidator.cc
  1139. * src/MessageDigestHelper.cc
  1140. * src/Platform.cc
  1141. * src/RequestGroupMan.cc
  1142. * src/SingleFileAllocationIterator.cc
  1143. * src/Sqlite3MozCookieParser.cc
  1144. * src/XML2SAXMetalinkProcessor.cc
  1145. * src/Xml2XmlRpcRequestProcessor.cc
  1146. * src/util.cc
  1147. * src/util.h
  1148. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1149. Fixed integer potential alignment problem.
  1150. * src/bitfield.h
  1151. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1153. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1154. include file ordering.
  1155. * src/PeerListProcessor.h
  1156. * src/bittorrent_helper.cc
  1157. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1159. * src/Request.cc
  1160. * src/util.cc
  1161. * src/util.h
  1162. * test/RequestTest.cc
  1163. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Rewritten util::uitos()
  1165. * src/util.h
  1166. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Code cleanup
  1168. * src/Request.cc
  1169. * src/Request.h
  1170. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1171. Rewritten Request::parseUrl()
  1172. * src/Request.cc
  1173. * test/RequestTest.cc
  1174. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Removed unused macro SAFE_CHARS
  1176. * src/Request.cc
  1177. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1178. Updated doc
  1179. * src/DHTRoutingTableDeserializer.cc
  1180. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Release 1.6.3
  1182. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Removed unused function.
  1184. * test/DHTPeerAnnounceStorageTest.cc
  1185. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Only decrement cols if cols > 0
  1187. * src/ConsoleStatCalc.cc
  1188. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1189. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1190. translations. Thanks to all translators.
  1191. * po/ca.po
  1192. * po/fr.po
  1193. * po/it.po
  1194. * po/ja.po
  1195. * po/pl.po
  1196. * po/ru.po
  1197. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Updated translation template
  1199. * po
  1200. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Fixed compile error without ssl library.
  1202. * src/util.cc
  1203. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Logged received nodes in get_peers reply message.
  1205. * src/DHTAbstractNodeLookupTask.cc
  1206. * src/DHTAbstractNodeLookupTask.h
  1207. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1209. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1210. * src/DHTMessageDispatcherImpl.cc
  1211. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Don't reuse URI if Request pool is not empty.
  1213. * src/CreateRequestCommand.cc
  1214. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1216. receive get_peers request for torrent which the client is now
  1217. downloading.
  1218. * src/BtSetup.cc
  1219. * src/DHTPeerAnnounceEntry.cc
  1220. * src/DHTPeerAnnounceEntry.h
  1221. * src/DHTPeerAnnounceStorage.cc
  1222. * src/DHTPeerAnnounceStorage.h
  1223. * src/RequestGroup.cc
  1224. * test/DHTPeerAnnounceEntryTest.cc
  1225. * test/DHTPeerAnnounceStorageTest.cc
  1226. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1227. Fixed the bug that in Windows environment new blank line is
  1228. inserted when console readout is updated.
  1229. * src/ConsoleStatCalc.cc
  1230. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Throw exception if binding listening port is failed. Removed
  1232. RequestGroupMan::getInitialCommand(). Use
  1233. fillRequestGroupFromReserver() instead. Delete commands for
  1234. RequestGroup which has errors when it is being added.
  1235. * src/BtSetup.cc
  1236. * src/DownloadEngine.cc
  1237. * src/DownloadEngine.h
  1238. * src/DownloadEngineFactory.cc
  1239. * src/MultiUrlRequestInfo.cc
  1240. * src/RequestGroupMan.cc
  1241. * src/RequestGroupMan.h
  1242. * test/RequestGroupManTest.cc
  1243. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Fixed the bug that when downloading more than one torrent,
  1245. listening port is not reported properly to tracker for 2nd or
  1246. later torrents.
  1247. * src/BtSetup.cc
  1248. * src/PeerListenCommand.cc
  1249. * src/PeerListenCommand.h
  1250. * src/RequestGroup.cc
  1251. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Bump up version number to 1.6.3
  1253. * configure.ac
  1254. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Removed Util.cc from POTFILES.in
  1256. * po/POTFILES.in
  1257. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Updated man page for previous change.
  1259. * doc/aria2c.1.txt
  1260. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. If user name is embedded but password is missing in URI, first
  1262. resolve password using .netrc. If password is found in .netrc,
  1263. then use it as password. If not, use the password specified in
  1264. --ftp-passwd.
  1265. * src/AuthConfigFactory.cc
  1266. * src/Request.cc
  1267. * src/Request.h
  1268. * test/AuthConfigFactoryTest.cc
  1269. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Fixed typo
  1271. * doc/aria2c.1.txt
  1272. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Fixed typo
  1274. * src/usage_text.h
  1275. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Added missing bitfield.cc
  1277. * src/bitfield.cc
  1278. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Renamed Util.{cc,h} as util.{cc,h}
  1280. * src/Util.cc
  1281. * src/Util.h
  1282. * src/util.cc
  1283. * src/util.h
  1284. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Moved static functions in Util class to namespace util.
  1286. * src
  1287. * test
  1288. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1290. Moved generateRandomKey to bittorrent_helper.cc.
  1291. * src/DHTBucket.cc
  1292. * src/DHTGetPeersMessage.cc
  1293. * src/DHTGetPeersReplyMessage.cc
  1294. * src/DHTMessage.cc
  1295. * src/DHTNode.cc
  1296. * src/DHTTokenTracker.cc
  1297. * src/DHTUtil.cc: Removed.
  1298. * src/DHTUtil.h: Removed.
  1299. * src/Makefile.am
  1300. * src/Util.cc
  1301. * src/Util.h
  1302. * src/bitfield.h
  1303. * src/bittorrent_helper.cc
  1304. * src/bittorrent_helper.h
  1305. * test/ARC4Test.cc
  1306. * test/BNodeTest.cc
  1307. * test/DHTAnnouncePeerMessageTest.cc
  1308. * test/DHTAnnouncePeerReplyMessageTest.cc
  1309. * test/DHTFindNodeMessageTest.cc
  1310. * test/DHTFindNodeReplyMessageTest.cc
  1311. * test/DHTGetPeersMessageTest.cc
  1312. * test/DHTGetPeersReplyMessageTest.cc
  1313. * test/DHTPingMessageTest.cc
  1314. * test/DHTPingReplyMessageTest.cc
  1315. * test/DHTTokenTrackerTest.cc
  1316. * test/DHTUtilTest.cc: Removed.
  1317. * test/Makefile.am
  1318. * test/UtilTest.cc
  1319. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1320. Removed the call to trim() because trim() is called for each
  1321. element in split().
  1322. * src/CookieParser.cc
  1323. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Replaced Util::slice() with split()
  1325. * src/AbstractCommand.cc
  1326. * src/CookieParser.cc
  1327. * src/File.cc
  1328. * src/HttpHeaderProcessor.cc
  1329. * src/HttpRequest.cc
  1330. * src/Metalink2RequestGroup.cc
  1331. * src/MetalinkParserController.cc
  1332. * src/Netrc.cc
  1333. * src/NsCookieParser.cc
  1334. * src/ParameterizedStringParser.cc
  1335. * src/ServerStatMan.cc
  1336. * src/UriListParser.cc
  1337. * src/Util.cc
  1338. * src/Util.h
  1339. * src/bittorrent_helper.cc
  1340. * test/UtilTest.cc
  1341. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Use request->getDir() instead of "/" for embedded user/pass in
  1343. URI.
  1344. * src/AuthConfigFactory.cc
  1345. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1346. Fixed wrong insertion point for BasicCred.
  1347. * src/AuthConfigFactory.cc
  1348. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1349. Allowed non-regular file in LocalFilePathOptionHandler
  1350. * src/OptionHandlerImpl.h
  1351. * src/message.h
  1352. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1354. * src/Netrc.cc
  1355. * src/Util.h
  1356. * test/NetrcTest.cc
  1357. * test/sample.netrc
  1358. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Fixed typo
  1360. * src/BtDependency.cc
  1361. * src/BtRejectMessage.cc
  1362. * src/FtpConnection.cc
  1363. * src/HttpHeaderProcessor.h
  1364. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Fixed lintian report in man page
  1366. * doc/aria2c.1.txt
  1367. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Release 1.6.2
  1369. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Updated Ukrainian translation. Thanks to all translators.
  1371. * po/uk.po
  1372. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Updated translation template
  1374. * po
  1375. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Bump up version number to 1.6.2
  1377. * configure.ac
  1378. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Updated licence message in -v output.
  1380. * src/version_usage.cc
  1381. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Replaced aria2 with aria2c in help message.
  1383. * src/version_usage.cc
  1384. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1386. * src/version_usage.cc
  1387. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Quoted localedir
  1389. * src/Makefile.am
  1390. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1392. utime. Check header for utime.h.
  1393. * configure.ac
  1394. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1396. * configure.ac
  1397. * src/daemon.cc
  1398. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Don't set localedir manually. Leave it to autoconf.
  1400. * configure.ac
  1401. * src/Makefile.am
  1402. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1403. Added --install to ACLOCAL_AMFLAGS.
  1404. Removed m4 from SUBDIRS.
  1405. Updated automake 1.11 and autoconf 2.64.
  1406. Replaced some obsolute macros with new one.
  1407. * Makefile.am
  1408. * configure.ac
  1409. * m4/aria2_arg.m4
  1410. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Removed Makefile.am in m4 directory.
  1412. * configure.ac
  1413. * m4/ChangeLog
  1414. * m4/Makefile.am
  1415. * m4/Makefile.in
  1416. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Removed unused m4 macros.
  1418. * m4/intldir.m4
  1419. * m4/inttypes.m4
  1420. * m4/isc-posix.m4
  1421. * m4/libgnutls-extra.m4
  1422. * m4/ulonglong.m4
  1423. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Fixed the bug that causes segmentation fault if
  1425. req->getCurrentUrl() contains printf formatting characters such as
  1426. %d. The statement that causes this bug is useless and removed.
  1427. * src/AbstractCommand.cc
  1428. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1429. * Release 1.6.1
  1430. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Updated Simplified Chinese translation. Thanks to translators.
  1432. * po/zh_CN.po
  1433. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Updated translation template
  1435. * po
  1436. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Bump up version number to 1.6.1
  1438. * configure.ac
  1439. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. Changed interval from 120 to 60 for dropping inactive peer.
  1441. * src/DefaultBtInteractive.cc
  1442. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Updated man page for --user-agent and --peer-id-prefix option.
  1444. * doc/aria2c.1.txt
  1445. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Code clean up
  1447. * src/BtPostDownloadHandler.cc
  1448. * src/ContentTypeRequestGroupCriteria.cc
  1449. * src/ContentTypeRequestGroupCriteria.h
  1450. * src/DownloadHandlerConstants.cc
  1451. * src/DownloadHandlerConstants.h
  1452. * src/DownloadHandlerFactory.cc
  1453. * src/MetalinkPostDownloadHandler.cc
  1454. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. Don't save control file when aria2 exists while checking piece
  1456. hash(behavior of -V option). If control file doesn't exist when
  1457. aria2 launched, the completed length in saved control file will be
  1458. 0 byte and this confuses user. disableSaveControlFile() is called
  1459. in RequestGroup::processCheckIntegrityEntry().
  1460. enableSaveControlFile() will be called after hash checking is
  1461. done. See CheckIntegrityCommand.
  1462. * src/CheckIntegrityCommand.cc
  1463. * src/RequestGroup.cc
  1464. * src/RequestGroup.h
  1465. * src/RequestGroupMan.cc
  1466. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Included version number in Peer ID and client version. Peer ID
  1468. now starts with "aria2/VERSION-", where VERSION is
  1469. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1470. * src/DefaultBtInteractive.cc
  1471. * src/OptionHandlerFactory.cc
  1472. * src/bittorrent_helper.cc
  1473. * src/bittorrent_helper.h
  1474. * src/main.cc
  1475. * src/usage_text.h
  1476. * test/BittorrentHelperTest.cc
  1477. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Fixed memory leak.
  1479. * src/DownloadCommand.cc
  1480. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Removed server, port, user and passwd key from options before
  1482. XMLRPC::Client.call since they are not options of aria2.
  1483. * doc/xmlrpc/aria2mon
  1484. * doc/xmlrpc/aria2rpc
  1485. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Included version number in user-agent string.
  1487. * src/OptionHandlerFactory.cc
  1488. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Fixed the bug that the option values changed by XML-RPC
  1490. method(changeOption and changeGlobalOption) are overwritten to the
  1491. previous value by the next these request which doesn't contain
  1492. that option value. Supporse max-download-limit is initially 0. You
  1493. changed this value to 100K by changeOption. Then you issue
  1494. changeOption request to change max-upload-limit to 50K. This
  1495. second request doesn't contain xml-download-limit, so it is back
  1496. to initial value, 0. Another improvement is that exception is
  1497. thrown when changeOption and changeGlobalOption request contains
  1498. option name which doesn't allowed in each request.
  1499. * src/DownloadEngine.h
  1500. * src/XmlRpcMethod.cc
  1501. * src/XmlRpcMethod.h
  1502. * src/XmlRpcMethodImpl.cc
  1503. * src/download_helper.cc
  1504. * src/download_helper.h
  1505. * test/XmlRpcMethodTest.cc
  1506. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1507. Added missing MetalinkParserStateImpl.{cc,h}
  1508. * src/MetalinkParserStateImpl.cc
  1509. * src/MetalinkParserStateImpl.h
  1510. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Put all MetalinkParserState subclasses into
  1512. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1513. * src/FileMetalinkParserState.cc: Removed
  1514. * src/FileMetalinkParserState.h: Removed
  1515. * src/FilesMetalinkParserState.cc: Removed
  1516. * src/FilesMetalinkParserState.h: Removed
  1517. * src/FinMetalinkParserState.cc: Removed
  1518. * src/FinMetalinkParserState.h: Removed
  1519. * src/HashMetalinkParserState.cc: Removed
  1520. * src/HashMetalinkParserState.h: Removed
  1521. * src/InitialMetalinkParserState.cc: Removed
  1522. * src/InitialMetalinkParserState.h: Removed
  1523. * src/LanguageMetalinkParserState.cc: Removed
  1524. * src/LanguageMetalinkParserState.h: Removed
  1525. * src/Makefile.am
  1526. * src/MetalinkMetalinkParserState.cc: Removed
  1527. * src/MetalinkMetalinkParserState.h: Removed
  1528. * src/MetalinkParserState.h
  1529. * src/MetalinkParserStateMachine.cc
  1530. * src/MetalinkParserStateMachine.h
  1531. * src/OSMetalinkParserState.cc: Removed
  1532. * src/OSMetalinkParserState.h: Removed
  1533. * src/PieceHashMetalinkParserState.cc: Removed
  1534. * src/PieceHashMetalinkParserState.h: Removed
  1535. * src/PiecesMetalinkParserState.cc: Removed
  1536. * src/PiecesMetalinkParserState.h: Removed
  1537. * src/ResourcesMetalinkParserState.cc: Removed
  1538. * src/ResourcesMetalinkParserState.h: Removed
  1539. * src/SignatureMetalinkParserState.cc: Removed
  1540. * src/SignatureMetalinkParserState.h: Removed
  1541. * src/SizeMetalinkParserState.cc: Removed
  1542. * src/SizeMetalinkParserState.h: Removed
  1543. * src/SkipTagMetalinkParserState.cc: Removed
  1544. * src/SkipTagMetalinkParserState.h: Removed
  1545. * src/URLMetalinkParserState.cc: Removed
  1546. * src/URLMetalinkParserState.h: Removed
  1547. * src/VerificationMetalinkParserState.cc: Removed
  1548. * src/VerificationMetalinkParserState.h: Removed
  1549. * src/VersionMetalinkParserState.cc: Removed
  1550. * src/VersionMetalinkParserState.h: Removed
  1551. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. Move all functions in PeerMessageUtil to bittorrent_helper.
  1553. * src/BtBitfieldMessage.cc
  1554. * src/BtBitfieldMessageValidator.h
  1555. * src/BtExtendedMessage.cc
  1556. * src/BtHandshakeMessage.cc
  1557. * src/BtHandshakeMessageValidator.h
  1558. * src/BtPieceMessage.cc
  1559. * src/BtPieceMessageValidator.h
  1560. * src/BtPortMessage.cc
  1561. * src/DHTFindNodeReplyMessage.cc
  1562. * src/DHTGetPeersReplyMessage.cc
  1563. * src/DHTMessageFactoryImpl.cc
  1564. * src/DHTRoutingTableDeserializer.cc
  1565. * src/DHTRoutingTableSerializer.cc
  1566. * src/DHTTokenTracker.cc
  1567. * src/DefaultBtMessageFactory.cc
  1568. * src/IndexBtMessage.cc
  1569. * src/IndexBtMessage.h
  1570. * src/IndexBtMessageValidator.h
  1571. * src/Makefile.am
  1572. * src/PeerMessageUtil.cc: Removed.
  1573. * src/PeerMessageUtil.h: Removed.
  1574. * src/RangeBtMessage.cc
  1575. * src/RangeBtMessage.h
  1576. * src/RangeBtMessageValidator.h
  1577. * src/UTPexExtensionMessage.cc
  1578. * src/ZeroBtMessage.cc
  1579. * src/ZeroBtMessage.h
  1580. * src/bittorrent_helper.cc
  1581. * src/bittorrent_helper.h
  1582. * test/BittorrentHelperTest.cc
  1583. * test/BtAllowedFastMessageTest.cc
  1584. * test/BtBitfieldMessageTest.cc
  1585. * test/BtCancelMessageTest.cc
  1586. * test/BtChokeMessageTest.cc
  1587. * test/BtExtendedMessageTest.cc
  1588. * test/BtHandshakeMessageTest.cc
  1589. * test/BtHaveAllMessageTest.cc
  1590. * test/BtHaveMessageTest.cc
  1591. * test/BtHaveNoneMessageTest.cc
  1592. * test/BtInterestedMessageTest.cc
  1593. * test/BtNotInterestedMessageTest.cc
  1594. * test/BtPieceMessageTest.cc
  1595. * test/BtPortMessageTest.cc
  1596. * test/BtRejectMessageTest.cc
  1597. * test/BtRequestMessageTest.cc
  1598. * test/BtSuggestPieceMessageTest.cc
  1599. * test/BtUnchokeMessageTest.cc
  1600. * test/DHTFindNodeReplyMessageTest.cc
  1601. * test/DHTGetPeersReplyMessageTest.cc
  1602. * test/DHTMessageFactoryImplTest.cc
  1603. * test/DHTRoutingTableDeserializerTest.cc
  1604. * test/DHTRoutingTableSerializerTest.cc
  1605. * test/DefaultBtMessageFactoryTest.cc
  1606. * test/DefaultExtensionMessageFactoryTest.cc
  1607. * test/Makefile.am
  1608. * test/PeerListProcessorTest.cc
  1609. * test/PeerMessageUtilTest.cc: Removed.
  1610. * test/UTPexExtensionMessageTest.cc
  1611. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Limit the size of values list when sending get_peers reply.
  1613. * src/DHTGetPeersReplyMessage.cc
  1614. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1615. Updated banner
  1616. * doc/xmlrpc/aria2rpc
  1617. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1618. Added missing help message for remove command.
  1619. * doc/xmlrpc/aria2rpc
  1620. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1621. Generated configure and config.h.in
  1622. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1623. Add check for fork(), which is missing on MinGW
  1624. * src/daemon.cc
  1625. * configure.ac
  1626. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1628. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1629. Util::httpGMT().
  1630. * src/Util.cc
  1631. * src/Util.h
  1632. * test/UtilTest.cc
  1633. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. * Release 1.6.0
  1635. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Fixed a path to xmlrpc/README.txt
  1637. * doc/Makefile.am
  1638. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Added XML-RPC in -v Configuration output.
  1640. * src/FeatureConfig.cc
  1641. * src/FeatureConfig.h
  1642. * test/FeatureConfigTest.cc
  1643. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Updated Bulgarian, Russian, Slovak and Japanese
  1645. translations. Thanks to all translators.
  1646. * po/bg.po
  1647. * po/ja.po
  1648. * po/ru.po
  1649. * po/sk.po
  1650. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1651. Removed --retry-wait option from aria2rpc
  1652. * doc/xmlrpc/aria2rpc
  1653. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Removed --retry-wait option from man page.
  1655. * doc/aria2c.1.txt
  1656. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1657. Removed --retry-wait option since the current architecture doesn't
  1658. allow sleep for particular URI.
  1659. * src/AbstractCommand.cc
  1660. * src/OptionHandlerFactory.cc
  1661. * src/download_helper.cc
  1662. * src/prefs.cc
  1663. * src/prefs.h
  1664. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Removed Retry-After header support. Since the current architecture
  1666. doesn't allow sleep for particular URI.
  1667. * src/HttpSkipResponseCommand.cc
  1668. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Updated the help message for --daemon option.
  1670. * doc/aria2c.1.txt
  1671. * src/usage_text.h
  1672. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Added our own daemon() function for systems which desn't have
  1674. daemon(3).
  1675. * configure.ac
  1676. * src/Makefile.am
  1677. * src/daemon.cc
  1678. * src/daemon.h
  1679. * src/option_processing.cc
  1680. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Simplified File::getCurrentDir()
  1682. * src/File.cc
  1683. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Use exit() instead of _exit
  1685. * src/RequestGroupMan.cc
  1686. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Replaced "CATEGORY" with "TAGS".
  1688. * src/usage_text.h
  1689. * doc/aria2c.1.txt
  1690. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1691. Updated the help message for --help option.
  1692. * src/usage_text.h
  1693. * doc/aria2c.1.txt
  1694. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Updated man page for added help tags.
  1696. * doc/aria2c.1.txt
  1697. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Added help category #file. Added #file tag to the options related
  1699. to downloaded file.
  1700. * src/OptionHandlerFactory.cc
  1701. * src/help_tags.h
  1702. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Added help categories: #cookie and #hook. Added #https tag to
  1704. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1705. * src/OptionHandlerFactory.cc
  1706. * src/help_tags.h
  1707. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Made MSG_NOT_FILE translatable.
  1709. * src/message.h
  1710. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1711. Updated man page for --help option.
  1712. * doc/aria2c.1.txt
  1713. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Updated doc.
  1715. * src/XmlRpcMethod.h
  1716. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Help category now starts with "#" to distinguish a category from
  1718. keyword search. For example, "http" categroy is now "#http". You
  1719. can type "--help=#http" to get explanation of options related to
  1720. http. If '#' is omitted, then the argument is treated as a keyword
  1721. and aria2 searches options whose name includes the keyword and
  1722. print matched ones. For example, "--help=http" will show options
  1723. whose name includes "http".
  1724. * src/OptionHandlerFactory.cc
  1725. * src/help_tags.h
  1726. * src/usage_text.h
  1727. * src/version_usage.cc
  1728. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Documented missing experimental tag and newly added xml-rpc tag in
  1730. man page.
  1731. * doc/aria2c.1.txt
  1732. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. Added xml-rpc help tag. Tagged xml-rpc related options with
  1734. xml-rpc tag.
  1735. * src/OptionHandlerFactory.cc
  1736. * src/help_tags.h
  1737. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Updated message when a path is not a file. Updated common message
  1739. for wrong option.
  1740. * src/OptionHandlerException.cc
  1741. * src/message.h
  1742. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Use File::isFile() instead of File::exists(). Updated message when
  1744. a path is not a file.
  1745. * src/OptionHandlerImpl.cc
  1746. * src/message.h
  1747. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Fixed the bug that server performence profile is not updated when
  1749. aria2c was terminated by emergency shutdown.
  1750. * src/TrackerWatcherCommand.cc
  1751. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1752. Use LocalFilePathOptionHandler for -T and -M option.
  1753. Updated message of MSG_FILE_NOT_EXIST.
  1754. * src/OptionHandlerFactory.cc
  1755. * src/message.h
  1756. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1757. Added LocalFilePathOptionHandler which check whether the specified
  1758. file path does exist or not.
  1759. * src/OptionHandlerImpl.cc
  1760. * src/message.h
  1761. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Updated wiki page URI.
  1763. * README
  1764. * doc/aria2c.1.txt
  1765. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Added README.txt for xmlrpc directory.
  1767. * doc/Makefile.am
  1768. * doc/xmlrpc/README.txt
  1769. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1770. Bump up version number to 1.6.0.
  1771. * configure.ac
  1772. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Added XML-RPC client scripts written in ruby.
  1774. * doc/Makefile.am
  1775. * doc/xmlrpc/aria2mon
  1776. * doc/xmlrpc/aria2rpc
  1777. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Added support for IPv6 literal address in URI. Now aria2 can
  1779. handle URI such as http://[::1]/
  1780. * src/HttpRequest.cc
  1781. * src/HttpRequest.h
  1782. * src/Request.cc
  1783. * src/Request.h
  1784. * test/HttpRequestTest.cc
  1785. * test/OptionHandlerTest.cc
  1786. * test/RequestTest.cc
  1787. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1788. Fixed the bug that HTTP request header for XML-RPC request is not
  1789. parsed properly.
  1790. * src/HttpHeader.cc
  1791. * src/HttpHeaderProcessor.cc
  1792. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Fixed the bug that XML-RPC authorization might be done before HTTP
  1794. request header is fully received.
  1795. * src/HttpServerCommand.cc
  1796. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Documented --xml-rpc-listen-all option in man page.
  1798. * doc/aria2c.1.txt
  1799. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Added --xml-rpc-listen-all option. If true is given to this
  1801. option, aria2 listens incoming XML-RPC requests on all network
  1802. interfaces. If false is given, listens only on local loopback
  1803. interface. The default value is false.
  1804. * src/HttpListenCommand.cc
  1805. * src/OptionHandlerFactory.cc
  1806. * src/SocketCore.cc
  1807. * src/SocketCore.h
  1808. * src/prefs.cc
  1809. * src/prefs.h
  1810. * src/usage_text.h
  1811. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. * Release 1.5.2
  1813. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Updated Ukrainian and Russian translations. Thanks to all
  1815. translators.
  1816. * po/ru.po
  1817. * po/uk.po
  1818. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Bump up version number to 1.5.2
  1820. * configure.ac
  1821. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Get comment, comment.utf-8, created by and creation date from
  1823. .torrent file and print them in -S output.
  1824. * src/bittorrent_helper.cc
  1825. * src/bittorrent_helper.h
  1826. * test/BittorrentHelperTest.cc
  1827. * test/test.torrent
  1828. * test/utf8.torrent
  1829. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Show exact file size along in -S option output.
  1831. * src/Util.h
  1832. * src/bittorrent_helper.cc
  1833. * test/UtilTest.cc
  1834. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Avoided unnecessary memory allocation in
  1836. BitfieldMan::getCompletedLength().
  1837. * src/BitfieldMan.cc
  1838. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Fixed the bug that download fails if
  1840. SocketCore::establishConnection() throws exception and aria2
  1841. doesn't try another address.
  1842. * src/AbstractCommand.cc
  1843. * src/InitiateConnectionCommand.cc
  1844. * src/message.h
  1845. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1847. detected properly.
  1848. * m4/sqlite3.m4
  1849. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1851. because it causes compile error if PARAMS macro is defined.
  1852. * src/XmlRpcElements.cc
  1853. * src/XmlRpcElements.h
  1854. * src/XmlRpcRequestParserStateImpl.cc
  1855. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. * Release 1.5.1
  1857. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Bump up version number to 1.5.1
  1859. * configure.ac
  1860. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Fixed compile error without BitTorrent support
  1862. * src/DefaultBtProgressInfoFile.cc
  1863. * src/DownloadEngine.cc
  1864. * src/DownloadEngine.h
  1865. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Added missing '=' in Download Results
  1867. * src/RequestGroupMan.cc
  1868. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1869. Fixed compiler warning
  1870. * src/DefaultBtProgressInfoFile.cc
  1871. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1872. Fixed compiler warning on 32bit systems.
  1873. * src/DownloadCommand.cc
  1874. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1875. Call flush from ServerStatMan::save()
  1876. * src/ServerStatMan.cc
  1877. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Check stream status after file is opened.
  1879. * src/CookieStorage.cc
  1880. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. Rewritten Signature::save()
  1882. * src/Signature.cc
  1883. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1884. Rewritten RequestGroupMan::saveServerStat()
  1885. * src/RequestGroupMan.cc
  1886. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Rewritten stream error handling
  1888. * src/DHTAutoSaveCommand.cc
  1889. * src/DHTRoutingTableDeserializer.cc
  1890. * src/DHTRoutingTableSerializer.cc
  1891. * src/DHTSetup.cc
  1892. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1893. Check stream status after file is opened.
  1894. * src/DefaultBtProgressInfoFile.cc
  1895. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1896. Rewritten stream error handling
  1897. * src/DefaultBtProgressInfoFile.cc
  1898. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Make sure that stream is closed before renaming file. Unit test
  1900. fails on mingw32 in the previous implementation.
  1901. * src/CookieStorage.cc
  1902. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1903. Fixed the unit test error without sqlite3
  1904. * test/CookieStorageTest.cc
  1905. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1906. Fixed the undefined reference error
  1907. * test/HttpResponseTest.cc
  1908. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1909. * Release 1.5.0
  1910. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1912. Ukrainian translations. Thanks to all translators.
  1913. * po/ru.po
  1914. * po/it.po
  1915. * po/da.po
  1916. * po/bg.po
  1917. * po/ja.po
  1918. * po/uk.po
  1919. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Added missing src/Logger.cc
  1921. * src/Logger.cc
  1922. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Rewritten Logger to avoiding constly virtual call.
  1924. * src/LogFactory.cc
  1925. * src/LogFactory.h
  1926. * src/Logger.h
  1927. * src/Makefile.am
  1928. * src/Makefile.in
  1929. * src/NullLogger.h: Removed.
  1930. * src/SimpleLogger.cc
  1931. * src/SimpleLogger.h
  1932. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1933. Updated doc
  1934. * src/main.cc
  1935. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Updated debug log message
  1937. * src/AbstractCommand.cc
  1938. * src/message.h
  1939. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Avoid to create zombie process when commands specified in
  1941. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1942. X and NetBSD.
  1943. * src/main.cc
  1944. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Fixed typo
  1946. * src/usage_text.h
  1947. * doc/aria2c.1.txt
  1948. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1949. Documented 'errorCode' of tellStatus in man page.
  1950. * doc/aria2c.1.txt
  1951. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1952. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1953. This key is only available for stopped/completed downloads and its
  1954. value is the error code defined in EXIT STATUS in man page.
  1955. * src/XmlRpcMethodImpl.cc
  1956. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Fixed the bug that session download length is not updated when
  1958. PeerStat is not fastest one.
  1959. * src/SegmentMan.cc
  1960. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Updated doc.
  1962. * doc/aria2c.1.txt
  1963. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Updated doc.
  1965. * src/AbstractCommand.cc
  1966. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Handle the case when DownloadContext has no FileEntry.
  1968. * src/XmlRpcMethodImpl.cc
  1969. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Handle the situation where struct option.name is char *.
  1971. * configure.ac
  1972. * src/OptionParser.cc
  1973. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1974. Code cleanup
  1975. * src/AbstractCommand.cc
  1976. * src/DownloadCommand.cc
  1977. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1978. Use option of each download to create AuthConfig instead of global
  1979. option.
  1980. * src/AuthConfigFactory.cc
  1981. * src/AuthConfigFactory.h
  1982. * src/FtpNegotiationCommand.cc
  1983. * src/HttpRequest.cc
  1984. * src/HttpRequest.h
  1985. * src/HttpRequestCommand.cc
  1986. * src/HttpSkipResponseCommand.cc
  1987. * src/MultiUrlRequestInfo.cc
  1988. * test/AuthConfigFactoryTest.cc
  1989. * test/FtpConnectionTest.cc
  1990. * test/HttpRequestTest.cc
  1991. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Don't call prepareForRetry(1) if all segments are ignored in
  1993. SegmentMan.
  1994. * src/AbstractCommand.cc
  1995. * src/BitfieldMan.cc
  1996. * src/BitfieldMan.h
  1997. * src/SegmentMan.cc
  1998. * src/SegmentMan.h
  1999. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2000. Removed FileEntry::getAssociatedUris()
  2001. * src/FileEntry.h
  2002. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. Updated doc: TODO1.5 -> TODO
  2004. * src/FileEntry.cc
  2005. * src/HttpResponseCommand.cc
  2006. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2008. involved.
  2009. * src/RequestGroup.cc
  2010. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Eliminated duplicated filterBitfield initialization code.
  2012. * src/BitfieldMan.cc
  2013. * src/BitfieldMan.h
  2014. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2015. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2016. relatively naive approach, though). For DownloadFailureException,
  2017. we handle the case when req is null properly.
  2018. * src/AbstractCommand.cc
  2019. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Added function returning suffix of control file to
  2021. DefaultBtProgressInfoFile.
  2022. * src/DefaultBtProgressInfoFile.cc
  2023. * src/DefaultBtProgressInfoFile.h
  2024. * src/RequestGroup.cc
  2025. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Documented getVersion in man page.
  2027. * doc/aria2c.1.txt
  2028. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Documented type of offset and num for tellWaiting xml-rpc method.
  2030. * doc/aria2c.1.txt
  2031. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Implemented getVersion xml-rpc method. This method returns struct
  2033. which has 2 key-value pairs: "version" key is associated to the
  2034. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2035. associated to the list of enabled features, such as "Async DNS",
  2036. "BitTorrent".
  2037. * src/FeatureConfig.h
  2038. * src/XmlRpcMethodFactory.cc
  2039. * src/XmlRpcMethodImpl.cc
  2040. * src/XmlRpcMethodImpl.h
  2041. * test/XmlRpcMethodTest.cc
  2042. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2043. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2044. for compatibility issue.
  2045. * src/SocketCore.cc
  2046. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Fixed compile error with openSSL
  2048. * src/bittorrent_helper.cc
  2049. * src/messageDigest.h
  2050. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2051. Removed bad code: setting certificate type priority to key
  2052. exchange priority.
  2053. * src/SocketCore.cc
  2054. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Disconnect seeder if client is also in seed state.
  2056. * src/BtBitfieldMessage.cc
  2057. * src/BtHaveAllMessage.cc
  2058. * src/BtHaveMessage.cc
  2059. * src/message.h
  2060. * test/BtBitfieldMessageTest.cc
  2061. * test/BtHaveAllMessageTest.cc
  2062. * test/BtHaveMessageTest.cc
  2063. * test/MockPieceStorage.h
  2064. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Keep CreateRequestCommand in queue when no segment is available so
  2066. that they can pick up pieces which slow BitTorrent peers are
  2067. downloading.
  2068. * src/AbstractCommand.cc
  2069. * src/CreateRequestCommand.cc
  2070. * src/CreateRequestCommand.h
  2071. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. --bt-stop-timeout now only checks download speed.
  2073. * src/BtStopDownloadCommand.cc
  2074. * src/BtStopDownloadCommand.h
  2075. * src/BtSetup.cc
  2076. * src/usage_text.h
  2077. * doc/aria2c.1.txt
  2078. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2079. Fixed compile error regarding BUFSIZE.
  2080. * src/DownloadCommand.cc
  2081. * src/DownloadCommand.h
  2082. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Documented tellWaiting xml-rpc method in man page.
  2084. * doc/aria2c.1.txt
  2085. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2086. Bump up version number to 1.5.0
  2087. * configure.ac
  2088. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Removed resolved TODO1.5
  2090. * src/AbstractCommand.cc
  2091. * src/DownloadCommand.cc
  2092. * src/RequestGroup.cc
  2093. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. Release pooled and in-flight Request objectsand URIResult objects
  2095. in FileEntry after download completed.
  2096. * src/DownloadContext.cc
  2097. * src/DownloadContext.h
  2098. * src/FileEntry.cc
  2099. * src/FileEntry.h
  2100. * src/RequestGroup.cc
  2101. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2102. Set manual and source attribute in aria2c.1.txt
  2103. * doc/aria2c.1.txt
  2104. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Documented that the default value of --use-head is 'false' in man
  2106. page.
  2107. * doc/aria2c.1.txt
  2108. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Added bt-stop-timeout option to -i list.
  2110. * doc/aria2c.1.txt
  2111. * src/download_helper.cc
  2112. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Fixed typo
  2114. * doc/aria2c.1.txt
  2115. * src/usage_text.h
  2116. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Removed peer-id-prefix option from -i list.
  2118. * doc/aria2c.1.txt
  2119. * src/download_helper.cc
  2120. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2121. Fixed typo
  2122. * doc/aria2c.1.txt
  2123. * src/usage_text.h
  2124. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. Documented --bt-stop-timeout option in man page.
  2126. * doc/aria2c.1.txt
  2127. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Updated README regarding multi-file torrent web-seeding.
  2129. * doc/README.txt
  2130. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Updated man page regarding multi-file torrent web-seeding.
  2132. * doc/aria2c.1.txt
  2133. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Updated doc
  2135. * src/version_usage.cc
  2136. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Winsock select() doesn't work if no socket is in FD_SET. To
  2138. overcome this problem, a dummy socket is added to FD_SET and it is
  2139. given to select().
  2140. * src/SelectEventPoll.cc
  2141. * src/SelectEventPoll.h
  2142. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Disabled --use-head option by default because --use-head=true
  2144. causes problems on some web sites.
  2145. * src/OptionHandlerFactory.cc
  2146. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Print URL List in -S option for torrent.
  2148. * src/bittorrent_helper.cc
  2149. * src/bittorrent_helper.h
  2150. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Allocate buffer in ctor of DownloadCommand.
  2152. * src/DownloadCommand.cc
  2153. * src/DownloadCommand.h
  2154. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Removed DiskAdaptor::onDownloadComplete()
  2156. * src/DirectDiskAdaptor.cc
  2157. * src/DirectDiskAdaptor.h
  2158. * src/DiskAdaptor.h
  2159. * src/MultiDiskAdaptor.cc
  2160. * src/MultiDiskAdaptor.h
  2161. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2162. Committed missing BtStopDownloadCommand.{cc,h}
  2163. * src/BtStopDownloadCommand.cc
  2164. * src/BtStopDownloadCommand.h
  2165. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2167. download if the download speed is 0 and the number of seeder is 0
  2168. in consecutive SEC seconds. By default, this function is disabled.
  2169. * src/BtSetup.cc
  2170. * src/Makefile.am
  2171. * src/OptionHandlerFactory.cc
  2172. * src/prefs.cc
  2173. * src/prefs.h
  2174. * src/usage_text.h
  2175. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Removed the call to DiskAdaptor::onDownloadComplete() from
  2177. BtCheckIntegrityEntry and DefaultPieceStorage.
  2178. * src/BtCheckIntegrityEntry.cc
  2179. * src/DefaultPieceStorage.cc
  2180. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Commented out throw statements when number of piece is 0 to
  2182. download 0 length torrent.
  2183. * src/bittorrent_helper.cc
  2184. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Call RequestGroup::createNextCommandWithAdj() from
  2186. BtFileAllocationEntry if at least one FileEntry has URI. The
  2187. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2188. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2189. * src/BtFileAllocationEntry.cc
  2190. * src/FileEntry.h
  2191. * src/RequestGroup.cc
  2192. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Generate peer ID after SimpleRandomizer is initialized.
  2194. * src/main.cc
  2195. * src/option_processing.cc
  2196. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Removed unused method argument.
  2198. * src/CreateRequestCommand.cc
  2199. * src/RequestGroup.cc
  2200. * src/RequestGroup.h
  2201. * src/RequestGroupMan.cc
  2202. * src/TrackerWatcherCommand.cc
  2203. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2204. Made URI reusing function work.
  2205. * src/CreateRequestCommand.cc
  2206. * src/FileEntry.cc
  2207. * src/FileEntry.h
  2208. * test/FileEntryTest.cc
  2209. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2210. Add formerly fastest PeerStat's sessionDownloadLength to new
  2211. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2212. bytes in a session.
  2213. * src/PeerStat.cc
  2214. * src/SegmentMan.cc
  2215. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. If pipelining is enabled, we can always pool socket.
  2217. * src/HttpDownloadCommand.cc
  2218. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. In a single file download, file size becomes known just after
  2220. downloading, set total length to FileEntry object when download
  2221. completed.
  2222. * src/DownloadCommand.cc
  2223. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Use std::vector::reserve() for fileEntries and pieceHashes in
  2225. bittorrent_helper
  2226. * src/bittorrent_helper.cc
  2227. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2229. Removed hidden option PREF_RESET_URI.
  2230. * src/AbstractCommand.cc
  2231. * src/OptionHandlerFactory.cc
  2232. * src/prefs.cc
  2233. * src/prefs.h
  2234. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Removed unused variable/function.
  2236. * src/PeerStat.h
  2237. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2238. Show first URL in Download Results if file path is not available.
  2239. * src/FileEntry.h
  2240. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Throw exception if file path doesn't exist in FTP URL.
  2242. * src/InitiateConnectionCommandFactory.cc
  2243. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2245. * src/BitfieldMan.cc
  2246. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2248. of PeerStat in SegmentMan. peerStats is used for calculating
  2249. download speed. Therefore all active PeerStats should be in
  2250. there. Another one is _fastestPeerStats and it only contains
  2251. fastest PeerStat for each hostname/protocol pair. They are used
  2252. for updating ServerStat.
  2253. * src/DownloadCommand.cc
  2254. * src/Request.h
  2255. * src/RequestGroupMan.cc
  2256. * src/SegmentMan.cc
  2257. * src/SegmentMan.h
  2258. * test/SegmentManTest.cc
  2259. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2260. Try all available addresses returned by DNS until it gets
  2261. connected in HTTP(S)/FTP download
  2262. * src/AbstractCommand.cc
  2263. * src/AbstractCommand.h
  2264. * src/AbstractProxyRequestCommand.cc
  2265. * src/AbstractProxyRequestCommand.h
  2266. * src/DNSCache.h
  2267. * src/DownloadEngine.cc
  2268. * src/DownloadEngine.h
  2269. * src/FtpInitiateConnectionCommand.cc
  2270. * src/FtpInitiateConnectionCommand.h
  2271. * src/FtpNegotiationCommand.cc
  2272. * src/FtpNegotiationCommand.h
  2273. * src/HttpInitiateConnectionCommand.cc
  2274. * src/HttpInitiateConnectionCommand.h
  2275. * src/HttpRequestCommand.cc
  2276. * src/HttpRequestCommand.h
  2277. * src/InitiateConnectionCommand.cc
  2278. * src/InitiateConnectionCommand.h
  2279. * test/DNSCacheTest.cc
  2280. * test/Makefile.am
  2281. * test/SimpleDNSCacheTest.cc
  2282. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Updated doc
  2284. * src/download_helper.cc
  2285. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2286. Refactored fieldMan ctor.
  2287. * src/BitfieldMan.cc
  2288. * src/BitfieldMan.h
  2289. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2290. Don't print "No files to download." message if -S is given.
  2291. * src/main.cc
  2292. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Set referer and method to newly created Request object.
  2294. * src/CreateRequestCommand.cc
  2295. * src/FileEntry.cc
  2296. * src/FileEntry.h
  2297. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2299. * src/AbstractCommand.cc
  2300. * src/AbstractCommand.h
  2301. * src/CreateRequestCommand.cc
  2302. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2303. Get proxy download working
  2304. * src/AbstractProxyRequestCommand.cc
  2305. * src/AbstractProxyRequestCommand.h
  2306. * src/AbstractProxyResponseCommand.cc
  2307. * src/AbstractProxyResponseCommand.h
  2308. * src/FtpInitiateConnectionCommand.cc
  2309. * src/FtpTunnelRequestCommand.cc
  2310. * src/FtpTunnelRequestCommand.h
  2311. * src/FtpTunnelResponseCommand.cc
  2312. * src/FtpTunnelResponseCommand.h
  2313. * src/HttpInitiateConnectionCommand.cc
  2314. * src/HttpProxyRequestCommand.cc
  2315. * src/HttpProxyRequestCommand.h
  2316. * src/HttpProxyResponseCommand.cc
  2317. * src/HttpProxyResponseCommand.h
  2318. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Use SegmentMan::getSegment(cuid) for single file download.
  2320. * src/AbstractCommand.cc
  2321. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Fixed bufSize calculation
  2323. * src/DownloadCommand.cc
  2324. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2325. Don't append "/" if base URI ends with "/".
  2326. * src/bittorrent_helper.cc
  2327. * test/url-list-multiFile.torrent
  2328. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. HTTP pipelining is now working. Fixed Segmention fault in
  2330. BitfieldMan's copy ctor.
  2331. * src/AbstractCommand.cc
  2332. * src/BitfieldMan.cc
  2333. * src/BitfieldMan.h
  2334. * src/DownloadCommand.cc
  2335. * src/HttpDownloadCommand.cc
  2336. * src/HttpRequest.cc
  2337. * src/SegmentMan.cc
  2338. * src/SegmentMan.h
  2339. * test/BitfieldManTest.cc
  2340. * test/SegmentManTest.cc
  2341. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Removed ServerHost. Same functionality is implemented using
  2343. FileEntry's in-flight Request objects.
  2344. * src/AbstractCommand.cc
  2345. * src/BtDependency.cc
  2346. * src/CreateRequestCommand.cc
  2347. * src/FileEntry.cc
  2348. * src/FileEntry.h
  2349. * src/FtpNegotiationCommand.cc
  2350. * src/HttpResponseCommand.cc
  2351. * src/Makefile.am
  2352. * src/Metalink2RequestGroup.cc
  2353. * src/RequestGroup.cc
  2354. * src/RequestGroup.h
  2355. * src/ServerHost.cc: Removed
  2356. * src/ServerHost.h: Removed
  2357. * test/BtDependencyTest.cc
  2358. * test/FileEntryTest.cc
  2359. * test/RequestGroupTest.cc
  2360. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2361. Rewritten PeerStat handling. In the previous implementation,
  2362. faster command tries to find slower command. In this new
  2363. implementation, slower command tries to find faster command.
  2364. PeerStat is now created in each HTTP/FTP request to get download
  2365. rate correctly. If the download range is small, the download rate
  2366. tends to small and this will occur at the later stage of download.
  2367. * src/AbstractCommand.cc
  2368. * src/DownloadCommand.cc
  2369. * src/FileEntry.cc
  2370. * src/FileEntry.h
  2371. * src/Request.cc
  2372. * src/Request.h
  2373. * src/RequestGroup.h
  2374. * src/RequestGroupMan.cc
  2375. * src/SegmentMan.cc
  2376. * src/SegmentMan.h
  2377. * test/SegmentManTest.cc
  2378. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2379. Removed _uris from RequestGroup. All functions that refer to _uris
  2380. were moved to FileEntry. Exit status code are now defined in
  2381. DownloadResultCode.h.
  2382. * src/AbstractCommand.cc
  2383. * src/AdaptiveURISelector.cc
  2384. * src/AdaptiveURISelector.h
  2385. * src/AutoSaveCommand.cc
  2386. * src/BtPostDownloadHandler.cc
  2387. * src/CheckIntegrityDispatcherCommand.cc
  2388. * src/CookieStorage.cc
  2389. * src/DHTAutoSaveCommand.cc
  2390. * src/DHTBucketRefreshCommand.cc
  2391. * src/DHTEntryPointNameResolveCommand.cc
  2392. * src/DHTInteractionCommand.cc
  2393. * src/DHTPeerAnnounceCommand.cc
  2394. * src/DHTTokenUpdateCommand.cc
  2395. * src/DlAbortEx.h
  2396. * src/DlRetryEx.h
  2397. * src/DownloadCommand.cc
  2398. * src/DownloadContext.h
  2399. * src/DownloadFailureException.h
  2400. * src/DownloadResult.h
  2401. * src/DownloadResultCode.h
  2402. * src/FeedbackURISelector.cc
  2403. * src/FeedbackURISelector.h
  2404. * src/FileEntry.cc
  2405. * src/FileEntry.h
  2406. * src/FtpNegotiationCommand.cc
  2407. * src/HttpListenCommand.cc
  2408. * src/HttpResponseCommand.cc
  2409. * src/HttpServerResponseCommand.cc
  2410. * src/HttpSkipResponseCommand.cc
  2411. * src/InOrderURISelector.cc
  2412. * src/InOrderURISelector.h
  2413. * src/Makefile.am
  2414. * src/Makefile.in
  2415. * src/Metalink2RequestGroup.cc
  2416. * src/MultiUrlRequestInfo.cc
  2417. * src/MultiUrlRequestInfo.h
  2418. * src/OptionHandlerFactory.cc
  2419. * src/PeerListenCommand.cc
  2420. * src/RecoverableException.h
  2421. * src/RequestGroup.cc
  2422. * src/RequestGroup.h
  2423. * src/RequestGroupMan.cc
  2424. * src/RequestGroupMan.h
  2425. * src/TimedHaltCommand.cc
  2426. * src/TrackerWatcherCommand.cc
  2427. * src/URIResult.cc
  2428. * src/URIResult.h
  2429. * src/URISelector.h
  2430. * src/XmlRpcMethodImpl.cc
  2431. * src/bittorrent_helper.cc
  2432. * src/bittorrent_helper.h
  2433. * src/download_helper.cc
  2434. * src/main.cc
  2435. * src/option_processing.cc
  2436. * test/BtDependencyTest.cc
  2437. * test/BtPostDownloadHandlerTest.cc
  2438. * test/CookieStorageTest.cc
  2439. * test/DefaultBtMessageDispatcherTest.cc
  2440. * test/DownloadHandlerFactoryTest.cc
  2441. * test/DownloadHelperTest.cc
  2442. * test/FeedbackURISelectorTest.cc
  2443. * test/FileEntryTest.cc
  2444. * test/InOrderURISelectorTest.cc
  2445. * test/Metalink2RequestGroupTest.cc
  2446. * test/MetalinkPostDownloadHandlerTest.cc
  2447. * test/RequestGroupManTest.cc
  2448. * test/RequestGroupTest.cc
  2449. * test/XmlRpcMethodTest.cc
  2450. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Removed MockBtContext.h
  2452. * test/Makefile.am
  2453. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2454. Removed _currentRequest from StreamCheckIntegrityEntry and
  2455. StreamFileAllocationEntry.
  2456. * src/AbstractCommand.cc
  2457. * src/HttpResponseCommand.cc
  2458. * src/RequestGroup.cc
  2459. * src/StreamCheckIntegrityEntry.cc
  2460. * src/StreamCheckIntegrityEntry.h
  2461. * src/StreamFileAllocationEntry.cc
  2462. * src/StreamFileAllocationEntry.h
  2463. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2464. Rewritten DownloadContext and removed SingleFileDownloadContext
  2465. and BtContext and its derived classes. BitTorrent specific
  2466. attributes are now set by DownloadContext::setAttribute() with key
  2467. bittorrent::BITTORRENT.
  2468. * src/AbstractBtMessage.cc
  2469. * src/AbstractBtMessage.h
  2470. * src/AbstractCommand.cc
  2471. * src/AbstractCommand.h
  2472. * src/AbstractProxyRequestCommand.cc
  2473. * src/AbstractProxyResponseCommand.cc
  2474. * src/ActivePeerConnectionCommand.cc
  2475. * src/ActivePeerConnectionCommand.h
  2476. * src/AnnounceList.cc
  2477. * src/BtCheckIntegrityEntry.cc
  2478. * src/BtConstants.h
  2479. * src/BtContext.h: Removed
  2480. * src/BtDependency.cc
  2481. * src/BtExtendedMessage.cc
  2482. * src/BtPieceMessage.cc
  2483. * src/BtPieceMessage.h
  2484. * src/BtPostDownloadHandler.cc
  2485. * src/BtRegistry.cc
  2486. * src/BtRegistry.h
  2487. * src/BtSetup.cc
  2488. * src/CheckIntegrityCommand.cc
  2489. * src/CheckIntegrityEntry.cc
  2490. * src/ChecksumCheckIntegrityEntry.cc
  2491. * src/ConsoleStatCalc.cc
  2492. * src/ContentTypeRequestGroupCriteria.cc
  2493. * src/DHTGetPeersCommand.cc
  2494. * src/DHTGetPeersCommand.h
  2495. * src/DHTPeerLookupTask.cc
  2496. * src/DHTPeerLookupTask.h
  2497. * src/DHTTaskFactory.h
  2498. * src/DHTTaskFactoryImpl.cc
  2499. * src/DHTTaskFactoryImpl.h
  2500. * src/DefaultBtAnnounce.cc
  2501. * src/DefaultBtAnnounce.h
  2502. * src/DefaultBtContext.cc: Removed
  2503. * src/DefaultBtContext.h: Removed
  2504. * src/DefaultBtInteractive.cc
  2505. * src/DefaultBtInteractive.h
  2506. * src/DefaultBtMessageDispatcher.cc
  2507. * src/DefaultBtMessageDispatcher.h
  2508. * src/DefaultBtMessageFactory.cc
  2509. * src/DefaultBtMessageFactory.h
  2510. * src/DefaultBtMessageReceiver.cc
  2511. * src/DefaultBtMessageReceiver.h
  2512. * src/DefaultBtProgressInfoFile.cc
  2513. * src/DefaultBtRequestFactory.cc
  2514. * src/DefaultBtRequestFactory.h
  2515. * src/DefaultExtensionMessageFactory.cc
  2516. * src/DefaultExtensionMessageFactory.h
  2517. * src/DefaultPeerStorage.cc
  2518. * src/DefaultPeerStorage.h
  2519. * src/DefaultPieceStorage.cc
  2520. * src/DefaultSegmentManFactory.cc
  2521. * src/DiskAdaptor.cc
  2522. * src/DiskAdaptor.h
  2523. * src/DownloadContext.cc
  2524. * src/DownloadContext.h
  2525. * src/DownloadEngine.cc
  2526. * src/DownloadEngineFactory.cc
  2527. * src/DownloadHandler.cc
  2528. * src/DownloadResult.h
  2529. * src/FileAllocationCommand.cc
  2530. * src/FileAllocationDispatcherCommand.cc
  2531. * src/FileAllocationEntry.cc
  2532. * src/FileEntry.h
  2533. * src/FillRequestGroupCommand.cc
  2534. * src/FtpDownloadCommand.cc
  2535. * src/FtpFinishDownloadCommand.cc
  2536. * src/FtpInitiateConnectionCommand.cc
  2537. * src/FtpNegotiationCommand.cc
  2538. * src/FtpTunnelRequestCommand.cc
  2539. * src/FtpTunnelResponseCommand.cc
  2540. * src/HandshakeExtensionMessage.cc
  2541. * src/HandshakeExtensionMessage.h
  2542. * src/HaveEraseCommand.cc
  2543. * src/HttpDownloadCommand.cc
  2544. * src/HttpInitiateConnectionCommand.cc
  2545. * src/HttpProxyRequestCommand.cc
  2546. * src/HttpProxyResponseCommand.cc
  2547. * src/HttpRequest.cc
  2548. * src/HttpRequest.h
  2549. * src/HttpRequestCommand.cc
  2550. * src/HttpResponseCommand.cc
  2551. * src/HttpServerBodyCommand.cc
  2552. * src/HttpServerCommand.cc
  2553. * src/HttpSkipResponseCommand.cc
  2554. * src/InitiateConnectionCommandFactory.cc
  2555. * src/InitiatorMSEHandshakeCommand.cc
  2556. * src/InitiatorMSEHandshakeCommand.h
  2557. * src/IteratableChecksumValidator.cc
  2558. * src/IteratableChecksumValidator.h
  2559. * src/IteratableChunkChecksumValidator.cc
  2560. * src/MSEHandshake.cc
  2561. * src/MSEHandshake.h
  2562. * src/Makefile.am
  2563. * src/Makefile.in
  2564. * src/Metalink2RequestGroup.cc
  2565. * src/MetalinkPostDownloadHandler.cc
  2566. * src/MultiDiskAdaptor.cc
  2567. * src/MultiDiskAdaptor.h
  2568. * src/MultiFileAllocationIterator.cc
  2569. * src/MultiUrlRequestInfo.cc
  2570. * src/PeerChokeCommand.cc
  2571. * src/PeerChokeCommand.h
  2572. * src/PeerInitiateConnectionCommand.cc
  2573. * src/PeerInitiateConnectionCommand.h
  2574. * src/PeerInteractionCommand.cc
  2575. * src/PeerInteractionCommand.h
  2576. * src/PeerReceiveHandshakeCommand.cc
  2577. * src/PieceHashCheckIntegrityEntry.cc
  2578. * src/RealtimeCommand.cc
  2579. * src/ReceiverMSEHandshakeCommand.cc
  2580. * src/RequestGroup.cc
  2581. * src/RequestGroup.h
  2582. * src/RequestGroupEntry.cc
  2583. * src/RequestGroupMan.cc
  2584. * src/SeedCheckCommand.cc
  2585. * src/SeedCheckCommand.h
  2586. * src/SegmentMan.cc
  2587. * src/ShareRatioSeedCriteria.h
  2588. * src/SingleFileDownloadContext.cc: Removed
  2589. * src/SingleFileDownloadContext.h: Removed
  2590. * src/SleepCommand.cc
  2591. * src/StreamCheckIntegrityEntry.cc
  2592. * src/TrackerWatcherCommand.cc
  2593. * src/TrackerWatcherCommand.h
  2594. * src/UnknownLengthPieceStorage.cc
  2595. * src/Util.cc
  2596. * src/Util.h
  2597. * src/XmlRpcMethodImpl.cc
  2598. * src/bittorrent_helper.cc
  2599. * src/bittorrent_helper.h
  2600. * src/download_helper.cc
  2601. * src/main.cc
  2602. * src/option_processing.cc
  2603. * test/BitfieldManTest.cc
  2604. * test/BittorrentHelperTest.cc
  2605. * test/BtCancelMessageTest.cc
  2606. * test/BtChokeMessageTest.cc
  2607. * test/BtDependencyTest.cc
  2608. * test/BtPieceMessageTest.cc
  2609. * test/BtPostDownloadHandlerTest.cc
  2610. * test/BtRegistryTest.cc
  2611. * test/BtRejectMessageTest.cc
  2612. * test/BtRequestMessageTest.cc
  2613. * test/DHTPeerAnnounceStorageTest.cc
  2614. * test/DefaultBtAnnounceTest.cc
  2615. * test/DefaultBtContextTest.cc: Removed
  2616. * test/DefaultBtMessageDispatcherTest.cc
  2617. * test/DefaultBtMessageFactoryTest.cc
  2618. * test/DefaultBtProgressInfoFileTest.cc
  2619. * test/DefaultBtRequestFactoryTest.cc
  2620. * test/DefaultExtensionMessageFactoryTest.cc
  2621. * test/DefaultPeerStorageTest.cc
  2622. * test/DefaultPieceStorageTest.cc
  2623. * test/DirectDiskAdaptorTest.cc
  2624. * test/DownloadContextTest.cc
  2625. * test/DownloadHandlerFactoryTest.cc
  2626. * test/DownloadHelperTest.cc
  2627. * test/HandshakeExtensionMessageTest.cc
  2628. * test/HttpRequestTest.cc
  2629. * test/HttpResponseTest.cc
  2630. * test/IteratableChecksumValidatorTest.cc
  2631. * test/IteratableChunkChecksumValidatorTest.cc
  2632. * test/MSEHandshakeTest.cc
  2633. * test/Makefile.am
  2634. * test/Makefile.in
  2635. * test/Metalink2RequestGroupTest.cc
  2636. * test/MetalinkPostDownloadHandlerTest.cc
  2637. * test/MockBtContext.h: Removed
  2638. * test/MockDHTTaskFactory.h
  2639. * test/MockDownloadContext.h: Removed
  2640. * test/MockPieceStorage.h
  2641. * test/MultiDiskAdaptorTest.cc
  2642. * test/MultiFileAllocationIteratorTest.cc
  2643. * test/RequestGroupManTest.cc
  2644. * test/RequestGroupTest.cc
  2645. * test/SegmentManTest.cc
  2646. * test/ShareRatioSeedCriteriaTest.cc
  2647. * test/SingleFileDownloadContextTest.cc: Removed
  2648. * test/UtilTest.cc
  2649. * test/XmlRpcMethodTest.cc
  2650. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Added experimental support of WEB-Seeding for multi-file torrent.
  2652. Due to fundamental changes in file handling in HTTP/FTP code, many
  2653. functions are not working: PeerStat, ServerHost, proxy..etc
  2654. * src/AbstractCommand.cc
  2655. * src/AbstractCommand.h
  2656. * src/BitfieldMan.cc
  2657. * src/BitfieldMan.h
  2658. * src/CreateRequestCommand.cc
  2659. * src/CreateRequestCommand.h
  2660. * src/DefaultPieceStorage.cc
  2661. * src/DefaultPieceStorage.h
  2662. * src/DownloadCommand.cc
  2663. * src/DownloadCommand.h
  2664. * src/DownloadContext.cc
  2665. * src/DownloadContext.h
  2666. * src/FileEntry.cc
  2667. * src/FileEntry.h
  2668. * src/FtpDownloadCommand.cc
  2669. * src/FtpDownloadCommand.h
  2670. * src/FtpFinishDownloadCommand.cc
  2671. * src/FtpFinishDownloadCommand.h
  2672. * src/FtpInitiateConnectionCommand.cc
  2673. * src/FtpInitiateConnectionCommand.h
  2674. * src/FtpNegotiationCommand.cc
  2675. * src/FtpNegotiationCommand.h
  2676. * src/FtpTunnelResponseCommand.cc
  2677. * src/HttpDownloadCommand.cc
  2678. * src/HttpDownloadCommand.h
  2679. * src/HttpInitiateConnectionCommand.cc
  2680. * src/HttpInitiateConnectionCommand.h
  2681. * src/HttpProxyResponseCommand.cc
  2682. * src/HttpRequest.cc
  2683. * src/HttpRequest.h
  2684. * src/HttpRequestCommand.cc
  2685. * src/HttpRequestCommand.h
  2686. * src/HttpResponseCommand.cc
  2687. * src/HttpResponseCommand.h
  2688. * src/HttpSkipResponseCommand.cc
  2689. * src/HttpSkipResponseCommand.h
  2690. * src/InitiateConnectionCommand.cc
  2691. * src/InitiateConnectionCommand.h
  2692. * src/InitiateConnectionCommandFactory.cc
  2693. * src/InitiateConnectionCommandFactory.h
  2694. * src/Makefile.am
  2695. * src/PieceStorage.h
  2696. * src/RequestGroup.cc
  2697. * src/RequestGroup.h
  2698. * src/RequestGroupMan.cc
  2699. * src/SegmentMan.cc
  2700. * src/SegmentMan.h
  2701. * src/SingleFileDownloadContext.h
  2702. * src/StreamFileAllocationEntry.cc
  2703. * src/TrackerWatcherCommand.cc
  2704. * src/UnknownLengthPieceStorage.cc
  2705. * src/UnknownLengthPieceStorage.h
  2706. * src/array_fun.h
  2707. * src/bitfield.h
  2708. * src/download_helper.cc
  2709. * test/DownloadContextTest.cc
  2710. * test/Makefile.am
  2711. * test/MockDownloadContext.h
  2712. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Added tellWaiting XML-RPC method.
  2714. * src/SingleFileDownloadContext.cc
  2715. * src/XmlRpcMethodFactory.cc
  2716. * src/XmlRpcMethodImpl.cc
  2717. * src/XmlRpcMethodImpl.h
  2718. * test/XmlRpcMethodTest.cc
  2719. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. Updated CookieStorageTest
  2721. * test/CookieStorageTest.cc
  2722. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2723. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2724. handle excepion inside these functions.
  2725. * src/LibgnutlsTLSContext.cc
  2726. * src/LibgnutlsTLSContext.h
  2727. * src/LibsslTLSContext.cc
  2728. * src/LibsslTLSContext.h
  2729. * src/MultiUrlRequestInfo.cc
  2730. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Added comment
  2732. * src/RequestGroup.cc
  2733. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. In CookieStorage::load() and saveNsFormat(), handle exception
  2735. inside the functions. When saving Cookies, first write temporary
  2736. file and after successful writes, then renames it to final
  2737. destination.
  2738. * src/CookieStorage.cc
  2739. * src/CookieStorage.h
  2740. * src/MultiUrlRequestInfo.cc
  2741. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. The default value of --dir option is the absolute path to the
  2743. current directory. If getcwd() is failed, then it is ".", which is
  2744. the same value with old implementation. This change is necessary
  2745. because after daemon() call, the current working directory is
  2746. changed to /.
  2747. * src/File.cc
  2748. * src/File.h
  2749. * src/OptionHandlerFactory.cc
  2750. * src/option_processing.cc
  2751. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Call daemon() with arguments(0,0), which means daemon() changes
  2753. current working directory to / and redirects stdin, stdout and
  2754. stderr to /dev/null.
  2755. * src/option_processing.cc
  2756. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2757. Small performance optimizations.
  2758. * src/RequestGroupMan.cc
  2759. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2761. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2762. * src/RequestGroupMan.cc
  2763. * src/RequestGroupMan.h
  2764. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2765. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2766. setNoWiat(true) if newly created command calls
  2767. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2768. * src/HttpListenCommand.cc
  2769. * src/HttpServerBodyCommand.cc
  2770. * src/HttpServerCommand.cc
  2771. * src/HttpServerResponseCommand.cc
  2772. * src/InitiateConnectionCommand.cc
  2773. * src/RequestGroup.cc
  2774. * src/StreamFileAllocationEntry.cc
  2775. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. Removed include vector
  2777. * src/BtRegistry.h
  2778. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Rewritten BtRegistry
  2780. * src/BtRegistry.cc
  2781. * src/BtRegistry.h
  2782. * src/BtSetup.cc
  2783. * src/ConsoleStatCalc.cc
  2784. * src/PeerInteractionCommand.cc
  2785. * src/PeerReceiveHandshakeCommand.cc
  2786. * src/ReceiverMSEHandshakeCommand.cc
  2787. * src/RequestGroup.cc
  2788. * src/XmlRpcMethodImpl.cc
  2789. * test/BtRegistryTest.cc
  2790. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2792. * src/DefaultBtProgressInfoFile.cc
  2793. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Throw an exception if position is less than 0.
  2795. * src/XmlRpcMethodImpl.cc
  2796. * test/XmlRpcMethodTest.cc
  2797. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2798. Use writeFilePath() in ConsoleStatCalc.cc
  2799. * src/ConsoleStatCalc.cc
  2800. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2801. Receive the return value as const reference from
  2802. DownloadContext::getFileEntries().
  2803. * src/DefaultPieceStorage.cc
  2804. * src/RequestGroupMan.cc
  2805. * src/XmlRpcMethodImpl.cc
  2806. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. DownloadContext now has _fileEntries so that
  2808. DownloadContext::getFileEntries() can returns its const reference.
  2809. * src/DefaultBtContext.cc
  2810. * src/DefaultBtContext.h
  2811. * src/DownloadContext.cc
  2812. * src/DownloadContext.h
  2813. * src/SingleFileDownloadContext.cc
  2814. * src/SingleFileDownloadContext.h
  2815. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2817. writeFilePath() function template from RequestGroupMan.cc to
  2818. FileEntry.h
  2819. * src/FileEntry.h
  2820. * src/RequestGroupMan.cc
  2821. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Documented 'position' parameter is starting from 0 in man page.
  2823. * doc/aria2c.1.txt
  2824. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Updated doc.
  2826. * src/MSEHandshake.cc
  2827. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Removed _acceptFeatures and its accessor functions from
  2829. RequestGroup since they are not used practically.
  2830. * src/HttpRequestCommand.cc
  2831. * src/RequestGroup.cc
  2832. * src/RequestGroup.h
  2833. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Removed member _maxTries from RequestGroup class to avoid
  2835. duplicate option value. Those classes who refer this variable
  2836. should use option value of PREF_MAX_TRIES directly.
  2837. * src/AbstractCommand.cc
  2838. * src/RequestGroup.cc
  2839. * src/RequestGroup.h
  2840. * src/TrackerWatcherCommand.cc
  2841. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. * Release 1.4.1
  2843. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2844. Fixed compiler warnings on netbsd
  2845. * src/DHTConnectionImpl.cc
  2846. * src/PeerListenCommand.cc
  2847. * src/PeerSessionResource.cc
  2848. * src/SegmentMan.cc
  2849. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2850. Updated Ukrainian translation. Thanks to all translators.
  2851. * po/uk.po
  2852. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2853. Bump up version number to 1.4.1.
  2854. * configure.ac
  2855. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. Added unit tests for strjoin, strconcat and strappend.
  2857. * test/a2functionalTest.cc
  2858. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2859. Rewritten strconcat and strappend using operator+ instead of
  2860. append().
  2861. * src/a2functional.h
  2862. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2863. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2864. is enabled.
  2865. * src/Makefile.am
  2866. * test/Makefile.am
  2867. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2868. Added countSeeder() function which counts seeder in the given
  2869. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2870. * src/ConsoleStatCalc.cc
  2871. * src/Peer.h
  2872. * src/XmlRpcMethodImpl.cc
  2873. * test/PeerTest.cc
  2874. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Documented missing seeder in getPeers xml-rpc method.
  2876. Documented uploadLength and numSeeders.
  2877. * doc/aria2c.1.txt
  2878. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Added uploadLength and numSeeders to the response of tellStatus
  2880. xml-rpc method. Assert that PeerStorage instance is not null
  2881. instead of checking if statement. It should be non-null in this
  2882. context.
  2883. * src/XmlRpcMethodImpl.cc
  2884. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2885. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2886. * src/XmlRpcResponse.cc
  2887. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2888. Avoid intermediate object during string concatenation.
  2889. * src/HttpRequest.cc
  2890. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2891. Added strjoin function template. Use it in pathJoin()
  2892. * src/Util.h
  2893. * src/a2functional.h
  2894. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2895. Avoid intermediate object during string concatenation. Replaced
  2896. post-increment unary operator with pre-increment one in for loop.
  2897. * src/AdaptiveURISelector.cc
  2898. * src/AnnounceList.cc
  2899. * src/AuthConfig.h
  2900. * src/BtBitfieldMessage.cc
  2901. * src/BtExtendedMessage.cc
  2902. * src/BtHandshakeMessage.cc
  2903. * src/BtPieceMessage.cc
  2904. * src/BtPortMessage.cc
  2905. * src/Cookie.cc
  2906. * src/DHTAnnouncePeerMessage.cc
  2907. * src/DHTAutoSaveCommand.cc
  2908. * src/DHTGetPeersReplyMessage.cc
  2909. * src/DHTNode.cc
  2910. * src/DHTQueryMessage.cc
  2911. * src/DHTResponseMessage.cc
  2912. * src/DHTUnknownMessage.cc
  2913. * src/DefaultBtAnnounce.cc
  2914. * src/DefaultBtContext.cc
  2915. * src/DefaultBtInteractive.cc
  2916. * src/DefaultBtProgressInfoFile.cc
  2917. * src/DefaultPeerStorage.cc
  2918. * src/DownloadEngine.cc
  2919. * src/FeatureConfig.cc
  2920. * src/File.cc
  2921. * src/FtpConnection.cc
  2922. * src/FtpNegotiationCommand.cc
  2923. * src/HandshakeExtensionMessage.cc
  2924. * src/HttpConnection.cc
  2925. * src/HttpRequest.cc
  2926. * src/HttpResponseCommand.cc
  2927. * src/HttpServer.cc
  2928. * src/IndexBtMessage.cc
  2929. * src/Metalink2RequestGroup.cc
  2930. * src/OptionHandlerImpl.h
  2931. * src/PStringBuildVisitor.cc
  2932. * src/Peer.cc
  2933. * src/PeerListenCommand.cc
  2934. * src/Piece.cc
  2935. * src/RangeBtMessage.cc
  2936. * src/Request.cc
  2937. * src/Request.h
  2938. * src/RequestGroup.cc
  2939. * src/RequestGroupMan.cc
  2940. * src/ServerStat.cc
  2941. * src/ServerStatMan.cc
  2942. * src/UTPexExtensionMessage.cc
  2943. * src/Util.cc
  2944. * src/a2functional.h
  2945. * src/download_helper.cc
  2946. * src/messageDigest.cc
  2947. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2948. Unchoke a peer randomly at first and second choke round in seed
  2949. state.
  2950. * src/BtSeederStateChoke.cc
  2951. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2952. Added (sock_t) to quiet compiler warnings in MinGW
  2953. * src/SocketCore.cc
  2954. * src/SocketCore.h
  2955. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2957. * src/EpollEventPoll.h
  2958. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2959. Added fork() emulation using CreateProcess() in MinGW
  2960. * src/RequestGroupMan.cc
  2961. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. * Release 1.4.0
  2963. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Added utf8.torrent to EXTRA_DIST
  2965. * test/Makefile.am
  2966. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Fixed docs of aria2.addMetalink xml-rpc method.
  2968. * doc/aria2c.1.txt
  2969. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Added Slovak translation. Updated Ukrainian and Brazilian
  2971. Portuguese translation. Thanks to all translators.
  2972. * po/sk.po
  2973. * po/uk.po
  2974. * po/pt_BR.po
  2975. * po/LINGUAS
  2976. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2977. Added test case for XmlRpcProcessor to fail to parse malformed
  2978. document.
  2979. * test/XmlRpcRequestProcessorTest.cc
  2980. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2981. Removed *.gmo files in po because they are generated on 'make
  2982. dist'
  2983. * po/*.gmo
  2984. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2985. Documented max-concurrent-downloads of changeGlobalOption method
  2986. in man page.
  2987. * doc/aria2c.1.txt
  2988. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Added max-concurrent-downloads option to changeGlobalOption
  2990. xml-rpc method. Rewritten loop conditional in
  2991. RequestGroupMan::fillRequestGroupFromReserver().
  2992. * src/RequestGroupMan.cc
  2993. * src/RequestGroupMan.h
  2994. * src/XmlRpcMethod.cc
  2995. * src/XmlRpcMethodImpl.cc
  2996. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Documented position parameter in man page.
  2998. * doc/aria2c.1.txt
  2999. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. Added 'position' parameter to addUri, addTorrent and addMetalink
  3001. xml-rpc method.
  3002. * src/RequestGroupMan.cc
  3003. * src/RequestGroupMan.h
  3004. * src/XmlRpcMethodImpl.cc
  3005. * test/XmlRpcMethodTest.cc
  3006. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3007. Removed Peer.cc from compile source list when --disable-bittorrent
  3008. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3009. takes Peer.
  3010. * src/DefaultPieceStorage.cc
  3011. * src/DefaultPieceStorage.h
  3012. * src/Makefile.am
  3013. * src/PieceStorage.h
  3014. * src/UnknownLengthPieceStorage.cc
  3015. * src/UnknownLengthPieceStorage.h
  3016. * test/MockPieceStorage.h
  3017. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3018. Implemented getter methods in header files to give them more
  3019. chance of optimization.
  3020. Return const reference for SharadHandle if possible.
  3021. * src/AbstractAuthResolver.cc
  3022. * src/AbstractAuthResolver.h
  3023. * src/AbstractBtMessage.cc
  3024. * src/AbstractBtMessage.h
  3025. * src/AbstractSingleDiskAdaptor.cc
  3026. * src/AbstractSingleDiskAdaptor.h
  3027. * src/AsyncNameResolver.cc
  3028. * src/AsyncNameResolver.h
  3029. * src/BNode.cc
  3030. * src/BNode.h
  3031. * src/BitfieldMan.cc
  3032. * src/BitfieldMan.h
  3033. * src/BtAbortOutstandingRequestEvent.h
  3034. * src/BtExtendedMessage.cc
  3035. * src/BtExtendedMessage.h
  3036. * src/BtSeederStateChoke.cc
  3037. * src/BtSeederStateChoke.h
  3038. * src/Cookie.cc
  3039. * src/Cookie.h
  3040. * src/DHTBucket.cc
  3041. * src/DHTBucket.h
  3042. * src/DHTConnectionImpl.cc
  3043. * src/DHTConnectionImpl.h
  3044. * src/DHTFindNodeReplyMessage.cc
  3045. * src/DHTFindNodeReplyMessage.h
  3046. * src/DHTGetPeersReplyMessage.cc
  3047. * src/DHTGetPeersReplyMessage.h
  3048. * src/DHTInteractionCommand.cc
  3049. * src/DHTMessage.cc
  3050. * src/DHTMessage.h
  3051. * src/DHTMessageDispatcherImpl.cc
  3052. * src/DHTMessageEntry.cc
  3053. * src/DHTMessageReceiver.cc
  3054. * src/DHTMessageReceiver.h
  3055. * src/DHTMessageTrackerEntry.cc
  3056. * src/DHTMessageTrackerEntry.h
  3057. * src/DHTPeerAnnounceEntry.cc
  3058. * src/DHTPeerAnnounceEntry.h
  3059. * src/DHTPeerLookupTask.cc
  3060. * src/DHTPeerLookupTask.h
  3061. * src/DHTRoutingTableDeserializer.cc
  3062. * src/DHTRoutingTableDeserializer.h
  3063. * src/DefaultBtAnnounce.cc
  3064. * src/DefaultBtAnnounce.h
  3065. * src/DefaultBtMessageDispatcher.cc
  3066. * src/DefaultBtMessageDispatcher.h
  3067. * src/DefaultBtRequestFactory.cc
  3068. * src/DefaultBtRequestFactory.h
  3069. * src/DiskAdaptor.cc
  3070. * src/DiskAdaptor.h
  3071. * src/DownloadContext.cc
  3072. * src/DownloadContext.h
  3073. * src/DownloadEngine.cc
  3074. * src/DownloadEngine.h
  3075. * src/EpollEventPoll.cc
  3076. * src/EpollEventPoll.h
  3077. * src/FtpConnection.cc
  3078. * src/FtpConnection.h
  3079. * src/HttpConnection.cc
  3080. * src/HttpConnection.h
  3081. * src/HttpHeader.cc
  3082. * src/HttpHeader.h
  3083. * src/HttpRequest.cc
  3084. * src/HttpRequest.h
  3085. * src/HttpResponse.cc
  3086. * src/HttpResponse.h
  3087. * src/LibsslTLSContext.cc
  3088. * src/LibsslTLSContext.h
  3089. * src/MSEHandshake.cc
  3090. * src/MSEHandshake.h
  3091. * src/MetalinkEntry.cc
  3092. * src/MetalinkEntry.h
  3093. * src/MetalinkParserController.cc
  3094. * src/MetalinkParserController.h
  3095. * src/MetalinkParserStateMachine.cc
  3096. * src/MetalinkParserStateMachine.h
  3097. * src/MultiDiskAdaptor.cc
  3098. * src/MultiDiskAdaptor.h
  3099. * src/NetrcAuthResolver.cc
  3100. * src/NetrcAuthResolver.h
  3101. * src/Peer.cc
  3102. * src/Peer.h
  3103. * src/PeerSessionResource.cc
  3104. * src/PeerSessionResource.h
  3105. * src/Piece.cc
  3106. * src/Piece.h
  3107. * src/PieceStatMan.cc
  3108. * src/PieceStatMan.h
  3109. * src/Request.cc
  3110. * src/Request.h
  3111. * src/RequestGroup.cc
  3112. * src/RequestGroup.h
  3113. * src/RequestGroupMan.cc
  3114. * src/RequestGroupMan.h
  3115. * src/RequestSlot.cc
  3116. * src/RequestSlot.h
  3117. * src/SegmentMan.cc
  3118. * src/SegmentMan.h
  3119. * src/SelectEventPoll.cc
  3120. * src/SelectEventPoll.h
  3121. * src/ServerStat.cc
  3122. * src/ServerStat.h
  3123. * src/Signature.cc
  3124. * src/Signature.h
  3125. * src/URIResult.cc
  3126. * src/URIResult.h
  3127. * src/UTPexExtensionMessage.cc
  3128. * src/UTPexExtensionMessage.h
  3129. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3130. Fixed compile error without BitTorrent and Metalink support.
  3131. * src/XmlRpcMethod.cc
  3132. * src/XmlRpcMethodFactory.cc
  3133. * src/XmlRpcMethodImpl.cc
  3134. * src/XmlRpcMethodImpl.h
  3135. * test/XmlRpcMethodTest.cc
  3136. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3137. Rewritten the help message for --allow-overwrite option.
  3138. * doc/aria2c.1.txt
  3139. * src/usage_text.h
  3140. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Fixed typo
  3142. * doc/aria2c.1.txt
  3143. * src/usage_text.h
  3144. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. Updated README for 1.4.0 release. Use new table syntax of
  3146. asciidoc.
  3147. * README
  3148. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Documented --xml-rpc-max-request-size option in man page.
  3150. * doc/aria2c.1.txt
  3151. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3152. Moved C_* constants from BtContext to DefaultBtContext.
  3153. * src/BtContext.cc: Removed.
  3154. * src/BtContext.h
  3155. * src/DefaultBtContext.cc
  3156. * src/DefaultBtContext.h
  3157. * src/Makefile.am
  3158. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3159. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3160. path key respectively when persing .torrent file.
  3161. * src/BtContext.cc
  3162. * src/BtContext.h
  3163. * src/DefaultBtContext.cc
  3164. * test/DefaultBtContextTest.cc
  3165. * test/utf8.torrent
  3166. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3167. Added --xml-rpc-max-request-size option to limit the size of
  3168. XML-RPC request.
  3169. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Documented XML-RPC API in man page.
  3171. * doc/aria2c.1.txt
  3172. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3174. will break strict-aliasing rules
  3175. * src/PeerConnection.cc
  3176. * test/DHTRoutingTableSerializerTest.cc
  3177. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3179. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3180. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3181. PKG_CHECK_MODULES macro uses latter name.
  3182. * m4/sqlite3.m4
  3183. * src/Makefile.am
  3184. * test/Makefile.am
  3185. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3186. Fixed typo
  3187. * configure.ac
  3188. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3189. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3190. presence of libgnutls using pkg-config first. If it fails, fall
  3191. back to old macro libgnutls.m4.
  3192. * configure.ac
  3193. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3194. Use s itself instead of !s.bad()
  3195. * src/CookieStorage.cc
  3196. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3197. Documented --on-download-* option and --save-cookies option in man
  3198. page.
  3199. * doc/aria2c.1.txt
  3200. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3201. Set possible values for --load-cookie option to "/path/to/file".
  3202. * src/OptionHandlerFactory.cc
  3203. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3204. Added --save-cookies option.
  3205. * src/Cookie.cc
  3206. * src/Cookie.h
  3207. * src/CookieStorage.cc
  3208. * src/CookieStorage.h
  3209. * src/MultiUrlRequestInfo.cc
  3210. * src/OptionHandlerFactory.cc
  3211. * src/prefs.cc
  3212. * src/prefs.h
  3213. * src/usage_text.h
  3214. * test/CookieStorageTest.cc
  3215. * test/CookieTest.cc
  3216. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3217. Removed tellAll XML-RPC command because its reponse tends to be
  3218. big if stopped/waiting downloads pile up.
  3219. * src/XmlRpcMethodFactory.cc
  3220. * src/XmlRpcMethodImpl.cc
  3221. * src/XmlRpcMethodImpl.h
  3222. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3223. Added the ability to execute command when download starts and
  3224. stops. You can also specify command for particular cases such as
  3225. complete/error download. Added --on-download-start,
  3226. --on-download-stop, --on-download-complete and --on-download-error
  3227. option.
  3228. * src/OptionHandlerFactory.cc
  3229. * src/RequestGroupMan.cc
  3230. * src/prefs.cc
  3231. * src/prefs.h
  3232. * src/usage_text.h
  3233. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3234. Fixed test error
  3235. * test/BencodeTest.cc
  3236. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Added unit tests.
  3238. * test/XmlRpcMethodTest.cc
  3239. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3240. Made exception message more verbose.
  3241. * src/bencode.cc
  3242. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3244. space in console readout. Also they are now shown in MiB/s if
  3245. speed > 1024KiB/s.
  3246. * src/ConsoleStatCalc.cc
  3247. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Added SEED to console output, which represents the number of
  3249. seeders currently the client is connecting to.
  3250. * src/ConsoleStatCalc.cc
  3251. * src/ConsoleStatCalc.h
  3252. * src/DownloadEngine.cc
  3253. * src/NullStatCalc.h
  3254. * src/StatCalc.h
  3255. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Added source filename(__FILE__) and line number(__LINE__) to
  3257. exception message.
  3258. * src/AbstractCommand.cc
  3259. * src/AbstractDiskWriter.cc
  3260. * src/AbstractProxyResponseCommand.cc
  3261. * src/BDE.h
  3262. * src/BtAllowedFastMessage.cc
  3263. * src/BtHandshakeMessageValidator.h
  3264. * src/BtHaveAllMessage.cc
  3265. * src/BtHaveNoneMessage.cc
  3266. * src/BtPieceMessage.cc
  3267. * src/BtRejectMessage.cc
  3268. * src/ChunkedDecoder.cc
  3269. * src/CookieStorage.cc
  3270. * src/DHTAnnouncePeerMessage.cc
  3271. * src/DHTEntryPointNameResolveCommand.cc
  3272. * src/DHTMessageFactoryImpl.cc
  3273. * src/DHTMessageTracker.cc
  3274. * src/DHTRoutingTableDeserializer.cc
  3275. * src/DHTRoutingTableSerializer.cc
  3276. * src/DHTSetup.cc
  3277. * src/DHTTokenTracker.cc
  3278. * src/DefaultBtAnnounce.cc
  3279. * src/DefaultBtContext.cc
  3280. * src/DefaultBtInteractive.cc
  3281. * src/DefaultBtMessageFactory.cc
  3282. * src/DefaultBtProgressInfoFile.cc
  3283. * src/DefaultExtensionMessageFactory.cc
  3284. * src/DlAbortEx.h
  3285. * src/DlRetryEx.h
  3286. * src/DownloadCommand.cc
  3287. * src/DownloadEngineFactory.cc
  3288. * src/DownloadFailureException.h
  3289. * src/Exception.cc
  3290. * src/Exception.h
  3291. * src/ExpatMetalinkProcessor.cc
  3292. * src/ExpatXmlRpcRequestProcessor.cc
  3293. * src/FallocFileAllocationIterator.cc
  3294. * src/FatalException.h
  3295. * src/FtpConnection.cc
  3296. * src/FtpFinishDownloadCommand.cc
  3297. * src/FtpInitiateConnectionCommand.cc
  3298. * src/FtpNegotiationCommand.cc
  3299. * src/GZipDecoder.cc
  3300. * src/HandshakeExtensionMessage.cc
  3301. * src/HttpConnection.cc
  3302. * src/HttpHeaderProcessor.cc
  3303. * src/HttpInitiateConnectionCommand.cc
  3304. * src/HttpResponse.cc
  3305. * src/HttpResponseCommand.cc
  3306. * src/HttpServer.cc
  3307. * src/HttpSkipResponseCommand.cc
  3308. * src/InitiateConnectionCommandFactory.cc
  3309. * src/IteratableChunkChecksumValidator.cc
  3310. * src/LibgcryptARC4Context.h
  3311. * src/LibgcryptARC4Decryptor.h
  3312. * src/LibgcryptARC4Encryptor.h
  3313. * src/LibgcryptDHKeyExchange.h
  3314. * src/LibgnutlsTLSContext.cc
  3315. * src/LibsslARC4Context.h
  3316. * src/LibsslARC4Decryptor.h
  3317. * src/LibsslARC4Encryptor.h
  3318. * src/LibsslDHKeyExchange.h
  3319. * src/LibsslTLSContext.cc
  3320. * src/MSEHandshake.cc
  3321. * src/MessageDigestHelper.cc
  3322. * src/MetalinkHelper.cc
  3323. * src/MultiDiskAdaptor.cc
  3324. * src/NameMatchOptionHandler.h
  3325. * src/NameResolver.cc
  3326. * src/Netrc.cc
  3327. * src/NsCookieParser.cc
  3328. * src/OptionHandlerException.cc
  3329. * src/OptionHandlerException.h
  3330. * src/OptionHandlerImpl.h
  3331. * src/OptionParser.cc
  3332. * src/ParameterizedStringParser.cc
  3333. * src/PeerAbstractCommand.cc
  3334. * src/PeerConnection.cc
  3335. * src/PeerMessageUtil.cc
  3336. * src/PeerReceiveHandshakeCommand.cc
  3337. * src/Platform.cc
  3338. * src/ReceiverMSEHandshakeCommand.cc
  3339. * src/RecoverableException.h
  3340. * src/RequestGroup.cc
  3341. * src/SimpleLogger.cc
  3342. * src/SocketCore.cc
  3343. * src/Sqlite3MozCookieParser.cc
  3344. * src/UTPexExtensionMessage.cc
  3345. * src/Util.cc
  3346. * src/XML2SAXMetalinkProcessor.cc
  3347. * src/Xml2XmlRpcRequestProcessor.cc
  3348. * src/XmlRpcMethodImpl.cc
  3349. * src/bencode.cc
  3350. * src/download_helper.cc
  3351. * src/messageDigest.h
  3352. * test/ExceptionTest.cc
  3353. * test/TestUtil.cc
  3354. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3355. Bump up version number to 1.4.0
  3356. * configure.ac
  3357. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3358. Added 2files.metalink to EXTRA_DIST
  3359. * test/Makefile.am
  3360. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3361. Added missing 2files.metalink
  3362. * test/2files.metalink
  3363. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3364. Show "[MEMORY]" prefix before filename in download summary if it
  3365. is downloaded into memory.
  3366. * src/DownloadResult.h
  3367. * src/RequestGroup.cc
  3368. * src/RequestGroupMan.cc
  3369. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3370. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3371. * src/ExpatXmlRpcRequestProcessor.cc
  3372. * src/Xml2XmlRpcRequestProcessor.cc
  3373. * src/message.h
  3374. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3375. Defined const BDEs to avoid duplicate instantiation.
  3376. Defined MSG_GID_NOT_PROVIDED.
  3377. * src/XmlRpcMethodImpl.cc
  3378. * src/message.h
  3379. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. Code cleanup
  3381. * src/Xml2XmlRpcRequestProcessor.cc
  3382. * src/Xml2XmlRpcRequestProcessor.h
  3383. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3384. Defined ENABLE_XML_RPC
  3385. * configure.ac
  3386. * configure
  3387. * config.h.in
  3388. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3389. Added ExpatXmlRpcRequestProcessor
  3390. * src/ExpatXmlRpcRequestProcessor.cc
  3391. * src/ExpatXmlRpcRequestProcessor.h
  3392. * src/Makefile.am
  3393. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Added tests for addTorrent and addMetalink command.
  3395. * test/TestUtil.cc
  3396. * test/TestUtil.h
  3397. * test/XmlRpcMethodTest.cc
  3398. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3399. Corrected the description of --file-allocation option.
  3400. * doc/aria2c.1.txt
  3401. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Added tellAll command.
  3403. * src/XmlRpcMethodFactory.cc
  3404. * src/XmlRpcMethodImpl.cc
  3405. * src/XmlRpcMethodImpl.h
  3406. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3407. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3408. * src/XmlRpcMethodImpl.cc
  3409. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3410. Added changeGlobalOption command. Currently,
  3411. max-overall-download-limit and max-overall-upload-limit option are
  3412. available.
  3413. * src/RequestGroupMan.h
  3414. * src/XmlRpcMethod.cc
  3415. * src/XmlRpcMethod.h
  3416. * src/XmlRpcMethodFactory.cc
  3417. * src/XmlRpcMethodImpl.cc
  3418. * src/XmlRpcMethodImpl.h
  3419. * test/XmlRpcMethodTest.cc
  3420. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Added changeOption command. Currently, max-download-limit,
  3422. max-upload-limit option are available in this command.
  3423. * src/RequestGroup.h
  3424. * src/XmlRpcMethod.cc
  3425. * src/XmlRpcMethod.h
  3426. * src/XmlRpcMethodFactory.cc
  3427. * src/XmlRpcMethodImpl.cc
  3428. * src/XmlRpcMethodImpl.h
  3429. * test/XmlRpcMethodTest.cc
  3430. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3431. Added purgeDownloadResult command.
  3432. * src/RequestGroupMan.cc
  3433. * src/RequestGroupMan.h
  3434. * src/XmlRpcMethodFactory.cc
  3435. * src/XmlRpcMethodImpl.cc
  3436. * src/XmlRpcMethodImpl.h
  3437. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3438. Refactored.
  3439. * src/XmlRpcMethod.cc
  3440. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3441. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3442. XmlRpcResponse.
  3443. * src/HttpServerBodyCommand.cc
  3444. * src/Makefile.am
  3445. * src/XmlRpcMethod.cc
  3446. * src/XmlRpcMethod.h
  3447. * src/XmlRpcMethodImpl.cc
  3448. * src/XmlRpcResponse.cc
  3449. * src/XmlRpcResponse.h
  3450. * test/XmlRpcMethodTest.cc
  3451. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3452. In XML-RPC option struct, header and index-out option can take
  3453. array as value.
  3454. * src/XmlRpcMethod.cc
  3455. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3456. Removed unused option member from PeerConnection.
  3457. * src/InitiatorMSEHandshakeCommand.cc
  3458. * src/PeerConnection.cc
  3459. * src/PeerConnection.h
  3460. * src/PeerInteractionCommand.cc
  3461. * src/PeerReceiveHandshakeCommand.cc
  3462. * src/ReceiverMSEHandshakeCommand.cc
  3463. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3464. Added "seeder" key to getPeers response.
  3465. * src/XmlRpcMethodImpl.cc
  3466. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3467. Added addMetalink XML-RPC command.
  3468. * src/XmlRpcMethodFactory.cc
  3469. * src/XmlRpcMethodImpl.cc
  3470. * src/XmlRpcMethodImpl.h
  3471. * src/download_helper.cc
  3472. * src/download_helper.h
  3473. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3474. Fixed the bug that POU peers are never choked in seeding.
  3475. * src/BtSeederStateChoke.cc
  3476. * src/BtSeederStateChoke.h
  3477. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3478. Added web-seeding URI handling in addTorrent command.
  3479. * src/XmlRpcMethodImpl.cc
  3480. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3481. Added "length" key to getFiles response.
  3482. * src/XmlRpcMethodImpl.cc
  3483. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3484. Moved --no-netrc option from ftp option section to http/ftp option
  3485. section.
  3486. * doc/aria2c.1.txt
  3487. * src/OptionHandlerFactory.cc
  3488. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3489. Removed garbage "\" character before '
  3490. * doc/aria2c.1.txt
  3491. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3492. Removed garbage "\" character before http.
  3493. * doc/aria2c.1.txt
  3494. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3495. Documented additional options that can be specified in -i list.
  3496. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3497. and --xml-rpc-passwd. Removed --enable-http-server and
  3498. --http-server-listen-port.
  3499. * doc/aria2c.1.txt
  3500. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3501. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3502. * src/DefaultPeerStorage.cc
  3503. * src/DefaultPeerStorage.h
  3504. * src/PeerStorage.h
  3505. * src/XmlRpcMethodImpl.cc
  3506. * test/MockPeerStorage.h
  3507. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Put a call to Socket::isReadable() in try block.
  3509. * src/HttpServerBodyCommand.cc
  3510. * src/HttpServerCommand.cc
  3511. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3512. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3513. exception , so it is now in try block.
  3514. * src/HttpServerResponseCommand.cc
  3515. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3516. Added "amChoking" and "peerChoking" key in getPeers response.
  3517. * src/XmlRpcMethodImpl.cc
  3518. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Added test case for zero-length filter.
  3520. * test/BitfieldManTest.cc
  3521. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. getFiles command now returns file data for finished/stopped
  3523. downloads.
  3524. * src/XmlRpcMethodImpl.cc
  3525. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3526. DownloadResult now has the list of FileEntry. The download
  3527. summary displays the path of first selected file and the number of
  3528. remaining files for multi-file torrent.
  3529. * src/DownloadResult.h
  3530. * src/RequestGroup.cc
  3531. * src/RequestGroupMan.cc
  3532. * test/RequestGroupTest.cc
  3533. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Fixed segmentation fault error when no file is selected in
  3535. multi-file torrent.
  3536. * src/BitfieldMan.cc
  3537. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3538. Escaped <,>,& character in XML-RPC response.
  3539. * src/XmlRpcMethod.cc
  3540. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3541. Throw DlAbortEx instead of FatalException during parsing options
  3542. because we don't want for aria2 to quit when bad option is passed
  3543. via XML-RPC.
  3544. * src/OptionHandlerException.cc
  3545. * src/OptionHandlerException.h
  3546. * src/OptionHandlerImpl.h
  3547. * src/OptionParser.cc
  3548. * src/OptionParser.h
  3549. * src/PStringSegment.cc
  3550. * src/ParameterizedStringParser.cc
  3551. * src/download_helper.cc
  3552. * test/ParameterizedStringParserTest.cc
  3553. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3554. Selecting files are now done in
  3555. DefaultBtContext::setFileFileter().
  3556. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3557. functions are removed because they are no longer used. Creating
  3558. filter in BitfieldMan is done in new funtion
  3559. PieceStorage::setupFileFilter()
  3560. * src/BtContext.cc
  3561. * src/BtContext.h
  3562. * src/DefaultBtContext.cc
  3563. * src/DefaultBtContext.h
  3564. * src/DefaultPieceStorage.cc
  3565. * src/DefaultPieceStorage.h
  3566. * src/DiskAdaptor.cc
  3567. * src/DiskAdaptor.h
  3568. * src/PieceStorage.h
  3569. * src/RequestGroup.cc
  3570. * src/UnknownLengthPieceStorage.h
  3571. * src/XmlRpcMethodImpl.cc
  3572. * test/DefaultBtContextTest.cc
  3573. * test/MockBtContext.h
  3574. * test/MockPieceStorage.h
  3575. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3576. Fixed compile error on Mac OS X
  3577. * src/HttpServer.cc
  3578. * src/XmlRpcMethod.h
  3579. * src/XmlRpcMethodImpl.cc
  3580. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Use std::binary_search instead of std::find
  3582. * src/DefaultPieceStorage.cc
  3583. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3584. Removed unnecessary BDE() call; leave them to implicit conversion.
  3585. * src/XmlRpcMethodImpl.cc
  3586. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3587. Return connections and gid in string
  3588. * src/XmlRpcMethodImpl.cc
  3589. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3590. Renamed addURI as addUri
  3591. * src/XmlRpcMethodFactory.cc
  3592. * src/XmlRpcMethodImpl.cc
  3593. * src/XmlRpcMethodImpl.h
  3594. * test/XmlRpcMethodTest.cc
  3595. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3596. Renamed addTorrentFile as addTorrent
  3597. * src/XmlRpcMethodFactory.cc
  3598. * src/XmlRpcMethodImpl.cc
  3599. * src/XmlRpcMethodImpl.h
  3600. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3601. The information for files, URIs, peers are removed from the
  3602. reponse of TellaActive, TellStatus command because they tend to be
  3603. large. Instead they can be retrieved by the dedicated commands:
  3604. getFiles, getUris and getPeers respectively.
  3605. * src/XmlRpcMethodFactory.cc
  3606. * src/XmlRpcMethodImpl.cc
  3607. * src/XmlRpcMethodImpl.h
  3608. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3609. Removed --max-overall-upload-limit and
  3610. --max-overall-download-limit option from listRequestOptions.
  3611. * src/download_helper.cc
  3612. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3613. Log incoming host in HttpListenCommand.
  3614. * src/HttpListenCommand.cc
  3615. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3616. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3617. --xml-rpc-passwd option.
  3618. * src/HttpServer.cc
  3619. * src/HttpServer.h
  3620. * src/HttpServerCommand.cc
  3621. * src/OptionHandlerFactory.cc
  3622. * src/prefs.cc
  3623. * src/prefs.h
  3624. * src/usage_text.h
  3625. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3626. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3627. processing 0 length request.
  3628. * src/HttpServerBodyCommand.cc
  3629. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3630. Removed --enable-http-server and --http-server-listen-port
  3631. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3632. instead. The original feature for --enable-http-server that
  3633. reports download progress in HTML was officially removed. Persist
  3634. XML-RPC connection if client supports keep-alive.
  3635. * src/DownloadEngineFactory.cc
  3636. * src/HttpServerCommand.cc
  3637. * src/HttpServerResponseCommand.cc
  3638. * src/Makefile.am
  3639. * src/Makefile.in
  3640. * src/OptionHandlerFactory.cc
  3641. * src/RequestGroupMan.cc
  3642. * src/main.cc
  3643. * src/option_processing.cc
  3644. * src/prefs.cc
  3645. * src/prefs.h
  3646. * src/usage_text.h
  3647. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3648. Added "uris" key to the response of tellStatus command. Added
  3649. "connections" key to the response of tellStatus and tellActive
  3650. command.
  3651. * src/XmlRpcMethodImpl.cc
  3652. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3654. Added TellStatusXmlRpcMethod. Remove command can now remove
  3655. waiting RequestGroup.
  3656. * src/RequestGroupMan.cc
  3657. * src/RequestGroupMan.h
  3658. * src/XmlRpcMethodFactory.cc
  3659. * src/XmlRpcMethodImpl.cc
  3660. * src/XmlRpcMethodImpl.h
  3661. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3662. Initialized _peerId
  3663. * src/Peer.cc
  3664. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3665. Return fault structure for error. FailXmlRpcMethod is renamed as
  3666. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3667. in non-torrent download. Return single param value.
  3668. * src/XmlRpcMethod.cc
  3669. * src/XmlRpcMethodFactory.cc
  3670. * src/XmlRpcMethodImpl.cc
  3671. * src/XmlRpcMethodImpl.h
  3672. * test/XmlRpcMethodTest.cc
  3673. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3675. command.
  3676. * src/RequestGroup.cc
  3677. * src/RequestGroup.h
  3678. * src/RequestGroupMan.cc
  3679. * src/XmlRpcMethodImpl.cc
  3680. * test/RequestGroupTest.cc
  3681. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Added more options that can be specified in -i list and xml-rpc
  3683. add* command.
  3684. * src/download_helper.h
  3685. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3686. The available options in -i list should be listed in
  3687. listRequestOptions().
  3688. * src/download_helper.cc
  3689. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3690. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3691. command.
  3692. * src/XmlRpcMethodImpl.cc
  3693. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3694. Now RequestGroup has its own copy of Option object. This will help
  3695. to give custom option for each RequestGroup.
  3696. addTorrentFile command now takes options.
  3697. * src/AbstractCommand.cc
  3698. * src/AbstractCommand.h
  3699. * src/AbstractProxyRequestCommand.cc
  3700. * src/ActivePeerConnectionCommand.cc
  3701. * src/ActivePeerConnectionCommand.h
  3702. * src/AdaptiveURISelector.cc
  3703. * src/BtCheckIntegrityEntry.cc
  3704. * src/BtDependency.cc
  3705. * src/BtDependency.h
  3706. * src/BtFileAllocationEntry.cc
  3707. * src/BtPostDownloadHandler.cc
  3708. * src/CheckIntegrityEntry.cc
  3709. * src/DownloadCommand.cc
  3710. * src/FtpDownloadCommand.cc
  3711. * src/FtpFinishDownloadCommand.cc
  3712. * src/FtpInitiateConnectionCommand.cc
  3713. * src/FtpNegotiationCommand.cc
  3714. * src/HttpInitiateConnectionCommand.cc
  3715. * src/HttpRequestCommand.cc
  3716. * src/HttpResponseCommand.cc
  3717. * src/HttpSkipResponseCommand.cc
  3718. * src/InitiateConnectionCommand.cc
  3719. * src/InitiateConnectionCommandFactory.cc
  3720. * src/InitiatorMSEHandshakeCommand.cc
  3721. * src/InitiatorMSEHandshakeCommand.h
  3722. * src/Metalink2RequestGroup.cc
  3723. * src/Metalink2RequestGroup.h
  3724. * src/MetalinkPostDownloadHandler.cc
  3725. * src/MultiUrlRequestInfo.cc
  3726. * src/MultiUrlRequestInfo.h
  3727. * src/PeerAbstractCommand.cc
  3728. * src/PeerInteractionCommand.cc
  3729. * src/PeerInteractionCommand.h
  3730. * src/PeerReceiveHandshakeCommand.cc
  3731. * src/PeerReceiveHandshakeCommand.h
  3732. * src/RequestGroup.cc
  3733. * src/RequestGroup.h
  3734. * src/TrackerWatcherCommand.cc
  3735. * src/TrackerWatcherCommand.h
  3736. * src/XmlRpcMethod.cc
  3737. * src/XmlRpcMethod.h
  3738. * src/XmlRpcMethodImpl.cc
  3739. * src/download_helper.cc
  3740. * src/download_helper.h
  3741. * src/main.cc
  3742. * test/BtDependencyTest.cc
  3743. * test/BtPostDownloadHandlerTest.cc
  3744. * test/DefaultBtMessageDispatcherTest.cc
  3745. * test/DownloadHandlerFactoryTest.cc
  3746. * test/DownloadHelperTest.cc
  3747. * test/Metalink2RequestGroupTest.cc
  3748. * test/MetalinkPostDownloadHandlerTest.cc
  3749. * test/RequestGroupManTest.cc
  3750. * test/RequestGroupTest.cc
  3751. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. Added tellActiveStatus xml-rpc command which reports download
  3753. status of active downloads.
  3754. * src/XmlRpcMethodFactory.cc
  3755. * src/XmlRpcMethodImpl.cc
  3756. * src/XmlRpcMethodImpl.h
  3757. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Added addTorrentFile xml-rpc command which receives uploaded
  3759. torrent file and add download for it.
  3760. * src/RequestGroupMan.cc
  3761. * src/XmlRpcMethodFactory.cc
  3762. * src/XmlRpcMethodImpl.cc
  3763. * src/XmlRpcMethodImpl.h
  3764. * src/download_helper.cc
  3765. * src/download_helper.h
  3766. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Added remove xml-rpc command which removes specified download.
  3768. There is a known issue: the removed unfinished downloads are
  3769. reported ERR when aria2 exits. They should be reported as INPR.
  3770. * src/RequestGroupMan.cc
  3771. * src/RequestGroupMan.h
  3772. * src/XmlRpcMethodFactory.cc
  3773. * src/XmlRpcMethodImpl.cc
  3774. * src/XmlRpcMethodImpl.h
  3775. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3776. If --enable-http-server is enabled, don't stop aria2 when all
  3777. download finished and don't quit when no files to download at
  3778. start up.
  3779. * src/RequestGroupMan.cc
  3780. * src/main.cc
  3781. * src/option_processing.cc
  3782. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Added missing AM_CONDITIONAL
  3784. * configure.ac
  3785. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Added xml-rpc functionality. Currently only addURI commad is
  3787. supported. To enable xml-rpc, run aria2 with
  3788. --enable-http-server. This option name is temporal and will be
  3789. changed. The feature that reports download progress in html format
  3790. is temporarily disabled.
  3791. * src/HttpServer.cc
  3792. * src/HttpServer.h
  3793. * src/HttpServerBodyCommand.cc
  3794. * src/HttpServerBodyCommand.h
  3795. * src/HttpServerCommand.cc
  3796. * src/HttpServerResponseCommand.cc
  3797. * src/Makefile.am
  3798. * src/OptionParser.cc
  3799. * src/OptionParser.h
  3800. * src/RequestGroupMan.cc
  3801. * src/RequestGroupMan.h
  3802. * src/XmlRpcMethod.cc
  3803. * src/XmlRpcMethod.h
  3804. * src/XmlRpcMethodFactory.cc
  3805. * src/XmlRpcMethodFactory.h
  3806. * src/XmlRpcMethodImpl.cc
  3807. * src/XmlRpcMethodImpl.h
  3808. * src/download_helper.cc
  3809. * src/download_helper.h
  3810. * test/Makefile.am
  3811. * test/XmlRpcMethodTest.cc
  3812. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Added xml-rpc request parser. The supported value types are:
  3814. i4/int, string, double, struct, array, base64. Currently only
  3815. libxml2 version is provided.
  3816. * src/Xml2XmlRpcRequestProcessor.cc
  3817. * src/Xml2XmlRpcRequestProcessor.h
  3818. * src/XmlRpcElements.cc
  3819. * src/XmlRpcElements.h
  3820. * src/XmlRpcRequest.h
  3821. * src/XmlRpcRequestParserController.cc
  3822. * src/XmlRpcRequestParserController.h
  3823. * src/XmlRpcRequestParserState.h
  3824. * src/XmlRpcRequestParserStateImpl.cc
  3825. * src/XmlRpcRequestParserStateImpl.h
  3826. * src/XmlRpcRequestParserStateMachine.cc
  3827. * src/XmlRpcRequestParserStateMachine.h
  3828. * src/XmlRpcRequestProcessor.h
  3829. * test/XmlRpcRequestParserControllerTest.cc
  3830. * test/XmlRpcRequestProcessorTest.cc
  3831. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. * Release 1.3.3
  3833. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3834. Fixed compile error since r1202.
  3835. * src/ExpatMetalinkProcessor.cc
  3836. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3837. Updated Ukrainian, Russian and Simplified Chinese
  3838. translations. Thanks to all translators.
  3839. * po/ru.po
  3840. * po/uk.po
  3841. * po/zh_CN.po
  3842. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3843. Pass reference of Option object instead of pointer.
  3844. * src/download_helper.cc
  3845. * src/download_helper.h
  3846. * src/main.cc
  3847. * test/DownloadHelperTest.cc
  3848. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3849. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3850. from option directly. Instead, get them from RequestGroup.
  3851. * src/ActivePeerConnectionCommand.cc
  3852. * src/ActivePeerConnectionCommand.h
  3853. * src/PeerReceiveHandshakeCommand.cc
  3854. * src/RequestGroup.h
  3855. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3856. Removed unused uploadLimitCheck and uploadLimit from
  3857. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3858. PeerInteractionCommand.
  3859. * src/PeerAbstractCommand.cc
  3860. * src/PeerAbstractCommand.h
  3861. * src/PeerInteractionCommand.cc
  3862. * src/PeerInteractionCommand.h
  3863. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Fixed broken file renaming feature since r1202.
  3865. * src/FtpNegotiationCommand.cc
  3866. * src/FtpNegotiationCommand.h
  3867. * src/HttpResponseCommand.cc
  3868. * src/RequestGroup.cc
  3869. * src/RequestGroup.h
  3870. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3871. Removed unused debug log
  3872. * src/SocketCore.cc
  3873. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3874. Generated configure and Makefile.in using autoconf 2.63 and
  3875. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3876. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3877. * configure.ac
  3878. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3879. Moved piece statistics stuff to new PieceStatMan class.
  3880. Refactored PieceSelector interface.
  3881. * src/DefaultPieceStorage.cc
  3882. * src/DefaultPieceStorage.h
  3883. * src/LongestSequencePieceSelector.cc
  3884. * src/LongestSequencePieceSelector.h
  3885. * src/Makefile.am
  3886. * src/PieceSelector.h
  3887. * src/PieceStatMan.cc
  3888. * src/PieceStatMan.h
  3889. * src/RarestPieceSelector.cc
  3890. * src/RarestPieceSelector.h
  3891. * src/RequestGroup.cc
  3892. * test/DefaultPieceStorageTest.cc
  3893. * test/InOrderPieceSelector.h
  3894. * test/Makefile.am
  3895. * test/PieceStatManTest.cc
  3896. * test/RarestPieceSelectorTest.cc
  3897. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3898. Added static member _protocolFamily to SocketCore. By default,
  3899. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3900. address. Sometime SocketCore::bind() and
  3901. SocketCore::establishConnection() use difference protocl family
  3902. and latter cannot connect to former. To avoid this situation, we
  3903. limit protocol family to AF_INET for unit tests.
  3904. * src/SocketCore.cc
  3905. * src/SocketCore.h
  3906. * test/AllTest.cc
  3907. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3908. Avoid std::bad_alloc for negative bencode string length.
  3909. * src/bencode.cc
  3910. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3911. Supported segmented downloading with chunked transfer encoding and
  3912. content-length.
  3913. * src/DownloadCommand.cc
  3914. * src/HttpResponseCommand.cc
  3915. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3916. Bump up version number to 1.3.3
  3917. * configure.ac
  3918. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3920. from 4096 to 65536 (for insanely large ftp login banners)
  3921. * src/FtpConnection.h
  3922. * test/FtpConnectionTest.cc
  3923. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3924. In DefaultBtContext::getActualBasePath(), return first
  3925. FileEntry::getPath() for single file torrent.
  3926. * src/DefaultBtContext.cc
  3927. * test/DefaultBtContextTest.cc
  3928. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3929. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3930. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3931. Removed _directIOAllowed member from DiskWriter.
  3932. * src/AbstractDiskWriter.cc
  3933. * src/AbstractDiskWriter.h
  3934. * src/AbstractSingleDiskAdaptor.cc
  3935. * src/AbstractSingleDiskAdaptor.h
  3936. * src/BinaryStream.h
  3937. * src/ByteArrayDiskWriter.h
  3938. * src/DefaultPieceStorage.cc
  3939. * src/DiskWriter.h
  3940. * src/MultiDiskAdaptor.cc
  3941. * src/MultiDiskAdaptor.h
  3942. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3943. Now the constructor of AbstractDiskWriter takes filename as an
  3944. argument and filename argument is removed from openFile(),
  3945. initAndOpenFile(), openExistingFile() interface. storeDir member
  3946. and its accessor functions are removed from DiskAdaptor because it
  3947. is not used anymore. size() member function of DefaultDiskWriter,
  3948. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3949. opening file.
  3950. * src/AbstractDiskWriter.cc
  3951. * src/AbstractDiskWriter.h
  3952. * src/AbstractSingleDiskAdaptor.cc
  3953. * src/AbstractSingleDiskAdaptor.h
  3954. * src/ByteArrayDiskWriter.cc
  3955. * src/ByteArrayDiskWriter.h
  3956. * src/ByteArrayDiskWriterFactory.cc
  3957. * src/ByteArrayDiskWriterFactory.h
  3958. * src/DefaultDiskWriter.cc
  3959. * src/DefaultDiskWriter.h
  3960. * src/DefaultDiskWriterFactory.cc
  3961. * src/DefaultDiskWriterFactory.h
  3962. * src/DefaultPieceStorage.cc
  3963. * src/DirectDiskAdaptor.cc
  3964. * src/DirectDiskAdaptor.h
  3965. * src/DiskAdaptor.h
  3966. * src/DiskWriter.h
  3967. * src/DiskWriterFactory.h
  3968. * src/MessageDigestHelper.cc
  3969. * src/MultiDiskAdaptor.cc
  3970. * src/RequestGroup.cc
  3971. * src/UnknownLengthPieceStorage.cc
  3972. * src/Util.cc
  3973. * test/DefaultDiskWriterTest.cc
  3974. * test/DirectDiskAdaptorTest.cc
  3975. * test/FallocFileAllocationIteratorTest.cc
  3976. * test/MessageDigestHelperTest.cc
  3977. * test/MetalinkProcessorTest.cc
  3978. * test/MultiDiskAdaptorTest.cc
  3979. * test/MultiFileAllocationIteratorTest.cc
  3980. * test/SingleFileAllocationIteratorTest.cc
  3981. * test/UtilTest.cc
  3982. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3983. Fixed the bug that aria2 aborts when --select-file is used. This
  3984. bug was introduced in r1199.
  3985. * src/MultiDiskAdaptor.cc
  3986. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3987. Code cleanup
  3988. * test/MockPieceStorage.cc
  3989. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3990. Fixed the bug that read-only file with wrong file size will cause
  3991. error because it cannot be truncated to the correct size. Now if
  3992. file size is different than the expected one, re-open file in
  3993. writable mode.
  3994. * src/AbstractSingleDiskAdaptor.cc
  3995. * src/AbstractSingleDiskAdaptor.h
  3996. * src/BtCheckIntegrityEntry.cc
  3997. * src/DiskAdaptor.h
  3998. * src/MultiDiskAdaptor.h
  3999. * src/RequestGroup.cc
  4000. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4001. Fixed the bug that with --check-integrity option aria2 reports
  4002. downloaded file size is 0 even if some parts of file is correctly
  4003. downloaded. This bug is reproducible for the download that a file
  4004. includes last piece is missing. This bug doesn't reveal for
  4005. single-torrent with file allocation on.
  4006. * src/IteratableChecksumValidator.cc
  4007. * test/IteratableChecksumValidatorTest.cc
  4008. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4009. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4010. * src/RequestGroupMan.cc
  4011. * src/AdaptiveURISelector.cc
  4012. * src/AdaptiveURISelector.h
  4013. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4014. * Release 1.3.2
  4015. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4016. Updated README
  4017. * README
  4018. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4019. Updated Ukrainian translations. Thanks to Alexander10.
  4020. * po/uk.po
  4021. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4022. Code cleanup
  4023. * src/MetalinkParserStateMachine.cc
  4024. * src/MetalinkParserStateMachine.h
  4025. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4026. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4027. and expat simultaneously, MetalinkProcessor is now not base class
  4028. and it is directly implemented in XML2SAXMetalinkProcessor and
  4029. ExpatMetalinkProcessor.
  4030. * src/ExpatMetalinkProcessor.cc
  4031. * src/ExpatMetalinkProcessor.h
  4032. * src/Makefile.am
  4033. * src/MetalinkHelper.cc
  4034. * src/MetalinkProcessor.h
  4035. * src/MetalinkProcessorFactory.cc: Removed.
  4036. * src/MetalinkProcessorFactory.h: Removed
  4037. * src/XML2SAXMetalinkProcessor.cc
  4038. * src/XML2SAXMetalinkProcessor.h
  4039. * test/MetalinkProcessorTest.cc
  4040. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4041. Bump up version number to 1.3.2
  4042. * configure.ac
  4043. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4044. Added missing file.
  4045. * test/Makefile.am
  4046. * test/url-list-singleFileEndsWithSlash.torrent
  4047. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4048. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4049. request.
  4050. * src/AnnounceList.cc
  4051. * src/AnnounceList.h
  4052. * src/BDE.cc: Added
  4053. * src/BDE.h: Added
  4054. * src/DHTAbstractMessage.cc
  4055. * src/DHTAbstractMessage.h
  4056. * src/DHTAnnouncePeerMessage.cc
  4057. * src/DHTAnnouncePeerMessage.h
  4058. * src/DHTAnnouncePeerReplyMessage.cc
  4059. * src/DHTAnnouncePeerReplyMessage.h
  4060. * src/DHTFindNodeMessage.cc
  4061. * src/DHTFindNodeMessage.h
  4062. * src/DHTFindNodeReplyMessage.cc
  4063. * src/DHTFindNodeReplyMessage.h
  4064. * src/DHTGetPeersMessage.cc
  4065. * src/DHTGetPeersMessage.h
  4066. * src/DHTGetPeersReplyMessage.cc
  4067. * src/DHTGetPeersReplyMessage.h
  4068. * src/DHTMessageFactory.h
  4069. * src/DHTMessageFactoryImpl.cc
  4070. * src/DHTMessageFactoryImpl.h
  4071. * src/DHTMessageReceiver.cc
  4072. * src/DHTMessageTracker.cc
  4073. * src/DHTMessageTracker.h
  4074. * src/DHTPingMessage.cc
  4075. * src/DHTPingMessage.h
  4076. * src/DHTPingReplyMessage.cc
  4077. * src/DHTPingReplyMessage.h
  4078. * src/DHTQueryMessage.cc
  4079. * src/DHTQueryMessage.h
  4080. * src/DHTResponseMessage.cc
  4081. * src/DHTResponseMessage.h
  4082. * src/DefaultBtAnnounce.cc
  4083. * src/DefaultBtContext.cc
  4084. * src/DefaultBtContext.h
  4085. * src/HandshakeExtensionMessage.cc
  4086. * src/Makefile.am
  4087. * src/PeerListProcessor.h
  4088. * src/UTPexExtensionMessage.cc
  4089. * src/bencode.cc
  4090. * src/bencode.h
  4091. * test/AnnounceListTest.cc
  4092. * test/BDETest.cc: Added
  4093. * test/BencodeTest.cc
  4094. * test/DHTAnnouncePeerMessageTest.cc
  4095. * test/DHTAnnouncePeerReplyMessageTest.cc
  4096. * test/DHTFindNodeMessageTest.cc
  4097. * test/DHTFindNodeReplyMessageTest.cc
  4098. * test/DHTGetPeersMessageTest.cc
  4099. * test/DHTGetPeersReplyMessageTest.cc
  4100. * test/DHTMessageFactoryImplTest.cc
  4101. * test/DHTMessageTrackerTest.cc
  4102. * test/DHTPingMessageTest.cc
  4103. * test/DHTPingReplyMessageTest.cc
  4104. * test/Makefile.am
  4105. * test/MockDHTMessageFactory.h
  4106. * test/PeerListProcessorTest.cc
  4107. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4108. Use url-list (web-seeding) only for single-file torrent. This is
  4109. basically the same behavior with Metalink file with torrent and
  4110. URIs.
  4111. * src/RequestGroup.cc
  4112. * src/DefaultBtContext.cc
  4113. * test/DefaultBtContextTest.cc
  4114. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4115. Rewritten expr
  4116. * src/array_fun.h
  4117. * test/array_funTest.cc
  4118. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4119. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4120. * src/DefaultBtMessageDispatcher.cc
  4121. * src/a2algo.h
  4122. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4123. Removed ExtendedMessagingAware. Instead of using inheritance,
  4124. added ExtensionMessageRegistry and it is passed to
  4125. DefaultExtensionMessageFactory.
  4126. * src/DefaultBtInteractive.cc
  4127. * src/DefaultBtInteractive.h
  4128. * src/DefaultExtensionMessageFactory.cc
  4129. * src/DefaultExtensionMessageFactory.h
  4130. * src/ExtendedMessagingAware.h: Removed.
  4131. * src/ExtensionMessageFactory.h
  4132. * src/ExtensionMessageRegistry.h: Added.
  4133. * src/Makefile.am
  4134. * src/PeerInteractionCommand.cc
  4135. * test/DefaultExtensionMessageFactoryTest.cc
  4136. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4137. Fixed typo in log messages
  4138. * src/MSEHandshake.cc
  4139. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4140. Fixed the bug that prevents torrent download from finishing. The
  4141. bug doesn't reveal for all torrents. The torrents affected this
  4142. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4143. of pieces.
  4144. * src/bitfield.h
  4145. * test/bitfieldTest.cc
  4146. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4147. Code cleanup
  4148. * src/PeerListProcessor.h
  4149. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4150. Removed RequestGroupAware
  4151. * src/AbstractCommand.cc
  4152. * src/AbstractCommand.h
  4153. * src/ActivePeerConnectionCommand.cc
  4154. * src/ActivePeerConnectionCommand.h
  4155. * src/DHTGetPeersCommand.cc
  4156. * src/DHTGetPeersCommand.h
  4157. * src/InitiatorMSEHandshakeCommand.cc
  4158. * src/InitiatorMSEHandshakeCommand.h
  4159. * src/Makefile.am
  4160. * src/PeerInitiateConnectionCommand.cc
  4161. * src/PeerInitiateConnectionCommand.h
  4162. * src/PeerInteractionCommand.cc
  4163. * src/PeerInteractionCommand.h
  4164. * src/RealtimeCommand.cc
  4165. * src/RealtimeCommand.h
  4166. * src/RequestGroupAware.cc: Removed
  4167. * src/RequestGroupAware.h: Removed
  4168. * src/SeedCheckCommand.cc
  4169. * src/SeedCheckCommand.h
  4170. * src/SleepCommand.cc
  4171. * src/TrackerWatcherCommand.cc
  4172. * src/TrackerWatcherCommand.h
  4173. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4174. Rewritten PeerListProcessor
  4175. * src/PeerListProcessor.h
  4176. * src/CompactPeerListProcessor.h: Removed
  4177. * src/CompactPeerListProcessor.cc: Removed
  4178. * src/DelegatingPeerListProcessor.cc: Removed.
  4179. * src/DefaultBtAnnounce.cc
  4180. * src/Makefile.am
  4181. * src/UTPexExtensionMessage.cc
  4182. * src/DefaultPeerListProcessor.h: Removed.
  4183. * src/DefaultPeerListProcessor.cc: Removed.
  4184. * src/DelegatingPeerListProcessor.h: Removed.
  4185. * test/Makefile.am
  4186. * test/PeerListProcessorTest.cc
  4187. * test/DefaultPeerListProcessorTest.cc: Removed.
  4188. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4189. Rewritten RequestGroupMan::calculateStat()
  4190. * src/RequestGroupMan.cc
  4191. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4192. Removed unnecessary virtual destructor for Request class.
  4193. * src/Request.cc
  4194. * src/Request.h
  4195. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4196. Avoid dynamic_pointer_cast.
  4197. * src/DHTGetPeersCommand.cc
  4198. * src/DHTGetPeersCommand.h
  4199. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4200. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4201. BtEvent.
  4202. * src/AbstractBtEventListener.h: Removed.
  4203. * src/AbstractBtMessage.cc
  4204. * src/AbstractBtMessage.h
  4205. * src/BtAbortOutstandingRequestEvent.h
  4206. * src/BtCancelSendingPieceEvent.h
  4207. * src/BtChokedEvent.h: Removed.
  4208. * src/BtChokingEvent.h
  4209. * src/BtEvent.h: Removed
  4210. * src/BtEventListener.h: Removed.
  4211. * src/BtMessage.h
  4212. * src/BtPieceMessage.cc
  4213. * src/BtPieceMessage.h
  4214. * src/BtRequestMessage.cc
  4215. * src/BtRequestMessage.h
  4216. * src/DefaultBtMessageDispatcher.cc
  4217. * src/Makefile.am
  4218. * src/a2functional.h
  4219. * test/BtPieceMessageTest.cc
  4220. * test/BtRequestMessageTest.cc
  4221. * test/DefaultBtMessageDispatcherTest.cc
  4222. * test/MockBtMessage.h
  4223. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4224. Code cleanup
  4225. * src/RequestGroupMan.cc
  4226. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4227. Code cleanup
  4228. * src/DownloadCommand.cc
  4229. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4230. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4231. byte.
  4232. * src/DownloadCommand.cc
  4233. * src/bitfield.h
  4234. * test/bitfieldTest.cc
  4235. Fixed the bug that causes infinite loop if broken web server
  4236. returns chunked response without last "0" chunk-size marker and
  4237. closes connection.
  4238. * src/DownloadCommand.cc
  4239. Instantiate properly configured HttpDownloadCommand for
  4240. non-resumable downlaods.
  4241. * src/HttpResponseCommand.cc
  4242. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4243. Rewritten array operation functions.
  4244. * src/BitfieldMan.cc
  4245. * src/array_fun.h
  4246. * test/array_funTest.cc
  4247. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4248. Removed unused variable 'query'
  4249. * src/Request.cc
  4250. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4251. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4252. accidentally set to false in r1162.
  4253. * configure.ac
  4254. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4255. Code cleanup
  4256. * src/BNode.cc
  4257. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4258. Increase prefixLength for the bucket which doesn't own local node
  4259. ID when splitting bucket.
  4260. * src/DHTBucket.cc
  4261. * test/DHTBucketTest.cc
  4262. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4263. * Release 1.3.1
  4264. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4265. Bump up version number to 1.3.1
  4266. * configure.ac
  4267. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4268. Removed unused variable checkPoint. Also removed include directive
  4269. for TimeA2.h.
  4270. * src/SeedCheckCommand.h
  4271. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Fixed the bug that upload limit exceeds the value specified in
  4273. --seed-ratio option depending on the timing of the execution of
  4274. SeedCheckCommand.
  4275. * src/SeedCheckCommand.cc
  4276. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4277. Fixed the bug that removed peer's session upload/download length
  4278. are counted twice in _cachedTransferStat before it is
  4279. re-calculated. This affected the calculation of shara ratio,
  4280. resulting aria2 wrongly determines that specified share ratio is
  4281. reached. Also fixed the typo in calculateStatFor function name.
  4282. * src/BtSetup.cc
  4283. * src/DefaultPeerStorage.cc
  4284. * src/ShareRatioSeedCriteria.h
  4285. * test/ShareRatioSeedCriteriaTest.cc
  4286. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4287. * Release 1.3.0
  4288. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4289. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4290. Nynorsk translations. Thanks to all translators.
  4291. * po/es.po
  4292. * po/ja.po
  4293. * po/nn.po
  4294. * po/ru.po
  4295. * po/uk.po
  4296. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4297. Rewritten isInRange()
  4298. * src/DHTBucket.cc
  4299. * test/DHTBucketTest.cc
  4300. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4301. Fixed typo
  4302. * doc/aria2c.1.txt
  4303. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4304. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4305. malloc/realloc is not used.
  4306. * src/configure.ac
  4307. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4308. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4309. char* bitfield instead of stl container for efficiency.
  4310. PieceSelector::select now takes this
  4311. bitfield. RarestPieceSelector::select now also performs
  4312. efficiently for this change. bitfield namespace is introduced and
  4313. it has several helper functions to handle basic bitfield
  4314. operations such as test, count set bits, etc.
  4315. * src/BitfieldMan.cc
  4316. * src/BitfieldMan.h
  4317. * src/DefaultBtRequestFactory.cc
  4318. * src/DefaultPieceStorage.cc
  4319. * src/DefaultPieceStorage.h
  4320. * src/LongestSequencePieceSelector.cc
  4321. * src/LongestSequencePieceSelector.h
  4322. * src/Makefile.am
  4323. * src/Piece.cc
  4324. * src/Piece.h
  4325. * src/PieceSelector.h
  4326. * src/RarestPieceSelector.cc
  4327. * src/RarestPieceSelector.h
  4328. * src/Util.cc
  4329. * src/Util.h
  4330. * src/bitfield.h
  4331. * test/BitfieldManTest.cc
  4332. * test/LongestSequencePieceSelectorTest.cc
  4333. * test/Makefile.am
  4334. * test/RarestPieceSelectorTest.cc
  4335. * test/UtilTest.cc
  4336. * test/bitfieldTest.cc
  4337. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4338. Made accepted socket non-block.
  4339. * src/FtpNegotiationCommand.cc
  4340. * src/HttpListenCommand.cc
  4341. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4342. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4343. * src/AbstractSingleDiskAdaptor.cc
  4344. * src/DefaultPieceStorage.cc
  4345. * src/DiskAdaptor.h
  4346. * src/DiskAdaptor.h
  4347. * src/MultiFileAllocationIterator.cc
  4348. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4349. Run
  4350. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4351. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4352. it doesn't need to be called every time when
  4353. DefaultBtInteractive::doInteractionProcessing() is called.
  4354. * src/DefaultBtInteractive.cc
  4355. * src/DefaultBtInteractive.h
  4356. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4357. Documented 'falloc' in man page.
  4358. * doc/aria2c.1.txt
  4359. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4360. Updated doc
  4361. * src/usage_text.h
  4362. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4363. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4364. allocation mode uses posix_fallocate() system call to allocate
  4365. file on disk. If you are using newer file systems such as ext4
  4366. (with extents support), btrfs or xfs, 'falloc' is your best
  4367. choice. It allocates large(few GiB) files almost instantly. Don't
  4368. use 'falloc' with legacy file systems such as ext3 because it
  4369. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4370. until allocation finishes. 'falloc' may not be available if your
  4371. system doesn't have posix_fallocate() system call.
  4372. * configure.ac
  4373. * src/AbstractDiskWriter.cc
  4374. * src/AbstractDiskWriter.h
  4375. * src/AbstractSingleDiskAdaptor.cc
  4376. * src/BinaryStream.h
  4377. * src/BtCheckIntegrityEntry.cc
  4378. * src/ByteArrayDiskWriter.h
  4379. * src/CheckIntegrityEntry.cc
  4380. * src/CheckIntegrityEntry.h
  4381. * src/DefaultPieceStorage.cc
  4382. * src/DiskAdaptor.cc
  4383. * src/DiskAdaptor.h
  4384. * src/DiskWriter.h
  4385. * src/FallocFileAllocationIterator.cc
  4386. * src/FallocFileAllocationIterator.h
  4387. * src/FileAllocationEntry.cc
  4388. * src/FileAllocationEntry.h
  4389. * src/Makefile.am
  4390. * src/MultiFileAllocationIterator.cc
  4391. * src/MultiFileAllocationIterator.h
  4392. * src/OptionHandlerFactory.cc
  4393. * src/RequestGroup.cc
  4394. * src/StreamCheckIntegrityEntry.cc
  4395. * src/prefs.cc
  4396. * src/prefs.h
  4397. * src/usage_text.h
  4398. * test/FallocFileAllocationIteratorTest.cc
  4399. * test/Makefile.am
  4400. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4401. Removed duplicate enableDirectIO() call.
  4402. * src/MultiFileAllocationIterator.cc
  4403. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4404. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4405. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4406. cost of std::rotate().
  4407. * src/RarestPieceSelector.cc
  4408. * src/RarestPieceSelector.h
  4409. * test/RarestPieceSelectorTest.cc
  4410. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4411. Updated usage doc for --bt-tracker-interval option.
  4412. * src/usage_text.h
  4413. * doc/aria2c.1.txt
  4414. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4415. Documented --bt-tracker-interval option in man page.
  4416. * doc/aria2c.1.txt
  4417. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4418. Added an option to specify the interval between tracker requests.
  4419. If non-zero value is specified, aria2 uses it and ignores the
  4420. interval value in the response of tracker. If zero is specified,
  4421. aria2 determines the inteval value based on the tarcker response
  4422. and download progress.
  4423. * src/DefaultBtAnnounce.cc
  4424. * src/DefaultBtAnnounce.h
  4425. * src/OptionHandlerFactory.cc
  4426. * src/RequestGroup.cc
  4427. * src/prefs.cc
  4428. * src/prefs.h
  4429. * src/usage_text.h
  4430. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4431. Added operator+=, operator-=, operator-
  4432. * src/TransferStat.cc
  4433. * src/TransferStat.h
  4434. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4435. Refactored RarestPieceSelector to reduce CPU load, especially for
  4436. addPieceStats.
  4437. * src/RarestPieceSelector.cc
  4438. * src/RarestPieceSelector.h
  4439. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4440. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4441. getAllMissingBlockIndexes to reduce a call to
  4442. array_function_base::operator[].
  4443. * src/BitfieldMan.cc
  4444. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4445. Cached TransferStat/download speed to avoid to sum them up in each
  4446. call.
  4447. * src/DefaultPeerStorage.cc
  4448. * src/DefaultPeerStorage.h
  4449. * src/SegmentMan.cc
  4450. * src/SegmentMan.h
  4451. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4452. Typedefed cuid_t as int32_t in Command.h
  4453. * src/CUIDCounter.h
  4454. * src/Command.cc
  4455. * src/Command.h
  4456. * src/DownloadEngine.cc
  4457. * src/DownloadEngine.h
  4458. * src/PeerStat.h
  4459. * src/SegmentMan.cc
  4460. * src/SegmentMan.h
  4461. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4462. Reduced the number of calls to PeerStorage::calculateStat() and
  4463. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4464. transfer rate.
  4465. * src/DefaultBtInteractive.cc
  4466. * src/DefaultBtMessageDispatcher.cc
  4467. * src/DefaultPeerStorage.cc
  4468. * src/DefaultPeerStorage.h
  4469. * src/DownloadCommand.cc
  4470. * src/DownloadEngine.cc
  4471. * src/PeerStorage.h
  4472. * src/SegmentMan.cc
  4473. * src/SegmentMan.h
  4474. * test/MockPeerStorage.h
  4475. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4476. Prepended _dir+"/" after joining path elements in torrent file.
  4477. * src/DefaultBtContext.cc
  4478. * test/DefaultBtContextTest.cc
  4479. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4480. Added missing IndexBtMessageValidator.h
  4481. * src/Makefile.am
  4482. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4483. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4484. Chinese translations. Thank you for contributing our project.
  4485. * po/id.po
  4486. * po/it.po
  4487. * po/ru.po
  4488. * po/uk.po
  4489. * po/zh_CN.po
  4490. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Updated README
  4492. * README
  4493. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4494. Bump up version number to 1.3.0
  4495. * configure.ac
  4496. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4497. Updated doc
  4498. * src/DefaultBtContext.h
  4499. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4500. Slice/joinPath for name of single torrent.
  4501. * src/DefaultBtContext.cc
  4502. * test/DefaultBtContextTest.cc
  4503. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4504. Updated man page: Documented --dry-run and --index-out
  4505. options. Changed the default value of --uri-selector and
  4506. --http-auth-challenge options. Removed --direct-file-mapping
  4507. option. Added example for --index-out
  4508. * doc/aria2c.1.txt
  4509. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. Updated TEXT_DRY_RUN
  4511. * src/usage_text.h
  4512. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4513. Changed the default value of --uri-selector option from 'inorder'
  4514. to 'feedback'
  4515. * src/OptionHandlerFactory.cc
  4516. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4517. Included current URI in exception message.
  4518. * src/AbstractCommand.cc
  4519. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4520. Renamed ServerStatURISelector as FeedbackURISelector.
  4521. * src/FeedbackURISelector.cc
  4522. * src/FeedbackURISelector.h
  4523. * src/Makefile.am
  4524. * src/RequestGroupMan.cc
  4525. * src/ServerStatURISelector.cc
  4526. * src/ServerStatURISelector.h
  4527. * test/FeedbackURISelectorTest.cc
  4528. * test/Makefile.am
  4529. * test/ServerStatURISelectorTest.cc
  4530. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4531. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4532. all URIs are tested and their timeout is not reached.
  4533. * src/AdaptiveURISelector.cc
  4534. * src/AdaptiveURISelector.h
  4535. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. Changed the default value of --http-auth-challenge option to false.
  4537. * src/OptionHandlerFactory.cc
  4538. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Reuse URIs when all unused URIs run out.
  4540. * src/OptionHandlerFactory.cc
  4541. * src/RequestGroup.cc
  4542. * src/prefs.cc
  4543. * src/prefs.h
  4544. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4545. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4546. and BtRejectMessage are derived from RangeBtMessage class.
  4547. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4548. derived from IndexBtMessage class. BtChokeMessage,
  4549. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4550. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4551. ZeroBtMessage class.
  4552. * src/AbstractBtMessage.cc
  4553. * src/AbstractBtMessage.h
  4554. * src/BtAllowedFastMessage.cc
  4555. * src/BtAllowedFastMessage.h
  4556. * src/BtAllowedFastMessageValidator.h: Removed
  4557. * src/BtBitfieldMessage.cc
  4558. * src/BtBitfieldMessage.h
  4559. * src/BtCancelMessage.cc
  4560. * src/BtCancelMessage.h
  4561. * src/BtCancelMessageValidator.h: Removed
  4562. * src/BtChokeMessage.cc
  4563. * src/BtChokeMessage.h
  4564. * src/BtExtendedMessage.cc
  4565. * src/BtExtendedMessage.h
  4566. * src/BtHandshakeMessage.cc
  4567. * src/BtHandshakeMessage.h
  4568. * src/BtHaveAllMessage.cc
  4569. * src/BtHaveAllMessage.h
  4570. * src/BtHaveMessage.cc
  4571. * src/BtHaveMessage.h
  4572. * src/BtHaveMessageValidator.h: Removed
  4573. * src/BtHaveNoneMessage.cc
  4574. * src/BtHaveNoneMessage.h
  4575. * src/BtInterestedMessage.cc
  4576. * src/BtInterestedMessage.h
  4577. * src/BtKeepAliveMessage.cc
  4578. * src/BtKeepAliveMessage.h
  4579. * src/BtNotInterestedMessage.cc
  4580. * src/BtNotInterestedMessage.h
  4581. * src/BtPieceMessage.cc
  4582. * src/BtPieceMessage.h
  4583. * src/BtPortMessage.cc
  4584. * src/BtPortMessage.h
  4585. * src/BtRejectMessage.cc
  4586. * src/BtRejectMessage.h
  4587. * src/BtRejectMessageValidator.h: Removed
  4588. * src/BtRequestMessage.cc
  4589. * src/BtRequestMessage.h
  4590. * src/BtRequestMessageValidator.h: Removed
  4591. * src/BtSuggestPieceMessage.cc
  4592. * src/BtSuggestPieceMessage.h
  4593. * src/BtSuggestPieceMessageValidator.h: Removed
  4594. * src/BtUnchokeMessage.cc
  4595. * src/BtUnchokeMessage.h
  4596. * src/DefaultBtMessageFactory.cc
  4597. * src/IndexBtMessage.cc
  4598. * src/IndexBtMessage.h
  4599. * src/IndexBtMessageValidator.h
  4600. * src/Makefile.am
  4601. * src/PeerMessageUtil.cc
  4602. * src/PeerMessageUtil.h
  4603. * src/RangeBtMessage.cc
  4604. * src/RangeBtMessage.h
  4605. * src/RangeBtMessageValidator.h
  4606. * src/SimpleBtMessage.cc
  4607. * src/SimpleBtMessage.h
  4608. * src/ZeroBtMessage.cc
  4609. * src/ZeroBtMessage.h
  4610. * test/BtRequestMessageTest.cc
  4611. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4612. Reverted usage_text.h to r1093 to avoid to lose translated
  4613. messages.
  4614. * src/usage_text.h
  4615. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4617. declared as non-const previously is now const and defined in class
  4618. definition.
  4619. * src/AbstractBtMessage.cc
  4620. * src/AbstractBtMessage.h
  4621. * src/BtAllowedFastMessage.cc
  4622. * src/BtAllowedFastMessage.h
  4623. * src/BtBitfieldMessage.h
  4624. * src/BtCancelMessage.cc
  4625. * src/BtCancelMessage.h
  4626. * src/BtChokeMessage.cc
  4627. * src/BtChokeMessage.h
  4628. * src/BtExtendedMessage.cc
  4629. * src/BtExtendedMessage.h
  4630. * src/BtHandshakeMessage.cc
  4631. * src/BtHandshakeMessage.h
  4632. * src/BtHaveAllMessage.cc
  4633. * src/BtHaveAllMessage.h
  4634. * src/BtHaveMessage.cc
  4635. * src/BtHaveMessage.h
  4636. * src/BtHaveNoneMessage.cc
  4637. * src/BtHaveNoneMessage.h
  4638. * src/BtInterestedMessage.cc
  4639. * src/BtInterestedMessage.h
  4640. * src/BtKeepAliveMessage.cc
  4641. * src/BtKeepAliveMessage.h
  4642. * src/BtMessage.h
  4643. * src/BtNotInterestedMessage.cc
  4644. * src/BtNotInterestedMessage.h
  4645. * src/BtPieceMessage.h
  4646. * src/BtPortMessage.cc
  4647. * src/BtPortMessage.h
  4648. * src/BtRejectMessage.cc
  4649. * src/BtRejectMessage.h
  4650. * src/BtRequestMessage.cc
  4651. * src/BtRequestMessage.h
  4652. * src/BtSuggestPieceMessage.cc
  4653. * src/BtSuggestPieceMessage.h
  4654. * src/BtUnchokeMessage.cc
  4655. * src/BtUnchokeMessage.h
  4656. * src/SimpleBtMessage.cc
  4657. * src/SimpleBtMessage.h
  4658. * test/MockBtMessage.h
  4659. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4660. Use FileEntry::exists()
  4661. * src/MultiDiskAdaptor.cc
  4662. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4663. Added exists()
  4664. * src/FileEntry.cc
  4665. * src/FileEntry.h
  4666. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4667. Added missing prefix dir.
  4668. * src/download_helper.cc
  4669. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4670. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4671. * src/CopyDiskAdaptor.cc: Removed
  4672. * src/CopyDiskAdaptor.h: Removed
  4673. * src/DefaultPieceStorage.cc
  4674. * src/Makefile.am
  4675. * src/OptionHandlerFactory.cc
  4676. * src/prefs.cc
  4677. * src/prefs.h
  4678. * src/usage_text.h
  4679. * test/CopyDiskAdaptorTest.cc: Removed
  4680. * test/Makefile.am
  4681. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4682. Rewritten isSameFileBeingDownloaded()
  4683. * src/RequestGroupMan.cc
  4684. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4685. Removed getName() from DownloadContext. getName() is declared in
  4686. BtContext.
  4687. * src/BtContext.h
  4688. * src/DownloadContext.h
  4689. * src/SingleFileDownloadContext.cc
  4690. * src/SingleFileDownloadContext.h
  4691. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4692. in AbstractSingleDiskAdaptor.
  4693. * src/AbstractSingleDiskAdaptor.h
  4694. * src/DiskAdaptor.h
  4695. * src/MultiDiskAdaptor.h
  4696. * src/RequestGroup.cc
  4697. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4698. MultiDiskAdaptor.
  4699. * src/DefaultPieceStorage.cc
  4700. * src/MultiDiskAdaptor.cc
  4701. * src/MultiDiskAdaptor.h
  4702. * test/MultiDiskAdaptorTest.cc
  4703. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4704. FileEntry::getPath() contains store(top level) directory to
  4705. simplify path handling operation. In the previous implementation,
  4706. store directory is concatenated to FileEntry::getPath() in
  4707. DownloadContext.
  4708. * src/BtDependency.cc
  4709. * src/BtPostDownloadHandler.cc
  4710. * src/CopyDiskAdaptor.cc
  4711. * src/DefaultBtContext.cc
  4712. * src/DirectDiskAdaptor.cc
  4713. * src/FileEntry.cc
  4714. * src/FileEntry.h
  4715. * src/FtpNegotiationCommand.cc
  4716. * src/HttpResponse.cc
  4717. * src/HttpResponseCommand.cc
  4718. * src/Metalink2RequestGroup.cc
  4719. * src/MultiDiskAdaptor.cc
  4720. * src/MultiDiskAdaptor.h
  4721. * src/MultiFileAllocationIterator.cc
  4722. * src/RequestGroup.cc
  4723. * src/SingleFileDownloadContext.cc
  4724. * src/SingleFileDownloadContext.h
  4725. * src/download_helper.cc
  4726. * test/BtDependencyTest.cc
  4727. * test/CopyDiskAdaptorTest.cc
  4728. * test/DefaultBtContextTest.cc
  4729. * test/DefaultBtProgressInfoFileTest.cc
  4730. * test/DirectDiskAdaptorTest.cc
  4731. * test/DownloadHelperTest.cc
  4732. * test/FileEntryTest.cc
  4733. * test/MultiDiskAdaptorTest.cc
  4734. * test/MultiFileAllocationIteratorTest.cc
  4735. * test/RequestGroupTest.cc
  4736. * test/SingleFileDownloadContextTest.cc
  4737. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4738. Fixed compiler warning
  4739. * src/download_helper.cc
  4740. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4741. Throw exception if same infohash torrent is now downloading.
  4742. * src/RequestGroup.cc
  4743. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4744. Added --dry-run option. In this mode, aria2 just checks whether
  4745. the remote file is available and doesn't download data. This
  4746. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4747. are canceled in this mode.
  4748. * src/FtpNegotiationCommand.cc
  4749. * src/HttpResponseCommand.cc
  4750. * src/HttpResponseCommand.h
  4751. * src/OptionHandlerFactory.cc
  4752. * src/RequestGroup.cc
  4753. * src/RequestGroupMan.cc
  4754. * src/prefs.cc
  4755. * src/prefs.h
  4756. * src/usage_text.h
  4757. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4758. Fixed compiler waring
  4759. * test/UriListParserTest.cc
  4760. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4761. Parse options in -i list using OptionParser.
  4762. * src/UriListParser.cc
  4763. * src/UriListParser.h
  4764. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4765. Don't reset URI in retry to avoid additional round trips because
  4766. of redirects.
  4767. * src/AbstractCommand.cc
  4768. * src/OptionHandlerFactory.cc
  4769. * src/prefs.cc
  4770. * src/prefs.h
  4771. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4772. Declared hide() in OptionHandler.
  4773. * src/NameMatchOptionHandler.h
  4774. * src/OptionHandler.h
  4775. * src/OptionHandlerImpl.h
  4776. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4777. Updated doc
  4778. * src/Peer.h
  4779. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4780. Added log message in setStatusInternal()
  4781. * src/ServerStat.cc
  4782. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4783. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4784. effectively exclude failed server.
  4785. * src/AbstractCommand.cc
  4786. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4787. Added --index-out option to specify each file path for torrent.
  4788. Here index shown in --show-files option is used to specify which
  4789. file path should be altered. For example, to change the file path
  4790. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4791. option multiple times: --index-out=1=aria2.tar.bz2
  4792. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4793. available. This option can be specified in -i list.
  4794. * src/DefaultBtContext.cc
  4795. * src/DefaultBtContext.h
  4796. * src/MultiDiskAdaptor.cc
  4797. * src/MultiDiskAdaptor.h
  4798. * src/MultiFileAllocationIterator.cc
  4799. * src/OptionHandlerFactory.cc
  4800. * src/OptionHandlerImpl.h
  4801. * src/Util.cc
  4802. * src/Util.h
  4803. * src/download_helper.cc
  4804. * src/prefs.cc
  4805. * src/prefs.h
  4806. * src/usage_text.h
  4807. * test/DefaultBtContextTest.cc
  4808. * test/MultiDiskAdaptorTest.cc
  4809. * test/MultiFileAllocationIteratorTest.cc
  4810. * test/UtilTest.cc
  4811. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4812. Use Util::pathJoin()
  4813. * src/MetalinkParserController.cc
  4814. * test/test.xml
  4815. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4816. Use Util::pathJoin()
  4817. * src/DefaultBtContext.cc
  4818. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4819. Added Util::pathJoin()
  4820. * src/Util.h
  4821. * test/UtilTest.cc
  4822. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4823. Applied basename function to remove directory element in
  4824. content-disposition value.
  4825. Return empty string if content-disposition value is ".." or ".".
  4826. * src/Util.cc
  4827. * test/UtilTest.cc
  4828. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4829. Added --max-overall-download-limit in man page.
  4830. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4831. * doc/aria2c.1.txt
  4832. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4833. Added --max-overall-download-limit option. Now --max-upload-limit
  4834. option is not ignored when --max-overall-upload-limit option has
  4835. non-zero value. aria2 checks download(upload) speed in the order:
  4836. first checks overall speed limit and if it is not exceeded, then
  4837. checks speed limit per download. Thus you can specify both
  4838. value. For example, set --max-overall-download-limit=1M and
  4839. --max-download-limit=500K to prevent from one download from eating
  4840. all overall speed limit.
  4841. * src/DefaultBtInteractive.cc
  4842. * src/DefaultBtInteractive.h
  4843. * src/DefaultBtMessageDispatcher.cc
  4844. * src/DefaultBtMessageDispatcher.h
  4845. * src/DownloadCommand.cc
  4846. * src/DownloadCommand.h
  4847. * src/FtpNegotiationCommand.cc
  4848. * src/HttpResponseCommand.cc
  4849. * src/OptionHandlerFactory.cc
  4850. * src/PeerInteractionCommand.cc
  4851. * src/RequestGroup.cc
  4852. * src/RequestGroup.h
  4853. * src/RequestGroupMan.cc
  4854. * src/RequestGroupMan.h
  4855. * src/prefs.cc
  4856. * src/prefs.h
  4857. * src/usage_text.h
  4858. * test/DefaultBtMessageDispatcherTest.cc
  4859. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4860. Documented select-file option in Input File section.
  4861. Documented --http-auth-challenge option.
  4862. * doc/aria2c.1.txt
  4863. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4864. Now select-file can be specified in the uri list(-i list).
  4865. * src/BtContext.cc
  4866. * src/BtContext.h
  4867. * src/RequestGroup.cc
  4868. * src/Sequence.h
  4869. * src/download_helper.cc
  4870. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4871. Made the upper value of --max-concurrent-downloads options unlimited.
  4872. * src/OptionHandlerFactory.cc
  4873. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4874. Fixed the bug that disk writer is not created even if it shares
  4875. same piece with the preceding file if the length of previous file
  4876. is 0.
  4877. * src/MultiDiskAdaptor.cc
  4878. * test/MultiDiskAdaptorTest.cc
  4879. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4880. In BitTorrent, Open files in read-only mode for hash check. After
  4881. that, re-open file in read/write mode only when the download is
  4882. not finished.
  4883. * src/AbstractDiskWriter.cc
  4884. * src/AbstractDiskWriter.h
  4885. * src/AbstractSingleDiskAdaptor.cc
  4886. * src/AbstractSingleDiskAdaptor.h
  4887. * src/BtCheckIntegrityEntry.cc
  4888. * src/DiskAdaptor.h
  4889. * src/DiskWriter.h
  4890. * src/MultiDiskAdaptor.cc
  4891. * src/MultiDiskAdaptor.h
  4892. * src/RequestGroup.cc
  4893. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4894. Added --http-auth-challenge option. If it is set to true(by
  4895. default), aria2 sends HTTP authorization header only when it is
  4896. requested by the server. If false is set, then authorization
  4897. header is always sent to the server. This is useful for servers
  4898. that don't respond 401 code when authentication is required.
  4899. There is an exception: if username and password are embedded in
  4900. URI, authorization header is always sent to the server regardless
  4901. of this option.
  4902. * src/AuthConfigFactory.cc
  4903. * src/HttpSkipResponseCommand.cc
  4904. * src/OptionHandlerFactory.cc
  4905. * src/prefs.cc
  4906. * src/prefs.h
  4907. * src/usage_text.h
  4908. * test/AuthConfigFactoryTest.cc
  4909. * test/HttpRequestTest.cc
  4910. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4911. * Release 1.2.0
  4912. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4913. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4914. Thanks to all translators.
  4915. * po/es.po
  4916. * po/ja.po
  4917. * po/ru.po
  4918. * po/uk.po
  4919. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4920. Call deleteSocketForReadCheck() before socket is closed.
  4921. * src/HttpListenCommand.cc
  4922. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4923. Defined virtual destructor for BObject.
  4924. * src/bencode.h
  4925. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4926. Rewritten BDE to make it efficient.
  4927. * src/bencode.cc
  4928. * src/bencode.h
  4929. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4930. Removed function throw list.
  4931. * src/bencode.cc
  4932. * src/bencode.h
  4933. * test/BencodeTest.cc
  4934. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4935. Enclosed all URLs in double quotes in command-line examples.
  4936. * doc/aria2c.1.txt
  4937. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4938. Updated reference/see also section.
  4939. * README
  4940. * doc/aria2c.1.txt
  4941. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4942. Reorganized man page based on man man-pages.
  4943. * doc/aria2c.1.txt
  4944. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4945. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4946. because same documents are available in man page. Added
  4947. References section.
  4948. * README
  4949. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4950. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4951. PERFORMANCE PROFILE section.
  4952. * doc/aria2c.1.txt
  4953. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4954. Rewritten the section for configuration file.
  4955. * README
  4956. * doc/aria2c.1.txt
  4957. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Fixed the segmentation fault during execution of choking algorithm
  4959. in leecher state because of broken compare operator
  4960. implementation.
  4961. * src/BtLeecherStateChoke.cc
  4962. * src/BtLeecherStateChoke.h
  4963. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4964. Open file in binary mode.
  4965. * src/CookieStorage.cc
  4966. * src/DHTSetup.cc
  4967. * src/DHTUtil.cc
  4968. * src/Netrc.cc
  4969. * src/NsCookieParser.cc
  4970. * src/ProtocolDetector.cc
  4971. * src/RequestGroupMan.cc
  4972. * src/Signature.cc
  4973. * src/bencode.cc
  4974. * src/download_helper.cc
  4975. * src/option_processing.cc
  4976. * test/CookieParserTest.cc
  4977. * test/DefaultBtProgressInfoFileTest.cc
  4978. * test/FileTest.cc
  4979. * test/GZipDecoderTest.cc
  4980. * test/RequestGroupManTest.cc
  4981. * test/SignatureTest.cc
  4982. * test/SingleFileAllocationIteratorTest.cc
  4983. * test/UriListParserTest.cc
  4984. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4985. Removed operator[] because it is ambiguous with built-in []
  4986. operator.
  4987. * src/array_fun.h
  4988. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4989. Fixed compile error
  4990. * src/OptionParser.cc
  4991. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4992. Added missing call to arrayWrapperConst
  4993. * test/array_funTest.cc
  4994. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4995. Use array_wrapper instead of array_ptr.
  4996. * src/DHTRoutingTableDeserializer.cc
  4997. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4998. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4999. * src/array_fun.h
  5000. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5001. Added array_wrapper template.
  5002. * src/array_fun.h
  5003. * test/array_funTest.cc
  5004. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. Use operator T* of array_ptr.
  5006. * src/OptionParser.cc
  5007. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5008. Use localhost instead of 127.0.0.1
  5009. * test/FtpConnectionTest.cc
  5010. * test/MSEHandshakeTest.cc
  5011. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5012. Added operator T*
  5013. * src/array_fun.h
  5014. * test/array_funTest.cc
  5015. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5016. Use dynamically allocated char array to detect memory access
  5017. violation.
  5018. * src/DHTRoutingTableDeserializer.cc
  5019. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5020. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5021. defined.
  5022. * src/PeerMessageUtil.cc
  5023. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5025. * configure.ac
  5026. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5027. Added a check to see struct sockaddr_in has sin_len member.
  5028. * configure.ac
  5029. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5030. Fixed buffer overrun.
  5031. * src/DHTRoutingTableDeserializer.cc
  5032. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5033. Added LL for long long int constant.
  5034. * test/FtpConnectionTest.cc
  5035. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5036. Casted to unsigned int to suppress compiler warning on netbsd.
  5037. * src/BtRuntime.h
  5038. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5039. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5040. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5041. type time_t.
  5042. * src/SimpleLogger.cc
  5043. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5044. Added test for FtpConnection::receiveSizeResponse().
  5045. * test/FtpConnectionTest.cc
  5046. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5047. Fix epoll error on the old kernel 2.6.8 or ealier.
  5048. * src/EpollEventPoll.cc
  5049. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5050. Use Util::parseLLInt instead of sscanf for portability. The
  5051. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5052. * src/FtpConnection.cc
  5053. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5054. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5055. block. It should not filter anything.
  5056. * src/BitfieldMan.cc
  5057. * src/ConsoleStatCalc.cc
  5058. * test/BitfieldManTest.cc
  5059. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5060. Fixed the bug that the boolean options that don't take arguments
  5061. don't work.
  5062. * src/OptionHandlerImpl.h
  5063. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Fixed broken selected file BitTorrent download.
  5065. * src/MultiDiskAdaptor.cc
  5066. * test/MultiDiskAdaptorTest.cc
  5067. * test/MultiFileAllocationIteratorTest.cc
  5068. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5069. Fixed #define guard for EpollEventPoll
  5070. * src/EpollEventPoll.h
  5071. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5072. Wait 2 seconds. 1 second is sometimes not enough.
  5073. * test/TimeSeedCriteriaTest.cc
  5074. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5075. Use localhost instead of 127.0.0.1.
  5076. * test/DHTConnectionImplTest.cc
  5077. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5078. Suppressed compiler warning.
  5079. * src/AdaptiveURISelector.cc
  5080. * src/DefaultPieceStorage.cc
  5081. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5082. Defined virtual destructor.
  5083. * src/MetalinkParserState.h
  5084. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5085. Give NULL for second argument of getaddrinfo instead of "0".
  5086. * src/NameResolver.cc
  5087. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5089. included strptime doesn't parse data for this format.
  5090. * src/FtpConnection.cc
  5091. * test/FtpConnectionTest.cc
  5092. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5093. Removed tests giving -1 for unsigned argument.
  5094. * test/SingleFileDownloadContextTest.cc
  5095. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5096. Don't use sha256 in tests because it might not be supported by the
  5097. SSL library.
  5098. * test/MetalinkProcessorTest.cc
  5099. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5100. Removed tests giving -1 for unsigned argument.
  5101. * test/AlphaNumberDecoratorTest
  5102. * test/BitfieldManTest.cc
  5103. * test/DefaultBtContextTest.cc
  5104. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5105. Fixed compile error without libcares when epoll is available.
  5106. * src/EpollEventPoll.cc
  5107. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5108. Included fstream instead of iostream.
  5109. * test/SignatureTest.cc
  5110. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5111. Removed #include <algorithm>
  5112. * test/RequestGroupTest.cc
  5113. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5114. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5115. using RequestGroup::extractURIResult().
  5116. * src/AdaptiveURISelector.cc
  5117. * src/RequestGroup.cc
  5118. * src/RequestGroup.h
  5119. * test/RequestGroupTest.cc
  5120. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5121. Added tests for array_ptr.
  5122. * test/array_funTest.cc
  5123. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5124. Don't send ip parameter to a tracker if ip parameter is empty
  5125. string.
  5126. * src/DefaultBtAnnounce.cc
  5127. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5128. Adjusted line feed.
  5129. * src/version_usage.cc
  5130. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5131. Print tags, possible values when OptionHandlerException is caught.
  5132. * src/option_processing.cc
  5133. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5134. Changed the message for FatalException.
  5135. * src/OptionParser.cc
  5136. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5137. Documented --bt-external-ip option in man page. Updated man pages
  5138. for --proxy-method option.
  5139. * doc/aria2c.1.txt
  5140. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5141. Use GET method for FTP via HTTP proxy.
  5142. * src/FtpInitiateConnectionCommand.cc
  5143. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5144. Changed the default value of --proxy-method option from 'tunnel'
  5145. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5146. option.
  5147. * src/AbstractCommand.cc
  5148. * src/AbstractCommand.h
  5149. * src/FtpInitiateConnectionCommand.cc
  5150. * src/HttpDownloadCommand.cc
  5151. * src/HttpInitiateConnectionCommand.cc
  5152. * src/HttpInitiateConnectionCommand.h
  5153. * src/OptionHandlerFactory.cc
  5154. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5155. Initialized _logger
  5156. * src/SelectEventPoll.cc
  5157. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5158. Defined a copy constructor for the same type.
  5159. * src/SharedHandle.h
  5160. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5161. Added OptionParser::parseArg() which internally uses getopt_long
  5162. to parse command-line options. All command-line options are now
  5163. configured by OptionHandler. No manual editing of struct option*
  5164. is required any more.
  5165. * src/NameMatchOptionHandler.h
  5166. * src/OptionHandler.h
  5167. * src/OptionHandlerFactory.cc
  5168. * src/OptionHandlerImpl.h
  5169. * src/OptionParser.cc
  5170. * src/OptionParser.h
  5171. * src/array_fun.h
  5172. * src/main.cc
  5173. * src/option_processing.cc
  5174. * test/OptionHandlerTest.cc
  5175. * test/OptionParserTest.cc
  5176. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5177. Fixed configure error with --disable-epoll
  5178. * configure.ac
  5179. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5180. Fixed compile error when HAVE_EPOLL is not defined.
  5181. Fixed linker error on bigendian systems.
  5182. * src/SocketCore.cc
  5183. * src/SocketCore.h
  5184. * test/DefaultBtProgressInfoFileTest.cc
  5185. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5186. Added --bt-external-ip option. You can specify the external IP
  5187. address to report to a BitTorrent tracker. Although this function
  5188. is named 'external', it can accept any kind of IP addresses.
  5189. * src/DefaultBtAnnounce.cc
  5190. * src/OptionHandlerFactory.cc
  5191. * src/option_processing.cc
  5192. * src/prefs.cc
  5193. * src/prefs.h
  5194. * src/usage_text.h
  5195. * test/DefaultBtAnnounceTest.cc
  5196. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5197. Extracted the algorithm to find the longest incremental sequence
  5198. as max_sequence template.
  5199. * src/LongestSequencePieceSelector.cc
  5200. * src/a2algo.h
  5201. * test/Makefile.am
  5202. * test/a2algoTest.cc
  5203. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5204. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5205. * src/usage_text.h
  5206. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5207. Updated doc for --uri-selector, --http-server-listen-port and
  5208. --enable-http-server option. Documented --event-poll option.
  5209. * doc/aria2c.1.txt
  5210. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5211. Updated doc for --enable-http-server.
  5212. * src/usage_text.h
  5213. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5214. Documented --http-server-listen-port and --enable-http-server in
  5215. man page.
  5216. * doc/aria2c.1.txt
  5217. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5218. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5219. translations. Thanks to all translators.
  5220. * po/es.po
  5221. * po/id.po
  5222. * po/it.po
  5223. * po/ru.po
  5224. * po/uk.po
  5225. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Bump up version number to 1.2.0
  5227. * configure.ac
  5228. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5229. BtContext::getAnnounceTiers() now returns const reference.
  5230. * src/BtContext.h
  5231. * src/DefaultBtContext.cc
  5232. * src/DefaultBtContext.h
  5233. * test/MockBtContext.h
  5234. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5235. Change the number of retries for tracker request based on the
  5236. number of available tracker in a torrent file.
  5237. * src/TrackerWatcherCommand.cc
  5238. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5239. Added _maxTries property to RequestGroup and assign the option
  5240. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5241. RequestGroup::getMaxTries() instead of
  5242. Option::getAsInt(PREF_MAX_TRIES).
  5243. * src/AbstractCommand.cc
  5244. * src/RequestGroup.cc
  5245. * src/RequestGroup.h
  5246. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5247. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5248. Mandriva. I modified the patch: make RequestGroup have the
  5249. timeout value and AdaptiveURISelector directly modifies that
  5250. value.
  5251. * src/AbstractCommand.cc
  5252. * src/AdaptiveURISelector.cc
  5253. * src/AdaptiveURISelector.h
  5254. * src/FtpNegotiationCommand.cc
  5255. * src/RequestGroup.cc
  5256. * src/RequestGroup.h
  5257. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5258. Fixed compiler warning
  5259. * test/IteratableChecksumValidatorTest.cc
  5260. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5261. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5262. integrated downloads. This PieceSelector subclass finds the
  5263. longest continuous sequence in the available missing pieces and
  5264. selects the last index of such sequence. This makes HTTP/FTP
  5265. connections less interrupted by the pieces obtained by BitTorrent
  5266. peers.
  5267. * src/DefaultPieceStorage.cc
  5268. * src/DefaultPieceStorage.h
  5269. * src/LongestSequencePieceSelector.cc
  5270. * src/LongestSequencePieceSelector.h
  5271. * src/Makefile.am
  5272. * src/PieceSelector.h
  5273. * src/RarestPieceSelector.h
  5274. * src/RequestGroup.cc
  5275. * test/BtDependencyTest.cc
  5276. * test/DefaultPieceStorageTest.cc
  5277. * test/IteratableChecksumValidatorTest.cc
  5278. * test/LongestSequencePieceSelectorTest.cc
  5279. * test/Makefile.am
  5280. * test/SegmentManTest.cc
  5281. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5282. Fixed the bug that the average speed is wrong in
  5283. http/ftp/BitTorrent integrated download. Only the download bytes
  5284. in BitTorrent were considered.
  5285. * src/RequestGroup.cc
  5286. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5287. Choose port for BitTorrent/DHT randomly from the specified range.
  5288. * src/DHTConnectionImpl.cc
  5289. * src/PeerListenCommand.cc
  5290. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5291. Send HTTP Authorization header only if it is requested by the
  5292. server(response 401). There are some exceptions. The authorization
  5293. header for proxy is always sent if it is available without request
  5294. by the server. If username/password is specified in the URI, it
  5295. is immediately sent to the server without request by the server.
  5296. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5297. SharedHandle<AuthConfig>().
  5298. NetrcAuthResolver::resolveAuthConfig() returns
  5299. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5300. * src/AbstractAuthResolver.cc
  5301. * src/AbstractProxyRequestCommand.cc
  5302. * src/AuthConfigFactory.cc
  5303. * src/AuthConfigFactory.h
  5304. * src/HttpConnection.cc
  5305. * src/HttpRequest.cc
  5306. * src/HttpRequest.h
  5307. * src/HttpResponse.cc
  5308. * src/HttpResponseCommand.cc
  5309. * src/HttpSkipResponseCommand.cc
  5310. * test/AuthConfigFactoryTest.cc
  5311. * test/HttpRequestTest.cc
  5312. * test/HttpResponseTest.cc
  5313. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5314. Remove leading "--" from help keyword and a substring after "="
  5315. from help keyword, so that one can query options by '-h--max-' or
  5316. '-hmax-peers=10'.
  5317. * src/option_processing.cc
  5318. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. Rewritten PStringVisitor and its implementation.
  5320. * src/PStringBuildVisitor.cc
  5321. * src/PStringBuildVisitor.h
  5322. * src/PStringDatum.h
  5323. * src/PStringNumLoop.h
  5324. * src/PStringSegment.cc
  5325. * src/PStringSegment.h
  5326. * src/PStringSelect.h
  5327. * src/PStringVisitor.h
  5328. * src/download_helper.cc
  5329. * test/PStringBuildVisitorTest.cc
  5330. * test/ParameterizedStringParserTest.cc
  5331. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5332. Persist connection between the built-in HTTP server and a client
  5333. if a client supports keep-alive. Fixed the bug that aria2 exits
  5334. when the HTTP server receives EOF from a client.
  5335. * src/HttpServer.cc
  5336. * src/HttpServer.h
  5337. * src/HttpServerCommand.cc
  5338. * src/HttpServerCommand.h
  5339. * src/HttpServerResponseCommand.cc
  5340. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5341. Added experimental built-in HTTP server. Currently, when a client
  5342. accesses to the server, it responds with the current download
  5343. progress. By default, it is disabled. To enable the server, give
  5344. --enable-http-server option. To change the default port number
  5345. for the server to listen to, use --http-server-listen-port option.
  5346. The response HTML is very simple and refreshes it self each 1
  5347. second. Because of this refresh, you see flicker in normal web
  5348. browser such as Firefox. I recommend to use console-based browser
  5349. such as elinks, w3m. To connect to the server, run 'elinks
  5350. http://localhost:6800/' while running aria2. Please replace port
  5351. number '6800'(which is default) with your preference.
  5352. * src/DownloadEngineFactory.cc
  5353. * src/HttpHeader.cc
  5354. * src/HttpHeader.h
  5355. * src/HttpHeaderProcessor.cc
  5356. * src/HttpHeaderProcessor.h
  5357. * src/HttpListenCommand.cc
  5358. * src/HttpListenCommand.h
  5359. * src/HttpServer.cc
  5360. * src/HttpServer.h
  5361. * src/HttpServerCommand.cc
  5362. * src/HttpServerCommand.h
  5363. * src/HttpServerResponseCommand.cc
  5364. * src/HttpServerResponseCommand.h
  5365. * src/Makefile.am
  5366. * src/OptionHandlerFactory.cc
  5367. * src/Util.cc
  5368. * src/Util.h
  5369. * src/help_tags.h
  5370. * src/option_processing.cc
  5371. * src/prefs.cc
  5372. * src/prefs.h
  5373. * src/usage_text.h
  5374. * test/HttpHeaderProcessorTest.cc
  5375. * test/UtilTest.cc
  5376. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5377. Removed.
  5378. * src/CheckIntegrityMan.cc
  5379. * src/FileAllocationMan.cc
  5380. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5381. Made (piece) hash check sequential for each RequestGroup because
  5382. simultaneous hash check is slower than sequential execution.
  5383. * src/CheckIntegrityCommand.cc
  5384. * src/CheckIntegrityDispatcherCommand.cc
  5385. * src/CheckIntegrityDispatcherCommand.h
  5386. * src/CheckIntegrityMan.h
  5387. * src/ConsoleStatCalc.cc
  5388. * src/DownloadCommand.cc
  5389. * src/DownloadEngine.cc
  5390. * src/DownloadEngine.h
  5391. * src/DownloadEngineFactory.cc
  5392. * src/Makefile.am
  5393. * src/Makefile.in
  5394. * src/RequestGroup.cc
  5395. * src/StatCalc.h
  5396. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5397. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5398. SequentialDispatcherCommand.
  5399. * src/FileAllocationDispatcherCommand.cc
  5400. * src/SequentialDispatcherCommand.h
  5401. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5402. Rewritten FileAllocationDispatcherCommand using brand new
  5403. SequentialDispatcherCommand.
  5404. * src/DownloadEngineFactory.cc
  5405. * src/FileAllocationCommand.cc
  5406. * src/FileAllocationDispatcherCommand.cc
  5407. * src/FileAllocationDispatcherCommand.h
  5408. * src/Makefile.am
  5409. * src/SequentialDispatcherCommand.h
  5410. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5411. Replaced FileAllocationMan with
  5412. SequentialPicker<FileAllocationEntry>.
  5413. * src/BtCheckIntegrityEntry.cc
  5414. * src/ConsoleStatCalc.cc
  5415. * src/DownloadEngine.cc
  5416. * src/DownloadEngine.h
  5417. * src/DownloadEngineFactory.cc
  5418. * src/FileAllocationCommand.cc
  5419. * src/FileAllocationDispatcherCommand.cc
  5420. * src/FileAllocationMan.h
  5421. * src/Makefile.am
  5422. * src/SequentialPicker.h
  5423. * src/StatCalc.h
  5424. * src/StreamCheckIntegrityEntry.cc
  5425. * test/Makefile.am
  5426. * test/SequentialPickerTest.cc
  5427. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5428. Added doc for adaptive URI selector.
  5429. * doc/aria2c.1.txt
  5430. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5431. Added doc for adaptive URI selector.
  5432. * src/usage_text.h
  5433. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5434. Added doc for --bt-max-peers option.
  5435. * doc/aria2c.1.txt
  5436. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5437. Added doc for --bt-hash-check-seed option.
  5438. * doc/aria2c.1.txt
  5439. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5440. Documented exit codes.
  5441. * doc/aria2c.1.txt
  5442. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5443. Added --bt-max-peers option to specify the maximum number of peers
  5444. per torrent. 0 means unlimited number of peers.
  5445. * src/ActivePeerConnectionCommand.cc
  5446. * src/BtRuntime.h
  5447. * src/DefaultPeerStorage.cc
  5448. * src/DefaultPeerStorage.h
  5449. * src/OptionHandlerFactory.cc
  5450. * src/RequestGroup.cc
  5451. * src/option_processing.cc
  5452. * src/prefs.cc
  5453. * src/prefs.h
  5454. * src/usage_text.h
  5455. * test/DefaultPeerStorageTest.cc
  5456. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5457. Added --bt-hash-check-seed option. If true is given to this
  5458. option, after hash check using --check-integrity option and file
  5459. is complete, continue to seed file. If you want to check file and
  5460. download it only when it is damaged or incomplete, set this option
  5461. to false. This option has effect only on BitTorrent download.
  5462. The default value is true(This is the same behavior with the
  5463. previous release).
  5464. * src/BtCheckIntegrityEntry.cc
  5465. * src/OptionHandlerFactory.cc
  5466. * src/option_processing.cc
  5467. * src/prefs.cc
  5468. * src/prefs.h
  5469. * src/usage_text.h
  5470. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5471. Updated copyright year.
  5472. * src/version_usage.cc
  5473. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5474. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5475. * doc/aria2c.1.txt
  5476. * src/usage_text.h
  5477. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5478. Made the max value of split option unlimited.
  5479. * doc/aria2c.1.txt
  5480. * src/OptionHandlerFactory.cc
  5481. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5482. Fixed compile warning/error.
  5483. * src/DownloadResult.h
  5484. * src/HttpDownloadCommand.cc
  5485. * src/ServerStat.cc
  5486. * test/RequestGroupTest.cc
  5487. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5488. Added --event-poll option to select the method for polling events.
  5489. The available methods are "select" and "epoll". "epoll" is
  5490. available on Linux only. The earlier release has the compile
  5491. option to choose from these methods.
  5492. * configure.ac
  5493. * src/RequestGroupMan.cc
  5494. * src/OptionHandlerFactory.cc
  5495. * src/EpollEventPoll.h
  5496. * src/StreamFileAllocationEntry.cc
  5497. * src/a2io.h
  5498. * src/SelectEventPoll.h
  5499. * src/option_processing.cc
  5500. * src/prefs.h
  5501. * src/EpollEventPoll.cc
  5502. * src/EventPoll.h
  5503. * src/SocketCore.h
  5504. * src/Makefile.am
  5505. * src/main.cc
  5506. * src/DownloadEngine.h
  5507. * src/SelectEventPoll.cc
  5508. * src/DownloadEngine.cc
  5509. * src/SocketCore.cc
  5510. * src/DownloadEngineFactory.cc
  5511. * src/Makefile.in
  5512. * src/prefs.cc
  5513. * src/usage_text.h
  5514. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5515. Included RecoverableException.h from main.cc
  5516. * src/main.cc
  5517. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5518. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5519. now returns last error encountered in the HTTP/FTP downloads as a
  5520. exit status value. If all downloads finished successfully, aria2
  5521. returns 0. The error code is defined in src/DownloadResult.h.
  5522. The error occurred in the download currently in progress is not
  5523. reported as a last error. If no error has encountered but there
  5524. are in progress or waiting downloads, aria2 returns 7.
  5525. * src/AbstractCommand.cc
  5526. * src/DlAbortEx.h
  5527. * src/DlRetryEx.h
  5528. * src/DownloadCommand.cc
  5529. * src/DownloadFailureException.h
  5530. * src/DownloadResult.h
  5531. * src/FtpNegotiationCommand.cc
  5532. * src/HttpSkipResponseCommand.cc
  5533. * src/Makefile.am
  5534. * src/MultiUrlRequestInfo.cc
  5535. * src/MultiUrlRequestInfo.h
  5536. * src/RecoverableException.h
  5537. * src/RequestGroup.cc
  5538. * src/RequestGroup.h
  5539. * src/RequestGroupMan.cc
  5540. * src/RequestGroupMan.h
  5541. * src/URIResult.cc
  5542. * src/URIResult.h
  5543. * src/main.cc
  5544. * src/option_processing.cc
  5545. * test/RequestGroupTest.cc
  5546. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5547. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5548. patch adds AdaptiveURISelector, which selects one of the bests
  5549. mirrors for first and reserved connections. For supplementary
  5550. ones, it returns mirrors which has not been tested yet, and if
  5551. each of them already tested, returns mirrors which has to be
  5552. tested again. Otherwise, it doesn't return anymore mirrors.
  5553. * src/AdaptiveURISelector.cc
  5554. * src/AdaptiveURISelector.h
  5555. * src/FtpNegotiationCommand.cc
  5556. * src/HttpResponseCommand.cc
  5557. * src/Makefile.am
  5558. * src/Makefile.in
  5559. * src/OptionHandlerFactory.cc
  5560. * src/RequestGroup.cc
  5561. * src/RequestGroup.h
  5562. * src/RequestGroupMan.cc
  5563. * src/ServerStat.cc
  5564. * src/ServerStat.h
  5565. * src/ServerStatMan.cc
  5566. * src/SpeedCalc.cc
  5567. * src/URISelector.h
  5568. * src/prefs.cc
  5569. * src/prefs.h
  5570. * test/RequestGroupManTest.cc
  5571. * test/ServerStatManTest.cc
  5572. * test/ServerStatTest.cc
  5573. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5574. Fixed unit test error.
  5575. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5576. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5577. * Release 1.1.2
  5578. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5579. Updated Russian translation. Thanks to the translators.
  5580. * po/ru.po
  5581. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5582. Added the description of --use-head option to man page.
  5583. * doc/aria2c.1.txt
  5584. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5585. Bump up version number to 1.1.2
  5586. * configure.ac
  5587. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5588. Added --use-head option to toggle whether HEAD method should be
  5589. used in the first HTTP request. By default aria2 uses HEAD method
  5590. as the first request. When the server doesn't recognize HEAD, then
  5591. give aria2 --use-head=false to force aria2 to use GET method
  5592. instead.
  5593. * src/OptionHandlerFactory.cc
  5594. * src/RequestGroupMan.cc
  5595. * src/option_processing.cc
  5596. * src/prefs.cc
  5597. * src/prefs.h
  5598. * src/usage_text.h
  5599. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5600. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5601. message is received before CHOKE message. The old implementation
  5602. doen't clear the use-bit of the piece when recieved REJECT
  5603. message.
  5604. * src/DefaultBtMessageDispatcher.cc
  5605. * test/DefaultBtMessageDispatcherTest.cc
  5606. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5607. * Release 1.1.1
  5608. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5609. Bump up version number to 1.1.1.
  5610. * configure.ac
  5611. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5612. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5613. is printed repeatedly.
  5614. * src/ConsoleStatCalc.cc
  5615. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5616. * Release 1.1.0
  5617. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5618. Added ifdef clause for conditional compilation.
  5619. * src/main.cc
  5620. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5621. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5622. translations. Thanks to all translators.
  5623. * po/ja.po
  5624. * po/ru.po
  5625. * po/uk.po
  5626. * po/zh_CN.po
  5627. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5628. Added the preceding ">>> " before the message "Printing the
  5629. contents of file..." to make the output more readable.
  5630. * src/main.cc
  5631. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5632. Added try-catch block in the loop in showFiles() to continue the
  5633. operation even if the exception occurred in one file.
  5634. * src/main.cc (showFiles)
  5635. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5636. Made messages in showFiles() translatable.
  5637. * po/aria2.pot
  5638. * src/main.cc
  5639. * src/message.h
  5640. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5641. Print the contents of Torrent/Metalink files are printed without
  5642. -T/-M options.
  5643. * src/main.cc
  5644. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5645. Escaped '--' with '\--'
  5646. * README
  5647. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5648. Updated "How to build" section in README. Mentioned about
  5649. --with-ca-bundle compile option.
  5650. * README
  5651. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5652. Bump up version number to 1.1.0.
  5653. * configure.ac
  5654. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5655. Added a note for --dht-listen-port option.
  5656. * doc/aria2c.1.txt
  5657. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5658. Update doc for --realtime-chunk-checksum option.
  5659. * doc/aria2c.1.txt
  5660. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5661. Update doc for --realtime-chunk-checksum option.
  5662. * src/usage_text.h
  5663. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5664. Updated French, Japanese, Russian and Ukrainian translations.
  5665. Thanks to all translators.
  5666. * po/fr.po
  5667. * po/ja.po
  5668. * po/ru.po
  5669. * po/uk.po
  5670. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5671. Renamed aria2c.pot to aria2.pot
  5672. * po/aria2.pot
  5673. * po/aria2c.pot: Removed.
  5674. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5675. Removed MetaEntry.h
  5676. * src/Makefile.am
  5677. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5678. Rename file by appending digits if a local file exists and its
  5679. file size is larger than that of remote file with --continue
  5680. option. The old implementation just throws exception in such case.
  5681. * src/RequestGroup.cc
  5682. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5683. Fixed the bug that download progress summary is not printed in the
  5684. interval specified by the option.
  5685. * src/ConsoleStatCalc.cc
  5686. * src/ConsoleStatCalc.h
  5687. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5688. Fixed compiler warning
  5689. * src/Cookie.cc
  5690. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5691. Fixed the cookie implementation based on RFC2965.
  5692. Now if a value in domain field is not started with dot, then
  5693. prepend dot. That means a cookie with domain=sf.net is sent to
  5694. wiki.sf.net.
  5695. * src/Cookie.cc
  5696. * test/CookieParserTest.cc
  5697. * test/CookieStorageTest.cc
  5698. * test/CookieTest.cc
  5699. * test/NsCookieParserTest.cc
  5700. * test/Sqlite3MozCookieParserTest.cc
  5701. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5702. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5703. is enabled and the server doesn't support keep-alive.
  5704. * src/AbstractCommand.cc
  5705. * src/DownloadCommand.cc
  5706. * src/HttpDownloadCommand.cc
  5707. * src/HttpDownloadCommand.h
  5708. * src/HttpResponseCommand.cc
  5709. * src/Request.cc
  5710. * src/Request.h
  5711. * test/RequestTest.cc
  5712. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5713. Removed Dictionary/List/Data and its related classes.
  5714. * src/BencodeVisitor.cc: Removed.
  5715. * src/BencodeVisitor.h: Removed.
  5716. * src/Data.cc: Removed.
  5717. * src/Data.h: Removed.
  5718. * src/Dictionary.cc: Removed.
  5719. * src/Dictionary.h: Removed.
  5720. * src/List.cc: Removed.
  5721. * src/List.h: Removed.
  5722. * src/Makefile.am
  5723. * src/MetaEntry.h: Removed.
  5724. * src/MetaEntryVisitor.h: Removed.
  5725. * src/MetaFileUtil.cc: Removed.
  5726. * src/MetaFileUtil.h: Removed.
  5727. * test/BencodeVisitorTest.cc: Removed.
  5728. * test/DataTest.cc: Removed.
  5729. * test/DictionaryTest.cc: Removed.
  5730. * test/ListTest.cc: Removed.
  5731. * test/Makefile.am
  5732. * test/MetaFileUtilTest.cc: Removed.
  5733. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5734. Removed include of MetaEntry.h
  5735. * test/DHTMessageTrackerEntryTest.cc
  5736. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5737. Use BDE instead of Dictionary/List/Data.
  5738. * src/AnnounceList.cc
  5739. * src/AnnounceList.h
  5740. * test/AnnounceListTest.cc
  5741. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5742. Use BDE instead of Dictionary/List/Data.
  5743. * src/DHTAbstractMessage.cc
  5744. * src/DHTAbstractMessage.h
  5745. * src/DHTAnnouncePeerMessage.cc
  5746. * src/DHTAnnouncePeerMessage.h
  5747. * src/DHTAnnouncePeerReplyMessage.cc
  5748. * src/DHTAnnouncePeerReplyMessage.h
  5749. * src/DHTFindNodeMessage.cc
  5750. * src/DHTFindNodeMessage.h
  5751. * src/DHTFindNodeReplyMessage.cc
  5752. * src/DHTFindNodeReplyMessage.h
  5753. * src/DHTGetPeersMessage.cc
  5754. * src/DHTGetPeersMessage.h
  5755. * src/DHTGetPeersReplyMessage.cc
  5756. * src/DHTGetPeersReplyMessage.h
  5757. * src/DHTMessageFactory.h
  5758. * src/DHTMessageFactoryImpl.cc
  5759. * src/DHTMessageFactoryImpl.h
  5760. * src/DHTMessageReceiver.cc
  5761. * src/DHTMessageTracker.cc
  5762. * src/DHTMessageTracker.h
  5763. * src/DHTPingMessage.cc
  5764. * src/DHTPingMessage.h
  5765. * src/DHTPingReplyMessage.cc
  5766. * src/DHTPingReplyMessage.h
  5767. * src/DHTQueryMessage.cc
  5768. * src/DHTQueryMessage.h
  5769. * src/DHTResponseMessage.cc
  5770. * src/DHTResponseMessage.h
  5771. * test/DHTAnnouncePeerMessageTest.cc
  5772. * test/DHTAnnouncePeerReplyMessageTest.cc
  5773. * test/DHTFindNodeMessageTest.cc
  5774. * test/DHTFindNodeReplyMessageTest.cc
  5775. * test/DHTGetPeersMessageTest.cc
  5776. * test/DHTGetPeersReplyMessageTest.cc
  5777. * test/DHTMessageFactoryImplTest.cc
  5778. * test/DHTMessageTrackerTest.cc
  5779. * test/DHTPingMessageTest.cc
  5780. * test/DHTPingReplyMessageTest.cc
  5781. * test/MockDHTMessageFactory.h
  5782. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5783. Added tests the case where length < 0 is specified.
  5784. * test/BencodeTest.cc
  5785. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5786. Fixed memory leak in decoderawstring()
  5787. * src/bencode.cc
  5788. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5789. Added missing #ifdef guard. Added uc() function for String and
  5790. removeKey() for Dict.
  5791. * src/bencode.cc
  5792. * src/bencode.h
  5793. * test/BencodeTest.cc
  5794. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5795. Use BDE instead of Dictionary/List/Data.
  5796. * src/HandshakeExtensionMessage.cc
  5797. * src/HandshakeExtensionMessage.h
  5798. * test/HandshakeExtensionMessageTest.cc
  5799. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5800. Added --max-overall-upload-limit option. This option limits the
  5801. overall upload speed. Stated in help message that the existing
  5802. --max-upload-limit option limits the upload speed per each
  5803. torrent. Man page is also updated.
  5804. * doc/aria2c.1.txt
  5805. * src/DefaultBtMessageDispatcher.cc
  5806. * src/DefaultBtMessageDispatcher.h
  5807. * src/OptionHandlerFactory.cc
  5808. * src/PeerInteractionCommand.cc
  5809. * src/option_processing.cc
  5810. * src/prefs.cc
  5811. * src/prefs.h
  5812. * src/usage_text.h
  5813. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5814. Use BDE instead of Dictionary/List/Data classes.
  5815. * src/CompactPeerListProcessor.cc
  5816. * src/CompactPeerListProcessor.h
  5817. * src/DefaultBtAnnounce.cc
  5818. * src/DefaultBtContext.cc
  5819. * src/DefaultBtContext.h
  5820. * src/DefaultPeerListProcessor.cc
  5821. * src/DefaultPeerListProcessor.h
  5822. * src/DelegatingPeerListProcessor.cc
  5823. * src/DelegatingPeerListProcessor.h
  5824. * src/PeerListProcessor.h
  5825. * src/UTPexExtensionMessage.cc
  5826. * src/Util.h
  5827. * src/message.h
  5828. * test/DefaultBtContextTest.cc
  5829. * test/DefaultPeerListProcessorTest.cc
  5830. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5831. Added bencode helper functions and BDE class.
  5832. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5833. * src/Makefile.am
  5834. * src/bencode.cc
  5835. * src/bencode.h
  5836. * test/BencodeTest.cc
  5837. * test/Makefile.am
  5838. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5839. Fixed the bug that bad URI is sent to the tracker when the announe
  5840. URI in torrent file includes query.
  5841. * src/DefaultBtAnnounce.cc
  5842. * test/DefaultBtAnnounceTest.cc
  5843. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5844. Added Option::blank().
  5845. Use !Option::blank(name) instead of Option::defined(name) for
  5846. the options that take filename.
  5847. * src/MultiUrlRequestInfo.cc
  5848. * src/Option.cc
  5849. * src/Option.h
  5850. * src/main.cc
  5851. * src/option_processing.cc
  5852. * test/OptionTest.cc
  5853. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5854. Documented the default value of --check-certificate option in man
  5855. page.
  5856. * doc/aria2c.1.txt
  5857. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5858. Enabled --check-certificate by default. Added compile
  5859. time(configure) option --with-ca-bundle to specify CA bundle.
  5860. Warn if --check-certificate=true and --ca-certificate is not
  5861. specified or loading CA certificate is failed.
  5862. * configure.ac
  5863. * src/MultiUrlRequestInfo.cc
  5864. * src/OptionHandlerFactory.cc
  5865. * src/message.h
  5866. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5867. Mentioned https tag in help option.
  5868. * doc/aria2c.1.txt
  5869. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5870. Added `https' tag to help option category. Added https tag to
  5871. --ca-certificate, --certificate, --check-certificate and
  5872. --private-key option.
  5873. * src/OptionHandlerFactory.cc
  5874. * src/help_tags.h
  5875. * src/option_processing.cc
  5876. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5877. Changed the package name from `aria2c' to `aria2' in order to fix
  5878. the packaging issue in Debian and Fedora. The name of the
  5879. executable is not changed.
  5880. * configure.ac
  5881. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5882. Fixed typos
  5883. * src/usage_text.h
  5884. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5885. Fixed typos and updated doc.
  5886. * README
  5887. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5888. Fixed typos
  5889. * doc/aria2c.1.txt
  5890. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5891. Fixed typos
  5892. * src/usage_text.h
  5893. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5894. Print a message when no files to download.
  5895. * src/download_helper.cc
  5896. * src/main.cc
  5897. * src/message.h
  5898. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5899. RFC3986 complied Percent-Encoding(urlencode).
  5900. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5901. ones.
  5902. * src/Request.cc
  5903. * src/Util.cc
  5904. * src/Util.h
  5905. * test/BtHandshakeMessageTest.cc
  5906. * test/DefaultBtAnnounceTest.cc
  5907. * test/DefaultBtContextTest.cc
  5908. * test/RequestTest.cc
  5909. * test/UtilTest.cc
  5910. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5911. Fixed the bug that prevents aria2 from downloading 0-length files
  5912. via HTTP/FTP.
  5913. * src/DefaultBtContext.cc
  5914. * src/DefaultBtContext.h
  5915. * src/DownloadContext.h
  5916. * src/FtpNegotiationCommand.cc
  5917. * src/HttpResponseCommand.cc
  5918. * src/HttpResponseCommand.h
  5919. * src/RequestGroup.cc
  5920. * src/SingleFileDownloadContext.cc
  5921. * src/SingleFileDownloadContext.h
  5922. * test/BtPostDownloadHandlerTest.cc
  5923. * test/MetalinkPostDownloadHandlerTest.cc
  5924. * test/MockBtContext.h
  5925. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5926. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5927. * src/option_processing.cc
  5928. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5929. Applied aria2-1.0.1-mingw.patch.
  5930. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5931. mingw.
  5932. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5933. * src/SocketCore.cc
  5934. * src/a2netcompat.h
  5935. * test/SocketCoreTest.cc
  5936. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5937. * Release 1.0.1
  5938. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Updated Ukrainian and Norwegian Nynorsk translations.
  5940. Thanks to all translators.
  5941. * po/nn.po
  5942. * po/uk.po
  5943. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5944. Don't show download result when -S option is used.
  5945. * src/main.cc
  5946. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5947. Bump up version number to 1.0.1
  5948. * configure.ac
  5949. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5950. Closed files after the test cases in MultiDiskWriterTest::
  5951. testResetDiskWriterEntries(). This will fix the unit test error
  5952. in mingw32 build.
  5953. * test/MultiDiskWriterTest.cc
  5954. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5955. Use HEAD method to get file size from HTTP server for segmented
  5956. downloading.
  5957. The request to the BitTorrent Tracker always uses GET method because
  5958. the response of the tracker is small and it doesn't need segmented
  5959. download.
  5960. * src/FtpNegotiationCommand.cc
  5961. * src/HttpRequest.cc
  5962. * src/HttpResponseCommand.cc
  5963. * src/HttpSkipResponseCommand.cc
  5964. * src/RequestGroup.cc
  5965. * src/RequestGroup.h
  5966. * src/TrackerWatcherCommand.cc
  5967. * test/HttpRequestTest.cc
  5968. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5969. Fixed the bug that causes floating exception when -T option is used and
  5970. no URIs are given.
  5971. * src/download_helper.cc
  5972. * test/DownloadHelperTest.cc
  5973. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5974. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5975. errors in MinGW:
  5976. Closed file after saving server stats (RequestGroupMan.cc)
  5977. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5978. Ignored case & handled 2-digit years (strptime.c)
  5979. Added missing suseconds_t definition (a2time.h)
  5980. Fixed socket CLOSE() define (SocketCore.cc)
  5981. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5982. Changed utime() test values from x000 to x00000 as MinGW failed on
  5983. values less than timezone offset from Unix epoch
  5984. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5985. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5986. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5987. handle negative dates (CookieParserTest.cc)
  5988. * src/a2time.h
  5989. * src/FtpConnection.cc
  5990. * src/RequestGroupMan.cc
  5991. * src/SocketCore.cc
  5992. * src/strptime.c
  5993. * test/CookieParserTest.cc
  5994. * test/CopyDiskAdaptorTest.cc
  5995. * test/FileTest.cc
  5996. * test/FtpConnectionTest.cc
  5997. * test/MultiDiskAdaptorTest.cc
  5998. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5999. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6000. * doc/aria2c.1.txt
  6001. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6002. * Release 1.0.0
  6003. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6004. Added '~' to reserved characters.
  6005. * src/Util.cc
  6006. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6007. Do not urlencode Request::url in setUrl() because we want unmodified
  6008. URL using Request::getUrl()
  6009. * src/Request.cc
  6010. * src/Request.h
  6011. * test/RequestTest.cc
  6012. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6013. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6014. Thanks to all translators.
  6015. * po/bg.po
  6016. * po/fr.po
  6017. * po/ja.po
  6018. * po/ru.po
  6019. * po/uk.po
  6020. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6021. Bump up version number to 1.0.0
  6022. * configure.ac
  6023. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6024. Added nosqlite3 build to build_test.sh.
  6025. Renamed noxml as expat.
  6026. * build_test.sh
  6027. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6028. Updated INPUT FILE section.
  6029. * doc/aria2c.1.txt
  6030. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6031. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6032. on big endian systems because test .aria2 files are made for little
  6033. endian systems.
  6034. * test/DefaultBtProgressInfoFileTest.cc
  6035. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6036. Dropped ares support.
  6037. * README
  6038. * configure.ac
  6039. * m4/libares.m4: Removed.
  6040. * src/AsyncNameResolver.cc
  6041. * src/Makefile.am
  6042. * test/Makefile.am
  6043. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6044. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6045. Removed const qualifier from DiskWriter::size().
  6046. * src/AbstractDiskWriter.cc
  6047. * src/AbstractDiskWriter.h
  6048. * src/ByteArrayDiskWriter.cc
  6049. * src/ByteArrayDiskWriter.h
  6050. * src/DiskWriter.h
  6051. * test/ByteArrayDiskWriterTest.cc
  6052. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6053. Fixed the bug that causes segmentation fault/bus error during executing
  6054. choking algorithm while seeding. This is caused by improper
  6055. implementation of compare function which returns inconsistent results
  6056. depending on the timing of last unchoke.
  6057. * src/BtSeederStateChoke.cc
  6058. * src/BtSeederStateChoke.h
  6059. * src/DefaultPeerStorage.cc
  6060. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6061. Removed TODO
  6062. * TODO
  6063. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6064. Added a section that explains how to pass argument to options that
  6065. takes optional arguments with its short form.
  6066. * doc/aria2c.1.txt
  6067. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6068. Added -u for the short form of --max-upload-limit option.
  6069. * doc/aria2c.1.txt
  6070. * src/option_processing.cc
  6071. * src/usage_text.h
  6072. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6073. Added -V for the short form of --check-integrity option.
  6074. Now the argument of --check-integrity option is optional:
  6075. if it is omitted, it is evaluated as true.
  6076. * doc/aria2c.1.txt
  6077. * src/option_processing.cc
  6078. * src/usage_text.h
  6079. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6080. Made the default value of --ftp-pasv option set to true and it can take
  6081. true/false values.
  6082. * src/OptionHandlerFactory.cc
  6083. * src/option_processing.cc
  6084. * src/usage_text.h
  6085. * doc/aria2c.1.txt
  6086. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6087. Given custom random number generator to std::random_shuffle.
  6088. * src/AnnounceList.cc
  6089. * src/BtLeecherStateChoke.cc
  6090. * src/BtSeederStateChoke.cc
  6091. * src/DefaultBtRequestFactory.cc
  6092. * src/MetalinkEntry.cc
  6093. * src/RarestPieceSelector.cc
  6094. * src/SimpleRandomizer.cc
  6095. * src/SimpleRandomizer.h
  6096. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6097. Now the default value of --enable-direct-io is true.
  6098. * src/OptionHandlerFactory.cc
  6099. * doc/aria2c.1.txt
  6100. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6101. Erase peer before executing onReturningPeer and onErasingPeer
  6102. because choking algorithm called from onReturningPeer doesn't
  6103. like erasing peer in the active peer list.
  6104. * src/DefaultPeerStorage.cc
  6105. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6106. Instead of creating special filename in createDownloadResult() if
  6107. inMemoryDownload() is true, now it is done in getFilePath().
  6108. * src/RequestGroup.cc
  6109. * test/RequestGroupTest.cc
  6110. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6111. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6112. processed in memory. This is the fix for previous comment out.
  6113. * src/MemoryBufferPreDownloadHandler.cc
  6114. * src/RequestGroup.cc
  6115. * src/RequestGroup.h
  6116. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6117. Commented out the code which sets virtual directory path "[MEMORY]"
  6118. propagate directory to store to following RequestGroup.
  6119. * src/MemoryBufferPreDownloadHandler.cc
  6120. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6121. Bump up version number to 1.0.0b
  6122. * configure.ac
  6123. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6124. Added input_uris.txt to EXTRA_DIST
  6125. * test/Makefile.am
  6126. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6127. Removed PeerObject.h from Makefile.am
  6128. * src/Makefile.am
  6129. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6130. Avoid slow seeding
  6131. * src/PeerInteractionCommand.cc
  6132. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6133. Updated usage for -i option.
  6134. * src/usage_text.h (TEXT_INPUT_FILE)
  6135. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6136. Added INPUT FILE section to man page.
  6137. Escaped fake URLs.
  6138. * doc/aria2c.1.txt
  6139. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6140. Fixed wrong note position for -o option.
  6141. * doc/aria2c.1.txt
  6142. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6143. Fixed compile error without SSL/XML library.
  6144. * src/DefaultBtProgressInfoFile.cc
  6145. * src/DefaultBtProgressInfoFile.h
  6146. * src/FileMetalinkParserState.cc
  6147. * src/RequestGroup.h
  6148. * src/SocketCore.cc
  6149. * src/SocketCore.h
  6150. * src/VerificationMetalinkParserState.cc
  6151. * src/download_helper.h
  6152. * src/main.cc
  6153. * test/DefaultBtProgressInfoFileTest.cc
  6154. * test/DownloadHelperTest.cc
  6155. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6156. Rewritten URI handling functions. They are now provided as a testable
  6157. functions.
  6158. * src/Makefile.am
  6159. * src/RequestGroup.cc
  6160. * src/RequestGroup.h
  6161. * src/download_helper.cc
  6162. * src/download_helper.h
  6163. * src/main.cc
  6164. * test/DownloadHelperTest.cc
  6165. * test/Makefile.am
  6166. * test/input_uris.txt
  6167. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6168. Quickly terminate commands when ctrl-c is pressed.
  6169. * src/DownloadEngine.cc
  6170. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6171. Quickly terminate idle commands when download finished.
  6172. * src/AbstractCommand.cc
  6173. * src/DownloadCommand.cc
  6174. * src/DownloadEngine.cc
  6175. * src/DownloadEngine.h
  6176. * src/SleepCommand.cc
  6177. * src/SleepCommand.h
  6178. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6179. Added the ability to specify output filename and directory in input
  6180. file.
  6181. Additional parameters are added in the following line of URIs
  6182. with proceeding white space(s), 1 parameter in 1 line.
  6183. The parameter names are the same with the command-line option name
  6184. without proceeding "--". Not all the options are available here:
  6185. at the moment, 'dir' and 'out' options are avialable.
  6186. Please note that out option has no effect against Metalink or BitTorrent
  6187. downloads.
  6188. Example input file:
  6189. http://host/foo-1.1.tar.bz2
  6190. out=foo.tar.bz2
  6191. dir=/tmp/downloads
  6192. http://host/thundermonkey-2.0.tar.bz2
  6193. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6194. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6195. thundermonkey-2.0.tar.bz2 is saved as
  6196. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6197. * src/BtPostDownloadHandler.cc
  6198. * src/Metalink2RequestGroup.cc
  6199. * src/Metalink2RequestGroup.h
  6200. * src/MetalinkPostDownloadHandler.cc
  6201. * src/UriListParser.cc
  6202. * src/UriListParser.h
  6203. * src/main.cc
  6204. * test/Metalink2RequestGroupTest.cc
  6205. * test/UriListParserTest.cc
  6206. * test/filelist1.txt
  6207. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6208. Fixed error when SSL library is not found.
  6209. * configure.ac
  6210. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6211. Cross referenced among -s, -C and -j options.
  6212. Updated usage of -C and -s options.
  6213. * src/usage_text.h
  6214. * doc/aria2c.1.txt
  6215. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6216. Fixed bad cast in 32bit platforms.
  6217. * test/DefaultPieceStorageTest.cc
  6218. (DefaultPieceStorageTest::testGetCompletedLength)
  6219. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6220. Fixed unit test fails on 32bit platforms.
  6221. * test/CookieParserTest.cc
  6222. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6223. Show an average download speed in Download results.
  6224. * src/BtFileAllocationEntry.cc
  6225. * src/DefaultPieceStorage.cc
  6226. * src/DownloadContext.cc
  6227. * src/DownloadContext.h
  6228. * src/DownloadResult.h
  6229. * src/RequestGroup.cc
  6230. * src/RequestGroupMan.cc
  6231. * src/StreamFileAllocationEntry.cc
  6232. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6233. Fixed the bug that metalink file is not processed if Content-Type
  6234. field has a paramter.
  6235. * src/HttpResponse.cc
  6236. * src/HttpResponse.h
  6237. * test/HttpResponseTest.cc
  6238. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6239. Removed unused code.
  6240. * src/DefaultBtAnnounce.cc
  6241. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6242. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6243. the value larger than DefaultPieceStorage::getTotalLength() when
  6244. in flight pieces are involved.
  6245. * src/DefaultPieceStorage.cc
  6246. * test/DefaultPieceStorageTest.cc
  6247. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6248. Bump up version number to 1.0.0a.
  6249. * configure.ac
  6250. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6251. Updated configure.ac
  6252. * configure.ac
  6253. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6254. Added usege for proxy.
  6255. * doc/aria2c.1.txt
  6256. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6257. Added usage for --ca-certificate, --certificate, --private-key and
  6258. --check-certificate options.
  6259. * doc/aria2c.1.txt
  6260. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6261. Updated man page
  6262. * doc/aria2c.1.txt
  6263. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6264. Added --no-proxy option. It receives comman separated hostname or
  6265. domains to which proxy should not be used.
  6266. aria2 honors the environment variable no_proxy to override no-proxy
  6267. value in configuration file. The user can override the environment
  6268. variable no_proxy with --no-proxy command-line option.
  6269. * src/AbstractCommand.cc
  6270. * src/OptionHandlerFactory.cc
  6271. * src/option_processing.cc
  6272. * src/prefs.cc
  6273. * src/prefs.h
  6274. * src/usage_text.h
  6275. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6276. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6277. The CA certificates are specified in --ca-certificate option.
  6278. By default, the verification is disabled. Use --check-certificate
  6279. option to enable it.
  6280. * src/HttpRequestCommand.cc
  6281. * src/LibgnutlsTLSContext.cc
  6282. * src/LibgnutlsTLSContext.h
  6283. * src/LibsslTLSContext.cc
  6284. * src/LibsslTLSContext.h
  6285. * src/MultiUrlRequestInfo.cc
  6286. * src/OptionHandlerFactory.cc
  6287. * src/SocketCore.cc
  6288. * src/SocketCore.h
  6289. * src/a2functional.h
  6290. * src/message.h
  6291. * src/option_processing.cc
  6292. * src/prefs.cc
  6293. * src/prefs.h
  6294. * src/usage_text.h
  6295. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6296. Added client certificate authentication for SSL/TLS.
  6297. Currently a private key must be decrypted for use with aria2.
  6298. If a user accidentally gives encrypted file to aria2 then following
  6299. thing happens:
  6300. If encrypted private key is given to aria2, it behaves differently
  6301. depending on the ssl library it uses. If aria2 built with openssl then
  6302. openssl prompts the user for password. If aria2 build with gnutls then
  6303. aria2 exists with error at start up.
  6304. * src/DownloadEngineFactory.cc
  6305. * src/MultiUrlRequestInfo.cc
  6306. * src/OptionHandlerFactory.cc
  6307. * src/option_processing.cc
  6308. * src/prefs.cc
  6309. * src/prefs.h
  6310. * src/usage_text.h
  6311. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6312. Introduced TLSContext that holds TLS related data that can be shared
  6313. with multiple SSL connections.
  6314. * src/DownloadEngineFactory.cc
  6315. * src/LibgnutlsTLSContext.cc
  6316. * src/LibgnutlsTLSContext.h
  6317. * src/LibsslTLSContext.cc
  6318. * src/LibsslTLSContext.h
  6319. * src/Makefile.am
  6320. * src/SocketCore.cc
  6321. * src/SocketCore.h
  6322. * src/TLSContext.h
  6323. * src/message.h
  6324. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6325. Fixed the bug that the DiskWriter of the first FileEntry whose
  6326. `needsFileAllocation' property is false is not created
  6327. even if it shares a piece with next FileEntry which `requested' property
  6328. is true.
  6329. Fixed the bug that zero-length file is not created if pre file
  6330. allocation is not done.
  6331. * src/MultiDiskAdaptor.cc
  6332. * src/MultiDiskAdaptor.h
  6333. * test/MultiDiskAdaptorTest.cc
  6334. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. Added the ability to pool proxy connection.
  6336. The conneciton in FTP with proxy-method=GET is not pooled.
  6337. Proxy-Connection header will not be sent when sending CONNECT method.
  6338. * src/DownloadEngine.cc
  6339. * src/DownloadEngine.h
  6340. * src/FtpFinishDownloadCommand.cc
  6341. * src/FtpInitiateConnectionCommand.cc
  6342. * src/FtpNegotiationCommand.cc
  6343. * src/HttpDownloadCommand.cc
  6344. * src/HttpInitiateConnectionCommand.cc
  6345. * src/HttpRequest.cc
  6346. * src/HttpRequest.h
  6347. * src/HttpResponse.cc
  6348. * src/HttpSkipResponseCommand.cc
  6349. * test/HttpRequestTest.cc
  6350. * test/HttpResponseTest.cc
  6351. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6352. Handle date before epoch.
  6353. To create *bad* Time object, call Time::null().
  6354. * src/CookieParser.cc
  6355. * src/FtpConnection.cc
  6356. * src/FtpConnection.h
  6357. * src/FtpNegotiationCommand.cc
  6358. * src/RequestGroup.cc
  6359. * src/TimeA2.cc
  6360. * src/TimeA2.h
  6361. * test/CookieParserTest.cc
  6362. * test/FtpConnectionTest.cc
  6363. * test/TimeTest.cc
  6364. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. Added support for following envrionment variables: http_proxy,
  6366. https_proxy, ftp_proxy and all_proxy.
  6367. Each variable is equivalent to the aria2 option whose name is the
  6368. variable name with '_' replaced with '-'.
  6369. They overrides options specified in aria2.conf file.
  6370. The envrionment variables can be overrode using command-line option.
  6371. * src/option_processing.cc
  6372. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6373. Renamed --http-proxy-method as --proxy-method.
  6374. * src/AbstractCommand.cc
  6375. * src/FtpInitiateConnectionCommand.cc
  6376. * src/HttpInitiateConnectionCommand.cc
  6377. * src/OptionHandlerFactory.cc
  6378. * src/option_processing.cc
  6379. * src/prefs.cc
  6380. * src/prefs.h
  6381. * src/usage_text.h
  6382. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6383. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6384. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6385. Above 3 options and --http-proxy option can handle proxy in URL format
  6386. like: http://user:passwd@host:port.
  6387. If a proxy requires user/password, they must be specified in a URL.
  6388. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6389. instead.
  6390. * src/AbstractCommand.cc
  6391. * src/AbstractCommand.h
  6392. * src/AbstractProxyRequestCommand.cc
  6393. * src/AbstractProxyRequestCommand.h
  6394. * src/AuthConfigFactory.cc
  6395. * src/AuthConfigFactory.h
  6396. * src/FtpFinishDownloadCommand.cc
  6397. * src/FtpInitiateConnectionCommand.cc
  6398. * src/FtpInitiateConnectionCommand.h
  6399. * src/FtpNegotiationCommand.cc
  6400. * src/FtpTunnelRequestCommand.cc
  6401. * src/FtpTunnelRequestCommand.h
  6402. * src/HttpDownloadCommand.cc
  6403. * src/HttpInitiateConnectionCommand.cc
  6404. * src/HttpInitiateConnectionCommand.h
  6405. * src/HttpProxyRequestCommand.cc
  6406. * src/HttpProxyRequestCommand.h
  6407. * src/HttpRequest.cc
  6408. * src/HttpRequest.h
  6409. * src/HttpRequestCommand.cc
  6410. * src/HttpRequestCommand.h
  6411. * src/HttpSkipResponseCommand.cc
  6412. * src/InitiateConnectionCommand.cc
  6413. * src/InitiateConnectionCommand.h
  6414. * src/OptionHandlerFactory.cc
  6415. * src/OptionHandlerImpl.h
  6416. * src/Request.cc
  6417. * src/option_processing.cc
  6418. * src/prefs.cc
  6419. * src/prefs.h
  6420. * src/usage_text.h
  6421. * test/AuthConfigFactoryTest.cc
  6422. * test/HttpRequestTest.cc
  6423. * test/OptionHandlerTest.cc
  6424. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6425. Execute choking algorithm when unchoked and interested peer is
  6426. disconected.
  6427. * src/DefaultPeerStorage.cc
  6428. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Added testcase for BtNotInterestedMessage from unchoked peer.
  6430. * test/BtNotInterestedMessageTest.cc
  6431. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Execute choking algorithm when BtInterestedMessage arrives from
  6433. unchoked peer.
  6434. * src/BtInterestedMessage.cc
  6435. * src/BtInterestedMessage.h
  6436. * src/DefaultBtMessageFactory.cc
  6437. * test/BtInterestedMessageTest.cc
  6438. * test/MockPeerStorage.h
  6439. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. AuthConfigFactory is now part of DownloadEngine.
  6441. * src/AbstractProxyRequestCommand.cc
  6442. * src/AuthConfigFactory.h
  6443. * src/DownloadEngine.cc
  6444. * src/DownloadEngine.h
  6445. * src/FtpConnection.cc
  6446. * src/FtpConnection.h
  6447. * src/FtpNegotiationCommand.cc
  6448. * src/HttpConnection.cc
  6449. * src/HttpRequest.cc
  6450. * src/HttpRequest.h
  6451. * src/HttpRequestCommand.cc
  6452. * src/HttpResponse.cc
  6453. * src/HttpResponseCommand.cc
  6454. * src/HttpSkipResponseCommand.cc
  6455. * src/MultiUrlRequestInfo.cc
  6456. * src/main.cc
  6457. * test/FtpConnectionTest.cc
  6458. * test/HttpRequestTest.cc
  6459. * test/HttpResponseTest.cc
  6460. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6461. Corrected catched exception type.
  6462. * src/ServerStatMan.cc
  6463. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6464. DNSCache is now part of DownloadEngine.
  6465. * src/DNSCache.h
  6466. * src/DownloadEngine.cc
  6467. * src/DownloadEngine.h
  6468. * src/InitiateConnectionCommand.cc
  6469. * src/MultiUrlRequestInfo.cc
  6470. * test/Makefile.am
  6471. * test/Makefile.in
  6472. * test/SimpleDNSCacheTest.cc
  6473. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6474. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6475. DownloadEngine.
  6476. * src/ActivePeerConnectionCommand.cc
  6477. * src/BtSetup.cc
  6478. * src/CUIDCounter.h
  6479. * src/DHTSetup.cc
  6480. * src/DownloadCommand.cc
  6481. * src/DownloadEngine.cc
  6482. * src/DownloadEngine.h
  6483. * src/DownloadEngineFactory.cc
  6484. * src/FileAllocationDispatcherCommand.cc
  6485. * src/InitiatorMSEHandshakeCommand.cc
  6486. * src/PeerInitiateConnectionCommand.cc
  6487. * src/PeerInteractionCommand.cc
  6488. * src/PeerListenCommand.cc
  6489. * src/RequestGroup.cc
  6490. * src/StreamFileAllocationEntry.cc
  6491. * src/TrackerWatcherCommand.cc
  6492. * src/main.cc
  6493. * test/RequestGroupManTest.cc
  6494. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. Implemented commented code in BtSeederStateChoke
  6496. * src/BtSeederStateChoke.cc
  6497. * src/Peer.cc
  6498. * src/Peer.h
  6499. * src/PeerInteractionCommand.cc
  6500. * src/PeerSessionResource.cc
  6501. * src/PeerSessionResource.h
  6502. * test/MockBtMessageDispatcher.h
  6503. * test/PeerSessionResourceTest.cc
  6504. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6505. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6506. its object.
  6507. * src/AbstractBtMessage.cc
  6508. * src/ActivePeerConnectionCommand.cc
  6509. * src/ActivePeerConnectionCommand.h
  6510. * src/BtContextAwareCommand.cc
  6511. * src/BtContextAwareCommand.h
  6512. * src/BtExtendedMessage.cc
  6513. * src/BtExtendedMessage.h
  6514. * src/BtInterestedMessage.cc
  6515. * src/BtInterestedMessage.h
  6516. * src/BtNotInterestedMessage.cc
  6517. * src/BtNotInterestedMessage.h
  6518. * src/BtRegistry.cc
  6519. * src/BtRegistry.h
  6520. * src/BtSeederStateChoke.cc
  6521. * src/BtSetup.cc
  6522. * src/DHTGetPeersCommand.cc
  6523. * src/DHTGetPeersCommand.h
  6524. * src/DHTPeerAnnounceEntry.cc
  6525. * src/DHTPeerAnnounceEntry.h
  6526. * src/DHTPeerAnnounceStorage.cc
  6527. * src/DHTPeerAnnounceStorage.h
  6528. * src/DHTPeerLookupTask.cc
  6529. * src/DHTPeerLookupTask.h
  6530. * src/DHTSetup.cc
  6531. * src/DHTSetup.h
  6532. * src/DHTTaskFactory.h
  6533. * src/DHTTaskFactoryImpl.cc
  6534. * src/DHTTaskFactoryImpl.h
  6535. * src/DefaultBtAnnounce.cc
  6536. * src/DefaultBtInteractive.cc
  6537. * src/DefaultBtInteractive.h
  6538. * src/DefaultBtMessageDispatcher.cc
  6539. * src/DefaultBtMessageDispatcher.h
  6540. * src/DefaultBtMessageFactory.cc
  6541. * src/DefaultBtMessageFactory.h
  6542. * src/DefaultBtMessageReceiver.cc
  6543. * src/DefaultBtProgressInfoFile.cc
  6544. * src/DefaultBtProgressInfoFile.h
  6545. * src/DefaultBtRequestFactory.cc
  6546. * src/DefaultBtRequestFactory.h
  6547. * src/DefaultExtensionMessageFactory.cc
  6548. * src/DefaultExtensionMessageFactory.h
  6549. * src/DefaultPeerStorage.cc
  6550. * src/DefaultPeerStorage.h
  6551. * src/DownloadEngine.cc
  6552. * src/DownloadEngine.h
  6553. * src/InitiatorMSEHandshakeCommand.cc
  6554. * src/InitiatorMSEHandshakeCommand.h
  6555. * src/MSEHandshake.cc
  6556. * src/MSEHandshake.h
  6557. * src/Makefile.am
  6558. * src/Makefile.in
  6559. * src/PeerChokeCommand.cc
  6560. * src/PeerChokeCommand.h
  6561. * src/PeerInitiateConnectionCommand.cc
  6562. * src/PeerInitiateConnectionCommand.h
  6563. * src/PeerInteractionCommand.cc
  6564. * src/PeerInteractionCommand.h
  6565. * src/PeerObject.h
  6566. * src/PeerReceiveHandshakeCommand.cc
  6567. * src/PeerReceiveHandshakeCommand.h
  6568. * src/ReceiverMSEHandshakeCommand.cc
  6569. * src/RequestGroup.cc
  6570. * src/RequestGroup.h
  6571. * src/RequestGroupMan.cc
  6572. * src/RequestGroupMan.h
  6573. * src/SeedCheckCommand.cc
  6574. * src/SeedCheckCommand.h
  6575. * src/ShareRatioSeedCriteria.h
  6576. * src/SimpleBtMessage.cc
  6577. * src/TrackerWatcherCommand.cc
  6578. * src/TrackerWatcherCommand.h
  6579. * src/UTPexExtensionMessage.cc
  6580. * src/UTPexExtensionMessage.h
  6581. * test/BtCancelMessageTest.cc
  6582. * test/BtChokeMessageTest.cc
  6583. * test/BtExtendedMessageTest.cc
  6584. * test/BtInterestedMessageTest.cc
  6585. * test/BtNotInterestedMessageTest.cc
  6586. * test/BtPieceMessageTest.cc
  6587. * test/BtPortMessageTest.cc
  6588. * test/BtRegistryTest.cc
  6589. * test/BtRejectMessageTest.cc
  6590. * test/BtRequestMessageTest.cc
  6591. * test/DHTPeerAnnounceEntryTest.cc
  6592. * test/DHTPeerAnnounceStorageTest.cc
  6593. * test/DefaultBtMessageDispatcherTest.cc
  6594. * test/DefaultBtMessageFactoryTest.cc
  6595. * test/DefaultBtProgressInfoFileTest.cc
  6596. * test/DefaultBtRequestFactoryTest.cc
  6597. * test/DefaultExtensionMessageFactoryTest.cc
  6598. * test/MSEHandshakeTest.cc
  6599. * test/MockDHTTaskFactory.h
  6600. * test/ShareRatioSeedCriteriaTest.cc
  6601. * test/UTPexExtensionMessageTest.cc
  6602. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6603. Fixed compiler warning.
  6604. * test/UtilTest.cc
  6605. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. Treat Cookie object as session cookie if expiry = 0 is given.
  6607. With this change, you can specify session scoped cookies in an external
  6608. file setting expiry value to 0.
  6609. * src/Cookie.cc
  6610. * src/Cookie.h
  6611. * test/CookieParserTest.cc
  6612. * test/CookieStorageTest.cc
  6613. * test/CookieTest.cc
  6614. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6615. Changed signature of DHTMessageFactory::createResponseMessage().
  6616. Removed unused validateIDMatch.
  6617. * src/DHTMessageFactory.h
  6618. * src/DHTMessageFactoryImpl.cc
  6619. * src/DHTMessageFactoryImpl.h
  6620. * src/DHTMessageTracker.cc
  6621. * test/DHTMessageFactoryImplTest.cc
  6622. * test/MockDHTMessageFactory.h
  6623. Dropped DHT message coming from same ID of localhost.
  6624. * src/DHTMessageReceiver.cc
  6625. Rejected adding node whose ID is the same as localhost's.
  6626. * src/DHTRoutingTable.cc
  6627. * test/BtPortMessageTest.cc
  6628. * test/DHTRoutingTableTest.cc
  6629. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6630. Pool connection when redirection occurs with Content-Length = 0.
  6631. * src/HttpSkipResponseCommand.cc
  6632. * src/HttpSkipResponseCommand.h
  6633. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6634. Fixed the bug that causes time out when redirection occurs with
  6635. content-length 0.
  6636. * src/HttpResponseCommand.cc
  6637. * src/HttpSkipResponseCommand.cc
  6638. * src/HttpSkipResponseCommand.h
  6639. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Now each status legends is shown only when it appears in Download
  6641. Result. If Download Result has no item, then status legend will not
  6642. be printed.
  6643. * src/RequestGroupMan.cc
  6644. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6645. Removed duplicate creation of OptionHandlers.
  6646. * src/option_processing.cc
  6647. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6648. Fixed the bug that causes segmentation fault when accessing files which
  6649. don't exist or are not included in --select-file option while
  6650. validating chunk checksum.
  6651. * src/MultiDiskAdaptor.cc
  6652. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6653. Fixed compiler warning.
  6654. * test/UtilTest.cc
  6655. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6656. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6657. * src/IteratableChecksumValidator.cc
  6658. * src/IteratableChunkChecksumValidator.cc
  6659. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. * Release 0.16.2
  6661. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6662. Added Serbian translation. Updated Ukrainian translation.
  6663. Thanks to all translators.
  6664. * po/sr.po
  6665. * po/uk.po
  6666. * po/LINGUAS
  6667. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Bump up version number to 0.16.2
  6669. * configure.ac
  6670. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Added length equality test to operator== to drop a piece message
  6672. whose length does not match to the requested one.
  6673. * src/RequestSlot.cc
  6674. * test/DefaultBtMessageDispatcherTest.cc
  6675. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6676. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6677. recieved.
  6678. In this fix, if a request larger than 16KiB length is received, aria2
  6679. disconnects the peer.
  6680. * src/BtConstants.h
  6681. * src/PeerMessageUtil.cc
  6682. * src/PeerMessageUtil.h
  6683. * test/BtRequestMessageTest.cc
  6684. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. * Release 0.16.1
  6686. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6687. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6688. * doc/aria2c.1.txt
  6689. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6691. Updated French, Simplified Chinese and Japanese translations.
  6692. Thanks to all translators.
  6693. en@quot and en@boldquot are also added.
  6694. * po/LINGUAS
  6695. * po/fr.po
  6696. * po/ja.po
  6697. * po/uk.po
  6698. * po/vi.po
  6699. * po/zh_CN.po
  6700. * po/zh_TW.po
  6701. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. Bump up version number to 0.16.1.
  6703. * configure.ac
  6704. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Updated README.
  6706. * README
  6707. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6709. not to replace '--' with em dash character.
  6710. * doc/aria2c.1.txt
  6711. * doc/makeman
  6712. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6714. every SEC seconds.
  6715. * src/DownloadEngineFactory.cc
  6716. * src/OptionHandlerFactory.cc
  6717. * src/option_processing.cc
  6718. * src/usage_text.h
  6719. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Fixed compile warning on linux-amd64
  6721. * src/FtpConnection.cc
  6722. * src/IteratableChunkChecksumValidator.cc
  6723. * src/MultiDiskAdaptor.cc
  6724. Fixed the bug that unit test fails on linux-amd64
  6725. * test/UtilTest.cc
  6726. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. Added --dht-file-path option to change the path to dht.dat, which is a
  6728. serialized DHT routing table.
  6729. * src/OptionHandlerFactory.cc
  6730. * src/option_processing.cc
  6731. * src/usage_text.h
  6732. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6733. Fixed possible underflow.
  6734. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6735. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Fixed the bug that last character in URI is not encoded.
  6737. * src/Request.cc
  6738. * test/RequestTest.cc
  6739. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6740. Fixed the bug that referer header field contains fragment.
  6741. Now Request class removes fragment part of URI and encodes it
  6742. in Request::setUri() and setReferer().
  6743. * src/Request.h
  6744. * src/Request.cc
  6745. * test/RequestTest.cc
  6746. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6747. Added missing m4 macros.
  6748. * m4/cppunit.m4
  6749. * m4/libgcrypt.m4
  6750. * m4/libgnutls-extra.m4
  6751. * m4/libgnutls.m4
  6752. * m4/libxml2.m4
  6753. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6754. Fixed compile error with gcc-4.4(snapshot)
  6755. * src/File.cc
  6756. * src/FtpConnection.cc
  6757. * src/OptionHandlerImpl.h
  6758. * src/Util.cc
  6759. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Removed assert()
  6761. * src/SocketBuffer.cc (SocketBuffer::send)
  6762. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Changed the type of _numNewConnection to unsigned int.
  6764. * src/ActivePeerConnectionCommand.cc
  6765. * src/ActivePeerConnectionCommand.h
  6766. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6767. * Release 0.16.0
  6768. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6769. Updated doc
  6770. * README
  6771. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6772. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6773. translations. Thanks to all translators.
  6774. * po/bg.po
  6775. * po/de.po
  6776. * po/fr.po
  6777. * po/ja.po
  6778. * po/zh_CN.po
  6779. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6780. Bump up version number to 0.16.0.
  6781. * configure.ac
  6782. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6783. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6784. int32_t.
  6785. Changed the type of count to int32_t.
  6786. * src/Metalink2RequestGroup.cc
  6787. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Added test for Time::elapsed(time_t).
  6789. * test/TimeTest.cc
  6790. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6792. Util::difftv() should be used instead.
  6793. * src/TimeA2.cc
  6794. * src/TimeA2.h
  6795. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6796. Made socket for dht connections non-blocking
  6797. * src/DHTAbstractMessage.cc
  6798. * src/DHTAbstractMessage.h
  6799. * src/DHTConnection.h
  6800. * src/DHTConnectionImpl.cc
  6801. * src/DHTConnectionImpl.h
  6802. * src/DHTMessage.h
  6803. * src/DHTMessageDispatcherImpl.cc
  6804. * src/DHTMessageDispatcherImpl.h
  6805. * src/DHTUnknownMessage.cc
  6806. * src/DHTUnknownMessage.h
  6807. * src/SocketCore.cc
  6808. * src/SocketCore.h
  6809. * test/MockDHTMessage.h
  6810. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Changed the type of offset to int.
  6812. * src/ParameterizedStringParser.cc
  6813. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Made getAsInt() return int32_t
  6815. * src/Option.h
  6816. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6818. build.
  6819. * configure.ac
  6820. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. Use sqlite3_open if sqlite3_open_v2 is not available.
  6822. * src/Sqlite3MozCookieParser.cc
  6823. * src/Sqlite3MozCookieParser.h
  6824. * m4/sqlite3.m4
  6825. * test/Sqlite3MozCookieParserTest.cc
  6826. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6827. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6828. * src/BtPieceMessage.cc
  6829. * src/DHTPeerAnnounceStorage.cc
  6830. * src/DefaultPieceStorage.cc
  6831. * src/DownloadCommand.cc
  6832. * src/DownloadEngine.cc
  6833. * src/FtpConnection.cc
  6834. * src/PeerConnection.cc
  6835. * src/PeerMessageUtil.cc
  6836. * src/RequestGroup.cc
  6837. * src/RequestGroupMan.cc
  6838. * src/SimpleBtMessage.cc
  6839. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6840. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6841. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6842. * src/AbstractDiskWriter.cc
  6843. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6844. Don't set Request::supportsPersistentConnection() in HttpConnection
  6845. since this code is also used in AbstractProxyResponseCommand.
  6846. Moved those code to HttpResponse.
  6847. * src/HttpResponse.cc
  6848. * src/HttpResponse.h
  6849. * src/HttpConnection.cc
  6850. * src/HttpConnection.h
  6851. * src/HttpResponseCommand.cc
  6852. * test/HttpResponseTest.cc
  6853. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6854. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6855. The configuration is minimum: no torrent, no metalink, so there may be
  6856. other compile error on their code.
  6857. * src/a2netcompat.h
  6858. * src/File.cc
  6859. * src/File.h
  6860. * src/SocketCore.cc
  6861. * src/SocketCore.h
  6862. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Made a socket of incoming peer non-blocking.
  6864. * src/PeerListenCommand.cc
  6865. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6867. whole message data is not sent in one send() call.
  6868. * src/BtPieceMessage.cc
  6869. * src/BtPieceMessage.h
  6870. * src/PeerConnection.cc
  6871. * src/PeerConnection.h
  6872. * src/SimpleBtMessage.cc
  6873. * src/SimpleBtMessage.h
  6874. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6875. Fixed the bug that aria2 downloads faster than max-download-limit when
  6876. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6877. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6878. , instead of sum of them.
  6879. * src/ActivePeerConnectionCommand.cc
  6880. * src/DefaultBtInteractive.cc
  6881. * src/DownloadCommand.cc
  6882. * src/PeerInteractionCommand.cc
  6883. * src/PeerReceiveHandshakeCommand.cc
  6884. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Fixed the bug that HTTPS download fails.
  6886. * src/AbstractCommand.cc
  6887. * src/AbstractCommand.h
  6888. * src/DownloadCommand.cc
  6889. * src/FtpConnection.cc
  6890. * src/HttpConnection.cc
  6891. * src/HttpRequestCommand.cc
  6892. * src/HttpResponseCommand.cc
  6893. * src/HttpSkipResponseCommand.cc
  6894. * src/MSEHandshake.cc
  6895. * src/PeerConnection.cc
  6896. * src/SocketCore.cc
  6897. * src/SocketCore.h
  6898. Fixed the bug that aria2 doesn't download whole content body and cannot
  6899. reuse connection if chunked transfer encoding and gzip content encoding
  6900. are set.
  6901. * src/DownloadCommand.cc
  6902. * src/HttpSkipResponseCommand.cc
  6903. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Updated man page.
  6905. * doc/aria2c.1.txt
  6906. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. When error occurred while aria2 was parsing an .aria2.conf file, print
  6908. the usage of the option that caused error.
  6909. * src/option_processing.cc
  6910. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Fixed compile error on OptionHandlerException
  6912. * src/Makefile.am
  6913. * src/OptionHandlerException.cc
  6914. * src/OptionHandlerException.h
  6915. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Moved message of the error to OptionHandlerException.h
  6917. * src/NameMatchOptionHandler.h
  6918. * src/OptionHandlerException.h
  6919. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. When error occurs while aria2 is parsing an command-line option, print
  6921. the usage of the option.
  6922. * src/Makefile.am
  6923. * src/NameMatchOptionHandler.h
  6924. * src/OptionHandlerException.h
  6925. * src/option_processing.cc
  6926. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6927. Reverted previous change.
  6928. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6929. username is not in URI.
  6930. * src/HttpRequest.cc
  6931. * src/Request.cc
  6932. * test/HttpRequestTest.cc
  6933. * test/RequestTest.cc
  6934. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6935. Now colon is required for username and password in FTP URL, like:
  6936. ftp://username:password@host.
  6937. If colon is not there, aria2 don't parse it as a username. For example,
  6938. aria2 don't retrieve username from ftp://username@host.
  6939. This fix was made in order to login FTP server via non-transparent ftp
  6940. proxy.
  6941. * src/Request.cc
  6942. * test/RequestTest.cc
  6943. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Use netrc for HTTP.
  6945. Now FTP user/password is sent in Authorization header when
  6946. --ftp-via-http-proxy=get is given.
  6947. * src/AuthConfigFactory.cc
  6948. * src/HttpRequest.cc
  6949. * src/HttpRequest.h
  6950. * src/NetrcAuthResolver.cc
  6951. * src/NetrcAuthResolver.h
  6952. * src/OptionHandlerFactory.cc
  6953. * src/option_processing.cc
  6954. * src/prefs.cc
  6955. * src/prefs.h
  6956. * test/AuthConfigFactoryTest.cc
  6957. * test/HttpRequestTest.cc
  6958. * test/NetrcAuthResolverTest.cc
  6959. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6960. Issue PWD command first and get working directory and use it as a prefix
  6961. for CWD command.
  6962. * src/DownloadEngine.cc
  6963. * src/DownloadEngine.h
  6964. * src/FtpConnection.cc
  6965. * src/FtpConnection.h
  6966. * src/FtpFinishDownloadCommand.cc
  6967. * src/FtpInitiateConnectionCommand.cc
  6968. * src/FtpNegotiationCommand.cc
  6969. * src/FtpNegotiationCommand.h
  6970. * test/FtpConnectionTest.cc
  6971. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6972. Removed default user/pass for FTP user/pass, since it should not have
  6973. precedence over netrc configuration by default.
  6974. * src/OptionHandlerFactory.cc
  6975. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Added debug log for socket event.
  6977. * src/AbstractCommand.cc
  6978. * src/PeerAbstractCommand.cc
  6979. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6980. Log microseconds.
  6981. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6982. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Replaced HelpItem.cc with OptionHandler.cc.
  6984. * po/POTFILES.in
  6985. Updated po files with 'make update-po'
  6986. * po/aria2c.pot
  6987. * po/*.po
  6988. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6989. Removed possible values from the text.
  6990. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6991. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. Removed unused preferences:
  6993. PREF_NO_PREALLOCATION
  6994. PREF_STDOUT_LOG
  6995. PREF_TRACKER_MAX_TRIES
  6996. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6997. PREF_MIN_SEGMENT_SIZE
  6998. * src/option_processing.cc
  6999. * src/prefs.cc
  7000. * src/prefs.h
  7001. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7002. Integrated HelpItem into OptionParser to ease the workload for adding
  7003. new options. Removed default value from usage text.
  7004. * src/HelpItem.cc: Removed.
  7005. * src/HelpItem.h: Removed.
  7006. * src/HelpItemFactory.cc: Removed.
  7007. * src/HelpItemFactory.h: Removed.
  7008. * src/Makefile.am
  7009. * src/Makefile.in
  7010. * src/NameMatchOptionHandler.h
  7011. * src/OptionHandler.cc
  7012. * src/OptionHandler.h
  7013. * src/OptionHandlerFactory.cc
  7014. * src/OptionHandlerImpl.h
  7015. * src/OptionParser.cc
  7016. * src/OptionParser.h
  7017. * src/TagContainer.cc: Removed.
  7018. * src/TagContainer.h: Removed.
  7019. * src/TaggedItem.cc: Removed.
  7020. * src/TaggedItem.h: Removed.
  7021. * src/main.cc
  7022. * src/option_processing.cc
  7023. * src/usage_text.h
  7024. * src/version_usage.cc
  7025. * test/HelpItemTest.cc: Removed.
  7026. * test/Makefile.am
  7027. * test/Makefile.in
  7028. * test/OptionHandlerTest.cc
  7029. * test/OptionParserTest.cc
  7030. * test/TagContainerTest.cc: Removed.
  7031. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7032. Moved `TransferStat stat = ...' to inside the `if' clause.
  7033. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7034. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. Fixed the bug that a block in a piece is requested when same block is
  7036. already requested to the same peer in end game mode.
  7037. * src/BtRequestFactory.h
  7038. * src/DefaultBtInteractive.cc
  7039. * src/DefaultBtRequestFactory.cc
  7040. * src/DefaultBtRequestFactory.h
  7041. * src/DefaultPieceStorage.cc
  7042. * src/DefaultPieceStorage.h
  7043. * src/PieceStorage.h
  7044. * src/UnknownLengthPieceStorage.cc
  7045. * src/UnknownLengthPieceStorage.h
  7046. * test/DefaultBtRequestFactoryTest.cc
  7047. * test/DefaultPieceStorageTest.cc
  7048. * test/MockBtRequestFactory.h
  7049. * test/MockPieceStorage.h
  7050. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Removed _uploadLength and _downloadLength from PeerSessionResource
  7052. and use PeerStat::_sessionUploadLength and
  7053. PeerStat::_sessionDownloadLength.
  7054. * src/PeerSessionResource.cc
  7055. * src/PeerSessionResource.h
  7056. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Fixed the bug that prefixLength of split bucket which doesn't include
  7058. local node ID is incremented.
  7059. * src/DHTBucket.cc
  7060. * src/DHTBucket.h
  7061. * test/DHTBucketTest.cc
  7062. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7063. Added cookies.sqlite to EXTRA_DIST
  7064. * test/Makefile.am
  7065. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7066. Added Turkish translation. Updated French, German, Russian and
  7067. Simplified Chinese translations. Thanks to all translators.
  7068. * po/LINGUAS
  7069. * po/de.po
  7070. * po/fr.po
  7071. * po/ru.po
  7072. * po/tr.po
  7073. * po/zh_CN.po
  7074. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Added deliminating text to the beginning of the log so that one can find
  7076. where the log starts easily.
  7077. * src/main.cc
  7078. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7080. to fix compile error when async DNS is not enabled by configuration.
  7081. * src/AbstractCommand.cc
  7082. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. If establishing conneciton to a server is failed, then mark error on
  7084. its ServerStat.
  7085. Added the cause of error to log when error event occurred.
  7086. Moved message string to message.h for translation.
  7087. * src/AbstractCommand.cc
  7088. * src/AbstractCommand.h
  7089. * src/FtpNegotiationCommand.cc
  7090. * src/HttpRequestCommand.cc
  7091. * src/PeerAbstractCommand.cc
  7092. * src/message.h
  7093. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7094. Added the function to get error message from socket.
  7095. * src/SocketCore.cc
  7096. * src/SocketCore.h
  7097. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7099. * src/RequestGroupMan.cc
  7100. * src/RequestGroupMan.h
  7101. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. If error event is received in epoll, then abort download immediately.
  7103. * src/AbstractCommand.cc
  7104. * src/Command.cc
  7105. * src/Command.h
  7106. * src/DownloadEngine.cc
  7107. * src/PeerAbstractCommand.cc
  7108. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Added usage message for --uri-selector, --server-stat-of,
  7110. --server-stat-in, --server-stat-timeout options.
  7111. * src/HelpItemFactory.cc
  7112. * src/usage_text.h
  7113. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. Added upper limit of FTP response buffer. The current implementation
  7115. uses 4096bytes as a limit.
  7116. * src/FtpConnection.cc
  7117. * src/FtpConnection.h
  7118. * test/FtpConnectionTest.cc
  7119. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7120. Use non-blocking socket for TCP communication to avoid possible
  7121. blocking due to buffer full.
  7122. * src/AbstractProxyRequestCommand.cc
  7123. * src/FtpConnection.cc
  7124. * src/FtpConnection.h
  7125. * src/FtpNegotiationCommand.cc
  7126. * src/FtpNegotiationCommand.h
  7127. * src/HttpConnection.cc
  7128. * src/HttpConnection.h
  7129. * src/HttpRequestCommand.cc
  7130. * src/InitiatorMSEHandshakeCommand.cc
  7131. * src/InitiatorMSEHandshakeCommand.h
  7132. * src/MSEHandshake.cc
  7133. * src/MSEHandshake.h
  7134. * src/Makefile.am
  7135. * src/PeerConnection.cc
  7136. * src/PeerConnection.h
  7137. * src/PeerInteractionCommand.cc
  7138. * src/PeerListenCommand.cc
  7139. * src/ReceiverMSEHandshakeCommand.cc
  7140. * src/ReceiverMSEHandshakeCommand.h
  7141. * src/SocketBuffer.cc
  7142. * src/SocketBuffer.h
  7143. * src/SocketCore.cc
  7144. * src/SocketCore.h
  7145. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. Call setStatusRealtime() in constructor.
  7147. * src/RealtimeCommand.cc
  7148. * src/RealtimeCommand.h
  7149. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. Call Download::setNoWait(true) to execute newly created command without
  7151. a pause.
  7152. * src/AbstractCommand.cc
  7153. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7155. found' error from HTTP/FTP server NUM times without getting single
  7156. bytes of data, then force the download to fail.
  7157. Basically aria2 tris all URIs available. So if long list of URIs are
  7158. specified in Metalink, then aria2 will take a long time to fail
  7159. eventually if all URIs are outdated. This option eases this situation
  7160. to limit the number of servers to try.
  7161. * src/FtpNegotiationCommand.cc
  7162. * src/HelpItemFactory.cc
  7163. * src/HttpResponseCommand.cc
  7164. * src/OptionHandlerFactory.cc
  7165. * src/PeerStat.h
  7166. * src/RequestGroup.cc
  7167. * src/RequestGroup.h
  7168. * src/SegmentMan.cc
  7169. * src/SegmentMan.h
  7170. * src/option_processing.cc
  7171. * src/prefs.cc
  7172. * src/prefs.h
  7173. * src/usage_text.h
  7174. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7175. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7176. response even if more than one response is in it.
  7177. * src/FtpConnection.cc
  7178. * src/FtpConnection.h
  7179. * test/FtpConnectionTest.cc
  7180. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7181. Merged from stable-0.15
  7182. * m4/libcares.m4
  7183. Use pkg-config
  7184. * m4/sqlite3.m4
  7185. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Removed unnecessary if statement.
  7187. * src/DefaultPieceStorage.cc (initPieceStorage)
  7188. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7189. Added --connect-timeout option to specify connect timeout in seconds.
  7190. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7191. connecting to BitTorrent peer is not controlled by this option.
  7192. * src/AbstractProxyRequestCommand.cc
  7193. * src/FtpNegotiationCommand.cc
  7194. * src/HelpItemFactory.cc
  7195. * src/HttpRequestCommand.cc
  7196. * src/OptionHandlerFactory.cc
  7197. * src/option_processing.cc
  7198. * src/prefs.cc
  7199. * src/prefs.h
  7200. * src/usage_text.h
  7201. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Added help message for -R option.
  7203. * src/HelpItemFactory.cc
  7204. * src/usage_text.h
  7205. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. Added the message that the time is in local time zone.
  7207. * src/RequestGroup.cc
  7208. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Implemented the ability to get timestamp from remote FTP server using
  7210. MDTM command described in RFC3659.
  7211. * src/FtpConnection.cc
  7212. * src/FtpConnection.h
  7213. * src/FtpNegotiationCommand.cc
  7214. * src/FtpNegotiationCommand.h
  7215. * test/FtpConnectionTest.cc
  7216. * test/Makefile.am
  7217. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Implemented the ability to get timestamp from remote HTTP server and
  7219. apply it to local file. To enable this feature, --remote-time option
  7220. is added. No usage text has been written yet.
  7221. If several servers returns difference timestamp, then aria2 uses latest
  7222. one.
  7223. * src/CopyDiskAdaptor.cc
  7224. * src/CopyDiskAdaptor.h
  7225. * src/DirectDiskAdaptor.cc
  7226. * src/DirectDiskAdaptor.h
  7227. * src/DiskAdaptor.h
  7228. * src/File.cc
  7229. * src/File.h
  7230. * src/HttpHeader.cc
  7231. * src/HttpHeader.h
  7232. * src/HttpResponse.cc
  7233. * src/HttpResponse.h
  7234. * src/HttpResponseCommand.cc
  7235. * src/HttpResponseCommand.h
  7236. * src/MultiDiskAdaptor.cc
  7237. * src/MultiDiskAdaptor.h
  7238. * src/OptionHandlerFactory.cc
  7239. * src/RequestGroup.cc
  7240. * src/RequestGroup.h
  7241. * src/RequestGroupMan.cc
  7242. * src/option_processing.cc
  7243. * src/prefs.cc
  7244. * src/prefs.h
  7245. * test/CopyDiskAdaptorTest.cc
  7246. * test/FileTest.cc
  7247. * test/Makefile.am
  7248. * test/Makefile.in
  7249. * test/MultiDiskAdaptorTest.cc
  7250. * test/TestUtil.cc
  7251. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7252. Fixed the bug that DiskWriterEntry is not created when its
  7253. FileEntry.isRequested() is false and it doesn't share a piece with
  7254. other FileEntries that are requested. This bug causes segmentation fault
  7255. in the end.
  7256. * src/MultiDiskAdaptor.cc
  7257. * src/MultiDiskAdaptor.h
  7258. * src/MultiFileAllocationIterator.cc
  7259. * test/MultiDiskAdaptorTest.cc
  7260. * test/MultiFileAllocationIteratorTest.cc
  7261. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7263. called if the number of file entries are greater than max open files.
  7264. * src/AbstractSingleDiskAdaptor.cc
  7265. * src/AbstractSingleDiskAdaptor.h
  7266. * src/DiskAdaptor.h
  7267. * src/MultiDiskAdaptor.cc
  7268. * src/MultiDiskAdaptor.h
  7269. * test/MultiDiskAdaptorTest.cc
  7270. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Added a constuctor that receives struct timeval.
  7272. Added operator<.
  7273. * src/TimeA2.cc
  7274. * src/TimeA2.h
  7275. * test/TimeTest.cc
  7276. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7277. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7278. * src/CookieParser.cc
  7279. * test/CookieParserTest.cc
  7280. * test/HttpResponseTest.cc
  7281. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. Implmented the functions to parse date.
  7283. * src/TimeA2.cc
  7284. * src/TimeA2.h
  7285. * test/TimeTest.cc
  7286. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Added "Firefox3 Cookie" feature to FeatureConfig
  7288. * src/FeatureConfig.cc
  7289. * src/FeatureConfig.h
  7290. * test/FeatureConfigTest.cc
  7291. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. Bump up version number to 0.16.0b
  7293. * configure.ac
  7294. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7295. Use pkg-config if is is available.
  7296. * m4/openssl.m4
  7297. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7299. * src/BtAnnounce.h
  7300. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7301. If an error occurred with a URI, remove identical URI from remaining
  7302. URI list because it is likely that same error occurred in the end and it
  7303. is waste of time.
  7304. * src/AbstractCommand.cc
  7305. * src/RequestGroup.cc
  7306. * src/RequestGroup.h
  7307. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Removed wrong comment.
  7309. * src/DefaultPeerStorage.cc
  7310. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7311. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7312. Added return value of getpid() to argument of srand() to achieve more
  7313. randomized value.
  7314. * src/SimpleRandomizer.cc
  7315. * src/SimpleRandomizer.h
  7316. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7317. Contact tracker frequently when the number of connections are 0 and
  7318. download is not finished yet.
  7319. * src/ActivePeerConnectionCommand.cc
  7320. * src/BtAnnounce.h
  7321. * src/DefaultBtAnnounce.cc
  7322. * src/DefaultBtAnnounce.h
  7323. * test/MockBtAnnounce.h
  7324. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7325. Moved threshold values to UTPexExtensionMessage.
  7326. * src/DefaultBtInteractive.cc
  7327. * src/Peer.cc
  7328. * src/Peer.h
  7329. * src/UTPexExtensionMessage.cc
  7330. * src/UTPexExtensionMessage.h
  7331. * test/UTPexExtensionMessageTest.cc
  7332. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7333. Added _incoming member to Peer class and made it true if the peer
  7334. initiated connection. Don't add those peer to UTPex message.
  7335. If extended handshake is received, assign _incoming to false.
  7336. * src/DefaultBtInteractive.cc
  7337. * src/HandshakeExtensionMessage.cc
  7338. * src/Peer.cc
  7339. * src/Peer.h
  7340. * src/PeerListenCommand.cc
  7341. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7343. Encoding Decoder. Removed size threshold for turning off on the fly
  7344. inflation because resulting file may or may not be inflated depending
  7345. on the file size and I think it is not expected by users.
  7346. This change fixes segmentation fault when Metalink file contains gzipped
  7347. file and its filesize is provided.
  7348. * src/HttpResponseCommand.cc
  7349. * src/HttpResponseCommand.h
  7350. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Made Cookie immutable.
  7352. * src/Cookie.cc
  7353. * src/Cookie.h
  7354. * src/CookieParser.cc
  7355. * src/CookieParser.h
  7356. * src/CookieStorage.cc
  7357. * test/CookieParserTest.cc
  7358. * test/CookieStorageTest.cc
  7359. * test/NsCookieParserTest.cc
  7360. * test/Sqlite3MozCookieParserTest.cc
  7361. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Removed CookieBox, CookieBoxFactory.
  7363. * src/CookieBox.cc
  7364. * src/CookieBox.h
  7365. * src/CookieBoxFactory.cc
  7366. * src/CookieBoxFactory.h
  7367. * src/Makefile.am
  7368. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7369. Use CookieStorage class instead of CookieBox class.
  7370. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7371. * src/AbstractProxyRequestCommand.cc
  7372. * src/CookieStorage.cc
  7373. * src/DownloadEngine.cc
  7374. * src/DownloadEngine.h
  7375. * src/HttpConnection.cc
  7376. * src/HttpConnection.h
  7377. * src/HttpRequest.cc
  7378. * src/HttpRequest.h
  7379. * src/HttpRequestCommand.cc
  7380. * src/HttpResponse.cc
  7381. * src/HttpResponseCommand.cc
  7382. * src/HttpSkipResponseCommand.cc
  7383. * src/Makefile.am
  7384. * src/MultiUrlRequestInfo.cc
  7385. * src/Request.cc
  7386. * src/Request.h
  7387. * src/main.cc
  7388. * test/AllTest.cc
  7389. * test/CookieStorageTest.cc
  7390. * test/CookieTest.cc
  7391. * test/HttpRequestTest.cc
  7392. * test/HttpResponseTest.cc
  7393. * test/Makefile.am
  7394. * test/NsCookieParserTest.cc
  7395. * test/Sqlite3MozCookieParserTest.cc
  7396. * test/nscookietest.txt
  7397. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Updated
  7399. * test/Cookies.sqlite
  7400. * test/nscookietest.txt
  7401. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Added tests for CookieStorage::load()
  7403. * test/CookieStorageTest.cc
  7404. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. Added CookieStorage class which is based on RFC2109 and manages cookies
  7406. more strictly than CookieBox and CookieBoxFactory class.
  7407. * src/CookieStorage.cc
  7408. * src/CookieStorage.h
  7409. * src/Cookie.cc
  7410. * src/Cookie.h
  7411. * test/CookieStorageTest.cc
  7412. * test/CookieTest.cc
  7413. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Fixed the bug that commands are created more than the number of pieces.
  7415. * src/RequestGroup.cc
  7416. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Fixed infinite loop bug in FTP when SIZE command failed.
  7418. * src/FtpNegotiationCommand.cc
  7419. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7420. Removed DirectDiskAdaptorTest.h
  7421. * test/Makefile.am
  7422. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. Fixed chunk checksum validation cannot detect trailing garbage data.
  7424. BUG#2074141
  7425. * src/AbstractSingleDiskAdaptor.cc
  7426. * src/AbstractSingleDiskAdaptor.h
  7427. * src/CheckIntegrityEntry.cc
  7428. * src/CheckIntegrityEntry.h
  7429. * src/DiskAdaptor.h
  7430. * src/MultiDiskAdaptor.cc
  7431. * src/MultiDiskAdaptor.h
  7432. * src/RequestGroup.cc
  7433. * test/DirectDiskAdaptorTest.cc
  7434. * test/MultiDiskAdaptorTest.cc
  7435. * test/TestUtil.cc
  7436. * test/TestUtil.h
  7437. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7438. Bump up version number of dht.dat file to 3. In version 3 format, time
  7439. is stored in 64bit, network byte order.
  7440. New build can load old format(version 2) but it saves the file in new
  7441. format. It means once you used new build, your dht.dat becomes
  7442. incompatible with older build.
  7443. * src/DHTRoutingTableDeserializer.cc
  7444. * src/DHTRoutingTableSerializer.cc
  7445. * test/DHTRoutingTableSerializerTest.cc
  7446. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7447. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7448. * test/Makefile.am
  7449. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Bump up version number of .aria2 control file to 0001.
  7451. New aria2 can still load version 0000 file but it saves the file in
  7452. version 0001 format. It means that new aria2 can resume download
  7453. started by old aria2 but the opposite is not true.
  7454. * src/DefaultBtProgressInfoFile.cc
  7455. * src/DefaultBtProgressInfoFile.h
  7456. * test/DefaultBtProgressInfoFileTest.cc
  7457. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7458. Added ntoh64 and hton64 as inline functions.
  7459. * src/Util.cc
  7460. * test/UtilTest.cc
  7461. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Added sqlite3 depenency and Firefox3 cookie support.
  7463. * README
  7464. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7465. State that firefox3 cookie is supported explicitly in the usage.
  7466. * src/usage_text.h
  7467. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7468. Externalized message.
  7469. * src/RequestGroupMan.cc
  7470. * src/message.h
  7471. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. Save temporary file first and rename to the destination on success.
  7473. Added test cases.
  7474. * src/RequestGroupMan.cc
  7475. * test/RequestGroupManTest.cc
  7476. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7477. Fixed the bug that the number of connected peer is exceeding the limit
  7478. (55 by default) in seeding mode.
  7479. Multiplied 0.8 to _maxUploadSpeedLimit.
  7480. * src/ActivePeerConnectionCommand.cc
  7481. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. Clear table item.
  7483. * src/Dictionary.cc
  7484. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7485. Fixed error handling of lseek.
  7486. * src/AbstractDiskWriter.cc
  7487. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7489. style cookie file.
  7490. * src/usage_text.h
  7491. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7493. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7494. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7495. * src/Util.cc
  7496. * src/Util.h
  7497. * src/CookieParser.cc
  7498. * test/UtilTest.cc
  7499. * test/CookieParserTest.cc
  7500. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Separate the implementation to load old mozilla format of cookie to
  7502. NsCookieParser class.
  7503. * src/CookieBoxFactory.cc
  7504. * src/CookieBoxFactory.h
  7505. * src/NsCookieParser.cc
  7506. * src/NsCookieParser.h
  7507. * test/NsCookieParserTest.cc
  7508. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7509. Made parse() const
  7510. * src/Sqlite3MozCookieParser.cc
  7511. * src/Sqlite3MozCookieParser.h
  7512. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Added firefox3 cookie support based on the patch submitted by
  7514. tizianomueller.
  7515. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7516. this functionality.
  7517. * configure.ac
  7518. * m4/sqlite3.m4
  7519. * src/CookieBoxFactory.cc
  7520. * src/CookieBoxFactory.h
  7521. * src/Makefile.am
  7522. * src/Makefile.in
  7523. * src/Sqlite3MozCookieParser.cc
  7524. * src/Sqlite3MozCookieParser.h
  7525. * src/main.cc
  7526. * test/CookieBoxFactoryTest.cc
  7527. * test/Makefile.am
  7528. * test/Makefile.in
  7529. * test/Sqlite3MozCookieParserTest.cc
  7530. * test/badcookies.sqlite
  7531. * test/cookies.sqlite
  7532. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Added Danish and Greek translations.
  7534. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7535. Great thanks to all translators.
  7536. * po/LINGUAS
  7537. * po/el.po
  7538. * po/da.po
  7539. * po/es.po
  7540. * po/ca.po
  7541. * po/nn.po
  7542. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Fixed man page: --follow-bittorrent should be --follow-torrent
  7544. * doc/aria2c.1.txt
  7545. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Fixed: numCommand is less than the value specified in -C option.
  7547. * src/RequestGroup.cc
  7548. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. Fixed occasional assertion failure in PieceSegment.
  7550. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7551. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7552. creation of duplicate segments and one of the segment was finished then
  7553. assertion failure was caused.
  7554. * src/SegmentMan.cc
  7555. * test/SegmentManTest.cc
  7556. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7557. Added options to load/save the server's performance/status to a file
  7558. and the timeout to drop their data.
  7559. --server-stat-of=FILE specifies the file to which performance data
  7560. is saved.
  7561. --server-stat-if=FILE specifies the file to read previously saved
  7562. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7563. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7564. TIMEOUT is specified in seconds and the default value is 24hours.
  7565. * src/MultiUrlRequestInfo.cc
  7566. * src/OptionHandlerFactory.cc
  7567. * src/RequestGroupMan.cc
  7568. * src/RequestGroupMan.h
  7569. * src/ServerStatMan.cc
  7570. * src/ServerStatMan.h
  7571. * src/option_processing.cc
  7572. * src/prefs.cc
  7573. * src/prefs.h
  7574. * test/ServerStatManTest.cc
  7575. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7577. * src/ServerStatMan.cc
  7578. * src/ServerStatMan.h
  7579. * test/ServerStatManTest.cc
  7580. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Implemented ServerStatMan::load(...) function and its test case.
  7582. * src/ServerStat.cc
  7583. * src/ServerStat.h
  7584. * src/ServerStatMan.cc
  7585. * test/ServerStatManTest.cc
  7586. * test/ServerStatTest.cc
  7587. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7588. Use time_t instead of int32_t. Use int64_t where milli second is
  7589. expected.
  7590. * src/TimeA2.cc
  7591. * src/TimeA2.h
  7592. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7593. Implemented ServerStatMan::save(...) function and its test case.
  7594. * src/ServerStat.cc
  7595. * src/ServerStat.h
  7596. * src/ServerStatMan.cc
  7597. * src/ServerStatMan.h
  7598. * test/ServerStatManTest.cc
  7599. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7600. Now aria2 uses name attribute in Metalink as local filename in
  7601. BitTorrent downloads. BUG#2033999
  7602. * src/BtContext.h
  7603. * src/BtDependency.cc
  7604. * src/DefaultBtContext.cc
  7605. * src/DefaultBtContext.h
  7606. * src/SingleFileDownloadContext.cc
  7607. * src/SingleFileDownloadContext.h
  7608. * test/BtDependencyTest.cc
  7609. * test/DefaultBtContextTest.cc
  7610. * test/MockBtContext.h
  7611. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Added AC_C_BIGENDIAN
  7613. * src/configure.ac
  7614. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Limited numCommand less than or equal to the number of piece.
  7616. * src/RequestGroup.cc
  7617. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7619. directive.
  7620. * test/DefaultPieceStorageTest.cc
  7621. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7622. Fixed memory leak in test code
  7623. * test/AnnounceListTest.cc
  7624. * test/DefaultPeerListProcessorTest.cc
  7625. * test/DefaultPeerStorageTest.cc
  7626. * test/MetaFileUtilTest.cc
  7627. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7628. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7629. * src/DefaultPieceStorage.cc
  7630. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Initialized _directIOAllowed
  7632. * src/MultiDiskAdaptor.cc
  7633. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7634. Fixed memory leak
  7635. * src/GZipDecoder.cc
  7636. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7637. Fixed memory leak
  7638. * src/MetalinkParserStateMachine.cc
  7639. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7640. Fixed memory leak
  7641. * src/Dictionary.cc
  7642. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Fixed memory leak
  7644. * src/IteratableChunkChecksumValidator.h
  7645. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Fixed unmatched malloc/free.
  7647. * src/IteratableChunkChecksumValidator.cc
  7648. * src/IteratableChecksumValidator.cc
  7649. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Removed max chunk size check. This change fixes BUG#2040169
  7651. * src/ChunkedDecoder.cc
  7652. * src/ChunkedDecoder.h
  7653. * test/ChunkedDecoderTest.cc
  7654. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7655. Implemented download speed based URI selection algorithm.
  7656. Introduced new option --uri-selector.
  7657. If --uri-selector=feedback is given, aria2 uses download speed observed
  7658. in the previous downloads and chooses fastest server in the URI list.
  7659. Currently at most 10 URIs are considered to introduce randomeness for
  7660. finding better servers. The speed is average download speed in the
  7661. downloads.
  7662. On the other hand, if --uri-selector=inorder is given, which is default,
  7663. URI is tried in order in URI list.
  7664. The usage text for the new option has not been written yet.
  7665. * src/AbstractCommand.cc
  7666. * src/DownloadCommand.cc
  7667. * src/DownloadEngine.cc
  7668. * src/DownloadEngineFactory.cc
  7669. * src/InOrderURISelector.cc
  7670. * src/InOrderURISelector.h
  7671. * src/OptionHandlerFactory.cc
  7672. * src/PeerStat.h
  7673. * src/RequestGroup.cc
  7674. * src/RequestGroup.h
  7675. * src/RequestGroupMan.cc
  7676. * src/RequestGroupMan.h
  7677. * src/SegmentMan.cc
  7678. * src/SegmentMan.h
  7679. * src/ServerStat.cc
  7680. * src/ServerStat.h
  7681. * src/ServerStatMan.cc
  7682. * src/ServerStatMan.h
  7683. * src/ServerStatURISelector.cc
  7684. * src/ServerStatURISelector.h
  7685. * src/URISelector.h
  7686. * src/option_processing.cc
  7687. * src/prefs.cc
  7688. * src/prefs.h
  7689. * test/InOrderURISelectorTest.cc
  7690. * test/RequestGroupManTest.cc
  7691. * test/ServerStatManTest.cc
  7692. * test/ServerStatURISelectorTest.cc
  7693. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. * Release 0.15.1+2
  7695. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Bump up version number to 0.15.1+2
  7697. * configure.ac
  7698. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7699. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7700. * m4/aria2_arg.m4
  7701. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. * Release 0.15.1+1
  7703. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Bump up version number to 0.15.1+1
  7705. * configure.ac
  7706. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7707. Fixed the bug that causes segmentaion fault when resuming download
  7708. using metalink without size tag. Reproducible only using HTTP URI.
  7709. * src/HttpResponseCommand.cc
  7710. * src/FtpNegotiationCommand.cc
  7711. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7712. * Release 0.15.1
  7713. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. Updated Bulgarian and French translations, thanks to all translators.
  7715. * po/bg.po
  7716. * po/fr.po
  7717. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7718. Bump up version number to 0.15.1
  7719. * configure.ac
  7720. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Avoid repeated call of gettimeofday() when calculating speed.
  7722. * src/SpeedCalc.cc
  7723. * src/SpeedCalc.h
  7724. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. Removed writable check when socket's send buffer is full in BitTorrent
  7726. downloads to lower CPU usage.
  7727. * src/PeerInteractionCommand.cc
  7728. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7729. Fixed broken gzip inflation.
  7730. Turn off segmented downloading if gzip content is smaller than or equal
  7731. to 1MiB and inflate the data on the fly, because HTTP response header
  7732. doesn't contain the length of inflated file we can't determin where
  7733. the chunk of data should be written.
  7734. On the other hand, if gzip content is larger than 1MB, then turn off
  7735. on the fly inflation, because some servers returns "content-type: gzip"
  7736. for *.tgz, *.gz files.
  7737. * src/DownloadCommand.cc
  7738. * src/HttpResponseCommand.cc
  7739. * src/HttpResponseCommand.h
  7740. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Applied tizianomueller's patch to fix compile error.
  7742. * test/BitfieldManTest.cc
  7743. * test/BtRequestMessageTest.cc
  7744. * test/DefaultBtContextTest.cc
  7745. * test/DefaultDiskWriterTest.cc
  7746. * test/DefaultPieceStorageTest.cc
  7747. * test/HttpHeaderProcessorTest.cc
  7748. * test/HttpResponseTest.cc
  7749. * test/Metalink2RequestGroupTest.cc
  7750. * test/MetalinkParserControllerTest.cc
  7751. * test/MetalinkProcessorTest.cc
  7752. * test/PeerSessionResourceTest.cc
  7753. * test/UtilTest.cc
  7754. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. * Release 0.15.0
  7756. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Reordered src files in POTFILES.in so that usage text appears first.
  7758. * po/POTFILES.in
  7759. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Bump up version number to 0.15.0
  7761. * configure.ac
  7762. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Added Bulgarian translation.
  7764. Updated Catalan, Spanish, French and Japanese translations.
  7765. Thanks to all translators.
  7766. * po/LINGUAS
  7767. * po/bg.po
  7768. * po/ca.po
  7769. * po/es.po
  7770. * po/fr.po
  7771. * po/ja.po
  7772. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Updated feature list. Added libz for dependency section.
  7774. Added a description about unit testing using CppUnit.
  7775. * README
  7776. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7777. Added a test for libz. Quoted where it is necessary.
  7778. * build_test.sh
  7779. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7780. Added GZip to `Enabled Features' list.
  7781. * src/FeatureConfig.cc
  7782. * src/FeatureConfig.h
  7783. * test/FeatureConfigTest.cc
  7784. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7785. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7786. the transfer has not yet started.
  7787. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7788. * src/SegmentMan.cc
  7789. * src/SegmentMan.h
  7790. * test/SegmentManTest.cc
  7791. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7792. Cache last calculated average download/upload speed.
  7793. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7794. cached value.
  7795. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7796. * src/PeerStat.h
  7797. * src/SpeedCalc.cc
  7798. * src/SpeedCalc.h
  7799. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. Call parseUrl directly.
  7801. * src/Request.cc (resetUrl)
  7802. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7803. Supported absolute/relative path in Location header field.
  7804. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7805. * src/HttpHeader.cc
  7806. * src/HttpHeader.h
  7807. * src/HttpResponse.cc
  7808. * src/HttpSkipResponseCommand.cc
  7809. * src/Request.cc
  7810. * test/HttpHeaderTest.cc
  7811. * test/HttpResponseTest.cc
  7812. * test/RequestTest.cc
  7813. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7814. Changed help text for --load-cookie option.
  7815. * doc/aria2c.1.txt
  7816. * src/usage_text.h
  7817. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7818. Regenerated test/Makefile.in to remove stale ChangeLog.
  7819. * test/Makefile.in
  7820. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7821. Updated po files.
  7822. * po/aria2c.pot
  7823. * po/*.po
  7824. * po/*.gmo
  7825. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Bump up version number to 0.15.0b
  7827. * configure.ac
  7828. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Externalize messages.
  7830. * src/RequestGroupMan.cc
  7831. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7832. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Use File::exists() instead of File::isFile() to allow non-regular file
  7834. such as block special files.
  7835. * src/AbstractDiskWriter.cc
  7836. * src/MultiDiskWriter.cc
  7837. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7838. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7839. * src/gai_strerror.h
  7840. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Fixed compile error. Thanks gknauf for the patch.
  7842. * src/asctime_r.c
  7843. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Included asctime_r.h from a2time.h.
  7845. * src/a2time.h
  7846. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Added a message "aria2 doesn't verify signature" to log message when
  7848. signature file is saved.
  7849. * src/RequestGroupMan.cc
  7850. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7851. Added the ability to save signature when download is completed if
  7852. signature is available. The filename of signature file is the path to
  7853. download file followed by ".sig". If it already exists, then signature
  7854. will not be saved.
  7855. * src/RequestGroupMan.cc
  7856. * src/Signature.cc
  7857. * test/SignatureTest.cc
  7858. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Updated the descriptions for --bt-seed-unverified.
  7860. * doc/aria2c.1
  7861. * doc/aria2c.1.html
  7862. * doc/aria2c.1.txt
  7863. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7865. that this is not going to verify files using piece hashes.
  7866. * src/HelpItemFactory.cc
  7867. * src/OptionHandlerFactory.cc
  7868. * src/RequestGroup.cc
  7869. * src/option_processing.cc
  7870. * src/prefs.cc
  7871. * src/prefs.h
  7872. * src/usage_text.h
  7873. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7874. Added the ability to retrieve signature from Metalink file.
  7875. A retrieved signature is stored in Signature class and it is held by
  7876. DownloadContext class. Note that aria2 doesn't verify signature.
  7877. * src/DownloadContext.cc
  7878. * src/DownloadContext.h
  7879. * src/Makefile.am
  7880. * src/Makefile.in
  7881. * src/Metalink2RequestGroup.cc
  7882. * src/MetalinkEntry.cc
  7883. * src/MetalinkEntry.h
  7884. * src/MetalinkParserController.cc
  7885. * src/MetalinkParserController.h
  7886. * src/MetalinkParserStateMachine.cc
  7887. * src/MetalinkParserStateMachine.h
  7888. * src/Signature.cc
  7889. * src/Signature.h
  7890. * src/SignatureMetalinkParserState.cc
  7891. * src/SignatureMetalinkParserState.h
  7892. * src/VerificationMetalinkParserState.cc
  7893. * src/VerificationMetalinkParserState.h
  7894. * test/Metalink2RequestGroupTest.cc
  7895. * test/MetalinkParserControllerTest.cc
  7896. * test/MetalinkProcessorTest.cc
  7897. * test/test.xml
  7898. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7899. Close DiskAdaptor after renaming file.
  7900. * src/RequestGroup.cc
  7901. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Corrected indentation
  7903. * src/DefaultBtProgressInfoFile.cc
  7904. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7905. Moved the calls of std::ios::exceptions() inside of try-catch block
  7906. because if an error occurred in constructor of std::fstream, then
  7907. exception is thrown immediately when std::ios::exceptions() is called
  7908. which results unhandled exception and aria2c aborts.
  7909. * src/DefaultBtProgressInfoFile.cc
  7910. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7911. Added the test for the previous change in DefaultBtContext.cc
  7912. * test/DefaultBtContextTest.cc
  7913. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Fixed the bug that causes infinite loop when the number of pieces are
  7915. fewer than allowed fast set size which is 10 by default.
  7916. * src/DefaultBtContext.cc
  7917. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7918. Updated the descriptions for -j, -s. Added --bt-seed.
  7919. * doc/aria2c.1
  7920. * doc/aria2c.1.html
  7921. * doc/aria2c.1.txt
  7922. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7923. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7924. aria2 seeds previously downloaded files without validating piece hashs.
  7925. * src/HelpItemFactory.cc
  7926. * src/OptionHandlerFactory.cc
  7927. * src/RequestGroup.cc
  7928. * src/option_processing.cc
  7929. * src/prefs.cc
  7930. * src/prefs.h
  7931. * src/usage_text.h
  7932. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7933. Updated DESCRIPTION of man page.
  7934. * doc/aria2c.1
  7935. * doc/aria2c.1.html
  7936. * doc/aria2c.1.txt
  7937. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7939. Don't define `struct addrinfo' when __sun is defined.
  7940. * src/getaddrinfo.h
  7941. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7943. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7944. second argument is of type `struct _stati64'. Otherwise it is defined as
  7945. `struct stat'.
  7946. * src/AbstractDiskWriter.cc
  7947. * src/File.cc
  7948. * src/File.h
  7949. * src/a2io.h
  7950. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7951. Fixed the compile error in hurd-i386
  7952. See the original bug report:
  7953. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7954. * src/a2io.h
  7955. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. Code cleanup.
  7957. * src/PeerAbstractCommand.cc
  7958. * src/PeerAbstractCommand.h
  7959. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7960. Removed TransferEncoding.
  7961. * src/DownloadCommand.cc
  7962. * src/DownloadCommand.h
  7963. * src/HttpResponseCommand.cc
  7964. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. Updated po files.
  7966. * po/aria2c.pot
  7967. * po/*.po
  7968. * po/*.gmo
  7969. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7971. * src/A2STR.cc
  7972. * src/A2STR.h
  7973. * src/ChunkedDecoder.cc
  7974. * src/ChunkedDecoder.h
  7975. * src/ChunkedEncoding.cc: Removed
  7976. * src/ChunkedEncoding.h: Removed
  7977. * src/DownloadCommand.cc
  7978. * src/DownloadCommand.h
  7979. * src/HttpDownloadCommand.cc
  7980. * src/HttpResponse.cc
  7981. * src/HttpResponse.h
  7982. * src/HttpResponseCommand.cc
  7983. * src/HttpSkipResponseCommand.cc
  7984. * src/HttpSkipResponseCommand.h
  7985. * src/Makefile.am
  7986. * src/TransferEncoding.h: Removed
  7987. * test/ChunkedDecoderTest.cc
  7988. * test/ChunkedEncodingTest.cc: Removed
  7989. * test/HttpResponseTest.cc
  7990. * test/Makefile.am
  7991. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7992. Use append instead of insert.
  7993. * src/GZipDecoder.cc
  7994. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7995. Updated doc
  7996. * src/Decoder.h
  7997. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7998. Updated usage text for -s option.
  7999. * src/usage_text.h
  8000. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8002. * src/Request.cc
  8003. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. Cleaned up configure.ac.
  8005. * configure.ac
  8006. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8008. AC_ARG_ENABLE.
  8009. * configure.ac
  8010. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8012. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8013. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8014. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8015. fly and writes decoded data to a local disk.
  8016. * README
  8017. * README.html
  8018. * configure.ac
  8019. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8020. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8021. * m4/libz.m4
  8022. * src/Decoder.h
  8023. * src/DownloadCommand.cc
  8024. * src/DownloadCommand.h
  8025. * src/Exception.h
  8026. * src/GZipDecoder.cc
  8027. * src/GZipDecoder.h
  8028. * src/HttpHeader.cc
  8029. * src/HttpHeader.h
  8030. * src/HttpRequest.cc
  8031. * src/HttpRequest.h
  8032. * src/HttpResponse.cc
  8033. * src/HttpResponse.h
  8034. * src/HttpResponseCommand.cc
  8035. * src/Makefile.am
  8036. * test/GZipDecoderTest.cc
  8037. * test/HttpRequestTest.cc
  8038. * test/HttpResponseTest.cc
  8039. * test/Makefile.am
  8040. * test/Makefile.in
  8041. * test/gzip_decode_test.gz
  8042. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. Clarified usage of -j option.
  8044. * src/usage_text.h
  8045. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8046. Disabled getting size from the response of RETR.
  8047. If SIZE command failed, then disable resuming and segmented downloading.
  8048. * src/FtpConnection.cc
  8049. * src/FtpConnection.h
  8050. * src/FtpNegotiationCommand.cc
  8051. * src/FtpNegotiationCommand.h
  8052. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. Use digits to find first byte of file size, which makes the intention
  8054. of the code clearer.
  8055. * src/FtpConnection.cc
  8056. Don't call validateTotalLength() when size is 0.
  8057. * src/FtpNegotiationCommand.cc
  8058. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. Updated po files.
  8060. * po/aria2c.pot
  8061. * po/*.gmo
  8062. * po/*.po
  8063. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Clarified usage text for --split option.
  8065. * src/usage_text.h
  8066. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8067. Bump up version number to 0.15.0dev. "dev" means "development"
  8068. version, which means I started the development of the next release!
  8069. * src/configure.ac
  8070. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8071. If FTP server returns negative response with REST raw command and
  8072. requested range is not 0, throw exception. If requested range is 0,
  8073. continue download a file from 0 byte.
  8074. * src/FtpNegotiationCommand.cc
  8075. * src/FtpNegotiationCommand.h
  8076. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8077. Supported FTP server which don't recognize SIZE raw command.
  8078. If SIZE raw command is failed, aria2 will try to get file size
  8079. from the response of RETR raw command. If both attempts are failed,
  8080. then resuming and segmented downloading are disabled.
  8081. * src/FtpConnection.cc
  8082. * src/FtpConnection.h
  8083. * src/FtpNegotiationCommand.cc
  8084. * src/FtpNegotiationCommand.h
  8085. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. * Release 0.14.0+1
  8087. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8088. Bump up version number to 0.14.0+1
  8089. * src/configure.ac
  8090. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. Fixed the code that refers static member variable from non-static
  8092. context.
  8093. * src/DefaultPeerStorage.cc
  8094. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. * Release 0.14.0
  8096. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. Added build test script
  8098. * build_test.sh
  8099. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. Updated ja.po
  8101. * src/ja.po
  8102. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. Bump up version number to 0.14.0
  8104. * src/configure.ac
  8105. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8106. Updated ja.po and fr.po. Great thanks for french translators and
  8107. Sebastien WILLEMIJNS.
  8108. * po/fr.po
  8109. * po/ja.po
  8110. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Added configure option to enable/disable epoll support.
  8112. * configure.ac
  8113. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Updated man page.
  8115. * doc/aria2c.1.txt
  8116. * doc/aria2c.1
  8117. * doc/aria2c.1.html
  8118. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. Added missing default value '5' to the usage of --split option.
  8120. * src/HelpItemFactory.cc
  8121. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Filled up pieces based on the number of missing blocks, rather than
  8123. simplay the number of piece * block length.
  8124. * src/BtRequestFactory.h
  8125. * src/DefaultBtInteractive.cc
  8126. * src/DefaultBtInteractive.h
  8127. * src/DefaultBtRequestFactory.cc
  8128. * src/DefaultBtRequestFactory.h
  8129. * src/Piece.cc
  8130. * src/Piece.h
  8131. * test/BitfieldManTest.cc
  8132. * test/DefaultBtRequestFactoryTest.cc
  8133. * test/MockBtRequestFactory.h
  8134. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8135. Made _epEvents a member variable.
  8136. * src/DownloadEngine.cc
  8137. * src/DownloadEngine.h
  8138. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Cancel download if http redirect is bounded more than 20 times.
  8140. * src/AbstractCommand.cc
  8141. * src/HttpSkipResponseCommand.cc
  8142. * src/Request.cc
  8143. * src/Request.h
  8144. * test/RequestTest.cc
  8145. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8146. Fixed unhandled exception(removed keyword `new').
  8147. * src/SocketCore.cc (initEPOLL)
  8148. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Removed visit(const MetaEntry*)
  8150. * src/MetaEntryVisitor.h:
  8151. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8152. and made them virtual.
  8153. * src/BencodeVisitor.h
  8154. * src/BencodeVisitor.cc
  8155. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Updated po files.
  8157. * po/aria2c.pot
  8158. * po/*.po
  8159. * po/*.gmo
  8160. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8162. the number of socket to watch out.
  8163. * src/PeerInteractionCommand.cc
  8164. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. When there is not enough space in disk when writing a chunk of data,
  8166. aria2 now prints the message to the console to warn user and aborts
  8167. its download. Not all downloads are canceled because some downloads
  8168. may use another disk or partition. BUG#1640332
  8169. * src/AbstractDiskWriter.cc
  8170. * src/PeerAbstractCommand.cc
  8171. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8172. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8173. setHaltRequested(true) to cancel download.
  8174. * src/PeerInteractionCommand.h
  8175. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8177. socket from int to sock_t as sockets are unsigned in Windows.
  8178. For AsyncNameResolver, DownloadEngine, I did additional modification
  8179. for the portion of the code changed according to epoll support.
  8180. I defined sock_t in a2netcompat.h to use sock_t without including
  8181. SocketCore.h.
  8182. * src/AsyncNameResolver.cc
  8183. * src/AsyncNameResolver.h
  8184. * src/DownloadEngine.cc
  8185. * src/DownloadEngine.h
  8186. * src/SocketCore.cc
  8187. * src/SocketCore.h
  8188. * src/a2netcompat.h
  8189. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8191. changes in the patch were applied.
  8192. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8193. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8194. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8195. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8197. a2io.h and common.h were modified.
  8198. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8199. MinGW.
  8200. * src/common.h: Changed off_t to 64 bit in MinGW.
  8201. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8203. only a2netcompat.h is modified.
  8204. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8205. directives.
  8206. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8208. only gai_strerror.h is modified.
  8209. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8210. winsock errors in MinGW.
  8211. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8212. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8213. follow sources are applied.
  8214. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8215. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8216. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8217. I included locale.h from Platform.cc.
  8218. * src/main.cc: Moved common setup/teardown code to Platform class.
  8219. * test/AllTest.cc: Use Platform class.
  8220. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8221. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8223. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8224. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8225. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8227. aria2-0.13.2+1-mingw-2.patch.
  8228. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8229. systems which don't have termious.h. I moved the directive inside of
  8230. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8231. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8232. anyway.
  8233. * src/asctime_r.h
  8234. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8235. I added 2nd argument to the prototype declaration.
  8236. * src/StringFormat.cc: Get rid of vasprintf.
  8237. * src/getaddrinfo.h: Fixed constants.
  8238. * configure.ac: Added the check for asctime_r function.
  8239. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8240. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8241. Added writable test for Socket when the sending message is in progress.
  8242. Usually the sending message is piece message. Without wriable check,
  8243. upload latency is dropped to more than 1sec.
  8244. * src/PeerInteractionCommand.cc
  8245. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. Create only requested files and files which shares a piece with
  8247. requested file in multi-torrent downloads. Directory structures are
  8248. also created in the same rule.
  8249. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8250. DiskWriterEntry as in the previous implementation.
  8251. * src/MultiDiskWriter.cc
  8252. * src/MultiFileAllocationIterator.cc
  8253. * src/MultiFileAllocationIterator.h
  8254. * test/MultiFileAllocationIteratorTest.cc
  8255. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Commented out -lprofiler
  8257. * src/Makefile.am
  8258. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Bump up version number to 0.14.0b.
  8260. * src/configure.ac
  8261. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. Actively establish connection to peers in seeding, when peer cache
  8263. is not full and max upload speed limit is not reached.
  8264. * src/ActivePeerConnectionCommand.cc
  8265. * src/ActivePeerConnectionCommand.h
  8266. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8268. to make room more fleshy, recently found peers.
  8269. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8270. it.
  8271. * src/DefaultPeerStorage.cc
  8272. * test/DefaultPeerStorageTest.cc
  8273. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. Returns cached data only when the previous receiveHandshake() is called
  8275. with peek = true.
  8276. * src/PeerConnection.cc (receiveHandshake)
  8277. * src/PeerConnection.h (receiveHandshake)
  8278. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Changed default value of -s option from 1 to 5.
  8280. Also max value of -s option is changed from 5 to 16.
  8281. * src/HelpItemFactory.cc
  8282. * src/OptionHandlerFactory.cc
  8283. * src/option_processing.cc
  8284. * src/usage_text.h
  8285. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Changed -s options behavior. Now it means the number of connections
  8287. made simultaneously in each http/ftp download.
  8288. If 1 URL is specified, the behavior is the same with old implementation.
  8289. If -s N is given and more than N URLs are specified, first N URLs are
  8290. used and remaining URLs are used for backup. If less than N URLs are
  8291. specified, some of URLs are used more than once so that totally N
  8292. connections are made simultaneously.
  8293. * src/main.cc
  8294. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. Included missing iosfwd or ostream header.
  8296. * src/RequestGroupMan.cc
  8297. * src/TaggedItem.cc
  8298. * src/TaggedItem.h
  8299. * src/Util.cc
  8300. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8301. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8302. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8303. * src/HttpConnection.cc: Included missing sstream.
  8304. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8305. Added --bt-max-open-files option.
  8306. * src/DefaultPieceStorage.cc
  8307. * src/HelpItemFactory.cc
  8308. * src/MultiDiskAdaptor.cc
  8309. * src/MultiDiskAdaptor.h
  8310. * src/OptionHandlerFactory.cc
  8311. * src/option_processing.cc
  8312. * src/prefs.cc
  8313. * src/prefs.h
  8314. * src/usage_text.h
  8315. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. Fixed the bug that aria2 aborts when a path to a directory is given
  8317. in command-line.
  8318. * src/ProtocolDetector.cc
  8319. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. Limited the number files opened in each BitTorrent download. The default
  8321. value is 100. The option to change this value will be added.
  8322. * src/MultiDiskAdaptor.cc
  8323. * src/MultiDiskAdaptor.h
  8324. * src/MultiFileAllocationIterator.cc
  8325. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Fixed the bug that HTTP downloads don't start with old libraries.
  8327. * src/HttpHeaderProcessor.cc
  8328. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8329. Use empty() instead of size() > 0.
  8330. * src/HttpConnection.cc
  8331. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8332. Drop connection if the incoming peer ID is the same with localhost's
  8333. one. The previous implementation drops connection when incoming peer's
  8334. IP address is the same with localhost's one.
  8335. * src/PeerListenCommand.cc
  8336. * src/DefaultBtInteractive.cc
  8337. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8338. Returns cached data without checking whether socket is readable
  8339. if the cache is available.
  8340. * src/PeerConnection.cc (receiveHandshake)
  8341. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8342. Included stdint.h
  8343. * src/common.h
  8344. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8345. Removed duplicate HAVE_GETTIMEOFDAY
  8346. * src/Makefile.am
  8347. * src/Makefile.in
  8348. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Use interval as a minInterval when minInterval is not supplied.
  8350. * src/DefaultBtAnnounce.cc
  8351. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8353. attempt is failed, then 2nd attempt get kicked out more quickly.
  8354. And it is now static const member of DefaultBtAnnounce.
  8355. * src/DefaultBtAnnounce.h
  8356. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8358. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8359. * src/ActivePeerConnectionCommand.cc
  8360. * src/BtConstants.h
  8361. * src/BtRuntime.h
  8362. * src/DHTGetPeersCommand.cc
  8363. * src/DefaultBtAnnounce.cc
  8364. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8365. BtRuntime::MAX_PEERS.
  8366. * src/DefaultPeerStorage.h
  8367. * src/InitiatorMSEHandshakeCommand.cc
  8368. * src/PeerInitiateConnectionCommand.cc
  8369. * src/PeerInteractionCommand.cc
  8370. * src/PeerReceiveHandshakeCommand.cc
  8371. * src/TrackerWatcherCommand.cc
  8372. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8373. Always Connect to _numNewConnection
  8374. * src/ActivePeerConnectionCommand.cc
  8375. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. Made `begin' unsigned int.
  8377. * src/GrowSegment.h
  8378. * src/Piece.cc
  8379. * src/Piece.h
  8380. * src/PiecedSegment.cc
  8381. * src/PiecedSegment.h
  8382. * src/Segment.h
  8383. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Calculate piece hash when data is arrived if the data is arrived in
  8385. order. This removes additional read operation for hash calculation.
  8386. If the data is arrived in out of order, the hash is calucated when the
  8387. piece is completed. This is the same behavior as the old implementation.
  8388. * src/BtPieceMessage.cc
  8389. * src/DefaultBtProgressInfoFile.cc
  8390. * src/DefaultPieceStorage.cc
  8391. * src/DownloadCommand.cc
  8392. * src/DownloadCommand.h
  8393. * src/DownloadEngine.cc
  8394. * src/GrowSegment.cc
  8395. * src/GrowSegment.h
  8396. * src/Piece.cc
  8397. * src/Piece.h
  8398. * src/PiecedSegment.cc
  8399. * src/PiecedSegment.h
  8400. * src/Segment.h
  8401. * test/PieceTest.cc
  8402. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8403. Try to keep the ordering of outgoing piece message.
  8404. * src/DefaultBtMessageDispatcher.cc
  8405. (DefaultBtMessageDispatcher::sendMessages)
  8406. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Fixed busy loop when error/hup epoll events occur.
  8408. * src/AbstractCommand.cc
  8409. * src/PeerAbstractCommand.cc
  8410. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Added --bt-request-peer-speed-limit option, which was a constant
  8412. SLOW_SPEED_THRESHOLD.
  8413. * src/ActivePeerConnectionCommand.cc
  8414. * src/ActivePeerConnectionCommand.h
  8415. * src/BtConstants.h
  8416. * src/HelpItemFactory.cc
  8417. * src/OptionHandlerFactory.cc
  8418. * src/PeerReceiveHandshakeCommand.cc
  8419. * src/option_processing.cc
  8420. * src/prefs.cc
  8421. * src/prefs.h
  8422. * src/usage_text.h
  8423. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Removed repeated call of getTopDirPath(). Instead, call it once and
  8425. cache the result.
  8426. * src/MultiDiskAdaptor.cc
  8427. * src/MultiDiskAdaptor.h
  8428. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8429. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Fixed compile error on debian etch.
  8431. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8432. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8433. it is undefined.
  8434. * src/Util.cc (ULLONG_MAX)
  8435. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. Added epoll support. Use epoll if it is available. If not, use select.
  8437. When async dns is enabled in compile time, epoll support is enabled
  8438. only when aria2 is built with c-ares. This condition statement is
  8439. defined in a2io.h.
  8440. Currently aria2 supports both c-ares and ares, but ares is maintained
  8441. for quite a while and debian already has c-ares package, ares support
  8442. will be dropped in the future version.
  8443. * configure.ac
  8444. * src/AbstractCommand.cc
  8445. * src/AsyncNameResolver.cc
  8446. * src/AsyncNameResolver.h
  8447. * src/Command.cc
  8448. * src/Command.h
  8449. * src/DownloadEngine.cc
  8450. * src/DownloadEngine.h
  8451. * src/PeerAbstractCommand.cc
  8452. * src/SocketCore.cc
  8453. * src/SocketCore.h
  8454. * src/a2io.h
  8455. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8456. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8457. directive.
  8458. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8459. Do not do write operation to /dev/null file.
  8460. * src/LogFactory.cc
  8461. * src/SimpleLogger.cc
  8462. Replaced vasprintf with vsnprintf
  8463. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8464. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. * src/BtRequestMessage.cc
  8466. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8467. for segmentation fault caused by previous commit.
  8468. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8469. Reduced the usage of gettimeofday().
  8470. * src/DefaultBtMessageDispatcher.cc
  8471. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8472. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8473. * src/RequestSlot.cc
  8474. * src/RequestSlot.h
  8475. (RequestSlot::isTimeout)
  8476. Made RequestSlot have a reference to Piece object to avoid find
  8477. Piece repeatedly.
  8478. * src/DefaultBtMessageDispatcher.cc
  8479. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8480. * src/RequestSlot.cc
  8481. * src/RequestSlot.h
  8482. (RequestSlot::getPiece)
  8483. * test/DefaultBtMessageDispatcherTest.cc
  8484. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. * src/TimeA2.cc
  8486. * src/TimeA2.h
  8487. (Time::difference): New function.
  8488. (Time::elapsed): Done optimization.
  8489. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8491. directive.
  8492. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8493. * src/option_processing.cc: Added missing `defined' keyword to #if
  8494. directive.
  8495. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8496. Bump up version number to 0.13.2+1
  8497. * src/configure.ac
  8498. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8499. Refactored broken outstanding piece handling.
  8500. * src/DefaultPieceStorage.cc
  8501. * src/DefaultPieceStorage.h
  8502. * src/Piece.cc
  8503. * src/Piece.h
  8504. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8506. name collision of static variable and predefined macro.
  8507. * src/BtContext.cc
  8508. * src/BtContext.h
  8509. * src/CookieBoxFactory.cc
  8510. * src/CookieBoxFactory.h
  8511. * src/CookieParser.cc
  8512. * src/CookieParser.h
  8513. * src/DefaultBtContext.cc
  8514. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. * src/RequestGroup.cc
  8516. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8517. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8518. * Release 0.13.2
  8519. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8520. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8521. * po/fr.po
  8522. * po/ja.po
  8523. * po/aria2c.pot
  8524. * po/*.po
  8525. * po/*.gmo
  8526. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8527. Bump up version number to 0.13.2
  8528. * src/configure.ac
  8529. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Refactord.
  8531. * src/RequestGroupMan.cc
  8532. (removeStoppedGroup)
  8533. (fillRequestGroupFromReserver)
  8534. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Fixed compile error on Ubuntu.
  8536. * src/BtPieceMessage.cc
  8537. * src/MessageDigestHelper.cc
  8538. * src/Util.cc
  8539. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Fixed compile error when configured with --disable-bittorrent
  8541. * test/DownloadHandlerFactoryTest.cc
  8542. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. Done make update-po
  8544. * po/aria2c.pot
  8545. * po/*.po
  8546. * po/*.gmo
  8547. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8548. Bump up version number to 0.13.2rc.
  8549. * src/configure.ac
  8550. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. Made option name bold. Updated SYNOPSIS to make it more readable.
  8552. * doc/aria2c.1.txt
  8553. * doc/aria2c.1
  8554. * doc/aria2c.1.html
  8555. * src/version_usage.cc
  8556. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Refactored. Use std::string instead of size and char*.
  8558. * Data.cc
  8559. * Data.h
  8560. * test/Data.cc
  8561. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8562. Added trimSelf(). Rewritten trim() to use trimSelf().
  8563. * Util.cc
  8564. * Util.h
  8565. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8567. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. Fixed compile error when configured with --disable-metalink.
  8569. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8570. * test/FeatureConfigTest.cc
  8571. * test/DownloadHandlerFactoryTest.cc
  8572. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Fixed compile error when configured with --without-gnutls
  8574. --without-openssl
  8575. * src/main.cc
  8576. * test/DefaultBtProgressInfoFileTest.cc
  8577. * test/SegmentManTest.cc
  8578. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Fixed compile error with OpenSSL.
  8580. * src/IteratableChunkChecksumValidator.cc
  8581. * src/LibsslDHKeyExchange.h
  8582. * src/MessageDigestHelper.cc
  8583. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Revert the default value of --max-concurrent-downloads to 5.
  8585. Revert the default value of --metalink-servers to 5.
  8586. Man pages was also updated.
  8587. * src/option_processing.cc
  8588. * doc/aria2c.1.txt
  8589. * doc/aria2c.1.html
  8590. * doc/aria2c.1
  8591. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. Returns const reference:
  8593. DownloadContext::getPieceHash, DownloadContext::getName,
  8594. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8595. BtContext::getInfoHashAsString,
  8596. * src/BtContext.h
  8597. * src/DefaultBtContext.cc
  8598. * src/DefaultBtContext.h
  8599. * src/DownloadContext.h
  8600. * src/SingleFileDownloadContext.h
  8601. * test/MockBtContext.h
  8602. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. * src/RequestGroup.h (getDir): Removed.
  8604. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Returns const reference. The internal urlencode function was optimized
  8606. a little bit.
  8607. * src/Request.cc
  8608. * src/Request.h
  8609. * src/HttpRequest.cc
  8610. * src/HttpRequest.h
  8611. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8612. Defined option name and possible values as std::string to reduce
  8613. temporary string object creation in runtime.
  8614. * src/HelpItemFactory.cc
  8615. * src/LogFactory.cc
  8616. * src/Option.cc
  8617. * src/OptionHandlerFactory.cc
  8618. * src/option_processing.cc
  8619. * src/prefs.cc
  8620. * src/prefs.h
  8621. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Return const reference.
  8623. * src/DownloadHandlerConstants.cc
  8624. * src/DownloadHandlerConstants.h
  8625. (getMetalinkExtensions)
  8626. (getMetalinkContentTypes)
  8627. (getBtExtensions)
  8628. (getBtContentTypes)
  8629. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. * src/HttpHeader.cc (get): Rewritten.
  8631. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Make HttpHeader::getFirst(...) return const reference.
  8633. * src/HttpHeader.cc
  8634. * src/HttpHeader.h
  8635. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8636. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8637. it with V_TRUE.
  8638. * src/DefaultPieceStorage.cc
  8639. * src/DownloadCommand.cc
  8640. * src/FtpNegotiationCommand.cc
  8641. * src/HttpRequest.cc
  8642. * src/InitiateConnectionCommand.cc
  8643. * src/RequestGroup.cc
  8644. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Made Option::get(...) return const reference of std::string.
  8646. * src/Option.cc
  8647. * src/Option.h
  8648. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Replaced std:copy with insert.
  8650. * src/DefaultBtMessageDispatcher.cc
  8651. * src/DefaultPieceStorage.cc
  8652. * src/DownloadEngineFactory.cc
  8653. * src/RequestGroup.cc
  8654. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Included SocketCore.h to fix compiler warning.
  8656. * src/InitiateConnectionCommand.cc
  8657. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Put piece selection strategy algorithm to RarestPieceSelector class,
  8659. Added a switch to choose whether randomized selection so that unit
  8660. tests emit same results in, possibly, win32.
  8661. * src/DefaultPieceStorage.cc
  8662. * src/DefaultPieceStorage.h
  8663. * src/RarestPieceSelector.cc
  8664. * src/RarestPieceSelector.h
  8665. * test/DefaultPieceStorageTest.cc
  8666. * test/RarestPieceSelectorTest.cc
  8667. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Don't pool connection if HTTP proxy is enabled.
  8669. * src/FtpFinishDownloadCommand.cc
  8670. * src/FtpNegotiationCommand.cc
  8671. * src/HttpSkipResponseCommand.cc
  8672. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8674. * src/AbstractCommand.cc
  8675. * src/AbstractCommand.h
  8676. * src/ActivePeerConnectionCommand.cc
  8677. * src/FtpInitiateConnectionCommand.cc
  8678. * src/HttpInitiateConnectionCommand.cc
  8679. * src/InitiateConnectionCommandFactory.cc
  8680. * src/PeerAbstractCommand.cc
  8681. * src/PeerAbstractCommand.h
  8682. * src/PeerInitiateConnectionCommand.cc
  8683. * src/TrackerWatcherCommand.cc
  8684. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Sort RequestSlot in ascending order and manipulate them using
  8686. lower_bound.
  8687. * src/DefaultBtMessageDispatcher.cc
  8688. * src/DefaultBtMessageDispatcher.h
  8689. (getMessageQueue): Added const qualifier.
  8690. (getRequestSlots): Added const qualifier.
  8691. (sendMessages): Use empty() instead of size().
  8692. (doCancelSendingPieceAction): Use HandleEvent object.
  8693. (doAbortOutstandingRequestAction): Rewritten.
  8694. (doChokedAction): Rewritten.
  8695. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8696. (isOutstandingRequest): Rewritten.
  8697. (getOutstandingRequest): Rewritten.
  8698. (removeOutstandingRequest): Rewritten.
  8699. (addOutstandingRequest): Rewritten.
  8700. * src/RequestSlot.cc
  8701. * src/RequestSlot.h
  8702. (operator=): Rewritten.
  8703. (operator!=): New function.
  8704. (operator<): New function.
  8705. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8706. * src/DefaultBtRequestFactory.cc
  8707. (doChokedAction): Rewritten.
  8708. (removeCompletedPiece): Rewritten.
  8709. (removeTargetPiece): Rewritten.
  8710. (createRequestMessages): Added the debug log.
  8711. (createRequestMessagesOnEndGame: Added the debug log.
  8712. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8713. Added the debug log message.
  8714. * src/BtPieceMessage.cc (doReceivedAction)
  8715. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8716. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8717. used lower_bound to process them rather than linear search.
  8718. * src/DHTPeerAnnounceStorage.cc
  8719. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8720. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8721. peer has at least one completed piece.
  8722. * src/Peer.cc
  8723. * src/Peer.h
  8724. * src/PeerInteractionCommand.cc
  8725. * src/PeerSessionResource.cc
  8726. * src/PeerSessionResource.h
  8727. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8728. Removed unnecessary sorting
  8729. * src/DefaultPieceStorage (DefaultPieceStorage)
  8730. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8731. Rewritten the portion of the code that mangaes allowed fast indexes.
  8732. * src/PeerSessionResource.cc
  8733. * src/PeerSessionResource.h
  8734. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8735. Removed the invalid string including '\r' from ru.po and
  8736. did make update-po.
  8737. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Added --log-level and --summary-interval to man page.
  8739. * doc/aria2c.1.txt
  8740. * doc/aria2c.1.html
  8741. * doc/aria2c.1
  8742. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8743. Added --log-level option to specify log level. Log messages under
  8744. the specified level are not output. Default value is `debug'.
  8745. * src/HelpItemFactory.cc
  8746. * src/LogFactory.cc
  8747. * src/LogFactory.h
  8748. * src/Logger.h
  8749. * src/OptionHandlerFactory.cc
  8750. * src/SimpleLogger.cc
  8751. * src/SimpleLogger.h
  8752. * src/main.cc
  8753. * src/option_processing.cc
  8754. * src/prefs.h
  8755. * src/usage_text.h
  8756. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Print download progress summary of all parallel downloads in specified
  8758. interval, default 60 secs. While aria2 could download several files
  8759. in parallel (see -j option), it displayed just first download progress,
  8760. and the other downloads are hidden from the users. This new feature
  8761. prints all downloads currently in-progress to the console so that you
  8762. can check the status of all downloads. The interval can be adjusted
  8763. by --summary-interval option.
  8764. The progress readout is now cut so that all fits in the one line of
  8765. console.
  8766. * src/ConsoleStatCalc.cc
  8767. * src/ConsoleStatCalc.h
  8768. * src/HelpItemFactory.cc
  8769. * src/OptionHandlerFactory.cc
  8770. * src/RequestGroupMan.cc
  8771. * src/RequestGroupMan.h
  8772. * src/main.cc
  8773. * src/option_processing.cc
  8774. * src/prefs.h
  8775. * src/usage_text.h
  8776. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8778. * src/DownloadEngine.cc (DownloadEngine)
  8779. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8780. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8781. defined.
  8782. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8783. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8784. Use erase+lower_bound+insert instead of sort.
  8785. * src/DefaultPieceStorage.cc (addPieceStats)
  8786. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8788. * src/A2STR.cc
  8789. * src/A2STR.h
  8790. * src/OptionParser.cc (parse)
  8791. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. Defined fake filename `[tracker.announce]' as static const std::string.
  8793. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8794. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Defined default filename `index.html' as static const std::string
  8796. * src/SingleFileDownloadContext.cc
  8797. * src/SingleFileDownloadContext.h
  8798. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Defined "[MEMORY]" as static const std::string.
  8800. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8801. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8802. Defined control file's version number as static const std::string.
  8803. * src/DefaultBtProgressInfoFile.cc
  8804. * src/DefaultBtProgressInfoFile.h
  8805. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8806. Use Request::METHOD_GET
  8807. * src/RequestGroup.cc (createNextCommandWithAdj)
  8808. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8809. Defined "OK", "ERR", "INPR" as static const std::string
  8810. * src/RequestGroupMan.cc (showDownloadResults)
  8811. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8812. Defined default client used in extended handshake as static const
  8813. std::string
  8814. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8815. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8816. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8817. * src/HttpConnection.cc (eraseConfidentialInfo)
  8818. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8819. Defined default ftp user and password as static const std::string
  8820. * src/AuthConfigFactory.cc
  8821. * src/AuthConfigFactory.h
  8822. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. Defined strings used in netrc as static const std::string
  8824. * src/Netrc.cc
  8825. * src/Netrc.h
  8826. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Defined HTTP status as static const std::string
  8828. * src/AbstractProxyResponseCommand.cc
  8829. * src/HttpHeader.cc
  8830. * src/HttpHeader.h
  8831. * src/HttpResponse.cc
  8832. * src/HttpResponseCommand.cc
  8833. * src/HttpSkipResponseCommand.cc
  8834. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Defined "\r\n", "A", "I" as static const std::string
  8836. * src/A2STR.cc
  8837. * src/A2STR.h
  8838. * src/FtpConnection.cc
  8839. * src/FtpConnection.h
  8840. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Added COLON_C(".") and used it in Request::parseUrl()
  8842. * src/A2STR.cc
  8843. * src/A2STR.h
  8844. * src/Request.cc (parseUrl)
  8845. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8846. Changed the type of padName from `const std::string&' to `const char*'.
  8847. * src/MSEHandshake.cc (verifyPadLength)
  8848. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8849. Defined "sha1" as static const std::string.
  8850. * src/MetalinkParserController.cc
  8851. * src/MetalinkParserController.h
  8852. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. Defined message digest algorithm name as static const std::string
  8854. * src/DHTTokenTracker.cc
  8855. * src/DHTUtil.cc
  8856. * src/DefaultBtContext.cc
  8857. * src/MSEHandshake.cc
  8858. * src/MessageDigestHelper.cc
  8859. * src/Peer.cc
  8860. * src/messageDigest.cc
  8861. * src/messageDigest.h
  8862. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Made string literals used in SAX parser static const std::string.
  8864. * src/FileMetalinkParserState.cc
  8865. * src/FileMetalinkParserState.h
  8866. * src/FilesMetalinkParserState.cc
  8867. * src/FilesMetalinkParserState.h
  8868. * src/InitialMetalinkParserState.cc
  8869. * src/InitialMetalinkParserState.h
  8870. * src/MetalinkMetalinkParserState.cc
  8871. * src/MetalinkMetalinkParserState.h
  8872. * src/PiecesMetalinkParserState.cc
  8873. * src/PiecesMetalinkParserState.h
  8874. * src/ResourcesMetalinkParserState.cc
  8875. * src/ResourcesMetalinkParserState.h
  8876. * src/VerificationMetalinkParserState.cc
  8877. * src/VerificationMetalinkParserState.h
  8878. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8880. * src/A2STR.cc
  8881. * src/A2STR.h
  8882. * src/File.cc
  8883. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Defined static const std::string IP("ip"), PORT("port") and use them
  8885. instead of string literals.
  8886. * src/DefaultPeerListProcessor.cc
  8887. * src/DefaultPeerListProcessor.h
  8888. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Made string literals for torrent file processing static const
  8890. std::string.
  8891. * src/BtContext.cc
  8892. * src/BtContext.h
  8893. * src/DefaultBtContext.cc
  8894. * src/DefaultBtContext.h
  8895. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Made string literal for tracker response static const std::string
  8897. * src/BtAnnounce.cc
  8898. * src/BtAnnounce.h
  8899. * src/DefaultBtAnnounce.cc
  8900. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Use DHTMessage::T instead of "t".
  8902. * src/DHTMessageTracker.cc (messageArrived)
  8903. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Made keyName static const. Made trimmed charset static const
  8905. std::string.
  8906. * src/Util.cc (getContentDispositionFilename)
  8907. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8908. Made USER_AGENT const. Made "/" static const std::string.
  8909. * src/A2STR.cc
  8910. * src/A2STR.h
  8911. * src/HttpRequest.cc
  8912. * src/HttpRequest.h
  8913. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8914. Made string listeral to static const std::string:
  8915. "Content-Range", "Content-Length"
  8916. * src/HttpHeader.cc
  8917. * src/HttpHeader.h
  8918. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Made string listeral to static const std::string.
  8920. * src/HttpConnection.cc
  8921. * src/HttpHeader.cc
  8922. * src/HttpHeader.h
  8923. * src/HttpResponse.cc
  8924. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. Made string listeral to static const std::string.
  8926. * src/A2STR.cc
  8927. * src/A2STR.h
  8928. * src/SimpleLogger.cc
  8929. * src/SimpleLogger.h
  8930. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8931. Made string literal to static const std::string.
  8932. Rewritten CookieParser::setField.
  8933. * src/A2STR.cc
  8934. * src/A2STR.h
  8935. * src/CookieBoxFactory.cc
  8936. * src/CookieBoxFactory.h
  8937. * src/CookieParser.cc
  8938. * src/CookieParser.h
  8939. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8940. Made string literal to static const std::string
  8941. * src/DHTAbstractMessage.cc
  8942. * src/DHTAnnouncePeerMessage.cc
  8943. * src/DHTAnnouncePeerMessage.h
  8944. * src/DHTAnnouncePeerReplyMessage.cc
  8945. * src/DHTAnnouncePeerReplyMessage.h
  8946. * src/DHTFindNodeMessage.cc
  8947. * src/DHTFindNodeMessage.h
  8948. * src/DHTFindNodeReplyMessage.cc
  8949. * src/DHTFindNodeReplyMessage.h
  8950. * src/DHTGetPeersMessage.cc
  8951. * src/DHTGetPeersMessage.h
  8952. * src/DHTGetPeersReplyMessage.cc
  8953. * src/DHTGetPeersReplyMessage.h
  8954. * src/DHTMessage.cc
  8955. * src/DHTMessage.h
  8956. * src/DHTMessageFactoryImpl.cc
  8957. * src/DHTMessageReceiver.cc
  8958. * src/DHTPingMessage.cc
  8959. * src/DHTPingMessage.h
  8960. * src/DHTPingReplyMessage.cc
  8961. * src/DHTPingReplyMessage.h
  8962. * src/DHTQueryMessage.cc
  8963. * src/DHTQueryMessage.h
  8964. * src/DHTResponseMessage.cc
  8965. * src/DHTResponseMessage.h
  8966. * src/DHTUnknownMessage.cc
  8967. * src/DHTUnknownMessage.h
  8968. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Made string literal to static const std::string
  8970. * src/BtChokeMessage.cc (toString)
  8971. * src/BtHaveAllMessage.cc (toString)
  8972. * src/BtHaveNoneMessage.cc (toString)
  8973. * src/BtInterestedMessage.cc (toString)
  8974. * src/BtNotInterestedMessage.cc (toString)
  8975. * src/BtUnchokeMessage.cc (toString)
  8976. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. Replaced "" with static const variable A2STR::NIL.
  8978. Replaced string comparison against "" with std::string::empty().
  8979. Added PROTO_* to Request class and use them as a protocol string
  8980. constant.
  8981. Made "started", "stopped", "completed" static const variable in
  8982. AnnounceList class.
  8983. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8984. Updated translations. Great thanks to translators.
  8985. * po/ca.po
  8986. * po/de.po
  8987. * po/fr.po
  8988. * po/it.po
  8989. * po/ja.po
  8990. * po/ru.po
  8991. * po/zh_CN.po
  8992. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8993. Updated man page; categorized options and fixed typo.
  8994. * doc/aria2c.1.txt
  8995. * doc/aria2c.1.html
  8996. * doc/aria2c.1
  8997. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8998. Removed const ref
  8999. * src/MetalinkEntry.cc (AddProtocolPreference)
  9000. * src/RequestGroup.cc (FindServerHostByHostname)
  9001. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9002. Rewritten Accept-Features handling.
  9003. * src/HttpRequestCommand.cc (createHttpRequest)
  9004. * src/a2functional.h
  9005. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. Changed method signature:
  9007. DHTAbstractNodeLookupTask::toEntries
  9008. * src/DHTAbstractNodeLookupTask.cc
  9009. * src/DHTAbstractNodeLookupTask.h
  9010. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Changed method signature:
  9012. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9013. * src/BtContext.h
  9014. * src/DefaultBtContext.cc
  9015. * src/DefaultBtContext.h
  9016. * src/DefaultBtInteractive.cc
  9017. * test/DefaultBtContextTest.cc
  9018. * test/MockBtContext.h
  9019. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Changed method signature:
  9021. MultiFileAllocationIterator::makeDiskWriterEntries
  9022. * src/MultiFileAllocationIterator.cc
  9023. * src/MultiFileAllocationIterator.h
  9024. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. Changed method sinature:
  9026. MetalinkEntry::toFileEntry,
  9027. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9028. Metalinker::queryEntry
  9029. * src/Metalink2RequestGroup.cc
  9030. * src/MetalinkEntry.cc
  9031. * src/MetalinkEntry.h
  9032. * src/MetalinkHelper.cc
  9033. * src/MetalinkHelper.h
  9034. * src/Metalinker.cc
  9035. * src/Metalinker.h
  9036. * src/main.cc
  9037. * test/MetalinkHelperTest.cc
  9038. * test/MetalinkerTest.cc
  9039. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Changed method sinature:
  9041. RequestGroup::getURIs
  9042. * src/RequestGroup.cc
  9043. * src/RequestGroup.h
  9044. * test/Metalink2RequestGroupTest.cc
  9045. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9046. Changed method signature:
  9047. PeerListProcessor::extractPeer
  9048. * src/CompactPeerListProcessor.cc
  9049. * src/CompactPeerListProcessor.h
  9050. * src/DefaultBtAnnounce.cc
  9051. * src/DefaultPeerListProcessor.cc
  9052. * src/DefaultPeerListProcessor.h
  9053. * src/DelegatingPeerListProcessor.cc
  9054. * src/DelegatingPeerListProcessor.h
  9055. * src/PeerListProcessor.h
  9056. * src/UTPexExtensionMessage.cc
  9057. * test/DefaultPeerListProcessorTest.cc
  9058. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9059. Changed method signature:
  9060. BtRequestFactory::createRequestMessages,
  9061. BtRequestFactory::createRequestMessagesOnEndGame
  9062. * src/BtRequestFactory.h
  9063. * src/DefaultBtInteractive.cc
  9064. * src/DefaultBtRequestFactory.cc
  9065. * src/DefaultBtRequestFactory.h
  9066. * test/DefaultBtRequestFactoryTest.cc
  9067. * test/MockBtRequestFactory.h
  9068. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9069. Changed method signature:
  9070. PieceStorage::getInFlightPieces
  9071. * src/DefaultBtProgressInfoFile.cc
  9072. * src/DefaultPieceStorage.cc
  9073. * src/DefaultPieceStorage.h
  9074. * src/PieceStorage.h
  9075. * src/UnknownLengthPieceStorage.cc
  9076. * src/UnknownLengthPieceStorage.h
  9077. * test/DefaultBtProgressInfoFileTest.cc
  9078. * test/MockPieceStorage.h
  9079. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9080. Changed method signature:
  9081. PostDownloadHandler::getNextRequestGroups
  9082. Metalink2RequestGroup::generate
  9083. RequestGroup::postDownloadProcessing
  9084. * src/BtPostDownloadHandler.cc
  9085. * src/BtPostDownloadHandler.h
  9086. * src/Metalink2RequestGroup.cc
  9087. * src/Metalink2RequestGroup.h
  9088. * src/MetalinkPostDownloadHandler.cc
  9089. * src/MetalinkPostDownloadHandler.h
  9090. * src/PostDownloadHandler.h
  9091. * src/RequestGroup.cc
  9092. * src/RequestGroup.h
  9093. * src/RequestGroupMan.cc
  9094. * src/main.cc
  9095. * test/BtPostDownloadHandlerTest.cc
  9096. * test/Metalink2RequestGroupTest.cc
  9097. * test/MetalinkPostDownloadHandlerTest.cc
  9098. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9099. Rewritten AccRequestGroup
  9100. * src/main.cc
  9101. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9102. Rewritten.
  9103. * src/TaggedItem.cc (toTagString)
  9104. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9105. Rewritten Accept-Features handling.
  9106. * src/HttpRequestCommand.cc (createHttpRequest)
  9107. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9108. Rewritten accept types handling.
  9109. * HttpRequest.cc (createRequest)
  9110. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. Rewritten
  9112. * src/FeatureConfig.cc (featureSummary)
  9113. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9114. Changed method signature:
  9115. PeerStorage::getActivePeers
  9116. * src/DHTPeerAnnounceEntry.cc
  9117. * src/DefaultPeerStorage.cc
  9118. * src/DefaultPeerStorage.h
  9119. * src/PeerStorage.h
  9120. * test/DefaultPeerStorageTest.cc
  9121. * test/MockPeerStorage.h
  9122. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9123. Changed method signature:
  9124. DHTPeerAnnounceStorage::getPeers,
  9125. DHTPeerAnnounceEntry::getPeers
  9126. * src/DHTGetPeersMessage.cc
  9127. * src/DHTPeerAnnounceEntry.cc
  9128. * src/DHTPeerAnnounceEntry.h
  9129. * src/DHTPeerAnnounceStorage.cc
  9130. * src/DHTPeerAnnounceStorage.h
  9131. * test/DHTAnnouncePeerMessageTest.cc
  9132. * test/DHTPeerAnnounceEntryTest.cc
  9133. * test/DHTPeerAnnounceStorageTest.cc
  9134. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9135. Changed method signature:
  9136. NameResolver::resolve
  9137. * src/DHTEntryPointNameResolveCommand.cc
  9138. * src/InitiateConnectionCommand.cc
  9139. * src/NameResolver.cc
  9140. * src/NameResolver.h
  9141. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. Changed method signature:
  9143. PieceStorage::getAdvertisedPieceIndexes
  9144. * src/DefaultBtInteractive.cc
  9145. * src/DefaultPieceStorage.cc
  9146. * src/DefaultPieceStorage.h
  9147. * src/PieceStorage.h
  9148. * src/UnknownLengthPieceStorage.h
  9149. * test/MockPieceStorage.h
  9150. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Changed method signature:
  9152. SegmentMan::getInFlightSegment
  9153. * src/AbstractCommand.cc
  9154. * src/SegmentMan.cc
  9155. * src/SegmentMan.h
  9156. * test/SegmentManTest.cc
  9157. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9158. Changed method signature:
  9159. DHTAbstractNodeLookupTask::getNodesFromMessage
  9160. * src/DHTAbstractNodeLookupTask.cc
  9161. * src/DHTAbstractNodeLookupTask.h
  9162. * src/DHTNodeLookupTask.cc
  9163. * src/DHTNodeLookupTask.h
  9164. * src/DHTPeerLookupTask.cc
  9165. * src/DHTPeerLookupTask.h
  9166. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9168. * src/AbstractCommand.cc
  9169. * src/BtCheckIntegrityEntry.cc
  9170. * src/BtCheckIntegrityEntry.h
  9171. * src/BtFileAllocationEntry.cc
  9172. * src/BtFileAllocationEntry.h
  9173. * src/BtSetup.cc
  9174. * src/BtSetup.h
  9175. * src/CheckIntegrityCommand.cc
  9176. * src/CheckIntegrityEntry.h
  9177. * src/ChecksumCheckIntegrityEntry.cc
  9178. * src/ChecksumCheckIntegrityEntry.h
  9179. * src/DHTSetup.cc
  9180. * src/DHTSetup.h
  9181. * src/DownloadEngine.cc
  9182. * src/FileAllocationCommand.cc
  9183. * src/FileAllocationEntry.h
  9184. * src/RequestGroup.cc
  9185. * src/RequestGroup.h
  9186. * src/RequestGroupMan.cc
  9187. * src/RequestGroupMan.h
  9188. * src/StreamCheckIntegrityEntry.cc
  9189. * src/StreamCheckIntegrityEntry.h
  9190. * src/StreamFileAllocationEntry.cc
  9191. * src/StreamFileAllocationEntry.h
  9192. * src/TrackerWatcherCommand.cc
  9193. * src/a2functional.h
  9194. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Changed method signature:
  9196. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9197. DHTBucket::getGoodNodes,
  9198. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9199. * src/BNode.cc
  9200. * src/BNode.h
  9201. * src/DHTAbstractNodeLookupTask.cc
  9202. * src/DHTAutoSaveCommand.cc
  9203. * src/DHTBucket.cc
  9204. * src/DHTBucket.h
  9205. * src/DHTBucketRefreshTask.cc
  9206. * src/DHTFindNodeMessage.cc
  9207. * src/DHTGetPeersMessage.cc
  9208. * src/DHTRoutingTable.cc
  9209. * src/DHTRoutingTable.h
  9210. * test/BNodeTest.cc
  9211. * test/DHTBucketTest.cc
  9212. * test/DHTRoutingTableTest.cc
  9213. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. In piece selection functions, Pass std::deque<...> by reference rather
  9215. than returning it.
  9216. * src/BitfieldMan.cc
  9217. * src/BitfieldMan.h
  9218. * src/DefaultBtRequestFactory.cc
  9219. * src/DefaultPieceStorage.cc
  9220. * src/Piece.cc
  9221. * src/Piece.h
  9222. * test/BitfieldManTest.cc
  9223. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. Implemented rarest piece first piece selection strategy.
  9225. * src/AbstractBtMessage.cc
  9226. * src/AbstractBtMessage.h
  9227. * src/BitfieldMan.cc
  9228. * src/BitfieldMan.h
  9229. * src/BtBitfieldMessage.cc
  9230. * src/BtHaveAllMessage.cc
  9231. * src/BtHaveMessage.cc
  9232. * src/DefaultPieceStorage.cc
  9233. * src/DefaultPieceStorage.h
  9234. * src/PeerInteractionCommand.cc
  9235. * src/PieceStorage.h
  9236. * src/UnknownLengthPieceStorage.h
  9237. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9238. Rewritten readData and writeData.
  9239. * src/MultiDiskAdaptor.cc
  9240. * src/MultiDiskAdaptor.h
  9241. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. Move \n out of the message "Usage: ...".
  9243. * src/version_usage.cc
  9244. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. Bump up version number to 0.13.2b.
  9246. * configure.ac
  9247. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9248. Added const qualifier to argument Exception& e.
  9249. * src/Logger.h
  9250. * src/SimpleLogger.cc
  9251. * src/SimpleLogger.h
  9252. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9253. Pool connection when CWD, SIZE command fails.
  9254. * src/FtpNegotiationCommand.cc
  9255. * src/FtpNegotiationCommand.h
  9256. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9258. * src/HttpResponseCommand.cc
  9259. * src/HttpSkipResponseCommand.cc
  9260. * src/HttpSkipResponseCommand.h
  9261. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9262. Pool connection when a server returns 4xx, 5xx responses.
  9263. * src/HttpNullDownloadCommand.cc
  9264. * src/HttpNullDownloadCommand.h
  9265. * src/HttpResponse.cc
  9266. * src/HttpResponse.h
  9267. * src/HttpResponseCommand.cc
  9268. * src/HttpResponseCommand.h
  9269. * test/HttpResponseTest.cc
  9270. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9271. Print usage when no URL is specifed or bad command-line option is
  9272. specified.
  9273. * src/HelpItemFactory.cc
  9274. * src/help_tags.h
  9275. * src/option_processing.cc
  9276. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9277. Removed duplicate log message.
  9278. * src/AbstractCommand.cc (asyncResolveHostname)
  9279. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9280. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9281. Changed -j option's default value from 5 to 1.
  9282. Added new examples using protocol auto detection feature.
  9283. Removed -T, -M usage where it can be omitted.
  9284. * doc/aria2c.1.txt
  9285. * doc/aria2c.1.html
  9286. * doc/aria2c.1.txt
  9287. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Updated command-line usage text, so that it tells users that they
  9289. can specify any number of torrent files and metalink files in
  9290. command-line.
  9291. * src/version_usage.cc
  9292. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Changed the default value of -j option to 1.
  9294. * src/HelpItemFactory.cc
  9295. * src/option_processing.cc
  9296. * src/usage_text.h
  9297. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9298. Added the ability to reuse connection in FTP and it is enabled by
  9299. default. It can be disabled by --ftp-reuse-connection=false option.
  9300. * src/Command.cc
  9301. * src/DownloadCommand.cc
  9302. * src/FtpDownloadCommand.cc
  9303. * src/FtpDownloadCommand.h
  9304. * src/FtpFinishDownloadCommand.cc
  9305. * src/FtpFinishDownloadCommand.h
  9306. * src/FtpInitiateConnectionCommand.cc
  9307. * src/FtpNegotiationCommand.cc
  9308. * src/FtpNegotiationCommand.h
  9309. * src/HelpItemFactory.cc
  9310. * src/Makefile.am
  9311. * src/Makefile.in
  9312. * src/OptionHandlerFactory.cc
  9313. * src/option_processing.cc
  9314. * src/prefs.h
  9315. * src/usage_text.h
  9316. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9317. Call Command::transitStatus() before calling Command::execute(),
  9318. so that the status change made in execute() is not cleared.
  9319. * src/DownloadEngine.cc
  9320. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Removed forward declaration of SocketCore class.
  9322. * src/HttpDownloadCommand.h
  9323. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9324. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9325. in InitiateConnectionCommandFactory. They should be set only when
  9326. the protocol is HTTP or HTTPS.
  9327. * src/InitiateConnectionCommandFactory.cc
  9328. * src/RequestGroup.cc
  9329. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9330. Fixed infinite loop in checksum checking.
  9331. * src/IteratableChecksumValidator.cc
  9332. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. Set _supportsPersistentConnection to true by default.
  9334. * src/Request.cc
  9335. * src/RequestGroup.cc
  9336. * test/HttpRequestTest.cc
  9337. * test/RequestTest.cc
  9338. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Added timeout to socket pool. The default timeout is 15 seconds,
  9340. which is the same value Apache uses.
  9341. * src/DownloadEngine.cc
  9342. * src/DownloadEngine.h
  9343. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Fixed misuse of multimap::find()
  9345. * src/HttpHeader.cc
  9346. * test/HttpHeaderTest.cc
  9347. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9349. option.
  9350. The asynchronous DNS is not capable of IPv6 yet.
  9351. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9352. least for HTTP download.
  9353. * src/AbstractCommand.cc
  9354. * src/AbstractCommand.h
  9355. * src/AsyncNameResolver.cc
  9356. * src/AsyncNameResolver.h
  9357. * src/DHTEntryPointNameResolveCommand.cc
  9358. * src/DHTEntryPointNameResolveCommand.h
  9359. * src/DownloadEngine.cc
  9360. * src/DownloadEngine.h
  9361. * src/FtpInitiateConnectionCommand.cc
  9362. * src/FtpInitiateConnectionCommand.h
  9363. * src/HelpItemFactory.cc
  9364. * src/HttpInitiateConnectionCommand.cc
  9365. * src/HttpInitiateConnectionCommand.h
  9366. * src/InitiateConnectionCommand.cc
  9367. * src/InitiateConnectionCommand.h
  9368. * src/Makefile.am
  9369. * src/Makefile.in
  9370. * src/NameResolver.cc
  9371. * src/NameResolver.h
  9372. * src/OptionHandlerFactory.cc
  9373. * src/SocketCore.cc
  9374. * src/SocketCore.h
  9375. * src/Util.cc
  9376. * src/Util.h
  9377. * src/option_processing.cc
  9378. * src/prefs.h
  9379. * src/usage_text.h
  9380. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9381. Updated man page: --quiet, --header were added.
  9382. --metalink-servers and --enable-http-keep-alive option were updated.
  9383. * doc/aria2c.1
  9384. * doc/aria2c.1.html
  9385. * doc/aria2c.1.txt
  9386. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Enable HTTP keep-alive by default.
  9388. * src/HelpItemFactory.cc
  9389. * src/option_processing.cc
  9390. * src/usage_text.h
  9391. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9392. Disable http keep-alive if the remote server is not HTTP/1.1.
  9393. * src/HttpConnection.cc
  9394. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9395. Receive content body of 302 response so that the connection can be
  9396. reused later when http keep-alive is enabled.
  9397. * src/HttpNullDownloadCommand.cc
  9398. * src/HttpNullDownloadCommand.h
  9399. * src/HttpResponseCommand.cc
  9400. * src/HttpResponseCommand.h
  9401. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. const SharedHandle<Request> -> const SharedHandle<Request>&
  9403. * src/FtpDowndloadCommand.cc
  9404. * src/FtpDowndloadCommand.h
  9405. * src/HttpDownloadCommand.cc
  9406. * src/HttpDownloadCommand.h
  9407. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9408. Fixed the bug that the control file(.aria2 file) is not renamed
  9409. according to tryAutoFileRenaming().
  9410. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9411. its control file exist, use them and continue download.
  9412. The old implementation didn't take into account of control file's
  9413. existence, so basically you couldn't continue download of renamed file.
  9414. * src/BtProgressInfoFile.h
  9415. * src/DefaultBtProgressInfoFile.cc
  9416. * src/DefaultBtProgressInfoFile.h
  9417. * src/NullProgressInfoFile.h
  9418. * src/RequestGroup.cc
  9419. * test/DefaultBtProgressInfoFileTest.cc
  9420. * test/MockBtProgressInfoFile.h
  9421. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Change the default value of --metalink-servers option from `5' to `1'.
  9423. * src/HelpItemFactory.cc
  9424. * src/option_processing.cc
  9425. * src/usage_text.h
  9426. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9427. Reimplemented transparent metalink using Accept request header.
  9428. * src/HttpRequest.cc
  9429. * src/HttpRequest.h
  9430. * src/HttpRequestCommand.cc
  9431. * src/Metalink2RequestGroup.cc
  9432. * src/RequestGroup.cc
  9433. * src/RequestGroup.h
  9434. * test/HttpRequestTest.cc
  9435. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9436. Bump up version number to 0.13.2a
  9437. * configure.ac
  9438. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. Updated configure.ac using the result of autoscan.
  9440. * configure.ac
  9441. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9442. Fixed compilation error without gcrypt/openssl.
  9443. * src/DownloadCommand.cc
  9444. * src/DownloadCommand.h
  9445. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. Reorganized version information so that it can be displayed in a
  9447. standard terminal screen without scrolling.
  9448. Removed http, ftp from Configuration section, because they are always
  9449. enabled.
  9450. * src/FeatureConfig.cc
  9451. * src/FeatureConfig.h
  9452. * src/main.cc
  9453. * src/messageDigest.cc
  9454. * src/messageDigest.h
  9455. * src/version_usage.cc
  9456. * test/FeatureConfigTest.cc
  9457. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9458. Masked user ID in log.
  9459. * src/FtpConnection.cc (sendUser)
  9460. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Removed query part from filename in HTTP download. The query part means
  9462. the substring after "?" in URL. Firefox seems do the same thing.
  9463. A query part is sometimes very long and not suitable to filename,
  9464. so I think it is better to remove it from filename.
  9465. * src/HttpRequest.cc
  9466. * src/HttpRequest.h
  9467. * src/Request.cc
  9468. * src/Request.h
  9469. * test/HttpRequestTest.cc
  9470. * test/RequestTest.cc
  9471. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9472. Rewritten Exception class. Throw exception object, not its pointer and
  9473. catch by reference, so that remove problematic delete operator for
  9474. catched exception.
  9475. * src/Exception.cc
  9476. * src/Exception.h
  9477. * test/ExceptionTest.cc
  9478. * src/*: All files throwing/catching exception.
  9479. * test/*: All files throwing/catching exception.
  9480. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Now auto protocol detection is enabled without -Z option.
  9482. But there is a important difference between with/without -Z optoin.
  9483. For example, if you type:
  9484. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9485. then, aria2 interprets there are 3 request groups:
  9486. (1) http://host/file, http://mirror/file <-- multi-source download
  9487. (2) file1.torrent
  9488. (3) file2.metalink
  9489. On the other hand, if you invoke above command with -Z option, it is
  9490. interpreted as 4 request groups:
  9491. (1) http://host/file
  9492. (2) file1.torrent
  9493. (3) file2.metalink
  9494. (4) http://mirror/file
  9495. I think usually user don't mix multi-source URLs and torrent files, so
  9496. there is no big problem here.
  9497. * src/main.cc
  9498. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9499. Fixed the bug that causes segmentaion fault when reading XML containing
  9500. unescapsed character like '&'.
  9501. Also a modification was made which avoids adding unnecessary
  9502. characters stack and appending unused string.
  9503. * src/ExpatMetalinkProcessor.cc
  9504. * src/FileMetalinkParserState.h
  9505. * src/FilesMetalinkParserState.h
  9506. * src/FinMetalinkParserState.h
  9507. * src/HashMetalinkParserState.h
  9508. * src/InitialMetalinkParserState.h
  9509. * src/LanguageMetalinkParserState.h
  9510. * src/MetalinkMetalinkParserState.h
  9511. * src/MetalinkParserState.h
  9512. * src/MetalinkParserStateMachine.cc
  9513. * src/MetalinkParserStateMachine.h
  9514. * src/OSMetalinkParserState.h
  9515. * src/PieceHashMetalinkParserState.h
  9516. * src/PiecesMetalinkParserState.h
  9517. * src/ResourcesMetalinkParserState.h
  9518. * src/SizeMetalinkParserState.h
  9519. * src/SkipTagMetalinkParserState.h
  9520. * src/URLMetalinkParserState.h
  9521. * src/VerificationMetalinkParserState.h
  9522. * src/VersionMetalinkParserState.h
  9523. * src/XML2SAXMetalinkProcessor.cc
  9524. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9525. Added StringFormat class, which internally calls vasprintf.
  9526. operator<< is defined for this class, so it can be used with iostream
  9527. classes nicely. SimpleLogger and following functions are rewritten
  9528. using StringFormat class.
  9529. Besides, now Logger class's methods are non-const, many classes
  9530. that has a const Logger* as a member variable are modified to remove
  9531. const qualifier from the variable declaration.
  9532. * src/HelpItemFactory.cc
  9533. * src/Request.cc
  9534. * src/SimpleLogger.cc
  9535. * src/StringFormat.cc
  9536. * src/StringFormat.h
  9537. * src/Util.cc
  9538. * src/option_processing.cc
  9539. * src/version_usage.cc
  9540. * test/StringFormatTest.cc
  9541. * src/*.h: The classes that has const Logger* as a member variable.
  9542. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9543. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9544. failed. Also fixed memory link when exception is thrown there.
  9545. * src/main.cc (AccRequestGroup)
  9546. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9547. Added build-in "Accept-Features" support. For now only "metalink" is
  9548. used in this header field.
  9549. This "metalink" value is removed from the list when connecting URLs
  9550. fed by metalink file to avoid loop in "transparent" metlaink.
  9551. * src/HttpRequest.cc
  9552. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9553. header is also held in this variable. Also renamed setUserHeaders as
  9554. addHeader and it was rewritten to add header not just to clear the old
  9555. value.
  9556. * src/HttpRequestCommand.cc
  9557. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9558. from "Accept-Features" list.
  9559. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9560. default.
  9561. * src/RequestGroup.h
  9562. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9563. * src/a2functional.h: Included <string> because Concat class depends on
  9564. it.
  9565. * test/HttpRequestTest.cc
  9566. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9567. Added comment
  9568. * src/RequestGroup.cc (createNextCommand)
  9569. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9570. Capitalized METHOD_GET and METHOD_HEAD
  9571. * src/Request.cc
  9572. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Added getDownloadResults() method
  9574. * src/RequestGroupMan.cc
  9575. * src/RequestGroupMan.h
  9576. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9577. Fixed the bug that aria2 exits when commands is empty() but
  9578. _routineCommands are not.
  9579. * src/DownloadEngine.cc
  9580. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9581. Use the default value pulled from Option object in HelpItemFactory.
  9582. except options whose defualt value is embedded in a usage text.
  9583. * src/HelpItemFactory.cc
  9584. * src/HelpItemFactory.h
  9585. * src/option_processing.cc
  9586. * src/version_usage.cc
  9587. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Added --quiet option to make aria2 quiet (no console output).
  9589. --quiet option is tagged with ADVANCED.
  9590. * src/HelpItemFactory.cc
  9591. * src/LogFactory.cc
  9592. * src/LogFactory.h
  9593. * src/MultiUrlRequestInfo.cc
  9594. * src/MultiUrlRequestInfo.h
  9595. * src/NullStatCalc.h: New class. This class prints nothing.
  9596. * src/OptionHandlerFactory.cc
  9597. * src/main.cc
  9598. * src/option_processing.cc
  9599. * src/prefs.h
  9600. * src/usage_text.h
  9601. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9602. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9603. * src/HelpItemFactory.cc (createHelpItems):
  9604. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9605. Fixed compilation error in ExpatMetalinkProcessor.cc
  9606. * src/ExpatMetalinkProcessor.cc
  9607. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Reuse socket if the origin server supports HTTP keep-alive and
  9609. --enable-http-keep-alive or --enable-http-pipelining is given.
  9610. The current implementation doesn't reuse the connections established
  9611. against proxy server.
  9612. * src/AbstractCommand.cc
  9613. * src/DownloadEngine.cc
  9614. * src/DownloadEngine.h
  9615. * src/HttpDownloadCommand.cc
  9616. * src/HttpInitiateConnectionCommand.cc
  9617. * src/HttpResponseCommand.cc
  9618. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9619. Rewritten HTTP keep-alive and pipelining routine.
  9620. * src/AbstractCommand.cc
  9621. * src/HttpConnection.cc
  9622. * src/HttpDownloadCommand.cc
  9623. * src/HttpRequest.cc
  9624. * src/HttpRequestCommand.cc
  9625. * src/HttpResponseCommand.cc
  9626. * src/Request.cc
  9627. * src/Request.h
  9628. * src/RequestGroup.cc
  9629. * test/HttpRequestTest.cc
  9630. * test/HttpResponseTest.cc
  9631. * test/RequestTest.cc
  9632. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9633. Added missing setUserHeaders call
  9634. * src/HttpRequestCommand.cc
  9635. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9637. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9638. waste of time because it is more likey false.
  9639. * src/FileAllocationDispatcherCommand.cc (execute)
  9640. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9641. Now HTTP status and version are a member variable of HttpHeader.
  9642. HTTP status is processed as a string, not integer.
  9643. * src/AbstractProxyResponseCommand.cc
  9644. * src/HttpConnection.cc
  9645. * src/HttpHeader.cc
  9646. * src/HttpHeader.h
  9647. * src/HttpHeaderProcessor.cc
  9648. * src/HttpHeaderProcessor.h
  9649. * src/HttpResponse.cc
  9650. * src/HttpResponse.h
  9651. * test/HttpHeaderProcessorTest.cc
  9652. * test/HttpResponseTest.cc
  9653. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Added --header option. You can specify any number of additional HTTP headers
  9655. like:
  9656. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9657. Unlike other commad-line option, you can use --header option multiple times.
  9658. * src/HelpItemFactory.cc
  9659. * src/HttpRequest.{cc, h}
  9660. * src/HttpRequestCommand.cc
  9661. * src/OptionHandlerFactory.cc
  9662. * src/OptionHandlerImpl.h
  9663. * src/option_processing.cc
  9664. * src/prefs.h
  9665. * src/usage_text.h
  9666. * test/HttpRequestTest.cc (testUserHeaders)
  9667. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9668. Eliminates the time lag between sequential downloads and commands in
  9669. the same RequestGroup.
  9670. In old implementation, aria2 occasionally waits 1 seconds before
  9671. executing next command or RequestGroup.
  9672. This is really a waste of time, and new implementation eliminates
  9673. this unnecessary time lag.
  9674. * src/AbstractCommand.cc
  9675. * src/AutoSaveCommand.cc
  9676. * src/CheckIntegrityCommand.cc
  9677. * src/Command.{cc, h}
  9678. * src/DownloadEngine.{cc, h}
  9679. * src/DownloadEngineFactory.cc
  9680. * src/FileAllocationCommand.cc
  9681. * src/FileAllocationDispatcherCommand.cc
  9682. * src/FillRequestGroupCommand.cc
  9683. * src/FtpInitiateConnectionCommand.cc
  9684. * src/HaveEraseCommand.cc
  9685. * src/HttpInitiateConnectionCommand.cc
  9686. * src/HttpResponseCommand.cc
  9687. * src/RealtimeCommand.cc
  9688. * src/RequestGroup.cc
  9689. * src/RequestGroupMan.cc
  9690. * src/StreamFileAllocationEntry.cc
  9691. * src/TimeBasedCommand.{cc, h}
  9692. * src/TimedHaltCommand.cc
  9693. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9694. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9695. keyword explicit and SharedHandle's default constructor initializes
  9696. its internal obj to null, old implementation initializes it using
  9697. obj's default constructor.
  9698. To assign null, write SharedHandle<T> x(...); x.reset();
  9699. TODO: test/SharedHandleTest.cc needs more tests.
  9700. * src/SharedHandle.h
  9701. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9702. Fixed type in man page.
  9703. * doc/aria2c.1.txt
  9704. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9706. * src/SimpleLogger.{cc, h}
  9707. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. Implemented auto protocol detection.
  9709. Now you can do:
  9710. aria2c -Z http://host/file file1.torrent file2.metalink
  9711. (Note: -Z option is required for auto protcol detection.)
  9712. Then aria2c downloads 3 files simultaneously:
  9713. 1. http://host/file
  9714. 2. file1.torrent <-- read local torrent file
  9715. 3. file2.metalink <-- read local Metalink file.
  9716. Same thing goes with -i option. Assume your uris.txt contans:
  9717. http://host/file
  9718. file1.torrent
  9719. file2.metalink
  9720. Then you can do: aria2c -i uris.txt
  9721. (Note: -Z option is not needed if -i option is given.)
  9722. * src/main.cc
  9723. * src/ProtocolDetector.{cc, h}
  9724. * test/ProtocolDetectorTest.cc
  9725. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9727. installed
  9728. * src/ARC4Encryptor.h
  9729. * src/ARC4Decryptor.h
  9730. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9731. Renamed argument from 'errno' to 'err', since errno is confused with
  9732. errno defined in errno.h.
  9733. * src/LibgcryptARC4Decryptor.h
  9734. * src/LibgcryptARC4Context.h
  9735. * src/LibgcryptDHKeyExchange.h
  9736. * src/LibgcryptARC4Encryptor.h
  9737. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9738. Rewritten choking algorithm.
  9739. * src/PeerChokeCommand.{cc, h}
  9740. * src/BtInterestedMessage.cc
  9741. * src/PeerSessionResource.{cc, h}
  9742. * src/DefaultPeerStorage.{cc, h}
  9743. * src/BtNotInterestedMessage.cc
  9744. * src/DefaultBtMessageDispatcher.{cc, h}
  9745. * src/BtMessageDispatcher.h
  9746. * src/Peer.{cc, h}
  9747. * src/BtLeecherStateChoke.{cc, h}
  9748. * src/BtSetup.cc
  9749. * src/BtSeederStateChoke.{cc, h}
  9750. * src/PeerStorage.h
  9751. * test/MockPeerStorage.h
  9752. * test/MockBtMessageDispatcher.h
  9753. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9754. Fixed compilation error on x84-64 platform.
  9755. * src/AuthConfig.cc: Included ostream.
  9756. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Rewritten getBasename() and getDirname(), without standard library
  9758. basename(), dirname().
  9759. * src/File.cc
  9760. * test/FileTest.cc
  9761. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9762. Added Simplified Chinese translation. Also updated the following
  9763. translations: Polish, Dutch, German. Great thanks to all translators.
  9764. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Suppress content-range error when 'Content-Range' response header
  9766. doesn't contains bytes-unit specifier 'bytes'
  9767. * src/HttpHeader.cc (getRange)
  9768. * test/HttpHeaderTest.cc
  9769. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9770. Fixed compilation error with g++-4.3
  9771. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Added missing include files for MinGW
  9773. * test/HttpHeaderProcessorTest.cc
  9774. * test/DHTRoutingTableSerializerTest.cc
  9775. * test/DHTRoutingTableDeserializerTest.cc
  9776. * test/UriListParserTest.cc
  9777. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. Now download line is printed nicely with no garbage at the end of
  9779. line. I use ioctl to get the columns of terminal.
  9780. If stdout is redirected to another device, instead of carriage return,
  9781. end of line '\n' character is used. This is feature request#1909659
  9782. * src/ConsoleStatCalc.cc (calculateStat)
  9783. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9784. Included a2time.h
  9785. * src/DHTMessageDispatcher.h
  9786. * src/DHTMessageEntry.h
  9787. * src/DHTReplaceNodeTask.h
  9788. * src/DHTMessageTracker.h
  9789. * src/Util.h
  9790. * src/CookieBox.h
  9791. * src/SocketCore.h
  9792. * src/DefaultBtMessageDispatcher.h
  9793. * src/SocketCore.cc
  9794. * src/Util.cc
  9795. * src/DHTPingTask.h
  9796. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Fixed high memory footprint when DHT is enabled.
  9798. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9799. queued than it is processed and the queue is getting longer. As a
  9800. consequence, momory usage is increased.
  9801. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9802. replacement cache in DHTBucket which is described in Kademlia paper.
  9803. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9804. DHTReplaceNodeTask.
  9805. * src/DHTBucket.{h, cc}
  9806. (cacheNode): New function.
  9807. (getCachedNodes): New function.
  9808. (dropNode): Push back cached node to _nodes.
  9809. * test/DHTBucketTest.cc
  9810. (testCacheNode): New test
  9811. (testDropNode): New test
  9812. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9813. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9814. the unused 4KB memory when ssl is not used.
  9815. * src/SocketCore.cc
  9816. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9817. Added summary log for peer announce storage.
  9818. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9819. Removed cast
  9820. * src/DefaultPeerStorage.cc (addPeer)
  9821. Log exception message
  9822. * src/DHTMessageTracker.cc (handleTimeout)
  9823. Fixed casting
  9824. * test/HttpRequestTest.cc
  9825. * test/MetalinkProcessorTest.cc
  9826. * test/PieceTest.cc
  9827. * test/MetalinkEntryTest.cc
  9828. * test/SequenceTest.cc
  9829. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9830. * src/ParameterizedStringParser.cc (createLoop):
  9831. Removed unused variable sstep.
  9832. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9833. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9834. * src/Util.{h, cc}
  9835. (parseUInt): New function.
  9836. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9837. The actual range is uint32_t.
  9838. * test/UtilTest.cc
  9839. * src/ParameterizedStringParser.cc:
  9840. Use Util::parseUInt() for loop variables.
  9841. * test/ParameterizedStringParserTest.cc
  9842. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9843. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9844. Rewritten the functions for binding port.
  9845. * src/DHTConnectionImpl.{h, cc}
  9846. * src/PeerListenCommand.{h, cc}
  9847. * src/DHTSetup.cc
  9848. * src/BtSetup.cc
  9849. * test/DHTConnectionImplTest.cc
  9850. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9851. type cleanup for allmost all remaining files.
  9852. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9853. Type clarification
  9854. * src/PeerSessionResource.{h, cc}
  9855. * src/DefaultPieceStorage.{h, cc}
  9856. * src/Peer.{h, cc}
  9857. * test/PeerSessionResourceTest.cc
  9858. Use div function
  9859. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9860. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Type clarification
  9862. * src/DefaultPeerStorage.{h, cc}
  9863. * test/DefaultPeerStorageTest.cc
  9864. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9865. Type clarification: size_t for length or size, uint64_t for file
  9866. length, off_t for file offset.
  9867. * src/DefaultBtProgressInfoFile.cc
  9868. * src/DefaultBtContext.{h, cc}
  9869. * src/DefaultBtInteractive.cc
  9870. * src/DownloadCommand.{h, cc}
  9871. * src/IteratableChunkChecksumValidator.{h, cc}
  9872. * src/SegmentMan.{h, cc}
  9873. * src/SingleFileDownloadContext.{h, cc}
  9874. * src/IteratableChecksumValidator.{h, cc}
  9875. * src/BtContext.h
  9876. * src/IteratableValidator.h
  9877. * src/DownloadContext.h
  9878. * test/SingleFileDownloadContextTest.cc
  9879. * test/DefaultBtContextTest.cc
  9880. * test/MockBtContext.h
  9881. * test/Metalink2RequestGroupTest.cc
  9882. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Type clarification: size_t for length or size, uint64_t for file
  9884. length, off_t for file offset.
  9885. * src/PiecedSegment.cc
  9886. * src/GrowSegment.h
  9887. * src/DefaultBtRequestFactory.h
  9888. * src/DefaultBtProgressInfoFile.cc
  9889. * src/UnknownLengthPieceStorage.h
  9890. * src/DefaultPieceStorage.cc
  9891. * src/UnknownLengthPieceStorage.cc
  9892. * src/DefaultBtInteractive.cc
  9893. * src/GrowSegment.cc
  9894. * src/BitfieldMan.h
  9895. * src/DownloadCommand.cc
  9896. * src/BtRequestFactory.h
  9897. * src/PiecedSegment.h
  9898. * src/DefaultPieceStorage.h
  9899. * src/Piece.cc
  9900. * src/DefaultBtRequestFactory.cc
  9901. * src/PieceStorage.h
  9902. * src/Segment.h
  9903. * src/Piece.h
  9904. * src/BitfieldMan.cc
  9905. * src/Util.cc
  9906. * test/DefaultBtProgressInfoFileTest.cc
  9907. * test/DefaultPieceStorageTest.cc
  9908. * test/MockPieceStorage.h
  9909. * test/BtRequestMessageTest.cc
  9910. * test/DefaultBtMessageDispatcherTest.cc
  9911. * test/BitfieldManTest.cc
  9912. * test/GrowSegmentTest.cc
  9913. * test/PieceTest.cc
  9914. * test/SegmentTest.cc
  9915. * test/SegmentManTest.cc
  9916. * test/DefaultBtRequestFactoryTest.cc
  9917. * test/MockBtRequestFactory.h
  9918. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Fixed compilation error with --disable-nls
  9920. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9921. in gettext.h causes the problem.
  9922. * src/common.h
  9923. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9924. Removed subPiece related functions.
  9925. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9926. * src/DefaultPieceStorage.{h, cc}
  9927. * test/PieceTest.cc
  9928. * test/DefaultPieceStorageTest.cc
  9929. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9930. Use unsigned char for data store.
  9931. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9932. Bump up version number to 0.13.0+1
  9933. * configure.ac
  9934. * Release 0.13.0+1
  9935. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9936. Changed inactive connection timeout to 120.
  9937. To accept more mulually interested peers, disconnect peer when there
  9938. is no interest between us after certain time passed.
  9939. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9940. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9941. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9942. when compiled with async DNS support.
  9943. * src/DownloadEngine.cc
  9944. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9945. value '10' will be a little bit short when some DNS servers are
  9946. offline and several DNS servers are tried. It should be configured
  9947. by command-line option.
  9948. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9949. Merged Ross's mingw patch.
  9950. * src/DHTRoutingTableDeserializer.cc
  9951. * src/DHTRoutingTableSerializer.cc
  9952. * src/Platform.{h, cc}
  9953. * src/timegm.h
  9954. * src/gettimeofday.h
  9955. * src/getaddrinfo.h
  9956. * src/SocketCore.h
  9957. * src/common.h
  9958. * src/inet_aton.h
  9959. * src/DownloadEngine.h
  9960. * src/gai_strerror.h
  9961. * src/a2netcompat.h
  9962. * configure.ac
  9963. * configure
  9964. * aclocal.m4
  9965. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9966. Included missing iostream.
  9967. * test/AllTest.cc
  9968. * test/BtDependencyTest.cc
  9969. * test/BtExtendedMessageTest.cc
  9970. * test/DHTConnectionImplTest.cc
  9971. * test/DHTMessageFactoryImplTest.cc
  9972. * test/DHTMessageTrackerEntryTest.cc
  9973. * test/DHTNodeTest.cc
  9974. * test/DHTRoutingTableSerializerTest.cc
  9975. * test/DefaultBtAnnounceTest.cc
  9976. * test/DefaultBtContextTest.cc
  9977. * test/DefaultBtMessageFactoryTest.cc
  9978. * test/DefaultExtensionMessageFactoryTest.cc
  9979. * test/HandshakeExtensionMessageTest.cc
  9980. * test/HttpResponseTest.cc
  9981. * test/MetalinkProcessorTest.cc
  9982. * test/MultiFileAllocationIteratorTest.cc
  9983. * test/SocketCoreTest.cc
  9984. * test/UTPexExtensionMessageTest.cc
  9985. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9986. Reorganized includes.
  9987. * src/NameResolver.cc
  9988. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. Fixed compilation error without ares/c-ares
  9990. * src/NameResolver.h:
  9991. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9992. Added a test for large file.
  9993. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9994. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9995. Fixed the bug that file size is ignored if size > INT32_MAX
  9996. * src/SizeMetalinkParserState.cc (endElement):
  9997. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9998. Bump up version number to 0.13.0
  9999. * configure.ac
  10000. * Release 0.13.0
  10001. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Updated Makfefile.am to make 'make dist' work.
  10003. Now packaged filename is aria2c-VERSION.tar.bz2.
  10004. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10005. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10006. Large file support is now configured by configure script.
  10007. * configure.ac
  10008. Removed unsused source files
  10009. * src/
  10010. * test/
  10011. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10012. Peer.h and BtContext.h respectively.
  10013. * src/Peer.h
  10014. * src/BtContext.h
  10015. Updated translations.
  10016. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10017. translations. Great thanks to all translators!;)
  10018. * po/*.{po, gmo}
  10019. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10020. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10021. statically declared sha1 MessageDigestContext.
  10022. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10023. initialization of short-lived MessageDigestContext.
  10024. * src/MessageDigestHelper.{h, cc}
  10025. * src/main.cc
  10026. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10027. the initialization of MessageDigestContext every time in validating
  10028. chunk checksum.
  10029. * src/DownloadCommand.{h, cc}
  10030. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10031. Add a file descriptor which connected to fast peer(latency<1500) to
  10032. select(). This change reduced CPU load.
  10033. * src/PeerInteractionCommand.cc
  10034. * src/DefaultBtInteractive.{h, cc}
  10035. * src/BtInteractive.h
  10036. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10037. Fixed the previous insufficient fix for possible busy loop.
  10038. * src/MSEHandshake.cc (identifyHandshakeType)
  10039. Removed unused functions.
  10040. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10041. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10042. Fixed possible busy loop if first 20 bytes are not received for a few
  10043. minutes.
  10044. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10045. * src/ReceiverMSEHandshakeCommand.cc
  10046. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10047. Fixed compilation error
  10048. * src/ExpatMetalinkProcessor.cc
  10049. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10051. * src/DHTBucket.cc
  10052. Removed unnecessary cast.
  10053. * src/HandshakeExtensionMessage.cc
  10054. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10055. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10056. is missing.
  10057. * src/OptionHandlerFactory.cc
  10058. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. Fixed the bug that HAVE message is not sent for a piece they are
  10060. downloaded fom http/ftp server before any BitTorrent handshake is done
  10061. with peers.
  10062. * src/DefaultBtInteractive.cc
  10063. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10065. * src/Makefile.am
  10066. * src/Makefile.in
  10067. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10068. Updated README. Added html version of README and man page.
  10069. * README
  10070. * README.html
  10071. * readme2html: Shell script to generate README.html from README using
  10072. asciidoc.
  10073. * doc/aria2c.1.html
  10074. * doc/makeman: Added the line to generate aria2c.1.html
  10075. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10076. Fixed offset calculation.
  10077. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10078. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Rewritten itos and uitos using template. llitos and ullitos are
  10080. replaced with itos and uitos respectively.
  10081. * src/Util.{h, cc}
  10082. * test/UtilTest.cc
  10083. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10084. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10085. of the number of bytes required for storing public key and shared
  10086. secret.
  10087. * src/LibgcryptDHKeyExchange.h
  10088. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10089. * src/MSEHandshake.cc
  10090. * test/DHKeyExchangeTest.cc
  10091. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10092. Removed since they are not used.
  10093. * src/Xml2MetalinkProcessor.{h, cc}
  10094. * src/Socket.cc
  10095. * src/SegmentSplitter.{h, cc}
  10096. * test/Xml2MetalinkProcessorTest.cc
  10097. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10098. Fixed the bug that prevents aria2 from stopping other than by pressing
  10099. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10100. option. aria2 doesn't stop even after --seed-time is satisfied and
  10101. continues to output blank lines in the console.
  10102. * src/ReceiverMSEHandshakeCommand.cc
  10103. * src/PeerReceiveHandshakeCommand.cc
  10104. * src/PeerListenCommand.cc
  10105. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10106. Bump up version number to 0.13.0rc
  10107. * configure.ac
  10108. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10109. Updated man page and some usage text.
  10110. * doc/aria2c.1.txt
  10111. * src/usage_text.h
  10112. * po/*.{po, gmo}
  10113. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Updated translations. Added Finnish and Hebrew translations.
  10115. Great thanks to all translators!
  10116. * po/*.{po, gmo}
  10117. * po/LINGUAS
  10118. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Log more detailed information about each message.
  10120. * src/DHTQueryMessage.{h, cc}
  10121. * src/DHTGetPeersMessage.{h, cc}
  10122. * src/DHTFindNodeReplyMessage.{h, cc}
  10123. * src/DHTGetPeersReplyMessage.{h, cc}
  10124. * src/DHTAnnouncePeerMessage.{h, cc}
  10125. * src/DHTResponseMessage.{h, cc}
  10126. * src/DHTFindNodeMessage.{h, cc}
  10127. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10128. Use constants defined in prefs.h
  10129. * src/option_processing.cc
  10130. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10131. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10132. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10133. Make room for future enchancements for IPv6 addresses.
  10134. Bump up version number of dht.dat file format to 2.
  10135. Not compatible with previous version.
  10136. * src/DHTRoutingTableSerializer.cc
  10137. * src/DHTRoutingTableDeserializer.cc
  10138. * test/DHTRoutingTableSerializerTest.cc
  10139. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. Added handling for the return values from
  10141. PeerMessageUtil::createcompact().
  10142. * src/DefaultBtContext.cc (computeFastSet):
  10143. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10144. Fixed abort when peer's ip address is IPv4-mapped address.
  10145. * src/DefaultBtContext.cc (computeFastSet)
  10146. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10147. cannot handle IPv4-mapped addresses.
  10148. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10149. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. Proper return value handling for OpenSSL functions.
  10151. * src/LibsslDHKeyExchange.h
  10152. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10153. Random bytes generation using libgcrypt and OpenSSL.
  10154. * src/DHTUtil.{h, cc}
  10155. * test/DHTUtilTest.cc
  10156. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10157. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10158. received.
  10159. * src/DHTMessageReceiver.cc (receiveMessage)
  10160. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10161. Fixed the bug that a return code is always 0. BUG#1897704
  10162. If error occurred during the download or there exist unfinished
  10163. downloads, aria2 returns with code 1.
  10164. * src/RequestGroupMan.{h, cc}
  10165. * src/MultiUrlRequestInfo.{h, cc}
  10166. * src/main.cc
  10167. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10168. IPv6 support for SocketCore class.
  10169. TODO: In SocketCore::establishConnection(), this is insufficient to
  10170. determin the failure of connect() here because the socket is
  10171. non-blocking state. The next addresses should be tried after select().
  10172. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10173. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10174. instead which address family independent.
  10175. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10176. information in a compact peer format which is for IPv4 only.
  10177. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10178. this is a spec of BitTorrent protocol.
  10179. * src/SocketCore.{h, cc}
  10180. * src/PeerMessageUtil.cc
  10181. * test/SocketCoreTest.cc
  10182. * test/PeerMessageUtilTest.cc
  10183. * test/DHTConnectionImplTest.cc
  10184. Handle IPv4-mapped addresses.
  10185. * src/DHTNode.cc: Now identity is determined by node id.
  10186. * src/DHTMessageTrackerEntry.cc
  10187. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10188. should handle it.
  10189. * src/DHTRoutingTableDeserializer.cc
  10190. * src/DHTMessageFactoryImpl.cc
  10191. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10192. Change the unit of --stop option from a minute to a second.
  10193. * src/usage_text.h
  10194. * src/DownloadEngineFactory.cc
  10195. * src/OptionHandlerFactory.cc
  10196. * src/message.h
  10197. * src/TimedHaltCommand.cc
  10198. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10199. Make listening socket non-block mode.
  10200. * src/FtpConnection.cc
  10201. * src/FtpNegotiationCommand.{h, cc}
  10202. * src/PeerListenCommand.cc
  10203. Fixed the bug that cause slow ftp negotiation.
  10204. * src/FtpNegotiationCommand.{h, cc}
  10205. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10206. Added basic tag to --enable-dht, --dht-listen-port option.
  10207. * src/HelpItemFactory.cc (createHelpItems)
  10208. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. Updated text.
  10210. * src/usage_text.h
  10211. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10212. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10213. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10214. Determin _threadtholdSpeed in each constructor for
  10215. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10216. * src/ActivePeerConnectionCommand.{h, cc}
  10217. * src/PeerReceiveHandshakeCommand.{h, cc}
  10218. * src/BtSetup.cc
  10219. * src/BtConstants.h
  10220. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10221. Added --bt-min-crypto-level and --bt-require-crypto options.
  10222. * src/OptionHandlerFactory.cc
  10223. * src/MSEHandshake.cc
  10224. * src/HelpItemFactory.cc
  10225. * src/option_processing.cc
  10226. * src/ReceiverMSEHandshakeCommand.cc
  10227. * src/prefs.h
  10228. * src/DefaultBtAnnounce.cc
  10229. * src/InitiatorMSEHandshakeCommand.cc
  10230. * src/usage_text.h
  10231. * test/MSEHandshakeTest.cc
  10232. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10233. Bump version number to 0.13.0b
  10234. * configure.ac
  10235. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10236. Updated doc.
  10237. * src/MessageDigestHelper.h:
  10238. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10239. Use raw message digest as a token instead of its hexadecimal
  10240. representation.
  10241. * src/DHTTokenTracker.cc (generateToken)
  10242. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10243. Added Message Stream Encryption(MSE) support.
  10244. Currently, aria2 accepts incoming connections with Obfuscation Header
  10245. and legacy BitTorrent Header and establishes connections with
  10246. Obfuscation Header first and if failed then retry with legacy
  10247. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10248. choose ARC4. The new option to change the default behavior is planned.
  10249. For tracker extension, "supportcrypto=1" is added statically.
  10250. * src/PeerInitiateConnectionCommand.{h, cc}
  10251. * src/PeerConnection.{h, cc}
  10252. * src/HandleRegistry.h
  10253. * src/SocketCore.h
  10254. * src/PeerReceiveHandshakeCommand.{h, cc}
  10255. * src/BtRegistry.{h, cc}
  10256. * src/PeerListenCommand.cc
  10257. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10258. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10259. * src/MSEHandshake.{h, cc}
  10260. * src/ARC4Encryptor.h
  10261. * src/ARC4Decryptor.h
  10262. * src/LibgcryptARC4Encryptor.h
  10263. * src/LibgcryptARC4Decryptor.h
  10264. * src/LibgcryptARC4Context.h
  10265. * src/LibsslARC4Encryptor.h
  10266. * src/LibsslARC4Decryptor.h
  10267. * src/LibsslARC4Context.h
  10268. * src/DHKeyExchange.h
  10269. * src/LibgcryptDHKeyExchange.h
  10270. * src/LibsslDHKeyExchange.h
  10271. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10272. * test/DefaultBtAnnounceTest.cc
  10273. * test/ARC4Test.cc
  10274. * test/DHKeyExchangeTest.cc
  10275. Removed prepareForRetry() because it is not used.
  10276. * src/PeerAbstractCommand.{h, cc}
  10277. * src/PeerInteractionCommand.{h, cc}
  10278. * src/PeerInitiateConnectionCommand.{h, cc}
  10279. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. Added the ability to load nodes from torrent file. These nodes are
  10281. added to the routing table when downloading that torrent.
  10282. * src/BtContext.h
  10283. * src/DefaultBtContext.{h, cc}
  10284. * src/DHTSetup.cc
  10285. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10286. hostname and port pair, and resolves all of them.
  10287. * src/NameResolver.{h, cc}: Added reset().
  10288. * src/RequestGroup.cc
  10289. * test/DefaultBtContextTest.cc
  10290. * test/MockBtContext.h
  10291. Removed assert() from DefaultBtContext and throw exception instead.
  10292. * src/DefaultBtContext.cc
  10293. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. Fixed segmentation fault bug when exiting if dht is disabled.
  10295. * src/RequestGroup.cc
  10296. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10297. Fixed typo in log message and define the message in message.h
  10298. * src/TimedHaltCommand.cc
  10299. * src/message.h
  10300. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10301. Included RecoverableException.h to fix compilation error.
  10302. * test/DHTMessageFactoryImplTest.cc
  10303. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10304. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10305. * test/DHTPingMessageTest.cc
  10306. * test/DHTGetPeersMessageTest.cc
  10307. * test/DHTFindNodeMessageTest.cc
  10308. * test/DHTAnnouncePeerMessageTest.cc
  10309. * test/MockDHTMessage.h
  10310. * test/MockDHTMessageFactory.h
  10311. * test/MockDHTMessageDispatcher.h: New class.
  10312. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10313. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10314. virtual.
  10315. * src/DHTMessageDispatcher.h
  10316. * src/DHTMessageDispatcherImpl.{h, cc}
  10317. * src/DHTSetup.cc
  10318. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. Adding handling of DHT error message. Just log error message and
  10320. throw exception.
  10321. * src/DHTMessageFactoryImpl.cc
  10322. * test/DHTMessageFactoryImplTest.cc
  10323. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. Added handling of dynamic cast failure.
  10325. * src/DHTNodeLookupTask.cc
  10326. * src/DHTPeerLookupTask.cc
  10327. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10328. Added the ability to stop aria2 itself when given time has passed
  10329. from start. Use --stop option to specify time in minutes.
  10330. When 0 is given, this feature is disabled.
  10331. * src/OptionHandlerFactory.cc
  10332. * src/TimeBasedCommand.h: Make _interval protected scope.
  10333. * src/HelpItemFactory.cc
  10334. * src/option_processing.cc
  10335. * src/prefs.h
  10336. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10337. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10338. Without this modification, the result list shows "ERR" when aria2 is
  10339. stopped by --stop option. It should be "INPR".
  10340. * src/DownloadEngine.{h, cc}
  10341. * src/DownloadEngineFactory.cc
  10342. * src/usage_text.h
  10343. * src/TimedHaltCommand.{h, cc}: New class.
  10344. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. Bootstrap through node added by port message.
  10346. Currently bootstrap is executed if the number of buckets in routing
  10347. table is 1.
  10348. * src/BtPortMessage.{h, cc}
  10349. * src/DefaultBtMessageFactory.{h, cc}
  10350. * src/PeerInteractionCommand.cc
  10351. * test/BtPortMessageTest.cc
  10352. * test/MockDHTTask.h
  10353. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10354. Extract the Peer class's member variables, which are only needed after
  10355. PeerInteractionCommand, into PeerSessionResource class.
  10356. This class is instantiated in PeerInteractionCommand class's ctor and
  10357. released in its dtor.
  10358. This will make Peer class lightweight and uses less memory for peers
  10359. which are not connected and wait in the queue.
  10360. * src/PeerChokeCommand.cc
  10361. * src/PeerSessionResource.{h, cc}
  10362. * src/PeerInteractionCommand.cc
  10363. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10364. * src/DefaultBtInteractive.cc
  10365. * src/BtPieceMessage.cc
  10366. * src/BtInterestedMessage.cc
  10367. * src/BtUnchokeMessage.cc
  10368. * src/DefaultPeerStorage.{h, cc}
  10369. * src/PeerInitiateConnectionCommand.cc
  10370. * src/ActivePeerConnectionCommand.cc
  10371. * src/BtNotInterestedMessage.cc
  10372. * src/DefaultBtMessageDispatcher.cc
  10373. * src/BtChokeMessage.cc
  10374. * src/BtRequestMessage.cc
  10375. * src/Peer.{h, cc}
  10376. * src/BtRegistry.h
  10377. * src/TrackerWatcherCommand.cc
  10378. * src/PeerReceiveHandshakeCommand.cc
  10379. * test/BtExtendedMessageTest.cc
  10380. * test/BtAllowedFastMessageTest.cc
  10381. * test/BtCancelMessageTest.cc
  10382. * test/DefaultPieceStorageTest.cc
  10383. * test/BtBitfieldMessageTest.cc
  10384. * test/BtHaveMessageTest.cc
  10385. * test/BtNotInterestedMessageTest.cc
  10386. * test/BtRequestMessageTest.cc
  10387. * test/PeerSessionResourceTest.cc
  10388. * test/DefaultBtMessageDispatcherTest.cc
  10389. * test/PeerTest.cc
  10390. * test/BtInterestedMessageTest.cc
  10391. * test/BtRejectMessageTest.cc
  10392. * test/BtChokeMessageTest.cc
  10393. * test/DefaultPeerStorageTest.cc
  10394. * test/BtHaveNoneMessageTest.cc
  10395. * test/BtHaveAllMessageTest.cc
  10396. * test/DefaultExtensionMessageFactoryTest.cc
  10397. * test/BtUnchokeMessageTest.cc
  10398. * test/DefaultBtMessageFactoryTest.cc
  10399. * test/HandshakeExtensionMessageTest.cc
  10400. * test/UTPexExtensionMessageTest.cc
  10401. * test/DefaultBtRequestFactoryTest.cc
  10402. * test/BtPieceMessageTest.cc
  10403. Removed typedef PeerStats.
  10404. * src/PeerStat.h
  10405. * src/SegmentMan.cc
  10406. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Added std namespace to copy, remove_copy, back_inserter,
  10408. front_inserter.
  10409. * src/RequestGroupMan.cc
  10410. * src/DefaultPieceStorage.cc
  10411. * src/StreamFileAllocationEntry.cc
  10412. * src/BtFileAllocationEntry.cc
  10413. * src/RequestGroup.cc
  10414. * src/MetalinkEntry.cc
  10415. * src/DelegatingPeerListProcessor.cc
  10416. * src/DefaultBtRequestFactory.cc
  10417. * src/DefaultBtMessageDispatcher.cc
  10418. * src/version_usage.cc: Included <algorithm>
  10419. * src/main.cc
  10420. * src/MetalinkParserController.cc
  10421. * src/DefaultBtContext.cc
  10422. * src/DownloadEngineFactory.cc
  10423. * src/a2algo.h
  10424. Removed.
  10425. * test/StreamUriListParserTest.cc
  10426. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10427. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10428. ActivePeerConnectionCommand when it is given and
  10429. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10430. * src/ActivePeerConnectionCommand.{h, cc}
  10431. * src/BtSetup.cc
  10432. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10433. Only add socket to DownloadEngine's select routine when peer or
  10434. localhost is unchoked and interested. This lowers CPU usage a
  10435. little bit.
  10436. * src/PeerInteractionCommand.cc
  10437. * src/PeerAbstractCommand.{h, cc}
  10438. * src/BtInteractive.h
  10439. * src/DefaultBtInteractive.{h, cc}
  10440. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10441. Revert previous change because get_peers message is needed for
  10442. announce_peer anyway.
  10443. * src/DHTGetPeersCommand.cc
  10444. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. Request peers thought DHT only when download hasn't finished.
  10446. * src/DHTGetPeersCommand.cc
  10447. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10449. * src/DHTBucketRefreshTask.{h, cc}
  10450. * src/DHTSetup.cc
  10451. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10452. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10453. standard classes.
  10454. Included string.h where mem* function are used.
  10455. Added namespace aria2.
  10456. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10457. Create directory before saving DHT routing table.
  10458. Now ios::failure is now handled properly.
  10459. * src/DHTAutoSaveCommand.cc
  10460. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10461. Removed unnecessary cerr.
  10462. * src/DownloadEngine.cc
  10463. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10464. Catch exception inside DHTMessageReceiver::receiveMessage().
  10465. Log unknown message.
  10466. * src/DHTMessageReceiver.{h, cc}
  10467. * src/DHTMessageFactory.h
  10468. * src/DHTMessageFactoryImpl.{h, cc}
  10469. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10470. * src/DHTInteractionCommand.cc
  10471. * src/DHTUnknownMessage.{h, cc}
  10472. * test/DHTUnknownMessageTest.cc
  10473. * test/MockDHTMessageFactory.h
  10474. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. Commented out ip address comparison because a host can have multiple
  10476. ip addresses and it is hard to predict the hostname is resolved into
  10477. which one.
  10478. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10479. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10480. * po/Makefile.in: Removed since this is generated by configure.
  10481. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10482. Fixed compiler warning about redefinition of SIZE_MAX.
  10483. Use common.h instead of config.h directly here.
  10484. * src/Platform.{h, cc}
  10485. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10486. here.
  10487. * common.h
  10488. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10489. Updated gettext related files.
  10490. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10491. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10492. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. Added DHT functionality, compatible with mainline.
  10494. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10495. You may need to specify entry point to DHT network using
  10496. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10497. Use --dht-listen-port to specify port number. Make sure that your
  10498. firewall configuration can pass through UDP traffic to the port.
  10499. The routing table is saved in $HOME/.aria2/dht.dat.
  10500. * src/DHT*
  10501. * src/BNode.{h, cc}
  10502. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10503. particular torrent.
  10504. * src/Data.cc: Rewritten ctor.
  10505. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10506. --dht-entry-point.
  10507. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10508. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10509. ends, remove BtContext from DHTPeerAnnounceStorage.
  10510. * src/BtPortMessage.{h, cc}: Rewritten.
  10511. * src/message.h
  10512. * src/OptionHandlerImpl.cc
  10513. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10514. --dht-entry-point.
  10515. * src/Dictionary.{h, cc} (remove): New function.
  10516. * src/prefs.h
  10517. * src/DefaultBtMessageFactory.h
  10518. * src/BtHandshakeMessage.cc
  10519. * src/ActivePeerConnectionCommand.cc
  10520. * src/SocketCore.{h, cc}: Added datagram socket support.
  10521. * src/DefaultBtMessageFactory.cc
  10522. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10523. Create DHT commands.
  10524. * src/BtMessageFactory.h
  10525. * src/PeerMessageUtil.{h, cc}
  10526. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Fixed the bug that log file is not written when configuration file doesn't exist.
  10528. This is caused by using Logger class before LogFactory is not configured.
  10529. BUG #1875079
  10530. * src/option_processing.cc
  10531. Warning message "configuration doesn't exist" is only printed when --conf is
  10532. given.
  10533. * src/option_processing.cc
  10534. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10535. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10536. ShaVisitor is now deprecated and slated to be removed.
  10537. * src/DefaultBtContext.cc
  10538. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. Externalize message to message.h
  10540. * src/Platform.cc
  10541. * src/message.h
  10542. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10543. Set default domain and default path to cookie.
  10544. * src/HttpResponse.cc
  10545. * src/CookieBox.{h, cc}
  10546. * src/CookieParser.{h, cc}
  10547. * test/CookieParserTest.cc
  10548. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10549. Added --no-conf and --conf-path command-line option.
  10550. --no-conf option disables loading aria2.conf file.
  10551. --conf-path option changes the configuration file path. The default
  10552. file path is $HOME/.aria2/aria2.conf
  10553. Added a warning message when the configuration file is not found.
  10554. * src/HelpItemFactory.cc
  10555. * src/option_processing.cc
  10556. * src/prefs.h
  10557. * src/usage_text.h
  10558. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10559. Added the message to inform users that other help categories are
  10560. available in -h option.
  10561. * src/version_usage.cc
  10562. * src/TagContainer.{h, cc}
  10563. * test/TagContainerTest.cc
  10564. * src/TaggedItem.{h, cc}
  10565. * test/TaggedItemTest.cc
  10566. * src/HelpItem.h
  10567. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10569. from PiecedSegment's ctor.
  10570. Previously Piece::getAllMissingBlockIndexes() is called from
  10571. PiecedSegment() but it is rather expensive since only first element is
  10572. used.
  10573. * src/PiecedSegment.cc
  10574. * src/Piece.{h, cc}
  10575. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10576. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10577. each time these functions are called.
  10578. * src/BitfieldMan.{h, cc}
  10579. * test/BitfieldManTest.cc
  10580. * src/array_fun.h
  10581. * test/array_funTest.cc
  10582. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10583. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10584. filtered. Removed unnecessary cast to int32_t.
  10585. * src/BitfieldMan.{h, cc}
  10586. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10587. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10588. payload length(4bytes) are received. This happens because lenbufLength
  10589. is not updated in this particular case and successive call of
  10590. receiveMessage() overwrites payload length with bytes recieved which
  10591. are payload body.
  10592. * src/PeerConnection.{h, cc}
  10593. * src/message.h
  10594. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10596. peer if there are peers that have same ipaddr and port.
  10597. I've experiened segmentation fault and "pure virtual function was
  10598. called" error.
  10599. * src/Peer.h
  10600. * test/PeerTest.cc
  10601. * src/DefaultPeerStorage.cc
  10602. * test/DefaultPeerStorageTest.cc
  10603. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10604. Removed a call to isPowerOf() because it is no longer necessary here
  10605. and a request block is not always power of 2.
  10606. BUG#1866924
  10607. * src/PeerMessageUtil.cc (checkLength)
  10608. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10609. Fixed the bug that always first found Segment is removed from
  10610. usedSegmentEntries. Removed unused functions.
  10611. * src/SegmentMan.{h, cc}
  10612. * test/SegmentManTest.cc
  10613. Fixed the bug that ServerHost is not removed.
  10614. * src/RequestGroup.cc
  10615. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10616. Fixed the bug that SegmentMan::completeSegment() is not called
  10617. even if Segment is complete when --lowest-speed-limit is enabled.
  10618. BUG#1864525
  10619. * src/DownloadCommand.{h, cc}
  10620. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10621. Fixed: hash algorithm 'sha1' is always used.
  10622. * src/DownloadCommand.cc (validatePieceHash)
  10623. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10624. Added --enable-peer-exchange command-line option.
  10625. * src/OptionHandlerFactory.cc
  10626. * src/HelpItemFactory.cc
  10627. * src/option_processing.cc
  10628. * src/usage_text.h
  10629. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. Move extension from BtRuntime to ExtensionMessageFactory, because
  10631. extension can be specified per peer, not per torrent.
  10632. * src/DefaultBtInteractive.cc
  10633. * src/BtRuntime.h
  10634. * src/ExtendedMessagingAware.h
  10635. * src/ExtensionMessageFactory.h
  10636. * src/DefaultExtensionMessageFactory.cc
  10637. * test/DefaultExtensionMessageFactoryTest.cc
  10638. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10639. Added categorized option help. Specify category using --help option.
  10640. Also added the ability to search options in forward match.
  10641. * src/HelpItem.{h, cc}
  10642. * test/HelpItemTest.cc
  10643. * src/HelpItemFactory.{h, cc}
  10644. * src/TagContainer.{h, cc}
  10645. * test/TagContainerTest.cc
  10646. * src/option_processing.cc
  10647. * src/prefs.h
  10648. * src/TaggedItem.{h, cc}
  10649. * test/TaggedItemTest.cc
  10650. * src/version_usage.cc
  10651. * src/help_tags.h
  10652. * src/usage_text.h
  10653. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10654. Fixed segmentation fault when bad torrent metainfo is parsed.
  10655. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10656. and then throw exception or skip it.
  10657. * src/DefaultBtContext.{h, cc}
  10658. * test/DefaultBtContextTest.cc
  10659. * src/AnnounceList.cc
  10660. * src/CompactPeerListProcessor.cc
  10661. * src/message.h
  10662. * src/DefaultBtAnnounce.{h, cc}
  10663. * test/DefaultBtAnnounceTest.cc
  10664. * src/BencodeVisitor.cc
  10665. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10666. Added missing "B"(=Byte). So now the message looks like this:
  10667. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10668. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10669. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10670. Show the seed ratio after torrent downloads.
  10671. For example, after torrent download completed and --seed-time and
  10672. --seed-ratio conditions are fulfilled, following message is printed
  10673. right after "Download complete: .....":
  10674. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10675. * src/RequestGroupMan.cc
  10676. * src/RequestGroup.{h, cc}
  10677. * src/message.h
  10678. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10679. Remove a defunct control file. A defunct control file means that while
  10680. it exists, but the corresponding download file is missing.
  10681. After its removal, a download restarts from the beginning.
  10682. * src/RequestGroup.cc
  10683. * src/message.h
  10684. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10685. Allocate bitfield in Peer when it is really used. More specifically,
  10686. bitfield in Peer is allocated after the connection is established and
  10687. deallocated when the connection is dropped.
  10688. Since 2 parameters(piece length and total length) was removed from the
  10689. constructor of Peer class, many test classes were modified accordingly.
  10690. See svn log for more detailed information.
  10691. * src/PeerInteractionCommand.cc
  10692. * src/CompactPeerListProcessor.cc
  10693. * src/Peer.cc
  10694. * src/DefaultPeerListProcessor.cc
  10695. * src/PeerListenCommand.cc
  10696. * src/PeerReceiveHandshakeCommand.cc
  10697. Fixed memory leak
  10698. * src/Piece.cc
  10699. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10700. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10701. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10702. command-line options.
  10703. * src/option_processing.cc
  10704. * src/ActivePeerConnectionCommand.cc
  10705. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. Send have message to peer if it already has the piece.
  10707. * src/BtHaveMessage.{h, cc}
  10708. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10709. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10710. port.
  10711. * src/DefaultPeerStorage.{h, cc}
  10712. * test/DefaultPeerStorageTest.cc
  10713. * src/HandshakeExtensionMessage.cc
  10714. * test/HandshakeExtensionMessageTest.cc
  10715. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10716. * src/PeerStorage.h
  10717. * test/MockPeerStorage.h
  10718. * src/PeerListenCommand.cc
  10719. * src/PeerReceiveHandshakeCommand.cc
  10720. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10721. Added --metalink-enable-unique-protocol option.
  10722. * src/Metalink2RequestGroup.cc
  10723. * src/option_processing.cc
  10724. * src/prefs.h
  10725. * src/version_usage.cc
  10726. * doc/aria2c.1.txt
  10727. * doc/aria2c.1
  10728. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10729. Allow a peer in incomingPeer to be added peers.
  10730. * src/DefaultPeerStorage.cc
  10731. * test/DefaultPeerStorageTest.cc
  10732. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10733. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10734. I could reproduce this bug in following procedure:
  10735. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10736. 2. Restart aria2.
  10737. 3. You see the download stopped around 99%.
  10738. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10739. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10740. If timeout is reached, then _nextCommand is unused and it may contains
  10741. segments and they won't be canceled. Actually, timeout is not needed
  10742. here because if the server dropped connection, then retry is made.
  10743. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10744. Added uTorrent compatible Peer Exchange.
  10745. * src/BencodeVisitor.{h, cc}
  10746. * test/BencodeVisitorTest.cc
  10747. * src/BtConstants.h
  10748. * src/BtContext.h: Added 'private' flag.
  10749. * src/BtExtendedMessage.{h, cc}
  10750. * test/BtExtendedMessageTest.cc
  10751. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10752. reserved field.
  10753. * test/BtHandshakeMessageTest.cc
  10754. * src/BtMessageFactory.h
  10755. * src/BtRegistry.h
  10756. * src/BtRuntime.h: This class holds default extension message IDs for
  10757. aria2. By default, aria2 uses ID 8 for ut_pex.
  10758. * src/DefaultBtContext.cc
  10759. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10760. When it is true, aria2 enables ut_pex. This value is set by
  10761. PeerInteractionCommand.
  10762. * src/DefaultBtMessageFactory.{h, cc}
  10763. * test/DefaultBtMessageFactoryTest.cc
  10764. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10765. handling to DefaultBtInteractive class.
  10766. * src/DefaultExtensionMessageFactory.{h, cc}
  10767. * test/DefaultExtensionMessageFactoryTest.cc
  10768. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10769. the container(peers and incomingPeers. The equality is determined by
  10770. Peer::id).
  10771. * test/DefaultPeerStorageTest.cc
  10772. * src/ExtensionMessage.h
  10773. * test/MockExtensionMessage.h
  10774. * src/ExtensionMessageFactory.h
  10775. * test/MockExtensionMessageFactory.h
  10776. * src/HandshakeExtensionMessage.{h, cc}
  10777. * test/HandshakeExtensionMessageTest.cc
  10778. * src/MetaEntry.h
  10779. * src/Peer.{h, cc}
  10780. * src/PeerInteractionCommand.cc
  10781. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10782. addIncomingPeer.
  10783. * src/PeerMessageUtil.{h, cc}
  10784. * src/PeerObject.h
  10785. * src/UTPexExtensionMessage.{h, cc}
  10786. * test/UTPexExtensionMessageTest.cc
  10787. * src/message.h
  10788. * src/prefs.h
  10789. Fixed the bug that returns incomplete data when it contains null
  10790. character. A convenient constructor was also added.
  10791. * src/Data.{h, cc}
  10792. Rewritten.
  10793. * src/CompactPeerListProcessor.cc
  10794. Fixed typos.
  10795. * src/message.h
  10796. * src/MetaFileUtil.cc
  10797. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10798. Added "Status Legend" label to the explanation text of 'stat' in
  10799. download result and moved it to the last. BUG#1848214
  10800. * src/RequestGroupMan.cc
  10801. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10802. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10803. * src/Makefie.am
  10804. * test/Makefile.am
  10805. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. Fixed the bug that prevents aria2 from loading cookie file when expire
  10807. value is greater than 2^31-1. BUG#1851066
  10808. * src/CookieBoxFactory.cc
  10809. * test/CookieBoxFactoryTest.cc
  10810. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10811. Fixed possible memory leak when an exception is thrown.
  10812. * src/XML2SAXMetalinkProcessor.cc
  10813. Added Expat support. If both libxml2 and Expat are installed, then
  10814. libxml2 is used by default.
  10815. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10816. ExpatMetalinkProcessor according to the configuration.
  10817. * src/ExpatMetalinkProcessor.{h, cc}
  10818. * src/main.cc: Removed libxml2 specific header and init/free function.
  10819. * src/MetalinkProcessorFactory.{h, cc}
  10820. * src/MetalinkHelper.cc
  10821. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10822. * src/MetalinkProcessor.h
  10823. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10824. MetalinkProcessorTest is used instead.
  10825. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10826. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10827. MetalinkProcessorFactory::newInstance().
  10828. * m4/libexpat.m4
  10829. * configure.ac: Added configuration options for libexpat.
  10830. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10831. Disabled -s option in metalink download.
  10832. * src/Metalink2RequestGroup.cc
  10833. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. If several protocols are available for a mirror in metalink file,
  10835. aria2 now use one of them. --metalink-preferred-protocol option was
  10836. added to specify the preference of protocol.
  10837. * src/AbstractCommand.cc
  10838. * src/OptionHandlerFactory.cc
  10839. * src/ServerHost.{h, cc}
  10840. * src/Metalink2RequestGroup.cc
  10841. * src/RequestGroup.{h, cc}
  10842. * test/RequestGroupTest.cc
  10843. * src/option_processing.cc
  10844. * src/prefs.h
  10845. * src/HttpResponseCommand.cc
  10846. * src/MetalinkResource.{h, cc}
  10847. * src/FtpNegotiationCommand.cc
  10848. * src/MetalinkEntry.{h, cc}
  10849. * src/MetalinkEntryTest.cc
  10850. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10851. Code cleanup and added debug log.
  10852. * src/PeerConnection.cc
  10853. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10854. Compiler error fix: applied the patch by Tiziano Mueller
  10855. * src/RequestGroup.cc
  10856. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10857. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10858. in stopped and completed event.
  10859. * src/AnnounceList.{h, cc}
  10860. * test/AnnounceListTest.cc
  10861. * src/DefaultBtAnnounce.cc
  10862. * test/DefaultBtAnnounceTest.cc
  10863. Sorted URLs.
  10864. * test/Metalink2RequestGroupTest.cc
  10865. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10866. Removed unnecessary string copy. Updated doc and corrected indentation.
  10867. * src/Base64.cc
  10868. Fixed compilation warnings
  10869. * test/DataTest.cc
  10870. * test/HttpRequestTest.cc
  10871. * test/MetaFileUtilTest.cc
  10872. * test/RequestTest.cc
  10873. * Release 0.12.0
  10874. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10875. Updated translations
  10876. * po/{de,fr,ja,nl,ru}.po
  10877. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10878. translations. Many thanks to translators.
  10879. * po/{ca,es,it,pt_BR,sv}.po
  10880. * po/LINGUAS
  10881. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10882. Added a notice about URL
  10883. * src/version_usage.cc
  10884. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10885. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10886. aria2 repeatedly sends stopped request when tracker returns error code.
  10887. * src/AnnounceList.cc
  10888. * test/AnnounceListTest.cc
  10889. * src/AnnounceTier.h
  10890. Added a message when ctrl-c is hit.
  10891. Now second ctrl-c is also handled in signal handler.
  10892. * src/RequestGroupMan.{h, cc}
  10893. * src/RequestGroup.{h, cc}
  10894. * src/MultiUrlRequestInfo.cc
  10895. * src/DownloadEngine.cc
  10896. * src/TrackerWatcherCommand.cc
  10897. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10898. Code cleanup
  10899. * src/Base64.cc (encode)
  10900. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10901. Changed Direct/IO enable/disable procesure in file allocation routine.
  10902. * src/SingleFileAllocationIterator.cc
  10903. (SingleFileAllocationIterator):
  10904. Disable directIO if offset is not multiple of 512.
  10905. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10906. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10907. Enable created SingleFileAllocationIterator's directIO.
  10908. * src/FileAllocationEntry.cc
  10909. (FileAllocationEntry): Enable directIO here.
  10910. (~FileAllocationEntry): Disable directIO here.
  10911. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10912. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10913. * src/Peer.{h, cc}
  10914. * src/DefaultPieceStorage.cc
  10915. * test/DefaultPieceStorageTest.cc
  10916. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10917. Rewritten direct I/O support routine
  10918. * src/SingleFileAllocationIterator.cc
  10919. * src/MultiDiskAdaptor.{h, cc}
  10920. * src/ByteArrayDiskWriter.h
  10921. * src/AbstractSingleDiskAdaptor.h
  10922. * src/AbstractDiskWriter.cc
  10923. * src/DefaultPieceStorage.cc
  10924. * src/DiskWriter.h
  10925. * src/BinaryStream.h
  10926. * src/IteratableChunkChecksumValidator.cc
  10927. * src/IteratableChecksumValidator.cc
  10928. * src/CheckIntegrityEntry.cc
  10929. * src/FileAllocationEntry.cc
  10930. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10931. Fixed typo
  10932. * src/version_usage.cc
  10933. Updated doc
  10934. * doc/aria2c.1.txt
  10935. * doc/aria2c.1
  10936. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10937. Fixed compile error without message digest support.
  10938. * src/FileMetalinkParserState.cc
  10939. * src/MetalinkParserController.{h, cc}
  10940. * test/XML2SAXMetalinkProcessorTest.cc
  10941. * test/MetalinkParserControllerTest.cc
  10942. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10943. Enable direct I/O support in checksum checking.
  10944. * src/IteratableChunkChecksumValidator.{h, cc}
  10945. * test/IteratableChunkChecksumValidatorTest.cc
  10946. * src/CheckIntegrityEntry.cc
  10947. * src/PieceHashCheckIntegrityEntry.cc
  10948. * src/IteratableChecksumValidator.{h, cc}
  10949. * src/BtCheckIntegrityEntry.cc: Added doc.
  10950. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10951. Added --allow-piece-length-change option.
  10952. * src/DefaultBtProgressInfoFile.cc
  10953. * test/DefaultBtProgressInfoFileTest.cc
  10954. * src/OptionHandlerFactory.cc
  10955. * src/option_processing.cc
  10956. * src/prefs.h
  10957. * src/version_usage.cc
  10958. * doc/aria2c.1.txt
  10959. * doc/aria2c.1
  10960. Fixed: duplicated result entry appears when exception is thrown in
  10961. RequestGroup::createInitiateConnectionCommand().
  10962. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10963. Add RequestGroup to _requestGroup after RequetGroup::
  10964. createInitiateConnectionCommand() succeeds.
  10965. Externalized message
  10966. * src/XML2SAXMetalinkProcessor.cc
  10967. * src/message.h
  10968. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10969. Forced download abort when received negative response from http/ftp
  10970. server.
  10971. * src/HttpResponseCommand.cc
  10972. * src/FtpNegotiationCommand.cc
  10973. * src/HttpResponse.cc
  10974. * src/FtpConnection.cc
  10975. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10976. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10977. the predecessor, Xml2MetalinkParser class.
  10978. I tested them against 94KB metalink file with 1234 chunk checksums.
  10979. The new one parsed it in 22msec, while it took 6000msec with old one.
  10980. * src/XML2SAXMetalinkProcessor.{h, cc}
  10981. * test/XML2SAXMetalinkProcessorTest.cc
  10982. * src/MetalinkParserController.{h, cc}
  10983. * test/MetalinkParserControllerTest.cc
  10984. * src/MetalinkParserState.h: Also added 16 subclasses.
  10985. * src/main.cc
  10986. * src/Metalink2RequestGroup.cc
  10987. * src/MetalinkHelper.cc
  10988. * src/MetalinkEntry.cc
  10989. * src/ChunkChecksum.h
  10990. Rewritten Base64 class for better performance.
  10991. * src/Base64.{h, cc}
  10992. * test/Base64Test.cc
  10993. * src/HttpRequest.cc
  10994. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. Fixed the bug#1841757: aria2 will connect to server to only get
  10996. file size.
  10997. * src/StreamFileAllocationEntry.cc
  10998. * src/option_processing.cc
  10999. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11000. downloads.
  11001. * src/FtpNegotiationCommand.cc
  11002. Suppressed wrong message when finding PreDownloadHandler
  11003. * src/RequestGroup.cc
  11004. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11005. Updated usage
  11006. * src/version_usage.cc
  11007. Updated man page
  11008. * doc/aria2c.1.txt
  11009. * doc/aria2c.1
  11010. Updated po files
  11011. * po/aria2c.pot
  11012. * po/*.po
  11013. * po/*.gmo
  11014. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11015. Eliminated g++-4.2 warning
  11016. * src/DownloadHandlerConstants.{h, cc}
  11017. * src/Util.cc
  11018. * test/MetaFileUtilTest.cc
  11019. * test/PStringBuildVisitorTest.cc
  11020. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11021. * src/RequestGroup.cc
  11022. * src/BtCheckIntegrityEntry.cc
  11023. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. Fixed a2io.h
  11025. * src/a2io.h
  11026. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11027. Added direct I/O support. The current implementation uses O_DIRECT,
  11028. which is not posix standard and is tested on linux 2.6.21.
  11029. Currently only file allocation uses direct I/O.
  11030. * src/SingleFileAllocationIterator.{h, cc}
  11031. * test/SingleFileAllocationIteratorTest.cc
  11032. * src/MultiFileAllocationIterator.{h, cc}
  11033. * test/MultiFileAllocationIteratorTest.cc
  11034. * src/BinaryStream.h
  11035. * src/DiskWriter.h
  11036. * src/AbstractDiskWriter.{h, cc}
  11037. * src/ByteArrayDiskWriter.h
  11038. * src/DiskAdaptor.h
  11039. * src/AbstractSingleDiskAdaptor.{h, cc}
  11040. * src/MultiDiskAdaptor.{h, cc}
  11041. * src/FileAllocationEntry.cc
  11042. * src/Util.{h, cc}
  11043. * src/OptionHandlerFactory.cc
  11044. * src/prefs.h
  11045. * src/version_usage.cc
  11046. * src/option_processing.cc
  11047. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11048. handleException.
  11049. * src/MultiFileAllocationIterator.cc
  11050. Added EINTR handling
  11051. * src/SocketCore.cc
  11052. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11053. Updated usage
  11054. * src/version_usage.cc
  11055. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11056. Applied Ross's patch for MinGW port.
  11057. * src/DownloadEngine.h
  11058. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11059. Set Content-Type to SingleFileDownloadContext when http response is
  11060. received.
  11061. * src/HttpResponseCommand.cc
  11062. * src/HttpResponse.{h, cc}
  11063. * test/HttpResponseTest.cc
  11064. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. Rewritten to add content-type support.
  11066. * src/DownloadHandler.{h, cc}
  11067. * src/BtPostDownloadHandler.{h, cc}
  11068. * test/BtPostDownloadHandlerTest.cc
  11069. * src/MetalinkPostDownloadHandler.{h, cc}
  11070. * test/MetalinkPostDownloadHandlerTest.cc
  11071. * src/PostDownloadHandler.{h, cc}
  11072. * src/DownloadHandlerConstants.{h, cc}
  11073. * src/RequestGroup.cc
  11074. * src/HttpResponseCommand.cc
  11075. * src/FtpNegotiationCommand.cc
  11076. * src/SingleFileDownloadContext.{h, cc}
  11077. * src/RequestGroup.h
  11078. * src/RequestGroupCriteria.h
  11079. * src/ContentTypeRequestGroupCriteria.h
  11080. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11081. If it is give, metalink/torrent file is not written to the disk, but
  11082. just is kept in memory. Parsing is occurred on memory.
  11083. * src/MetalinkHelper.{h, cc}
  11084. * src/MetalinkProcessor.h
  11085. * src/Xml2MetalinkProcessor.{h, cc}
  11086. * test/Xml2MetalinkProcessorTest.cc
  11087. * src/DownloadHandlerFactory.{h, cc}
  11088. * test/DownloadHandlerFactoryTest.cc
  11089. * src/PreDownloadHandler.{h, cc}
  11090. * src/OptionHandlerFactory.cc
  11091. * src/DefaultBtContext.{h, cc}
  11092. * test/DefaultBtContextTest.cc
  11093. * src/version_usage.cc
  11094. * src/Metalink2RequestGroup.{h, cc}
  11095. * src/RequestGroup.{h, cc}
  11096. * src/a2functional.h
  11097. * test/a2functionalTest.cc
  11098. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11099. * src/OptionHandlerImpl.h
  11100. * src/prefs.h
  11101. * src/Util.{h, cc}
  11102. * test/UtilTest.cc
  11103. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11104. memory usage.
  11105. * src/RequestGroupMan.{h, cc}
  11106. * src/DownloadEngine.cc
  11107. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11108. WeakHandle to SharedHandle because WeakHandle could be null.
  11109. * src/RequestGroup.{h, cc}
  11110. * src/DownloadEngineFactory.cc
  11111. * src/DownloadResult.h
  11112. Set totalLength after download finished
  11113. * src/UnknownLengthPieceStorage.{h, cc}
  11114. Keep torrent file specified in metalink in memory.
  11115. * src/Metalink2RequestGroup.cc
  11116. * src/BtDependency.cc
  11117. * src/TrueRequestGroupCriteria.h
  11118. Fixed the bug: seekg is used where seekp should be used.
  11119. * src/ByteArrayDiskWriter.cc
  11120. * test/ByteArraydiskWriterTest.cc
  11121. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11122. Fixed syntax error
  11123. * test/SequenceTest.cc
  11124. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11125. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11126. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11127. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11128. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11129. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11130. Added the check to see whether ares_host_callback accepts timeouts
  11131. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11132. * src/NameResolver.{h, cc}
  11133. * m4/libcares.m4
  11134. * configure.ac: Set C++ for language choice.
  11135. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11136. Fixed: compilation fails without c-ares/ares
  11137. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11138. Generate http/ftp commands only when download is incomplete.
  11139. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11140. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11141. Corrected typo. Examples are removed since they are available in man
  11142. page.
  11143. * src/version_usage.cc
  11144. Updated man page.
  11145. * doc/aria2c.1
  11146. * doc/aria2c.1.txt
  11147. * doc/makeman: Commented out sed command.
  11148. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11149. Throw DlAbortEx when a remote file is not found.
  11150. * src/HttpResponse.cc
  11151. * src/FtpNegotiationCommand.cc
  11152. * src/message.h
  11153. Overwrite an existing file if --allow-overwrite=true is given.
  11154. * src/RequestGroup.cc
  11155. Removed unused functions
  11156. * src/AbstractCommand.h
  11157. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11158. Removed 'extern' from 'extern typedef ...' in src/*.h
  11159. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11160. Updated usage
  11161. * src/version_usage.cc
  11162. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11163. Trim announce URL
  11164. * src/DefaultBtContext.cc
  11165. * test/ShaVisitorTest.cc
  11166. Trim argument s. Give trimed s to exception constructor.
  11167. * src/Util.cc (parseInt)(parseLLInt)
  11168. * test/UtilTest.cc
  11169. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Set precision back to 1.
  11171. * src/ConsoleStatCalc.cc (calculateStat)
  11172. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Replaced strtol with Util::parseInt
  11174. * src/ChunkedEncoding.cc
  11175. * src/HttpConnection.cc
  11176. * src/CookieBoxFactory.cc
  11177. * src/ParameterizedStringParser.cc
  11178. * src/Util.cc
  11179. * test/UtilTest.cc
  11180. * test/OptionHandlerTest.cc
  11181. * src/Request.cc
  11182. Throw exception when empty string is given. The message for exception
  11183. changed.
  11184. * src/Util.cc (parseInt)(parseLLInt)
  11185. * src/message.h
  11186. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11187. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11188. set to 1.
  11189. * src/ConsoleStatCalc.cc (calculateStat)
  11190. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11191. Preallocate non-requested file which is adjacent forward to requested
  11192. file('requested' files means the files given in --select-file option)
  11193. if they share a same piece.
  11194. This fixes long pause in the file system which doesn't support sparse
  11195. files like FAT32 while downloading.
  11196. * src/MultiFileAllocationIterator.{h, cc}
  11197. * test/MultiFileAllocationIteratorTest.cc
  11198. * src/FileEntry.{h, cc}
  11199. Removed unused _option.
  11200. * src/MultiDiskAdaptor.h
  11201. * test/MultiDiskAdaptorTest.cc
  11202. * src/DefaultPieceStorage.cc
  11203. Set the default value of --seed-ratio to 1.0.
  11204. If 0.0 is given, then seeding continues regardless of share ratio.
  11205. * src/version_usage.cc
  11206. * src/option_processing.cc
  11207. * src/BtSetup.cc
  11208. * doc/aria2c.1.txt
  11209. * doc/aria2c.1
  11210. Fixed: Selective download is not working in BitTorrent
  11211. * src/RequestGroup.cc
  11212. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11213. * src/PieceStorage.h
  11214. * test/MockPieceStorage.h
  11215. * src/UnknownLengthPieceStorage.h
  11216. * src/DefaultPieceStorage.{h, cc}
  11217. * src/Metalink2RequestGroup.cc
  11218. * src/RequestGroup.cc
  11219. * src/Sequence.h
  11220. * test/SequenceTest.cc
  11221. * src/IntSequence.h
  11222. * src/message.h
  11223. * src/Util.{h, cc}
  11224. * test/UtilTest.cc
  11225. Added new function 'parse' to catch exception thrown by subclass's
  11226. parseArg
  11227. * src/OptionHandler.h
  11228. * src/OptionParser.cc
  11229. * src/NameMatchOptionHandler.h
  11230. * src/OptionHandlerImpl.h
  11231. * test/OptionHandlerTest.cc
  11232. Added IntegerRangeOptionHandler. Used for --listen-port and
  11233. --select-file. Now --listen-port accepts range of port.
  11234. * src/OptionHandlerFactory.cc
  11235. * src/version_usage.cc
  11236. * src/OptionHandlerImpl.h
  11237. * src/option_processing.cc
  11238. * src/BtSetup.cc
  11239. * src/PeerListenCommand.{h, cc}
  11240. * doc/aria2c.1.txt
  11241. * doc/aria2c.1
  11242. Implemented operator< for Exception class to provide easy way to print
  11243. exception stack trace.
  11244. * src/Exception.{h, cc}
  11245. * src/main.cc
  11246. * src/option_processing.cc
  11247. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11248. * src/version_usage.cc
  11249. (showVersion): Reworked.
  11250. (showUsage): Added examples.
  11251. Removed Hint for total length and file name.
  11252. * src/Metalink2RequestGroup.cc
  11253. * src/RequestGroup.{h, cc}
  11254. * src/HttpResponseCommand.cc
  11255. * src/FtpNegotiationCommand.cc
  11256. Now --follow-torrent and --follow-metalink option work properly.
  11257. * src/RequestGroup.cc
  11258. Updated man page
  11259. * doc/aria2c.1.txt
  11260. * doc/aria2c.1
  11261. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11262. Removed.
  11263. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11264. Use Segment::operator==()
  11265. * src/HttpConnection.cc
  11266. * src/Segment.h
  11267. Updated usage
  11268. * src/version_usage.cc
  11269. Added EINTR treatment.
  11270. * src/SocketCore.cc
  11271. * src/AbstractDiskWriter.cc
  11272. Rewritten.
  11273. * src/Util.cc (rangedFileCopy)
  11274. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11275. Fixed typo.
  11276. * src/version_usage.cc
  11277. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11278. Implemented. Now -c option works fine.
  11279. * src/DefaultPieceStorage.cc (markPiecesDone)
  11280. * test/DefaultPieceStorageTest.cc
  11281. Removed.
  11282. * src/SegmentMan.{h, cc}
  11283. (markAllPiecesDone)
  11284. (markPieceDone)
  11285. Synchronized po files with
  11286. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11287. * src/fr.po
  11288. * src/ru.po
  11289. * src/de.po
  11290. * src/ja.po
  11291. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11292. Added ifdef and some modifications to compile without BitTorrent,
  11293. Metalink, MessageDigest
  11294. support.
  11295. * src/PieceHashCheckIntegrityEntry.cc
  11296. * src/MetalinkEntry.h
  11297. * src/version_usage.cc
  11298. * src/main.cc
  11299. * src/DownloadEngine.{h, cc}
  11300. * src/Metalink2RequestGroup.cc
  11301. * src/Peer.cc
  11302. * src/RequestGroup.cc
  11303. * src/MetalinkHelper.cc
  11304. * test/DefaultPieceStorageTest.cc
  11305. * test/MetalinkPostDownloadHandlerTest.cc
  11306. * test/Metalink2RequestGroupTest.cc
  11307. Hide TOTAL SPD when all downloads complete.
  11308. * src/ConsoleStatCalc.cc
  11309. Log target system information.
  11310. * src/main.cc
  11311. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11312. Now --metalink-location accepts a comma-deliminated list of locations.
  11313. * src/MetalinkEntry.{h, cc}
  11314. * test/MetalinkEntryTest.cc
  11315. * src/version_usage.cc
  11316. * src/Metalink2RequestGroup.cc
  11317. * src/Xml2MetalinkProcessor.cc
  11318. * test/Xml2MetalinkProcessorTest.cc
  11319. * doc/aria2c.1.txt
  11320. * doc/aria2c.1
  11321. * src/Util.cc (toUpper)(toLower): Rewritten.
  11322. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11323. Added the ability to detect duplicate download entry which is about to
  11324. download the same file other RequestGroup is downloading.
  11325. * src/RequestGroup.cc
  11326. * src/HttpResponseCommand.cc
  11327. * src/FtpNegotiationCommand.cc
  11328. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11329. Recalculates download progress when loading a control file,
  11330. if the piece length of DownloadContext is different from the one saved
  11331. in the control file. Currently in-flight pieces are ignored.
  11332. * src/DefaultBtProgressInfoFile.cc
  11333. * test/DefaultBtProgressInfoFileTest.cc
  11334. * src/Util.{h, cc}
  11335. * test/UtilTest.cc
  11336. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11337. Do not rotate tiers in announce-list.
  11338. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11339. AnnounceList::allTiersFailed() used instead to detect whether all
  11340. tiers are tried and failed.
  11341. * test/DefaultBtAnnounceTest.cc
  11342. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11343. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11344. * test/AnnounceListTest.cc
  11345. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11346. clause. Catch RecoverableException instead of DlRetryEx instead.
  11347. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11348. Implemented checksum validation feature(1 checksum for each file)
  11349. The validation takes place after the download.
  11350. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11351. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11352. * src/CheckIntegrityCommand.cc: Changed log message.
  11353. * src/Metalink2RequestGroup.cc: Set checksum to
  11354. SingleFileDownloadContext.
  11355. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11356. PieceHashCheckIntegrity class.
  11357. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11358. PieceHashCheckIntegrity class.
  11359. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11360. * src/IteratableValidator.h: New class.
  11361. * src/message.h
  11362. * src/CheckIntegrityEntry.{h, cc}
  11363. * src/IteratableChunkChecksumValidator.{h, cc}
  11364. * src/SingleFileDownloadContext.h
  11365. * src/DownloadCommand.cc
  11366. --allow-overwrite=true is no longer needed to check file integrity
  11367. before download in BitTorrent download.
  11368. * src/RequestGroup.cc (getInitialCommand)
  11369. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11370. throws exception.
  11371. * src/RequestGroupMan.cc (getInitialCommands)
  11372. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11373. urlencode the given url inside Request::parseUrl(...)
  11374. * src/Request.{h, cc}
  11375. * src/Util.{h, cc}
  11376. * test/RequestTest.cc
  11377. Removed #!metalink3! notation support because it is deleted from
  11378. the metalink specification.
  11379. * src/Request.{h, cc}
  11380. * test/RequestTest.cc
  11381. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11382. Don't connect server before checking file integrity at startup, if
  11383. filesize and output file path are known.
  11384. * src/AbstractCommand.cc
  11385. * src/StreamFileAllocationEntry.cc
  11386. * src/Metalink2RequestGroup.cc
  11387. * src/RequestGroup.{h, cc}
  11388. * src/HttpResponseCommand.cc
  11389. * src/FtpNegotiationCommand.cc
  11390. Added DownloadFailureException. If it is thrown, RequestGroup should
  11391. halt.
  11392. * src/AbstractCommand.cc
  11393. * src/DownloadFailureException.h
  11394. * src/RequestGroup.cc
  11395. Catch RecoverableException, instead of DlAbortEx.
  11396. * src/RequestGroupMan.cc
  11397. * src/FillRequestGroupCommand.cc
  11398. * src/MetaFileUtil.cc
  11399. * src/IteratableChunkChecksumValidator.cc
  11400. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11401. getGID())
  11402. * src/CheckIntegrityCommand.cc
  11403. * src/message.h
  11404. Print gid instead of idx.
  11405. * src/RequestGroupMan.cc
  11406. Removed exception throwers declaration.
  11407. * src/DirectDiskAdaptor.{h, cc}
  11408. * src/SocketCore.{h, cc}
  11409. * src/MultiDiskAdaptor.{h, cc}
  11410. * src/HttpConnection.{h, cc}
  11411. * src/HttpResponse.{h, cc}
  11412. * src/DiskAdaptor.{h, cc}
  11413. * src/CopyDiskAdaptor.{h, cc}
  11414. * src/MultiDiskAdaptor.{h, cc}
  11415. * src/HttpHeaderProcessor.{h, cc}
  11416. * src/AbstractSingleDiskAdaptor.{h, cc}
  11417. * src/Util.{h, cc}
  11418. * test/UtilTest.cc
  11419. * src/DefaultDiskWriter.{h, cc}
  11420. * src/FtpConnection.{h, cc}
  11421. * src/AbstractDiskWriter.{h, cc}
  11422. Removed duplicate code.
  11423. * src/StreamCheckIntegrityEntry.cc
  11424. Removed unnecessary include.
  11425. * src/DiskWriter.h
  11426. Included Exception.h
  11427. * src/option_processing.cc
  11428. Included 2 files and added doc
  11429. * src/TrackerWatcherCommand.cc
  11430. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11431. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11432. Changed CheckIntegrityEntry interface so that it can define
  11433. the action when all the chunk checksums are valid.
  11434. * src/CheckIntegrityEntry.h
  11435. * src/StreamCheckIntegrityEntry.{h, cc}
  11436. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11437. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11438. to exit rather than doing seeding. So, it would be good to toggle this
  11439. behavior.
  11440. * src/CheckIntegrityCommand.cc
  11441. * src/AbstractCommand.cc
  11442. * src/RequestGroup.cc
  11443. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11444. Reflect the download length of in-flight pieces.
  11445. It makes the download length readout more precise.
  11446. * src/DefaultPieceStorage.{h, cc}
  11447. * test/DefaultPieceStorageTest.cc
  11448. * src/a2functional.h
  11449. * test/a2functionalTest.cc
  11450. Lower CPU load when --max-download-limit is used.
  11451. There is up and down in speed indicator when enabling
  11452. http-pipelining but a download goes well. I think the problem is that
  11453. because http-pipelining is enabled, DownloadCommand is created for
  11454. each segment and in its constructor, PeerStat::downloadStart() is
  11455. called. In PeerStat::downloadStart(), speed calculation object is
  11456. reseted, which makes download speed zero.
  11457. * src/DownloadCommand.cc
  11458. Rewritten using accumulate.
  11459. * src/RequestGroupMan.cc (calculateStat)
  11460. Code clearnup.
  11461. * src/FtpNegotiationCommand.cc
  11462. * src/HttpResponseCommand.cc
  11463. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11464. Fixed: Can not resume: aria2 reports download already finished.
  11465. * src/AbstractCommand.{h, cc}
  11466. * src/HttpResponseCommand.cc
  11467. * src/FtpNegotiateCommand.cc
  11468. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11469. Now a file is stored in the directory specified in .metalnk file
  11470. (file[@name]).
  11471. * src/Metalink2RequestGroup.cc
  11472. Create the directory structure when opening the file if it doesn't
  11473. exist.
  11474. * src/AbstractDiskWriter.cc
  11475. * src/Util.{h, cc}
  11476. * src/File.h
  11477. * test/UtilTest.cc
  11478. Removed file name comparison
  11479. * src/Metalink2RequestGroup.cc
  11480. * src/HttpResponseCommand.cc
  11481. Rewritten using Util::mkdirs()
  11482. * src/FileEntry.cc (setupDir)
  11483. * test/FileEntryTest.cc
  11484. Updated doc
  11485. * src/SingleFileDownloadContext.h
  11486. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11487. Now SleepCommand dispatches nextCommand when halt is requested.
  11488. It avoids a possible long wait after hitting CTRL-C.
  11489. * src/SleepCommand.{h, cc}
  11490. * src/RequestGroupAware.{h, cc}
  11491. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11492. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11493. to open listen port, then remove the port number from the tracker
  11494. request.
  11495. * src/DefaultBtAnnounce.cc
  11496. * test/DefaultBtAnnounceTest.cc
  11497. * test/MockPieceStorage.h
  11498. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11499. them more testable.
  11500. * src/DefaultBtAnnounce.{h, cc}
  11501. * src/DefaultBtContext.{h, cc}
  11502. * src/Util.{h, cc}
  11503. * test/DefaultBtAnnounceTest.cc
  11504. * test/DefaultBtContextTest.cc
  11505. * test/UtilTest.cc
  11506. Added 'B' to upload bytes readout.
  11507. * src/ConsoleStatCalc.cc
  11508. Now the listen port for BitTorrent download is opened when it is
  11509. needed.
  11510. * src/DownloadEngineFactory.cc
  11511. * src/BtSetup.{h, cc}
  11512. * src/PeerListenCommand.{h, cc}
  11513. Now an exception thrown while parsing tracker response is now logged.
  11514. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11515. called, which means no retry is made in this case, assuming a tracker
  11516. has a problem.
  11517. * src/TrackerWatcherCommand.cc
  11518. Fixed: downloading a file whose length is unkown fails.
  11519. * src/DownloadCommand.cc
  11520. Simplified prepareForNextSegment()
  11521. * src/DownloadCommand.cc
  11522. Updated
  11523. * po/POTFILES.in
  11524. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11525. Re-implemented a file listing for Metalink, which was dropped while
  11526. http/ftp/torrent integration was being implemented.
  11527. * src/MetalinkHelper.{h, cc}: New class.
  11528. * test/MetalinkHelperTest.cc
  11529. * src/main.cc
  11530. * src/Metalink2RequestGroup.cc
  11531. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11532. Added the ability to display the detailed torrent file information.
  11533. Now -S option gives not only a file listing, but also total download
  11534. length, info hash, announce URI, piece length, the number of pieces,
  11535. and mode(single or multi-torrent).
  11536. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11537. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11538. KiB)
  11539. * test/UtilTest.cc
  11540. * src/main.cc
  11541. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11542. Added ftp://USER:PASSWD@Servername automatic parsing.
  11543. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11544. _password. Recognize username and password in URI.
  11545. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11546. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11547. * src/RequestFactory.{h, cc}: Removed.
  11548. * src/AuthConfigFactory.{h, cc}: New class.
  11549. * src/FtpConnection.cc: Use AuthConfigFactory.
  11550. * src/HttpRequest.cc: Use AuthConfigFactory.
  11551. * test/HttpRequestTest.cc: Updated.
  11552. * test/RequestTest.cc: Updated.
  11553. * test/AuthConfigFactoryTest.cc: New class.
  11554. * test/RequestFactoryTest.cc: Removed.
  11555. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11556. Use RequestGroup::allDownloadFinished() to decide whether the control
  11557. file should be removed or saved.
  11558. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11559. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11560. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11561. Use File::renameTo()
  11562. * src/DefaultBtProgressInfoFile.cc
  11563. Added --no-file-allocation-limit command-line option.
  11564. * src/version_usage.cc
  11565. * src/option_processing.cc
  11566. * src/OptionHandlerFactory.cc
  11567. * src/RequestGroup.{h, cc}
  11568. * src/BtCheckIntegrityEntry.cc
  11569. * src/StreamCheckIntegrityEntry.cc
  11570. * src/prefs.h
  11571. * doc/aria2c.1.txt
  11572. * doc/aria2c.1
  11573. Now prealloc is the default value for --file-allocation option.
  11574. * src/version_usage.cc
  11575. * src/option_processing.cc
  11576. * doc/aria2c.1.txt
  11577. * doc/aria2c.1
  11578. Don't URL-encode user-agent.
  11579. * src/HttpRequest.cc
  11580. Updated translations
  11581. * po/LINGUAS: Added nl for Dutch translation.
  11582. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11583. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11584. * po/POTFILES.in: Updated.
  11585. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11586. Added the ability to recognize url-list in a torrent file.
  11587. The retrieved URLs are attached to the corresponding FileEntry.
  11588. * src/DefaultBtContext.{h, cc}
  11589. * src/FileEntry.{h, cc}
  11590. * test/DefaultBtContextTest.cc
  11591. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11592. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11593. after the download finishes.
  11594. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11595. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11596. the data smaller than block length.
  11597. A block length can be specified by constructor's argument.
  11598. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11599. Get a missing piece in the range of given FileEntry. This function is
  11600. not used in the program yet.
  11601. * src/Util.h: Added some macros.
  11602. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11603. Added HTTP/1.1 keep alive and pipelining support.
  11604. See --enable-http-keep-alive and --enable-http-pipelining option.
  11605. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11606. Segment.
  11607. * src/HttpDownloadCommand.{h, cc}
  11608. * src/OptionHandlerFactory.cc
  11609. * src/HttpConnection.{h, cc}
  11610. * src/version_usage.cc
  11611. * src/HttpInitiateConnectionCommand.cc
  11612. * src/FtpInitiateConnectionCommand.cc
  11613. * src/Segment.h
  11614. * src/HttpRequestCommand.{h, cc}
  11615. * src/option_processing.cc
  11616. * src/prefs.h
  11617. * src/HttpResponseCommand.cc
  11618. * src/SegmentMan.{h, cc}
  11619. * src/FtpNegotiateCommand.cc
  11620. * src/HttpProxyResponseCommand.cc
  11621. * src/Request.cc
  11622. * src/HttpRequest.cc
  11623. * src/DownloadCommand.cc
  11624. * test/HttpRequestTest.cc
  11625. * test/RequestTest.cc
  11626. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11627. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11628. finished.
  11629. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11630. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11631. catching it inside the method.
  11632. When no file entry is found in a metalink without querying user
  11633. preferences, throw the exception with the error message that suggests
  11634. metalink file is probably broken.
  11635. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11636. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11637. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11638. processed.
  11639. * src/RequestGroupMan.cc (removeStoppedGroup)
  11640. Added debug message.
  11641. * src/BtPostDownloadHandler.cc
  11642. * src/MetalinkPostDownloadHandler.cc
  11643. * src/PostDownloadHandler.{h, cc}
  11644. * src/RequestGroup.cc
  11645. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11646. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11647. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11648. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11649. stops and there are any unfinished or in-progress downloads.
  11650. Added the legend of "stat".
  11651. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11652. Throw exception when chunck checksum verification fails.
  11653. * src/DownloadCommand.cc (validatePieceHash): New function.
  11654. * src/PiecedSegment.{h, cc} (clear): New function.
  11655. * src/GrowSegment.{h, cc} (clear): New function.
  11656. * src/Segment.h (clear): New function.
  11657. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11658. * test/SegmentTest.cc
  11659. * test/GrowSegmentTest.cc
  11660. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11661. Do not send referer when redirected.
  11662. * src/Request.cc (redirectUrl)
  11663. * test/RequestTest.cc
  11664. * test/HttpRequestTest.cc
  11665. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11666. Implemented BitTorrent/http/ftp integrated download.
  11667. I've rewritten lots of files and now some headers have forward
  11668. class declarations to reduce compile time.
  11669. The implementation is extremely alpha stage, I recommend to use this
  11670. for testing purpose only.
  11671. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11672. Fixed the compilation error on 64bit platform.
  11673. * test/HttpHeaderProcessorTest.cc
  11674. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11675. Merged Ross's patch that fixes compilation problem in MinGW
  11676. * test/DefaultBtProgressInfoFileTest.cc
  11677. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11678. Updated fr.po by sebone
  11679. * po/fr.po
  11680. Updated man page.
  11681. * doc/aria2c.1.txt
  11682. * Release 0.11.3
  11683. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11684. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11685. failure in Metalink.
  11686. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11687. Automatically save *.aria2 control file of http/ftp download in every
  11688. 60 seconds.
  11689. * src/AutoSaveCommand.{h, cc}: New class.
  11690. * src/TimeBasedCommand.{h, cc}: New class.
  11691. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11692. Disable parameterized URI support by default. Added -P option to
  11693. enable the feature.
  11694. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11695. * src/OptionHandlerFactory.cc
  11696. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11697. Updated Japanese translation.
  11698. * po/ja.po
  11699. Updated man page.
  11700. * doc/aria2c.1.txt
  11701. * Release 0.11.3-rc
  11702. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11703. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11704. it is successful, then renamed to *.aria2.
  11705. This prevents *.aria2 file from being truncated or corrupted when
  11706. file system becomes out of space.
  11707. * src/DefaultBtProgressInfoFile.cc (save)
  11708. * src/SegmentMan.cc (save)
  11709. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11710. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11711. Reduced the fragmentation of bitfield in http/ftp download.
  11712. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11713. * test/BitfieldManTest.cc
  11714. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11715. Added the ability to disable segmented download in .metalink.
  11716. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11717. 'url' tag.
  11718. * src/MetalinkEntry.{h, cc}
  11719. * src/RequestResource.{h, cc}
  11720. * src/MetalinkRequestInfo.cc
  11721. * src/Xml2MetalinkProcessor.cc
  11722. * test/Xml2MetalinkProcessorTest.cc
  11723. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11724. Added parameterized URI support.
  11725. * src/main.cc: -Z option added.
  11726. * src/OptionHandlerFactory.cc
  11727. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11728. * src/PStringDatum.h: New class.
  11729. * src/PStringSegment.{h,cc}: New class.
  11730. * src/PStringNumLoop.h: New class.
  11731. * src/PStringSelect.h: New class.
  11732. * src/NumberDecorator.h: New class.
  11733. * src/FixedWidthNumberDecorator.h: New class.
  11734. * src/AlphaNumberDecorator.h: New class.
  11735. * src/PStringVisitor.h: New class.
  11736. * src/PStringBuildVisitor.{h,cc}: New class.
  11737. * src/ParameterizedStringParser.{h,cc}: New class.
  11738. * src/Util.{h,cc}
  11739. (isNumber): New function.
  11740. (isLowercase): New function.
  11741. (isUppercase): New function.
  11742. (alphaToNum): New function.
  11743. * test/ParameterizedStringParserTest.cc: New class.
  11744. * test/AlphaNumberDecoratorTest.cc: New class.
  11745. * test/PStringBuildVisitorTest.cc: New class.
  11746. * test/UtilTest.cc
  11747. (testIsNumber): New function.
  11748. (testIsLowercase): New function.
  11749. (testIsUppercase): New function.
  11750. (testAlphaToNum): New function.
  11751. Added '\n' after the error message
  11752. * src/RequestInfo.h (printDownloadAbortMessage)
  11753. Added auto file renaming feature in http(s)/ftp download.
  11754. * src/main.cc: Added --auto-file-renaming command-line option.
  11755. * src/OptionHandlerFactory.cc
  11756. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11757. * src/RequestGroup.{h, cc}
  11758. (shouldCancelDownloadForSafety): Rewritten
  11759. (tryAutoFileRenaming): New function.
  11760. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11761. * src/HttpResponseCommand.cc
  11762. (executeInternal): Removed the call to RequestGroupMan::
  11763. isSameFileBeingDownloaded()
  11764. * src/FtpNegotiateCommand.cc
  11765. (recvSize): Removed the call to RequestGroupMan::
  11766. isSameFileBeingDownloaded()
  11767. * test/RequestGroupTest.cc: New class.
  11768. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11769. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11770. IO.
  11771. * src/DefaultBtProgressInfoFile.cc
  11772. * src/MetaFileUtil.cc
  11773. * src/SimpleLogger.cc
  11774. * src/SegmentMan.cc
  11775. * src/Util.cc
  11776. * src/Platform.cc
  11777. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11778. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11779. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11780. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11781. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11782. Fixed the bug that prevents file allocation is not done when
  11783. dowloading multi-torrent file.
  11784. * src/AbstractDiskWriter.cc (openFile)
  11785. Increase the maximum number of -j option from 15 to 45.
  11786. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11787. Added fr.po, thanks to Charles Landemaine.
  11788. * po/fr.po
  11789. * po/LINGUAS
  11790. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11791. gcc 3.4.4 support:
  11792. * src/DefaultBtContext.cc: int32_t -> int
  11793. * src/main.cc: int -> int32_t, int32_t -> int
  11794. * src/messageDigest.h: uint32_t -> unsigned int
  11795. * src/NameResolver.h: int32_t -> int
  11796. * src/PeerConnection.cc: int -> int32_t
  11797. * src/SpeedCalc.cc: int32_t -> int
  11798. * src/TrackerUpdateCommand.h: int -> int32_t
  11799. * src/Util.cc: int32_t -> int
  11800. * src/Util.h: int32_t -> int
  11801. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11802. * test/AnnounceListTest.cc: int -> int32_t
  11803. * test/ChunkedEncodingTest.cc: int -> int32_t
  11804. * test/DataTest.cc: int -> int32_t
  11805. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11806. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11807. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11808. * test/FeatureConfigTest.cc: int -> int32_t
  11809. * test/MetalinkEntryTest.cc: int -> int32_t
  11810. * test/MockBtRequestFactory.h: int -> int32_t
  11811. * test/MockPieceStorage.h: int -> int32_t
  11812. * test/OptionTest.cc: int -> int32_t
  11813. * test/RequestTest.cc: int -> int32_t
  11814. * test/SegmentManTest.cc: int -> int32_t
  11815. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11816. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11817. Move sleep functions to Util class:
  11818. * src/Util.cc
  11819. (sleep): New function.
  11820. (usleep): New function.
  11821. * src/DownloadCommand.cc: sleep -> Util::sleep
  11822. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11823. MinGW build enhancements. The following files are added:
  11824. * src/timegm.{c,h}
  11825. Changes to support the above new files:
  11826. * configure.ac
  11827. * src/Makefile.am
  11828. * src/a2time.h
  11829. * src/Util.cc:
  11830. * src/strptime.c: Added support for %Z option.
  11831. Fixed MinGW non-blocking bug.
  11832. * src/SocketCore.cc
  11833. * src/HttpRequestCommand.cc
  11834. Miscellenous build fixes/enhancements.
  11835. * configure.ac: Added summary report.
  11836. * src/Platform.h: Tweaked #include's.
  11837. * src/a2netcompat.h: Tweaked #include's.
  11838. * src/strptime.h: Tweaked #include's.
  11839. * src/gai_strerror.c: Tweaked #include's.
  11840. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11841. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11842. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11843. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11844. Increased the initial connection size in BitTorrent download to 40.
  11845. * src/BtRuntime.h
  11846. Added the usage message of --peer-id-prefix option.
  11847. * src/main.cc
  11848. * Release 0.11.2
  11849. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11850. MessageDigestHelper is introduced in order to simplify the use
  11851. of message digest. Removed repeated code.
  11852. The message digest algorithm is now specified by string, like "sha1",
  11853. "md5".
  11854. * src/messageDigest.{h, cc}
  11855. * src/MessageDigestHelper.{h, cc}: New class.
  11856. * src/DefaultPieceStorage.cc
  11857. * src/DefaultBtContext.{h, cc}
  11858. (computeFastSet): New function.
  11859. (setInfoHash): Added for unit testing.
  11860. (setNumPieces): Added for unit testing.
  11861. * src/DefaultBtInteractive.cc
  11862. * src/BtPieceMessage.cc
  11863. * src/Peer.cc
  11864. * src/Checksum.h
  11865. * src/message.h
  11866. * src/IteratableChecksumValidator.h
  11867. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11868. inside it.
  11869. * src/SegmentMan.{h, cc}
  11870. (checkIntegrity): Removed.
  11871. * src/IteratableChunkChecksumValidator.{h, cc}
  11872. * src/Util.h
  11873. (sha1Sum): Removed.
  11874. (simpleMessageDigest): Removed.
  11875. (fileChecksum): Removed.
  11876. (computeFastSet): Removed.
  11877. * src/ShaVisitor.cc
  11878. * src/ChunkChecksum.h
  11879. * src/DownloadCommand.cc
  11880. Removed messageDigest virtual functions.
  11881. * src/MultiDiskAdaptor.{h, cc}
  11882. * src/DiskAdaptor.h
  11883. * src/ByteArrayDiskWriter.h
  11884. * src/DiskWriter.h
  11885. * src/DiskAdaptorWriter.h
  11886. * src/AbstractSingleDiskAdaptor.{h, cc}
  11887. * src/AbstractDiskWriter.{h, cc}
  11888. Fixed comilation error when message digest is disabled.
  11889. * src/MetalinkEntry.{h, cc}
  11890. * src/MetalinkRequestInfo.cc
  11891. Removed srandom and random.
  11892. * src/SimpleRandomizer.h
  11893. Added size() virtual function to DiskAdaptor
  11894. * src/MultiDiskAdaptor.h
  11895. Fixed the bug that causes that files are not opened correctly in
  11896. multi-file torrent.
  11897. * src/TorrentRequestInfo.cc
  11898. * src/MultiDiskAdaptor.cc
  11899. Added SHA256 support
  11900. * src/messageDigest.cc
  11901. * src/Xml2MetalinkProcessor.cc
  11902. Show supported message digest algorithms
  11903. * src/main.cc
  11904. Updated contact info.
  11905. * src/main.cc
  11906. Applied Ross's patch
  11907. * src/a2netcompat.h
  11908. * src/main.cc
  11909. Fixed the bug that prevents a remote metalink from not being processed
  11910. even if '-o foo.metalink' is specified.
  11911. * src/MetalinkRequestInfo.cc
  11912. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11913. Merged Dan's patch:
  11914. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11915. Use va_copy to avoid core dump on amd64:
  11916. * src/SimpleLogger.cc
  11917. Updated contact info.
  11918. * src/main.cc
  11919. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11920. digest is not available.
  11921. * src/MetalinkEntry.h
  11922. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11923. Make a2netcompat.h include a2io.h to fix compilation error:
  11924. * src/a2netcompat.h
  11925. * src/SocketCore.cc: Removed include of a2io.h
  11926. * src/Util.cc: Removed include of a2io.h
  11927. Gather time related functions to a2time.h:
  11928. * src/a2time.h: New file.
  11929. * src/DefaultPeerStorage.cc
  11930. * src/SimpleLogger.cc
  11931. * src/Util.{h, cc}
  11932. * src/SimpleRandomizer.h
  11933. * src/TimeA2.{h,cc}
  11934. * src/DownloadCommand.cc
  11935. * src/main.cc
  11936. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11937. a2netcompat.h:
  11938. * src/NameResolver.cc
  11939. Fixed compilation error without openssl:
  11940. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11941. Added default block to suppress compiler warnings:
  11942. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11943. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11944. MinGW build enhancements. The following files are added:
  11945. * src/gai_strerror.{c,h}
  11946. * src/gettimeofday.{c,h}
  11947. Changes to support the above new files:
  11948. * configure.ac
  11949. * src/Makefile.am
  11950. * src/a2netcompat.h
  11951. * src/TimeA2.cc
  11952. * src/DefaultPeerStorage.cc
  11953. * src/NameResolver.cc: removed mingw_strerror() function.
  11954. * src/SocketCore.cc: removed mingw_strerror() function.
  11955. Miscellaneous MinGW build fixes.
  11956. * src/a2io.h: Use _lseeki64() instead of lseek()
  11957. * src/common.h
  11958. * src/DefaultFileAllocator.cc
  11959. * src/GlowFileAllocator.cc
  11960. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11961. * src/NameResolver.cc
  11962. (callback): Changed int32_t to int.
  11963. (resolve): Changed int32_t to int.
  11964. * src/Platform.cc
  11965. * src/Platform.h
  11966. * test/MultiDiskWriterTest.cc
  11967. * test/PeerMessageUtilTest.cc
  11968. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11969. Other enhancements and fixes.
  11970. * src/HttpRequestCommand.cc
  11971. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11972. * src/SocketCore.cc:
  11973. (error): New function to abstract errno/WSAGetLastError().
  11974. (errorMsg): New function to abstract errno/WSAGetLastError().
  11975. (initiateSecureConnection): Added more detailed error reporting.
  11976. * src/SocketCore.h: Added private variable blocking, to allow
  11977. proper handling of OpenSSL psuedo-errors.
  11978. * src/message.h
  11979. (EX_SSL_INIT_FAILURE)
  11980. (EX_SSL_IO_ERROR)
  11981. (EX_SSL_PROTOCOL_ERROR)
  11982. (EX_SSL_UNKNOWN_ERROR)
  11983. (EX_SSL_CONNECT_ERROR)
  11984. (EX_SOCKET_BLOCKING)
  11985. (EX_SOCKET_NONBLOCKING)
  11986. (EX_SOCKET_UNKNOWN_ERROR)
  11987. * src/Util.cc
  11988. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11989. reserved name.
  11990. (httpGMT): Fixed typo.
  11991. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11992. Merged Ross's win32 patch(manually)
  11993. In the course of merging, following files are added.
  11994. * src/strptime.{h,c}
  11995. * src/libgen.{h,c}
  11996. * src/inet_aton.{h,c}
  11997. * src/Platform.{h,cc}
  11998. * src/localtime_r.{h,c}
  11999. * src/getaddrinfo.{h,c}
  12000. I've gethered network related things, and put them to following file:
  12001. * src/a2netcompat.h
  12002. Also io related things are put to following file:
  12003. * src/a2io.h
  12004. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12005. * src/message.h
  12006. (MSG_ALLOCATION_COMPLETED)
  12007. (EX_TOO_LARGE_FILE)
  12008. (EX_SIZE_MISMATCH)
  12009. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12010. (EX_INVALID_CHUNK_CHECKSUM)
  12011. (EX_INVALID_RANGE_HEADER)
  12012. * src/FileAllocationCommand.cc
  12013. * src/HttpResponse.cc
  12014. * src/RequestGroup.cc
  12015. * src/MultiDiskAdaptor.cc
  12016. * src/OptionHandlerImpl.h
  12017. * src/HttpResponseCommand.cc
  12018. * src/FtpNegotiateCommand.cc
  12019. * src/IteratableChecksumValidator.cc
  12020. * src/SegmentMan.cc
  12021. * src/ChunkChecksumValidator.cc
  12022. Added Randomizer::getRandomNumber(long int)
  12023. * src/Randomizer.h (getRandomNumber)
  12024. * src/SimpleRandomizer.h (getRandomNumber)
  12025. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12026. * src/Util.cc (randomAlpha): Use this new function.
  12027. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12028. Converted int's to in32_t. long long int's are also converted to
  12029. int64_t
  12030. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12031. Fixed the bug that prevents cookies from being sent to the server
  12032. if the domain of cookie is FQDN and starts with ".".
  12033. * src/Cookie.cc (match)
  12034. To add the ability to change peer id.
  12035. * src/DefaultBtContext.h
  12036. (_peerIdPrefix): New variable
  12037. (setPeerIdPrefix): New function.
  12038. * src/torrentRequestInfo.cc
  12039. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12040. DefaultBtContext.
  12041. * src/main.cc (main): Added peer-id-prefix command-line option.
  12042. The usage message is not added yet.
  12043. * src/DefaultBtContext.cc
  12044. (generatePeerId): Use _peerIdPrefix.
  12045. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12046. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12047. Fixed the bug that prevents filename in content-disposition from
  12048. being retrieved when filename is not quoted.
  12049. * src/Util.cc (getContentDispositionFilename)
  12050. Fixed the bug that causes infinate loop and memory leak when file open
  12051. operation failed.
  12052. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12053. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12054. Fixed the bug that causes segfault when all URIs specified are
  12055. unsupported.
  12056. * src/RequestGroupMan.cc (getInitialCommands)
  12057. Check if RequestGroup::createNextCommand() returns empty list of
  12058. commands.
  12059. * src/RequestGroup.cc (createNextCommand)
  12060. Change log level from info to error so that users can notice that
  12061. an error occurred.
  12062. Fixed the bug that causes segfault when a zero-sized file is
  12063. downloaded.
  12064. * src/BitfieldMan.cc (isAllBitSet)
  12065. Return true if bitfieldLength is 0.
  12066. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12067. * src/main.cc
  12068. (showUsage): Added 3 usage examples for metalink download.
  12069. Replace MetalinkChunkChecksum with ChunkChecksum.
  12070. * src/MetalinkChunkChecksum.h: Removed.
  12071. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12072. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12073. * src/Xml2MetalinkProcessor.cc
  12074. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12075. * src/MetalinkRequestInfo.cc (execute)
  12076. * Release 0.11.1
  12077. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12078. Reads URIs from stdin when "-i -" is specified.
  12079. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12080. * src/UriListParser.h, src/UriListParser.cc: New class.
  12081. * src/StreamUriListParser.h: New class.
  12082. * src/FileUriListParser.h: New class.
  12083. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12084. instead of UriFileListParser.
  12085. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. Made console readout more readable.
  12087. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12088. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12089. Fix the bug that causes -s option not to work.
  12090. * src/main.cc (main)
  12091. * src/a2algo.h: New file.
  12092. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12093. Create directory structure specified in metalink file.
  12094. * src/RequestGroup.h, src/RequestGroup.cc
  12095. (initAndOpenFile): Create a directory to store files if it does not
  12096. exist.
  12097. (getDir): New function.
  12098. Added ETA and download speed for an individual file to readout.
  12099. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12100. * src/RequestGroup.h
  12101. (calculateDownloadSpeed): New function.
  12102. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12103. Made -S option work with metalink file and provided selective download
  12104. to metalink.
  12105. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12106. (filename): Removed.
  12107. (file): New variable.
  12108. (size): Removed.
  12109. (operator=): Updated.
  12110. (getPath): New function.
  12111. (getLength): New function.
  12112. (toFileEntry): New function.
  12113. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12114. (execute): Use toStream.
  12115. (showFileEntry): Removed.
  12116. * src/MetalinkRequestInfo.h
  12117. (targetFiles): New variable.
  12118. (setTargetFiles): New variable.
  12119. * src/MetalinkRequestInfo.cc
  12120. (execute): Added the ability to print file information included in
  12121. a metalink file.
  12122. Added selective download mode to metalink.
  12123. * src/main.cc
  12124. (showUsage): Updated to denote that -S and --select-file options are
  12125. applicable to metalink.
  12126. * src/FileEntry.h
  12127. (operator=): New function.
  12128. (getBasename): New function.
  12129. (getDirname): New function.
  12130. * src/Util.h, src/Util.cc
  12131. (toStream): New function.
  12132. * src/Xml2MetalinkProcessor.cc: Updated.
  12133. Made aria2 work with metalink with directory structure.
  12134. * src/File.h, src/File.cc
  12135. (getBasename): New function.
  12136. (getDirname): New function.
  12137. * src/RequestGroup.h, src/RequestGroup.cc
  12138. (_topDir): New variable.
  12139. (setTopDir): New function.
  12140. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12141. Rewrote HTTP header parsing with stringstream.
  12142. * src/HttpConnection.h, src/HttpConnection.cc
  12143. (HttpRequestEntry): New class.
  12144. (headerBuf): Removed.
  12145. (headerBufLength): Removed.
  12146. (outstandingHttpRequests): Now its element type is
  12147. HttpRequestEntryHandle.
  12148. (findEndOfHeader): Removed.
  12149. (receiveResponse): Rewritten.
  12150. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12151. Updated doc for -j option to notice that it should be used with -i
  12152. option.
  12153. * src/main.cc (showUsage)
  12154. Removed unused classes.
  12155. * src/RequestInfo.h
  12156. (FileInfo): Removed.
  12157. (checksum): Removed.
  12158. (fileInfo): Removed.
  12159. (setChecksum): Removed.
  12160. (getChecksum): Removed.
  12161. (getFileInfo): Removed.
  12162. Use ISO units.
  12163. * src/ConsoleDownloadEngine.cc
  12164. * src/TorrentConsoleDownloadEngine.cc
  12165. * src/Util.cc (abbrevSize)
  12166. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12167. Added the default listening ports to the help message.
  12168. * src/main.cc (showUsage)
  12169. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12170. Reduce the number of calls to gettimeofday to lower CPU load.
  12171. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12172. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12173. * src/Peer.h (calculateUploadSpeed): New function.
  12174. (calculateDownloadSpeed): New function.
  12175. * src/DefaultPeerStorage.cc
  12176. (CalculateStat): Added _now variable.
  12177. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12178. and Peer::calculateUploadSpeed(const struct timeval&)
  12179. Drop connection if no request or piece message is exchanged in
  12180. a certain interval.
  12181. * src/DefaultBtInteractive.h
  12182. (btRuntime): New variable.
  12183. (inactiveCheckPoint): New variable.
  12184. (checkActiveInteraction): New function.
  12185. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12186. request or piece message is received.
  12187. (checkActiveInteraction): New function.
  12188. (doInteractionProcessing): Call checkActiveInteraction.
  12189. Fixed the bug that causes remote Metalink and Torrent files are not
  12190. processed.
  12191. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12192. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12193. Changed format of log file.
  12194. * src/SimpleLogger.cc
  12195. * Release 0.11.0
  12196. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12197. * src/AbstractCommand.cc
  12198. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12199. MSG_MAX_TRY from error to info.
  12200. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12201. * src/message.h
  12202. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12203. (MSG_DOWNLOAD_ABORTED): Added %s.
  12204. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12205. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12206. * src/PeerAbstractCommand.cc
  12207. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12208. * src/Request.h
  12209. (cookieBox): Made ShardHandle.
  12210. * src/RequestGroup.h, src/RequestGroup.cc
  12211. (createNextCommandWithAdj): New function.
  12212. * src/FileAllocationCommand.cc
  12213. (executeInternal): Use createNextCommandWithAdj().
  12214. * src/CheckIntegrityCommand.cc
  12215. (executeInternal): Use createNextCommandWithAdj().
  12216. Added --load-cookies command-option.
  12217. * src/OptionHandlerFactory.cc
  12218. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12219. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12220. Now aria2 can handle cookie's expiration date.
  12221. * src/Cookie.h (expires): Changed its type to time_t.
  12222. * src/main.cc: Added --load-cookies command-line option.
  12223. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12224. * src/Util.h, src/Util.cc (httpGMT): New function.
  12225. * src/Request.cc (Request): Initialize cookieBox using
  12226. CookieBoxFactory.
  12227. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12228. * src/CookieParser.h, src/CookieParser.cc: New class.
  12229. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12230. * src/HttpResponseCommand.cc
  12231. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12232. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12233. download.
  12234. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12235. Added -j command-line option.
  12236. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12237. * src/main.cc
  12238. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12239. Rewritten using stringstream.
  12240. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12241. Rewritten using stringstream.
  12242. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12243. Make download size shown in MB, KB.
  12244. * src/ConsoleDownloadEngine.h (sendStatistics)
  12245. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12246. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12247. Accept incoming connections if download rate is low.
  12248. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12249. (_lowestSpeedLimit): New variable.
  12250. (setLowestSpeedLimit): New function.
  12251. (execute): Accept incoming connections if download rate is low.
  12252. MAX_PEERS is ignored in this case.
  12253. Disable PREF_OUT in multiple concurrent download:
  12254. * src/RequestGroup.h, src/RequestGroup.cc
  12255. (setUserDefinedFilename): New function.
  12256. * src/DownloadEngineFactory.cc
  12257. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12258. concurrent download.
  12259. * src/DefaultSegmentManFactory.cc
  12260. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12261. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12262. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12263. Added its overloaded method.
  12264. * src/RequestGroup.h
  12265. (_numConcurrentCommand): New variable.
  12266. (setNumConcurrentCommand): New function.
  12267. * src/RequestGroup.cc
  12268. Abort download if same file is being downloaded concurrently.
  12269. * src/RequestGroup.h, src/RequestGroupMan.cc
  12270. (isSameFileBeingDownloaded): New function.
  12271. * src/HttpResponseCommand.cc (executeInternal)
  12272. * src/FtpNegotiateCommand.cc (recvSize)
  12273. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12274. * main.cc: Added help message for -i option.
  12275. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12276. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12277. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12278. * src/MetalinkEntry.h
  12279. (checksum): Changed to ChecksumHandle
  12280. * src/MetalinkRequestInfo.cc
  12281. (checksum): Changed to ChecksumHandle
  12282. * src/File.cc
  12283. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12284. * src/common.h
  12285. (DIR_OPEN_MODE): New definition
  12286. * src/RequestGroup.cc
  12287. (prepareForNextAction): Added an argument.
  12288. * src/message.h
  12289. (MSG_GOOD_CHECKSUM): New definition
  12290. (MSG_BAD_CHECKSUM): New definition
  12291. * src/HttpResponseCommand.cc
  12292. (handleDefaultEncoding): Continue download sequence in new
  12293. non-segmented download.
  12294. * src/FileAllocationEntry.h
  12295. (_nextDownloadCommand): New variable.
  12296. * src/DownloadCommand.cc
  12297. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12298. available.
  12299. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12300. * src/IteratableChecksumValidator.h,
  12301. src/IteratableChecksumValidator.cc: New class.
  12302. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12303. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12304. Change file mode to 666:
  12305. * src/common.h (OPEN_MODE): New definition.
  12306. * src/File.cc
  12307. * src/Util.cc
  12308. * src/Directry.cc
  12309. * src/AbstractDiskWriter.cc
  12310. Change the level of log message "download aborted" to debug:
  12311. * src/PeerAbstractCommand.cc (execute)
  12312. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12313. * src/TrackerWatcherCommand.cc
  12314. (createCommand): Sleep some seconds after request failed.
  12315. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12316. then abort tracker request.
  12317. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12318. * Added the simultaneous download feature.
  12319. * src/main.cc: Print "Exception caught: " when exception is caught.
  12320. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12321. * src/ActivePeerConnectionCommand.cc
  12322. * src/PeerInteractionCommand.cc
  12323. * src/BtRuntime.h
  12324. (cuidCounter): Removed.
  12325. (getNewCuid): Removed.
  12326. * src/DownloadEngineFactory.cc
  12327. * src/PeerListenCommand.cc
  12328. * src/TrackerUpdateCommand.cc
  12329. * src/PeerInitiateConnectionCommand.cc
  12330. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12331. * src/PeerAbstractCommand.cc
  12332. (onAbort): Call PeerStorage::returnPeer()
  12333. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12334. (incomingPeers): New variable.
  12335. (addIncomingPeer): New function.
  12336. (returnPeer): New function.
  12337. (onErasingPeer): New function.
  12338. (addPeer): push_back -> push_front
  12339. (getActivePeers): Rewritten.
  12340. (calculateStat): Rewritten.
  12341. * src/PeerStorage.h
  12342. (TransferStat::copy): New function.
  12343. (TransferStat::TransferStat): New function.
  12344. (TransferStat::operator=): New function.
  12345. (addIncomingPeer): New function.
  12346. (returnPeer): New function.
  12347. * src/PeerListenCommand.cc
  12348. (execute): Use PeerStorage::addIncomingPeer() instead of
  12349. Peer::addPeer().
  12350. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12351. Connect to a peer actively when download speed is lower than specified
  12352. speed in torrent download:
  12353. * src/ActivePeerConnectionCommand.h: New class.
  12354. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12355. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12356. * src/main.cc: Fixed the bug that prevents download if .netrc
  12357. doesn't exist.
  12358. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12359. To cache resolved hostname:
  12360. * src/AbstractCommand.h, src/AbstractCommand.cc
  12361. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12362. Added dns cache.
  12363. * src/FtpInitiateConnectionCommand.cc
  12364. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12365. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12366. NameResolver working without ares.
  12367. * src/TorrentRequestInfo.cc
  12368. (execute): Don't cache dns in torrent download.
  12369. * src/HttpInitiateConnectionCommand.cc
  12370. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12371. * src/DNSCache.h: New class.
  12372. * src/UrlRequestInfo.cc
  12373. (execute): Use dns cache.
  12374. In http request, suppress port number in http request header if port
  12375. is 80 or 443:
  12376. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12377. request header if port is 80 or 443.
  12378. (createProxyRequest): Allways send port number.
  12379. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12380. To add the command-line option which disables netrc support:
  12381. * src/OptionHandlerFactory.cc
  12382. (createOptionHandlers): Added PREF_NO_NETRC.
  12383. * src/main.cc: Added -n option.
  12384. * src/prefs.h (PREF_NO_NETRC): New definition.
  12385. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12386. V_TRUE.
  12387. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12388. is V_FALSE. This may get configurable in the future release.
  12389. To clear peer's error status by time basis:
  12390. * src/PeerAbstractCommand.cc
  12391. (onAbort): Call Peer::startBadCondition().
  12392. * src/Peer.h, src/Peer.cc
  12393. (error): Removed.
  12394. (_badConditionStartTime): New variable.
  12395. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12396. (startBadCondition): New function.
  12397. (isGood): New function.
  12398. * src/DefaultPeerStorage.cc
  12399. (addPeer): Use Peer::isGood().
  12400. (FindFinePeer): Use Peer::isGood().
  12401. Always include port number in http request header:
  12402. * src/HttpRequest.cc (getHostText): Always include port number in
  12403. http request header.
  12404. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12405. To the ability to read options from a config file:
  12406. * src/main.cc: Command-line parameter validation is delegated to
  12407. OptionHandler class.
  12408. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12409. * src/Option.h, src/Option.cc (clear): New function.
  12410. * src/OptionParser.h, src/OptionParser.cc: New class.
  12411. * src/OptionHandler.h: New class.
  12412. * src/NameMatchOptionHandler.h: New class.
  12413. * src/OptionHandlerImpl.h: New classes.
  12414. * src/prefs.h: '_' -> '-'
  12415. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12416. (FTP_PASV): New definition.
  12417. * src/Util.h, src/Util.cc (getRealSize): New function.
  12418. To disable netrc support if .netrc file does not have correct
  12419. permissions:
  12420. * src/File.h, src/File.cc (mode): New function.
  12421. To prevent confidential information to be logged:
  12422. * src/HttpConnection.h, src/HttpConnection.cc
  12423. (eraseConfidentialInfo): New function.
  12424. (sendRequest): Call eraseConfidentialInfo().
  12425. (sendProxyRequest): Call eraseConfidentialInfo().
  12426. * src/main.cc: Validate permissions of .netrc file.
  12427. To add --user-agent command-line option:
  12428. * src/main.cc: Added new command line option: --user-agent
  12429. * src/prefs.h (PREF_USER_AGENT): New definition.
  12430. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12431. parameter to HttpRequest object.
  12432. * src/AbstractProxyRequestCommand.cc
  12433. (executeInternal): Set user-agent option parameter to HttpRequest
  12434. object.
  12435. Marged the patches from Dan Fandrich.
  12436. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12437. Use filename and size from Metalink file instead of sending HEAD
  12438. request:
  12439. * src/UrlRequestInfo.h
  12440. (_filename): New variable.
  12441. (_totalLength): New variable.
  12442. (setTotalLength): New variable.
  12443. (setFilename): New variable.
  12444. * src/MetalinkRequestInfo.cc
  12445. (execute): Set filename and size to UrlRequestInfo
  12446. * src/UrlRequestInfo.cc
  12447. (execute): Use filename and size from Metalink instead of seding
  12448. HEAD request to servers.
  12449. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12450. To add the ability to resume downloading a partially downloaded file
  12451. which is downloaded from the beginning:
  12452. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12453. takes this role.
  12454. * src/main.cc: Added -c option.
  12455. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12456. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12457. * src/prefs.h (PREF_CONTINUE): New definition.
  12458. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12459. * src/DefaultDiskWriter.cc
  12460. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12461. * src/AbstractDiskWriter.h
  12462. (glowFileAllocator): New variable.
  12463. * src/AbstractDiskWriter.cc
  12464. (openExistingFile): Now preallocate file space from the end of the
  12465. existing file if totalLength argument is specified and grater than 0.
  12466. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12467. to download exists in local, continue the download of the file.
  12468. --allow-overwrite=true is assumed in this context.
  12469. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12470. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12471. Throw exception if --check-integrity=true is specified but chunk
  12472. checksums are not provided:
  12473. * src/UrlRequestInfo.cc
  12474. Do not print URLs to stdout:
  12475. * src/UrlRequestInfo.cc
  12476. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12477. * src/Request.h: Use AuthResolver to get authentication information.
  12478. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12479. set to RequestFactory object.
  12480. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12481. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12482. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12483. create Request object.
  12484. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12485. To integrate Netrc into exsiting classes:
  12486. * src/Request.h
  12487. (_userDefinedAuthConfig): New variable.
  12488. (findNetrcAuthenticator): New function.
  12489. (segment): Removed.
  12490. (setUserDefinedAuthConfig): New function.
  12491. (resolveHttpAuthConfigItem): New function.
  12492. (resolveFtpAuthConfigItem): New function.
  12493. (resolveHttpProxyAuthConfigItem): New function.
  12494. * src/HttpRequest.h
  12495. (authConfig): Removed.
  12496. (proxyAuthConfig): Removed.
  12497. (setAuthConfig): Removed.
  12498. (setProxyAuthConfig): Removed.
  12499. * src/UrlRequest.h
  12500. (getHeadResult): Added a parameter: authConfigHandle
  12501. * src/common.h
  12502. (SingletonHolder.h): New include.
  12503. * src/main.cc
  12504. (Netrc.h): New include.
  12505. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12506. Added initial value of PREF_NETRC_PATH.
  12507. Added the initialization of netrc.
  12508. * src/AuthConfig.h: New class.
  12509. * src/prefs.h
  12510. (PREF_NETRC_PATH): New definition.
  12511. * src/HttpAuthConfig.h: Removed.
  12512. * src/Netrc.cc
  12513. (getRequiredNextToken): New function.
  12514. (skipMacdef): New function.
  12515. (parse): Rewritten.
  12516. * src/Netrc.h
  12517. (getRequiredNextToken): New function.
  12518. (skipMacdef): New function.
  12519. * src/Util.h, src/Util.cc
  12520. (getHomeDir): New function.
  12521. * src/TrackerWatcherComand.cc
  12522. (createRequestCommand): Use AuthConfig.
  12523. * src/FtpConnection.cc
  12524. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12525. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12526. * src/Request.cc
  12527. (findNetrcAuthenticator): New function.
  12528. (resolveHttpAuthConfigItem): New function.
  12529. (resolveFtpAuthConfigItem): New function.
  12530. (resolveHttpProxyAuthConfigItem): New function.
  12531. * src/UrlRequestInfo.cc: Use AuthConfig.
  12532. * src/HttpRequest.cc
  12533. (createRequest): Use authConfig.
  12534. (getProxyAuthString): Use authConfig.
  12535. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12536. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12537. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12538. To reduce overhead to find commands whose socket is either
  12539. readable or writable in the download engine loop:
  12540. * src/Command.h, src/Command.cc
  12541. (STATUS): New enum.
  12542. (status): New variable.
  12543. (statusMatch): New function.
  12544. (setStatusActive): New function.
  12545. (setStatusInactive): New function.
  12546. * src/DownloadEngine.h, src/DownloadEngine.cc
  12547. (executeCommand): New function.
  12548. (run): Simplified.
  12549. (waitData): Call Command::setStatusActive() when command's socket is
  12550. readable or writable.
  12551. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12552. To handle Segment as SegmentHandle:
  12553. * src/AbstractCommand.cc (execute): Rewritten.
  12554. * src/SegmentMan.h: Segment -> SegmentHandle
  12555. Introducded HttpResponse class, HttpRequest class to improve code
  12556. extensiveness and make it clear:
  12557. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12558. HttpResponse class.
  12559. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12560. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12561. * src/HttpConnection.cc: Contruction of http request were moved to
  12562. HttpRequest class.
  12563. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12564. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12565. * src/HttpAuthConfig.h: New class.
  12566. * src/Range.h: New class.
  12567. To make FtpTunnel{Request, Response}Command and
  12568. HttpProxy{Request, Response}Command derived from
  12569. AbstractProxy{Request, Response}Command:
  12570. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12571. Derived from AbstractProxyRequestCommand class.
  12572. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12573. Derived from AbstractProxyResponseCommand class.
  12574. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12575. Derived from AbstractProxyRequestCommand class.
  12576. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12577. Derived from AbstractProxyResponseCommand class.
  12578. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12579. : New class.
  12580. * src/AbstractProxyResponseCommand.h,
  12581. src/AbstractProxyResponseCommand.cc: New class.
  12582. To add netrc support:
  12583. * src/Netrc.h, src/Netrc.cc: New class.
  12584. * src/Util.h, src/Util.cc (split): New function.
  12585. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12586. "Content-Range" header instead of "Range" header.
  12587. * src/HttpHeader.h
  12588. (getStatus): Removed.
  12589. (setStatus): Removed.
  12590. * src/Segment.h
  12591. (getPositionToWrite): New function.
  12592. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12593. * src/HttpHeader.h
  12594. (Range.h): New include.
  12595. (status): New variable.
  12596. (HttpHeader): Initialized status with 0.
  12597. (getStatus): New function.
  12598. (setStatus): New function.
  12599. (getRange): New function.
  12600. (HttpHeaderHandle): New function.
  12601. * src/HttpHeader.cc
  12602. (getRange): New function.
  12603. * src/Request.h
  12604. (RequestWeakHandle): New definition.
  12605. * src/HttpConnection.h
  12606. (HttpConnectionHandle): New type definition.
  12607. * src/HttpConnection.cc
  12608. (receiveResponse): Set HTTP status to headers.
  12609. * src/main.cc
  12610. (showUsage): Fixed typo.
  12611. * src/Segment.h
  12612. (SegmentHandle): New type definition.
  12613. * src/BitfieldMan.h
  12614. (getMissingUnusedLength): New function.
  12615. * src/BitfieldMan.cc
  12616. (getMissingUnusedLength): New function.
  12617. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12618. To fix static initialization order problem:
  12619. * src/BitfieldManFactory.h
  12620. (defaultRandomizer): Removed.
  12621. (factory): New variable.
  12622. (getNewFactory): Removed.
  12623. (getFactoryInstance): New function.
  12624. (setDefaultRandomizer): Rewritten.
  12625. (getDefaultRandomizer): Rewritten.
  12626. * src/BitfieldManFactory.cc
  12627. (defaultRandomizer): Removed.
  12628. (factory): Initialized to 0.
  12629. (BitfieldManFactory): Initialized randomizer to 0.
  12630. * src/DefaultPieceStorage.cc
  12631. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12632. * src/Peer.cc
  12633. (Peer): getNewFactory() -> getFactoryInstance()
  12634. * src/SegmentMan.cc
  12635. (initBitfield): getNewFactory() -> getFactoryInstance()
  12636. * src/Piece.cc
  12637. (Piece): getNewFactory() -> getFactoryInstance()
  12638. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12639. To fix the bug that causes crash on Max OS X:
  12640. * src/SimpleRandomizer.h
  12641. (getInstance): Create new instance if the static variable is null.
  12642. * src/SimpleRandomizer.cc
  12643. (randomizer): Initialized to 0.
  12644. * src/BitfieldManFactory.h
  12645. (getNewFactory): Removed the call to setRandomizer().
  12646. To fix the miscalculation of the range of checksum:
  12647. * src/BitfieldMan.h
  12648. (isBitSetOffsetRange): New function.
  12649. * src/BitfieldMan.cc
  12650. (isBitSetOffsetRange): New function.
  12651. * src/SegmentMan.cc
  12652. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12653. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12654. * Release 0.10.1
  12655. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12656. To lower CPU usage in BitTorrent download when --max-upload-limit
  12657. command-line option specified:
  12658. * src/DefaultBtMessageDispatcher.cc
  12659. (sendMessages): Calculate uploading speed only when current message
  12660. is uploading data and is not sent yet.
  12661. * src/DefaultPeerStorage.h
  12662. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12663. * src/HttpResponseCommand.cc
  12664. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12665. This fixes compile error in Soralis 10.
  12666. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12667. To fix segfault in Metalink download:
  12668. * src/UrlRequestInfo.h
  12669. (filename): Removed.
  12670. (totalLength): Removed.
  12671. (setTotalLength): Removed.
  12672. (setFilename): Removed.
  12673. * src/MetalinkRequestInfo.cc
  12674. (execute): Do not set filename and totalLength to reqInfo.
  12675. Set chunk checksum to reqInfo if it is not null.
  12676. * src/HttpResponseCommand.cc
  12677. (executeInternal): Fixed filename in log.
  12678. (handleDefaultEncoding): Removed the call to initBitfield() and
  12679. markAllPiecesDone().
  12680. (handleOtherEncoding): Added HEAD method handling.
  12681. * src/FtpNegotiateCommand.cc
  12682. (executeInternal): Added SEQ_HEAD_OK handling.
  12683. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12684. return false.
  12685. * src/FtpNegotiateCommand.h
  12686. (SEQ_HEAD_OK): New definition.
  12687. * src/SegmentMan.cc
  12688. (initBitfield): Delete bitfield.
  12689. (isChunkChecksumValidationReady): Fixed the condition.
  12690. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12691. works fine.
  12692. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12693. * src/Xml2MetalinkProcessor.h
  12694. (xpathExists): New function.
  12695. * src/Xml2MetalinkProcessor.cc
  12696. (xpathExists): New function.
  12697. Not to send HEAD request if filename and size are available in Metalink
  12698. file:
  12699. * src/UrlRequestInfo.h
  12700. (filename): New variable.
  12701. (totalLength): New variable.
  12702. (setTotalLength): New function.
  12703. (setFilename): New function.
  12704. * src/MetalinkRequestInfo.cc
  12705. (execute): Set filename and size to UrlRequestInfo.
  12706. * src/MetalinkEntry.cc
  12707. (MetalinkEntry): Initialize size with 0.
  12708. * src/UrlRequestInfo.cc
  12709. (execute): Set filename and size to SegmentMan.
  12710. Not to download rest of the files after selected files are downloaded
  12711. in BitTorrent:
  12712. * src/PieceStorage.h
  12713. (allDownloadFinished): New function.
  12714. * src/DefaultBtAnnounce.cc
  12715. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12716. downloadFinished.
  12717. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12718. * src/DefaultPieceStorage.cc
  12719. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12720. Commented out the call to finishSelectiveDownloadingMode().
  12721. (downloadFinished): Call isFilteredAllBitSet() instead of
  12722. isAllBitSet().
  12723. (allDownloadFinished): New function.
  12724. * src/DefaultBtInteractive.cc
  12725. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12726. downloadFinished().
  12727. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12728. * src/TorrentDownloadEngine.cc
  12729. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12730. * src/BitfieldMan.h
  12731. (isFilteredAllBitSet): New function.
  12732. * src/ShareRatioSeedCriteria.h
  12733. (PieceStorage.h): New include.
  12734. (pieceStorage): New variable.
  12735. (evaluate):
  12736. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12737. * src/BitfieldMan.cc
  12738. (isFilteredAllBitSet): New function.
  12739. (isAllBitSet): Filter is not took into account.
  12740. Rename --force-truncate as --allow-overwrite:
  12741. * src/TorrentRequestInfo.cc
  12742. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12743. * src/main.cc
  12744. (showUsage): --force-truncate -> --allow-overwrite
  12745. * src/message.h
  12746. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12747. * src/prefs.h
  12748. (PREF_FORCE_TRUNCATE): Removed.
  12749. (PREF_ALLOW_OVERWRITE): New definition.
  12750. * src/SegmentMan.cc
  12751. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12752. * src/MetalinkRequestInfo.cc
  12753. (execute): Queueing message are now logged in info level.
  12754. * src/common.h
  12755. (LONG_LONG_MAX): Removed.
  12756. (LONG_LONG_MIN): Removed.
  12757. * src/HttpResponseCommand.cc
  12758. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12759. * src/FtpNegotiateCommand.cc
  12760. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12761. * src/main.cc
  12762. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12763. command-line option.
  12764. (main): Added --check-integriy and --realtime-chunk-checksum
  12765. command-line option.
  12766. --force-truncate -> --allow-overwrite
  12767. Set initial value of --check-integrity option to false.
  12768. Don't show usage when error occurs while persing command-line options.
  12769. Removed deprecated --upload-limit option.
  12770. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12771. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12772. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12773. * src/BtAllowedFastMessage.cc:
  12774. * src/BtBitfieldMessage.cc
  12775. * src/BtCancelMessage.cc
  12776. * src/BtChokeMessage.cc
  12777. * src/BtHaveAllMessage.cc
  12778. * src/BtHaveMessage.cc
  12779. * src/BtHaveNoneMessage.cc
  12780. * src/BtInterestedMessage.cc
  12781. * src/BtNotInterestedMessage.cc
  12782. * src/BtPieceMessage.cc
  12783. * src/BtPortMessage.cc
  12784. * src/BtRejectMessage.cc
  12785. * src/BtRequestMessage.cc
  12786. * src/BtSuggestPieceMessage.cc
  12787. * src/BtUnchokeMessage.cc
  12788. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12789. files are affected.
  12790. * src/ChunkChecksumValidator.cc
  12791. * src/SegmentMan.cc
  12792. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12793. To add chunk checksum validation:
  12794. * src/MetalinkEntry.h
  12795. (MetalinkChunkChecksum.h): New include.
  12796. (chunkChecksum): New variable.
  12797. * src/Request.h
  12798. (method): New variable.
  12799. (setMethod): New function.
  12800. (getMethod): New function.
  12801. (METHOD_GET): New static constant.
  12802. (METHOD_HEAD): New static constant.
  12803. * src/Xml2MetalinkProcessor.h
  12804. (getPieceHash): New function.
  12805. * src/PieceStorage.h
  12806. (markAllPiecesDone): New function.
  12807. (checkIntegrity): New function.
  12808. * src/FileAllocator.h
  12809. (NullFileAllocationMonitor.h): New include.
  12810. (FileAllocator): Initialize fileAllocationMonitor with new
  12811. NullFileAllocationMonitor().
  12812. * src/MultiDiskAdaptor.h
  12813. (messageDigest.h): Remove include.
  12814. (ctx): Removed.
  12815. (hashUpdate): Added ctx.
  12816. (MultiDiskAdaptor): Removed ctx.
  12817. (sha1Sum): Renamed as messageDigest.
  12818. (messageDigest): New function.
  12819. * src/UrlRequestInfo.h
  12820. (HeadResult): New class.
  12821. (digestAlgo): New variable.
  12822. (chunkChecksumLength): New variable.
  12823. (chunkChecksums): New variable.
  12824. (getHeadResult): New function.
  12825. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12826. (setDigestAlgo): New function.
  12827. (setChunkChecksumLength): New function.
  12828. (setChunkChecksums): New function.
  12829. * src/DefaultPieceStorage.cc
  12830. (DiskAdaptorWriter.h): New include.
  12831. (ChunkChecksumValidator.h): New include.
  12832. (markAllPiecesDone): New function.
  12833. (checkIntegrity): New function.
  12834. * src/DefaultBtContext.h
  12835. (getPieceHashes): New function.
  12836. * src/TorrentRequestInfo.cc
  12837. (execute): Try to validate chunk checksum if file already exists and
  12838. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12839. * src/messageDigest.h
  12840. (~MessageDigestContext): Added digestFree().
  12841. * src/MetalinkRequestInfo.cc
  12842. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12843. * src/DiskAdaptor.h
  12844. (messageDigest.h): New include.
  12845. (sha1Sum): Renamed as messageDigest.
  12846. (messageDigest): New function.
  12847. * src/DownloadCommand.h
  12848. (PeerStat.h): New include.
  12849. (maxDownloadSpeedLimit): New variable.
  12850. (startupIdleTime): New variable.
  12851. (lowestDownloadSpeedLimit): New variable.
  12852. (peerStat): New variable.
  12853. (setMaxDownloadSpeedLimit): New function.
  12854. (setStartupIdleTime): New function.
  12855. (setLowestDownloadSPeedLimit): New function.
  12856. * src/BtContext.h
  12857. (getPieceHashes): New function.
  12858. * src/main.cc
  12859. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12860. option to true for testing purpose.
  12861. * src/BtPieceMessage.cc
  12862. (checkPieceHash): Use messageDigest
  12863. * src/DownloadEngine.cc
  12864. (SetDescriptor): Removed.
  12865. (AccumulateActiveCommand): Removed.
  12866. (waitData): Rewritten.
  12867. (updateFdSet): Rewritten.
  12868. * src/MultiDiskAdaptor.cc
  12869. (hashUpdate): Added ctx.
  12870. (sha1Sum): Renamed as messageDigest.
  12871. (messageDigest): New function.
  12872. * src/BitfieldMan.h
  12873. (isBitRangeSet): New function.
  12874. (unsetBitRange): New function.
  12875. * src/ByteArrayDiskWriter.h
  12876. (sha1Sum): Renamed as messageDigest.
  12877. (messageDigest): New function.
  12878. * src/ConsoleDownloadEngine.cc
  12879. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12880. * src/DiskWriter.h
  12881. (messageDigest.h): New include.
  12882. (sha1Sum): Renamed as messageDigest.
  12883. (messageDigest): New function.
  12884. * src/ChunkChecksumValidator.h: New class.
  12885. * src/DiskAdaptorWriter.h: New class.
  12886. * src/prefs.h
  12887. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12888. (PREF_CHECK_INTEGRITY): New definition.
  12889. * src/HttpResponseCommand.cc
  12890. (handleDefaultEncoding): Added method "HEAD" handling.
  12891. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12892. (handleOtherEncoding):
  12893. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12894. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12895. startupIdleTime, lowestDownloadSpeedLimit to command.
  12896. * src/SegmentMan.h
  12897. (getSegmentEntryByIndex): New function.
  12898. (getSegmentEntryByCuid): New function.
  12899. (getSegmentEntryIteratorByCuid): New function.
  12900. (diskWriter): DiskWriter -> DiskWriterHandle
  12901. (pieceHashes): New variable.
  12902. (chunkHashLength): New variable.
  12903. (digestAlgo): New variable.
  12904. (FindPeerStat): Removed.
  12905. (getPeerStat): Rewritten.
  12906. (markAllPiecesDone): New function.
  12907. (checkIntegrity): New function.
  12908. (tryChunkChecksumValidation): New function.
  12909. (isChunkChecksumValidationReady): New function.
  12910. * src/BitfieldMan.cc
  12911. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12912. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12913. blocks to 0.
  12914. (isBitRangeSet): New function.
  12915. (unsetBitRange): New function.
  12916. * src/FtpNegotiateCommand.cc
  12917. (executeInternal): Set maxDownloadSpeedLimit,
  12918. startupIdleTime, lowestDownloadSpeedLimit to command.
  12919. (recvSize): Added method "HEAD" handling.
  12920. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12921. * src/AbstractSingleDiskAdaptor.cc
  12922. (sha1Sum): Renamed as messageDigest.
  12923. (messageDigest): New function.
  12924. * src/AbstractSingleDiskAdaptor.h
  12925. (sha1Sum): Renamed as messageDigest.
  12926. (messageDigest): New function.
  12927. * src/Util.h
  12928. (indexRange): New function.
  12929. * src/MetalinkEntry.cc
  12930. (MetalinkEntry): Initialized chunkChecksum to 0.
  12931. * src/ShaVisitor.cc
  12932. (~ShaVisitor): Removed the call to ctx.digestFree().
  12933. * src/SegmentMan.cc
  12934. (ChunkChecksumValidator.h): New include.
  12935. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12936. to DIGEST_ALGO_SHA1.
  12937. (~SegmentMan): Removed diskWriter.
  12938. (FindSegmentEntryByIndex): Removed.
  12939. (FindSegmentEntryByCuid): Removed.
  12940. (checkoutSegment): Rewritten.
  12941. (findSlowerSegmentEntry): Rewritten.
  12942. (getSegment): Rewritten.
  12943. (updateSegment): Rewritten.
  12944. (completeSegment): Rewritten.
  12945. (markAllPiecesDone): New function.
  12946. (checkIntegrity): New function.
  12947. (isChunkChecksumValidationReady): New function.
  12948. (tryChunkChecksumValidation): New function.
  12949. * src/Xml2MetalinkProcessor.cc
  12950. (getEntry): Get size and set it to entry.
  12951. Get chunk checksum and set it to entry.
  12952. (getPieceHash): New function.
  12953. * src/Util.cc
  12954. (sha1Sum): Removed ctx.digestFree()
  12955. (fileChecksum): Removed ctx.digestFree()
  12956. (indexRange): New function.
  12957. * src/Request.cc
  12958. (METHOD_GET): New variable.
  12959. (METHOD_HEAD): New variable.
  12960. (Request): Added method.
  12961. * src/UrlRequestInfo.cc
  12962. (FatalException.h): New include.
  12963. (message.h): New include.
  12964. (operator<<): Added operator<< for class HeadResult.
  12965. (getHeadResult): New function.
  12966. (execute): Get filename and size in separate download engine.
  12967. * src/ChunkChecksumValidator.cc: New class.
  12968. * src/DownloadCommand.cc:
  12969. (DownloadCommand): Added peerStat.
  12970. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12971. the value from Option.
  12972. The buffer size is now 16KB.
  12973. Use peerStat member instead of getting it from SegmentMan.
  12974. Use startupIdleTime member instead of gettingit from Option.
  12975. Added chunk checksum validation.
  12976. * src/AbstractDiskWriter.cc
  12977. (AbstractDiskWriter): Removed ctx.
  12978. (~AbstractDiskWriter): Removed ctx.digestFree()
  12979. (writeDataInternal): Returns the return value of write.
  12980. (readDataInternal): Returns the return value of read.
  12981. (sha1Sum): Renamed as messageDigest
  12982. (messageDigest): New function.
  12983. * src/AbstractDiwkWriter.h
  12984. (messageDigest.h): Removed include.
  12985. (ctx): Removed.
  12986. (sha1Sum): Renamed as messageDigest
  12987. (messageDigest): New function.
  12988. * src/DefaultPieceStorage.h
  12989. (markAllPiecesDone): New function.
  12990. (checkIntegrity): New function.
  12991. * src/NullFileAllocationMonitor.h: New class.
  12992. * src/MetalinkChunkChecksum.h: New class.
  12993. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12994. To decrease CPU usage in bittorrent download, calculation results in
  12995. BitfieldMan were cached and realtime fetching PeerObject was removed
  12996. with WeakHandle introduced. Option values are set to the objects
  12997. by setter before download begins.
  12998. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12999. * src/DefaultBtRequestFactory.h
  13000. (dispatcher): BtMessageDispatcherHandle ->
  13001. BtMessageDispatcherWeakHandle.
  13002. (messageFactory): New variable.
  13003. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13004. BtMessageDispatcherWeakHandle.
  13005. (setBtMessageFactory): New function.
  13006. * src/DefaultBtMessageDispatcher.cc:
  13007. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13008. from Option.
  13009. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13010. feating the value from Option.
  13011. Use messageFactory member.
  13012. * src/PeerInteractionCommand.cc
  13013. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13014. Add reverse dependencies to factory object.
  13015. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13016. dispatcher.
  13017. Set messageFactory to receiver.
  13018. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13019. btInteractive.
  13020. Set receiver to peerObject.
  13021. Set maxDownloadSpeedLimit to this.
  13022. (executeInternal): Use maxDownloadSpeedLimit member.
  13023. * src/BtChokeMessage.cc
  13024. (doReceivedAction): Use dispatcher, requestFactory member.
  13025. (onSendComplete): Use dispatcher member.
  13026. * src/PeerInteractionCommand.h
  13027. (maxDownloadSpeedLimit): New variable.
  13028. * src/DefaultBtMessageReceiver.h
  13029. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13030. (dispatcher):
  13031. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13032. (messageFactory): New variable.
  13033. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13034. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13035. (setDispatcher):
  13036. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13037. (setBtMessageFactory): New function.
  13038. * src/DefaultBtInteractive.cc
  13039. (initiateHandshake): Use messageFactory member.
  13040. (addBitfieldMessageToQueue): Use messageFactory member.
  13041. (addAllowedFastMessageToQueue): Use messageFactory member.
  13042. (decideChoking): Use messageFactory member.
  13043. (checkHave): Use messageFactory member.
  13044. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13045. (receiveMessages): Use maxDownloadSpeedLimit member.
  13046. (decideInterest): Use messageFactory member.
  13047. * src/BtRequestMessage.cc
  13048. (doReceivedAction): Use messageFactory, dispatcher member.
  13049. (onQueued): Use dispatcher member.
  13050. * src/BtPieceMessage.cc
  13051. (doReceivedAction): Use dispatcher member.
  13052. (send): Use peerConnection member.
  13053. (onWrongPiece): Use requestFactory member.
  13054. (handleChokingEvent): Use messageFactory, dispatcher member.
  13055. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13056. * src/BtMessageDispatcher.h
  13057. (BtMessageDispatcherWeakHandle): New type definition.
  13058. * src/SimpleBtMessage.cc
  13059. (send): Use peerConnection member.
  13060. * src/BtRejectMessage.cc
  13061. (doReceivedAction): Use dispatcher member.
  13062. * src/DefaultBtMessageDispatcher.h
  13063. (Option.h): Removed include.
  13064. (messageFactory): New variable.
  13065. (option): Removed.
  13066. (maxUploadSpeedLimit): New variable.
  13067. (requestTimeout): New variable.
  13068. (DefaultBtMessageDispatcher): Removed option.
  13069. Added maxUploadSpeedLimit, requestTimeout.
  13070. (setOption): Removed.
  13071. (getOption): Removed.
  13072. (setMaxUploadSpeedLimit): New function.
  13073. (setRequestTimeout): New function.
  13074. (setBtMessageFactory): New function.
  13075. * src/DefaultBtInteractive.h
  13076. (btMessageReceiver):
  13077. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13078. (dispatcher):
  13079. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13080. (btRequestFactory):
  13081. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13082. (peerConnection):
  13083. PeerConnectionHandle -> PeerConnectionWeakHandle
  13084. (messageFactory): New variable.
  13085. (option): Removed.
  13086. (keepAliveInterval): New variable.
  13087. (maxDownloadSpeedLimit): New variable.
  13088. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13089. (setBtMessageReceiver):
  13090. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13091. (setDispatcher):
  13092. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13093. (setBtRequestFactory):
  13094. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13095. (setPeerConnection):
  13096. PeerConnectionHandle -> PeerConnectionWeakHandle
  13097. (setOption): Removed.
  13098. (setKeepAliveInterval): New function.
  13099. (setMaxDownloadSpeedLimit): New function.
  13100. (setBtMessageFactory): New function.
  13101. * src/BitfieldMan.h
  13102. (cachedNumMissingBlock): New variable.
  13103. (cachedNumFilteredBlock): New variable.
  13104. (cachedCompletedLength): New variable.
  13105. (cachedFilteredComletedLength): New variable.
  13106. (cachedFilteredTotalLength): New variable.
  13107. (countMissingBlockNow): New function.
  13108. (countFilteredBlockNow): New function.
  13109. (getFilteredTotalLengthNow): New function.
  13110. (getCompletedLengthNow): New function.
  13111. (getFilteredCompletedLengthNow): New function.
  13112. (updateCache): New function.
  13113. * src/AbstractBtMessage.h
  13114. (BtMessageDispatcher.h): New include.
  13115. (PeerConnection.h): New include.
  13116. (BtRequestFactory.h): New include
  13117. (BtMessageFactory.h): New include.
  13118. (dispatcher): New variable.
  13119. (messageFactory): New variable.
  13120. (peerConnection: New variable.
  13121. (setBtMessageDispatcher): New function.
  13122. (setPeerConnection): New function.
  13123. (setBtMessageFactory): New function.
  13124. (setBtRequestFactory): New function.
  13125. * src/DefaultBtMessageFactory.cc
  13126. (setCommonProperty): Set dispatcher, requestFactory, this,
  13127. peerConnection to msg.
  13128. * src/BtRegistry.h
  13129. (BT_MESSAGE_RECEIVER): New macro.
  13130. * src/PeerConnection.h
  13131. (PeerConnectionWeakHandle): New type definition.
  13132. * src/BtMessageFactory.h
  13133. (BtMessageFactoryWeakHandle): New type definition.
  13134. * src/BitfieldMan.cc
  13135. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13136. cachedCompletedLength, cachedFilteredComletedLength,
  13137. cachedFilteredTotalLength.
  13138. Call updateCache().
  13139. (countMissingBlock): Return cachedNumMissingBlock.
  13140. (countMissingBlockNow): New function.
  13141. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13142. (countFilteredBlockNow): New function.
  13143. (setBit): Call updateCache().
  13144. (unsetBit): Call updateCache().
  13145. (setBitfield): Call updateCache().
  13146. (clearAllBit): Call updateCache().
  13147. (setAllBit): Use setBitInternal instead of setBit.
  13148. Call updateCache().
  13149. (addFilter): Call updateCache().
  13150. (enableFilter): Call updateCache().
  13151. (disableFilter): Call updateCache().
  13152. (clearFilter): Call updateCache().
  13153. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13154. (getFilteredTotalLengthNow): New function.
  13155. (getCompletedLength): Return cachedCompletedLength.
  13156. (getCompletedLengthNow): New function.
  13157. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13158. (getFilteredCompletedLengthNow): New function.
  13159. (updateCache): New function.
  13160. * src/BtMessageReceiver.h
  13161. (BtMessageReceiverWeakHandle): New type definition.
  13162. * src/DefaultBtMessageReceiver.cc
  13163. (receiveHandshake): Use messageFactory member.
  13164. (sendHandshake): Use messageFactory member.
  13165. (receiveMessage): Use messageFactory member.
  13166. * src/DefaultBtMessageFactory.h
  13167. (dispatcher): New variable.
  13168. (requestFactory): New variable.
  13169. (peerConnection): New variablle.
  13170. (setBtMessageDispatcher): New function.
  13171. (setBtRequestFactory): New function.
  13172. (setPeerConnection): New function.
  13173. * src/SharedHandle.h
  13174. (RefCount): New class.
  13175. (WeakHandle): New class.
  13176. * src/PeerObject.h
  13177. (BtMessageReceiver.h): New include.
  13178. (PeerObject): Added btMessageReceiver.
  13179. (btMessageReceiver): New variable.
  13180. * src/Util.cc
  13181. (countBit): Simplified.
  13182. * src/BtCancelMessage.cc
  13183. (doReceivedAction): Use dispatcher member.
  13184. * src/BtRequestFactory.h
  13185. (BtRequestFactoryWeakHandle): New type definition.
  13186. * src/PeerStorage.h
  13187. (downloadSpeed): int -> uint32_t
  13188. (uploadSpeed): int -> uint32_t
  13189. (sessionDownloadLength): long long int -> uint64_t
  13190. (sessionUploadLength): long long int -> uint64_t
  13191. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13192. To add RecoverableException, FatalException:
  13193. * src/AbstractCommand.cc
  13194. (onAbort): Exception -> RecoverableException
  13195. * src/PeerAbstractCommand.h
  13196. (RecoverableException.h): New include.
  13197. (onAbort): Exception -> RecoverableException.
  13198. * src/PeerInteractionCommand.cc
  13199. (onAbort): Exception -> RecoverableException.
  13200. * src/PeerAbstractCommand.cc
  13201. (execute): Exception -> RecoverableException.
  13202. (onAbort): Exception -> RecoverableException.
  13203. * src/TorrentRequestInfo.cc
  13204. (execute): Exception -> RecoverableException.
  13205. * src/MetalinkRequestInfo.cc
  13206. (execute): Exception -> RecoverableException.
  13207. * src/MetaFileUtil.cc: RecoverableException.
  13208. * src/AbstractCommand.h
  13209. (onAbort): Exception -> RecoverableException.
  13210. * src/DlRetryEx.h: Exception -> RecoverableException.
  13211. * src/DlAbortEx.h: Exception -> RecoverableException.
  13212. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13213. * src/Util.cc: Exception -> RecoverableException.
  13214. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13215. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13216. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13217. To make ID static const int
  13218. * src/BtInterestedMessage.h
  13219. (ID_t): Removed.
  13220. (ID): New variable.
  13221. (getId): Made non-const.
  13222. * src/BtPieceMessage.h
  13223. (ID_t): Removed.
  13224. (ID): New variable.
  13225. (getId): Made non-const.
  13226. * src/BtChokeMessage.h
  13227. (ID_t): Removed.
  13228. (ID): New variable.
  13229. (getId): Made non-const.
  13230. * src/BtHaveAllMessage.h
  13231. (ID_t): Removed.
  13232. (ID): New variable.
  13233. (getId): Made non-const.
  13234. * src/BtKeepAliveMessage.h
  13235. (ID_t): Removed.
  13236. (ID): New variable.
  13237. (getId): Made non-const.
  13238. * src/BtHandshakeMessage.h
  13239. (ID): New variable.
  13240. (getId): Made non-const.
  13241. * src/BtSuggestPieceMessage.h
  13242. (ID_t): Removed.
  13243. (ID): New variable.
  13244. (getId): Made non-const.
  13245. * src/BtPortMessage.h
  13246. (ID_t): Removed.
  13247. (ID): New variable.
  13248. (getId): Made non-const.
  13249. * src/AbstractBtMessage.h
  13250. (id): Removed.
  13251. (AbstractBtMessage): Removed id.
  13252. (getId): Removed.
  13253. * src/BtHaveMessage.h
  13254. (ID_t): Removed.
  13255. (ID): New variable.
  13256. (getId): Made non-const.
  13257. * src/BtAllowedFastMessage.h
  13258. (ID_t): Removed.
  13259. (ID): New variable.
  13260. (getId): Made non-const.
  13261. * src/BtCancelMessage.h
  13262. (ID_t): Removed.
  13263. (ID): New variable.
  13264. (getId): Made non-const.
  13265. * src/BtNotInterestedMessage.h
  13266. (ID_t): Removed.
  13267. (ID): New variable.
  13268. (getId): Made non-const.
  13269. * src/BtChokeMessage.h
  13270. (ID_t): Removed.
  13271. (ID): New variable.
  13272. (getId): Made non-const.
  13273. * src/BtRejectMessage.h
  13274. (ID_t): Removed.
  13275. (ID): New variable.
  13276. (getId): Made non-const.
  13277. * src/BtBitfieldMessage.h
  13278. (ID_t): Removed.
  13279. (ID): New variable.
  13280. (getId): Made non-const.
  13281. * src/BtUnchokeMessage.h
  13282. (ID_t): Removed.
  13283. (ID): New variable.
  13284. (getId): Made non-const.
  13285. * src/BtRequestMessage.h
  13286. (ID_t): Removed.
  13287. (ID): New variable.
  13288. (getId): Made non-const.
  13289. * src/BtHaveMessage.h
  13290. (ID_t): Removed.
  13291. (ID): New variable.
  13292. (getId): Made non-const.
  13293. To add --force-truncate command-line option and a check whether
  13294. the file already exists:
  13295. * src/DirectDiskAdaptor.h
  13296. (getFilePath): Made virtual public.
  13297. * src/MultiDiskAdaptor.h
  13298. (File.h): New include.
  13299. (DiskWriterEntry::fileEntry): Made private.
  13300. (DiskWriterEntry::fileExists): New function.
  13301. (DiskWriterEntry::getFileEntry): New function.
  13302. (fileExists): New function.
  13303. (getFilePath): New function.
  13304. * src/TorrentRequestInfo.cc
  13305. (FatalException.h): New include.
  13306. (message.h): New include.
  13307. (RecoverableException.h): New include.
  13308. (execute): Added a check whether file is already exists or not.
  13309. * src/DiskAdaptor.h
  13310. (fileExists): New function.
  13311. (getFilePath): New function.
  13312. * src/main.cc
  13313. (showUsage): Added an explanation of --force-truncate command-line
  13314. option.
  13315. (main): Added --force-truncate command-line option.
  13316. * src/Exception.h
  13317. (setMsg): buf[256] -> buf[1024]
  13318. * src/CopyDiskWriter.h
  13319. (getFilePath): Made public virtual.
  13320. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13321. (fileExists): New function.
  13322. * src/DownloadEngineFactory.cc
  13323. (newTorrentConsoleEngine): Don't open file here.
  13324. * src/message.h
  13325. (EX_FILE_ALREADY_EXISTS): New definition.
  13326. * src/prefs.h
  13327. (PREF_FOECE_TRUNCATE): New definition.
  13328. * src/HttpResponseCommand.cc
  13329. (handleDefaultEncoding): Added a check whether the file already exists.
  13330. * src/SegmentMan.h
  13331. (fileExists): New function.
  13332. (shouldCancelDownloadForSafety): New function.
  13333. * src/FtpNegotiateCommand.cc
  13334. (recvSize): Added a check whether the file already exists.
  13335. * src/AbstractSingleDiskAdaptor.cc
  13336. (File.h): New include.
  13337. (fileExists): New function.
  13338. * src/AbstractSingleDiskAdaptor.h
  13339. (getFilePath): Removed.
  13340. (fileExists): New function.
  13341. * src/SegmentMan.cc
  13342. (fileExists): New function.
  13343. (shouldCancelDownloadForSafety): New function.
  13344. To fix regression bug in torrent downloading:
  13345. * src/DefaultBtRequestFactory.cc
  13346. (doChokedAction): New function.
  13347. * src/DefaultBtRequestFactory.h
  13348. (doChokedAction): New function.
  13349. * src/DefaultBtMessageDispatcher.cc
  13350. (doChokedAction): Do not delete request if its target is in allowed
  13351. fast set.
  13352. * src/DefaultBtInteractive.cc
  13353. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13354. (sendKeepAlive): Send keep alive message even if the outgoing message
  13355. queue is not empty.
  13356. (decideInterest): Simplified the code.
  13357. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13358. it is already called when BtChokeMessage is received from a peer.
  13359. * src/BtRequestFactory.h
  13360. (doChokedAction): New function.
  13361. To clean up code:
  13362. * src/PeerInteractionCommand.h
  13363. (executeInternal): Added virtual keyword explicitly.
  13364. (prepareForRetry): Added virtual keyword explicitly.
  13365. (prepareForNextPeer): Added virtual keyword explicitly.
  13366. (onAbort): Added virtual keyword explicitly.
  13367. * src/RequestSlot.cc
  13368. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13369. * src/BtPieceMessage.cc
  13370. (doReceivedAction): Added a debug log of piece's bitfield.
  13371. * src/Piece.h
  13372. (getBitfieldLength): New function.
  13373. * src/ByteArrayDiskWriter.cc
  13374. (clear): Added buf = 0 to avoid double free corruption.
  13375. * src/FileAllocator.cc
  13376. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13377. Added cp.reset().
  13378. * src/BitfieldMan.h
  13379. (operator=): Rewritten.
  13380. * src/BitfieldMan.cc
  13381. (BitfieldMan): Initialized bitfield, useBitfield.
  13382. * src/PeerConnection.cc
  13383. (receiveMessage): Added a call to socket->readable() after getting
  13384. message length to avoid possible EOF.
  13385. * src/Util.cc
  13386. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13387. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13388. To add an ability to pre-allocate file space:
  13389. * src/DirectDiskAdaptor.h: Rewritten.
  13390. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13391. * src/MultiDiskAdaptor.h: Rewritten.
  13392. * src/DefaultPieceStorage.cc
  13393. (MultiDiskWriter.h): Removed include.
  13394. (PreAllocationDiskWriter.h): Removed include.
  13395. (FileAllocationMonitor.h): New include.
  13396. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13397. (initStorage): Rewritten.
  13398. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13399. * src/FileAllocator.h: New class.
  13400. * src/FileAllocator.cc: New class.
  13401. * src/FileAllocationMonitor.h: New class.
  13402. * src/FileAllocationMonitor.cc: New class.
  13403. * src/ConsoleFileAllocationMonitor.h: New class.
  13404. * src/ConsoleFileAllocationMonitor.cc: New class.
  13405. * src/AbstractSingleDiskAdaptor.h: New class.
  13406. * src/AbstractSingleDiskAdaptor.cc: New class.
  13407. * src/DiskAdaptor.h
  13408. (Directory.h): Removed include.
  13409. (DiskWriter.h): Removed include.
  13410. (FileEntry.h): Removed include.
  13411. (diskWriter): Removed.
  13412. (DiskAdaptor): Removed diskWriter.
  13413. (openFile): Made pure virtual.
  13414. (closeFile): Made pure virtual.
  13415. (openExistingFile): Made pure virtual.
  13416. (initAndOpenFile): Made pure virtual.
  13417. (writeData): Made pure virtual.
  13418. (readData): Made pure virtual.
  13419. (sha1Sum): Made pure virtual.
  13420. (getStoreDir): Returns const reference of storeDir.
  13421. (DiskAdaptorHandle): New type definition.
  13422. * src/main.cc
  13423. (ConsoleFileAllocationMonitor.h): New include.
  13424. (showUsage): Added default value description of -s option.
  13425. Added the description of --file-allocation option.
  13426. (main): Set default value of --file-allocation option to 'none'.
  13427. Added --file-allocation command-line option.
  13428. Setup FileAllocationMonitorFactory.
  13429. * src/FtpInitiateConnectionCommand.cc
  13430. (executeInternal): Removed diskWriter related processing, which was
  13431. moved to FtpNegotiationCommand.cc.
  13432. * src/DirectDiskAdaptor.cc
  13433. (getFilePath): Made non-const.
  13434. * src/CopyDiskAdaptor.h
  13435. (DiskAdaptor.h): Removed include.
  13436. (DiskWriter.h): Removed include.
  13437. (AbstractSingleDiskAdaptor.h): New include.
  13438. (getFilePath): Made non-const. Added virtual keyword.
  13439. (CopyDiskAdaptor): Removed diskWriter.
  13440. (getTempFile): Returns const reference.
  13441. (CopyDiskAdaptorHandle): New type definition.
  13442. * src/ByteArrayDiskWriter.cc
  13443. (clear): Simplified.
  13444. (initAndOpenFile): Rewritten.
  13445. (openFile): Call initAndOpenFile()
  13446. * src/MultiDiskAdaptor.cc: Rewritten.
  13447. * src/DownloadEngineFactory.cc
  13448. (FileAllocator.h): New include.
  13449. (FileAllocationMonitor.h): New include.
  13450. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13451. create DefaultDiskWriter with file allocator.
  13452. * src/DiskWriter.h
  13453. (initAndOpenFile): Added totalLength argument.
  13454. (openFile): Added totalLength argument.
  13455. * src/prefs.h
  13456. (PREF_FILE_ALLOCATION): New definition.
  13457. (V_PREALLOC): New definition.
  13458. (V_NONE): New definition.
  13459. * src/HttpResponseCommand.cc
  13460. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13461. size.
  13462. * src/FtpNegotiateCommand.cc
  13463. (Util.h): New include.
  13464. (recvSize): Open file here.
  13465. * src/Util.h
  13466. (ullitos): New function.
  13467. * src/CopyDiskWriter.h
  13468. (getFilePath): Made non-const.
  13469. * src/DefaultDiskWriter.h
  13470. (Option.h): New include.
  13471. (totalLength): Removed.
  13472. (DefaultDiskWriter): Removed totalLength.
  13473. (initAndOpenFile): Added totalLength argument.
  13474. (DefaultDiskWriterHandle): New type definition.
  13475. (createNewDiskWriter): New function.
  13476. * src/Util.cc
  13477. (ullitos): New function.
  13478. * src/DefaultDiskWriter.cc
  13479. (message.h): New include.
  13480. (FileAllocator.h): New include.
  13481. (prefs.h): New include.
  13482. (Util.h): New include.
  13483. (DefaultDiskWriter): Removed totalLength.
  13484. (initAndOpenFile): Added file allocation.
  13485. (createNewDiskWriter): New function. Just for temporary solution.
  13486. It will be rewritten later.
  13487. * src/DiskAdaptor.cc
  13488. (DiskAdaptor): Removed diskWriter.
  13489. * src/AbstractDiskWriter.cc
  13490. (LogFactory.h): New include.
  13491. (AbstractDiskWriter): Added fileAllocator, logger.
  13492. (openFile): Added totalLength argument.
  13493. * src/AbstractDiskWriter.h
  13494. (FileAllocator.h): New include.
  13495. (Logger.h): New include.
  13496. (fileAllocator): New variable.
  13497. (logger): New variable.
  13498. (openFile): Added totalLength argument. Added virtual keyword
  13499. explicitly.
  13500. (openExistingFile): Added totalLength argument. Added virtual keyword
  13501. explicitly.
  13502. (closeFile): Added virtual keyword explicitly.
  13503. (sha1Sum): Added virtual keyword explicitly.
  13504. (writeData): Added virtual keyword explicitly.
  13505. (readData): Added virtual keyword explicitly.
  13506. (setFileAllocator): New function.
  13507. * src/DefaultPieceStorage.h
  13508. (FileAllocator.h): New include.
  13509. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13510. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13511. * src/FileProgressMonitor.h: New class.
  13512. To compile aria2 on PC-BSD:
  13513. * src/DefaultBtContext.cc
  13514. (libgen.h): New include.
  13515. To fix memory leak:
  13516. * src/Exception.h
  13517. (~Exception): Delete cause. Fixed memory leak.
  13518. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13519. Rewritten a portion of bittorrent implementation:
  13520. * src/BtMessageValidator.h: New class.
  13521. * src/BtBitfieldMessageValidator.h: New class.
  13522. * src/BtHandshakeMessageValidator.h: New class.
  13523. * src/BtRequestMessageValidator.h: New class.
  13524. * src/BtSuggestPieceMessageValidator.h: New class.
  13525. * src/BtAllowedFastMessageValidator.h: New class.
  13526. * src/BtRejectMessageValidator.h: New class.
  13527. * src/BtCancelMessageValidator.h: New class.
  13528. * src/BtPieceMessageValidator.h: New class.
  13529. * src/BtHaveMessageValidator.h: New class.
  13530. * src/BtEventListener.h: New class.
  13531. * src/AbstractBtEventListener.h: New class.
  13532. * src/BtEvent.h: New class.
  13533. * src/BtChokingEvent.h: New class.
  13534. * src/BtChokedEvent.h: New class.
  13535. * src/BtCancelSendingPieceEvent.h: New class.
  13536. * src/BtAbortOutstandingRequestEvent.h: New class.
  13537. * src/Randomizer.h: New class.
  13538. * src/SimpleRandomizer.h: New class.
  13539. * src/BtMessage.h: New class.
  13540. * src/AbstractBtMessage.h: New class.
  13541. * src/SimpleBtMessage.h: New class.
  13542. * src/BtHaveMessage.h: New class.
  13543. * src/BtInterestedMessage.h: New class.
  13544. * src/BtAllowedFastMessage.h: New class.
  13545. * src/BtUnchokeMessage.h: New class.
  13546. * src/BtCancelMessage.h: New class.
  13547. * src/BtNotInterestedMessage.h: New class.
  13548. * src/BtChokeMessage.h: New class.
  13549. * src/BtHaveNoneMessage.h: New class.
  13550. * src/BtHandshakeMessage.h: New class.
  13551. * src/BtSuggestPieceMessage.h: New class.
  13552. * src/BtHaveMessage.h: New class.
  13553. * src/BtPieceMessage.h: New class.
  13554. * src/BtHaveAllMessage.h: New class.
  13555. * src/BtKeepAliveMessage.h: New class.
  13556. * src/BtPortMessage.h: New class.
  13557. * src/BtRejectMessage.h: New class.
  13558. * src/BtBitfieldMessage.h: New class.
  13559. * src/BtRequestMessage.h: New class.
  13560. * src/DefaultBtRequestFactory.h: New class.
  13561. * src/DefaultBtMessageReceiver.h: New class.
  13562. * src/BtInteractive.h: New class.
  13563. * src/BtMessageDispatcher.h: New class.
  13564. * src/DefaultBtMessageDispatcher.h: New class.
  13565. * src/DefaultBtInteractive.h: New class.
  13566. * src/BitfieldManFactory.h: New class.
  13567. * src/HandleRegistry.h: New class.
  13568. * src/BtMessageFactory.h: New class.
  13569. * src/BtMessageReceiver.h: New class.
  13570. * src/DefaultBtMessageFactory.h: New class.
  13571. * src/PeerObject.h: New class.
  13572. * src/BtRequestFactory.h: New class.
  13573. * src/SuggestPieceMessage.h: Removed.
  13574. * src/PortMessage.h: Removed.
  13575. * src/SuggestPieceMessage.h: Removed.
  13576. * src/KeepAliveMessage.h: Removed.
  13577. * src/HandshakeMessage.h: Removed.
  13578. * src/PeerInteraction.h: Removed.
  13579. * src/UnchokeMessage.h: Removed.
  13580. * src/PieceMessage.h: Removed.
  13581. * src/RequestMessage.h: Removed.
  13582. * src/InterestedMessage.h: Removed.
  13583. * src/HaveMessage.h: Removed.
  13584. * src/CancelMessage.h: Removed.
  13585. * src/RejectMessage.h: Removed.
  13586. * src/AllowedFastMessage.h: Removed.
  13587. * src/HaveNoneMessage.h: Removed.
  13588. * src/SimplePeerMessage.h: Removed.
  13589. * src/HaveAllMessage.h: Removed.
  13590. * src/BitfieldMessage.h: Removed.
  13591. * src/PeerMessageFactory.h: Removed.
  13592. * src/NotInterestedMessage.h: Removed.
  13593. * src/ChokeMessage.h: Removed.
  13594. * src/PeerMessage.h: Removed.
  13595. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13596. To know root cause of exception:
  13597. * src/Exception.h
  13598. (cause): New variable.
  13599. (Exception): Added a parameter.
  13600. (getMsg): Return const reference to msg.
  13601. (getCause): New function.
  13602. * src/DlRetryEx.h
  13603. (DlRetryEx): Added a parameter 'cause'.
  13604. Added an overloaded constructor.
  13605. (DlAbortEx): Added a parameter 'cause'.
  13606. Added an overloaded constructor.
  13607. * src/SimpleLogger.cc
  13608. (writeLog): Log nested exception messages recursively.
  13609. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13610. * src/DefaultBtProgressInfoFile.cc
  13611. (load): Fixed memory leak when the infohash doesn't match.
  13612. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13613. * src/DefaultPeerStorage.cc
  13614. (calculateStat): Simplified the code by combining 2 loops into 1.
  13615. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13616. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13617. for BitTorrent download:
  13618. * src/PeerAbstractCommand.cc
  13619. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13620. * src/main.cc:
  13621. (timeoutSpecified): Removed.
  13622. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13623. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13624. * src/TorrentRequestInfo.cc
  13625. (timeoutSpecified): Removed.
  13626. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13627. timeout value.
  13628. * src/prefs.h
  13629. (PREF_BT_TIMEOUT): New definition.
  13630. Delete unused variables:
  13631. * src/TorrentRequestInfo.cc
  13632. (requestInfo): Removed.
  13633. Move setSignalHander to Util::setGlobalSignalHandler:
  13634. * src/TorrentRequestInfo.cc:
  13635. setSignalHander -> Util::setGlobalSignalHandler
  13636. * src/main.cc
  13637. (setSignalHander): Removed.
  13638. (main): setSignalHander -> Util::setGlobalSignalHandler
  13639. * src/Util.h
  13640. (setGlobalSignalHandler): New function.
  13641. * src/Util.cc
  13642. (setGlobalSignalHandler): New function.
  13643. * src/UrlRequestInfo.cc:
  13644. setSignalHander -> Util::setGlobalSignalHandler
  13645. Reset peer status in order to exit gracefully:
  13646. * src/PeerAbstractCommand.cc
  13647. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13648. To fix the bug that causes the number of bytes uploaded is not saved
  13649. to .aria2 file:
  13650. * src/DefaultPeerStorage.h
  13651. (removedPeerSessionDownloadLength): New variable.
  13652. (removedPeerSessionUploadLength): New variable.
  13653. * src/DefaultPeerStorage.cc
  13654. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13655. removedPeerSessionUploadLength(0).
  13656. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13657. through all peers, and then add removedPeerSessionDownloadLength(
  13658. removedPeerSessionUploadLength) to it.
  13659. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13660. (to) the peer to removedPeerSessionDownloadLength
  13661. (removedPeerSessionUploadLength).
  13662. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13663. To add Metalink location option:
  13664. * src/MetalinkRequestInfo.cc
  13665. (execute): Call MetalinkEntry::setLocationPreference()
  13666. * src/main.cc
  13667. (showUsage): Added the help message for --metalink-location option.
  13668. (main): Added --metalink-location option.
  13669. * src/prefs.h
  13670. (PREF_METALINK_LOCATION): New definition.
  13671. * src/MetalinkEntry.cc
  13672. (AddLocationPreference): New function object.
  13673. (setLocationPreference): New function.
  13674. * src/Xml2MetalinkProcessor.cc
  13675. (getResource): Set location attribute to MetalinkResource
  13676. To show URLs to download
  13677. * src/UrlRequestInfo.h
  13678. (printUrls): New function.
  13679. To add multiple <file> Metalink support:
  13680. * src/MetalinkEntry.h
  13681. (MetalinkResources): Removed.
  13682. (setLocationPreference): New function.
  13683. (MetalinkEntryHandle): New type definition.
  13684. (MetalinkEntries): New type definition.
  13685. * src/Xml2MetalinkProcessor.h
  13686. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13687. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13688. (parseFile): Metalinker* -> MetalinkerHandle
  13689. * src/UrlRequestInfo.h
  13690. (execute): RequestInfo* -> RequestInfos
  13691. * src/MetalinkRequestInfo.cc
  13692. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13693. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13694. (execute): RequestInfo* -> RequestInfos
  13695. Added multiple <file> support. Print filename when it is queued.
  13696. * src/MetalinkRequestInfo.h
  13697. (execute): RequestInfo* -> RequestInfos
  13698. (getDownloadEngine): Removed.
  13699. * src/RequestInfo.h
  13700. (RequestInfoHandle): New type definition.
  13701. (RequestInfos): New type definition.
  13702. (execute): RequestInfo* -> RequestInfos
  13703. (getDownloadEngine): Removed.
  13704. * src/MetalinkResource.h
  13705. (MetalinkResourceHandle): New type definition.
  13706. (MetalinkResources): New type definition.
  13707. * src/MetalinkEntry.cc
  13708. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13709. because the element is now of type MetalinkResourceHandle.
  13710. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13711. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13712. (dropUnsupportedResource): Removed the deletion of the elements of
  13713. resources because the element is now of type MetalinkResourceHandle.
  13714. * src/Xml2MetalinkProcessor.cc
  13715. (parseFile): Metalinker* -> MetalinkerHandle
  13716. MetalinkEntry* -> MetalinkEntryHandle
  13717. Removed try-catch block.
  13718. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13719. MetalinkResource* -> MetalinkResourceHandle
  13720. Removed try-catch block.
  13721. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13722. Free result by using xmlXPathFreeObject()
  13723. * src/Metalinker.cc
  13724. (~Metalinker): Removed the deletion of entries.
  13725. MetalinkEntry* -> MetalinkEntryHandle
  13726. (queryEntry): Add multiple <file> Metalink support.
  13727. * src/Metalinker.h
  13728. (MetalinkEntries): Removed.
  13729. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13730. * src/MetalinkProcessor.h
  13731. (parseFile): Metalinker* -> MetalinkerHandle
  13732. Bug fixes:
  13733. * src/PeerChokeCommand.cc
  13734. (execute): cat01->cat02
  13735. * src/DefaultPieceStorage.cc
  13736. (DefaultPieceStorage): Added diskAdaptor(0)
  13737. * src/TrackerWatcherComand.cc:
  13738. (execute): Use btAnnounce->noMoreAnnounce()
  13739. to determin whether the function returns true or not.
  13740. * src/TrackerUpdateCommand.cc:
  13741. (execute): Use btAnnounce->noMoreAnnounce()
  13742. to determin whether the function returns true or not.
  13743. * src/FtpConnection.cc
  13744. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13745. This is the fix of the busy loop bug.
  13746. * src/DownloadCommand.cc
  13747. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13748. cached PeerStat.
  13749. The value of "name" entry in torrent file is now set by
  13750. *DiskAdaptor::setTopDir(...) methods.
  13751. * src/MultiDiskAdaptor.h
  13752. (topDir): New variable.
  13753. (setTopDir): New function.
  13754. (getTopDir): New function.
  13755. * src/MultiDiskAdaptor.cc
  13756. (getFilePath): Concat storDir, "/" and topDir.
  13757. (mkdir): Use getFilePath() to get the directory path for output.
  13758. * src/DefaultPieceStorage.cc
  13759. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13760. CopyDiskAdaptor.
  13761. * src/CopyDiskAdaptor.h
  13762. (topDir): New variable.
  13763. (setTopDir): New function.
  13764. (getTopDir): New function.
  13765. * src/CopyDiskAdaptor.cc
  13766. (fixFilename): Updated.
  13767. Misc
  13768. * src/UrlRequestInfo.h
  13769. (e): Removed.
  13770. (UrlRequestInfo): Removed e.
  13771. (getDownloadEngine): Removed.
  13772. * src/UrlRequestInfo.cc
  13773. (handler): Rewritten.
  13774. (printUrls): New function.
  13775. (execute): Call printUrls().
  13776. * src/HandshakeMessage.cc
  13777. (check): peerinteraction->getBtContext() -> btContext
  13778. * src/PeerInteraction.h
  13779. (getBtContext): Removed.
  13780. * src/TorrentRequestInfo.h
  13781. (execute): RequestInfo* -> RequestInfos
  13782. (getDownloadEngine): Removed.
  13783. * src/TorrentRequestInfo.cc
  13784. (haltRequested): Removed.
  13785. (btHaltRequested): New variable.
  13786. (torrentHandler): haltRequested -> btHaltRequested
  13787. (execute): RequestInfo* -> RequestInfos
  13788. * src/TorrentConsoleDownloadEngine.cc
  13789. (afterEachIteration): haltRequested -> btHaltRequested.
  13790. * src/ConsoleDownloadEngine.h
  13791. (initStatistics): Added virtual.
  13792. (calculateStatistics): Added virtual.
  13793. (onEndOfRun): Added virtual.
  13794. (afterEachIteration): Added virtual.
  13795. * src/ConsoleDownloadEngine.cc
  13796. (haltRequested): New variable.
  13797. (afterEachIteration): New function.
  13798. * src/main.cc
  13799. (requestInfo): Removed.
  13800. * src/SegmentMan.cc
  13801. (findSlowerSegmentEntry): Refactored.
  13802. * Release 0.9.0
  13803. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13804. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13805. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13806. * src/TorrentMan.h: Removed.
  13807. * src/TorrentMan.cc: Removed.
  13808. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13809. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13810. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13811. * src/PeerAbstractCommand.cc: Use btRuntime.
  13812. * src/BtContextAwareCommand.h: New class.
  13813. * src/FileEntry.h: Added accessor methods for following variables.
  13814. (path): Made private.
  13815. (length): Made private.
  13816. (offset): Made private.
  13817. (extracted): Made private.
  13818. (requested): Made private.
  13819. (FileEntries): New definition.
  13820. (FileEntryHandle): New definition.
  13821. * src/FileEntry.cc: New file.
  13822. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13823. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13824. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13825. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13826. * src/PieceStorage.h: New file.
  13827. * src/PeerInteractionCommand.h: Use btContext.
  13828. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13829. btRuntime.
  13830. * src/DefaultBtProgressInfoFile.h: New file.
  13831. * src/DefaultBtProgressInfoFile.cc: New file.
  13832. * src/File.cc
  13833. (Util.h): New include.
  13834. (mkdirs): New function.
  13835. * src/MultiDiskAdaptor.h
  13836. (mkdir): New function.
  13837. * src/PeerListProcessor.h
  13838. (Peers): Removed.
  13839. * src/PeerInteraction.h
  13840. (torrentMan): Removed.
  13841. (btContext): New variable.
  13842. (peerStorage): New variable.
  13843. (pieceStorage): New variable.
  13844. (btAnnounce): New variable.
  13845. (getTorrentMan): Removed.
  13846. (getBtContext): New function.
  13847. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13848. btAnnounce.
  13849. * src/HandshakeMessage.h
  13850. (TorrentMan.h): Removed.
  13851. * src/HandshakeMessage.cc: Use btContext.
  13852. * src/DefaultBtAnnounce.cc: New file.
  13853. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13854. * src/DefaultPieceStorage.cc: New file.
  13855. * src/DefaultBtContext.h: New file.
  13856. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13857. Use the accessor methods of FileEntry.
  13858. * src/CookieBox.cc: Updated to use Util::slice().
  13859. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13860. * src/common.h (SharedHandle.h): New include.
  13861. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13862. pieceStorage.
  13863. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13864. * src/DiskAdaptor.h
  13865. (topDir): Removed.
  13866. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13867. (setTopDir): Removed.
  13868. (getTopDir): Removed.
  13869. * src/BtContext.h: New file.
  13870. * src/DefaultPeerStorage.h: New file.
  13871. * src/PieceMessage.h (TorrentMan.h): Removed.
  13872. * src/RequestMessage.h (TorrentMan.h): Removed.
  13873. * src/TorrentDownloadEngine.h
  13874. (uploadLength): New variable.
  13875. (btContext): New variable.
  13876. (btRuntime): New variable.
  13877. (pieceStorage): New variable.
  13878. (peerStorage): New variable.
  13879. (btAnnounce): New variable.
  13880. (btProgressInfoFile): New variable.
  13881. (torrentMan): Removed.
  13882. (setBtContext): New function.
  13883. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13884. peerStorage, btAnnounce, btProgressInfoFile.
  13885. * src/Piece.h
  13886. (toString): New function.
  13887. (Pieces): New type definition.
  13888. * src/Peer.h
  13889. (active): New variable.
  13890. (Peer): Added active.
  13891. (activate): Set active to true.
  13892. (deactivate): Set active to false.
  13893. (isActive): New function.
  13894. (Peers): New type definition.
  13895. * src/DirectDiskAdaptor.cc
  13896. (getFilePath): Use the accessor methods of FileEntry.
  13897. * src/TorrentConsoleDownloadEngine.h
  13898. (afterEachIteration): New function.
  13899. * src/TorrentConsoleDownloadEngine.cc
  13900. (haltRequested): New variable.
  13901. (sendStatistics): Use pieceStorage, btRuntime.
  13902. (afterEachIteration): New function.
  13903. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13904. * src/Directry.h
  13905. (Directory): New function.
  13906. (DirectoryHandle): New type definition.
  13907. * src/BtProgressInfoFile.h: New file.
  13908. * src/RequestMessage.cc: Use pieceStorage.
  13909. * src/BtRuntime.h: New file.
  13910. * src/DefaultBtContext.cc: New file.
  13911. * src/BitfieldMan.h
  13912. (getCompletedLength): New function(private).
  13913. (getCompletedLength): New function.
  13914. (getFilteredCompletedLength): New function.
  13915. * src/BitfieldMan.h
  13916. (getCompletedLength): New function(private).
  13917. (getCompletedLength): New function.
  13918. (getFilteredCompletedLength): New function.
  13919. * src/MultiDiskAdaptor.cc
  13920. (mkdir): New function.
  13921. (openFile): Call mkdir().
  13922. (initAndOpenFile): Call mkdir().
  13923. * src/CancelMessage.h
  13924. (TorrentMan.h): Removed.
  13925. * src/RejectMessage.h
  13926. (TorrentMan.h): Removed.
  13927. * src/DownloadEngineFactory.cc
  13928. (DefaultPieceStorage.h): New include.
  13929. (DefaultPeerStorage.h): New include.
  13930. (DefaultBtAnnounce.h): New include.
  13931. (DefaultBtProgressInfoFile.h): New include.
  13932. (newTorrentConsoleEngine): Rewritten.
  13933. * src/ShareRatioSeedCriteria.h
  13934. (torrentMan): Removed.
  13935. (btContext): New variable.
  13936. (peerStorage): New variable.
  13937. (btRuntime): New variable.
  13938. (evaluate): Use btContext, btRuntime, peerStorage.
  13939. * src/AnnounceTier.h: New file.
  13940. * src/BtAnnounce.h: New file.
  13941. * src/BtRegistry.h: New file.
  13942. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13943. * src/PeerConnection.h (TorrentMan.h): Removed.
  13944. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13945. * src/Util.h
  13946. (slice): Added an argument.
  13947. * src/Util.cc
  13948. (slice): Added an argument to control whether trim is made or not.
  13949. * src/PeerStorage.h: New file.
  13950. * src/BtRegistry.cc: New file.
  13951. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13952. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13953. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13954. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13955. * src/TorrentRequestInfo.h
  13956. (e): Removed.
  13957. (showFileEntry): Added an argument.
  13958. (getDownloadEngine): Return 0.
  13959. * src/DefaultBtAnnounce.h: New file.
  13960. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13961. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13962. * src/PeerMessageFactory.h
  13963. (btContext): New variable.
  13964. (pieceStorage): New variable.
  13965. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13966. btAnnounce.
  13967. * src/DiskAdaptor.cc
  13968. (DiskAdaptor): Removed topDir.
  13969. (~DiskAdaptor): Removed topDir.
  13970. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13971. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13972. * src/File.h (mkdirs): New function.
  13973. * src/DefaultPeerStorage): New file.
  13974. * src/DownloadEngineFactory.h
  13975. (newTorrentConsoleEngine): Use btContext.
  13976. * src/BtContextAwareCommand.cc: New file.
  13977. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13978. * src/PeerMessage.h
  13979. (btContext): New variable.
  13980. (peerStorage): New variable.
  13981. (pieceStorage): New variable.
  13982. (setBtContext): New function.
  13983. * src/Directry.cc
  13984. (Directory): New function.
  13985. (createDir): Do nothing if name.size() == 0.
  13986. * src/AnnounceList.h
  13987. (AnnounceTier): Removed.
  13988. (AnnounceTiers): Removed.
  13989. * src/DefaultPieceStorage.h: New file.
  13990. * src/Piece.cc (toString): New function.
  13991. To fix typo:
  13992. * src/main.cc (showVersion): Fixed typo.
  13993. To fix compile warning:
  13994. * src/DelegatingPeerListProcessor.cc
  13995. (canHandle): Added "return false".
  13996. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13997. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13998. make the process of announce request testable.
  13999. * src/TrackerWatcherCommand.h
  14000. (TimeA2.h): Removed.
  14001. (interval): Removed.
  14002. (checkPoint): Removed.
  14003. (createRequestCommand): Added an argument 'url'.
  14004. (TrackerWatherCommand): Removed interval.
  14005. (createCommand): New function.
  14006. * src/DownloadEngineFactory.cc
  14007. (newTorrentConsoleEngine): Updated according to the changes in
  14008. TrackerWatherCommand.
  14009. * src/TorrentMan.cc
  14010. (DelegatingPeerListProcessor.h): New includes.
  14011. (TorrentMan): Added the initialization of announceInterval.
  14012. (isStoppedAnnounceReady): New function.
  14013. (isCompletedAnnounceReady): New function.
  14014. (isDefaultAnnounceReady): New function.
  14015. (isAnnounceReady): New function.
  14016. (getAnnounceUrl): New function.
  14017. (announceStart): New function.
  14018. (announceFailure): New function.
  14019. (announceSuccess): New function.
  14020. (isAllAnnounceFailed): New function.
  14021. (resetAnnounce): New function.
  14022. (processAnnounceResponse): New function.
  14023. (needMorePeerConnection): New function.
  14024. (noMoreAnnounce): New function.
  14025. * src/TrackerUpdateCommand.h
  14026. (getTrackerResponse): int->size_t
  14027. * src/TorrentMan.h
  14028. (isStoppedAnnounceReady): New function.
  14029. (isCompletedAnnounceReady): New function.
  14030. (isDefaultAnnounceReady): New function.
  14031. (announceInterval): New variable.
  14032. (isAnnounceReady): New function.
  14033. (getAnnounceUrl): New function.
  14034. (announceStart): New function.
  14035. (announceFailure): New function.
  14036. (announceSuccess): New function.
  14037. (isAllAnnounceFailed): New function.
  14038. (resetAnnounce): New function.
  14039. (processAnnounceResponse): New function.
  14040. (needMorePeerConnection): New function.
  14041. (noMoreAnnounce): New function.
  14042. * src/TrackerWatcherCommand.cc
  14043. (TrackerWatherCommand): Removed interval and checkPoint.
  14044. (execute): Rewritten.
  14045. (createCommand): New function.
  14046. (createRequestCommand): Rewritten.
  14047. * src/TrackerUpdateCommand.cc
  14048. (MetaFileUtil.h): Removed.
  14049. (DelegatingPeerListProcessor.h): Removed.
  14050. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14051. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14052. Request -> RequestHandle:
  14053. * src/HttpResponseCommand.h: Request->RequestHandle
  14054. * src/AbstractCommand.cc: Request->RequestHandle
  14055. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14056. * src/HttpRequestCommand.cc: Request->RequestHandle
  14057. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14058. * src/AbstractCommand.h: Request->RequestHandle
  14059. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14060. * src/HttpResponseCommand.cc: Request->RequestHandle
  14061. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14062. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14063. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14064. * src/HttpConnection.h: Request->RequestHandle
  14065. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14066. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14067. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14068. * src/DownloadCommand.h: Request->RequestHandle
  14069. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14070. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14071. * src/HttpRequestCommand.h: Request->RequestHandle
  14072. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14073. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14074. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14075. * src/HttpDownloadCommand.h: Request->RequestHandle
  14076. * src/FtpConnection.cc: Request->RequestHandle
  14077. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14078. * src/UrlRequestInfo.cc: Request->RequestHandle
  14079. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14080. * src/HttpConnection.h: Request->RequestHandle
  14081. * src/DownloadCommand.cc: Request->RequestHandle
  14082. * src/FtpConnection.h: Request->RequestHandle
  14083. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14084. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14085. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14086. * src/Request.h
  14087. (SharedHandle.h): New include.
  14088. (RequestHandle): New type definition.
  14089. (Requests): Redefined.
  14090. To add MULTITRACKER support:
  14091. * src/TrackerWatcherCommand.h
  14092. (createRequestCommand): New function.
  14093. * src/DownloadEngineFactory.cc
  14094. (newTorrentConsoleEngine): Removed req.
  14095. * src/prefs.h
  14096. (PREF_TRACKER_MAX_TRIES): New definition.
  14097. * src/TorrentMan.cc
  14098. (TorrentMan): Removed req. Added trackerNumTry.
  14099. (~TorrentMan): Removed req.
  14100. (setupInternal1): Added announceList.
  14101. * src/TorrentRequestInfo.cc
  14102. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14103. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14104. * src/main.cc
  14105. (main): Added PREF_TRACKER_MAX_TRIES.
  14106. * src/TorrentMan.h
  14107. (Request.h): Removed.
  14108. (AnnounceList.h): New include.
  14109. (trackerNumTry): New variable.
  14110. (req): Removed.
  14111. (announceList): New variable.
  14112. * src/TrackerWatcherCommand.cc
  14113. (execute): Rewritten.
  14114. (createRequestCommand): New function.
  14115. * src/TrackerUpdateCommand.cc
  14116. (execute): Updated with the use of AnnounceList.
  14117. * src/AnnounceList.cc: New class.
  14118. * src/AnnounceList.h: New class.
  14119. To fix typo:
  14120. * src/prefs.h
  14121. (PREF_MAX_TRIES): max_try->max_tries
  14122. To not to decode "+" as space in URL decode:
  14123. * src/Util.cc
  14124. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14125. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14126. To add timeout to async name resolution:
  14127. * src/AbstractCommand.h
  14128. (nameResolveFinished): New function. This is not elegant way. It needs
  14129. to be more refined.
  14130. (nameResolverCheck): New variable.
  14131. * src/AbstractCommand.cc
  14132. (AbstractCommand): Added nameResolverCheck.
  14133. (execute): Added the check whether the name resolution has finished.
  14134. (setNameResolverCheck): Set nameResolverCheck to true.
  14135. (disableNameResolverCheck): Set nameResolverCheck to false.
  14136. (nameResolverFinished): New function.
  14137. * src/FtpInitiateConnectionCommand.h
  14138. (nameResolverFinished): New function.
  14139. * src/FtpInitiateConnectionCommand.cc
  14140. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14141. * src/HttpInitiateConnectionCommand.h
  14142. (nameResolverFinished): New function.
  14143. * src/HttpInitiateConnectionCommand.cc
  14144. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14145. * src/prefs.h
  14146. (PREF_DNS_TIMEOUT): New definition.
  14147. * src/main.cc
  14148. (main): Added PREF_DNS_TIMEOUT.
  14149. To add the support for a non-compact response from a tracker:
  14150. * src/PeerListProcessor.h: New class.
  14151. * src/DefaultPeerListProcessor.h: New class.
  14152. * src/DefaultPeerListProcessor.cc: New class.
  14153. * src/CompactPeerListProcessor.h: New class.
  14154. * src/CompactPeerListProcessor.cc: New class.
  14155. * src/DelegatingPeerListProcessor.h: New class.
  14156. * src/DelegatingPeerListProcessor.cc: New class.
  14157. * src/TorrentMan.cc
  14158. (addPeer): New function(overload).
  14159. (addPeer): Delete unused peers only when new peer is added.
  14160. * src/TorrentMan.h
  14161. (PeerListProcessor.h): Included.
  14162. (Peers): Removed.
  14163. (addPeer): New function(overload).
  14164. * src/TrackerUpdateCommand.cc
  14165. (netinet/in.h): Removed.
  14166. (DelegatingPeerListProcessor.h): Included.
  14167. (execute): Updated to use DelegatingPeerListProcessor.
  14168. To fix the memory leak in TorrentMan::peers:
  14169. * src/PeerAbstractCommand.cc
  14170. (onAbort): Added peer->resetStatus().
  14171. * src/Peer.h
  14172. (resetStatus): Made public.
  14173. To improve the precision of the speed calculation:
  14174. * src/SpeedCalc.h
  14175. (nextInterval): New variable.
  14176. * src/SpeedCalc.cc
  14177. (reset): Added nextInterval.
  14178. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14179. (changeSw): Set nextInterval to 15 seconds relative to the current
  14180. instant time.
  14181. * src/main.cc
  14182. (showVersion): Updated.
  14183. (showUsage): Updated.
  14184. * Release 0.8.1
  14185. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14186. * src/main.cc
  14187. (showUsage): Commented out --min-segment-size option.
  14188. (main): Commented out --min-segment-size option.
  14189. * Release 0.8.0
  14190. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14191. * src/*.{h,cc}:
  14192. Added an exception to the license which allows linking with OpenSSL.
  14193. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14194. * src/AbstractCommand.cc
  14195. (execute): Check whether the download has finished before checking
  14196. socket status.
  14197. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14198. Do not exit even if no segment is available.
  14199. * src/prefs.h
  14200. (PREF_STARTUP_IDLE_TIME): New definition.
  14201. * src/PeerInteractionCommand.cc
  14202. (executeInternal): Removed max speed limit. Because it performs bad.
  14203. (receiveMessages): Added max speed limit. This was better than above,
  14204. but still a little bit to be desired. Sometimes the download speed
  14205. became much faster than I specified.
  14206. * src/SpeedCalc.h
  14207. (start): New variable.
  14208. (accumulatedLength): New variable.
  14209. (getAvgSpeed): New function.
  14210. * src/SpeedCalc.cc
  14211. (reset): Added start, accumulatedLength.
  14212. (update): Added calculation of an average speed.
  14213. (getAvgSpeed): New function.
  14214. * src/DownloadCommand.h
  14215. (sw): Removed.
  14216. * src/main.cc
  14217. (main): Added PREF_STARTUP_IDLE_TIME.
  14218. * src/PeerStat.h
  14219. (STATUS): Added REQUEST_IDLE.
  14220. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14221. (getAvgDownloadSpeed): New function
  14222. (requestIdle): New function.
  14223. * src/SegmentMan.h
  14224. (SegmentEntryHandle): New type definition.
  14225. (SegmentEntries): Now holds SegmentEntryHandle.
  14226. (findSlowerSegmentEntry): New funtion.
  14227. * src/SegmentMan.cc
  14228. (save): Updated according to the changes in SegmentEntries.
  14229. (read): Updated according to the changes in SegmentEntries.
  14230. (FindSegmentEntryByIndex): Updated according to the changes in
  14231. SegmentEntries.
  14232. (FindSegmentEntryByCuid): Updated according to the changes in
  14233. SegmentEntries.
  14234. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14235. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14236. Renamed uitr as itr.
  14237. (findSlowerSegmentEntry): New function.
  14238. (getSegment): Updated according to the changes in SegmentEntries.
  14239. Added the feature that cancels the segment with slow server and fast
  14240. one takes it over.
  14241. (cancelSegment): Updated according to the changes in SegmentEntries.
  14242. (getDownloadLength): Updated according to the changes in
  14243. SegmentEntries.
  14244. (init): Assigned 0 to bitfield after deleting it.
  14245. * src/DownloadCommand.cc
  14246. (STARTUP_IDLE_TIME): Removed.
  14247. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14248. * src/PeerChokeCommand.cc
  14249. (optUnchokingPeer): Updated according to the changes in Peer.
  14250. (ResetDelta): Removed.
  14251. (UploadFaster): Updated according to the changes in Peer.
  14252. (DownloadFaster): Updated according to the changes in Peer.
  14253. (execute): I clarify the meaning of "upload" and "download" here.
  14254. "upload" means the transfer from localhost to remote host.
  14255. "download" means the transfer from remote host to localhost.
  14256. Based on this rule, I swapped orderByUploadRate and
  14257. orderByDownloadRate.
  14258. * src/PeerInteractionCommand.cc
  14259. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14260. (executeInternal): Removed the argument of
  14261. peerInteraction->sendMessages().
  14262. (receiveMessages): Rewritten download speed limit.
  14263. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14264. * src/HttpResponseCommand.cc
  14265. (handleDefaultEncoding): If file size is unknown in torrent request,
  14266. do not call segmentMan->initBitfield() here.
  14267. Disabled persistent connection feature in torrent request.
  14268. * src/UrlRequestInfo.h
  14269. (UrlRequestInfo): Removed const qualifier from option.
  14270. * src/TorrentMan.h
  14271. (TransferStat): New class.
  14272. (deltaDownloadLength): Removed.
  14273. (deltaUploadLength): Removed.
  14274. (addDeltaDownloadLength): Removed.
  14275. (getDeltaDownloadLength): Removed.
  14276. (resetDeltaDownloadLength): Removed.
  14277. (addDeltaUploadLength): Removed.
  14278. (getDeltaUploadLength): Removed.
  14279. (resetDeltaUploadLength): Removed.
  14280. (addActivePeer): Added peer->activate().
  14281. (deleteActivePeer): Added peer->deactivate().
  14282. (calculateStat): New function.
  14283. * src/TorrentMan.cc
  14284. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14285. (calculateStat): New function.
  14286. * src/PeerInteraction.h
  14287. (uploadLimit): Removed.
  14288. (option): New variable.
  14289. (setUploadLimit): Removed.
  14290. (getUploadSpeed): Removed.
  14291. (sendMessages): Removed the argument "currentUploadSpeed".
  14292. * src/PeerInteraction.cc
  14293. (prefs.h): Included.
  14294. (PeerInteraction): Removed uploadLimit. Added option.
  14295. (sendMessages): Rewritten upload speed limit.
  14296. (sendHandshake): Removed the argument from sendMessages().
  14297. (sendBitfield): Removed the argument from sendMessages().
  14298. * src/PeerAbstractCommand.cc
  14299. (execute): Commented out the portion of upload limit.
  14300. (onAbort): Removed peer->resetStatus().
  14301. * src/TorrentRequestInfo.cc
  14302. (timeoutSpecified): Declared extern.
  14303. (execute): Set timeout to 180 if timeout is not specified by.
  14304. command-line.
  14305. * src/PieceMessage.cc
  14306. (receivedAction): Added peer->updateDownloadLength().
  14307. Removed peer->addPeerUpload().
  14308. Removed torrentMan->addDeltaDownloadLength().
  14309. (send): Added peer->updateUploadLength().
  14310. Removed peer->addPeerDownload().
  14311. Removed torrentMan->addDeltaUploadLength().
  14312. * src/main.cc
  14313. (timeoutSpecified): New variable.
  14314. (main): Set timeoutSpecified to false.
  14315. If the command-line option "--upload-limit" is specified, then
  14316. timeoutSpecified is set to true. This option will remain in the next
  14317. release, but be deprecated in the future release.
  14318. * src/TorrentRequestInfo.h
  14319. (TorrentRequestInfo): Removed const qualifier from op.
  14320. * src/PeerStat.h
  14321. (uploadSpeed): New variable.
  14322. (PeerStat): Added default value to cuid.
  14323. (calculateUploadSpeed): New function.
  14324. (updateUploadLength): New function.
  14325. (getMaxUploadSpeed): New function.
  14326. (getAvgUploadSpeed): New function.
  14327. (reset): Added uploadSpeed. Set status to IDLE.
  14328. * src/TorrentDownloadEngine.h
  14329. (cp): Declared as Time.
  14330. (sessionDownloadLengthArray): Removed.
  14331. (sessionUploadLengthArray): Removed.
  14332. (currentCp): Removed.
  14333. (lastCalcStat): New variable
  14334. (lastElapsed): Removed.
  14335. (sessionDownloadLength): Removed.
  14336. (calculateStat): New function.
  14337. * src/TorrentDownloadEngine.cc
  14338. (initStatistics): Removed lastElapsed, cp[],
  14339. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14340. currentCp, sessionDownloadLength.
  14341. Added cp.reset() and lastCalcStat.reset().
  14342. (calculateSpeed): Changed the name of the argument.
  14343. (calculateStatistics): Rewritten.
  14344. (calculateStat): New function.
  14345. * src/Peer.h
  14346. (PeerStat.h): Included.
  14347. (peerUpload): Removed.
  14348. (peerDownload): Removed.
  14349. (peerStat): New variable.
  14350. (sessionUploadLength): New variable.
  14351. (sessionDownloadLength): New variable.
  14352. (deltaUpload): Removed.
  14353. (deltaDownload): Removed.
  14354. (resetStatus): Made private.
  14355. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14356. Removed peerUpload, peerDownload.
  14357. (updateUploadLength): New function.
  14358. (addDeltaUpload): Removed.
  14359. (updateDownloadLength): New function.
  14360. (resetDeltaUpload): Removed.
  14361. (getDeltaUpload): Removed.
  14362. (addDeltaDownload): Removed.
  14363. (calculateUploadSpeed): New function.
  14364. (resetDeltaDownload): Removed.
  14365. (getDeltaDownload): Removed.
  14366. (calculateDownloadSpeed): New function.
  14367. (getSessionUploadLength): New function.
  14368. (getSessionDownloadLength): New function.
  14369. (activate): New function.
  14370. (deactivate): New function.
  14371. (addPeerUpload): Removed.
  14372. (setPeerUpload): Removed.
  14373. (getPeerUpload): Removed.
  14374. (addPeerDownload): Removed.
  14375. (setPeerDownload): Removed.
  14376. (getPeerDownload): Removed.
  14377. * src/Peer.cc
  14378. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14379. * src/MetalinkRequestInfo.h
  14380. (MetalinkRequestInfo): Removed const qualifier from op.
  14381. * src/RequestInfo.h
  14382. (op): Removed const qualifier.
  14383. (RequestInfo): Removed const qualifier from op.
  14384. * src/prefs.h
  14385. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14386. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14387. * src/PeerInteractionCommand.cc
  14388. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14389. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14390. * src/PeerInteraction.cc
  14391. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14392. * src/main.cc
  14393. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14394. Added the description of "--max-download-limit" option.
  14395. Removed the description of "--upload-limit" option.
  14396. Added the description of "--max-upload-limit" option.
  14397. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14398. Added "--max-download-limit" option and "--max-upload-limit" option.
  14399. Added the warning message if "--upload-limit" option is used.
  14400. * src/DownloadCommand.cc
  14401. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14402. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14403. To rewrite segment download mechanism for HTTP/FTP download.
  14404. Use BitfieldMan to manage segment download.
  14405. * src/HttpResponseCommand.h
  14406. (executeInternal): Pass the reference of segment.
  14407. * src/AbstractCommand.cc
  14408. (prepareForRetry): Call segmentMan->cancelSegment here.
  14409. (onAbort): Call segmentMan->cancelSegment here.
  14410. * src/HttpDownloadCommand.cc
  14411. (prepareForNextSegment): New function.
  14412. * src/DownloadEngineFactory.cc
  14413. (newConsoleEngine): Removed splitter.
  14414. (newTorrentConsoleEngine): Removed splitter.
  14415. * src/Request.h
  14416. (segment): Renamed from seg.
  14417. * src/FtpInitiateConnectionCommand.h
  14418. (executeInternal): Pass the reference of segment.
  14419. * src/AbstractCommand.h
  14420. (executeInternal): Pass the reference of segment.
  14421. * src/pref.h
  14422. (PREF_SEGMENT_SIZE): New definition.
  14423. * src/HttpProxyRequestCommand.h
  14424. (executeInternal): Pass the reference of segment.
  14425. * src/HttpResponseCommand.cc
  14426. (checkResponse): Allowed status 206 when a request range starts 0.
  14427. (handleDefaultEncoding): Rewritten the code related to Segment.
  14428. (handleOtherEncoding): Rewritten the code related to Segment.
  14429. * src/SegmentMan.h
  14430. (SegmentEntry): New class.
  14431. (SegmentEntries): New type definition.
  14432. (bitfield): New variable.
  14433. (usedSegmentEntries): New variable.
  14434. (onNullBitfield): New function.
  14435. (checkoutSegment): New function.
  14436. (segments): Removed.
  14437. (splitter): Removed.
  14438. (unregisterId): Removed.
  14439. (getSegment): New function(overload)
  14440. (getDownloadedSize): Removed.
  14441. (cancelSegment): New function.
  14442. (completeSegment): New function.
  14443. (initBitfield): New function.
  14444. (hasSegment): New function.
  14445. (getDownloadLength): New function.
  14446. * src/BitfieldMan.h
  14447. (getStartIndex): New function.
  14448. (getEndIndex): New function.
  14449. (getMissingUnusedIndex): New function(overload).
  14450. (getSparseMissingUnusedIndex): New function.
  14451. * src/BitfieldMan.cc
  14452. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14453. (getMissingUnusedIndex): New function(overload).
  14454. (Range): New class.
  14455. (getStartIndex): New function.
  14456. (getEndIndex): New function.
  14457. (getSparseMissingUnusedIndex): New function.
  14458. (isBitSetInternal): Return false if the given index is less than 0.
  14459. * src/HttpInitiateConnectionCommand.h
  14460. (executeInternal): Pass the reference of segment.
  14461. * src/FtpNegotiateCommand.h
  14462. (executeInternal): Pass the reference of segment.
  14463. * src/FtpNegotiateCommand.cc
  14464. (recvSize): Initialize bitfield here.
  14465. * src/FtpTunnelResponseCommand.h
  14466. (executeInternal): Pass the reference of segment.
  14467. * src/HttpConnection.cc
  14468. (createRequest): Rewritten range header processing.
  14469. * src/DownloadCommand.h
  14470. (executeInternal): Pass the reference of segment.
  14471. (prepareForRetry): Removed.
  14472. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14473. function.
  14474. * src/main.cc
  14475. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14476. * src/SegmentMan.cc
  14477. (SegmentMan): Added bitfield. Removed splitter.
  14478. (~SegmentMan): Added bitfield. Removed splitter.
  14479. (unregisterId): Removed.
  14480. (getSegment): Rewritten.
  14481. (updateSegment): Rewritten.
  14482. (save): Rewritten.
  14483. (read): Rewritten.
  14484. (finished): Rewritten.
  14485. (getDownloadedSize): Removed.
  14486. (initBitfield): New function.
  14487. (FindSegmentEntryByIndex): New function object.
  14488. (FindSegmentEntryByCuid): New function object.
  14489. (checkoutSegment): New function.
  14490. (onNullBitfield): New function.
  14491. (getSegment): New function(overload).
  14492. (CancelSegment): New function object.
  14493. (cancelSegment): New function.
  14494. (completeSegment): New function.
  14495. (hasSegment): New function.
  14496. (getDownloadLength): New function.
  14497. * src/FtpInitiateConnectionCommand.cc
  14498. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14499. * src/Segment.h: Rewritten.
  14500. * src/Segment.cc (operator<<): New function.
  14501. * src/HttpDownloadCommand.h
  14502. (prepareForNextSegment): New function.
  14503. * src/Request.cc
  14504. (resetUrl): Made segment null.
  14505. * src/DownloadEngine.cc
  14506. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14507. * src/HttpProxyRequestCommand.h
  14508. (executeInternal): Pass the reference of segment.
  14509. * src/DownloadCommand.cc
  14510. (executeInternal): Rewritten the code related to Segment.
  14511. (prepareForRetry): Removed.
  14512. (prepareForNextSegment): Rewritten.
  14513. * src/FtpTunnelResponseCommand.h
  14514. (executeInternal): Pass the reference of segment.
  14515. To add HTTP 1.1 persistent connection support(experimental)
  14516. * src/HttpRequestCommand.cc
  14517. (executeInternal): Disable keep alive if it is disabled by
  14518. configuration.
  14519. * src/Request.h
  14520. (keepAlive): New variable.
  14521. (isKeepAlive): New function.
  14522. (setKeepAlive): New function.
  14523. * src/pref.h
  14524. (PREF_HTTP_KEEP_ALIVE): New definition.
  14525. * src/HttpResponseCommand.cc
  14526. (executeInternal): Check the remote server supports keep alive.
  14527. * src/HttpConnection.cc
  14528. (createRequest): Send "Connection: close" only if keep alive is
  14529. disabled.
  14530. * src/main.cc
  14531. (main):
  14532. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14533. To add max download speed limit:
  14534. * src/pref.h
  14535. (PREF_MAX_SPEED_LIMIT): New definition.
  14536. * src/PeerInteractionCommand.cc
  14537. (executeInternal): Added max download speed limit. Not tested yet.
  14538. * src/SegmentMan.h
  14539. (PeerStats): New type definition.
  14540. (peerStats): New variable.
  14541. (registerPeerStat): New function.
  14542. (FindPeerStat): New function object.
  14543. (getPeerStat): New function.
  14544. (calculateDownloadSpeed): New function.
  14545. * src/SpeedCalc.h: New class.
  14546. * src/SpeedCalc.cc: New class.
  14547. * src/main.cc
  14548. (main):
  14549. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14550. download speed is not restricted).
  14551. * src/PeerStat.h: New class.
  14552. * src/SegmentMan.cc
  14553. (registerPeerStat): New function.
  14554. (calculateDownloadSpeed): New function.
  14555. * src/DownloadCommand.cc
  14556. (STARTUP_IDLE_TIME): New definition.
  14557. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14558. downloadStart.
  14559. (~DownloadCommand): Call peerStat->downloadStop.
  14560. (executeInternal): Added download speed limitter. Rewritten lowest
  14561. speed limitter.
  14562. * src/HttpConnection.cc
  14563. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14564. * src/AbstractCommand.cc
  14565. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14566. Added hostname to the error message.
  14567. * src/ConsoleDownloadEngine.cc
  14568. (calculateStatistics): Initialize psize with dlSize.
  14569. * src/PieceMessage.cc
  14570. (receivedAction): Do not call peerInteraction->abortPiece here.
  14571. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14572. * src/BitfieldMan.h
  14573. (clearAllUseBit): New function.
  14574. (setAllUseBit): New function.
  14575. * src/BitfieldMan.cc
  14576. (clearAllBit): Do not clear useBitfield here.
  14577. (clearAllUseBit): New function.
  14578. (setAllUseBit): New function.
  14579. * src/Piece.cc
  14580. (clearAllBlock): Call bitfield->clearAllUseBit().
  14581. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14582. To make filename URL-decoded:
  14583. * src/HttpResponseCommand.h: Updated doc.
  14584. * src/HttpResponseCommand.cc
  14585. (determinFilename): Made filename URL-decoded.
  14586. * src/FtpInitiateConnectionCommand.cc
  14587. (executeInternal): Made filename URL-decoded.
  14588. * src/Util.h (urldecode): New function.
  14589. * src/Util.cc (urldecode): New function.
  14590. To fix a bug that caused assertion failure in ares_strerror:
  14591. * src/NameResolver.cc (callback): Fixed the bug.
  14592. * Release 0.7.3
  14593. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14594. To add --seed-time and --seed-ratio command-line option:
  14595. * src/Option.h (getAsDouble): New function.
  14596. * src/Option.cc (getAsDouble): New function.
  14597. * src/SeedCheckCommand.h: New class.
  14598. * src/SeedCheckCommand.cc: New class.
  14599. * src/DownloadEngineFactory.cc
  14600. (SeedCheckCommand.h): Included.
  14601. (UnionSeedCriteria.h): Included.
  14602. (TimeSeedCriteria.h): Included.
  14603. (ShareRatioSeedCriteria.h): Included.
  14604. (newTorrentConsoleEngine): Added the processing of seed option.
  14605. * src/SeedCriteria.h: New class.
  14606. * src/ShareRatioSeedCriteria.h: New class.
  14607. * src/TimeSeedCriteria.h: New class.
  14608. * src/UnionSeedCriteria.h: New class.
  14609. * src/prefs.h
  14610. (PREF_SEED_TIME): New definition.
  14611. (PREF_SEED_RATIO): New definition.
  14612. * src/main.cc
  14613. (showUsage): Added --seed-time and --seed-ratio option.
  14614. (main): Added --seed-time and --seed-ratio option.
  14615. Made default log file name "/dev/null".
  14616. * src/SharedHandle.h
  14617. (SharedHandle): Copy constructor. Made it assignable from the
  14618. SharedHandle of the subclasses.
  14619. (operator=): Made it assignable from the SharedHandle of the
  14620. subclasses.
  14621. (getRefCount): New function.
  14622. To add notice log level and the switch to write log to stdout. This
  14623. switch is configurable per log level.
  14624. * src/Logger.h
  14625. (notice): New function.
  14626. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14627. constant.
  14628. * src/LogFactory.cc
  14629. (getInstance): The use of NullLogger was removed. A log message with
  14630. notice log level was made written to stdout along with log file.
  14631. * src/NullLogger.h
  14632. (notice): New function.
  14633. * src/SimpleLogger.h
  14634. (writeHeader): Added the 'file' argument.
  14635. (writeLog): Added the 'file' argument.
  14636. (writeFile): New function.
  14637. (stdoutField): New variable.
  14638. (SimpleLogger): Removed the default constructor.
  14639. (SimpleLogger): Made the default value of logfile 0.
  14640. (debug): Added 'virtual' keyword.
  14641. (info): Added 'virtual' keyword.
  14642. (warn): Added 'virtual' keyword.
  14643. (error): Added 'virtual' keyword.
  14644. (notice): New function.
  14645. (setStdout): New function.
  14646. * src/SimpleLogger.cc
  14647. (WRITE_LOG): Replaced writeLog with writeFile.
  14648. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14649. (SimpleLogger): Removed the default constructor.
  14650. (setStdout): New function.
  14651. (writeLog): Added the handling of NOTICE log level.
  14652. (writeFile): New function.
  14653. (notice): New function.
  14654. * src/TorrentMan.h: Updated doc.
  14655. * src/BitfieldMan.h: Updated doc.
  14656. * src/TrackerWatcherCommand.cc
  14657. (execute): Return true if error occurred in the request to the tracker
  14658. and halt is requested.
  14659. * src/TrackerUpdateCommand.cc
  14660. (execute): Return true if error occurred in the request to the tracker
  14661. and halt is requested.
  14662. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14663. DownloadEngine:
  14664. * src/TorrentConsoleDownloadEngine.h
  14665. (onSelectiveDownloadingCompletes): Removed.
  14666. * src/TorrentConsoleDownloadEngine.cc
  14667. (onSelectiveDownloadingCompletes): Removed.
  14668. * src/TorrentDownloadEngine.h
  14669. (onEndOfRun): Added 'virtual' keyword.
  14670. (afterEachIteration): Removed.
  14671. (onSelectiveDownloadingCompletes): Removed.
  14672. * src/TorrentDownloadEngine.cc
  14673. (onEndOfRun): Removed filenameFixed.
  14674. (afterEachIteration): Removed.
  14675. * src/TorrentMan.cc
  14676. (completePiece): Call onDownloadComplete here.
  14677. (onDownloadComplete): Added 2 log messages.
  14678. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14679. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14680. * src/NameResolver.h: Added the prototype declaration of callback().
  14681. To support c-ares library:
  14682. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14683. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14684. * src/FtpInitiateConnectionCommand.h:
  14685. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14686. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14687. * src/HttpInitiateConnectionCommand.h:
  14688. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14689. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14690. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14691. #1542285 by tizianomueller)
  14692. * src/HttpInitiateConnectionCommand.cc:
  14693. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14694. * src/FtpInitiateConnectionCommand.cc:
  14695. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14696. * src/DownloadEngine.h:
  14697. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14698. * src/DownloadEngine.cc:
  14699. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14700. To fix the bug that causes compilation failure with metalink-support
  14701. disabled(bug#1543587):
  14702. * src/main.cc: Fixed with the patch by tizianomueller.
  14703. * Release 0.7.2
  14704. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14705. * src/main.cc
  14706. (main): Added a message to inform users that aria2 is starting to
  14707. verify checksum.
  14708. * src/RequestInfo.cc
  14709. (printDownloadAbortMessage): Added a message to inform users that
  14710. transfer can be resumed.
  14711. * src/FeatureConfig.cc
  14712. (FEATURE_ASYNC_DNS): New definition.
  14713. (FeatureConfig): Added aysnc DNS entry.
  14714. To replace CommandUuid with Command* in SocketEntry and
  14715. NameResolverEntry:
  14716. * src/DownloadEngine.h
  14717. (CommandUuids): Removed.
  14718. (SocketEntry::commandUuid): Removed.
  14719. (SocketEntry::command): New variable.
  14720. (SocketEntry::SocketEntry): Updated.
  14721. (SocketEntry::operator==): Updated.
  14722. (NameResolverEntry::commandUuid): Removed.
  14723. (NameResolverEntry::command): New variable.
  14724. (NameResolverEntry::NameResolverEntry): Updated.
  14725. (NameResolverEntry::operator==): Updated.
  14726. (waitData): Changed the argument type.
  14727. (addSocketForReadCheck): Changed the argument type.
  14728. (deleteSocketForReadCheck): Changed the argument type.
  14729. (addSocketForWriteCheck): Changed the argument type.
  14730. (deleteSocketForWriteCheck): Changed the argument type.
  14731. (addNameResolverCheck): Changed the argument type.
  14732. (deleteNameResolverCheck): Changed the argument type.
  14733. * src/DownloadEngine.cc
  14734. (FindCommand): Removed.
  14735. (run): Removed activeUuid. Added activeCommands instead.
  14736. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14737. (AccumulateActiveCommand): New function object.
  14738. (waitData): Use AccumulateActiveCommand.
  14739. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14740. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14741. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14742. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14743. (addNameResolverCheck): Use Command instead of CommandUuid.
  14744. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14745. * src/AbstractCommand.cc
  14746. (disableReadCheckSocket): Updated according to the changes in
  14747. DownloadEngine.
  14748. (setReadCheckSocket): Updated according to the changes in
  14749. DownloadEngine.
  14750. (disableWriteCheckSocket): Updated according to the changes in
  14751. DownloadEngine.
  14752. (setWriteCheckSocket): Updated according to the changes in
  14753. DownloadEngine.
  14754. (setNameResolverCheck): Updated according to the changes in
  14755. DownloadEngine.
  14756. (disableNameResolverCheck): Updated according to the changes in
  14757. DownloadEngine.
  14758. * src/AbstractCommand.cc
  14759. (disableReadCheckSocket): Updated according to the changes in
  14760. DownloadEngine.
  14761. (setReadCheckSocket): Updated according to the changes in
  14762. DownloadEngine.
  14763. (disableWriteCheckSocket): Updated according to the changes in
  14764. DownloadEngine.
  14765. (setWriteCheckSocket): Updated according to the changes in
  14766. DownloadEngine.
  14767. * release 0.7.1
  14768. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14769. To handle the case where some BitTorrent tracker requires all letters
  14770. except for [A-Za-z0-9] is URL encoded.
  14771. * src/Util.h
  14772. (torrentUrlencode): New function.
  14773. * src/Util.cc
  14774. (ctype.h): Included.
  14775. (torrentUrlencode): New function.
  14776. * src/TrackerWatcherCommand.cc
  14777. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14778. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14779. To add asynchronous DNS support(libares):
  14780. * src/AbstractCommand.h
  14781. (setNameResolverCheck): New function.
  14782. (disableNameResolverCheck): New function
  14783. (resolveHostname): New function.
  14784. * src/AbstractCommand.cc
  14785. (setNameResolverCheck): New function.
  14786. (disableNameResolverCheck): New function
  14787. (resolveHostname): New function.
  14788. * src/FtpInitiateConnectionCommand.h
  14789. (nameResolver): New function.
  14790. * src/FtpInitiateConnectionCommand.cc
  14791. (Util.h): Included.
  14792. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14793. disableWriteCheckSocket.
  14794. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14795. (executeInternal): Added async DNS support.
  14796. * src/HttpInitiateConnectionCommand.h
  14797. (nameResolver): New function.
  14798. * src/HttpInitiateConnectionCommand.cc
  14799. (DlRetryEx.h): Included.
  14800. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14801. disableWriteCheckSocket.
  14802. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14803. (executeInternal): Added async DNS support.
  14804. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14805. by extern "C" declaration.
  14806. * src/NameResolver.cc: New class.
  14807. * src/Util.h:
  14808. (isNumberAndDotsNotation): New function
  14809. * src/Util.cc
  14810. (isNumberAndDotsNotation): New function.
  14811. * src/DownloadEngine.h
  14812. (NameResolver.h): Included.
  14813. (NameResolverEntry): New class.
  14814. (NameResolverEntries): New type definition.
  14815. (addNameResolverCheck): New function.
  14816. (deleteNameResolverCheck): New function.
  14817. * src/DownloadEngine.cc
  14818. (run): Initialize cp with 0.
  14819. (SetDescriptor::operator()): Added for NameResolverEntry.
  14820. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14821. (waitData): Check nameResolver entries.
  14822. (updateFdSet): Update fds in nameResolver entries.
  14823. (addNameResolverCheck): New function.
  14824. (deleteNameResolverCheck): new function.
  14825. * src/PeerInteractionCommand.cc
  14826. (executeInternal): Fixed wrong socket handling.
  14827. * src/main.cc
  14828. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14829. * src/Util.cc
  14830. (fileChecksum): Removed the call to ctx.digestReset().
  14831. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14832. * po/ru.po: Azamat sent me Russian translation.
  14833. * src/FtpNegotiateCommand.cc
  14834. (recvGreeting): Call disableWriteCheckSocket just after
  14835. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14836. (recvRetr): Recognized status code 125 as a acceptable response code.
  14837. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14838. case-insesitive filesystem(BUG#1531057).
  14839. * src/Time.h: Renamed as TimeA2.h.
  14840. * src/Time.cc: Renamed as TimeA2.cc.
  14841. * src/TimeA2.h: New class.
  14842. * src/TimeA2.cc: New class.
  14843. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14844. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14845. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14846. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14847. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14848. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14849. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14850. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14851. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14852. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14853. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14854. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14855. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14856. * release 0.7.0
  14857. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14858. * src/PeerChokeCommand.h
  14859. (PeerChokeCommand): Rearranged the arguments.
  14860. * src/PeerChokeCommand.cc
  14861. (PeerChokeCommand): Rearranged the arguments.
  14862. * src/MetalinkEntry.h
  14863. (Checksum.h): Included.
  14864. (md5): Removed.
  14865. (sha1): Removed.
  14866. (checksum): New variable.
  14867. (operator=): Updated.
  14868. (check): Removed.
  14869. * src/prefs.h
  14870. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14871. (PREF_FOLLOW_TORRENT): New definition.
  14872. (PREF_SELECT_FILE): New definition.
  14873. (PREF_FOLLOW_METALINK): New definition.
  14874. * src/MetalinkResource.h
  14875. (TYPE_HTTPS): Added to enum TYPE.
  14876. * src/TorrentMan.cc
  14877. (~TorrentMan): Rewritten.
  14878. * src/MultiDiskWriter.cc
  14879. (MultiDiskAdaptor): Updated according to the changes in
  14880. MessageDigestContext.
  14881. (~MultiDiskAdaptor): Updated according to the changes in
  14882. MessageDigestContext.
  14883. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14884. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14885. * src/Util.h
  14886. (fileChecksum): Updated according to the changes in
  14887. MessageDigestContext.
  14888. * src/Util.cc
  14889. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14890. (fileChecksum): Updated according to the changes in
  14891. MessageDigestContext.
  14892. * src/messageDigest.h: Rewritten.
  14893. * src/MetalinkEntry.cc
  14894. (check): Removed.
  14895. (Supported): Updated.
  14896. (dropUnsupportedResource): Fixed a memory leak.
  14897. * src/ShaVisitor.cc
  14898. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14899. (~ShaVisitor): Updated according to the changes in
  14900. MessageDigestContext.
  14901. (visit): Updated according to the changes in MessageDigestContext.
  14902. * src/main.cc
  14903. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14904. command-line option added.
  14905. * src/DownloadEngine.h
  14906. (SocketEntry): New class.
  14907. (SocketEntries): New definition.
  14908. (PairFind): Removed.
  14909. (SockCmdMap): Removed.
  14910. * src/DownloadEngine.cc
  14911. (DownloadEngine): Rewritten.
  14912. (~DownloadEngine): Rewritten.
  14913. (run): Renamed activeCommandUuids as activeUuids.
  14914. (SetDescriptor): Rewritten.
  14915. (AccumulateActiveCommandUuid): Removed.
  14916. (AccumulateActiveUuid): New function object.
  14917. (waitData): Rewritten.
  14918. (updateFdSet): Rewritten.
  14919. (addSocket): Rewritten.
  14920. (deleteSocket): Rewritten.
  14921. (addSocketForReadCheck): Rewritten.
  14922. (deleteSocketForReadCheck): Rewritten.
  14923. (addSocketForWriteCheck): Rewritten.
  14924. (deleteSocketForWriteCheck): Rewritten.
  14925. * src/Xml2MetalinkProcessor.cc
  14926. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14927. * src/DownloadCommand.cc
  14928. (executeInternal): Added the check routine for lowest speed limit.
  14929. * src/AbstractDiskWriter.cc
  14930. (AbstractDiskWriter): Updated according to the changes in
  14931. MessageDigestContext.
  14932. (~AbstractDiskWriter): Updated according to the changes in
  14933. MessageDigestContext.
  14934. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14935. * src/RequestInfo.h: New class.
  14936. * src/UrlRequestInfo.h: New class.
  14937. * src/UrlRequestInfo.cc: New class.
  14938. * src/TorrentRequestInfo.h: New class.
  14939. * src/TorrentRequestInfo.cc: New class.
  14940. * src/MetalinkRequestInfo.h: New class.
  14941. * src/MetalinkRequestInfo.cc: New class.
  14942. * src/Checksum.h: New class.
  14943. * src/DownloadEngineFactory.h: New class.
  14944. * src/DownloadEngineFactory.cc: New class.
  14945. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14946. * src/Option.h
  14947. (getAsBool): New function.
  14948. * src/Option.cc
  14949. (prefs.h): Included.
  14950. (defined): 0-length value is now recognized as undefined.
  14951. (getAsInt): Rewritten.
  14952. (getAsLLInt): Rewritten.
  14953. (getAsBool): New function.
  14954. * src/FeatureConfig.h: Rewritten.
  14955. * src/FeatureConfig.cc: Rewritten.
  14956. * src/prefs.h
  14957. (PREF_STDOUT_LOG): New definition.
  14958. (PREF_LOG): New definition.
  14959. (PREF_DIR): New definition.
  14960. (PREF_OUT): New definition.
  14961. (PREF_SPLIT): New definition.
  14962. (PREF_DAEMON): New definition.
  14963. (PREF_REFERER): New definition.
  14964. (PREF_TORRENT_FILE): New definition.
  14965. (PREF_LISTEN_PORT): New definition.
  14966. (PREF_METALINK_FILE): New definition.
  14967. (PREF_METALINK_VERSION): New definition.
  14968. (PREF_METALINK_LANGUAGE): New definition.
  14969. (PREF_METALINK_OS): New definition.
  14970. (PREF_METALINK_SERVERS): New definition.
  14971. * src/main.cc
  14972. (main): Following command-line parameters are now put into Option
  14973. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14974. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14975. metalinkLanguage, metalinkOs, metalinkServers
  14976. To fix the bug that aria2 can not handle http response header properly.
  14977. * src/HttpHeader.cc
  14978. (put): Made name lowercased.
  14979. (defined): Made name lowercased.
  14980. (getFirst): Made name lowercased.
  14981. (get): Made name lowercased.
  14982. (getFirstAsInt): Rewritten.
  14983. (getFirstAsLLInt): Rewritten.
  14984. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14985. * src/TorrentMan.h:
  14986. (advertisePiece): Updated doc.
  14987. (getAdvertisedPieceIndexes): Updated doc.
  14988. (removeAdvertisedPiece); New function.
  14989. * src/TorrentMan.cc
  14990. (FindElapsedHave): New function object.
  14991. (removeAdvertisedPiece): New function.
  14992. * src/HaveEraseCommand.h: New class.
  14993. * src/HaveEraseCommand.cc: New class.
  14994. * src/FeatureConfig.h: New class.
  14995. * src/FeatureConfig.cc: New class.
  14996. * src/Request.h
  14997. (defaultPorts): Removed.
  14998. * src/Request.cc
  14999. (FeatureConfig.h): Included.
  15000. (Request): Removed the statements related to defaultPorts.
  15001. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15002. A default port number is now retrieved from FeatureConfig.
  15003. * src/main.cc
  15004. (HaveEraseCommand.h): Included.
  15005. (showVersion): Added the output of feature list.
  15006. (main): Added HaveEraseCommand to command queue in BitTorrent
  15007. downloading.
  15008. * src/PeerInteractionCommand.h
  15009. (chokeCheckPoint): Commented out.
  15010. (periodicExecPoint): New variable.
  15011. * src/PeerInteractionCommand.cc
  15012. (executeInternal): Following methods are now called in at least every
  15013. 0.5 seconds to reduce CPU usage:
  15014. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15015. checkHave(), sendKeepAlive().
  15016. (checkLongTimePeerChoking): Commented out.
  15017. * src/BitfieldMan.h
  15018. (getNthBitIndex): Changed the method signature.
  15019. (getMissingIndexRandomly): Changed the method signature.
  15020. * src/BitfieldMan.cc
  15021. (getNthBitIndex): Rewritten
  15022. (getMissingIndexRandomly): Rewritten.
  15023. (hasMissingPiece): Rewritten.
  15024. (getMissingIndex): Refactored.
  15025. (getMissingUnusedIndex); Refactored.
  15026. (getMissingIndex): Refactored.
  15027. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15028. * src/PeerMessage.h
  15029. (Piece.h): Included.
  15030. (SharedHandle.h): Included.
  15031. (invalidate): New variable.
  15032. (uploading): New variable.
  15033. (isInvalidate): New function.
  15034. (isUploading): New function.
  15035. (onPush): New function.
  15036. (onChoked): New function.
  15037. (onCanceled): New function.
  15038. (onAbortPiece): New function.
  15039. (PeerMessageHandle): New type definition.
  15040. * src/PeerMessage.cc
  15041. (PeerMessage): Added the initialization for invalidate and uploading.
  15042. * src/CancelMessage.h
  15043. (CancelMessage): Rewritten.
  15044. * src/RejectMessage.h
  15045. (RejectMessage): Rewritten.
  15046. * src/Metalinker.h
  15047. (operator=): Defined.
  15048. * src/MetaEntry.h
  15049. (operator=): Defined.
  15050. * src/MetalinkResource.h
  15051. (operator=): Defined.
  15052. * src/AllowedFastMessage.h
  15053. (AllowedFastMessage): Rewritten.
  15054. * src/HandshakeMessage.h
  15055. (HandshakeMessage): New function(overload).
  15056. * src/HandshakeMessage.cc
  15057. (HandshakeMessage): Rewritten.
  15058. (init): New function.
  15059. * src/HaveMessage.h
  15060. (HaveMessage): Rewritten.
  15061. * src/Time.h
  15062. (operator=): Defined the function body here.
  15063. * src/Time.cc
  15064. (operator=): Removed.
  15065. * src/SocketCore.h
  15066. (operator==): Defined here.
  15067. (operator!=): Defined here.
  15068. (operator<): Defined here.
  15069. * src/SocketCore.cc
  15070. (operator==): Removed.
  15071. (operator<): Removed.
  15072. * src/BitfieldMan.h
  15073. (operator=): Defined the function body here.
  15074. * src/BitfieldMan.cc
  15075. (operator=): Removed.
  15076. * src/TorrentMan.h
  15077. (deleteErrorPeer): Removed.
  15078. (deleteUnusedPeer); New function.
  15079. * src/TorrentMan.cc
  15080. (addPeer): Call deleteUnusedPeer.
  15081. (deleteErrorPeer): Removed.
  15082. (deleteUnusedPeer): New function.
  15083. * src/PeerAbstractCommand.h
  15084. (setNoCheck): New function.
  15085. (noCheck): New variable.
  15086. * src/PeerAbstractCommand.cc
  15087. (PeerAbstractCommand): Added the initialization of noCheck.
  15088. (execute): Added a check for noCheck.
  15089. (setNoCheck): New function.
  15090. * src/Util.h
  15091. (stdio.h): Included.
  15092. * src/Util.cc
  15093. (unistd.h): Included.
  15094. * src/DefaultDiskWriter.cc
  15095. (unistd.h): Included.
  15096. * src/Peer.h
  15097. (operator==): Defined the function body here.
  15098. (operator!=): Defined the function body here.
  15099. * src/Peer.cc
  15100. (operator==): Removed.
  15101. (operator!=): Removed.
  15102. * src/Piece.h
  15103. (Piece): Defined the function body here(copy constructor).
  15104. (operator=): Defined the function body here.
  15105. (operator==): Defined the function body here.
  15106. * src/Piece.cc
  15107. (Piece): Removed(copy constructor).
  15108. (operator=): Removed.
  15109. (operator==): Removed.
  15110. * src/PeerMessageUtil.h
  15111. (ChokeMessage.h): Removed.
  15112. (UnchokeMessage.h): Removed.
  15113. (InterestedMessage.h): Removed.
  15114. (NotInterestedMessage.h): Removed.
  15115. (HaveMessage.h): Removed.
  15116. (BitfieldMessage.h): Removed.
  15117. (RequestMessage.h): Removed.
  15118. (CancelMessage.h): Removed.
  15119. (PieceMessage.h): Removed.
  15120. (HandshakeMessage.h): Removed.
  15121. (KeepAliveMessage.h): Removed.
  15122. (PortMessage.h): Removed.
  15123. (HaveAllMessage.h): Removed.
  15124. (HaveNoneMessage.h): Removed.
  15125. (PeerConnection.h): Removed.
  15126. (HandshakeMessage.h): Included.
  15127. * src/BitfieldMessage.h
  15128. (init): New function.
  15129. (BitfieldMessage): Rewritten.
  15130. (BitfieldMessage): New function(overload).
  15131. * src/RequestSlot.h
  15132. (operator=): Defined the function body here.
  15133. (operator==): Defined the function body here.
  15134. * src/RequestSlot.cc
  15135. (operator=): Removed.
  15136. (operator==): Removed.
  15137. To remove the dependency on the PeerMessage subclass from
  15138. PeerInteraction:
  15139. * src/PeerMessageFactory.h: New class.
  15140. * src/PeerMessageFactory.cc: New class.
  15141. * src/SimplePeerMessage.cc
  15142. (send): If invalidate is true then do nothing.
  15143. * src/PeerInteractionCommand.cc
  15144. (HandshakeMessage.h): Included.
  15145. (KeepAliveMessage.h): Included.
  15146. (ChokeMessage.h): Included.
  15147. (UnchokeMessage.h): Included.
  15148. (HaveMessage.h): Included.
  15149. (executeInternal): Call setNoCheck().
  15150. Removed setWriteCheckSocket(socket).
  15151. * src/PeerInteraction.h
  15152. (ChokeMessage.h): Removed.
  15153. (UnchokeMessage.h): Removed.
  15154. (InterestedMessage.h): Removed.
  15155. (NotInterestedMessage.h): Removed.
  15156. (HaveMessage.h): Removed.
  15157. (BitfieldMessage.h): Removed.
  15158. (RequestMessage.h): Removed.
  15159. (CancelMessage.h): Removed.
  15160. (PieceMessage.h): Removed.
  15161. (HandshakeMessage.h): Removed.
  15162. (KeepAliveMessage.h): Removed.
  15163. (PortMessage.h): Removed.
  15164. (HaveAllMessage.h): Removed.
  15165. (HaveNoneMessage.h): Removed.
  15166. (RejectMessage.h): Removed.
  15167. (AllowedFastMessage.h): Removed.
  15168. (SuggestPieceMessage.h): Removed.
  15169. (PeerMessageFactory.h): Included.
  15170. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15171. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15172. (PeerMessageFactory): New variable.
  15173. (createPeerMessage): Removed.
  15174. (createHandshakeMessage): Removed.
  15175. (setPeerMessageCommonProperty): Removed.
  15176. (addRequestSlot): New function.
  15177. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15178. (getPeerMessageFactory): New function.
  15179. (createRequestMessage): Removed.
  15180. (createCancelMessage): Removed.
  15181. (createPieceMessage): Removed.
  15182. (createHaveMessage): Removed.
  15183. (createChokeMessage): Removed.
  15184. (createUnchokeMessage): Removed.
  15185. (createInterestedMessage): Removed.
  15186. (createNotInterestedMessage): Removed.
  15187. (createBitfieldMessage): Removed.
  15188. (createKeepAliveMessage): Removed.
  15189. (createHaveAllMessage): Removed.
  15190. (createHaveNoneMessage): Removed.
  15191. (createRejectMessage): Removed.
  15192. (createAllowedFastMessage): Removed.
  15193. * src/PeerInteraction.cc
  15194. (PeerInteraction): Allocate PeerMessageFactory here.
  15195. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15196. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15197. PieceMessage::ID.
  15198. (addMessage): Simplified by using PeerMessage::onPush().
  15199. (addRequestSlot): New function.
  15200. (rejectAllPieceMessageInQueue): Simplified by using
  15201. PeerMessage::onChoked().
  15202. (rejectPieceMessageInQueue): Simplified by using
  15203. PeerMessage::onCanceled().
  15204. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15205. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15206. (createHandshakeMessage): Removed.
  15207. (createPeerMessage): Removed.
  15208. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15209. (setPeerMessageCommonProperty): Removed.
  15210. (createRequestMessage): Removed.
  15211. (createCancelMessage): Removed.
  15212. (createPieceMessage): Removed.
  15213. (createHaveMessage): Removed.
  15214. (createChokeMessage): Removed.
  15215. (createUnchokeMessage): Removed.
  15216. (createInterestedMessage): Removed.
  15217. (createNotInterestedMessage): Removed.
  15218. (createBitfieldMessage): Removed.
  15219. (createKeepAliveMessage): Removed.
  15220. (createHaveAllMessage): Removed.
  15221. (createHaveNoneMessage): Removed.
  15222. (createRejectMessage): Removed.
  15223. (createAllowedFastMessage): Removed.
  15224. * src/PieceMessage.h
  15225. (createRejectMessage): New function.
  15226. (PieceMessage): Rewritten.
  15227. (onChoked): New function.
  15228. (onCanceled): New function.
  15229. * src/PieceMessage.cc
  15230. (send): If invalidate is true then do nothing, just return.
  15231. (createRejectMessage): New function.
  15232. (onChoked): New function.
  15233. (onCanceled): New function.
  15234. * src/RequestMessage.h
  15235. (RequestMessage): Rewritten.
  15236. (onPush): New function.
  15237. (onAbortPiece): New function.
  15238. * src/RequestMessage.cc
  15239. (onPush): New function.
  15240. (onAbortPiece): New function.
  15241. Update fd_set when a socket is added or deleted in order to improve
  15242. performance:
  15243. * src/DownloadEngine.h
  15244. (rfdset): New variable.
  15245. (wfdset): New variable.
  15246. (updateFdSet): New function.
  15247. * src/DownloadEngine.cc
  15248. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15249. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15250. (waitData): Copy rfdset and wfdset.
  15251. (updateFdSet): New function.
  15252. (addSocket): Call updateFdSet.
  15253. (deleteSocket): Call updateFdSet.
  15254. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15255. To add the support for Metalink3.0 backward compatible links:
  15256. * src/Request.h
  15257. (SAFE_CHARS): Added '#'.
  15258. (METALINK_MARK): New definition.
  15259. * src/Request.cc
  15260. (parseUrl): Added the support for Metalink3.0 backward compatible
  15261. links.
  15262. etc
  15263. * src/PeerInteraction.cc
  15264. (MsgPushBack): Removed.
  15265. (sendMessages): Use STL copy and back_inserter.
  15266. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15267. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15268. * src/TorrentMan.h
  15269. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15270. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15271. * src/SharedHandle.h: New class.
  15272. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15273. * src/HttpResponseCommand.h
  15274. (HttpResponseCommand): Wrapped Socket.
  15275. * src/SocketCore.h
  15276. (operator==): New function.
  15277. (operator!=): New function.
  15278. (operator<): New function.
  15279. (getSockfd): New function.
  15280. (isOpen): New function.
  15281. (writeData): New function.
  15282. * src/SocketCore.cc
  15283. (operator==): New function.
  15284. (operator!=): New function.
  15285. (operator<): New function.
  15286. * src/AbstractCommand.h
  15287. (socket): Changed its type to SocketHandle.
  15288. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15289. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15290. (disableReadCheckSocket): New function.
  15291. (disableWriteCheckSocket): New function.
  15292. (readCheckTarget): Changed its type to SocketHandle.
  15293. (writeCheckTarget): Changed its type to SocketHandle.
  15294. (AbstractCommand): Replaced Socket with SocketHandle.
  15295. * src/AbstractCommand.cc
  15296. (AbstractCommand): Replaced Socket with SocketHandle.
  15297. (~AbstractCommand): Removed the deallocation for Socket object.
  15298. (disableReadCheckSocket): New function.
  15299. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15300. (disableWriteCheckSocket): New function.
  15301. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15302. * src/HttpDownloadCommand.cc
  15303. (DownloadCommand): Replaced Socket with SocketHandle.
  15304. * src/PeerAbstractCommand.h
  15305. (socket): Changed its type to SocketHandle.
  15306. (peer): Changed its type to PeerHandle.
  15307. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15308. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15309. (disableReadCheckSocket): New function.
  15310. (disableWriteCheckSocket): New function.
  15311. (readCheckTarget): Changed its type to SocketHandle.
  15312. (writeCheckTarget): Changed its type to SocketHandle.
  15313. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15314. Replaced Peer with PeerHandle.
  15315. * src/HttpRequestCommand.cc
  15316. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15317. Use disableReadCheckSocket.
  15318. * src/PeerInitiateConnectionCommand.h
  15319. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15320. * src/PeerChokeCommand.cc
  15321. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15322. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15323. (execute): Use PeerHandle.
  15324. * src/PeerConnection.h
  15325. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15326. (socket): Changed its type to SocketHandle.
  15327. (PeerConnection): Replaced Socket with SocketHandle.
  15328. * src/PeerConnection.cc
  15329. (PeerConnection): Replaced Socket with SocketHandle.
  15330. * src/PeerInteractionCommand.h
  15331. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15332. Replaced Peer with PeerHandle.
  15333. * src/PeerInteractionCommand.cc
  15334. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15335. Replaced Peer with PeerHandle.
  15336. (executeInternal): Use disableWriteCheckSocket.
  15337. Use HandshakeMessageHandle.
  15338. (receiveMessages): Use PeerMessageHandle.
  15339. (prepareForNextPeer): Use PeerHandle.
  15340. * src/HttpProxyRequestCommand.h
  15341. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15342. * src/HttpResponseCommand.cc
  15343. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15344. * src/TorrentMan.cc
  15345. (nullPeer): Added external reference.
  15346. (~TorrentMan): Removed the deallocation of the elements of peers.
  15347. (addPeer): Rewritten.
  15348. (isPeerAvailable): Use nullPeer.
  15349. (deleteOldpeers): Replaced with deleteErrorPeer.
  15350. (deleteErrorPeer): New function.
  15351. (getPeer): Use PeerHandle and nullPeer.
  15352. (hasMissingPiece): Replaced Peer with PeerHandle.
  15353. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15354. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15355. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15356. (getMissingPiece): Replaced Peer with PeerHandle.
  15357. * src/FtpNegotiateCommand.cc
  15358. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15359. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15360. (recvGreeting): Use disableWriteCheckSocket.
  15361. (recvPasv): Removed the allocation of Socket.
  15362. Use disableReadCheckSocket.
  15363. (sendRestPasv): Use disableWriteCheckSocket.
  15364. (recvRetr): Changed assertion.
  15365. * src/PeerInteraction.h
  15366. (SharedHandle.h): Included SharedHandle.h.
  15367. (PeerMessageHandle): New type definition.
  15368. (HandshakeMessageHandle): New type definition.
  15369. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15370. (peer): Changed its type to PeerHandle.
  15371. (createHandshakeMessage): Replaced HandshakeMessage with
  15372. HandshakeMessageHandle.
  15373. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15374. (PeerInteraction): Replaced Peer with PeerHandle.
  15375. Replaced Socket with SocketHandle.
  15376. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15377. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15378. (receiveHandshake): Replaced HandshakeMessage with
  15379. HandshakeMessageHandle.
  15380. * src/PeerInteraction.cc
  15381. (PeerInteraction): Replaced Peer with PeerHandle.
  15382. Replaced Socket with SocketHandle.
  15383. (~PeerInteraction): Removed the deallocation of the elements of
  15384. messageQueue.
  15385. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15386. (isSendingMessageInProgress): Replaced PeerMessage with
  15387. PeerMessageHandle.
  15388. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15389. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15390. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15391. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15392. (abortPiece): Use PeerMessageHandle.
  15393. (receiveHandshake): Replaced HandshakeMessage with
  15394. HandshakeMessageHandle. Removed try-catch block.
  15395. (createHandshakeMessage): Replaced HandshakeMessage with
  15396. HandshakeMessageHandle.
  15397. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15398. Removed try-catch block.
  15399. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15400. * src/HttpProxyResponseCommand.cc
  15401. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15402. * src/FtpTunnelResponseCommand.h
  15403. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15404. * src/HttpConnection.cc
  15405. (HttpConnection): Replaced Socket with SocketHandle.
  15406. * src/PeerAbstractCommand.cc
  15407. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15408. (~PeerAbstractCommand): Removed the deallocation of socket.
  15409. Use disableReadCheckSocket, disableWriteCheckSocket.
  15410. (disableReadCheckSocket): New function.
  15411. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15412. (disableWriteCheckSocket): New function.
  15413. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15414. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15415. * src/FtpTunnelRequestCommand.cc
  15416. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15417. (~FtpTunnelRequestCommand): Corrected indentation.
  15418. * src/DownloadCommand.h
  15419. (DownloadCommand): Replaced Socket with SocketHandle.
  15420. * src/PeerListenCommand.cc
  15421. (PeerListenCommand): Removed the initialization of socket.
  15422. (~PeerListenCommand): Removed the deallocation of socket.
  15423. (bindPort): Use SocketHandle.
  15424. (execute): Use SocketHandle and PeerHandle.
  15425. * src/FtpDowndloadCommand.cc
  15426. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15427. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15428. * src/main.cc
  15429. (main): Corrected indentation.
  15430. * src/HttpInitiateConnectionCommand.cc
  15431. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15432. (executeInternal): Removed the allocation of socket.
  15433. * src/HttpRequestCommand.h
  15434. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15435. * src/FtpNegotiationCommand.h
  15436. (dataSocket): Changed its type to SocketHandle.
  15437. (serverSocket): Changed its type to SocketHandle.
  15438. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15439. * src/TorrentMan.h
  15440. (MAX_PEER_UPDATE): Removed.
  15441. (MAX_PEERS): New definition.
  15442. (Peers): The element is now of type PeerHandle.
  15443. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15444. (getPeer): Replaced Peer with PeerHandle.
  15445. (deleteOldErrorPeers): Removed.
  15446. (deleteErrorPeer): New function.
  15447. (hasMissingPiece): Replaced Peer with PeerHandle.
  15448. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15449. (getMissingPiece): Replaced Peer with PeerHandle.
  15450. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15451. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15452. (addActivePeer): Replaced Peer with PeerHandle.
  15453. (deleteActivePeer): Replaced Peer with PeerHandle.
  15454. Added a check for the return value of find.
  15455. * src/FtpTunnelResponseCommand.cc
  15456. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15457. * src/FtpInitiateConnectionCommand.cc
  15458. (executeInternal): Removed the allocation of socket.
  15459. * src/DownloadEngine.h
  15460. (Sockets): An element is now of type SocketHandle.
  15461. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15462. (CommandUuids): New type definition.
  15463. (rsockets): Changed its type to SockCmdMap.
  15464. (wsockets): Changed its type to SockCmdMap.
  15465. (addSocket): Rewritten.
  15466. (deleteSocket): Rewritten.
  15467. (addSocketForReadCheck): Rewritten.
  15468. (deleteSocketForReadCheck): Rewritten.
  15469. (addSocketForWriteCheck): Rewritten.
  15470. (deleteSocketForWriteCheck): Rewritten.
  15471. (PairFind): New template class.
  15472. * src/HttpDownloadCommand.h
  15473. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15474. * src/FtpConnection.cc
  15475. (FtpConnection): Replaced Socket with SocketHandle.
  15476. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15477. block.
  15478. * src/InitiateConnectionCommandFactory.cc
  15479. (DlAbortEx.h): Included DlAbortEx.h.
  15480. (createInitiateConnectionCommand): Throw exception if the protocol of
  15481. requested URI is not supported.
  15482. * src/Peer.cc
  15483. (nullPeer): Changed its type to PeerHandle.
  15484. (operator==): New function.
  15485. (operator!=): New function.
  15486. * src/Peer.h
  15487. (SharedHandle.h): Included SharedHandle.h.
  15488. (operator==): New function.
  15489. (operator!=): New function.
  15490. (Peer): Added the default constructor.
  15491. Use resetStatus() to initialize member variables.
  15492. (nullPeer): Removed.
  15493. * src/TrackerUpdateCommand.cc
  15494. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15495. with MIN_PEERS.
  15496. * src/PeerListenCommand.h
  15497. (socket): Changed its type to SocketHandle.
  15498. * src/Command.h
  15499. (CommandUuid): New type definition.
  15500. (uuid): New variable.
  15501. (uuidGen): New variable.
  15502. (Command): Added the initialization of uuid.
  15503. (getUuid): New function.
  15504. * src/Socket.h
  15505. (Socket): Removed.
  15506. (SocketHandle): New type definition.
  15507. * src/DownloadEngine.h
  15508. (FindCommand): New function object.
  15509. (run): The portion of socket check was rewritten.
  15510. (SetDescriptor): New function object.
  15511. (AccumulateActiveCommandUuid): New function object.
  15512. (waitData): Rewritten.
  15513. (addSocket): Rewritten.
  15514. (deleteSocket): Rewritten.
  15515. (addSocketForReadCheck): Rewritten.
  15516. (addSocketForWriteCheck): Rewritten.
  15517. (deleteSocketForReadCheck): Rewritten.
  15518. (deleteSocketForWriteCheck): Rewritten.
  15519. * src/HttpProxyResponseCommand.h
  15520. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15521. * src/HttpConnection.h
  15522. (socket): Changed its type to SocketHandle.
  15523. (HttpConnection): Replaced Socket with SocketHandle.
  15524. * src/PeerInitiateConnectionCommand.cc
  15525. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15526. (executeInternal): Removed the allocation of socket.
  15527. (prepareForNextPeer): Use PeerHandle.
  15528. * src/PeerMessage.h
  15529. (peer): Changed its type to PeerHandle.
  15530. (getPeer): Replaced Peer with PeerHandle.
  15531. (setPeer): Replaced Peer with PeerHandle.
  15532. * src/DownloadCommand.cc
  15533. (DownloadCommand): Replaced Socket with SocketHandle.
  15534. * src/FtpConnection.h
  15535. (socket): Changed its type to SocketHandle.
  15536. (FtpConnection): Replaced Socket with SocketHandle.
  15537. (sendPort); Replaced Socket with SocketHandle.
  15538. * src/FtpDowndloadCommand.h
  15539. (ctrlSocket): Changed its type to SocketHandle.
  15540. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15541. * src/HttpProxyRequestCommand.cc
  15542. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15543. * src/FtpTunnelRequestCommand.h
  15544. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15545. etc
  15546. * src/PeerChokeCommand.h
  15547. (setAllPeerChoked): Removed.
  15548. (setAllPeerResetDelta): Removed.
  15549. * src/PeerChokeCommand.cc
  15550. (setAllPeerChoked): Removed.
  15551. (ChokePeer): New function object.
  15552. (setAllPeerResetDelta): Removed.
  15553. (ResetDelta): New function object.
  15554. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15555. (execute): Show download speed when the local node is a seeder.
  15556. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15557. using STL.
  15558. * src/TrackerWatcherCommand.h
  15559. (MIN_PEERS): Removed.
  15560. * src/TorrentMan.cc
  15561. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15562. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15563. To fix the bug that .aria2 file is not saved if downloading is stopped
  15564. by the errors:it results that aria2 can not resume downloading:
  15565. * src/main.cc
  15566. (normalDownload): Added the call to save().
  15567. (main): Added the deletion of the elements in 'reserved'.
  15568. To fix log:
  15569. * src/PeerInteraction.cc
  15570. (receiveHandshake): Fixed log.
  15571. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15572. To improve download performance in BitTorrent:
  15573. * src/TorrentMan.cc
  15574. (getPeer): Check the number of connections. Return nullPeer if
  15575. it is greater than MAX_PEER_UPDATE.
  15576. This code was originally here, but was removed in 0.5.1.
  15577. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15578. To improve the conditional compilation:
  15579. * src/MultiDiskWriter.h:
  15580. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15581. * src/MultiDiskWriter.cc:
  15582. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15583. * src/Util.h:
  15584. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15585. Added ENABLE_BITTORRENT around computeFastSet().
  15586. * src/Util.cc:
  15587. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15588. Added ENABLE_BITTORRENT around computeFastSet().
  15589. * src/messageDigest.h:
  15590. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15591. * src/ShaVisitor.h:
  15592. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15593. * src/ShaVisitor.cc:
  15594. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15595. * src/main.cc:
  15596. Added ENABLE_BITTORRENT around includes and blocks related to
  15597. BitTorrent.
  15598. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15599. digest support is not available.
  15600. * src/AbstractDiskWriter.h:
  15601. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15602. * src/AbstractDiskWriter.cc:
  15603. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15604. * src/MetalinkEntry.cc
  15605. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15606. support is not available.
  15607. To add command-line options for Metalink:
  15608. * src/main.cc:
  15609. Added metalink-version, metalink-language, metalink-os,
  15610. follow-metalink.
  15611. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15612. * src/main.cc: Use these definition.
  15613. * Release 0.6.0
  15614. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15615. To add Metalink support(http/ftp only):
  15616. * src/AbstractCommand.h
  15617. (tryReserved): New function.
  15618. * src/AbstractCommand.cc
  15619. (execute): Call tryReserved().
  15620. (tryReserved): New function.
  15621. * src/Request.h
  15622. (Requests): New type definition.
  15623. * src/SegmentMan.h
  15624. (reserved): New variable.
  15625. * src/Util.h
  15626. (fileChecksum): New function.
  15627. (toUpper): New function.
  15628. (toLower): New function.
  15629. * src/Util.cc
  15630. (messageDigest.h): Included.
  15631. (trim): Trim \r\n\t.
  15632. (fileChecksum): New function.
  15633. (toUpper): New function.
  15634. (toLower): New function.
  15635. * src/main.cc
  15636. (normalDownload): New function.
  15637. (main): Added 2 command-line options: metalink-file,
  15638. metalink-connection. Their usage has not been written yet.
  15639. * src/MetalinkProcessor.h: New class.
  15640. * src/Xml2MetalinkProcessor.h: New class.
  15641. * src/Xml2MetalinkProcessor.cc: New class.
  15642. * src/MetalinkEntry.h: New class.
  15643. * src/MetalinkEntry.cc: New class.
  15644. * src/MetalinkResource.h: New class.
  15645. * src/MetalinkResource.cc: New class.
  15646. To add md5 message digest checking:
  15647. * src/messageDigest.h: Rewritten.
  15648. * src/MultiDiskWriter.cc: Updated according to the changes in
  15649. messageDigest.h.
  15650. * src/ShaVisitor.cc: Updated according to the changes in
  15651. messageDigest.h.
  15652. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15653. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15654. messageDigest.h.
  15655. To fix a bug that causes segfault when the payload length in peer
  15656. message is less than 0:
  15657. * src/PeerConnection.cc:
  15658. (receiveMessage): Fixed the bug.
  15659. * src/PeerMessageUtil.cc
  15660. (checkLength): Throw an exception if length is less than or equals to
  15661. 0.
  15662. To add new interfaces to Base64 encoding/decoding:
  15663. * src/Base64.h
  15664. (part_encode): Changed the method signature.
  15665. (encode): New function(overload).
  15666. (decode): New function(overload).
  15667. * src/Base64.cc
  15668. (part_encode): Rewritten.
  15669. (encode): Rewritten.
  15670. (encode): New function(overload).
  15671. To prevent a peer to download same piece if there is an error in
  15672. checksum:
  15673. * src/PieceMessage.cc
  15674. (receivedAction): Call peerInteraction->abortPiece().
  15675. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15676. To fix the bug that causes same have message is sent many times to
  15677. a single peer.
  15678. * src/Time.cc
  15679. (isNewer): Use Util::difftv().
  15680. * src/Util.cc
  15681. (difftv): Added a cast to (long long int).
  15682. * src/TorrentMan.cc
  15683. (advertisePiece): Use push_front.
  15684. (getAdvertisedPieceIndexes): A performance improvement was made.
  15685. To fix the bug that sends tracker requests without a sleep interval
  15686. when the number of connections is less than 15.
  15687. * src/TrackerWatcherCommand.cc
  15688. (execute): Now the number of connections is not a factor to decide
  15689. whether or not a tracker request should be sent or not.
  15690. * src/Time.h
  15691. (setTimeInSec): New function.
  15692. * src/Time.cc
  15693. (setTimeInSec): New function.
  15694. etc.
  15695. * src/ChokeMessage.cc
  15696. (receivedAction): Removed peer->snubbing = false
  15697. * src/PeerConnection.h
  15698. (receiveHandshake): Updated doc.
  15699. * src/TorrentMan.h
  15700. (getAdvertisedPieceIndexes): Updated the method signature.
  15701. * src/TorrentMan.cc
  15702. (getAdvertisedPieceIndexes): Updated the method signature.
  15703. * src/Time.h
  15704. (getTimeInMicros): Added a cast to (long long int).
  15705. (getTimeInMillis): Added a cast to (long long int).
  15706. * Release 0.5.2
  15707. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15708. To make a listening socket non-block:
  15709. * src/SocketCore.h
  15710. (setNonBlockingMode): New function.
  15711. * src/SocketCore.cc
  15712. (setNonBlockingMode): New function.
  15713. (beginListen): Added a call to setNonBlockingMode().
  15714. (acceptConnection): Call setNonBlockingMode().
  15715. (setBlockingMode): Updated.
  15716. To handle tracker's NAT-checking:
  15717. * src/PeerConnection.cc
  15718. (receiveHandshake): 'msg' param is filled with received data and
  15719. its length is assigned to 'length' param, even if all handshake
  15720. message is not yet received.
  15721. * src/PeerInteractionCommand.cc
  15722. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15723. a new peer connects to localhost.
  15724. A call to peerInteraction->sendHandshake() was removed because
  15725. it is called from peerInteraction->receiveHandshake(true).
  15726. * src/PeerInteraction.h
  15727. (quickReplied): New variable.
  15728. (receiveHandshake): Added an argument.
  15729. * src/PeerInteraction.cc
  15730. (PeerInteraction): Added the initialization of quickReplied.
  15731. (receiveHandshake): Send handshake message as soon as the info hash
  15732. in a handshake message from a peer is correct.
  15733. To change the random part of peer id and key parameter:
  15734. * src/TorrentMan.h
  15735. (key): New variable.
  15736. * src/TorrentMan.cc
  15737. (setupInternal1): Use Util::randomAlpha() to generate random part
  15738. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15739. key is also generated by Util::randomAlpha() and it is now 8 character
  15740. long.
  15741. * src/Util.h
  15742. (randomAlpha): New function.
  15743. * src/Util.cc
  15744. (randomAlpha): New function.
  15745. * src/TrackerWatcherCommand.cc
  15746. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15747. Added no_peer_id=1.
  15748. Set snubbing flag to false when a choke message is received from a
  15749. snubbed peer.
  15750. * src/ChokeMessage.cc
  15751. (receivedAction): Set snubbing flag to false.
  15752. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15753. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15754. * src/SimpleLogger.h (writeHeader): New function.
  15755. * src/SimpleLogger.cc (writeHeader): New function.
  15756. (writeLog): Fixed the bug that causes segfaults if exception message
  15757. contains an unescaped "%" character.
  15758. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15759. when a tracker request fails.
  15760. * src/Request.cc (parseUrl): Query string is now handled properly.
  15761. * Release 0.5.1
  15762. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15763. To add Time class which represents a specific instant in time and
  15764. its precision is microseconds. Time checking procedures were rewritten
  15765. using this object.
  15766. * src/Time.h: New class.
  15767. * src/Time.cc: New class.
  15768. * src/AbstractCommand.h
  15769. (updateCheckPoint): Removed.
  15770. (isTimeoutDetected): Removed.
  15771. (checkPoint): Changed the type to Time.
  15772. (timeout): New variable.
  15773. (setTimeout): New function.
  15774. * src/AbstractCommand.cc
  15775. (AbstractCommand): Removed the initialization of checkPoint.
  15776. Added the initialization of timeout.
  15777. (updateCheckPoint): Removed.
  15778. (isTimeoutDetected): Removed.
  15779. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15780. * src/PeerChokeCommand.h
  15781. (checkPoint): Changed the type to Time.
  15782. * src/PeerChokeCommand.cc
  15783. (PeerChokeCommand): Removed the initialization of checkPoint.
  15784. (execute): Rewritten using Time object.
  15785. * src/TrackerWatcherCommand.h
  15786. (checkPoint): Changed the type to Time.
  15787. * src/TrackerWatcherCommand.cc
  15788. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15789. (execute): Rewritten.
  15790. * src/ConsoleDownloadEngine.h
  15791. (cp): Changed the type to Time.
  15792. (startup): Changed the type to Time.
  15793. * src/ConsoleDownloadEngine.cc
  15794. (initStatistics): Use cp.reset(), startup.reset().
  15795. (calculateStatistics): Rewritten using Time object.
  15796. * src/PeerAbstractCommand.h
  15797. (updateCheckPoint): Removed.
  15798. (isTimeoutDetected): Removed.
  15799. (checkPoint): Changed the type to Time.
  15800. * src/PeerAbstractCommand.cc
  15801. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15802. (updateCheckPoint): Removed.
  15803. (isTimeoutDetected): Removed.
  15804. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15805. * src/PeerInteractionCommand.cc
  15806. (PeerInteractionCommand): Removed the initializations of struct
  15807. timeval variables.
  15808. * src/PeerInteractionCommand.h
  15809. (keepAliveCheckPoint): Changed the type to Time.
  15810. (chokeCheckPoint): Changed the type to Time.
  15811. (freqCheckPoint): Changed the type to Time.
  15812. (haveCheckTime): Changed the type to Time.
  15813. * src/PeerInteractionCommand.cc
  15814. (executeInternal): Rewritten using Time object.
  15815. (detectMessageFlooding): Rewritten using Time object.
  15816. (checkLongTimePeerChoking): Rewritten using Time object.
  15817. (sendKeepAlive): Rewritten using Time object.
  15818. (checkHave): Rewritten using Time object.
  15819. * src/SleepCommand.h
  15820. (checkPoint): Changed the type to Time.
  15821. * src/SleepCommand.cc
  15822. (SleepCommand): Removed the initialization of checkPoint.
  15823. (execute): Rewritten using Time object.
  15824. * src/TorrentAutoSaveCommand.h
  15825. (checkPoint): Changed the type to Time.
  15826. * src/TorrentAutoSaveCommand.cc
  15827. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15828. (execute): Rewritten.
  15829. * src/DownloadCommand.h
  15830. (sw): Changed the type to Time.
  15831. * src/DownloadCommand.cc
  15832. (DownloadCommand): Removed the initialization of sw.
  15833. (executeInternal): Rewritten.
  15834. * src/RequestSlot.h
  15835. (dispatchedTime): Changed the type to Time.
  15836. * src/RequestSlot.cc
  15837. (RequestSlot): Removed the call to setDispatchedTime().
  15838. (setDispatchedTime): Rewirtten.
  15839. (isTimeout): Rewritten.
  15840. (getLatencyInMillis): Rewritten.
  15841. * src/TorrentDownloadEngine.h
  15842. (cp): Changed the type to Time[2].
  15843. (startup): Changed the type to Time.
  15844. * src/TorrentDownloadEngine.cc
  15845. (initStatistics): Rewritten.
  15846. (calculateStatistics): Rewritten.
  15847. * src/DownloadEngine.cc
  15848. (run): Rewritten.
  15849. To detect all attempts to connect to the tracker are failed:
  15850. * src/AbstractCommand.cc
  15851. (execute): Increment e->segmentMan->errors if a command aborted.
  15852. * src/SegmentMan.h
  15853. (errors): New variable.
  15854. * src/SegmentMan.cc
  15855. (SegmentMan): Added the initialization of errors.
  15856. (init): Added the initialization of errors.
  15857. * src/TrackerWatcherCommand.cc
  15858. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15859. request was failed.
  15860. To handle snubbed peers:
  15861. * src/PeerChokeCommand.cc
  15862. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15863. (execute): Snubbed peers don't get unchoked.
  15864. * src/PeerInteraction.h
  15865. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15866. * src/PeerInteraction.cc
  15867. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15868. back the requested 16k block in 60 seconds.
  15869. * src/PieceMessage.cc
  15870. (receivedAction): A peer's snubbed state is cleard if it sends
  15871. the requested 16k block in 60 seconds.
  15872. * src/Peer.h
  15873. (snubbing): New variable.
  15874. * src/Peer.cc
  15875. (resetStatus): Added snubbed = false.
  15876. To fix the bug that causes have message is not sent:
  15877. * src/PeerInteractionCommand.cc
  15878. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15879. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15880. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15881. * src/TorrentMan.h
  15882. (HaveEntry): New class.
  15883. (advertisePiece): Rewritten.
  15884. (getAdvertisedPieceIndexes): Rewritten.
  15885. (Haves): Changed the type.
  15886. (getAdvertisedPieceIndexes): Added an argument.
  15887. Others:
  15888. * src/TorrentMan.h
  15889. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15890. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15891. * src/TorrentMan.cc
  15892. (getPeer): Don't check the number of connections here.
  15893. (setupInternal1): Changed peerId.
  15894. * src/PeerInteractionCommand.h
  15895. (KEEP_ALIVE_INTERVAL): New definition.
  15896. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15897. * src/main.cc
  15898. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15899. * src/DownloadEngine.h: Removed unnecessary header includes.
  15900. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15901. To fix the bug that causes segfaults if a tracker returns a zero-length
  15902. list as "peers":
  15903. * src/TrackerUpdateCommand.cc
  15904. (execute): Added a check to see wether the type of peers is Data*.
  15905. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15906. * Release 0.5.0
  15907. To fix compile issue with gcc3:
  15908. * src/CancelMessage.h
  15909. (ID): Renamed as ID_t
  15910. (ID_t): New enum.
  15911. * src/RejectMessage.h
  15912. (ID): Renamed as ID_t
  15913. (ID_t): New enum.
  15914. * src/SuggestPieceMessage.h
  15915. (ID): Renamed as ID_t
  15916. (ID_t): New enum.
  15917. * src/AllowedFastMessage.h
  15918. (ID): Renamed as ID_t
  15919. (ID_t): New enum.
  15920. * src/PortMessage.h
  15921. (ID): Renamed as ID_t
  15922. (ID_t): New enum.
  15923. * src/HaveNoneMessage.h
  15924. (ID): Renamed as ID_t
  15925. (ID_t): New enum.
  15926. * src/KeepAliveMessage.h
  15927. (ID): Renamed as ID_t
  15928. (ID_t): New enum.
  15929. * src/HaveAllMessage.h
  15930. (ID): Renamed as ID_t
  15931. (ID_t): New enum.
  15932. * src/UnchokeMessage.h
  15933. (ID): Renamed as ID_t
  15934. (ID_t): New enum.
  15935. * src/BitfieldMessage.h
  15936. (ID): Renamed as ID_t
  15937. (ID_t): New enum.
  15938. * src/PieceMessage.h
  15939. (ID): Renamed as ID_t
  15940. (ID_t): New enum.
  15941. * src/RequestMessage.h
  15942. (ID): Renamed as ID_t
  15943. (ID_t): New enum.
  15944. * src/NotInterestedMessage.h
  15945. (ID): Renamed as ID_t
  15946. (ID_t): New enum.
  15947. * src/ChokeMessage.h
  15948. (ID): Renamed as ID_t
  15949. (ID_t): New enum.
  15950. * src/InterestedMessage.h
  15951. (ID): Renamed as ID_t
  15952. (ID_t): New enum.
  15953. * src/HaveMessage.h
  15954. (ID): Renamed as ID_t
  15955. (ID_t): New enum.
  15956. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15957. * src/PeerAbstractCommand.h
  15958. (beforeSocketCheck): Removed.
  15959. * src/PeerAbstractCommand.cc
  15960. Modified in order to call executeInternal() even if socket check
  15961. and upload limit check fail.
  15962. * src/PeerInteractionCommand.h
  15963. (keepAlive): Removed.
  15964. (sendKeepAlive): New function.
  15965. (checkHave): New function.
  15966. (beforeSocketCheck): Removed.
  15967. * src/PeerInteractionCommand.cc
  15968. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15969. calls to checkHave() and sendKeepAlive().
  15970. (keepAlive): Renamed to sendKeepAlive().
  15971. (sendKeepAlive): New function.
  15972. (beforeSocketCheck): Removed.
  15973. (checkHave): New function.
  15974. * src/BitfieldMan.cc
  15975. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15976. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15977. 0.
  15978. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15979. * src/TorrentMan.h
  15980. (UsedPieces): Removed.
  15981. (Pieces): New type definition.
  15982. * src/Piece.h: Updated doc.
  15983. * src/Peer.h
  15984. (totalLength): Removed.
  15985. * src/Peer.cc
  15986. (updateLatency): Fixed the latency calculation.
  15987. * src/TorrentMan.cc
  15988. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15989. than or equal to MAX_PEER_LIST_SIZE.
  15990. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15991. then return false.
  15992. (deleteOldErrorPeers): Rewritten.
  15993. (deleteUsedPiece): Fixed the miss use of STL remove.
  15994. * src/PeerInteraction.h
  15995. (Pieces): Removed.
  15996. (deleteTimeoutRequestSlot): Removed.
  15997. (deleteCompletedRequestSlot): Removed.
  15998. (checkRequestSlot): New function.
  15999. * src/PeerInteraction.cc
  16000. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16001. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16002. (checkRequestSlot): New function.
  16003. * src/DownloadEngine.cc
  16004. (run): Clear activeSockets before calling waitData().
  16005. (waitData): Removed a call to activeSockets.clear().
  16006. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16007. To attempt to handle EINTR:
  16008. * src/SocketCore.cc
  16009. (isReadable): Added EINTR handling.
  16010. (isWritable): Added EINTR handling.
  16011. To improve the performance:
  16012. * src/AbstractCommand.cc
  16013. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16014. * src/PeerInteractionCommand.h
  16015. (receiveMessage): Renamed as receiveMessages().
  16016. (receiveMessages): New function.
  16017. * src/PeerInteractionCommand.cc
  16018. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16019. () function. detectMessageFlooding() is moved here.
  16020. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16021. (). The flooding detection for have message is comment out.
  16022. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16023. Util::difftv().
  16024. (receiveMessage): Renamed as receiveMessages().
  16025. (receiveMessages): New function.
  16026. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16027. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16028. * src/SleepCommand.cc
  16029. (execute): Use Util::difftvsec() instead of Util::difftv().
  16030. * src/BitfieldMan.h
  16031. (getNthBitIndex): New function.
  16032. (hasMissingPiece): New function.
  16033. (getAllMissingIndexes): New function.
  16034. * src/BitfieldMan.cc
  16035. (countSetBit): Rewritten.
  16036. (getNthBitIndex): New function.
  16037. (getMissingIndexRandomly): Rewritten.
  16038. (hasMissingPiece): New function.
  16039. (getAllMissingIndexes): New function.
  16040. * src/TorrentMan.cc
  16041. (hasMissingPiece): New function.
  16042. (deleteUsedPiece): Rewritten using STL.
  16043. * src/PeerInteraction.cc
  16044. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16045. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16046. (addRequests): Updated the number of pending requests.
  16047. * src/PeerAbstractCommand.cc
  16048. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16049. (execute): Returns true if TorrentMan::isHalt() is true.
  16050. Corrected the condition of upload limit checking.
  16051. * src/Util.h
  16052. (countBit): New function.
  16053. * src/Util.cc
  16054. (nbits): New variable.
  16055. (countBit): New function.
  16056. * src/DownloadEngine.h
  16057. (SockCmdMap): New type definition.
  16058. (waitData): Added an argument.
  16059. (addSocket): Added an argument.
  16060. (addSocketForReadCheck): Added an argument.
  16061. (addSocketForWriteCheck): Added an argument.
  16062. * src/DownloadEngine.cc
  16063. (run): Executes only commands whose sockets are ready to read or write.
  16064. All commands are executed in every 1 second.
  16065. (waitData): Calls select() again if it returned
  16066. EINTR.
  16067. (addSocket): Saves socket and command object pair to the map.
  16068. (deleteSocket): Deletes socket and command object pair from the map.
  16069. (addSocketForReadCheck): Added an argument.
  16070. (addSocketForWriteCheck): Added an argument.
  16071. * src/DownloadCommand.cc
  16072. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16073. To send "event=stopped" to the tracker when the application finishes:
  16074. * src/PeerChokeCommand.h
  16075. (checkPoint): New variable.
  16076. * src/PeerChokeCommand.cc
  16077. (PeerChokeCommand): Added the initialization of checkPoint.
  16078. (execute): The interval check is now done by checkPoint, not
  16079. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16080. * src/TorrentMan.h
  16081. (halt): New function.
  16082. (hasMissingPiece): New function.
  16083. (isHalt): New function.
  16084. (setHalt): New function.
  16085. * src/TorrentMan.cc
  16086. (TorrentMan): Added the initialization of halt.
  16087. * src/TorrentAutoSaveCommand.h
  16088. (checkPoint): New variable.
  16089. * src/PeerListenCommand.cc
  16090. (execute): Returns true if TorrentMan::isHalt() is true.
  16091. * src/main.cc
  16092. (setSignalHander): Added flags argument.
  16093. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16094. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16095. Removed printDownloadAbortMessage() after torrent downloading loop.
  16096. * src/TorrentAutoSaveCommand.cc
  16097. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16098. (execute): Returns true if TorrentMan::isHalt() is true.
  16099. The interval check is now done by checkPoint, not SleepCommand.
  16100. * src/TrackerWatcherCommand.cc
  16101. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16102. event=stopped.
  16103. * src/TrackerUpdateCommand.cc
  16104. (prepareForRetry): Do not use SleepCommand here.
  16105. (execute): Returns true if TorrentMan::isHalt() is true.
  16106. Others:
  16107. * src/TorrentMan.cc
  16108. (getMissingPieceIndex): Updated log message.
  16109. * src/PeerInteraction.cc
  16110. (createPeerMessag): Updated log message.
  16111. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16112. To add the ability to download several pieces in mix in a command and
  16113. increase the number of request slots according to request-cancel
  16114. latency:
  16115. * src/PeerInteractionCommand.cc
  16116. (executeInternal): The number of messages to be received at a time
  16117. is increased from 10 to 50.
  16118. * src/LogFactory
  16119. (getInstance): Added NullLogger.
  16120. * src/NullLogger.h: New class.
  16121. * src/BitfieldMan.h
  16122. (getMissingIndex): New function.
  16123. * src/BitfieldMan.cc
  16124. (getMissingIndex): New function.
  16125. * src/TorrentMan.h
  16126. (checkOutPiece): New function.
  16127. (getMissingPieceIndex): New function.
  16128. (getMissingFastPieceIndex): New function.
  16129. (getMissingFastPiece): New function.
  16130. * src/TorrentMan.cc
  16131. (updatePiece): Rewritten using STL.
  16132. (syncPiece): Rewritten using STL.
  16133. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16134. checkOutPiece().
  16135. (getMissingPieceIndex): New function.
  16136. (getMissingFastPieceIndex): New function.
  16137. (getMissingFastPiece): New function.
  16138. (checkOutPiece): New function.
  16139. * src/PeerInteraction.h
  16140. (Pieces): New type definition.
  16141. (piece): Removed.
  16142. (pieces): New variable.
  16143. (getNewPieceAndSendInterest): Added the "piece" argument.
  16144. (abortPiece): Added the "piece" argument.
  16145. (abortAllPieces): New function.
  16146. (isInRequestSlot): New function.
  16147. (hasDownloadPiece): Added the "index" argument.
  16148. (setDownloadPiece): Removed.
  16149. (getDownloadPiece): Added the "index" argument.
  16150. (updatePiece): New function.
  16151. (createRequestMessage): Added the "index" argument.
  16152. * src/PeerInteraction.cc
  16153. (onChoked): Rewritten.
  16154. (abortPiece): Rewirtten.
  16155. (abortAllPieces): New function.
  16156. (deleteTimeoutRequestSlot): Rewritten.
  16157. Clarified code a little bit.
  16158. (deleteCompletedRequestSlot): Rewritten.
  16159. (isInRequestSlot): New function.
  16160. (syncPiece): Rewritten.
  16161. (updatePiece): New function.
  16162. (getNewPieceAndSendInterest): Rewritten.
  16163. (addRequests): Rewritten.
  16164. (getDownloadPiece): Rewritten.
  16165. (hasDownloadPiece): Rewritten.
  16166. (createRequestMessage): Added the "index" argument.
  16167. * src/common.h
  16168. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16169. (DIV_FLOOR): New definition.
  16170. * src/PieceMessage.cc
  16171. (receivedAction): Update request-piece latency here.
  16172. * src/RequestSlot.h
  16173. (getLatencyInMillis): New function.
  16174. * src/RequestSlot.cc
  16175. (isTimeout): Rewritten using getLatencyInMillis.
  16176. (getLatencyInMillis): New function.
  16177. * src/Piece.h
  16178. (operator==): New function.
  16179. (getMissingBlockIndex): New function.
  16180. * src/Piece.cc
  16181. (operator==): New function.
  16182. (getMissingBlockIndex): New function.
  16183. * src/Peer.h
  16184. (DEFAULT_LATENCY): New definition.
  16185. (latency): New variable.
  16186. (updateLatency): New function.
  16187. (getLatency): New function.
  16188. * src/Peer.cc
  16189. (resetStatus): Reset latecy.
  16190. (updateLatency): New function.
  16191. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16192. * src/SocketCore.cc
  16193. (isReadable): Added secure to the condition.
  16194. * src/HttpConnection.cc
  16195. (receiveResponse): Fixed a bug that causes no response header
  16196. exception.
  16197. * src/Peer.h
  16198. (getFastSet): Fixed the return value type.
  16199. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16200. To remove a wait from download loop:
  16201. * src/DownloadEngine.cc
  16202. (run): Comment out shortSleep.
  16203. To rewrite the message handling:
  16204. * src/SimplePeerMessage.h: New class.
  16205. * src/SimplePeerMessage.cc: New class.
  16206. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16207. (msg): New variable.
  16208. (create): New function.
  16209. (send): Removed.
  16210. (getMessage): New function.
  16211. (getMessageLength): New function.
  16212. * src/CancelMessage.cc
  16213. (create): New function.
  16214. (receivedAction): Replaced deleteRequestMessageInQueue with
  16215. rejectPieceMessageInQueue.
  16216. (send): Removed.
  16217. (getMessage): New function.
  16218. (getMessageLength): New function.
  16219. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16220. (msg): New variable.
  16221. (msgLength): New variable.
  16222. (~BitfieldMessage): Deleted msg.
  16223. (send): Removed.
  16224. (getMessage): New function.
  16225. (getMessageLength): New function.
  16226. * src/BitfieldMessage.cc
  16227. (create): New function.
  16228. (send): Removed.
  16229. (getMessage): New function.
  16230. (getMessageLength): New function.
  16231. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16232. (msg): New variable.
  16233. (sendPredicate): New function.
  16234. (onSendComplete): New function.
  16235. (send): Removed.
  16236. (getMessage): New function.
  16237. (getMessageLength): New function.
  16238. (create): New function.
  16239. * src/ChokeMessage.cc
  16240. (create): New function.
  16241. (send): Removed.
  16242. (sendPredicate): New function.
  16243. (getMessage): New function.
  16244. (getMessageLength): New function.
  16245. (onSendComplete): New function.
  16246. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16247. (msg): New variable.
  16248. (send): Removed.
  16249. (getMessage): New function.
  16250. (getMessageLength): New function.
  16251. * src/KeepAliveMessage.cc
  16252. (send): Removed.
  16253. (getMessage): New function.
  16254. (getMessageLength): New function.
  16255. * src/PortMessage.h
  16256. (create): New function.
  16257. (receivedAction): Updated log message.
  16258. * src/PortMessage.cc: New file.
  16259. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16260. (msg): New variable.
  16261. (sendPredicate): New function.
  16262. (onSendComplete): New function.
  16263. (create): New function.
  16264. (send): Removed.
  16265. (getMessage): New function.
  16266. (getMessageLength): New function.
  16267. * src/UnchokeMessage.cc
  16268. (create): New function.
  16269. (send): Removed.
  16270. (sendPredicate): New function.
  16271. (getMessage): New function.
  16272. (getMessageLength): New function.
  16273. (onSendComplete): New function.
  16274. * src/PieceMessage.h
  16275. (leftPieceDataLength): Removed.
  16276. (leftDataLength): New variable.
  16277. (headerSend): New variable.
  16278. (pendingCount): New variable.
  16279. (msgHeader): New variable.
  16280. (sendPieceData): New function.
  16281. (incrementPendingCount): New function.
  16282. (isPendingCountMax): New function.
  16283. (create): New function.
  16284. (getMessageHeader): New function.
  16285. (getMessageHeaderLength): New function.
  16286. * src/PieceMessage.cc
  16287. (create): New function.
  16288. (getMessageHeader): New function.
  16289. (getMessageHeaderLength): New function.
  16290. (send): Rewritten.
  16291. (sendPieceData): New function.
  16292. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16293. (msg): New variable.
  16294. (create): New function.
  16295. (getMessage): New function.
  16296. (getMessageLength): New function.
  16297. * src/HaveMessage.cc
  16298. (create): New function.
  16299. (send): Removed.
  16300. (sendPieceData): New function.
  16301. (getMessage): New function.
  16302. (getMessageLength): New function.
  16303. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16304. (msg): New variable.
  16305. (create): New function.
  16306. (send): Removed.
  16307. (getMessage): New function.
  16308. (getMessageLength): New function.
  16309. * src/RequestMessage.cc
  16310. (create): New function.
  16311. (receivedAction): Added the handling of fast extension.
  16312. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16313. (send): Removed.
  16314. (getMessage): New function.
  16315. (getMessageLength): New function.
  16316. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16317. (msg): New variable.
  16318. (sendPredicate): New function.
  16319. (onSendComplete): New function.
  16320. (create): New function.
  16321. (getMessage): New function.
  16322. (getMessageLength): New function.
  16323. * src/InterestedMessage.cc
  16324. (create): New function.
  16325. (send): Removed.
  16326. (sendPieceData): New function.
  16327. (getMessage): New function.
  16328. (getMessageLength): New function.
  16329. (onSendComplete): New function.
  16330. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16331. (msg): New variable.
  16332. (sendPieceData): New function.
  16333. (onSendComplete): New function.
  16334. (create): New function.
  16335. (send): Removed.
  16336. (getMessage): New function.
  16337. (getMessageLength): New function.
  16338. * src/NotInterestedMessage.cc
  16339. (create): New function.
  16340. (send): Removed.
  16341. (sendPredicate): New function.
  16342. (getMessage): New function.
  16343. (getMessageLength): New function.
  16344. (onSendComplete): New function.
  16345. * src/AllowedFastMessage.h: New class.
  16346. * src/AllowedFastMessage.cc: New class.
  16347. * src/RejectMessage.h: New class.
  16348. * src/RejectMessage.cc: New class.
  16349. * src/SuggestPieceMessage.h: New class.
  16350. * src/SuggestPieceMessage.cc: New class.
  16351. * src/HaveAllMessage.h: New class.
  16352. * src/HaveAllMessage.cc: New class.
  16353. * src/HaveNoneMessage.h: New class.
  16354. * src/HaveNoneMessage.cc: New class.
  16355. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16356. (msg): New variable.
  16357. (reserved): New variable.
  16358. (create): New function.
  16359. (getId): New function.
  16360. (receivedAction): New function.
  16361. (getMessage): New function.
  16362. (getMessageLength): New function.
  16363. (isFastExtensionSupported): New function.
  16364. * src/HandshakeMessage.cc
  16365. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16366. (create): New function.
  16367. (getMessage): New function.
  16368. (getMessageLength): New function.
  16369. (toString): Added the output of reserved field.
  16370. (check): Added const qualifier.
  16371. (isFastExtensionSupported): New function.
  16372. * src/PeerMessageUtil.h
  16373. (createChokeMessage): Removed.
  16374. (createUnchokeMessage): Removed.
  16375. (createInterestedMessage): Removed.
  16376. (createNotInterestedMessage): Removed.
  16377. (createHaveMessage): Removed.
  16378. (createBitfieldMessage): Removed.
  16379. (createRequestMessage): Removed.
  16380. (createCancelMessage): Removed.
  16381. (createPieceMessage): Removed.
  16382. (createPortMessage): Removed.
  16383. (createChokeMessage): Removed.
  16384. (createUnchokeMessage): Removed.
  16385. (createInterestedMessage): Removed.
  16386. (createNotInterestedMessage): Removed.
  16387. (createHaveMessage): Removed.
  16388. (createBitfieldMessage): Removed.
  16389. (createRequestMessage): Removed.
  16390. (createCancelMessage): Removed.
  16391. (createPieceMessage): Removed.
  16392. (createKeepAliveMessage): Removed.
  16393. (createHandshakeMessage): Removed.
  16394. (setIntParam): New function.
  16395. (createPeerMessageString): New function.
  16396. * src/PeerMessageUtil.cc
  16397. (createChokeMessage): Removed.
  16398. (createUnchokeMessage): Removed.
  16399. (createInterestedMessage): Removed.
  16400. (createNotInterestedMessage): Removed.
  16401. (createHaveMessage): Removed.
  16402. (createBitfieldMessage): Removed.
  16403. (createRequestMessage): Removed.
  16404. (createCancelMessage): Removed.
  16405. (createPieceMessage): Removed.
  16406. (createPortMessage): Removed.
  16407. (createRequestMessage): Removed.
  16408. (createCancelMessage): Removed.
  16409. (createPieceMessage): Removed.
  16410. (createHaveMessage): Removed.
  16411. (createChokeMessage): Removed.
  16412. (createUnchokeMessage): Removed.
  16413. (createInterestedMessage): Removed.
  16414. (createNotInterestedMessage): Removed.
  16415. (createBitfieldMessage): Removed.
  16416. (createKeepAliveMessage): Removed.
  16417. (createHandshakeMessage): Removed.
  16418. (setIntParam): New function.
  16419. (createPeerMessageString): New function.
  16420. * src/PeerConnection.h
  16421. (peer): Removed.
  16422. (torrentMan): Removed.
  16423. (createNLengthMessage): Removed.
  16424. (setIntParam): Removed.
  16425. (writeOutgoingMessageLog): Removed all overloaded functions.
  16426. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16427. (sendMessage): New function.
  16428. (sendHandshake): Removed.
  16429. (sendKeepAlive): Removed.
  16430. (sendChoke): Removed.
  16431. (sendUnchoke): Removed.
  16432. (sendInterested): Removed.
  16433. (sendNotInterested): Removed.
  16434. (sendHave): Removed.
  16435. (sendBitfield): Removed.
  16436. (sendRequest): Removed.
  16437. (sendPiece): Removed.
  16438. (sendPieceHeader): Removed.
  16439. (sendPieceData): Removed.
  16440. (sendCancel): Removed.
  16441. (getPeer): Removed.
  16442. * src/PeerConnection.cc
  16443. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16444. (sendHandshake): Removed.
  16445. (sendKeepAlive): Removed.
  16446. (createNLengthMessage): Removed.
  16447. (setIntParam): Removed.
  16448. (writeOutgoingMessageLog): Removed all overloaded functions.
  16449. (sendChoke): Removed.
  16450. (sendUnchoke): Removed.
  16451. (sendInterested): Removed.
  16452. (sendNotInterested): Removed.
  16453. (sendHave): Removed.
  16454. (sendBitfield): Removed.
  16455. (sendRequest): Removed.
  16456. (sendPiece): Removed.
  16457. (sendPieceHeader): Removed.
  16458. (sendPieceData): Removed.
  16459. (sendMessage): New function.
  16460. (sendCancel): Removed.
  16461. * src/PeerInteractionCommand.cc
  16462. (PeerInteractionCommand): Call setUploadLimit.
  16463. (executeInternal): Call setUploadLimit.
  16464. Added the handling of "inProgress" state of handshake message.
  16465. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16466. sendNow().
  16467. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16468. sendNow().
  16469. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16470. * src/TorrentMan.h
  16471. (PEER_ID_LENGTH): New definition.
  16472. (hasAllPieces): New function.
  16473. * src/TorrentMan.cc
  16474. (getMissingPiece): Added the handling of fast extension.
  16475. (cancelPiece): Call updatePiece().
  16476. (hasAllPieces): New function.
  16477. * src/PeerInteraction.h
  16478. (fastSet): New variable.
  16479. (getNewPieceAndSendInterest): Changed the return type to void.
  16480. (send): Renamed as sendMessages.
  16481. (deleteAllRequestSlot): Removed.
  16482. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16483. (cancelAllRequest): Removed all overloaded functions.
  16484. (deleteAllRequestSlot): Removed.
  16485. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16486. (rejectPieceMessageInQueue): New function.
  16487. (rejectAllPieceMessageInQueue): New function.
  16488. (onChoked): New function.
  16489. (isSendingMessageInProgress): New function.
  16490. (getCorrespondingRequestSlot): Changed its arguments.
  16491. (isInFastSet): New function.
  16492. (addFastSetIndex): New function.
  16493. (addRequests): New function.
  16494. (sendNow): Removed.
  16495. (trySendNow): Removed.
  16496. (sendBitfield): New function.
  16497. (sendAllowdFast): New function.
  16498. (createHaveAllMessage): New function.
  16499. (createHaveNoneMessage): New function.
  16500. (createRejectMessage): New function.
  16501. (createAllowedFastMessage): New function.
  16502. * src/PeerInteraction.cc
  16503. (send): Renamed as sendMessages.
  16504. (sendMessages): New function.
  16505. (MsgPushBack): New class.
  16506. (isSendingMessageInProgress): New function.
  16507. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16508. (rejectAllPieceMessageInQueue): New function.
  16509. Added the handling of fast extension.
  16510. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16511. (rejectPieceMessageInQueue): New function.
  16512. Added the handling of fast extension.
  16513. (deleteRequestSlot): Replaced for loop with std::find.
  16514. (onChoked): New function.
  16515. (deleteAllRequestSlot): Removed.
  16516. (abortPiece): Rewirtten.
  16517. (deleteTimeoutRequestSlot): Updated log messages.
  16518. (getCorrespondingRequestSlot): Changed its arguments.
  16519. (cancelAllRequest): Removed all overloaded functions.
  16520. (receiveHandshake): Added the check to see whether an incoming peer
  16521. supports fast extension.
  16522. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16523. PeerMessageUtil.
  16524. (createPeerMessage): Use create() of each message class instead of
  16525. PeerMessageUtil.
  16526. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16527. AllowedFastMessage were added.
  16528. (getNewPieceAndSendInterest): Changed its return value type to void.
  16529. Added the handling of fast extension.
  16530. (addRequests): New function.
  16531. (sendNow): Removed.
  16532. (sendHandshake): Rewritten.
  16533. (trySendNow): Removed.
  16534. (sendBitfield): New function.
  16535. (sendAllowdFast): New function.
  16536. (isInFastSet): New function.
  16537. (addFastSetIndex): New function.
  16538. (createRequestMessage): Use RequestMessage::create instead of
  16539. PeerMessageUtil.
  16540. (createCancelMessage): Use CancelMessage::create instead of
  16541. PeerMessageUtil.
  16542. (createPieceMessage): Use PieceMessage::create instead of
  16543. PeerMessageUtil.
  16544. (createHaveMessage): Use HaveMessage::create instead of
  16545. PeerMessageUtil.
  16546. (createChokeMessage): Use ChokeMessage::create instead of
  16547. PeerMessageUtil.
  16548. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16549. PeerMessageUtil.
  16550. (createInterestedMessage): Use InterestedMessage::create instead of
  16551. PeerMessageUtil.
  16552. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16553. of PeerMessageUtil.
  16554. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16555. PeerMessageUtil.
  16556. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16557. PeerMessageUtil.
  16558. (createHaveAllMessage): New function.
  16559. (createHaveNoneMessage): New function.
  16560. (createRejectMessage): New function.
  16561. (createAllowedFastMessage: New function.
  16562. * src/Util.h
  16563. (sha1Sum): New function.
  16564. (computeFastSet): New function.
  16565. * src/Util.cc
  16566. (sha1Sum): New function.
  16567. (computeFastSet): New function.
  16568. * src/Peer.h
  16569. (fastExtensionEnabled): New variable.
  16570. (fastSet): New variable.
  16571. (setAllBitfield): New function.
  16572. (setFastExtensionEnabled): New function.
  16573. (isFastExtensionEnabled): New function.
  16574. (addFastSetIndex): New function.
  16575. (getFastSet): New function.
  16576. (isInFastSet): New function.
  16577. (countFastSet): New function.
  16578. * src/Peer.cc
  16579. (isInFastSet): New function.
  16580. (addFastSetIndex): New function.
  16581. (setAllBitfield): New function.
  16582. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16583. sockets.
  16584. * src/PeerAbstractCommand.cc
  16585. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16586. and uploadLimit.
  16587. (execute): Changed the procedure of checking sockets. The upload speed
  16588. checking were added.
  16589. (setUploadLimit): New function.
  16590. (setUploadLimitCheck): New function.
  16591. * src/PeerAbstractCommand.h
  16592. (setUploadLimit): New function.
  16593. (setUploadLimitCheck): New function.
  16594. (uploadLimit): New variable.
  16595. (uploadLimitCheck): New variable.
  16596. To contact a tracker regularly:
  16597. * src/TrackerWatcherCommand.h (interval): New variable.
  16598. (checkPoint): New variable.
  16599. (TrackerWatcherCommand): Added interval argument.
  16600. * src/TrackerWatcherCommand.cc
  16601. (TrackerWatcherCommand): Initialized checkPoint.
  16602. (execute): Now a tracker is contacted in every specified period.
  16603. If peer list is not needed, send request with numwant=0.
  16604. * src/TrackerUpdateCommand.cc
  16605. (execute): Updated log messages.
  16606. * src/DownloadEngine.cc
  16607. (~DownloadEngine): Removed two asserts.
  16608. (waitData): Uncommented wfds. May be a bug fix.
  16609. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16610. * src/PeerInteractionCommand.h
  16611. (checkInactiveConnection): Removed.
  16612. * src/PeerInteractionCommand.cc
  16613. (executeInternal): Removed following function calls:
  16614. detectMessageFlooding(), checkLongTimePeerChoking and
  16615. checkInactiveConnection().
  16616. (checkInactiveConnection): Removed.
  16617. (detectMessageFlooding): Removed function call to
  16618. checkInactiveConnection().
  16619. * src/PeerMessageUtil.h
  16620. (createChokeMessage): New function. Overload.
  16621. (createUnchokeMessage): New function. Overload.
  16622. (createInterestedMessage): New function. Overload.
  16623. (createNotInterestedMessage): New function. Overload.
  16624. (createHaveMessage): New function. Overload.
  16625. (createBitfieldMessage): New function. Overload.
  16626. (createRequestMessage): New function. Overload.
  16627. (createCancelMessage): New function. Overload.
  16628. (createPieceMessage): New function. Overload.
  16629. (createKeepAliveMessage): New function. Overload.
  16630. * src/PeerMessageUtil.cc
  16631. (createChokeMessage): New function. Overload.
  16632. (createUnchokeMessage): New function. Overload.
  16633. (createInterestedMessage): New function. Overload.
  16634. (createNotInterestedMessage): New function. Overload.
  16635. (createHaveMessage): New function. Overload.
  16636. (createBitfieldMessage): New function. Overload.
  16637. (createRequestMessage): New function. Overload.
  16638. (createCancelMessage): New function. Overload.
  16639. (createPieceMessage): New function. Overload.
  16640. (createKeepAliveMessage): New function. Overload.
  16641. * src/SendMessageQueue.cc
  16642. (createRequestMessage): Use PeerMessageUtil.
  16643. (createCancelMessage): Use PeerMessageUtil.
  16644. (createPieceMessage): Use PeerMessageUtil.
  16645. (createHaveMessage): Use PeerMessageUtil.
  16646. (createChokeMessage): Use PeerMessageUtil.
  16647. (createUnchokeMessage): Use PeerMessageUtil.
  16648. (createInterestedMessage): Use PeerMessageUtil.
  16649. (createNotInterestedMessage): Use PeerMessageUtil.
  16650. (createBitfieldMessage): Use PeerMessageUtil.
  16651. (createKeepAliveMessage): Use PeerMessageUtil.
  16652. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16653. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16654. * src/PeerInteraction.h: New class.
  16655. * src/PeerInteraction.cc: New class.
  16656. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16657. Each peer message has its own class.
  16658. * src/PendingMessages.h: Removed.
  16659. * src/PendingMessages.cc: Removed. The sending process was moved to
  16660. each message class.
  16661. * src/RequestSlotMan.h: Removed.
  16662. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16663. SendMessageQueue.
  16664. * src/RequestMessage.h: New class.
  16665. * src/RequestMessage.cc: New class.
  16666. * src/CancelMessage.h: New class.
  16667. * src/CancelMessage.cc: New class.
  16668. * src/BitfieldMessage.h: New class.
  16669. * src/BitfieldMessage.cc: New class.
  16670. * src/ChokeMessage.h: New class.
  16671. * src/ChokeMessage.cc: New class.
  16672. * src/KeepAliveMessage.h: New class.
  16673. * src/KeepAliveMessage.cc: New class.
  16674. * src/PortMessage.h: New class.
  16675. * src/UnchokeMessage.h: New class.
  16676. * src/UnchokeMessage.cc: New class.
  16677. * src/PieceMessage.h: New class.
  16678. * src/PieceMessage.cc: New class.
  16679. * src/HaveMessage.h: New class.
  16680. * src/HaveMessage.cc: New class.
  16681. * src/BitfieldMessage.h: New class.
  16682. * src/BitfieldMessage.cc: New class.
  16683. * src/NotInterestedMessage.h: New class.
  16684. * src/NotInterestedMessage.cc: New class.
  16685. * src/InterestedMessage.h: New class.
  16686. * src/InterestedMessage.cc: New class.
  16687. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16688. (getSendMessageQueue): New function.
  16689. (setSendMessageQueue): New function.
  16690. * src/HandshakeMessage.cc: New class.
  16691. * src/PeerConnection.h (receiveMessage): Changed return value and
  16692. arguments.
  16693. (receiveHandshake): Changed return value and arguments.
  16694. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16695. here.
  16696. (receiveHandshake): Do not create handshake class here.
  16697. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16698. (piece): Removed.
  16699. (syncPiece): Removed.
  16700. (sendInterest): Removed.
  16701. (sendMessages): Removed.
  16702. (createRequestPendingMessage): Removed.
  16703. (checkPieceHash): Removed.
  16704. (erasePieceOnDisk): Removed.
  16705. (getNewPieceAndSendInterest): Removed.
  16706. (onGotNewPice): Removed.
  16707. (onGotWrongPiece): Removed.
  16708. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16709. Removed peerConnection, piece.
  16710. (~PeerInteractionCommand): Removed peerConnection.
  16711. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16712. (syncPiece): Moved to SendMessageQueue.
  16713. (decideChoking): Removed PendingMessage.
  16714. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16715. The action after receiving peer message was moved to each message
  16716. class.
  16717. (onGotNewPice): Moved to SendMessageQueue.
  16718. (onGotWrongPiece): Moved to SendMessageQueue.
  16719. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16720. (sendInterest): Moved to SendMessageQueue.
  16721. (createRequestPendingMessage): Removed.
  16722. (sendMessages): Moved to SendMessageQueue.
  16723. (onAbort): Use SendMessageQueue::abortPiece()
  16724. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16725. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16726. (checkPieceHash): Moved to SendMessageQueue.
  16727. (erasePieceOnDisk): Moved to SendMessageQueue.
  16728. * src/PeerMessageUtil.h
  16729. (createBitfieldMessage): Removed.
  16730. (createHaveMessage): Changed return value and arguments.
  16731. (createBitfieldMessage): Changed return value and arguments.
  16732. (createRequestCancelMessage): Removed.
  16733. (createPieceMessage): Changed return value and arguments.
  16734. (getShortIntParam): New function.
  16735. (checkIndex): Changed arguments.
  16736. (checkBegin): Changed arguments.
  16737. (checkLength): Changed arguments.
  16738. (checkPieceOffset): Removed.
  16739. (checkRange): New function.
  16740. (checkBitfield): Changed arguments.
  16741. (createPeerMessage): Removed.
  16742. (checkIntegrity): Removed.
  16743. (createHandshakeMessage): Changed arguments.
  16744. (createChokeMessage): New function.
  16745. (createUnchokeMessage): New function.
  16746. (createInterestedMessage): New function.
  16747. (createNotInterestedMessage): New function.
  16748. (createRequestMessage): New function.
  16749. (createCancelMessage): New function.
  16750. (createPortMessage): New function.
  16751. * src/PeerMessageUtil.cc
  16752. (createBitfieldMessage): Removed.
  16753. (createHaveMessage): Changed return value and arguments.
  16754. (createBitfieldMessage): Changed return value and arguments.
  16755. (createRequestCancelMessage): Removed.
  16756. (createPieceMessage): Changed return value and arguments.
  16757. (getShortIntParam): New function.
  16758. (checkIndex): Changed arguments.
  16759. (checkBegin): Changed arguments.
  16760. (checkLength): Changed arguments.
  16761. (checkPieceOffset): Removed.
  16762. (checkRange): New function.
  16763. (checkBitfield): Changed arguments.
  16764. (createPeerMessage): Removed.
  16765. (checkIntegrity): Removed.
  16766. (createHandshakeMessage): Changed arguments.
  16767. (createChokeMessage): New function.
  16768. (createUnchokeMessage): New function.
  16769. (createInterestedMessage): New function.
  16770. (createNotInterestedMessage): New function.
  16771. (createRequestMessage): New function.
  16772. (createCancelMessage): New function.
  16773. (createPortMessage): New function.
  16774. * src/PeerMessage.h
  16775. (id): Removed.
  16776. (index): Removed.
  16777. (begin): Removed.
  16778. (length): Removed.
  16779. (bitfield): Removed.
  16780. (bitfieldLength): Removed.
  16781. (block): Removed.
  16782. (blockLength): Removed.
  16783. (inProgress): New variable.
  16784. (cuid): New variable.
  16785. (peer): New variable.
  16786. (sendMessageQueue): New variable.
  16787. (logger): New variable.
  16788. (setBitfield): Removed.
  16789. (getBitfield): Removed.
  16790. (setBlock): Removed.
  16791. (getBlock): Removed.
  16792. (getBitfieldLength): Removed.
  16793. (getBlockLength): Removed.
  16794. (isInProgress): New function.
  16795. (toString): Made pure virtual.
  16796. (check): New function.
  16797. (send): New function.
  16798. (receivedAction): New function.
  16799. (getId): Made pure virtual.
  16800. (setId): Removed.
  16801. (getIndex): Removed.
  16802. (setIndex): Removed.
  16803. (getBegin): Removed.
  16804. (setBegin): Removed.
  16805. (getLength): Removed.
  16806. (setLength): Removed.
  16807. (getCuid): New function.
  16808. (setCuid): New function.
  16809. (getPeer): New function.
  16810. (setPeer): New function.
  16811. (getSendMessageQueue): New function.
  16812. (setSendMessageQueue): New function.
  16813. (ID): Removed.
  16814. * src/PeerMessage.cc
  16815. (setBitfield): Removed.
  16816. (setBlock): Removed.
  16817. (toString): Removed.
  16818. * src/TorrentMan.h
  16819. (getPieceLength): New function.
  16820. (getPieceLength): New function.
  16821. * src/SendMessageQueue.h
  16822. (REQUEST_TIME_OUT): New definition.
  16823. (RequestSlots): New definition.
  16824. (MessageQueue): New definition.
  16825. (requestSlotMan): Removed.
  16826. (pendingMessages): Removed.
  16827. (requestSlots): New variable.
  16828. (messageQueue): New variable.
  16829. (torrentMan): New variable.
  16830. (peerConnection): New variable.
  16831. (peer): New variable.
  16832. (piece): New variable.
  16833. (getNewPieceAndSendInterest): New function.
  16834. (createPeerMessage): New function.
  16835. (createHandshakeMessage): New function.
  16836. (send): Made private.
  16837. (setPeerMessageCommonProperty): New function.
  16838. (deleteAllRequestSlot): New function.
  16839. (deleteRequestMessageInQueue): New function.
  16840. (cancelAllRequest): Made private.
  16841. (cancelAllRequest): Made private.
  16842. (countRequestSlot): Made private.
  16843. (addPendingMessage): Removed.
  16844. (deletePendingPieceMessage): Removed.
  16845. (deletePendingRequestMessage): Removed.
  16846. (addMessage): New function.
  16847. (deletePieceMessageInQueue): New function.
  16848. (deleteTimeoutRequestSlot): Changed argument.
  16849. (deleteCompletedRequestSlot): Changed argument.
  16850. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16851. (getCorrespondingRequestSlot): New function.
  16852. (countPendingMessage): Removed.
  16853. (countMessageInQueue): New function.
  16854. (getTorrentMan): New function.
  16855. (getPeerConnection): New function.
  16856. (hasDownloadPiece): New function.
  16857. (getDownloadPiece): New function.
  16858. (setDownloadPiece): New function.
  16859. (syncPiece): New function.
  16860. (sendMessages): New function.
  16861. (sendNow): New function.
  16862. (trySendNow): New function.
  16863. (abortPiece): New function.
  16864. (sendHandshake): New function.
  16865. (receiveMessage): New function.
  16866. (receiveHandshake): New function.
  16867. (createRequestMessage): New function.
  16868. (createCancelMessage): New function.
  16869. (createPieceMessage): New function.
  16870. (createHaveMessage): New function.
  16871. (createChokeMessage): New function.
  16872. (createUnchokeMessage): New function.
  16873. (createInterestedMessage): New function.
  16874. (createNotInterestedMessage): New function.
  16875. (createBitfieldMessage): New function.
  16876. (createKeepAliveMessage): New function.
  16877. * src/SendMessageQueue.cc
  16878. (SendMessageQueue): Removed requestSlotMan.
  16879. Instantiated peerConnection here.
  16880. (~SendMessageQueue): Removed requestSlotMan.
  16881. Added deletion of peerConnection and the contents of messageQueue.
  16882. (send): Updated according to the change of messageQueue.
  16883. (addPendingMessage): Renamed to addMessage.
  16884. (addMessage): New function.
  16885. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16886. (deletePieceMessageInQueue): New function.
  16887. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16888. (deleteRequestMessageInQueue): New function.
  16889. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16890. here.
  16891. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16892. (...) was moved here.
  16893. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16894. moved here.
  16895. (deleteCompletedRequestSlot):
  16896. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16897. (getCorrespondingRequestSlot):
  16898. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16899. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16900. (countPendingMessage): Renamed to countMessageInQueue.
  16901. (countMessageInQueue): New function.
  16902. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16903. (receiveHandshake): New function.
  16904. (createHandshakeMessage): New function.
  16905. (receiveMessage): New function.
  16906. (createPeerMessage): New function.
  16907. (syncPiece): New function.
  16908. (getNewPieceAndSendInterest): New function.
  16909. (sendMessages): New function.
  16910. (sendNow): New function.
  16911. (trySendNow): New function.
  16912. (sendHandshake): New function.
  16913. (abortPiece): New function.
  16914. (getDownloadPiece): New function.
  16915. (getPeerMessageCommonProperty): New function.
  16916. (createRequestMessage): New function.
  16917. (createCancelMessage): New function.
  16918. (createPieceMessage): New function.
  16919. (createHaveMessage): New function.
  16920. (createChokeMessage): New function.
  16921. (createUnchokeMessage): New function.
  16922. (createInterestedMessage): New function.
  16923. (createNotInterestedMessage): New function.
  16924. (createBitfieldMessage): New function.
  16925. (createKeepAliveMessage): New function.
  16926. To add simple Content-Disposition support:
  16927. * src/HttpResponseCommand.h (determinFilename): New function.
  16928. * src/HttpResponseCommand.cc (executeInternal):
  16929. Use determinFilename(headers) instead of req->getFile() when comparing
  16930. filename.
  16931. (determinFilename): New function.
  16932. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16933. req->getFile().
  16934. (handleOtherEncoding): Use determinFilename(headers) instead of
  16935. req->getFile().
  16936. * src/Util.h (getContentDispositionFilename): New function.
  16937. * src/Util.cc (getContentDispositionFilename): New function.
  16938. * src/LogFactory.h (release): New function.
  16939. * src/LogFactory.cc (release): New function.
  16940. To fix a bug that causes out-of-bound exception when HTTP status
  16941. line is wrong:
  16942. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16943. size.
  16944. * src/common.h (Deleter): New class.
  16945. * src/SegmentMan.cc
  16946. (~SegmentMan): Added deletion of splitter and diskWriter.
  16947. * src/DownloadEngine.h
  16948. (Commands): Use deque.
  16949. (clearQueue): New function.
  16950. * src/DownloadEngine.cc
  16951. (~DownloadEngine): Added deletion of segmentMan.
  16952. (cleanQueue): New function.
  16953. * src/TorrentDownloadEngine.h
  16954. (TorrentDownloadEngine): The implementation was moved to
  16955. TorrentDownloadEngine.cc.
  16956. (~TorrentDownloadEngine): The implementation was moved to
  16957. TorrentDownloadEngine.cc.
  16958. * src/TorrentDownloadEngine.cc
  16959. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16960. * src/main.cc
  16961. (clearRequest): Removed.
  16962. (handler): Added deletion of e.
  16963. (torrentHandler): Added deletion of te.
  16964. (main): Do not share splitter.
  16965. Use Deleter instead of clearRequest.
  16966. Deletion of classes were updated.
  16967. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16968. * src/main.cc (main): Fixed typo.
  16969. * src/message.h: Fixed typo.
  16970. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16971. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16972. To add --select-file command-line option:
  16973. * src/Util.cc
  16974. (unfoldRange): New function.
  16975. (getNum): New function.
  16976. (unfoldSubRange): New function
  16977. * src/main.cc
  16978. (showUsage): Added help message.
  16979. (main): Added --select-file command-line option. Updated the layout of
  16980. file listing.
  16981. * src/common.h
  16982. (Integers): New definition.
  16983. * src/SocketCore.cc
  16984. (writeData): Removed timeout argument.
  16985. (readData): Removed timeout argument.
  16986. (peekData): Removed timeout argument.
  16987. * src/Socket.cc
  16988. (writeData): Removed timeout argument.
  16989. (readData): Removed timeout argument.
  16990. (peekData): Removed timeout argument.
  16991. * Release 0.4.1
  16992. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16993. To deploy upload rate based choking algorithm:
  16994. * src/PeerInteractionCommand.cc
  16995. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16996. peer currently used.
  16997. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16998. download completes. Simplified.
  16999. (receiveMessage): Updated.
  17000. * src/TorrentMan.h
  17001. (activePeers): New variable.
  17002. (addActivePeer): New function.
  17003. (getActivePeers): New function.
  17004. (deleteActivePeer): New function.
  17005. * src/TorrentMan.cc
  17006. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17007. * src/PeerAbstractCommand.cc
  17008. (onAbort): Use peer->resetStatus().
  17009. * src/main.cc
  17010. (PeerChokeCommand.h): Included.
  17011. (main): Added the instance of ChokingCommand to the command queue.
  17012. * src/Peer.h
  17013. (amChoking): Renamed from amChocking
  17014. (chokingRequired): New variable.
  17015. (optUnchoking): New variable.
  17016. (deltaUpload): New variable.
  17017. (deltaDownload): New variable.
  17018. (addDeltaUpload): New function.
  17019. (resetDeltaUpload): New function.
  17020. (addDeltaDownload): New function.
  17021. (resetDeltaDownload): New function.
  17022. (addPeerUpload): Added a call to addDeltaUpload.
  17023. (addPeerDownload): Added a call to addDeltaDownload.
  17024. * src/Peer.cc
  17025. (shouldBeChoking): Renamed from shouldChoke.
  17026. (resetStatus): New function.
  17027. * src/PeerChokeCommand.h: New class.
  17028. * src/PeerChokeCommand.cc: New class.
  17029. To add lazy upload speed limiter:
  17030. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17031. statistics calculation to TorrentDownloadEngine.
  17032. * src/TorrentConsoleDownloadEngine.cc
  17033. (sendStatistics): Renamed from printStatistics.
  17034. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17035. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17036. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17037. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17038. calculation.
  17039. (sendStatistics): New function as pure virtual function.
  17040. (getUploadSpeed): New function.
  17041. * src/TorrentDownloadEngine.cc
  17042. (initStatistics): New function.
  17043. (calculateSpeed): New function.
  17044. (calculateStatistics): New function.
  17045. * src/SendMessageQueue.h
  17046. (uploadLength): New variable.
  17047. (send): Added an argument.
  17048. (setUploadLimit): New function.
  17049. (getUploadLimit): New function.
  17050. * src/SendMessageQueue.cc
  17051. (send): Added upload speed limiter.
  17052. * src/prefs.h
  17053. (PREF_UPLOAD_LIMIT): New definition.
  17054. * src/PeerInteractionCommand.cc
  17055. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17056. * src/main.cc
  17057. (main): Added --upload-limit option
  17058. For bug fixes:
  17059. * src/main.cc
  17060. (showUsage): Corrected --listen-port help
  17061. Other changes:
  17062. * src/TorrentMan.cc
  17063. (getPeer): Return nullPeer if connection is grather than
  17064. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17065. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17066. To add some useful information to the exception message:
  17067. * src/SocketCore.cc : Updated messages.
  17068. * src/SegmentMan.cc :
  17069. * src/TorrentMan.cc : Updated messages.
  17070. * src/MultiDiskWriter.cc : Updated messages.
  17071. * src/Util.cc : Updated messages.
  17072. * src/AbstractDiskWriter.cc : Updated messages.
  17073. * src/PreAllocationDiskWriter.cc : Updated messages.
  17074. * src/message.cc : Added new messages. Updated some messages.
  17075. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17076. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17077. Updated threshold from 30 to 15.
  17078. * src/AbstractDiskWriter.h (filename): New variable.
  17079. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17080. (createFile): Assigned filename.
  17081. * src/main.cc: Updated the help message for http-auth-scheme.
  17082. * Release 0.4.0
  17083. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17084. To add TrackerUpdateCommand with which replaces
  17085. CompactTrackerResponseProcessor:
  17086. * src/TrackerWatcherCommand.h (req): Removed.
  17087. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17088. if the number of peer connections are less than 30.
  17089. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17090. * src/SegmentMan.h (diskWriter): New function.
  17091. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17092. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17093. (main): Use TrackerUpdateCommand.
  17094. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17095. (req): New variable.
  17096. (setTrackerResponseProcessor): Removed.
  17097. (getTrackerResponseProcessor): Removed.
  17098. (processTrackerResponse): Removed.
  17099. * src/DownloadEngine.h (diskWriter): Removed.
  17100. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17101. to torrentMan->processTrackerResponse().
  17102. To add Util::expandBuffer:
  17103. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17104. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17105. * src/Util.h (expandBuffer): New function.
  17106. To fix the bug that causes segmentation fault when "-l ." is specified
  17107. in command-line option:
  17108. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17109. (openFile): New function.
  17110. (closeFile): New function.
  17111. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17112. (~SimpleLogger): Call closeFile();
  17113. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17114. * src/main.cc (main): Added a check to see logger is configured
  17115. properly.
  17116. To enable HTTP authentication without specifying "--http-auth-scheme"
  17117. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17118. * src/HttpConnection.cc (createRequest): Send Authorization header
  17119. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17120. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17121. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17122. * src/Peer.cc (shouldChoke): Updated algorithm.
  17123. * src/message.h (EX_AUTH_FAILED): New definition.
  17124. (EX_FILE_OPEN): New definition.
  17125. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17126. if status == 401.
  17127. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17128. if req->isTorrent == true.
  17129. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17130. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17131. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17132. (createFile): Updated message.
  17133. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17134. To add a readout of estimated remaining time to normal HTTP/FTP
  17135. downloads:
  17136. * src/ConsoleDownloadEngine.h (startup): New variable.
  17137. (startupLength): New variable.
  17138. (isStartupLengthSet): New variable.
  17139. (avgSpeed): New variable.
  17140. (eta): New variable.
  17141. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17142. estimated remaining time.
  17143. (initStatistics): Initialized newly added variables.
  17144. (calculateStatistics): Calculate average speed and estimated remaining
  17145. time.
  17146. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17147. * src/TrackerDownloadCommand.h: Removed.
  17148. * src/TrackerDownloadCommand.cc: Removed.
  17149. * src/TrackerInitCommand.h: Removed.
  17150. * src/TrackerInitCommand.cc: Removed.
  17151. * src/TrackerUpdateCommand.h: Removed.
  17152. * src/TrackerUpdateCommand.cc: Removed.
  17153. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17154. url written in TrackerInitCommand was moved here. Do not create
  17155. tracker request command if torrentMan->trackers != 0.
  17156. * src/CompactTrackerResponseProcessor.h: New class.
  17157. * src/CompactTrackerResponseProcessor.cc: New class.
  17158. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17159. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17160. Decoupled TorrentDownloadEngine from this.
  17161. * src/SegmentMan.h (init): New function.
  17162. * src/SegmentMan.cc (init): New function.
  17163. * src/TorrentMan.h (responseProcessor): New variable.
  17164. (trackers): New variable.
  17165. (setTrackerResponseProcessor): New function.
  17166. (getTrackerResponseProcessor): New function.
  17167. (processTrackerResponse): New function.
  17168. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17169. (processTrackerResponse): New function.
  17170. * src/main.cc (main): Use ByteArrayDiskWriter and
  17171. CompactTrackerResponseProcessor.
  17172. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17173. processTrackerResponse().
  17174. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17175. readout.
  17176. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17177. which indicates download has completed.
  17178. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17179. (closeFile): fd >= 0, not fd > 0
  17180. * src/main.cc (main): Added short cut for show-files.
  17181. Added short cut for torrent-file.
  17182. Added new command-line option listen-port.
  17183. Updated i18n messages.
  17184. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17185. To add LogFactory which creates singleton logger:
  17186. * src/LogFactory.h: New class.
  17187. * src/LogFactory.cc: New class.
  17188. * src/Command.h (logger): New variable.
  17189. (Constructor): Use LogFactory.
  17190. * src/AbstractCommand.cc: Use Command::logger
  17191. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17192. Use LogFactory.
  17193. * src/SegmentSplitter.h : Made logger protected.
  17194. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17195. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17196. * src/DownloadEngine.h : Made logger protected.
  17197. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17198. * src/PeerInteractionCommand.cc : Use Command::logger.
  17199. * src/HttpResponseCommand.cc : Use Command::logger.
  17200. * src/SegmentMan.h : Made logger private.
  17201. * src/TorrentMan.h : Made logger private.
  17202. * src/TorrentMan.cc : Use LogFactory.
  17203. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17204. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17205. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17206. Use LogFactory.
  17207. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17208. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17209. Use LogFactory.
  17210. * src/DownloadCommand.cc : Use Command::logger.
  17211. * src/PeerAbstractCommand.cc : Use Command::logger.
  17212. * src/PeerListenCommand.cc : Use Command::logger.
  17213. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17214. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17215. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17216. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17217. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17218. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17219. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17220. Use LogFactory.
  17221. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17222. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17223. Use LogFactory.
  17224. * src/main.cc (main): Use LogFactory.
  17225. * src/DiskAdaptor.h (logger): New variable.
  17226. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17227. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17228. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17229. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17230. parameter to a tracker request.
  17231. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17232. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17233. * src/main.cc (setSignalHander): New function.
  17234. (main): Added a handler for SIGTERM.
  17235. (handler): Updated message.
  17236. (torrentHandler): Updated message.
  17237. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17238. * src/TorrentConsoleDownloadEngine.cc
  17239. (onPartialDownloadingCompletes): Renamed as
  17240. onSelectiveDownloadingCompletes.
  17241. (onSelectiveDownloadingCompletes): Updated message.
  17242. To add DiskAdaptor which abstract DiskWriter family:
  17243. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17244. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17245. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17246. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17247. MultiDiskAdaptor.h.
  17248. (readFileEntry): Changed its arguments.
  17249. (setup): setupDiskWriter is merged into this function.
  17250. (setupDiskWriter): Removed.
  17251. (setFileFilter): New function.
  17252. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17253. made in readFileEntry.
  17254. (getFilePath): Removed.
  17255. (getTempFilePath): Removed.
  17256. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17257. (fixFilename): Removed.
  17258. (copySingleFile): Removed.
  17259. (splitMultiFile): Removed.
  17260. (deleteTempFile): Removed.
  17261. (setFileEntriesToDownload): Removed.
  17262. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17263. (isSelectiveDownloadingMode): New function.
  17264. (setAllMultiFileRequestedState): Removed.
  17265. (finishPartialDownloadingMode): Renamed as
  17266. finishSelectiveDownloadingMode.
  17267. (finishSelectiveDownloadingMode): New function.
  17268. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17269. (getSelectedTotalLength): New function.
  17270. (onDownloadComplete): Use diskAdaptor.
  17271. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17272. (Range): Removed.
  17273. (setMultiFileEntries): Renamed as setFileEntries.
  17274. (setFileEntries): New function.
  17275. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17276. (pieceLength): New variable.
  17277. * src/main.cc (printDownloadCompeleteMessage): New function.
  17278. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17279. (main): Renamed torrent-show-files to show-files.
  17280. Rewritten file contents listing.
  17281. * src/TorrentMan.h (FileEntry): Removed.
  17282. (multiFileTopDir): Removed.
  17283. (multiFileEntries): Removed.
  17284. (diskWriter): Removed.
  17285. (diskAdaptor): New variable.
  17286. * src/DefaultDiskWriter.h (totalLength): New variable.
  17287. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17288. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17289. diskWriter.
  17290. * src/TorrentConsoleDownloadEngine.h
  17291. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17292. (partialTotalLength): Renamed as selectedTotalLength.
  17293. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17294. openExistingFile, otherwise call initAndOpenFile.
  17295. (closeFile): fd > 0, not fd != 0.
  17296. * src/DirectDiskAdaptor.h: New class.
  17297. * src/DirectDiskAdaptor.cc: New class.
  17298. * src/MultiDiskAdaptor.h: New class.
  17299. * src/MultiDiskAdaptor.cc: New class.
  17300. * src/CopyDiskAdaptor.h: New class.
  17301. * src/CopyDiskAdaptor.cc: New class.
  17302. * src/DiskAdaptor.h: New class.
  17303. * src/DiskAdaptor.cc: New class.
  17304. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17305. (PREF_SHOW_FILES): New definition.
  17306. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17307. To add the ability to download multi torrent into respective files
  17308. directly:
  17309. * src/DiskWriter.h (openFile): New function.
  17310. (seek): Removed.
  17311. * src/MultiDiskWriter.h: New class.
  17312. * src/MultiDiskWriter.cc: New class.
  17313. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17314. protected.
  17315. (openFile): New function.
  17316. * src/AbstractDiskWriter.cc (openFile): New function.
  17317. * src/prefs.h (V_FALSE): New definition.
  17318. (PREF_DIRECT_FILE_MAPPING): New definition.
  17319. * src/TorrentMan.h (setupDiskWriter): New function.
  17320. (setAllMultiFileRequestedState): New function.
  17321. (onDownloadComplete): New function.
  17322. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17323. (setupDiskWriter): New function.
  17324. (getFilePath): Updated.
  17325. (getTempFilePath): Updated.
  17326. (getSegmentFilePath): Updated.
  17327. (fixFilename): Updated.
  17328. (deleteTempFile): Updated.
  17329. (setAllMultiFileRequestedState): New function.
  17330. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17331. (finishPartialDownloadingMode): Reset requested flags.
  17332. (onDownloadComplete): New function.
  17333. * src/main.cc: Added --direct-file-mapping option.
  17334. Use TorrentMan::setupDiskWriter().
  17335. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17336. onDownloadComplete().
  17337. To fix ETA bug:
  17338. * src/Util.h (difftvsec): New function.
  17339. * src/Util.cc (difftvsec): New function.
  17340. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17341. type of "elapsed" instead of long long int.
  17342. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17343. The updates of statistics takes place every 1 seconds.
  17344. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17345. (calculateSpeed): Changed its argument signature.
  17346. * src/PeerMessage.cc (toString): Fixed message.
  17347. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17348. To print ETA:
  17349. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17350. completion handling when dealing with
  17351. TorrentMan::isPartialDownloadingMode() == true.
  17352. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17353. New function.
  17354. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17355. (sessionDownloadLength): New variable.
  17356. (avgSpeed): New variable.
  17357. (eta): New variable.
  17358. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17359. new variables: eta, avgSpeed, startup.
  17360. (calculateSpeed): Calculate average speed and ETA.
  17361. (printStatistics): Added ETA.
  17362. * src/Util.h (secfmt): New function.
  17363. * src/Util.cc (secfmt): New function.
  17364. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17365. To detect "keep alive" flooding:
  17366. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17367. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17368. variable: keepAliveCount.
  17369. (detectMessageFlooding): Added "keep alive" flooding detection.
  17370. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17371. received.
  17372. To add the ability to download only specified files in multi-file
  17373. torrent:
  17374. * src/BitfieldMan.h (filterBitfield): New variable.
  17375. (filterEnabled): New variable.
  17376. (setFilterBit): New function.
  17377. (enableFilter): New function.
  17378. (disableFilter): New function.
  17379. (isFilterEnabled): New function.
  17380. (getFilteredTotalLength): New function.
  17381. (getCompletedLength): New function.
  17382. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17383. filterBitfield, filterEnabled.
  17384. (CopyConstructor): Added filterBitfield and filterEnabled.
  17385. (operator==): Added filterBitfield and filterEnabled.
  17386. (Destructor): Added filterBitfield.
  17387. (getMissingIndex): Use filterBitfield.
  17388. (getMissingUnusedIndex): Use filterBitfield.
  17389. (getFirstMissingUnusedIndex): Use filterBitfield.
  17390. (getFirstMissingUnusedIndex): Use filterBitfield.
  17391. (getAllMissingIndexes): Use filterBitfield.
  17392. (countMissingBlock): Use filterBitfield.
  17393. (countBlock): Use filterBitfield.
  17394. (setBitInternal): Added new argument on.
  17395. (setUseBit): Use setBitInternal.
  17396. (unsetUseBit): Use setBitInternal.
  17397. (setBit): Use setBitInternal.
  17398. (unsetBit): Use setBitInternal.
  17399. (isAllBitSet): Use filterBitfield.
  17400. (setFilterBit): New function.
  17401. (addFilter): New function.
  17402. (enableFilter): New function.
  17403. (disableFilter): New function.
  17404. (clearFilter): New function.
  17405. (isFilterEnabled): New function.
  17406. (getFilteredTotalLength): New function.
  17407. (getCompletedLength): New function.
  17408. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17409. Initalized newly added variables.
  17410. [FileEntry](offset): New variable.
  17411. [FileEntry](extracted): New variable.
  17412. [FileEntry](requested): New variable.
  17413. (readFileEntry): New function.
  17414. (option): New variable.
  17415. (splitMultiFile): Removed const qualifier.
  17416. (fixFilename): Removed const qualifier.
  17417. (readFileEntryFromMetaInfoFile): New function.
  17418. (finishPartialDownloadingMode): New function.
  17419. (isPartialDownloadingMode): New function.
  17420. (setFileEntriesToDownload): New function.
  17421. (getCompletedLength): New function.
  17422. (getPartialTotalLength): New function.
  17423. * src/TorrentMan.cc (readFileEntry): New function.
  17424. (setup): Use readFileEntry. If no-preallocation option is specified,
  17425. use DefaultDiskWriter.
  17426. (readFileEntryFromMetaInfoFile): New function.
  17427. (fixFilename): Removed const qualifier.
  17428. (splitMultiFile): Removed const qualifier.
  17429. (setFileEntriesToDownload): New function.
  17430. (isPartialDownloadingMode): New function.
  17431. (finishPartialDownloadingMode): New function.
  17432. (getCompletedLength): New function.
  17433. (getPartialTotalLength): New function.
  17434. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17435. New variable.
  17436. (partialTotalLength): New variable.
  17437. (downloadLength): New variable.
  17438. (totalLength): New variable.
  17439. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17440. Added log.
  17441. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17442. partialTotalLength, downloadLength, totalLength.
  17443. (calculate): Calculate downloadLength and totalLength.
  17444. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17445. * src/main.cc (addCommand): Changed argument signature.
  17446. (main): Added new variable: args. Added new option "torrent-show-files"
  17447. "no-preallocation". Usage is not updated yet.
  17448. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17449. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17450. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17451. Attempt to add the ability to listing file entries in a .torrent file.
  17452. This feature is not yet complete.
  17453. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17454. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17455. (getName): New function.
  17456. * src/TorrentMan.h (getMultiFileEntries): New function.
  17457. (getName): New function.
  17458. * src/main.cc (main): Use above 2 funtion.
  17459. * Release 0.3.2
  17460. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17461. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17462. (detectMessageFlooding): Updated threshold value.
  17463. (checkLongTimePeerChoking): Updated timeout value.
  17464. (getNewPieceAndSendInterest): Added debug log.
  17465. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17466. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17467. (getPeer): Updated.
  17468. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17469. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17470. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17471. is localhost.
  17472. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17473. * src/PendingMessage.cc (processMessage): Not to send piece message
  17474. if peer is not interested in the pieces localhost has.
  17475. * src/Peer.cc (shouldChoke): Updated.
  17476. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17477. * src/Util.cc (isPowerOf): New function.
  17478. * src/Util.h (isPowerOf): New function.
  17479. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17480. whether or not it is power of 2.
  17481. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17482. Added new class SendMessageQueue that includes PendingMessages and
  17483. RequestSlotMan.
  17484. * src/SendMessageQueue.h: New class.
  17485. * src/SendMessageQueue.cc: New class.
  17486. * src/PendingMessage.h: Added new member variable blockIndex and its
  17487. accessors.
  17488. (createRequestMessage): Updated.
  17489. * src/PendingMessage.cc (createRequestMessage): Updated.
  17490. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17491. SendMessageQueue.
  17492. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17493. (receiveMessage): Updated with SendMessageQueue.
  17494. (deletePendingPieceMessage): Removed.
  17495. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17496. (sendInterest): Updated with SendMessageQueue.
  17497. (createRequestPendingMessage): Updated with SendMessageQueue.
  17498. (sendMessages): Updated with SendMessageQueue.
  17499. (onAbort): Updated with SendMessageQueue.
  17500. (keepAlive): Updated with SendMessageQueue.
  17501. (beforeSocketCheck): Updated SendMessageQueue.
  17502. * src/PeerInteractionCommand (sendMessages): Shuffle
  17503. missingBLockIndexes before using it.
  17504. Added its own timeout for peer connection.
  17505. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17506. setter.
  17507. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17508. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17509. Added setTimeout() call.
  17510. (executeInternal): Added setTimeout() call.
  17511. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17512. Added timeout.
  17513. (isTimeoutDetected): Updated.
  17514. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17515. option.
  17516. Added *simple* message flooding checker.
  17517. * src/PeerInteractionCommand.cc (executeInternal):
  17518. Added detectMessageFlooding() call.
  17519. (detectMessageFlooding): New function.
  17520. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17521. (beforeSocketCheck): Added detectMessageFlooding() call.
  17522. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17523. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17524. Removed deletePendingPieceMessage(), getRequestSlot(),
  17525. deleteRequestSlot(), deleteAllRequestSlot().
  17526. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17527. Added checkLongTimePeerChoking() call.
  17528. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17529. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17530. if duplicate == false.
  17531. The parameter "uploaded" and "downloaded" in the tracker request are
  17532. the size since the client sent the "started" event to the tracker.
  17533. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17534. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17535. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17536. getSessionDownloadedSize(), getSessionUploadedSize().
  17537. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17538. getSessionUploadedSize() instead of getDownloadedSize(),
  17539. getUploadedSize().
  17540. * src/PendingMessage.cc (processMessage): Do not send request message
  17541. if the peer is choking the client.
  17542. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17543. less than interval.
  17544. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17545. * configure.in: Added gnutls support. Added several CPP macros.
  17546. * m4/openssl.m4: Added.
  17547. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17548. readData(), peekData(). Added gnutls support.
  17549. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17550. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17551. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17552. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17553. Instead, added a check for whether setup method has executed
  17554. successfully.
  17555. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17556. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17557. * src/Makefile.am: Updated.
  17558. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17559. using whether OpenSSL or gcrypt, depending on the result of configure
  17560. script.
  17561. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17562. messageDigest.h.
  17563. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17564. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17565. Fixed memory leak.
  17566. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17567. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17568. Removed instantiation of TrackerInitCommand. Instead,
  17569. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17570. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17571. ENABLE_SSL.
  17572. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17573. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17574. If a piece is already acquired by another command, delete the request
  17575. slots for the piece.
  17576. * src/TrackerUpdateCommand.cc (execute):
  17577. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17578. Added a check whether peer list is null.
  17579. Fixed the bug that causes sending completed event to the tracker
  17580. several times.
  17581. * src/TrackerInitCommand.cc (execute):
  17582. Fixed the bug that causes sending completed event to the tracker
  17583. several times.
  17584. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17585. by using messageDigest.h.
  17586. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17587. * PeerConnection.cc: Replaced log message "keep-alive" with
  17588. "keep alive".
  17589. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17590. localhost long time.
  17591. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17592. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17593. at most 100 failure entry from the list. If with duplicate = false,
  17594. MAX_PEER_LIST is not checked.
  17595. * PeerListenCommand.cc: Fixed the argument order of log message.
  17596. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17597. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17598. Added warn().
  17599. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17600. Implemented warn().
  17601. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17602. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17603. * Request.h: Added AFTER_COMPLETED event.
  17604. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17605. instead of downloaded size and progress(%) after download completes.
  17606. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17607. message to the peer if it is interested in what localhost has
  17608. downloaded.
  17609. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17610. destination instead of just renaming it.
  17611. * TorrentMan.cc: Added deleteTempFile().
  17612. * PeerAbstractCommand.cc: do not stop execution after download
  17613. completes. This makes localhost a seeder.
  17614. * Util.{h,cc}: Added fileCopy().
  17615. * PeerListenCommand.cc: do not stop execution after download completes.
  17616. This makes localhost a seeder.
  17617. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17618. Added TorrentMan::deleteTempFile() to torrentHandler.
  17619. Initialized the variable dir as ".".
  17620. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17621. Deleted renameSingleFile().
  17622. Added copySingleFile(), deleteTempFile().
  17623. * DownloadEngine.h: Added virtual function afterEachIteration().
  17624. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17625. in onEndOfRun() to afterEachIteration().
  17626. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17627. true.
  17628. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17629. In rangedFileCopy(), added try-catch block to properly close file
  17630. descriptors.
  17631. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17632. Added afterEachIteration(), isFilenameFixed().
  17633. * Peer.cc: Changed choking strategy.
  17634. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17635. * TrackerInitCommand.cc: Send completed event only once.
  17636. * DownloadEngine.cc: Added a call to afterEachIteration().
  17637. * TrackerUpdateCommand.cc: Do not stop execution after download
  17638. completes.
  17639. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17640. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17641. received from a tracker.
  17642. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17643. Decreased the number of failure peers to delete to 0(just comment out
  17644. the line).
  17645. * Release 0.3.1
  17646. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17647. * PeerInteractionCommand.cc: added a call to
  17648. TorrentMan::unadvertisePiece in Destructor.
  17649. * PeerInteractionCommand.cc: make have message sent immediately
  17650. if the size of pending message queue is zero.
  17651. * TorrentMan.cc: set the maximum size of peer list to 250.
  17652. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17653. to deque.
  17654. * Util.cc: fixed rangedFileCopy.
  17655. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17656. to Constructor. Also, moved digest cleanup to Destructor.
  17657. * MetaFileUtil.cc: fixed memory leak
  17658. * replaced std::vector with std::deque.
  17659. * AbstractCommand.cc: casted timeout value to long long int.
  17660. * ChunkedEncoding.cc: fixed memory leak.
  17661. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17662. * SleepCommand.cc: casted timeout value to long long int.
  17663. * Data.cc: fixed memory leak.
  17664. * Data.cc: fixed toLLInt().
  17665. * BitfieldMan.cc: fixed memory leak.
  17666. * TorrentMan.cc: initialized storeDir to ".".
  17667. * TorrentMan.cc: fixed memory leak.
  17668. * TorrentMan.cc: corrected file paths of splitted files.
  17669. * PeerAbstractCommand.cc: casted timeout to long long int.
  17670. * main.cc: added delete(req) and delete(te->diskWriter).
  17671. * RequestSlot.cc: casted timeout value to long long int.
  17672. * Request.cc: fixed memory leak.
  17673. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17674. have the piece.
  17675. * Peer.{h,cc}: added hasPiece(int index).
  17676. * main.cc: corrected addCommand.
  17677. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17678. * BitTorrent protocol support added.
  17679. * Release 0.3.0
  17680. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17681. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17682. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17683. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17684. decoding did not work properly.
  17685. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17686. * DownloadEngine.h: included sys/time.h
  17687. * DownloadEngine.cc: remove sys/time.h
  17688. * Makefile.am (SUBDIRS): Add intl.
  17689. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17690. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17691. * main.cc: correct help message for --http-auth-scheme.
  17692. * main.cc: changed e-mail address for bug reports.
  17693. * ja.po: added japanese translation.
  17694. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17695. * SimpleLogger.cc: flush log file instead of stdout.
  17696. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17697. * main.cc: Fixed command-line option: max-tries
  17698. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17699. does not equal to seg.sp.
  17700. * DownloadCommand.cc: If EOF is got from the server and the total size
  17701. of file is not zero, then throw DlRetryEx.
  17702. * main.cc: Set the minium value of min-segment-size to 1024.
  17703. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17704. fails because of a regression since 0.2.0 release.
  17705. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17706. * HttpConnection.cc:
  17707. * common.h: defined the user agent name as macro
  17708. * DownloadEngine.{h, cc}:
  17709. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17710. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17711. * main.cc: Download complete/abort message is now generated by main.
  17712. * Makefile.am (SUBDIRS): Add m4.
  17713. (ACLOCAL_AMFLAGS): New variable.
  17714. (EXTRA_DIST): New variable.
  17715. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17716. * gettext: added gettext functionality
  17717. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17718. * AbstractCommand.cc:
  17719. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17720. unregister its cuid from SegmentMan.
  17721. * DownloadEngine.cc: .aria2 file was written when a downloading
  17722. failed with errors.
  17723. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17724. Added "User-Agent" header to CONNECT proxy request.
  17725. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17726. properly.
  17727. * Logger.h:
  17728. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17729. * ChunkedEncoding.cc: Added #include directive for strings.h
  17730. * Release 0.2.1
  17731. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17732. * Util.{h,cc}: added startsWith().
  17733. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17734. Util::endsWith().
  17735. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17736. * common.h: added #include directive of limit.h.
  17737. * DownloadEngine.cc: added #include directive of sys/time.h and
  17738. algorithm.
  17739. * Exception.h: added #include directive of stdio.h.
  17740. * AbstractCommand.h: added #include directive of sys/time.h.
  17741. * DownloadCommand.h: added #include directive of sys/time.h.
  17742. * *.h: added #include directive of common.h to all base classes.
  17743. subclasses' one was removed.
  17744. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17745. does not define these macros.
  17746. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17747. * Release 0.2.0
  17748. * main.cc:
  17749. * HttpInitiateConnectionCommand.{h,cc}:
  17750. * prefs.h:
  17751. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17752. We can now use GET command in http proxy.
  17753. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17754. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17755. that splits slowest segment of SegmentMan::commands vector.
  17756. This is the default split algorithm of aria2.
  17757. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17758. that splits first segment of SegmentMan::commands vector.
  17759. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17760. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17761. * Segment.h:
  17762. * SegmentMan.cc: Added speed field to Segment.h
  17763. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17764. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17765. * message.h: Change file size related %d to %lld.
  17766. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17767. * FtpInitiateConnectionCommand.{h,cc}:
  17768. * FtpNegotiationCommand.{h,cc}:
  17769. * FtpDownloadCommand.{h,cc}:
  17770. * FtpConnection.{h,cc}: Added FTP support
  17771. * SimpleLogger.cc: Log message now includes time information.
  17772. * main.cc: The value of --http-auth-scheme option is chagned from
  17773. 'BASIC' to 'basic'
  17774. * main.cc: Added --timeout command-line option.
  17775. * main.cc: Added --min-segment-size command-line option.
  17776. * main.cc: Added --max-retries command-line option.
  17777. * prefs.h: option string constants are now defined in prefs.h
  17778. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17779. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17780. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17781. with version 0.1.0's one.
  17782. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17783. * configure.in: Added --enable-ssl option to configure script.
  17784. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17785. cannot permit absoluteURI as Request-URI.
  17786. * HttpConnection.cc: Added Referer support.
  17787. * main.cc: Added referer command-line option.
  17788. * main.cc: Added rety-wait command-line option.
  17789. * Exception.h: Fixed formating bug in Exception::setMsg()
  17790. * SocketCore.{h,cc}:
  17791. * Socket.{h, cc}:
  17792. * Request.cc:
  17793. * InitiateConnectionCommandFactory.cc:
  17794. * HttpRequestCommand.cc: Added HTTPS support.
  17795. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17796. for SocketCore.
  17797. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17798. size is wrong
  17799. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17800. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17801. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17802. * Release 0.1.0