ChangeLog 714 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096
  1. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed unit test error with mingw32 build.
  3. * test/LpdMessageReceiverTest.cc
  4. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Updated automake-1.11.1
  6. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Fixed compile error and unit test error without openssl and
  8. gnutls.
  9. * src/MetalinkParserController.cc
  10. * test/MetalinkProcessorTest.cc
  11. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  12. Fixed unitest fails if openssl doesn't support sha-256.
  13. * src/MetalinkParserStateV4Impl.cc
  14. * test/MetalinkProcessorTest.cc
  15. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Wait until message arrives(again)
  17. * test/LpdMessageReceiverTest.cc
  18. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Added missing wallclock.h to SRCS.
  20. * src/Makefile.am
  21. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Fixed compile error with --disable-bittorrent
  23. * test/Metalink2RequestGroupTest.cc
  24. * test/MetalinkParserControllerTest.cc
  25. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Added --reuse-uri option. This option has existed quite long, but
  27. been hidden.
  28. * doc/aria2c.1.txt
  29. * src/OptionHandlerFactory.cc
  30. * src/usage_text.h
  31. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Ignore filename parameter if it contains directory traversal
  33. directives.
  34. * src/util.cc
  35. * test/UtilTest.cc
  36. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. urldecode -> percentDecode
  38. * src/FtpConnection.cc
  39. * src/FtpNegotiationCommand.cc
  40. * src/HttpResponse.cc
  41. * src/Request.cc
  42. * src/magnet.cc
  43. * src/util.cc
  44. * src/util.h
  45. * test/UtilTest.cc
  46. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. urlencode -> percentEncode,
  48. torrentUrlencode -> torrentPercentEncode
  49. * src/BtHandshakeMessage.cc
  50. * src/BtHandshakeMessageValidator.h
  51. * src/DHTMessageFactoryImpl.cc
  52. * src/DefaultBtAnnounce.cc
  53. * src/HandshakeExtensionMessage.cc
  54. * src/HttpRequest.cc
  55. * src/XmlRpcMethodImpl.cc
  56. * src/bittorrent_helper.cc
  57. * src/util.cc
  58. * src/util.h
  59. * test/DHTAnnouncePeerMessageTest.cc
  60. * test/DHTGetPeersMessageTest.cc
  61. * test/DHTGetPeersReplyMessageTest.cc
  62. * test/UTPexExtensionMessageTest.cc
  63. * test/UtilTest.cc
  64. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Fixed the bug that filename is percent encoded where it must be
  66. percent decoded in sendMdtm().
  67. * src/FtpConnection.cc
  68. * test/FtpConnectionTest.cc
  69. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. url -> uri in Request class.
  71. * src/AbstractCommand.cc
  72. * src/AdaptiveURISelector.cc
  73. * src/DefaultBtAnnounce.cc
  74. * src/FeedbackURISelector.cc
  75. * src/FileEntry.cc
  76. * src/FileEntry.h
  77. * src/HttpRequest.h
  78. * src/HttpResponse.cc
  79. * src/InitiateConnectionCommandFactory.cc
  80. * src/Metalink2RequestGroup.cc
  81. * src/OptionHandlerImpl.h
  82. * src/ProtocolDetector.cc
  83. * src/Request.cc
  84. * src/Request.h
  85. * src/XmlRpcMethodImpl.cc
  86. * test/AuthConfigFactoryTest.cc
  87. * test/FtpConnectionTest.cc
  88. * test/HttpRequestTest.cc
  89. * test/HttpResponseTest.cc
  90. * test/RequestTest.cc
  91. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Added getServers XML-RPC method.
  93. * doc/aria2c.1.txt
  94. * src/FileEntry.h
  95. * src/XmlRpcMethodFactory.cc
  96. * src/XmlRpcMethodImpl.cc
  97. * src/XmlRpcMethodImpl.h
  98. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Pool request when download finished.
  100. * src/DownloadCommand.cc
  101. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  103. 1-based.
  104. * doc/aria2c.1.txt
  105. * src/XmlRpcMethodImpl.cc
  106. * test/XmlRpcMethodTest.cc
  107. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Call RequestGroupMan::requestQueueCheck() when
  109. max-concurrent-downloads option is changed or new downloads are
  110. added/inserted into reserved list.
  111. * src/RequestGroupMan.cc
  112. * src/XmlRpcMethodImpl.cc
  113. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. Added aria2.forceRemove XML-RPC method.
  115. * doc/aria2c.1.txt
  116. * src/XmlRpcMethodFactory.cc
  117. * src/XmlRpcMethodImpl.cc
  118. * src/XmlRpcMethodImpl.h
  119. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Added debug log.
  121. * src/AbstractCommand.cc
  122. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Create CreateRequestCommand to the number of -s/-C when URIs are
  124. added by XML-RPC.
  125. * src/RequestGroup.cc
  126. * src/RequestGroup.h
  127. * src/XmlRpcMethodImpl.cc
  128. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  129. Added 'status' key to the response of getUri XML-RPC method.
  130. * doc/aria2c.1.txt
  131. * src/XmlRpcMethodImpl.cc
  132. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Replaced Time::reset() call with assigning of global::wallclock.
  134. * src/BtLeecherStateChoke.cc
  135. * src/BtSeederStateChoke.cc
  136. * src/PeerSessionResource.cc
  137. * src/RequestSlot.cc
  138. * src/ServerStat.cc
  139. * src/SpeedCalc.cc
  140. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  141. Added changeUri XML-RPC method. This method removes/adds URIs
  142. dynamically.
  143. * doc/aria2c.1.txt
  144. * src/AbstractCommand.cc
  145. * src/DownloadContext.cc
  146. * src/DownloadContext.h
  147. * src/FileEntry.cc
  148. * src/FileEntry.h
  149. * src/Request.cc
  150. * src/Request.h
  151. * src/RequestGroup.cc
  152. * src/RequestGroupMan.cc
  153. * src/XmlRpcMethodFactory.cc
  154. * src/XmlRpcMethodImpl.cc
  155. * src/XmlRpcMethodImpl.h
  156. * test/FileEntryTest.cc
  157. * test/XmlRpcMethodTest.cc
  158. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Rewritten copy ctor of RequestSlot to use initialization list.
  160. * src/RequestSlot.h
  161. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Added Time global::wallclock to cache "current time" to reduce the
  163. call gettimeofday(). Global variables are now in namespace global.
  164. * src/AbstractCommand.cc
  165. * src/ActivePeerConnectionCommand.cc
  166. * src/AdaptiveURISelector.cc
  167. * src/BtLeecherStateChoke.cc
  168. * src/BtLeecherStateChoke.h
  169. * src/BtSeederStateChoke.cc
  170. * src/BtSeederStateChoke.h
  171. * src/BtStopDownloadCommand.cc
  172. * src/ConsoleStatCalc.cc
  173. * src/DHTBucket.cc
  174. * src/DHTGetPeersCommand.cc
  175. * src/DHTMessageTrackerEntry.cc
  176. * src/DHTNode.cc
  177. * src/DHTPeerAnnounceEntry.cc
  178. * src/DHTPeerAnnounceStorage.cc
  179. * src/DHTSetup.cc
  180. * src/DefaultBtAnnounce.cc
  181. * src/DefaultBtInteractive.cc
  182. * src/DefaultBtMessageDispatcher.cc
  183. * src/DefaultPeerStorage.cc
  184. * src/DefaultPieceStorage.cc
  185. * src/DownloadCommand.cc
  186. * src/DownloadEngine.cc
  187. * src/FileEntry.cc
  188. * src/HttpServerBodyCommand.cc
  189. * src/HttpServerCommand.cc
  190. * src/HttpServerResponseCommand.cc
  191. * src/LpdMessageDispatcher.cc
  192. * src/MultiUrlRequestInfo.cc
  193. * src/Peer.cc
  194. * src/Peer.h
  195. * src/PeerAbstractCommand.cc
  196. * src/PeerStat.h
  197. * src/RequestSlot.cc
  198. * src/RequestSlot.h
  199. * src/SegmentMan.cc
  200. * src/ServerStatMan.cc
  201. * src/SleepCommand.cc
  202. * src/SpeedCalc.cc
  203. * src/SpeedCalc.h
  204. * src/TimeA2.cc
  205. * src/TimeA2.h
  206. * src/TimeBasedCommand.cc
  207. * src/TimeSeedCriteria.h
  208. * src/UTMetadataRequestTracker.h
  209. * src/UTPexExtensionMessage.cc
  210. * src/wallclock.h
  211. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Fixed the bug that util::itos(INT64_MIN) fails.
  213. * src/util.cc
  214. * src/util.h
  215. * test/UtilTest.cc
  216. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Fixed memory leak in SocketBuffer when _bufq is not empty when
  218. SocketBuffer is deleted. Added BufEntry constructor and deleted
  219. static factory functions.
  220. * src/SocketBuffer.cc
  221. * src/SocketBuffer.h
  222. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  224. queue maintenance is requested by RequestGroup to avoid to call
  225. the function unnecessarily.
  226. * src/FillRequestGroupCommand.cc
  227. * src/RequestGroup.cc
  228. * src/RequestGroup.h
  229. * src/RequestGroupMan.cc
  230. * src/RequestGroupMan.h
  231. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Don't use hash for Peer::id. Simple concatenation of ip address
  233. and port is enough.
  234. * src/Peer.cc
  235. * test/PeerTest.cc
  236. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  237. Enclosed log of DHTMessage::toString() with Logger::info().
  238. * src/DHTMessageDispatcherImpl.cc
  239. * src/DHTMessageReceiver.cc
  240. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Rewritten util::toHex().
  242. * src/util.cc
  243. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Removed SocketBuffer::feedAndSend(). Renamed
  245. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  246. * src/FtpConnection.cc
  247. * src/HttpConnection.cc
  248. * src/HttpServer.cc
  249. * src/MSEHandshake.cc
  250. * src/PeerConnection.cc
  251. * src/SocketBuffer.cc
  252. * src/SocketBuffer.h
  253. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Removed unused PeerConnection::sendMessage(). Updated doc.
  255. * src/PeerConnection.cc
  256. * src/PeerConnection.h
  257. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Reduced copying/std::string instantiation in sending/receiving
  259. BitTorrent messages.
  260. * src/BtBitfieldMessage.cc
  261. * src/BtBitfieldMessage.h
  262. * src/BtExtendedMessage.cc
  263. * src/BtExtendedMessage.h
  264. * src/BtHandshakeMessage.cc
  265. * src/BtHandshakeMessage.h
  266. * src/BtKeepAliveMessage.cc
  267. * src/BtKeepAliveMessage.h
  268. * src/BtPieceMessage.cc
  269. * src/BtPieceMessage.h
  270. * src/BtPortMessage.cc
  271. * src/BtPortMessage.h
  272. * src/BtUnchokeMessage.h
  273. * src/DefaultBtMessageReceiver.cc
  274. * src/IndexBtMessage.cc
  275. * src/IndexBtMessage.h
  276. * src/PeerConnection.cc
  277. * src/PeerConnection.h
  278. * src/RangeBtMessage.cc
  279. * src/RangeBtMessage.h
  280. * src/SimpleBtMessage.cc
  281. * src/SimpleBtMessage.h
  282. * src/SocketBuffer.cc
  283. * src/SocketBuffer.h
  284. * src/ZeroBtMessage.cc
  285. * src/ZeroBtMessage.h
  286. * test/BtAllowedFastMessageTest.cc
  287. * test/BtBitfieldMessageTest.cc
  288. * test/BtCancelMessageTest.cc
  289. * test/BtChokeMessageTest.cc
  290. * test/BtExtendedMessageTest.cc
  291. * test/BtHandshakeMessageTest.cc
  292. * test/BtHaveAllMessageTest.cc
  293. * test/BtHaveMessageTest.cc
  294. * test/BtHaveNoneMessageTest.cc
  295. * test/BtInterestedMessageTest.cc
  296. * test/BtKeepAliveMessageTest.cc
  297. * test/BtNotInterestedMessageTest.cc
  298. * test/BtPieceMessageTest.cc
  299. * test/BtPortMessageTest.cc
  300. * test/BtRejectMessageTest.cc
  301. * test/BtRequestMessageTest.cc
  302. * test/BtSuggestPieceMessageTest.cc
  303. * test/BtUnchokeMessageTest.cc
  304. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Rewritten SocketBuffer. Old implementation uses single std::string
  306. to store data and erase sent data, which is costly. New
  307. implementation uses deque to hold each data to avoid to mutate
  308. string.
  309. * src/SocketBuffer.cc
  310. * src/SocketBuffer.h
  311. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Removed unused FileEntry::extracted
  313. * src/FileEntry.cc
  314. * src/FileEntry.h
  315. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Wait until data arrives.
  317. * test/LpdMessageReceiverTest.cc
  318. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. In Metalink4, if size element contains invalid size, discard whole
  320. document. Added strict hash value check for metalink3/4.
  321. * src/MetalinkParserController.cc
  322. * src/MetalinkParserStateMachine.cc
  323. * src/MetalinkParserStateMachine.h
  324. * src/MetalinkParserStateV3Impl.cc
  325. * src/MetalinkParserStateV4Impl.cc
  326. * src/util.cc
  327. * src/util.h
  328. * test/MetalinkParserControllerTest.cc
  329. * test/MetalinkProcessorTest.cc
  330. * test/metalink4.xml
  331. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Added strict attribute validation for metalink4. When
  333. specification violation is found, discard the whole document.
  334. * src/ExpatMetalinkProcessor.cc
  335. * src/MetalinkParserStateMachine.cc
  336. * src/MetalinkParserStateMachine.h
  337. * src/MetalinkParserStateV4Impl.cc
  338. * src/XML2SAXMetalinkProcessor.cc
  339. * test/Makefile.am
  340. * test/MetalinkProcessorTest.cc
  341. * test/metalink4-attrs.xml: Removed
  342. * test/metalink4-dirtraversal.xml: Removed
  343. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  344. Added test for Metaurl transaction.
  345. * src/MetalinkParserController.cc
  346. * test/MetalinkParserControllerTest.cc
  347. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  348. Avoid costly BtMessage::toString() if info level log is not
  349. required.
  350. * src/DefaultBtInteractive.cc
  351. * src/Logger.h
  352. * src/SimpleBtMessage.cc
  353. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  354. Reserved vector elements based on profiler results.
  355. * src/DefaultBtInteractive.cc
  356. * src/DefaultBtProgressInfoFile.cc
  357. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  358. Avoid to calculate end() iterator in each loop. std::deque is
  359. particularly slow. Make sure that recalculate end iterator if
  360. element is erased during loop.
  361. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Use vector instead of deque for containers which is used for
  363. mostly read-only purpose.
  364. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Fixed typo
  366. * test/Makefile.am
  367. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  369. * test/Makefile.am
  370. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Small optimization: In updateTransferStatFor(), don't search peer
  372. ID twice.
  373. * src/DefaultPeerStorage.cc
  374. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Use vector instead of deque for MetalinkEntry and MetalinkResource
  376. objects.
  377. * src/Metalink2RequestGroup.cc
  378. * src/Metalink2RequestGroup.h
  379. * src/MetalinkEntry.cc
  380. * src/MetalinkEntry.h
  381. * src/MetalinkHelper.cc
  382. * src/MetalinkHelper.h
  383. * src/Metalinker.cc
  384. * src/Metalinker.h
  385. * src/main.cc
  386. * test/MetalinkEntryTest.cc
  387. * test/MetalinkHelperTest.cc
  388. * test/MetalinkProcessorTest.cc
  389. * test/MetalinkerTest.cc
  390. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Fixed the bug that grouped FileEntry objects are not used but
  392. instead all FileEntry objects are used for each metaurl group.
  393. * src/Metalink2RequestGroup.cc
  394. * test/Metalink2RequestGroupTest.cc
  395. * test/metalink4-groupbymetaurl.xml
  396. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  397. Use vector instead of deque for ChunkChecksum.
  398. * src/ChunkChecksum.h
  399. * src/MetalinkParserController.cc
  400. * src/MetalinkParserController.h
  401. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  403. algorithm in Metalink properly
  404. * src/MetalinkParserController.cc
  405. * src/MetalinkParserController.h
  406. * src/messageDigest.cc
  407. * src/messageDigest.h
  408. * test/MetalinkProcessorTest.cc
  409. * test/metalink4.xml
  410. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Replaced null or control characters in file path with '_'. For
  412. MinGW32 build, additional characters which is not allowed in
  413. Windows kernel are also replaced. util::detectDirTraversal() now
  414. returns true if given string contains null or control characters.
  415. * src/DownloadContext.cc
  416. * src/DownloadContext.h
  417. * src/Metalink2RequestGroup.cc
  418. * src/MetalinkParserController.cc
  419. * src/bittorrent_helper.cc
  420. * src/util.cc
  421. * src/util.h
  422. * test/UtilTest.cc
  423. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Discard metalink:file if its name attribute is empty string.
  425. Removed FileEntry instantiation in
  426. MetalinkParserController::setFileLengthOfEntry()
  427. * src/MetalinkParserController.cc
  428. * src/MetalinkParserStateV3Impl.cc
  429. * src/MetalinkParserStateV4Impl.cc
  430. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Discard torrent file if path data in it contains directory
  432. traversal directives. Discard metalink:file element in Metalink3
  433. format if its name attribute contains directory traversal
  434. directives. Ignore name attribute of metalink:signature element
  435. in Metalink3 format if it contains directory traversal directives.
  436. * src/MetalinkParserStateV3Impl.cc
  437. * src/bittorrent_helper.cc
  438. * src/message.h
  439. * test/BittorrentHelperTest.cc
  440. * test/Makefile.am
  441. * test/MetalinkProcessorTest.cc
  442. * test/metalink3-dirtraversal.xml
  443. * test/test.xml
  444. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Removed useless comment
  446. * src/MetalinkParserStateV4Impl.cc
  447. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Supported name attribute of metalink::metaurl element and
  449. multi-file torrent with Metalink4. Files with same metaurl are
  450. grouped and downloaded in one RequestGroup.
  451. * src/BtDependency.cc
  452. * src/FileEntry.h
  453. * src/Metalink2RequestGroup.cc
  454. * src/Metalink2RequestGroup.h
  455. * src/MetalinkEntry.cc
  456. * src/MetalinkEntry.h
  457. * src/MetalinkHelper.cc
  458. * src/MetalinkHelper.h
  459. * src/MetalinkMetaurl.cc
  460. * src/MetalinkMetaurl.h
  461. * src/MetalinkParserController.cc
  462. * src/RequestGroup.cc
  463. * src/RequestGroup.h
  464. * src/bittorrent_helper.cc
  465. * test/BittorrentHelperTest.cc
  466. * test/BtDependencyTest.cc
  467. * test/MetalinkHelperTest.cc
  468. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  470. * src/MetalinkMetaurl.h
  471. * src/MetalinkParserController.cc
  472. * src/MetalinkParserController.h
  473. * src/MetalinkParserStateMachine.cc
  474. * src/MetalinkParserStateMachine.h
  475. * src/MetalinkParserStateV4Impl.cc
  476. * test/MetalinkProcessorTest.cc
  477. * test/metalink4-dirtraversal.xml
  478. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  480. element.
  481. * src/Makefile.am
  482. * src/Metalink2RequestGroup.cc
  483. * src/MetalinkEntry.cc
  484. * src/MetalinkEntry.h
  485. * src/MetalinkMetaurl.cc
  486. * src/MetalinkMetaurl.h
  487. * src/MetalinkParserController.cc
  488. * src/MetalinkParserController.h
  489. * src/MetalinkParserStateMachine.cc
  490. * src/MetalinkParserStateMachine.h
  491. * src/MetalinkParserStateV4Impl.cc
  492. * src/MetalinkParserStateV4Impl.h
  493. * test/MetalinkProcessorTest.cc
  494. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Added Metalink4 support. Currently, name attribute of
  496. metalink::metaurl is ignored and multi-file torrent cannot be used
  497. with Metalink4.
  498. * doc/aria2c.1.txt
  499. * src/DownloadHandlerConstants.cc
  500. * src/ExpatMetalinkProcessor.cc
  501. * src/Makefile.am
  502. * src/Metalink2RequestGroup.cc
  503. * src/MetalinkEntry.cc
  504. * src/MetalinkEntry.h
  505. * src/MetalinkParserController.cc
  506. * src/MetalinkParserController.h
  507. * src/MetalinkParserState.h
  508. * src/MetalinkParserStateImpl.cc
  509. * src/MetalinkParserStateImpl.h
  510. * src/MetalinkParserStateMachine.cc
  511. * src/MetalinkParserStateMachine.h
  512. * src/MetalinkParserStateV3Impl.cc
  513. * src/MetalinkParserStateV3Impl.h
  514. * src/MetalinkParserStateV4Impl.cc
  515. * src/MetalinkParserStateV4Impl.h
  516. * src/MetalinkResource.cc
  517. * src/MetalinkResource.h
  518. * src/Metalinker.cc
  519. * src/RequestGroup.cc
  520. * src/RequestGroup.h
  521. * src/XML2SAXMetalinkProcessor.cc
  522. * src/messageDigest.cc
  523. * src/util.cc
  524. * src/util.h
  525. * test/Makefile.am
  526. * test/MetalinkEntryTest.cc
  527. * test/MetalinkParserControllerTest.cc
  528. * test/MetalinkProcessorTest.cc
  529. * test/MetalinkerTest.cc
  530. * test/UtilTest.cc
  531. * test/metalink4-attrs.xml
  532. * test/metalink4-dirtraversal.xml
  533. * test/metalink4.xml
  534. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Added aiFlags argument to getInterfaceAddress(). Use
  536. AI_NUMERICHOST to find interface specified using
  537. --bt-lpd-interface option to avoid time-consuming address lookup.
  538. * src/BtSetup.cc
  539. * src/SocketCore.cc
  540. * src/SocketCore.h
  541. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  543. is bad in LpdMessageReceiver.
  544. * src/LpdMessage.h
  545. * src/LpdMessageReceiver.cc
  546. * src/LpdMessageReceiver.h
  547. * src/LpdReceiveMessageCommand.cc
  548. * test/LpdMessageReceiverTest.cc
  549. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Added --bt-lpd-interface option to specify the interface to use
  551. for Local Peer Discovery. LpdMessageDispatcher object now has its
  552. own socket. LpdMessageReceiver's socket is binded to multicast
  553. address to only receive multicast packets.
  554. * src/BtSetup.cc
  555. * src/LpdMessageDispatcher.cc
  556. * src/LpdMessageDispatcher.h
  557. * src/LpdMessageReceiver.cc
  558. * src/LpdMessageReceiver.h
  559. * src/LpdReceiveMessageCommand.cc
  560. * src/LpdReceiveMessageCommand.h
  561. * src/OptionHandlerFactory.cc
  562. * src/SocketCore.cc
  563. * src/SocketCore.h
  564. * src/prefs.cc
  565. * src/prefs.h
  566. * src/usage_text.h
  567. * test/LpdMessageDispatcherTest.cc
  568. * test/LpdMessageReceiverTest.cc
  569. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Put the portion of code to get interface addresses in
  571. SocketCore::bindAddress() into newly added getInterfaceAddress().
  572. * src/SocketCore.cc
  573. * src/SocketCore.h
  574. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Rewritten util::parseInt() and parseUInt()
  576. * src/util.cc
  577. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Fixed compile error with mingw32 cross compiler. Defined
  579. a2_sockopt_t as void* for the target systems other than mingw32.
  580. * src/SocketCore.cc
  581. * src/a2netcompat.h
  582. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Removed 'always true' condition
  584. * src/util.cc
  585. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Documented --bt-enable-lpd option in man page.
  587. * doc/aria2c.1.txt
  588. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Added Local Peer Discovery. It is disabled by default. Use
  590. --bt-enable-lpd to enable the function.
  591. * src/BtConstants.h
  592. * src/BtSetup.cc
  593. * src/LpdDispatchMessageCommand.cc
  594. * src/LpdDispatchMessageCommand.h
  595. * src/LpdMessage.h
  596. * src/LpdMessageDispatcher.cc
  597. * src/LpdMessageDispatcher.h
  598. * src/LpdMessageReceiver.cc
  599. * src/LpdMessageReceiver.h
  600. * src/LpdReceiveMessageCommand.cc
  601. * src/LpdReceiveMessageCommand.h
  602. * src/Makefile.am
  603. * src/OptionHandlerFactory.cc
  604. * src/Peer.cc
  605. * src/Peer.h
  606. * src/PeerInteractionCommand.cc
  607. * src/SocketCore.cc
  608. * src/SocketCore.h
  609. * src/prefs.cc
  610. * src/prefs.h
  611. * src/usage_text.h
  612. * src/util.cc
  613. * src/util.h
  614. * test/LpdMessageDispatcherTest.cc
  615. * test/LpdMessageReceiverTest.cc
  616. * test/Makefile.am
  617. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. User-defined custom request headers specified by --header option
  619. now override builtin headers if they have same name.
  620. * src/HttpRequest.cc
  621. * src/HttpRequest.h
  622. * test/HttpRequestTest.cc
  623. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Rewirtten util::isNumber()
  625. * src/util.cc
  626. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  627. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  628. because without it localized error messages are not printed
  629. correctly.
  630. * src/Platform.cc
  631. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Added unit tests for util::getContentDispositionFilename() from
  633. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  634. tests are passed.
  635. * src/util.cc
  636. * test/UtilTest.cc
  637. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  639. util.cc
  640. * src/Platform.cc
  641. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Support RFC2231 "Parameter Value Character Set and Language
  643. Information" in Content-Disposition header.
  644. * src/HttpResponse.cc
  645. * src/util.cc
  646. * src/util.h
  647. * test/UtilTest.cc
  648. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  649. Print CXXFLAGS
  650. * configure.ac
  651. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Small optimization for A2_WOULDBLOCK(e)
  653. * src/SocketCore.cc
  654. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Removed test file
  656. * test/CookieStorageTest.cc
  657. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Check both EAGAIN and EWOULDBLOCK
  659. * src/SocketCore.cc
  660. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Removed ret == 0 checking for SSL_read(), SSL_write() and
  662. SSL_peek() because the checks are done in the caller. In
  663. SocketBuffer::send(), throw exception if nothing could be written
  664. and socket error was not EWOULDBLOCK
  665. * src/SocketBuffer.cc
  666. * src/SocketCore.cc
  667. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Fixed error code handling so that it can handle Winsock2 error
  669. code.
  670. * src/SocketCore.cc
  671. * src/SocketCore.h
  672. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Bump up version number to 1.9.0a
  674. * configure.ac
  675. * doc/aria2c.1.txt
  676. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Fixed the bug that aria2 doesn't handle return value if error
  678. occurred before download begins.
  679. * src/MultiUrlRequestInfo.cc
  680. * src/main.cc
  681. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Removed SegmentManFactory class.
  683. * src/AbstractSegmentManFactory.h
  684. * src/DefaultSegmentManFactory.cc
  685. * src/DefaultSegmentManFactory.h
  686. * src/Makefile.am
  687. * src/RequestGroup.cc
  688. * src/RequestGroup.h
  689. * src/SegmentManFactory.h
  690. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Destroyed digest context after getting calculated hash.
  692. * src/Piece.cc
  693. * src/Piece.h
  694. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Removed BitfieldManFactory class.
  696. * src/BitfieldManFactory.cc
  697. * src/BitfieldManFactory.h
  698. * src/DefaultPieceStorage.cc
  699. * src/Makefile.am
  700. * src/PeerSessionResource.cc
  701. * src/Piece.cc
  702. * src/main.cc
  703. * test/DefaultPieceStorageTest.cc
  704. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  705. Removed unused methods from BitfieldMan class. Moved
  706. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  707. class.
  708. * src/BitfieldMan.cc
  709. * src/BitfieldMan.h
  710. * src/BitfieldManFactory.cc
  711. * src/BitfieldManFactory.h
  712. * src/bitfield.h
  713. * src/main.cc
  714. * test/BitfieldManTest.cc
  715. * test/DefaultPieceStorageTest.cc
  716. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Moved getFirstNMissingIndex to bitfield.h and made it return the
  718. number of appended indexes.
  719. * src/BitfieldMan.cc
  720. * src/BitfieldMan.h
  721. * src/Piece.cc
  722. * src/Piece.h
  723. * src/bitfield.h
  724. * test/BitfieldManTest.cc
  725. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Added more tests.
  727. * test/BitfieldManTest.cc
  728. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  730. unused block indexes at once instead of calling
  731. getFirstMissingUnusedIndex() multiple times. Made use of it in
  732. Piece class and DefaultBtRequestFactory class via Piece class.
  733. * src/BitfieldMan.cc
  734. * src/BitfieldMan.h
  735. * src/DefaultBtRequestFactory.cc
  736. * src/Piece.cc
  737. * src/Piece.h
  738. * test/BitfieldManTest.cc
  739. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Use std::make_pair(...)
  741. * src/DHTMessageTracker.cc
  742. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Use std::make_pair(...)
  744. * src/bittorrent_helper.cc
  745. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. urlencode(removeFragment(...)) in parseUrl(...)
  747. * src/Request.cc
  748. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  750. * src/AbstractCommand.cc
  751. * src/AdaptiveURISelector.cc
  752. * src/BtPieceMessage.cc
  753. * src/BtPortMessage.cc
  754. * src/CreateRequestCommand.cc
  755. * src/DHTAbstractNodeLookupTask.cc
  756. * src/DHTBucket.cc
  757. * src/DHTGetPeersCommand.cc
  758. * src/DHTMessageDispatcherImpl.cc
  759. * src/DHTMessageFactoryImpl.cc
  760. * src/DHTMessageTracker.cc
  761. * src/DHTPeerAnnounceStorage.cc
  762. * src/DHTRoutingTable.cc
  763. * src/DHTSetup.cc
  764. * src/DefaultBtAnnounce.cc
  765. * src/DefaultBtInteractive.cc
  766. * src/DefaultBtMessageDispatcher.cc
  767. * src/DefaultBtMessageReceiver.cc
  768. * src/DefaultBtProgressInfoFile.cc
  769. * src/DefaultBtRequestFactory.cc
  770. * src/DefaultPeerStorage.cc
  771. * src/DefaultPieceStorage.cc
  772. * src/DownloadCommand.cc
  773. * src/DownloadEngine.cc
  774. * src/EpollEventPoll.cc
  775. * src/FileAllocationCommand.cc
  776. * src/FileEntry.cc
  777. * src/FtpNegotiationCommand.cc
  778. * src/HandshakeExtensionMessage.cc
  779. * src/HttpListenCommand.cc
  780. * src/HttpServer.cc
  781. * src/HttpSkipResponseCommand.cc
  782. * src/IteratableChunkChecksumValidator.cc
  783. * src/Logger.h
  784. * src/MSEHandshake.cc
  785. * src/MetalinkPostDownloadHandler.cc
  786. * src/MultiDiskAdaptor.cc
  787. * src/PeerAbstractCommand.cc
  788. * src/PeerConnection.cc
  789. * src/PeerListenCommand.cc
  790. * src/PeerReceiveHandshakeCommand.cc
  791. * src/RequestGroup.cc
  792. * src/RequestGroupMan.cc
  793. * src/SegmentMan.cc
  794. * src/SelectEventPoll.cc
  795. * src/ServerStat.cc
  796. * src/SimpleBtMessage.cc
  797. * src/SocketCore.cc
  798. * src/TrackerWatcherCommand.cc
  799. * src/UTMetadataDataExtensionMessage.cc
  800. * src/UTMetadataRequestFactory.cc
  801. * src/UTMetadataRequestTracker.cc
  802. * src/XmlRpcMethod.cc
  803. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Changed log level from debug to info
  805. * src/BtDependency.cc
  806. * src/BtPostDownloadHandler.cc
  807. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Removed unused PeerSessionResource::_latency.
  809. * src/BtConstants.h
  810. * src/BtPieceMessage.cc
  811. * src/Peer.cc
  812. * src/Peer.h
  813. * src/PeerSessionResource.cc
  814. * src/PeerSessionResource.h
  815. * test/PeerSessionResourceTest.cc
  816. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Fixed the bug that --file-allocation=falloc doesn't work with
  818. single file download.
  819. * src/AbstractSingleDiskAdaptor.cc
  820. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Release 1.8.2
  822. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Added Portuguese translation. Updated Ukrainian and Spanish
  824. translation. Thanks to all translators.
  825. * po/LINGUAS
  826. * po/es.po
  827. * po/pt.po
  828. * po/uk.po
  829. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Remove fragment from redirected URI.
  831. * src/Request.cc
  832. * test/RequestTest.cc
  833. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Updated po templates.
  835. * po/aria2.pot
  836. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Drop legacy ifdef for ares support and code cleanup.
  838. * src/AsyncNameResolver.cc
  839. * src/AsyncNameResolver.h
  840. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Call ares_library_init and ares_library_cleanup if they are
  842. available. Some code cleanups.
  843. * src/Platform.cc
  844. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Call ares_process_fd() each time after epoll to handle timeout.
  846. * src/EpollEventPoll.cc
  847. * src/EpollEventPoll.h
  848. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Suppressed type-cast compiler warning
  850. * src/CookieStorage.cc
  851. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Fixed compile error on Mac OS X.
  853. * src/CookieStorage.h
  854. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Removed cookietest.txt from Makefile.am
  856. * test/Makefile.am
  857. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. Updated version number in man page.
  859. * doc/aria2c.1.txt
  860. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Rewritten help message for --allow-overwrite option.
  862. * doc/aria2c.1.txt
  863. * src/usage_text.h
  864. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  865. Added bittorrent key to the response of tellStatus XML-RPC method.
  866. The associated value of the key is a struct and contains data
  867. retrieved from .torrent file, such as name, announce-list,
  868. comment, etc.
  869. * doc/aria2c.1.txt
  870. * src/XmlRpcMethodImpl.cc
  871. * src/XmlRpcMethodImpl.h
  872. * test/XmlRpcMethodTest.cc
  873. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Removed parse(std::istream&) and parse(const std::string&) from
  875. CookieParser.
  876. * src/CookieParser.cc
  877. * src/CookieParser.h
  878. * test/CookieParserTest.cc
  879. * test/cookietest.txt: Removed
  880. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Fixed the bug that cookie for domain a.b.c is not sent to the host
  882. a.b.c if no other cookies are stored. Fixed the bug that
  883. Cookie::markOriginServerOnly() is not called when cookies are
  884. loaded from file/sqlite3 database.
  885. * src/Cookie.h
  886. * src/CookieStorage.cc
  887. * src/NsCookieParser.cc
  888. * src/Sqlite3MozCookieParser.cc
  889. * test/CookieStorageTest.cc
  890. * test/NsCookieParserTest.cc
  891. * test/Sqlite3MozCookieParserTest.cc
  892. * test/cookies.sqlite
  893. * test/nscookietest.txt
  894. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  896. both _pieceStorage and _segmentMan are initialized or they are
  897. not.
  898. * src/RequestGroup.cc
  899. * src/RequestGroup.h
  900. * test/BtDependencyTest.cc
  901. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Bump up version number to 1.8.2
  903. * configure.ac
  904. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  905. Replaced "." with A2STR::DOT_C
  906. * src/AbstractCommand.cc
  907. * src/Cookie.cc
  908. * src/DownloadContext.cc
  909. * src/FtpConnection.cc
  910. * src/RequestGroup.cc
  911. * src/util.cc
  912. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Replaced isNumberAndDotsNotation() with isNumericHost().
  914. isNumericHost() can handle IPv6 address.
  915. * src/Cookie.cc
  916. * src/CookieStorage.cc
  917. * src/util.cc
  918. * src/util.h
  919. * test/CookieTest.cc
  920. * test/UtilTest.cc
  921. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  922. Included A2STR.h
  923. * src/CookieStorage.cc
  924. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Rewritten Cookie storage.
  926. * src/Cookie.cc
  927. * src/Cookie.h
  928. * src/CookieParser.cc
  929. * src/CookieStorage.cc
  930. * src/CookieStorage.h
  931. * src/a2functional.h
  932. * test/CookieParserTest.cc
  933. * test/CookieStorageTest.cc
  934. * test/CookieTest.cc
  935. * test/HttpResponseTest.cc
  936. * test/TestUtil.h
  937. * test/a2functionalTest.cc
  938. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Handle redirected URI which is not properly percent encoded.
  940. * src/Request.cc
  941. * test/RequestTest.cc
  942. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  944. not found' in the N times(N is where --max-file-not-found=N, N>0)
  945. in a row without single '200 OK' response.
  946. * src/RequestGroup.cc.
  947. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  949. readout by 80 characters in mingw32 build. Catch exception in
  950. DHTMessageReceiver::receiveMessage().
  951. * src/AbstractDiskWriter.cc
  952. * src/ConsoleStatCalc.cc
  953. * src/DHTMessageReceiver.cc
  954. * src/File.cc
  955. * src/RequestGroupMan.cc
  956. * src/a2io.h
  957. * test/FileTest.cc
  958. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Fixed compile error with intel compiler
  960. * src/XmlRpcMethodImpl.cc
  961. * src/XmlRpcMethodImpl.h
  962. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. Release 1.8.1
  964. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Updated Swedish, Russian and Italian translations. Thanks to all
  966. translators.
  967. * po/it.po
  968. * po/ru.po
  969. * po/sv.po
  970. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Fixed broken OptionParser::findByName().
  972. * src/OptionParser.cc
  973. * test/OptionParserTest.cc
  974. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Fixed test error without BitTorrent support.
  976. * test/XmlRpcMethodTest.cc
  977. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. Fixed compile error without GNUTLS/OpenSSL.
  979. * src/util.cc
  980. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Changed compression level to Z_DEFAULT_COMPRESSION.
  982. * src/GZipEncoder.cc
  983. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Added missing command line options: --http-no-cache,
  985. --bt-save-metadata and --bt-metadata-only.
  986. * doc/xmlrpc/aria2rpc
  987. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  989. client accepts gzip content encoding.
  990. * src/A2STR.cc
  991. * src/A2STR.h
  992. * src/GZipEncoder.cc
  993. * src/GZipEncoder.h
  994. * src/HttpHeader.cc
  995. * src/HttpHeader.h
  996. * src/HttpServer.cc
  997. * src/HttpServer.h
  998. * src/HttpServerBodyCommand.cc
  999. * src/HttpServerCommand.cc
  1000. * src/Makefile.am
  1001. * src/XmlRpcResponse.cc
  1002. * src/XmlRpcResponse.h
  1003. * test/GZipEncoderTest.cc
  1004. * test/Makefile.am
  1005. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1006. Added XML-RPC client sample code in Python.
  1007. * doc/aria2c.1.txt
  1008. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1009. Updated po templates.
  1010. * po/aria2.pot
  1011. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1012. Bump up version number to 1.8.1
  1013. * configure.ac
  1014. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Added version number to man page. Updated copyright year in man
  1016. page.
  1017. * doc/aria2c.1.txt
  1018. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Rewritten toTagString
  1020. * src/NameMatchOptionHandler.cc
  1021. * test/OptionHandlerTest.cc
  1022. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Added dir and files key to the response struct of aria2.tellStatus
  1024. XML-RPC method. The value associated with files key is the list
  1025. of files. Its element is the same struct used in aria2.getFiles
  1026. XML-RPC method. Added uris key to the response struct of
  1027. aria2.getFiles XML-RPC method. The value associated with uris key
  1028. is the list of URIs. Its element is the same struct used in
  1029. aria2.getUris XML-RPC method.
  1030. * doc/aria2c.1.txt
  1031. * src/XmlRpcMethodImpl.cc
  1032. * test/XmlRpcMethodTest.cc
  1033. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1035. struct containing Session ID, which is generated each time when
  1036. aria2 is invoked.
  1037. * doc/aria2c.1.txt
  1038. * doc/xmlrpc/aria2rpc
  1039. * src/DownloadEngine.cc
  1040. * src/DownloadEngine.h
  1041. * src/XmlRpcMethodFactory.cc
  1042. * src/XmlRpcMethodImpl.cc
  1043. * src/XmlRpcMethodImpl.h
  1044. * test/XmlRpcMethodTest.cc
  1045. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Moved generateRandomKey() from bittorrent_helper to util.
  1047. * src/DHTBucket.cc
  1048. * src/DHTNode.cc
  1049. * src/bittorrent_helper.cc
  1050. * src/bittorrent_helper.h
  1051. * src/util.cc
  1052. * src/util.h
  1053. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Updated doc about GID.
  1055. * doc/aria2c.1.txt
  1056. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1058. accepts a negative integer. 'offset' == -1 points last download
  1059. in the waiting queue and 'offset' == -2 points the download before
  1060. the last download, and so on. The downloads in the response are in
  1061. reversed order.
  1062. * doc/aria2c.1.txt
  1063. * src/XmlRpcMethodImpl.cc
  1064. * src/XmlRpcMethodImpl.h
  1065. * test/XmlRpcMethodTest.cc
  1066. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1067. Added --human-readable option. This option, when true is given,
  1068. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1069. 3.4Mi) in the console readout. The default value is true and it
  1070. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1071. appears when false is given. In this case, sizes and speed are
  1072. printed without in bytes. No Ki, Mi units conversion is used.
  1073. This may be useful for a program to parse the output of aria2.
  1074. * doc/aria2c.1.txt
  1075. * src/ConsoleStatCalc.cc
  1076. * src/ConsoleStatCalc.h
  1077. * src/OptionHandlerFactory.cc
  1078. * src/main.cc
  1079. * src/prefs.cc
  1080. * src/prefs.h
  1081. * src/usage_text.h
  1082. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1084. option accepts empty string "". When "" is given, it erases
  1085. previously defined proxy.
  1086. * doc/aria2c.1.txt
  1087. * src/OptionHandlerImpl.h
  1088. * src/usage_text.h
  1089. * test/OptionHandlerTest.cc
  1090. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1091. Code cleanup for proxy URI handling.
  1092. * src/AbstractCommand.cc
  1093. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1094. Added --bt-metadata-only option. If true is given to this option,
  1095. aria2 downloads metadata only. The file(s) described in metadata
  1096. will not be downloaded. This option has effect only when
  1097. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1098. * doc/aria2c.1.txt
  1099. * src/OptionHandlerFactory.cc
  1100. * src/UTMetadataPostDownloadHandler.cc
  1101. * src/download_helper.cc
  1102. * src/prefs.cc
  1103. * src/prefs.h
  1104. * src/usage_text.h
  1105. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1106. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1107. deleted when exception is thrown. Make sure that when passing
  1108. std::deque<Command*> to function to store Commands, handle
  1109. exception and delete these Commands.
  1110. * src/AbstractCommand.cc
  1111. * src/CheckIntegrityCommand.cc
  1112. * src/FileAllocationCommand.cc
  1113. * src/RequestGroup.cc
  1114. * src/TrackerWatcherCommand.cc
  1115. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1117. * src/A2STR.cc
  1118. * src/A2STR.h
  1119. * src/FtpNegotiationCommand.cc
  1120. * src/HttpResponseCommand.cc
  1121. * src/util.cc
  1122. * src/util.h
  1123. * test/UtilTest.cc
  1124. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Treat --dir="" as --dir="."
  1126. * src/FtpNegotiationCommand.cc
  1127. * src/HttpResponseCommand.cc
  1128. * src/Metalink2RequestGroup.cc
  1129. * src/UTMetadataPostDownloadHandler.cc
  1130. * src/bittorrent_helper.cc
  1131. * src/download_helper.cc
  1132. * src/util.cc
  1133. * src/util.h
  1134. * test/UtilTest.cc
  1135. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Code clean up.
  1137. * src/main.cc
  1138. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Reset GID to 1 when they reach maximum value. Rewritten
  1140. CUIDCounter::newID()
  1141. * src/CUIDCounter.h
  1142. * src/RequestGroup.cc
  1143. * src/RequestGroup.h
  1144. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1145. Documented --http-no-cache option in man page.
  1146. * doc/aria2c.1.txt
  1147. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Added --http-no-cache option. When true is given, aria2 sends
  1149. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1150. cached content. If false is given , these headers are not sent
  1151. and you can add Cache-Control header with a directive you like
  1152. using --header option.
  1153. * src/HttpRequest.cc
  1154. * src/HttpRequest.h
  1155. * src/HttpRequestCommand.cc
  1156. * src/OptionHandlerFactory.cc
  1157. * src/download_helper.cc
  1158. * src/prefs.cc
  1159. * src/prefs.h
  1160. * src/usage_text.h
  1161. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Removed Logger from OptionParser. When OptionParser is used to
  1163. parse options at bootstrap, LogFactory is not configured yet
  1164. properly. When LogFactory is used in OptionParser, it initializes
  1165. itself to return a logger which has no ability to write log to the
  1166. disk.
  1167. * src/OptionParser.cc
  1168. * src/OptionParser.h
  1169. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Added following sentance to the help message of --out option:
  1171. --out option is ignored when -Z is used.
  1172. * doc/aria2c.1.txt
  1173. * src/usage_text.h
  1174. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Added --bt-save-metadata option to -i list options.
  1176. * doc/aria2c.1.txt
  1177. * src/download_helper.cc
  1178. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1179. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1180. additional libraries.
  1181. * src/MultiUrlRequestInfo.cc
  1182. * src/NameResolver.cc
  1183. * src/SelectEventPoll.cc
  1184. * src/SelectEventPoll.h
  1185. * src/SocketCore.cc
  1186. * src/SocketCore.h
  1187. * src/a2netcompat.h
  1188. * src/daemon.cc
  1189. * src/main.cc
  1190. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Fixed typo.
  1192. * src/DHTMessageReceiver.cc
  1193. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Fixed the bug that causes segmentation fault if unknown option is
  1195. put in aria2.conf file. BUG#2928303
  1196. * src/OptionParser.cc
  1197. * src/OptionParser.h
  1198. * src/option_processing.cc
  1199. * test/OptionParserTest.cc
  1200. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Ignore port message with port=0.
  1202. * src/BtPortMessage.cc
  1203. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Run autoupdate
  1205. * configure.ac
  1206. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Updated autoconf/automake auxiliary files.
  1208. * INSTALL
  1209. * config.guess
  1210. * config.sub
  1211. * depcomp
  1212. * install-sh
  1213. * m4/intldir.m4
  1214. * missing
  1215. * mkinstalldirs
  1216. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Removed unused function.
  1218. * src/SharedHandle.h
  1219. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1220. Find pooled socket using all cached addresses.
  1221. * src/DNSCache.h
  1222. * src/DownloadEngine.cc
  1223. * src/DownloadEngine.h
  1224. * src/InitiateConnectionCommand.cc
  1225. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Updated copyright year.
  1227. * src/version_usage.cc
  1228. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Pool connection if _contentEncodingDecoder is used and server
  1230. supports persistent connection.
  1231. * src/HttpDownloadCommand.cc
  1232. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1233. Updated doc.
  1234. * src/DownloadCommand.cc
  1235. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. Untabify. Fixed one line in copyright which is longer than 80
  1237. columns.
  1238. * src
  1239. * test
  1240. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Release 1.8.0
  1242. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Updated po templates.
  1244. * po/aria2.pot
  1245. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1246. Documented --bt-save-metadata option in man page.
  1247. * doc/aria2c.1.txt
  1248. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Fixed usage of --bt-save-metadata option.
  1250. * src/usage_text.h
  1251. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Updated po templates.
  1253. * po/aria2.pot
  1254. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1256. causes name resolution error when none of network interface has
  1257. IPv4 address.
  1258. * src/main.cc
  1259. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Bump up version number to 1.8.0.
  1261. * configure.ac
  1262. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Use info hash as a filename when saving BitTorrent metadata.
  1264. * src/UTMetadataPostDownloadHandler.cc
  1265. * test/UTMetadataPostDownloadHandlerTest.cc
  1266. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1267. Documented system.multicall XML-RPC method in man page.
  1268. * doc/aria2c.1.txt
  1269. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Added signal handler for SIGHUP to save .aria2 file when terminal
  1271. is closed. The handler is the same one for SIGINT and SIGTERM.
  1272. * src/MultiUrlRequestInfo.cc
  1273. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Defined method name in XmlRpcMethod subclasses.
  1275. * src/XmlRpcMethodFactory.cc
  1276. * src/XmlRpcMethodImpl.cc
  1277. * src/XmlRpcMethodImpl.h
  1278. * test/XmlRpcMethodTest.cc
  1279. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Added system.multicall XML-RPC method.
  1281. * src/XmlRpcMethod.cc
  1282. * src/XmlRpcMethod.h
  1283. * src/XmlRpcMethodFactory.cc
  1284. * src/XmlRpcMethodImpl.cc
  1285. * src/XmlRpcMethodImpl.h
  1286. * test/XmlRpcMethodTest.cc
  1287. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1288. Check structure depth when decoding.
  1289. * src/bencode.cc
  1290. * src/bencode.h
  1291. * test/BencodeTest.cc
  1292. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Documented tellStopped XML-RPC method in man page.
  1294. * doc/aria2c.1.txt
  1295. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Added tellStopped XML-RPC method to aria2rpc.
  1297. * doc/xmlrpc/aria2rpc
  1298. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1299. Added tellStopped XML-RPC method. This method returns stopped
  1300. download in the specified range. It takes same parameters with
  1301. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1302. * src/XmlRpcMethodFactory.cc
  1303. * src/XmlRpcMethodImpl.cc
  1304. * src/XmlRpcMethodImpl.h
  1305. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1307. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1308. when conducting unit tests because they fail if networking
  1309. interface is not configured with IPv4 address.
  1310. * src/NameResolver.cc
  1311. * src/SocketCore.cc
  1312. * src/SocketCore.h
  1313. * src/a2netcompat.h
  1314. * test/AllTest.cc
  1315. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Fixed unit test error
  1317. * test/UTMetadataPostDownloadHandlerTest.cc
  1318. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Defined static string constants for efficiency.
  1320. * src/XmlRpcMethodImpl.cc
  1321. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Added --bt-save-metadata option. When true is given, it saves
  1323. metadata as .torrent file. This option has effect only when
  1324. BitTorrent Magnet URI is used. The filename is name in metadata
  1325. with suffix .torrent. The directory to be saved is the same
  1326. directory where download file is saved. If the same file already
  1327. exists, metdata is not saved.
  1328. * src/OptionHandlerFactory.cc
  1329. * src/UTMetadataPostDownloadHandler.cc
  1330. * src/UTMetadataPostDownloadHandler.h
  1331. * src/message.h
  1332. * src/prefs.cc
  1333. * src/prefs.h
  1334. * src/usage_text.h
  1335. * test/UTMetadataDataExtensionMessageTest.cc
  1336. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Added util::saveAs() function. Use it in Signature::save().
  1338. * src/Signature.cc
  1339. * src/util.cc
  1340. * src/util.h
  1341. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Upcase info hash in Magnet URI.
  1343. * doc/aria2c.1.txt
  1344. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Refactored RequestGroupMan::changeReservedGroupPosition()
  1346. * src/RequestGroupMan.cc
  1347. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Updated the description for aria2.addTorrent XML-RPC method.
  1349. * doc/aria2c.1.txt
  1350. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Added changePosition to aria2rpc.
  1352. * doc/xmlrpc/aria2rpc
  1353. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Documented changePosition XML-RPC method in man page.
  1355. * doc/aria2c.1.txt
  1356. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1358. pos and how. This method changes the position of download denoted
  1359. by gid. If how is POS_SET, it moves the download to a position
  1360. relative to the beginning of the queue. If how is POS_CUR, it
  1361. moves the download to a position relative to the current
  1362. position. If how is POS_END, it moves the download to a position
  1363. relative to the end of the queue. If the destination position is
  1364. less than 0 or beyond the end of the queue, it moves the download
  1365. to the beginning or the end of the queue respectively. Returns
  1366. the destination position.
  1367. * src/RequestGroupMan.cc
  1368. * src/RequestGroupMan.h
  1369. * src/XmlRpcMethodFactory.cc
  1370. * src/XmlRpcMethodImpl.cc
  1371. * src/XmlRpcMethodImpl.h
  1372. * test/RequestGroupManTest.cc
  1373. * test/XmlRpcMethodTest.cc
  1374. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Added getOption and getGlobalOption to aria2rpc.
  1376. * doc/xmlrpc/aria2rpc
  1377. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Documented getOption and getGlobalOption XML-RPC method in man
  1379. page
  1380. * doc/aria2c.1.txt
  1381. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Added getOption and getGlobalOption XML-RPC method. getOption
  1383. takes GID as a parameter and returns its options as struct.
  1384. getGlobalOption takes no parameter and returns global
  1385. options. Because global option is used as a template for the
  1386. option of newly added downloads, it includes options returned by
  1387. getOption.
  1388. * src/Option.h
  1389. * src/XmlRpcMethodFactory.cc
  1390. * src/XmlRpcMethodImpl.cc
  1391. * src/XmlRpcMethodImpl.h
  1392. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Sort _optionHandlers in OptionParser by name in ascending order.
  1394. Use vector instead of deque for efficiency.
  1395. * src/OptionHandler.h
  1396. * src/OptionHandlerFactory.h
  1397. * src/OptionParser.cc
  1398. * src/OptionParser.h
  1399. * src/version_usage.cc
  1400. * test/OptionParserTest.cc
  1401. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Code cleanup
  1403. * src/XmlRpcMethod.cc
  1404. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Documented about followedBy and belongsTo in man page.
  1406. * doc/aria2c.1.txt
  1407. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Added following 2 keys, followedBy and belongsTo, to the response
  1409. of tellStatus.
  1410. followedBy: List of GIDs which are generated by the consequence of
  1411. this download. For example, when aria2 downloaded Metalink file,
  1412. it generates downloads described in it(see *--follow-metalink*
  1413. option). This value is useful to track these auto generated
  1414. downloads. If there is no such downloads, this key will not be
  1415. included in the response.
  1416. belongsTo: GID of a parent download. Some downloads are a part of
  1417. another download. For example, if a file in Metalink has
  1418. BitTorrent resource, the download of .torrent is a part of that
  1419. file. If this download has no parent, this key will not be
  1420. included in the response.
  1421. * src/BtPostDownloadHandler.cc
  1422. * src/DownloadResult.h
  1423. * src/Metalink2RequestGroup.cc
  1424. * src/MetalinkPostDownloadHandler.cc
  1425. * src/RequestGroup.cc
  1426. * src/RequestGroup.h
  1427. * src/UTMetadataPostDownloadHandler.cc
  1428. * src/XmlRpcMethodImpl.cc
  1429. * src/XmlRpcMethodImpl.h
  1430. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Assigned BObject in BDE() to avoid segmentation fault when calling
  1432. methods of BDE::none().
  1433. * src/BDE.cc
  1434. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Show info hash in Magnet URI in upper case letters in -S output.
  1436. * src/bittorrent_helper.cc
  1437. * test/BittorrentHelperTest.cc
  1438. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Removed old useless comment
  1440. * src/MultiUrlRequestInfo.cc
  1441. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1442. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1443. not properly used in configure script and failed to detect gnutls.
  1444. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1445. and the initialization of pkg-config is done in first occurrence
  1446. of PKG_CHECK_MODULES which is not executed because it is inside of
  1447. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1448. * configure.ac
  1449. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Release 1.7.2
  1451. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1452. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1453. true even if all downloads haven't finished, especially when
  1454. PostDownloadHandler is involved. Changed the condition so that it
  1455. only returns true if both _requestGroups and _reservedGroups are
  1456. empty.
  1457. * src/RequestGroupMan.cc
  1458. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Log listening port for BitTorrent/DHT in notice level.
  1460. * src/DHTConnectionImpl.cc
  1461. * src/PeerListenCommand.cc
  1462. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Updated po templates.
  1464. * po/aria2.pot
  1465. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Bump up version number to 1.7.2
  1467. * configure.ac
  1468. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Changed default value of --enable-dht from 'false' to 'true'.
  1470. * doc/aria2c.1.txt
  1471. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Enabled DHT by default because of Magnet URI support. To disable
  1473. DHT, use --enable-dht=false
  1474. * src/OptionHandlerFactory.cc
  1475. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Print Magnet URI in -S output.
  1477. * src/AnnounceList.cc
  1478. * src/bittorrent_helper.cc
  1479. * src/bittorrent_helper.h
  1480. * test/BittorrentHelperTest.cc
  1481. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Added --bt-prioritize-piece option to aria2rpc.
  1483. * doc/xmlrpc/aria2rpc
  1484. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Refer Magnet URI in --help. Made some cosmetic changes.
  1486. * src/version_usage.cc
  1487. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Updated -T and -M option.
  1489. * doc/aria2c.1.txt
  1490. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Fixed typo
  1492. * doc/aria2c.1.txt
  1493. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Fixed the bug that line separator is missing in horizontal bar.
  1495. * doc/xmlrpc/aria2mon
  1496. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Updated usage text for --metalink-file option.
  1498. * src/usage_text.h
  1499. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. If '-' is given as an argument to --metalink-file option, aria2
  1501. reads Metalink file from stdin.
  1502. * src/OptionHandlerFactory.cc
  1503. * src/OptionHandlerImpl.h
  1504. * src/a2io.h
  1505. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Fixed the bug that aria2 listens wrong port if --interface option
  1507. is used.
  1508. * src/SocketCore.cc
  1509. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1510. Fixed the bug that query parameter in magnet URI is not decoded.
  1511. * src/magnet.cc
  1512. * test/MagnetTest.cc
  1513. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Specified defaultSize as an argument for easy testing.
  1515. * src/util.cc
  1516. * src/util.h
  1517. * test/UtilTest.cc
  1518. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1519. Release 1.7.1
  1520. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1521. Bump up version number to 1.7.1
  1522. * configure.ac
  1523. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1524. Fixed the bug --bt-prioritize-piece=tail is not working.
  1525. * src/util.cc
  1526. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Release 1.7.0
  1528. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Updated po templates.
  1530. * po/aria2.pot
  1531. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Updated help message for --bt-prioritize-piece. Some cosmetic
  1533. changes.
  1534. * doc/aria2c.1.txt
  1535. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1537. * src/usage_text.h
  1538. * src/util.cc
  1539. * test/UtilTest.cc
  1540. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1541. Updated Russian, Ukrainian, German and French translations.
  1542. Thanks to all translators involved.
  1543. * po/de.po
  1544. * po/fr.po
  1545. * po/ru.po
  1546. * po/uk.po
  1547. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Mentioned about pkg-config
  1549. * README
  1550. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Fixed typo. Referred --index-out option in BitTorrent notes.
  1552. * README
  1553. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1555. bind, try all addresses until success
  1556. * src/SocketCore.cc
  1557. * src/SocketCore.h
  1558. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Updated po templates.
  1560. * po/aria2.pot
  1561. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Bump up version number to 1.7.0
  1563. * configure.ac
  1564. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1566. * src/DefaultPieceStorage.cc
  1567. * src/DefaultPieceStorage.h
  1568. * src/PieceStorage.h
  1569. * src/UnknownLengthPieceStorage.cc
  1570. * src/UnknownLengthPieceStorage.h
  1571. * test/MockPieceStorage.h
  1572. * test/ProtocolDetectorTest.cc
  1573. * test/XmlRpcMethodTest.cc
  1574. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Documented in man page that if getifaddrs() is missing,
  1576. --interface option doesn't accept interface name.
  1577. * doc/aria2c.1.txt
  1578. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1580. * src/DefaultBtAnnounce.cc
  1581. * src/DefaultBtAnnounce.h
  1582. * test/DefaultBtAnnounceTest.cc
  1583. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Fixed the bug that connection is always dropped if handshake
  1585. message in extension protocol don't have metadata_size.
  1586. src/HandshakeExtensionMessage.cc
  1587. * src/HandshakeExtensionMessage.cc
  1588. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1590. text saying DHT is recommended when Magnet URI is provided.
  1591. * doc/aria2c.1.txt
  1592. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1594. URI is supplied. Notify user that they should consider enabling
  1595. DHT if they use Magnet URI.
  1596. * src/RequestGroup.cc
  1597. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Added --disable-ipv6 option to disable IPv6.
  1599. * doc/aria2c.1.txt
  1600. * src/InitiateConnectionCommand.cc
  1601. * src/NameResolver.cc
  1602. * src/NameResolver.h
  1603. * src/OptionHandlerFactory.cc
  1604. * src/main.cc
  1605. * src/prefs.cc
  1606. * src/prefs.h
  1607. * src/usage_text.h
  1608. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Updated usage text for --bt-prioritize-piece option.
  1610. * doc/aria2c.1.txt
  1611. * src/usage_text.h
  1612. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1613. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1614. given and PACKAGE is missing in the system or FEATURE cannot be
  1615. enabled, print error message and stop the script.
  1616. * configure.ac
  1617. * m4/aria2_arg.m4
  1618. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Halt metadata download immediately when metadata download is done.
  1620. Don't wait unresponsive tracker.
  1621. * src/ByteArrayDiskWriter.h
  1622. * src/DefaultBtInteractive.cc
  1623. * src/DefaultExtensionMessageFactory.cc
  1624. * src/DefaultExtensionMessageFactory.h
  1625. * src/PeerInteractionCommand.cc
  1626. * src/UTMetadataDataExtensionMessage.cc
  1627. * src/UTMetadataDataExtensionMessage.h
  1628. * src/UTMetadataRequestExtensionMessage.cc
  1629. * test/UTMetadataDataExtensionMessageTest.cc
  1630. * test/UTMetadataRequestExtensionMessageTest.cc
  1631. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Documented --interface option in man page.
  1633. * doc/aria2c.1.txt
  1634. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Try resolved address in the order received from the resolver.
  1636. * src/DNSCache.h
  1637. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Added debug logs.
  1639. * src/SocketCore.cc
  1640. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Fixed type of tail to uint64_t
  1642. * src/util.cc
  1643. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Added --interface option. This feature binds sockets to given
  1645. interface. You can specify interface name, IP address and
  1646. hostname.
  1647. * configure.ac
  1648. * src/OptionHandlerFactory.cc
  1649. * src/SocketCore.cc
  1650. * src/SocketCore.h
  1651. * src/main.cc
  1652. * src/message.h
  1653. * src/prefs.cc
  1654. * src/prefs.h
  1655. * src/usage_text.h
  1656. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1657. Updated man page for bt-prioritize-piece option in -i list.
  1658. * doc/aria2c.1.txt
  1659. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Added bt-prioritize-piece option to -i list.
  1661. * src/download_helper.cc
  1662. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Removed --http-auth-scheme option from man page.
  1664. * doc/aria2c.1.txt
  1665. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1666. Removed --http-auth-scheme option since it doesn't do nothing.
  1667. * src/OptionHandlerFactory.cc
  1668. * src/prefs.cc
  1669. * src/prefs.h
  1670. * src/usage_text.h
  1671. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Adjusted the number of peer info which get_peers reply message can
  1673. carry.
  1674. * src/DHTGetPeersReplyMessage.cc
  1675. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Added extension_message_test_helper.h to aria2c_SOURCES.
  1677. * test/Makefile.am
  1678. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Documented --bt-prioritize-piece option in man page.
  1680. * doc/aria2c.1.txt
  1681. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Added option --bt-prioritize-piece. This option instruct aria2 to
  1683. try to download first and last pieces of each file first. The
  1684. argument can contain 2 keywords:head and tail. To include both
  1685. keywords, they must be separated by comma. These keywords can take
  1686. one parameter, SIZE. For example , if head=SIZE is specified,
  1687. pieces in the range of first SIZE bytes of each file get higher
  1688. priority. tail=SIZE means the range of last SIZE bytes of each
  1689. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1690. * src/DefaultPieceStorage.h
  1691. * src/Makefile.am
  1692. * src/OptionHandlerFactory.cc
  1693. * src/OptionHandlerImpl.h
  1694. * src/PriorityPieceSelector.cc
  1695. * src/PriorityPieceSelector.h
  1696. * src/RequestGroup.cc
  1697. * src/prefs.cc
  1698. * src/prefs.h
  1699. * src/usage_text.h
  1700. * src/util.cc
  1701. * src/util.h
  1702. * test/Makefile.am
  1703. * test/MockPieceSelector.h
  1704. * test/PriorityPieceSelectorTest.cc
  1705. * test/UtilTest.cc
  1706. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1707. Fixed typo
  1708. * src/HttpRequest.h
  1709. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. In Magnet URI with tr parameter, put each announce URI in separate
  1711. tier.
  1712. * src/bittorrent_helper.cc
  1713. * test/BittorrentHelperTest.cc
  1714. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1715. Renamed ExtensionMessage::getBencodedData() as
  1716. ExtensionMessage::getPayload()
  1717. * src/BtExtendedMessage.cc
  1718. * src/ExtensionMessage.h
  1719. * src/HandshakeExtensionMessage.cc
  1720. * src/HandshakeExtensionMessage.h
  1721. * src/UTMetadataDataExtensionMessage.cc
  1722. * src/UTMetadataDataExtensionMessage.h
  1723. * src/UTMetadataRejectExtensionMessage.cc
  1724. * src/UTMetadataRejectExtensionMessage.h
  1725. * src/UTMetadataRequestExtensionMessage.cc
  1726. * src/UTMetadataRequestExtensionMessage.h
  1727. * src/UTPexExtensionMessage.cc
  1728. * src/UTPexExtensionMessage.h
  1729. * test/HandshakeExtensionMessageTest.cc
  1730. * test/MockExtensionMessage.h
  1731. * test/UTMetadataDataExtensionMessageTest.cc
  1732. * test/UTMetadataRejectExtensionMessageTest.cc
  1733. * test/UTMetadataRequestExtensionMessageTest.cc
  1734. * test/UTPexExtensionMessageTest.cc
  1735. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. Updated man page for BitTorrent Magnet URI.
  1737. * doc/aria2c.1.txt
  1738. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1739. Call DownloadContext::setOwnerRequestGroup() in
  1740. RequestGroup::setDownloadContext().
  1741. * src/BtDependency.cc
  1742. * src/RequestGroup.cc
  1743. * src/RequestGroup.h
  1744. * src/download_helper.cc
  1745. * test/DefaultBtMessageDispatcherTest.cc
  1746. * test/DefaultExtensionMessageFactoryTest.cc
  1747. * test/HandshakeExtensionMessageTest.cc
  1748. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1749. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1750. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1751. from metadata, use new metadata2Torrent() function.
  1752. * src/BtDependency.cc
  1753. * src/UTMetadataPostDownloadHandler.cc
  1754. * src/bittorrent_helper.cc
  1755. * src/bittorrent_helper.h
  1756. * test/BittorrentHelperTest.cc
  1757. * test/BtDependencyTest.cc
  1758. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Use createRequestGroupForUri to create the download for torrent
  1760. file.
  1761. * src/Metalink2RequestGroup.cc
  1762. * test/Metalink2RequestGroupTest.cc
  1763. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1764. Fixed typo
  1765. * src/DownloadContext.h
  1766. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1767. Use createRequestGroupForBitTorrent()
  1768. * src/BtPostDownloadHandler.cc
  1769. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1770. Added remove().
  1771. * src/Option.cc
  1772. * src/Option.h
  1773. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Removed options which is only valid for URIs specified in
  1775. command-line. If they are left, because op is used as a template
  1776. for new RequestGroup(such as created in XML-RPC command,
  1777. BtPostDownloadHandler etc), they causes unintentional effect.
  1778. * src/main.cc
  1779. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Refer to option value of PREF_OUT only in download_helper.
  1781. * src/FtpNegotiationCommand.cc
  1782. * src/HttpResponseCommand.cc
  1783. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1784. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1785. * src/download_helper.cc
  1786. * src/download_helper.h
  1787. * src/XmlRpcMethodImpl.cc
  1788. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Updated man page for changeOption XML-RPC method.
  1790. * doc/aria2c.1.txt
  1791. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1792. Added --bt-max-peers option to changeOption XML-RPC method.
  1793. * src/XmlRpcMethod.cc
  1794. * src/XmlRpcMethodImpl.cc
  1795. * test/XmlRpcMethodTest.cc
  1796. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1798. * test/XmlRpcMethodTest.cc
  1799. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Removed redundant DownloadContext::hasAttribute(...) calls.
  1801. * src/ConsoleStatCalc.cc
  1802. * src/RequestGroup.cc
  1803. * src/XmlRpcMethodImpl.cc
  1804. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Changed the number of tracker request attempt from 5 to 2.
  1806. * src/TrackerWatcherCommand.cc
  1807. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1808. Use host and protocol in original URI, because URI selector
  1809. selects URI based on original URI, not redirected one.
  1810. * src/Request.cc
  1811. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Fixed the bug which causes segmentation fault with tellWaiting
  1813. XML-RPC method when BitTorrent download is waiting. The key of
  1814. BtRegistry is changed from info hash to GID, because it is
  1815. registered per RequestGroup, not info hash.
  1816. * src/BtRegistry.cc
  1817. * src/BtRegistry.h
  1818. * src/BtSetup.cc
  1819. * src/ConsoleStatCalc.cc
  1820. * src/InitiatorMSEHandshakeCommand.cc
  1821. * src/PeerInitiateConnectionCommand.cc
  1822. * src/PeerInteractionCommand.cc
  1823. * src/PeerInteractionCommand.h
  1824. * src/PeerReceiveHandshakeCommand.cc
  1825. * src/RequestGroup.cc
  1826. * src/XmlRpcMethodImpl.cc
  1827. * test/BtRegistryTest.cc
  1828. * test/XmlRpcMethodTest.cc
  1829. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Updated man page for changeOption XML-RPC method.
  1831. * doc/aria2c.1.txt
  1832. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1833. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1834. method.
  1835. * src/XmlRpcMethod.cc
  1836. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1837. Documented about BitTorrent Magnet URI in man page.
  1838. * doc/aria2c.1.txt
  1839. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1840. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1841. inherited to generated RequestGroup.
  1842. * src/UTMetadataPostDownloadHandler.cc
  1843. * test/UTMetadataPostDownloadHandlerTest.cc
  1844. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Prepended "[METADATA]" before dn.
  1846. * src/bittorrent_helper.cc
  1847. * test/BittorrentHelperTest.cc
  1848. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1849. Rewritten Magnet URI parser.
  1850. * src/Makefile.am
  1851. * src/ProtocolDetector.cc
  1852. * src/bittorrent_helper.cc
  1853. * src/bittorrent_helper.h
  1854. * src/download_helper.cc
  1855. * src/magnet.cc
  1856. * src/magnet.h
  1857. * test/BittorrentHelperTest.cc
  1858. * test/MagnetTest.cc
  1859. * test/Makefile.am
  1860. * test/ProtocolDetectorTest.cc
  1861. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Use hton64
  1863. * src/base32.cc
  1864. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1865. Added Base32 encoded BitTorrent Magnet Link support.
  1866. * src/Makefile.am
  1867. * src/base32.cc
  1868. * src/base32.h
  1869. * src/bittorrent_helper.cc
  1870. * test/Base32Test.cc
  1871. * test/BittorrentHelperTest.cc
  1872. * test/Makefile.am
  1873. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1875. supported yet. Fixed typo in method name in RequestGroup. In
  1876. metadataGetMode, don't show "Your share ratio was ..." message.
  1877. * src/DefaultBtInteractive.cc
  1878. * src/DefaultBtInteractive.h
  1879. * src/DownloadHandlerFactory.cc
  1880. * src/DownloadHandlerFactory.h
  1881. * src/HandshakeExtensionMessage.cc
  1882. * src/Makefile.am
  1883. * src/Metalink2RequestGroup.cc
  1884. * src/PeerInteractionCommand.cc
  1885. * src/RequestGroup.cc
  1886. * src/RequestGroup.h
  1887. * src/UTMetadataPostDownloadHandler.cc
  1888. * src/UTMetadataPostDownloadHandler.h
  1889. * src/download_helper.cc
  1890. * test/HandshakeExtensionMessageTest.cc
  1891. * test/Makefile.am
  1892. * test/UTMetadataPostDownloadHandlerTest.cc
  1893. * test/UTMetadataRejectExtensionMessageTest.cc
  1894. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. In metadataGetMode, don't show SEEDING.
  1896. * src/ConsoleStatCalc.cc
  1897. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Fixed ut_metadata data handling. Implemented
  1899. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1900. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1901. metadata_size is received.
  1902. * src/DefaultExtensionMessageFactory.cc
  1903. * src/DefaultExtensionMessageFactory.h
  1904. * src/HandshakeExtensionMessage.cc
  1905. * src/HandshakeExtensionMessage.h
  1906. * src/UTMetadataDataExtensionMessage.cc
  1907. * src/UTMetadataDataExtensionMessage.h
  1908. * src/UTMetadataRequestExtensionMessage.cc
  1909. * src/UTMetadataRequestFactory.cc
  1910. * src/UTMetadataRequestFactory.h
  1911. * src/UTMetadataRequestTracker.cc
  1912. * src/UTMetadataRequestTracker.h
  1913. * test/DefaultExtensionMessageFactoryTest.cc
  1914. * test/HandshakeExtensionMessageTest.cc
  1915. * test/MockBtMessage.h
  1916. * test/UTMetadataDataExtensionMessageTest.cc
  1917. * test/UTMetadataRequestExtensionMessageTest.cc
  1918. * test/UTMetadataRequestFactoryTest.cc
  1919. * test/UTMetadataRequestTrackerTest.cc
  1920. * test/extension_message_test_helper.h
  1921. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. Drop connection if ut_metadata reject message is received.
  1923. * src/UTMetadataRejectExtensionMessage.cc
  1924. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1925. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1926. get high enough in that mode.
  1927. * src/ActivePeerConnectionCommand.cc
  1928. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Added BitTorrent magnet link support to ProtocolDetector.
  1930. * src/ProtocolDetector.cc
  1931. * src/ProtocolDetector.h
  1932. * test/ProtocolDetectorTest.cc
  1933. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Don't inject validator into BtMessage in metadataGetMode because
  1935. most of the checks depends on the total length of download but it
  1936. is unknown. Delegate metadataGetMode to BtMessage.
  1937. * src/DefaultBtMessageFactory.cc
  1938. * src/DefaultBtMessageFactory.h
  1939. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1941. * src/DefaultPieceStorage.h
  1942. * src/PieceStorage.h
  1943. * src/UnknownLengthPieceStorage.h
  1944. * test/MockPieceStorage.h
  1945. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1946. Added markTotalLengthIsKnown().
  1947. * src/DownloadContext.h
  1948. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1949. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1950. missing. If metadata is missing, always use DHT when it is ready.
  1951. * src/BtSetup.cc
  1952. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Added parseMagnetLink(). Hex encoded info hash is supported.
  1954. Base32 encoded info hash is not supported yet.
  1955. * src/bittorrent_helper.cc
  1956. * src/bittorrent_helper.h
  1957. * test/BittorrentHelperTest.cc
  1958. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Added FromHex()
  1960. * src/util.cc
  1961. * src/util.h
  1962. * test/UtilTest.cc
  1963. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Added _metadataGetMode member variable. It toggles the action when
  1965. messages are received: usually they almost do nothing if
  1966. _metadataGetMode is true.
  1967. * src/AbstractBtMessage.cc
  1968. * src/AbstractBtMessage.h
  1969. * src/BtAllowedFastMessage.cc
  1970. * src/BtBitfieldMessage.cc
  1971. * src/BtCancelMessage.cc
  1972. * src/BtChokeMessage.cc
  1973. * src/BtHaveAllMessage.cc
  1974. * src/BtHaveMessage.cc
  1975. * src/BtInterestedMessage.cc
  1976. * src/BtNotInterestedMessage.cc
  1977. * src/BtPieceMessage.cc
  1978. * src/BtRejectMessage.cc
  1979. * src/BtRequestMessage.cc
  1980. * src/BtUnchokeMessage.cc
  1981. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1982. Added bencode::decode overload functions. They have extra argument
  1983. 'end', passed by reference. 'end' points to the beyond the last
  1984. position of data used in decoding process.
  1985. * src/bencode.cc
  1986. * src/bencode.h
  1987. * test/BencodeTest.cc
  1988. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Initial support of Extension for Peers to Send Metadata
  1990. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1991. metadata from swarm.
  1992. * src/BtConstants.h
  1993. * src/DefaultBtInteractive.cc
  1994. * src/DefaultExtensionMessageFactory.cc
  1995. * src/DefaultExtensionMessageFactory.h
  1996. * src/ExtensionMessage.h
  1997. * src/ExtensionMessageRegistry.h
  1998. * src/HandshakeExtensionMessage.cc
  1999. * src/HandshakeExtensionMessage.h
  2000. * src/Makefile.am
  2001. * src/PeerConnection.h
  2002. * src/PeerInteractionCommand.cc
  2003. * src/UTMetadataDataExtensionMessage.cc
  2004. * src/UTMetadataDataExtensionMessage.h
  2005. * src/UTMetadataExtensionMessage.cc
  2006. * src/UTMetadataExtensionMessage.h
  2007. * src/UTMetadataRejectExtensionMessage.cc
  2008. * src/UTMetadataRejectExtensionMessage.h
  2009. * src/UTMetadataRequestExtensionMessage.cc
  2010. * src/UTMetadataRequestExtensionMessage.h
  2011. * src/bittorrent_helper.cc
  2012. * src/bittorrent_helper.h
  2013. * test/BittorrentHelperTest.cc
  2014. * test/DefaultExtensionMessageFactoryTest.cc
  2015. * test/HandshakeExtensionMessageTest.cc
  2016. * test/Makefile.am
  2017. * test/UTMetadataDataExtensionMessageTest.cc
  2018. * test/UTMetadataRejectExtensionMessageTest.cc
  2019. * test/UTMetadataRequestExtensionMessageTest.cc
  2020. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Cancel segment in prepareForRetry() because there is a chance that
  2022. the command has segments.
  2023. * src/CreateRequestCommand.cc
  2024. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2025. Fixed the bug that slow server is not knocked down in favor of
  2026. faster one.
  2027. * src/AbstractCommand.cc
  2028. * src/DefaultPieceStorage.cc
  2029. * src/DefaultPieceStorage.h
  2030. * src/PieceStorage.h
  2031. * src/UnknownLengthPieceStorage.cc
  2032. * src/UnknownLengthPieceStorage.h
  2033. * test/MockPieceStorage.h
  2034. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. Fixed the bug that Request object is not added to
  2036. _inFlightRequests in findFasterRequest().
  2037. * src/FileEntry.cc
  2038. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Changed the strategry of how to increase the number of outstanding
  2040. requests. Now the number is doubled if there are no outstanding
  2041. requests after receiving messages.
  2042. * src/BtConstants.h
  2043. * src/DefaultBtInteractive.cc
  2044. * src/DefaultBtInteractive.h
  2045. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Check socket for reading if there are outstanding requests.
  2047. * src/PeerInteractionCommand.cc
  2048. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2049. Moved frequently called methods to header file so they get
  2050. inlined.
  2051. * src/RequestSlot.cc
  2052. * src/RequestSlot.h
  2053. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Copied in_addr instead of just casting from char* which might
  2055. violate strict aliasing rules.
  2056. * src/AsyncNameResolver.cc
  2057. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Use dynamic_pointer_cast
  2059. * test/BtPieceMessageTest.cc
  2060. * test/BtRequestMessageTest.cc
  2061. * test/DefaultBtRequestFactoryTest.cc
  2062. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Added testSetUrl20()
  2064. * test/RequestTest.cc
  2065. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Code cleanup
  2067. * src/bittorrent_helper.cc
  2068. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Use C++ style cast
  2070. * src/AsyncNameResolver.cc
  2071. * src/Base64.h
  2072. * src/BtBitfieldMessage.cc
  2073. * src/BtHandshakeMessage.cc
  2074. * src/DefaultBtMessageFactory.cc
  2075. * src/DefaultBtProgressInfoFile.cc
  2076. * src/EpollEventPoll.cc
  2077. * src/ExpatMetalinkProcessor.cc
  2078. * src/IteratableChecksumValidator.cc
  2079. * src/IteratableChunkChecksumValidator.cc
  2080. * src/MessageDigestHelper.cc
  2081. * src/Platform.cc
  2082. * src/RequestGroupMan.cc
  2083. * src/SingleFileAllocationIterator.cc
  2084. * src/Sqlite3MozCookieParser.cc
  2085. * src/XML2SAXMetalinkProcessor.cc
  2086. * src/Xml2XmlRpcRequestProcessor.cc
  2087. * src/util.cc
  2088. * src/util.h
  2089. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2090. Fixed integer potential alignment problem.
  2091. * src/bitfield.h
  2092. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2093. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2094. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2095. include file ordering.
  2096. * src/PeerListProcessor.h
  2097. * src/bittorrent_helper.cc
  2098. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2100. * src/Request.cc
  2101. * src/util.cc
  2102. * src/util.h
  2103. * test/RequestTest.cc
  2104. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Rewritten util::uitos()
  2106. * src/util.h
  2107. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Code cleanup
  2109. * src/Request.cc
  2110. * src/Request.h
  2111. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Rewritten Request::parseUrl()
  2113. * src/Request.cc
  2114. * test/RequestTest.cc
  2115. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Removed unused macro SAFE_CHARS
  2117. * src/Request.cc
  2118. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Updated doc
  2120. * src/DHTRoutingTableDeserializer.cc
  2121. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Release 1.6.3
  2123. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Removed unused function.
  2125. * test/DHTPeerAnnounceStorageTest.cc
  2126. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Only decrement cols if cols > 0
  2128. * src/ConsoleStatCalc.cc
  2129. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2130. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2131. translations. Thanks to all translators.
  2132. * po/ca.po
  2133. * po/fr.po
  2134. * po/it.po
  2135. * po/ja.po
  2136. * po/pl.po
  2137. * po/ru.po
  2138. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Updated translation template
  2140. * po
  2141. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Fixed compile error without ssl library.
  2143. * src/util.cc
  2144. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Logged received nodes in get_peers reply message.
  2146. * src/DHTAbstractNodeLookupTask.cc
  2147. * src/DHTAbstractNodeLookupTask.h
  2148. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2150. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2151. * src/DHTMessageDispatcherImpl.cc
  2152. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Don't reuse URI if Request pool is not empty.
  2154. * src/CreateRequestCommand.cc
  2155. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2156. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2157. receive get_peers request for torrent which the client is now
  2158. downloading.
  2159. * src/BtSetup.cc
  2160. * src/DHTPeerAnnounceEntry.cc
  2161. * src/DHTPeerAnnounceEntry.h
  2162. * src/DHTPeerAnnounceStorage.cc
  2163. * src/DHTPeerAnnounceStorage.h
  2164. * src/RequestGroup.cc
  2165. * test/DHTPeerAnnounceEntryTest.cc
  2166. * test/DHTPeerAnnounceStorageTest.cc
  2167. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2168. Fixed the bug that in Windows environment new blank line is
  2169. inserted when console readout is updated.
  2170. * src/ConsoleStatCalc.cc
  2171. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Throw exception if binding listening port is failed. Removed
  2173. RequestGroupMan::getInitialCommand(). Use
  2174. fillRequestGroupFromReserver() instead. Delete commands for
  2175. RequestGroup which has errors when it is being added.
  2176. * src/BtSetup.cc
  2177. * src/DownloadEngine.cc
  2178. * src/DownloadEngine.h
  2179. * src/DownloadEngineFactory.cc
  2180. * src/MultiUrlRequestInfo.cc
  2181. * src/RequestGroupMan.cc
  2182. * src/RequestGroupMan.h
  2183. * test/RequestGroupManTest.cc
  2184. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Fixed the bug that when downloading more than one torrent,
  2186. listening port is not reported properly to tracker for 2nd or
  2187. later torrents.
  2188. * src/BtSetup.cc
  2189. * src/PeerListenCommand.cc
  2190. * src/PeerListenCommand.h
  2191. * src/RequestGroup.cc
  2192. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Bump up version number to 1.6.3
  2194. * configure.ac
  2195. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Removed Util.cc from POTFILES.in
  2197. * po/POTFILES.in
  2198. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Updated man page for previous change.
  2200. * doc/aria2c.1.txt
  2201. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. If user name is embedded but password is missing in URI, first
  2203. resolve password using .netrc. If password is found in .netrc,
  2204. then use it as password. If not, use the password specified in
  2205. --ftp-passwd.
  2206. * src/AuthConfigFactory.cc
  2207. * src/Request.cc
  2208. * src/Request.h
  2209. * test/AuthConfigFactoryTest.cc
  2210. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Fixed typo
  2212. * doc/aria2c.1.txt
  2213. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2214. Fixed typo
  2215. * src/usage_text.h
  2216. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2217. Added missing bitfield.cc
  2218. * src/bitfield.cc
  2219. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Renamed Util.{cc,h} as util.{cc,h}
  2221. * src/Util.cc
  2222. * src/Util.h
  2223. * src/util.cc
  2224. * src/util.h
  2225. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Moved static functions in Util class to namespace util.
  2227. * src
  2228. * test
  2229. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2231. Moved generateRandomKey to bittorrent_helper.cc.
  2232. * src/DHTBucket.cc
  2233. * src/DHTGetPeersMessage.cc
  2234. * src/DHTGetPeersReplyMessage.cc
  2235. * src/DHTMessage.cc
  2236. * src/DHTNode.cc
  2237. * src/DHTTokenTracker.cc
  2238. * src/DHTUtil.cc: Removed.
  2239. * src/DHTUtil.h: Removed.
  2240. * src/Makefile.am
  2241. * src/Util.cc
  2242. * src/Util.h
  2243. * src/bitfield.h
  2244. * src/bittorrent_helper.cc
  2245. * src/bittorrent_helper.h
  2246. * test/ARC4Test.cc
  2247. * test/BNodeTest.cc
  2248. * test/DHTAnnouncePeerMessageTest.cc
  2249. * test/DHTAnnouncePeerReplyMessageTest.cc
  2250. * test/DHTFindNodeMessageTest.cc
  2251. * test/DHTFindNodeReplyMessageTest.cc
  2252. * test/DHTGetPeersMessageTest.cc
  2253. * test/DHTGetPeersReplyMessageTest.cc
  2254. * test/DHTPingMessageTest.cc
  2255. * test/DHTPingReplyMessageTest.cc
  2256. * test/DHTTokenTrackerTest.cc
  2257. * test/DHTUtilTest.cc: Removed.
  2258. * test/Makefile.am
  2259. * test/UtilTest.cc
  2260. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2261. Removed the call to trim() because trim() is called for each
  2262. element in split().
  2263. * src/CookieParser.cc
  2264. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Replaced Util::slice() with split()
  2266. * src/AbstractCommand.cc
  2267. * src/CookieParser.cc
  2268. * src/File.cc
  2269. * src/HttpHeaderProcessor.cc
  2270. * src/HttpRequest.cc
  2271. * src/Metalink2RequestGroup.cc
  2272. * src/MetalinkParserController.cc
  2273. * src/Netrc.cc
  2274. * src/NsCookieParser.cc
  2275. * src/ParameterizedStringParser.cc
  2276. * src/ServerStatMan.cc
  2277. * src/UriListParser.cc
  2278. * src/Util.cc
  2279. * src/Util.h
  2280. * src/bittorrent_helper.cc
  2281. * test/UtilTest.cc
  2282. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Use request->getDir() instead of "/" for embedded user/pass in
  2284. URI.
  2285. * src/AuthConfigFactory.cc
  2286. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2287. Fixed wrong insertion point for BasicCred.
  2288. * src/AuthConfigFactory.cc
  2289. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2290. Allowed non-regular file in LocalFilePathOptionHandler
  2291. * src/OptionHandlerImpl.h
  2292. * src/message.h
  2293. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2295. * src/Netrc.cc
  2296. * src/Util.h
  2297. * test/NetrcTest.cc
  2298. * test/sample.netrc
  2299. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Fixed typo
  2301. * src/BtDependency.cc
  2302. * src/BtRejectMessage.cc
  2303. * src/FtpConnection.cc
  2304. * src/HttpHeaderProcessor.h
  2305. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. Fixed lintian report in man page
  2307. * doc/aria2c.1.txt
  2308. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Release 1.6.2
  2310. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. Updated Ukrainian translation. Thanks to all translators.
  2312. * po/uk.po
  2313. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2314. Updated translation template
  2315. * po
  2316. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Bump up version number to 1.6.2
  2318. * configure.ac
  2319. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Updated licence message in -v output.
  2321. * src/version_usage.cc
  2322. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2323. Replaced aria2 with aria2c in help message.
  2324. * src/version_usage.cc
  2325. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2327. * src/version_usage.cc
  2328. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Quoted localedir
  2330. * src/Makefile.am
  2331. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2332. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2333. utime. Check header for utime.h.
  2334. * configure.ac
  2335. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2337. * configure.ac
  2338. * src/daemon.cc
  2339. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Don't set localedir manually. Leave it to autoconf.
  2341. * configure.ac
  2342. * src/Makefile.am
  2343. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2344. Added --install to ACLOCAL_AMFLAGS.
  2345. Removed m4 from SUBDIRS.
  2346. Updated automake 1.11 and autoconf 2.64.
  2347. Replaced some obsolute macros with new one.
  2348. * Makefile.am
  2349. * configure.ac
  2350. * m4/aria2_arg.m4
  2351. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Removed Makefile.am in m4 directory.
  2353. * configure.ac
  2354. * m4/ChangeLog
  2355. * m4/Makefile.am
  2356. * m4/Makefile.in
  2357. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2358. Removed unused m4 macros.
  2359. * m4/intldir.m4
  2360. * m4/inttypes.m4
  2361. * m4/isc-posix.m4
  2362. * m4/libgnutls-extra.m4
  2363. * m4/ulonglong.m4
  2364. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Fixed the bug that causes segmentation fault if
  2366. req->getCurrentUrl() contains printf formatting characters such as
  2367. %d. The statement that causes this bug is useless and removed.
  2368. * src/AbstractCommand.cc
  2369. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2370. * Release 1.6.1
  2371. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Updated Simplified Chinese translation. Thanks to translators.
  2373. * po/zh_CN.po
  2374. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Updated translation template
  2376. * po
  2377. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Bump up version number to 1.6.1
  2379. * configure.ac
  2380. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Changed interval from 120 to 60 for dropping inactive peer.
  2382. * src/DefaultBtInteractive.cc
  2383. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Updated man page for --user-agent and --peer-id-prefix option.
  2385. * doc/aria2c.1.txt
  2386. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Code clean up
  2388. * src/BtPostDownloadHandler.cc
  2389. * src/ContentTypeRequestGroupCriteria.cc
  2390. * src/ContentTypeRequestGroupCriteria.h
  2391. * src/DownloadHandlerConstants.cc
  2392. * src/DownloadHandlerConstants.h
  2393. * src/DownloadHandlerFactory.cc
  2394. * src/MetalinkPostDownloadHandler.cc
  2395. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2396. Don't save control file when aria2 exists while checking piece
  2397. hash(behavior of -V option). If control file doesn't exist when
  2398. aria2 launched, the completed length in saved control file will be
  2399. 0 byte and this confuses user. disableSaveControlFile() is called
  2400. in RequestGroup::processCheckIntegrityEntry().
  2401. enableSaveControlFile() will be called after hash checking is
  2402. done. See CheckIntegrityCommand.
  2403. * src/CheckIntegrityCommand.cc
  2404. * src/RequestGroup.cc
  2405. * src/RequestGroup.h
  2406. * src/RequestGroupMan.cc
  2407. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Included version number in Peer ID and client version. Peer ID
  2409. now starts with "aria2/VERSION-", where VERSION is
  2410. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2411. * src/DefaultBtInteractive.cc
  2412. * src/OptionHandlerFactory.cc
  2413. * src/bittorrent_helper.cc
  2414. * src/bittorrent_helper.h
  2415. * src/main.cc
  2416. * src/usage_text.h
  2417. * test/BittorrentHelperTest.cc
  2418. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Fixed memory leak.
  2420. * src/DownloadCommand.cc
  2421. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2422. Removed server, port, user and passwd key from options before
  2423. XMLRPC::Client.call since they are not options of aria2.
  2424. * doc/xmlrpc/aria2mon
  2425. * doc/xmlrpc/aria2rpc
  2426. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Included version number in user-agent string.
  2428. * src/OptionHandlerFactory.cc
  2429. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Fixed the bug that the option values changed by XML-RPC
  2431. method(changeOption and changeGlobalOption) are overwritten to the
  2432. previous value by the next these request which doesn't contain
  2433. that option value. Supporse max-download-limit is initially 0. You
  2434. changed this value to 100K by changeOption. Then you issue
  2435. changeOption request to change max-upload-limit to 50K. This
  2436. second request doesn't contain xml-download-limit, so it is back
  2437. to initial value, 0. Another improvement is that exception is
  2438. thrown when changeOption and changeGlobalOption request contains
  2439. option name which doesn't allowed in each request.
  2440. * src/DownloadEngine.h
  2441. * src/XmlRpcMethod.cc
  2442. * src/XmlRpcMethod.h
  2443. * src/XmlRpcMethodImpl.cc
  2444. * src/download_helper.cc
  2445. * src/download_helper.h
  2446. * test/XmlRpcMethodTest.cc
  2447. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Added missing MetalinkParserStateImpl.{cc,h}
  2449. * src/MetalinkParserStateImpl.cc
  2450. * src/MetalinkParserStateImpl.h
  2451. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Put all MetalinkParserState subclasses into
  2453. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2454. * src/FileMetalinkParserState.cc: Removed
  2455. * src/FileMetalinkParserState.h: Removed
  2456. * src/FilesMetalinkParserState.cc: Removed
  2457. * src/FilesMetalinkParserState.h: Removed
  2458. * src/FinMetalinkParserState.cc: Removed
  2459. * src/FinMetalinkParserState.h: Removed
  2460. * src/HashMetalinkParserState.cc: Removed
  2461. * src/HashMetalinkParserState.h: Removed
  2462. * src/InitialMetalinkParserState.cc: Removed
  2463. * src/InitialMetalinkParserState.h: Removed
  2464. * src/LanguageMetalinkParserState.cc: Removed
  2465. * src/LanguageMetalinkParserState.h: Removed
  2466. * src/Makefile.am
  2467. * src/MetalinkMetalinkParserState.cc: Removed
  2468. * src/MetalinkMetalinkParserState.h: Removed
  2469. * src/MetalinkParserState.h
  2470. * src/MetalinkParserStateMachine.cc
  2471. * src/MetalinkParserStateMachine.h
  2472. * src/OSMetalinkParserState.cc: Removed
  2473. * src/OSMetalinkParserState.h: Removed
  2474. * src/PieceHashMetalinkParserState.cc: Removed
  2475. * src/PieceHashMetalinkParserState.h: Removed
  2476. * src/PiecesMetalinkParserState.cc: Removed
  2477. * src/PiecesMetalinkParserState.h: Removed
  2478. * src/ResourcesMetalinkParserState.cc: Removed
  2479. * src/ResourcesMetalinkParserState.h: Removed
  2480. * src/SignatureMetalinkParserState.cc: Removed
  2481. * src/SignatureMetalinkParserState.h: Removed
  2482. * src/SizeMetalinkParserState.cc: Removed
  2483. * src/SizeMetalinkParserState.h: Removed
  2484. * src/SkipTagMetalinkParserState.cc: Removed
  2485. * src/SkipTagMetalinkParserState.h: Removed
  2486. * src/URLMetalinkParserState.cc: Removed
  2487. * src/URLMetalinkParserState.h: Removed
  2488. * src/VerificationMetalinkParserState.cc: Removed
  2489. * src/VerificationMetalinkParserState.h: Removed
  2490. * src/VersionMetalinkParserState.cc: Removed
  2491. * src/VersionMetalinkParserState.h: Removed
  2492. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2493. Move all functions in PeerMessageUtil to bittorrent_helper.
  2494. * src/BtBitfieldMessage.cc
  2495. * src/BtBitfieldMessageValidator.h
  2496. * src/BtExtendedMessage.cc
  2497. * src/BtHandshakeMessage.cc
  2498. * src/BtHandshakeMessageValidator.h
  2499. * src/BtPieceMessage.cc
  2500. * src/BtPieceMessageValidator.h
  2501. * src/BtPortMessage.cc
  2502. * src/DHTFindNodeReplyMessage.cc
  2503. * src/DHTGetPeersReplyMessage.cc
  2504. * src/DHTMessageFactoryImpl.cc
  2505. * src/DHTRoutingTableDeserializer.cc
  2506. * src/DHTRoutingTableSerializer.cc
  2507. * src/DHTTokenTracker.cc
  2508. * src/DefaultBtMessageFactory.cc
  2509. * src/IndexBtMessage.cc
  2510. * src/IndexBtMessage.h
  2511. * src/IndexBtMessageValidator.h
  2512. * src/Makefile.am
  2513. * src/PeerMessageUtil.cc: Removed.
  2514. * src/PeerMessageUtil.h: Removed.
  2515. * src/RangeBtMessage.cc
  2516. * src/RangeBtMessage.h
  2517. * src/RangeBtMessageValidator.h
  2518. * src/UTPexExtensionMessage.cc
  2519. * src/ZeroBtMessage.cc
  2520. * src/ZeroBtMessage.h
  2521. * src/bittorrent_helper.cc
  2522. * src/bittorrent_helper.h
  2523. * test/BittorrentHelperTest.cc
  2524. * test/BtAllowedFastMessageTest.cc
  2525. * test/BtBitfieldMessageTest.cc
  2526. * test/BtCancelMessageTest.cc
  2527. * test/BtChokeMessageTest.cc
  2528. * test/BtExtendedMessageTest.cc
  2529. * test/BtHandshakeMessageTest.cc
  2530. * test/BtHaveAllMessageTest.cc
  2531. * test/BtHaveMessageTest.cc
  2532. * test/BtHaveNoneMessageTest.cc
  2533. * test/BtInterestedMessageTest.cc
  2534. * test/BtNotInterestedMessageTest.cc
  2535. * test/BtPieceMessageTest.cc
  2536. * test/BtPortMessageTest.cc
  2537. * test/BtRejectMessageTest.cc
  2538. * test/BtRequestMessageTest.cc
  2539. * test/BtSuggestPieceMessageTest.cc
  2540. * test/BtUnchokeMessageTest.cc
  2541. * test/DHTFindNodeReplyMessageTest.cc
  2542. * test/DHTGetPeersReplyMessageTest.cc
  2543. * test/DHTMessageFactoryImplTest.cc
  2544. * test/DHTRoutingTableDeserializerTest.cc
  2545. * test/DHTRoutingTableSerializerTest.cc
  2546. * test/DefaultBtMessageFactoryTest.cc
  2547. * test/DefaultExtensionMessageFactoryTest.cc
  2548. * test/Makefile.am
  2549. * test/PeerListProcessorTest.cc
  2550. * test/PeerMessageUtilTest.cc: Removed.
  2551. * test/UTPexExtensionMessageTest.cc
  2552. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2553. Limit the size of values list when sending get_peers reply.
  2554. * src/DHTGetPeersReplyMessage.cc
  2555. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2556. Updated banner
  2557. * doc/xmlrpc/aria2rpc
  2558. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Added missing help message for remove command.
  2560. * doc/xmlrpc/aria2rpc
  2561. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Generated configure and config.h.in
  2563. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2564. Add check for fork(), which is missing on MinGW
  2565. * src/daemon.cc
  2566. * configure.ac
  2567. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2569. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2570. Util::httpGMT().
  2571. * src/Util.cc
  2572. * src/Util.h
  2573. * test/UtilTest.cc
  2574. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2575. * Release 1.6.0
  2576. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Fixed a path to xmlrpc/README.txt
  2578. * doc/Makefile.am
  2579. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. Added XML-RPC in -v Configuration output.
  2581. * src/FeatureConfig.cc
  2582. * src/FeatureConfig.h
  2583. * test/FeatureConfigTest.cc
  2584. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2585. Updated Bulgarian, Russian, Slovak and Japanese
  2586. translations. Thanks to all translators.
  2587. * po/bg.po
  2588. * po/ja.po
  2589. * po/ru.po
  2590. * po/sk.po
  2591. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Removed --retry-wait option from aria2rpc
  2593. * doc/xmlrpc/aria2rpc
  2594. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Removed --retry-wait option from man page.
  2596. * doc/aria2c.1.txt
  2597. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Removed --retry-wait option since the current architecture doesn't
  2599. allow sleep for particular URI.
  2600. * src/AbstractCommand.cc
  2601. * src/OptionHandlerFactory.cc
  2602. * src/download_helper.cc
  2603. * src/prefs.cc
  2604. * src/prefs.h
  2605. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2606. Removed Retry-After header support. Since the current architecture
  2607. doesn't allow sleep for particular URI.
  2608. * src/HttpSkipResponseCommand.cc
  2609. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Updated the help message for --daemon option.
  2611. * doc/aria2c.1.txt
  2612. * src/usage_text.h
  2613. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2614. Added our own daemon() function for systems which desn't have
  2615. daemon(3).
  2616. * configure.ac
  2617. * src/Makefile.am
  2618. * src/daemon.cc
  2619. * src/daemon.h
  2620. * src/option_processing.cc
  2621. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2622. Simplified File::getCurrentDir()
  2623. * src/File.cc
  2624. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Use exit() instead of _exit
  2626. * src/RequestGroupMan.cc
  2627. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Replaced "CATEGORY" with "TAGS".
  2629. * src/usage_text.h
  2630. * doc/aria2c.1.txt
  2631. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Updated the help message for --help option.
  2633. * src/usage_text.h
  2634. * doc/aria2c.1.txt
  2635. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Updated man page for added help tags.
  2637. * doc/aria2c.1.txt
  2638. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2639. Added help category #file. Added #file tag to the options related
  2640. to downloaded file.
  2641. * src/OptionHandlerFactory.cc
  2642. * src/help_tags.h
  2643. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Added help categories: #cookie and #hook. Added #https tag to
  2645. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2646. * src/OptionHandlerFactory.cc
  2647. * src/help_tags.h
  2648. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Made MSG_NOT_FILE translatable.
  2650. * src/message.h
  2651. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Updated man page for --help option.
  2653. * doc/aria2c.1.txt
  2654. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Updated doc.
  2656. * src/XmlRpcMethod.h
  2657. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Help category now starts with "#" to distinguish a category from
  2659. keyword search. For example, "http" categroy is now "#http". You
  2660. can type "--help=#http" to get explanation of options related to
  2661. http. If '#' is omitted, then the argument is treated as a keyword
  2662. and aria2 searches options whose name includes the keyword and
  2663. print matched ones. For example, "--help=http" will show options
  2664. whose name includes "http".
  2665. * src/OptionHandlerFactory.cc
  2666. * src/help_tags.h
  2667. * src/usage_text.h
  2668. * src/version_usage.cc
  2669. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2670. Documented missing experimental tag and newly added xml-rpc tag in
  2671. man page.
  2672. * doc/aria2c.1.txt
  2673. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2674. Added xml-rpc help tag. Tagged xml-rpc related options with
  2675. xml-rpc tag.
  2676. * src/OptionHandlerFactory.cc
  2677. * src/help_tags.h
  2678. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2679. Updated message when a path is not a file. Updated common message
  2680. for wrong option.
  2681. * src/OptionHandlerException.cc
  2682. * src/message.h
  2683. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Use File::isFile() instead of File::exists(). Updated message when
  2685. a path is not a file.
  2686. * src/OptionHandlerImpl.cc
  2687. * src/message.h
  2688. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Fixed the bug that server performence profile is not updated when
  2690. aria2c was terminated by emergency shutdown.
  2691. * src/TrackerWatcherCommand.cc
  2692. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Use LocalFilePathOptionHandler for -T and -M option.
  2694. Updated message of MSG_FILE_NOT_EXIST.
  2695. * src/OptionHandlerFactory.cc
  2696. * src/message.h
  2697. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Added LocalFilePathOptionHandler which check whether the specified
  2699. file path does exist or not.
  2700. * src/OptionHandlerImpl.cc
  2701. * src/message.h
  2702. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Updated wiki page URI.
  2704. * README
  2705. * doc/aria2c.1.txt
  2706. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Added README.txt for xmlrpc directory.
  2708. * doc/Makefile.am
  2709. * doc/xmlrpc/README.txt
  2710. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2711. Bump up version number to 1.6.0.
  2712. * configure.ac
  2713. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2714. Added XML-RPC client scripts written in ruby.
  2715. * doc/Makefile.am
  2716. * doc/xmlrpc/aria2mon
  2717. * doc/xmlrpc/aria2rpc
  2718. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Added support for IPv6 literal address in URI. Now aria2 can
  2720. handle URI such as http://[::1]/
  2721. * src/HttpRequest.cc
  2722. * src/HttpRequest.h
  2723. * src/Request.cc
  2724. * src/Request.h
  2725. * test/HttpRequestTest.cc
  2726. * test/OptionHandlerTest.cc
  2727. * test/RequestTest.cc
  2728. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Fixed the bug that HTTP request header for XML-RPC request is not
  2730. parsed properly.
  2731. * src/HttpHeader.cc
  2732. * src/HttpHeaderProcessor.cc
  2733. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. Fixed the bug that XML-RPC authorization might be done before HTTP
  2735. request header is fully received.
  2736. * src/HttpServerCommand.cc
  2737. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2738. Documented --xml-rpc-listen-all option in man page.
  2739. * doc/aria2c.1.txt
  2740. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2741. Added --xml-rpc-listen-all option. If true is given to this
  2742. option, aria2 listens incoming XML-RPC requests on all network
  2743. interfaces. If false is given, listens only on local loopback
  2744. interface. The default value is false.
  2745. * src/HttpListenCommand.cc
  2746. * src/OptionHandlerFactory.cc
  2747. * src/SocketCore.cc
  2748. * src/SocketCore.h
  2749. * src/prefs.cc
  2750. * src/prefs.h
  2751. * src/usage_text.h
  2752. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. * Release 1.5.2
  2754. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Updated Ukrainian and Russian translations. Thanks to all
  2756. translators.
  2757. * po/ru.po
  2758. * po/uk.po
  2759. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Bump up version number to 1.5.2
  2761. * configure.ac
  2762. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2763. Get comment, comment.utf-8, created by and creation date from
  2764. .torrent file and print them in -S output.
  2765. * src/bittorrent_helper.cc
  2766. * src/bittorrent_helper.h
  2767. * test/BittorrentHelperTest.cc
  2768. * test/test.torrent
  2769. * test/utf8.torrent
  2770. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Show exact file size along in -S option output.
  2772. * src/Util.h
  2773. * src/bittorrent_helper.cc
  2774. * test/UtilTest.cc
  2775. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. Avoided unnecessary memory allocation in
  2777. BitfieldMan::getCompletedLength().
  2778. * src/BitfieldMan.cc
  2779. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2780. Fixed the bug that download fails if
  2781. SocketCore::establishConnection() throws exception and aria2
  2782. doesn't try another address.
  2783. * src/AbstractCommand.cc
  2784. * src/InitiateConnectionCommand.cc
  2785. * src/message.h
  2786. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2788. detected properly.
  2789. * m4/sqlite3.m4
  2790. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2792. because it causes compile error if PARAMS macro is defined.
  2793. * src/XmlRpcElements.cc
  2794. * src/XmlRpcElements.h
  2795. * src/XmlRpcRequestParserStateImpl.cc
  2796. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2797. * Release 1.5.1
  2798. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Bump up version number to 1.5.1
  2800. * configure.ac
  2801. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Fixed compile error without BitTorrent support
  2803. * src/DefaultBtProgressInfoFile.cc
  2804. * src/DownloadEngine.cc
  2805. * src/DownloadEngine.h
  2806. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. Added missing '=' in Download Results
  2808. * src/RequestGroupMan.cc
  2809. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Fixed compiler warning
  2811. * src/DefaultBtProgressInfoFile.cc
  2812. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Fixed compiler warning on 32bit systems.
  2814. * src/DownloadCommand.cc
  2815. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Call flush from ServerStatMan::save()
  2817. * src/ServerStatMan.cc
  2818. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Check stream status after file is opened.
  2820. * src/CookieStorage.cc
  2821. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Rewritten Signature::save()
  2823. * src/Signature.cc
  2824. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Rewritten RequestGroupMan::saveServerStat()
  2826. * src/RequestGroupMan.cc
  2827. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Rewritten stream error handling
  2829. * src/DHTAutoSaveCommand.cc
  2830. * src/DHTRoutingTableDeserializer.cc
  2831. * src/DHTRoutingTableSerializer.cc
  2832. * src/DHTSetup.cc
  2833. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Check stream status after file is opened.
  2835. * src/DefaultBtProgressInfoFile.cc
  2836. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Rewritten stream error handling
  2838. * src/DefaultBtProgressInfoFile.cc
  2839. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Make sure that stream is closed before renaming file. Unit test
  2841. fails on mingw32 in the previous implementation.
  2842. * src/CookieStorage.cc
  2843. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2844. Fixed the unit test error without sqlite3
  2845. * test/CookieStorageTest.cc
  2846. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2847. Fixed the undefined reference error
  2848. * test/HttpResponseTest.cc
  2849. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2850. * Release 1.5.0
  2851. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2853. Ukrainian translations. Thanks to all translators.
  2854. * po/ru.po
  2855. * po/it.po
  2856. * po/da.po
  2857. * po/bg.po
  2858. * po/ja.po
  2859. * po/uk.po
  2860. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2861. Added missing src/Logger.cc
  2862. * src/Logger.cc
  2863. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Rewritten Logger to avoiding constly virtual call.
  2865. * src/LogFactory.cc
  2866. * src/LogFactory.h
  2867. * src/Logger.h
  2868. * src/Makefile.am
  2869. * src/Makefile.in
  2870. * src/NullLogger.h: Removed.
  2871. * src/SimpleLogger.cc
  2872. * src/SimpleLogger.h
  2873. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2874. Updated doc
  2875. * src/main.cc
  2876. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. Updated debug log message
  2878. * src/AbstractCommand.cc
  2879. * src/message.h
  2880. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. Avoid to create zombie process when commands specified in
  2882. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2883. X and NetBSD.
  2884. * src/main.cc
  2885. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Fixed typo
  2887. * src/usage_text.h
  2888. * doc/aria2c.1.txt
  2889. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Documented 'errorCode' of tellStatus in man page.
  2891. * doc/aria2c.1.txt
  2892. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2893. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2894. This key is only available for stopped/completed downloads and its
  2895. value is the error code defined in EXIT STATUS in man page.
  2896. * src/XmlRpcMethodImpl.cc
  2897. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Fixed the bug that session download length is not updated when
  2899. PeerStat is not fastest one.
  2900. * src/SegmentMan.cc
  2901. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2902. Updated doc.
  2903. * doc/aria2c.1.txt
  2904. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2905. Updated doc.
  2906. * src/AbstractCommand.cc
  2907. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2908. Handle the case when DownloadContext has no FileEntry.
  2909. * src/XmlRpcMethodImpl.cc
  2910. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Handle the situation where struct option.name is char *.
  2912. * configure.ac
  2913. * src/OptionParser.cc
  2914. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2915. Code cleanup
  2916. * src/AbstractCommand.cc
  2917. * src/DownloadCommand.cc
  2918. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2919. Use option of each download to create AuthConfig instead of global
  2920. option.
  2921. * src/AuthConfigFactory.cc
  2922. * src/AuthConfigFactory.h
  2923. * src/FtpNegotiationCommand.cc
  2924. * src/HttpRequest.cc
  2925. * src/HttpRequest.h
  2926. * src/HttpRequestCommand.cc
  2927. * src/HttpSkipResponseCommand.cc
  2928. * src/MultiUrlRequestInfo.cc
  2929. * test/AuthConfigFactoryTest.cc
  2930. * test/FtpConnectionTest.cc
  2931. * test/HttpRequestTest.cc
  2932. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Don't call prepareForRetry(1) if all segments are ignored in
  2934. SegmentMan.
  2935. * src/AbstractCommand.cc
  2936. * src/BitfieldMan.cc
  2937. * src/BitfieldMan.h
  2938. * src/SegmentMan.cc
  2939. * src/SegmentMan.h
  2940. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2941. Removed FileEntry::getAssociatedUris()
  2942. * src/FileEntry.h
  2943. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2944. Updated doc: TODO1.5 -> TODO
  2945. * src/FileEntry.cc
  2946. * src/HttpResponseCommand.cc
  2947. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2948. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2949. involved.
  2950. * src/RequestGroup.cc
  2951. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2952. Eliminated duplicated filterBitfield initialization code.
  2953. * src/BitfieldMan.cc
  2954. * src/BitfieldMan.h
  2955. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2957. relatively naive approach, though). For DownloadFailureException,
  2958. we handle the case when req is null properly.
  2959. * src/AbstractCommand.cc
  2960. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2961. Added function returning suffix of control file to
  2962. DefaultBtProgressInfoFile.
  2963. * src/DefaultBtProgressInfoFile.cc
  2964. * src/DefaultBtProgressInfoFile.h
  2965. * src/RequestGroup.cc
  2966. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Documented getVersion in man page.
  2968. * doc/aria2c.1.txt
  2969. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Documented type of offset and num for tellWaiting xml-rpc method.
  2971. * doc/aria2c.1.txt
  2972. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2973. Implemented getVersion xml-rpc method. This method returns struct
  2974. which has 2 key-value pairs: "version" key is associated to the
  2975. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2976. associated to the list of enabled features, such as "Async DNS",
  2977. "BitTorrent".
  2978. * src/FeatureConfig.h
  2979. * src/XmlRpcMethodFactory.cc
  2980. * src/XmlRpcMethodImpl.cc
  2981. * src/XmlRpcMethodImpl.h
  2982. * test/XmlRpcMethodTest.cc
  2983. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2984. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2985. for compatibility issue.
  2986. * src/SocketCore.cc
  2987. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2988. Fixed compile error with openSSL
  2989. * src/bittorrent_helper.cc
  2990. * src/messageDigest.h
  2991. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Removed bad code: setting certificate type priority to key
  2993. exchange priority.
  2994. * src/SocketCore.cc
  2995. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Disconnect seeder if client is also in seed state.
  2997. * src/BtBitfieldMessage.cc
  2998. * src/BtHaveAllMessage.cc
  2999. * src/BtHaveMessage.cc
  3000. * src/message.h
  3001. * test/BtBitfieldMessageTest.cc
  3002. * test/BtHaveAllMessageTest.cc
  3003. * test/BtHaveMessageTest.cc
  3004. * test/MockPieceStorage.h
  3005. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3006. Keep CreateRequestCommand in queue when no segment is available so
  3007. that they can pick up pieces which slow BitTorrent peers are
  3008. downloading.
  3009. * src/AbstractCommand.cc
  3010. * src/CreateRequestCommand.cc
  3011. * src/CreateRequestCommand.h
  3012. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3013. --bt-stop-timeout now only checks download speed.
  3014. * src/BtStopDownloadCommand.cc
  3015. * src/BtStopDownloadCommand.h
  3016. * src/BtSetup.cc
  3017. * src/usage_text.h
  3018. * doc/aria2c.1.txt
  3019. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Fixed compile error regarding BUFSIZE.
  3021. * src/DownloadCommand.cc
  3022. * src/DownloadCommand.h
  3023. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3024. Documented tellWaiting xml-rpc method in man page.
  3025. * doc/aria2c.1.txt
  3026. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3027. Bump up version number to 1.5.0
  3028. * configure.ac
  3029. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Removed resolved TODO1.5
  3031. * src/AbstractCommand.cc
  3032. * src/DownloadCommand.cc
  3033. * src/RequestGroup.cc
  3034. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Release pooled and in-flight Request objectsand URIResult objects
  3036. in FileEntry after download completed.
  3037. * src/DownloadContext.cc
  3038. * src/DownloadContext.h
  3039. * src/FileEntry.cc
  3040. * src/FileEntry.h
  3041. * src/RequestGroup.cc
  3042. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3043. Set manual and source attribute in aria2c.1.txt
  3044. * doc/aria2c.1.txt
  3045. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3046. Documented that the default value of --use-head is 'false' in man
  3047. page.
  3048. * doc/aria2c.1.txt
  3049. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3050. Added bt-stop-timeout option to -i list.
  3051. * doc/aria2c.1.txt
  3052. * src/download_helper.cc
  3053. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Fixed typo
  3055. * doc/aria2c.1.txt
  3056. * src/usage_text.h
  3057. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Removed peer-id-prefix option from -i list.
  3059. * doc/aria2c.1.txt
  3060. * src/download_helper.cc
  3061. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3062. Fixed typo
  3063. * doc/aria2c.1.txt
  3064. * src/usage_text.h
  3065. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Documented --bt-stop-timeout option in man page.
  3067. * doc/aria2c.1.txt
  3068. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Updated README regarding multi-file torrent web-seeding.
  3070. * doc/README.txt
  3071. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3072. Updated man page regarding multi-file torrent web-seeding.
  3073. * doc/aria2c.1.txt
  3074. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3075. Updated doc
  3076. * src/version_usage.cc
  3077. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. Winsock select() doesn't work if no socket is in FD_SET. To
  3079. overcome this problem, a dummy socket is added to FD_SET and it is
  3080. given to select().
  3081. * src/SelectEventPoll.cc
  3082. * src/SelectEventPoll.h
  3083. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Disabled --use-head option by default because --use-head=true
  3085. causes problems on some web sites.
  3086. * src/OptionHandlerFactory.cc
  3087. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3088. Print URL List in -S option for torrent.
  3089. * src/bittorrent_helper.cc
  3090. * src/bittorrent_helper.h
  3091. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3092. Allocate buffer in ctor of DownloadCommand.
  3093. * src/DownloadCommand.cc
  3094. * src/DownloadCommand.h
  3095. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3096. Removed DiskAdaptor::onDownloadComplete()
  3097. * src/DirectDiskAdaptor.cc
  3098. * src/DirectDiskAdaptor.h
  3099. * src/DiskAdaptor.h
  3100. * src/MultiDiskAdaptor.cc
  3101. * src/MultiDiskAdaptor.h
  3102. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3103. Committed missing BtStopDownloadCommand.{cc,h}
  3104. * src/BtStopDownloadCommand.cc
  3105. * src/BtStopDownloadCommand.h
  3106. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3107. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3108. download if the download speed is 0 and the number of seeder is 0
  3109. in consecutive SEC seconds. By default, this function is disabled.
  3110. * src/BtSetup.cc
  3111. * src/Makefile.am
  3112. * src/OptionHandlerFactory.cc
  3113. * src/prefs.cc
  3114. * src/prefs.h
  3115. * src/usage_text.h
  3116. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Removed the call to DiskAdaptor::onDownloadComplete() from
  3118. BtCheckIntegrityEntry and DefaultPieceStorage.
  3119. * src/BtCheckIntegrityEntry.cc
  3120. * src/DefaultPieceStorage.cc
  3121. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3122. Commented out throw statements when number of piece is 0 to
  3123. download 0 length torrent.
  3124. * src/bittorrent_helper.cc
  3125. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3126. Call RequestGroup::createNextCommandWithAdj() from
  3127. BtFileAllocationEntry if at least one FileEntry has URI. The
  3128. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3129. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3130. * src/BtFileAllocationEntry.cc
  3131. * src/FileEntry.h
  3132. * src/RequestGroup.cc
  3133. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3134. Generate peer ID after SimpleRandomizer is initialized.
  3135. * src/main.cc
  3136. * src/option_processing.cc
  3137. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Removed unused method argument.
  3139. * src/CreateRequestCommand.cc
  3140. * src/RequestGroup.cc
  3141. * src/RequestGroup.h
  3142. * src/RequestGroupMan.cc
  3143. * src/TrackerWatcherCommand.cc
  3144. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. Made URI reusing function work.
  3146. * src/CreateRequestCommand.cc
  3147. * src/FileEntry.cc
  3148. * src/FileEntry.h
  3149. * test/FileEntryTest.cc
  3150. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3151. Add formerly fastest PeerStat's sessionDownloadLength to new
  3152. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3153. bytes in a session.
  3154. * src/PeerStat.cc
  3155. * src/SegmentMan.cc
  3156. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. If pipelining is enabled, we can always pool socket.
  3158. * src/HttpDownloadCommand.cc
  3159. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. In a single file download, file size becomes known just after
  3161. downloading, set total length to FileEntry object when download
  3162. completed.
  3163. * src/DownloadCommand.cc
  3164. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Use std::vector::reserve() for fileEntries and pieceHashes in
  3166. bittorrent_helper
  3167. * src/bittorrent_helper.cc
  3168. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3169. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3170. Removed hidden option PREF_RESET_URI.
  3171. * src/AbstractCommand.cc
  3172. * src/OptionHandlerFactory.cc
  3173. * src/prefs.cc
  3174. * src/prefs.h
  3175. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3176. Removed unused variable/function.
  3177. * src/PeerStat.h
  3178. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3179. Show first URL in Download Results if file path is not available.
  3180. * src/FileEntry.h
  3181. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3182. Throw exception if file path doesn't exist in FTP URL.
  3183. * src/InitiateConnectionCommandFactory.cc
  3184. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3185. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3186. * src/BitfieldMan.cc
  3187. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3189. of PeerStat in SegmentMan. peerStats is used for calculating
  3190. download speed. Therefore all active PeerStats should be in
  3191. there. Another one is _fastestPeerStats and it only contains
  3192. fastest PeerStat for each hostname/protocol pair. They are used
  3193. for updating ServerStat.
  3194. * src/DownloadCommand.cc
  3195. * src/Request.h
  3196. * src/RequestGroupMan.cc
  3197. * src/SegmentMan.cc
  3198. * src/SegmentMan.h
  3199. * test/SegmentManTest.cc
  3200. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3201. Try all available addresses returned by DNS until it gets
  3202. connected in HTTP(S)/FTP download
  3203. * src/AbstractCommand.cc
  3204. * src/AbstractCommand.h
  3205. * src/AbstractProxyRequestCommand.cc
  3206. * src/AbstractProxyRequestCommand.h
  3207. * src/DNSCache.h
  3208. * src/DownloadEngine.cc
  3209. * src/DownloadEngine.h
  3210. * src/FtpInitiateConnectionCommand.cc
  3211. * src/FtpInitiateConnectionCommand.h
  3212. * src/FtpNegotiationCommand.cc
  3213. * src/FtpNegotiationCommand.h
  3214. * src/HttpInitiateConnectionCommand.cc
  3215. * src/HttpInitiateConnectionCommand.h
  3216. * src/HttpRequestCommand.cc
  3217. * src/HttpRequestCommand.h
  3218. * src/InitiateConnectionCommand.cc
  3219. * src/InitiateConnectionCommand.h
  3220. * test/DNSCacheTest.cc
  3221. * test/Makefile.am
  3222. * test/SimpleDNSCacheTest.cc
  3223. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3224. Updated doc
  3225. * src/download_helper.cc
  3226. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3227. Refactored fieldMan ctor.
  3228. * src/BitfieldMan.cc
  3229. * src/BitfieldMan.h
  3230. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3231. Don't print "No files to download." message if -S is given.
  3232. * src/main.cc
  3233. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3234. Set referer and method to newly created Request object.
  3235. * src/CreateRequestCommand.cc
  3236. * src/FileEntry.cc
  3237. * src/FileEntry.h
  3238. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3239. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3240. * src/AbstractCommand.cc
  3241. * src/AbstractCommand.h
  3242. * src/CreateRequestCommand.cc
  3243. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. Get proxy download working
  3245. * src/AbstractProxyRequestCommand.cc
  3246. * src/AbstractProxyRequestCommand.h
  3247. * src/AbstractProxyResponseCommand.cc
  3248. * src/AbstractProxyResponseCommand.h
  3249. * src/FtpInitiateConnectionCommand.cc
  3250. * src/FtpTunnelRequestCommand.cc
  3251. * src/FtpTunnelRequestCommand.h
  3252. * src/FtpTunnelResponseCommand.cc
  3253. * src/FtpTunnelResponseCommand.h
  3254. * src/HttpInitiateConnectionCommand.cc
  3255. * src/HttpProxyRequestCommand.cc
  3256. * src/HttpProxyRequestCommand.h
  3257. * src/HttpProxyResponseCommand.cc
  3258. * src/HttpProxyResponseCommand.h
  3259. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3260. Use SegmentMan::getSegment(cuid) for single file download.
  3261. * src/AbstractCommand.cc
  3262. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3263. Fixed bufSize calculation
  3264. * src/DownloadCommand.cc
  3265. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3266. Don't append "/" if base URI ends with "/".
  3267. * src/bittorrent_helper.cc
  3268. * test/url-list-multiFile.torrent
  3269. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3270. HTTP pipelining is now working. Fixed Segmention fault in
  3271. BitfieldMan's copy ctor.
  3272. * src/AbstractCommand.cc
  3273. * src/BitfieldMan.cc
  3274. * src/BitfieldMan.h
  3275. * src/DownloadCommand.cc
  3276. * src/HttpDownloadCommand.cc
  3277. * src/HttpRequest.cc
  3278. * src/SegmentMan.cc
  3279. * src/SegmentMan.h
  3280. * test/BitfieldManTest.cc
  3281. * test/SegmentManTest.cc
  3282. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Removed ServerHost. Same functionality is implemented using
  3284. FileEntry's in-flight Request objects.
  3285. * src/AbstractCommand.cc
  3286. * src/BtDependency.cc
  3287. * src/CreateRequestCommand.cc
  3288. * src/FileEntry.cc
  3289. * src/FileEntry.h
  3290. * src/FtpNegotiationCommand.cc
  3291. * src/HttpResponseCommand.cc
  3292. * src/Makefile.am
  3293. * src/Metalink2RequestGroup.cc
  3294. * src/RequestGroup.cc
  3295. * src/RequestGroup.h
  3296. * src/ServerHost.cc: Removed
  3297. * src/ServerHost.h: Removed
  3298. * test/BtDependencyTest.cc
  3299. * test/FileEntryTest.cc
  3300. * test/RequestGroupTest.cc
  3301. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3302. Rewritten PeerStat handling. In the previous implementation,
  3303. faster command tries to find slower command. In this new
  3304. implementation, slower command tries to find faster command.
  3305. PeerStat is now created in each HTTP/FTP request to get download
  3306. rate correctly. If the download range is small, the download rate
  3307. tends to small and this will occur at the later stage of download.
  3308. * src/AbstractCommand.cc
  3309. * src/DownloadCommand.cc
  3310. * src/FileEntry.cc
  3311. * src/FileEntry.h
  3312. * src/Request.cc
  3313. * src/Request.h
  3314. * src/RequestGroup.h
  3315. * src/RequestGroupMan.cc
  3316. * src/SegmentMan.cc
  3317. * src/SegmentMan.h
  3318. * test/SegmentManTest.cc
  3319. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3320. Removed _uris from RequestGroup. All functions that refer to _uris
  3321. were moved to FileEntry. Exit status code are now defined in
  3322. DownloadResultCode.h.
  3323. * src/AbstractCommand.cc
  3324. * src/AdaptiveURISelector.cc
  3325. * src/AdaptiveURISelector.h
  3326. * src/AutoSaveCommand.cc
  3327. * src/BtPostDownloadHandler.cc
  3328. * src/CheckIntegrityDispatcherCommand.cc
  3329. * src/CookieStorage.cc
  3330. * src/DHTAutoSaveCommand.cc
  3331. * src/DHTBucketRefreshCommand.cc
  3332. * src/DHTEntryPointNameResolveCommand.cc
  3333. * src/DHTInteractionCommand.cc
  3334. * src/DHTPeerAnnounceCommand.cc
  3335. * src/DHTTokenUpdateCommand.cc
  3336. * src/DlAbortEx.h
  3337. * src/DlRetryEx.h
  3338. * src/DownloadCommand.cc
  3339. * src/DownloadContext.h
  3340. * src/DownloadFailureException.h
  3341. * src/DownloadResult.h
  3342. * src/DownloadResultCode.h
  3343. * src/FeedbackURISelector.cc
  3344. * src/FeedbackURISelector.h
  3345. * src/FileEntry.cc
  3346. * src/FileEntry.h
  3347. * src/FtpNegotiationCommand.cc
  3348. * src/HttpListenCommand.cc
  3349. * src/HttpResponseCommand.cc
  3350. * src/HttpServerResponseCommand.cc
  3351. * src/HttpSkipResponseCommand.cc
  3352. * src/InOrderURISelector.cc
  3353. * src/InOrderURISelector.h
  3354. * src/Makefile.am
  3355. * src/Makefile.in
  3356. * src/Metalink2RequestGroup.cc
  3357. * src/MultiUrlRequestInfo.cc
  3358. * src/MultiUrlRequestInfo.h
  3359. * src/OptionHandlerFactory.cc
  3360. * src/PeerListenCommand.cc
  3361. * src/RecoverableException.h
  3362. * src/RequestGroup.cc
  3363. * src/RequestGroup.h
  3364. * src/RequestGroupMan.cc
  3365. * src/RequestGroupMan.h
  3366. * src/TimedHaltCommand.cc
  3367. * src/TrackerWatcherCommand.cc
  3368. * src/URIResult.cc
  3369. * src/URIResult.h
  3370. * src/URISelector.h
  3371. * src/XmlRpcMethodImpl.cc
  3372. * src/bittorrent_helper.cc
  3373. * src/bittorrent_helper.h
  3374. * src/download_helper.cc
  3375. * src/main.cc
  3376. * src/option_processing.cc
  3377. * test/BtDependencyTest.cc
  3378. * test/BtPostDownloadHandlerTest.cc
  3379. * test/CookieStorageTest.cc
  3380. * test/DefaultBtMessageDispatcherTest.cc
  3381. * test/DownloadHandlerFactoryTest.cc
  3382. * test/DownloadHelperTest.cc
  3383. * test/FeedbackURISelectorTest.cc
  3384. * test/FileEntryTest.cc
  3385. * test/InOrderURISelectorTest.cc
  3386. * test/Metalink2RequestGroupTest.cc
  3387. * test/MetalinkPostDownloadHandlerTest.cc
  3388. * test/RequestGroupManTest.cc
  3389. * test/RequestGroupTest.cc
  3390. * test/XmlRpcMethodTest.cc
  3391. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3392. Removed MockBtContext.h
  3393. * test/Makefile.am
  3394. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3395. Removed _currentRequest from StreamCheckIntegrityEntry and
  3396. StreamFileAllocationEntry.
  3397. * src/AbstractCommand.cc
  3398. * src/HttpResponseCommand.cc
  3399. * src/RequestGroup.cc
  3400. * src/StreamCheckIntegrityEntry.cc
  3401. * src/StreamCheckIntegrityEntry.h
  3402. * src/StreamFileAllocationEntry.cc
  3403. * src/StreamFileAllocationEntry.h
  3404. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Rewritten DownloadContext and removed SingleFileDownloadContext
  3406. and BtContext and its derived classes. BitTorrent specific
  3407. attributes are now set by DownloadContext::setAttribute() with key
  3408. bittorrent::BITTORRENT.
  3409. * src/AbstractBtMessage.cc
  3410. * src/AbstractBtMessage.h
  3411. * src/AbstractCommand.cc
  3412. * src/AbstractCommand.h
  3413. * src/AbstractProxyRequestCommand.cc
  3414. * src/AbstractProxyResponseCommand.cc
  3415. * src/ActivePeerConnectionCommand.cc
  3416. * src/ActivePeerConnectionCommand.h
  3417. * src/AnnounceList.cc
  3418. * src/BtCheckIntegrityEntry.cc
  3419. * src/BtConstants.h
  3420. * src/BtContext.h: Removed
  3421. * src/BtDependency.cc
  3422. * src/BtExtendedMessage.cc
  3423. * src/BtPieceMessage.cc
  3424. * src/BtPieceMessage.h
  3425. * src/BtPostDownloadHandler.cc
  3426. * src/BtRegistry.cc
  3427. * src/BtRegistry.h
  3428. * src/BtSetup.cc
  3429. * src/CheckIntegrityCommand.cc
  3430. * src/CheckIntegrityEntry.cc
  3431. * src/ChecksumCheckIntegrityEntry.cc
  3432. * src/ConsoleStatCalc.cc
  3433. * src/ContentTypeRequestGroupCriteria.cc
  3434. * src/DHTGetPeersCommand.cc
  3435. * src/DHTGetPeersCommand.h
  3436. * src/DHTPeerLookupTask.cc
  3437. * src/DHTPeerLookupTask.h
  3438. * src/DHTTaskFactory.h
  3439. * src/DHTTaskFactoryImpl.cc
  3440. * src/DHTTaskFactoryImpl.h
  3441. * src/DefaultBtAnnounce.cc
  3442. * src/DefaultBtAnnounce.h
  3443. * src/DefaultBtContext.cc: Removed
  3444. * src/DefaultBtContext.h: Removed
  3445. * src/DefaultBtInteractive.cc
  3446. * src/DefaultBtInteractive.h
  3447. * src/DefaultBtMessageDispatcher.cc
  3448. * src/DefaultBtMessageDispatcher.h
  3449. * src/DefaultBtMessageFactory.cc
  3450. * src/DefaultBtMessageFactory.h
  3451. * src/DefaultBtMessageReceiver.cc
  3452. * src/DefaultBtMessageReceiver.h
  3453. * src/DefaultBtProgressInfoFile.cc
  3454. * src/DefaultBtRequestFactory.cc
  3455. * src/DefaultBtRequestFactory.h
  3456. * src/DefaultExtensionMessageFactory.cc
  3457. * src/DefaultExtensionMessageFactory.h
  3458. * src/DefaultPeerStorage.cc
  3459. * src/DefaultPeerStorage.h
  3460. * src/DefaultPieceStorage.cc
  3461. * src/DefaultSegmentManFactory.cc
  3462. * src/DiskAdaptor.cc
  3463. * src/DiskAdaptor.h
  3464. * src/DownloadContext.cc
  3465. * src/DownloadContext.h
  3466. * src/DownloadEngine.cc
  3467. * src/DownloadEngineFactory.cc
  3468. * src/DownloadHandler.cc
  3469. * src/DownloadResult.h
  3470. * src/FileAllocationCommand.cc
  3471. * src/FileAllocationDispatcherCommand.cc
  3472. * src/FileAllocationEntry.cc
  3473. * src/FileEntry.h
  3474. * src/FillRequestGroupCommand.cc
  3475. * src/FtpDownloadCommand.cc
  3476. * src/FtpFinishDownloadCommand.cc
  3477. * src/FtpInitiateConnectionCommand.cc
  3478. * src/FtpNegotiationCommand.cc
  3479. * src/FtpTunnelRequestCommand.cc
  3480. * src/FtpTunnelResponseCommand.cc
  3481. * src/HandshakeExtensionMessage.cc
  3482. * src/HandshakeExtensionMessage.h
  3483. * src/HaveEraseCommand.cc
  3484. * src/HttpDownloadCommand.cc
  3485. * src/HttpInitiateConnectionCommand.cc
  3486. * src/HttpProxyRequestCommand.cc
  3487. * src/HttpProxyResponseCommand.cc
  3488. * src/HttpRequest.cc
  3489. * src/HttpRequest.h
  3490. * src/HttpRequestCommand.cc
  3491. * src/HttpResponseCommand.cc
  3492. * src/HttpServerBodyCommand.cc
  3493. * src/HttpServerCommand.cc
  3494. * src/HttpSkipResponseCommand.cc
  3495. * src/InitiateConnectionCommandFactory.cc
  3496. * src/InitiatorMSEHandshakeCommand.cc
  3497. * src/InitiatorMSEHandshakeCommand.h
  3498. * src/IteratableChecksumValidator.cc
  3499. * src/IteratableChecksumValidator.h
  3500. * src/IteratableChunkChecksumValidator.cc
  3501. * src/MSEHandshake.cc
  3502. * src/MSEHandshake.h
  3503. * src/Makefile.am
  3504. * src/Makefile.in
  3505. * src/Metalink2RequestGroup.cc
  3506. * src/MetalinkPostDownloadHandler.cc
  3507. * src/MultiDiskAdaptor.cc
  3508. * src/MultiDiskAdaptor.h
  3509. * src/MultiFileAllocationIterator.cc
  3510. * src/MultiUrlRequestInfo.cc
  3511. * src/PeerChokeCommand.cc
  3512. * src/PeerChokeCommand.h
  3513. * src/PeerInitiateConnectionCommand.cc
  3514. * src/PeerInitiateConnectionCommand.h
  3515. * src/PeerInteractionCommand.cc
  3516. * src/PeerInteractionCommand.h
  3517. * src/PeerReceiveHandshakeCommand.cc
  3518. * src/PieceHashCheckIntegrityEntry.cc
  3519. * src/RealtimeCommand.cc
  3520. * src/ReceiverMSEHandshakeCommand.cc
  3521. * src/RequestGroup.cc
  3522. * src/RequestGroup.h
  3523. * src/RequestGroupEntry.cc
  3524. * src/RequestGroupMan.cc
  3525. * src/SeedCheckCommand.cc
  3526. * src/SeedCheckCommand.h
  3527. * src/SegmentMan.cc
  3528. * src/ShareRatioSeedCriteria.h
  3529. * src/SingleFileDownloadContext.cc: Removed
  3530. * src/SingleFileDownloadContext.h: Removed
  3531. * src/SleepCommand.cc
  3532. * src/StreamCheckIntegrityEntry.cc
  3533. * src/TrackerWatcherCommand.cc
  3534. * src/TrackerWatcherCommand.h
  3535. * src/UnknownLengthPieceStorage.cc
  3536. * src/Util.cc
  3537. * src/Util.h
  3538. * src/XmlRpcMethodImpl.cc
  3539. * src/bittorrent_helper.cc
  3540. * src/bittorrent_helper.h
  3541. * src/download_helper.cc
  3542. * src/main.cc
  3543. * src/option_processing.cc
  3544. * test/BitfieldManTest.cc
  3545. * test/BittorrentHelperTest.cc
  3546. * test/BtCancelMessageTest.cc
  3547. * test/BtChokeMessageTest.cc
  3548. * test/BtDependencyTest.cc
  3549. * test/BtPieceMessageTest.cc
  3550. * test/BtPostDownloadHandlerTest.cc
  3551. * test/BtRegistryTest.cc
  3552. * test/BtRejectMessageTest.cc
  3553. * test/BtRequestMessageTest.cc
  3554. * test/DHTPeerAnnounceStorageTest.cc
  3555. * test/DefaultBtAnnounceTest.cc
  3556. * test/DefaultBtContextTest.cc: Removed
  3557. * test/DefaultBtMessageDispatcherTest.cc
  3558. * test/DefaultBtMessageFactoryTest.cc
  3559. * test/DefaultBtProgressInfoFileTest.cc
  3560. * test/DefaultBtRequestFactoryTest.cc
  3561. * test/DefaultExtensionMessageFactoryTest.cc
  3562. * test/DefaultPeerStorageTest.cc
  3563. * test/DefaultPieceStorageTest.cc
  3564. * test/DirectDiskAdaptorTest.cc
  3565. * test/DownloadContextTest.cc
  3566. * test/DownloadHandlerFactoryTest.cc
  3567. * test/DownloadHelperTest.cc
  3568. * test/HandshakeExtensionMessageTest.cc
  3569. * test/HttpRequestTest.cc
  3570. * test/HttpResponseTest.cc
  3571. * test/IteratableChecksumValidatorTest.cc
  3572. * test/IteratableChunkChecksumValidatorTest.cc
  3573. * test/MSEHandshakeTest.cc
  3574. * test/Makefile.am
  3575. * test/Makefile.in
  3576. * test/Metalink2RequestGroupTest.cc
  3577. * test/MetalinkPostDownloadHandlerTest.cc
  3578. * test/MockBtContext.h: Removed
  3579. * test/MockDHTTaskFactory.h
  3580. * test/MockDownloadContext.h: Removed
  3581. * test/MockPieceStorage.h
  3582. * test/MultiDiskAdaptorTest.cc
  3583. * test/MultiFileAllocationIteratorTest.cc
  3584. * test/RequestGroupManTest.cc
  3585. * test/RequestGroupTest.cc
  3586. * test/SegmentManTest.cc
  3587. * test/ShareRatioSeedCriteriaTest.cc
  3588. * test/SingleFileDownloadContextTest.cc: Removed
  3589. * test/UtilTest.cc
  3590. * test/XmlRpcMethodTest.cc
  3591. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3592. Added experimental support of WEB-Seeding for multi-file torrent.
  3593. Due to fundamental changes in file handling in HTTP/FTP code, many
  3594. functions are not working: PeerStat, ServerHost, proxy..etc
  3595. * src/AbstractCommand.cc
  3596. * src/AbstractCommand.h
  3597. * src/BitfieldMan.cc
  3598. * src/BitfieldMan.h
  3599. * src/CreateRequestCommand.cc
  3600. * src/CreateRequestCommand.h
  3601. * src/DefaultPieceStorage.cc
  3602. * src/DefaultPieceStorage.h
  3603. * src/DownloadCommand.cc
  3604. * src/DownloadCommand.h
  3605. * src/DownloadContext.cc
  3606. * src/DownloadContext.h
  3607. * src/FileEntry.cc
  3608. * src/FileEntry.h
  3609. * src/FtpDownloadCommand.cc
  3610. * src/FtpDownloadCommand.h
  3611. * src/FtpFinishDownloadCommand.cc
  3612. * src/FtpFinishDownloadCommand.h
  3613. * src/FtpInitiateConnectionCommand.cc
  3614. * src/FtpInitiateConnectionCommand.h
  3615. * src/FtpNegotiationCommand.cc
  3616. * src/FtpNegotiationCommand.h
  3617. * src/FtpTunnelResponseCommand.cc
  3618. * src/HttpDownloadCommand.cc
  3619. * src/HttpDownloadCommand.h
  3620. * src/HttpInitiateConnectionCommand.cc
  3621. * src/HttpInitiateConnectionCommand.h
  3622. * src/HttpProxyResponseCommand.cc
  3623. * src/HttpRequest.cc
  3624. * src/HttpRequest.h
  3625. * src/HttpRequestCommand.cc
  3626. * src/HttpRequestCommand.h
  3627. * src/HttpResponseCommand.cc
  3628. * src/HttpResponseCommand.h
  3629. * src/HttpSkipResponseCommand.cc
  3630. * src/HttpSkipResponseCommand.h
  3631. * src/InitiateConnectionCommand.cc
  3632. * src/InitiateConnectionCommand.h
  3633. * src/InitiateConnectionCommandFactory.cc
  3634. * src/InitiateConnectionCommandFactory.h
  3635. * src/Makefile.am
  3636. * src/PieceStorage.h
  3637. * src/RequestGroup.cc
  3638. * src/RequestGroup.h
  3639. * src/RequestGroupMan.cc
  3640. * src/SegmentMan.cc
  3641. * src/SegmentMan.h
  3642. * src/SingleFileDownloadContext.h
  3643. * src/StreamFileAllocationEntry.cc
  3644. * src/TrackerWatcherCommand.cc
  3645. * src/UnknownLengthPieceStorage.cc
  3646. * src/UnknownLengthPieceStorage.h
  3647. * src/array_fun.h
  3648. * src/bitfield.h
  3649. * src/download_helper.cc
  3650. * test/DownloadContextTest.cc
  3651. * test/Makefile.am
  3652. * test/MockDownloadContext.h
  3653. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3654. Added tellWaiting XML-RPC method.
  3655. * src/SingleFileDownloadContext.cc
  3656. * src/XmlRpcMethodFactory.cc
  3657. * src/XmlRpcMethodImpl.cc
  3658. * src/XmlRpcMethodImpl.h
  3659. * test/XmlRpcMethodTest.cc
  3660. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Updated CookieStorageTest
  3662. * test/CookieStorageTest.cc
  3663. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3665. handle excepion inside these functions.
  3666. * src/LibgnutlsTLSContext.cc
  3667. * src/LibgnutlsTLSContext.h
  3668. * src/LibsslTLSContext.cc
  3669. * src/LibsslTLSContext.h
  3670. * src/MultiUrlRequestInfo.cc
  3671. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3672. Added comment
  3673. * src/RequestGroup.cc
  3674. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3675. In CookieStorage::load() and saveNsFormat(), handle exception
  3676. inside the functions. When saving Cookies, first write temporary
  3677. file and after successful writes, then renames it to final
  3678. destination.
  3679. * src/CookieStorage.cc
  3680. * src/CookieStorage.h
  3681. * src/MultiUrlRequestInfo.cc
  3682. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3683. The default value of --dir option is the absolute path to the
  3684. current directory. If getcwd() is failed, then it is ".", which is
  3685. the same value with old implementation. This change is necessary
  3686. because after daemon() call, the current working directory is
  3687. changed to /.
  3688. * src/File.cc
  3689. * src/File.h
  3690. * src/OptionHandlerFactory.cc
  3691. * src/option_processing.cc
  3692. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3693. Call daemon() with arguments(0,0), which means daemon() changes
  3694. current working directory to / and redirects stdin, stdout and
  3695. stderr to /dev/null.
  3696. * src/option_processing.cc
  3697. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Small performance optimizations.
  3699. * src/RequestGroupMan.cc
  3700. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3701. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3702. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3703. * src/RequestGroupMan.cc
  3704. * src/RequestGroupMan.h
  3705. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3707. setNoWiat(true) if newly created command calls
  3708. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3709. * src/HttpListenCommand.cc
  3710. * src/HttpServerBodyCommand.cc
  3711. * src/HttpServerCommand.cc
  3712. * src/HttpServerResponseCommand.cc
  3713. * src/InitiateConnectionCommand.cc
  3714. * src/RequestGroup.cc
  3715. * src/StreamFileAllocationEntry.cc
  3716. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3717. Removed include vector
  3718. * src/BtRegistry.h
  3719. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3720. Rewritten BtRegistry
  3721. * src/BtRegistry.cc
  3722. * src/BtRegistry.h
  3723. * src/BtSetup.cc
  3724. * src/ConsoleStatCalc.cc
  3725. * src/PeerInteractionCommand.cc
  3726. * src/PeerReceiveHandshakeCommand.cc
  3727. * src/ReceiverMSEHandshakeCommand.cc
  3728. * src/RequestGroup.cc
  3729. * src/XmlRpcMethodImpl.cc
  3730. * test/BtRegistryTest.cc
  3731. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3733. * src/DefaultBtProgressInfoFile.cc
  3734. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Throw an exception if position is less than 0.
  3736. * src/XmlRpcMethodImpl.cc
  3737. * test/XmlRpcMethodTest.cc
  3738. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3739. Use writeFilePath() in ConsoleStatCalc.cc
  3740. * src/ConsoleStatCalc.cc
  3741. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3742. Receive the return value as const reference from
  3743. DownloadContext::getFileEntries().
  3744. * src/DefaultPieceStorage.cc
  3745. * src/RequestGroupMan.cc
  3746. * src/XmlRpcMethodImpl.cc
  3747. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3748. DownloadContext now has _fileEntries so that
  3749. DownloadContext::getFileEntries() can returns its const reference.
  3750. * src/DefaultBtContext.cc
  3751. * src/DefaultBtContext.h
  3752. * src/DownloadContext.cc
  3753. * src/DownloadContext.h
  3754. * src/SingleFileDownloadContext.cc
  3755. * src/SingleFileDownloadContext.h
  3756. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3757. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3758. writeFilePath() function template from RequestGroupMan.cc to
  3759. FileEntry.h
  3760. * src/FileEntry.h
  3761. * src/RequestGroupMan.cc
  3762. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3763. Documented 'position' parameter is starting from 0 in man page.
  3764. * doc/aria2c.1.txt
  3765. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3766. Updated doc.
  3767. * src/MSEHandshake.cc
  3768. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Removed _acceptFeatures and its accessor functions from
  3770. RequestGroup since they are not used practically.
  3771. * src/HttpRequestCommand.cc
  3772. * src/RequestGroup.cc
  3773. * src/RequestGroup.h
  3774. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Removed member _maxTries from RequestGroup class to avoid
  3776. duplicate option value. Those classes who refer this variable
  3777. should use option value of PREF_MAX_TRIES directly.
  3778. * src/AbstractCommand.cc
  3779. * src/RequestGroup.cc
  3780. * src/RequestGroup.h
  3781. * src/TrackerWatcherCommand.cc
  3782. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. * Release 1.4.1
  3784. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3785. Fixed compiler warnings on netbsd
  3786. * src/DHTConnectionImpl.cc
  3787. * src/PeerListenCommand.cc
  3788. * src/PeerSessionResource.cc
  3789. * src/SegmentMan.cc
  3790. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3791. Updated Ukrainian translation. Thanks to all translators.
  3792. * po/uk.po
  3793. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Bump up version number to 1.4.1.
  3795. * configure.ac
  3796. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Added unit tests for strjoin, strconcat and strappend.
  3798. * test/a2functionalTest.cc
  3799. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Rewritten strconcat and strappend using operator+ instead of
  3801. append().
  3802. * src/a2functional.h
  3803. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3804. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3805. is enabled.
  3806. * src/Makefile.am
  3807. * test/Makefile.am
  3808. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3809. Added countSeeder() function which counts seeder in the given
  3810. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3811. * src/ConsoleStatCalc.cc
  3812. * src/Peer.h
  3813. * src/XmlRpcMethodImpl.cc
  3814. * test/PeerTest.cc
  3815. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. Documented missing seeder in getPeers xml-rpc method.
  3817. Documented uploadLength and numSeeders.
  3818. * doc/aria2c.1.txt
  3819. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3820. Added uploadLength and numSeeders to the response of tellStatus
  3821. xml-rpc method. Assert that PeerStorage instance is not null
  3822. instead of checking if statement. It should be non-null in this
  3823. context.
  3824. * src/XmlRpcMethodImpl.cc
  3825. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3826. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3827. * src/XmlRpcResponse.cc
  3828. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3829. Avoid intermediate object during string concatenation.
  3830. * src/HttpRequest.cc
  3831. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Added strjoin function template. Use it in pathJoin()
  3833. * src/Util.h
  3834. * src/a2functional.h
  3835. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3836. Avoid intermediate object during string concatenation. Replaced
  3837. post-increment unary operator with pre-increment one in for loop.
  3838. * src/AdaptiveURISelector.cc
  3839. * src/AnnounceList.cc
  3840. * src/AuthConfig.h
  3841. * src/BtBitfieldMessage.cc
  3842. * src/BtExtendedMessage.cc
  3843. * src/BtHandshakeMessage.cc
  3844. * src/BtPieceMessage.cc
  3845. * src/BtPortMessage.cc
  3846. * src/Cookie.cc
  3847. * src/DHTAnnouncePeerMessage.cc
  3848. * src/DHTAutoSaveCommand.cc
  3849. * src/DHTGetPeersReplyMessage.cc
  3850. * src/DHTNode.cc
  3851. * src/DHTQueryMessage.cc
  3852. * src/DHTResponseMessage.cc
  3853. * src/DHTUnknownMessage.cc
  3854. * src/DefaultBtAnnounce.cc
  3855. * src/DefaultBtContext.cc
  3856. * src/DefaultBtInteractive.cc
  3857. * src/DefaultBtProgressInfoFile.cc
  3858. * src/DefaultPeerStorage.cc
  3859. * src/DownloadEngine.cc
  3860. * src/FeatureConfig.cc
  3861. * src/File.cc
  3862. * src/FtpConnection.cc
  3863. * src/FtpNegotiationCommand.cc
  3864. * src/HandshakeExtensionMessage.cc
  3865. * src/HttpConnection.cc
  3866. * src/HttpRequest.cc
  3867. * src/HttpResponseCommand.cc
  3868. * src/HttpServer.cc
  3869. * src/IndexBtMessage.cc
  3870. * src/Metalink2RequestGroup.cc
  3871. * src/OptionHandlerImpl.h
  3872. * src/PStringBuildVisitor.cc
  3873. * src/Peer.cc
  3874. * src/PeerListenCommand.cc
  3875. * src/Piece.cc
  3876. * src/RangeBtMessage.cc
  3877. * src/Request.cc
  3878. * src/Request.h
  3879. * src/RequestGroup.cc
  3880. * src/RequestGroupMan.cc
  3881. * src/ServerStat.cc
  3882. * src/ServerStatMan.cc
  3883. * src/UTPexExtensionMessage.cc
  3884. * src/Util.cc
  3885. * src/a2functional.h
  3886. * src/download_helper.cc
  3887. * src/messageDigest.cc
  3888. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3889. Unchoke a peer randomly at first and second choke round in seed
  3890. state.
  3891. * src/BtSeederStateChoke.cc
  3892. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3893. Added (sock_t) to quiet compiler warnings in MinGW
  3894. * src/SocketCore.cc
  3895. * src/SocketCore.h
  3896. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3898. * src/EpollEventPoll.h
  3899. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3900. Added fork() emulation using CreateProcess() in MinGW
  3901. * src/RequestGroupMan.cc
  3902. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. * Release 1.4.0
  3904. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3905. Added utf8.torrent to EXTRA_DIST
  3906. * test/Makefile.am
  3907. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3908. Fixed docs of aria2.addMetalink xml-rpc method.
  3909. * doc/aria2c.1.txt
  3910. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3911. Added Slovak translation. Updated Ukrainian and Brazilian
  3912. Portuguese translation. Thanks to all translators.
  3913. * po/sk.po
  3914. * po/uk.po
  3915. * po/pt_BR.po
  3916. * po/LINGUAS
  3917. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. Added test case for XmlRpcProcessor to fail to parse malformed
  3919. document.
  3920. * test/XmlRpcRequestProcessorTest.cc
  3921. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Removed *.gmo files in po because they are generated on 'make
  3923. dist'
  3924. * po/*.gmo
  3925. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Documented max-concurrent-downloads of changeGlobalOption method
  3927. in man page.
  3928. * doc/aria2c.1.txt
  3929. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3930. Added max-concurrent-downloads option to changeGlobalOption
  3931. xml-rpc method. Rewritten loop conditional in
  3932. RequestGroupMan::fillRequestGroupFromReserver().
  3933. * src/RequestGroupMan.cc
  3934. * src/RequestGroupMan.h
  3935. * src/XmlRpcMethod.cc
  3936. * src/XmlRpcMethodImpl.cc
  3937. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Documented position parameter in man page.
  3939. * doc/aria2c.1.txt
  3940. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Added 'position' parameter to addUri, addTorrent and addMetalink
  3942. xml-rpc method.
  3943. * src/RequestGroupMan.cc
  3944. * src/RequestGroupMan.h
  3945. * src/XmlRpcMethodImpl.cc
  3946. * test/XmlRpcMethodTest.cc
  3947. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3948. Removed Peer.cc from compile source list when --disable-bittorrent
  3949. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3950. takes Peer.
  3951. * src/DefaultPieceStorage.cc
  3952. * src/DefaultPieceStorage.h
  3953. * src/Makefile.am
  3954. * src/PieceStorage.h
  3955. * src/UnknownLengthPieceStorage.cc
  3956. * src/UnknownLengthPieceStorage.h
  3957. * test/MockPieceStorage.h
  3958. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3959. Implemented getter methods in header files to give them more
  3960. chance of optimization.
  3961. Return const reference for SharadHandle if possible.
  3962. * src/AbstractAuthResolver.cc
  3963. * src/AbstractAuthResolver.h
  3964. * src/AbstractBtMessage.cc
  3965. * src/AbstractBtMessage.h
  3966. * src/AbstractSingleDiskAdaptor.cc
  3967. * src/AbstractSingleDiskAdaptor.h
  3968. * src/AsyncNameResolver.cc
  3969. * src/AsyncNameResolver.h
  3970. * src/BNode.cc
  3971. * src/BNode.h
  3972. * src/BitfieldMan.cc
  3973. * src/BitfieldMan.h
  3974. * src/BtAbortOutstandingRequestEvent.h
  3975. * src/BtExtendedMessage.cc
  3976. * src/BtExtendedMessage.h
  3977. * src/BtSeederStateChoke.cc
  3978. * src/BtSeederStateChoke.h
  3979. * src/Cookie.cc
  3980. * src/Cookie.h
  3981. * src/DHTBucket.cc
  3982. * src/DHTBucket.h
  3983. * src/DHTConnectionImpl.cc
  3984. * src/DHTConnectionImpl.h
  3985. * src/DHTFindNodeReplyMessage.cc
  3986. * src/DHTFindNodeReplyMessage.h
  3987. * src/DHTGetPeersReplyMessage.cc
  3988. * src/DHTGetPeersReplyMessage.h
  3989. * src/DHTInteractionCommand.cc
  3990. * src/DHTMessage.cc
  3991. * src/DHTMessage.h
  3992. * src/DHTMessageDispatcherImpl.cc
  3993. * src/DHTMessageEntry.cc
  3994. * src/DHTMessageReceiver.cc
  3995. * src/DHTMessageReceiver.h
  3996. * src/DHTMessageTrackerEntry.cc
  3997. * src/DHTMessageTrackerEntry.h
  3998. * src/DHTPeerAnnounceEntry.cc
  3999. * src/DHTPeerAnnounceEntry.h
  4000. * src/DHTPeerLookupTask.cc
  4001. * src/DHTPeerLookupTask.h
  4002. * src/DHTRoutingTableDeserializer.cc
  4003. * src/DHTRoutingTableDeserializer.h
  4004. * src/DefaultBtAnnounce.cc
  4005. * src/DefaultBtAnnounce.h
  4006. * src/DefaultBtMessageDispatcher.cc
  4007. * src/DefaultBtMessageDispatcher.h
  4008. * src/DefaultBtRequestFactory.cc
  4009. * src/DefaultBtRequestFactory.h
  4010. * src/DiskAdaptor.cc
  4011. * src/DiskAdaptor.h
  4012. * src/DownloadContext.cc
  4013. * src/DownloadContext.h
  4014. * src/DownloadEngine.cc
  4015. * src/DownloadEngine.h
  4016. * src/EpollEventPoll.cc
  4017. * src/EpollEventPoll.h
  4018. * src/FtpConnection.cc
  4019. * src/FtpConnection.h
  4020. * src/HttpConnection.cc
  4021. * src/HttpConnection.h
  4022. * src/HttpHeader.cc
  4023. * src/HttpHeader.h
  4024. * src/HttpRequest.cc
  4025. * src/HttpRequest.h
  4026. * src/HttpResponse.cc
  4027. * src/HttpResponse.h
  4028. * src/LibsslTLSContext.cc
  4029. * src/LibsslTLSContext.h
  4030. * src/MSEHandshake.cc
  4031. * src/MSEHandshake.h
  4032. * src/MetalinkEntry.cc
  4033. * src/MetalinkEntry.h
  4034. * src/MetalinkParserController.cc
  4035. * src/MetalinkParserController.h
  4036. * src/MetalinkParserStateMachine.cc
  4037. * src/MetalinkParserStateMachine.h
  4038. * src/MultiDiskAdaptor.cc
  4039. * src/MultiDiskAdaptor.h
  4040. * src/NetrcAuthResolver.cc
  4041. * src/NetrcAuthResolver.h
  4042. * src/Peer.cc
  4043. * src/Peer.h
  4044. * src/PeerSessionResource.cc
  4045. * src/PeerSessionResource.h
  4046. * src/Piece.cc
  4047. * src/Piece.h
  4048. * src/PieceStatMan.cc
  4049. * src/PieceStatMan.h
  4050. * src/Request.cc
  4051. * src/Request.h
  4052. * src/RequestGroup.cc
  4053. * src/RequestGroup.h
  4054. * src/RequestGroupMan.cc
  4055. * src/RequestGroupMan.h
  4056. * src/RequestSlot.cc
  4057. * src/RequestSlot.h
  4058. * src/SegmentMan.cc
  4059. * src/SegmentMan.h
  4060. * src/SelectEventPoll.cc
  4061. * src/SelectEventPoll.h
  4062. * src/ServerStat.cc
  4063. * src/ServerStat.h
  4064. * src/Signature.cc
  4065. * src/Signature.h
  4066. * src/URIResult.cc
  4067. * src/URIResult.h
  4068. * src/UTPexExtensionMessage.cc
  4069. * src/UTPexExtensionMessage.h
  4070. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4071. Fixed compile error without BitTorrent and Metalink support.
  4072. * src/XmlRpcMethod.cc
  4073. * src/XmlRpcMethodFactory.cc
  4074. * src/XmlRpcMethodImpl.cc
  4075. * src/XmlRpcMethodImpl.h
  4076. * test/XmlRpcMethodTest.cc
  4077. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4078. Rewritten the help message for --allow-overwrite option.
  4079. * doc/aria2c.1.txt
  4080. * src/usage_text.h
  4081. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4082. Fixed typo
  4083. * doc/aria2c.1.txt
  4084. * src/usage_text.h
  4085. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4086. Updated README for 1.4.0 release. Use new table syntax of
  4087. asciidoc.
  4088. * README
  4089. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4090. Documented --xml-rpc-max-request-size option in man page.
  4091. * doc/aria2c.1.txt
  4092. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4093. Moved C_* constants from BtContext to DefaultBtContext.
  4094. * src/BtContext.cc: Removed.
  4095. * src/BtContext.h
  4096. * src/DefaultBtContext.cc
  4097. * src/DefaultBtContext.h
  4098. * src/Makefile.am
  4099. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4100. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4101. path key respectively when persing .torrent file.
  4102. * src/BtContext.cc
  4103. * src/BtContext.h
  4104. * src/DefaultBtContext.cc
  4105. * test/DefaultBtContextTest.cc
  4106. * test/utf8.torrent
  4107. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4108. Added --xml-rpc-max-request-size option to limit the size of
  4109. XML-RPC request.
  4110. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4111. Documented XML-RPC API in man page.
  4112. * doc/aria2c.1.txt
  4113. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4114. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4115. will break strict-aliasing rules
  4116. * src/PeerConnection.cc
  4117. * test/DHTRoutingTableSerializerTest.cc
  4118. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4119. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4120. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4121. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4122. PKG_CHECK_MODULES macro uses latter name.
  4123. * m4/sqlite3.m4
  4124. * src/Makefile.am
  4125. * test/Makefile.am
  4126. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4127. Fixed typo
  4128. * configure.ac
  4129. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4130. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4131. presence of libgnutls using pkg-config first. If it fails, fall
  4132. back to old macro libgnutls.m4.
  4133. * configure.ac
  4134. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4135. Use s itself instead of !s.bad()
  4136. * src/CookieStorage.cc
  4137. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4138. Documented --on-download-* option and --save-cookies option in man
  4139. page.
  4140. * doc/aria2c.1.txt
  4141. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Set possible values for --load-cookie option to "/path/to/file".
  4143. * src/OptionHandlerFactory.cc
  4144. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Added --save-cookies option.
  4146. * src/Cookie.cc
  4147. * src/Cookie.h
  4148. * src/CookieStorage.cc
  4149. * src/CookieStorage.h
  4150. * src/MultiUrlRequestInfo.cc
  4151. * src/OptionHandlerFactory.cc
  4152. * src/prefs.cc
  4153. * src/prefs.h
  4154. * src/usage_text.h
  4155. * test/CookieStorageTest.cc
  4156. * test/CookieTest.cc
  4157. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4158. Removed tellAll XML-RPC command because its reponse tends to be
  4159. big if stopped/waiting downloads pile up.
  4160. * src/XmlRpcMethodFactory.cc
  4161. * src/XmlRpcMethodImpl.cc
  4162. * src/XmlRpcMethodImpl.h
  4163. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4164. Added the ability to execute command when download starts and
  4165. stops. You can also specify command for particular cases such as
  4166. complete/error download. Added --on-download-start,
  4167. --on-download-stop, --on-download-complete and --on-download-error
  4168. option.
  4169. * src/OptionHandlerFactory.cc
  4170. * src/RequestGroupMan.cc
  4171. * src/prefs.cc
  4172. * src/prefs.h
  4173. * src/usage_text.h
  4174. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4175. Fixed test error
  4176. * test/BencodeTest.cc
  4177. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4178. Added unit tests.
  4179. * test/XmlRpcMethodTest.cc
  4180. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4181. Made exception message more verbose.
  4182. * src/bencode.cc
  4183. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4184. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4185. space in console readout. Also they are now shown in MiB/s if
  4186. speed > 1024KiB/s.
  4187. * src/ConsoleStatCalc.cc
  4188. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4189. Added SEED to console output, which represents the number of
  4190. seeders currently the client is connecting to.
  4191. * src/ConsoleStatCalc.cc
  4192. * src/ConsoleStatCalc.h
  4193. * src/DownloadEngine.cc
  4194. * src/NullStatCalc.h
  4195. * src/StatCalc.h
  4196. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4197. Added source filename(__FILE__) and line number(__LINE__) to
  4198. exception message.
  4199. * src/AbstractCommand.cc
  4200. * src/AbstractDiskWriter.cc
  4201. * src/AbstractProxyResponseCommand.cc
  4202. * src/BDE.h
  4203. * src/BtAllowedFastMessage.cc
  4204. * src/BtHandshakeMessageValidator.h
  4205. * src/BtHaveAllMessage.cc
  4206. * src/BtHaveNoneMessage.cc
  4207. * src/BtPieceMessage.cc
  4208. * src/BtRejectMessage.cc
  4209. * src/ChunkedDecoder.cc
  4210. * src/CookieStorage.cc
  4211. * src/DHTAnnouncePeerMessage.cc
  4212. * src/DHTEntryPointNameResolveCommand.cc
  4213. * src/DHTMessageFactoryImpl.cc
  4214. * src/DHTMessageTracker.cc
  4215. * src/DHTRoutingTableDeserializer.cc
  4216. * src/DHTRoutingTableSerializer.cc
  4217. * src/DHTSetup.cc
  4218. * src/DHTTokenTracker.cc
  4219. * src/DefaultBtAnnounce.cc
  4220. * src/DefaultBtContext.cc
  4221. * src/DefaultBtInteractive.cc
  4222. * src/DefaultBtMessageFactory.cc
  4223. * src/DefaultBtProgressInfoFile.cc
  4224. * src/DefaultExtensionMessageFactory.cc
  4225. * src/DlAbortEx.h
  4226. * src/DlRetryEx.h
  4227. * src/DownloadCommand.cc
  4228. * src/DownloadEngineFactory.cc
  4229. * src/DownloadFailureException.h
  4230. * src/Exception.cc
  4231. * src/Exception.h
  4232. * src/ExpatMetalinkProcessor.cc
  4233. * src/ExpatXmlRpcRequestProcessor.cc
  4234. * src/FallocFileAllocationIterator.cc
  4235. * src/FatalException.h
  4236. * src/FtpConnection.cc
  4237. * src/FtpFinishDownloadCommand.cc
  4238. * src/FtpInitiateConnectionCommand.cc
  4239. * src/FtpNegotiationCommand.cc
  4240. * src/GZipDecoder.cc
  4241. * src/HandshakeExtensionMessage.cc
  4242. * src/HttpConnection.cc
  4243. * src/HttpHeaderProcessor.cc
  4244. * src/HttpInitiateConnectionCommand.cc
  4245. * src/HttpResponse.cc
  4246. * src/HttpResponseCommand.cc
  4247. * src/HttpServer.cc
  4248. * src/HttpSkipResponseCommand.cc
  4249. * src/InitiateConnectionCommandFactory.cc
  4250. * src/IteratableChunkChecksumValidator.cc
  4251. * src/LibgcryptARC4Context.h
  4252. * src/LibgcryptARC4Decryptor.h
  4253. * src/LibgcryptARC4Encryptor.h
  4254. * src/LibgcryptDHKeyExchange.h
  4255. * src/LibgnutlsTLSContext.cc
  4256. * src/LibsslARC4Context.h
  4257. * src/LibsslARC4Decryptor.h
  4258. * src/LibsslARC4Encryptor.h
  4259. * src/LibsslDHKeyExchange.h
  4260. * src/LibsslTLSContext.cc
  4261. * src/MSEHandshake.cc
  4262. * src/MessageDigestHelper.cc
  4263. * src/MetalinkHelper.cc
  4264. * src/MultiDiskAdaptor.cc
  4265. * src/NameMatchOptionHandler.h
  4266. * src/NameResolver.cc
  4267. * src/Netrc.cc
  4268. * src/NsCookieParser.cc
  4269. * src/OptionHandlerException.cc
  4270. * src/OptionHandlerException.h
  4271. * src/OptionHandlerImpl.h
  4272. * src/OptionParser.cc
  4273. * src/ParameterizedStringParser.cc
  4274. * src/PeerAbstractCommand.cc
  4275. * src/PeerConnection.cc
  4276. * src/PeerMessageUtil.cc
  4277. * src/PeerReceiveHandshakeCommand.cc
  4278. * src/Platform.cc
  4279. * src/ReceiverMSEHandshakeCommand.cc
  4280. * src/RecoverableException.h
  4281. * src/RequestGroup.cc
  4282. * src/SimpleLogger.cc
  4283. * src/SocketCore.cc
  4284. * src/Sqlite3MozCookieParser.cc
  4285. * src/UTPexExtensionMessage.cc
  4286. * src/Util.cc
  4287. * src/XML2SAXMetalinkProcessor.cc
  4288. * src/Xml2XmlRpcRequestProcessor.cc
  4289. * src/XmlRpcMethodImpl.cc
  4290. * src/bencode.cc
  4291. * src/download_helper.cc
  4292. * src/messageDigest.h
  4293. * test/ExceptionTest.cc
  4294. * test/TestUtil.cc
  4295. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Bump up version number to 1.4.0
  4297. * configure.ac
  4298. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4299. Added 2files.metalink to EXTRA_DIST
  4300. * test/Makefile.am
  4301. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4302. Added missing 2files.metalink
  4303. * test/2files.metalink
  4304. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4305. Show "[MEMORY]" prefix before filename in download summary if it
  4306. is downloaded into memory.
  4307. * src/DownloadResult.h
  4308. * src/RequestGroup.cc
  4309. * src/RequestGroupMan.cc
  4310. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4311. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4312. * src/ExpatXmlRpcRequestProcessor.cc
  4313. * src/Xml2XmlRpcRequestProcessor.cc
  4314. * src/message.h
  4315. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4316. Defined const BDEs to avoid duplicate instantiation.
  4317. Defined MSG_GID_NOT_PROVIDED.
  4318. * src/XmlRpcMethodImpl.cc
  4319. * src/message.h
  4320. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4321. Code cleanup
  4322. * src/Xml2XmlRpcRequestProcessor.cc
  4323. * src/Xml2XmlRpcRequestProcessor.h
  4324. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4325. Defined ENABLE_XML_RPC
  4326. * configure.ac
  4327. * configure
  4328. * config.h.in
  4329. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4330. Added ExpatXmlRpcRequestProcessor
  4331. * src/ExpatXmlRpcRequestProcessor.cc
  4332. * src/ExpatXmlRpcRequestProcessor.h
  4333. * src/Makefile.am
  4334. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. Added tests for addTorrent and addMetalink command.
  4336. * test/TestUtil.cc
  4337. * test/TestUtil.h
  4338. * test/XmlRpcMethodTest.cc
  4339. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4340. Corrected the description of --file-allocation option.
  4341. * doc/aria2c.1.txt
  4342. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4343. Added tellAll command.
  4344. * src/XmlRpcMethodFactory.cc
  4345. * src/XmlRpcMethodImpl.cc
  4346. * src/XmlRpcMethodImpl.h
  4347. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4348. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4349. * src/XmlRpcMethodImpl.cc
  4350. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4351. Added changeGlobalOption command. Currently,
  4352. max-overall-download-limit and max-overall-upload-limit option are
  4353. available.
  4354. * src/RequestGroupMan.h
  4355. * src/XmlRpcMethod.cc
  4356. * src/XmlRpcMethod.h
  4357. * src/XmlRpcMethodFactory.cc
  4358. * src/XmlRpcMethodImpl.cc
  4359. * src/XmlRpcMethodImpl.h
  4360. * test/XmlRpcMethodTest.cc
  4361. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4362. Added changeOption command. Currently, max-download-limit,
  4363. max-upload-limit option are available in this command.
  4364. * src/RequestGroup.h
  4365. * src/XmlRpcMethod.cc
  4366. * src/XmlRpcMethod.h
  4367. * src/XmlRpcMethodFactory.cc
  4368. * src/XmlRpcMethodImpl.cc
  4369. * src/XmlRpcMethodImpl.h
  4370. * test/XmlRpcMethodTest.cc
  4371. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4372. Added purgeDownloadResult command.
  4373. * src/RequestGroupMan.cc
  4374. * src/RequestGroupMan.h
  4375. * src/XmlRpcMethodFactory.cc
  4376. * src/XmlRpcMethodImpl.cc
  4377. * src/XmlRpcMethodImpl.h
  4378. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4379. Refactored.
  4380. * src/XmlRpcMethod.cc
  4381. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4382. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4383. XmlRpcResponse.
  4384. * src/HttpServerBodyCommand.cc
  4385. * src/Makefile.am
  4386. * src/XmlRpcMethod.cc
  4387. * src/XmlRpcMethod.h
  4388. * src/XmlRpcMethodImpl.cc
  4389. * src/XmlRpcResponse.cc
  4390. * src/XmlRpcResponse.h
  4391. * test/XmlRpcMethodTest.cc
  4392. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4393. In XML-RPC option struct, header and index-out option can take
  4394. array as value.
  4395. * src/XmlRpcMethod.cc
  4396. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4397. Removed unused option member from PeerConnection.
  4398. * src/InitiatorMSEHandshakeCommand.cc
  4399. * src/PeerConnection.cc
  4400. * src/PeerConnection.h
  4401. * src/PeerInteractionCommand.cc
  4402. * src/PeerReceiveHandshakeCommand.cc
  4403. * src/ReceiverMSEHandshakeCommand.cc
  4404. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4405. Added "seeder" key to getPeers response.
  4406. * src/XmlRpcMethodImpl.cc
  4407. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4408. Added addMetalink XML-RPC command.
  4409. * src/XmlRpcMethodFactory.cc
  4410. * src/XmlRpcMethodImpl.cc
  4411. * src/XmlRpcMethodImpl.h
  4412. * src/download_helper.cc
  4413. * src/download_helper.h
  4414. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4415. Fixed the bug that POU peers are never choked in seeding.
  4416. * src/BtSeederStateChoke.cc
  4417. * src/BtSeederStateChoke.h
  4418. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4419. Added web-seeding URI handling in addTorrent command.
  4420. * src/XmlRpcMethodImpl.cc
  4421. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4422. Added "length" key to getFiles response.
  4423. * src/XmlRpcMethodImpl.cc
  4424. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4425. Moved --no-netrc option from ftp option section to http/ftp option
  4426. section.
  4427. * doc/aria2c.1.txt
  4428. * src/OptionHandlerFactory.cc
  4429. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4430. Removed garbage "\" character before '
  4431. * doc/aria2c.1.txt
  4432. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4433. Removed garbage "\" character before http.
  4434. * doc/aria2c.1.txt
  4435. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4436. Documented additional options that can be specified in -i list.
  4437. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4438. and --xml-rpc-passwd. Removed --enable-http-server and
  4439. --http-server-listen-port.
  4440. * doc/aria2c.1.txt
  4441. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4443. * src/DefaultPeerStorage.cc
  4444. * src/DefaultPeerStorage.h
  4445. * src/PeerStorage.h
  4446. * src/XmlRpcMethodImpl.cc
  4447. * test/MockPeerStorage.h
  4448. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4449. Put a call to Socket::isReadable() in try block.
  4450. * src/HttpServerBodyCommand.cc
  4451. * src/HttpServerCommand.cc
  4452. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4453. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4454. exception , so it is now in try block.
  4455. * src/HttpServerResponseCommand.cc
  4456. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4457. Added "amChoking" and "peerChoking" key in getPeers response.
  4458. * src/XmlRpcMethodImpl.cc
  4459. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Added test case for zero-length filter.
  4461. * test/BitfieldManTest.cc
  4462. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. getFiles command now returns file data for finished/stopped
  4464. downloads.
  4465. * src/XmlRpcMethodImpl.cc
  4466. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4467. DownloadResult now has the list of FileEntry. The download
  4468. summary displays the path of first selected file and the number of
  4469. remaining files for multi-file torrent.
  4470. * src/DownloadResult.h
  4471. * src/RequestGroup.cc
  4472. * src/RequestGroupMan.cc
  4473. * test/RequestGroupTest.cc
  4474. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4475. Fixed segmentation fault error when no file is selected in
  4476. multi-file torrent.
  4477. * src/BitfieldMan.cc
  4478. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4479. Escaped <,>,& character in XML-RPC response.
  4480. * src/XmlRpcMethod.cc
  4481. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. Throw DlAbortEx instead of FatalException during parsing options
  4483. because we don't want for aria2 to quit when bad option is passed
  4484. via XML-RPC.
  4485. * src/OptionHandlerException.cc
  4486. * src/OptionHandlerException.h
  4487. * src/OptionHandlerImpl.h
  4488. * src/OptionParser.cc
  4489. * src/OptionParser.h
  4490. * src/PStringSegment.cc
  4491. * src/ParameterizedStringParser.cc
  4492. * src/download_helper.cc
  4493. * test/ParameterizedStringParserTest.cc
  4494. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4495. Selecting files are now done in
  4496. DefaultBtContext::setFileFileter().
  4497. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4498. functions are removed because they are no longer used. Creating
  4499. filter in BitfieldMan is done in new funtion
  4500. PieceStorage::setupFileFilter()
  4501. * src/BtContext.cc
  4502. * src/BtContext.h
  4503. * src/DefaultBtContext.cc
  4504. * src/DefaultBtContext.h
  4505. * src/DefaultPieceStorage.cc
  4506. * src/DefaultPieceStorage.h
  4507. * src/DiskAdaptor.cc
  4508. * src/DiskAdaptor.h
  4509. * src/PieceStorage.h
  4510. * src/RequestGroup.cc
  4511. * src/UnknownLengthPieceStorage.h
  4512. * src/XmlRpcMethodImpl.cc
  4513. * test/DefaultBtContextTest.cc
  4514. * test/MockBtContext.h
  4515. * test/MockPieceStorage.h
  4516. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4517. Fixed compile error on Mac OS X
  4518. * src/HttpServer.cc
  4519. * src/XmlRpcMethod.h
  4520. * src/XmlRpcMethodImpl.cc
  4521. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4522. Use std::binary_search instead of std::find
  4523. * src/DefaultPieceStorage.cc
  4524. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4525. Removed unnecessary BDE() call; leave them to implicit conversion.
  4526. * src/XmlRpcMethodImpl.cc
  4527. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4528. Return connections and gid in string
  4529. * src/XmlRpcMethodImpl.cc
  4530. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4531. Renamed addURI as addUri
  4532. * src/XmlRpcMethodFactory.cc
  4533. * src/XmlRpcMethodImpl.cc
  4534. * src/XmlRpcMethodImpl.h
  4535. * test/XmlRpcMethodTest.cc
  4536. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4537. Renamed addTorrentFile as addTorrent
  4538. * src/XmlRpcMethodFactory.cc
  4539. * src/XmlRpcMethodImpl.cc
  4540. * src/XmlRpcMethodImpl.h
  4541. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4542. The information for files, URIs, peers are removed from the
  4543. reponse of TellaActive, TellStatus command because they tend to be
  4544. large. Instead they can be retrieved by the dedicated commands:
  4545. getFiles, getUris and getPeers respectively.
  4546. * src/XmlRpcMethodFactory.cc
  4547. * src/XmlRpcMethodImpl.cc
  4548. * src/XmlRpcMethodImpl.h
  4549. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4550. Removed --max-overall-upload-limit and
  4551. --max-overall-download-limit option from listRequestOptions.
  4552. * src/download_helper.cc
  4553. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. Log incoming host in HttpListenCommand.
  4555. * src/HttpListenCommand.cc
  4556. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4558. --xml-rpc-passwd option.
  4559. * src/HttpServer.cc
  4560. * src/HttpServer.h
  4561. * src/HttpServerCommand.cc
  4562. * src/OptionHandlerFactory.cc
  4563. * src/prefs.cc
  4564. * src/prefs.h
  4565. * src/usage_text.h
  4566. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4567. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4568. processing 0 length request.
  4569. * src/HttpServerBodyCommand.cc
  4570. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4571. Removed --enable-http-server and --http-server-listen-port
  4572. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4573. instead. The original feature for --enable-http-server that
  4574. reports download progress in HTML was officially removed. Persist
  4575. XML-RPC connection if client supports keep-alive.
  4576. * src/DownloadEngineFactory.cc
  4577. * src/HttpServerCommand.cc
  4578. * src/HttpServerResponseCommand.cc
  4579. * src/Makefile.am
  4580. * src/Makefile.in
  4581. * src/OptionHandlerFactory.cc
  4582. * src/RequestGroupMan.cc
  4583. * src/main.cc
  4584. * src/option_processing.cc
  4585. * src/prefs.cc
  4586. * src/prefs.h
  4587. * src/usage_text.h
  4588. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Added "uris" key to the response of tellStatus command. Added
  4590. "connections" key to the response of tellStatus and tellActive
  4591. command.
  4592. * src/XmlRpcMethodImpl.cc
  4593. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4594. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4595. Added TellStatusXmlRpcMethod. Remove command can now remove
  4596. waiting RequestGroup.
  4597. * src/RequestGroupMan.cc
  4598. * src/RequestGroupMan.h
  4599. * src/XmlRpcMethodFactory.cc
  4600. * src/XmlRpcMethodImpl.cc
  4601. * src/XmlRpcMethodImpl.h
  4602. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4603. Initialized _peerId
  4604. * src/Peer.cc
  4605. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4606. Return fault structure for error. FailXmlRpcMethod is renamed as
  4607. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4608. in non-torrent download. Return single param value.
  4609. * src/XmlRpcMethod.cc
  4610. * src/XmlRpcMethodFactory.cc
  4611. * src/XmlRpcMethodImpl.cc
  4612. * src/XmlRpcMethodImpl.h
  4613. * test/XmlRpcMethodTest.cc
  4614. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4615. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4616. command.
  4617. * src/RequestGroup.cc
  4618. * src/RequestGroup.h
  4619. * src/RequestGroupMan.cc
  4620. * src/XmlRpcMethodImpl.cc
  4621. * test/RequestGroupTest.cc
  4622. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4623. Added more options that can be specified in -i list and xml-rpc
  4624. add* command.
  4625. * src/download_helper.h
  4626. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4627. The available options in -i list should be listed in
  4628. listRequestOptions().
  4629. * src/download_helper.cc
  4630. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4631. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4632. command.
  4633. * src/XmlRpcMethodImpl.cc
  4634. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Now RequestGroup has its own copy of Option object. This will help
  4636. to give custom option for each RequestGroup.
  4637. addTorrentFile command now takes options.
  4638. * src/AbstractCommand.cc
  4639. * src/AbstractCommand.h
  4640. * src/AbstractProxyRequestCommand.cc
  4641. * src/ActivePeerConnectionCommand.cc
  4642. * src/ActivePeerConnectionCommand.h
  4643. * src/AdaptiveURISelector.cc
  4644. * src/BtCheckIntegrityEntry.cc
  4645. * src/BtDependency.cc
  4646. * src/BtDependency.h
  4647. * src/BtFileAllocationEntry.cc
  4648. * src/BtPostDownloadHandler.cc
  4649. * src/CheckIntegrityEntry.cc
  4650. * src/DownloadCommand.cc
  4651. * src/FtpDownloadCommand.cc
  4652. * src/FtpFinishDownloadCommand.cc
  4653. * src/FtpInitiateConnectionCommand.cc
  4654. * src/FtpNegotiationCommand.cc
  4655. * src/HttpInitiateConnectionCommand.cc
  4656. * src/HttpRequestCommand.cc
  4657. * src/HttpResponseCommand.cc
  4658. * src/HttpSkipResponseCommand.cc
  4659. * src/InitiateConnectionCommand.cc
  4660. * src/InitiateConnectionCommandFactory.cc
  4661. * src/InitiatorMSEHandshakeCommand.cc
  4662. * src/InitiatorMSEHandshakeCommand.h
  4663. * src/Metalink2RequestGroup.cc
  4664. * src/Metalink2RequestGroup.h
  4665. * src/MetalinkPostDownloadHandler.cc
  4666. * src/MultiUrlRequestInfo.cc
  4667. * src/MultiUrlRequestInfo.h
  4668. * src/PeerAbstractCommand.cc
  4669. * src/PeerInteractionCommand.cc
  4670. * src/PeerInteractionCommand.h
  4671. * src/PeerReceiveHandshakeCommand.cc
  4672. * src/PeerReceiveHandshakeCommand.h
  4673. * src/RequestGroup.cc
  4674. * src/RequestGroup.h
  4675. * src/TrackerWatcherCommand.cc
  4676. * src/TrackerWatcherCommand.h
  4677. * src/XmlRpcMethod.cc
  4678. * src/XmlRpcMethod.h
  4679. * src/XmlRpcMethodImpl.cc
  4680. * src/download_helper.cc
  4681. * src/download_helper.h
  4682. * src/main.cc
  4683. * test/BtDependencyTest.cc
  4684. * test/BtPostDownloadHandlerTest.cc
  4685. * test/DefaultBtMessageDispatcherTest.cc
  4686. * test/DownloadHandlerFactoryTest.cc
  4687. * test/DownloadHelperTest.cc
  4688. * test/Metalink2RequestGroupTest.cc
  4689. * test/MetalinkPostDownloadHandlerTest.cc
  4690. * test/RequestGroupManTest.cc
  4691. * test/RequestGroupTest.cc
  4692. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4693. Added tellActiveStatus xml-rpc command which reports download
  4694. status of active downloads.
  4695. * src/XmlRpcMethodFactory.cc
  4696. * src/XmlRpcMethodImpl.cc
  4697. * src/XmlRpcMethodImpl.h
  4698. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4699. Added addTorrentFile xml-rpc command which receives uploaded
  4700. torrent file and add download for it.
  4701. * src/RequestGroupMan.cc
  4702. * src/XmlRpcMethodFactory.cc
  4703. * src/XmlRpcMethodImpl.cc
  4704. * src/XmlRpcMethodImpl.h
  4705. * src/download_helper.cc
  4706. * src/download_helper.h
  4707. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4708. Added remove xml-rpc command which removes specified download.
  4709. There is a known issue: the removed unfinished downloads are
  4710. reported ERR when aria2 exits. They should be reported as INPR.
  4711. * src/RequestGroupMan.cc
  4712. * src/RequestGroupMan.h
  4713. * src/XmlRpcMethodFactory.cc
  4714. * src/XmlRpcMethodImpl.cc
  4715. * src/XmlRpcMethodImpl.h
  4716. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4717. If --enable-http-server is enabled, don't stop aria2 when all
  4718. download finished and don't quit when no files to download at
  4719. start up.
  4720. * src/RequestGroupMan.cc
  4721. * src/main.cc
  4722. * src/option_processing.cc
  4723. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4724. Added missing AM_CONDITIONAL
  4725. * configure.ac
  4726. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4727. Added xml-rpc functionality. Currently only addURI commad is
  4728. supported. To enable xml-rpc, run aria2 with
  4729. --enable-http-server. This option name is temporal and will be
  4730. changed. The feature that reports download progress in html format
  4731. is temporarily disabled.
  4732. * src/HttpServer.cc
  4733. * src/HttpServer.h
  4734. * src/HttpServerBodyCommand.cc
  4735. * src/HttpServerBodyCommand.h
  4736. * src/HttpServerCommand.cc
  4737. * src/HttpServerResponseCommand.cc
  4738. * src/Makefile.am
  4739. * src/OptionParser.cc
  4740. * src/OptionParser.h
  4741. * src/RequestGroupMan.cc
  4742. * src/RequestGroupMan.h
  4743. * src/XmlRpcMethod.cc
  4744. * src/XmlRpcMethod.h
  4745. * src/XmlRpcMethodFactory.cc
  4746. * src/XmlRpcMethodFactory.h
  4747. * src/XmlRpcMethodImpl.cc
  4748. * src/XmlRpcMethodImpl.h
  4749. * src/download_helper.cc
  4750. * src/download_helper.h
  4751. * test/Makefile.am
  4752. * test/XmlRpcMethodTest.cc
  4753. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4754. Added xml-rpc request parser. The supported value types are:
  4755. i4/int, string, double, struct, array, base64. Currently only
  4756. libxml2 version is provided.
  4757. * src/Xml2XmlRpcRequestProcessor.cc
  4758. * src/Xml2XmlRpcRequestProcessor.h
  4759. * src/XmlRpcElements.cc
  4760. * src/XmlRpcElements.h
  4761. * src/XmlRpcRequest.h
  4762. * src/XmlRpcRequestParserController.cc
  4763. * src/XmlRpcRequestParserController.h
  4764. * src/XmlRpcRequestParserState.h
  4765. * src/XmlRpcRequestParserStateImpl.cc
  4766. * src/XmlRpcRequestParserStateImpl.h
  4767. * src/XmlRpcRequestParserStateMachine.cc
  4768. * src/XmlRpcRequestParserStateMachine.h
  4769. * src/XmlRpcRequestProcessor.h
  4770. * test/XmlRpcRequestParserControllerTest.cc
  4771. * test/XmlRpcRequestProcessorTest.cc
  4772. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4773. * Release 1.3.3
  4774. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4775. Fixed compile error since r1202.
  4776. * src/ExpatMetalinkProcessor.cc
  4777. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4778. Updated Ukrainian, Russian and Simplified Chinese
  4779. translations. Thanks to all translators.
  4780. * po/ru.po
  4781. * po/uk.po
  4782. * po/zh_CN.po
  4783. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4784. Pass reference of Option object instead of pointer.
  4785. * src/download_helper.cc
  4786. * src/download_helper.h
  4787. * src/main.cc
  4788. * test/DownloadHelperTest.cc
  4789. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4790. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4791. from option directly. Instead, get them from RequestGroup.
  4792. * src/ActivePeerConnectionCommand.cc
  4793. * src/ActivePeerConnectionCommand.h
  4794. * src/PeerReceiveHandshakeCommand.cc
  4795. * src/RequestGroup.h
  4796. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4797. Removed unused uploadLimitCheck and uploadLimit from
  4798. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4799. PeerInteractionCommand.
  4800. * src/PeerAbstractCommand.cc
  4801. * src/PeerAbstractCommand.h
  4802. * src/PeerInteractionCommand.cc
  4803. * src/PeerInteractionCommand.h
  4804. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4805. Fixed broken file renaming feature since r1202.
  4806. * src/FtpNegotiationCommand.cc
  4807. * src/FtpNegotiationCommand.h
  4808. * src/HttpResponseCommand.cc
  4809. * src/RequestGroup.cc
  4810. * src/RequestGroup.h
  4811. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4812. Removed unused debug log
  4813. * src/SocketCore.cc
  4814. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4815. Generated configure and Makefile.in using autoconf 2.63 and
  4816. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4817. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4818. * configure.ac
  4819. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4820. Moved piece statistics stuff to new PieceStatMan class.
  4821. Refactored PieceSelector interface.
  4822. * src/DefaultPieceStorage.cc
  4823. * src/DefaultPieceStorage.h
  4824. * src/LongestSequencePieceSelector.cc
  4825. * src/LongestSequencePieceSelector.h
  4826. * src/Makefile.am
  4827. * src/PieceSelector.h
  4828. * src/PieceStatMan.cc
  4829. * src/PieceStatMan.h
  4830. * src/RarestPieceSelector.cc
  4831. * src/RarestPieceSelector.h
  4832. * src/RequestGroup.cc
  4833. * test/DefaultPieceStorageTest.cc
  4834. * test/InOrderPieceSelector.h
  4835. * test/Makefile.am
  4836. * test/PieceStatManTest.cc
  4837. * test/RarestPieceSelectorTest.cc
  4838. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4839. Added static member _protocolFamily to SocketCore. By default,
  4840. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4841. address. Sometime SocketCore::bind() and
  4842. SocketCore::establishConnection() use difference protocl family
  4843. and latter cannot connect to former. To avoid this situation, we
  4844. limit protocol family to AF_INET for unit tests.
  4845. * src/SocketCore.cc
  4846. * src/SocketCore.h
  4847. * test/AllTest.cc
  4848. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4849. Avoid std::bad_alloc for negative bencode string length.
  4850. * src/bencode.cc
  4851. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4852. Supported segmented downloading with chunked transfer encoding and
  4853. content-length.
  4854. * src/DownloadCommand.cc
  4855. * src/HttpResponseCommand.cc
  4856. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4857. Bump up version number to 1.3.3
  4858. * configure.ac
  4859. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4860. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4861. from 4096 to 65536 (for insanely large ftp login banners)
  4862. * src/FtpConnection.h
  4863. * test/FtpConnectionTest.cc
  4864. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4865. In DefaultBtContext::getActualBasePath(), return first
  4866. FileEntry::getPath() for single file torrent.
  4867. * src/DefaultBtContext.cc
  4868. * test/DefaultBtContextTest.cc
  4869. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4870. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4871. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4872. Removed _directIOAllowed member from DiskWriter.
  4873. * src/AbstractDiskWriter.cc
  4874. * src/AbstractDiskWriter.h
  4875. * src/AbstractSingleDiskAdaptor.cc
  4876. * src/AbstractSingleDiskAdaptor.h
  4877. * src/BinaryStream.h
  4878. * src/ByteArrayDiskWriter.h
  4879. * src/DefaultPieceStorage.cc
  4880. * src/DiskWriter.h
  4881. * src/MultiDiskAdaptor.cc
  4882. * src/MultiDiskAdaptor.h
  4883. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Now the constructor of AbstractDiskWriter takes filename as an
  4885. argument and filename argument is removed from openFile(),
  4886. initAndOpenFile(), openExistingFile() interface. storeDir member
  4887. and its accessor functions are removed from DiskAdaptor because it
  4888. is not used anymore. size() member function of DefaultDiskWriter,
  4889. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4890. opening file.
  4891. * src/AbstractDiskWriter.cc
  4892. * src/AbstractDiskWriter.h
  4893. * src/AbstractSingleDiskAdaptor.cc
  4894. * src/AbstractSingleDiskAdaptor.h
  4895. * src/ByteArrayDiskWriter.cc
  4896. * src/ByteArrayDiskWriter.h
  4897. * src/ByteArrayDiskWriterFactory.cc
  4898. * src/ByteArrayDiskWriterFactory.h
  4899. * src/DefaultDiskWriter.cc
  4900. * src/DefaultDiskWriter.h
  4901. * src/DefaultDiskWriterFactory.cc
  4902. * src/DefaultDiskWriterFactory.h
  4903. * src/DefaultPieceStorage.cc
  4904. * src/DirectDiskAdaptor.cc
  4905. * src/DirectDiskAdaptor.h
  4906. * src/DiskAdaptor.h
  4907. * src/DiskWriter.h
  4908. * src/DiskWriterFactory.h
  4909. * src/MessageDigestHelper.cc
  4910. * src/MultiDiskAdaptor.cc
  4911. * src/RequestGroup.cc
  4912. * src/UnknownLengthPieceStorage.cc
  4913. * src/Util.cc
  4914. * test/DefaultDiskWriterTest.cc
  4915. * test/DirectDiskAdaptorTest.cc
  4916. * test/FallocFileAllocationIteratorTest.cc
  4917. * test/MessageDigestHelperTest.cc
  4918. * test/MetalinkProcessorTest.cc
  4919. * test/MultiDiskAdaptorTest.cc
  4920. * test/MultiFileAllocationIteratorTest.cc
  4921. * test/SingleFileAllocationIteratorTest.cc
  4922. * test/UtilTest.cc
  4923. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4924. Fixed the bug that aria2 aborts when --select-file is used. This
  4925. bug was introduced in r1199.
  4926. * src/MultiDiskAdaptor.cc
  4927. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4928. Code cleanup
  4929. * test/MockPieceStorage.cc
  4930. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4931. Fixed the bug that read-only file with wrong file size will cause
  4932. error because it cannot be truncated to the correct size. Now if
  4933. file size is different than the expected one, re-open file in
  4934. writable mode.
  4935. * src/AbstractSingleDiskAdaptor.cc
  4936. * src/AbstractSingleDiskAdaptor.h
  4937. * src/BtCheckIntegrityEntry.cc
  4938. * src/DiskAdaptor.h
  4939. * src/MultiDiskAdaptor.h
  4940. * src/RequestGroup.cc
  4941. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4942. Fixed the bug that with --check-integrity option aria2 reports
  4943. downloaded file size is 0 even if some parts of file is correctly
  4944. downloaded. This bug is reproducible for the download that a file
  4945. includes last piece is missing. This bug doesn't reveal for
  4946. single-torrent with file allocation on.
  4947. * src/IteratableChecksumValidator.cc
  4948. * test/IteratableChecksumValidatorTest.cc
  4949. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4950. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4951. * src/RequestGroupMan.cc
  4952. * src/AdaptiveURISelector.cc
  4953. * src/AdaptiveURISelector.h
  4954. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4955. * Release 1.3.2
  4956. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4957. Updated README
  4958. * README
  4959. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4960. Updated Ukrainian translations. Thanks to Alexander10.
  4961. * po/uk.po
  4962. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4963. Code cleanup
  4964. * src/MetalinkParserStateMachine.cc
  4965. * src/MetalinkParserStateMachine.h
  4966. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4967. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4968. and expat simultaneously, MetalinkProcessor is now not base class
  4969. and it is directly implemented in XML2SAXMetalinkProcessor and
  4970. ExpatMetalinkProcessor.
  4971. * src/ExpatMetalinkProcessor.cc
  4972. * src/ExpatMetalinkProcessor.h
  4973. * src/Makefile.am
  4974. * src/MetalinkHelper.cc
  4975. * src/MetalinkProcessor.h
  4976. * src/MetalinkProcessorFactory.cc: Removed.
  4977. * src/MetalinkProcessorFactory.h: Removed
  4978. * src/XML2SAXMetalinkProcessor.cc
  4979. * src/XML2SAXMetalinkProcessor.h
  4980. * test/MetalinkProcessorTest.cc
  4981. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4982. Bump up version number to 1.3.2
  4983. * configure.ac
  4984. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4985. Added missing file.
  4986. * test/Makefile.am
  4987. * test/url-list-singleFileEndsWithSlash.torrent
  4988. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4989. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4990. request.
  4991. * src/AnnounceList.cc
  4992. * src/AnnounceList.h
  4993. * src/BDE.cc: Added
  4994. * src/BDE.h: Added
  4995. * src/DHTAbstractMessage.cc
  4996. * src/DHTAbstractMessage.h
  4997. * src/DHTAnnouncePeerMessage.cc
  4998. * src/DHTAnnouncePeerMessage.h
  4999. * src/DHTAnnouncePeerReplyMessage.cc
  5000. * src/DHTAnnouncePeerReplyMessage.h
  5001. * src/DHTFindNodeMessage.cc
  5002. * src/DHTFindNodeMessage.h
  5003. * src/DHTFindNodeReplyMessage.cc
  5004. * src/DHTFindNodeReplyMessage.h
  5005. * src/DHTGetPeersMessage.cc
  5006. * src/DHTGetPeersMessage.h
  5007. * src/DHTGetPeersReplyMessage.cc
  5008. * src/DHTGetPeersReplyMessage.h
  5009. * src/DHTMessageFactory.h
  5010. * src/DHTMessageFactoryImpl.cc
  5011. * src/DHTMessageFactoryImpl.h
  5012. * src/DHTMessageReceiver.cc
  5013. * src/DHTMessageTracker.cc
  5014. * src/DHTMessageTracker.h
  5015. * src/DHTPingMessage.cc
  5016. * src/DHTPingMessage.h
  5017. * src/DHTPingReplyMessage.cc
  5018. * src/DHTPingReplyMessage.h
  5019. * src/DHTQueryMessage.cc
  5020. * src/DHTQueryMessage.h
  5021. * src/DHTResponseMessage.cc
  5022. * src/DHTResponseMessage.h
  5023. * src/DefaultBtAnnounce.cc
  5024. * src/DefaultBtContext.cc
  5025. * src/DefaultBtContext.h
  5026. * src/HandshakeExtensionMessage.cc
  5027. * src/Makefile.am
  5028. * src/PeerListProcessor.h
  5029. * src/UTPexExtensionMessage.cc
  5030. * src/bencode.cc
  5031. * src/bencode.h
  5032. * test/AnnounceListTest.cc
  5033. * test/BDETest.cc: Added
  5034. * test/BencodeTest.cc
  5035. * test/DHTAnnouncePeerMessageTest.cc
  5036. * test/DHTAnnouncePeerReplyMessageTest.cc
  5037. * test/DHTFindNodeMessageTest.cc
  5038. * test/DHTFindNodeReplyMessageTest.cc
  5039. * test/DHTGetPeersMessageTest.cc
  5040. * test/DHTGetPeersReplyMessageTest.cc
  5041. * test/DHTMessageFactoryImplTest.cc
  5042. * test/DHTMessageTrackerTest.cc
  5043. * test/DHTPingMessageTest.cc
  5044. * test/DHTPingReplyMessageTest.cc
  5045. * test/Makefile.am
  5046. * test/MockDHTMessageFactory.h
  5047. * test/PeerListProcessorTest.cc
  5048. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Use url-list (web-seeding) only for single-file torrent. This is
  5050. basically the same behavior with Metalink file with torrent and
  5051. URIs.
  5052. * src/RequestGroup.cc
  5053. * src/DefaultBtContext.cc
  5054. * test/DefaultBtContextTest.cc
  5055. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Rewritten expr
  5057. * src/array_fun.h
  5058. * test/array_funTest.cc
  5059. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5060. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5061. * src/DefaultBtMessageDispatcher.cc
  5062. * src/a2algo.h
  5063. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Removed ExtendedMessagingAware. Instead of using inheritance,
  5065. added ExtensionMessageRegistry and it is passed to
  5066. DefaultExtensionMessageFactory.
  5067. * src/DefaultBtInteractive.cc
  5068. * src/DefaultBtInteractive.h
  5069. * src/DefaultExtensionMessageFactory.cc
  5070. * src/DefaultExtensionMessageFactory.h
  5071. * src/ExtendedMessagingAware.h: Removed.
  5072. * src/ExtensionMessageFactory.h
  5073. * src/ExtensionMessageRegistry.h: Added.
  5074. * src/Makefile.am
  5075. * src/PeerInteractionCommand.cc
  5076. * test/DefaultExtensionMessageFactoryTest.cc
  5077. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5078. Fixed typo in log messages
  5079. * src/MSEHandshake.cc
  5080. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5081. Fixed the bug that prevents torrent download from finishing. The
  5082. bug doesn't reveal for all torrents. The torrents affected this
  5083. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5084. of pieces.
  5085. * src/bitfield.h
  5086. * test/bitfieldTest.cc
  5087. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Code cleanup
  5089. * src/PeerListProcessor.h
  5090. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5091. Removed RequestGroupAware
  5092. * src/AbstractCommand.cc
  5093. * src/AbstractCommand.h
  5094. * src/ActivePeerConnectionCommand.cc
  5095. * src/ActivePeerConnectionCommand.h
  5096. * src/DHTGetPeersCommand.cc
  5097. * src/DHTGetPeersCommand.h
  5098. * src/InitiatorMSEHandshakeCommand.cc
  5099. * src/InitiatorMSEHandshakeCommand.h
  5100. * src/Makefile.am
  5101. * src/PeerInitiateConnectionCommand.cc
  5102. * src/PeerInitiateConnectionCommand.h
  5103. * src/PeerInteractionCommand.cc
  5104. * src/PeerInteractionCommand.h
  5105. * src/RealtimeCommand.cc
  5106. * src/RealtimeCommand.h
  5107. * src/RequestGroupAware.cc: Removed
  5108. * src/RequestGroupAware.h: Removed
  5109. * src/SeedCheckCommand.cc
  5110. * src/SeedCheckCommand.h
  5111. * src/SleepCommand.cc
  5112. * src/TrackerWatcherCommand.cc
  5113. * src/TrackerWatcherCommand.h
  5114. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5115. Rewritten PeerListProcessor
  5116. * src/PeerListProcessor.h
  5117. * src/CompactPeerListProcessor.h: Removed
  5118. * src/CompactPeerListProcessor.cc: Removed
  5119. * src/DelegatingPeerListProcessor.cc: Removed.
  5120. * src/DefaultBtAnnounce.cc
  5121. * src/Makefile.am
  5122. * src/UTPexExtensionMessage.cc
  5123. * src/DefaultPeerListProcessor.h: Removed.
  5124. * src/DefaultPeerListProcessor.cc: Removed.
  5125. * src/DelegatingPeerListProcessor.h: Removed.
  5126. * test/Makefile.am
  5127. * test/PeerListProcessorTest.cc
  5128. * test/DefaultPeerListProcessorTest.cc: Removed.
  5129. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5130. Rewritten RequestGroupMan::calculateStat()
  5131. * src/RequestGroupMan.cc
  5132. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5133. Removed unnecessary virtual destructor for Request class.
  5134. * src/Request.cc
  5135. * src/Request.h
  5136. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5137. Avoid dynamic_pointer_cast.
  5138. * src/DHTGetPeersCommand.cc
  5139. * src/DHTGetPeersCommand.h
  5140. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5141. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5142. BtEvent.
  5143. * src/AbstractBtEventListener.h: Removed.
  5144. * src/AbstractBtMessage.cc
  5145. * src/AbstractBtMessage.h
  5146. * src/BtAbortOutstandingRequestEvent.h
  5147. * src/BtCancelSendingPieceEvent.h
  5148. * src/BtChokedEvent.h: Removed.
  5149. * src/BtChokingEvent.h
  5150. * src/BtEvent.h: Removed
  5151. * src/BtEventListener.h: Removed.
  5152. * src/BtMessage.h
  5153. * src/BtPieceMessage.cc
  5154. * src/BtPieceMessage.h
  5155. * src/BtRequestMessage.cc
  5156. * src/BtRequestMessage.h
  5157. * src/DefaultBtMessageDispatcher.cc
  5158. * src/Makefile.am
  5159. * src/a2functional.h
  5160. * test/BtPieceMessageTest.cc
  5161. * test/BtRequestMessageTest.cc
  5162. * test/DefaultBtMessageDispatcherTest.cc
  5163. * test/MockBtMessage.h
  5164. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5165. Code cleanup
  5166. * src/RequestGroupMan.cc
  5167. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5168. Code cleanup
  5169. * src/DownloadCommand.cc
  5170. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5171. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5172. byte.
  5173. * src/DownloadCommand.cc
  5174. * src/bitfield.h
  5175. * test/bitfieldTest.cc
  5176. Fixed the bug that causes infinite loop if broken web server
  5177. returns chunked response without last "0" chunk-size marker and
  5178. closes connection.
  5179. * src/DownloadCommand.cc
  5180. Instantiate properly configured HttpDownloadCommand for
  5181. non-resumable downlaods.
  5182. * src/HttpResponseCommand.cc
  5183. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5184. Rewritten array operation functions.
  5185. * src/BitfieldMan.cc
  5186. * src/array_fun.h
  5187. * test/array_funTest.cc
  5188. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5189. Removed unused variable 'query'
  5190. * src/Request.cc
  5191. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5192. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5193. accidentally set to false in r1162.
  5194. * configure.ac
  5195. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5196. Code cleanup
  5197. * src/BNode.cc
  5198. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5199. Increase prefixLength for the bucket which doesn't own local node
  5200. ID when splitting bucket.
  5201. * src/DHTBucket.cc
  5202. * test/DHTBucketTest.cc
  5203. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5204. * Release 1.3.1
  5205. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5206. Bump up version number to 1.3.1
  5207. * configure.ac
  5208. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5209. Removed unused variable checkPoint. Also removed include directive
  5210. for TimeA2.h.
  5211. * src/SeedCheckCommand.h
  5212. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5213. Fixed the bug that upload limit exceeds the value specified in
  5214. --seed-ratio option depending on the timing of the execution of
  5215. SeedCheckCommand.
  5216. * src/SeedCheckCommand.cc
  5217. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5218. Fixed the bug that removed peer's session upload/download length
  5219. are counted twice in _cachedTransferStat before it is
  5220. re-calculated. This affected the calculation of shara ratio,
  5221. resulting aria2 wrongly determines that specified share ratio is
  5222. reached. Also fixed the typo in calculateStatFor function name.
  5223. * src/BtSetup.cc
  5224. * src/DefaultPeerStorage.cc
  5225. * src/ShareRatioSeedCriteria.h
  5226. * test/ShareRatioSeedCriteriaTest.cc
  5227. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5228. * Release 1.3.0
  5229. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5230. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5231. Nynorsk translations. Thanks to all translators.
  5232. * po/es.po
  5233. * po/ja.po
  5234. * po/nn.po
  5235. * po/ru.po
  5236. * po/uk.po
  5237. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5238. Rewritten isInRange()
  5239. * src/DHTBucket.cc
  5240. * test/DHTBucketTest.cc
  5241. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5242. Fixed typo
  5243. * doc/aria2c.1.txt
  5244. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5245. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5246. malloc/realloc is not used.
  5247. * src/configure.ac
  5248. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5249. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5250. char* bitfield instead of stl container for efficiency.
  5251. PieceSelector::select now takes this
  5252. bitfield. RarestPieceSelector::select now also performs
  5253. efficiently for this change. bitfield namespace is introduced and
  5254. it has several helper functions to handle basic bitfield
  5255. operations such as test, count set bits, etc.
  5256. * src/BitfieldMan.cc
  5257. * src/BitfieldMan.h
  5258. * src/DefaultBtRequestFactory.cc
  5259. * src/DefaultPieceStorage.cc
  5260. * src/DefaultPieceStorage.h
  5261. * src/LongestSequencePieceSelector.cc
  5262. * src/LongestSequencePieceSelector.h
  5263. * src/Makefile.am
  5264. * src/Piece.cc
  5265. * src/Piece.h
  5266. * src/PieceSelector.h
  5267. * src/RarestPieceSelector.cc
  5268. * src/RarestPieceSelector.h
  5269. * src/Util.cc
  5270. * src/Util.h
  5271. * src/bitfield.h
  5272. * test/BitfieldManTest.cc
  5273. * test/LongestSequencePieceSelectorTest.cc
  5274. * test/Makefile.am
  5275. * test/RarestPieceSelectorTest.cc
  5276. * test/UtilTest.cc
  5277. * test/bitfieldTest.cc
  5278. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5279. Made accepted socket non-block.
  5280. * src/FtpNegotiationCommand.cc
  5281. * src/HttpListenCommand.cc
  5282. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5283. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5284. * src/AbstractSingleDiskAdaptor.cc
  5285. * src/DefaultPieceStorage.cc
  5286. * src/DiskAdaptor.h
  5287. * src/DiskAdaptor.h
  5288. * src/MultiFileAllocationIterator.cc
  5289. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5290. Run
  5291. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5292. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5293. it doesn't need to be called every time when
  5294. DefaultBtInteractive::doInteractionProcessing() is called.
  5295. * src/DefaultBtInteractive.cc
  5296. * src/DefaultBtInteractive.h
  5297. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5298. Documented 'falloc' in man page.
  5299. * doc/aria2c.1.txt
  5300. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Updated doc
  5302. * src/usage_text.h
  5303. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5305. allocation mode uses posix_fallocate() system call to allocate
  5306. file on disk. If you are using newer file systems such as ext4
  5307. (with extents support), btrfs or xfs, 'falloc' is your best
  5308. choice. It allocates large(few GiB) files almost instantly. Don't
  5309. use 'falloc' with legacy file systems such as ext3 because it
  5310. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5311. until allocation finishes. 'falloc' may not be available if your
  5312. system doesn't have posix_fallocate() system call.
  5313. * configure.ac
  5314. * src/AbstractDiskWriter.cc
  5315. * src/AbstractDiskWriter.h
  5316. * src/AbstractSingleDiskAdaptor.cc
  5317. * src/BinaryStream.h
  5318. * src/BtCheckIntegrityEntry.cc
  5319. * src/ByteArrayDiskWriter.h
  5320. * src/CheckIntegrityEntry.cc
  5321. * src/CheckIntegrityEntry.h
  5322. * src/DefaultPieceStorage.cc
  5323. * src/DiskAdaptor.cc
  5324. * src/DiskAdaptor.h
  5325. * src/DiskWriter.h
  5326. * src/FallocFileAllocationIterator.cc
  5327. * src/FallocFileAllocationIterator.h
  5328. * src/FileAllocationEntry.cc
  5329. * src/FileAllocationEntry.h
  5330. * src/Makefile.am
  5331. * src/MultiFileAllocationIterator.cc
  5332. * src/MultiFileAllocationIterator.h
  5333. * src/OptionHandlerFactory.cc
  5334. * src/RequestGroup.cc
  5335. * src/StreamCheckIntegrityEntry.cc
  5336. * src/prefs.cc
  5337. * src/prefs.h
  5338. * src/usage_text.h
  5339. * test/FallocFileAllocationIteratorTest.cc
  5340. * test/Makefile.am
  5341. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5342. Removed duplicate enableDirectIO() call.
  5343. * src/MultiFileAllocationIterator.cc
  5344. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5345. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5346. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5347. cost of std::rotate().
  5348. * src/RarestPieceSelector.cc
  5349. * src/RarestPieceSelector.h
  5350. * test/RarestPieceSelectorTest.cc
  5351. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5352. Updated usage doc for --bt-tracker-interval option.
  5353. * src/usage_text.h
  5354. * doc/aria2c.1.txt
  5355. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5356. Documented --bt-tracker-interval option in man page.
  5357. * doc/aria2c.1.txt
  5358. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5359. Added an option to specify the interval between tracker requests.
  5360. If non-zero value is specified, aria2 uses it and ignores the
  5361. interval value in the response of tracker. If zero is specified,
  5362. aria2 determines the inteval value based on the tarcker response
  5363. and download progress.
  5364. * src/DefaultBtAnnounce.cc
  5365. * src/DefaultBtAnnounce.h
  5366. * src/OptionHandlerFactory.cc
  5367. * src/RequestGroup.cc
  5368. * src/prefs.cc
  5369. * src/prefs.h
  5370. * src/usage_text.h
  5371. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5372. Added operator+=, operator-=, operator-
  5373. * src/TransferStat.cc
  5374. * src/TransferStat.h
  5375. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5376. Refactored RarestPieceSelector to reduce CPU load, especially for
  5377. addPieceStats.
  5378. * src/RarestPieceSelector.cc
  5379. * src/RarestPieceSelector.h
  5380. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5381. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5382. getAllMissingBlockIndexes to reduce a call to
  5383. array_function_base::operator[].
  5384. * src/BitfieldMan.cc
  5385. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5386. Cached TransferStat/download speed to avoid to sum them up in each
  5387. call.
  5388. * src/DefaultPeerStorage.cc
  5389. * src/DefaultPeerStorage.h
  5390. * src/SegmentMan.cc
  5391. * src/SegmentMan.h
  5392. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5393. Typedefed cuid_t as int32_t in Command.h
  5394. * src/CUIDCounter.h
  5395. * src/Command.cc
  5396. * src/Command.h
  5397. * src/DownloadEngine.cc
  5398. * src/DownloadEngine.h
  5399. * src/PeerStat.h
  5400. * src/SegmentMan.cc
  5401. * src/SegmentMan.h
  5402. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5403. Reduced the number of calls to PeerStorage::calculateStat() and
  5404. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5405. transfer rate.
  5406. * src/DefaultBtInteractive.cc
  5407. * src/DefaultBtMessageDispatcher.cc
  5408. * src/DefaultPeerStorage.cc
  5409. * src/DefaultPeerStorage.h
  5410. * src/DownloadCommand.cc
  5411. * src/DownloadEngine.cc
  5412. * src/PeerStorage.h
  5413. * src/SegmentMan.cc
  5414. * src/SegmentMan.h
  5415. * test/MockPeerStorage.h
  5416. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5417. Prepended _dir+"/" after joining path elements in torrent file.
  5418. * src/DefaultBtContext.cc
  5419. * test/DefaultBtContextTest.cc
  5420. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5421. Added missing IndexBtMessageValidator.h
  5422. * src/Makefile.am
  5423. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5424. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5425. Chinese translations. Thank you for contributing our project.
  5426. * po/id.po
  5427. * po/it.po
  5428. * po/ru.po
  5429. * po/uk.po
  5430. * po/zh_CN.po
  5431. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5432. Updated README
  5433. * README
  5434. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5435. Bump up version number to 1.3.0
  5436. * configure.ac
  5437. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5438. Updated doc
  5439. * src/DefaultBtContext.h
  5440. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5441. Slice/joinPath for name of single torrent.
  5442. * src/DefaultBtContext.cc
  5443. * test/DefaultBtContextTest.cc
  5444. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5445. Updated man page: Documented --dry-run and --index-out
  5446. options. Changed the default value of --uri-selector and
  5447. --http-auth-challenge options. Removed --direct-file-mapping
  5448. option. Added example for --index-out
  5449. * doc/aria2c.1.txt
  5450. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5451. Updated TEXT_DRY_RUN
  5452. * src/usage_text.h
  5453. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5454. Changed the default value of --uri-selector option from 'inorder'
  5455. to 'feedback'
  5456. * src/OptionHandlerFactory.cc
  5457. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5458. Included current URI in exception message.
  5459. * src/AbstractCommand.cc
  5460. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5461. Renamed ServerStatURISelector as FeedbackURISelector.
  5462. * src/FeedbackURISelector.cc
  5463. * src/FeedbackURISelector.h
  5464. * src/Makefile.am
  5465. * src/RequestGroupMan.cc
  5466. * src/ServerStatURISelector.cc
  5467. * src/ServerStatURISelector.h
  5468. * test/FeedbackURISelectorTest.cc
  5469. * test/Makefile.am
  5470. * test/ServerStatURISelectorTest.cc
  5471. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5472. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5473. all URIs are tested and their timeout is not reached.
  5474. * src/AdaptiveURISelector.cc
  5475. * src/AdaptiveURISelector.h
  5476. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5477. Changed the default value of --http-auth-challenge option to false.
  5478. * src/OptionHandlerFactory.cc
  5479. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5480. Reuse URIs when all unused URIs run out.
  5481. * src/OptionHandlerFactory.cc
  5482. * src/RequestGroup.cc
  5483. * src/prefs.cc
  5484. * src/prefs.h
  5485. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5486. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5487. and BtRejectMessage are derived from RangeBtMessage class.
  5488. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5489. derived from IndexBtMessage class. BtChokeMessage,
  5490. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5491. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5492. ZeroBtMessage class.
  5493. * src/AbstractBtMessage.cc
  5494. * src/AbstractBtMessage.h
  5495. * src/BtAllowedFastMessage.cc
  5496. * src/BtAllowedFastMessage.h
  5497. * src/BtAllowedFastMessageValidator.h: Removed
  5498. * src/BtBitfieldMessage.cc
  5499. * src/BtBitfieldMessage.h
  5500. * src/BtCancelMessage.cc
  5501. * src/BtCancelMessage.h
  5502. * src/BtCancelMessageValidator.h: Removed
  5503. * src/BtChokeMessage.cc
  5504. * src/BtChokeMessage.h
  5505. * src/BtExtendedMessage.cc
  5506. * src/BtExtendedMessage.h
  5507. * src/BtHandshakeMessage.cc
  5508. * src/BtHandshakeMessage.h
  5509. * src/BtHaveAllMessage.cc
  5510. * src/BtHaveAllMessage.h
  5511. * src/BtHaveMessage.cc
  5512. * src/BtHaveMessage.h
  5513. * src/BtHaveMessageValidator.h: Removed
  5514. * src/BtHaveNoneMessage.cc
  5515. * src/BtHaveNoneMessage.h
  5516. * src/BtInterestedMessage.cc
  5517. * src/BtInterestedMessage.h
  5518. * src/BtKeepAliveMessage.cc
  5519. * src/BtKeepAliveMessage.h
  5520. * src/BtNotInterestedMessage.cc
  5521. * src/BtNotInterestedMessage.h
  5522. * src/BtPieceMessage.cc
  5523. * src/BtPieceMessage.h
  5524. * src/BtPortMessage.cc
  5525. * src/BtPortMessage.h
  5526. * src/BtRejectMessage.cc
  5527. * src/BtRejectMessage.h
  5528. * src/BtRejectMessageValidator.h: Removed
  5529. * src/BtRequestMessage.cc
  5530. * src/BtRequestMessage.h
  5531. * src/BtRequestMessageValidator.h: Removed
  5532. * src/BtSuggestPieceMessage.cc
  5533. * src/BtSuggestPieceMessage.h
  5534. * src/BtSuggestPieceMessageValidator.h: Removed
  5535. * src/BtUnchokeMessage.cc
  5536. * src/BtUnchokeMessage.h
  5537. * src/DefaultBtMessageFactory.cc
  5538. * src/IndexBtMessage.cc
  5539. * src/IndexBtMessage.h
  5540. * src/IndexBtMessageValidator.h
  5541. * src/Makefile.am
  5542. * src/PeerMessageUtil.cc
  5543. * src/PeerMessageUtil.h
  5544. * src/RangeBtMessage.cc
  5545. * src/RangeBtMessage.h
  5546. * src/RangeBtMessageValidator.h
  5547. * src/SimpleBtMessage.cc
  5548. * src/SimpleBtMessage.h
  5549. * src/ZeroBtMessage.cc
  5550. * src/ZeroBtMessage.h
  5551. * test/BtRequestMessageTest.cc
  5552. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5553. Reverted usage_text.h to r1093 to avoid to lose translated
  5554. messages.
  5555. * src/usage_text.h
  5556. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5557. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5558. declared as non-const previously is now const and defined in class
  5559. definition.
  5560. * src/AbstractBtMessage.cc
  5561. * src/AbstractBtMessage.h
  5562. * src/BtAllowedFastMessage.cc
  5563. * src/BtAllowedFastMessage.h
  5564. * src/BtBitfieldMessage.h
  5565. * src/BtCancelMessage.cc
  5566. * src/BtCancelMessage.h
  5567. * src/BtChokeMessage.cc
  5568. * src/BtChokeMessage.h
  5569. * src/BtExtendedMessage.cc
  5570. * src/BtExtendedMessage.h
  5571. * src/BtHandshakeMessage.cc
  5572. * src/BtHandshakeMessage.h
  5573. * src/BtHaveAllMessage.cc
  5574. * src/BtHaveAllMessage.h
  5575. * src/BtHaveMessage.cc
  5576. * src/BtHaveMessage.h
  5577. * src/BtHaveNoneMessage.cc
  5578. * src/BtHaveNoneMessage.h
  5579. * src/BtInterestedMessage.cc
  5580. * src/BtInterestedMessage.h
  5581. * src/BtKeepAliveMessage.cc
  5582. * src/BtKeepAliveMessage.h
  5583. * src/BtMessage.h
  5584. * src/BtNotInterestedMessage.cc
  5585. * src/BtNotInterestedMessage.h
  5586. * src/BtPieceMessage.h
  5587. * src/BtPortMessage.cc
  5588. * src/BtPortMessage.h
  5589. * src/BtRejectMessage.cc
  5590. * src/BtRejectMessage.h
  5591. * src/BtRequestMessage.cc
  5592. * src/BtRequestMessage.h
  5593. * src/BtSuggestPieceMessage.cc
  5594. * src/BtSuggestPieceMessage.h
  5595. * src/BtUnchokeMessage.cc
  5596. * src/BtUnchokeMessage.h
  5597. * src/SimpleBtMessage.cc
  5598. * src/SimpleBtMessage.h
  5599. * test/MockBtMessage.h
  5600. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5601. Use FileEntry::exists()
  5602. * src/MultiDiskAdaptor.cc
  5603. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5604. Added exists()
  5605. * src/FileEntry.cc
  5606. * src/FileEntry.h
  5607. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5608. Added missing prefix dir.
  5609. * src/download_helper.cc
  5610. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5611. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5612. * src/CopyDiskAdaptor.cc: Removed
  5613. * src/CopyDiskAdaptor.h: Removed
  5614. * src/DefaultPieceStorage.cc
  5615. * src/Makefile.am
  5616. * src/OptionHandlerFactory.cc
  5617. * src/prefs.cc
  5618. * src/prefs.h
  5619. * src/usage_text.h
  5620. * test/CopyDiskAdaptorTest.cc: Removed
  5621. * test/Makefile.am
  5622. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5623. Rewritten isSameFileBeingDownloaded()
  5624. * src/RequestGroupMan.cc
  5625. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Removed getName() from DownloadContext. getName() is declared in
  5627. BtContext.
  5628. * src/BtContext.h
  5629. * src/DownloadContext.h
  5630. * src/SingleFileDownloadContext.cc
  5631. * src/SingleFileDownloadContext.h
  5632. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5633. in AbstractSingleDiskAdaptor.
  5634. * src/AbstractSingleDiskAdaptor.h
  5635. * src/DiskAdaptor.h
  5636. * src/MultiDiskAdaptor.h
  5637. * src/RequestGroup.cc
  5638. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5639. MultiDiskAdaptor.
  5640. * src/DefaultPieceStorage.cc
  5641. * src/MultiDiskAdaptor.cc
  5642. * src/MultiDiskAdaptor.h
  5643. * test/MultiDiskAdaptorTest.cc
  5644. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5645. FileEntry::getPath() contains store(top level) directory to
  5646. simplify path handling operation. In the previous implementation,
  5647. store directory is concatenated to FileEntry::getPath() in
  5648. DownloadContext.
  5649. * src/BtDependency.cc
  5650. * src/BtPostDownloadHandler.cc
  5651. * src/CopyDiskAdaptor.cc
  5652. * src/DefaultBtContext.cc
  5653. * src/DirectDiskAdaptor.cc
  5654. * src/FileEntry.cc
  5655. * src/FileEntry.h
  5656. * src/FtpNegotiationCommand.cc
  5657. * src/HttpResponse.cc
  5658. * src/HttpResponseCommand.cc
  5659. * src/Metalink2RequestGroup.cc
  5660. * src/MultiDiskAdaptor.cc
  5661. * src/MultiDiskAdaptor.h
  5662. * src/MultiFileAllocationIterator.cc
  5663. * src/RequestGroup.cc
  5664. * src/SingleFileDownloadContext.cc
  5665. * src/SingleFileDownloadContext.h
  5666. * src/download_helper.cc
  5667. * test/BtDependencyTest.cc
  5668. * test/CopyDiskAdaptorTest.cc
  5669. * test/DefaultBtContextTest.cc
  5670. * test/DefaultBtProgressInfoFileTest.cc
  5671. * test/DirectDiskAdaptorTest.cc
  5672. * test/DownloadHelperTest.cc
  5673. * test/FileEntryTest.cc
  5674. * test/MultiDiskAdaptorTest.cc
  5675. * test/MultiFileAllocationIteratorTest.cc
  5676. * test/RequestGroupTest.cc
  5677. * test/SingleFileDownloadContextTest.cc
  5678. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5679. Fixed compiler warning
  5680. * src/download_helper.cc
  5681. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5682. Throw exception if same infohash torrent is now downloading.
  5683. * src/RequestGroup.cc
  5684. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5685. Added --dry-run option. In this mode, aria2 just checks whether
  5686. the remote file is available and doesn't download data. This
  5687. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5688. are canceled in this mode.
  5689. * src/FtpNegotiationCommand.cc
  5690. * src/HttpResponseCommand.cc
  5691. * src/HttpResponseCommand.h
  5692. * src/OptionHandlerFactory.cc
  5693. * src/RequestGroup.cc
  5694. * src/RequestGroupMan.cc
  5695. * src/prefs.cc
  5696. * src/prefs.h
  5697. * src/usage_text.h
  5698. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5699. Fixed compiler waring
  5700. * test/UriListParserTest.cc
  5701. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5702. Parse options in -i list using OptionParser.
  5703. * src/UriListParser.cc
  5704. * src/UriListParser.h
  5705. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5706. Don't reset URI in retry to avoid additional round trips because
  5707. of redirects.
  5708. * src/AbstractCommand.cc
  5709. * src/OptionHandlerFactory.cc
  5710. * src/prefs.cc
  5711. * src/prefs.h
  5712. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5713. Declared hide() in OptionHandler.
  5714. * src/NameMatchOptionHandler.h
  5715. * src/OptionHandler.h
  5716. * src/OptionHandlerImpl.h
  5717. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5718. Updated doc
  5719. * src/Peer.h
  5720. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5721. Added log message in setStatusInternal()
  5722. * src/ServerStat.cc
  5723. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5724. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5725. effectively exclude failed server.
  5726. * src/AbstractCommand.cc
  5727. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5728. Added --index-out option to specify each file path for torrent.
  5729. Here index shown in --show-files option is used to specify which
  5730. file path should be altered. For example, to change the file path
  5731. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5732. option multiple times: --index-out=1=aria2.tar.bz2
  5733. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5734. available. This option can be specified in -i list.
  5735. * src/DefaultBtContext.cc
  5736. * src/DefaultBtContext.h
  5737. * src/MultiDiskAdaptor.cc
  5738. * src/MultiDiskAdaptor.h
  5739. * src/MultiFileAllocationIterator.cc
  5740. * src/OptionHandlerFactory.cc
  5741. * src/OptionHandlerImpl.h
  5742. * src/Util.cc
  5743. * src/Util.h
  5744. * src/download_helper.cc
  5745. * src/prefs.cc
  5746. * src/prefs.h
  5747. * src/usage_text.h
  5748. * test/DefaultBtContextTest.cc
  5749. * test/MultiDiskAdaptorTest.cc
  5750. * test/MultiFileAllocationIteratorTest.cc
  5751. * test/UtilTest.cc
  5752. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5753. Use Util::pathJoin()
  5754. * src/MetalinkParserController.cc
  5755. * test/test.xml
  5756. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5757. Use Util::pathJoin()
  5758. * src/DefaultBtContext.cc
  5759. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5760. Added Util::pathJoin()
  5761. * src/Util.h
  5762. * test/UtilTest.cc
  5763. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5764. Applied basename function to remove directory element in
  5765. content-disposition value.
  5766. Return empty string if content-disposition value is ".." or ".".
  5767. * src/Util.cc
  5768. * test/UtilTest.cc
  5769. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5770. Added --max-overall-download-limit in man page.
  5771. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5772. * doc/aria2c.1.txt
  5773. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5774. Added --max-overall-download-limit option. Now --max-upload-limit
  5775. option is not ignored when --max-overall-upload-limit option has
  5776. non-zero value. aria2 checks download(upload) speed in the order:
  5777. first checks overall speed limit and if it is not exceeded, then
  5778. checks speed limit per download. Thus you can specify both
  5779. value. For example, set --max-overall-download-limit=1M and
  5780. --max-download-limit=500K to prevent from one download from eating
  5781. all overall speed limit.
  5782. * src/DefaultBtInteractive.cc
  5783. * src/DefaultBtInteractive.h
  5784. * src/DefaultBtMessageDispatcher.cc
  5785. * src/DefaultBtMessageDispatcher.h
  5786. * src/DownloadCommand.cc
  5787. * src/DownloadCommand.h
  5788. * src/FtpNegotiationCommand.cc
  5789. * src/HttpResponseCommand.cc
  5790. * src/OptionHandlerFactory.cc
  5791. * src/PeerInteractionCommand.cc
  5792. * src/RequestGroup.cc
  5793. * src/RequestGroup.h
  5794. * src/RequestGroupMan.cc
  5795. * src/RequestGroupMan.h
  5796. * src/prefs.cc
  5797. * src/prefs.h
  5798. * src/usage_text.h
  5799. * test/DefaultBtMessageDispatcherTest.cc
  5800. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5801. Documented select-file option in Input File section.
  5802. Documented --http-auth-challenge option.
  5803. * doc/aria2c.1.txt
  5804. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5805. Now select-file can be specified in the uri list(-i list).
  5806. * src/BtContext.cc
  5807. * src/BtContext.h
  5808. * src/RequestGroup.cc
  5809. * src/Sequence.h
  5810. * src/download_helper.cc
  5811. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5812. Made the upper value of --max-concurrent-downloads options unlimited.
  5813. * src/OptionHandlerFactory.cc
  5814. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5815. Fixed the bug that disk writer is not created even if it shares
  5816. same piece with the preceding file if the length of previous file
  5817. is 0.
  5818. * src/MultiDiskAdaptor.cc
  5819. * test/MultiDiskAdaptorTest.cc
  5820. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5821. In BitTorrent, Open files in read-only mode for hash check. After
  5822. that, re-open file in read/write mode only when the download is
  5823. not finished.
  5824. * src/AbstractDiskWriter.cc
  5825. * src/AbstractDiskWriter.h
  5826. * src/AbstractSingleDiskAdaptor.cc
  5827. * src/AbstractSingleDiskAdaptor.h
  5828. * src/BtCheckIntegrityEntry.cc
  5829. * src/DiskAdaptor.h
  5830. * src/DiskWriter.h
  5831. * src/MultiDiskAdaptor.cc
  5832. * src/MultiDiskAdaptor.h
  5833. * src/RequestGroup.cc
  5834. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5835. Added --http-auth-challenge option. If it is set to true(by
  5836. default), aria2 sends HTTP authorization header only when it is
  5837. requested by the server. If false is set, then authorization
  5838. header is always sent to the server. This is useful for servers
  5839. that don't respond 401 code when authentication is required.
  5840. There is an exception: if username and password are embedded in
  5841. URI, authorization header is always sent to the server regardless
  5842. of this option.
  5843. * src/AuthConfigFactory.cc
  5844. * src/HttpSkipResponseCommand.cc
  5845. * src/OptionHandlerFactory.cc
  5846. * src/prefs.cc
  5847. * src/prefs.h
  5848. * src/usage_text.h
  5849. * test/AuthConfigFactoryTest.cc
  5850. * test/HttpRequestTest.cc
  5851. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5852. * Release 1.2.0
  5853. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5854. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5855. Thanks to all translators.
  5856. * po/es.po
  5857. * po/ja.po
  5858. * po/ru.po
  5859. * po/uk.po
  5860. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5861. Call deleteSocketForReadCheck() before socket is closed.
  5862. * src/HttpListenCommand.cc
  5863. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5864. Defined virtual destructor for BObject.
  5865. * src/bencode.h
  5866. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5867. Rewritten BDE to make it efficient.
  5868. * src/bencode.cc
  5869. * src/bencode.h
  5870. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5871. Removed function throw list.
  5872. * src/bencode.cc
  5873. * src/bencode.h
  5874. * test/BencodeTest.cc
  5875. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5876. Enclosed all URLs in double quotes in command-line examples.
  5877. * doc/aria2c.1.txt
  5878. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5879. Updated reference/see also section.
  5880. * README
  5881. * doc/aria2c.1.txt
  5882. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5883. Reorganized man page based on man man-pages.
  5884. * doc/aria2c.1.txt
  5885. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5886. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5887. because same documents are available in man page. Added
  5888. References section.
  5889. * README
  5890. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5891. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5892. PERFORMANCE PROFILE section.
  5893. * doc/aria2c.1.txt
  5894. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5895. Rewritten the section for configuration file.
  5896. * README
  5897. * doc/aria2c.1.txt
  5898. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5899. Fixed the segmentation fault during execution of choking algorithm
  5900. in leecher state because of broken compare operator
  5901. implementation.
  5902. * src/BtLeecherStateChoke.cc
  5903. * src/BtLeecherStateChoke.h
  5904. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5905. Open file in binary mode.
  5906. * src/CookieStorage.cc
  5907. * src/DHTSetup.cc
  5908. * src/DHTUtil.cc
  5909. * src/Netrc.cc
  5910. * src/NsCookieParser.cc
  5911. * src/ProtocolDetector.cc
  5912. * src/RequestGroupMan.cc
  5913. * src/Signature.cc
  5914. * src/bencode.cc
  5915. * src/download_helper.cc
  5916. * src/option_processing.cc
  5917. * test/CookieParserTest.cc
  5918. * test/DefaultBtProgressInfoFileTest.cc
  5919. * test/FileTest.cc
  5920. * test/GZipDecoderTest.cc
  5921. * test/RequestGroupManTest.cc
  5922. * test/SignatureTest.cc
  5923. * test/SingleFileAllocationIteratorTest.cc
  5924. * test/UriListParserTest.cc
  5925. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5926. Removed operator[] because it is ambiguous with built-in []
  5927. operator.
  5928. * src/array_fun.h
  5929. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5930. Fixed compile error
  5931. * src/OptionParser.cc
  5932. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5933. Added missing call to arrayWrapperConst
  5934. * test/array_funTest.cc
  5935. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5936. Use array_wrapper instead of array_ptr.
  5937. * src/DHTRoutingTableDeserializer.cc
  5938. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5940. * src/array_fun.h
  5941. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. Added array_wrapper template.
  5943. * src/array_fun.h
  5944. * test/array_funTest.cc
  5945. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5946. Use operator T* of array_ptr.
  5947. * src/OptionParser.cc
  5948. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5949. Use localhost instead of 127.0.0.1
  5950. * test/FtpConnectionTest.cc
  5951. * test/MSEHandshakeTest.cc
  5952. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5953. Added operator T*
  5954. * src/array_fun.h
  5955. * test/array_funTest.cc
  5956. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5957. Use dynamically allocated char array to detect memory access
  5958. violation.
  5959. * src/DHTRoutingTableDeserializer.cc
  5960. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5961. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5962. defined.
  5963. * src/PeerMessageUtil.cc
  5964. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5965. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5966. * configure.ac
  5967. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5968. Added a check to see struct sockaddr_in has sin_len member.
  5969. * configure.ac
  5970. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5971. Fixed buffer overrun.
  5972. * src/DHTRoutingTableDeserializer.cc
  5973. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5974. Added LL for long long int constant.
  5975. * test/FtpConnectionTest.cc
  5976. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5977. Casted to unsigned int to suppress compiler warning on netbsd.
  5978. * src/BtRuntime.h
  5979. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5980. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5981. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5982. type time_t.
  5983. * src/SimpleLogger.cc
  5984. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5985. Added test for FtpConnection::receiveSizeResponse().
  5986. * test/FtpConnectionTest.cc
  5987. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5988. Fix epoll error on the old kernel 2.6.8 or ealier.
  5989. * src/EpollEventPoll.cc
  5990. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5991. Use Util::parseLLInt instead of sscanf for portability. The
  5992. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5993. * src/FtpConnection.cc
  5994. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5995. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5996. block. It should not filter anything.
  5997. * src/BitfieldMan.cc
  5998. * src/ConsoleStatCalc.cc
  5999. * test/BitfieldManTest.cc
  6000. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6001. Fixed the bug that the boolean options that don't take arguments
  6002. don't work.
  6003. * src/OptionHandlerImpl.h
  6004. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6005. Fixed broken selected file BitTorrent download.
  6006. * src/MultiDiskAdaptor.cc
  6007. * test/MultiDiskAdaptorTest.cc
  6008. * test/MultiFileAllocationIteratorTest.cc
  6009. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6010. Fixed #define guard for EpollEventPoll
  6011. * src/EpollEventPoll.h
  6012. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6013. Wait 2 seconds. 1 second is sometimes not enough.
  6014. * test/TimeSeedCriteriaTest.cc
  6015. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6016. Use localhost instead of 127.0.0.1.
  6017. * test/DHTConnectionImplTest.cc
  6018. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6019. Suppressed compiler warning.
  6020. * src/AdaptiveURISelector.cc
  6021. * src/DefaultPieceStorage.cc
  6022. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6023. Defined virtual destructor.
  6024. * src/MetalinkParserState.h
  6025. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6026. Give NULL for second argument of getaddrinfo instead of "0".
  6027. * src/NameResolver.cc
  6028. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6029. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6030. included strptime doesn't parse data for this format.
  6031. * src/FtpConnection.cc
  6032. * test/FtpConnectionTest.cc
  6033. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6034. Removed tests giving -1 for unsigned argument.
  6035. * test/SingleFileDownloadContextTest.cc
  6036. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6037. Don't use sha256 in tests because it might not be supported by the
  6038. SSL library.
  6039. * test/MetalinkProcessorTest.cc
  6040. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6041. Removed tests giving -1 for unsigned argument.
  6042. * test/AlphaNumberDecoratorTest
  6043. * test/BitfieldManTest.cc
  6044. * test/DefaultBtContextTest.cc
  6045. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6046. Fixed compile error without libcares when epoll is available.
  6047. * src/EpollEventPoll.cc
  6048. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6049. Included fstream instead of iostream.
  6050. * test/SignatureTest.cc
  6051. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6052. Removed #include <algorithm>
  6053. * test/RequestGroupTest.cc
  6054. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6055. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6056. using RequestGroup::extractURIResult().
  6057. * src/AdaptiveURISelector.cc
  6058. * src/RequestGroup.cc
  6059. * src/RequestGroup.h
  6060. * test/RequestGroupTest.cc
  6061. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6062. Added tests for array_ptr.
  6063. * test/array_funTest.cc
  6064. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6065. Don't send ip parameter to a tracker if ip parameter is empty
  6066. string.
  6067. * src/DefaultBtAnnounce.cc
  6068. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6069. Adjusted line feed.
  6070. * src/version_usage.cc
  6071. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6072. Print tags, possible values when OptionHandlerException is caught.
  6073. * src/option_processing.cc
  6074. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6075. Changed the message for FatalException.
  6076. * src/OptionParser.cc
  6077. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6078. Documented --bt-external-ip option in man page. Updated man pages
  6079. for --proxy-method option.
  6080. * doc/aria2c.1.txt
  6081. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6082. Use GET method for FTP via HTTP proxy.
  6083. * src/FtpInitiateConnectionCommand.cc
  6084. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6085. Changed the default value of --proxy-method option from 'tunnel'
  6086. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6087. option.
  6088. * src/AbstractCommand.cc
  6089. * src/AbstractCommand.h
  6090. * src/FtpInitiateConnectionCommand.cc
  6091. * src/HttpDownloadCommand.cc
  6092. * src/HttpInitiateConnectionCommand.cc
  6093. * src/HttpInitiateConnectionCommand.h
  6094. * src/OptionHandlerFactory.cc
  6095. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6096. Initialized _logger
  6097. * src/SelectEventPoll.cc
  6098. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6099. Defined a copy constructor for the same type.
  6100. * src/SharedHandle.h
  6101. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6102. Added OptionParser::parseArg() which internally uses getopt_long
  6103. to parse command-line options. All command-line options are now
  6104. configured by OptionHandler. No manual editing of struct option*
  6105. is required any more.
  6106. * src/NameMatchOptionHandler.h
  6107. * src/OptionHandler.h
  6108. * src/OptionHandlerFactory.cc
  6109. * src/OptionHandlerImpl.h
  6110. * src/OptionParser.cc
  6111. * src/OptionParser.h
  6112. * src/array_fun.h
  6113. * src/main.cc
  6114. * src/option_processing.cc
  6115. * test/OptionHandlerTest.cc
  6116. * test/OptionParserTest.cc
  6117. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6118. Fixed configure error with --disable-epoll
  6119. * configure.ac
  6120. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6121. Fixed compile error when HAVE_EPOLL is not defined.
  6122. Fixed linker error on bigendian systems.
  6123. * src/SocketCore.cc
  6124. * src/SocketCore.h
  6125. * test/DefaultBtProgressInfoFileTest.cc
  6126. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6127. Added --bt-external-ip option. You can specify the external IP
  6128. address to report to a BitTorrent tracker. Although this function
  6129. is named 'external', it can accept any kind of IP addresses.
  6130. * src/DefaultBtAnnounce.cc
  6131. * src/OptionHandlerFactory.cc
  6132. * src/option_processing.cc
  6133. * src/prefs.cc
  6134. * src/prefs.h
  6135. * src/usage_text.h
  6136. * test/DefaultBtAnnounceTest.cc
  6137. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6138. Extracted the algorithm to find the longest incremental sequence
  6139. as max_sequence template.
  6140. * src/LongestSequencePieceSelector.cc
  6141. * src/a2algo.h
  6142. * test/Makefile.am
  6143. * test/a2algoTest.cc
  6144. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6145. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6146. * src/usage_text.h
  6147. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6148. Updated doc for --uri-selector, --http-server-listen-port and
  6149. --enable-http-server option. Documented --event-poll option.
  6150. * doc/aria2c.1.txt
  6151. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6152. Updated doc for --enable-http-server.
  6153. * src/usage_text.h
  6154. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6155. Documented --http-server-listen-port and --enable-http-server in
  6156. man page.
  6157. * doc/aria2c.1.txt
  6158. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6159. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6160. translations. Thanks to all translators.
  6161. * po/es.po
  6162. * po/id.po
  6163. * po/it.po
  6164. * po/ru.po
  6165. * po/uk.po
  6166. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6167. Bump up version number to 1.2.0
  6168. * configure.ac
  6169. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6170. BtContext::getAnnounceTiers() now returns const reference.
  6171. * src/BtContext.h
  6172. * src/DefaultBtContext.cc
  6173. * src/DefaultBtContext.h
  6174. * test/MockBtContext.h
  6175. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6176. Change the number of retries for tracker request based on the
  6177. number of available tracker in a torrent file.
  6178. * src/TrackerWatcherCommand.cc
  6179. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6180. Added _maxTries property to RequestGroup and assign the option
  6181. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6182. RequestGroup::getMaxTries() instead of
  6183. Option::getAsInt(PREF_MAX_TRIES).
  6184. * src/AbstractCommand.cc
  6185. * src/RequestGroup.cc
  6186. * src/RequestGroup.h
  6187. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6188. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6189. Mandriva. I modified the patch: make RequestGroup have the
  6190. timeout value and AdaptiveURISelector directly modifies that
  6191. value.
  6192. * src/AbstractCommand.cc
  6193. * src/AdaptiveURISelector.cc
  6194. * src/AdaptiveURISelector.h
  6195. * src/FtpNegotiationCommand.cc
  6196. * src/RequestGroup.cc
  6197. * src/RequestGroup.h
  6198. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6199. Fixed compiler warning
  6200. * test/IteratableChecksumValidatorTest.cc
  6201. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6202. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6203. integrated downloads. This PieceSelector subclass finds the
  6204. longest continuous sequence in the available missing pieces and
  6205. selects the last index of such sequence. This makes HTTP/FTP
  6206. connections less interrupted by the pieces obtained by BitTorrent
  6207. peers.
  6208. * src/DefaultPieceStorage.cc
  6209. * src/DefaultPieceStorage.h
  6210. * src/LongestSequencePieceSelector.cc
  6211. * src/LongestSequencePieceSelector.h
  6212. * src/Makefile.am
  6213. * src/PieceSelector.h
  6214. * src/RarestPieceSelector.h
  6215. * src/RequestGroup.cc
  6216. * test/BtDependencyTest.cc
  6217. * test/DefaultPieceStorageTest.cc
  6218. * test/IteratableChecksumValidatorTest.cc
  6219. * test/LongestSequencePieceSelectorTest.cc
  6220. * test/Makefile.am
  6221. * test/SegmentManTest.cc
  6222. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6223. Fixed the bug that the average speed is wrong in
  6224. http/ftp/BitTorrent integrated download. Only the download bytes
  6225. in BitTorrent were considered.
  6226. * src/RequestGroup.cc
  6227. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6228. Choose port for BitTorrent/DHT randomly from the specified range.
  6229. * src/DHTConnectionImpl.cc
  6230. * src/PeerListenCommand.cc
  6231. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6232. Send HTTP Authorization header only if it is requested by the
  6233. server(response 401). There are some exceptions. The authorization
  6234. header for proxy is always sent if it is available without request
  6235. by the server. If username/password is specified in the URI, it
  6236. is immediately sent to the server without request by the server.
  6237. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6238. SharedHandle<AuthConfig>().
  6239. NetrcAuthResolver::resolveAuthConfig() returns
  6240. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6241. * src/AbstractAuthResolver.cc
  6242. * src/AbstractProxyRequestCommand.cc
  6243. * src/AuthConfigFactory.cc
  6244. * src/AuthConfigFactory.h
  6245. * src/HttpConnection.cc
  6246. * src/HttpRequest.cc
  6247. * src/HttpRequest.h
  6248. * src/HttpResponse.cc
  6249. * src/HttpResponseCommand.cc
  6250. * src/HttpSkipResponseCommand.cc
  6251. * test/AuthConfigFactoryTest.cc
  6252. * test/HttpRequestTest.cc
  6253. * test/HttpResponseTest.cc
  6254. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6255. Remove leading "--" from help keyword and a substring after "="
  6256. from help keyword, so that one can query options by '-h--max-' or
  6257. '-hmax-peers=10'.
  6258. * src/option_processing.cc
  6259. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6260. Rewritten PStringVisitor and its implementation.
  6261. * src/PStringBuildVisitor.cc
  6262. * src/PStringBuildVisitor.h
  6263. * src/PStringDatum.h
  6264. * src/PStringNumLoop.h
  6265. * src/PStringSegment.cc
  6266. * src/PStringSegment.h
  6267. * src/PStringSelect.h
  6268. * src/PStringVisitor.h
  6269. * src/download_helper.cc
  6270. * test/PStringBuildVisitorTest.cc
  6271. * test/ParameterizedStringParserTest.cc
  6272. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6273. Persist connection between the built-in HTTP server and a client
  6274. if a client supports keep-alive. Fixed the bug that aria2 exits
  6275. when the HTTP server receives EOF from a client.
  6276. * src/HttpServer.cc
  6277. * src/HttpServer.h
  6278. * src/HttpServerCommand.cc
  6279. * src/HttpServerCommand.h
  6280. * src/HttpServerResponseCommand.cc
  6281. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6282. Added experimental built-in HTTP server. Currently, when a client
  6283. accesses to the server, it responds with the current download
  6284. progress. By default, it is disabled. To enable the server, give
  6285. --enable-http-server option. To change the default port number
  6286. for the server to listen to, use --http-server-listen-port option.
  6287. The response HTML is very simple and refreshes it self each 1
  6288. second. Because of this refresh, you see flicker in normal web
  6289. browser such as Firefox. I recommend to use console-based browser
  6290. such as elinks, w3m. To connect to the server, run 'elinks
  6291. http://localhost:6800/' while running aria2. Please replace port
  6292. number '6800'(which is default) with your preference.
  6293. * src/DownloadEngineFactory.cc
  6294. * src/HttpHeader.cc
  6295. * src/HttpHeader.h
  6296. * src/HttpHeaderProcessor.cc
  6297. * src/HttpHeaderProcessor.h
  6298. * src/HttpListenCommand.cc
  6299. * src/HttpListenCommand.h
  6300. * src/HttpServer.cc
  6301. * src/HttpServer.h
  6302. * src/HttpServerCommand.cc
  6303. * src/HttpServerCommand.h
  6304. * src/HttpServerResponseCommand.cc
  6305. * src/HttpServerResponseCommand.h
  6306. * src/Makefile.am
  6307. * src/OptionHandlerFactory.cc
  6308. * src/Util.cc
  6309. * src/Util.h
  6310. * src/help_tags.h
  6311. * src/option_processing.cc
  6312. * src/prefs.cc
  6313. * src/prefs.h
  6314. * src/usage_text.h
  6315. * test/HttpHeaderProcessorTest.cc
  6316. * test/UtilTest.cc
  6317. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6318. Removed.
  6319. * src/CheckIntegrityMan.cc
  6320. * src/FileAllocationMan.cc
  6321. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6322. Made (piece) hash check sequential for each RequestGroup because
  6323. simultaneous hash check is slower than sequential execution.
  6324. * src/CheckIntegrityCommand.cc
  6325. * src/CheckIntegrityDispatcherCommand.cc
  6326. * src/CheckIntegrityDispatcherCommand.h
  6327. * src/CheckIntegrityMan.h
  6328. * src/ConsoleStatCalc.cc
  6329. * src/DownloadCommand.cc
  6330. * src/DownloadEngine.cc
  6331. * src/DownloadEngine.h
  6332. * src/DownloadEngineFactory.cc
  6333. * src/Makefile.am
  6334. * src/Makefile.in
  6335. * src/RequestGroup.cc
  6336. * src/StatCalc.h
  6337. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6338. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6339. SequentialDispatcherCommand.
  6340. * src/FileAllocationDispatcherCommand.cc
  6341. * src/SequentialDispatcherCommand.h
  6342. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6343. Rewritten FileAllocationDispatcherCommand using brand new
  6344. SequentialDispatcherCommand.
  6345. * src/DownloadEngineFactory.cc
  6346. * src/FileAllocationCommand.cc
  6347. * src/FileAllocationDispatcherCommand.cc
  6348. * src/FileAllocationDispatcherCommand.h
  6349. * src/Makefile.am
  6350. * src/SequentialDispatcherCommand.h
  6351. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6352. Replaced FileAllocationMan with
  6353. SequentialPicker<FileAllocationEntry>.
  6354. * src/BtCheckIntegrityEntry.cc
  6355. * src/ConsoleStatCalc.cc
  6356. * src/DownloadEngine.cc
  6357. * src/DownloadEngine.h
  6358. * src/DownloadEngineFactory.cc
  6359. * src/FileAllocationCommand.cc
  6360. * src/FileAllocationDispatcherCommand.cc
  6361. * src/FileAllocationMan.h
  6362. * src/Makefile.am
  6363. * src/SequentialPicker.h
  6364. * src/StatCalc.h
  6365. * src/StreamCheckIntegrityEntry.cc
  6366. * test/Makefile.am
  6367. * test/SequentialPickerTest.cc
  6368. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6369. Added doc for adaptive URI selector.
  6370. * doc/aria2c.1.txt
  6371. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6372. Added doc for adaptive URI selector.
  6373. * src/usage_text.h
  6374. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6375. Added doc for --bt-max-peers option.
  6376. * doc/aria2c.1.txt
  6377. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6378. Added doc for --bt-hash-check-seed option.
  6379. * doc/aria2c.1.txt
  6380. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6381. Documented exit codes.
  6382. * doc/aria2c.1.txt
  6383. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6384. Added --bt-max-peers option to specify the maximum number of peers
  6385. per torrent. 0 means unlimited number of peers.
  6386. * src/ActivePeerConnectionCommand.cc
  6387. * src/BtRuntime.h
  6388. * src/DefaultPeerStorage.cc
  6389. * src/DefaultPeerStorage.h
  6390. * src/OptionHandlerFactory.cc
  6391. * src/RequestGroup.cc
  6392. * src/option_processing.cc
  6393. * src/prefs.cc
  6394. * src/prefs.h
  6395. * src/usage_text.h
  6396. * test/DefaultPeerStorageTest.cc
  6397. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6398. Added --bt-hash-check-seed option. If true is given to this
  6399. option, after hash check using --check-integrity option and file
  6400. is complete, continue to seed file. If you want to check file and
  6401. download it only when it is damaged or incomplete, set this option
  6402. to false. This option has effect only on BitTorrent download.
  6403. The default value is true(This is the same behavior with the
  6404. previous release).
  6405. * src/BtCheckIntegrityEntry.cc
  6406. * src/OptionHandlerFactory.cc
  6407. * src/option_processing.cc
  6408. * src/prefs.cc
  6409. * src/prefs.h
  6410. * src/usage_text.h
  6411. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6412. Updated copyright year.
  6413. * src/version_usage.cc
  6414. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6415. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6416. * doc/aria2c.1.txt
  6417. * src/usage_text.h
  6418. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6419. Made the max value of split option unlimited.
  6420. * doc/aria2c.1.txt
  6421. * src/OptionHandlerFactory.cc
  6422. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6423. Fixed compile warning/error.
  6424. * src/DownloadResult.h
  6425. * src/HttpDownloadCommand.cc
  6426. * src/ServerStat.cc
  6427. * test/RequestGroupTest.cc
  6428. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6429. Added --event-poll option to select the method for polling events.
  6430. The available methods are "select" and "epoll". "epoll" is
  6431. available on Linux only. The earlier release has the compile
  6432. option to choose from these methods.
  6433. * configure.ac
  6434. * src/RequestGroupMan.cc
  6435. * src/OptionHandlerFactory.cc
  6436. * src/EpollEventPoll.h
  6437. * src/StreamFileAllocationEntry.cc
  6438. * src/a2io.h
  6439. * src/SelectEventPoll.h
  6440. * src/option_processing.cc
  6441. * src/prefs.h
  6442. * src/EpollEventPoll.cc
  6443. * src/EventPoll.h
  6444. * src/SocketCore.h
  6445. * src/Makefile.am
  6446. * src/main.cc
  6447. * src/DownloadEngine.h
  6448. * src/SelectEventPoll.cc
  6449. * src/DownloadEngine.cc
  6450. * src/SocketCore.cc
  6451. * src/DownloadEngineFactory.cc
  6452. * src/Makefile.in
  6453. * src/prefs.cc
  6454. * src/usage_text.h
  6455. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6456. Included RecoverableException.h from main.cc
  6457. * src/main.cc
  6458. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6459. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6460. now returns last error encountered in the HTTP/FTP downloads as a
  6461. exit status value. If all downloads finished successfully, aria2
  6462. returns 0. The error code is defined in src/DownloadResult.h.
  6463. The error occurred in the download currently in progress is not
  6464. reported as a last error. If no error has encountered but there
  6465. are in progress or waiting downloads, aria2 returns 7.
  6466. * src/AbstractCommand.cc
  6467. * src/DlAbortEx.h
  6468. * src/DlRetryEx.h
  6469. * src/DownloadCommand.cc
  6470. * src/DownloadFailureException.h
  6471. * src/DownloadResult.h
  6472. * src/FtpNegotiationCommand.cc
  6473. * src/HttpSkipResponseCommand.cc
  6474. * src/Makefile.am
  6475. * src/MultiUrlRequestInfo.cc
  6476. * src/MultiUrlRequestInfo.h
  6477. * src/RecoverableException.h
  6478. * src/RequestGroup.cc
  6479. * src/RequestGroup.h
  6480. * src/RequestGroupMan.cc
  6481. * src/RequestGroupMan.h
  6482. * src/URIResult.cc
  6483. * src/URIResult.h
  6484. * src/main.cc
  6485. * src/option_processing.cc
  6486. * test/RequestGroupTest.cc
  6487. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6488. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6489. patch adds AdaptiveURISelector, which selects one of the bests
  6490. mirrors for first and reserved connections. For supplementary
  6491. ones, it returns mirrors which has not been tested yet, and if
  6492. each of them already tested, returns mirrors which has to be
  6493. tested again. Otherwise, it doesn't return anymore mirrors.
  6494. * src/AdaptiveURISelector.cc
  6495. * src/AdaptiveURISelector.h
  6496. * src/FtpNegotiationCommand.cc
  6497. * src/HttpResponseCommand.cc
  6498. * src/Makefile.am
  6499. * src/Makefile.in
  6500. * src/OptionHandlerFactory.cc
  6501. * src/RequestGroup.cc
  6502. * src/RequestGroup.h
  6503. * src/RequestGroupMan.cc
  6504. * src/ServerStat.cc
  6505. * src/ServerStat.h
  6506. * src/ServerStatMan.cc
  6507. * src/SpeedCalc.cc
  6508. * src/URISelector.h
  6509. * src/prefs.cc
  6510. * src/prefs.h
  6511. * test/RequestGroupManTest.cc
  6512. * test/ServerStatManTest.cc
  6513. * test/ServerStatTest.cc
  6514. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6515. Fixed unit test error.
  6516. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6517. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6518. * Release 1.1.2
  6519. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6520. Updated Russian translation. Thanks to the translators.
  6521. * po/ru.po
  6522. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6523. Added the description of --use-head option to man page.
  6524. * doc/aria2c.1.txt
  6525. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6526. Bump up version number to 1.1.2
  6527. * configure.ac
  6528. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6529. Added --use-head option to toggle whether HEAD method should be
  6530. used in the first HTTP request. By default aria2 uses HEAD method
  6531. as the first request. When the server doesn't recognize HEAD, then
  6532. give aria2 --use-head=false to force aria2 to use GET method
  6533. instead.
  6534. * src/OptionHandlerFactory.cc
  6535. * src/RequestGroupMan.cc
  6536. * src/option_processing.cc
  6537. * src/prefs.cc
  6538. * src/prefs.h
  6539. * src/usage_text.h
  6540. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6541. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6542. message is received before CHOKE message. The old implementation
  6543. doen't clear the use-bit of the piece when recieved REJECT
  6544. message.
  6545. * src/DefaultBtMessageDispatcher.cc
  6546. * test/DefaultBtMessageDispatcherTest.cc
  6547. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6548. * Release 1.1.1
  6549. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6550. Bump up version number to 1.1.1.
  6551. * configure.ac
  6552. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6553. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6554. is printed repeatedly.
  6555. * src/ConsoleStatCalc.cc
  6556. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6557. * Release 1.1.0
  6558. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6559. Added ifdef clause for conditional compilation.
  6560. * src/main.cc
  6561. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6562. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6563. translations. Thanks to all translators.
  6564. * po/ja.po
  6565. * po/ru.po
  6566. * po/uk.po
  6567. * po/zh_CN.po
  6568. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6569. Added the preceding ">>> " before the message "Printing the
  6570. contents of file..." to make the output more readable.
  6571. * src/main.cc
  6572. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6573. Added try-catch block in the loop in showFiles() to continue the
  6574. operation even if the exception occurred in one file.
  6575. * src/main.cc (showFiles)
  6576. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6577. Made messages in showFiles() translatable.
  6578. * po/aria2.pot
  6579. * src/main.cc
  6580. * src/message.h
  6581. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6582. Print the contents of Torrent/Metalink files are printed without
  6583. -T/-M options.
  6584. * src/main.cc
  6585. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6586. Escaped '--' with '\--'
  6587. * README
  6588. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6589. Updated "How to build" section in README. Mentioned about
  6590. --with-ca-bundle compile option.
  6591. * README
  6592. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6593. Bump up version number to 1.1.0.
  6594. * configure.ac
  6595. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6596. Added a note for --dht-listen-port option.
  6597. * doc/aria2c.1.txt
  6598. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6599. Update doc for --realtime-chunk-checksum option.
  6600. * doc/aria2c.1.txt
  6601. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6602. Update doc for --realtime-chunk-checksum option.
  6603. * src/usage_text.h
  6604. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6605. Updated French, Japanese, Russian and Ukrainian translations.
  6606. Thanks to all translators.
  6607. * po/fr.po
  6608. * po/ja.po
  6609. * po/ru.po
  6610. * po/uk.po
  6611. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6612. Renamed aria2c.pot to aria2.pot
  6613. * po/aria2.pot
  6614. * po/aria2c.pot: Removed.
  6615. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6616. Removed MetaEntry.h
  6617. * src/Makefile.am
  6618. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6619. Rename file by appending digits if a local file exists and its
  6620. file size is larger than that of remote file with --continue
  6621. option. The old implementation just throws exception in such case.
  6622. * src/RequestGroup.cc
  6623. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6624. Fixed the bug that download progress summary is not printed in the
  6625. interval specified by the option.
  6626. * src/ConsoleStatCalc.cc
  6627. * src/ConsoleStatCalc.h
  6628. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6629. Fixed compiler warning
  6630. * src/Cookie.cc
  6631. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6632. Fixed the cookie implementation based on RFC2965.
  6633. Now if a value in domain field is not started with dot, then
  6634. prepend dot. That means a cookie with domain=sf.net is sent to
  6635. wiki.sf.net.
  6636. * src/Cookie.cc
  6637. * test/CookieParserTest.cc
  6638. * test/CookieStorageTest.cc
  6639. * test/CookieTest.cc
  6640. * test/NsCookieParserTest.cc
  6641. * test/Sqlite3MozCookieParserTest.cc
  6642. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6643. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6644. is enabled and the server doesn't support keep-alive.
  6645. * src/AbstractCommand.cc
  6646. * src/DownloadCommand.cc
  6647. * src/HttpDownloadCommand.cc
  6648. * src/HttpDownloadCommand.h
  6649. * src/HttpResponseCommand.cc
  6650. * src/Request.cc
  6651. * src/Request.h
  6652. * test/RequestTest.cc
  6653. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6654. Removed Dictionary/List/Data and its related classes.
  6655. * src/BencodeVisitor.cc: Removed.
  6656. * src/BencodeVisitor.h: Removed.
  6657. * src/Data.cc: Removed.
  6658. * src/Data.h: Removed.
  6659. * src/Dictionary.cc: Removed.
  6660. * src/Dictionary.h: Removed.
  6661. * src/List.cc: Removed.
  6662. * src/List.h: Removed.
  6663. * src/Makefile.am
  6664. * src/MetaEntry.h: Removed.
  6665. * src/MetaEntryVisitor.h: Removed.
  6666. * src/MetaFileUtil.cc: Removed.
  6667. * src/MetaFileUtil.h: Removed.
  6668. * test/BencodeVisitorTest.cc: Removed.
  6669. * test/DataTest.cc: Removed.
  6670. * test/DictionaryTest.cc: Removed.
  6671. * test/ListTest.cc: Removed.
  6672. * test/Makefile.am
  6673. * test/MetaFileUtilTest.cc: Removed.
  6674. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6675. Removed include of MetaEntry.h
  6676. * test/DHTMessageTrackerEntryTest.cc
  6677. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6678. Use BDE instead of Dictionary/List/Data.
  6679. * src/AnnounceList.cc
  6680. * src/AnnounceList.h
  6681. * test/AnnounceListTest.cc
  6682. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6683. Use BDE instead of Dictionary/List/Data.
  6684. * src/DHTAbstractMessage.cc
  6685. * src/DHTAbstractMessage.h
  6686. * src/DHTAnnouncePeerMessage.cc
  6687. * src/DHTAnnouncePeerMessage.h
  6688. * src/DHTAnnouncePeerReplyMessage.cc
  6689. * src/DHTAnnouncePeerReplyMessage.h
  6690. * src/DHTFindNodeMessage.cc
  6691. * src/DHTFindNodeMessage.h
  6692. * src/DHTFindNodeReplyMessage.cc
  6693. * src/DHTFindNodeReplyMessage.h
  6694. * src/DHTGetPeersMessage.cc
  6695. * src/DHTGetPeersMessage.h
  6696. * src/DHTGetPeersReplyMessage.cc
  6697. * src/DHTGetPeersReplyMessage.h
  6698. * src/DHTMessageFactory.h
  6699. * src/DHTMessageFactoryImpl.cc
  6700. * src/DHTMessageFactoryImpl.h
  6701. * src/DHTMessageReceiver.cc
  6702. * src/DHTMessageTracker.cc
  6703. * src/DHTMessageTracker.h
  6704. * src/DHTPingMessage.cc
  6705. * src/DHTPingMessage.h
  6706. * src/DHTPingReplyMessage.cc
  6707. * src/DHTPingReplyMessage.h
  6708. * src/DHTQueryMessage.cc
  6709. * src/DHTQueryMessage.h
  6710. * src/DHTResponseMessage.cc
  6711. * src/DHTResponseMessage.h
  6712. * test/DHTAnnouncePeerMessageTest.cc
  6713. * test/DHTAnnouncePeerReplyMessageTest.cc
  6714. * test/DHTFindNodeMessageTest.cc
  6715. * test/DHTFindNodeReplyMessageTest.cc
  6716. * test/DHTGetPeersMessageTest.cc
  6717. * test/DHTGetPeersReplyMessageTest.cc
  6718. * test/DHTMessageFactoryImplTest.cc
  6719. * test/DHTMessageTrackerTest.cc
  6720. * test/DHTPingMessageTest.cc
  6721. * test/DHTPingReplyMessageTest.cc
  6722. * test/MockDHTMessageFactory.h
  6723. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6724. Added tests the case where length < 0 is specified.
  6725. * test/BencodeTest.cc
  6726. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6727. Fixed memory leak in decoderawstring()
  6728. * src/bencode.cc
  6729. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6730. Added missing #ifdef guard. Added uc() function for String and
  6731. removeKey() for Dict.
  6732. * src/bencode.cc
  6733. * src/bencode.h
  6734. * test/BencodeTest.cc
  6735. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6736. Use BDE instead of Dictionary/List/Data.
  6737. * src/HandshakeExtensionMessage.cc
  6738. * src/HandshakeExtensionMessage.h
  6739. * test/HandshakeExtensionMessageTest.cc
  6740. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6741. Added --max-overall-upload-limit option. This option limits the
  6742. overall upload speed. Stated in help message that the existing
  6743. --max-upload-limit option limits the upload speed per each
  6744. torrent. Man page is also updated.
  6745. * doc/aria2c.1.txt
  6746. * src/DefaultBtMessageDispatcher.cc
  6747. * src/DefaultBtMessageDispatcher.h
  6748. * src/OptionHandlerFactory.cc
  6749. * src/PeerInteractionCommand.cc
  6750. * src/option_processing.cc
  6751. * src/prefs.cc
  6752. * src/prefs.h
  6753. * src/usage_text.h
  6754. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6755. Use BDE instead of Dictionary/List/Data classes.
  6756. * src/CompactPeerListProcessor.cc
  6757. * src/CompactPeerListProcessor.h
  6758. * src/DefaultBtAnnounce.cc
  6759. * src/DefaultBtContext.cc
  6760. * src/DefaultBtContext.h
  6761. * src/DefaultPeerListProcessor.cc
  6762. * src/DefaultPeerListProcessor.h
  6763. * src/DelegatingPeerListProcessor.cc
  6764. * src/DelegatingPeerListProcessor.h
  6765. * src/PeerListProcessor.h
  6766. * src/UTPexExtensionMessage.cc
  6767. * src/Util.h
  6768. * src/message.h
  6769. * test/DefaultBtContextTest.cc
  6770. * test/DefaultPeerListProcessorTest.cc
  6771. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6772. Added bencode helper functions and BDE class.
  6773. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6774. * src/Makefile.am
  6775. * src/bencode.cc
  6776. * src/bencode.h
  6777. * test/BencodeTest.cc
  6778. * test/Makefile.am
  6779. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6780. Fixed the bug that bad URI is sent to the tracker when the announe
  6781. URI in torrent file includes query.
  6782. * src/DefaultBtAnnounce.cc
  6783. * test/DefaultBtAnnounceTest.cc
  6784. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6785. Added Option::blank().
  6786. Use !Option::blank(name) instead of Option::defined(name) for
  6787. the options that take filename.
  6788. * src/MultiUrlRequestInfo.cc
  6789. * src/Option.cc
  6790. * src/Option.h
  6791. * src/main.cc
  6792. * src/option_processing.cc
  6793. * test/OptionTest.cc
  6794. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6795. Documented the default value of --check-certificate option in man
  6796. page.
  6797. * doc/aria2c.1.txt
  6798. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6799. Enabled --check-certificate by default. Added compile
  6800. time(configure) option --with-ca-bundle to specify CA bundle.
  6801. Warn if --check-certificate=true and --ca-certificate is not
  6802. specified or loading CA certificate is failed.
  6803. * configure.ac
  6804. * src/MultiUrlRequestInfo.cc
  6805. * src/OptionHandlerFactory.cc
  6806. * src/message.h
  6807. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6808. Mentioned https tag in help option.
  6809. * doc/aria2c.1.txt
  6810. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6811. Added `https' tag to help option category. Added https tag to
  6812. --ca-certificate, --certificate, --check-certificate and
  6813. --private-key option.
  6814. * src/OptionHandlerFactory.cc
  6815. * src/help_tags.h
  6816. * src/option_processing.cc
  6817. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6818. Changed the package name from `aria2c' to `aria2' in order to fix
  6819. the packaging issue in Debian and Fedora. The name of the
  6820. executable is not changed.
  6821. * configure.ac
  6822. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6823. Fixed typos
  6824. * src/usage_text.h
  6825. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6826. Fixed typos and updated doc.
  6827. * README
  6828. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6829. Fixed typos
  6830. * doc/aria2c.1.txt
  6831. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6832. Fixed typos
  6833. * src/usage_text.h
  6834. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6835. Print a message when no files to download.
  6836. * src/download_helper.cc
  6837. * src/main.cc
  6838. * src/message.h
  6839. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6840. RFC3986 complied Percent-Encoding(urlencode).
  6841. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6842. ones.
  6843. * src/Request.cc
  6844. * src/Util.cc
  6845. * src/Util.h
  6846. * test/BtHandshakeMessageTest.cc
  6847. * test/DefaultBtAnnounceTest.cc
  6848. * test/DefaultBtContextTest.cc
  6849. * test/RequestTest.cc
  6850. * test/UtilTest.cc
  6851. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6852. Fixed the bug that prevents aria2 from downloading 0-length files
  6853. via HTTP/FTP.
  6854. * src/DefaultBtContext.cc
  6855. * src/DefaultBtContext.h
  6856. * src/DownloadContext.h
  6857. * src/FtpNegotiationCommand.cc
  6858. * src/HttpResponseCommand.cc
  6859. * src/HttpResponseCommand.h
  6860. * src/RequestGroup.cc
  6861. * src/SingleFileDownloadContext.cc
  6862. * src/SingleFileDownloadContext.h
  6863. * test/BtPostDownloadHandlerTest.cc
  6864. * test/MetalinkPostDownloadHandlerTest.cc
  6865. * test/MockBtContext.h
  6866. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6867. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6868. * src/option_processing.cc
  6869. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6870. Applied aria2-1.0.1-mingw.patch.
  6871. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6872. mingw.
  6873. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6874. * src/SocketCore.cc
  6875. * src/a2netcompat.h
  6876. * test/SocketCoreTest.cc
  6877. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6878. * Release 1.0.1
  6879. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6880. Updated Ukrainian and Norwegian Nynorsk translations.
  6881. Thanks to all translators.
  6882. * po/nn.po
  6883. * po/uk.po
  6884. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6885. Don't show download result when -S option is used.
  6886. * src/main.cc
  6887. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6888. Bump up version number to 1.0.1
  6889. * configure.ac
  6890. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6891. Closed files after the test cases in MultiDiskWriterTest::
  6892. testResetDiskWriterEntries(). This will fix the unit test error
  6893. in mingw32 build.
  6894. * test/MultiDiskWriterTest.cc
  6895. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6896. Use HEAD method to get file size from HTTP server for segmented
  6897. downloading.
  6898. The request to the BitTorrent Tracker always uses GET method because
  6899. the response of the tracker is small and it doesn't need segmented
  6900. download.
  6901. * src/FtpNegotiationCommand.cc
  6902. * src/HttpRequest.cc
  6903. * src/HttpResponseCommand.cc
  6904. * src/HttpSkipResponseCommand.cc
  6905. * src/RequestGroup.cc
  6906. * src/RequestGroup.h
  6907. * src/TrackerWatcherCommand.cc
  6908. * test/HttpRequestTest.cc
  6909. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6910. Fixed the bug that causes floating exception when -T option is used and
  6911. no URIs are given.
  6912. * src/download_helper.cc
  6913. * test/DownloadHelperTest.cc
  6914. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6915. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6916. errors in MinGW:
  6917. Closed file after saving server stats (RequestGroupMan.cc)
  6918. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6919. Ignored case & handled 2-digit years (strptime.c)
  6920. Added missing suseconds_t definition (a2time.h)
  6921. Fixed socket CLOSE() define (SocketCore.cc)
  6922. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6923. Changed utime() test values from x000 to x00000 as MinGW failed on
  6924. values less than timezone offset from Unix epoch
  6925. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6926. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6927. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6928. handle negative dates (CookieParserTest.cc)
  6929. * src/a2time.h
  6930. * src/FtpConnection.cc
  6931. * src/RequestGroupMan.cc
  6932. * src/SocketCore.cc
  6933. * src/strptime.c
  6934. * test/CookieParserTest.cc
  6935. * test/CopyDiskAdaptorTest.cc
  6936. * test/FileTest.cc
  6937. * test/FtpConnectionTest.cc
  6938. * test/MultiDiskAdaptorTest.cc
  6939. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6940. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6941. * doc/aria2c.1.txt
  6942. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6943. * Release 1.0.0
  6944. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6945. Added '~' to reserved characters.
  6946. * src/Util.cc
  6947. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6948. Do not urlencode Request::url in setUrl() because we want unmodified
  6949. URL using Request::getUrl()
  6950. * src/Request.cc
  6951. * src/Request.h
  6952. * test/RequestTest.cc
  6953. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6954. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6955. Thanks to all translators.
  6956. * po/bg.po
  6957. * po/fr.po
  6958. * po/ja.po
  6959. * po/ru.po
  6960. * po/uk.po
  6961. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6962. Bump up version number to 1.0.0
  6963. * configure.ac
  6964. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6965. Added nosqlite3 build to build_test.sh.
  6966. Renamed noxml as expat.
  6967. * build_test.sh
  6968. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6969. Updated INPUT FILE section.
  6970. * doc/aria2c.1.txt
  6971. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6972. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6973. on big endian systems because test .aria2 files are made for little
  6974. endian systems.
  6975. * test/DefaultBtProgressInfoFileTest.cc
  6976. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6977. Dropped ares support.
  6978. * README
  6979. * configure.ac
  6980. * m4/libares.m4: Removed.
  6981. * src/AsyncNameResolver.cc
  6982. * src/Makefile.am
  6983. * test/Makefile.am
  6984. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6985. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6986. Removed const qualifier from DiskWriter::size().
  6987. * src/AbstractDiskWriter.cc
  6988. * src/AbstractDiskWriter.h
  6989. * src/ByteArrayDiskWriter.cc
  6990. * src/ByteArrayDiskWriter.h
  6991. * src/DiskWriter.h
  6992. * test/ByteArrayDiskWriterTest.cc
  6993. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6994. Fixed the bug that causes segmentation fault/bus error during executing
  6995. choking algorithm while seeding. This is caused by improper
  6996. implementation of compare function which returns inconsistent results
  6997. depending on the timing of last unchoke.
  6998. * src/BtSeederStateChoke.cc
  6999. * src/BtSeederStateChoke.h
  7000. * src/DefaultPeerStorage.cc
  7001. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7002. Removed TODO
  7003. * TODO
  7004. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7005. Added a section that explains how to pass argument to options that
  7006. takes optional arguments with its short form.
  7007. * doc/aria2c.1.txt
  7008. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7009. Added -u for the short form of --max-upload-limit option.
  7010. * doc/aria2c.1.txt
  7011. * src/option_processing.cc
  7012. * src/usage_text.h
  7013. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7014. Added -V for the short form of --check-integrity option.
  7015. Now the argument of --check-integrity option is optional:
  7016. if it is omitted, it is evaluated as true.
  7017. * doc/aria2c.1.txt
  7018. * src/option_processing.cc
  7019. * src/usage_text.h
  7020. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7021. Made the default value of --ftp-pasv option set to true and it can take
  7022. true/false values.
  7023. * src/OptionHandlerFactory.cc
  7024. * src/option_processing.cc
  7025. * src/usage_text.h
  7026. * doc/aria2c.1.txt
  7027. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7028. Given custom random number generator to std::random_shuffle.
  7029. * src/AnnounceList.cc
  7030. * src/BtLeecherStateChoke.cc
  7031. * src/BtSeederStateChoke.cc
  7032. * src/DefaultBtRequestFactory.cc
  7033. * src/MetalinkEntry.cc
  7034. * src/RarestPieceSelector.cc
  7035. * src/SimpleRandomizer.cc
  7036. * src/SimpleRandomizer.h
  7037. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7038. Now the default value of --enable-direct-io is true.
  7039. * src/OptionHandlerFactory.cc
  7040. * doc/aria2c.1.txt
  7041. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7042. Erase peer before executing onReturningPeer and onErasingPeer
  7043. because choking algorithm called from onReturningPeer doesn't
  7044. like erasing peer in the active peer list.
  7045. * src/DefaultPeerStorage.cc
  7046. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7047. Instead of creating special filename in createDownloadResult() if
  7048. inMemoryDownload() is true, now it is done in getFilePath().
  7049. * src/RequestGroup.cc
  7050. * test/RequestGroupTest.cc
  7051. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7052. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7053. processed in memory. This is the fix for previous comment out.
  7054. * src/MemoryBufferPreDownloadHandler.cc
  7055. * src/RequestGroup.cc
  7056. * src/RequestGroup.h
  7057. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7058. Commented out the code which sets virtual directory path "[MEMORY]"
  7059. propagate directory to store to following RequestGroup.
  7060. * src/MemoryBufferPreDownloadHandler.cc
  7061. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7062. Bump up version number to 1.0.0b
  7063. * configure.ac
  7064. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7065. Added input_uris.txt to EXTRA_DIST
  7066. * test/Makefile.am
  7067. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7068. Removed PeerObject.h from Makefile.am
  7069. * src/Makefile.am
  7070. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7071. Avoid slow seeding
  7072. * src/PeerInteractionCommand.cc
  7073. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7074. Updated usage for -i option.
  7075. * src/usage_text.h (TEXT_INPUT_FILE)
  7076. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7077. Added INPUT FILE section to man page.
  7078. Escaped fake URLs.
  7079. * doc/aria2c.1.txt
  7080. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7081. Fixed wrong note position for -o option.
  7082. * doc/aria2c.1.txt
  7083. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7084. Fixed compile error without SSL/XML library.
  7085. * src/DefaultBtProgressInfoFile.cc
  7086. * src/DefaultBtProgressInfoFile.h
  7087. * src/FileMetalinkParserState.cc
  7088. * src/RequestGroup.h
  7089. * src/SocketCore.cc
  7090. * src/SocketCore.h
  7091. * src/VerificationMetalinkParserState.cc
  7092. * src/download_helper.h
  7093. * src/main.cc
  7094. * test/DefaultBtProgressInfoFileTest.cc
  7095. * test/DownloadHelperTest.cc
  7096. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7097. Rewritten URI handling functions. They are now provided as a testable
  7098. functions.
  7099. * src/Makefile.am
  7100. * src/RequestGroup.cc
  7101. * src/RequestGroup.h
  7102. * src/download_helper.cc
  7103. * src/download_helper.h
  7104. * src/main.cc
  7105. * test/DownloadHelperTest.cc
  7106. * test/Makefile.am
  7107. * test/input_uris.txt
  7108. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7109. Quickly terminate commands when ctrl-c is pressed.
  7110. * src/DownloadEngine.cc
  7111. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7112. Quickly terminate idle commands when download finished.
  7113. * src/AbstractCommand.cc
  7114. * src/DownloadCommand.cc
  7115. * src/DownloadEngine.cc
  7116. * src/DownloadEngine.h
  7117. * src/SleepCommand.cc
  7118. * src/SleepCommand.h
  7119. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7120. Added the ability to specify output filename and directory in input
  7121. file.
  7122. Additional parameters are added in the following line of URIs
  7123. with proceeding white space(s), 1 parameter in 1 line.
  7124. The parameter names are the same with the command-line option name
  7125. without proceeding "--". Not all the options are available here:
  7126. at the moment, 'dir' and 'out' options are avialable.
  7127. Please note that out option has no effect against Metalink or BitTorrent
  7128. downloads.
  7129. Example input file:
  7130. http://host/foo-1.1.tar.bz2
  7131. out=foo.tar.bz2
  7132. dir=/tmp/downloads
  7133. http://host/thundermonkey-2.0.tar.bz2
  7134. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7135. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7136. thundermonkey-2.0.tar.bz2 is saved as
  7137. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7138. * src/BtPostDownloadHandler.cc
  7139. * src/Metalink2RequestGroup.cc
  7140. * src/Metalink2RequestGroup.h
  7141. * src/MetalinkPostDownloadHandler.cc
  7142. * src/UriListParser.cc
  7143. * src/UriListParser.h
  7144. * src/main.cc
  7145. * test/Metalink2RequestGroupTest.cc
  7146. * test/UriListParserTest.cc
  7147. * test/filelist1.txt
  7148. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7149. Fixed error when SSL library is not found.
  7150. * configure.ac
  7151. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7152. Cross referenced among -s, -C and -j options.
  7153. Updated usage of -C and -s options.
  7154. * src/usage_text.h
  7155. * doc/aria2c.1.txt
  7156. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7157. Fixed bad cast in 32bit platforms.
  7158. * test/DefaultPieceStorageTest.cc
  7159. (DefaultPieceStorageTest::testGetCompletedLength)
  7160. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7161. Fixed unit test fails on 32bit platforms.
  7162. * test/CookieParserTest.cc
  7163. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7164. Show an average download speed in Download results.
  7165. * src/BtFileAllocationEntry.cc
  7166. * src/DefaultPieceStorage.cc
  7167. * src/DownloadContext.cc
  7168. * src/DownloadContext.h
  7169. * src/DownloadResult.h
  7170. * src/RequestGroup.cc
  7171. * src/RequestGroupMan.cc
  7172. * src/StreamFileAllocationEntry.cc
  7173. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7174. Fixed the bug that metalink file is not processed if Content-Type
  7175. field has a paramter.
  7176. * src/HttpResponse.cc
  7177. * src/HttpResponse.h
  7178. * test/HttpResponseTest.cc
  7179. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7180. Removed unused code.
  7181. * src/DefaultBtAnnounce.cc
  7182. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7183. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7184. the value larger than DefaultPieceStorage::getTotalLength() when
  7185. in flight pieces are involved.
  7186. * src/DefaultPieceStorage.cc
  7187. * test/DefaultPieceStorageTest.cc
  7188. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7189. Bump up version number to 1.0.0a.
  7190. * configure.ac
  7191. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7192. Updated configure.ac
  7193. * configure.ac
  7194. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7195. Added usege for proxy.
  7196. * doc/aria2c.1.txt
  7197. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7198. Added usage for --ca-certificate, --certificate, --private-key and
  7199. --check-certificate options.
  7200. * doc/aria2c.1.txt
  7201. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7202. Updated man page
  7203. * doc/aria2c.1.txt
  7204. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7205. Added --no-proxy option. It receives comman separated hostname or
  7206. domains to which proxy should not be used.
  7207. aria2 honors the environment variable no_proxy to override no-proxy
  7208. value in configuration file. The user can override the environment
  7209. variable no_proxy with --no-proxy command-line option.
  7210. * src/AbstractCommand.cc
  7211. * src/OptionHandlerFactory.cc
  7212. * src/option_processing.cc
  7213. * src/prefs.cc
  7214. * src/prefs.h
  7215. * src/usage_text.h
  7216. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7217. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7218. The CA certificates are specified in --ca-certificate option.
  7219. By default, the verification is disabled. Use --check-certificate
  7220. option to enable it.
  7221. * src/HttpRequestCommand.cc
  7222. * src/LibgnutlsTLSContext.cc
  7223. * src/LibgnutlsTLSContext.h
  7224. * src/LibsslTLSContext.cc
  7225. * src/LibsslTLSContext.h
  7226. * src/MultiUrlRequestInfo.cc
  7227. * src/OptionHandlerFactory.cc
  7228. * src/SocketCore.cc
  7229. * src/SocketCore.h
  7230. * src/a2functional.h
  7231. * src/message.h
  7232. * src/option_processing.cc
  7233. * src/prefs.cc
  7234. * src/prefs.h
  7235. * src/usage_text.h
  7236. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7237. Added client certificate authentication for SSL/TLS.
  7238. Currently a private key must be decrypted for use with aria2.
  7239. If a user accidentally gives encrypted file to aria2 then following
  7240. thing happens:
  7241. If encrypted private key is given to aria2, it behaves differently
  7242. depending on the ssl library it uses. If aria2 built with openssl then
  7243. openssl prompts the user for password. If aria2 build with gnutls then
  7244. aria2 exists with error at start up.
  7245. * src/DownloadEngineFactory.cc
  7246. * src/MultiUrlRequestInfo.cc
  7247. * src/OptionHandlerFactory.cc
  7248. * src/option_processing.cc
  7249. * src/prefs.cc
  7250. * src/prefs.h
  7251. * src/usage_text.h
  7252. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7253. Introduced TLSContext that holds TLS related data that can be shared
  7254. with multiple SSL connections.
  7255. * src/DownloadEngineFactory.cc
  7256. * src/LibgnutlsTLSContext.cc
  7257. * src/LibgnutlsTLSContext.h
  7258. * src/LibsslTLSContext.cc
  7259. * src/LibsslTLSContext.h
  7260. * src/Makefile.am
  7261. * src/SocketCore.cc
  7262. * src/SocketCore.h
  7263. * src/TLSContext.h
  7264. * src/message.h
  7265. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7266. Fixed the bug that the DiskWriter of the first FileEntry whose
  7267. `needsFileAllocation' property is false is not created
  7268. even if it shares a piece with next FileEntry which `requested' property
  7269. is true.
  7270. Fixed the bug that zero-length file is not created if pre file
  7271. allocation is not done.
  7272. * src/MultiDiskAdaptor.cc
  7273. * src/MultiDiskAdaptor.h
  7274. * test/MultiDiskAdaptorTest.cc
  7275. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Added the ability to pool proxy connection.
  7277. The conneciton in FTP with proxy-method=GET is not pooled.
  7278. Proxy-Connection header will not be sent when sending CONNECT method.
  7279. * src/DownloadEngine.cc
  7280. * src/DownloadEngine.h
  7281. * src/FtpFinishDownloadCommand.cc
  7282. * src/FtpInitiateConnectionCommand.cc
  7283. * src/FtpNegotiationCommand.cc
  7284. * src/HttpDownloadCommand.cc
  7285. * src/HttpInitiateConnectionCommand.cc
  7286. * src/HttpRequest.cc
  7287. * src/HttpRequest.h
  7288. * src/HttpResponse.cc
  7289. * src/HttpSkipResponseCommand.cc
  7290. * test/HttpRequestTest.cc
  7291. * test/HttpResponseTest.cc
  7292. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Handle date before epoch.
  7294. To create *bad* Time object, call Time::null().
  7295. * src/CookieParser.cc
  7296. * src/FtpConnection.cc
  7297. * src/FtpConnection.h
  7298. * src/FtpNegotiationCommand.cc
  7299. * src/RequestGroup.cc
  7300. * src/TimeA2.cc
  7301. * src/TimeA2.h
  7302. * test/CookieParserTest.cc
  7303. * test/FtpConnectionTest.cc
  7304. * test/TimeTest.cc
  7305. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Added support for following envrionment variables: http_proxy,
  7307. https_proxy, ftp_proxy and all_proxy.
  7308. Each variable is equivalent to the aria2 option whose name is the
  7309. variable name with '_' replaced with '-'.
  7310. They overrides options specified in aria2.conf file.
  7311. The envrionment variables can be overrode using command-line option.
  7312. * src/option_processing.cc
  7313. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7314. Renamed --http-proxy-method as --proxy-method.
  7315. * src/AbstractCommand.cc
  7316. * src/FtpInitiateConnectionCommand.cc
  7317. * src/HttpInitiateConnectionCommand.cc
  7318. * src/OptionHandlerFactory.cc
  7319. * src/option_processing.cc
  7320. * src/prefs.cc
  7321. * src/prefs.h
  7322. * src/usage_text.h
  7323. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7324. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7325. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7326. Above 3 options and --http-proxy option can handle proxy in URL format
  7327. like: http://user:passwd@host:port.
  7328. If a proxy requires user/password, they must be specified in a URL.
  7329. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7330. instead.
  7331. * src/AbstractCommand.cc
  7332. * src/AbstractCommand.h
  7333. * src/AbstractProxyRequestCommand.cc
  7334. * src/AbstractProxyRequestCommand.h
  7335. * src/AuthConfigFactory.cc
  7336. * src/AuthConfigFactory.h
  7337. * src/FtpFinishDownloadCommand.cc
  7338. * src/FtpInitiateConnectionCommand.cc
  7339. * src/FtpInitiateConnectionCommand.h
  7340. * src/FtpNegotiationCommand.cc
  7341. * src/FtpTunnelRequestCommand.cc
  7342. * src/FtpTunnelRequestCommand.h
  7343. * src/HttpDownloadCommand.cc
  7344. * src/HttpInitiateConnectionCommand.cc
  7345. * src/HttpInitiateConnectionCommand.h
  7346. * src/HttpProxyRequestCommand.cc
  7347. * src/HttpProxyRequestCommand.h
  7348. * src/HttpRequest.cc
  7349. * src/HttpRequest.h
  7350. * src/HttpRequestCommand.cc
  7351. * src/HttpRequestCommand.h
  7352. * src/HttpSkipResponseCommand.cc
  7353. * src/InitiateConnectionCommand.cc
  7354. * src/InitiateConnectionCommand.h
  7355. * src/OptionHandlerFactory.cc
  7356. * src/OptionHandlerImpl.h
  7357. * src/Request.cc
  7358. * src/option_processing.cc
  7359. * src/prefs.cc
  7360. * src/prefs.h
  7361. * src/usage_text.h
  7362. * test/AuthConfigFactoryTest.cc
  7363. * test/HttpRequestTest.cc
  7364. * test/OptionHandlerTest.cc
  7365. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Execute choking algorithm when unchoked and interested peer is
  7367. disconected.
  7368. * src/DefaultPeerStorage.cc
  7369. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7370. Added testcase for BtNotInterestedMessage from unchoked peer.
  7371. * test/BtNotInterestedMessageTest.cc
  7372. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7373. Execute choking algorithm when BtInterestedMessage arrives from
  7374. unchoked peer.
  7375. * src/BtInterestedMessage.cc
  7376. * src/BtInterestedMessage.h
  7377. * src/DefaultBtMessageFactory.cc
  7378. * test/BtInterestedMessageTest.cc
  7379. * test/MockPeerStorage.h
  7380. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. AuthConfigFactory is now part of DownloadEngine.
  7382. * src/AbstractProxyRequestCommand.cc
  7383. * src/AuthConfigFactory.h
  7384. * src/DownloadEngine.cc
  7385. * src/DownloadEngine.h
  7386. * src/FtpConnection.cc
  7387. * src/FtpConnection.h
  7388. * src/FtpNegotiationCommand.cc
  7389. * src/HttpConnection.cc
  7390. * src/HttpRequest.cc
  7391. * src/HttpRequest.h
  7392. * src/HttpRequestCommand.cc
  7393. * src/HttpResponse.cc
  7394. * src/HttpResponseCommand.cc
  7395. * src/HttpSkipResponseCommand.cc
  7396. * src/MultiUrlRequestInfo.cc
  7397. * src/main.cc
  7398. * test/FtpConnectionTest.cc
  7399. * test/HttpRequestTest.cc
  7400. * test/HttpResponseTest.cc
  7401. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Corrected catched exception type.
  7403. * src/ServerStatMan.cc
  7404. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. DNSCache is now part of DownloadEngine.
  7406. * src/DNSCache.h
  7407. * src/DownloadEngine.cc
  7408. * src/DownloadEngine.h
  7409. * src/InitiateConnectionCommand.cc
  7410. * src/MultiUrlRequestInfo.cc
  7411. * test/Makefile.am
  7412. * test/Makefile.in
  7413. * test/SimpleDNSCacheTest.cc
  7414. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7416. DownloadEngine.
  7417. * src/ActivePeerConnectionCommand.cc
  7418. * src/BtSetup.cc
  7419. * src/CUIDCounter.h
  7420. * src/DHTSetup.cc
  7421. * src/DownloadCommand.cc
  7422. * src/DownloadEngine.cc
  7423. * src/DownloadEngine.h
  7424. * src/DownloadEngineFactory.cc
  7425. * src/FileAllocationDispatcherCommand.cc
  7426. * src/InitiatorMSEHandshakeCommand.cc
  7427. * src/PeerInitiateConnectionCommand.cc
  7428. * src/PeerInteractionCommand.cc
  7429. * src/PeerListenCommand.cc
  7430. * src/RequestGroup.cc
  7431. * src/StreamFileAllocationEntry.cc
  7432. * src/TrackerWatcherCommand.cc
  7433. * src/main.cc
  7434. * test/RequestGroupManTest.cc
  7435. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7436. Implemented commented code in BtSeederStateChoke
  7437. * src/BtSeederStateChoke.cc
  7438. * src/Peer.cc
  7439. * src/Peer.h
  7440. * src/PeerInteractionCommand.cc
  7441. * src/PeerSessionResource.cc
  7442. * src/PeerSessionResource.h
  7443. * test/MockBtMessageDispatcher.h
  7444. * test/PeerSessionResourceTest.cc
  7445. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7447. its object.
  7448. * src/AbstractBtMessage.cc
  7449. * src/ActivePeerConnectionCommand.cc
  7450. * src/ActivePeerConnectionCommand.h
  7451. * src/BtContextAwareCommand.cc
  7452. * src/BtContextAwareCommand.h
  7453. * src/BtExtendedMessage.cc
  7454. * src/BtExtendedMessage.h
  7455. * src/BtInterestedMessage.cc
  7456. * src/BtInterestedMessage.h
  7457. * src/BtNotInterestedMessage.cc
  7458. * src/BtNotInterestedMessage.h
  7459. * src/BtRegistry.cc
  7460. * src/BtRegistry.h
  7461. * src/BtSeederStateChoke.cc
  7462. * src/BtSetup.cc
  7463. * src/DHTGetPeersCommand.cc
  7464. * src/DHTGetPeersCommand.h
  7465. * src/DHTPeerAnnounceEntry.cc
  7466. * src/DHTPeerAnnounceEntry.h
  7467. * src/DHTPeerAnnounceStorage.cc
  7468. * src/DHTPeerAnnounceStorage.h
  7469. * src/DHTPeerLookupTask.cc
  7470. * src/DHTPeerLookupTask.h
  7471. * src/DHTSetup.cc
  7472. * src/DHTSetup.h
  7473. * src/DHTTaskFactory.h
  7474. * src/DHTTaskFactoryImpl.cc
  7475. * src/DHTTaskFactoryImpl.h
  7476. * src/DefaultBtAnnounce.cc
  7477. * src/DefaultBtInteractive.cc
  7478. * src/DefaultBtInteractive.h
  7479. * src/DefaultBtMessageDispatcher.cc
  7480. * src/DefaultBtMessageDispatcher.h
  7481. * src/DefaultBtMessageFactory.cc
  7482. * src/DefaultBtMessageFactory.h
  7483. * src/DefaultBtMessageReceiver.cc
  7484. * src/DefaultBtProgressInfoFile.cc
  7485. * src/DefaultBtProgressInfoFile.h
  7486. * src/DefaultBtRequestFactory.cc
  7487. * src/DefaultBtRequestFactory.h
  7488. * src/DefaultExtensionMessageFactory.cc
  7489. * src/DefaultExtensionMessageFactory.h
  7490. * src/DefaultPeerStorage.cc
  7491. * src/DefaultPeerStorage.h
  7492. * src/DownloadEngine.cc
  7493. * src/DownloadEngine.h
  7494. * src/InitiatorMSEHandshakeCommand.cc
  7495. * src/InitiatorMSEHandshakeCommand.h
  7496. * src/MSEHandshake.cc
  7497. * src/MSEHandshake.h
  7498. * src/Makefile.am
  7499. * src/Makefile.in
  7500. * src/PeerChokeCommand.cc
  7501. * src/PeerChokeCommand.h
  7502. * src/PeerInitiateConnectionCommand.cc
  7503. * src/PeerInitiateConnectionCommand.h
  7504. * src/PeerInteractionCommand.cc
  7505. * src/PeerInteractionCommand.h
  7506. * src/PeerObject.h
  7507. * src/PeerReceiveHandshakeCommand.cc
  7508. * src/PeerReceiveHandshakeCommand.h
  7509. * src/ReceiverMSEHandshakeCommand.cc
  7510. * src/RequestGroup.cc
  7511. * src/RequestGroup.h
  7512. * src/RequestGroupMan.cc
  7513. * src/RequestGroupMan.h
  7514. * src/SeedCheckCommand.cc
  7515. * src/SeedCheckCommand.h
  7516. * src/ShareRatioSeedCriteria.h
  7517. * src/SimpleBtMessage.cc
  7518. * src/TrackerWatcherCommand.cc
  7519. * src/TrackerWatcherCommand.h
  7520. * src/UTPexExtensionMessage.cc
  7521. * src/UTPexExtensionMessage.h
  7522. * test/BtCancelMessageTest.cc
  7523. * test/BtChokeMessageTest.cc
  7524. * test/BtExtendedMessageTest.cc
  7525. * test/BtInterestedMessageTest.cc
  7526. * test/BtNotInterestedMessageTest.cc
  7527. * test/BtPieceMessageTest.cc
  7528. * test/BtPortMessageTest.cc
  7529. * test/BtRegistryTest.cc
  7530. * test/BtRejectMessageTest.cc
  7531. * test/BtRequestMessageTest.cc
  7532. * test/DHTPeerAnnounceEntryTest.cc
  7533. * test/DHTPeerAnnounceStorageTest.cc
  7534. * test/DefaultBtMessageDispatcherTest.cc
  7535. * test/DefaultBtMessageFactoryTest.cc
  7536. * test/DefaultBtProgressInfoFileTest.cc
  7537. * test/DefaultBtRequestFactoryTest.cc
  7538. * test/DefaultExtensionMessageFactoryTest.cc
  7539. * test/MSEHandshakeTest.cc
  7540. * test/MockDHTTaskFactory.h
  7541. * test/ShareRatioSeedCriteriaTest.cc
  7542. * test/UTPexExtensionMessageTest.cc
  7543. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Fixed compiler warning.
  7545. * test/UtilTest.cc
  7546. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Treat Cookie object as session cookie if expiry = 0 is given.
  7548. With this change, you can specify session scoped cookies in an external
  7549. file setting expiry value to 0.
  7550. * src/Cookie.cc
  7551. * src/Cookie.h
  7552. * test/CookieParserTest.cc
  7553. * test/CookieStorageTest.cc
  7554. * test/CookieTest.cc
  7555. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7556. Changed signature of DHTMessageFactory::createResponseMessage().
  7557. Removed unused validateIDMatch.
  7558. * src/DHTMessageFactory.h
  7559. * src/DHTMessageFactoryImpl.cc
  7560. * src/DHTMessageFactoryImpl.h
  7561. * src/DHTMessageTracker.cc
  7562. * test/DHTMessageFactoryImplTest.cc
  7563. * test/MockDHTMessageFactory.h
  7564. Dropped DHT message coming from same ID of localhost.
  7565. * src/DHTMessageReceiver.cc
  7566. Rejected adding node whose ID is the same as localhost's.
  7567. * src/DHTRoutingTable.cc
  7568. * test/BtPortMessageTest.cc
  7569. * test/DHTRoutingTableTest.cc
  7570. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Pool connection when redirection occurs with Content-Length = 0.
  7572. * src/HttpSkipResponseCommand.cc
  7573. * src/HttpSkipResponseCommand.h
  7574. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Fixed the bug that causes time out when redirection occurs with
  7576. content-length 0.
  7577. * src/HttpResponseCommand.cc
  7578. * src/HttpSkipResponseCommand.cc
  7579. * src/HttpSkipResponseCommand.h
  7580. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Now each status legends is shown only when it appears in Download
  7582. Result. If Download Result has no item, then status legend will not
  7583. be printed.
  7584. * src/RequestGroupMan.cc
  7585. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7586. Removed duplicate creation of OptionHandlers.
  7587. * src/option_processing.cc
  7588. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. Fixed the bug that causes segmentation fault when accessing files which
  7590. don't exist or are not included in --select-file option while
  7591. validating chunk checksum.
  7592. * src/MultiDiskAdaptor.cc
  7593. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7594. Fixed compiler warning.
  7595. * test/UtilTest.cc
  7596. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7598. * src/IteratableChecksumValidator.cc
  7599. * src/IteratableChunkChecksumValidator.cc
  7600. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7601. * Release 0.16.2
  7602. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7603. Added Serbian translation. Updated Ukrainian translation.
  7604. Thanks to all translators.
  7605. * po/sr.po
  7606. * po/uk.po
  7607. * po/LINGUAS
  7608. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. Bump up version number to 0.16.2
  7610. * configure.ac
  7611. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Added length equality test to operator== to drop a piece message
  7613. whose length does not match to the requested one.
  7614. * src/RequestSlot.cc
  7615. * test/DefaultBtMessageDispatcherTest.cc
  7616. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7618. recieved.
  7619. In this fix, if a request larger than 16KiB length is received, aria2
  7620. disconnects the peer.
  7621. * src/BtConstants.h
  7622. * src/PeerMessageUtil.cc
  7623. * src/PeerMessageUtil.h
  7624. * test/BtRequestMessageTest.cc
  7625. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. * Release 0.16.1
  7627. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7628. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7629. * doc/aria2c.1.txt
  7630. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7632. Updated French, Simplified Chinese and Japanese translations.
  7633. Thanks to all translators.
  7634. en@quot and en@boldquot are also added.
  7635. * po/LINGUAS
  7636. * po/fr.po
  7637. * po/ja.po
  7638. * po/uk.po
  7639. * po/vi.po
  7640. * po/zh_CN.po
  7641. * po/zh_TW.po
  7642. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Bump up version number to 0.16.1.
  7644. * configure.ac
  7645. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Updated README.
  7647. * README
  7648. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7649. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7650. not to replace '--' with em dash character.
  7651. * doc/aria2c.1.txt
  7652. * doc/makeman
  7653. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7655. every SEC seconds.
  7656. * src/DownloadEngineFactory.cc
  7657. * src/OptionHandlerFactory.cc
  7658. * src/option_processing.cc
  7659. * src/usage_text.h
  7660. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Fixed compile warning on linux-amd64
  7662. * src/FtpConnection.cc
  7663. * src/IteratableChunkChecksumValidator.cc
  7664. * src/MultiDiskAdaptor.cc
  7665. Fixed the bug that unit test fails on linux-amd64
  7666. * test/UtilTest.cc
  7667. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7668. Added --dht-file-path option to change the path to dht.dat, which is a
  7669. serialized DHT routing table.
  7670. * src/OptionHandlerFactory.cc
  7671. * src/option_processing.cc
  7672. * src/usage_text.h
  7673. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. Fixed possible underflow.
  7675. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7676. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7677. Fixed the bug that last character in URI is not encoded.
  7678. * src/Request.cc
  7679. * test/RequestTest.cc
  7680. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Fixed the bug that referer header field contains fragment.
  7682. Now Request class removes fragment part of URI and encodes it
  7683. in Request::setUri() and setReferer().
  7684. * src/Request.h
  7685. * src/Request.cc
  7686. * test/RequestTest.cc
  7687. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. Added missing m4 macros.
  7689. * m4/cppunit.m4
  7690. * m4/libgcrypt.m4
  7691. * m4/libgnutls-extra.m4
  7692. * m4/libgnutls.m4
  7693. * m4/libxml2.m4
  7694. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7695. Fixed compile error with gcc-4.4(snapshot)
  7696. * src/File.cc
  7697. * src/FtpConnection.cc
  7698. * src/OptionHandlerImpl.h
  7699. * src/Util.cc
  7700. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Removed assert()
  7702. * src/SocketBuffer.cc (SocketBuffer::send)
  7703. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Changed the type of _numNewConnection to unsigned int.
  7705. * src/ActivePeerConnectionCommand.cc
  7706. * src/ActivePeerConnectionCommand.h
  7707. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. * Release 0.16.0
  7709. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Updated doc
  7711. * README
  7712. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7714. translations. Thanks to all translators.
  7715. * po/bg.po
  7716. * po/de.po
  7717. * po/fr.po
  7718. * po/ja.po
  7719. * po/zh_CN.po
  7720. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Bump up version number to 0.16.0.
  7722. * configure.ac
  7723. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7724. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7725. int32_t.
  7726. Changed the type of count to int32_t.
  7727. * src/Metalink2RequestGroup.cc
  7728. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7729. Added test for Time::elapsed(time_t).
  7730. * test/TimeTest.cc
  7731. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7732. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7733. Util::difftv() should be used instead.
  7734. * src/TimeA2.cc
  7735. * src/TimeA2.h
  7736. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Made socket for dht connections non-blocking
  7738. * src/DHTAbstractMessage.cc
  7739. * src/DHTAbstractMessage.h
  7740. * src/DHTConnection.h
  7741. * src/DHTConnectionImpl.cc
  7742. * src/DHTConnectionImpl.h
  7743. * src/DHTMessage.h
  7744. * src/DHTMessageDispatcherImpl.cc
  7745. * src/DHTMessageDispatcherImpl.h
  7746. * src/DHTUnknownMessage.cc
  7747. * src/DHTUnknownMessage.h
  7748. * src/SocketCore.cc
  7749. * src/SocketCore.h
  7750. * test/MockDHTMessage.h
  7751. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Changed the type of offset to int.
  7753. * src/ParameterizedStringParser.cc
  7754. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Made getAsInt() return int32_t
  7756. * src/Option.h
  7757. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7759. build.
  7760. * configure.ac
  7761. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7762. Use sqlite3_open if sqlite3_open_v2 is not available.
  7763. * src/Sqlite3MozCookieParser.cc
  7764. * src/Sqlite3MozCookieParser.h
  7765. * m4/sqlite3.m4
  7766. * test/Sqlite3MozCookieParserTest.cc
  7767. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7768. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7769. * src/BtPieceMessage.cc
  7770. * src/DHTPeerAnnounceStorage.cc
  7771. * src/DefaultPieceStorage.cc
  7772. * src/DownloadCommand.cc
  7773. * src/DownloadEngine.cc
  7774. * src/FtpConnection.cc
  7775. * src/PeerConnection.cc
  7776. * src/PeerMessageUtil.cc
  7777. * src/RequestGroup.cc
  7778. * src/RequestGroupMan.cc
  7779. * src/SimpleBtMessage.cc
  7780. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7782. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7783. * src/AbstractDiskWriter.cc
  7784. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7785. Don't set Request::supportsPersistentConnection() in HttpConnection
  7786. since this code is also used in AbstractProxyResponseCommand.
  7787. Moved those code to HttpResponse.
  7788. * src/HttpResponse.cc
  7789. * src/HttpResponse.h
  7790. * src/HttpConnection.cc
  7791. * src/HttpConnection.h
  7792. * src/HttpResponseCommand.cc
  7793. * test/HttpResponseTest.cc
  7794. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7795. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7796. The configuration is minimum: no torrent, no metalink, so there may be
  7797. other compile error on their code.
  7798. * src/a2netcompat.h
  7799. * src/File.cc
  7800. * src/File.h
  7801. * src/SocketCore.cc
  7802. * src/SocketCore.h
  7803. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. Made a socket of incoming peer non-blocking.
  7805. * src/PeerListenCommand.cc
  7806. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7808. whole message data is not sent in one send() call.
  7809. * src/BtPieceMessage.cc
  7810. * src/BtPieceMessage.h
  7811. * src/PeerConnection.cc
  7812. * src/PeerConnection.h
  7813. * src/SimpleBtMessage.cc
  7814. * src/SimpleBtMessage.h
  7815. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7816. Fixed the bug that aria2 downloads faster than max-download-limit when
  7817. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7818. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7819. , instead of sum of them.
  7820. * src/ActivePeerConnectionCommand.cc
  7821. * src/DefaultBtInteractive.cc
  7822. * src/DownloadCommand.cc
  7823. * src/PeerInteractionCommand.cc
  7824. * src/PeerReceiveHandshakeCommand.cc
  7825. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Fixed the bug that HTTPS download fails.
  7827. * src/AbstractCommand.cc
  7828. * src/AbstractCommand.h
  7829. * src/DownloadCommand.cc
  7830. * src/FtpConnection.cc
  7831. * src/HttpConnection.cc
  7832. * src/HttpRequestCommand.cc
  7833. * src/HttpResponseCommand.cc
  7834. * src/HttpSkipResponseCommand.cc
  7835. * src/MSEHandshake.cc
  7836. * src/PeerConnection.cc
  7837. * src/SocketCore.cc
  7838. * src/SocketCore.h
  7839. Fixed the bug that aria2 doesn't download whole content body and cannot
  7840. reuse connection if chunked transfer encoding and gzip content encoding
  7841. are set.
  7842. * src/DownloadCommand.cc
  7843. * src/HttpSkipResponseCommand.cc
  7844. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Updated man page.
  7846. * doc/aria2c.1.txt
  7847. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. When error occurred while aria2 was parsing an .aria2.conf file, print
  7849. the usage of the option that caused error.
  7850. * src/option_processing.cc
  7851. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Fixed compile error on OptionHandlerException
  7853. * src/Makefile.am
  7854. * src/OptionHandlerException.cc
  7855. * src/OptionHandlerException.h
  7856. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7857. Moved message of the error to OptionHandlerException.h
  7858. * src/NameMatchOptionHandler.h
  7859. * src/OptionHandlerException.h
  7860. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. When error occurs while aria2 is parsing an command-line option, print
  7862. the usage of the option.
  7863. * src/Makefile.am
  7864. * src/NameMatchOptionHandler.h
  7865. * src/OptionHandlerException.h
  7866. * src/option_processing.cc
  7867. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. Reverted previous change.
  7869. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7870. username is not in URI.
  7871. * src/HttpRequest.cc
  7872. * src/Request.cc
  7873. * test/HttpRequestTest.cc
  7874. * test/RequestTest.cc
  7875. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Now colon is required for username and password in FTP URL, like:
  7877. ftp://username:password@host.
  7878. If colon is not there, aria2 don't parse it as a username. For example,
  7879. aria2 don't retrieve username from ftp://username@host.
  7880. This fix was made in order to login FTP server via non-transparent ftp
  7881. proxy.
  7882. * src/Request.cc
  7883. * test/RequestTest.cc
  7884. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. Use netrc for HTTP.
  7886. Now FTP user/password is sent in Authorization header when
  7887. --ftp-via-http-proxy=get is given.
  7888. * src/AuthConfigFactory.cc
  7889. * src/HttpRequest.cc
  7890. * src/HttpRequest.h
  7891. * src/NetrcAuthResolver.cc
  7892. * src/NetrcAuthResolver.h
  7893. * src/OptionHandlerFactory.cc
  7894. * src/option_processing.cc
  7895. * src/prefs.cc
  7896. * src/prefs.h
  7897. * test/AuthConfigFactoryTest.cc
  7898. * test/HttpRequestTest.cc
  7899. * test/NetrcAuthResolverTest.cc
  7900. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7901. Issue PWD command first and get working directory and use it as a prefix
  7902. for CWD command.
  7903. * src/DownloadEngine.cc
  7904. * src/DownloadEngine.h
  7905. * src/FtpConnection.cc
  7906. * src/FtpConnection.h
  7907. * src/FtpFinishDownloadCommand.cc
  7908. * src/FtpInitiateConnectionCommand.cc
  7909. * src/FtpNegotiationCommand.cc
  7910. * src/FtpNegotiationCommand.h
  7911. * test/FtpConnectionTest.cc
  7912. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7913. Removed default user/pass for FTP user/pass, since it should not have
  7914. precedence over netrc configuration by default.
  7915. * src/OptionHandlerFactory.cc
  7916. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. Added debug log for socket event.
  7918. * src/AbstractCommand.cc
  7919. * src/PeerAbstractCommand.cc
  7920. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. Log microseconds.
  7922. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7923. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Replaced HelpItem.cc with OptionHandler.cc.
  7925. * po/POTFILES.in
  7926. Updated po files with 'make update-po'
  7927. * po/aria2c.pot
  7928. * po/*.po
  7929. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7930. Removed possible values from the text.
  7931. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7932. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7933. Removed unused preferences:
  7934. PREF_NO_PREALLOCATION
  7935. PREF_STDOUT_LOG
  7936. PREF_TRACKER_MAX_TRIES
  7937. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7938. PREF_MIN_SEGMENT_SIZE
  7939. * src/option_processing.cc
  7940. * src/prefs.cc
  7941. * src/prefs.h
  7942. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7943. Integrated HelpItem into OptionParser to ease the workload for adding
  7944. new options. Removed default value from usage text.
  7945. * src/HelpItem.cc: Removed.
  7946. * src/HelpItem.h: Removed.
  7947. * src/HelpItemFactory.cc: Removed.
  7948. * src/HelpItemFactory.h: Removed.
  7949. * src/Makefile.am
  7950. * src/Makefile.in
  7951. * src/NameMatchOptionHandler.h
  7952. * src/OptionHandler.cc
  7953. * src/OptionHandler.h
  7954. * src/OptionHandlerFactory.cc
  7955. * src/OptionHandlerImpl.h
  7956. * src/OptionParser.cc
  7957. * src/OptionParser.h
  7958. * src/TagContainer.cc: Removed.
  7959. * src/TagContainer.h: Removed.
  7960. * src/TaggedItem.cc: Removed.
  7961. * src/TaggedItem.h: Removed.
  7962. * src/main.cc
  7963. * src/option_processing.cc
  7964. * src/usage_text.h
  7965. * src/version_usage.cc
  7966. * test/HelpItemTest.cc: Removed.
  7967. * test/Makefile.am
  7968. * test/Makefile.in
  7969. * test/OptionHandlerTest.cc
  7970. * test/OptionParserTest.cc
  7971. * test/TagContainerTest.cc: Removed.
  7972. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7973. Moved `TransferStat stat = ...' to inside the `if' clause.
  7974. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7975. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7976. Fixed the bug that a block in a piece is requested when same block is
  7977. already requested to the same peer in end game mode.
  7978. * src/BtRequestFactory.h
  7979. * src/DefaultBtInteractive.cc
  7980. * src/DefaultBtRequestFactory.cc
  7981. * src/DefaultBtRequestFactory.h
  7982. * src/DefaultPieceStorage.cc
  7983. * src/DefaultPieceStorage.h
  7984. * src/PieceStorage.h
  7985. * src/UnknownLengthPieceStorage.cc
  7986. * src/UnknownLengthPieceStorage.h
  7987. * test/DefaultBtRequestFactoryTest.cc
  7988. * test/DefaultPieceStorageTest.cc
  7989. * test/MockBtRequestFactory.h
  7990. * test/MockPieceStorage.h
  7991. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7992. Removed _uploadLength and _downloadLength from PeerSessionResource
  7993. and use PeerStat::_sessionUploadLength and
  7994. PeerStat::_sessionDownloadLength.
  7995. * src/PeerSessionResource.cc
  7996. * src/PeerSessionResource.h
  7997. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7998. Fixed the bug that prefixLength of split bucket which doesn't include
  7999. local node ID is incremented.
  8000. * src/DHTBucket.cc
  8001. * src/DHTBucket.h
  8002. * test/DHTBucketTest.cc
  8003. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. Added cookies.sqlite to EXTRA_DIST
  8005. * test/Makefile.am
  8006. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Added Turkish translation. Updated French, German, Russian and
  8008. Simplified Chinese translations. Thanks to all translators.
  8009. * po/LINGUAS
  8010. * po/de.po
  8011. * po/fr.po
  8012. * po/ru.po
  8013. * po/tr.po
  8014. * po/zh_CN.po
  8015. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Added deliminating text to the beginning of the log so that one can find
  8017. where the log starts easily.
  8018. * src/main.cc
  8019. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8021. to fix compile error when async DNS is not enabled by configuration.
  8022. * src/AbstractCommand.cc
  8023. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8024. If establishing conneciton to a server is failed, then mark error on
  8025. its ServerStat.
  8026. Added the cause of error to log when error event occurred.
  8027. Moved message string to message.h for translation.
  8028. * src/AbstractCommand.cc
  8029. * src/AbstractCommand.h
  8030. * src/FtpNegotiationCommand.cc
  8031. * src/HttpRequestCommand.cc
  8032. * src/PeerAbstractCommand.cc
  8033. * src/message.h
  8034. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8035. Added the function to get error message from socket.
  8036. * src/SocketCore.cc
  8037. * src/SocketCore.h
  8038. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8040. * src/RequestGroupMan.cc
  8041. * src/RequestGroupMan.h
  8042. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. If error event is received in epoll, then abort download immediately.
  8044. * src/AbstractCommand.cc
  8045. * src/Command.cc
  8046. * src/Command.h
  8047. * src/DownloadEngine.cc
  8048. * src/PeerAbstractCommand.cc
  8049. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. Added usage message for --uri-selector, --server-stat-of,
  8051. --server-stat-in, --server-stat-timeout options.
  8052. * src/HelpItemFactory.cc
  8053. * src/usage_text.h
  8054. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Added upper limit of FTP response buffer. The current implementation
  8056. uses 4096bytes as a limit.
  8057. * src/FtpConnection.cc
  8058. * src/FtpConnection.h
  8059. * test/FtpConnectionTest.cc
  8060. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Use non-blocking socket for TCP communication to avoid possible
  8062. blocking due to buffer full.
  8063. * src/AbstractProxyRequestCommand.cc
  8064. * src/FtpConnection.cc
  8065. * src/FtpConnection.h
  8066. * src/FtpNegotiationCommand.cc
  8067. * src/FtpNegotiationCommand.h
  8068. * src/HttpConnection.cc
  8069. * src/HttpConnection.h
  8070. * src/HttpRequestCommand.cc
  8071. * src/InitiatorMSEHandshakeCommand.cc
  8072. * src/InitiatorMSEHandshakeCommand.h
  8073. * src/MSEHandshake.cc
  8074. * src/MSEHandshake.h
  8075. * src/Makefile.am
  8076. * src/PeerConnection.cc
  8077. * src/PeerConnection.h
  8078. * src/PeerInteractionCommand.cc
  8079. * src/PeerListenCommand.cc
  8080. * src/ReceiverMSEHandshakeCommand.cc
  8081. * src/ReceiverMSEHandshakeCommand.h
  8082. * src/SocketBuffer.cc
  8083. * src/SocketBuffer.h
  8084. * src/SocketCore.cc
  8085. * src/SocketCore.h
  8086. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8087. Call setStatusRealtime() in constructor.
  8088. * src/RealtimeCommand.cc
  8089. * src/RealtimeCommand.h
  8090. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. Call Download::setNoWait(true) to execute newly created command without
  8092. a pause.
  8093. * src/AbstractCommand.cc
  8094. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8096. found' error from HTTP/FTP server NUM times without getting single
  8097. bytes of data, then force the download to fail.
  8098. Basically aria2 tris all URIs available. So if long list of URIs are
  8099. specified in Metalink, then aria2 will take a long time to fail
  8100. eventually if all URIs are outdated. This option eases this situation
  8101. to limit the number of servers to try.
  8102. * src/FtpNegotiationCommand.cc
  8103. * src/HelpItemFactory.cc
  8104. * src/HttpResponseCommand.cc
  8105. * src/OptionHandlerFactory.cc
  8106. * src/PeerStat.h
  8107. * src/RequestGroup.cc
  8108. * src/RequestGroup.h
  8109. * src/SegmentMan.cc
  8110. * src/SegmentMan.h
  8111. * src/option_processing.cc
  8112. * src/prefs.cc
  8113. * src/prefs.h
  8114. * src/usage_text.h
  8115. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8117. response even if more than one response is in it.
  8118. * src/FtpConnection.cc
  8119. * src/FtpConnection.h
  8120. * test/FtpConnectionTest.cc
  8121. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Merged from stable-0.15
  8123. * m4/libcares.m4
  8124. Use pkg-config
  8125. * m4/sqlite3.m4
  8126. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Removed unnecessary if statement.
  8128. * src/DefaultPieceStorage.cc (initPieceStorage)
  8129. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Added --connect-timeout option to specify connect timeout in seconds.
  8131. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8132. connecting to BitTorrent peer is not controlled by this option.
  8133. * src/AbstractProxyRequestCommand.cc
  8134. * src/FtpNegotiationCommand.cc
  8135. * src/HelpItemFactory.cc
  8136. * src/HttpRequestCommand.cc
  8137. * src/OptionHandlerFactory.cc
  8138. * src/option_processing.cc
  8139. * src/prefs.cc
  8140. * src/prefs.h
  8141. * src/usage_text.h
  8142. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. Added help message for -R option.
  8144. * src/HelpItemFactory.cc
  8145. * src/usage_text.h
  8146. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. Added the message that the time is in local time zone.
  8148. * src/RequestGroup.cc
  8149. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Implemented the ability to get timestamp from remote FTP server using
  8151. MDTM command described in RFC3659.
  8152. * src/FtpConnection.cc
  8153. * src/FtpConnection.h
  8154. * src/FtpNegotiationCommand.cc
  8155. * src/FtpNegotiationCommand.h
  8156. * test/FtpConnectionTest.cc
  8157. * test/Makefile.am
  8158. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Implemented the ability to get timestamp from remote HTTP server and
  8160. apply it to local file. To enable this feature, --remote-time option
  8161. is added. No usage text has been written yet.
  8162. If several servers returns difference timestamp, then aria2 uses latest
  8163. one.
  8164. * src/CopyDiskAdaptor.cc
  8165. * src/CopyDiskAdaptor.h
  8166. * src/DirectDiskAdaptor.cc
  8167. * src/DirectDiskAdaptor.h
  8168. * src/DiskAdaptor.h
  8169. * src/File.cc
  8170. * src/File.h
  8171. * src/HttpHeader.cc
  8172. * src/HttpHeader.h
  8173. * src/HttpResponse.cc
  8174. * src/HttpResponse.h
  8175. * src/HttpResponseCommand.cc
  8176. * src/HttpResponseCommand.h
  8177. * src/MultiDiskAdaptor.cc
  8178. * src/MultiDiskAdaptor.h
  8179. * src/OptionHandlerFactory.cc
  8180. * src/RequestGroup.cc
  8181. * src/RequestGroup.h
  8182. * src/RequestGroupMan.cc
  8183. * src/option_processing.cc
  8184. * src/prefs.cc
  8185. * src/prefs.h
  8186. * test/CopyDiskAdaptorTest.cc
  8187. * test/FileTest.cc
  8188. * test/Makefile.am
  8189. * test/Makefile.in
  8190. * test/MultiDiskAdaptorTest.cc
  8191. * test/TestUtil.cc
  8192. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Fixed the bug that DiskWriterEntry is not created when its
  8194. FileEntry.isRequested() is false and it doesn't share a piece with
  8195. other FileEntries that are requested. This bug causes segmentation fault
  8196. in the end.
  8197. * src/MultiDiskAdaptor.cc
  8198. * src/MultiDiskAdaptor.h
  8199. * src/MultiFileAllocationIterator.cc
  8200. * test/MultiDiskAdaptorTest.cc
  8201. * test/MultiFileAllocationIteratorTest.cc
  8202. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8203. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8204. called if the number of file entries are greater than max open files.
  8205. * src/AbstractSingleDiskAdaptor.cc
  8206. * src/AbstractSingleDiskAdaptor.h
  8207. * src/DiskAdaptor.h
  8208. * src/MultiDiskAdaptor.cc
  8209. * src/MultiDiskAdaptor.h
  8210. * test/MultiDiskAdaptorTest.cc
  8211. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8212. Added a constuctor that receives struct timeval.
  8213. Added operator<.
  8214. * src/TimeA2.cc
  8215. * src/TimeA2.h
  8216. * test/TimeTest.cc
  8217. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8219. * src/CookieParser.cc
  8220. * test/CookieParserTest.cc
  8221. * test/HttpResponseTest.cc
  8222. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8223. Implmented the functions to parse date.
  8224. * src/TimeA2.cc
  8225. * src/TimeA2.h
  8226. * test/TimeTest.cc
  8227. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. Added "Firefox3 Cookie" feature to FeatureConfig
  8229. * src/FeatureConfig.cc
  8230. * src/FeatureConfig.h
  8231. * test/FeatureConfigTest.cc
  8232. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Bump up version number to 0.16.0b
  8234. * configure.ac
  8235. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8236. Use pkg-config if is is available.
  8237. * m4/openssl.m4
  8238. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8240. * src/BtAnnounce.h
  8241. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. If an error occurred with a URI, remove identical URI from remaining
  8243. URI list because it is likely that same error occurred in the end and it
  8244. is waste of time.
  8245. * src/AbstractCommand.cc
  8246. * src/RequestGroup.cc
  8247. * src/RequestGroup.h
  8248. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8249. Removed wrong comment.
  8250. * src/DefaultPeerStorage.cc
  8251. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8253. Added return value of getpid() to argument of srand() to achieve more
  8254. randomized value.
  8255. * src/SimpleRandomizer.cc
  8256. * src/SimpleRandomizer.h
  8257. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8258. Contact tracker frequently when the number of connections are 0 and
  8259. download is not finished yet.
  8260. * src/ActivePeerConnectionCommand.cc
  8261. * src/BtAnnounce.h
  8262. * src/DefaultBtAnnounce.cc
  8263. * src/DefaultBtAnnounce.h
  8264. * test/MockBtAnnounce.h
  8265. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Moved threshold values to UTPexExtensionMessage.
  8267. * src/DefaultBtInteractive.cc
  8268. * src/Peer.cc
  8269. * src/Peer.h
  8270. * src/UTPexExtensionMessage.cc
  8271. * src/UTPexExtensionMessage.h
  8272. * test/UTPexExtensionMessageTest.cc
  8273. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. Added _incoming member to Peer class and made it true if the peer
  8275. initiated connection. Don't add those peer to UTPex message.
  8276. If extended handshake is received, assign _incoming to false.
  8277. * src/DefaultBtInteractive.cc
  8278. * src/HandshakeExtensionMessage.cc
  8279. * src/Peer.cc
  8280. * src/Peer.h
  8281. * src/PeerListenCommand.cc
  8282. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8284. Encoding Decoder. Removed size threshold for turning off on the fly
  8285. inflation because resulting file may or may not be inflated depending
  8286. on the file size and I think it is not expected by users.
  8287. This change fixes segmentation fault when Metalink file contains gzipped
  8288. file and its filesize is provided.
  8289. * src/HttpResponseCommand.cc
  8290. * src/HttpResponseCommand.h
  8291. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Made Cookie immutable.
  8293. * src/Cookie.cc
  8294. * src/Cookie.h
  8295. * src/CookieParser.cc
  8296. * src/CookieParser.h
  8297. * src/CookieStorage.cc
  8298. * test/CookieParserTest.cc
  8299. * test/CookieStorageTest.cc
  8300. * test/NsCookieParserTest.cc
  8301. * test/Sqlite3MozCookieParserTest.cc
  8302. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Removed CookieBox, CookieBoxFactory.
  8304. * src/CookieBox.cc
  8305. * src/CookieBox.h
  8306. * src/CookieBoxFactory.cc
  8307. * src/CookieBoxFactory.h
  8308. * src/Makefile.am
  8309. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8310. Use CookieStorage class instead of CookieBox class.
  8311. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8312. * src/AbstractProxyRequestCommand.cc
  8313. * src/CookieStorage.cc
  8314. * src/DownloadEngine.cc
  8315. * src/DownloadEngine.h
  8316. * src/HttpConnection.cc
  8317. * src/HttpConnection.h
  8318. * src/HttpRequest.cc
  8319. * src/HttpRequest.h
  8320. * src/HttpRequestCommand.cc
  8321. * src/HttpResponse.cc
  8322. * src/HttpResponseCommand.cc
  8323. * src/HttpSkipResponseCommand.cc
  8324. * src/Makefile.am
  8325. * src/MultiUrlRequestInfo.cc
  8326. * src/Request.cc
  8327. * src/Request.h
  8328. * src/main.cc
  8329. * test/AllTest.cc
  8330. * test/CookieStorageTest.cc
  8331. * test/CookieTest.cc
  8332. * test/HttpRequestTest.cc
  8333. * test/HttpResponseTest.cc
  8334. * test/Makefile.am
  8335. * test/NsCookieParserTest.cc
  8336. * test/Sqlite3MozCookieParserTest.cc
  8337. * test/nscookietest.txt
  8338. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8339. Updated
  8340. * test/Cookies.sqlite
  8341. * test/nscookietest.txt
  8342. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8343. Added tests for CookieStorage::load()
  8344. * test/CookieStorageTest.cc
  8345. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8346. Added CookieStorage class which is based on RFC2109 and manages cookies
  8347. more strictly than CookieBox and CookieBoxFactory class.
  8348. * src/CookieStorage.cc
  8349. * src/CookieStorage.h
  8350. * src/Cookie.cc
  8351. * src/Cookie.h
  8352. * test/CookieStorageTest.cc
  8353. * test/CookieTest.cc
  8354. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8355. Fixed the bug that commands are created more than the number of pieces.
  8356. * src/RequestGroup.cc
  8357. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8358. Fixed infinite loop bug in FTP when SIZE command failed.
  8359. * src/FtpNegotiationCommand.cc
  8360. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. Removed DirectDiskAdaptorTest.h
  8362. * test/Makefile.am
  8363. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Fixed chunk checksum validation cannot detect trailing garbage data.
  8365. BUG#2074141
  8366. * src/AbstractSingleDiskAdaptor.cc
  8367. * src/AbstractSingleDiskAdaptor.h
  8368. * src/CheckIntegrityEntry.cc
  8369. * src/CheckIntegrityEntry.h
  8370. * src/DiskAdaptor.h
  8371. * src/MultiDiskAdaptor.cc
  8372. * src/MultiDiskAdaptor.h
  8373. * src/RequestGroup.cc
  8374. * test/DirectDiskAdaptorTest.cc
  8375. * test/MultiDiskAdaptorTest.cc
  8376. * test/TestUtil.cc
  8377. * test/TestUtil.h
  8378. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Bump up version number of dht.dat file to 3. In version 3 format, time
  8380. is stored in 64bit, network byte order.
  8381. New build can load old format(version 2) but it saves the file in new
  8382. format. It means once you used new build, your dht.dat becomes
  8383. incompatible with older build.
  8384. * src/DHTRoutingTableDeserializer.cc
  8385. * src/DHTRoutingTableSerializer.cc
  8386. * test/DHTRoutingTableSerializerTest.cc
  8387. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8389. * test/Makefile.am
  8390. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8391. Bump up version number of .aria2 control file to 0001.
  8392. New aria2 can still load version 0000 file but it saves the file in
  8393. version 0001 format. It means that new aria2 can resume download
  8394. started by old aria2 but the opposite is not true.
  8395. * src/DefaultBtProgressInfoFile.cc
  8396. * src/DefaultBtProgressInfoFile.h
  8397. * test/DefaultBtProgressInfoFileTest.cc
  8398. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. Added ntoh64 and hton64 as inline functions.
  8400. * src/Util.cc
  8401. * test/UtilTest.cc
  8402. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8403. Added sqlite3 depenency and Firefox3 cookie support.
  8404. * README
  8405. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. State that firefox3 cookie is supported explicitly in the usage.
  8407. * src/usage_text.h
  8408. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Externalized message.
  8410. * src/RequestGroupMan.cc
  8411. * src/message.h
  8412. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Save temporary file first and rename to the destination on success.
  8414. Added test cases.
  8415. * src/RequestGroupMan.cc
  8416. * test/RequestGroupManTest.cc
  8417. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Fixed the bug that the number of connected peer is exceeding the limit
  8419. (55 by default) in seeding mode.
  8420. Multiplied 0.8 to _maxUploadSpeedLimit.
  8421. * src/ActivePeerConnectionCommand.cc
  8422. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8423. Clear table item.
  8424. * src/Dictionary.cc
  8425. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. Fixed error handling of lseek.
  8427. * src/AbstractDiskWriter.cc
  8428. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8430. style cookie file.
  8431. * src/usage_text.h
  8432. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8434. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8435. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8436. * src/Util.cc
  8437. * src/Util.h
  8438. * src/CookieParser.cc
  8439. * test/UtilTest.cc
  8440. * test/CookieParserTest.cc
  8441. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Separate the implementation to load old mozilla format of cookie to
  8443. NsCookieParser class.
  8444. * src/CookieBoxFactory.cc
  8445. * src/CookieBoxFactory.h
  8446. * src/NsCookieParser.cc
  8447. * src/NsCookieParser.h
  8448. * test/NsCookieParserTest.cc
  8449. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. Made parse() const
  8451. * src/Sqlite3MozCookieParser.cc
  8452. * src/Sqlite3MozCookieParser.h
  8453. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Added firefox3 cookie support based on the patch submitted by
  8455. tizianomueller.
  8456. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8457. this functionality.
  8458. * configure.ac
  8459. * m4/sqlite3.m4
  8460. * src/CookieBoxFactory.cc
  8461. * src/CookieBoxFactory.h
  8462. * src/Makefile.am
  8463. * src/Makefile.in
  8464. * src/Sqlite3MozCookieParser.cc
  8465. * src/Sqlite3MozCookieParser.h
  8466. * src/main.cc
  8467. * test/CookieBoxFactoryTest.cc
  8468. * test/Makefile.am
  8469. * test/Makefile.in
  8470. * test/Sqlite3MozCookieParserTest.cc
  8471. * test/badcookies.sqlite
  8472. * test/cookies.sqlite
  8473. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8474. Added Danish and Greek translations.
  8475. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8476. Great thanks to all translators.
  8477. * po/LINGUAS
  8478. * po/el.po
  8479. * po/da.po
  8480. * po/es.po
  8481. * po/ca.po
  8482. * po/nn.po
  8483. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. Fixed man page: --follow-bittorrent should be --follow-torrent
  8485. * doc/aria2c.1.txt
  8486. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Fixed: numCommand is less than the value specified in -C option.
  8488. * src/RequestGroup.cc
  8489. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Fixed occasional assertion failure in PieceSegment.
  8491. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8492. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8493. creation of duplicate segments and one of the segment was finished then
  8494. assertion failure was caused.
  8495. * src/SegmentMan.cc
  8496. * test/SegmentManTest.cc
  8497. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Added options to load/save the server's performance/status to a file
  8499. and the timeout to drop their data.
  8500. --server-stat-of=FILE specifies the file to which performance data
  8501. is saved.
  8502. --server-stat-if=FILE specifies the file to read previously saved
  8503. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8504. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8505. TIMEOUT is specified in seconds and the default value is 24hours.
  8506. * src/MultiUrlRequestInfo.cc
  8507. * src/OptionHandlerFactory.cc
  8508. * src/RequestGroupMan.cc
  8509. * src/RequestGroupMan.h
  8510. * src/ServerStatMan.cc
  8511. * src/ServerStatMan.h
  8512. * src/option_processing.cc
  8513. * src/prefs.cc
  8514. * src/prefs.h
  8515. * test/ServerStatManTest.cc
  8516. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8518. * src/ServerStatMan.cc
  8519. * src/ServerStatMan.h
  8520. * test/ServerStatManTest.cc
  8521. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8522. Implemented ServerStatMan::load(...) function and its test case.
  8523. * src/ServerStat.cc
  8524. * src/ServerStat.h
  8525. * src/ServerStatMan.cc
  8526. * test/ServerStatManTest.cc
  8527. * test/ServerStatTest.cc
  8528. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8529. Use time_t instead of int32_t. Use int64_t where milli second is
  8530. expected.
  8531. * src/TimeA2.cc
  8532. * src/TimeA2.h
  8533. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Implemented ServerStatMan::save(...) function and its test case.
  8535. * src/ServerStat.cc
  8536. * src/ServerStat.h
  8537. * src/ServerStatMan.cc
  8538. * src/ServerStatMan.h
  8539. * test/ServerStatManTest.cc
  8540. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8541. Now aria2 uses name attribute in Metalink as local filename in
  8542. BitTorrent downloads. BUG#2033999
  8543. * src/BtContext.h
  8544. * src/BtDependency.cc
  8545. * src/DefaultBtContext.cc
  8546. * src/DefaultBtContext.h
  8547. * src/SingleFileDownloadContext.cc
  8548. * src/SingleFileDownloadContext.h
  8549. * test/BtDependencyTest.cc
  8550. * test/DefaultBtContextTest.cc
  8551. * test/MockBtContext.h
  8552. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Added AC_C_BIGENDIAN
  8554. * src/configure.ac
  8555. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8556. Limited numCommand less than or equal to the number of piece.
  8557. * src/RequestGroup.cc
  8558. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8560. directive.
  8561. * test/DefaultPieceStorageTest.cc
  8562. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Fixed memory leak in test code
  8564. * test/AnnounceListTest.cc
  8565. * test/DefaultPeerListProcessorTest.cc
  8566. * test/DefaultPeerStorageTest.cc
  8567. * test/MetaFileUtilTest.cc
  8568. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8570. * src/DefaultPieceStorage.cc
  8571. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8572. Initialized _directIOAllowed
  8573. * src/MultiDiskAdaptor.cc
  8574. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8575. Fixed memory leak
  8576. * src/GZipDecoder.cc
  8577. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Fixed memory leak
  8579. * src/MetalinkParserStateMachine.cc
  8580. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. Fixed memory leak
  8582. * src/Dictionary.cc
  8583. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Fixed memory leak
  8585. * src/IteratableChunkChecksumValidator.h
  8586. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8587. Fixed unmatched malloc/free.
  8588. * src/IteratableChunkChecksumValidator.cc
  8589. * src/IteratableChecksumValidator.cc
  8590. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Removed max chunk size check. This change fixes BUG#2040169
  8592. * src/ChunkedDecoder.cc
  8593. * src/ChunkedDecoder.h
  8594. * test/ChunkedDecoderTest.cc
  8595. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8596. Implemented download speed based URI selection algorithm.
  8597. Introduced new option --uri-selector.
  8598. If --uri-selector=feedback is given, aria2 uses download speed observed
  8599. in the previous downloads and chooses fastest server in the URI list.
  8600. Currently at most 10 URIs are considered to introduce randomeness for
  8601. finding better servers. The speed is average download speed in the
  8602. downloads.
  8603. On the other hand, if --uri-selector=inorder is given, which is default,
  8604. URI is tried in order in URI list.
  8605. The usage text for the new option has not been written yet.
  8606. * src/AbstractCommand.cc
  8607. * src/DownloadCommand.cc
  8608. * src/DownloadEngine.cc
  8609. * src/DownloadEngineFactory.cc
  8610. * src/InOrderURISelector.cc
  8611. * src/InOrderURISelector.h
  8612. * src/OptionHandlerFactory.cc
  8613. * src/PeerStat.h
  8614. * src/RequestGroup.cc
  8615. * src/RequestGroup.h
  8616. * src/RequestGroupMan.cc
  8617. * src/RequestGroupMan.h
  8618. * src/SegmentMan.cc
  8619. * src/SegmentMan.h
  8620. * src/ServerStat.cc
  8621. * src/ServerStat.h
  8622. * src/ServerStatMan.cc
  8623. * src/ServerStatMan.h
  8624. * src/ServerStatURISelector.cc
  8625. * src/ServerStatURISelector.h
  8626. * src/URISelector.h
  8627. * src/option_processing.cc
  8628. * src/prefs.cc
  8629. * src/prefs.h
  8630. * test/InOrderURISelectorTest.cc
  8631. * test/RequestGroupManTest.cc
  8632. * test/ServerStatManTest.cc
  8633. * test/ServerStatURISelectorTest.cc
  8634. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8635. * Release 0.15.1+2
  8636. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. Bump up version number to 0.15.1+2
  8638. * configure.ac
  8639. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8641. * m4/aria2_arg.m4
  8642. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. * Release 0.15.1+1
  8644. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Bump up version number to 0.15.1+1
  8646. * configure.ac
  8647. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Fixed the bug that causes segmentaion fault when resuming download
  8649. using metalink without size tag. Reproducible only using HTTP URI.
  8650. * src/HttpResponseCommand.cc
  8651. * src/FtpNegotiationCommand.cc
  8652. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. * Release 0.15.1
  8654. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Updated Bulgarian and French translations, thanks to all translators.
  8656. * po/bg.po
  8657. * po/fr.po
  8658. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8659. Bump up version number to 0.15.1
  8660. * configure.ac
  8661. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8662. Avoid repeated call of gettimeofday() when calculating speed.
  8663. * src/SpeedCalc.cc
  8664. * src/SpeedCalc.h
  8665. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Removed writable check when socket's send buffer is full in BitTorrent
  8667. downloads to lower CPU usage.
  8668. * src/PeerInteractionCommand.cc
  8669. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Fixed broken gzip inflation.
  8671. Turn off segmented downloading if gzip content is smaller than or equal
  8672. to 1MiB and inflate the data on the fly, because HTTP response header
  8673. doesn't contain the length of inflated file we can't determin where
  8674. the chunk of data should be written.
  8675. On the other hand, if gzip content is larger than 1MB, then turn off
  8676. on the fly inflation, because some servers returns "content-type: gzip"
  8677. for *.tgz, *.gz files.
  8678. * src/DownloadCommand.cc
  8679. * src/HttpResponseCommand.cc
  8680. * src/HttpResponseCommand.h
  8681. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. Applied tizianomueller's patch to fix compile error.
  8683. * test/BitfieldManTest.cc
  8684. * test/BtRequestMessageTest.cc
  8685. * test/DefaultBtContextTest.cc
  8686. * test/DefaultDiskWriterTest.cc
  8687. * test/DefaultPieceStorageTest.cc
  8688. * test/HttpHeaderProcessorTest.cc
  8689. * test/HttpResponseTest.cc
  8690. * test/Metalink2RequestGroupTest.cc
  8691. * test/MetalinkParserControllerTest.cc
  8692. * test/MetalinkProcessorTest.cc
  8693. * test/PeerSessionResourceTest.cc
  8694. * test/UtilTest.cc
  8695. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8696. * Release 0.15.0
  8697. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8698. Reordered src files in POTFILES.in so that usage text appears first.
  8699. * po/POTFILES.in
  8700. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8701. Bump up version number to 0.15.0
  8702. * configure.ac
  8703. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8704. Added Bulgarian translation.
  8705. Updated Catalan, Spanish, French and Japanese translations.
  8706. Thanks to all translators.
  8707. * po/LINGUAS
  8708. * po/bg.po
  8709. * po/ca.po
  8710. * po/es.po
  8711. * po/fr.po
  8712. * po/ja.po
  8713. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8714. Updated feature list. Added libz for dependency section.
  8715. Added a description about unit testing using CppUnit.
  8716. * README
  8717. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8718. Added a test for libz. Quoted where it is necessary.
  8719. * build_test.sh
  8720. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Added GZip to `Enabled Features' list.
  8722. * src/FeatureConfig.cc
  8723. * src/FeatureConfig.h
  8724. * test/FeatureConfigTest.cc
  8725. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8727. the transfer has not yet started.
  8728. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8729. * src/SegmentMan.cc
  8730. * src/SegmentMan.h
  8731. * test/SegmentManTest.cc
  8732. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8733. Cache last calculated average download/upload speed.
  8734. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8735. cached value.
  8736. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8737. * src/PeerStat.h
  8738. * src/SpeedCalc.cc
  8739. * src/SpeedCalc.h
  8740. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Call parseUrl directly.
  8742. * src/Request.cc (resetUrl)
  8743. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Supported absolute/relative path in Location header field.
  8745. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8746. * src/HttpHeader.cc
  8747. * src/HttpHeader.h
  8748. * src/HttpResponse.cc
  8749. * src/HttpSkipResponseCommand.cc
  8750. * src/Request.cc
  8751. * test/HttpHeaderTest.cc
  8752. * test/HttpResponseTest.cc
  8753. * test/RequestTest.cc
  8754. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8755. Changed help text for --load-cookie option.
  8756. * doc/aria2c.1.txt
  8757. * src/usage_text.h
  8758. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. Regenerated test/Makefile.in to remove stale ChangeLog.
  8760. * test/Makefile.in
  8761. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8762. Updated po files.
  8763. * po/aria2c.pot
  8764. * po/*.po
  8765. * po/*.gmo
  8766. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. Bump up version number to 0.15.0b
  8768. * configure.ac
  8769. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8770. Externalize messages.
  8771. * src/RequestGroupMan.cc
  8772. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8773. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. Use File::exists() instead of File::isFile() to allow non-regular file
  8775. such as block special files.
  8776. * src/AbstractDiskWriter.cc
  8777. * src/MultiDiskWriter.cc
  8778. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8780. * src/gai_strerror.h
  8781. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Fixed compile error. Thanks gknauf for the patch.
  8783. * src/asctime_r.c
  8784. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Included asctime_r.h from a2time.h.
  8786. * src/a2time.h
  8787. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Added a message "aria2 doesn't verify signature" to log message when
  8789. signature file is saved.
  8790. * src/RequestGroupMan.cc
  8791. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. Added the ability to save signature when download is completed if
  8793. signature is available. The filename of signature file is the path to
  8794. download file followed by ".sig". If it already exists, then signature
  8795. will not be saved.
  8796. * src/RequestGroupMan.cc
  8797. * src/Signature.cc
  8798. * test/SignatureTest.cc
  8799. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8800. Updated the descriptions for --bt-seed-unverified.
  8801. * doc/aria2c.1
  8802. * doc/aria2c.1.html
  8803. * doc/aria2c.1.txt
  8804. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8806. that this is not going to verify files using piece hashes.
  8807. * src/HelpItemFactory.cc
  8808. * src/OptionHandlerFactory.cc
  8809. * src/RequestGroup.cc
  8810. * src/option_processing.cc
  8811. * src/prefs.cc
  8812. * src/prefs.h
  8813. * src/usage_text.h
  8814. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Added the ability to retrieve signature from Metalink file.
  8816. A retrieved signature is stored in Signature class and it is held by
  8817. DownloadContext class. Note that aria2 doesn't verify signature.
  8818. * src/DownloadContext.cc
  8819. * src/DownloadContext.h
  8820. * src/Makefile.am
  8821. * src/Makefile.in
  8822. * src/Metalink2RequestGroup.cc
  8823. * src/MetalinkEntry.cc
  8824. * src/MetalinkEntry.h
  8825. * src/MetalinkParserController.cc
  8826. * src/MetalinkParserController.h
  8827. * src/MetalinkParserStateMachine.cc
  8828. * src/MetalinkParserStateMachine.h
  8829. * src/Signature.cc
  8830. * src/Signature.h
  8831. * src/SignatureMetalinkParserState.cc
  8832. * src/SignatureMetalinkParserState.h
  8833. * src/VerificationMetalinkParserState.cc
  8834. * src/VerificationMetalinkParserState.h
  8835. * test/Metalink2RequestGroupTest.cc
  8836. * test/MetalinkParserControllerTest.cc
  8837. * test/MetalinkProcessorTest.cc
  8838. * test/test.xml
  8839. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8840. Close DiskAdaptor after renaming file.
  8841. * src/RequestGroup.cc
  8842. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Corrected indentation
  8844. * src/DefaultBtProgressInfoFile.cc
  8845. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8846. Moved the calls of std::ios::exceptions() inside of try-catch block
  8847. because if an error occurred in constructor of std::fstream, then
  8848. exception is thrown immediately when std::ios::exceptions() is called
  8849. which results unhandled exception and aria2c aborts.
  8850. * src/DefaultBtProgressInfoFile.cc
  8851. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8852. Added the test for the previous change in DefaultBtContext.cc
  8853. * test/DefaultBtContextTest.cc
  8854. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. Fixed the bug that causes infinite loop when the number of pieces are
  8856. fewer than allowed fast set size which is 10 by default.
  8857. * src/DefaultBtContext.cc
  8858. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8859. Updated the descriptions for -j, -s. Added --bt-seed.
  8860. * doc/aria2c.1
  8861. * doc/aria2c.1.html
  8862. * doc/aria2c.1.txt
  8863. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8865. aria2 seeds previously downloaded files without validating piece hashs.
  8866. * src/HelpItemFactory.cc
  8867. * src/OptionHandlerFactory.cc
  8868. * src/RequestGroup.cc
  8869. * src/option_processing.cc
  8870. * src/prefs.cc
  8871. * src/prefs.h
  8872. * src/usage_text.h
  8873. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Updated DESCRIPTION of man page.
  8875. * doc/aria2c.1
  8876. * doc/aria2c.1.html
  8877. * doc/aria2c.1.txt
  8878. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8880. Don't define `struct addrinfo' when __sun is defined.
  8881. * src/getaddrinfo.h
  8882. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8884. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8885. second argument is of type `struct _stati64'. Otherwise it is defined as
  8886. `struct stat'.
  8887. * src/AbstractDiskWriter.cc
  8888. * src/File.cc
  8889. * src/File.h
  8890. * src/a2io.h
  8891. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8892. Fixed the compile error in hurd-i386
  8893. See the original bug report:
  8894. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8895. * src/a2io.h
  8896. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Code cleanup.
  8898. * src/PeerAbstractCommand.cc
  8899. * src/PeerAbstractCommand.h
  8900. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Removed TransferEncoding.
  8902. * src/DownloadCommand.cc
  8903. * src/DownloadCommand.h
  8904. * src/HttpResponseCommand.cc
  8905. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8906. Updated po files.
  8907. * po/aria2c.pot
  8908. * po/*.po
  8909. * po/*.gmo
  8910. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8911. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8912. * src/A2STR.cc
  8913. * src/A2STR.h
  8914. * src/ChunkedDecoder.cc
  8915. * src/ChunkedDecoder.h
  8916. * src/ChunkedEncoding.cc: Removed
  8917. * src/ChunkedEncoding.h: Removed
  8918. * src/DownloadCommand.cc
  8919. * src/DownloadCommand.h
  8920. * src/HttpDownloadCommand.cc
  8921. * src/HttpResponse.cc
  8922. * src/HttpResponse.h
  8923. * src/HttpResponseCommand.cc
  8924. * src/HttpSkipResponseCommand.cc
  8925. * src/HttpSkipResponseCommand.h
  8926. * src/Makefile.am
  8927. * src/TransferEncoding.h: Removed
  8928. * test/ChunkedDecoderTest.cc
  8929. * test/ChunkedEncodingTest.cc: Removed
  8930. * test/HttpResponseTest.cc
  8931. * test/Makefile.am
  8932. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Use append instead of insert.
  8934. * src/GZipDecoder.cc
  8935. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. Updated doc
  8937. * src/Decoder.h
  8938. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. Updated usage text for -s option.
  8940. * src/usage_text.h
  8941. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8943. * src/Request.cc
  8944. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Cleaned up configure.ac.
  8946. * configure.ac
  8947. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8949. AC_ARG_ENABLE.
  8950. * configure.ac
  8951. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8952. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8953. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8954. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8955. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8956. fly and writes decoded data to a local disk.
  8957. * README
  8958. * README.html
  8959. * configure.ac
  8960. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8961. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8962. * m4/libz.m4
  8963. * src/Decoder.h
  8964. * src/DownloadCommand.cc
  8965. * src/DownloadCommand.h
  8966. * src/Exception.h
  8967. * src/GZipDecoder.cc
  8968. * src/GZipDecoder.h
  8969. * src/HttpHeader.cc
  8970. * src/HttpHeader.h
  8971. * src/HttpRequest.cc
  8972. * src/HttpRequest.h
  8973. * src/HttpResponse.cc
  8974. * src/HttpResponse.h
  8975. * src/HttpResponseCommand.cc
  8976. * src/Makefile.am
  8977. * test/GZipDecoderTest.cc
  8978. * test/HttpRequestTest.cc
  8979. * test/HttpResponseTest.cc
  8980. * test/Makefile.am
  8981. * test/Makefile.in
  8982. * test/gzip_decode_test.gz
  8983. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8984. Clarified usage of -j option.
  8985. * src/usage_text.h
  8986. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8987. Disabled getting size from the response of RETR.
  8988. If SIZE command failed, then disable resuming and segmented downloading.
  8989. * src/FtpConnection.cc
  8990. * src/FtpConnection.h
  8991. * src/FtpNegotiationCommand.cc
  8992. * src/FtpNegotiationCommand.h
  8993. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8994. Use digits to find first byte of file size, which makes the intention
  8995. of the code clearer.
  8996. * src/FtpConnection.cc
  8997. Don't call validateTotalLength() when size is 0.
  8998. * src/FtpNegotiationCommand.cc
  8999. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9000. Updated po files.
  9001. * po/aria2c.pot
  9002. * po/*.gmo
  9003. * po/*.po
  9004. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9005. Clarified usage text for --split option.
  9006. * src/usage_text.h
  9007. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. Bump up version number to 0.15.0dev. "dev" means "development"
  9009. version, which means I started the development of the next release!
  9010. * src/configure.ac
  9011. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9012. If FTP server returns negative response with REST raw command and
  9013. requested range is not 0, throw exception. If requested range is 0,
  9014. continue download a file from 0 byte.
  9015. * src/FtpNegotiationCommand.cc
  9016. * src/FtpNegotiationCommand.h
  9017. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9018. Supported FTP server which don't recognize SIZE raw command.
  9019. If SIZE raw command is failed, aria2 will try to get file size
  9020. from the response of RETR raw command. If both attempts are failed,
  9021. then resuming and segmented downloading are disabled.
  9022. * src/FtpConnection.cc
  9023. * src/FtpConnection.h
  9024. * src/FtpNegotiationCommand.cc
  9025. * src/FtpNegotiationCommand.h
  9026. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9027. * Release 0.14.0+1
  9028. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9029. Bump up version number to 0.14.0+1
  9030. * src/configure.ac
  9031. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Fixed the code that refers static member variable from non-static
  9033. context.
  9034. * src/DefaultPeerStorage.cc
  9035. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9036. * Release 0.14.0
  9037. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Added build test script
  9039. * build_test.sh
  9040. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Updated ja.po
  9042. * src/ja.po
  9043. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Bump up version number to 0.14.0
  9045. * src/configure.ac
  9046. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Updated ja.po and fr.po. Great thanks for french translators and
  9048. Sebastien WILLEMIJNS.
  9049. * po/fr.po
  9050. * po/ja.po
  9051. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9052. Added configure option to enable/disable epoll support.
  9053. * configure.ac
  9054. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9055. Updated man page.
  9056. * doc/aria2c.1.txt
  9057. * doc/aria2c.1
  9058. * doc/aria2c.1.html
  9059. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. Added missing default value '5' to the usage of --split option.
  9061. * src/HelpItemFactory.cc
  9062. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. Filled up pieces based on the number of missing blocks, rather than
  9064. simplay the number of piece * block length.
  9065. * src/BtRequestFactory.h
  9066. * src/DefaultBtInteractive.cc
  9067. * src/DefaultBtInteractive.h
  9068. * src/DefaultBtRequestFactory.cc
  9069. * src/DefaultBtRequestFactory.h
  9070. * src/Piece.cc
  9071. * src/Piece.h
  9072. * test/BitfieldManTest.cc
  9073. * test/DefaultBtRequestFactoryTest.cc
  9074. * test/MockBtRequestFactory.h
  9075. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. Made _epEvents a member variable.
  9077. * src/DownloadEngine.cc
  9078. * src/DownloadEngine.h
  9079. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9080. Cancel download if http redirect is bounded more than 20 times.
  9081. * src/AbstractCommand.cc
  9082. * src/HttpSkipResponseCommand.cc
  9083. * src/Request.cc
  9084. * src/Request.h
  9085. * test/RequestTest.cc
  9086. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. Fixed unhandled exception(removed keyword `new').
  9088. * src/SocketCore.cc (initEPOLL)
  9089. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Removed visit(const MetaEntry*)
  9091. * src/MetaEntryVisitor.h:
  9092. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9093. and made them virtual.
  9094. * src/BencodeVisitor.h
  9095. * src/BencodeVisitor.cc
  9096. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Updated po files.
  9098. * po/aria2c.pot
  9099. * po/*.po
  9100. * po/*.gmo
  9101. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9102. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9103. the number of socket to watch out.
  9104. * src/PeerInteractionCommand.cc
  9105. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. When there is not enough space in disk when writing a chunk of data,
  9107. aria2 now prints the message to the console to warn user and aborts
  9108. its download. Not all downloads are canceled because some downloads
  9109. may use another disk or partition. BUG#1640332
  9110. * src/AbstractDiskWriter.cc
  9111. * src/PeerAbstractCommand.cc
  9112. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9113. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9114. setHaltRequested(true) to cancel download.
  9115. * src/PeerInteractionCommand.h
  9116. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9118. socket from int to sock_t as sockets are unsigned in Windows.
  9119. For AsyncNameResolver, DownloadEngine, I did additional modification
  9120. for the portion of the code changed according to epoll support.
  9121. I defined sock_t in a2netcompat.h to use sock_t without including
  9122. SocketCore.h.
  9123. * src/AsyncNameResolver.cc
  9124. * src/AsyncNameResolver.h
  9125. * src/DownloadEngine.cc
  9126. * src/DownloadEngine.h
  9127. * src/SocketCore.cc
  9128. * src/SocketCore.h
  9129. * src/a2netcompat.h
  9130. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9132. changes in the patch were applied.
  9133. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9134. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9135. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9136. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9138. a2io.h and common.h were modified.
  9139. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9140. MinGW.
  9141. * src/common.h: Changed off_t to 64 bit in MinGW.
  9142. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9144. only a2netcompat.h is modified.
  9145. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9146. directives.
  9147. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9148. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9149. only gai_strerror.h is modified.
  9150. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9151. winsock errors in MinGW.
  9152. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9154. follow sources are applied.
  9155. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9156. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9157. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9158. I included locale.h from Platform.cc.
  9159. * src/main.cc: Moved common setup/teardown code to Platform class.
  9160. * test/AllTest.cc: Use Platform class.
  9161. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9162. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9163. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9164. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9165. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9166. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9168. aria2-0.13.2+1-mingw-2.patch.
  9169. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9170. systems which don't have termious.h. I moved the directive inside of
  9171. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9172. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9173. anyway.
  9174. * src/asctime_r.h
  9175. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9176. I added 2nd argument to the prototype declaration.
  9177. * src/StringFormat.cc: Get rid of vasprintf.
  9178. * src/getaddrinfo.h: Fixed constants.
  9179. * configure.ac: Added the check for asctime_r function.
  9180. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9181. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. Added writable test for Socket when the sending message is in progress.
  9183. Usually the sending message is piece message. Without wriable check,
  9184. upload latency is dropped to more than 1sec.
  9185. * src/PeerInteractionCommand.cc
  9186. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9187. Create only requested files and files which shares a piece with
  9188. requested file in multi-torrent downloads. Directory structures are
  9189. also created in the same rule.
  9190. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9191. DiskWriterEntry as in the previous implementation.
  9192. * src/MultiDiskWriter.cc
  9193. * src/MultiFileAllocationIterator.cc
  9194. * src/MultiFileAllocationIterator.h
  9195. * test/MultiFileAllocationIteratorTest.cc
  9196. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Commented out -lprofiler
  9198. * src/Makefile.am
  9199. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Bump up version number to 0.14.0b.
  9201. * src/configure.ac
  9202. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Actively establish connection to peers in seeding, when peer cache
  9204. is not full and max upload speed limit is not reached.
  9205. * src/ActivePeerConnectionCommand.cc
  9206. * src/ActivePeerConnectionCommand.h
  9207. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9208. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9209. to make room more fleshy, recently found peers.
  9210. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9211. it.
  9212. * src/DefaultPeerStorage.cc
  9213. * test/DefaultPeerStorageTest.cc
  9214. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Returns cached data only when the previous receiveHandshake() is called
  9216. with peek = true.
  9217. * src/PeerConnection.cc (receiveHandshake)
  9218. * src/PeerConnection.h (receiveHandshake)
  9219. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Changed default value of -s option from 1 to 5.
  9221. Also max value of -s option is changed from 5 to 16.
  9222. * src/HelpItemFactory.cc
  9223. * src/OptionHandlerFactory.cc
  9224. * src/option_processing.cc
  9225. * src/usage_text.h
  9226. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Changed -s options behavior. Now it means the number of connections
  9228. made simultaneously in each http/ftp download.
  9229. If 1 URL is specified, the behavior is the same with old implementation.
  9230. If -s N is given and more than N URLs are specified, first N URLs are
  9231. used and remaining URLs are used for backup. If less than N URLs are
  9232. specified, some of URLs are used more than once so that totally N
  9233. connections are made simultaneously.
  9234. * src/main.cc
  9235. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9236. Included missing iosfwd or ostream header.
  9237. * src/RequestGroupMan.cc
  9238. * src/TaggedItem.cc
  9239. * src/TaggedItem.h
  9240. * src/Util.cc
  9241. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9243. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9244. * src/HttpConnection.cc: Included missing sstream.
  9245. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. Added --bt-max-open-files option.
  9247. * src/DefaultPieceStorage.cc
  9248. * src/HelpItemFactory.cc
  9249. * src/MultiDiskAdaptor.cc
  9250. * src/MultiDiskAdaptor.h
  9251. * src/OptionHandlerFactory.cc
  9252. * src/option_processing.cc
  9253. * src/prefs.cc
  9254. * src/prefs.h
  9255. * src/usage_text.h
  9256. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Fixed the bug that aria2 aborts when a path to a directory is given
  9258. in command-line.
  9259. * src/ProtocolDetector.cc
  9260. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9261. Limited the number files opened in each BitTorrent download. The default
  9262. value is 100. The option to change this value will be added.
  9263. * src/MultiDiskAdaptor.cc
  9264. * src/MultiDiskAdaptor.h
  9265. * src/MultiFileAllocationIterator.cc
  9266. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9267. Fixed the bug that HTTP downloads don't start with old libraries.
  9268. * src/HttpHeaderProcessor.cc
  9269. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9270. Use empty() instead of size() > 0.
  9271. * src/HttpConnection.cc
  9272. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9273. Drop connection if the incoming peer ID is the same with localhost's
  9274. one. The previous implementation drops connection when incoming peer's
  9275. IP address is the same with localhost's one.
  9276. * src/PeerListenCommand.cc
  9277. * src/DefaultBtInteractive.cc
  9278. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9279. Returns cached data without checking whether socket is readable
  9280. if the cache is available.
  9281. * src/PeerConnection.cc (receiveHandshake)
  9282. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9283. Included stdint.h
  9284. * src/common.h
  9285. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9286. Removed duplicate HAVE_GETTIMEOFDAY
  9287. * src/Makefile.am
  9288. * src/Makefile.in
  9289. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Use interval as a minInterval when minInterval is not supplied.
  9291. * src/DefaultBtAnnounce.cc
  9292. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9294. attempt is failed, then 2nd attempt get kicked out more quickly.
  9295. And it is now static const member of DefaultBtAnnounce.
  9296. * src/DefaultBtAnnounce.h
  9297. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9298. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9299. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9300. * src/ActivePeerConnectionCommand.cc
  9301. * src/BtConstants.h
  9302. * src/BtRuntime.h
  9303. * src/DHTGetPeersCommand.cc
  9304. * src/DefaultBtAnnounce.cc
  9305. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9306. BtRuntime::MAX_PEERS.
  9307. * src/DefaultPeerStorage.h
  9308. * src/InitiatorMSEHandshakeCommand.cc
  9309. * src/PeerInitiateConnectionCommand.cc
  9310. * src/PeerInteractionCommand.cc
  9311. * src/PeerReceiveHandshakeCommand.cc
  9312. * src/TrackerWatcherCommand.cc
  9313. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Always Connect to _numNewConnection
  9315. * src/ActivePeerConnectionCommand.cc
  9316. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9317. Made `begin' unsigned int.
  9318. * src/GrowSegment.h
  9319. * src/Piece.cc
  9320. * src/Piece.h
  9321. * src/PiecedSegment.cc
  9322. * src/PiecedSegment.h
  9323. * src/Segment.h
  9324. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Calculate piece hash when data is arrived if the data is arrived in
  9326. order. This removes additional read operation for hash calculation.
  9327. If the data is arrived in out of order, the hash is calucated when the
  9328. piece is completed. This is the same behavior as the old implementation.
  9329. * src/BtPieceMessage.cc
  9330. * src/DefaultBtProgressInfoFile.cc
  9331. * src/DefaultPieceStorage.cc
  9332. * src/DownloadCommand.cc
  9333. * src/DownloadCommand.h
  9334. * src/DownloadEngine.cc
  9335. * src/GrowSegment.cc
  9336. * src/GrowSegment.h
  9337. * src/Piece.cc
  9338. * src/Piece.h
  9339. * src/PiecedSegment.cc
  9340. * src/PiecedSegment.h
  9341. * src/Segment.h
  9342. * test/PieceTest.cc
  9343. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Try to keep the ordering of outgoing piece message.
  9345. * src/DefaultBtMessageDispatcher.cc
  9346. (DefaultBtMessageDispatcher::sendMessages)
  9347. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. Fixed busy loop when error/hup epoll events occur.
  9349. * src/AbstractCommand.cc
  9350. * src/PeerAbstractCommand.cc
  9351. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9352. Added --bt-request-peer-speed-limit option, which was a constant
  9353. SLOW_SPEED_THRESHOLD.
  9354. * src/ActivePeerConnectionCommand.cc
  9355. * src/ActivePeerConnectionCommand.h
  9356. * src/BtConstants.h
  9357. * src/HelpItemFactory.cc
  9358. * src/OptionHandlerFactory.cc
  9359. * src/PeerReceiveHandshakeCommand.cc
  9360. * src/option_processing.cc
  9361. * src/prefs.cc
  9362. * src/prefs.h
  9363. * src/usage_text.h
  9364. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Removed repeated call of getTopDirPath(). Instead, call it once and
  9366. cache the result.
  9367. * src/MultiDiskAdaptor.cc
  9368. * src/MultiDiskAdaptor.h
  9369. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9370. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. Fixed compile error on debian etch.
  9372. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9373. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9374. it is undefined.
  9375. * src/Util.cc (ULLONG_MAX)
  9376. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9377. Added epoll support. Use epoll if it is available. If not, use select.
  9378. When async dns is enabled in compile time, epoll support is enabled
  9379. only when aria2 is built with c-ares. This condition statement is
  9380. defined in a2io.h.
  9381. Currently aria2 supports both c-ares and ares, but ares is maintained
  9382. for quite a while and debian already has c-ares package, ares support
  9383. will be dropped in the future version.
  9384. * configure.ac
  9385. * src/AbstractCommand.cc
  9386. * src/AsyncNameResolver.cc
  9387. * src/AsyncNameResolver.h
  9388. * src/Command.cc
  9389. * src/Command.h
  9390. * src/DownloadEngine.cc
  9391. * src/DownloadEngine.h
  9392. * src/PeerAbstractCommand.cc
  9393. * src/SocketCore.cc
  9394. * src/SocketCore.h
  9395. * src/a2io.h
  9396. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9397. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9398. directive.
  9399. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9400. Do not do write operation to /dev/null file.
  9401. * src/LogFactory.cc
  9402. * src/SimpleLogger.cc
  9403. Replaced vasprintf with vsnprintf
  9404. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9405. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9406. * src/BtRequestMessage.cc
  9407. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9408. for segmentation fault caused by previous commit.
  9409. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Reduced the usage of gettimeofday().
  9411. * src/DefaultBtMessageDispatcher.cc
  9412. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9413. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9414. * src/RequestSlot.cc
  9415. * src/RequestSlot.h
  9416. (RequestSlot::isTimeout)
  9417. Made RequestSlot have a reference to Piece object to avoid find
  9418. Piece repeatedly.
  9419. * src/DefaultBtMessageDispatcher.cc
  9420. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9421. * src/RequestSlot.cc
  9422. * src/RequestSlot.h
  9423. (RequestSlot::getPiece)
  9424. * test/DefaultBtMessageDispatcherTest.cc
  9425. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. * src/TimeA2.cc
  9427. * src/TimeA2.h
  9428. (Time::difference): New function.
  9429. (Time::elapsed): Done optimization.
  9430. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9431. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9432. directive.
  9433. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9434. * src/option_processing.cc: Added missing `defined' keyword to #if
  9435. directive.
  9436. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. Bump up version number to 0.13.2+1
  9438. * src/configure.ac
  9439. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9440. Refactored broken outstanding piece handling.
  9441. * src/DefaultPieceStorage.cc
  9442. * src/DefaultPieceStorage.h
  9443. * src/Piece.cc
  9444. * src/Piece.h
  9445. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9447. name collision of static variable and predefined macro.
  9448. * src/BtContext.cc
  9449. * src/BtContext.h
  9450. * src/CookieBoxFactory.cc
  9451. * src/CookieBoxFactory.h
  9452. * src/CookieParser.cc
  9453. * src/CookieParser.h
  9454. * src/DefaultBtContext.cc
  9455. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9456. * src/RequestGroup.cc
  9457. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9458. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9459. * Release 0.13.2
  9460. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9462. * po/fr.po
  9463. * po/ja.po
  9464. * po/aria2c.pot
  9465. * po/*.po
  9466. * po/*.gmo
  9467. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9468. Bump up version number to 0.13.2
  9469. * src/configure.ac
  9470. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. Refactord.
  9472. * src/RequestGroupMan.cc
  9473. (removeStoppedGroup)
  9474. (fillRequestGroupFromReserver)
  9475. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Fixed compile error on Ubuntu.
  9477. * src/BtPieceMessage.cc
  9478. * src/MessageDigestHelper.cc
  9479. * src/Util.cc
  9480. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Fixed compile error when configured with --disable-bittorrent
  9482. * test/DownloadHandlerFactoryTest.cc
  9483. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9484. Done make update-po
  9485. * po/aria2c.pot
  9486. * po/*.po
  9487. * po/*.gmo
  9488. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. Bump up version number to 0.13.2rc.
  9490. * src/configure.ac
  9491. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9492. Made option name bold. Updated SYNOPSIS to make it more readable.
  9493. * doc/aria2c.1.txt
  9494. * doc/aria2c.1
  9495. * doc/aria2c.1.html
  9496. * src/version_usage.cc
  9497. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. Refactored. Use std::string instead of size and char*.
  9499. * Data.cc
  9500. * Data.h
  9501. * test/Data.cc
  9502. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9503. Added trimSelf(). Rewritten trim() to use trimSelf().
  9504. * Util.cc
  9505. * Util.h
  9506. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9508. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Fixed compile error when configured with --disable-metalink.
  9510. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9511. * test/FeatureConfigTest.cc
  9512. * test/DownloadHandlerFactoryTest.cc
  9513. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. Fixed compile error when configured with --without-gnutls
  9515. --without-openssl
  9516. * src/main.cc
  9517. * test/DefaultBtProgressInfoFileTest.cc
  9518. * test/SegmentManTest.cc
  9519. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Fixed compile error with OpenSSL.
  9521. * src/IteratableChunkChecksumValidator.cc
  9522. * src/LibsslDHKeyExchange.h
  9523. * src/MessageDigestHelper.cc
  9524. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9525. Revert the default value of --max-concurrent-downloads to 5.
  9526. Revert the default value of --metalink-servers to 5.
  9527. Man pages was also updated.
  9528. * src/option_processing.cc
  9529. * doc/aria2c.1.txt
  9530. * doc/aria2c.1.html
  9531. * doc/aria2c.1
  9532. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. Returns const reference:
  9534. DownloadContext::getPieceHash, DownloadContext::getName,
  9535. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9536. BtContext::getInfoHashAsString,
  9537. * src/BtContext.h
  9538. * src/DefaultBtContext.cc
  9539. * src/DefaultBtContext.h
  9540. * src/DownloadContext.h
  9541. * src/SingleFileDownloadContext.h
  9542. * test/MockBtContext.h
  9543. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9544. * src/RequestGroup.h (getDir): Removed.
  9545. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. Returns const reference. The internal urlencode function was optimized
  9547. a little bit.
  9548. * src/Request.cc
  9549. * src/Request.h
  9550. * src/HttpRequest.cc
  9551. * src/HttpRequest.h
  9552. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9553. Defined option name and possible values as std::string to reduce
  9554. temporary string object creation in runtime.
  9555. * src/HelpItemFactory.cc
  9556. * src/LogFactory.cc
  9557. * src/Option.cc
  9558. * src/OptionHandlerFactory.cc
  9559. * src/option_processing.cc
  9560. * src/prefs.cc
  9561. * src/prefs.h
  9562. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. Return const reference.
  9564. * src/DownloadHandlerConstants.cc
  9565. * src/DownloadHandlerConstants.h
  9566. (getMetalinkExtensions)
  9567. (getMetalinkContentTypes)
  9568. (getBtExtensions)
  9569. (getBtContentTypes)
  9570. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9571. * src/HttpHeader.cc (get): Rewritten.
  9572. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Make HttpHeader::getFirst(...) return const reference.
  9574. * src/HttpHeader.cc
  9575. * src/HttpHeader.h
  9576. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9577. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9578. it with V_TRUE.
  9579. * src/DefaultPieceStorage.cc
  9580. * src/DownloadCommand.cc
  9581. * src/FtpNegotiationCommand.cc
  9582. * src/HttpRequest.cc
  9583. * src/InitiateConnectionCommand.cc
  9584. * src/RequestGroup.cc
  9585. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. Made Option::get(...) return const reference of std::string.
  9587. * src/Option.cc
  9588. * src/Option.h
  9589. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9590. Replaced std:copy with insert.
  9591. * src/DefaultBtMessageDispatcher.cc
  9592. * src/DefaultPieceStorage.cc
  9593. * src/DownloadEngineFactory.cc
  9594. * src/RequestGroup.cc
  9595. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Included SocketCore.h to fix compiler warning.
  9597. * src/InitiateConnectionCommand.cc
  9598. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. Put piece selection strategy algorithm to RarestPieceSelector class,
  9600. Added a switch to choose whether randomized selection so that unit
  9601. tests emit same results in, possibly, win32.
  9602. * src/DefaultPieceStorage.cc
  9603. * src/DefaultPieceStorage.h
  9604. * src/RarestPieceSelector.cc
  9605. * src/RarestPieceSelector.h
  9606. * test/DefaultPieceStorageTest.cc
  9607. * test/RarestPieceSelectorTest.cc
  9608. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9609. Don't pool connection if HTTP proxy is enabled.
  9610. * src/FtpFinishDownloadCommand.cc
  9611. * src/FtpNegotiationCommand.cc
  9612. * src/HttpSkipResponseCommand.cc
  9613. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9614. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9615. * src/AbstractCommand.cc
  9616. * src/AbstractCommand.h
  9617. * src/ActivePeerConnectionCommand.cc
  9618. * src/FtpInitiateConnectionCommand.cc
  9619. * src/HttpInitiateConnectionCommand.cc
  9620. * src/InitiateConnectionCommandFactory.cc
  9621. * src/PeerAbstractCommand.cc
  9622. * src/PeerAbstractCommand.h
  9623. * src/PeerInitiateConnectionCommand.cc
  9624. * src/TrackerWatcherCommand.cc
  9625. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9626. Sort RequestSlot in ascending order and manipulate them using
  9627. lower_bound.
  9628. * src/DefaultBtMessageDispatcher.cc
  9629. * src/DefaultBtMessageDispatcher.h
  9630. (getMessageQueue): Added const qualifier.
  9631. (getRequestSlots): Added const qualifier.
  9632. (sendMessages): Use empty() instead of size().
  9633. (doCancelSendingPieceAction): Use HandleEvent object.
  9634. (doAbortOutstandingRequestAction): Rewritten.
  9635. (doChokedAction): Rewritten.
  9636. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9637. (isOutstandingRequest): Rewritten.
  9638. (getOutstandingRequest): Rewritten.
  9639. (removeOutstandingRequest): Rewritten.
  9640. (addOutstandingRequest): Rewritten.
  9641. * src/RequestSlot.cc
  9642. * src/RequestSlot.h
  9643. (operator=): Rewritten.
  9644. (operator!=): New function.
  9645. (operator<): New function.
  9646. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9647. * src/DefaultBtRequestFactory.cc
  9648. (doChokedAction): Rewritten.
  9649. (removeCompletedPiece): Rewritten.
  9650. (removeTargetPiece): Rewritten.
  9651. (createRequestMessages): Added the debug log.
  9652. (createRequestMessagesOnEndGame: Added the debug log.
  9653. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Added the debug log message.
  9655. * src/BtPieceMessage.cc (doReceivedAction)
  9656. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9658. used lower_bound to process them rather than linear search.
  9659. * src/DHTPeerAnnounceStorage.cc
  9660. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9661. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9662. peer has at least one completed piece.
  9663. * src/Peer.cc
  9664. * src/Peer.h
  9665. * src/PeerInteractionCommand.cc
  9666. * src/PeerSessionResource.cc
  9667. * src/PeerSessionResource.h
  9668. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9669. Removed unnecessary sorting
  9670. * src/DefaultPieceStorage (DefaultPieceStorage)
  9671. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9672. Rewritten the portion of the code that mangaes allowed fast indexes.
  9673. * src/PeerSessionResource.cc
  9674. * src/PeerSessionResource.h
  9675. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9676. Removed the invalid string including '\r' from ru.po and
  9677. did make update-po.
  9678. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9679. Added --log-level and --summary-interval to man page.
  9680. * doc/aria2c.1.txt
  9681. * doc/aria2c.1.html
  9682. * doc/aria2c.1
  9683. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Added --log-level option to specify log level. Log messages under
  9685. the specified level are not output. Default value is `debug'.
  9686. * src/HelpItemFactory.cc
  9687. * src/LogFactory.cc
  9688. * src/LogFactory.h
  9689. * src/Logger.h
  9690. * src/OptionHandlerFactory.cc
  9691. * src/SimpleLogger.cc
  9692. * src/SimpleLogger.h
  9693. * src/main.cc
  9694. * src/option_processing.cc
  9695. * src/prefs.h
  9696. * src/usage_text.h
  9697. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Print download progress summary of all parallel downloads in specified
  9699. interval, default 60 secs. While aria2 could download several files
  9700. in parallel (see -j option), it displayed just first download progress,
  9701. and the other downloads are hidden from the users. This new feature
  9702. prints all downloads currently in-progress to the console so that you
  9703. can check the status of all downloads. The interval can be adjusted
  9704. by --summary-interval option.
  9705. The progress readout is now cut so that all fits in the one line of
  9706. console.
  9707. * src/ConsoleStatCalc.cc
  9708. * src/ConsoleStatCalc.h
  9709. * src/HelpItemFactory.cc
  9710. * src/OptionHandlerFactory.cc
  9711. * src/RequestGroupMan.cc
  9712. * src/RequestGroupMan.h
  9713. * src/main.cc
  9714. * src/option_processing.cc
  9715. * src/prefs.h
  9716. * src/usage_text.h
  9717. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9719. * src/DownloadEngine.cc (DownloadEngine)
  9720. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9722. defined.
  9723. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9724. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9725. Use erase+lower_bound+insert instead of sort.
  9726. * src/DefaultPieceStorage.cc (addPieceStats)
  9727. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9728. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9729. * src/A2STR.cc
  9730. * src/A2STR.h
  9731. * src/OptionParser.cc (parse)
  9732. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. Defined fake filename `[tracker.announce]' as static const std::string.
  9734. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9735. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. Defined default filename `index.html' as static const std::string
  9737. * src/SingleFileDownloadContext.cc
  9738. * src/SingleFileDownloadContext.h
  9739. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9740. Defined "[MEMORY]" as static const std::string.
  9741. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9742. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Defined control file's version number as static const std::string.
  9744. * src/DefaultBtProgressInfoFile.cc
  9745. * src/DefaultBtProgressInfoFile.h
  9746. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Use Request::METHOD_GET
  9748. * src/RequestGroup.cc (createNextCommandWithAdj)
  9749. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Defined "OK", "ERR", "INPR" as static const std::string
  9751. * src/RequestGroupMan.cc (showDownloadResults)
  9752. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9753. Defined default client used in extended handshake as static const
  9754. std::string
  9755. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9756. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9758. * src/HttpConnection.cc (eraseConfidentialInfo)
  9759. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Defined default ftp user and password as static const std::string
  9761. * src/AuthConfigFactory.cc
  9762. * src/AuthConfigFactory.h
  9763. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9764. Defined strings used in netrc as static const std::string
  9765. * src/Netrc.cc
  9766. * src/Netrc.h
  9767. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9768. Defined HTTP status as static const std::string
  9769. * src/AbstractProxyResponseCommand.cc
  9770. * src/HttpHeader.cc
  9771. * src/HttpHeader.h
  9772. * src/HttpResponse.cc
  9773. * src/HttpResponseCommand.cc
  9774. * src/HttpSkipResponseCommand.cc
  9775. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9776. Defined "\r\n", "A", "I" as static const std::string
  9777. * src/A2STR.cc
  9778. * src/A2STR.h
  9779. * src/FtpConnection.cc
  9780. * src/FtpConnection.h
  9781. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9782. Added COLON_C(".") and used it in Request::parseUrl()
  9783. * src/A2STR.cc
  9784. * src/A2STR.h
  9785. * src/Request.cc (parseUrl)
  9786. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9787. Changed the type of padName from `const std::string&' to `const char*'.
  9788. * src/MSEHandshake.cc (verifyPadLength)
  9789. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Defined "sha1" as static const std::string.
  9791. * src/MetalinkParserController.cc
  9792. * src/MetalinkParserController.h
  9793. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9794. Defined message digest algorithm name as static const std::string
  9795. * src/DHTTokenTracker.cc
  9796. * src/DHTUtil.cc
  9797. * src/DefaultBtContext.cc
  9798. * src/MSEHandshake.cc
  9799. * src/MessageDigestHelper.cc
  9800. * src/Peer.cc
  9801. * src/messageDigest.cc
  9802. * src/messageDigest.h
  9803. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9804. Made string literals used in SAX parser static const std::string.
  9805. * src/FileMetalinkParserState.cc
  9806. * src/FileMetalinkParserState.h
  9807. * src/FilesMetalinkParserState.cc
  9808. * src/FilesMetalinkParserState.h
  9809. * src/InitialMetalinkParserState.cc
  9810. * src/InitialMetalinkParserState.h
  9811. * src/MetalinkMetalinkParserState.cc
  9812. * src/MetalinkMetalinkParserState.h
  9813. * src/PiecesMetalinkParserState.cc
  9814. * src/PiecesMetalinkParserState.h
  9815. * src/ResourcesMetalinkParserState.cc
  9816. * src/ResourcesMetalinkParserState.h
  9817. * src/VerificationMetalinkParserState.cc
  9818. * src/VerificationMetalinkParserState.h
  9819. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9820. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9821. * src/A2STR.cc
  9822. * src/A2STR.h
  9823. * src/File.cc
  9824. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. Defined static const std::string IP("ip"), PORT("port") and use them
  9826. instead of string literals.
  9827. * src/DefaultPeerListProcessor.cc
  9828. * src/DefaultPeerListProcessor.h
  9829. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9830. Made string literals for torrent file processing static const
  9831. std::string.
  9832. * src/BtContext.cc
  9833. * src/BtContext.h
  9834. * src/DefaultBtContext.cc
  9835. * src/DefaultBtContext.h
  9836. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9837. Made string literal for tracker response static const std::string
  9838. * src/BtAnnounce.cc
  9839. * src/BtAnnounce.h
  9840. * src/DefaultBtAnnounce.cc
  9841. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9842. Use DHTMessage::T instead of "t".
  9843. * src/DHTMessageTracker.cc (messageArrived)
  9844. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Made keyName static const. Made trimmed charset static const
  9846. std::string.
  9847. * src/Util.cc (getContentDispositionFilename)
  9848. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9849. Made USER_AGENT const. Made "/" static const std::string.
  9850. * src/A2STR.cc
  9851. * src/A2STR.h
  9852. * src/HttpRequest.cc
  9853. * src/HttpRequest.h
  9854. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9855. Made string listeral to static const std::string:
  9856. "Content-Range", "Content-Length"
  9857. * src/HttpHeader.cc
  9858. * src/HttpHeader.h
  9859. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9860. Made string listeral to static const std::string.
  9861. * src/HttpConnection.cc
  9862. * src/HttpHeader.cc
  9863. * src/HttpHeader.h
  9864. * src/HttpResponse.cc
  9865. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Made string listeral to static const std::string.
  9867. * src/A2STR.cc
  9868. * src/A2STR.h
  9869. * src/SimpleLogger.cc
  9870. * src/SimpleLogger.h
  9871. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9872. Made string literal to static const std::string.
  9873. Rewritten CookieParser::setField.
  9874. * src/A2STR.cc
  9875. * src/A2STR.h
  9876. * src/CookieBoxFactory.cc
  9877. * src/CookieBoxFactory.h
  9878. * src/CookieParser.cc
  9879. * src/CookieParser.h
  9880. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9881. Made string literal to static const std::string
  9882. * src/DHTAbstractMessage.cc
  9883. * src/DHTAnnouncePeerMessage.cc
  9884. * src/DHTAnnouncePeerMessage.h
  9885. * src/DHTAnnouncePeerReplyMessage.cc
  9886. * src/DHTAnnouncePeerReplyMessage.h
  9887. * src/DHTFindNodeMessage.cc
  9888. * src/DHTFindNodeMessage.h
  9889. * src/DHTFindNodeReplyMessage.cc
  9890. * src/DHTFindNodeReplyMessage.h
  9891. * src/DHTGetPeersMessage.cc
  9892. * src/DHTGetPeersMessage.h
  9893. * src/DHTGetPeersReplyMessage.cc
  9894. * src/DHTGetPeersReplyMessage.h
  9895. * src/DHTMessage.cc
  9896. * src/DHTMessage.h
  9897. * src/DHTMessageFactoryImpl.cc
  9898. * src/DHTMessageReceiver.cc
  9899. * src/DHTPingMessage.cc
  9900. * src/DHTPingMessage.h
  9901. * src/DHTPingReplyMessage.cc
  9902. * src/DHTPingReplyMessage.h
  9903. * src/DHTQueryMessage.cc
  9904. * src/DHTQueryMessage.h
  9905. * src/DHTResponseMessage.cc
  9906. * src/DHTResponseMessage.h
  9907. * src/DHTUnknownMessage.cc
  9908. * src/DHTUnknownMessage.h
  9909. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9910. Made string literal to static const std::string
  9911. * src/BtChokeMessage.cc (toString)
  9912. * src/BtHaveAllMessage.cc (toString)
  9913. * src/BtHaveNoneMessage.cc (toString)
  9914. * src/BtInterestedMessage.cc (toString)
  9915. * src/BtNotInterestedMessage.cc (toString)
  9916. * src/BtUnchokeMessage.cc (toString)
  9917. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9918. Replaced "" with static const variable A2STR::NIL.
  9919. Replaced string comparison against "" with std::string::empty().
  9920. Added PROTO_* to Request class and use them as a protocol string
  9921. constant.
  9922. Made "started", "stopped", "completed" static const variable in
  9923. AnnounceList class.
  9924. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9925. Updated translations. Great thanks to translators.
  9926. * po/ca.po
  9927. * po/de.po
  9928. * po/fr.po
  9929. * po/it.po
  9930. * po/ja.po
  9931. * po/ru.po
  9932. * po/zh_CN.po
  9933. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Updated man page; categorized options and fixed typo.
  9935. * doc/aria2c.1.txt
  9936. * doc/aria2c.1.html
  9937. * doc/aria2c.1
  9938. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9939. Removed const ref
  9940. * src/MetalinkEntry.cc (AddProtocolPreference)
  9941. * src/RequestGroup.cc (FindServerHostByHostname)
  9942. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9943. Rewritten Accept-Features handling.
  9944. * src/HttpRequestCommand.cc (createHttpRequest)
  9945. * src/a2functional.h
  9946. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9947. Changed method signature:
  9948. DHTAbstractNodeLookupTask::toEntries
  9949. * src/DHTAbstractNodeLookupTask.cc
  9950. * src/DHTAbstractNodeLookupTask.h
  9951. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9952. Changed method signature:
  9953. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9954. * src/BtContext.h
  9955. * src/DefaultBtContext.cc
  9956. * src/DefaultBtContext.h
  9957. * src/DefaultBtInteractive.cc
  9958. * test/DefaultBtContextTest.cc
  9959. * test/MockBtContext.h
  9960. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9961. Changed method signature:
  9962. MultiFileAllocationIterator::makeDiskWriterEntries
  9963. * src/MultiFileAllocationIterator.cc
  9964. * src/MultiFileAllocationIterator.h
  9965. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9966. Changed method sinature:
  9967. MetalinkEntry::toFileEntry,
  9968. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9969. Metalinker::queryEntry
  9970. * src/Metalink2RequestGroup.cc
  9971. * src/MetalinkEntry.cc
  9972. * src/MetalinkEntry.h
  9973. * src/MetalinkHelper.cc
  9974. * src/MetalinkHelper.h
  9975. * src/Metalinker.cc
  9976. * src/Metalinker.h
  9977. * src/main.cc
  9978. * test/MetalinkHelperTest.cc
  9979. * test/MetalinkerTest.cc
  9980. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9981. Changed method sinature:
  9982. RequestGroup::getURIs
  9983. * src/RequestGroup.cc
  9984. * src/RequestGroup.h
  9985. * test/Metalink2RequestGroupTest.cc
  9986. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9987. Changed method signature:
  9988. PeerListProcessor::extractPeer
  9989. * src/CompactPeerListProcessor.cc
  9990. * src/CompactPeerListProcessor.h
  9991. * src/DefaultBtAnnounce.cc
  9992. * src/DefaultPeerListProcessor.cc
  9993. * src/DefaultPeerListProcessor.h
  9994. * src/DelegatingPeerListProcessor.cc
  9995. * src/DelegatingPeerListProcessor.h
  9996. * src/PeerListProcessor.h
  9997. * src/UTPexExtensionMessage.cc
  9998. * test/DefaultPeerListProcessorTest.cc
  9999. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10000. Changed method signature:
  10001. BtRequestFactory::createRequestMessages,
  10002. BtRequestFactory::createRequestMessagesOnEndGame
  10003. * src/BtRequestFactory.h
  10004. * src/DefaultBtInteractive.cc
  10005. * src/DefaultBtRequestFactory.cc
  10006. * src/DefaultBtRequestFactory.h
  10007. * test/DefaultBtRequestFactoryTest.cc
  10008. * test/MockBtRequestFactory.h
  10009. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. Changed method signature:
  10011. PieceStorage::getInFlightPieces
  10012. * src/DefaultBtProgressInfoFile.cc
  10013. * src/DefaultPieceStorage.cc
  10014. * src/DefaultPieceStorage.h
  10015. * src/PieceStorage.h
  10016. * src/UnknownLengthPieceStorage.cc
  10017. * src/UnknownLengthPieceStorage.h
  10018. * test/DefaultBtProgressInfoFileTest.cc
  10019. * test/MockPieceStorage.h
  10020. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10021. Changed method signature:
  10022. PostDownloadHandler::getNextRequestGroups
  10023. Metalink2RequestGroup::generate
  10024. RequestGroup::postDownloadProcessing
  10025. * src/BtPostDownloadHandler.cc
  10026. * src/BtPostDownloadHandler.h
  10027. * src/Metalink2RequestGroup.cc
  10028. * src/Metalink2RequestGroup.h
  10029. * src/MetalinkPostDownloadHandler.cc
  10030. * src/MetalinkPostDownloadHandler.h
  10031. * src/PostDownloadHandler.h
  10032. * src/RequestGroup.cc
  10033. * src/RequestGroup.h
  10034. * src/RequestGroupMan.cc
  10035. * src/main.cc
  10036. * test/BtPostDownloadHandlerTest.cc
  10037. * test/Metalink2RequestGroupTest.cc
  10038. * test/MetalinkPostDownloadHandlerTest.cc
  10039. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10040. Rewritten AccRequestGroup
  10041. * src/main.cc
  10042. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10043. Rewritten.
  10044. * src/TaggedItem.cc (toTagString)
  10045. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10046. Rewritten Accept-Features handling.
  10047. * src/HttpRequestCommand.cc (createHttpRequest)
  10048. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10049. Rewritten accept types handling.
  10050. * HttpRequest.cc (createRequest)
  10051. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Rewritten
  10053. * src/FeatureConfig.cc (featureSummary)
  10054. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10055. Changed method signature:
  10056. PeerStorage::getActivePeers
  10057. * src/DHTPeerAnnounceEntry.cc
  10058. * src/DefaultPeerStorage.cc
  10059. * src/DefaultPeerStorage.h
  10060. * src/PeerStorage.h
  10061. * test/DefaultPeerStorageTest.cc
  10062. * test/MockPeerStorage.h
  10063. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Changed method signature:
  10065. DHTPeerAnnounceStorage::getPeers,
  10066. DHTPeerAnnounceEntry::getPeers
  10067. * src/DHTGetPeersMessage.cc
  10068. * src/DHTPeerAnnounceEntry.cc
  10069. * src/DHTPeerAnnounceEntry.h
  10070. * src/DHTPeerAnnounceStorage.cc
  10071. * src/DHTPeerAnnounceStorage.h
  10072. * test/DHTAnnouncePeerMessageTest.cc
  10073. * test/DHTPeerAnnounceEntryTest.cc
  10074. * test/DHTPeerAnnounceStorageTest.cc
  10075. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10076. Changed method signature:
  10077. NameResolver::resolve
  10078. * src/DHTEntryPointNameResolveCommand.cc
  10079. * src/InitiateConnectionCommand.cc
  10080. * src/NameResolver.cc
  10081. * src/NameResolver.h
  10082. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10083. Changed method signature:
  10084. PieceStorage::getAdvertisedPieceIndexes
  10085. * src/DefaultBtInteractive.cc
  10086. * src/DefaultPieceStorage.cc
  10087. * src/DefaultPieceStorage.h
  10088. * src/PieceStorage.h
  10089. * src/UnknownLengthPieceStorage.h
  10090. * test/MockPieceStorage.h
  10091. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10092. Changed method signature:
  10093. SegmentMan::getInFlightSegment
  10094. * src/AbstractCommand.cc
  10095. * src/SegmentMan.cc
  10096. * src/SegmentMan.h
  10097. * test/SegmentManTest.cc
  10098. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10099. Changed method signature:
  10100. DHTAbstractNodeLookupTask::getNodesFromMessage
  10101. * src/DHTAbstractNodeLookupTask.cc
  10102. * src/DHTAbstractNodeLookupTask.h
  10103. * src/DHTNodeLookupTask.cc
  10104. * src/DHTNodeLookupTask.h
  10105. * src/DHTPeerLookupTask.cc
  10106. * src/DHTPeerLookupTask.h
  10107. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10109. * src/AbstractCommand.cc
  10110. * src/BtCheckIntegrityEntry.cc
  10111. * src/BtCheckIntegrityEntry.h
  10112. * src/BtFileAllocationEntry.cc
  10113. * src/BtFileAllocationEntry.h
  10114. * src/BtSetup.cc
  10115. * src/BtSetup.h
  10116. * src/CheckIntegrityCommand.cc
  10117. * src/CheckIntegrityEntry.h
  10118. * src/ChecksumCheckIntegrityEntry.cc
  10119. * src/ChecksumCheckIntegrityEntry.h
  10120. * src/DHTSetup.cc
  10121. * src/DHTSetup.h
  10122. * src/DownloadEngine.cc
  10123. * src/FileAllocationCommand.cc
  10124. * src/FileAllocationEntry.h
  10125. * src/RequestGroup.cc
  10126. * src/RequestGroup.h
  10127. * src/RequestGroupMan.cc
  10128. * src/RequestGroupMan.h
  10129. * src/StreamCheckIntegrityEntry.cc
  10130. * src/StreamCheckIntegrityEntry.h
  10131. * src/StreamFileAllocationEntry.cc
  10132. * src/StreamFileAllocationEntry.h
  10133. * src/TrackerWatcherCommand.cc
  10134. * src/a2functional.h
  10135. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10136. Changed method signature:
  10137. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10138. DHTBucket::getGoodNodes,
  10139. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10140. * src/BNode.cc
  10141. * src/BNode.h
  10142. * src/DHTAbstractNodeLookupTask.cc
  10143. * src/DHTAutoSaveCommand.cc
  10144. * src/DHTBucket.cc
  10145. * src/DHTBucket.h
  10146. * src/DHTBucketRefreshTask.cc
  10147. * src/DHTFindNodeMessage.cc
  10148. * src/DHTGetPeersMessage.cc
  10149. * src/DHTRoutingTable.cc
  10150. * src/DHTRoutingTable.h
  10151. * test/BNodeTest.cc
  10152. * test/DHTBucketTest.cc
  10153. * test/DHTRoutingTableTest.cc
  10154. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. In piece selection functions, Pass std::deque<...> by reference rather
  10156. than returning it.
  10157. * src/BitfieldMan.cc
  10158. * src/BitfieldMan.h
  10159. * src/DefaultBtRequestFactory.cc
  10160. * src/DefaultPieceStorage.cc
  10161. * src/Piece.cc
  10162. * src/Piece.h
  10163. * test/BitfieldManTest.cc
  10164. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10165. Implemented rarest piece first piece selection strategy.
  10166. * src/AbstractBtMessage.cc
  10167. * src/AbstractBtMessage.h
  10168. * src/BitfieldMan.cc
  10169. * src/BitfieldMan.h
  10170. * src/BtBitfieldMessage.cc
  10171. * src/BtHaveAllMessage.cc
  10172. * src/BtHaveMessage.cc
  10173. * src/DefaultPieceStorage.cc
  10174. * src/DefaultPieceStorage.h
  10175. * src/PeerInteractionCommand.cc
  10176. * src/PieceStorage.h
  10177. * src/UnknownLengthPieceStorage.h
  10178. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10179. Rewritten readData and writeData.
  10180. * src/MultiDiskAdaptor.cc
  10181. * src/MultiDiskAdaptor.h
  10182. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10183. Move \n out of the message "Usage: ...".
  10184. * src/version_usage.cc
  10185. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. Bump up version number to 0.13.2b.
  10187. * configure.ac
  10188. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10189. Added const qualifier to argument Exception& e.
  10190. * src/Logger.h
  10191. * src/SimpleLogger.cc
  10192. * src/SimpleLogger.h
  10193. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10194. Pool connection when CWD, SIZE command fails.
  10195. * src/FtpNegotiationCommand.cc
  10196. * src/FtpNegotiationCommand.h
  10197. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10198. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10199. * src/HttpResponseCommand.cc
  10200. * src/HttpSkipResponseCommand.cc
  10201. * src/HttpSkipResponseCommand.h
  10202. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10203. Pool connection when a server returns 4xx, 5xx responses.
  10204. * src/HttpNullDownloadCommand.cc
  10205. * src/HttpNullDownloadCommand.h
  10206. * src/HttpResponse.cc
  10207. * src/HttpResponse.h
  10208. * src/HttpResponseCommand.cc
  10209. * src/HttpResponseCommand.h
  10210. * test/HttpResponseTest.cc
  10211. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10212. Print usage when no URL is specifed or bad command-line option is
  10213. specified.
  10214. * src/HelpItemFactory.cc
  10215. * src/help_tags.h
  10216. * src/option_processing.cc
  10217. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10218. Removed duplicate log message.
  10219. * src/AbstractCommand.cc (asyncResolveHostname)
  10220. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10221. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10222. Changed -j option's default value from 5 to 1.
  10223. Added new examples using protocol auto detection feature.
  10224. Removed -T, -M usage where it can be omitted.
  10225. * doc/aria2c.1.txt
  10226. * doc/aria2c.1.html
  10227. * doc/aria2c.1.txt
  10228. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10229. Updated command-line usage text, so that it tells users that they
  10230. can specify any number of torrent files and metalink files in
  10231. command-line.
  10232. * src/version_usage.cc
  10233. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10234. Changed the default value of -j option to 1.
  10235. * src/HelpItemFactory.cc
  10236. * src/option_processing.cc
  10237. * src/usage_text.h
  10238. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10239. Added the ability to reuse connection in FTP and it is enabled by
  10240. default. It can be disabled by --ftp-reuse-connection=false option.
  10241. * src/Command.cc
  10242. * src/DownloadCommand.cc
  10243. * src/FtpDownloadCommand.cc
  10244. * src/FtpDownloadCommand.h
  10245. * src/FtpFinishDownloadCommand.cc
  10246. * src/FtpFinishDownloadCommand.h
  10247. * src/FtpInitiateConnectionCommand.cc
  10248. * src/FtpNegotiationCommand.cc
  10249. * src/FtpNegotiationCommand.h
  10250. * src/HelpItemFactory.cc
  10251. * src/Makefile.am
  10252. * src/Makefile.in
  10253. * src/OptionHandlerFactory.cc
  10254. * src/option_processing.cc
  10255. * src/prefs.h
  10256. * src/usage_text.h
  10257. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10258. Call Command::transitStatus() before calling Command::execute(),
  10259. so that the status change made in execute() is not cleared.
  10260. * src/DownloadEngine.cc
  10261. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. Removed forward declaration of SocketCore class.
  10263. * src/HttpDownloadCommand.h
  10264. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10265. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10266. in InitiateConnectionCommandFactory. They should be set only when
  10267. the protocol is HTTP or HTTPS.
  10268. * src/InitiateConnectionCommandFactory.cc
  10269. * src/RequestGroup.cc
  10270. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10271. Fixed infinite loop in checksum checking.
  10272. * src/IteratableChecksumValidator.cc
  10273. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10274. Set _supportsPersistentConnection to true by default.
  10275. * src/Request.cc
  10276. * src/RequestGroup.cc
  10277. * test/HttpRequestTest.cc
  10278. * test/RequestTest.cc
  10279. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. Added timeout to socket pool. The default timeout is 15 seconds,
  10281. which is the same value Apache uses.
  10282. * src/DownloadEngine.cc
  10283. * src/DownloadEngine.h
  10284. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10285. Fixed misuse of multimap::find()
  10286. * src/HttpHeader.cc
  10287. * test/HttpHeaderTest.cc
  10288. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10290. option.
  10291. The asynchronous DNS is not capable of IPv6 yet.
  10292. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10293. least for HTTP download.
  10294. * src/AbstractCommand.cc
  10295. * src/AbstractCommand.h
  10296. * src/AsyncNameResolver.cc
  10297. * src/AsyncNameResolver.h
  10298. * src/DHTEntryPointNameResolveCommand.cc
  10299. * src/DHTEntryPointNameResolveCommand.h
  10300. * src/DownloadEngine.cc
  10301. * src/DownloadEngine.h
  10302. * src/FtpInitiateConnectionCommand.cc
  10303. * src/FtpInitiateConnectionCommand.h
  10304. * src/HelpItemFactory.cc
  10305. * src/HttpInitiateConnectionCommand.cc
  10306. * src/HttpInitiateConnectionCommand.h
  10307. * src/InitiateConnectionCommand.cc
  10308. * src/InitiateConnectionCommand.h
  10309. * src/Makefile.am
  10310. * src/Makefile.in
  10311. * src/NameResolver.cc
  10312. * src/NameResolver.h
  10313. * src/OptionHandlerFactory.cc
  10314. * src/SocketCore.cc
  10315. * src/SocketCore.h
  10316. * src/Util.cc
  10317. * src/Util.h
  10318. * src/option_processing.cc
  10319. * src/prefs.h
  10320. * src/usage_text.h
  10321. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10322. Updated man page: --quiet, --header were added.
  10323. --metalink-servers and --enable-http-keep-alive option were updated.
  10324. * doc/aria2c.1
  10325. * doc/aria2c.1.html
  10326. * doc/aria2c.1.txt
  10327. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10328. Enable HTTP keep-alive by default.
  10329. * src/HelpItemFactory.cc
  10330. * src/option_processing.cc
  10331. * src/usage_text.h
  10332. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10333. Disable http keep-alive if the remote server is not HTTP/1.1.
  10334. * src/HttpConnection.cc
  10335. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10336. Receive content body of 302 response so that the connection can be
  10337. reused later when http keep-alive is enabled.
  10338. * src/HttpNullDownloadCommand.cc
  10339. * src/HttpNullDownloadCommand.h
  10340. * src/HttpResponseCommand.cc
  10341. * src/HttpResponseCommand.h
  10342. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. const SharedHandle<Request> -> const SharedHandle<Request>&
  10344. * src/FtpDowndloadCommand.cc
  10345. * src/FtpDowndloadCommand.h
  10346. * src/HttpDownloadCommand.cc
  10347. * src/HttpDownloadCommand.h
  10348. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10349. Fixed the bug that the control file(.aria2 file) is not renamed
  10350. according to tryAutoFileRenaming().
  10351. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10352. its control file exist, use them and continue download.
  10353. The old implementation didn't take into account of control file's
  10354. existence, so basically you couldn't continue download of renamed file.
  10355. * src/BtProgressInfoFile.h
  10356. * src/DefaultBtProgressInfoFile.cc
  10357. * src/DefaultBtProgressInfoFile.h
  10358. * src/NullProgressInfoFile.h
  10359. * src/RequestGroup.cc
  10360. * test/DefaultBtProgressInfoFileTest.cc
  10361. * test/MockBtProgressInfoFile.h
  10362. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. Change the default value of --metalink-servers option from `5' to `1'.
  10364. * src/HelpItemFactory.cc
  10365. * src/option_processing.cc
  10366. * src/usage_text.h
  10367. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10368. Reimplemented transparent metalink using Accept request header.
  10369. * src/HttpRequest.cc
  10370. * src/HttpRequest.h
  10371. * src/HttpRequestCommand.cc
  10372. * src/Metalink2RequestGroup.cc
  10373. * src/RequestGroup.cc
  10374. * src/RequestGroup.h
  10375. * test/HttpRequestTest.cc
  10376. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10377. Bump up version number to 0.13.2a
  10378. * configure.ac
  10379. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10380. Updated configure.ac using the result of autoscan.
  10381. * configure.ac
  10382. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Fixed compilation error without gcrypt/openssl.
  10384. * src/DownloadCommand.cc
  10385. * src/DownloadCommand.h
  10386. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. Reorganized version information so that it can be displayed in a
  10388. standard terminal screen without scrolling.
  10389. Removed http, ftp from Configuration section, because they are always
  10390. enabled.
  10391. * src/FeatureConfig.cc
  10392. * src/FeatureConfig.h
  10393. * src/main.cc
  10394. * src/messageDigest.cc
  10395. * src/messageDigest.h
  10396. * src/version_usage.cc
  10397. * test/FeatureConfigTest.cc
  10398. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10399. Masked user ID in log.
  10400. * src/FtpConnection.cc (sendUser)
  10401. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Removed query part from filename in HTTP download. The query part means
  10403. the substring after "?" in URL. Firefox seems do the same thing.
  10404. A query part is sometimes very long and not suitable to filename,
  10405. so I think it is better to remove it from filename.
  10406. * src/HttpRequest.cc
  10407. * src/HttpRequest.h
  10408. * src/Request.cc
  10409. * src/Request.h
  10410. * test/HttpRequestTest.cc
  10411. * test/RequestTest.cc
  10412. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10413. Rewritten Exception class. Throw exception object, not its pointer and
  10414. catch by reference, so that remove problematic delete operator for
  10415. catched exception.
  10416. * src/Exception.cc
  10417. * src/Exception.h
  10418. * test/ExceptionTest.cc
  10419. * src/*: All files throwing/catching exception.
  10420. * test/*: All files throwing/catching exception.
  10421. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Now auto protocol detection is enabled without -Z option.
  10423. But there is a important difference between with/without -Z optoin.
  10424. For example, if you type:
  10425. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10426. then, aria2 interprets there are 3 request groups:
  10427. (1) http://host/file, http://mirror/file <-- multi-source download
  10428. (2) file1.torrent
  10429. (3) file2.metalink
  10430. On the other hand, if you invoke above command with -Z option, it is
  10431. interpreted as 4 request groups:
  10432. (1) http://host/file
  10433. (2) file1.torrent
  10434. (3) file2.metalink
  10435. (4) http://mirror/file
  10436. I think usually user don't mix multi-source URLs and torrent files, so
  10437. there is no big problem here.
  10438. * src/main.cc
  10439. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10440. Fixed the bug that causes segmentaion fault when reading XML containing
  10441. unescapsed character like '&'.
  10442. Also a modification was made which avoids adding unnecessary
  10443. characters stack and appending unused string.
  10444. * src/ExpatMetalinkProcessor.cc
  10445. * src/FileMetalinkParserState.h
  10446. * src/FilesMetalinkParserState.h
  10447. * src/FinMetalinkParserState.h
  10448. * src/HashMetalinkParserState.h
  10449. * src/InitialMetalinkParserState.h
  10450. * src/LanguageMetalinkParserState.h
  10451. * src/MetalinkMetalinkParserState.h
  10452. * src/MetalinkParserState.h
  10453. * src/MetalinkParserStateMachine.cc
  10454. * src/MetalinkParserStateMachine.h
  10455. * src/OSMetalinkParserState.h
  10456. * src/PieceHashMetalinkParserState.h
  10457. * src/PiecesMetalinkParserState.h
  10458. * src/ResourcesMetalinkParserState.h
  10459. * src/SizeMetalinkParserState.h
  10460. * src/SkipTagMetalinkParserState.h
  10461. * src/URLMetalinkParserState.h
  10462. * src/VerificationMetalinkParserState.h
  10463. * src/VersionMetalinkParserState.h
  10464. * src/XML2SAXMetalinkProcessor.cc
  10465. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10466. Added StringFormat class, which internally calls vasprintf.
  10467. operator<< is defined for this class, so it can be used with iostream
  10468. classes nicely. SimpleLogger and following functions are rewritten
  10469. using StringFormat class.
  10470. Besides, now Logger class's methods are non-const, many classes
  10471. that has a const Logger* as a member variable are modified to remove
  10472. const qualifier from the variable declaration.
  10473. * src/HelpItemFactory.cc
  10474. * src/Request.cc
  10475. * src/SimpleLogger.cc
  10476. * src/StringFormat.cc
  10477. * src/StringFormat.h
  10478. * src/Util.cc
  10479. * src/option_processing.cc
  10480. * src/version_usage.cc
  10481. * test/StringFormatTest.cc
  10482. * src/*.h: The classes that has const Logger* as a member variable.
  10483. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10484. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10485. failed. Also fixed memory link when exception is thrown there.
  10486. * src/main.cc (AccRequestGroup)
  10487. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10488. Added build-in "Accept-Features" support. For now only "metalink" is
  10489. used in this header field.
  10490. This "metalink" value is removed from the list when connecting URLs
  10491. fed by metalink file to avoid loop in "transparent" metlaink.
  10492. * src/HttpRequest.cc
  10493. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10494. header is also held in this variable. Also renamed setUserHeaders as
  10495. addHeader and it was rewritten to add header not just to clear the old
  10496. value.
  10497. * src/HttpRequestCommand.cc
  10498. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10499. from "Accept-Features" list.
  10500. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10501. default.
  10502. * src/RequestGroup.h
  10503. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10504. * src/a2functional.h: Included <string> because Concat class depends on
  10505. it.
  10506. * test/HttpRequestTest.cc
  10507. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10508. Added comment
  10509. * src/RequestGroup.cc (createNextCommand)
  10510. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10511. Capitalized METHOD_GET and METHOD_HEAD
  10512. * src/Request.cc
  10513. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10514. Added getDownloadResults() method
  10515. * src/RequestGroupMan.cc
  10516. * src/RequestGroupMan.h
  10517. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10518. Fixed the bug that aria2 exits when commands is empty() but
  10519. _routineCommands are not.
  10520. * src/DownloadEngine.cc
  10521. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10522. Use the default value pulled from Option object in HelpItemFactory.
  10523. except options whose defualt value is embedded in a usage text.
  10524. * src/HelpItemFactory.cc
  10525. * src/HelpItemFactory.h
  10526. * src/option_processing.cc
  10527. * src/version_usage.cc
  10528. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10529. Added --quiet option to make aria2 quiet (no console output).
  10530. --quiet option is tagged with ADVANCED.
  10531. * src/HelpItemFactory.cc
  10532. * src/LogFactory.cc
  10533. * src/LogFactory.h
  10534. * src/MultiUrlRequestInfo.cc
  10535. * src/MultiUrlRequestInfo.h
  10536. * src/NullStatCalc.h: New class. This class prints nothing.
  10537. * src/OptionHandlerFactory.cc
  10538. * src/main.cc
  10539. * src/option_processing.cc
  10540. * src/prefs.h
  10541. * src/usage_text.h
  10542. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10543. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10544. * src/HelpItemFactory.cc (createHelpItems):
  10545. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10546. Fixed compilation error in ExpatMetalinkProcessor.cc
  10547. * src/ExpatMetalinkProcessor.cc
  10548. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10549. Reuse socket if the origin server supports HTTP keep-alive and
  10550. --enable-http-keep-alive or --enable-http-pipelining is given.
  10551. The current implementation doesn't reuse the connections established
  10552. against proxy server.
  10553. * src/AbstractCommand.cc
  10554. * src/DownloadEngine.cc
  10555. * src/DownloadEngine.h
  10556. * src/HttpDownloadCommand.cc
  10557. * src/HttpInitiateConnectionCommand.cc
  10558. * src/HttpResponseCommand.cc
  10559. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10560. Rewritten HTTP keep-alive and pipelining routine.
  10561. * src/AbstractCommand.cc
  10562. * src/HttpConnection.cc
  10563. * src/HttpDownloadCommand.cc
  10564. * src/HttpRequest.cc
  10565. * src/HttpRequestCommand.cc
  10566. * src/HttpResponseCommand.cc
  10567. * src/Request.cc
  10568. * src/Request.h
  10569. * src/RequestGroup.cc
  10570. * test/HttpRequestTest.cc
  10571. * test/HttpResponseTest.cc
  10572. * test/RequestTest.cc
  10573. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10574. Added missing setUserHeaders call
  10575. * src/HttpRequestCommand.cc
  10576. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10577. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10578. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10579. waste of time because it is more likey false.
  10580. * src/FileAllocationDispatcherCommand.cc (execute)
  10581. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10582. Now HTTP status and version are a member variable of HttpHeader.
  10583. HTTP status is processed as a string, not integer.
  10584. * src/AbstractProxyResponseCommand.cc
  10585. * src/HttpConnection.cc
  10586. * src/HttpHeader.cc
  10587. * src/HttpHeader.h
  10588. * src/HttpHeaderProcessor.cc
  10589. * src/HttpHeaderProcessor.h
  10590. * src/HttpResponse.cc
  10591. * src/HttpResponse.h
  10592. * test/HttpHeaderProcessorTest.cc
  10593. * test/HttpResponseTest.cc
  10594. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. Added --header option. You can specify any number of additional HTTP headers
  10596. like:
  10597. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10598. Unlike other commad-line option, you can use --header option multiple times.
  10599. * src/HelpItemFactory.cc
  10600. * src/HttpRequest.{cc, h}
  10601. * src/HttpRequestCommand.cc
  10602. * src/OptionHandlerFactory.cc
  10603. * src/OptionHandlerImpl.h
  10604. * src/option_processing.cc
  10605. * src/prefs.h
  10606. * src/usage_text.h
  10607. * test/HttpRequestTest.cc (testUserHeaders)
  10608. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10609. Eliminates the time lag between sequential downloads and commands in
  10610. the same RequestGroup.
  10611. In old implementation, aria2 occasionally waits 1 seconds before
  10612. executing next command or RequestGroup.
  10613. This is really a waste of time, and new implementation eliminates
  10614. this unnecessary time lag.
  10615. * src/AbstractCommand.cc
  10616. * src/AutoSaveCommand.cc
  10617. * src/CheckIntegrityCommand.cc
  10618. * src/Command.{cc, h}
  10619. * src/DownloadEngine.{cc, h}
  10620. * src/DownloadEngineFactory.cc
  10621. * src/FileAllocationCommand.cc
  10622. * src/FileAllocationDispatcherCommand.cc
  10623. * src/FillRequestGroupCommand.cc
  10624. * src/FtpInitiateConnectionCommand.cc
  10625. * src/HaveEraseCommand.cc
  10626. * src/HttpInitiateConnectionCommand.cc
  10627. * src/HttpResponseCommand.cc
  10628. * src/RealtimeCommand.cc
  10629. * src/RequestGroup.cc
  10630. * src/RequestGroupMan.cc
  10631. * src/StreamFileAllocationEntry.cc
  10632. * src/TimeBasedCommand.{cc, h}
  10633. * src/TimedHaltCommand.cc
  10634. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10635. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10636. keyword explicit and SharedHandle's default constructor initializes
  10637. its internal obj to null, old implementation initializes it using
  10638. obj's default constructor.
  10639. To assign null, write SharedHandle<T> x(...); x.reset();
  10640. TODO: test/SharedHandleTest.cc needs more tests.
  10641. * src/SharedHandle.h
  10642. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10643. Fixed type in man page.
  10644. * doc/aria2c.1.txt
  10645. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10647. * src/SimpleLogger.{cc, h}
  10648. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10649. Implemented auto protocol detection.
  10650. Now you can do:
  10651. aria2c -Z http://host/file file1.torrent file2.metalink
  10652. (Note: -Z option is required for auto protcol detection.)
  10653. Then aria2c downloads 3 files simultaneously:
  10654. 1. http://host/file
  10655. 2. file1.torrent <-- read local torrent file
  10656. 3. file2.metalink <-- read local Metalink file.
  10657. Same thing goes with -i option. Assume your uris.txt contans:
  10658. http://host/file
  10659. file1.torrent
  10660. file2.metalink
  10661. Then you can do: aria2c -i uris.txt
  10662. (Note: -Z option is not needed if -i option is given.)
  10663. * src/main.cc
  10664. * src/ProtocolDetector.{cc, h}
  10665. * test/ProtocolDetectorTest.cc
  10666. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10667. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10668. installed
  10669. * src/ARC4Encryptor.h
  10670. * src/ARC4Decryptor.h
  10671. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10672. Renamed argument from 'errno' to 'err', since errno is confused with
  10673. errno defined in errno.h.
  10674. * src/LibgcryptARC4Decryptor.h
  10675. * src/LibgcryptARC4Context.h
  10676. * src/LibgcryptDHKeyExchange.h
  10677. * src/LibgcryptARC4Encryptor.h
  10678. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10679. Rewritten choking algorithm.
  10680. * src/PeerChokeCommand.{cc, h}
  10681. * src/BtInterestedMessage.cc
  10682. * src/PeerSessionResource.{cc, h}
  10683. * src/DefaultPeerStorage.{cc, h}
  10684. * src/BtNotInterestedMessage.cc
  10685. * src/DefaultBtMessageDispatcher.{cc, h}
  10686. * src/BtMessageDispatcher.h
  10687. * src/Peer.{cc, h}
  10688. * src/BtLeecherStateChoke.{cc, h}
  10689. * src/BtSetup.cc
  10690. * src/BtSeederStateChoke.{cc, h}
  10691. * src/PeerStorage.h
  10692. * test/MockPeerStorage.h
  10693. * test/MockBtMessageDispatcher.h
  10694. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10695. Fixed compilation error on x84-64 platform.
  10696. * src/AuthConfig.cc: Included ostream.
  10697. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10698. Rewritten getBasename() and getDirname(), without standard library
  10699. basename(), dirname().
  10700. * src/File.cc
  10701. * test/FileTest.cc
  10702. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10703. Added Simplified Chinese translation. Also updated the following
  10704. translations: Polish, Dutch, German. Great thanks to all translators.
  10705. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. Suppress content-range error when 'Content-Range' response header
  10707. doesn't contains bytes-unit specifier 'bytes'
  10708. * src/HttpHeader.cc (getRange)
  10709. * test/HttpHeaderTest.cc
  10710. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10711. Fixed compilation error with g++-4.3
  10712. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10713. Added missing include files for MinGW
  10714. * test/HttpHeaderProcessorTest.cc
  10715. * test/DHTRoutingTableSerializerTest.cc
  10716. * test/DHTRoutingTableDeserializerTest.cc
  10717. * test/UriListParserTest.cc
  10718. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10719. Now download line is printed nicely with no garbage at the end of
  10720. line. I use ioctl to get the columns of terminal.
  10721. If stdout is redirected to another device, instead of carriage return,
  10722. end of line '\n' character is used. This is feature request#1909659
  10723. * src/ConsoleStatCalc.cc (calculateStat)
  10724. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10725. Included a2time.h
  10726. * src/DHTMessageDispatcher.h
  10727. * src/DHTMessageEntry.h
  10728. * src/DHTReplaceNodeTask.h
  10729. * src/DHTMessageTracker.h
  10730. * src/Util.h
  10731. * src/CookieBox.h
  10732. * src/SocketCore.h
  10733. * src/DefaultBtMessageDispatcher.h
  10734. * src/SocketCore.cc
  10735. * src/Util.cc
  10736. * src/DHTPingTask.h
  10737. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10738. Fixed high memory footprint when DHT is enabled.
  10739. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10740. queued than it is processed and the queue is getting longer. As a
  10741. consequence, momory usage is increased.
  10742. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10743. replacement cache in DHTBucket which is described in Kademlia paper.
  10744. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10745. DHTReplaceNodeTask.
  10746. * src/DHTBucket.{h, cc}
  10747. (cacheNode): New function.
  10748. (getCachedNodes): New function.
  10749. (dropNode): Push back cached node to _nodes.
  10750. * test/DHTBucketTest.cc
  10751. (testCacheNode): New test
  10752. (testDropNode): New test
  10753. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10754. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10755. the unused 4KB memory when ssl is not used.
  10756. * src/SocketCore.cc
  10757. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10758. Added summary log for peer announce storage.
  10759. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10760. Removed cast
  10761. * src/DefaultPeerStorage.cc (addPeer)
  10762. Log exception message
  10763. * src/DHTMessageTracker.cc (handleTimeout)
  10764. Fixed casting
  10765. * test/HttpRequestTest.cc
  10766. * test/MetalinkProcessorTest.cc
  10767. * test/PieceTest.cc
  10768. * test/MetalinkEntryTest.cc
  10769. * test/SequenceTest.cc
  10770. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. * src/ParameterizedStringParser.cc (createLoop):
  10772. Removed unused variable sstep.
  10773. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10774. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10775. * src/Util.{h, cc}
  10776. (parseUInt): New function.
  10777. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10778. The actual range is uint32_t.
  10779. * test/UtilTest.cc
  10780. * src/ParameterizedStringParser.cc:
  10781. Use Util::parseUInt() for loop variables.
  10782. * test/ParameterizedStringParserTest.cc
  10783. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10784. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10785. Rewritten the functions for binding port.
  10786. * src/DHTConnectionImpl.{h, cc}
  10787. * src/PeerListenCommand.{h, cc}
  10788. * src/DHTSetup.cc
  10789. * src/BtSetup.cc
  10790. * test/DHTConnectionImplTest.cc
  10791. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10792. type cleanup for allmost all remaining files.
  10793. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10794. Type clarification
  10795. * src/PeerSessionResource.{h, cc}
  10796. * src/DefaultPieceStorage.{h, cc}
  10797. * src/Peer.{h, cc}
  10798. * test/PeerSessionResourceTest.cc
  10799. Use div function
  10800. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10801. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10802. Type clarification
  10803. * src/DefaultPeerStorage.{h, cc}
  10804. * test/DefaultPeerStorageTest.cc
  10805. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. Type clarification: size_t for length or size, uint64_t for file
  10807. length, off_t for file offset.
  10808. * src/DefaultBtProgressInfoFile.cc
  10809. * src/DefaultBtContext.{h, cc}
  10810. * src/DefaultBtInteractive.cc
  10811. * src/DownloadCommand.{h, cc}
  10812. * src/IteratableChunkChecksumValidator.{h, cc}
  10813. * src/SegmentMan.{h, cc}
  10814. * src/SingleFileDownloadContext.{h, cc}
  10815. * src/IteratableChecksumValidator.{h, cc}
  10816. * src/BtContext.h
  10817. * src/IteratableValidator.h
  10818. * src/DownloadContext.h
  10819. * test/SingleFileDownloadContextTest.cc
  10820. * test/DefaultBtContextTest.cc
  10821. * test/MockBtContext.h
  10822. * test/Metalink2RequestGroupTest.cc
  10823. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10824. Type clarification: size_t for length or size, uint64_t for file
  10825. length, off_t for file offset.
  10826. * src/PiecedSegment.cc
  10827. * src/GrowSegment.h
  10828. * src/DefaultBtRequestFactory.h
  10829. * src/DefaultBtProgressInfoFile.cc
  10830. * src/UnknownLengthPieceStorage.h
  10831. * src/DefaultPieceStorage.cc
  10832. * src/UnknownLengthPieceStorage.cc
  10833. * src/DefaultBtInteractive.cc
  10834. * src/GrowSegment.cc
  10835. * src/BitfieldMan.h
  10836. * src/DownloadCommand.cc
  10837. * src/BtRequestFactory.h
  10838. * src/PiecedSegment.h
  10839. * src/DefaultPieceStorage.h
  10840. * src/Piece.cc
  10841. * src/DefaultBtRequestFactory.cc
  10842. * src/PieceStorage.h
  10843. * src/Segment.h
  10844. * src/Piece.h
  10845. * src/BitfieldMan.cc
  10846. * src/Util.cc
  10847. * test/DefaultBtProgressInfoFileTest.cc
  10848. * test/DefaultPieceStorageTest.cc
  10849. * test/MockPieceStorage.h
  10850. * test/BtRequestMessageTest.cc
  10851. * test/DefaultBtMessageDispatcherTest.cc
  10852. * test/BitfieldManTest.cc
  10853. * test/GrowSegmentTest.cc
  10854. * test/PieceTest.cc
  10855. * test/SegmentTest.cc
  10856. * test/SegmentManTest.cc
  10857. * test/DefaultBtRequestFactoryTest.cc
  10858. * test/MockBtRequestFactory.h
  10859. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10860. Fixed compilation error with --disable-nls
  10861. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10862. in gettext.h causes the problem.
  10863. * src/common.h
  10864. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10865. Removed subPiece related functions.
  10866. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10867. * src/DefaultPieceStorage.{h, cc}
  10868. * test/PieceTest.cc
  10869. * test/DefaultPieceStorageTest.cc
  10870. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10871. Use unsigned char for data store.
  10872. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10873. Bump up version number to 0.13.0+1
  10874. * configure.ac
  10875. * Release 0.13.0+1
  10876. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10877. Changed inactive connection timeout to 120.
  10878. To accept more mulually interested peers, disconnect peer when there
  10879. is no interest between us after certain time passed.
  10880. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10881. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10882. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10883. when compiled with async DNS support.
  10884. * src/DownloadEngine.cc
  10885. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10886. value '10' will be a little bit short when some DNS servers are
  10887. offline and several DNS servers are tried. It should be configured
  10888. by command-line option.
  10889. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10890. Merged Ross's mingw patch.
  10891. * src/DHTRoutingTableDeserializer.cc
  10892. * src/DHTRoutingTableSerializer.cc
  10893. * src/Platform.{h, cc}
  10894. * src/timegm.h
  10895. * src/gettimeofday.h
  10896. * src/getaddrinfo.h
  10897. * src/SocketCore.h
  10898. * src/common.h
  10899. * src/inet_aton.h
  10900. * src/DownloadEngine.h
  10901. * src/gai_strerror.h
  10902. * src/a2netcompat.h
  10903. * configure.ac
  10904. * configure
  10905. * aclocal.m4
  10906. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10907. Included missing iostream.
  10908. * test/AllTest.cc
  10909. * test/BtDependencyTest.cc
  10910. * test/BtExtendedMessageTest.cc
  10911. * test/DHTConnectionImplTest.cc
  10912. * test/DHTMessageFactoryImplTest.cc
  10913. * test/DHTMessageTrackerEntryTest.cc
  10914. * test/DHTNodeTest.cc
  10915. * test/DHTRoutingTableSerializerTest.cc
  10916. * test/DefaultBtAnnounceTest.cc
  10917. * test/DefaultBtContextTest.cc
  10918. * test/DefaultBtMessageFactoryTest.cc
  10919. * test/DefaultExtensionMessageFactoryTest.cc
  10920. * test/HandshakeExtensionMessageTest.cc
  10921. * test/HttpResponseTest.cc
  10922. * test/MetalinkProcessorTest.cc
  10923. * test/MultiFileAllocationIteratorTest.cc
  10924. * test/SocketCoreTest.cc
  10925. * test/UTPexExtensionMessageTest.cc
  10926. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10927. Reorganized includes.
  10928. * src/NameResolver.cc
  10929. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10930. Fixed compilation error without ares/c-ares
  10931. * src/NameResolver.h:
  10932. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10933. Added a test for large file.
  10934. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10935. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10936. Fixed the bug that file size is ignored if size > INT32_MAX
  10937. * src/SizeMetalinkParserState.cc (endElement):
  10938. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10939. Bump up version number to 0.13.0
  10940. * configure.ac
  10941. * Release 0.13.0
  10942. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10943. Updated Makfefile.am to make 'make dist' work.
  10944. Now packaged filename is aria2c-VERSION.tar.bz2.
  10945. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10946. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10947. Large file support is now configured by configure script.
  10948. * configure.ac
  10949. Removed unsused source files
  10950. * src/
  10951. * test/
  10952. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10953. Peer.h and BtContext.h respectively.
  10954. * src/Peer.h
  10955. * src/BtContext.h
  10956. Updated translations.
  10957. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10958. translations. Great thanks to all translators!;)
  10959. * po/*.{po, gmo}
  10960. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10961. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10962. statically declared sha1 MessageDigestContext.
  10963. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10964. initialization of short-lived MessageDigestContext.
  10965. * src/MessageDigestHelper.{h, cc}
  10966. * src/main.cc
  10967. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10968. the initialization of MessageDigestContext every time in validating
  10969. chunk checksum.
  10970. * src/DownloadCommand.{h, cc}
  10971. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10972. Add a file descriptor which connected to fast peer(latency<1500) to
  10973. select(). This change reduced CPU load.
  10974. * src/PeerInteractionCommand.cc
  10975. * src/DefaultBtInteractive.{h, cc}
  10976. * src/BtInteractive.h
  10977. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10978. Fixed the previous insufficient fix for possible busy loop.
  10979. * src/MSEHandshake.cc (identifyHandshakeType)
  10980. Removed unused functions.
  10981. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10982. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10983. Fixed possible busy loop if first 20 bytes are not received for a few
  10984. minutes.
  10985. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10986. * src/ReceiverMSEHandshakeCommand.cc
  10987. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10988. Fixed compilation error
  10989. * src/ExpatMetalinkProcessor.cc
  10990. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10991. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10992. * src/DHTBucket.cc
  10993. Removed unnecessary cast.
  10994. * src/HandshakeExtensionMessage.cc
  10995. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10996. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10997. is missing.
  10998. * src/OptionHandlerFactory.cc
  10999. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11000. Fixed the bug that HAVE message is not sent for a piece they are
  11001. downloaded fom http/ftp server before any BitTorrent handshake is done
  11002. with peers.
  11003. * src/DefaultBtInteractive.cc
  11004. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11005. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11006. * src/Makefile.am
  11007. * src/Makefile.in
  11008. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11009. Updated README. Added html version of README and man page.
  11010. * README
  11011. * README.html
  11012. * readme2html: Shell script to generate README.html from README using
  11013. asciidoc.
  11014. * doc/aria2c.1.html
  11015. * doc/makeman: Added the line to generate aria2c.1.html
  11016. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Fixed offset calculation.
  11018. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11019. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11020. Rewritten itos and uitos using template. llitos and ullitos are
  11021. replaced with itos and uitos respectively.
  11022. * src/Util.{h, cc}
  11023. * test/UtilTest.cc
  11024. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11025. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11026. of the number of bytes required for storing public key and shared
  11027. secret.
  11028. * src/LibgcryptDHKeyExchange.h
  11029. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11030. * src/MSEHandshake.cc
  11031. * test/DHKeyExchangeTest.cc
  11032. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11033. Removed since they are not used.
  11034. * src/Xml2MetalinkProcessor.{h, cc}
  11035. * src/Socket.cc
  11036. * src/SegmentSplitter.{h, cc}
  11037. * test/Xml2MetalinkProcessorTest.cc
  11038. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11039. Fixed the bug that prevents aria2 from stopping other than by pressing
  11040. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11041. option. aria2 doesn't stop even after --seed-time is satisfied and
  11042. continues to output blank lines in the console.
  11043. * src/ReceiverMSEHandshakeCommand.cc
  11044. * src/PeerReceiveHandshakeCommand.cc
  11045. * src/PeerListenCommand.cc
  11046. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11047. Bump up version number to 0.13.0rc
  11048. * configure.ac
  11049. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11050. Updated man page and some usage text.
  11051. * doc/aria2c.1.txt
  11052. * src/usage_text.h
  11053. * po/*.{po, gmo}
  11054. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11055. Updated translations. Added Finnish and Hebrew translations.
  11056. Great thanks to all translators!
  11057. * po/*.{po, gmo}
  11058. * po/LINGUAS
  11059. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11060. Log more detailed information about each message.
  11061. * src/DHTQueryMessage.{h, cc}
  11062. * src/DHTGetPeersMessage.{h, cc}
  11063. * src/DHTFindNodeReplyMessage.{h, cc}
  11064. * src/DHTGetPeersReplyMessage.{h, cc}
  11065. * src/DHTAnnouncePeerMessage.{h, cc}
  11066. * src/DHTResponseMessage.{h, cc}
  11067. * src/DHTFindNodeMessage.{h, cc}
  11068. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11069. Use constants defined in prefs.h
  11070. * src/option_processing.cc
  11071. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11072. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11073. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. Make room for future enchancements for IPv6 addresses.
  11075. Bump up version number of dht.dat file format to 2.
  11076. Not compatible with previous version.
  11077. * src/DHTRoutingTableSerializer.cc
  11078. * src/DHTRoutingTableDeserializer.cc
  11079. * test/DHTRoutingTableSerializerTest.cc
  11080. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11081. Added handling for the return values from
  11082. PeerMessageUtil::createcompact().
  11083. * src/DefaultBtContext.cc (computeFastSet):
  11084. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11085. Fixed abort when peer's ip address is IPv4-mapped address.
  11086. * src/DefaultBtContext.cc (computeFastSet)
  11087. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11088. cannot handle IPv4-mapped addresses.
  11089. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11090. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11091. Proper return value handling for OpenSSL functions.
  11092. * src/LibsslDHKeyExchange.h
  11093. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11094. Random bytes generation using libgcrypt and OpenSSL.
  11095. * src/DHTUtil.{h, cc}
  11096. * test/DHTUtilTest.cc
  11097. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11098. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11099. received.
  11100. * src/DHTMessageReceiver.cc (receiveMessage)
  11101. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11102. Fixed the bug that a return code is always 0. BUG#1897704
  11103. If error occurred during the download or there exist unfinished
  11104. downloads, aria2 returns with code 1.
  11105. * src/RequestGroupMan.{h, cc}
  11106. * src/MultiUrlRequestInfo.{h, cc}
  11107. * src/main.cc
  11108. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11109. IPv6 support for SocketCore class.
  11110. TODO: In SocketCore::establishConnection(), this is insufficient to
  11111. determin the failure of connect() here because the socket is
  11112. non-blocking state. The next addresses should be tried after select().
  11113. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11114. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11115. instead which address family independent.
  11116. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11117. information in a compact peer format which is for IPv4 only.
  11118. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11119. this is a spec of BitTorrent protocol.
  11120. * src/SocketCore.{h, cc}
  11121. * src/PeerMessageUtil.cc
  11122. * test/SocketCoreTest.cc
  11123. * test/PeerMessageUtilTest.cc
  11124. * test/DHTConnectionImplTest.cc
  11125. Handle IPv4-mapped addresses.
  11126. * src/DHTNode.cc: Now identity is determined by node id.
  11127. * src/DHTMessageTrackerEntry.cc
  11128. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11129. should handle it.
  11130. * src/DHTRoutingTableDeserializer.cc
  11131. * src/DHTMessageFactoryImpl.cc
  11132. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11133. Change the unit of --stop option from a minute to a second.
  11134. * src/usage_text.h
  11135. * src/DownloadEngineFactory.cc
  11136. * src/OptionHandlerFactory.cc
  11137. * src/message.h
  11138. * src/TimedHaltCommand.cc
  11139. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11140. Make listening socket non-block mode.
  11141. * src/FtpConnection.cc
  11142. * src/FtpNegotiationCommand.{h, cc}
  11143. * src/PeerListenCommand.cc
  11144. Fixed the bug that cause slow ftp negotiation.
  11145. * src/FtpNegotiationCommand.{h, cc}
  11146. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11147. Added basic tag to --enable-dht, --dht-listen-port option.
  11148. * src/HelpItemFactory.cc (createHelpItems)
  11149. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11150. Updated text.
  11151. * src/usage_text.h
  11152. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11153. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11154. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11155. Determin _threadtholdSpeed in each constructor for
  11156. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11157. * src/ActivePeerConnectionCommand.{h, cc}
  11158. * src/PeerReceiveHandshakeCommand.{h, cc}
  11159. * src/BtSetup.cc
  11160. * src/BtConstants.h
  11161. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11162. Added --bt-min-crypto-level and --bt-require-crypto options.
  11163. * src/OptionHandlerFactory.cc
  11164. * src/MSEHandshake.cc
  11165. * src/HelpItemFactory.cc
  11166. * src/option_processing.cc
  11167. * src/ReceiverMSEHandshakeCommand.cc
  11168. * src/prefs.h
  11169. * src/DefaultBtAnnounce.cc
  11170. * src/InitiatorMSEHandshakeCommand.cc
  11171. * src/usage_text.h
  11172. * test/MSEHandshakeTest.cc
  11173. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11174. Bump version number to 0.13.0b
  11175. * configure.ac
  11176. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11177. Updated doc.
  11178. * src/MessageDigestHelper.h:
  11179. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11180. Use raw message digest as a token instead of its hexadecimal
  11181. representation.
  11182. * src/DHTTokenTracker.cc (generateToken)
  11183. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11184. Added Message Stream Encryption(MSE) support.
  11185. Currently, aria2 accepts incoming connections with Obfuscation Header
  11186. and legacy BitTorrent Header and establishes connections with
  11187. Obfuscation Header first and if failed then retry with legacy
  11188. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11189. choose ARC4. The new option to change the default behavior is planned.
  11190. For tracker extension, "supportcrypto=1" is added statically.
  11191. * src/PeerInitiateConnectionCommand.{h, cc}
  11192. * src/PeerConnection.{h, cc}
  11193. * src/HandleRegistry.h
  11194. * src/SocketCore.h
  11195. * src/PeerReceiveHandshakeCommand.{h, cc}
  11196. * src/BtRegistry.{h, cc}
  11197. * src/PeerListenCommand.cc
  11198. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11199. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11200. * src/MSEHandshake.{h, cc}
  11201. * src/ARC4Encryptor.h
  11202. * src/ARC4Decryptor.h
  11203. * src/LibgcryptARC4Encryptor.h
  11204. * src/LibgcryptARC4Decryptor.h
  11205. * src/LibgcryptARC4Context.h
  11206. * src/LibsslARC4Encryptor.h
  11207. * src/LibsslARC4Decryptor.h
  11208. * src/LibsslARC4Context.h
  11209. * src/DHKeyExchange.h
  11210. * src/LibgcryptDHKeyExchange.h
  11211. * src/LibsslDHKeyExchange.h
  11212. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11213. * test/DefaultBtAnnounceTest.cc
  11214. * test/ARC4Test.cc
  11215. * test/DHKeyExchangeTest.cc
  11216. Removed prepareForRetry() because it is not used.
  11217. * src/PeerAbstractCommand.{h, cc}
  11218. * src/PeerInteractionCommand.{h, cc}
  11219. * src/PeerInitiateConnectionCommand.{h, cc}
  11220. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11221. Added the ability to load nodes from torrent file. These nodes are
  11222. added to the routing table when downloading that torrent.
  11223. * src/BtContext.h
  11224. * src/DefaultBtContext.{h, cc}
  11225. * src/DHTSetup.cc
  11226. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11227. hostname and port pair, and resolves all of them.
  11228. * src/NameResolver.{h, cc}: Added reset().
  11229. * src/RequestGroup.cc
  11230. * test/DefaultBtContextTest.cc
  11231. * test/MockBtContext.h
  11232. Removed assert() from DefaultBtContext and throw exception instead.
  11233. * src/DefaultBtContext.cc
  11234. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11235. Fixed segmentation fault bug when exiting if dht is disabled.
  11236. * src/RequestGroup.cc
  11237. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11238. Fixed typo in log message and define the message in message.h
  11239. * src/TimedHaltCommand.cc
  11240. * src/message.h
  11241. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11242. Included RecoverableException.h to fix compilation error.
  11243. * test/DHTMessageFactoryImplTest.cc
  11244. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11245. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11246. * test/DHTPingMessageTest.cc
  11247. * test/DHTGetPeersMessageTest.cc
  11248. * test/DHTFindNodeMessageTest.cc
  11249. * test/DHTAnnouncePeerMessageTest.cc
  11250. * test/MockDHTMessage.h
  11251. * test/MockDHTMessageFactory.h
  11252. * test/MockDHTMessageDispatcher.h: New class.
  11253. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11254. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11255. virtual.
  11256. * src/DHTMessageDispatcher.h
  11257. * src/DHTMessageDispatcherImpl.{h, cc}
  11258. * src/DHTSetup.cc
  11259. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11260. Adding handling of DHT error message. Just log error message and
  11261. throw exception.
  11262. * src/DHTMessageFactoryImpl.cc
  11263. * test/DHTMessageFactoryImplTest.cc
  11264. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11265. Added handling of dynamic cast failure.
  11266. * src/DHTNodeLookupTask.cc
  11267. * src/DHTPeerLookupTask.cc
  11268. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11269. Added the ability to stop aria2 itself when given time has passed
  11270. from start. Use --stop option to specify time in minutes.
  11271. When 0 is given, this feature is disabled.
  11272. * src/OptionHandlerFactory.cc
  11273. * src/TimeBasedCommand.h: Make _interval protected scope.
  11274. * src/HelpItemFactory.cc
  11275. * src/option_processing.cc
  11276. * src/prefs.h
  11277. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11278. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11279. Without this modification, the result list shows "ERR" when aria2 is
  11280. stopped by --stop option. It should be "INPR".
  11281. * src/DownloadEngine.{h, cc}
  11282. * src/DownloadEngineFactory.cc
  11283. * src/usage_text.h
  11284. * src/TimedHaltCommand.{h, cc}: New class.
  11285. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11286. Bootstrap through node added by port message.
  11287. Currently bootstrap is executed if the number of buckets in routing
  11288. table is 1.
  11289. * src/BtPortMessage.{h, cc}
  11290. * src/DefaultBtMessageFactory.{h, cc}
  11291. * src/PeerInteractionCommand.cc
  11292. * test/BtPortMessageTest.cc
  11293. * test/MockDHTTask.h
  11294. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11295. Extract the Peer class's member variables, which are only needed after
  11296. PeerInteractionCommand, into PeerSessionResource class.
  11297. This class is instantiated in PeerInteractionCommand class's ctor and
  11298. released in its dtor.
  11299. This will make Peer class lightweight and uses less memory for peers
  11300. which are not connected and wait in the queue.
  11301. * src/PeerChokeCommand.cc
  11302. * src/PeerSessionResource.{h, cc}
  11303. * src/PeerInteractionCommand.cc
  11304. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11305. * src/DefaultBtInteractive.cc
  11306. * src/BtPieceMessage.cc
  11307. * src/BtInterestedMessage.cc
  11308. * src/BtUnchokeMessage.cc
  11309. * src/DefaultPeerStorage.{h, cc}
  11310. * src/PeerInitiateConnectionCommand.cc
  11311. * src/ActivePeerConnectionCommand.cc
  11312. * src/BtNotInterestedMessage.cc
  11313. * src/DefaultBtMessageDispatcher.cc
  11314. * src/BtChokeMessage.cc
  11315. * src/BtRequestMessage.cc
  11316. * src/Peer.{h, cc}
  11317. * src/BtRegistry.h
  11318. * src/TrackerWatcherCommand.cc
  11319. * src/PeerReceiveHandshakeCommand.cc
  11320. * test/BtExtendedMessageTest.cc
  11321. * test/BtAllowedFastMessageTest.cc
  11322. * test/BtCancelMessageTest.cc
  11323. * test/DefaultPieceStorageTest.cc
  11324. * test/BtBitfieldMessageTest.cc
  11325. * test/BtHaveMessageTest.cc
  11326. * test/BtNotInterestedMessageTest.cc
  11327. * test/BtRequestMessageTest.cc
  11328. * test/PeerSessionResourceTest.cc
  11329. * test/DefaultBtMessageDispatcherTest.cc
  11330. * test/PeerTest.cc
  11331. * test/BtInterestedMessageTest.cc
  11332. * test/BtRejectMessageTest.cc
  11333. * test/BtChokeMessageTest.cc
  11334. * test/DefaultPeerStorageTest.cc
  11335. * test/BtHaveNoneMessageTest.cc
  11336. * test/BtHaveAllMessageTest.cc
  11337. * test/DefaultExtensionMessageFactoryTest.cc
  11338. * test/BtUnchokeMessageTest.cc
  11339. * test/DefaultBtMessageFactoryTest.cc
  11340. * test/HandshakeExtensionMessageTest.cc
  11341. * test/UTPexExtensionMessageTest.cc
  11342. * test/DefaultBtRequestFactoryTest.cc
  11343. * test/BtPieceMessageTest.cc
  11344. Removed typedef PeerStats.
  11345. * src/PeerStat.h
  11346. * src/SegmentMan.cc
  11347. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11348. Added std namespace to copy, remove_copy, back_inserter,
  11349. front_inserter.
  11350. * src/RequestGroupMan.cc
  11351. * src/DefaultPieceStorage.cc
  11352. * src/StreamFileAllocationEntry.cc
  11353. * src/BtFileAllocationEntry.cc
  11354. * src/RequestGroup.cc
  11355. * src/MetalinkEntry.cc
  11356. * src/DelegatingPeerListProcessor.cc
  11357. * src/DefaultBtRequestFactory.cc
  11358. * src/DefaultBtMessageDispatcher.cc
  11359. * src/version_usage.cc: Included <algorithm>
  11360. * src/main.cc
  11361. * src/MetalinkParserController.cc
  11362. * src/DefaultBtContext.cc
  11363. * src/DownloadEngineFactory.cc
  11364. * src/a2algo.h
  11365. Removed.
  11366. * test/StreamUriListParserTest.cc
  11367. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11368. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11369. ActivePeerConnectionCommand when it is given and
  11370. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11371. * src/ActivePeerConnectionCommand.{h, cc}
  11372. * src/BtSetup.cc
  11373. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11374. Only add socket to DownloadEngine's select routine when peer or
  11375. localhost is unchoked and interested. This lowers CPU usage a
  11376. little bit.
  11377. * src/PeerInteractionCommand.cc
  11378. * src/PeerAbstractCommand.{h, cc}
  11379. * src/BtInteractive.h
  11380. * src/DefaultBtInteractive.{h, cc}
  11381. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11382. Revert previous change because get_peers message is needed for
  11383. announce_peer anyway.
  11384. * src/DHTGetPeersCommand.cc
  11385. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11386. Request peers thought DHT only when download hasn't finished.
  11387. * src/DHTGetPeersCommand.cc
  11388. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11389. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11390. * src/DHTBucketRefreshTask.{h, cc}
  11391. * src/DHTSetup.cc
  11392. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11393. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11394. standard classes.
  11395. Included string.h where mem* function are used.
  11396. Added namespace aria2.
  11397. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11398. Create directory before saving DHT routing table.
  11399. Now ios::failure is now handled properly.
  11400. * src/DHTAutoSaveCommand.cc
  11401. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11402. Removed unnecessary cerr.
  11403. * src/DownloadEngine.cc
  11404. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11405. Catch exception inside DHTMessageReceiver::receiveMessage().
  11406. Log unknown message.
  11407. * src/DHTMessageReceiver.{h, cc}
  11408. * src/DHTMessageFactory.h
  11409. * src/DHTMessageFactoryImpl.{h, cc}
  11410. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11411. * src/DHTInteractionCommand.cc
  11412. * src/DHTUnknownMessage.{h, cc}
  11413. * test/DHTUnknownMessageTest.cc
  11414. * test/MockDHTMessageFactory.h
  11415. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11416. Commented out ip address comparison because a host can have multiple
  11417. ip addresses and it is hard to predict the hostname is resolved into
  11418. which one.
  11419. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11420. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11421. * po/Makefile.in: Removed since this is generated by configure.
  11422. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11423. Fixed compiler warning about redefinition of SIZE_MAX.
  11424. Use common.h instead of config.h directly here.
  11425. * src/Platform.{h, cc}
  11426. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11427. here.
  11428. * common.h
  11429. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11430. Updated gettext related files.
  11431. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11432. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11433. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11434. Added DHT functionality, compatible with mainline.
  11435. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11436. You may need to specify entry point to DHT network using
  11437. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11438. Use --dht-listen-port to specify port number. Make sure that your
  11439. firewall configuration can pass through UDP traffic to the port.
  11440. The routing table is saved in $HOME/.aria2/dht.dat.
  11441. * src/DHT*
  11442. * src/BNode.{h, cc}
  11443. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11444. particular torrent.
  11445. * src/Data.cc: Rewritten ctor.
  11446. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11447. --dht-entry-point.
  11448. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11449. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11450. ends, remove BtContext from DHTPeerAnnounceStorage.
  11451. * src/BtPortMessage.{h, cc}: Rewritten.
  11452. * src/message.h
  11453. * src/OptionHandlerImpl.cc
  11454. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11455. --dht-entry-point.
  11456. * src/Dictionary.{h, cc} (remove): New function.
  11457. * src/prefs.h
  11458. * src/DefaultBtMessageFactory.h
  11459. * src/BtHandshakeMessage.cc
  11460. * src/ActivePeerConnectionCommand.cc
  11461. * src/SocketCore.{h, cc}: Added datagram socket support.
  11462. * src/DefaultBtMessageFactory.cc
  11463. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11464. Create DHT commands.
  11465. * src/BtMessageFactory.h
  11466. * src/PeerMessageUtil.{h, cc}
  11467. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11468. Fixed the bug that log file is not written when configuration file doesn't exist.
  11469. This is caused by using Logger class before LogFactory is not configured.
  11470. BUG #1875079
  11471. * src/option_processing.cc
  11472. Warning message "configuration doesn't exist" is only printed when --conf is
  11473. given.
  11474. * src/option_processing.cc
  11475. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11476. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11477. ShaVisitor is now deprecated and slated to be removed.
  11478. * src/DefaultBtContext.cc
  11479. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11480. Externalize message to message.h
  11481. * src/Platform.cc
  11482. * src/message.h
  11483. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11484. Set default domain and default path to cookie.
  11485. * src/HttpResponse.cc
  11486. * src/CookieBox.{h, cc}
  11487. * src/CookieParser.{h, cc}
  11488. * test/CookieParserTest.cc
  11489. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11490. Added --no-conf and --conf-path command-line option.
  11491. --no-conf option disables loading aria2.conf file.
  11492. --conf-path option changes the configuration file path. The default
  11493. file path is $HOME/.aria2/aria2.conf
  11494. Added a warning message when the configuration file is not found.
  11495. * src/HelpItemFactory.cc
  11496. * src/option_processing.cc
  11497. * src/prefs.h
  11498. * src/usage_text.h
  11499. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11500. Added the message to inform users that other help categories are
  11501. available in -h option.
  11502. * src/version_usage.cc
  11503. * src/TagContainer.{h, cc}
  11504. * test/TagContainerTest.cc
  11505. * src/TaggedItem.{h, cc}
  11506. * test/TaggedItemTest.cc
  11507. * src/HelpItem.h
  11508. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11509. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11510. from PiecedSegment's ctor.
  11511. Previously Piece::getAllMissingBlockIndexes() is called from
  11512. PiecedSegment() but it is rather expensive since only first element is
  11513. used.
  11514. * src/PiecedSegment.cc
  11515. * src/Piece.{h, cc}
  11516. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11517. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11518. each time these functions are called.
  11519. * src/BitfieldMan.{h, cc}
  11520. * test/BitfieldManTest.cc
  11521. * src/array_fun.h
  11522. * test/array_funTest.cc
  11523. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11524. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11525. filtered. Removed unnecessary cast to int32_t.
  11526. * src/BitfieldMan.{h, cc}
  11527. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11528. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11529. payload length(4bytes) are received. This happens because lenbufLength
  11530. is not updated in this particular case and successive call of
  11531. receiveMessage() overwrites payload length with bytes recieved which
  11532. are payload body.
  11533. * src/PeerConnection.{h, cc}
  11534. * src/message.h
  11535. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11536. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11537. peer if there are peers that have same ipaddr and port.
  11538. I've experiened segmentation fault and "pure virtual function was
  11539. called" error.
  11540. * src/Peer.h
  11541. * test/PeerTest.cc
  11542. * src/DefaultPeerStorage.cc
  11543. * test/DefaultPeerStorageTest.cc
  11544. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11545. Removed a call to isPowerOf() because it is no longer necessary here
  11546. and a request block is not always power of 2.
  11547. BUG#1866924
  11548. * src/PeerMessageUtil.cc (checkLength)
  11549. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11550. Fixed the bug that always first found Segment is removed from
  11551. usedSegmentEntries. Removed unused functions.
  11552. * src/SegmentMan.{h, cc}
  11553. * test/SegmentManTest.cc
  11554. Fixed the bug that ServerHost is not removed.
  11555. * src/RequestGroup.cc
  11556. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11557. Fixed the bug that SegmentMan::completeSegment() is not called
  11558. even if Segment is complete when --lowest-speed-limit is enabled.
  11559. BUG#1864525
  11560. * src/DownloadCommand.{h, cc}
  11561. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11562. Fixed: hash algorithm 'sha1' is always used.
  11563. * src/DownloadCommand.cc (validatePieceHash)
  11564. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11565. Added --enable-peer-exchange command-line option.
  11566. * src/OptionHandlerFactory.cc
  11567. * src/HelpItemFactory.cc
  11568. * src/option_processing.cc
  11569. * src/usage_text.h
  11570. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11571. Move extension from BtRuntime to ExtensionMessageFactory, because
  11572. extension can be specified per peer, not per torrent.
  11573. * src/DefaultBtInteractive.cc
  11574. * src/BtRuntime.h
  11575. * src/ExtendedMessagingAware.h
  11576. * src/ExtensionMessageFactory.h
  11577. * src/DefaultExtensionMessageFactory.cc
  11578. * test/DefaultExtensionMessageFactoryTest.cc
  11579. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11580. Added categorized option help. Specify category using --help option.
  11581. Also added the ability to search options in forward match.
  11582. * src/HelpItem.{h, cc}
  11583. * test/HelpItemTest.cc
  11584. * src/HelpItemFactory.{h, cc}
  11585. * src/TagContainer.{h, cc}
  11586. * test/TagContainerTest.cc
  11587. * src/option_processing.cc
  11588. * src/prefs.h
  11589. * src/TaggedItem.{h, cc}
  11590. * test/TaggedItemTest.cc
  11591. * src/version_usage.cc
  11592. * src/help_tags.h
  11593. * src/usage_text.h
  11594. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11595. Fixed segmentation fault when bad torrent metainfo is parsed.
  11596. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11597. and then throw exception or skip it.
  11598. * src/DefaultBtContext.{h, cc}
  11599. * test/DefaultBtContextTest.cc
  11600. * src/AnnounceList.cc
  11601. * src/CompactPeerListProcessor.cc
  11602. * src/message.h
  11603. * src/DefaultBtAnnounce.{h, cc}
  11604. * test/DefaultBtAnnounceTest.cc
  11605. * src/BencodeVisitor.cc
  11606. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11607. Added missing "B"(=Byte). So now the message looks like this:
  11608. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11609. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11610. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11611. Show the seed ratio after torrent downloads.
  11612. For example, after torrent download completed and --seed-time and
  11613. --seed-ratio conditions are fulfilled, following message is printed
  11614. right after "Download complete: .....":
  11615. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11616. * src/RequestGroupMan.cc
  11617. * src/RequestGroup.{h, cc}
  11618. * src/message.h
  11619. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11620. Remove a defunct control file. A defunct control file means that while
  11621. it exists, but the corresponding download file is missing.
  11622. After its removal, a download restarts from the beginning.
  11623. * src/RequestGroup.cc
  11624. * src/message.h
  11625. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11626. Allocate bitfield in Peer when it is really used. More specifically,
  11627. bitfield in Peer is allocated after the connection is established and
  11628. deallocated when the connection is dropped.
  11629. Since 2 parameters(piece length and total length) was removed from the
  11630. constructor of Peer class, many test classes were modified accordingly.
  11631. See svn log for more detailed information.
  11632. * src/PeerInteractionCommand.cc
  11633. * src/CompactPeerListProcessor.cc
  11634. * src/Peer.cc
  11635. * src/DefaultPeerListProcessor.cc
  11636. * src/PeerListenCommand.cc
  11637. * src/PeerReceiveHandshakeCommand.cc
  11638. Fixed memory leak
  11639. * src/Piece.cc
  11640. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11641. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11642. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11643. command-line options.
  11644. * src/option_processing.cc
  11645. * src/ActivePeerConnectionCommand.cc
  11646. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11647. Send have message to peer if it already has the piece.
  11648. * src/BtHaveMessage.{h, cc}
  11649. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11650. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11651. port.
  11652. * src/DefaultPeerStorage.{h, cc}
  11653. * test/DefaultPeerStorageTest.cc
  11654. * src/HandshakeExtensionMessage.cc
  11655. * test/HandshakeExtensionMessageTest.cc
  11656. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11657. * src/PeerStorage.h
  11658. * test/MockPeerStorage.h
  11659. * src/PeerListenCommand.cc
  11660. * src/PeerReceiveHandshakeCommand.cc
  11661. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11662. Added --metalink-enable-unique-protocol option.
  11663. * src/Metalink2RequestGroup.cc
  11664. * src/option_processing.cc
  11665. * src/prefs.h
  11666. * src/version_usage.cc
  11667. * doc/aria2c.1.txt
  11668. * doc/aria2c.1
  11669. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11670. Allow a peer in incomingPeer to be added peers.
  11671. * src/DefaultPeerStorage.cc
  11672. * test/DefaultPeerStorageTest.cc
  11673. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11674. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11675. I could reproduce this bug in following procedure:
  11676. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11677. 2. Restart aria2.
  11678. 3. You see the download stopped around 99%.
  11679. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11680. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11681. If timeout is reached, then _nextCommand is unused and it may contains
  11682. segments and they won't be canceled. Actually, timeout is not needed
  11683. here because if the server dropped connection, then retry is made.
  11684. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11685. Added uTorrent compatible Peer Exchange.
  11686. * src/BencodeVisitor.{h, cc}
  11687. * test/BencodeVisitorTest.cc
  11688. * src/BtConstants.h
  11689. * src/BtContext.h: Added 'private' flag.
  11690. * src/BtExtendedMessage.{h, cc}
  11691. * test/BtExtendedMessageTest.cc
  11692. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11693. reserved field.
  11694. * test/BtHandshakeMessageTest.cc
  11695. * src/BtMessageFactory.h
  11696. * src/BtRegistry.h
  11697. * src/BtRuntime.h: This class holds default extension message IDs for
  11698. aria2. By default, aria2 uses ID 8 for ut_pex.
  11699. * src/DefaultBtContext.cc
  11700. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11701. When it is true, aria2 enables ut_pex. This value is set by
  11702. PeerInteractionCommand.
  11703. * src/DefaultBtMessageFactory.{h, cc}
  11704. * test/DefaultBtMessageFactoryTest.cc
  11705. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11706. handling to DefaultBtInteractive class.
  11707. * src/DefaultExtensionMessageFactory.{h, cc}
  11708. * test/DefaultExtensionMessageFactoryTest.cc
  11709. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11710. the container(peers and incomingPeers. The equality is determined by
  11711. Peer::id).
  11712. * test/DefaultPeerStorageTest.cc
  11713. * src/ExtensionMessage.h
  11714. * test/MockExtensionMessage.h
  11715. * src/ExtensionMessageFactory.h
  11716. * test/MockExtensionMessageFactory.h
  11717. * src/HandshakeExtensionMessage.{h, cc}
  11718. * test/HandshakeExtensionMessageTest.cc
  11719. * src/MetaEntry.h
  11720. * src/Peer.{h, cc}
  11721. * src/PeerInteractionCommand.cc
  11722. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11723. addIncomingPeer.
  11724. * src/PeerMessageUtil.{h, cc}
  11725. * src/PeerObject.h
  11726. * src/UTPexExtensionMessage.{h, cc}
  11727. * test/UTPexExtensionMessageTest.cc
  11728. * src/message.h
  11729. * src/prefs.h
  11730. Fixed the bug that returns incomplete data when it contains null
  11731. character. A convenient constructor was also added.
  11732. * src/Data.{h, cc}
  11733. Rewritten.
  11734. * src/CompactPeerListProcessor.cc
  11735. Fixed typos.
  11736. * src/message.h
  11737. * src/MetaFileUtil.cc
  11738. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11739. Added "Status Legend" label to the explanation text of 'stat' in
  11740. download result and moved it to the last. BUG#1848214
  11741. * src/RequestGroupMan.cc
  11742. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11743. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11744. * src/Makefie.am
  11745. * test/Makefile.am
  11746. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11747. Fixed the bug that prevents aria2 from loading cookie file when expire
  11748. value is greater than 2^31-1. BUG#1851066
  11749. * src/CookieBoxFactory.cc
  11750. * test/CookieBoxFactoryTest.cc
  11751. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11752. Fixed possible memory leak when an exception is thrown.
  11753. * src/XML2SAXMetalinkProcessor.cc
  11754. Added Expat support. If both libxml2 and Expat are installed, then
  11755. libxml2 is used by default.
  11756. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11757. ExpatMetalinkProcessor according to the configuration.
  11758. * src/ExpatMetalinkProcessor.{h, cc}
  11759. * src/main.cc: Removed libxml2 specific header and init/free function.
  11760. * src/MetalinkProcessorFactory.{h, cc}
  11761. * src/MetalinkHelper.cc
  11762. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11763. * src/MetalinkProcessor.h
  11764. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11765. MetalinkProcessorTest is used instead.
  11766. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11767. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11768. MetalinkProcessorFactory::newInstance().
  11769. * m4/libexpat.m4
  11770. * configure.ac: Added configuration options for libexpat.
  11771. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11772. Disabled -s option in metalink download.
  11773. * src/Metalink2RequestGroup.cc
  11774. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11775. If several protocols are available for a mirror in metalink file,
  11776. aria2 now use one of them. --metalink-preferred-protocol option was
  11777. added to specify the preference of protocol.
  11778. * src/AbstractCommand.cc
  11779. * src/OptionHandlerFactory.cc
  11780. * src/ServerHost.{h, cc}
  11781. * src/Metalink2RequestGroup.cc
  11782. * src/RequestGroup.{h, cc}
  11783. * test/RequestGroupTest.cc
  11784. * src/option_processing.cc
  11785. * src/prefs.h
  11786. * src/HttpResponseCommand.cc
  11787. * src/MetalinkResource.{h, cc}
  11788. * src/FtpNegotiationCommand.cc
  11789. * src/MetalinkEntry.{h, cc}
  11790. * src/MetalinkEntryTest.cc
  11791. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11792. Code cleanup and added debug log.
  11793. * src/PeerConnection.cc
  11794. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11795. Compiler error fix: applied the patch by Tiziano Mueller
  11796. * src/RequestGroup.cc
  11797. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11798. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11799. in stopped and completed event.
  11800. * src/AnnounceList.{h, cc}
  11801. * test/AnnounceListTest.cc
  11802. * src/DefaultBtAnnounce.cc
  11803. * test/DefaultBtAnnounceTest.cc
  11804. Sorted URLs.
  11805. * test/Metalink2RequestGroupTest.cc
  11806. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11807. Removed unnecessary string copy. Updated doc and corrected indentation.
  11808. * src/Base64.cc
  11809. Fixed compilation warnings
  11810. * test/DataTest.cc
  11811. * test/HttpRequestTest.cc
  11812. * test/MetaFileUtilTest.cc
  11813. * test/RequestTest.cc
  11814. * Release 0.12.0
  11815. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11816. Updated translations
  11817. * po/{de,fr,ja,nl,ru}.po
  11818. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11819. translations. Many thanks to translators.
  11820. * po/{ca,es,it,pt_BR,sv}.po
  11821. * po/LINGUAS
  11822. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11823. Added a notice about URL
  11824. * src/version_usage.cc
  11825. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11826. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11827. aria2 repeatedly sends stopped request when tracker returns error code.
  11828. * src/AnnounceList.cc
  11829. * test/AnnounceListTest.cc
  11830. * src/AnnounceTier.h
  11831. Added a message when ctrl-c is hit.
  11832. Now second ctrl-c is also handled in signal handler.
  11833. * src/RequestGroupMan.{h, cc}
  11834. * src/RequestGroup.{h, cc}
  11835. * src/MultiUrlRequestInfo.cc
  11836. * src/DownloadEngine.cc
  11837. * src/TrackerWatcherCommand.cc
  11838. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11839. Code cleanup
  11840. * src/Base64.cc (encode)
  11841. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11842. Changed Direct/IO enable/disable procesure in file allocation routine.
  11843. * src/SingleFileAllocationIterator.cc
  11844. (SingleFileAllocationIterator):
  11845. Disable directIO if offset is not multiple of 512.
  11846. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11847. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11848. Enable created SingleFileAllocationIterator's directIO.
  11849. * src/FileAllocationEntry.cc
  11850. (FileAllocationEntry): Enable directIO here.
  11851. (~FileAllocationEntry): Disable directIO here.
  11852. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11853. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11854. * src/Peer.{h, cc}
  11855. * src/DefaultPieceStorage.cc
  11856. * test/DefaultPieceStorageTest.cc
  11857. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11858. Rewritten direct I/O support routine
  11859. * src/SingleFileAllocationIterator.cc
  11860. * src/MultiDiskAdaptor.{h, cc}
  11861. * src/ByteArrayDiskWriter.h
  11862. * src/AbstractSingleDiskAdaptor.h
  11863. * src/AbstractDiskWriter.cc
  11864. * src/DefaultPieceStorage.cc
  11865. * src/DiskWriter.h
  11866. * src/BinaryStream.h
  11867. * src/IteratableChunkChecksumValidator.cc
  11868. * src/IteratableChecksumValidator.cc
  11869. * src/CheckIntegrityEntry.cc
  11870. * src/FileAllocationEntry.cc
  11871. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11872. Fixed typo
  11873. * src/version_usage.cc
  11874. Updated doc
  11875. * doc/aria2c.1.txt
  11876. * doc/aria2c.1
  11877. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11878. Fixed compile error without message digest support.
  11879. * src/FileMetalinkParserState.cc
  11880. * src/MetalinkParserController.{h, cc}
  11881. * test/XML2SAXMetalinkProcessorTest.cc
  11882. * test/MetalinkParserControllerTest.cc
  11883. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11884. Enable direct I/O support in checksum checking.
  11885. * src/IteratableChunkChecksumValidator.{h, cc}
  11886. * test/IteratableChunkChecksumValidatorTest.cc
  11887. * src/CheckIntegrityEntry.cc
  11888. * src/PieceHashCheckIntegrityEntry.cc
  11889. * src/IteratableChecksumValidator.{h, cc}
  11890. * src/BtCheckIntegrityEntry.cc: Added doc.
  11891. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11892. Added --allow-piece-length-change option.
  11893. * src/DefaultBtProgressInfoFile.cc
  11894. * test/DefaultBtProgressInfoFileTest.cc
  11895. * src/OptionHandlerFactory.cc
  11896. * src/option_processing.cc
  11897. * src/prefs.h
  11898. * src/version_usage.cc
  11899. * doc/aria2c.1.txt
  11900. * doc/aria2c.1
  11901. Fixed: duplicated result entry appears when exception is thrown in
  11902. RequestGroup::createInitiateConnectionCommand().
  11903. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11904. Add RequestGroup to _requestGroup after RequetGroup::
  11905. createInitiateConnectionCommand() succeeds.
  11906. Externalized message
  11907. * src/XML2SAXMetalinkProcessor.cc
  11908. * src/message.h
  11909. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11910. Forced download abort when received negative response from http/ftp
  11911. server.
  11912. * src/HttpResponseCommand.cc
  11913. * src/FtpNegotiationCommand.cc
  11914. * src/HttpResponse.cc
  11915. * src/FtpConnection.cc
  11916. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11917. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11918. the predecessor, Xml2MetalinkParser class.
  11919. I tested them against 94KB metalink file with 1234 chunk checksums.
  11920. The new one parsed it in 22msec, while it took 6000msec with old one.
  11921. * src/XML2SAXMetalinkProcessor.{h, cc}
  11922. * test/XML2SAXMetalinkProcessorTest.cc
  11923. * src/MetalinkParserController.{h, cc}
  11924. * test/MetalinkParserControllerTest.cc
  11925. * src/MetalinkParserState.h: Also added 16 subclasses.
  11926. * src/main.cc
  11927. * src/Metalink2RequestGroup.cc
  11928. * src/MetalinkHelper.cc
  11929. * src/MetalinkEntry.cc
  11930. * src/ChunkChecksum.h
  11931. Rewritten Base64 class for better performance.
  11932. * src/Base64.{h, cc}
  11933. * test/Base64Test.cc
  11934. * src/HttpRequest.cc
  11935. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11936. Fixed the bug#1841757: aria2 will connect to server to only get
  11937. file size.
  11938. * src/StreamFileAllocationEntry.cc
  11939. * src/option_processing.cc
  11940. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11941. downloads.
  11942. * src/FtpNegotiationCommand.cc
  11943. Suppressed wrong message when finding PreDownloadHandler
  11944. * src/RequestGroup.cc
  11945. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11946. Updated usage
  11947. * src/version_usage.cc
  11948. Updated man page
  11949. * doc/aria2c.1.txt
  11950. * doc/aria2c.1
  11951. Updated po files
  11952. * po/aria2c.pot
  11953. * po/*.po
  11954. * po/*.gmo
  11955. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11956. Eliminated g++-4.2 warning
  11957. * src/DownloadHandlerConstants.{h, cc}
  11958. * src/Util.cc
  11959. * test/MetaFileUtilTest.cc
  11960. * test/PStringBuildVisitorTest.cc
  11961. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11962. * src/RequestGroup.cc
  11963. * src/BtCheckIntegrityEntry.cc
  11964. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11965. Fixed a2io.h
  11966. * src/a2io.h
  11967. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11968. Added direct I/O support. The current implementation uses O_DIRECT,
  11969. which is not posix standard and is tested on linux 2.6.21.
  11970. Currently only file allocation uses direct I/O.
  11971. * src/SingleFileAllocationIterator.{h, cc}
  11972. * test/SingleFileAllocationIteratorTest.cc
  11973. * src/MultiFileAllocationIterator.{h, cc}
  11974. * test/MultiFileAllocationIteratorTest.cc
  11975. * src/BinaryStream.h
  11976. * src/DiskWriter.h
  11977. * src/AbstractDiskWriter.{h, cc}
  11978. * src/ByteArrayDiskWriter.h
  11979. * src/DiskAdaptor.h
  11980. * src/AbstractSingleDiskAdaptor.{h, cc}
  11981. * src/MultiDiskAdaptor.{h, cc}
  11982. * src/FileAllocationEntry.cc
  11983. * src/Util.{h, cc}
  11984. * src/OptionHandlerFactory.cc
  11985. * src/prefs.h
  11986. * src/version_usage.cc
  11987. * src/option_processing.cc
  11988. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11989. handleException.
  11990. * src/MultiFileAllocationIterator.cc
  11991. Added EINTR handling
  11992. * src/SocketCore.cc
  11993. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11994. Updated usage
  11995. * src/version_usage.cc
  11996. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11997. Applied Ross's patch for MinGW port.
  11998. * src/DownloadEngine.h
  11999. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12000. Set Content-Type to SingleFileDownloadContext when http response is
  12001. received.
  12002. * src/HttpResponseCommand.cc
  12003. * src/HttpResponse.{h, cc}
  12004. * test/HttpResponseTest.cc
  12005. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12006. Rewritten to add content-type support.
  12007. * src/DownloadHandler.{h, cc}
  12008. * src/BtPostDownloadHandler.{h, cc}
  12009. * test/BtPostDownloadHandlerTest.cc
  12010. * src/MetalinkPostDownloadHandler.{h, cc}
  12011. * test/MetalinkPostDownloadHandlerTest.cc
  12012. * src/PostDownloadHandler.{h, cc}
  12013. * src/DownloadHandlerConstants.{h, cc}
  12014. * src/RequestGroup.cc
  12015. * src/HttpResponseCommand.cc
  12016. * src/FtpNegotiationCommand.cc
  12017. * src/SingleFileDownloadContext.{h, cc}
  12018. * src/RequestGroup.h
  12019. * src/RequestGroupCriteria.h
  12020. * src/ContentTypeRequestGroupCriteria.h
  12021. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12022. If it is give, metalink/torrent file is not written to the disk, but
  12023. just is kept in memory. Parsing is occurred on memory.
  12024. * src/MetalinkHelper.{h, cc}
  12025. * src/MetalinkProcessor.h
  12026. * src/Xml2MetalinkProcessor.{h, cc}
  12027. * test/Xml2MetalinkProcessorTest.cc
  12028. * src/DownloadHandlerFactory.{h, cc}
  12029. * test/DownloadHandlerFactoryTest.cc
  12030. * src/PreDownloadHandler.{h, cc}
  12031. * src/OptionHandlerFactory.cc
  12032. * src/DefaultBtContext.{h, cc}
  12033. * test/DefaultBtContextTest.cc
  12034. * src/version_usage.cc
  12035. * src/Metalink2RequestGroup.{h, cc}
  12036. * src/RequestGroup.{h, cc}
  12037. * src/a2functional.h
  12038. * test/a2functionalTest.cc
  12039. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12040. * src/OptionHandlerImpl.h
  12041. * src/prefs.h
  12042. * src/Util.{h, cc}
  12043. * test/UtilTest.cc
  12044. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12045. memory usage.
  12046. * src/RequestGroupMan.{h, cc}
  12047. * src/DownloadEngine.cc
  12048. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12049. WeakHandle to SharedHandle because WeakHandle could be null.
  12050. * src/RequestGroup.{h, cc}
  12051. * src/DownloadEngineFactory.cc
  12052. * src/DownloadResult.h
  12053. Set totalLength after download finished
  12054. * src/UnknownLengthPieceStorage.{h, cc}
  12055. Keep torrent file specified in metalink in memory.
  12056. * src/Metalink2RequestGroup.cc
  12057. * src/BtDependency.cc
  12058. * src/TrueRequestGroupCriteria.h
  12059. Fixed the bug: seekg is used where seekp should be used.
  12060. * src/ByteArrayDiskWriter.cc
  12061. * test/ByteArraydiskWriterTest.cc
  12062. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12063. Fixed syntax error
  12064. * test/SequenceTest.cc
  12065. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12066. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12067. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12068. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12069. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12070. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12071. Added the check to see whether ares_host_callback accepts timeouts
  12072. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12073. * src/NameResolver.{h, cc}
  12074. * m4/libcares.m4
  12075. * configure.ac: Set C++ for language choice.
  12076. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12077. Fixed: compilation fails without c-ares/ares
  12078. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12079. Generate http/ftp commands only when download is incomplete.
  12080. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12081. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12082. Corrected typo. Examples are removed since they are available in man
  12083. page.
  12084. * src/version_usage.cc
  12085. Updated man page.
  12086. * doc/aria2c.1
  12087. * doc/aria2c.1.txt
  12088. * doc/makeman: Commented out sed command.
  12089. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12090. Throw DlAbortEx when a remote file is not found.
  12091. * src/HttpResponse.cc
  12092. * src/FtpNegotiationCommand.cc
  12093. * src/message.h
  12094. Overwrite an existing file if --allow-overwrite=true is given.
  12095. * src/RequestGroup.cc
  12096. Removed unused functions
  12097. * src/AbstractCommand.h
  12098. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12099. Removed 'extern' from 'extern typedef ...' in src/*.h
  12100. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12101. Updated usage
  12102. * src/version_usage.cc
  12103. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12104. Trim announce URL
  12105. * src/DefaultBtContext.cc
  12106. * test/ShaVisitorTest.cc
  12107. Trim argument s. Give trimed s to exception constructor.
  12108. * src/Util.cc (parseInt)(parseLLInt)
  12109. * test/UtilTest.cc
  12110. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12111. Set precision back to 1.
  12112. * src/ConsoleStatCalc.cc (calculateStat)
  12113. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12114. Replaced strtol with Util::parseInt
  12115. * src/ChunkedEncoding.cc
  12116. * src/HttpConnection.cc
  12117. * src/CookieBoxFactory.cc
  12118. * src/ParameterizedStringParser.cc
  12119. * src/Util.cc
  12120. * test/UtilTest.cc
  12121. * test/OptionHandlerTest.cc
  12122. * src/Request.cc
  12123. Throw exception when empty string is given. The message for exception
  12124. changed.
  12125. * src/Util.cc (parseInt)(parseLLInt)
  12126. * src/message.h
  12127. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12128. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12129. set to 1.
  12130. * src/ConsoleStatCalc.cc (calculateStat)
  12131. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12132. Preallocate non-requested file which is adjacent forward to requested
  12133. file('requested' files means the files given in --select-file option)
  12134. if they share a same piece.
  12135. This fixes long pause in the file system which doesn't support sparse
  12136. files like FAT32 while downloading.
  12137. * src/MultiFileAllocationIterator.{h, cc}
  12138. * test/MultiFileAllocationIteratorTest.cc
  12139. * src/FileEntry.{h, cc}
  12140. Removed unused _option.
  12141. * src/MultiDiskAdaptor.h
  12142. * test/MultiDiskAdaptorTest.cc
  12143. * src/DefaultPieceStorage.cc
  12144. Set the default value of --seed-ratio to 1.0.
  12145. If 0.0 is given, then seeding continues regardless of share ratio.
  12146. * src/version_usage.cc
  12147. * src/option_processing.cc
  12148. * src/BtSetup.cc
  12149. * doc/aria2c.1.txt
  12150. * doc/aria2c.1
  12151. Fixed: Selective download is not working in BitTorrent
  12152. * src/RequestGroup.cc
  12153. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12154. * src/PieceStorage.h
  12155. * test/MockPieceStorage.h
  12156. * src/UnknownLengthPieceStorage.h
  12157. * src/DefaultPieceStorage.{h, cc}
  12158. * src/Metalink2RequestGroup.cc
  12159. * src/RequestGroup.cc
  12160. * src/Sequence.h
  12161. * test/SequenceTest.cc
  12162. * src/IntSequence.h
  12163. * src/message.h
  12164. * src/Util.{h, cc}
  12165. * test/UtilTest.cc
  12166. Added new function 'parse' to catch exception thrown by subclass's
  12167. parseArg
  12168. * src/OptionHandler.h
  12169. * src/OptionParser.cc
  12170. * src/NameMatchOptionHandler.h
  12171. * src/OptionHandlerImpl.h
  12172. * test/OptionHandlerTest.cc
  12173. Added IntegerRangeOptionHandler. Used for --listen-port and
  12174. --select-file. Now --listen-port accepts range of port.
  12175. * src/OptionHandlerFactory.cc
  12176. * src/version_usage.cc
  12177. * src/OptionHandlerImpl.h
  12178. * src/option_processing.cc
  12179. * src/BtSetup.cc
  12180. * src/PeerListenCommand.{h, cc}
  12181. * doc/aria2c.1.txt
  12182. * doc/aria2c.1
  12183. Implemented operator< for Exception class to provide easy way to print
  12184. exception stack trace.
  12185. * src/Exception.{h, cc}
  12186. * src/main.cc
  12187. * src/option_processing.cc
  12188. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12189. * src/version_usage.cc
  12190. (showVersion): Reworked.
  12191. (showUsage): Added examples.
  12192. Removed Hint for total length and file name.
  12193. * src/Metalink2RequestGroup.cc
  12194. * src/RequestGroup.{h, cc}
  12195. * src/HttpResponseCommand.cc
  12196. * src/FtpNegotiationCommand.cc
  12197. Now --follow-torrent and --follow-metalink option work properly.
  12198. * src/RequestGroup.cc
  12199. Updated man page
  12200. * doc/aria2c.1.txt
  12201. * doc/aria2c.1
  12202. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12203. Removed.
  12204. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12205. Use Segment::operator==()
  12206. * src/HttpConnection.cc
  12207. * src/Segment.h
  12208. Updated usage
  12209. * src/version_usage.cc
  12210. Added EINTR treatment.
  12211. * src/SocketCore.cc
  12212. * src/AbstractDiskWriter.cc
  12213. Rewritten.
  12214. * src/Util.cc (rangedFileCopy)
  12215. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12216. Fixed typo.
  12217. * src/version_usage.cc
  12218. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12219. Implemented. Now -c option works fine.
  12220. * src/DefaultPieceStorage.cc (markPiecesDone)
  12221. * test/DefaultPieceStorageTest.cc
  12222. Removed.
  12223. * src/SegmentMan.{h, cc}
  12224. (markAllPiecesDone)
  12225. (markPieceDone)
  12226. Synchronized po files with
  12227. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12228. * src/fr.po
  12229. * src/ru.po
  12230. * src/de.po
  12231. * src/ja.po
  12232. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12233. Added ifdef and some modifications to compile without BitTorrent,
  12234. Metalink, MessageDigest
  12235. support.
  12236. * src/PieceHashCheckIntegrityEntry.cc
  12237. * src/MetalinkEntry.h
  12238. * src/version_usage.cc
  12239. * src/main.cc
  12240. * src/DownloadEngine.{h, cc}
  12241. * src/Metalink2RequestGroup.cc
  12242. * src/Peer.cc
  12243. * src/RequestGroup.cc
  12244. * src/MetalinkHelper.cc
  12245. * test/DefaultPieceStorageTest.cc
  12246. * test/MetalinkPostDownloadHandlerTest.cc
  12247. * test/Metalink2RequestGroupTest.cc
  12248. Hide TOTAL SPD when all downloads complete.
  12249. * src/ConsoleStatCalc.cc
  12250. Log target system information.
  12251. * src/main.cc
  12252. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12253. Now --metalink-location accepts a comma-deliminated list of locations.
  12254. * src/MetalinkEntry.{h, cc}
  12255. * test/MetalinkEntryTest.cc
  12256. * src/version_usage.cc
  12257. * src/Metalink2RequestGroup.cc
  12258. * src/Xml2MetalinkProcessor.cc
  12259. * test/Xml2MetalinkProcessorTest.cc
  12260. * doc/aria2c.1.txt
  12261. * doc/aria2c.1
  12262. * src/Util.cc (toUpper)(toLower): Rewritten.
  12263. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12264. Added the ability to detect duplicate download entry which is about to
  12265. download the same file other RequestGroup is downloading.
  12266. * src/RequestGroup.cc
  12267. * src/HttpResponseCommand.cc
  12268. * src/FtpNegotiationCommand.cc
  12269. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12270. Recalculates download progress when loading a control file,
  12271. if the piece length of DownloadContext is different from the one saved
  12272. in the control file. Currently in-flight pieces are ignored.
  12273. * src/DefaultBtProgressInfoFile.cc
  12274. * test/DefaultBtProgressInfoFileTest.cc
  12275. * src/Util.{h, cc}
  12276. * test/UtilTest.cc
  12277. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12278. Do not rotate tiers in announce-list.
  12279. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12280. AnnounceList::allTiersFailed() used instead to detect whether all
  12281. tiers are tried and failed.
  12282. * test/DefaultBtAnnounceTest.cc
  12283. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12284. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12285. * test/AnnounceListTest.cc
  12286. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12287. clause. Catch RecoverableException instead of DlRetryEx instead.
  12288. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12289. Implemented checksum validation feature(1 checksum for each file)
  12290. The validation takes place after the download.
  12291. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12292. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12293. * src/CheckIntegrityCommand.cc: Changed log message.
  12294. * src/Metalink2RequestGroup.cc: Set checksum to
  12295. SingleFileDownloadContext.
  12296. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12297. PieceHashCheckIntegrity class.
  12298. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12299. PieceHashCheckIntegrity class.
  12300. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12301. * src/IteratableValidator.h: New class.
  12302. * src/message.h
  12303. * src/CheckIntegrityEntry.{h, cc}
  12304. * src/IteratableChunkChecksumValidator.{h, cc}
  12305. * src/SingleFileDownloadContext.h
  12306. * src/DownloadCommand.cc
  12307. --allow-overwrite=true is no longer needed to check file integrity
  12308. before download in BitTorrent download.
  12309. * src/RequestGroup.cc (getInitialCommand)
  12310. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12311. throws exception.
  12312. * src/RequestGroupMan.cc (getInitialCommands)
  12313. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12314. urlencode the given url inside Request::parseUrl(...)
  12315. * src/Request.{h, cc}
  12316. * src/Util.{h, cc}
  12317. * test/RequestTest.cc
  12318. Removed #!metalink3! notation support because it is deleted from
  12319. the metalink specification.
  12320. * src/Request.{h, cc}
  12321. * test/RequestTest.cc
  12322. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12323. Don't connect server before checking file integrity at startup, if
  12324. filesize and output file path are known.
  12325. * src/AbstractCommand.cc
  12326. * src/StreamFileAllocationEntry.cc
  12327. * src/Metalink2RequestGroup.cc
  12328. * src/RequestGroup.{h, cc}
  12329. * src/HttpResponseCommand.cc
  12330. * src/FtpNegotiationCommand.cc
  12331. Added DownloadFailureException. If it is thrown, RequestGroup should
  12332. halt.
  12333. * src/AbstractCommand.cc
  12334. * src/DownloadFailureException.h
  12335. * src/RequestGroup.cc
  12336. Catch RecoverableException, instead of DlAbortEx.
  12337. * src/RequestGroupMan.cc
  12338. * src/FillRequestGroupCommand.cc
  12339. * src/MetaFileUtil.cc
  12340. * src/IteratableChunkChecksumValidator.cc
  12341. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12342. getGID())
  12343. * src/CheckIntegrityCommand.cc
  12344. * src/message.h
  12345. Print gid instead of idx.
  12346. * src/RequestGroupMan.cc
  12347. Removed exception throwers declaration.
  12348. * src/DirectDiskAdaptor.{h, cc}
  12349. * src/SocketCore.{h, cc}
  12350. * src/MultiDiskAdaptor.{h, cc}
  12351. * src/HttpConnection.{h, cc}
  12352. * src/HttpResponse.{h, cc}
  12353. * src/DiskAdaptor.{h, cc}
  12354. * src/CopyDiskAdaptor.{h, cc}
  12355. * src/MultiDiskAdaptor.{h, cc}
  12356. * src/HttpHeaderProcessor.{h, cc}
  12357. * src/AbstractSingleDiskAdaptor.{h, cc}
  12358. * src/Util.{h, cc}
  12359. * test/UtilTest.cc
  12360. * src/DefaultDiskWriter.{h, cc}
  12361. * src/FtpConnection.{h, cc}
  12362. * src/AbstractDiskWriter.{h, cc}
  12363. Removed duplicate code.
  12364. * src/StreamCheckIntegrityEntry.cc
  12365. Removed unnecessary include.
  12366. * src/DiskWriter.h
  12367. Included Exception.h
  12368. * src/option_processing.cc
  12369. Included 2 files and added doc
  12370. * src/TrackerWatcherCommand.cc
  12371. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12372. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12373. Changed CheckIntegrityEntry interface so that it can define
  12374. the action when all the chunk checksums are valid.
  12375. * src/CheckIntegrityEntry.h
  12376. * src/StreamCheckIntegrityEntry.{h, cc}
  12377. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12378. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12379. to exit rather than doing seeding. So, it would be good to toggle this
  12380. behavior.
  12381. * src/CheckIntegrityCommand.cc
  12382. * src/AbstractCommand.cc
  12383. * src/RequestGroup.cc
  12384. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12385. Reflect the download length of in-flight pieces.
  12386. It makes the download length readout more precise.
  12387. * src/DefaultPieceStorage.{h, cc}
  12388. * test/DefaultPieceStorageTest.cc
  12389. * src/a2functional.h
  12390. * test/a2functionalTest.cc
  12391. Lower CPU load when --max-download-limit is used.
  12392. There is up and down in speed indicator when enabling
  12393. http-pipelining but a download goes well. I think the problem is that
  12394. because http-pipelining is enabled, DownloadCommand is created for
  12395. each segment and in its constructor, PeerStat::downloadStart() is
  12396. called. In PeerStat::downloadStart(), speed calculation object is
  12397. reseted, which makes download speed zero.
  12398. * src/DownloadCommand.cc
  12399. Rewritten using accumulate.
  12400. * src/RequestGroupMan.cc (calculateStat)
  12401. Code clearnup.
  12402. * src/FtpNegotiationCommand.cc
  12403. * src/HttpResponseCommand.cc
  12404. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12405. Fixed: Can not resume: aria2 reports download already finished.
  12406. * src/AbstractCommand.{h, cc}
  12407. * src/HttpResponseCommand.cc
  12408. * src/FtpNegotiateCommand.cc
  12409. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12410. Now a file is stored in the directory specified in .metalnk file
  12411. (file[@name]).
  12412. * src/Metalink2RequestGroup.cc
  12413. Create the directory structure when opening the file if it doesn't
  12414. exist.
  12415. * src/AbstractDiskWriter.cc
  12416. * src/Util.{h, cc}
  12417. * src/File.h
  12418. * test/UtilTest.cc
  12419. Removed file name comparison
  12420. * src/Metalink2RequestGroup.cc
  12421. * src/HttpResponseCommand.cc
  12422. Rewritten using Util::mkdirs()
  12423. * src/FileEntry.cc (setupDir)
  12424. * test/FileEntryTest.cc
  12425. Updated doc
  12426. * src/SingleFileDownloadContext.h
  12427. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12428. Now SleepCommand dispatches nextCommand when halt is requested.
  12429. It avoids a possible long wait after hitting CTRL-C.
  12430. * src/SleepCommand.{h, cc}
  12431. * src/RequestGroupAware.{h, cc}
  12432. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12433. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12434. to open listen port, then remove the port number from the tracker
  12435. request.
  12436. * src/DefaultBtAnnounce.cc
  12437. * test/DefaultBtAnnounceTest.cc
  12438. * test/MockPieceStorage.h
  12439. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12440. them more testable.
  12441. * src/DefaultBtAnnounce.{h, cc}
  12442. * src/DefaultBtContext.{h, cc}
  12443. * src/Util.{h, cc}
  12444. * test/DefaultBtAnnounceTest.cc
  12445. * test/DefaultBtContextTest.cc
  12446. * test/UtilTest.cc
  12447. Added 'B' to upload bytes readout.
  12448. * src/ConsoleStatCalc.cc
  12449. Now the listen port for BitTorrent download is opened when it is
  12450. needed.
  12451. * src/DownloadEngineFactory.cc
  12452. * src/BtSetup.{h, cc}
  12453. * src/PeerListenCommand.{h, cc}
  12454. Now an exception thrown while parsing tracker response is now logged.
  12455. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12456. called, which means no retry is made in this case, assuming a tracker
  12457. has a problem.
  12458. * src/TrackerWatcherCommand.cc
  12459. Fixed: downloading a file whose length is unkown fails.
  12460. * src/DownloadCommand.cc
  12461. Simplified prepareForNextSegment()
  12462. * src/DownloadCommand.cc
  12463. Updated
  12464. * po/POTFILES.in
  12465. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12466. Re-implemented a file listing for Metalink, which was dropped while
  12467. http/ftp/torrent integration was being implemented.
  12468. * src/MetalinkHelper.{h, cc}: New class.
  12469. * test/MetalinkHelperTest.cc
  12470. * src/main.cc
  12471. * src/Metalink2RequestGroup.cc
  12472. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12473. Added the ability to display the detailed torrent file information.
  12474. Now -S option gives not only a file listing, but also total download
  12475. length, info hash, announce URI, piece length, the number of pieces,
  12476. and mode(single or multi-torrent).
  12477. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12478. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12479. KiB)
  12480. * test/UtilTest.cc
  12481. * src/main.cc
  12482. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12483. Added ftp://USER:PASSWD@Servername automatic parsing.
  12484. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12485. _password. Recognize username and password in URI.
  12486. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12487. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12488. * src/RequestFactory.{h, cc}: Removed.
  12489. * src/AuthConfigFactory.{h, cc}: New class.
  12490. * src/FtpConnection.cc: Use AuthConfigFactory.
  12491. * src/HttpRequest.cc: Use AuthConfigFactory.
  12492. * test/HttpRequestTest.cc: Updated.
  12493. * test/RequestTest.cc: Updated.
  12494. * test/AuthConfigFactoryTest.cc: New class.
  12495. * test/RequestFactoryTest.cc: Removed.
  12496. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12497. Use RequestGroup::allDownloadFinished() to decide whether the control
  12498. file should be removed or saved.
  12499. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12500. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12501. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12502. Use File::renameTo()
  12503. * src/DefaultBtProgressInfoFile.cc
  12504. Added --no-file-allocation-limit command-line option.
  12505. * src/version_usage.cc
  12506. * src/option_processing.cc
  12507. * src/OptionHandlerFactory.cc
  12508. * src/RequestGroup.{h, cc}
  12509. * src/BtCheckIntegrityEntry.cc
  12510. * src/StreamCheckIntegrityEntry.cc
  12511. * src/prefs.h
  12512. * doc/aria2c.1.txt
  12513. * doc/aria2c.1
  12514. Now prealloc is the default value for --file-allocation option.
  12515. * src/version_usage.cc
  12516. * src/option_processing.cc
  12517. * doc/aria2c.1.txt
  12518. * doc/aria2c.1
  12519. Don't URL-encode user-agent.
  12520. * src/HttpRequest.cc
  12521. Updated translations
  12522. * po/LINGUAS: Added nl for Dutch translation.
  12523. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12524. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12525. * po/POTFILES.in: Updated.
  12526. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12527. Added the ability to recognize url-list in a torrent file.
  12528. The retrieved URLs are attached to the corresponding FileEntry.
  12529. * src/DefaultBtContext.{h, cc}
  12530. * src/FileEntry.{h, cc}
  12531. * test/DefaultBtContextTest.cc
  12532. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12533. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12534. after the download finishes.
  12535. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12536. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12537. the data smaller than block length.
  12538. A block length can be specified by constructor's argument.
  12539. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12540. Get a missing piece in the range of given FileEntry. This function is
  12541. not used in the program yet.
  12542. * src/Util.h: Added some macros.
  12543. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12544. Added HTTP/1.1 keep alive and pipelining support.
  12545. See --enable-http-keep-alive and --enable-http-pipelining option.
  12546. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12547. Segment.
  12548. * src/HttpDownloadCommand.{h, cc}
  12549. * src/OptionHandlerFactory.cc
  12550. * src/HttpConnection.{h, cc}
  12551. * src/version_usage.cc
  12552. * src/HttpInitiateConnectionCommand.cc
  12553. * src/FtpInitiateConnectionCommand.cc
  12554. * src/Segment.h
  12555. * src/HttpRequestCommand.{h, cc}
  12556. * src/option_processing.cc
  12557. * src/prefs.h
  12558. * src/HttpResponseCommand.cc
  12559. * src/SegmentMan.{h, cc}
  12560. * src/FtpNegotiateCommand.cc
  12561. * src/HttpProxyResponseCommand.cc
  12562. * src/Request.cc
  12563. * src/HttpRequest.cc
  12564. * src/DownloadCommand.cc
  12565. * test/HttpRequestTest.cc
  12566. * test/RequestTest.cc
  12567. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12568. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12569. finished.
  12570. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12571. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12572. catching it inside the method.
  12573. When no file entry is found in a metalink without querying user
  12574. preferences, throw the exception with the error message that suggests
  12575. metalink file is probably broken.
  12576. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12577. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12578. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12579. processed.
  12580. * src/RequestGroupMan.cc (removeStoppedGroup)
  12581. Added debug message.
  12582. * src/BtPostDownloadHandler.cc
  12583. * src/MetalinkPostDownloadHandler.cc
  12584. * src/PostDownloadHandler.{h, cc}
  12585. * src/RequestGroup.cc
  12586. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12587. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12588. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12589. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12590. stops and there are any unfinished or in-progress downloads.
  12591. Added the legend of "stat".
  12592. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12593. Throw exception when chunck checksum verification fails.
  12594. * src/DownloadCommand.cc (validatePieceHash): New function.
  12595. * src/PiecedSegment.{h, cc} (clear): New function.
  12596. * src/GrowSegment.{h, cc} (clear): New function.
  12597. * src/Segment.h (clear): New function.
  12598. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12599. * test/SegmentTest.cc
  12600. * test/GrowSegmentTest.cc
  12601. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12602. Do not send referer when redirected.
  12603. * src/Request.cc (redirectUrl)
  12604. * test/RequestTest.cc
  12605. * test/HttpRequestTest.cc
  12606. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12607. Implemented BitTorrent/http/ftp integrated download.
  12608. I've rewritten lots of files and now some headers have forward
  12609. class declarations to reduce compile time.
  12610. The implementation is extremely alpha stage, I recommend to use this
  12611. for testing purpose only.
  12612. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12613. Fixed the compilation error on 64bit platform.
  12614. * test/HttpHeaderProcessorTest.cc
  12615. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12616. Merged Ross's patch that fixes compilation problem in MinGW
  12617. * test/DefaultBtProgressInfoFileTest.cc
  12618. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12619. Updated fr.po by sebone
  12620. * po/fr.po
  12621. Updated man page.
  12622. * doc/aria2c.1.txt
  12623. * Release 0.11.3
  12624. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12625. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12626. failure in Metalink.
  12627. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12628. Automatically save *.aria2 control file of http/ftp download in every
  12629. 60 seconds.
  12630. * src/AutoSaveCommand.{h, cc}: New class.
  12631. * src/TimeBasedCommand.{h, cc}: New class.
  12632. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12633. Disable parameterized URI support by default. Added -P option to
  12634. enable the feature.
  12635. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12636. * src/OptionHandlerFactory.cc
  12637. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12638. Updated Japanese translation.
  12639. * po/ja.po
  12640. Updated man page.
  12641. * doc/aria2c.1.txt
  12642. * Release 0.11.3-rc
  12643. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12644. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12645. it is successful, then renamed to *.aria2.
  12646. This prevents *.aria2 file from being truncated or corrupted when
  12647. file system becomes out of space.
  12648. * src/DefaultBtProgressInfoFile.cc (save)
  12649. * src/SegmentMan.cc (save)
  12650. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12651. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12652. Reduced the fragmentation of bitfield in http/ftp download.
  12653. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12654. * test/BitfieldManTest.cc
  12655. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12656. Added the ability to disable segmented download in .metalink.
  12657. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12658. 'url' tag.
  12659. * src/MetalinkEntry.{h, cc}
  12660. * src/RequestResource.{h, cc}
  12661. * src/MetalinkRequestInfo.cc
  12662. * src/Xml2MetalinkProcessor.cc
  12663. * test/Xml2MetalinkProcessorTest.cc
  12664. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12665. Added parameterized URI support.
  12666. * src/main.cc: -Z option added.
  12667. * src/OptionHandlerFactory.cc
  12668. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12669. * src/PStringDatum.h: New class.
  12670. * src/PStringSegment.{h,cc}: New class.
  12671. * src/PStringNumLoop.h: New class.
  12672. * src/PStringSelect.h: New class.
  12673. * src/NumberDecorator.h: New class.
  12674. * src/FixedWidthNumberDecorator.h: New class.
  12675. * src/AlphaNumberDecorator.h: New class.
  12676. * src/PStringVisitor.h: New class.
  12677. * src/PStringBuildVisitor.{h,cc}: New class.
  12678. * src/ParameterizedStringParser.{h,cc}: New class.
  12679. * src/Util.{h,cc}
  12680. (isNumber): New function.
  12681. (isLowercase): New function.
  12682. (isUppercase): New function.
  12683. (alphaToNum): New function.
  12684. * test/ParameterizedStringParserTest.cc: New class.
  12685. * test/AlphaNumberDecoratorTest.cc: New class.
  12686. * test/PStringBuildVisitorTest.cc: New class.
  12687. * test/UtilTest.cc
  12688. (testIsNumber): New function.
  12689. (testIsLowercase): New function.
  12690. (testIsUppercase): New function.
  12691. (testAlphaToNum): New function.
  12692. Added '\n' after the error message
  12693. * src/RequestInfo.h (printDownloadAbortMessage)
  12694. Added auto file renaming feature in http(s)/ftp download.
  12695. * src/main.cc: Added --auto-file-renaming command-line option.
  12696. * src/OptionHandlerFactory.cc
  12697. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12698. * src/RequestGroup.{h, cc}
  12699. (shouldCancelDownloadForSafety): Rewritten
  12700. (tryAutoFileRenaming): New function.
  12701. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12702. * src/HttpResponseCommand.cc
  12703. (executeInternal): Removed the call to RequestGroupMan::
  12704. isSameFileBeingDownloaded()
  12705. * src/FtpNegotiateCommand.cc
  12706. (recvSize): Removed the call to RequestGroupMan::
  12707. isSameFileBeingDownloaded()
  12708. * test/RequestGroupTest.cc: New class.
  12709. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12710. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12711. IO.
  12712. * src/DefaultBtProgressInfoFile.cc
  12713. * src/MetaFileUtil.cc
  12714. * src/SimpleLogger.cc
  12715. * src/SegmentMan.cc
  12716. * src/Util.cc
  12717. * src/Platform.cc
  12718. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12719. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12720. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12721. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12722. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12723. Fixed the bug that prevents file allocation is not done when
  12724. dowloading multi-torrent file.
  12725. * src/AbstractDiskWriter.cc (openFile)
  12726. Increase the maximum number of -j option from 15 to 45.
  12727. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12728. Added fr.po, thanks to Charles Landemaine.
  12729. * po/fr.po
  12730. * po/LINGUAS
  12731. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12732. gcc 3.4.4 support:
  12733. * src/DefaultBtContext.cc: int32_t -> int
  12734. * src/main.cc: int -> int32_t, int32_t -> int
  12735. * src/messageDigest.h: uint32_t -> unsigned int
  12736. * src/NameResolver.h: int32_t -> int
  12737. * src/PeerConnection.cc: int -> int32_t
  12738. * src/SpeedCalc.cc: int32_t -> int
  12739. * src/TrackerUpdateCommand.h: int -> int32_t
  12740. * src/Util.cc: int32_t -> int
  12741. * src/Util.h: int32_t -> int
  12742. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12743. * test/AnnounceListTest.cc: int -> int32_t
  12744. * test/ChunkedEncodingTest.cc: int -> int32_t
  12745. * test/DataTest.cc: int -> int32_t
  12746. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12747. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12748. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12749. * test/FeatureConfigTest.cc: int -> int32_t
  12750. * test/MetalinkEntryTest.cc: int -> int32_t
  12751. * test/MockBtRequestFactory.h: int -> int32_t
  12752. * test/MockPieceStorage.h: int -> int32_t
  12753. * test/OptionTest.cc: int -> int32_t
  12754. * test/RequestTest.cc: int -> int32_t
  12755. * test/SegmentManTest.cc: int -> int32_t
  12756. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12757. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12758. Move sleep functions to Util class:
  12759. * src/Util.cc
  12760. (sleep): New function.
  12761. (usleep): New function.
  12762. * src/DownloadCommand.cc: sleep -> Util::sleep
  12763. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12764. MinGW build enhancements. The following files are added:
  12765. * src/timegm.{c,h}
  12766. Changes to support the above new files:
  12767. * configure.ac
  12768. * src/Makefile.am
  12769. * src/a2time.h
  12770. * src/Util.cc:
  12771. * src/strptime.c: Added support for %Z option.
  12772. Fixed MinGW non-blocking bug.
  12773. * src/SocketCore.cc
  12774. * src/HttpRequestCommand.cc
  12775. Miscellenous build fixes/enhancements.
  12776. * configure.ac: Added summary report.
  12777. * src/Platform.h: Tweaked #include's.
  12778. * src/a2netcompat.h: Tweaked #include's.
  12779. * src/strptime.h: Tweaked #include's.
  12780. * src/gai_strerror.c: Tweaked #include's.
  12781. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12782. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12783. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12784. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12785. Increased the initial connection size in BitTorrent download to 40.
  12786. * src/BtRuntime.h
  12787. Added the usage message of --peer-id-prefix option.
  12788. * src/main.cc
  12789. * Release 0.11.2
  12790. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12791. MessageDigestHelper is introduced in order to simplify the use
  12792. of message digest. Removed repeated code.
  12793. The message digest algorithm is now specified by string, like "sha1",
  12794. "md5".
  12795. * src/messageDigest.{h, cc}
  12796. * src/MessageDigestHelper.{h, cc}: New class.
  12797. * src/DefaultPieceStorage.cc
  12798. * src/DefaultBtContext.{h, cc}
  12799. (computeFastSet): New function.
  12800. (setInfoHash): Added for unit testing.
  12801. (setNumPieces): Added for unit testing.
  12802. * src/DefaultBtInteractive.cc
  12803. * src/BtPieceMessage.cc
  12804. * src/Peer.cc
  12805. * src/Checksum.h
  12806. * src/message.h
  12807. * src/IteratableChecksumValidator.h
  12808. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12809. inside it.
  12810. * src/SegmentMan.{h, cc}
  12811. (checkIntegrity): Removed.
  12812. * src/IteratableChunkChecksumValidator.{h, cc}
  12813. * src/Util.h
  12814. (sha1Sum): Removed.
  12815. (simpleMessageDigest): Removed.
  12816. (fileChecksum): Removed.
  12817. (computeFastSet): Removed.
  12818. * src/ShaVisitor.cc
  12819. * src/ChunkChecksum.h
  12820. * src/DownloadCommand.cc
  12821. Removed messageDigest virtual functions.
  12822. * src/MultiDiskAdaptor.{h, cc}
  12823. * src/DiskAdaptor.h
  12824. * src/ByteArrayDiskWriter.h
  12825. * src/DiskWriter.h
  12826. * src/DiskAdaptorWriter.h
  12827. * src/AbstractSingleDiskAdaptor.{h, cc}
  12828. * src/AbstractDiskWriter.{h, cc}
  12829. Fixed comilation error when message digest is disabled.
  12830. * src/MetalinkEntry.{h, cc}
  12831. * src/MetalinkRequestInfo.cc
  12832. Removed srandom and random.
  12833. * src/SimpleRandomizer.h
  12834. Added size() virtual function to DiskAdaptor
  12835. * src/MultiDiskAdaptor.h
  12836. Fixed the bug that causes that files are not opened correctly in
  12837. multi-file torrent.
  12838. * src/TorrentRequestInfo.cc
  12839. * src/MultiDiskAdaptor.cc
  12840. Added SHA256 support
  12841. * src/messageDigest.cc
  12842. * src/Xml2MetalinkProcessor.cc
  12843. Show supported message digest algorithms
  12844. * src/main.cc
  12845. Updated contact info.
  12846. * src/main.cc
  12847. Applied Ross's patch
  12848. * src/a2netcompat.h
  12849. * src/main.cc
  12850. Fixed the bug that prevents a remote metalink from not being processed
  12851. even if '-o foo.metalink' is specified.
  12852. * src/MetalinkRequestInfo.cc
  12853. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12854. Merged Dan's patch:
  12855. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12856. Use va_copy to avoid core dump on amd64:
  12857. * src/SimpleLogger.cc
  12858. Updated contact info.
  12859. * src/main.cc
  12860. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12861. digest is not available.
  12862. * src/MetalinkEntry.h
  12863. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12864. Make a2netcompat.h include a2io.h to fix compilation error:
  12865. * src/a2netcompat.h
  12866. * src/SocketCore.cc: Removed include of a2io.h
  12867. * src/Util.cc: Removed include of a2io.h
  12868. Gather time related functions to a2time.h:
  12869. * src/a2time.h: New file.
  12870. * src/DefaultPeerStorage.cc
  12871. * src/SimpleLogger.cc
  12872. * src/Util.{h, cc}
  12873. * src/SimpleRandomizer.h
  12874. * src/TimeA2.{h,cc}
  12875. * src/DownloadCommand.cc
  12876. * src/main.cc
  12877. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12878. a2netcompat.h:
  12879. * src/NameResolver.cc
  12880. Fixed compilation error without openssl:
  12881. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12882. Added default block to suppress compiler warnings:
  12883. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12884. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12885. MinGW build enhancements. The following files are added:
  12886. * src/gai_strerror.{c,h}
  12887. * src/gettimeofday.{c,h}
  12888. Changes to support the above new files:
  12889. * configure.ac
  12890. * src/Makefile.am
  12891. * src/a2netcompat.h
  12892. * src/TimeA2.cc
  12893. * src/DefaultPeerStorage.cc
  12894. * src/NameResolver.cc: removed mingw_strerror() function.
  12895. * src/SocketCore.cc: removed mingw_strerror() function.
  12896. Miscellaneous MinGW build fixes.
  12897. * src/a2io.h: Use _lseeki64() instead of lseek()
  12898. * src/common.h
  12899. * src/DefaultFileAllocator.cc
  12900. * src/GlowFileAllocator.cc
  12901. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12902. * src/NameResolver.cc
  12903. (callback): Changed int32_t to int.
  12904. (resolve): Changed int32_t to int.
  12905. * src/Platform.cc
  12906. * src/Platform.h
  12907. * test/MultiDiskWriterTest.cc
  12908. * test/PeerMessageUtilTest.cc
  12909. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12910. Other enhancements and fixes.
  12911. * src/HttpRequestCommand.cc
  12912. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12913. * src/SocketCore.cc:
  12914. (error): New function to abstract errno/WSAGetLastError().
  12915. (errorMsg): New function to abstract errno/WSAGetLastError().
  12916. (initiateSecureConnection): Added more detailed error reporting.
  12917. * src/SocketCore.h: Added private variable blocking, to allow
  12918. proper handling of OpenSSL psuedo-errors.
  12919. * src/message.h
  12920. (EX_SSL_INIT_FAILURE)
  12921. (EX_SSL_IO_ERROR)
  12922. (EX_SSL_PROTOCOL_ERROR)
  12923. (EX_SSL_UNKNOWN_ERROR)
  12924. (EX_SSL_CONNECT_ERROR)
  12925. (EX_SOCKET_BLOCKING)
  12926. (EX_SOCKET_NONBLOCKING)
  12927. (EX_SOCKET_UNKNOWN_ERROR)
  12928. * src/Util.cc
  12929. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12930. reserved name.
  12931. (httpGMT): Fixed typo.
  12932. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12933. Merged Ross's win32 patch(manually)
  12934. In the course of merging, following files are added.
  12935. * src/strptime.{h,c}
  12936. * src/libgen.{h,c}
  12937. * src/inet_aton.{h,c}
  12938. * src/Platform.{h,cc}
  12939. * src/localtime_r.{h,c}
  12940. * src/getaddrinfo.{h,c}
  12941. I've gethered network related things, and put them to following file:
  12942. * src/a2netcompat.h
  12943. Also io related things are put to following file:
  12944. * src/a2io.h
  12945. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12946. * src/message.h
  12947. (MSG_ALLOCATION_COMPLETED)
  12948. (EX_TOO_LARGE_FILE)
  12949. (EX_SIZE_MISMATCH)
  12950. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12951. (EX_INVALID_CHUNK_CHECKSUM)
  12952. (EX_INVALID_RANGE_HEADER)
  12953. * src/FileAllocationCommand.cc
  12954. * src/HttpResponse.cc
  12955. * src/RequestGroup.cc
  12956. * src/MultiDiskAdaptor.cc
  12957. * src/OptionHandlerImpl.h
  12958. * src/HttpResponseCommand.cc
  12959. * src/FtpNegotiateCommand.cc
  12960. * src/IteratableChecksumValidator.cc
  12961. * src/SegmentMan.cc
  12962. * src/ChunkChecksumValidator.cc
  12963. Added Randomizer::getRandomNumber(long int)
  12964. * src/Randomizer.h (getRandomNumber)
  12965. * src/SimpleRandomizer.h (getRandomNumber)
  12966. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12967. * src/Util.cc (randomAlpha): Use this new function.
  12968. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12969. Converted int's to in32_t. long long int's are also converted to
  12970. int64_t
  12971. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12972. Fixed the bug that prevents cookies from being sent to the server
  12973. if the domain of cookie is FQDN and starts with ".".
  12974. * src/Cookie.cc (match)
  12975. To add the ability to change peer id.
  12976. * src/DefaultBtContext.h
  12977. (_peerIdPrefix): New variable
  12978. (setPeerIdPrefix): New function.
  12979. * src/torrentRequestInfo.cc
  12980. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12981. DefaultBtContext.
  12982. * src/main.cc (main): Added peer-id-prefix command-line option.
  12983. The usage message is not added yet.
  12984. * src/DefaultBtContext.cc
  12985. (generatePeerId): Use _peerIdPrefix.
  12986. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12987. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12988. Fixed the bug that prevents filename in content-disposition from
  12989. being retrieved when filename is not quoted.
  12990. * src/Util.cc (getContentDispositionFilename)
  12991. Fixed the bug that causes infinate loop and memory leak when file open
  12992. operation failed.
  12993. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12994. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12995. Fixed the bug that causes segfault when all URIs specified are
  12996. unsupported.
  12997. * src/RequestGroupMan.cc (getInitialCommands)
  12998. Check if RequestGroup::createNextCommand() returns empty list of
  12999. commands.
  13000. * src/RequestGroup.cc (createNextCommand)
  13001. Change log level from info to error so that users can notice that
  13002. an error occurred.
  13003. Fixed the bug that causes segfault when a zero-sized file is
  13004. downloaded.
  13005. * src/BitfieldMan.cc (isAllBitSet)
  13006. Return true if bitfieldLength is 0.
  13007. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13008. * src/main.cc
  13009. (showUsage): Added 3 usage examples for metalink download.
  13010. Replace MetalinkChunkChecksum with ChunkChecksum.
  13011. * src/MetalinkChunkChecksum.h: Removed.
  13012. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13013. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13014. * src/Xml2MetalinkProcessor.cc
  13015. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13016. * src/MetalinkRequestInfo.cc (execute)
  13017. * Release 0.11.1
  13018. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13019. Reads URIs from stdin when "-i -" is specified.
  13020. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13021. * src/UriListParser.h, src/UriListParser.cc: New class.
  13022. * src/StreamUriListParser.h: New class.
  13023. * src/FileUriListParser.h: New class.
  13024. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13025. instead of UriFileListParser.
  13026. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13027. Made console readout more readable.
  13028. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13029. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13030. Fix the bug that causes -s option not to work.
  13031. * src/main.cc (main)
  13032. * src/a2algo.h: New file.
  13033. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13034. Create directory structure specified in metalink file.
  13035. * src/RequestGroup.h, src/RequestGroup.cc
  13036. (initAndOpenFile): Create a directory to store files if it does not
  13037. exist.
  13038. (getDir): New function.
  13039. Added ETA and download speed for an individual file to readout.
  13040. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13041. * src/RequestGroup.h
  13042. (calculateDownloadSpeed): New function.
  13043. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13044. Made -S option work with metalink file and provided selective download
  13045. to metalink.
  13046. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13047. (filename): Removed.
  13048. (file): New variable.
  13049. (size): Removed.
  13050. (operator=): Updated.
  13051. (getPath): New function.
  13052. (getLength): New function.
  13053. (toFileEntry): New function.
  13054. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13055. (execute): Use toStream.
  13056. (showFileEntry): Removed.
  13057. * src/MetalinkRequestInfo.h
  13058. (targetFiles): New variable.
  13059. (setTargetFiles): New variable.
  13060. * src/MetalinkRequestInfo.cc
  13061. (execute): Added the ability to print file information included in
  13062. a metalink file.
  13063. Added selective download mode to metalink.
  13064. * src/main.cc
  13065. (showUsage): Updated to denote that -S and --select-file options are
  13066. applicable to metalink.
  13067. * src/FileEntry.h
  13068. (operator=): New function.
  13069. (getBasename): New function.
  13070. (getDirname): New function.
  13071. * src/Util.h, src/Util.cc
  13072. (toStream): New function.
  13073. * src/Xml2MetalinkProcessor.cc: Updated.
  13074. Made aria2 work with metalink with directory structure.
  13075. * src/File.h, src/File.cc
  13076. (getBasename): New function.
  13077. (getDirname): New function.
  13078. * src/RequestGroup.h, src/RequestGroup.cc
  13079. (_topDir): New variable.
  13080. (setTopDir): New function.
  13081. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13082. Rewrote HTTP header parsing with stringstream.
  13083. * src/HttpConnection.h, src/HttpConnection.cc
  13084. (HttpRequestEntry): New class.
  13085. (headerBuf): Removed.
  13086. (headerBufLength): Removed.
  13087. (outstandingHttpRequests): Now its element type is
  13088. HttpRequestEntryHandle.
  13089. (findEndOfHeader): Removed.
  13090. (receiveResponse): Rewritten.
  13091. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13092. Updated doc for -j option to notice that it should be used with -i
  13093. option.
  13094. * src/main.cc (showUsage)
  13095. Removed unused classes.
  13096. * src/RequestInfo.h
  13097. (FileInfo): Removed.
  13098. (checksum): Removed.
  13099. (fileInfo): Removed.
  13100. (setChecksum): Removed.
  13101. (getChecksum): Removed.
  13102. (getFileInfo): Removed.
  13103. Use ISO units.
  13104. * src/ConsoleDownloadEngine.cc
  13105. * src/TorrentConsoleDownloadEngine.cc
  13106. * src/Util.cc (abbrevSize)
  13107. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13108. Added the default listening ports to the help message.
  13109. * src/main.cc (showUsage)
  13110. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13111. Reduce the number of calls to gettimeofday to lower CPU load.
  13112. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13113. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13114. * src/Peer.h (calculateUploadSpeed): New function.
  13115. (calculateDownloadSpeed): New function.
  13116. * src/DefaultPeerStorage.cc
  13117. (CalculateStat): Added _now variable.
  13118. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13119. and Peer::calculateUploadSpeed(const struct timeval&)
  13120. Drop connection if no request or piece message is exchanged in
  13121. a certain interval.
  13122. * src/DefaultBtInteractive.h
  13123. (btRuntime): New variable.
  13124. (inactiveCheckPoint): New variable.
  13125. (checkActiveInteraction): New function.
  13126. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13127. request or piece message is received.
  13128. (checkActiveInteraction): New function.
  13129. (doInteractionProcessing): Call checkActiveInteraction.
  13130. Fixed the bug that causes remote Metalink and Torrent files are not
  13131. processed.
  13132. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13133. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13134. Changed format of log file.
  13135. * src/SimpleLogger.cc
  13136. * Release 0.11.0
  13137. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13138. * src/AbstractCommand.cc
  13139. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13140. MSG_MAX_TRY from error to info.
  13141. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13142. * src/message.h
  13143. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13144. (MSG_DOWNLOAD_ABORTED): Added %s.
  13145. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13146. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13147. * src/PeerAbstractCommand.cc
  13148. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13149. * src/Request.h
  13150. (cookieBox): Made ShardHandle.
  13151. * src/RequestGroup.h, src/RequestGroup.cc
  13152. (createNextCommandWithAdj): New function.
  13153. * src/FileAllocationCommand.cc
  13154. (executeInternal): Use createNextCommandWithAdj().
  13155. * src/CheckIntegrityCommand.cc
  13156. (executeInternal): Use createNextCommandWithAdj().
  13157. Added --load-cookies command-option.
  13158. * src/OptionHandlerFactory.cc
  13159. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13160. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13161. Now aria2 can handle cookie's expiration date.
  13162. * src/Cookie.h (expires): Changed its type to time_t.
  13163. * src/main.cc: Added --load-cookies command-line option.
  13164. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13165. * src/Util.h, src/Util.cc (httpGMT): New function.
  13166. * src/Request.cc (Request): Initialize cookieBox using
  13167. CookieBoxFactory.
  13168. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13169. * src/CookieParser.h, src/CookieParser.cc: New class.
  13170. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13171. * src/HttpResponseCommand.cc
  13172. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13173. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13174. download.
  13175. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13176. Added -j command-line option.
  13177. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13178. * src/main.cc
  13179. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13180. Rewritten using stringstream.
  13181. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13182. Rewritten using stringstream.
  13183. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13184. Make download size shown in MB, KB.
  13185. * src/ConsoleDownloadEngine.h (sendStatistics)
  13186. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13187. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13188. Accept incoming connections if download rate is low.
  13189. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13190. (_lowestSpeedLimit): New variable.
  13191. (setLowestSpeedLimit): New function.
  13192. (execute): Accept incoming connections if download rate is low.
  13193. MAX_PEERS is ignored in this case.
  13194. Disable PREF_OUT in multiple concurrent download:
  13195. * src/RequestGroup.h, src/RequestGroup.cc
  13196. (setUserDefinedFilename): New function.
  13197. * src/DownloadEngineFactory.cc
  13198. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13199. concurrent download.
  13200. * src/DefaultSegmentManFactory.cc
  13201. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13202. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13203. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13204. Added its overloaded method.
  13205. * src/RequestGroup.h
  13206. (_numConcurrentCommand): New variable.
  13207. (setNumConcurrentCommand): New function.
  13208. * src/RequestGroup.cc
  13209. Abort download if same file is being downloaded concurrently.
  13210. * src/RequestGroup.h, src/RequestGroupMan.cc
  13211. (isSameFileBeingDownloaded): New function.
  13212. * src/HttpResponseCommand.cc (executeInternal)
  13213. * src/FtpNegotiateCommand.cc (recvSize)
  13214. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13215. * main.cc: Added help message for -i option.
  13216. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13217. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13218. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13219. * src/MetalinkEntry.h
  13220. (checksum): Changed to ChecksumHandle
  13221. * src/MetalinkRequestInfo.cc
  13222. (checksum): Changed to ChecksumHandle
  13223. * src/File.cc
  13224. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13225. * src/common.h
  13226. (DIR_OPEN_MODE): New definition
  13227. * src/RequestGroup.cc
  13228. (prepareForNextAction): Added an argument.
  13229. * src/message.h
  13230. (MSG_GOOD_CHECKSUM): New definition
  13231. (MSG_BAD_CHECKSUM): New definition
  13232. * src/HttpResponseCommand.cc
  13233. (handleDefaultEncoding): Continue download sequence in new
  13234. non-segmented download.
  13235. * src/FileAllocationEntry.h
  13236. (_nextDownloadCommand): New variable.
  13237. * src/DownloadCommand.cc
  13238. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13239. available.
  13240. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13241. * src/IteratableChecksumValidator.h,
  13242. src/IteratableChecksumValidator.cc: New class.
  13243. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13244. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13245. Change file mode to 666:
  13246. * src/common.h (OPEN_MODE): New definition.
  13247. * src/File.cc
  13248. * src/Util.cc
  13249. * src/Directry.cc
  13250. * src/AbstractDiskWriter.cc
  13251. Change the level of log message "download aborted" to debug:
  13252. * src/PeerAbstractCommand.cc (execute)
  13253. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13254. * src/TrackerWatcherCommand.cc
  13255. (createCommand): Sleep some seconds after request failed.
  13256. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13257. then abort tracker request.
  13258. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13259. * Added the simultaneous download feature.
  13260. * src/main.cc: Print "Exception caught: " when exception is caught.
  13261. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13262. * src/ActivePeerConnectionCommand.cc
  13263. * src/PeerInteractionCommand.cc
  13264. * src/BtRuntime.h
  13265. (cuidCounter): Removed.
  13266. (getNewCuid): Removed.
  13267. * src/DownloadEngineFactory.cc
  13268. * src/PeerListenCommand.cc
  13269. * src/TrackerUpdateCommand.cc
  13270. * src/PeerInitiateConnectionCommand.cc
  13271. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13272. * src/PeerAbstractCommand.cc
  13273. (onAbort): Call PeerStorage::returnPeer()
  13274. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13275. (incomingPeers): New variable.
  13276. (addIncomingPeer): New function.
  13277. (returnPeer): New function.
  13278. (onErasingPeer): New function.
  13279. (addPeer): push_back -> push_front
  13280. (getActivePeers): Rewritten.
  13281. (calculateStat): Rewritten.
  13282. * src/PeerStorage.h
  13283. (TransferStat::copy): New function.
  13284. (TransferStat::TransferStat): New function.
  13285. (TransferStat::operator=): New function.
  13286. (addIncomingPeer): New function.
  13287. (returnPeer): New function.
  13288. * src/PeerListenCommand.cc
  13289. (execute): Use PeerStorage::addIncomingPeer() instead of
  13290. Peer::addPeer().
  13291. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13292. Connect to a peer actively when download speed is lower than specified
  13293. speed in torrent download:
  13294. * src/ActivePeerConnectionCommand.h: New class.
  13295. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13296. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13297. * src/main.cc: Fixed the bug that prevents download if .netrc
  13298. doesn't exist.
  13299. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13300. To cache resolved hostname:
  13301. * src/AbstractCommand.h, src/AbstractCommand.cc
  13302. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13303. Added dns cache.
  13304. * src/FtpInitiateConnectionCommand.cc
  13305. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13306. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13307. NameResolver working without ares.
  13308. * src/TorrentRequestInfo.cc
  13309. (execute): Don't cache dns in torrent download.
  13310. * src/HttpInitiateConnectionCommand.cc
  13311. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13312. * src/DNSCache.h: New class.
  13313. * src/UrlRequestInfo.cc
  13314. (execute): Use dns cache.
  13315. In http request, suppress port number in http request header if port
  13316. is 80 or 443:
  13317. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13318. request header if port is 80 or 443.
  13319. (createProxyRequest): Allways send port number.
  13320. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13321. To add the command-line option which disables netrc support:
  13322. * src/OptionHandlerFactory.cc
  13323. (createOptionHandlers): Added PREF_NO_NETRC.
  13324. * src/main.cc: Added -n option.
  13325. * src/prefs.h (PREF_NO_NETRC): New definition.
  13326. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13327. V_TRUE.
  13328. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13329. is V_FALSE. This may get configurable in the future release.
  13330. To clear peer's error status by time basis:
  13331. * src/PeerAbstractCommand.cc
  13332. (onAbort): Call Peer::startBadCondition().
  13333. * src/Peer.h, src/Peer.cc
  13334. (error): Removed.
  13335. (_badConditionStartTime): New variable.
  13336. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13337. (startBadCondition): New function.
  13338. (isGood): New function.
  13339. * src/DefaultPeerStorage.cc
  13340. (addPeer): Use Peer::isGood().
  13341. (FindFinePeer): Use Peer::isGood().
  13342. Always include port number in http request header:
  13343. * src/HttpRequest.cc (getHostText): Always include port number in
  13344. http request header.
  13345. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13346. To the ability to read options from a config file:
  13347. * src/main.cc: Command-line parameter validation is delegated to
  13348. OptionHandler class.
  13349. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13350. * src/Option.h, src/Option.cc (clear): New function.
  13351. * src/OptionParser.h, src/OptionParser.cc: New class.
  13352. * src/OptionHandler.h: New class.
  13353. * src/NameMatchOptionHandler.h: New class.
  13354. * src/OptionHandlerImpl.h: New classes.
  13355. * src/prefs.h: '_' -> '-'
  13356. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13357. (FTP_PASV): New definition.
  13358. * src/Util.h, src/Util.cc (getRealSize): New function.
  13359. To disable netrc support if .netrc file does not have correct
  13360. permissions:
  13361. * src/File.h, src/File.cc (mode): New function.
  13362. To prevent confidential information to be logged:
  13363. * src/HttpConnection.h, src/HttpConnection.cc
  13364. (eraseConfidentialInfo): New function.
  13365. (sendRequest): Call eraseConfidentialInfo().
  13366. (sendProxyRequest): Call eraseConfidentialInfo().
  13367. * src/main.cc: Validate permissions of .netrc file.
  13368. To add --user-agent command-line option:
  13369. * src/main.cc: Added new command line option: --user-agent
  13370. * src/prefs.h (PREF_USER_AGENT): New definition.
  13371. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13372. parameter to HttpRequest object.
  13373. * src/AbstractProxyRequestCommand.cc
  13374. (executeInternal): Set user-agent option parameter to HttpRequest
  13375. object.
  13376. Marged the patches from Dan Fandrich.
  13377. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13378. Use filename and size from Metalink file instead of sending HEAD
  13379. request:
  13380. * src/UrlRequestInfo.h
  13381. (_filename): New variable.
  13382. (_totalLength): New variable.
  13383. (setTotalLength): New variable.
  13384. (setFilename): New variable.
  13385. * src/MetalinkRequestInfo.cc
  13386. (execute): Set filename and size to UrlRequestInfo
  13387. * src/UrlRequestInfo.cc
  13388. (execute): Use filename and size from Metalink instead of seding
  13389. HEAD request to servers.
  13390. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13391. To add the ability to resume downloading a partially downloaded file
  13392. which is downloaded from the beginning:
  13393. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13394. takes this role.
  13395. * src/main.cc: Added -c option.
  13396. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13397. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13398. * src/prefs.h (PREF_CONTINUE): New definition.
  13399. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13400. * src/DefaultDiskWriter.cc
  13401. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13402. * src/AbstractDiskWriter.h
  13403. (glowFileAllocator): New variable.
  13404. * src/AbstractDiskWriter.cc
  13405. (openExistingFile): Now preallocate file space from the end of the
  13406. existing file if totalLength argument is specified and grater than 0.
  13407. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13408. to download exists in local, continue the download of the file.
  13409. --allow-overwrite=true is assumed in this context.
  13410. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13411. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13412. Throw exception if --check-integrity=true is specified but chunk
  13413. checksums are not provided:
  13414. * src/UrlRequestInfo.cc
  13415. Do not print URLs to stdout:
  13416. * src/UrlRequestInfo.cc
  13417. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13418. * src/Request.h: Use AuthResolver to get authentication information.
  13419. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13420. set to RequestFactory object.
  13421. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13422. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13423. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13424. create Request object.
  13425. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13426. To integrate Netrc into exsiting classes:
  13427. * src/Request.h
  13428. (_userDefinedAuthConfig): New variable.
  13429. (findNetrcAuthenticator): New function.
  13430. (segment): Removed.
  13431. (setUserDefinedAuthConfig): New function.
  13432. (resolveHttpAuthConfigItem): New function.
  13433. (resolveFtpAuthConfigItem): New function.
  13434. (resolveHttpProxyAuthConfigItem): New function.
  13435. * src/HttpRequest.h
  13436. (authConfig): Removed.
  13437. (proxyAuthConfig): Removed.
  13438. (setAuthConfig): Removed.
  13439. (setProxyAuthConfig): Removed.
  13440. * src/UrlRequest.h
  13441. (getHeadResult): Added a parameter: authConfigHandle
  13442. * src/common.h
  13443. (SingletonHolder.h): New include.
  13444. * src/main.cc
  13445. (Netrc.h): New include.
  13446. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13447. Added initial value of PREF_NETRC_PATH.
  13448. Added the initialization of netrc.
  13449. * src/AuthConfig.h: New class.
  13450. * src/prefs.h
  13451. (PREF_NETRC_PATH): New definition.
  13452. * src/HttpAuthConfig.h: Removed.
  13453. * src/Netrc.cc
  13454. (getRequiredNextToken): New function.
  13455. (skipMacdef): New function.
  13456. (parse): Rewritten.
  13457. * src/Netrc.h
  13458. (getRequiredNextToken): New function.
  13459. (skipMacdef): New function.
  13460. * src/Util.h, src/Util.cc
  13461. (getHomeDir): New function.
  13462. * src/TrackerWatcherComand.cc
  13463. (createRequestCommand): Use AuthConfig.
  13464. * src/FtpConnection.cc
  13465. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13466. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13467. * src/Request.cc
  13468. (findNetrcAuthenticator): New function.
  13469. (resolveHttpAuthConfigItem): New function.
  13470. (resolveFtpAuthConfigItem): New function.
  13471. (resolveHttpProxyAuthConfigItem): New function.
  13472. * src/UrlRequestInfo.cc: Use AuthConfig.
  13473. * src/HttpRequest.cc
  13474. (createRequest): Use authConfig.
  13475. (getProxyAuthString): Use authConfig.
  13476. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13477. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13478. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13479. To reduce overhead to find commands whose socket is either
  13480. readable or writable in the download engine loop:
  13481. * src/Command.h, src/Command.cc
  13482. (STATUS): New enum.
  13483. (status): New variable.
  13484. (statusMatch): New function.
  13485. (setStatusActive): New function.
  13486. (setStatusInactive): New function.
  13487. * src/DownloadEngine.h, src/DownloadEngine.cc
  13488. (executeCommand): New function.
  13489. (run): Simplified.
  13490. (waitData): Call Command::setStatusActive() when command's socket is
  13491. readable or writable.
  13492. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13493. To handle Segment as SegmentHandle:
  13494. * src/AbstractCommand.cc (execute): Rewritten.
  13495. * src/SegmentMan.h: Segment -> SegmentHandle
  13496. Introducded HttpResponse class, HttpRequest class to improve code
  13497. extensiveness and make it clear:
  13498. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13499. HttpResponse class.
  13500. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13501. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13502. * src/HttpConnection.cc: Contruction of http request were moved to
  13503. HttpRequest class.
  13504. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13505. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13506. * src/HttpAuthConfig.h: New class.
  13507. * src/Range.h: New class.
  13508. To make FtpTunnel{Request, Response}Command and
  13509. HttpProxy{Request, Response}Command derived from
  13510. AbstractProxy{Request, Response}Command:
  13511. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13512. Derived from AbstractProxyRequestCommand class.
  13513. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13514. Derived from AbstractProxyResponseCommand class.
  13515. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13516. Derived from AbstractProxyRequestCommand class.
  13517. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13518. Derived from AbstractProxyResponseCommand class.
  13519. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13520. : New class.
  13521. * src/AbstractProxyResponseCommand.h,
  13522. src/AbstractProxyResponseCommand.cc: New class.
  13523. To add netrc support:
  13524. * src/Netrc.h, src/Netrc.cc: New class.
  13525. * src/Util.h, src/Util.cc (split): New function.
  13526. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13527. "Content-Range" header instead of "Range" header.
  13528. * src/HttpHeader.h
  13529. (getStatus): Removed.
  13530. (setStatus): Removed.
  13531. * src/Segment.h
  13532. (getPositionToWrite): New function.
  13533. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13534. * src/HttpHeader.h
  13535. (Range.h): New include.
  13536. (status): New variable.
  13537. (HttpHeader): Initialized status with 0.
  13538. (getStatus): New function.
  13539. (setStatus): New function.
  13540. (getRange): New function.
  13541. (HttpHeaderHandle): New function.
  13542. * src/HttpHeader.cc
  13543. (getRange): New function.
  13544. * src/Request.h
  13545. (RequestWeakHandle): New definition.
  13546. * src/HttpConnection.h
  13547. (HttpConnectionHandle): New type definition.
  13548. * src/HttpConnection.cc
  13549. (receiveResponse): Set HTTP status to headers.
  13550. * src/main.cc
  13551. (showUsage): Fixed typo.
  13552. * src/Segment.h
  13553. (SegmentHandle): New type definition.
  13554. * src/BitfieldMan.h
  13555. (getMissingUnusedLength): New function.
  13556. * src/BitfieldMan.cc
  13557. (getMissingUnusedLength): New function.
  13558. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13559. To fix static initialization order problem:
  13560. * src/BitfieldManFactory.h
  13561. (defaultRandomizer): Removed.
  13562. (factory): New variable.
  13563. (getNewFactory): Removed.
  13564. (getFactoryInstance): New function.
  13565. (setDefaultRandomizer): Rewritten.
  13566. (getDefaultRandomizer): Rewritten.
  13567. * src/BitfieldManFactory.cc
  13568. (defaultRandomizer): Removed.
  13569. (factory): Initialized to 0.
  13570. (BitfieldManFactory): Initialized randomizer to 0.
  13571. * src/DefaultPieceStorage.cc
  13572. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13573. * src/Peer.cc
  13574. (Peer): getNewFactory() -> getFactoryInstance()
  13575. * src/SegmentMan.cc
  13576. (initBitfield): getNewFactory() -> getFactoryInstance()
  13577. * src/Piece.cc
  13578. (Piece): getNewFactory() -> getFactoryInstance()
  13579. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13580. To fix the bug that causes crash on Max OS X:
  13581. * src/SimpleRandomizer.h
  13582. (getInstance): Create new instance if the static variable is null.
  13583. * src/SimpleRandomizer.cc
  13584. (randomizer): Initialized to 0.
  13585. * src/BitfieldManFactory.h
  13586. (getNewFactory): Removed the call to setRandomizer().
  13587. To fix the miscalculation of the range of checksum:
  13588. * src/BitfieldMan.h
  13589. (isBitSetOffsetRange): New function.
  13590. * src/BitfieldMan.cc
  13591. (isBitSetOffsetRange): New function.
  13592. * src/SegmentMan.cc
  13593. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13594. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13595. * Release 0.10.1
  13596. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13597. To lower CPU usage in BitTorrent download when --max-upload-limit
  13598. command-line option specified:
  13599. * src/DefaultBtMessageDispatcher.cc
  13600. (sendMessages): Calculate uploading speed only when current message
  13601. is uploading data and is not sent yet.
  13602. * src/DefaultPeerStorage.h
  13603. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13604. * src/HttpResponseCommand.cc
  13605. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13606. This fixes compile error in Soralis 10.
  13607. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13608. To fix segfault in Metalink download:
  13609. * src/UrlRequestInfo.h
  13610. (filename): Removed.
  13611. (totalLength): Removed.
  13612. (setTotalLength): Removed.
  13613. (setFilename): Removed.
  13614. * src/MetalinkRequestInfo.cc
  13615. (execute): Do not set filename and totalLength to reqInfo.
  13616. Set chunk checksum to reqInfo if it is not null.
  13617. * src/HttpResponseCommand.cc
  13618. (executeInternal): Fixed filename in log.
  13619. (handleDefaultEncoding): Removed the call to initBitfield() and
  13620. markAllPiecesDone().
  13621. (handleOtherEncoding): Added HEAD method handling.
  13622. * src/FtpNegotiateCommand.cc
  13623. (executeInternal): Added SEQ_HEAD_OK handling.
  13624. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13625. return false.
  13626. * src/FtpNegotiateCommand.h
  13627. (SEQ_HEAD_OK): New definition.
  13628. * src/SegmentMan.cc
  13629. (initBitfield): Delete bitfield.
  13630. (isChunkChecksumValidationReady): Fixed the condition.
  13631. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13632. works fine.
  13633. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13634. * src/Xml2MetalinkProcessor.h
  13635. (xpathExists): New function.
  13636. * src/Xml2MetalinkProcessor.cc
  13637. (xpathExists): New function.
  13638. Not to send HEAD request if filename and size are available in Metalink
  13639. file:
  13640. * src/UrlRequestInfo.h
  13641. (filename): New variable.
  13642. (totalLength): New variable.
  13643. (setTotalLength): New function.
  13644. (setFilename): New function.
  13645. * src/MetalinkRequestInfo.cc
  13646. (execute): Set filename and size to UrlRequestInfo.
  13647. * src/MetalinkEntry.cc
  13648. (MetalinkEntry): Initialize size with 0.
  13649. * src/UrlRequestInfo.cc
  13650. (execute): Set filename and size to SegmentMan.
  13651. Not to download rest of the files after selected files are downloaded
  13652. in BitTorrent:
  13653. * src/PieceStorage.h
  13654. (allDownloadFinished): New function.
  13655. * src/DefaultBtAnnounce.cc
  13656. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13657. downloadFinished.
  13658. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13659. * src/DefaultPieceStorage.cc
  13660. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13661. Commented out the call to finishSelectiveDownloadingMode().
  13662. (downloadFinished): Call isFilteredAllBitSet() instead of
  13663. isAllBitSet().
  13664. (allDownloadFinished): New function.
  13665. * src/DefaultBtInteractive.cc
  13666. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13667. downloadFinished().
  13668. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13669. * src/TorrentDownloadEngine.cc
  13670. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13671. * src/BitfieldMan.h
  13672. (isFilteredAllBitSet): New function.
  13673. * src/ShareRatioSeedCriteria.h
  13674. (PieceStorage.h): New include.
  13675. (pieceStorage): New variable.
  13676. (evaluate):
  13677. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13678. * src/BitfieldMan.cc
  13679. (isFilteredAllBitSet): New function.
  13680. (isAllBitSet): Filter is not took into account.
  13681. Rename --force-truncate as --allow-overwrite:
  13682. * src/TorrentRequestInfo.cc
  13683. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13684. * src/main.cc
  13685. (showUsage): --force-truncate -> --allow-overwrite
  13686. * src/message.h
  13687. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13688. * src/prefs.h
  13689. (PREF_FORCE_TRUNCATE): Removed.
  13690. (PREF_ALLOW_OVERWRITE): New definition.
  13691. * src/SegmentMan.cc
  13692. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13693. * src/MetalinkRequestInfo.cc
  13694. (execute): Queueing message are now logged in info level.
  13695. * src/common.h
  13696. (LONG_LONG_MAX): Removed.
  13697. (LONG_LONG_MIN): Removed.
  13698. * src/HttpResponseCommand.cc
  13699. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13700. * src/FtpNegotiateCommand.cc
  13701. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13702. * src/main.cc
  13703. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13704. command-line option.
  13705. (main): Added --check-integriy and --realtime-chunk-checksum
  13706. command-line option.
  13707. --force-truncate -> --allow-overwrite
  13708. Set initial value of --check-integrity option to false.
  13709. Don't show usage when error occurs while persing command-line options.
  13710. Removed deprecated --upload-limit option.
  13711. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13712. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13713. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13714. * src/BtAllowedFastMessage.cc:
  13715. * src/BtBitfieldMessage.cc
  13716. * src/BtCancelMessage.cc
  13717. * src/BtChokeMessage.cc
  13718. * src/BtHaveAllMessage.cc
  13719. * src/BtHaveMessage.cc
  13720. * src/BtHaveNoneMessage.cc
  13721. * src/BtInterestedMessage.cc
  13722. * src/BtNotInterestedMessage.cc
  13723. * src/BtPieceMessage.cc
  13724. * src/BtPortMessage.cc
  13725. * src/BtRejectMessage.cc
  13726. * src/BtRequestMessage.cc
  13727. * src/BtSuggestPieceMessage.cc
  13728. * src/BtUnchokeMessage.cc
  13729. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13730. files are affected.
  13731. * src/ChunkChecksumValidator.cc
  13732. * src/SegmentMan.cc
  13733. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13734. To add chunk checksum validation:
  13735. * src/MetalinkEntry.h
  13736. (MetalinkChunkChecksum.h): New include.
  13737. (chunkChecksum): New variable.
  13738. * src/Request.h
  13739. (method): New variable.
  13740. (setMethod): New function.
  13741. (getMethod): New function.
  13742. (METHOD_GET): New static constant.
  13743. (METHOD_HEAD): New static constant.
  13744. * src/Xml2MetalinkProcessor.h
  13745. (getPieceHash): New function.
  13746. * src/PieceStorage.h
  13747. (markAllPiecesDone): New function.
  13748. (checkIntegrity): New function.
  13749. * src/FileAllocator.h
  13750. (NullFileAllocationMonitor.h): New include.
  13751. (FileAllocator): Initialize fileAllocationMonitor with new
  13752. NullFileAllocationMonitor().
  13753. * src/MultiDiskAdaptor.h
  13754. (messageDigest.h): Remove include.
  13755. (ctx): Removed.
  13756. (hashUpdate): Added ctx.
  13757. (MultiDiskAdaptor): Removed ctx.
  13758. (sha1Sum): Renamed as messageDigest.
  13759. (messageDigest): New function.
  13760. * src/UrlRequestInfo.h
  13761. (HeadResult): New class.
  13762. (digestAlgo): New variable.
  13763. (chunkChecksumLength): New variable.
  13764. (chunkChecksums): New variable.
  13765. (getHeadResult): New function.
  13766. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13767. (setDigestAlgo): New function.
  13768. (setChunkChecksumLength): New function.
  13769. (setChunkChecksums): New function.
  13770. * src/DefaultPieceStorage.cc
  13771. (DiskAdaptorWriter.h): New include.
  13772. (ChunkChecksumValidator.h): New include.
  13773. (markAllPiecesDone): New function.
  13774. (checkIntegrity): New function.
  13775. * src/DefaultBtContext.h
  13776. (getPieceHashes): New function.
  13777. * src/TorrentRequestInfo.cc
  13778. (execute): Try to validate chunk checksum if file already exists and
  13779. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13780. * src/messageDigest.h
  13781. (~MessageDigestContext): Added digestFree().
  13782. * src/MetalinkRequestInfo.cc
  13783. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13784. * src/DiskAdaptor.h
  13785. (messageDigest.h): New include.
  13786. (sha1Sum): Renamed as messageDigest.
  13787. (messageDigest): New function.
  13788. * src/DownloadCommand.h
  13789. (PeerStat.h): New include.
  13790. (maxDownloadSpeedLimit): New variable.
  13791. (startupIdleTime): New variable.
  13792. (lowestDownloadSpeedLimit): New variable.
  13793. (peerStat): New variable.
  13794. (setMaxDownloadSpeedLimit): New function.
  13795. (setStartupIdleTime): New function.
  13796. (setLowestDownloadSPeedLimit): New function.
  13797. * src/BtContext.h
  13798. (getPieceHashes): New function.
  13799. * src/main.cc
  13800. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13801. option to true for testing purpose.
  13802. * src/BtPieceMessage.cc
  13803. (checkPieceHash): Use messageDigest
  13804. * src/DownloadEngine.cc
  13805. (SetDescriptor): Removed.
  13806. (AccumulateActiveCommand): Removed.
  13807. (waitData): Rewritten.
  13808. (updateFdSet): Rewritten.
  13809. * src/MultiDiskAdaptor.cc
  13810. (hashUpdate): Added ctx.
  13811. (sha1Sum): Renamed as messageDigest.
  13812. (messageDigest): New function.
  13813. * src/BitfieldMan.h
  13814. (isBitRangeSet): New function.
  13815. (unsetBitRange): New function.
  13816. * src/ByteArrayDiskWriter.h
  13817. (sha1Sum): Renamed as messageDigest.
  13818. (messageDigest): New function.
  13819. * src/ConsoleDownloadEngine.cc
  13820. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13821. * src/DiskWriter.h
  13822. (messageDigest.h): New include.
  13823. (sha1Sum): Renamed as messageDigest.
  13824. (messageDigest): New function.
  13825. * src/ChunkChecksumValidator.h: New class.
  13826. * src/DiskAdaptorWriter.h: New class.
  13827. * src/prefs.h
  13828. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13829. (PREF_CHECK_INTEGRITY): New definition.
  13830. * src/HttpResponseCommand.cc
  13831. (handleDefaultEncoding): Added method "HEAD" handling.
  13832. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13833. (handleOtherEncoding):
  13834. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13835. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13836. startupIdleTime, lowestDownloadSpeedLimit to command.
  13837. * src/SegmentMan.h
  13838. (getSegmentEntryByIndex): New function.
  13839. (getSegmentEntryByCuid): New function.
  13840. (getSegmentEntryIteratorByCuid): New function.
  13841. (diskWriter): DiskWriter -> DiskWriterHandle
  13842. (pieceHashes): New variable.
  13843. (chunkHashLength): New variable.
  13844. (digestAlgo): New variable.
  13845. (FindPeerStat): Removed.
  13846. (getPeerStat): Rewritten.
  13847. (markAllPiecesDone): New function.
  13848. (checkIntegrity): New function.
  13849. (tryChunkChecksumValidation): New function.
  13850. (isChunkChecksumValidationReady): New function.
  13851. * src/BitfieldMan.cc
  13852. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13853. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13854. blocks to 0.
  13855. (isBitRangeSet): New function.
  13856. (unsetBitRange): New function.
  13857. * src/FtpNegotiateCommand.cc
  13858. (executeInternal): Set maxDownloadSpeedLimit,
  13859. startupIdleTime, lowestDownloadSpeedLimit to command.
  13860. (recvSize): Added method "HEAD" handling.
  13861. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13862. * src/AbstractSingleDiskAdaptor.cc
  13863. (sha1Sum): Renamed as messageDigest.
  13864. (messageDigest): New function.
  13865. * src/AbstractSingleDiskAdaptor.h
  13866. (sha1Sum): Renamed as messageDigest.
  13867. (messageDigest): New function.
  13868. * src/Util.h
  13869. (indexRange): New function.
  13870. * src/MetalinkEntry.cc
  13871. (MetalinkEntry): Initialized chunkChecksum to 0.
  13872. * src/ShaVisitor.cc
  13873. (~ShaVisitor): Removed the call to ctx.digestFree().
  13874. * src/SegmentMan.cc
  13875. (ChunkChecksumValidator.h): New include.
  13876. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13877. to DIGEST_ALGO_SHA1.
  13878. (~SegmentMan): Removed diskWriter.
  13879. (FindSegmentEntryByIndex): Removed.
  13880. (FindSegmentEntryByCuid): Removed.
  13881. (checkoutSegment): Rewritten.
  13882. (findSlowerSegmentEntry): Rewritten.
  13883. (getSegment): Rewritten.
  13884. (updateSegment): Rewritten.
  13885. (completeSegment): Rewritten.
  13886. (markAllPiecesDone): New function.
  13887. (checkIntegrity): New function.
  13888. (isChunkChecksumValidationReady): New function.
  13889. (tryChunkChecksumValidation): New function.
  13890. * src/Xml2MetalinkProcessor.cc
  13891. (getEntry): Get size and set it to entry.
  13892. Get chunk checksum and set it to entry.
  13893. (getPieceHash): New function.
  13894. * src/Util.cc
  13895. (sha1Sum): Removed ctx.digestFree()
  13896. (fileChecksum): Removed ctx.digestFree()
  13897. (indexRange): New function.
  13898. * src/Request.cc
  13899. (METHOD_GET): New variable.
  13900. (METHOD_HEAD): New variable.
  13901. (Request): Added method.
  13902. * src/UrlRequestInfo.cc
  13903. (FatalException.h): New include.
  13904. (message.h): New include.
  13905. (operator<<): Added operator<< for class HeadResult.
  13906. (getHeadResult): New function.
  13907. (execute): Get filename and size in separate download engine.
  13908. * src/ChunkChecksumValidator.cc: New class.
  13909. * src/DownloadCommand.cc:
  13910. (DownloadCommand): Added peerStat.
  13911. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13912. the value from Option.
  13913. The buffer size is now 16KB.
  13914. Use peerStat member instead of getting it from SegmentMan.
  13915. Use startupIdleTime member instead of gettingit from Option.
  13916. Added chunk checksum validation.
  13917. * src/AbstractDiskWriter.cc
  13918. (AbstractDiskWriter): Removed ctx.
  13919. (~AbstractDiskWriter): Removed ctx.digestFree()
  13920. (writeDataInternal): Returns the return value of write.
  13921. (readDataInternal): Returns the return value of read.
  13922. (sha1Sum): Renamed as messageDigest
  13923. (messageDigest): New function.
  13924. * src/AbstractDiwkWriter.h
  13925. (messageDigest.h): Removed include.
  13926. (ctx): Removed.
  13927. (sha1Sum): Renamed as messageDigest
  13928. (messageDigest): New function.
  13929. * src/DefaultPieceStorage.h
  13930. (markAllPiecesDone): New function.
  13931. (checkIntegrity): New function.
  13932. * src/NullFileAllocationMonitor.h: New class.
  13933. * src/MetalinkChunkChecksum.h: New class.
  13934. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13935. To decrease CPU usage in bittorrent download, calculation results in
  13936. BitfieldMan were cached and realtime fetching PeerObject was removed
  13937. with WeakHandle introduced. Option values are set to the objects
  13938. by setter before download begins.
  13939. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13940. * src/DefaultBtRequestFactory.h
  13941. (dispatcher): BtMessageDispatcherHandle ->
  13942. BtMessageDispatcherWeakHandle.
  13943. (messageFactory): New variable.
  13944. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13945. BtMessageDispatcherWeakHandle.
  13946. (setBtMessageFactory): New function.
  13947. * src/DefaultBtMessageDispatcher.cc:
  13948. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13949. from Option.
  13950. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13951. feating the value from Option.
  13952. Use messageFactory member.
  13953. * src/PeerInteractionCommand.cc
  13954. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13955. Add reverse dependencies to factory object.
  13956. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13957. dispatcher.
  13958. Set messageFactory to receiver.
  13959. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13960. btInteractive.
  13961. Set receiver to peerObject.
  13962. Set maxDownloadSpeedLimit to this.
  13963. (executeInternal): Use maxDownloadSpeedLimit member.
  13964. * src/BtChokeMessage.cc
  13965. (doReceivedAction): Use dispatcher, requestFactory member.
  13966. (onSendComplete): Use dispatcher member.
  13967. * src/PeerInteractionCommand.h
  13968. (maxDownloadSpeedLimit): New variable.
  13969. * src/DefaultBtMessageReceiver.h
  13970. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13971. (dispatcher):
  13972. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13973. (messageFactory): New variable.
  13974. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13975. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13976. (setDispatcher):
  13977. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13978. (setBtMessageFactory): New function.
  13979. * src/DefaultBtInteractive.cc
  13980. (initiateHandshake): Use messageFactory member.
  13981. (addBitfieldMessageToQueue): Use messageFactory member.
  13982. (addAllowedFastMessageToQueue): Use messageFactory member.
  13983. (decideChoking): Use messageFactory member.
  13984. (checkHave): Use messageFactory member.
  13985. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13986. (receiveMessages): Use maxDownloadSpeedLimit member.
  13987. (decideInterest): Use messageFactory member.
  13988. * src/BtRequestMessage.cc
  13989. (doReceivedAction): Use messageFactory, dispatcher member.
  13990. (onQueued): Use dispatcher member.
  13991. * src/BtPieceMessage.cc
  13992. (doReceivedAction): Use dispatcher member.
  13993. (send): Use peerConnection member.
  13994. (onWrongPiece): Use requestFactory member.
  13995. (handleChokingEvent): Use messageFactory, dispatcher member.
  13996. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13997. * src/BtMessageDispatcher.h
  13998. (BtMessageDispatcherWeakHandle): New type definition.
  13999. * src/SimpleBtMessage.cc
  14000. (send): Use peerConnection member.
  14001. * src/BtRejectMessage.cc
  14002. (doReceivedAction): Use dispatcher member.
  14003. * src/DefaultBtMessageDispatcher.h
  14004. (Option.h): Removed include.
  14005. (messageFactory): New variable.
  14006. (option): Removed.
  14007. (maxUploadSpeedLimit): New variable.
  14008. (requestTimeout): New variable.
  14009. (DefaultBtMessageDispatcher): Removed option.
  14010. Added maxUploadSpeedLimit, requestTimeout.
  14011. (setOption): Removed.
  14012. (getOption): Removed.
  14013. (setMaxUploadSpeedLimit): New function.
  14014. (setRequestTimeout): New function.
  14015. (setBtMessageFactory): New function.
  14016. * src/DefaultBtInteractive.h
  14017. (btMessageReceiver):
  14018. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14019. (dispatcher):
  14020. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14021. (btRequestFactory):
  14022. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14023. (peerConnection):
  14024. PeerConnectionHandle -> PeerConnectionWeakHandle
  14025. (messageFactory): New variable.
  14026. (option): Removed.
  14027. (keepAliveInterval): New variable.
  14028. (maxDownloadSpeedLimit): New variable.
  14029. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14030. (setBtMessageReceiver):
  14031. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14032. (setDispatcher):
  14033. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14034. (setBtRequestFactory):
  14035. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14036. (setPeerConnection):
  14037. PeerConnectionHandle -> PeerConnectionWeakHandle
  14038. (setOption): Removed.
  14039. (setKeepAliveInterval): New function.
  14040. (setMaxDownloadSpeedLimit): New function.
  14041. (setBtMessageFactory): New function.
  14042. * src/BitfieldMan.h
  14043. (cachedNumMissingBlock): New variable.
  14044. (cachedNumFilteredBlock): New variable.
  14045. (cachedCompletedLength): New variable.
  14046. (cachedFilteredComletedLength): New variable.
  14047. (cachedFilteredTotalLength): New variable.
  14048. (countMissingBlockNow): New function.
  14049. (countFilteredBlockNow): New function.
  14050. (getFilteredTotalLengthNow): New function.
  14051. (getCompletedLengthNow): New function.
  14052. (getFilteredCompletedLengthNow): New function.
  14053. (updateCache): New function.
  14054. * src/AbstractBtMessage.h
  14055. (BtMessageDispatcher.h): New include.
  14056. (PeerConnection.h): New include.
  14057. (BtRequestFactory.h): New include
  14058. (BtMessageFactory.h): New include.
  14059. (dispatcher): New variable.
  14060. (messageFactory): New variable.
  14061. (peerConnection: New variable.
  14062. (setBtMessageDispatcher): New function.
  14063. (setPeerConnection): New function.
  14064. (setBtMessageFactory): New function.
  14065. (setBtRequestFactory): New function.
  14066. * src/DefaultBtMessageFactory.cc
  14067. (setCommonProperty): Set dispatcher, requestFactory, this,
  14068. peerConnection to msg.
  14069. * src/BtRegistry.h
  14070. (BT_MESSAGE_RECEIVER): New macro.
  14071. * src/PeerConnection.h
  14072. (PeerConnectionWeakHandle): New type definition.
  14073. * src/BtMessageFactory.h
  14074. (BtMessageFactoryWeakHandle): New type definition.
  14075. * src/BitfieldMan.cc
  14076. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14077. cachedCompletedLength, cachedFilteredComletedLength,
  14078. cachedFilteredTotalLength.
  14079. Call updateCache().
  14080. (countMissingBlock): Return cachedNumMissingBlock.
  14081. (countMissingBlockNow): New function.
  14082. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14083. (countFilteredBlockNow): New function.
  14084. (setBit): Call updateCache().
  14085. (unsetBit): Call updateCache().
  14086. (setBitfield): Call updateCache().
  14087. (clearAllBit): Call updateCache().
  14088. (setAllBit): Use setBitInternal instead of setBit.
  14089. Call updateCache().
  14090. (addFilter): Call updateCache().
  14091. (enableFilter): Call updateCache().
  14092. (disableFilter): Call updateCache().
  14093. (clearFilter): Call updateCache().
  14094. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14095. (getFilteredTotalLengthNow): New function.
  14096. (getCompletedLength): Return cachedCompletedLength.
  14097. (getCompletedLengthNow): New function.
  14098. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14099. (getFilteredCompletedLengthNow): New function.
  14100. (updateCache): New function.
  14101. * src/BtMessageReceiver.h
  14102. (BtMessageReceiverWeakHandle): New type definition.
  14103. * src/DefaultBtMessageReceiver.cc
  14104. (receiveHandshake): Use messageFactory member.
  14105. (sendHandshake): Use messageFactory member.
  14106. (receiveMessage): Use messageFactory member.
  14107. * src/DefaultBtMessageFactory.h
  14108. (dispatcher): New variable.
  14109. (requestFactory): New variable.
  14110. (peerConnection): New variablle.
  14111. (setBtMessageDispatcher): New function.
  14112. (setBtRequestFactory): New function.
  14113. (setPeerConnection): New function.
  14114. * src/SharedHandle.h
  14115. (RefCount): New class.
  14116. (WeakHandle): New class.
  14117. * src/PeerObject.h
  14118. (BtMessageReceiver.h): New include.
  14119. (PeerObject): Added btMessageReceiver.
  14120. (btMessageReceiver): New variable.
  14121. * src/Util.cc
  14122. (countBit): Simplified.
  14123. * src/BtCancelMessage.cc
  14124. (doReceivedAction): Use dispatcher member.
  14125. * src/BtRequestFactory.h
  14126. (BtRequestFactoryWeakHandle): New type definition.
  14127. * src/PeerStorage.h
  14128. (downloadSpeed): int -> uint32_t
  14129. (uploadSpeed): int -> uint32_t
  14130. (sessionDownloadLength): long long int -> uint64_t
  14131. (sessionUploadLength): long long int -> uint64_t
  14132. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14133. To add RecoverableException, FatalException:
  14134. * src/AbstractCommand.cc
  14135. (onAbort): Exception -> RecoverableException
  14136. * src/PeerAbstractCommand.h
  14137. (RecoverableException.h): New include.
  14138. (onAbort): Exception -> RecoverableException.
  14139. * src/PeerInteractionCommand.cc
  14140. (onAbort): Exception -> RecoverableException.
  14141. * src/PeerAbstractCommand.cc
  14142. (execute): Exception -> RecoverableException.
  14143. (onAbort): Exception -> RecoverableException.
  14144. * src/TorrentRequestInfo.cc
  14145. (execute): Exception -> RecoverableException.
  14146. * src/MetalinkRequestInfo.cc
  14147. (execute): Exception -> RecoverableException.
  14148. * src/MetaFileUtil.cc: RecoverableException.
  14149. * src/AbstractCommand.h
  14150. (onAbort): Exception -> RecoverableException.
  14151. * src/DlRetryEx.h: Exception -> RecoverableException.
  14152. * src/DlAbortEx.h: Exception -> RecoverableException.
  14153. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14154. * src/Util.cc: Exception -> RecoverableException.
  14155. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14156. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14157. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14158. To make ID static const int
  14159. * src/BtInterestedMessage.h
  14160. (ID_t): Removed.
  14161. (ID): New variable.
  14162. (getId): Made non-const.
  14163. * src/BtPieceMessage.h
  14164. (ID_t): Removed.
  14165. (ID): New variable.
  14166. (getId): Made non-const.
  14167. * src/BtChokeMessage.h
  14168. (ID_t): Removed.
  14169. (ID): New variable.
  14170. (getId): Made non-const.
  14171. * src/BtHaveAllMessage.h
  14172. (ID_t): Removed.
  14173. (ID): New variable.
  14174. (getId): Made non-const.
  14175. * src/BtKeepAliveMessage.h
  14176. (ID_t): Removed.
  14177. (ID): New variable.
  14178. (getId): Made non-const.
  14179. * src/BtHandshakeMessage.h
  14180. (ID): New variable.
  14181. (getId): Made non-const.
  14182. * src/BtSuggestPieceMessage.h
  14183. (ID_t): Removed.
  14184. (ID): New variable.
  14185. (getId): Made non-const.
  14186. * src/BtPortMessage.h
  14187. (ID_t): Removed.
  14188. (ID): New variable.
  14189. (getId): Made non-const.
  14190. * src/AbstractBtMessage.h
  14191. (id): Removed.
  14192. (AbstractBtMessage): Removed id.
  14193. (getId): Removed.
  14194. * src/BtHaveMessage.h
  14195. (ID_t): Removed.
  14196. (ID): New variable.
  14197. (getId): Made non-const.
  14198. * src/BtAllowedFastMessage.h
  14199. (ID_t): Removed.
  14200. (ID): New variable.
  14201. (getId): Made non-const.
  14202. * src/BtCancelMessage.h
  14203. (ID_t): Removed.
  14204. (ID): New variable.
  14205. (getId): Made non-const.
  14206. * src/BtNotInterestedMessage.h
  14207. (ID_t): Removed.
  14208. (ID): New variable.
  14209. (getId): Made non-const.
  14210. * src/BtChokeMessage.h
  14211. (ID_t): Removed.
  14212. (ID): New variable.
  14213. (getId): Made non-const.
  14214. * src/BtRejectMessage.h
  14215. (ID_t): Removed.
  14216. (ID): New variable.
  14217. (getId): Made non-const.
  14218. * src/BtBitfieldMessage.h
  14219. (ID_t): Removed.
  14220. (ID): New variable.
  14221. (getId): Made non-const.
  14222. * src/BtUnchokeMessage.h
  14223. (ID_t): Removed.
  14224. (ID): New variable.
  14225. (getId): Made non-const.
  14226. * src/BtRequestMessage.h
  14227. (ID_t): Removed.
  14228. (ID): New variable.
  14229. (getId): Made non-const.
  14230. * src/BtHaveMessage.h
  14231. (ID_t): Removed.
  14232. (ID): New variable.
  14233. (getId): Made non-const.
  14234. To add --force-truncate command-line option and a check whether
  14235. the file already exists:
  14236. * src/DirectDiskAdaptor.h
  14237. (getFilePath): Made virtual public.
  14238. * src/MultiDiskAdaptor.h
  14239. (File.h): New include.
  14240. (DiskWriterEntry::fileEntry): Made private.
  14241. (DiskWriterEntry::fileExists): New function.
  14242. (DiskWriterEntry::getFileEntry): New function.
  14243. (fileExists): New function.
  14244. (getFilePath): New function.
  14245. * src/TorrentRequestInfo.cc
  14246. (FatalException.h): New include.
  14247. (message.h): New include.
  14248. (RecoverableException.h): New include.
  14249. (execute): Added a check whether file is already exists or not.
  14250. * src/DiskAdaptor.h
  14251. (fileExists): New function.
  14252. (getFilePath): New function.
  14253. * src/main.cc
  14254. (showUsage): Added an explanation of --force-truncate command-line
  14255. option.
  14256. (main): Added --force-truncate command-line option.
  14257. * src/Exception.h
  14258. (setMsg): buf[256] -> buf[1024]
  14259. * src/CopyDiskWriter.h
  14260. (getFilePath): Made public virtual.
  14261. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14262. (fileExists): New function.
  14263. * src/DownloadEngineFactory.cc
  14264. (newTorrentConsoleEngine): Don't open file here.
  14265. * src/message.h
  14266. (EX_FILE_ALREADY_EXISTS): New definition.
  14267. * src/prefs.h
  14268. (PREF_FOECE_TRUNCATE): New definition.
  14269. * src/HttpResponseCommand.cc
  14270. (handleDefaultEncoding): Added a check whether the file already exists.
  14271. * src/SegmentMan.h
  14272. (fileExists): New function.
  14273. (shouldCancelDownloadForSafety): New function.
  14274. * src/FtpNegotiateCommand.cc
  14275. (recvSize): Added a check whether the file already exists.
  14276. * src/AbstractSingleDiskAdaptor.cc
  14277. (File.h): New include.
  14278. (fileExists): New function.
  14279. * src/AbstractSingleDiskAdaptor.h
  14280. (getFilePath): Removed.
  14281. (fileExists): New function.
  14282. * src/SegmentMan.cc
  14283. (fileExists): New function.
  14284. (shouldCancelDownloadForSafety): New function.
  14285. To fix regression bug in torrent downloading:
  14286. * src/DefaultBtRequestFactory.cc
  14287. (doChokedAction): New function.
  14288. * src/DefaultBtRequestFactory.h
  14289. (doChokedAction): New function.
  14290. * src/DefaultBtMessageDispatcher.cc
  14291. (doChokedAction): Do not delete request if its target is in allowed
  14292. fast set.
  14293. * src/DefaultBtInteractive.cc
  14294. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14295. (sendKeepAlive): Send keep alive message even if the outgoing message
  14296. queue is not empty.
  14297. (decideInterest): Simplified the code.
  14298. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14299. it is already called when BtChokeMessage is received from a peer.
  14300. * src/BtRequestFactory.h
  14301. (doChokedAction): New function.
  14302. To clean up code:
  14303. * src/PeerInteractionCommand.h
  14304. (executeInternal): Added virtual keyword explicitly.
  14305. (prepareForRetry): Added virtual keyword explicitly.
  14306. (prepareForNextPeer): Added virtual keyword explicitly.
  14307. (onAbort): Added virtual keyword explicitly.
  14308. * src/RequestSlot.cc
  14309. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14310. * src/BtPieceMessage.cc
  14311. (doReceivedAction): Added a debug log of piece's bitfield.
  14312. * src/Piece.h
  14313. (getBitfieldLength): New function.
  14314. * src/ByteArrayDiskWriter.cc
  14315. (clear): Added buf = 0 to avoid double free corruption.
  14316. * src/FileAllocator.cc
  14317. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14318. Added cp.reset().
  14319. * src/BitfieldMan.h
  14320. (operator=): Rewritten.
  14321. * src/BitfieldMan.cc
  14322. (BitfieldMan): Initialized bitfield, useBitfield.
  14323. * src/PeerConnection.cc
  14324. (receiveMessage): Added a call to socket->readable() after getting
  14325. message length to avoid possible EOF.
  14326. * src/Util.cc
  14327. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14328. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14329. To add an ability to pre-allocate file space:
  14330. * src/DirectDiskAdaptor.h: Rewritten.
  14331. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14332. * src/MultiDiskAdaptor.h: Rewritten.
  14333. * src/DefaultPieceStorage.cc
  14334. (MultiDiskWriter.h): Removed include.
  14335. (PreAllocationDiskWriter.h): Removed include.
  14336. (FileAllocationMonitor.h): New include.
  14337. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14338. (initStorage): Rewritten.
  14339. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14340. * src/FileAllocator.h: New class.
  14341. * src/FileAllocator.cc: New class.
  14342. * src/FileAllocationMonitor.h: New class.
  14343. * src/FileAllocationMonitor.cc: New class.
  14344. * src/ConsoleFileAllocationMonitor.h: New class.
  14345. * src/ConsoleFileAllocationMonitor.cc: New class.
  14346. * src/AbstractSingleDiskAdaptor.h: New class.
  14347. * src/AbstractSingleDiskAdaptor.cc: New class.
  14348. * src/DiskAdaptor.h
  14349. (Directory.h): Removed include.
  14350. (DiskWriter.h): Removed include.
  14351. (FileEntry.h): Removed include.
  14352. (diskWriter): Removed.
  14353. (DiskAdaptor): Removed diskWriter.
  14354. (openFile): Made pure virtual.
  14355. (closeFile): Made pure virtual.
  14356. (openExistingFile): Made pure virtual.
  14357. (initAndOpenFile): Made pure virtual.
  14358. (writeData): Made pure virtual.
  14359. (readData): Made pure virtual.
  14360. (sha1Sum): Made pure virtual.
  14361. (getStoreDir): Returns const reference of storeDir.
  14362. (DiskAdaptorHandle): New type definition.
  14363. * src/main.cc
  14364. (ConsoleFileAllocationMonitor.h): New include.
  14365. (showUsage): Added default value description of -s option.
  14366. Added the description of --file-allocation option.
  14367. (main): Set default value of --file-allocation option to 'none'.
  14368. Added --file-allocation command-line option.
  14369. Setup FileAllocationMonitorFactory.
  14370. * src/FtpInitiateConnectionCommand.cc
  14371. (executeInternal): Removed diskWriter related processing, which was
  14372. moved to FtpNegotiationCommand.cc.
  14373. * src/DirectDiskAdaptor.cc
  14374. (getFilePath): Made non-const.
  14375. * src/CopyDiskAdaptor.h
  14376. (DiskAdaptor.h): Removed include.
  14377. (DiskWriter.h): Removed include.
  14378. (AbstractSingleDiskAdaptor.h): New include.
  14379. (getFilePath): Made non-const. Added virtual keyword.
  14380. (CopyDiskAdaptor): Removed diskWriter.
  14381. (getTempFile): Returns const reference.
  14382. (CopyDiskAdaptorHandle): New type definition.
  14383. * src/ByteArrayDiskWriter.cc
  14384. (clear): Simplified.
  14385. (initAndOpenFile): Rewritten.
  14386. (openFile): Call initAndOpenFile()
  14387. * src/MultiDiskAdaptor.cc: Rewritten.
  14388. * src/DownloadEngineFactory.cc
  14389. (FileAllocator.h): New include.
  14390. (FileAllocationMonitor.h): New include.
  14391. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14392. create DefaultDiskWriter with file allocator.
  14393. * src/DiskWriter.h
  14394. (initAndOpenFile): Added totalLength argument.
  14395. (openFile): Added totalLength argument.
  14396. * src/prefs.h
  14397. (PREF_FILE_ALLOCATION): New definition.
  14398. (V_PREALLOC): New definition.
  14399. (V_NONE): New definition.
  14400. * src/HttpResponseCommand.cc
  14401. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14402. size.
  14403. * src/FtpNegotiateCommand.cc
  14404. (Util.h): New include.
  14405. (recvSize): Open file here.
  14406. * src/Util.h
  14407. (ullitos): New function.
  14408. * src/CopyDiskWriter.h
  14409. (getFilePath): Made non-const.
  14410. * src/DefaultDiskWriter.h
  14411. (Option.h): New include.
  14412. (totalLength): Removed.
  14413. (DefaultDiskWriter): Removed totalLength.
  14414. (initAndOpenFile): Added totalLength argument.
  14415. (DefaultDiskWriterHandle): New type definition.
  14416. (createNewDiskWriter): New function.
  14417. * src/Util.cc
  14418. (ullitos): New function.
  14419. * src/DefaultDiskWriter.cc
  14420. (message.h): New include.
  14421. (FileAllocator.h): New include.
  14422. (prefs.h): New include.
  14423. (Util.h): New include.
  14424. (DefaultDiskWriter): Removed totalLength.
  14425. (initAndOpenFile): Added file allocation.
  14426. (createNewDiskWriter): New function. Just for temporary solution.
  14427. It will be rewritten later.
  14428. * src/DiskAdaptor.cc
  14429. (DiskAdaptor): Removed diskWriter.
  14430. * src/AbstractDiskWriter.cc
  14431. (LogFactory.h): New include.
  14432. (AbstractDiskWriter): Added fileAllocator, logger.
  14433. (openFile): Added totalLength argument.
  14434. * src/AbstractDiskWriter.h
  14435. (FileAllocator.h): New include.
  14436. (Logger.h): New include.
  14437. (fileAllocator): New variable.
  14438. (logger): New variable.
  14439. (openFile): Added totalLength argument. Added virtual keyword
  14440. explicitly.
  14441. (openExistingFile): Added totalLength argument. Added virtual keyword
  14442. explicitly.
  14443. (closeFile): Added virtual keyword explicitly.
  14444. (sha1Sum): Added virtual keyword explicitly.
  14445. (writeData): Added virtual keyword explicitly.
  14446. (readData): Added virtual keyword explicitly.
  14447. (setFileAllocator): New function.
  14448. * src/DefaultPieceStorage.h
  14449. (FileAllocator.h): New include.
  14450. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14451. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14452. * src/FileProgressMonitor.h: New class.
  14453. To compile aria2 on PC-BSD:
  14454. * src/DefaultBtContext.cc
  14455. (libgen.h): New include.
  14456. To fix memory leak:
  14457. * src/Exception.h
  14458. (~Exception): Delete cause. Fixed memory leak.
  14459. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14460. Rewritten a portion of bittorrent implementation:
  14461. * src/BtMessageValidator.h: New class.
  14462. * src/BtBitfieldMessageValidator.h: New class.
  14463. * src/BtHandshakeMessageValidator.h: New class.
  14464. * src/BtRequestMessageValidator.h: New class.
  14465. * src/BtSuggestPieceMessageValidator.h: New class.
  14466. * src/BtAllowedFastMessageValidator.h: New class.
  14467. * src/BtRejectMessageValidator.h: New class.
  14468. * src/BtCancelMessageValidator.h: New class.
  14469. * src/BtPieceMessageValidator.h: New class.
  14470. * src/BtHaveMessageValidator.h: New class.
  14471. * src/BtEventListener.h: New class.
  14472. * src/AbstractBtEventListener.h: New class.
  14473. * src/BtEvent.h: New class.
  14474. * src/BtChokingEvent.h: New class.
  14475. * src/BtChokedEvent.h: New class.
  14476. * src/BtCancelSendingPieceEvent.h: New class.
  14477. * src/BtAbortOutstandingRequestEvent.h: New class.
  14478. * src/Randomizer.h: New class.
  14479. * src/SimpleRandomizer.h: New class.
  14480. * src/BtMessage.h: New class.
  14481. * src/AbstractBtMessage.h: New class.
  14482. * src/SimpleBtMessage.h: New class.
  14483. * src/BtHaveMessage.h: New class.
  14484. * src/BtInterestedMessage.h: New class.
  14485. * src/BtAllowedFastMessage.h: New class.
  14486. * src/BtUnchokeMessage.h: New class.
  14487. * src/BtCancelMessage.h: New class.
  14488. * src/BtNotInterestedMessage.h: New class.
  14489. * src/BtChokeMessage.h: New class.
  14490. * src/BtHaveNoneMessage.h: New class.
  14491. * src/BtHandshakeMessage.h: New class.
  14492. * src/BtSuggestPieceMessage.h: New class.
  14493. * src/BtHaveMessage.h: New class.
  14494. * src/BtPieceMessage.h: New class.
  14495. * src/BtHaveAllMessage.h: New class.
  14496. * src/BtKeepAliveMessage.h: New class.
  14497. * src/BtPortMessage.h: New class.
  14498. * src/BtRejectMessage.h: New class.
  14499. * src/BtBitfieldMessage.h: New class.
  14500. * src/BtRequestMessage.h: New class.
  14501. * src/DefaultBtRequestFactory.h: New class.
  14502. * src/DefaultBtMessageReceiver.h: New class.
  14503. * src/BtInteractive.h: New class.
  14504. * src/BtMessageDispatcher.h: New class.
  14505. * src/DefaultBtMessageDispatcher.h: New class.
  14506. * src/DefaultBtInteractive.h: New class.
  14507. * src/BitfieldManFactory.h: New class.
  14508. * src/HandleRegistry.h: New class.
  14509. * src/BtMessageFactory.h: New class.
  14510. * src/BtMessageReceiver.h: New class.
  14511. * src/DefaultBtMessageFactory.h: New class.
  14512. * src/PeerObject.h: New class.
  14513. * src/BtRequestFactory.h: New class.
  14514. * src/SuggestPieceMessage.h: Removed.
  14515. * src/PortMessage.h: Removed.
  14516. * src/SuggestPieceMessage.h: Removed.
  14517. * src/KeepAliveMessage.h: Removed.
  14518. * src/HandshakeMessage.h: Removed.
  14519. * src/PeerInteraction.h: Removed.
  14520. * src/UnchokeMessage.h: Removed.
  14521. * src/PieceMessage.h: Removed.
  14522. * src/RequestMessage.h: Removed.
  14523. * src/InterestedMessage.h: Removed.
  14524. * src/HaveMessage.h: Removed.
  14525. * src/CancelMessage.h: Removed.
  14526. * src/RejectMessage.h: Removed.
  14527. * src/AllowedFastMessage.h: Removed.
  14528. * src/HaveNoneMessage.h: Removed.
  14529. * src/SimplePeerMessage.h: Removed.
  14530. * src/HaveAllMessage.h: Removed.
  14531. * src/BitfieldMessage.h: Removed.
  14532. * src/PeerMessageFactory.h: Removed.
  14533. * src/NotInterestedMessage.h: Removed.
  14534. * src/ChokeMessage.h: Removed.
  14535. * src/PeerMessage.h: Removed.
  14536. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14537. To know root cause of exception:
  14538. * src/Exception.h
  14539. (cause): New variable.
  14540. (Exception): Added a parameter.
  14541. (getMsg): Return const reference to msg.
  14542. (getCause): New function.
  14543. * src/DlRetryEx.h
  14544. (DlRetryEx): Added a parameter 'cause'.
  14545. Added an overloaded constructor.
  14546. (DlAbortEx): Added a parameter 'cause'.
  14547. Added an overloaded constructor.
  14548. * src/SimpleLogger.cc
  14549. (writeLog): Log nested exception messages recursively.
  14550. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14551. * src/DefaultBtProgressInfoFile.cc
  14552. (load): Fixed memory leak when the infohash doesn't match.
  14553. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14554. * src/DefaultPeerStorage.cc
  14555. (calculateStat): Simplified the code by combining 2 loops into 1.
  14556. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14557. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14558. for BitTorrent download:
  14559. * src/PeerAbstractCommand.cc
  14560. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14561. * src/main.cc:
  14562. (timeoutSpecified): Removed.
  14563. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14564. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14565. * src/TorrentRequestInfo.cc
  14566. (timeoutSpecified): Removed.
  14567. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14568. timeout value.
  14569. * src/prefs.h
  14570. (PREF_BT_TIMEOUT): New definition.
  14571. Delete unused variables:
  14572. * src/TorrentRequestInfo.cc
  14573. (requestInfo): Removed.
  14574. Move setSignalHander to Util::setGlobalSignalHandler:
  14575. * src/TorrentRequestInfo.cc:
  14576. setSignalHander -> Util::setGlobalSignalHandler
  14577. * src/main.cc
  14578. (setSignalHander): Removed.
  14579. (main): setSignalHander -> Util::setGlobalSignalHandler
  14580. * src/Util.h
  14581. (setGlobalSignalHandler): New function.
  14582. * src/Util.cc
  14583. (setGlobalSignalHandler): New function.
  14584. * src/UrlRequestInfo.cc:
  14585. setSignalHander -> Util::setGlobalSignalHandler
  14586. Reset peer status in order to exit gracefully:
  14587. * src/PeerAbstractCommand.cc
  14588. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14589. To fix the bug that causes the number of bytes uploaded is not saved
  14590. to .aria2 file:
  14591. * src/DefaultPeerStorage.h
  14592. (removedPeerSessionDownloadLength): New variable.
  14593. (removedPeerSessionUploadLength): New variable.
  14594. * src/DefaultPeerStorage.cc
  14595. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14596. removedPeerSessionUploadLength(0).
  14597. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14598. through all peers, and then add removedPeerSessionDownloadLength(
  14599. removedPeerSessionUploadLength) to it.
  14600. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14601. (to) the peer to removedPeerSessionDownloadLength
  14602. (removedPeerSessionUploadLength).
  14603. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14604. To add Metalink location option:
  14605. * src/MetalinkRequestInfo.cc
  14606. (execute): Call MetalinkEntry::setLocationPreference()
  14607. * src/main.cc
  14608. (showUsage): Added the help message for --metalink-location option.
  14609. (main): Added --metalink-location option.
  14610. * src/prefs.h
  14611. (PREF_METALINK_LOCATION): New definition.
  14612. * src/MetalinkEntry.cc
  14613. (AddLocationPreference): New function object.
  14614. (setLocationPreference): New function.
  14615. * src/Xml2MetalinkProcessor.cc
  14616. (getResource): Set location attribute to MetalinkResource
  14617. To show URLs to download
  14618. * src/UrlRequestInfo.h
  14619. (printUrls): New function.
  14620. To add multiple <file> Metalink support:
  14621. * src/MetalinkEntry.h
  14622. (MetalinkResources): Removed.
  14623. (setLocationPreference): New function.
  14624. (MetalinkEntryHandle): New type definition.
  14625. (MetalinkEntries): New type definition.
  14626. * src/Xml2MetalinkProcessor.h
  14627. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14628. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14629. (parseFile): Metalinker* -> MetalinkerHandle
  14630. * src/UrlRequestInfo.h
  14631. (execute): RequestInfo* -> RequestInfos
  14632. * src/MetalinkRequestInfo.cc
  14633. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14634. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14635. (execute): RequestInfo* -> RequestInfos
  14636. Added multiple <file> support. Print filename when it is queued.
  14637. * src/MetalinkRequestInfo.h
  14638. (execute): RequestInfo* -> RequestInfos
  14639. (getDownloadEngine): Removed.
  14640. * src/RequestInfo.h
  14641. (RequestInfoHandle): New type definition.
  14642. (RequestInfos): New type definition.
  14643. (execute): RequestInfo* -> RequestInfos
  14644. (getDownloadEngine): Removed.
  14645. * src/MetalinkResource.h
  14646. (MetalinkResourceHandle): New type definition.
  14647. (MetalinkResources): New type definition.
  14648. * src/MetalinkEntry.cc
  14649. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14650. because the element is now of type MetalinkResourceHandle.
  14651. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14652. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14653. (dropUnsupportedResource): Removed the deletion of the elements of
  14654. resources because the element is now of type MetalinkResourceHandle.
  14655. * src/Xml2MetalinkProcessor.cc
  14656. (parseFile): Metalinker* -> MetalinkerHandle
  14657. MetalinkEntry* -> MetalinkEntryHandle
  14658. Removed try-catch block.
  14659. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14660. MetalinkResource* -> MetalinkResourceHandle
  14661. Removed try-catch block.
  14662. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14663. Free result by using xmlXPathFreeObject()
  14664. * src/Metalinker.cc
  14665. (~Metalinker): Removed the deletion of entries.
  14666. MetalinkEntry* -> MetalinkEntryHandle
  14667. (queryEntry): Add multiple <file> Metalink support.
  14668. * src/Metalinker.h
  14669. (MetalinkEntries): Removed.
  14670. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14671. * src/MetalinkProcessor.h
  14672. (parseFile): Metalinker* -> MetalinkerHandle
  14673. Bug fixes:
  14674. * src/PeerChokeCommand.cc
  14675. (execute): cat01->cat02
  14676. * src/DefaultPieceStorage.cc
  14677. (DefaultPieceStorage): Added diskAdaptor(0)
  14678. * src/TrackerWatcherComand.cc:
  14679. (execute): Use btAnnounce->noMoreAnnounce()
  14680. to determin whether the function returns true or not.
  14681. * src/TrackerUpdateCommand.cc:
  14682. (execute): Use btAnnounce->noMoreAnnounce()
  14683. to determin whether the function returns true or not.
  14684. * src/FtpConnection.cc
  14685. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14686. This is the fix of the busy loop bug.
  14687. * src/DownloadCommand.cc
  14688. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14689. cached PeerStat.
  14690. The value of "name" entry in torrent file is now set by
  14691. *DiskAdaptor::setTopDir(...) methods.
  14692. * src/MultiDiskAdaptor.h
  14693. (topDir): New variable.
  14694. (setTopDir): New function.
  14695. (getTopDir): New function.
  14696. * src/MultiDiskAdaptor.cc
  14697. (getFilePath): Concat storDir, "/" and topDir.
  14698. (mkdir): Use getFilePath() to get the directory path for output.
  14699. * src/DefaultPieceStorage.cc
  14700. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14701. CopyDiskAdaptor.
  14702. * src/CopyDiskAdaptor.h
  14703. (topDir): New variable.
  14704. (setTopDir): New function.
  14705. (getTopDir): New function.
  14706. * src/CopyDiskAdaptor.cc
  14707. (fixFilename): Updated.
  14708. Misc
  14709. * src/UrlRequestInfo.h
  14710. (e): Removed.
  14711. (UrlRequestInfo): Removed e.
  14712. (getDownloadEngine): Removed.
  14713. * src/UrlRequestInfo.cc
  14714. (handler): Rewritten.
  14715. (printUrls): New function.
  14716. (execute): Call printUrls().
  14717. * src/HandshakeMessage.cc
  14718. (check): peerinteraction->getBtContext() -> btContext
  14719. * src/PeerInteraction.h
  14720. (getBtContext): Removed.
  14721. * src/TorrentRequestInfo.h
  14722. (execute): RequestInfo* -> RequestInfos
  14723. (getDownloadEngine): Removed.
  14724. * src/TorrentRequestInfo.cc
  14725. (haltRequested): Removed.
  14726. (btHaltRequested): New variable.
  14727. (torrentHandler): haltRequested -> btHaltRequested
  14728. (execute): RequestInfo* -> RequestInfos
  14729. * src/TorrentConsoleDownloadEngine.cc
  14730. (afterEachIteration): haltRequested -> btHaltRequested.
  14731. * src/ConsoleDownloadEngine.h
  14732. (initStatistics): Added virtual.
  14733. (calculateStatistics): Added virtual.
  14734. (onEndOfRun): Added virtual.
  14735. (afterEachIteration): Added virtual.
  14736. * src/ConsoleDownloadEngine.cc
  14737. (haltRequested): New variable.
  14738. (afterEachIteration): New function.
  14739. * src/main.cc
  14740. (requestInfo): Removed.
  14741. * src/SegmentMan.cc
  14742. (findSlowerSegmentEntry): Refactored.
  14743. * Release 0.9.0
  14744. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14745. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14746. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14747. * src/TorrentMan.h: Removed.
  14748. * src/TorrentMan.cc: Removed.
  14749. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14750. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14751. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14752. * src/PeerAbstractCommand.cc: Use btRuntime.
  14753. * src/BtContextAwareCommand.h: New class.
  14754. * src/FileEntry.h: Added accessor methods for following variables.
  14755. (path): Made private.
  14756. (length): Made private.
  14757. (offset): Made private.
  14758. (extracted): Made private.
  14759. (requested): Made private.
  14760. (FileEntries): New definition.
  14761. (FileEntryHandle): New definition.
  14762. * src/FileEntry.cc: New file.
  14763. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14764. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14765. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14766. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14767. * src/PieceStorage.h: New file.
  14768. * src/PeerInteractionCommand.h: Use btContext.
  14769. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14770. btRuntime.
  14771. * src/DefaultBtProgressInfoFile.h: New file.
  14772. * src/DefaultBtProgressInfoFile.cc: New file.
  14773. * src/File.cc
  14774. (Util.h): New include.
  14775. (mkdirs): New function.
  14776. * src/MultiDiskAdaptor.h
  14777. (mkdir): New function.
  14778. * src/PeerListProcessor.h
  14779. (Peers): Removed.
  14780. * src/PeerInteraction.h
  14781. (torrentMan): Removed.
  14782. (btContext): New variable.
  14783. (peerStorage): New variable.
  14784. (pieceStorage): New variable.
  14785. (btAnnounce): New variable.
  14786. (getTorrentMan): Removed.
  14787. (getBtContext): New function.
  14788. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14789. btAnnounce.
  14790. * src/HandshakeMessage.h
  14791. (TorrentMan.h): Removed.
  14792. * src/HandshakeMessage.cc: Use btContext.
  14793. * src/DefaultBtAnnounce.cc: New file.
  14794. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14795. * src/DefaultPieceStorage.cc: New file.
  14796. * src/DefaultBtContext.h: New file.
  14797. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14798. Use the accessor methods of FileEntry.
  14799. * src/CookieBox.cc: Updated to use Util::slice().
  14800. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14801. * src/common.h (SharedHandle.h): New include.
  14802. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14803. pieceStorage.
  14804. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14805. * src/DiskAdaptor.h
  14806. (topDir): Removed.
  14807. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14808. (setTopDir): Removed.
  14809. (getTopDir): Removed.
  14810. * src/BtContext.h: New file.
  14811. * src/DefaultPeerStorage.h: New file.
  14812. * src/PieceMessage.h (TorrentMan.h): Removed.
  14813. * src/RequestMessage.h (TorrentMan.h): Removed.
  14814. * src/TorrentDownloadEngine.h
  14815. (uploadLength): New variable.
  14816. (btContext): New variable.
  14817. (btRuntime): New variable.
  14818. (pieceStorage): New variable.
  14819. (peerStorage): New variable.
  14820. (btAnnounce): New variable.
  14821. (btProgressInfoFile): New variable.
  14822. (torrentMan): Removed.
  14823. (setBtContext): New function.
  14824. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14825. peerStorage, btAnnounce, btProgressInfoFile.
  14826. * src/Piece.h
  14827. (toString): New function.
  14828. (Pieces): New type definition.
  14829. * src/Peer.h
  14830. (active): New variable.
  14831. (Peer): Added active.
  14832. (activate): Set active to true.
  14833. (deactivate): Set active to false.
  14834. (isActive): New function.
  14835. (Peers): New type definition.
  14836. * src/DirectDiskAdaptor.cc
  14837. (getFilePath): Use the accessor methods of FileEntry.
  14838. * src/TorrentConsoleDownloadEngine.h
  14839. (afterEachIteration): New function.
  14840. * src/TorrentConsoleDownloadEngine.cc
  14841. (haltRequested): New variable.
  14842. (sendStatistics): Use pieceStorage, btRuntime.
  14843. (afterEachIteration): New function.
  14844. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14845. * src/Directry.h
  14846. (Directory): New function.
  14847. (DirectoryHandle): New type definition.
  14848. * src/BtProgressInfoFile.h: New file.
  14849. * src/RequestMessage.cc: Use pieceStorage.
  14850. * src/BtRuntime.h: New file.
  14851. * src/DefaultBtContext.cc: New file.
  14852. * src/BitfieldMan.h
  14853. (getCompletedLength): New function(private).
  14854. (getCompletedLength): New function.
  14855. (getFilteredCompletedLength): New function.
  14856. * src/BitfieldMan.h
  14857. (getCompletedLength): New function(private).
  14858. (getCompletedLength): New function.
  14859. (getFilteredCompletedLength): New function.
  14860. * src/MultiDiskAdaptor.cc
  14861. (mkdir): New function.
  14862. (openFile): Call mkdir().
  14863. (initAndOpenFile): Call mkdir().
  14864. * src/CancelMessage.h
  14865. (TorrentMan.h): Removed.
  14866. * src/RejectMessage.h
  14867. (TorrentMan.h): Removed.
  14868. * src/DownloadEngineFactory.cc
  14869. (DefaultPieceStorage.h): New include.
  14870. (DefaultPeerStorage.h): New include.
  14871. (DefaultBtAnnounce.h): New include.
  14872. (DefaultBtProgressInfoFile.h): New include.
  14873. (newTorrentConsoleEngine): Rewritten.
  14874. * src/ShareRatioSeedCriteria.h
  14875. (torrentMan): Removed.
  14876. (btContext): New variable.
  14877. (peerStorage): New variable.
  14878. (btRuntime): New variable.
  14879. (evaluate): Use btContext, btRuntime, peerStorage.
  14880. * src/AnnounceTier.h: New file.
  14881. * src/BtAnnounce.h: New file.
  14882. * src/BtRegistry.h: New file.
  14883. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14884. * src/PeerConnection.h (TorrentMan.h): Removed.
  14885. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14886. * src/Util.h
  14887. (slice): Added an argument.
  14888. * src/Util.cc
  14889. (slice): Added an argument to control whether trim is made or not.
  14890. * src/PeerStorage.h: New file.
  14891. * src/BtRegistry.cc: New file.
  14892. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14893. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14894. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14895. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14896. * src/TorrentRequestInfo.h
  14897. (e): Removed.
  14898. (showFileEntry): Added an argument.
  14899. (getDownloadEngine): Return 0.
  14900. * src/DefaultBtAnnounce.h: New file.
  14901. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14902. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14903. * src/PeerMessageFactory.h
  14904. (btContext): New variable.
  14905. (pieceStorage): New variable.
  14906. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14907. btAnnounce.
  14908. * src/DiskAdaptor.cc
  14909. (DiskAdaptor): Removed topDir.
  14910. (~DiskAdaptor): Removed topDir.
  14911. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14912. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14913. * src/File.h (mkdirs): New function.
  14914. * src/DefaultPeerStorage): New file.
  14915. * src/DownloadEngineFactory.h
  14916. (newTorrentConsoleEngine): Use btContext.
  14917. * src/BtContextAwareCommand.cc: New file.
  14918. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14919. * src/PeerMessage.h
  14920. (btContext): New variable.
  14921. (peerStorage): New variable.
  14922. (pieceStorage): New variable.
  14923. (setBtContext): New function.
  14924. * src/Directry.cc
  14925. (Directory): New function.
  14926. (createDir): Do nothing if name.size() == 0.
  14927. * src/AnnounceList.h
  14928. (AnnounceTier): Removed.
  14929. (AnnounceTiers): Removed.
  14930. * src/DefaultPieceStorage.h: New file.
  14931. * src/Piece.cc (toString): New function.
  14932. To fix typo:
  14933. * src/main.cc (showVersion): Fixed typo.
  14934. To fix compile warning:
  14935. * src/DelegatingPeerListProcessor.cc
  14936. (canHandle): Added "return false".
  14937. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14938. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14939. make the process of announce request testable.
  14940. * src/TrackerWatcherCommand.h
  14941. (TimeA2.h): Removed.
  14942. (interval): Removed.
  14943. (checkPoint): Removed.
  14944. (createRequestCommand): Added an argument 'url'.
  14945. (TrackerWatherCommand): Removed interval.
  14946. (createCommand): New function.
  14947. * src/DownloadEngineFactory.cc
  14948. (newTorrentConsoleEngine): Updated according to the changes in
  14949. TrackerWatherCommand.
  14950. * src/TorrentMan.cc
  14951. (DelegatingPeerListProcessor.h): New includes.
  14952. (TorrentMan): Added the initialization of announceInterval.
  14953. (isStoppedAnnounceReady): New function.
  14954. (isCompletedAnnounceReady): New function.
  14955. (isDefaultAnnounceReady): New function.
  14956. (isAnnounceReady): New function.
  14957. (getAnnounceUrl): New function.
  14958. (announceStart): New function.
  14959. (announceFailure): New function.
  14960. (announceSuccess): New function.
  14961. (isAllAnnounceFailed): New function.
  14962. (resetAnnounce): New function.
  14963. (processAnnounceResponse): New function.
  14964. (needMorePeerConnection): New function.
  14965. (noMoreAnnounce): New function.
  14966. * src/TrackerUpdateCommand.h
  14967. (getTrackerResponse): int->size_t
  14968. * src/TorrentMan.h
  14969. (isStoppedAnnounceReady): New function.
  14970. (isCompletedAnnounceReady): New function.
  14971. (isDefaultAnnounceReady): New function.
  14972. (announceInterval): New variable.
  14973. (isAnnounceReady): New function.
  14974. (getAnnounceUrl): New function.
  14975. (announceStart): New function.
  14976. (announceFailure): New function.
  14977. (announceSuccess): New function.
  14978. (isAllAnnounceFailed): New function.
  14979. (resetAnnounce): New function.
  14980. (processAnnounceResponse): New function.
  14981. (needMorePeerConnection): New function.
  14982. (noMoreAnnounce): New function.
  14983. * src/TrackerWatcherCommand.cc
  14984. (TrackerWatherCommand): Removed interval and checkPoint.
  14985. (execute): Rewritten.
  14986. (createCommand): New function.
  14987. (createRequestCommand): Rewritten.
  14988. * src/TrackerUpdateCommand.cc
  14989. (MetaFileUtil.h): Removed.
  14990. (DelegatingPeerListProcessor.h): Removed.
  14991. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14992. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14993. Request -> RequestHandle:
  14994. * src/HttpResponseCommand.h: Request->RequestHandle
  14995. * src/AbstractCommand.cc: Request->RequestHandle
  14996. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14997. * src/HttpRequestCommand.cc: Request->RequestHandle
  14998. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14999. * src/AbstractCommand.h: Request->RequestHandle
  15000. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15001. * src/HttpResponseCommand.cc: Request->RequestHandle
  15002. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15003. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15004. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15005. * src/HttpConnection.h: Request->RequestHandle
  15006. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15007. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15008. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15009. * src/DownloadCommand.h: Request->RequestHandle
  15010. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15011. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15012. * src/HttpRequestCommand.h: Request->RequestHandle
  15013. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15014. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15015. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15016. * src/HttpDownloadCommand.h: Request->RequestHandle
  15017. * src/FtpConnection.cc: Request->RequestHandle
  15018. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15019. * src/UrlRequestInfo.cc: Request->RequestHandle
  15020. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15021. * src/HttpConnection.h: Request->RequestHandle
  15022. * src/DownloadCommand.cc: Request->RequestHandle
  15023. * src/FtpConnection.h: Request->RequestHandle
  15024. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15025. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15026. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15027. * src/Request.h
  15028. (SharedHandle.h): New include.
  15029. (RequestHandle): New type definition.
  15030. (Requests): Redefined.
  15031. To add MULTITRACKER support:
  15032. * src/TrackerWatcherCommand.h
  15033. (createRequestCommand): New function.
  15034. * src/DownloadEngineFactory.cc
  15035. (newTorrentConsoleEngine): Removed req.
  15036. * src/prefs.h
  15037. (PREF_TRACKER_MAX_TRIES): New definition.
  15038. * src/TorrentMan.cc
  15039. (TorrentMan): Removed req. Added trackerNumTry.
  15040. (~TorrentMan): Removed req.
  15041. (setupInternal1): Added announceList.
  15042. * src/TorrentRequestInfo.cc
  15043. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15044. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15045. * src/main.cc
  15046. (main): Added PREF_TRACKER_MAX_TRIES.
  15047. * src/TorrentMan.h
  15048. (Request.h): Removed.
  15049. (AnnounceList.h): New include.
  15050. (trackerNumTry): New variable.
  15051. (req): Removed.
  15052. (announceList): New variable.
  15053. * src/TrackerWatcherCommand.cc
  15054. (execute): Rewritten.
  15055. (createRequestCommand): New function.
  15056. * src/TrackerUpdateCommand.cc
  15057. (execute): Updated with the use of AnnounceList.
  15058. * src/AnnounceList.cc: New class.
  15059. * src/AnnounceList.h: New class.
  15060. To fix typo:
  15061. * src/prefs.h
  15062. (PREF_MAX_TRIES): max_try->max_tries
  15063. To not to decode "+" as space in URL decode:
  15064. * src/Util.cc
  15065. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15066. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15067. To add timeout to async name resolution:
  15068. * src/AbstractCommand.h
  15069. (nameResolveFinished): New function. This is not elegant way. It needs
  15070. to be more refined.
  15071. (nameResolverCheck): New variable.
  15072. * src/AbstractCommand.cc
  15073. (AbstractCommand): Added nameResolverCheck.
  15074. (execute): Added the check whether the name resolution has finished.
  15075. (setNameResolverCheck): Set nameResolverCheck to true.
  15076. (disableNameResolverCheck): Set nameResolverCheck to false.
  15077. (nameResolverFinished): New function.
  15078. * src/FtpInitiateConnectionCommand.h
  15079. (nameResolverFinished): New function.
  15080. * src/FtpInitiateConnectionCommand.cc
  15081. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15082. * src/HttpInitiateConnectionCommand.h
  15083. (nameResolverFinished): New function.
  15084. * src/HttpInitiateConnectionCommand.cc
  15085. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15086. * src/prefs.h
  15087. (PREF_DNS_TIMEOUT): New definition.
  15088. * src/main.cc
  15089. (main): Added PREF_DNS_TIMEOUT.
  15090. To add the support for a non-compact response from a tracker:
  15091. * src/PeerListProcessor.h: New class.
  15092. * src/DefaultPeerListProcessor.h: New class.
  15093. * src/DefaultPeerListProcessor.cc: New class.
  15094. * src/CompactPeerListProcessor.h: New class.
  15095. * src/CompactPeerListProcessor.cc: New class.
  15096. * src/DelegatingPeerListProcessor.h: New class.
  15097. * src/DelegatingPeerListProcessor.cc: New class.
  15098. * src/TorrentMan.cc
  15099. (addPeer): New function(overload).
  15100. (addPeer): Delete unused peers only when new peer is added.
  15101. * src/TorrentMan.h
  15102. (PeerListProcessor.h): Included.
  15103. (Peers): Removed.
  15104. (addPeer): New function(overload).
  15105. * src/TrackerUpdateCommand.cc
  15106. (netinet/in.h): Removed.
  15107. (DelegatingPeerListProcessor.h): Included.
  15108. (execute): Updated to use DelegatingPeerListProcessor.
  15109. To fix the memory leak in TorrentMan::peers:
  15110. * src/PeerAbstractCommand.cc
  15111. (onAbort): Added peer->resetStatus().
  15112. * src/Peer.h
  15113. (resetStatus): Made public.
  15114. To improve the precision of the speed calculation:
  15115. * src/SpeedCalc.h
  15116. (nextInterval): New variable.
  15117. * src/SpeedCalc.cc
  15118. (reset): Added nextInterval.
  15119. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15120. (changeSw): Set nextInterval to 15 seconds relative to the current
  15121. instant time.
  15122. * src/main.cc
  15123. (showVersion): Updated.
  15124. (showUsage): Updated.
  15125. * Release 0.8.1
  15126. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15127. * src/main.cc
  15128. (showUsage): Commented out --min-segment-size option.
  15129. (main): Commented out --min-segment-size option.
  15130. * Release 0.8.0
  15131. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15132. * src/*.{h,cc}:
  15133. Added an exception to the license which allows linking with OpenSSL.
  15134. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15135. * src/AbstractCommand.cc
  15136. (execute): Check whether the download has finished before checking
  15137. socket status.
  15138. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15139. Do not exit even if no segment is available.
  15140. * src/prefs.h
  15141. (PREF_STARTUP_IDLE_TIME): New definition.
  15142. * src/PeerInteractionCommand.cc
  15143. (executeInternal): Removed max speed limit. Because it performs bad.
  15144. (receiveMessages): Added max speed limit. This was better than above,
  15145. but still a little bit to be desired. Sometimes the download speed
  15146. became much faster than I specified.
  15147. * src/SpeedCalc.h
  15148. (start): New variable.
  15149. (accumulatedLength): New variable.
  15150. (getAvgSpeed): New function.
  15151. * src/SpeedCalc.cc
  15152. (reset): Added start, accumulatedLength.
  15153. (update): Added calculation of an average speed.
  15154. (getAvgSpeed): New function.
  15155. * src/DownloadCommand.h
  15156. (sw): Removed.
  15157. * src/main.cc
  15158. (main): Added PREF_STARTUP_IDLE_TIME.
  15159. * src/PeerStat.h
  15160. (STATUS): Added REQUEST_IDLE.
  15161. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15162. (getAvgDownloadSpeed): New function
  15163. (requestIdle): New function.
  15164. * src/SegmentMan.h
  15165. (SegmentEntryHandle): New type definition.
  15166. (SegmentEntries): Now holds SegmentEntryHandle.
  15167. (findSlowerSegmentEntry): New funtion.
  15168. * src/SegmentMan.cc
  15169. (save): Updated according to the changes in SegmentEntries.
  15170. (read): Updated according to the changes in SegmentEntries.
  15171. (FindSegmentEntryByIndex): Updated according to the changes in
  15172. SegmentEntries.
  15173. (FindSegmentEntryByCuid): Updated according to the changes in
  15174. SegmentEntries.
  15175. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15176. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15177. Renamed uitr as itr.
  15178. (findSlowerSegmentEntry): New function.
  15179. (getSegment): Updated according to the changes in SegmentEntries.
  15180. Added the feature that cancels the segment with slow server and fast
  15181. one takes it over.
  15182. (cancelSegment): Updated according to the changes in SegmentEntries.
  15183. (getDownloadLength): Updated according to the changes in
  15184. SegmentEntries.
  15185. (init): Assigned 0 to bitfield after deleting it.
  15186. * src/DownloadCommand.cc
  15187. (STARTUP_IDLE_TIME): Removed.
  15188. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15189. * src/PeerChokeCommand.cc
  15190. (optUnchokingPeer): Updated according to the changes in Peer.
  15191. (ResetDelta): Removed.
  15192. (UploadFaster): Updated according to the changes in Peer.
  15193. (DownloadFaster): Updated according to the changes in Peer.
  15194. (execute): I clarify the meaning of "upload" and "download" here.
  15195. "upload" means the transfer from localhost to remote host.
  15196. "download" means the transfer from remote host to localhost.
  15197. Based on this rule, I swapped orderByUploadRate and
  15198. orderByDownloadRate.
  15199. * src/PeerInteractionCommand.cc
  15200. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15201. (executeInternal): Removed the argument of
  15202. peerInteraction->sendMessages().
  15203. (receiveMessages): Rewritten download speed limit.
  15204. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15205. * src/HttpResponseCommand.cc
  15206. (handleDefaultEncoding): If file size is unknown in torrent request,
  15207. do not call segmentMan->initBitfield() here.
  15208. Disabled persistent connection feature in torrent request.
  15209. * src/UrlRequestInfo.h
  15210. (UrlRequestInfo): Removed const qualifier from option.
  15211. * src/TorrentMan.h
  15212. (TransferStat): New class.
  15213. (deltaDownloadLength): Removed.
  15214. (deltaUploadLength): Removed.
  15215. (addDeltaDownloadLength): Removed.
  15216. (getDeltaDownloadLength): Removed.
  15217. (resetDeltaDownloadLength): Removed.
  15218. (addDeltaUploadLength): Removed.
  15219. (getDeltaUploadLength): Removed.
  15220. (resetDeltaUploadLength): Removed.
  15221. (addActivePeer): Added peer->activate().
  15222. (deleteActivePeer): Added peer->deactivate().
  15223. (calculateStat): New function.
  15224. * src/TorrentMan.cc
  15225. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15226. (calculateStat): New function.
  15227. * src/PeerInteraction.h
  15228. (uploadLimit): Removed.
  15229. (option): New variable.
  15230. (setUploadLimit): Removed.
  15231. (getUploadSpeed): Removed.
  15232. (sendMessages): Removed the argument "currentUploadSpeed".
  15233. * src/PeerInteraction.cc
  15234. (prefs.h): Included.
  15235. (PeerInteraction): Removed uploadLimit. Added option.
  15236. (sendMessages): Rewritten upload speed limit.
  15237. (sendHandshake): Removed the argument from sendMessages().
  15238. (sendBitfield): Removed the argument from sendMessages().
  15239. * src/PeerAbstractCommand.cc
  15240. (execute): Commented out the portion of upload limit.
  15241. (onAbort): Removed peer->resetStatus().
  15242. * src/TorrentRequestInfo.cc
  15243. (timeoutSpecified): Declared extern.
  15244. (execute): Set timeout to 180 if timeout is not specified by.
  15245. command-line.
  15246. * src/PieceMessage.cc
  15247. (receivedAction): Added peer->updateDownloadLength().
  15248. Removed peer->addPeerUpload().
  15249. Removed torrentMan->addDeltaDownloadLength().
  15250. (send): Added peer->updateUploadLength().
  15251. Removed peer->addPeerDownload().
  15252. Removed torrentMan->addDeltaUploadLength().
  15253. * src/main.cc
  15254. (timeoutSpecified): New variable.
  15255. (main): Set timeoutSpecified to false.
  15256. If the command-line option "--upload-limit" is specified, then
  15257. timeoutSpecified is set to true. This option will remain in the next
  15258. release, but be deprecated in the future release.
  15259. * src/TorrentRequestInfo.h
  15260. (TorrentRequestInfo): Removed const qualifier from op.
  15261. * src/PeerStat.h
  15262. (uploadSpeed): New variable.
  15263. (PeerStat): Added default value to cuid.
  15264. (calculateUploadSpeed): New function.
  15265. (updateUploadLength): New function.
  15266. (getMaxUploadSpeed): New function.
  15267. (getAvgUploadSpeed): New function.
  15268. (reset): Added uploadSpeed. Set status to IDLE.
  15269. * src/TorrentDownloadEngine.h
  15270. (cp): Declared as Time.
  15271. (sessionDownloadLengthArray): Removed.
  15272. (sessionUploadLengthArray): Removed.
  15273. (currentCp): Removed.
  15274. (lastCalcStat): New variable
  15275. (lastElapsed): Removed.
  15276. (sessionDownloadLength): Removed.
  15277. (calculateStat): New function.
  15278. * src/TorrentDownloadEngine.cc
  15279. (initStatistics): Removed lastElapsed, cp[],
  15280. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15281. currentCp, sessionDownloadLength.
  15282. Added cp.reset() and lastCalcStat.reset().
  15283. (calculateSpeed): Changed the name of the argument.
  15284. (calculateStatistics): Rewritten.
  15285. (calculateStat): New function.
  15286. * src/Peer.h
  15287. (PeerStat.h): Included.
  15288. (peerUpload): Removed.
  15289. (peerDownload): Removed.
  15290. (peerStat): New variable.
  15291. (sessionUploadLength): New variable.
  15292. (sessionDownloadLength): New variable.
  15293. (deltaUpload): Removed.
  15294. (deltaDownload): Removed.
  15295. (resetStatus): Made private.
  15296. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15297. Removed peerUpload, peerDownload.
  15298. (updateUploadLength): New function.
  15299. (addDeltaUpload): Removed.
  15300. (updateDownloadLength): New function.
  15301. (resetDeltaUpload): Removed.
  15302. (getDeltaUpload): Removed.
  15303. (addDeltaDownload): Removed.
  15304. (calculateUploadSpeed): New function.
  15305. (resetDeltaDownload): Removed.
  15306. (getDeltaDownload): Removed.
  15307. (calculateDownloadSpeed): New function.
  15308. (getSessionUploadLength): New function.
  15309. (getSessionDownloadLength): New function.
  15310. (activate): New function.
  15311. (deactivate): New function.
  15312. (addPeerUpload): Removed.
  15313. (setPeerUpload): Removed.
  15314. (getPeerUpload): Removed.
  15315. (addPeerDownload): Removed.
  15316. (setPeerDownload): Removed.
  15317. (getPeerDownload): Removed.
  15318. * src/Peer.cc
  15319. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15320. * src/MetalinkRequestInfo.h
  15321. (MetalinkRequestInfo): Removed const qualifier from op.
  15322. * src/RequestInfo.h
  15323. (op): Removed const qualifier.
  15324. (RequestInfo): Removed const qualifier from op.
  15325. * src/prefs.h
  15326. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15327. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15328. * src/PeerInteractionCommand.cc
  15329. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15330. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15331. * src/PeerInteraction.cc
  15332. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15333. * src/main.cc
  15334. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15335. Added the description of "--max-download-limit" option.
  15336. Removed the description of "--upload-limit" option.
  15337. Added the description of "--max-upload-limit" option.
  15338. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15339. Added "--max-download-limit" option and "--max-upload-limit" option.
  15340. Added the warning message if "--upload-limit" option is used.
  15341. * src/DownloadCommand.cc
  15342. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15343. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15344. To rewrite segment download mechanism for HTTP/FTP download.
  15345. Use BitfieldMan to manage segment download.
  15346. * src/HttpResponseCommand.h
  15347. (executeInternal): Pass the reference of segment.
  15348. * src/AbstractCommand.cc
  15349. (prepareForRetry): Call segmentMan->cancelSegment here.
  15350. (onAbort): Call segmentMan->cancelSegment here.
  15351. * src/HttpDownloadCommand.cc
  15352. (prepareForNextSegment): New function.
  15353. * src/DownloadEngineFactory.cc
  15354. (newConsoleEngine): Removed splitter.
  15355. (newTorrentConsoleEngine): Removed splitter.
  15356. * src/Request.h
  15357. (segment): Renamed from seg.
  15358. * src/FtpInitiateConnectionCommand.h
  15359. (executeInternal): Pass the reference of segment.
  15360. * src/AbstractCommand.h
  15361. (executeInternal): Pass the reference of segment.
  15362. * src/pref.h
  15363. (PREF_SEGMENT_SIZE): New definition.
  15364. * src/HttpProxyRequestCommand.h
  15365. (executeInternal): Pass the reference of segment.
  15366. * src/HttpResponseCommand.cc
  15367. (checkResponse): Allowed status 206 when a request range starts 0.
  15368. (handleDefaultEncoding): Rewritten the code related to Segment.
  15369. (handleOtherEncoding): Rewritten the code related to Segment.
  15370. * src/SegmentMan.h
  15371. (SegmentEntry): New class.
  15372. (SegmentEntries): New type definition.
  15373. (bitfield): New variable.
  15374. (usedSegmentEntries): New variable.
  15375. (onNullBitfield): New function.
  15376. (checkoutSegment): New function.
  15377. (segments): Removed.
  15378. (splitter): Removed.
  15379. (unregisterId): Removed.
  15380. (getSegment): New function(overload)
  15381. (getDownloadedSize): Removed.
  15382. (cancelSegment): New function.
  15383. (completeSegment): New function.
  15384. (initBitfield): New function.
  15385. (hasSegment): New function.
  15386. (getDownloadLength): New function.
  15387. * src/BitfieldMan.h
  15388. (getStartIndex): New function.
  15389. (getEndIndex): New function.
  15390. (getMissingUnusedIndex): New function(overload).
  15391. (getSparseMissingUnusedIndex): New function.
  15392. * src/BitfieldMan.cc
  15393. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15394. (getMissingUnusedIndex): New function(overload).
  15395. (Range): New class.
  15396. (getStartIndex): New function.
  15397. (getEndIndex): New function.
  15398. (getSparseMissingUnusedIndex): New function.
  15399. (isBitSetInternal): Return false if the given index is less than 0.
  15400. * src/HttpInitiateConnectionCommand.h
  15401. (executeInternal): Pass the reference of segment.
  15402. * src/FtpNegotiateCommand.h
  15403. (executeInternal): Pass the reference of segment.
  15404. * src/FtpNegotiateCommand.cc
  15405. (recvSize): Initialize bitfield here.
  15406. * src/FtpTunnelResponseCommand.h
  15407. (executeInternal): Pass the reference of segment.
  15408. * src/HttpConnection.cc
  15409. (createRequest): Rewritten range header processing.
  15410. * src/DownloadCommand.h
  15411. (executeInternal): Pass the reference of segment.
  15412. (prepareForRetry): Removed.
  15413. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15414. function.
  15415. * src/main.cc
  15416. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15417. * src/SegmentMan.cc
  15418. (SegmentMan): Added bitfield. Removed splitter.
  15419. (~SegmentMan): Added bitfield. Removed splitter.
  15420. (unregisterId): Removed.
  15421. (getSegment): Rewritten.
  15422. (updateSegment): Rewritten.
  15423. (save): Rewritten.
  15424. (read): Rewritten.
  15425. (finished): Rewritten.
  15426. (getDownloadedSize): Removed.
  15427. (initBitfield): New function.
  15428. (FindSegmentEntryByIndex): New function object.
  15429. (FindSegmentEntryByCuid): New function object.
  15430. (checkoutSegment): New function.
  15431. (onNullBitfield): New function.
  15432. (getSegment): New function(overload).
  15433. (CancelSegment): New function object.
  15434. (cancelSegment): New function.
  15435. (completeSegment): New function.
  15436. (hasSegment): New function.
  15437. (getDownloadLength): New function.
  15438. * src/FtpInitiateConnectionCommand.cc
  15439. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15440. * src/Segment.h: Rewritten.
  15441. * src/Segment.cc (operator<<): New function.
  15442. * src/HttpDownloadCommand.h
  15443. (prepareForNextSegment): New function.
  15444. * src/Request.cc
  15445. (resetUrl): Made segment null.
  15446. * src/DownloadEngine.cc
  15447. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15448. * src/HttpProxyRequestCommand.h
  15449. (executeInternal): Pass the reference of segment.
  15450. * src/DownloadCommand.cc
  15451. (executeInternal): Rewritten the code related to Segment.
  15452. (prepareForRetry): Removed.
  15453. (prepareForNextSegment): Rewritten.
  15454. * src/FtpTunnelResponseCommand.h
  15455. (executeInternal): Pass the reference of segment.
  15456. To add HTTP 1.1 persistent connection support(experimental)
  15457. * src/HttpRequestCommand.cc
  15458. (executeInternal): Disable keep alive if it is disabled by
  15459. configuration.
  15460. * src/Request.h
  15461. (keepAlive): New variable.
  15462. (isKeepAlive): New function.
  15463. (setKeepAlive): New function.
  15464. * src/pref.h
  15465. (PREF_HTTP_KEEP_ALIVE): New definition.
  15466. * src/HttpResponseCommand.cc
  15467. (executeInternal): Check the remote server supports keep alive.
  15468. * src/HttpConnection.cc
  15469. (createRequest): Send "Connection: close" only if keep alive is
  15470. disabled.
  15471. * src/main.cc
  15472. (main):
  15473. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15474. To add max download speed limit:
  15475. * src/pref.h
  15476. (PREF_MAX_SPEED_LIMIT): New definition.
  15477. * src/PeerInteractionCommand.cc
  15478. (executeInternal): Added max download speed limit. Not tested yet.
  15479. * src/SegmentMan.h
  15480. (PeerStats): New type definition.
  15481. (peerStats): New variable.
  15482. (registerPeerStat): New function.
  15483. (FindPeerStat): New function object.
  15484. (getPeerStat): New function.
  15485. (calculateDownloadSpeed): New function.
  15486. * src/SpeedCalc.h: New class.
  15487. * src/SpeedCalc.cc: New class.
  15488. * src/main.cc
  15489. (main):
  15490. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15491. download speed is not restricted).
  15492. * src/PeerStat.h: New class.
  15493. * src/SegmentMan.cc
  15494. (registerPeerStat): New function.
  15495. (calculateDownloadSpeed): New function.
  15496. * src/DownloadCommand.cc
  15497. (STARTUP_IDLE_TIME): New definition.
  15498. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15499. downloadStart.
  15500. (~DownloadCommand): Call peerStat->downloadStop.
  15501. (executeInternal): Added download speed limitter. Rewritten lowest
  15502. speed limitter.
  15503. * src/HttpConnection.cc
  15504. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15505. * src/AbstractCommand.cc
  15506. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15507. Added hostname to the error message.
  15508. * src/ConsoleDownloadEngine.cc
  15509. (calculateStatistics): Initialize psize with dlSize.
  15510. * src/PieceMessage.cc
  15511. (receivedAction): Do not call peerInteraction->abortPiece here.
  15512. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15513. * src/BitfieldMan.h
  15514. (clearAllUseBit): New function.
  15515. (setAllUseBit): New function.
  15516. * src/BitfieldMan.cc
  15517. (clearAllBit): Do not clear useBitfield here.
  15518. (clearAllUseBit): New function.
  15519. (setAllUseBit): New function.
  15520. * src/Piece.cc
  15521. (clearAllBlock): Call bitfield->clearAllUseBit().
  15522. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15523. To make filename URL-decoded:
  15524. * src/HttpResponseCommand.h: Updated doc.
  15525. * src/HttpResponseCommand.cc
  15526. (determinFilename): Made filename URL-decoded.
  15527. * src/FtpInitiateConnectionCommand.cc
  15528. (executeInternal): Made filename URL-decoded.
  15529. * src/Util.h (urldecode): New function.
  15530. * src/Util.cc (urldecode): New function.
  15531. To fix a bug that caused assertion failure in ares_strerror:
  15532. * src/NameResolver.cc (callback): Fixed the bug.
  15533. * Release 0.7.3
  15534. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15535. To add --seed-time and --seed-ratio command-line option:
  15536. * src/Option.h (getAsDouble): New function.
  15537. * src/Option.cc (getAsDouble): New function.
  15538. * src/SeedCheckCommand.h: New class.
  15539. * src/SeedCheckCommand.cc: New class.
  15540. * src/DownloadEngineFactory.cc
  15541. (SeedCheckCommand.h): Included.
  15542. (UnionSeedCriteria.h): Included.
  15543. (TimeSeedCriteria.h): Included.
  15544. (ShareRatioSeedCriteria.h): Included.
  15545. (newTorrentConsoleEngine): Added the processing of seed option.
  15546. * src/SeedCriteria.h: New class.
  15547. * src/ShareRatioSeedCriteria.h: New class.
  15548. * src/TimeSeedCriteria.h: New class.
  15549. * src/UnionSeedCriteria.h: New class.
  15550. * src/prefs.h
  15551. (PREF_SEED_TIME): New definition.
  15552. (PREF_SEED_RATIO): New definition.
  15553. * src/main.cc
  15554. (showUsage): Added --seed-time and --seed-ratio option.
  15555. (main): Added --seed-time and --seed-ratio option.
  15556. Made default log file name "/dev/null".
  15557. * src/SharedHandle.h
  15558. (SharedHandle): Copy constructor. Made it assignable from the
  15559. SharedHandle of the subclasses.
  15560. (operator=): Made it assignable from the SharedHandle of the
  15561. subclasses.
  15562. (getRefCount): New function.
  15563. To add notice log level and the switch to write log to stdout. This
  15564. switch is configurable per log level.
  15565. * src/Logger.h
  15566. (notice): New function.
  15567. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15568. constant.
  15569. * src/LogFactory.cc
  15570. (getInstance): The use of NullLogger was removed. A log message with
  15571. notice log level was made written to stdout along with log file.
  15572. * src/NullLogger.h
  15573. (notice): New function.
  15574. * src/SimpleLogger.h
  15575. (writeHeader): Added the 'file' argument.
  15576. (writeLog): Added the 'file' argument.
  15577. (writeFile): New function.
  15578. (stdoutField): New variable.
  15579. (SimpleLogger): Removed the default constructor.
  15580. (SimpleLogger): Made the default value of logfile 0.
  15581. (debug): Added 'virtual' keyword.
  15582. (info): Added 'virtual' keyword.
  15583. (warn): Added 'virtual' keyword.
  15584. (error): Added 'virtual' keyword.
  15585. (notice): New function.
  15586. (setStdout): New function.
  15587. * src/SimpleLogger.cc
  15588. (WRITE_LOG): Replaced writeLog with writeFile.
  15589. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15590. (SimpleLogger): Removed the default constructor.
  15591. (setStdout): New function.
  15592. (writeLog): Added the handling of NOTICE log level.
  15593. (writeFile): New function.
  15594. (notice): New function.
  15595. * src/TorrentMan.h: Updated doc.
  15596. * src/BitfieldMan.h: Updated doc.
  15597. * src/TrackerWatcherCommand.cc
  15598. (execute): Return true if error occurred in the request to the tracker
  15599. and halt is requested.
  15600. * src/TrackerUpdateCommand.cc
  15601. (execute): Return true if error occurred in the request to the tracker
  15602. and halt is requested.
  15603. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15604. DownloadEngine:
  15605. * src/TorrentConsoleDownloadEngine.h
  15606. (onSelectiveDownloadingCompletes): Removed.
  15607. * src/TorrentConsoleDownloadEngine.cc
  15608. (onSelectiveDownloadingCompletes): Removed.
  15609. * src/TorrentDownloadEngine.h
  15610. (onEndOfRun): Added 'virtual' keyword.
  15611. (afterEachIteration): Removed.
  15612. (onSelectiveDownloadingCompletes): Removed.
  15613. * src/TorrentDownloadEngine.cc
  15614. (onEndOfRun): Removed filenameFixed.
  15615. (afterEachIteration): Removed.
  15616. * src/TorrentMan.cc
  15617. (completePiece): Call onDownloadComplete here.
  15618. (onDownloadComplete): Added 2 log messages.
  15619. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15620. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15621. * src/NameResolver.h: Added the prototype declaration of callback().
  15622. To support c-ares library:
  15623. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15624. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15625. * src/FtpInitiateConnectionCommand.h:
  15626. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15627. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15628. * src/HttpInitiateConnectionCommand.h:
  15629. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15630. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15631. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15632. #1542285 by tizianomueller)
  15633. * src/HttpInitiateConnectionCommand.cc:
  15634. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15635. * src/FtpInitiateConnectionCommand.cc:
  15636. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15637. * src/DownloadEngine.h:
  15638. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15639. * src/DownloadEngine.cc:
  15640. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15641. To fix the bug that causes compilation failure with metalink-support
  15642. disabled(bug#1543587):
  15643. * src/main.cc: Fixed with the patch by tizianomueller.
  15644. * Release 0.7.2
  15645. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15646. * src/main.cc
  15647. (main): Added a message to inform users that aria2 is starting to
  15648. verify checksum.
  15649. * src/RequestInfo.cc
  15650. (printDownloadAbortMessage): Added a message to inform users that
  15651. transfer can be resumed.
  15652. * src/FeatureConfig.cc
  15653. (FEATURE_ASYNC_DNS): New definition.
  15654. (FeatureConfig): Added aysnc DNS entry.
  15655. To replace CommandUuid with Command* in SocketEntry and
  15656. NameResolverEntry:
  15657. * src/DownloadEngine.h
  15658. (CommandUuids): Removed.
  15659. (SocketEntry::commandUuid): Removed.
  15660. (SocketEntry::command): New variable.
  15661. (SocketEntry::SocketEntry): Updated.
  15662. (SocketEntry::operator==): Updated.
  15663. (NameResolverEntry::commandUuid): Removed.
  15664. (NameResolverEntry::command): New variable.
  15665. (NameResolverEntry::NameResolverEntry): Updated.
  15666. (NameResolverEntry::operator==): Updated.
  15667. (waitData): Changed the argument type.
  15668. (addSocketForReadCheck): Changed the argument type.
  15669. (deleteSocketForReadCheck): Changed the argument type.
  15670. (addSocketForWriteCheck): Changed the argument type.
  15671. (deleteSocketForWriteCheck): Changed the argument type.
  15672. (addNameResolverCheck): Changed the argument type.
  15673. (deleteNameResolverCheck): Changed the argument type.
  15674. * src/DownloadEngine.cc
  15675. (FindCommand): Removed.
  15676. (run): Removed activeUuid. Added activeCommands instead.
  15677. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15678. (AccumulateActiveCommand): New function object.
  15679. (waitData): Use AccumulateActiveCommand.
  15680. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15681. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15682. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15683. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15684. (addNameResolverCheck): Use Command instead of CommandUuid.
  15685. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15686. * src/AbstractCommand.cc
  15687. (disableReadCheckSocket): Updated according to the changes in
  15688. DownloadEngine.
  15689. (setReadCheckSocket): Updated according to the changes in
  15690. DownloadEngine.
  15691. (disableWriteCheckSocket): Updated according to the changes in
  15692. DownloadEngine.
  15693. (setWriteCheckSocket): Updated according to the changes in
  15694. DownloadEngine.
  15695. (setNameResolverCheck): Updated according to the changes in
  15696. DownloadEngine.
  15697. (disableNameResolverCheck): Updated according to the changes in
  15698. DownloadEngine.
  15699. * src/AbstractCommand.cc
  15700. (disableReadCheckSocket): Updated according to the changes in
  15701. DownloadEngine.
  15702. (setReadCheckSocket): Updated according to the changes in
  15703. DownloadEngine.
  15704. (disableWriteCheckSocket): Updated according to the changes in
  15705. DownloadEngine.
  15706. (setWriteCheckSocket): Updated according to the changes in
  15707. DownloadEngine.
  15708. * release 0.7.1
  15709. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15710. To handle the case where some BitTorrent tracker requires all letters
  15711. except for [A-Za-z0-9] is URL encoded.
  15712. * src/Util.h
  15713. (torrentUrlencode): New function.
  15714. * src/Util.cc
  15715. (ctype.h): Included.
  15716. (torrentUrlencode): New function.
  15717. * src/TrackerWatcherCommand.cc
  15718. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15719. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15720. To add asynchronous DNS support(libares):
  15721. * src/AbstractCommand.h
  15722. (setNameResolverCheck): New function.
  15723. (disableNameResolverCheck): New function
  15724. (resolveHostname): New function.
  15725. * src/AbstractCommand.cc
  15726. (setNameResolverCheck): New function.
  15727. (disableNameResolverCheck): New function
  15728. (resolveHostname): New function.
  15729. * src/FtpInitiateConnectionCommand.h
  15730. (nameResolver): New function.
  15731. * src/FtpInitiateConnectionCommand.cc
  15732. (Util.h): Included.
  15733. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15734. disableWriteCheckSocket.
  15735. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15736. (executeInternal): Added async DNS support.
  15737. * src/HttpInitiateConnectionCommand.h
  15738. (nameResolver): New function.
  15739. * src/HttpInitiateConnectionCommand.cc
  15740. (DlRetryEx.h): Included.
  15741. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15742. disableWriteCheckSocket.
  15743. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15744. (executeInternal): Added async DNS support.
  15745. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15746. by extern "C" declaration.
  15747. * src/NameResolver.cc: New class.
  15748. * src/Util.h:
  15749. (isNumberAndDotsNotation): New function
  15750. * src/Util.cc
  15751. (isNumberAndDotsNotation): New function.
  15752. * src/DownloadEngine.h
  15753. (NameResolver.h): Included.
  15754. (NameResolverEntry): New class.
  15755. (NameResolverEntries): New type definition.
  15756. (addNameResolverCheck): New function.
  15757. (deleteNameResolverCheck): New function.
  15758. * src/DownloadEngine.cc
  15759. (run): Initialize cp with 0.
  15760. (SetDescriptor::operator()): Added for NameResolverEntry.
  15761. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15762. (waitData): Check nameResolver entries.
  15763. (updateFdSet): Update fds in nameResolver entries.
  15764. (addNameResolverCheck): New function.
  15765. (deleteNameResolverCheck): new function.
  15766. * src/PeerInteractionCommand.cc
  15767. (executeInternal): Fixed wrong socket handling.
  15768. * src/main.cc
  15769. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15770. * src/Util.cc
  15771. (fileChecksum): Removed the call to ctx.digestReset().
  15772. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15773. * po/ru.po: Azamat sent me Russian translation.
  15774. * src/FtpNegotiateCommand.cc
  15775. (recvGreeting): Call disableWriteCheckSocket just after
  15776. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15777. (recvRetr): Recognized status code 125 as a acceptable response code.
  15778. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15779. case-insesitive filesystem(BUG#1531057).
  15780. * src/Time.h: Renamed as TimeA2.h.
  15781. * src/Time.cc: Renamed as TimeA2.cc.
  15782. * src/TimeA2.h: New class.
  15783. * src/TimeA2.cc: New class.
  15784. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15785. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15786. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15787. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15788. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15789. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15790. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15791. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15792. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15793. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15794. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15795. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15796. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15797. * release 0.7.0
  15798. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15799. * src/PeerChokeCommand.h
  15800. (PeerChokeCommand): Rearranged the arguments.
  15801. * src/PeerChokeCommand.cc
  15802. (PeerChokeCommand): Rearranged the arguments.
  15803. * src/MetalinkEntry.h
  15804. (Checksum.h): Included.
  15805. (md5): Removed.
  15806. (sha1): Removed.
  15807. (checksum): New variable.
  15808. (operator=): Updated.
  15809. (check): Removed.
  15810. * src/prefs.h
  15811. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15812. (PREF_FOLLOW_TORRENT): New definition.
  15813. (PREF_SELECT_FILE): New definition.
  15814. (PREF_FOLLOW_METALINK): New definition.
  15815. * src/MetalinkResource.h
  15816. (TYPE_HTTPS): Added to enum TYPE.
  15817. * src/TorrentMan.cc
  15818. (~TorrentMan): Rewritten.
  15819. * src/MultiDiskWriter.cc
  15820. (MultiDiskAdaptor): Updated according to the changes in
  15821. MessageDigestContext.
  15822. (~MultiDiskAdaptor): Updated according to the changes in
  15823. MessageDigestContext.
  15824. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15825. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15826. * src/Util.h
  15827. (fileChecksum): Updated according to the changes in
  15828. MessageDigestContext.
  15829. * src/Util.cc
  15830. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15831. (fileChecksum): Updated according to the changes in
  15832. MessageDigestContext.
  15833. * src/messageDigest.h: Rewritten.
  15834. * src/MetalinkEntry.cc
  15835. (check): Removed.
  15836. (Supported): Updated.
  15837. (dropUnsupportedResource): Fixed a memory leak.
  15838. * src/ShaVisitor.cc
  15839. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15840. (~ShaVisitor): Updated according to the changes in
  15841. MessageDigestContext.
  15842. (visit): Updated according to the changes in MessageDigestContext.
  15843. * src/main.cc
  15844. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15845. command-line option added.
  15846. * src/DownloadEngine.h
  15847. (SocketEntry): New class.
  15848. (SocketEntries): New definition.
  15849. (PairFind): Removed.
  15850. (SockCmdMap): Removed.
  15851. * src/DownloadEngine.cc
  15852. (DownloadEngine): Rewritten.
  15853. (~DownloadEngine): Rewritten.
  15854. (run): Renamed activeCommandUuids as activeUuids.
  15855. (SetDescriptor): Rewritten.
  15856. (AccumulateActiveCommandUuid): Removed.
  15857. (AccumulateActiveUuid): New function object.
  15858. (waitData): Rewritten.
  15859. (updateFdSet): Rewritten.
  15860. (addSocket): Rewritten.
  15861. (deleteSocket): Rewritten.
  15862. (addSocketForReadCheck): Rewritten.
  15863. (deleteSocketForReadCheck): Rewritten.
  15864. (addSocketForWriteCheck): Rewritten.
  15865. (deleteSocketForWriteCheck): Rewritten.
  15866. * src/Xml2MetalinkProcessor.cc
  15867. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15868. * src/DownloadCommand.cc
  15869. (executeInternal): Added the check routine for lowest speed limit.
  15870. * src/AbstractDiskWriter.cc
  15871. (AbstractDiskWriter): Updated according to the changes in
  15872. MessageDigestContext.
  15873. (~AbstractDiskWriter): Updated according to the changes in
  15874. MessageDigestContext.
  15875. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15876. * src/RequestInfo.h: New class.
  15877. * src/UrlRequestInfo.h: New class.
  15878. * src/UrlRequestInfo.cc: New class.
  15879. * src/TorrentRequestInfo.h: New class.
  15880. * src/TorrentRequestInfo.cc: New class.
  15881. * src/MetalinkRequestInfo.h: New class.
  15882. * src/MetalinkRequestInfo.cc: New class.
  15883. * src/Checksum.h: New class.
  15884. * src/DownloadEngineFactory.h: New class.
  15885. * src/DownloadEngineFactory.cc: New class.
  15886. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15887. * src/Option.h
  15888. (getAsBool): New function.
  15889. * src/Option.cc
  15890. (prefs.h): Included.
  15891. (defined): 0-length value is now recognized as undefined.
  15892. (getAsInt): Rewritten.
  15893. (getAsLLInt): Rewritten.
  15894. (getAsBool): New function.
  15895. * src/FeatureConfig.h: Rewritten.
  15896. * src/FeatureConfig.cc: Rewritten.
  15897. * src/prefs.h
  15898. (PREF_STDOUT_LOG): New definition.
  15899. (PREF_LOG): New definition.
  15900. (PREF_DIR): New definition.
  15901. (PREF_OUT): New definition.
  15902. (PREF_SPLIT): New definition.
  15903. (PREF_DAEMON): New definition.
  15904. (PREF_REFERER): New definition.
  15905. (PREF_TORRENT_FILE): New definition.
  15906. (PREF_LISTEN_PORT): New definition.
  15907. (PREF_METALINK_FILE): New definition.
  15908. (PREF_METALINK_VERSION): New definition.
  15909. (PREF_METALINK_LANGUAGE): New definition.
  15910. (PREF_METALINK_OS): New definition.
  15911. (PREF_METALINK_SERVERS): New definition.
  15912. * src/main.cc
  15913. (main): Following command-line parameters are now put into Option
  15914. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15915. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15916. metalinkLanguage, metalinkOs, metalinkServers
  15917. To fix the bug that aria2 can not handle http response header properly.
  15918. * src/HttpHeader.cc
  15919. (put): Made name lowercased.
  15920. (defined): Made name lowercased.
  15921. (getFirst): Made name lowercased.
  15922. (get): Made name lowercased.
  15923. (getFirstAsInt): Rewritten.
  15924. (getFirstAsLLInt): Rewritten.
  15925. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15926. * src/TorrentMan.h:
  15927. (advertisePiece): Updated doc.
  15928. (getAdvertisedPieceIndexes): Updated doc.
  15929. (removeAdvertisedPiece); New function.
  15930. * src/TorrentMan.cc
  15931. (FindElapsedHave): New function object.
  15932. (removeAdvertisedPiece): New function.
  15933. * src/HaveEraseCommand.h: New class.
  15934. * src/HaveEraseCommand.cc: New class.
  15935. * src/FeatureConfig.h: New class.
  15936. * src/FeatureConfig.cc: New class.
  15937. * src/Request.h
  15938. (defaultPorts): Removed.
  15939. * src/Request.cc
  15940. (FeatureConfig.h): Included.
  15941. (Request): Removed the statements related to defaultPorts.
  15942. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15943. A default port number is now retrieved from FeatureConfig.
  15944. * src/main.cc
  15945. (HaveEraseCommand.h): Included.
  15946. (showVersion): Added the output of feature list.
  15947. (main): Added HaveEraseCommand to command queue in BitTorrent
  15948. downloading.
  15949. * src/PeerInteractionCommand.h
  15950. (chokeCheckPoint): Commented out.
  15951. (periodicExecPoint): New variable.
  15952. * src/PeerInteractionCommand.cc
  15953. (executeInternal): Following methods are now called in at least every
  15954. 0.5 seconds to reduce CPU usage:
  15955. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15956. checkHave(), sendKeepAlive().
  15957. (checkLongTimePeerChoking): Commented out.
  15958. * src/BitfieldMan.h
  15959. (getNthBitIndex): Changed the method signature.
  15960. (getMissingIndexRandomly): Changed the method signature.
  15961. * src/BitfieldMan.cc
  15962. (getNthBitIndex): Rewritten
  15963. (getMissingIndexRandomly): Rewritten.
  15964. (hasMissingPiece): Rewritten.
  15965. (getMissingIndex): Refactored.
  15966. (getMissingUnusedIndex); Refactored.
  15967. (getMissingIndex): Refactored.
  15968. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15969. * src/PeerMessage.h
  15970. (Piece.h): Included.
  15971. (SharedHandle.h): Included.
  15972. (invalidate): New variable.
  15973. (uploading): New variable.
  15974. (isInvalidate): New function.
  15975. (isUploading): New function.
  15976. (onPush): New function.
  15977. (onChoked): New function.
  15978. (onCanceled): New function.
  15979. (onAbortPiece): New function.
  15980. (PeerMessageHandle): New type definition.
  15981. * src/PeerMessage.cc
  15982. (PeerMessage): Added the initialization for invalidate and uploading.
  15983. * src/CancelMessage.h
  15984. (CancelMessage): Rewritten.
  15985. * src/RejectMessage.h
  15986. (RejectMessage): Rewritten.
  15987. * src/Metalinker.h
  15988. (operator=): Defined.
  15989. * src/MetaEntry.h
  15990. (operator=): Defined.
  15991. * src/MetalinkResource.h
  15992. (operator=): Defined.
  15993. * src/AllowedFastMessage.h
  15994. (AllowedFastMessage): Rewritten.
  15995. * src/HandshakeMessage.h
  15996. (HandshakeMessage): New function(overload).
  15997. * src/HandshakeMessage.cc
  15998. (HandshakeMessage): Rewritten.
  15999. (init): New function.
  16000. * src/HaveMessage.h
  16001. (HaveMessage): Rewritten.
  16002. * src/Time.h
  16003. (operator=): Defined the function body here.
  16004. * src/Time.cc
  16005. (operator=): Removed.
  16006. * src/SocketCore.h
  16007. (operator==): Defined here.
  16008. (operator!=): Defined here.
  16009. (operator<): Defined here.
  16010. * src/SocketCore.cc
  16011. (operator==): Removed.
  16012. (operator<): Removed.
  16013. * src/BitfieldMan.h
  16014. (operator=): Defined the function body here.
  16015. * src/BitfieldMan.cc
  16016. (operator=): Removed.
  16017. * src/TorrentMan.h
  16018. (deleteErrorPeer): Removed.
  16019. (deleteUnusedPeer); New function.
  16020. * src/TorrentMan.cc
  16021. (addPeer): Call deleteUnusedPeer.
  16022. (deleteErrorPeer): Removed.
  16023. (deleteUnusedPeer): New function.
  16024. * src/PeerAbstractCommand.h
  16025. (setNoCheck): New function.
  16026. (noCheck): New variable.
  16027. * src/PeerAbstractCommand.cc
  16028. (PeerAbstractCommand): Added the initialization of noCheck.
  16029. (execute): Added a check for noCheck.
  16030. (setNoCheck): New function.
  16031. * src/Util.h
  16032. (stdio.h): Included.
  16033. * src/Util.cc
  16034. (unistd.h): Included.
  16035. * src/DefaultDiskWriter.cc
  16036. (unistd.h): Included.
  16037. * src/Peer.h
  16038. (operator==): Defined the function body here.
  16039. (operator!=): Defined the function body here.
  16040. * src/Peer.cc
  16041. (operator==): Removed.
  16042. (operator!=): Removed.
  16043. * src/Piece.h
  16044. (Piece): Defined the function body here(copy constructor).
  16045. (operator=): Defined the function body here.
  16046. (operator==): Defined the function body here.
  16047. * src/Piece.cc
  16048. (Piece): Removed(copy constructor).
  16049. (operator=): Removed.
  16050. (operator==): Removed.
  16051. * src/PeerMessageUtil.h
  16052. (ChokeMessage.h): Removed.
  16053. (UnchokeMessage.h): Removed.
  16054. (InterestedMessage.h): Removed.
  16055. (NotInterestedMessage.h): Removed.
  16056. (HaveMessage.h): Removed.
  16057. (BitfieldMessage.h): Removed.
  16058. (RequestMessage.h): Removed.
  16059. (CancelMessage.h): Removed.
  16060. (PieceMessage.h): Removed.
  16061. (HandshakeMessage.h): Removed.
  16062. (KeepAliveMessage.h): Removed.
  16063. (PortMessage.h): Removed.
  16064. (HaveAllMessage.h): Removed.
  16065. (HaveNoneMessage.h): Removed.
  16066. (PeerConnection.h): Removed.
  16067. (HandshakeMessage.h): Included.
  16068. * src/BitfieldMessage.h
  16069. (init): New function.
  16070. (BitfieldMessage): Rewritten.
  16071. (BitfieldMessage): New function(overload).
  16072. * src/RequestSlot.h
  16073. (operator=): Defined the function body here.
  16074. (operator==): Defined the function body here.
  16075. * src/RequestSlot.cc
  16076. (operator=): Removed.
  16077. (operator==): Removed.
  16078. To remove the dependency on the PeerMessage subclass from
  16079. PeerInteraction:
  16080. * src/PeerMessageFactory.h: New class.
  16081. * src/PeerMessageFactory.cc: New class.
  16082. * src/SimplePeerMessage.cc
  16083. (send): If invalidate is true then do nothing.
  16084. * src/PeerInteractionCommand.cc
  16085. (HandshakeMessage.h): Included.
  16086. (KeepAliveMessage.h): Included.
  16087. (ChokeMessage.h): Included.
  16088. (UnchokeMessage.h): Included.
  16089. (HaveMessage.h): Included.
  16090. (executeInternal): Call setNoCheck().
  16091. Removed setWriteCheckSocket(socket).
  16092. * src/PeerInteraction.h
  16093. (ChokeMessage.h): Removed.
  16094. (UnchokeMessage.h): Removed.
  16095. (InterestedMessage.h): Removed.
  16096. (NotInterestedMessage.h): Removed.
  16097. (HaveMessage.h): Removed.
  16098. (BitfieldMessage.h): Removed.
  16099. (RequestMessage.h): Removed.
  16100. (CancelMessage.h): Removed.
  16101. (PieceMessage.h): Removed.
  16102. (HandshakeMessage.h): Removed.
  16103. (KeepAliveMessage.h): Removed.
  16104. (PortMessage.h): Removed.
  16105. (HaveAllMessage.h): Removed.
  16106. (HaveNoneMessage.h): Removed.
  16107. (RejectMessage.h): Removed.
  16108. (AllowedFastMessage.h): Removed.
  16109. (SuggestPieceMessage.h): Removed.
  16110. (PeerMessageFactory.h): Included.
  16111. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16112. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16113. (PeerMessageFactory): New variable.
  16114. (createPeerMessage): Removed.
  16115. (createHandshakeMessage): Removed.
  16116. (setPeerMessageCommonProperty): Removed.
  16117. (addRequestSlot): New function.
  16118. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16119. (getPeerMessageFactory): New function.
  16120. (createRequestMessage): Removed.
  16121. (createCancelMessage): Removed.
  16122. (createPieceMessage): Removed.
  16123. (createHaveMessage): Removed.
  16124. (createChokeMessage): Removed.
  16125. (createUnchokeMessage): Removed.
  16126. (createInterestedMessage): Removed.
  16127. (createNotInterestedMessage): Removed.
  16128. (createBitfieldMessage): Removed.
  16129. (createKeepAliveMessage): Removed.
  16130. (createHaveAllMessage): Removed.
  16131. (createHaveNoneMessage): Removed.
  16132. (createRejectMessage): Removed.
  16133. (createAllowedFastMessage): Removed.
  16134. * src/PeerInteraction.cc
  16135. (PeerInteraction): Allocate PeerMessageFactory here.
  16136. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16137. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16138. PieceMessage::ID.
  16139. (addMessage): Simplified by using PeerMessage::onPush().
  16140. (addRequestSlot): New function.
  16141. (rejectAllPieceMessageInQueue): Simplified by using
  16142. PeerMessage::onChoked().
  16143. (rejectPieceMessageInQueue): Simplified by using
  16144. PeerMessage::onCanceled().
  16145. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16146. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16147. (createHandshakeMessage): Removed.
  16148. (createPeerMessage): Removed.
  16149. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16150. (setPeerMessageCommonProperty): Removed.
  16151. (createRequestMessage): Removed.
  16152. (createCancelMessage): Removed.
  16153. (createPieceMessage): Removed.
  16154. (createHaveMessage): Removed.
  16155. (createChokeMessage): Removed.
  16156. (createUnchokeMessage): Removed.
  16157. (createInterestedMessage): Removed.
  16158. (createNotInterestedMessage): Removed.
  16159. (createBitfieldMessage): Removed.
  16160. (createKeepAliveMessage): Removed.
  16161. (createHaveAllMessage): Removed.
  16162. (createHaveNoneMessage): Removed.
  16163. (createRejectMessage): Removed.
  16164. (createAllowedFastMessage): Removed.
  16165. * src/PieceMessage.h
  16166. (createRejectMessage): New function.
  16167. (PieceMessage): Rewritten.
  16168. (onChoked): New function.
  16169. (onCanceled): New function.
  16170. * src/PieceMessage.cc
  16171. (send): If invalidate is true then do nothing, just return.
  16172. (createRejectMessage): New function.
  16173. (onChoked): New function.
  16174. (onCanceled): New function.
  16175. * src/RequestMessage.h
  16176. (RequestMessage): Rewritten.
  16177. (onPush): New function.
  16178. (onAbortPiece): New function.
  16179. * src/RequestMessage.cc
  16180. (onPush): New function.
  16181. (onAbortPiece): New function.
  16182. Update fd_set when a socket is added or deleted in order to improve
  16183. performance:
  16184. * src/DownloadEngine.h
  16185. (rfdset): New variable.
  16186. (wfdset): New variable.
  16187. (updateFdSet): New function.
  16188. * src/DownloadEngine.cc
  16189. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16190. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16191. (waitData): Copy rfdset and wfdset.
  16192. (updateFdSet): New function.
  16193. (addSocket): Call updateFdSet.
  16194. (deleteSocket): Call updateFdSet.
  16195. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16196. To add the support for Metalink3.0 backward compatible links:
  16197. * src/Request.h
  16198. (SAFE_CHARS): Added '#'.
  16199. (METALINK_MARK): New definition.
  16200. * src/Request.cc
  16201. (parseUrl): Added the support for Metalink3.0 backward compatible
  16202. links.
  16203. etc
  16204. * src/PeerInteraction.cc
  16205. (MsgPushBack): Removed.
  16206. (sendMessages): Use STL copy and back_inserter.
  16207. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16208. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16209. * src/TorrentMan.h
  16210. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16211. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16212. * src/SharedHandle.h: New class.
  16213. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16214. * src/HttpResponseCommand.h
  16215. (HttpResponseCommand): Wrapped Socket.
  16216. * src/SocketCore.h
  16217. (operator==): New function.
  16218. (operator!=): New function.
  16219. (operator<): New function.
  16220. (getSockfd): New function.
  16221. (isOpen): New function.
  16222. (writeData): New function.
  16223. * src/SocketCore.cc
  16224. (operator==): New function.
  16225. (operator!=): New function.
  16226. (operator<): New function.
  16227. * src/AbstractCommand.h
  16228. (socket): Changed its type to SocketHandle.
  16229. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16230. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16231. (disableReadCheckSocket): New function.
  16232. (disableWriteCheckSocket): New function.
  16233. (readCheckTarget): Changed its type to SocketHandle.
  16234. (writeCheckTarget): Changed its type to SocketHandle.
  16235. (AbstractCommand): Replaced Socket with SocketHandle.
  16236. * src/AbstractCommand.cc
  16237. (AbstractCommand): Replaced Socket with SocketHandle.
  16238. (~AbstractCommand): Removed the deallocation for Socket object.
  16239. (disableReadCheckSocket): New function.
  16240. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16241. (disableWriteCheckSocket): New function.
  16242. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16243. * src/HttpDownloadCommand.cc
  16244. (DownloadCommand): Replaced Socket with SocketHandle.
  16245. * src/PeerAbstractCommand.h
  16246. (socket): Changed its type to SocketHandle.
  16247. (peer): Changed its type to PeerHandle.
  16248. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16249. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16250. (disableReadCheckSocket): New function.
  16251. (disableWriteCheckSocket): New function.
  16252. (readCheckTarget): Changed its type to SocketHandle.
  16253. (writeCheckTarget): Changed its type to SocketHandle.
  16254. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16255. Replaced Peer with PeerHandle.
  16256. * src/HttpRequestCommand.cc
  16257. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16258. Use disableReadCheckSocket.
  16259. * src/PeerInitiateConnectionCommand.h
  16260. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16261. * src/PeerChokeCommand.cc
  16262. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16263. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16264. (execute): Use PeerHandle.
  16265. * src/PeerConnection.h
  16266. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16267. (socket): Changed its type to SocketHandle.
  16268. (PeerConnection): Replaced Socket with SocketHandle.
  16269. * src/PeerConnection.cc
  16270. (PeerConnection): Replaced Socket with SocketHandle.
  16271. * src/PeerInteractionCommand.h
  16272. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16273. Replaced Peer with PeerHandle.
  16274. * src/PeerInteractionCommand.cc
  16275. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16276. Replaced Peer with PeerHandle.
  16277. (executeInternal): Use disableWriteCheckSocket.
  16278. Use HandshakeMessageHandle.
  16279. (receiveMessages): Use PeerMessageHandle.
  16280. (prepareForNextPeer): Use PeerHandle.
  16281. * src/HttpProxyRequestCommand.h
  16282. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16283. * src/HttpResponseCommand.cc
  16284. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16285. * src/TorrentMan.cc
  16286. (nullPeer): Added external reference.
  16287. (~TorrentMan): Removed the deallocation of the elements of peers.
  16288. (addPeer): Rewritten.
  16289. (isPeerAvailable): Use nullPeer.
  16290. (deleteOldpeers): Replaced with deleteErrorPeer.
  16291. (deleteErrorPeer): New function.
  16292. (getPeer): Use PeerHandle and nullPeer.
  16293. (hasMissingPiece): Replaced Peer with PeerHandle.
  16294. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16295. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16296. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16297. (getMissingPiece): Replaced Peer with PeerHandle.
  16298. * src/FtpNegotiateCommand.cc
  16299. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16300. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16301. (recvGreeting): Use disableWriteCheckSocket.
  16302. (recvPasv): Removed the allocation of Socket.
  16303. Use disableReadCheckSocket.
  16304. (sendRestPasv): Use disableWriteCheckSocket.
  16305. (recvRetr): Changed assertion.
  16306. * src/PeerInteraction.h
  16307. (SharedHandle.h): Included SharedHandle.h.
  16308. (PeerMessageHandle): New type definition.
  16309. (HandshakeMessageHandle): New type definition.
  16310. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16311. (peer): Changed its type to PeerHandle.
  16312. (createHandshakeMessage): Replaced HandshakeMessage with
  16313. HandshakeMessageHandle.
  16314. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16315. (PeerInteraction): Replaced Peer with PeerHandle.
  16316. Replaced Socket with SocketHandle.
  16317. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16318. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16319. (receiveHandshake): Replaced HandshakeMessage with
  16320. HandshakeMessageHandle.
  16321. * src/PeerInteraction.cc
  16322. (PeerInteraction): Replaced Peer with PeerHandle.
  16323. Replaced Socket with SocketHandle.
  16324. (~PeerInteraction): Removed the deallocation of the elements of
  16325. messageQueue.
  16326. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16327. (isSendingMessageInProgress): Replaced PeerMessage with
  16328. PeerMessageHandle.
  16329. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16330. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16331. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16332. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16333. (abortPiece): Use PeerMessageHandle.
  16334. (receiveHandshake): Replaced HandshakeMessage with
  16335. HandshakeMessageHandle. Removed try-catch block.
  16336. (createHandshakeMessage): Replaced HandshakeMessage with
  16337. HandshakeMessageHandle.
  16338. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16339. Removed try-catch block.
  16340. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16341. * src/HttpProxyResponseCommand.cc
  16342. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16343. * src/FtpTunnelResponseCommand.h
  16344. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16345. * src/HttpConnection.cc
  16346. (HttpConnection): Replaced Socket with SocketHandle.
  16347. * src/PeerAbstractCommand.cc
  16348. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16349. (~PeerAbstractCommand): Removed the deallocation of socket.
  16350. Use disableReadCheckSocket, disableWriteCheckSocket.
  16351. (disableReadCheckSocket): New function.
  16352. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16353. (disableWriteCheckSocket): New function.
  16354. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16355. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16356. * src/FtpTunnelRequestCommand.cc
  16357. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16358. (~FtpTunnelRequestCommand): Corrected indentation.
  16359. * src/DownloadCommand.h
  16360. (DownloadCommand): Replaced Socket with SocketHandle.
  16361. * src/PeerListenCommand.cc
  16362. (PeerListenCommand): Removed the initialization of socket.
  16363. (~PeerListenCommand): Removed the deallocation of socket.
  16364. (bindPort): Use SocketHandle.
  16365. (execute): Use SocketHandle and PeerHandle.
  16366. * src/FtpDowndloadCommand.cc
  16367. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16368. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16369. * src/main.cc
  16370. (main): Corrected indentation.
  16371. * src/HttpInitiateConnectionCommand.cc
  16372. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16373. (executeInternal): Removed the allocation of socket.
  16374. * src/HttpRequestCommand.h
  16375. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16376. * src/FtpNegotiationCommand.h
  16377. (dataSocket): Changed its type to SocketHandle.
  16378. (serverSocket): Changed its type to SocketHandle.
  16379. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16380. * src/TorrentMan.h
  16381. (MAX_PEER_UPDATE): Removed.
  16382. (MAX_PEERS): New definition.
  16383. (Peers): The element is now of type PeerHandle.
  16384. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16385. (getPeer): Replaced Peer with PeerHandle.
  16386. (deleteOldErrorPeers): Removed.
  16387. (deleteErrorPeer): New function.
  16388. (hasMissingPiece): Replaced Peer with PeerHandle.
  16389. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16390. (getMissingPiece): Replaced Peer with PeerHandle.
  16391. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16392. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16393. (addActivePeer): Replaced Peer with PeerHandle.
  16394. (deleteActivePeer): Replaced Peer with PeerHandle.
  16395. Added a check for the return value of find.
  16396. * src/FtpTunnelResponseCommand.cc
  16397. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16398. * src/FtpInitiateConnectionCommand.cc
  16399. (executeInternal): Removed the allocation of socket.
  16400. * src/DownloadEngine.h
  16401. (Sockets): An element is now of type SocketHandle.
  16402. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16403. (CommandUuids): New type definition.
  16404. (rsockets): Changed its type to SockCmdMap.
  16405. (wsockets): Changed its type to SockCmdMap.
  16406. (addSocket): Rewritten.
  16407. (deleteSocket): Rewritten.
  16408. (addSocketForReadCheck): Rewritten.
  16409. (deleteSocketForReadCheck): Rewritten.
  16410. (addSocketForWriteCheck): Rewritten.
  16411. (deleteSocketForWriteCheck): Rewritten.
  16412. (PairFind): New template class.
  16413. * src/HttpDownloadCommand.h
  16414. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16415. * src/FtpConnection.cc
  16416. (FtpConnection): Replaced Socket with SocketHandle.
  16417. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16418. block.
  16419. * src/InitiateConnectionCommandFactory.cc
  16420. (DlAbortEx.h): Included DlAbortEx.h.
  16421. (createInitiateConnectionCommand): Throw exception if the protocol of
  16422. requested URI is not supported.
  16423. * src/Peer.cc
  16424. (nullPeer): Changed its type to PeerHandle.
  16425. (operator==): New function.
  16426. (operator!=): New function.
  16427. * src/Peer.h
  16428. (SharedHandle.h): Included SharedHandle.h.
  16429. (operator==): New function.
  16430. (operator!=): New function.
  16431. (Peer): Added the default constructor.
  16432. Use resetStatus() to initialize member variables.
  16433. (nullPeer): Removed.
  16434. * src/TrackerUpdateCommand.cc
  16435. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16436. with MIN_PEERS.
  16437. * src/PeerListenCommand.h
  16438. (socket): Changed its type to SocketHandle.
  16439. * src/Command.h
  16440. (CommandUuid): New type definition.
  16441. (uuid): New variable.
  16442. (uuidGen): New variable.
  16443. (Command): Added the initialization of uuid.
  16444. (getUuid): New function.
  16445. * src/Socket.h
  16446. (Socket): Removed.
  16447. (SocketHandle): New type definition.
  16448. * src/DownloadEngine.h
  16449. (FindCommand): New function object.
  16450. (run): The portion of socket check was rewritten.
  16451. (SetDescriptor): New function object.
  16452. (AccumulateActiveCommandUuid): New function object.
  16453. (waitData): Rewritten.
  16454. (addSocket): Rewritten.
  16455. (deleteSocket): Rewritten.
  16456. (addSocketForReadCheck): Rewritten.
  16457. (addSocketForWriteCheck): Rewritten.
  16458. (deleteSocketForReadCheck): Rewritten.
  16459. (deleteSocketForWriteCheck): Rewritten.
  16460. * src/HttpProxyResponseCommand.h
  16461. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16462. * src/HttpConnection.h
  16463. (socket): Changed its type to SocketHandle.
  16464. (HttpConnection): Replaced Socket with SocketHandle.
  16465. * src/PeerInitiateConnectionCommand.cc
  16466. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16467. (executeInternal): Removed the allocation of socket.
  16468. (prepareForNextPeer): Use PeerHandle.
  16469. * src/PeerMessage.h
  16470. (peer): Changed its type to PeerHandle.
  16471. (getPeer): Replaced Peer with PeerHandle.
  16472. (setPeer): Replaced Peer with PeerHandle.
  16473. * src/DownloadCommand.cc
  16474. (DownloadCommand): Replaced Socket with SocketHandle.
  16475. * src/FtpConnection.h
  16476. (socket): Changed its type to SocketHandle.
  16477. (FtpConnection): Replaced Socket with SocketHandle.
  16478. (sendPort); Replaced Socket with SocketHandle.
  16479. * src/FtpDowndloadCommand.h
  16480. (ctrlSocket): Changed its type to SocketHandle.
  16481. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16482. * src/HttpProxyRequestCommand.cc
  16483. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16484. * src/FtpTunnelRequestCommand.h
  16485. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16486. etc
  16487. * src/PeerChokeCommand.h
  16488. (setAllPeerChoked): Removed.
  16489. (setAllPeerResetDelta): Removed.
  16490. * src/PeerChokeCommand.cc
  16491. (setAllPeerChoked): Removed.
  16492. (ChokePeer): New function object.
  16493. (setAllPeerResetDelta): Removed.
  16494. (ResetDelta): New function object.
  16495. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16496. (execute): Show download speed when the local node is a seeder.
  16497. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16498. using STL.
  16499. * src/TrackerWatcherCommand.h
  16500. (MIN_PEERS): Removed.
  16501. * src/TorrentMan.cc
  16502. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16503. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16504. To fix the bug that .aria2 file is not saved if downloading is stopped
  16505. by the errors:it results that aria2 can not resume downloading:
  16506. * src/main.cc
  16507. (normalDownload): Added the call to save().
  16508. (main): Added the deletion of the elements in 'reserved'.
  16509. To fix log:
  16510. * src/PeerInteraction.cc
  16511. (receiveHandshake): Fixed log.
  16512. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16513. To improve download performance in BitTorrent:
  16514. * src/TorrentMan.cc
  16515. (getPeer): Check the number of connections. Return nullPeer if
  16516. it is greater than MAX_PEER_UPDATE.
  16517. This code was originally here, but was removed in 0.5.1.
  16518. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16519. To improve the conditional compilation:
  16520. * src/MultiDiskWriter.h:
  16521. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16522. * src/MultiDiskWriter.cc:
  16523. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16524. * src/Util.h:
  16525. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16526. Added ENABLE_BITTORRENT around computeFastSet().
  16527. * src/Util.cc:
  16528. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16529. Added ENABLE_BITTORRENT around computeFastSet().
  16530. * src/messageDigest.h:
  16531. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16532. * src/ShaVisitor.h:
  16533. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16534. * src/ShaVisitor.cc:
  16535. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16536. * src/main.cc:
  16537. Added ENABLE_BITTORRENT around includes and blocks related to
  16538. BitTorrent.
  16539. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16540. digest support is not available.
  16541. * src/AbstractDiskWriter.h:
  16542. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16543. * src/AbstractDiskWriter.cc:
  16544. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16545. * src/MetalinkEntry.cc
  16546. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16547. support is not available.
  16548. To add command-line options for Metalink:
  16549. * src/main.cc:
  16550. Added metalink-version, metalink-language, metalink-os,
  16551. follow-metalink.
  16552. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16553. * src/main.cc: Use these definition.
  16554. * Release 0.6.0
  16555. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16556. To add Metalink support(http/ftp only):
  16557. * src/AbstractCommand.h
  16558. (tryReserved): New function.
  16559. * src/AbstractCommand.cc
  16560. (execute): Call tryReserved().
  16561. (tryReserved): New function.
  16562. * src/Request.h
  16563. (Requests): New type definition.
  16564. * src/SegmentMan.h
  16565. (reserved): New variable.
  16566. * src/Util.h
  16567. (fileChecksum): New function.
  16568. (toUpper): New function.
  16569. (toLower): New function.
  16570. * src/Util.cc
  16571. (messageDigest.h): Included.
  16572. (trim): Trim \r\n\t.
  16573. (fileChecksum): New function.
  16574. (toUpper): New function.
  16575. (toLower): New function.
  16576. * src/main.cc
  16577. (normalDownload): New function.
  16578. (main): Added 2 command-line options: metalink-file,
  16579. metalink-connection. Their usage has not been written yet.
  16580. * src/MetalinkProcessor.h: New class.
  16581. * src/Xml2MetalinkProcessor.h: New class.
  16582. * src/Xml2MetalinkProcessor.cc: New class.
  16583. * src/MetalinkEntry.h: New class.
  16584. * src/MetalinkEntry.cc: New class.
  16585. * src/MetalinkResource.h: New class.
  16586. * src/MetalinkResource.cc: New class.
  16587. To add md5 message digest checking:
  16588. * src/messageDigest.h: Rewritten.
  16589. * src/MultiDiskWriter.cc: Updated according to the changes in
  16590. messageDigest.h.
  16591. * src/ShaVisitor.cc: Updated according to the changes in
  16592. messageDigest.h.
  16593. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16594. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16595. messageDigest.h.
  16596. To fix a bug that causes segfault when the payload length in peer
  16597. message is less than 0:
  16598. * src/PeerConnection.cc:
  16599. (receiveMessage): Fixed the bug.
  16600. * src/PeerMessageUtil.cc
  16601. (checkLength): Throw an exception if length is less than or equals to
  16602. 0.
  16603. To add new interfaces to Base64 encoding/decoding:
  16604. * src/Base64.h
  16605. (part_encode): Changed the method signature.
  16606. (encode): New function(overload).
  16607. (decode): New function(overload).
  16608. * src/Base64.cc
  16609. (part_encode): Rewritten.
  16610. (encode): Rewritten.
  16611. (encode): New function(overload).
  16612. To prevent a peer to download same piece if there is an error in
  16613. checksum:
  16614. * src/PieceMessage.cc
  16615. (receivedAction): Call peerInteraction->abortPiece().
  16616. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16617. To fix the bug that causes same have message is sent many times to
  16618. a single peer.
  16619. * src/Time.cc
  16620. (isNewer): Use Util::difftv().
  16621. * src/Util.cc
  16622. (difftv): Added a cast to (long long int).
  16623. * src/TorrentMan.cc
  16624. (advertisePiece): Use push_front.
  16625. (getAdvertisedPieceIndexes): A performance improvement was made.
  16626. To fix the bug that sends tracker requests without a sleep interval
  16627. when the number of connections is less than 15.
  16628. * src/TrackerWatcherCommand.cc
  16629. (execute): Now the number of connections is not a factor to decide
  16630. whether or not a tracker request should be sent or not.
  16631. * src/Time.h
  16632. (setTimeInSec): New function.
  16633. * src/Time.cc
  16634. (setTimeInSec): New function.
  16635. etc.
  16636. * src/ChokeMessage.cc
  16637. (receivedAction): Removed peer->snubbing = false
  16638. * src/PeerConnection.h
  16639. (receiveHandshake): Updated doc.
  16640. * src/TorrentMan.h
  16641. (getAdvertisedPieceIndexes): Updated the method signature.
  16642. * src/TorrentMan.cc
  16643. (getAdvertisedPieceIndexes): Updated the method signature.
  16644. * src/Time.h
  16645. (getTimeInMicros): Added a cast to (long long int).
  16646. (getTimeInMillis): Added a cast to (long long int).
  16647. * Release 0.5.2
  16648. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16649. To make a listening socket non-block:
  16650. * src/SocketCore.h
  16651. (setNonBlockingMode): New function.
  16652. * src/SocketCore.cc
  16653. (setNonBlockingMode): New function.
  16654. (beginListen): Added a call to setNonBlockingMode().
  16655. (acceptConnection): Call setNonBlockingMode().
  16656. (setBlockingMode): Updated.
  16657. To handle tracker's NAT-checking:
  16658. * src/PeerConnection.cc
  16659. (receiveHandshake): 'msg' param is filled with received data and
  16660. its length is assigned to 'length' param, even if all handshake
  16661. message is not yet received.
  16662. * src/PeerInteractionCommand.cc
  16663. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16664. a new peer connects to localhost.
  16665. A call to peerInteraction->sendHandshake() was removed because
  16666. it is called from peerInteraction->receiveHandshake(true).
  16667. * src/PeerInteraction.h
  16668. (quickReplied): New variable.
  16669. (receiveHandshake): Added an argument.
  16670. * src/PeerInteraction.cc
  16671. (PeerInteraction): Added the initialization of quickReplied.
  16672. (receiveHandshake): Send handshake message as soon as the info hash
  16673. in a handshake message from a peer is correct.
  16674. To change the random part of peer id and key parameter:
  16675. * src/TorrentMan.h
  16676. (key): New variable.
  16677. * src/TorrentMan.cc
  16678. (setupInternal1): Use Util::randomAlpha() to generate random part
  16679. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16680. key is also generated by Util::randomAlpha() and it is now 8 character
  16681. long.
  16682. * src/Util.h
  16683. (randomAlpha): New function.
  16684. * src/Util.cc
  16685. (randomAlpha): New function.
  16686. * src/TrackerWatcherCommand.cc
  16687. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16688. Added no_peer_id=1.
  16689. Set snubbing flag to false when a choke message is received from a
  16690. snubbed peer.
  16691. * src/ChokeMessage.cc
  16692. (receivedAction): Set snubbing flag to false.
  16693. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16694. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16695. * src/SimpleLogger.h (writeHeader): New function.
  16696. * src/SimpleLogger.cc (writeHeader): New function.
  16697. (writeLog): Fixed the bug that causes segfaults if exception message
  16698. contains an unescaped "%" character.
  16699. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16700. when a tracker request fails.
  16701. * src/Request.cc (parseUrl): Query string is now handled properly.
  16702. * Release 0.5.1
  16703. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16704. To add Time class which represents a specific instant in time and
  16705. its precision is microseconds. Time checking procedures were rewritten
  16706. using this object.
  16707. * src/Time.h: New class.
  16708. * src/Time.cc: New class.
  16709. * src/AbstractCommand.h
  16710. (updateCheckPoint): Removed.
  16711. (isTimeoutDetected): Removed.
  16712. (checkPoint): Changed the type to Time.
  16713. (timeout): New variable.
  16714. (setTimeout): New function.
  16715. * src/AbstractCommand.cc
  16716. (AbstractCommand): Removed the initialization of checkPoint.
  16717. Added the initialization of timeout.
  16718. (updateCheckPoint): Removed.
  16719. (isTimeoutDetected): Removed.
  16720. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16721. * src/PeerChokeCommand.h
  16722. (checkPoint): Changed the type to Time.
  16723. * src/PeerChokeCommand.cc
  16724. (PeerChokeCommand): Removed the initialization of checkPoint.
  16725. (execute): Rewritten using Time object.
  16726. * src/TrackerWatcherCommand.h
  16727. (checkPoint): Changed the type to Time.
  16728. * src/TrackerWatcherCommand.cc
  16729. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16730. (execute): Rewritten.
  16731. * src/ConsoleDownloadEngine.h
  16732. (cp): Changed the type to Time.
  16733. (startup): Changed the type to Time.
  16734. * src/ConsoleDownloadEngine.cc
  16735. (initStatistics): Use cp.reset(), startup.reset().
  16736. (calculateStatistics): Rewritten using Time object.
  16737. * src/PeerAbstractCommand.h
  16738. (updateCheckPoint): Removed.
  16739. (isTimeoutDetected): Removed.
  16740. (checkPoint): Changed the type to Time.
  16741. * src/PeerAbstractCommand.cc
  16742. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16743. (updateCheckPoint): Removed.
  16744. (isTimeoutDetected): Removed.
  16745. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16746. * src/PeerInteractionCommand.cc
  16747. (PeerInteractionCommand): Removed the initializations of struct
  16748. timeval variables.
  16749. * src/PeerInteractionCommand.h
  16750. (keepAliveCheckPoint): Changed the type to Time.
  16751. (chokeCheckPoint): Changed the type to Time.
  16752. (freqCheckPoint): Changed the type to Time.
  16753. (haveCheckTime): Changed the type to Time.
  16754. * src/PeerInteractionCommand.cc
  16755. (executeInternal): Rewritten using Time object.
  16756. (detectMessageFlooding): Rewritten using Time object.
  16757. (checkLongTimePeerChoking): Rewritten using Time object.
  16758. (sendKeepAlive): Rewritten using Time object.
  16759. (checkHave): Rewritten using Time object.
  16760. * src/SleepCommand.h
  16761. (checkPoint): Changed the type to Time.
  16762. * src/SleepCommand.cc
  16763. (SleepCommand): Removed the initialization of checkPoint.
  16764. (execute): Rewritten using Time object.
  16765. * src/TorrentAutoSaveCommand.h
  16766. (checkPoint): Changed the type to Time.
  16767. * src/TorrentAutoSaveCommand.cc
  16768. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16769. (execute): Rewritten.
  16770. * src/DownloadCommand.h
  16771. (sw): Changed the type to Time.
  16772. * src/DownloadCommand.cc
  16773. (DownloadCommand): Removed the initialization of sw.
  16774. (executeInternal): Rewritten.
  16775. * src/RequestSlot.h
  16776. (dispatchedTime): Changed the type to Time.
  16777. * src/RequestSlot.cc
  16778. (RequestSlot): Removed the call to setDispatchedTime().
  16779. (setDispatchedTime): Rewirtten.
  16780. (isTimeout): Rewritten.
  16781. (getLatencyInMillis): Rewritten.
  16782. * src/TorrentDownloadEngine.h
  16783. (cp): Changed the type to Time[2].
  16784. (startup): Changed the type to Time.
  16785. * src/TorrentDownloadEngine.cc
  16786. (initStatistics): Rewritten.
  16787. (calculateStatistics): Rewritten.
  16788. * src/DownloadEngine.cc
  16789. (run): Rewritten.
  16790. To detect all attempts to connect to the tracker are failed:
  16791. * src/AbstractCommand.cc
  16792. (execute): Increment e->segmentMan->errors if a command aborted.
  16793. * src/SegmentMan.h
  16794. (errors): New variable.
  16795. * src/SegmentMan.cc
  16796. (SegmentMan): Added the initialization of errors.
  16797. (init): Added the initialization of errors.
  16798. * src/TrackerWatcherCommand.cc
  16799. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16800. request was failed.
  16801. To handle snubbed peers:
  16802. * src/PeerChokeCommand.cc
  16803. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16804. (execute): Snubbed peers don't get unchoked.
  16805. * src/PeerInteraction.h
  16806. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16807. * src/PeerInteraction.cc
  16808. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16809. back the requested 16k block in 60 seconds.
  16810. * src/PieceMessage.cc
  16811. (receivedAction): A peer's snubbed state is cleard if it sends
  16812. the requested 16k block in 60 seconds.
  16813. * src/Peer.h
  16814. (snubbing): New variable.
  16815. * src/Peer.cc
  16816. (resetStatus): Added snubbed = false.
  16817. To fix the bug that causes have message is not sent:
  16818. * src/PeerInteractionCommand.cc
  16819. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16820. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16821. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16822. * src/TorrentMan.h
  16823. (HaveEntry): New class.
  16824. (advertisePiece): Rewritten.
  16825. (getAdvertisedPieceIndexes): Rewritten.
  16826. (Haves): Changed the type.
  16827. (getAdvertisedPieceIndexes): Added an argument.
  16828. Others:
  16829. * src/TorrentMan.h
  16830. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16831. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16832. * src/TorrentMan.cc
  16833. (getPeer): Don't check the number of connections here.
  16834. (setupInternal1): Changed peerId.
  16835. * src/PeerInteractionCommand.h
  16836. (KEEP_ALIVE_INTERVAL): New definition.
  16837. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16838. * src/main.cc
  16839. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16840. * src/DownloadEngine.h: Removed unnecessary header includes.
  16841. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16842. To fix the bug that causes segfaults if a tracker returns a zero-length
  16843. list as "peers":
  16844. * src/TrackerUpdateCommand.cc
  16845. (execute): Added a check to see wether the type of peers is Data*.
  16846. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16847. * Release 0.5.0
  16848. To fix compile issue with gcc3:
  16849. * src/CancelMessage.h
  16850. (ID): Renamed as ID_t
  16851. (ID_t): New enum.
  16852. * src/RejectMessage.h
  16853. (ID): Renamed as ID_t
  16854. (ID_t): New enum.
  16855. * src/SuggestPieceMessage.h
  16856. (ID): Renamed as ID_t
  16857. (ID_t): New enum.
  16858. * src/AllowedFastMessage.h
  16859. (ID): Renamed as ID_t
  16860. (ID_t): New enum.
  16861. * src/PortMessage.h
  16862. (ID): Renamed as ID_t
  16863. (ID_t): New enum.
  16864. * src/HaveNoneMessage.h
  16865. (ID): Renamed as ID_t
  16866. (ID_t): New enum.
  16867. * src/KeepAliveMessage.h
  16868. (ID): Renamed as ID_t
  16869. (ID_t): New enum.
  16870. * src/HaveAllMessage.h
  16871. (ID): Renamed as ID_t
  16872. (ID_t): New enum.
  16873. * src/UnchokeMessage.h
  16874. (ID): Renamed as ID_t
  16875. (ID_t): New enum.
  16876. * src/BitfieldMessage.h
  16877. (ID): Renamed as ID_t
  16878. (ID_t): New enum.
  16879. * src/PieceMessage.h
  16880. (ID): Renamed as ID_t
  16881. (ID_t): New enum.
  16882. * src/RequestMessage.h
  16883. (ID): Renamed as ID_t
  16884. (ID_t): New enum.
  16885. * src/NotInterestedMessage.h
  16886. (ID): Renamed as ID_t
  16887. (ID_t): New enum.
  16888. * src/ChokeMessage.h
  16889. (ID): Renamed as ID_t
  16890. (ID_t): New enum.
  16891. * src/InterestedMessage.h
  16892. (ID): Renamed as ID_t
  16893. (ID_t): New enum.
  16894. * src/HaveMessage.h
  16895. (ID): Renamed as ID_t
  16896. (ID_t): New enum.
  16897. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16898. * src/PeerAbstractCommand.h
  16899. (beforeSocketCheck): Removed.
  16900. * src/PeerAbstractCommand.cc
  16901. Modified in order to call executeInternal() even if socket check
  16902. and upload limit check fail.
  16903. * src/PeerInteractionCommand.h
  16904. (keepAlive): Removed.
  16905. (sendKeepAlive): New function.
  16906. (checkHave): New function.
  16907. (beforeSocketCheck): Removed.
  16908. * src/PeerInteractionCommand.cc
  16909. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16910. calls to checkHave() and sendKeepAlive().
  16911. (keepAlive): Renamed to sendKeepAlive().
  16912. (sendKeepAlive): New function.
  16913. (beforeSocketCheck): Removed.
  16914. (checkHave): New function.
  16915. * src/BitfieldMan.cc
  16916. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16917. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16918. 0.
  16919. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16920. * src/TorrentMan.h
  16921. (UsedPieces): Removed.
  16922. (Pieces): New type definition.
  16923. * src/Piece.h: Updated doc.
  16924. * src/Peer.h
  16925. (totalLength): Removed.
  16926. * src/Peer.cc
  16927. (updateLatency): Fixed the latency calculation.
  16928. * src/TorrentMan.cc
  16929. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16930. than or equal to MAX_PEER_LIST_SIZE.
  16931. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16932. then return false.
  16933. (deleteOldErrorPeers): Rewritten.
  16934. (deleteUsedPiece): Fixed the miss use of STL remove.
  16935. * src/PeerInteraction.h
  16936. (Pieces): Removed.
  16937. (deleteTimeoutRequestSlot): Removed.
  16938. (deleteCompletedRequestSlot): Removed.
  16939. (checkRequestSlot): New function.
  16940. * src/PeerInteraction.cc
  16941. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16942. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16943. (checkRequestSlot): New function.
  16944. * src/DownloadEngine.cc
  16945. (run): Clear activeSockets before calling waitData().
  16946. (waitData): Removed a call to activeSockets.clear().
  16947. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16948. To attempt to handle EINTR:
  16949. * src/SocketCore.cc
  16950. (isReadable): Added EINTR handling.
  16951. (isWritable): Added EINTR handling.
  16952. To improve the performance:
  16953. * src/AbstractCommand.cc
  16954. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16955. * src/PeerInteractionCommand.h
  16956. (receiveMessage): Renamed as receiveMessages().
  16957. (receiveMessages): New function.
  16958. * src/PeerInteractionCommand.cc
  16959. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16960. () function. detectMessageFlooding() is moved here.
  16961. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16962. (). The flooding detection for have message is comment out.
  16963. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16964. Util::difftv().
  16965. (receiveMessage): Renamed as receiveMessages().
  16966. (receiveMessages): New function.
  16967. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16968. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16969. * src/SleepCommand.cc
  16970. (execute): Use Util::difftvsec() instead of Util::difftv().
  16971. * src/BitfieldMan.h
  16972. (getNthBitIndex): New function.
  16973. (hasMissingPiece): New function.
  16974. (getAllMissingIndexes): New function.
  16975. * src/BitfieldMan.cc
  16976. (countSetBit): Rewritten.
  16977. (getNthBitIndex): New function.
  16978. (getMissingIndexRandomly): Rewritten.
  16979. (hasMissingPiece): New function.
  16980. (getAllMissingIndexes): New function.
  16981. * src/TorrentMan.cc
  16982. (hasMissingPiece): New function.
  16983. (deleteUsedPiece): Rewritten using STL.
  16984. * src/PeerInteraction.cc
  16985. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16986. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16987. (addRequests): Updated the number of pending requests.
  16988. * src/PeerAbstractCommand.cc
  16989. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16990. (execute): Returns true if TorrentMan::isHalt() is true.
  16991. Corrected the condition of upload limit checking.
  16992. * src/Util.h
  16993. (countBit): New function.
  16994. * src/Util.cc
  16995. (nbits): New variable.
  16996. (countBit): New function.
  16997. * src/DownloadEngine.h
  16998. (SockCmdMap): New type definition.
  16999. (waitData): Added an argument.
  17000. (addSocket): Added an argument.
  17001. (addSocketForReadCheck): Added an argument.
  17002. (addSocketForWriteCheck): Added an argument.
  17003. * src/DownloadEngine.cc
  17004. (run): Executes only commands whose sockets are ready to read or write.
  17005. All commands are executed in every 1 second.
  17006. (waitData): Calls select() again if it returned
  17007. EINTR.
  17008. (addSocket): Saves socket and command object pair to the map.
  17009. (deleteSocket): Deletes socket and command object pair from the map.
  17010. (addSocketForReadCheck): Added an argument.
  17011. (addSocketForWriteCheck): Added an argument.
  17012. * src/DownloadCommand.cc
  17013. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17014. To send "event=stopped" to the tracker when the application finishes:
  17015. * src/PeerChokeCommand.h
  17016. (checkPoint): New variable.
  17017. * src/PeerChokeCommand.cc
  17018. (PeerChokeCommand): Added the initialization of checkPoint.
  17019. (execute): The interval check is now done by checkPoint, not
  17020. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17021. * src/TorrentMan.h
  17022. (halt): New function.
  17023. (hasMissingPiece): New function.
  17024. (isHalt): New function.
  17025. (setHalt): New function.
  17026. * src/TorrentMan.cc
  17027. (TorrentMan): Added the initialization of halt.
  17028. * src/TorrentAutoSaveCommand.h
  17029. (checkPoint): New variable.
  17030. * src/PeerListenCommand.cc
  17031. (execute): Returns true if TorrentMan::isHalt() is true.
  17032. * src/main.cc
  17033. (setSignalHander): Added flags argument.
  17034. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17035. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17036. Removed printDownloadAbortMessage() after torrent downloading loop.
  17037. * src/TorrentAutoSaveCommand.cc
  17038. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17039. (execute): Returns true if TorrentMan::isHalt() is true.
  17040. The interval check is now done by checkPoint, not SleepCommand.
  17041. * src/TrackerWatcherCommand.cc
  17042. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17043. event=stopped.
  17044. * src/TrackerUpdateCommand.cc
  17045. (prepareForRetry): Do not use SleepCommand here.
  17046. (execute): Returns true if TorrentMan::isHalt() is true.
  17047. Others:
  17048. * src/TorrentMan.cc
  17049. (getMissingPieceIndex): Updated log message.
  17050. * src/PeerInteraction.cc
  17051. (createPeerMessag): Updated log message.
  17052. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17053. To add the ability to download several pieces in mix in a command and
  17054. increase the number of request slots according to request-cancel
  17055. latency:
  17056. * src/PeerInteractionCommand.cc
  17057. (executeInternal): The number of messages to be received at a time
  17058. is increased from 10 to 50.
  17059. * src/LogFactory
  17060. (getInstance): Added NullLogger.
  17061. * src/NullLogger.h: New class.
  17062. * src/BitfieldMan.h
  17063. (getMissingIndex): New function.
  17064. * src/BitfieldMan.cc
  17065. (getMissingIndex): New function.
  17066. * src/TorrentMan.h
  17067. (checkOutPiece): New function.
  17068. (getMissingPieceIndex): New function.
  17069. (getMissingFastPieceIndex): New function.
  17070. (getMissingFastPiece): New function.
  17071. * src/TorrentMan.cc
  17072. (updatePiece): Rewritten using STL.
  17073. (syncPiece): Rewritten using STL.
  17074. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17075. checkOutPiece().
  17076. (getMissingPieceIndex): New function.
  17077. (getMissingFastPieceIndex): New function.
  17078. (getMissingFastPiece): New function.
  17079. (checkOutPiece): New function.
  17080. * src/PeerInteraction.h
  17081. (Pieces): New type definition.
  17082. (piece): Removed.
  17083. (pieces): New variable.
  17084. (getNewPieceAndSendInterest): Added the "piece" argument.
  17085. (abortPiece): Added the "piece" argument.
  17086. (abortAllPieces): New function.
  17087. (isInRequestSlot): New function.
  17088. (hasDownloadPiece): Added the "index" argument.
  17089. (setDownloadPiece): Removed.
  17090. (getDownloadPiece): Added the "index" argument.
  17091. (updatePiece): New function.
  17092. (createRequestMessage): Added the "index" argument.
  17093. * src/PeerInteraction.cc
  17094. (onChoked): Rewritten.
  17095. (abortPiece): Rewirtten.
  17096. (abortAllPieces): New function.
  17097. (deleteTimeoutRequestSlot): Rewritten.
  17098. Clarified code a little bit.
  17099. (deleteCompletedRequestSlot): Rewritten.
  17100. (isInRequestSlot): New function.
  17101. (syncPiece): Rewritten.
  17102. (updatePiece): New function.
  17103. (getNewPieceAndSendInterest): Rewritten.
  17104. (addRequests): Rewritten.
  17105. (getDownloadPiece): Rewritten.
  17106. (hasDownloadPiece): Rewritten.
  17107. (createRequestMessage): Added the "index" argument.
  17108. * src/common.h
  17109. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17110. (DIV_FLOOR): New definition.
  17111. * src/PieceMessage.cc
  17112. (receivedAction): Update request-piece latency here.
  17113. * src/RequestSlot.h
  17114. (getLatencyInMillis): New function.
  17115. * src/RequestSlot.cc
  17116. (isTimeout): Rewritten using getLatencyInMillis.
  17117. (getLatencyInMillis): New function.
  17118. * src/Piece.h
  17119. (operator==): New function.
  17120. (getMissingBlockIndex): New function.
  17121. * src/Piece.cc
  17122. (operator==): New function.
  17123. (getMissingBlockIndex): New function.
  17124. * src/Peer.h
  17125. (DEFAULT_LATENCY): New definition.
  17126. (latency): New variable.
  17127. (updateLatency): New function.
  17128. (getLatency): New function.
  17129. * src/Peer.cc
  17130. (resetStatus): Reset latecy.
  17131. (updateLatency): New function.
  17132. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17133. * src/SocketCore.cc
  17134. (isReadable): Added secure to the condition.
  17135. * src/HttpConnection.cc
  17136. (receiveResponse): Fixed a bug that causes no response header
  17137. exception.
  17138. * src/Peer.h
  17139. (getFastSet): Fixed the return value type.
  17140. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17141. To remove a wait from download loop:
  17142. * src/DownloadEngine.cc
  17143. (run): Comment out shortSleep.
  17144. To rewrite the message handling:
  17145. * src/SimplePeerMessage.h: New class.
  17146. * src/SimplePeerMessage.cc: New class.
  17147. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17148. (msg): New variable.
  17149. (create): New function.
  17150. (send): Removed.
  17151. (getMessage): New function.
  17152. (getMessageLength): New function.
  17153. * src/CancelMessage.cc
  17154. (create): New function.
  17155. (receivedAction): Replaced deleteRequestMessageInQueue with
  17156. rejectPieceMessageInQueue.
  17157. (send): Removed.
  17158. (getMessage): New function.
  17159. (getMessageLength): New function.
  17160. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17161. (msg): New variable.
  17162. (msgLength): New variable.
  17163. (~BitfieldMessage): Deleted msg.
  17164. (send): Removed.
  17165. (getMessage): New function.
  17166. (getMessageLength): New function.
  17167. * src/BitfieldMessage.cc
  17168. (create): New function.
  17169. (send): Removed.
  17170. (getMessage): New function.
  17171. (getMessageLength): New function.
  17172. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17173. (msg): New variable.
  17174. (sendPredicate): New function.
  17175. (onSendComplete): New function.
  17176. (send): Removed.
  17177. (getMessage): New function.
  17178. (getMessageLength): New function.
  17179. (create): New function.
  17180. * src/ChokeMessage.cc
  17181. (create): New function.
  17182. (send): Removed.
  17183. (sendPredicate): New function.
  17184. (getMessage): New function.
  17185. (getMessageLength): New function.
  17186. (onSendComplete): New function.
  17187. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17188. (msg): New variable.
  17189. (send): Removed.
  17190. (getMessage): New function.
  17191. (getMessageLength): New function.
  17192. * src/KeepAliveMessage.cc
  17193. (send): Removed.
  17194. (getMessage): New function.
  17195. (getMessageLength): New function.
  17196. * src/PortMessage.h
  17197. (create): New function.
  17198. (receivedAction): Updated log message.
  17199. * src/PortMessage.cc: New file.
  17200. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17201. (msg): New variable.
  17202. (sendPredicate): New function.
  17203. (onSendComplete): New function.
  17204. (create): New function.
  17205. (send): Removed.
  17206. (getMessage): New function.
  17207. (getMessageLength): New function.
  17208. * src/UnchokeMessage.cc
  17209. (create): New function.
  17210. (send): Removed.
  17211. (sendPredicate): New function.
  17212. (getMessage): New function.
  17213. (getMessageLength): New function.
  17214. (onSendComplete): New function.
  17215. * src/PieceMessage.h
  17216. (leftPieceDataLength): Removed.
  17217. (leftDataLength): New variable.
  17218. (headerSend): New variable.
  17219. (pendingCount): New variable.
  17220. (msgHeader): New variable.
  17221. (sendPieceData): New function.
  17222. (incrementPendingCount): New function.
  17223. (isPendingCountMax): New function.
  17224. (create): New function.
  17225. (getMessageHeader): New function.
  17226. (getMessageHeaderLength): New function.
  17227. * src/PieceMessage.cc
  17228. (create): New function.
  17229. (getMessageHeader): New function.
  17230. (getMessageHeaderLength): New function.
  17231. (send): Rewritten.
  17232. (sendPieceData): New function.
  17233. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17234. (msg): New variable.
  17235. (create): New function.
  17236. (getMessage): New function.
  17237. (getMessageLength): New function.
  17238. * src/HaveMessage.cc
  17239. (create): New function.
  17240. (send): Removed.
  17241. (sendPieceData): New function.
  17242. (getMessage): New function.
  17243. (getMessageLength): New function.
  17244. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17245. (msg): New variable.
  17246. (create): New function.
  17247. (send): Removed.
  17248. (getMessage): New function.
  17249. (getMessageLength): New function.
  17250. * src/RequestMessage.cc
  17251. (create): New function.
  17252. (receivedAction): Added the handling of fast extension.
  17253. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17254. (send): Removed.
  17255. (getMessage): New function.
  17256. (getMessageLength): New function.
  17257. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17258. (msg): New variable.
  17259. (sendPredicate): New function.
  17260. (onSendComplete): New function.
  17261. (create): New function.
  17262. (getMessage): New function.
  17263. (getMessageLength): New function.
  17264. * src/InterestedMessage.cc
  17265. (create): New function.
  17266. (send): Removed.
  17267. (sendPieceData): New function.
  17268. (getMessage): New function.
  17269. (getMessageLength): New function.
  17270. (onSendComplete): New function.
  17271. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17272. (msg): New variable.
  17273. (sendPieceData): New function.
  17274. (onSendComplete): New function.
  17275. (create): New function.
  17276. (send): Removed.
  17277. (getMessage): New function.
  17278. (getMessageLength): New function.
  17279. * src/NotInterestedMessage.cc
  17280. (create): New function.
  17281. (send): Removed.
  17282. (sendPredicate): New function.
  17283. (getMessage): New function.
  17284. (getMessageLength): New function.
  17285. (onSendComplete): New function.
  17286. * src/AllowedFastMessage.h: New class.
  17287. * src/AllowedFastMessage.cc: New class.
  17288. * src/RejectMessage.h: New class.
  17289. * src/RejectMessage.cc: New class.
  17290. * src/SuggestPieceMessage.h: New class.
  17291. * src/SuggestPieceMessage.cc: New class.
  17292. * src/HaveAllMessage.h: New class.
  17293. * src/HaveAllMessage.cc: New class.
  17294. * src/HaveNoneMessage.h: New class.
  17295. * src/HaveNoneMessage.cc: New class.
  17296. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17297. (msg): New variable.
  17298. (reserved): New variable.
  17299. (create): New function.
  17300. (getId): New function.
  17301. (receivedAction): New function.
  17302. (getMessage): New function.
  17303. (getMessageLength): New function.
  17304. (isFastExtensionSupported): New function.
  17305. * src/HandshakeMessage.cc
  17306. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17307. (create): New function.
  17308. (getMessage): New function.
  17309. (getMessageLength): New function.
  17310. (toString): Added the output of reserved field.
  17311. (check): Added const qualifier.
  17312. (isFastExtensionSupported): New function.
  17313. * src/PeerMessageUtil.h
  17314. (createChokeMessage): Removed.
  17315. (createUnchokeMessage): Removed.
  17316. (createInterestedMessage): Removed.
  17317. (createNotInterestedMessage): Removed.
  17318. (createHaveMessage): Removed.
  17319. (createBitfieldMessage): Removed.
  17320. (createRequestMessage): Removed.
  17321. (createCancelMessage): Removed.
  17322. (createPieceMessage): Removed.
  17323. (createPortMessage): Removed.
  17324. (createChokeMessage): Removed.
  17325. (createUnchokeMessage): Removed.
  17326. (createInterestedMessage): Removed.
  17327. (createNotInterestedMessage): Removed.
  17328. (createHaveMessage): Removed.
  17329. (createBitfieldMessage): Removed.
  17330. (createRequestMessage): Removed.
  17331. (createCancelMessage): Removed.
  17332. (createPieceMessage): Removed.
  17333. (createKeepAliveMessage): Removed.
  17334. (createHandshakeMessage): Removed.
  17335. (setIntParam): New function.
  17336. (createPeerMessageString): New function.
  17337. * src/PeerMessageUtil.cc
  17338. (createChokeMessage): Removed.
  17339. (createUnchokeMessage): Removed.
  17340. (createInterestedMessage): Removed.
  17341. (createNotInterestedMessage): Removed.
  17342. (createHaveMessage): Removed.
  17343. (createBitfieldMessage): Removed.
  17344. (createRequestMessage): Removed.
  17345. (createCancelMessage): Removed.
  17346. (createPieceMessage): Removed.
  17347. (createPortMessage): Removed.
  17348. (createRequestMessage): Removed.
  17349. (createCancelMessage): Removed.
  17350. (createPieceMessage): Removed.
  17351. (createHaveMessage): Removed.
  17352. (createChokeMessage): Removed.
  17353. (createUnchokeMessage): Removed.
  17354. (createInterestedMessage): Removed.
  17355. (createNotInterestedMessage): Removed.
  17356. (createBitfieldMessage): Removed.
  17357. (createKeepAliveMessage): Removed.
  17358. (createHandshakeMessage): Removed.
  17359. (setIntParam): New function.
  17360. (createPeerMessageString): New function.
  17361. * src/PeerConnection.h
  17362. (peer): Removed.
  17363. (torrentMan): Removed.
  17364. (createNLengthMessage): Removed.
  17365. (setIntParam): Removed.
  17366. (writeOutgoingMessageLog): Removed all overloaded functions.
  17367. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17368. (sendMessage): New function.
  17369. (sendHandshake): Removed.
  17370. (sendKeepAlive): Removed.
  17371. (sendChoke): Removed.
  17372. (sendUnchoke): Removed.
  17373. (sendInterested): Removed.
  17374. (sendNotInterested): Removed.
  17375. (sendHave): Removed.
  17376. (sendBitfield): Removed.
  17377. (sendRequest): Removed.
  17378. (sendPiece): Removed.
  17379. (sendPieceHeader): Removed.
  17380. (sendPieceData): Removed.
  17381. (sendCancel): Removed.
  17382. (getPeer): Removed.
  17383. * src/PeerConnection.cc
  17384. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17385. (sendHandshake): Removed.
  17386. (sendKeepAlive): Removed.
  17387. (createNLengthMessage): Removed.
  17388. (setIntParam): Removed.
  17389. (writeOutgoingMessageLog): Removed all overloaded functions.
  17390. (sendChoke): Removed.
  17391. (sendUnchoke): Removed.
  17392. (sendInterested): Removed.
  17393. (sendNotInterested): Removed.
  17394. (sendHave): Removed.
  17395. (sendBitfield): Removed.
  17396. (sendRequest): Removed.
  17397. (sendPiece): Removed.
  17398. (sendPieceHeader): Removed.
  17399. (sendPieceData): Removed.
  17400. (sendMessage): New function.
  17401. (sendCancel): Removed.
  17402. * src/PeerInteractionCommand.cc
  17403. (PeerInteractionCommand): Call setUploadLimit.
  17404. (executeInternal): Call setUploadLimit.
  17405. Added the handling of "inProgress" state of handshake message.
  17406. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17407. sendNow().
  17408. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17409. sendNow().
  17410. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17411. * src/TorrentMan.h
  17412. (PEER_ID_LENGTH): New definition.
  17413. (hasAllPieces): New function.
  17414. * src/TorrentMan.cc
  17415. (getMissingPiece): Added the handling of fast extension.
  17416. (cancelPiece): Call updatePiece().
  17417. (hasAllPieces): New function.
  17418. * src/PeerInteraction.h
  17419. (fastSet): New variable.
  17420. (getNewPieceAndSendInterest): Changed the return type to void.
  17421. (send): Renamed as sendMessages.
  17422. (deleteAllRequestSlot): Removed.
  17423. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17424. (cancelAllRequest): Removed all overloaded functions.
  17425. (deleteAllRequestSlot): Removed.
  17426. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17427. (rejectPieceMessageInQueue): New function.
  17428. (rejectAllPieceMessageInQueue): New function.
  17429. (onChoked): New function.
  17430. (isSendingMessageInProgress): New function.
  17431. (getCorrespondingRequestSlot): Changed its arguments.
  17432. (isInFastSet): New function.
  17433. (addFastSetIndex): New function.
  17434. (addRequests): New function.
  17435. (sendNow): Removed.
  17436. (trySendNow): Removed.
  17437. (sendBitfield): New function.
  17438. (sendAllowdFast): New function.
  17439. (createHaveAllMessage): New function.
  17440. (createHaveNoneMessage): New function.
  17441. (createRejectMessage): New function.
  17442. (createAllowedFastMessage): New function.
  17443. * src/PeerInteraction.cc
  17444. (send): Renamed as sendMessages.
  17445. (sendMessages): New function.
  17446. (MsgPushBack): New class.
  17447. (isSendingMessageInProgress): New function.
  17448. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17449. (rejectAllPieceMessageInQueue): New function.
  17450. Added the handling of fast extension.
  17451. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17452. (rejectPieceMessageInQueue): New function.
  17453. Added the handling of fast extension.
  17454. (deleteRequestSlot): Replaced for loop with std::find.
  17455. (onChoked): New function.
  17456. (deleteAllRequestSlot): Removed.
  17457. (abortPiece): Rewirtten.
  17458. (deleteTimeoutRequestSlot): Updated log messages.
  17459. (getCorrespondingRequestSlot): Changed its arguments.
  17460. (cancelAllRequest): Removed all overloaded functions.
  17461. (receiveHandshake): Added the check to see whether an incoming peer
  17462. supports fast extension.
  17463. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17464. PeerMessageUtil.
  17465. (createPeerMessage): Use create() of each message class instead of
  17466. PeerMessageUtil.
  17467. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17468. AllowedFastMessage were added.
  17469. (getNewPieceAndSendInterest): Changed its return value type to void.
  17470. Added the handling of fast extension.
  17471. (addRequests): New function.
  17472. (sendNow): Removed.
  17473. (sendHandshake): Rewritten.
  17474. (trySendNow): Removed.
  17475. (sendBitfield): New function.
  17476. (sendAllowdFast): New function.
  17477. (isInFastSet): New function.
  17478. (addFastSetIndex): New function.
  17479. (createRequestMessage): Use RequestMessage::create instead of
  17480. PeerMessageUtil.
  17481. (createCancelMessage): Use CancelMessage::create instead of
  17482. PeerMessageUtil.
  17483. (createPieceMessage): Use PieceMessage::create instead of
  17484. PeerMessageUtil.
  17485. (createHaveMessage): Use HaveMessage::create instead of
  17486. PeerMessageUtil.
  17487. (createChokeMessage): Use ChokeMessage::create instead of
  17488. PeerMessageUtil.
  17489. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17490. PeerMessageUtil.
  17491. (createInterestedMessage): Use InterestedMessage::create instead of
  17492. PeerMessageUtil.
  17493. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17494. of PeerMessageUtil.
  17495. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17496. PeerMessageUtil.
  17497. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17498. PeerMessageUtil.
  17499. (createHaveAllMessage): New function.
  17500. (createHaveNoneMessage): New function.
  17501. (createRejectMessage): New function.
  17502. (createAllowedFastMessage: New function.
  17503. * src/Util.h
  17504. (sha1Sum): New function.
  17505. (computeFastSet): New function.
  17506. * src/Util.cc
  17507. (sha1Sum): New function.
  17508. (computeFastSet): New function.
  17509. * src/Peer.h
  17510. (fastExtensionEnabled): New variable.
  17511. (fastSet): New variable.
  17512. (setAllBitfield): New function.
  17513. (setFastExtensionEnabled): New function.
  17514. (isFastExtensionEnabled): New function.
  17515. (addFastSetIndex): New function.
  17516. (getFastSet): New function.
  17517. (isInFastSet): New function.
  17518. (countFastSet): New function.
  17519. * src/Peer.cc
  17520. (isInFastSet): New function.
  17521. (addFastSetIndex): New function.
  17522. (setAllBitfield): New function.
  17523. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17524. sockets.
  17525. * src/PeerAbstractCommand.cc
  17526. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17527. and uploadLimit.
  17528. (execute): Changed the procedure of checking sockets. The upload speed
  17529. checking were added.
  17530. (setUploadLimit): New function.
  17531. (setUploadLimitCheck): New function.
  17532. * src/PeerAbstractCommand.h
  17533. (setUploadLimit): New function.
  17534. (setUploadLimitCheck): New function.
  17535. (uploadLimit): New variable.
  17536. (uploadLimitCheck): New variable.
  17537. To contact a tracker regularly:
  17538. * src/TrackerWatcherCommand.h (interval): New variable.
  17539. (checkPoint): New variable.
  17540. (TrackerWatcherCommand): Added interval argument.
  17541. * src/TrackerWatcherCommand.cc
  17542. (TrackerWatcherCommand): Initialized checkPoint.
  17543. (execute): Now a tracker is contacted in every specified period.
  17544. If peer list is not needed, send request with numwant=0.
  17545. * src/TrackerUpdateCommand.cc
  17546. (execute): Updated log messages.
  17547. * src/DownloadEngine.cc
  17548. (~DownloadEngine): Removed two asserts.
  17549. (waitData): Uncommented wfds. May be a bug fix.
  17550. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17551. * src/PeerInteractionCommand.h
  17552. (checkInactiveConnection): Removed.
  17553. * src/PeerInteractionCommand.cc
  17554. (executeInternal): Removed following function calls:
  17555. detectMessageFlooding(), checkLongTimePeerChoking and
  17556. checkInactiveConnection().
  17557. (checkInactiveConnection): Removed.
  17558. (detectMessageFlooding): Removed function call to
  17559. checkInactiveConnection().
  17560. * src/PeerMessageUtil.h
  17561. (createChokeMessage): New function. Overload.
  17562. (createUnchokeMessage): New function. Overload.
  17563. (createInterestedMessage): New function. Overload.
  17564. (createNotInterestedMessage): New function. Overload.
  17565. (createHaveMessage): New function. Overload.
  17566. (createBitfieldMessage): New function. Overload.
  17567. (createRequestMessage): New function. Overload.
  17568. (createCancelMessage): New function. Overload.
  17569. (createPieceMessage): New function. Overload.
  17570. (createKeepAliveMessage): New function. Overload.
  17571. * src/PeerMessageUtil.cc
  17572. (createChokeMessage): New function. Overload.
  17573. (createUnchokeMessage): New function. Overload.
  17574. (createInterestedMessage): New function. Overload.
  17575. (createNotInterestedMessage): New function. Overload.
  17576. (createHaveMessage): New function. Overload.
  17577. (createBitfieldMessage): New function. Overload.
  17578. (createRequestMessage): New function. Overload.
  17579. (createCancelMessage): New function. Overload.
  17580. (createPieceMessage): New function. Overload.
  17581. (createKeepAliveMessage): New function. Overload.
  17582. * src/SendMessageQueue.cc
  17583. (createRequestMessage): Use PeerMessageUtil.
  17584. (createCancelMessage): Use PeerMessageUtil.
  17585. (createPieceMessage): Use PeerMessageUtil.
  17586. (createHaveMessage): Use PeerMessageUtil.
  17587. (createChokeMessage): Use PeerMessageUtil.
  17588. (createUnchokeMessage): Use PeerMessageUtil.
  17589. (createInterestedMessage): Use PeerMessageUtil.
  17590. (createNotInterestedMessage): Use PeerMessageUtil.
  17591. (createBitfieldMessage): Use PeerMessageUtil.
  17592. (createKeepAliveMessage): Use PeerMessageUtil.
  17593. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17594. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17595. * src/PeerInteraction.h: New class.
  17596. * src/PeerInteraction.cc: New class.
  17597. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17598. Each peer message has its own class.
  17599. * src/PendingMessages.h: Removed.
  17600. * src/PendingMessages.cc: Removed. The sending process was moved to
  17601. each message class.
  17602. * src/RequestSlotMan.h: Removed.
  17603. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17604. SendMessageQueue.
  17605. * src/RequestMessage.h: New class.
  17606. * src/RequestMessage.cc: New class.
  17607. * src/CancelMessage.h: New class.
  17608. * src/CancelMessage.cc: New class.
  17609. * src/BitfieldMessage.h: New class.
  17610. * src/BitfieldMessage.cc: New class.
  17611. * src/ChokeMessage.h: New class.
  17612. * src/ChokeMessage.cc: New class.
  17613. * src/KeepAliveMessage.h: New class.
  17614. * src/KeepAliveMessage.cc: New class.
  17615. * src/PortMessage.h: New class.
  17616. * src/UnchokeMessage.h: New class.
  17617. * src/UnchokeMessage.cc: New class.
  17618. * src/PieceMessage.h: New class.
  17619. * src/PieceMessage.cc: New class.
  17620. * src/HaveMessage.h: New class.
  17621. * src/HaveMessage.cc: New class.
  17622. * src/BitfieldMessage.h: New class.
  17623. * src/BitfieldMessage.cc: New class.
  17624. * src/NotInterestedMessage.h: New class.
  17625. * src/NotInterestedMessage.cc: New class.
  17626. * src/InterestedMessage.h: New class.
  17627. * src/InterestedMessage.cc: New class.
  17628. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17629. (getSendMessageQueue): New function.
  17630. (setSendMessageQueue): New function.
  17631. * src/HandshakeMessage.cc: New class.
  17632. * src/PeerConnection.h (receiveMessage): Changed return value and
  17633. arguments.
  17634. (receiveHandshake): Changed return value and arguments.
  17635. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17636. here.
  17637. (receiveHandshake): Do not create handshake class here.
  17638. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17639. (piece): Removed.
  17640. (syncPiece): Removed.
  17641. (sendInterest): Removed.
  17642. (sendMessages): Removed.
  17643. (createRequestPendingMessage): Removed.
  17644. (checkPieceHash): Removed.
  17645. (erasePieceOnDisk): Removed.
  17646. (getNewPieceAndSendInterest): Removed.
  17647. (onGotNewPice): Removed.
  17648. (onGotWrongPiece): Removed.
  17649. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17650. Removed peerConnection, piece.
  17651. (~PeerInteractionCommand): Removed peerConnection.
  17652. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17653. (syncPiece): Moved to SendMessageQueue.
  17654. (decideChoking): Removed PendingMessage.
  17655. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17656. The action after receiving peer message was moved to each message
  17657. class.
  17658. (onGotNewPice): Moved to SendMessageQueue.
  17659. (onGotWrongPiece): Moved to SendMessageQueue.
  17660. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17661. (sendInterest): Moved to SendMessageQueue.
  17662. (createRequestPendingMessage): Removed.
  17663. (sendMessages): Moved to SendMessageQueue.
  17664. (onAbort): Use SendMessageQueue::abortPiece()
  17665. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17666. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17667. (checkPieceHash): Moved to SendMessageQueue.
  17668. (erasePieceOnDisk): Moved to SendMessageQueue.
  17669. * src/PeerMessageUtil.h
  17670. (createBitfieldMessage): Removed.
  17671. (createHaveMessage): Changed return value and arguments.
  17672. (createBitfieldMessage): Changed return value and arguments.
  17673. (createRequestCancelMessage): Removed.
  17674. (createPieceMessage): Changed return value and arguments.
  17675. (getShortIntParam): New function.
  17676. (checkIndex): Changed arguments.
  17677. (checkBegin): Changed arguments.
  17678. (checkLength): Changed arguments.
  17679. (checkPieceOffset): Removed.
  17680. (checkRange): New function.
  17681. (checkBitfield): Changed arguments.
  17682. (createPeerMessage): Removed.
  17683. (checkIntegrity): Removed.
  17684. (createHandshakeMessage): Changed arguments.
  17685. (createChokeMessage): New function.
  17686. (createUnchokeMessage): New function.
  17687. (createInterestedMessage): New function.
  17688. (createNotInterestedMessage): New function.
  17689. (createRequestMessage): New function.
  17690. (createCancelMessage): New function.
  17691. (createPortMessage): New function.
  17692. * src/PeerMessageUtil.cc
  17693. (createBitfieldMessage): Removed.
  17694. (createHaveMessage): Changed return value and arguments.
  17695. (createBitfieldMessage): Changed return value and arguments.
  17696. (createRequestCancelMessage): Removed.
  17697. (createPieceMessage): Changed return value and arguments.
  17698. (getShortIntParam): New function.
  17699. (checkIndex): Changed arguments.
  17700. (checkBegin): Changed arguments.
  17701. (checkLength): Changed arguments.
  17702. (checkPieceOffset): Removed.
  17703. (checkRange): New function.
  17704. (checkBitfield): Changed arguments.
  17705. (createPeerMessage): Removed.
  17706. (checkIntegrity): Removed.
  17707. (createHandshakeMessage): Changed arguments.
  17708. (createChokeMessage): New function.
  17709. (createUnchokeMessage): New function.
  17710. (createInterestedMessage): New function.
  17711. (createNotInterestedMessage): New function.
  17712. (createRequestMessage): New function.
  17713. (createCancelMessage): New function.
  17714. (createPortMessage): New function.
  17715. * src/PeerMessage.h
  17716. (id): Removed.
  17717. (index): Removed.
  17718. (begin): Removed.
  17719. (length): Removed.
  17720. (bitfield): Removed.
  17721. (bitfieldLength): Removed.
  17722. (block): Removed.
  17723. (blockLength): Removed.
  17724. (inProgress): New variable.
  17725. (cuid): New variable.
  17726. (peer): New variable.
  17727. (sendMessageQueue): New variable.
  17728. (logger): New variable.
  17729. (setBitfield): Removed.
  17730. (getBitfield): Removed.
  17731. (setBlock): Removed.
  17732. (getBlock): Removed.
  17733. (getBitfieldLength): Removed.
  17734. (getBlockLength): Removed.
  17735. (isInProgress): New function.
  17736. (toString): Made pure virtual.
  17737. (check): New function.
  17738. (send): New function.
  17739. (receivedAction): New function.
  17740. (getId): Made pure virtual.
  17741. (setId): Removed.
  17742. (getIndex): Removed.
  17743. (setIndex): Removed.
  17744. (getBegin): Removed.
  17745. (setBegin): Removed.
  17746. (getLength): Removed.
  17747. (setLength): Removed.
  17748. (getCuid): New function.
  17749. (setCuid): New function.
  17750. (getPeer): New function.
  17751. (setPeer): New function.
  17752. (getSendMessageQueue): New function.
  17753. (setSendMessageQueue): New function.
  17754. (ID): Removed.
  17755. * src/PeerMessage.cc
  17756. (setBitfield): Removed.
  17757. (setBlock): Removed.
  17758. (toString): Removed.
  17759. * src/TorrentMan.h
  17760. (getPieceLength): New function.
  17761. (getPieceLength): New function.
  17762. * src/SendMessageQueue.h
  17763. (REQUEST_TIME_OUT): New definition.
  17764. (RequestSlots): New definition.
  17765. (MessageQueue): New definition.
  17766. (requestSlotMan): Removed.
  17767. (pendingMessages): Removed.
  17768. (requestSlots): New variable.
  17769. (messageQueue): New variable.
  17770. (torrentMan): New variable.
  17771. (peerConnection): New variable.
  17772. (peer): New variable.
  17773. (piece): New variable.
  17774. (getNewPieceAndSendInterest): New function.
  17775. (createPeerMessage): New function.
  17776. (createHandshakeMessage): New function.
  17777. (send): Made private.
  17778. (setPeerMessageCommonProperty): New function.
  17779. (deleteAllRequestSlot): New function.
  17780. (deleteRequestMessageInQueue): New function.
  17781. (cancelAllRequest): Made private.
  17782. (cancelAllRequest): Made private.
  17783. (countRequestSlot): Made private.
  17784. (addPendingMessage): Removed.
  17785. (deletePendingPieceMessage): Removed.
  17786. (deletePendingRequestMessage): Removed.
  17787. (addMessage): New function.
  17788. (deletePieceMessageInQueue): New function.
  17789. (deleteTimeoutRequestSlot): Changed argument.
  17790. (deleteCompletedRequestSlot): Changed argument.
  17791. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17792. (getCorrespondingRequestSlot): New function.
  17793. (countPendingMessage): Removed.
  17794. (countMessageInQueue): New function.
  17795. (getTorrentMan): New function.
  17796. (getPeerConnection): New function.
  17797. (hasDownloadPiece): New function.
  17798. (getDownloadPiece): New function.
  17799. (setDownloadPiece): New function.
  17800. (syncPiece): New function.
  17801. (sendMessages): New function.
  17802. (sendNow): New function.
  17803. (trySendNow): New function.
  17804. (abortPiece): New function.
  17805. (sendHandshake): New function.
  17806. (receiveMessage): New function.
  17807. (receiveHandshake): New function.
  17808. (createRequestMessage): New function.
  17809. (createCancelMessage): New function.
  17810. (createPieceMessage): New function.
  17811. (createHaveMessage): New function.
  17812. (createChokeMessage): New function.
  17813. (createUnchokeMessage): New function.
  17814. (createInterestedMessage): New function.
  17815. (createNotInterestedMessage): New function.
  17816. (createBitfieldMessage): New function.
  17817. (createKeepAliveMessage): New function.
  17818. * src/SendMessageQueue.cc
  17819. (SendMessageQueue): Removed requestSlotMan.
  17820. Instantiated peerConnection here.
  17821. (~SendMessageQueue): Removed requestSlotMan.
  17822. Added deletion of peerConnection and the contents of messageQueue.
  17823. (send): Updated according to the change of messageQueue.
  17824. (addPendingMessage): Renamed to addMessage.
  17825. (addMessage): New function.
  17826. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17827. (deletePieceMessageInQueue): New function.
  17828. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17829. (deleteRequestMessageInQueue): New function.
  17830. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17831. here.
  17832. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17833. (...) was moved here.
  17834. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17835. moved here.
  17836. (deleteCompletedRequestSlot):
  17837. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17838. (getCorrespondingRequestSlot):
  17839. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17840. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17841. (countPendingMessage): Renamed to countMessageInQueue.
  17842. (countMessageInQueue): New function.
  17843. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17844. (receiveHandshake): New function.
  17845. (createHandshakeMessage): New function.
  17846. (receiveMessage): New function.
  17847. (createPeerMessage): New function.
  17848. (syncPiece): New function.
  17849. (getNewPieceAndSendInterest): New function.
  17850. (sendMessages): New function.
  17851. (sendNow): New function.
  17852. (trySendNow): New function.
  17853. (sendHandshake): New function.
  17854. (abortPiece): New function.
  17855. (getDownloadPiece): New function.
  17856. (getPeerMessageCommonProperty): New function.
  17857. (createRequestMessage): New function.
  17858. (createCancelMessage): New function.
  17859. (createPieceMessage): New function.
  17860. (createHaveMessage): New function.
  17861. (createChokeMessage): New function.
  17862. (createUnchokeMessage): New function.
  17863. (createInterestedMessage): New function.
  17864. (createNotInterestedMessage): New function.
  17865. (createBitfieldMessage): New function.
  17866. (createKeepAliveMessage): New function.
  17867. To add simple Content-Disposition support:
  17868. * src/HttpResponseCommand.h (determinFilename): New function.
  17869. * src/HttpResponseCommand.cc (executeInternal):
  17870. Use determinFilename(headers) instead of req->getFile() when comparing
  17871. filename.
  17872. (determinFilename): New function.
  17873. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17874. req->getFile().
  17875. (handleOtherEncoding): Use determinFilename(headers) instead of
  17876. req->getFile().
  17877. * src/Util.h (getContentDispositionFilename): New function.
  17878. * src/Util.cc (getContentDispositionFilename): New function.
  17879. * src/LogFactory.h (release): New function.
  17880. * src/LogFactory.cc (release): New function.
  17881. To fix a bug that causes out-of-bound exception when HTTP status
  17882. line is wrong:
  17883. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17884. size.
  17885. * src/common.h (Deleter): New class.
  17886. * src/SegmentMan.cc
  17887. (~SegmentMan): Added deletion of splitter and diskWriter.
  17888. * src/DownloadEngine.h
  17889. (Commands): Use deque.
  17890. (clearQueue): New function.
  17891. * src/DownloadEngine.cc
  17892. (~DownloadEngine): Added deletion of segmentMan.
  17893. (cleanQueue): New function.
  17894. * src/TorrentDownloadEngine.h
  17895. (TorrentDownloadEngine): The implementation was moved to
  17896. TorrentDownloadEngine.cc.
  17897. (~TorrentDownloadEngine): The implementation was moved to
  17898. TorrentDownloadEngine.cc.
  17899. * src/TorrentDownloadEngine.cc
  17900. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17901. * src/main.cc
  17902. (clearRequest): Removed.
  17903. (handler): Added deletion of e.
  17904. (torrentHandler): Added deletion of te.
  17905. (main): Do not share splitter.
  17906. Use Deleter instead of clearRequest.
  17907. Deletion of classes were updated.
  17908. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17909. * src/main.cc (main): Fixed typo.
  17910. * src/message.h: Fixed typo.
  17911. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17912. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17913. To add --select-file command-line option:
  17914. * src/Util.cc
  17915. (unfoldRange): New function.
  17916. (getNum): New function.
  17917. (unfoldSubRange): New function
  17918. * src/main.cc
  17919. (showUsage): Added help message.
  17920. (main): Added --select-file command-line option. Updated the layout of
  17921. file listing.
  17922. * src/common.h
  17923. (Integers): New definition.
  17924. * src/SocketCore.cc
  17925. (writeData): Removed timeout argument.
  17926. (readData): Removed timeout argument.
  17927. (peekData): Removed timeout argument.
  17928. * src/Socket.cc
  17929. (writeData): Removed timeout argument.
  17930. (readData): Removed timeout argument.
  17931. (peekData): Removed timeout argument.
  17932. * Release 0.4.1
  17933. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17934. To deploy upload rate based choking algorithm:
  17935. * src/PeerInteractionCommand.cc
  17936. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17937. peer currently used.
  17938. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17939. download completes. Simplified.
  17940. (receiveMessage): Updated.
  17941. * src/TorrentMan.h
  17942. (activePeers): New variable.
  17943. (addActivePeer): New function.
  17944. (getActivePeers): New function.
  17945. (deleteActivePeer): New function.
  17946. * src/TorrentMan.cc
  17947. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17948. * src/PeerAbstractCommand.cc
  17949. (onAbort): Use peer->resetStatus().
  17950. * src/main.cc
  17951. (PeerChokeCommand.h): Included.
  17952. (main): Added the instance of ChokingCommand to the command queue.
  17953. * src/Peer.h
  17954. (amChoking): Renamed from amChocking
  17955. (chokingRequired): New variable.
  17956. (optUnchoking): New variable.
  17957. (deltaUpload): New variable.
  17958. (deltaDownload): New variable.
  17959. (addDeltaUpload): New function.
  17960. (resetDeltaUpload): New function.
  17961. (addDeltaDownload): New function.
  17962. (resetDeltaDownload): New function.
  17963. (addPeerUpload): Added a call to addDeltaUpload.
  17964. (addPeerDownload): Added a call to addDeltaDownload.
  17965. * src/Peer.cc
  17966. (shouldBeChoking): Renamed from shouldChoke.
  17967. (resetStatus): New function.
  17968. * src/PeerChokeCommand.h: New class.
  17969. * src/PeerChokeCommand.cc: New class.
  17970. To add lazy upload speed limiter:
  17971. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17972. statistics calculation to TorrentDownloadEngine.
  17973. * src/TorrentConsoleDownloadEngine.cc
  17974. (sendStatistics): Renamed from printStatistics.
  17975. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17976. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17977. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17978. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17979. calculation.
  17980. (sendStatistics): New function as pure virtual function.
  17981. (getUploadSpeed): New function.
  17982. * src/TorrentDownloadEngine.cc
  17983. (initStatistics): New function.
  17984. (calculateSpeed): New function.
  17985. (calculateStatistics): New function.
  17986. * src/SendMessageQueue.h
  17987. (uploadLength): New variable.
  17988. (send): Added an argument.
  17989. (setUploadLimit): New function.
  17990. (getUploadLimit): New function.
  17991. * src/SendMessageQueue.cc
  17992. (send): Added upload speed limiter.
  17993. * src/prefs.h
  17994. (PREF_UPLOAD_LIMIT): New definition.
  17995. * src/PeerInteractionCommand.cc
  17996. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17997. * src/main.cc
  17998. (main): Added --upload-limit option
  17999. For bug fixes:
  18000. * src/main.cc
  18001. (showUsage): Corrected --listen-port help
  18002. Other changes:
  18003. * src/TorrentMan.cc
  18004. (getPeer): Return nullPeer if connection is grather than
  18005. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18006. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18007. To add some useful information to the exception message:
  18008. * src/SocketCore.cc : Updated messages.
  18009. * src/SegmentMan.cc :
  18010. * src/TorrentMan.cc : Updated messages.
  18011. * src/MultiDiskWriter.cc : Updated messages.
  18012. * src/Util.cc : Updated messages.
  18013. * src/AbstractDiskWriter.cc : Updated messages.
  18014. * src/PreAllocationDiskWriter.cc : Updated messages.
  18015. * src/message.cc : Added new messages. Updated some messages.
  18016. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18017. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18018. Updated threshold from 30 to 15.
  18019. * src/AbstractDiskWriter.h (filename): New variable.
  18020. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18021. (createFile): Assigned filename.
  18022. * src/main.cc: Updated the help message for http-auth-scheme.
  18023. * Release 0.4.0
  18024. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18025. To add TrackerUpdateCommand with which replaces
  18026. CompactTrackerResponseProcessor:
  18027. * src/TrackerWatcherCommand.h (req): Removed.
  18028. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18029. if the number of peer connections are less than 30.
  18030. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18031. * src/SegmentMan.h (diskWriter): New function.
  18032. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18033. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18034. (main): Use TrackerUpdateCommand.
  18035. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18036. (req): New variable.
  18037. (setTrackerResponseProcessor): Removed.
  18038. (getTrackerResponseProcessor): Removed.
  18039. (processTrackerResponse): Removed.
  18040. * src/DownloadEngine.h (diskWriter): Removed.
  18041. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18042. to torrentMan->processTrackerResponse().
  18043. To add Util::expandBuffer:
  18044. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18045. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18046. * src/Util.h (expandBuffer): New function.
  18047. To fix the bug that causes segmentation fault when "-l ." is specified
  18048. in command-line option:
  18049. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18050. (openFile): New function.
  18051. (closeFile): New function.
  18052. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18053. (~SimpleLogger): Call closeFile();
  18054. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18055. * src/main.cc (main): Added a check to see logger is configured
  18056. properly.
  18057. To enable HTTP authentication without specifying "--http-auth-scheme"
  18058. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18059. * src/HttpConnection.cc (createRequest): Send Authorization header
  18060. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18061. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18062. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18063. * src/Peer.cc (shouldChoke): Updated algorithm.
  18064. * src/message.h (EX_AUTH_FAILED): New definition.
  18065. (EX_FILE_OPEN): New definition.
  18066. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18067. if status == 401.
  18068. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18069. if req->isTorrent == true.
  18070. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18071. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18072. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18073. (createFile): Updated message.
  18074. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18075. To add a readout of estimated remaining time to normal HTTP/FTP
  18076. downloads:
  18077. * src/ConsoleDownloadEngine.h (startup): New variable.
  18078. (startupLength): New variable.
  18079. (isStartupLengthSet): New variable.
  18080. (avgSpeed): New variable.
  18081. (eta): New variable.
  18082. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18083. estimated remaining time.
  18084. (initStatistics): Initialized newly added variables.
  18085. (calculateStatistics): Calculate average speed and estimated remaining
  18086. time.
  18087. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18088. * src/TrackerDownloadCommand.h: Removed.
  18089. * src/TrackerDownloadCommand.cc: Removed.
  18090. * src/TrackerInitCommand.h: Removed.
  18091. * src/TrackerInitCommand.cc: Removed.
  18092. * src/TrackerUpdateCommand.h: Removed.
  18093. * src/TrackerUpdateCommand.cc: Removed.
  18094. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18095. url written in TrackerInitCommand was moved here. Do not create
  18096. tracker request command if torrentMan->trackers != 0.
  18097. * src/CompactTrackerResponseProcessor.h: New class.
  18098. * src/CompactTrackerResponseProcessor.cc: New class.
  18099. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18100. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18101. Decoupled TorrentDownloadEngine from this.
  18102. * src/SegmentMan.h (init): New function.
  18103. * src/SegmentMan.cc (init): New function.
  18104. * src/TorrentMan.h (responseProcessor): New variable.
  18105. (trackers): New variable.
  18106. (setTrackerResponseProcessor): New function.
  18107. (getTrackerResponseProcessor): New function.
  18108. (processTrackerResponse): New function.
  18109. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18110. (processTrackerResponse): New function.
  18111. * src/main.cc (main): Use ByteArrayDiskWriter and
  18112. CompactTrackerResponseProcessor.
  18113. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18114. processTrackerResponse().
  18115. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18116. readout.
  18117. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18118. which indicates download has completed.
  18119. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18120. (closeFile): fd >= 0, not fd > 0
  18121. * src/main.cc (main): Added short cut for show-files.
  18122. Added short cut for torrent-file.
  18123. Added new command-line option listen-port.
  18124. Updated i18n messages.
  18125. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18126. To add LogFactory which creates singleton logger:
  18127. * src/LogFactory.h: New class.
  18128. * src/LogFactory.cc: New class.
  18129. * src/Command.h (logger): New variable.
  18130. (Constructor): Use LogFactory.
  18131. * src/AbstractCommand.cc: Use Command::logger
  18132. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18133. Use LogFactory.
  18134. * src/SegmentSplitter.h : Made logger protected.
  18135. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18136. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18137. * src/DownloadEngine.h : Made logger protected.
  18138. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18139. * src/PeerInteractionCommand.cc : Use Command::logger.
  18140. * src/HttpResponseCommand.cc : Use Command::logger.
  18141. * src/SegmentMan.h : Made logger private.
  18142. * src/TorrentMan.h : Made logger private.
  18143. * src/TorrentMan.cc : Use LogFactory.
  18144. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18145. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18146. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18147. Use LogFactory.
  18148. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18149. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18150. Use LogFactory.
  18151. * src/DownloadCommand.cc : Use Command::logger.
  18152. * src/PeerAbstractCommand.cc : Use Command::logger.
  18153. * src/PeerListenCommand.cc : Use Command::logger.
  18154. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18155. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18156. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18157. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18158. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18159. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18160. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18161. Use LogFactory.
  18162. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18163. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18164. Use LogFactory.
  18165. * src/main.cc (main): Use LogFactory.
  18166. * src/DiskAdaptor.h (logger): New variable.
  18167. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18168. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18169. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18170. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18171. parameter to a tracker request.
  18172. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18173. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18174. * src/main.cc (setSignalHander): New function.
  18175. (main): Added a handler for SIGTERM.
  18176. (handler): Updated message.
  18177. (torrentHandler): Updated message.
  18178. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18179. * src/TorrentConsoleDownloadEngine.cc
  18180. (onPartialDownloadingCompletes): Renamed as
  18181. onSelectiveDownloadingCompletes.
  18182. (onSelectiveDownloadingCompletes): Updated message.
  18183. To add DiskAdaptor which abstract DiskWriter family:
  18184. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18185. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18186. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18187. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18188. MultiDiskAdaptor.h.
  18189. (readFileEntry): Changed its arguments.
  18190. (setup): setupDiskWriter is merged into this function.
  18191. (setupDiskWriter): Removed.
  18192. (setFileFilter): New function.
  18193. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18194. made in readFileEntry.
  18195. (getFilePath): Removed.
  18196. (getTempFilePath): Removed.
  18197. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18198. (fixFilename): Removed.
  18199. (copySingleFile): Removed.
  18200. (splitMultiFile): Removed.
  18201. (deleteTempFile): Removed.
  18202. (setFileEntriesToDownload): Removed.
  18203. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18204. (isSelectiveDownloadingMode): New function.
  18205. (setAllMultiFileRequestedState): Removed.
  18206. (finishPartialDownloadingMode): Renamed as
  18207. finishSelectiveDownloadingMode.
  18208. (finishSelectiveDownloadingMode): New function.
  18209. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18210. (getSelectedTotalLength): New function.
  18211. (onDownloadComplete): Use diskAdaptor.
  18212. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18213. (Range): Removed.
  18214. (setMultiFileEntries): Renamed as setFileEntries.
  18215. (setFileEntries): New function.
  18216. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18217. (pieceLength): New variable.
  18218. * src/main.cc (printDownloadCompeleteMessage): New function.
  18219. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18220. (main): Renamed torrent-show-files to show-files.
  18221. Rewritten file contents listing.
  18222. * src/TorrentMan.h (FileEntry): Removed.
  18223. (multiFileTopDir): Removed.
  18224. (multiFileEntries): Removed.
  18225. (diskWriter): Removed.
  18226. (diskAdaptor): New variable.
  18227. * src/DefaultDiskWriter.h (totalLength): New variable.
  18228. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18229. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18230. diskWriter.
  18231. * src/TorrentConsoleDownloadEngine.h
  18232. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18233. (partialTotalLength): Renamed as selectedTotalLength.
  18234. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18235. openExistingFile, otherwise call initAndOpenFile.
  18236. (closeFile): fd > 0, not fd != 0.
  18237. * src/DirectDiskAdaptor.h: New class.
  18238. * src/DirectDiskAdaptor.cc: New class.
  18239. * src/MultiDiskAdaptor.h: New class.
  18240. * src/MultiDiskAdaptor.cc: New class.
  18241. * src/CopyDiskAdaptor.h: New class.
  18242. * src/CopyDiskAdaptor.cc: New class.
  18243. * src/DiskAdaptor.h: New class.
  18244. * src/DiskAdaptor.cc: New class.
  18245. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18246. (PREF_SHOW_FILES): New definition.
  18247. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18248. To add the ability to download multi torrent into respective files
  18249. directly:
  18250. * src/DiskWriter.h (openFile): New function.
  18251. (seek): Removed.
  18252. * src/MultiDiskWriter.h: New class.
  18253. * src/MultiDiskWriter.cc: New class.
  18254. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18255. protected.
  18256. (openFile): New function.
  18257. * src/AbstractDiskWriter.cc (openFile): New function.
  18258. * src/prefs.h (V_FALSE): New definition.
  18259. (PREF_DIRECT_FILE_MAPPING): New definition.
  18260. * src/TorrentMan.h (setupDiskWriter): New function.
  18261. (setAllMultiFileRequestedState): New function.
  18262. (onDownloadComplete): New function.
  18263. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18264. (setupDiskWriter): New function.
  18265. (getFilePath): Updated.
  18266. (getTempFilePath): Updated.
  18267. (getSegmentFilePath): Updated.
  18268. (fixFilename): Updated.
  18269. (deleteTempFile): Updated.
  18270. (setAllMultiFileRequestedState): New function.
  18271. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18272. (finishPartialDownloadingMode): Reset requested flags.
  18273. (onDownloadComplete): New function.
  18274. * src/main.cc: Added --direct-file-mapping option.
  18275. Use TorrentMan::setupDiskWriter().
  18276. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18277. onDownloadComplete().
  18278. To fix ETA bug:
  18279. * src/Util.h (difftvsec): New function.
  18280. * src/Util.cc (difftvsec): New function.
  18281. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18282. type of "elapsed" instead of long long int.
  18283. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18284. The updates of statistics takes place every 1 seconds.
  18285. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18286. (calculateSpeed): Changed its argument signature.
  18287. * src/PeerMessage.cc (toString): Fixed message.
  18288. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18289. To print ETA:
  18290. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18291. completion handling when dealing with
  18292. TorrentMan::isPartialDownloadingMode() == true.
  18293. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18294. New function.
  18295. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18296. (sessionDownloadLength): New variable.
  18297. (avgSpeed): New variable.
  18298. (eta): New variable.
  18299. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18300. new variables: eta, avgSpeed, startup.
  18301. (calculateSpeed): Calculate average speed and ETA.
  18302. (printStatistics): Added ETA.
  18303. * src/Util.h (secfmt): New function.
  18304. * src/Util.cc (secfmt): New function.
  18305. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18306. To detect "keep alive" flooding:
  18307. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18308. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18309. variable: keepAliveCount.
  18310. (detectMessageFlooding): Added "keep alive" flooding detection.
  18311. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18312. received.
  18313. To add the ability to download only specified files in multi-file
  18314. torrent:
  18315. * src/BitfieldMan.h (filterBitfield): New variable.
  18316. (filterEnabled): New variable.
  18317. (setFilterBit): New function.
  18318. (enableFilter): New function.
  18319. (disableFilter): New function.
  18320. (isFilterEnabled): New function.
  18321. (getFilteredTotalLength): New function.
  18322. (getCompletedLength): New function.
  18323. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18324. filterBitfield, filterEnabled.
  18325. (CopyConstructor): Added filterBitfield and filterEnabled.
  18326. (operator==): Added filterBitfield and filterEnabled.
  18327. (Destructor): Added filterBitfield.
  18328. (getMissingIndex): Use filterBitfield.
  18329. (getMissingUnusedIndex): Use filterBitfield.
  18330. (getFirstMissingUnusedIndex): Use filterBitfield.
  18331. (getFirstMissingUnusedIndex): Use filterBitfield.
  18332. (getAllMissingIndexes): Use filterBitfield.
  18333. (countMissingBlock): Use filterBitfield.
  18334. (countBlock): Use filterBitfield.
  18335. (setBitInternal): Added new argument on.
  18336. (setUseBit): Use setBitInternal.
  18337. (unsetUseBit): Use setBitInternal.
  18338. (setBit): Use setBitInternal.
  18339. (unsetBit): Use setBitInternal.
  18340. (isAllBitSet): Use filterBitfield.
  18341. (setFilterBit): New function.
  18342. (addFilter): New function.
  18343. (enableFilter): New function.
  18344. (disableFilter): New function.
  18345. (clearFilter): New function.
  18346. (isFilterEnabled): New function.
  18347. (getFilteredTotalLength): New function.
  18348. (getCompletedLength): New function.
  18349. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18350. Initalized newly added variables.
  18351. [FileEntry](offset): New variable.
  18352. [FileEntry](extracted): New variable.
  18353. [FileEntry](requested): New variable.
  18354. (readFileEntry): New function.
  18355. (option): New variable.
  18356. (splitMultiFile): Removed const qualifier.
  18357. (fixFilename): Removed const qualifier.
  18358. (readFileEntryFromMetaInfoFile): New function.
  18359. (finishPartialDownloadingMode): New function.
  18360. (isPartialDownloadingMode): New function.
  18361. (setFileEntriesToDownload): New function.
  18362. (getCompletedLength): New function.
  18363. (getPartialTotalLength): New function.
  18364. * src/TorrentMan.cc (readFileEntry): New function.
  18365. (setup): Use readFileEntry. If no-preallocation option is specified,
  18366. use DefaultDiskWriter.
  18367. (readFileEntryFromMetaInfoFile): New function.
  18368. (fixFilename): Removed const qualifier.
  18369. (splitMultiFile): Removed const qualifier.
  18370. (setFileEntriesToDownload): New function.
  18371. (isPartialDownloadingMode): New function.
  18372. (finishPartialDownloadingMode): New function.
  18373. (getCompletedLength): New function.
  18374. (getPartialTotalLength): New function.
  18375. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18376. New variable.
  18377. (partialTotalLength): New variable.
  18378. (downloadLength): New variable.
  18379. (totalLength): New variable.
  18380. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18381. Added log.
  18382. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18383. partialTotalLength, downloadLength, totalLength.
  18384. (calculate): Calculate downloadLength and totalLength.
  18385. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18386. * src/main.cc (addCommand): Changed argument signature.
  18387. (main): Added new variable: args. Added new option "torrent-show-files"
  18388. "no-preallocation". Usage is not updated yet.
  18389. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18390. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18391. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18392. Attempt to add the ability to listing file entries in a .torrent file.
  18393. This feature is not yet complete.
  18394. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18395. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18396. (getName): New function.
  18397. * src/TorrentMan.h (getMultiFileEntries): New function.
  18398. (getName): New function.
  18399. * src/main.cc (main): Use above 2 funtion.
  18400. * Release 0.3.2
  18401. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18402. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18403. (detectMessageFlooding): Updated threshold value.
  18404. (checkLongTimePeerChoking): Updated timeout value.
  18405. (getNewPieceAndSendInterest): Added debug log.
  18406. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18407. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18408. (getPeer): Updated.
  18409. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18410. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18411. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18412. is localhost.
  18413. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18414. * src/PendingMessage.cc (processMessage): Not to send piece message
  18415. if peer is not interested in the pieces localhost has.
  18416. * src/Peer.cc (shouldChoke): Updated.
  18417. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18418. * src/Util.cc (isPowerOf): New function.
  18419. * src/Util.h (isPowerOf): New function.
  18420. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18421. whether or not it is power of 2.
  18422. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18423. Added new class SendMessageQueue that includes PendingMessages and
  18424. RequestSlotMan.
  18425. * src/SendMessageQueue.h: New class.
  18426. * src/SendMessageQueue.cc: New class.
  18427. * src/PendingMessage.h: Added new member variable blockIndex and its
  18428. accessors.
  18429. (createRequestMessage): Updated.
  18430. * src/PendingMessage.cc (createRequestMessage): Updated.
  18431. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18432. SendMessageQueue.
  18433. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18434. (receiveMessage): Updated with SendMessageQueue.
  18435. (deletePendingPieceMessage): Removed.
  18436. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18437. (sendInterest): Updated with SendMessageQueue.
  18438. (createRequestPendingMessage): Updated with SendMessageQueue.
  18439. (sendMessages): Updated with SendMessageQueue.
  18440. (onAbort): Updated with SendMessageQueue.
  18441. (keepAlive): Updated with SendMessageQueue.
  18442. (beforeSocketCheck): Updated SendMessageQueue.
  18443. * src/PeerInteractionCommand (sendMessages): Shuffle
  18444. missingBLockIndexes before using it.
  18445. Added its own timeout for peer connection.
  18446. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18447. setter.
  18448. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18449. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18450. Added setTimeout() call.
  18451. (executeInternal): Added setTimeout() call.
  18452. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18453. Added timeout.
  18454. (isTimeoutDetected): Updated.
  18455. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18456. option.
  18457. Added *simple* message flooding checker.
  18458. * src/PeerInteractionCommand.cc (executeInternal):
  18459. Added detectMessageFlooding() call.
  18460. (detectMessageFlooding): New function.
  18461. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18462. (beforeSocketCheck): Added detectMessageFlooding() call.
  18463. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18464. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18465. Removed deletePendingPieceMessage(), getRequestSlot(),
  18466. deleteRequestSlot(), deleteAllRequestSlot().
  18467. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18468. Added checkLongTimePeerChoking() call.
  18469. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18470. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18471. if duplicate == false.
  18472. The parameter "uploaded" and "downloaded" in the tracker request are
  18473. the size since the client sent the "started" event to the tracker.
  18474. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18475. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18476. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18477. getSessionDownloadedSize(), getSessionUploadedSize().
  18478. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18479. getSessionUploadedSize() instead of getDownloadedSize(),
  18480. getUploadedSize().
  18481. * src/PendingMessage.cc (processMessage): Do not send request message
  18482. if the peer is choking the client.
  18483. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18484. less than interval.
  18485. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18486. * configure.in: Added gnutls support. Added several CPP macros.
  18487. * m4/openssl.m4: Added.
  18488. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18489. readData(), peekData(). Added gnutls support.
  18490. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18491. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18492. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18493. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18494. Instead, added a check for whether setup method has executed
  18495. successfully.
  18496. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18497. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18498. * src/Makefile.am: Updated.
  18499. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18500. using whether OpenSSL or gcrypt, depending on the result of configure
  18501. script.
  18502. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18503. messageDigest.h.
  18504. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18505. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18506. Fixed memory leak.
  18507. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18508. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18509. Removed instantiation of TrackerInitCommand. Instead,
  18510. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18511. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18512. ENABLE_SSL.
  18513. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18514. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18515. If a piece is already acquired by another command, delete the request
  18516. slots for the piece.
  18517. * src/TrackerUpdateCommand.cc (execute):
  18518. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18519. Added a check whether peer list is null.
  18520. Fixed the bug that causes sending completed event to the tracker
  18521. several times.
  18522. * src/TrackerInitCommand.cc (execute):
  18523. Fixed the bug that causes sending completed event to the tracker
  18524. several times.
  18525. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18526. by using messageDigest.h.
  18527. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18528. * PeerConnection.cc: Replaced log message "keep-alive" with
  18529. "keep alive".
  18530. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18531. localhost long time.
  18532. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18533. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18534. at most 100 failure entry from the list. If with duplicate = false,
  18535. MAX_PEER_LIST is not checked.
  18536. * PeerListenCommand.cc: Fixed the argument order of log message.
  18537. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18538. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18539. Added warn().
  18540. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18541. Implemented warn().
  18542. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18543. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18544. * Request.h: Added AFTER_COMPLETED event.
  18545. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18546. instead of downloaded size and progress(%) after download completes.
  18547. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18548. message to the peer if it is interested in what localhost has
  18549. downloaded.
  18550. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18551. destination instead of just renaming it.
  18552. * TorrentMan.cc: Added deleteTempFile().
  18553. * PeerAbstractCommand.cc: do not stop execution after download
  18554. completes. This makes localhost a seeder.
  18555. * Util.{h,cc}: Added fileCopy().
  18556. * PeerListenCommand.cc: do not stop execution after download completes.
  18557. This makes localhost a seeder.
  18558. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18559. Added TorrentMan::deleteTempFile() to torrentHandler.
  18560. Initialized the variable dir as ".".
  18561. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18562. Deleted renameSingleFile().
  18563. Added copySingleFile(), deleteTempFile().
  18564. * DownloadEngine.h: Added virtual function afterEachIteration().
  18565. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18566. in onEndOfRun() to afterEachIteration().
  18567. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18568. true.
  18569. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18570. In rangedFileCopy(), added try-catch block to properly close file
  18571. descriptors.
  18572. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18573. Added afterEachIteration(), isFilenameFixed().
  18574. * Peer.cc: Changed choking strategy.
  18575. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18576. * TrackerInitCommand.cc: Send completed event only once.
  18577. * DownloadEngine.cc: Added a call to afterEachIteration().
  18578. * TrackerUpdateCommand.cc: Do not stop execution after download
  18579. completes.
  18580. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18581. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18582. received from a tracker.
  18583. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18584. Decreased the number of failure peers to delete to 0(just comment out
  18585. the line).
  18586. * Release 0.3.1
  18587. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18588. * PeerInteractionCommand.cc: added a call to
  18589. TorrentMan::unadvertisePiece in Destructor.
  18590. * PeerInteractionCommand.cc: make have message sent immediately
  18591. if the size of pending message queue is zero.
  18592. * TorrentMan.cc: set the maximum size of peer list to 250.
  18593. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18594. to deque.
  18595. * Util.cc: fixed rangedFileCopy.
  18596. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18597. to Constructor. Also, moved digest cleanup to Destructor.
  18598. * MetaFileUtil.cc: fixed memory leak
  18599. * replaced std::vector with std::deque.
  18600. * AbstractCommand.cc: casted timeout value to long long int.
  18601. * ChunkedEncoding.cc: fixed memory leak.
  18602. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18603. * SleepCommand.cc: casted timeout value to long long int.
  18604. * Data.cc: fixed memory leak.
  18605. * Data.cc: fixed toLLInt().
  18606. * BitfieldMan.cc: fixed memory leak.
  18607. * TorrentMan.cc: initialized storeDir to ".".
  18608. * TorrentMan.cc: fixed memory leak.
  18609. * TorrentMan.cc: corrected file paths of splitted files.
  18610. * PeerAbstractCommand.cc: casted timeout to long long int.
  18611. * main.cc: added delete(req) and delete(te->diskWriter).
  18612. * RequestSlot.cc: casted timeout value to long long int.
  18613. * Request.cc: fixed memory leak.
  18614. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18615. have the piece.
  18616. * Peer.{h,cc}: added hasPiece(int index).
  18617. * main.cc: corrected addCommand.
  18618. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18619. * BitTorrent protocol support added.
  18620. * Release 0.3.0
  18621. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18622. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18623. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18624. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18625. decoding did not work properly.
  18626. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18627. * DownloadEngine.h: included sys/time.h
  18628. * DownloadEngine.cc: remove sys/time.h
  18629. * Makefile.am (SUBDIRS): Add intl.
  18630. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18631. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18632. * main.cc: correct help message for --http-auth-scheme.
  18633. * main.cc: changed e-mail address for bug reports.
  18634. * ja.po: added japanese translation.
  18635. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18636. * SimpleLogger.cc: flush log file instead of stdout.
  18637. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18638. * main.cc: Fixed command-line option: max-tries
  18639. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18640. does not equal to seg.sp.
  18641. * DownloadCommand.cc: If EOF is got from the server and the total size
  18642. of file is not zero, then throw DlRetryEx.
  18643. * main.cc: Set the minium value of min-segment-size to 1024.
  18644. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18645. fails because of a regression since 0.2.0 release.
  18646. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18647. * HttpConnection.cc:
  18648. * common.h: defined the user agent name as macro
  18649. * DownloadEngine.{h, cc}:
  18650. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18651. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18652. * main.cc: Download complete/abort message is now generated by main.
  18653. * Makefile.am (SUBDIRS): Add m4.
  18654. (ACLOCAL_AMFLAGS): New variable.
  18655. (EXTRA_DIST): New variable.
  18656. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18657. * gettext: added gettext functionality
  18658. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18659. * AbstractCommand.cc:
  18660. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18661. unregister its cuid from SegmentMan.
  18662. * DownloadEngine.cc: .aria2 file was written when a downloading
  18663. failed with errors.
  18664. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18665. Added "User-Agent" header to CONNECT proxy request.
  18666. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18667. properly.
  18668. * Logger.h:
  18669. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18670. * ChunkedEncoding.cc: Added #include directive for strings.h
  18671. * Release 0.2.1
  18672. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18673. * Util.{h,cc}: added startsWith().
  18674. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18675. Util::endsWith().
  18676. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18677. * common.h: added #include directive of limit.h.
  18678. * DownloadEngine.cc: added #include directive of sys/time.h and
  18679. algorithm.
  18680. * Exception.h: added #include directive of stdio.h.
  18681. * AbstractCommand.h: added #include directive of sys/time.h.
  18682. * DownloadCommand.h: added #include directive of sys/time.h.
  18683. * *.h: added #include directive of common.h to all base classes.
  18684. subclasses' one was removed.
  18685. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18686. does not define these macros.
  18687. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18688. * Release 0.2.0
  18689. * main.cc:
  18690. * HttpInitiateConnectionCommand.{h,cc}:
  18691. * prefs.h:
  18692. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18693. We can now use GET command in http proxy.
  18694. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18695. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18696. that splits slowest segment of SegmentMan::commands vector.
  18697. This is the default split algorithm of aria2.
  18698. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18699. that splits first segment of SegmentMan::commands vector.
  18700. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18701. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18702. * Segment.h:
  18703. * SegmentMan.cc: Added speed field to Segment.h
  18704. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18705. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18706. * message.h: Change file size related %d to %lld.
  18707. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18708. * FtpInitiateConnectionCommand.{h,cc}:
  18709. * FtpNegotiationCommand.{h,cc}:
  18710. * FtpDownloadCommand.{h,cc}:
  18711. * FtpConnection.{h,cc}: Added FTP support
  18712. * SimpleLogger.cc: Log message now includes time information.
  18713. * main.cc: The value of --http-auth-scheme option is chagned from
  18714. 'BASIC' to 'basic'
  18715. * main.cc: Added --timeout command-line option.
  18716. * main.cc: Added --min-segment-size command-line option.
  18717. * main.cc: Added --max-retries command-line option.
  18718. * prefs.h: option string constants are now defined in prefs.h
  18719. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18720. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18721. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18722. with version 0.1.0's one.
  18723. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18724. * configure.in: Added --enable-ssl option to configure script.
  18725. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18726. cannot permit absoluteURI as Request-URI.
  18727. * HttpConnection.cc: Added Referer support.
  18728. * main.cc: Added referer command-line option.
  18729. * main.cc: Added rety-wait command-line option.
  18730. * Exception.h: Fixed formating bug in Exception::setMsg()
  18731. * SocketCore.{h,cc}:
  18732. * Socket.{h, cc}:
  18733. * Request.cc:
  18734. * InitiateConnectionCommandFactory.cc:
  18735. * HttpRequestCommand.cc: Added HTTPS support.
  18736. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18737. for SocketCore.
  18738. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18739. size is wrong
  18740. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18741. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18742. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18743. * Release 0.1.0